Commit 473931c9 by zonevg

初始化

parent f9e09bdb
**/.classpath
**/.dockerignore
**/.env
**/.git
**/.gitignore
**/.project
**/.settings
**/.toolstarget
**/.vs
**/.vscode
**/*.*proj.user
**/*.dbmdl
**/*.jfm
**/azds.yaml
**/bin
**/charts
**/docker-compose*
**/Dockerfile*
**/node_modules
**/npm-debug.log
**/obj
**/secrets.dev.yaml
**/values.dev.yaml
LICENSE
README.md
\ No newline at end of file
......@@ -185,3 +185,4 @@ UpgradeLog*.htm
# Microsoft Fakes
FakesAssemblies/
/.vs
/JmpModel/CodeTemplates
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<Compile Remove="DynJsonHelper.cs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="3.1.9" />
<PackageReference Include="LiteDB" Version="5.0.9" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
<PackageReference Include="System.Text.Encoding.CodePages" Version="5.0.0" />
<PackageReference Include="Websocket.Client" Version="4.3.21" />
</ItemGroup>
</Project>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace JmpCommon
{
/// <summary>
/// 结果代码
/// </summary>
public class ResultCode
{
static volatile public Dictionary<string, string> devDic = new Dictionary<string, string>();
public static ResultInfo OPERATE_FAILED = new ResultInfo { Code = "19999", Msg = "操作失败" };
public static ResultInfo OPERATE_SUCCESS = new ResultInfo { Code = "10000", Msg = "操作成功" };
public static ResultInfo HAS_NO_LIMITS = new ResultInfo { Code = "10001", Msg = "没有操作权限" };
public static ResultInfo ACCOUNT_NO_EXIST = new ResultInfo { Code = "10002", Msg = "没有该账户信息" };
public static ResultInfo SIGN_ERROR = new ResultInfo { Code = "10003", Msg = "签名错误" };
public static ResultInfo ACCOUNT_CANNOT_AUDIT = new ResultInfo { Code = "10004", Msg = "该用户无法被审核" };
public static ResultInfo ACCOUNT_IS_AUDITED = new ResultInfo { Code = "10005", Msg = "用户已通过审核" };
public static ResultInfo ORDER_NOT_EXIST = new ResultInfo { Code = "10006", Msg = "订单不存在" };
public static ResultInfo ACCESSTOKEN_ERROR = new ResultInfo { Code = "10008", Msg = "请求密钥错误或过期" };
public static ResultInfo REQUEST_DATA_ERROR = new ResultInfo { Code = "10009", Msg = "请求数据不合法" };
public static ResultInfo ADMIN_DELETE_ERROR = new ResultInfo { Code = "100010", Msg = "不能删除超级管理员" };
public static ResultInfo ACCOUNT_IS_EXIST = new ResultInfo { Code = "10012", Msg = "该账户已存在" };
public static ResultInfo ACCOUNT_ISNOT_CORRECT = new ResultInfo { Code = "10013", Msg = "帐号密码不正确" };
public static ResultInfo COMPANY_IS_EXIST = new ResultInfo { Code = "10014", Msg = "该企业已经注册" };
public static ResultInfo AUDIT_IS_PASS = new ResultInfo { Code = "10015", Msg = "审核未通过" };
public static ResultInfo AMONT_IS_NOT_ENOUGH = new ResultInfo { Code = "10016", Msg = "允许打印的标签数量不足" };
public static ResultInfo CHANNEL_CODE_EXIST = new ResultInfo { Code = "10017", Msg = "通道编号已存在" };
public static ResultInfo CABINET_ERROR = new ResultInfo { Code = "10018", Msg = "用户不存在或单警柜不存在" };
public static ResultInfo CABINET_SET_ERROR = new ResultInfo { Code = "10018", Msg = "单警柜已被绑定" };
public static ResultInfo NUMBER255_ERROR = new ResultInfo { Code = "10019", Msg = "号型最多添加255个" };
public static ResultInfo APPROVE_ERROR = new ResultInfo { Code = "10020", Msg = "用户已撤回或已被审核,无法审核" };
public static ResultInfo CHANGE_ERROR = new ResultInfo { Code = "10021", Msg = "无法修改已开始任务的领用单" };
public static ResultInfo DELETE_ERROR = new ResultInfo { Code = "10022", Msg = "该订单不是领用单或该单据已开始" };
public static ResultInfo SUPPLIER_ERROR = new ResultInfo { Code = "10023", Msg = "供应商码已存在" };
public static ResultInfo UPDATE_ERROR = new ResultInfo { Code = "10024", Msg = "错误的异常修改业务" };
public static ResultInfo POLICE_ERROR = new ResultInfo { Code = "10025", Msg = "警员不存在" };
public static ResultInfo POLICE_C_ERROR = new ResultInfo { Code = "10125", Msg = "警号已存在" };
public static ResultInfo EPC_ERROR = new ResultInfo { Code = "10026", Msg = "EPC或物资不存在" };
public static ResultInfo ORDER_IS_EXIST = new ResultInfo { Code = "10027", Msg = "订单已存在" };
public static ResultInfo ORDER_ERROR = new ResultInfo { Code = "10028", Msg = "订单号格式不正确" };
public static ResultInfo ORGANIZATION_ERROR = new ResultInfo { Code = "10029", Msg = "组织机构不正确" };
public static ResultInfo TIME_ERROR = new ResultInfo { Code = "10030", Msg = "时间戳失效,请求过期" };
public static ResultInfo APPKEY_ERROR = new ResultInfo { Code = "10031", Msg = "AppKey错误" };
public static ResultInfo API_ERROR = new ResultInfo { Code = "10032", Msg = "没有权限调用该接口" };
public static ResultInfo MESSAGE_ERROR = new ResultInfo { Code = "10033", Msg = "认证服务网关超时" };
public static ResultInfo EQUIPMENT_ERROR = new ResultInfo { Code = "10034", Msg = "物资不存在" };
public static ResultInfo DELETE_USER_ERROR = new ResultInfo { Code = "10035", Msg = "请先将单警柜内与人员绑定的物资解绑" };
public static ResultInfo WAREHOUSE_LOCK = new ResultInfo { Code = "10036", Msg = "仓库已锁定,正在盘点中" };
public static ResultInfo WAREHOUSE_INV_EXIST = new ResultInfo { Code = "10037", Msg = "有未操作的盘点单据,请先进行处理" };
public static ResultInfo ORDER_EXIST = new ResultInfo { Code = "10038", Msg = "已有单据在审核,请先处理待审核单据" };
public static ResultInfo CABINET_INVENTORY_EXIST = new ResultInfo { Code = "10039", Msg = "单警柜存在物资" };
public static ResultInfo ORDER_OPERATE_FAILED = new ResultInfo { Code = "10040", Msg = "单据操作失败" };
public static ResultInfo ORDER_OPERATE_ERROR = new ResultInfo { Code = "10041", Msg = "单据已完成或单据不存在" };
public static ResultInfo EPC_GEN_FAILED = new ResultInfo { Code = "10020", Msg = "EPC生成失败" };
public static ResultInfo BASE_EXIST = new ResultInfo { Code = "10034", Msg = "基础信息已存在" };
public static ResultInfo BOX_MARK_INVALID = new ResultInfo { Code = "10042", Msg = "无效箱标EPC" };
public static ResultInfo NO_PROCESS = new ResultInfo { Code = "10043", Msg = "无流程信息" };
public static ResultInfo BAG_EXIST = new ResultInfo { Code = "10044", Msg = "已有物资进行绑定,无法进行修改或删除" };
public static ResultInfo COUNT_ERROR = new ResultInfo { Code = "10045", Msg = "实际物资数量超过预设装备包数量" };
public static ResultInfo NAME_ERROR = new ResultInfo { Code = "10046", Msg = "名称重复" };
public static ResultInfo MISSION_ERROR = new ResultInfo { Code = "10047", Msg = "该单据正在任务中或已有物资出入库" };
public static ResultInfo MISSION_EXIST = new ResultInfo { Code = "10048", Msg = "存在进行中的任务" };
public static ResultInfo REMOTE_REPORTING_ERROR = new ResultInfo { Code = "10099", Msg = "远端上报数据失败" };
}
/// <summary>
/// 结果信息 -- 结构体
/// </summary>
public struct ResultInfo
{
public string Code { get; set; }
public string Msg { get; set; }
}
}
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace JmpCommon.Tools
{
public class JobService : BackgroundService
{
protected async Task ExecuteAsync(CancellationToken stoppingToken,int type,string id)
{
while (!stoppingToken.IsCancellationRequested)
{
await Task.Delay(5000, stoppingToken); //启动后5秒执行一次
await new TaskFactory().StartNew(async () =>
{
try
{
}
catch (Exception exp)
{
//错误处理
}
//定时任务休眠
Thread.Sleep(1 * 1000);
});
}
}
protected override Task ExecuteAsync(CancellationToken stoppingToken)
{
throw new NotImplementedException();
}
}
}
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Threading.Tasks;
namespace JmpCommon.Tools
{
/// <summary>
/// 拼接表达式树
/// </summary>
public static class LambdaExtensions
{
public static Expression<Func<T, bool>> True<T>() { return f => true; }
public static Expression<Func<T, bool>> False<T>() { return f => false; }
public static Expression<T> Compose<T>(this Expression<T> first, Expression<T> second, Func<Expression, Expression, Expression> merge)
{
// build parameter map (from parameters of second to parameters of first)
var map = first.Parameters.Select((f, i) => new { f, s = second.Parameters[i] }).ToDictionary(p => p.s, p => p.f);
// replace parameters in the second lambda expression with parameters from the first
var secondBody = ParameterRebinder.ReplaceParameters(map, second.Body);
// apply composition of lambda expression bodies to parameters from the first expression
return Expression.Lambda<T>(merge(first.Body, secondBody), first.Parameters);
}
public static Expression<Func<T, bool>> And<T>(this Expression<Func<T, bool>> first, Expression<Func<T, bool>> second)
{
return first.Compose(second, Expression.And);
}
public static Expression<Func<T, bool>> AndAlso<T>(this Expression<Func<T, bool>> first, Expression<Func<T, bool>> second)
{
return first.Compose(second, Expression.AndAlso);
}
public static Expression<Func<T, bool>> Or<T>(this Expression<Func<T, bool>> first, Expression<Func<T, bool>> second)
{
return first.Compose(second, Expression.Or);
}
}
public class ParameterRebinder : ExpressionVisitor
{
private readonly Dictionary<ParameterExpression, ParameterExpression> map;
public ParameterRebinder(Dictionary<ParameterExpression, ParameterExpression> map)
{
this.map = map ?? new Dictionary<ParameterExpression, ParameterExpression>();
}
public static Expression ReplaceParameters(Dictionary<ParameterExpression, ParameterExpression> map, Expression exp)
{
return new ParameterRebinder(map).Visit(exp);
}
protected override Expression VisitParameter(ParameterExpression p)
{
ParameterExpression replacement;
if (map.TryGetValue(p, out replacement))
{
p = replacement;
}
return base.VisitParameter(p);
}
}
}
using System;
using System.Collections.Generic;
using System.Security.Cryptography;
using System.Text;
namespace JmpCommon.Tools
{
public static class WorkTools
{
/// <summary>
/// 获取时间
/// </summary>
/// <param name="timestamp"></param>
/// <returns></returns>
public static DateTime GetDateTime(long timestamp)
{
DateTime dtStart = TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1));
long lTime = long.Parse(timestamp + "0000000");
TimeSpan toNow = new TimeSpan(lTime);
DateTime targetDt = dtStart.Add(toNow);
return dtStart.Add(toNow);
}
private static string GetTimeStamp()
{
TimeSpan ts = DateTime.UtcNow - new DateTime(1970, 1, 1, 0, 0, 0, 0);
return Convert.ToInt64(ts.TotalSeconds).ToString();
}
public static string Encrypt(string message, string secret)
{
secret = secret ?? "";
var encoding = new System.Text.UTF8Encoding();
byte[] keyByte = encoding.GetBytes(secret);
byte[] messageBytes = encoding.GetBytes(message);
using (var hmacsha256 = new HMACSHA256(keyByte))
{
byte[] hashmessage = hmacsha256.ComputeHash(messageBytes);
StringBuilder builder = new StringBuilder();
for (int i = 0; i < hashmessage.Length; i++)
{
builder.Append(hashmessage[i].ToString("x2"));
}
return builder.ToString();
}
}
public static string HmacSHA256(string secret, string signKey)
{
string signRet = string.Empty;
using (HMACSHA256 mac = new HMACSHA256(Encoding.UTF8.GetBytes(signKey)))
{
byte[] hash = mac.ComputeHash(Encoding.UTF8.GetBytes(secret));
signRet = Convert.ToBase64String(hash);
//signRet = ToHexString(hash); ;
}
return signRet;
}
/// <summary>
/// MD5字符串加密
/// </summary>
/// <param name="txt"></param>
/// <returns>加密后字符串</returns>
public static string GenerateMD5(string txt)
{
//初始化MD5对象
MD5 md5 = MD5.Create();
//将源字符串转化为byte数组
Byte[] soucebyte = Encoding.UTF8.GetBytes(txt);
//soucebyte转化为mf5的byte数组
Byte[] md5bytes = md5.ComputeHash(soucebyte);
//将md5的byte数组再转化为MD5数组
StringBuilder sb = new StringBuilder();
foreach (Byte b in md5bytes)
{
//x表示16进制,2表示2位
sb.Append(b.ToString("x2"));
}
return sb.ToString();
}
}
}
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="JmpDevService.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup>
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
</startup>
<userSettings>
<JmpDevService.Properties.Settings>
<setting name="URL" serializeAs="String">
<value>http://192.168.3.102:5000</value>
</setting>
</JmpDevService.Properties.Settings>
</userSettings>
</configuration>
\ No newline at end of file
namespace JmpDevService
{
partial class DevService
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region 组件设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要修改
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
components = new System.ComponentModel.Container();
this.ServiceName = "Service1";
}
#endregion
}
}
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{D5C6DF70-52AE-46F4-9145-2AF8E5AFF78D}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>JmpDevService</RootNamespace>
<AssemblyName>JmpDevService</AssemblyName>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<StartupObject />
</PropertyGroup>
<ItemGroup>
<Reference Include="JmpDehumidifierLib, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>bin\Debug\JmpDehumidifierLib.dll</HintPath>
</Reference>
<Reference Include="LitJSON, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>bin\Debug\LitJSON.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Configuration.Install" />
<Reference Include="System.Core" />
<Reference Include="System.Management" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.ServiceProcess" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="DevService.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="DevService.Designer.cs">
<DependentUpon>DevService.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="ProjectInstaller.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="ProjectInstaller.Designer.cs">
<DependentUpon>ProjectInstaller.cs</DependentUpon>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
<DependentUpon>Settings.settings</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include=".NETFramework,Version=v4.6.1">
<Visible>False</Visible>
<ProductName>Microsoft .NET Framework 4.6.1 %28x86 和 x64%29</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>false</Install>
</BootstrapperPackage>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="ProjectInstaller.resx">
<DependentUpon>ProjectInstaller.cs</DependentUpon>
</EmbeddedResource>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using System.Threading.Tasks;
namespace JmpDevService
{
static class Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
static void Main()
{
ServiceBase[] ServicesToRun;
ServicesToRun = new ServiceBase[]
{
new DevService()
};
ServiceBase.Run(ServicesToRun);
//DevService s1 = new DevService();
//s1.OnStart();
//Console.ReadKey();
}
}
}
namespace JmpDevService
{
partial class ProjectInstaller
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region 组件设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要修改
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.serviceProcessInstaller1 = new System.ServiceProcess.ServiceProcessInstaller();
this.serviceInstaller1 = new System.ServiceProcess.ServiceInstaller();
//
// serviceProcessInstaller1
//
this.serviceProcessInstaller1.Account = System.ServiceProcess.ServiceAccount.LocalSystem;
this.serviceProcessInstaller1.Password = null;
this.serviceProcessInstaller1.Username = null;
//
// serviceInstaller1
//
this.serviceInstaller1.Description = "除湿机服务";
this.serviceInstaller1.ServiceName = "DevService";
//
// ProjectInstaller
//
this.Installers.AddRange(new System.Configuration.Install.Installer[] {
this.serviceProcessInstaller1,
this.serviceInstaller1});
}
#endregion
private System.ServiceProcess.ServiceProcessInstaller serviceProcessInstaller1;
private System.ServiceProcess.ServiceInstaller serviceInstaller1;
}
}
\ No newline at end of file
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration.Install;
using System.Linq;
using System.Threading.Tasks;
namespace JmpDevService
{
[RunInstaller(true)]
public partial class ProjectInstaller : System.Configuration.Install.Installer
{
public ProjectInstaller()
{
InitializeComponent();
}
}
}
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="serviceProcessInstaller1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="serviceInstaller1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>208, 17</value>
</metadata>
<metadata name="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
</root>
\ No newline at end of file
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("JmpDevService")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft")]
[assembly: AssemblyProduct("JmpDevService")]
[assembly: AssemblyCopyright("Copyright © Microsoft 2020")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// 将 ComVisible 设置为 false 会使此程序集中的类型
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
//请将此类型的 ComVisible 特性设置为 true。
[assembly: ComVisible(false)]
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
[assembly: Guid("d5c6df70-52ae-46f4-9145-2af8e5aff78d")]
// 程序集的版本信息由下列四个值组成:
//
// 主版本
// 次版本
// 生成号
// 修订号
//
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace JmpDevService.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.5.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default {
get {
return defaultInstance;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("http://192.168.7.10:5000")]
public string URL {
get {
return ((string)(this["URL"]));
}
set {
this["URL"] = value;
}
}
}
}
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="JmpDevService.Properties" GeneratedClassName="Settings">
<Profiles />
<Settings>
<Setting Name="URL" Type="System.String" Scope="User">
<Value Profile="(Default)">http://192.168.7.10:5000</Value>
</Setting>
</Settings>
</SettingsFile>
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="ErikEJ.EntityFrameworkCore.DgmlBuilder" Version="3.1.1" />
<PackageReference Include="Microsoft.AspNetCore.Razor.Language" Version="5.0.17" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="5.0.17" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="5.0.17" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="5.0.17">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="3.1.8" />
<PackageReference Include="MySql.EntityFrameworkCore" Version="5.0.13" />
<PackageReference Include="MySqlConnector" Version="2.1.12" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
<PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="5.0.4" />
</ItemGroup>
</Project>
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("alipay_config")]
public partial class AlipayConfig
{
[Key]
[Column("id", TypeName = "int(11)")]
public int Id { get; set; }
[Column("app_id")]
[StringLength(255)]
public string AppId { get; set; }
[Column("charset")]
[StringLength(255)]
public string Charset { get; set; }
[Column("format")]
[StringLength(255)]
public string Format { get; set; }
[Column("gateway_url")]
[StringLength(255)]
public string GatewayUrl { get; set; }
[Column("notify_url")]
[StringLength(255)]
public string NotifyUrl { get; set; }
[Column("private_key")]
public string PrivateKey { get; set; }
[Column("public_key")]
public string PublicKey { get; set; }
[Column("return_url")]
[StringLength(255)]
public string ReturnUrl { get; set; }
[Column("sign_type")]
[StringLength(255)]
public string SignType { get; set; }
[Column("sys_service_provider_id")]
[StringLength(255)]
public string SysServiceProviderId { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("api_mqtt_message")]
[Index(nameof(Token), Name = "token")]
public partial class ApiMqttMessage
{
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
[Column("createTime", TypeName = "datetime")]
public DateTime? CreateTime { get; set; }
/// <summary>
/// 设备类型
/// </summary>
[Column("deviceType")]
[StringLength(255)]
public string DeviceType { get; set; }
/// <summary>
/// 设备编号
/// </summary>
[Column("deviceNo")]
[StringLength(255)]
public string DeviceNo { get; set; }
/// <summary>
/// 标题
/// </summary>
[Column("topic")]
[StringLength(255)]
public string Topic { get; set; }
/// <summary>
/// 内容
/// </summary>
[Column("payload", TypeName = "text")]
public string Payload { get; set; }
/// <summary>
/// 时间戳token
/// </summary>
[Column("token")]
public string Token { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Keyless]
[Table("base_charge")]
public partial class BaseCharge
{
[Required]
[Column("id")]
[StringLength(64)]
public string Id { get; set; }
[Required]
[Column("org_id")]
[StringLength(36)]
public string OrgId { get; set; }
[Required]
[Column("equ_name")]
[StringLength(64)]
public string EquName { get; set; }
[Required]
[Column("equ_code")]
[StringLength(36)]
public string EquCode { get; set; }
[Required]
[Column("epc")]
[StringLength(128)]
public string Epc { get; set; }
[Column("startTime", TypeName = "datetime")]
public DateTime StartTime { get; set; }
[Column("endTime", TypeName = "datetime")]
public DateTime EndTime { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Keyless]
[Table("base_jp_app")]
[Index(nameof(AppKey), Name = "app_key", IsUnique = true)]
public partial class BaseJpApp
{
[Required]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
[Column("name")]
[StringLength(36)]
public string Name { get; set; }
[Column("app_key")]
[StringLength(36)]
public string AppKey { get; set; }
[Column("secret_key")]
[StringLength(36)]
public string SecretKey { get; set; }
[Column("app_type")]
[StringLength(2)]
public string AppType { get; set; }
[Column("create_time", TypeName = "datetime")]
public DateTime? CreateTime { get; set; }
[Column("state")]
public bool? State { get; set; }
[Column("access_token")]
[StringLength(36)]
public string AccessToken { get; set; }
[Column("refresh_token")]
[StringLength(36)]
public string RefreshToken { get; set; }
[Column("expiration_time", TypeName = "datetime")]
public DateTime? ExpirationTime { get; set; }
[Column("org_code")]
[StringLength(36)]
public string OrgCode { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("base_jp_bag")]
[Index(nameof(OrgId), Name = "orgId")]
public partial class BaseJpBag
{
public BaseJpBag()
{
BaseJpBagMaps = new HashSet<BaseJpBagMap>();
CommonJpBagInventories = new HashSet<CommonJpBagInventory>();
CommonJpModelBags = new HashSet<CommonJpModelBag>();
}
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
[Column("orgId")]
[StringLength(36)]
public string OrgId { get; set; }
[Column("create_time", TypeName = "datetime")]
public DateTime? CreateTime { get; set; }
[Column("update_time", TypeName = "datetime")]
public DateTime? UpdateTime { get; set; }
[Column("name")]
[StringLength(128)]
public string Name { get; set; }
[Column("num", TypeName = "int(11)")]
public int? Num { get; set; }
[Column("is_delete")]
public bool? IsDelete { get; set; }
[ForeignKey(nameof(OrgId))]
[InverseProperty(nameof(BaseJpOrganization.BaseJpBags))]
public virtual BaseJpOrganization Org { get; set; }
[InverseProperty(nameof(BaseJpBagMap.Bag))]
public virtual ICollection<BaseJpBagMap> BaseJpBagMaps { get; set; }
[InverseProperty(nameof(CommonJpBagInventory.Bag))]
public virtual ICollection<CommonJpBagInventory> CommonJpBagInventories { get; set; }
[InverseProperty(nameof(CommonJpModelBag.Bag))]
public virtual ICollection<CommonJpModelBag> CommonJpModelBags { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("base_jp_bag_map")]
[Index(nameof(BagId), Name = "bag_id")]
[Index(nameof(DetailId), Name = "detail_id")]
public partial class BaseJpBagMap
{
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
[Column("create_time", TypeName = "datetime")]
public DateTime? CreateTime { get; set; }
[Column("update_time", TypeName = "datetime")]
public DateTime? UpdateTime { get; set; }
[Column("bag_id")]
[StringLength(36)]
public string BagId { get; set; }
[Column("detail_id")]
[StringLength(36)]
public string DetailId { get; set; }
[Column("count", TypeName = "int(11)")]
public int? Count { get; set; }
[ForeignKey(nameof(BagId))]
[InverseProperty(nameof(BaseJpBag.BaseJpBagMaps))]
public virtual BaseJpBag Bag { get; set; }
[ForeignKey(nameof(DetailId))]
[InverseProperty(nameof(BaseJpEquipmentDetail.BaseJpBagMaps))]
public virtual BaseJpEquipmentDetail Detail { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("base_jp_cabinet")]
[Index(nameof(OrganizationId), Name = "organization_id")]
public partial class BaseJpCabinet
{
public BaseJpCabinet()
{
BaseJpCabinetPolicemen = new HashSet<BaseJpCabinetPoliceman>();
BaseJpPolicemen = new HashSet<BaseJpPoliceman>();
CommonJpEquipmentInventories = new HashSet<CommonJpEquipmentInventory>();
CommonJpEquipmentStateCabinetIdIntoNavigations = new HashSet<CommonJpEquipmentState>();
CommonJpEquipmentStateCabinetIdOutNavigations = new HashSet<CommonJpEquipmentState>();
}
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
[Column(TypeName = "int(11)")]
public int? Sort { get; set; }
[Required]
[Column("cabinet_real_num")]
[StringLength(36)]
public string CabinetRealNum { get; set; }
[Required]
[Column("cabinet_num")]
[StringLength(36)]
public string CabinetNum { get; set; }
[Column("cabinet_child_num", TypeName = "int(11)")]
public int CabinetChildNum { get; set; }
[Column("organization_id")]
[StringLength(36)]
public string OrganizationId { get; set; }
[Column("location")]
[StringLength(64)]
public string Location { get; set; }
[Column("short_name")]
[StringLength(64)]
public string ShortName { get; set; }
[Column("state", TypeName = "int(11)")]
public int? State { get; set; }
[Column("use_time", TypeName = "datetime")]
public DateTime? UseTime { get; set; }
[Column("buy_time", TypeName = "datetime")]
public DateTime? BuyTime { get; set; }
[Column("type", TypeName = "int(11)")]
public int? Type { get; set; }
[ForeignKey(nameof(OrganizationId))]
[InverseProperty(nameof(BaseJpOrganization.BaseJpCabinets))]
public virtual BaseJpOrganization Organization { get; set; }
[InverseProperty(nameof(BaseJpCabinetPoliceman.Cabinet))]
public virtual ICollection<BaseJpCabinetPoliceman> BaseJpCabinetPolicemen { get; set; }
[InverseProperty(nameof(BaseJpPoliceman.Cabinet))]
public virtual ICollection<BaseJpPoliceman> BaseJpPolicemen { get; set; }
[InverseProperty(nameof(CommonJpEquipmentInventory.Cabinet))]
public virtual ICollection<CommonJpEquipmentInventory> CommonJpEquipmentInventories { get; set; }
[InverseProperty(nameof(CommonJpEquipmentState.CabinetIdIntoNavigation))]
public virtual ICollection<CommonJpEquipmentState> CommonJpEquipmentStateCabinetIdIntoNavigations { get; set; }
[InverseProperty(nameof(CommonJpEquipmentState.CabinetIdOutNavigation))]
public virtual ICollection<CommonJpEquipmentState> CommonJpEquipmentStateCabinetIdOutNavigations { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("base_jp_cabinet_outinlog")]
[Index(nameof(OrganizationId), Name = "organization_id")]
public partial class BaseJpCabinetOutinlog
{
[Key]
[Column("id")]
[StringLength(64)]
public string Id { get; set; }
[Column("state")]
[StringLength(64)]
public string State { get; set; }
[Column("userName")]
[StringLength(64)]
public string UserName { get; set; }
[Column("boxNum")]
[StringLength(64)]
public string BoxNum { get; set; }
[Column("name")]
[StringLength(64)]
public string Name { get; set; }
[Column("count")]
[StringLength(64)]
public string Count { get; set; }
[Column("time")]
[StringLength(64)]
public string Time { get; set; }
[Column("photo")]
[StringLength(255)]
public string Photo { get; set; }
[Column("epc")]
[StringLength(64)]
public string Epc { get; set; }
[Column("deviceNo")]
[StringLength(64)]
public string DeviceNo { get; set; }
[Column("pushTime", TypeName = "datetime")]
public DateTime? PushTime { get; set; }
[Column("operationTime", TypeName = "datetime")]
public DateTime? OperationTime { get; set; }
[Column("organization_id")]
[StringLength(36)]
public string OrganizationId { get; set; }
[ForeignKey(nameof(OrganizationId))]
[InverseProperty(nameof(BaseJpOrganization.BaseJpCabinetOutinlogs))]
public virtual BaseJpOrganization Organization { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("base_jp_cabinet_policeman")]
[Index(nameof(CabinetId), Name = "cabinet_id")]
[Index(nameof(PolicemanId), Name = "policeman_id")]
public partial class BaseJpCabinetPoliceman
{
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
[Column("policeman_id")]
[StringLength(36)]
public string PolicemanId { get; set; }
[Column("cabinet_id")]
[StringLength(36)]
public string CabinetId { get; set; }
[Column("update_time", TypeName = "datetime")]
public DateTime? UpdateTime { get; set; }
[ForeignKey(nameof(CabinetId))]
[InverseProperty(nameof(BaseJpCabinet.BaseJpCabinetPolicemen))]
public virtual BaseJpCabinet Cabinet { get; set; }
[ForeignKey(nameof(PolicemanId))]
[InverseProperty(nameof(BaseJpPoliceman.BaseJpCabinetPolicemen))]
public virtual BaseJpPoliceman Policeman { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("base_jp_cabinet_policeman_multiple")]
public partial class BaseJpCabinetPolicemanMultiple
{
[Key]
[Column("id")]
[StringLength(64)]
public string Id { get; set; }
[Column("cabinetRealID")]
[StringLength(64)]
public string CabinetRealId { get; set; }
[Column("boxNo")]
[StringLength(64)]
public string BoxNo { get; set; }
[Column("userName")]
[StringLength(64)]
public string UserName { get; set; }
[Column("userId")]
[StringLength(64)]
public string UserId { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("base_jp_cabinet_worklog")]
public partial class BaseJpCabinetWorklog
{
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
[Column("type")]
[StringLength(50)]
public string Type { get; set; }
[Column("name")]
[StringLength(60)]
public string Name { get; set; }
[Column("logInfo")]
[StringLength(128)]
public string LogInfo { get; set; }
[Column("date")]
[StringLength(50)]
public string Date { get; set; }
[Column("photo")]
[StringLength(50)]
public string Photo { get; set; }
[Column("isDeal")]
[StringLength(50)]
public string IsDeal { get; set; }
[Column("deviceNo")]
[StringLength(50)]
public string DeviceNo { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("base_jp_equipment_detail")]
[Index(nameof(Code), Name = "UQ__base_jp___357D4CF97AE516C8", IsUnique = true)]
[Index(nameof(Id), Name = "_dta_index_base_jp_equipment_detail_8_773577794__K1_3_4")]
[Index(nameof(EquipmentId), Name = "equipment_id")]
public partial class BaseJpEquipmentDetail
{
public BaseJpEquipmentDetail()
{
BaseJpBagMaps = new HashSet<BaseJpBagMap>();
BaseJpEquipmentSizes = new HashSet<BaseJpEquipmentSize>();
BaseJpSupplierEquipments = new HashSet<BaseJpSupplierEquipment>();
CommonJpBorrowReturnDetailEstimates = new HashSet<CommonJpBorrowReturnDetailEstimate>();
CommonJpBorrowReturnDetailRealities = new HashSet<CommonJpBorrowReturnDetailReality>();
CommonJpChannelMonitorRecordInventories = new HashSet<CommonJpChannelMonitorRecordInventory>();
CommonJpEquipmentBoxMarks = new HashSet<CommonJpEquipmentBoxMark>();
CommonJpEquipmentInventories = new HashSet<CommonJpEquipmentInventory>();
CommonJpEquipmentThresholds = new HashSet<CommonJpEquipmentThreshold>();
CommonJpFixReceiveApplyDetails = new HashSet<CommonJpFixReceiveApplyDetail>();
CommonJpFixUselessDetails = new HashSet<CommonJpFixUselessDetail>();
CommonJpInventoryReturnApplyDetails = new HashSet<CommonJpInventoryReturnApplyDetail>();
CommonJpInventoryTables = new HashSet<CommonJpInventoryTable>();
CommonJpModelBags = new HashSet<CommonJpModelBag>();
CommonJpPurchaseDetails = new HashSet<CommonJpPurchaseDetail>();
CommonJpTransferDetailEstimates = new HashSet<CommonJpTransferDetailEstimate>();
CommonJpTransferDetailRealities = new HashSet<CommonJpTransferDetailReality>();
}
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
[Column(TypeName = "int(11)")]
public int? Sort { get; set; }
[Required]
[Column("equipment_id")]
[StringLength(36)]
public string EquipmentId { get; set; }
[Required]
[Column("name")]
[StringLength(64)]
public string Name { get; set; }
[Column("type")]
[StringLength(36)]
public string Type { get; set; }
[Column("unit")]
[StringLength(36)]
public string Unit { get; set; }
[Column("note", TypeName = "text")]
public string Note { get; set; }
[Column("state")]
[StringLength(36)]
public string State { get; set; }
[Column("create_time", TypeName = "datetime")]
public DateTime CreateTime { get; set; }
[Column("update_time", TypeName = "datetime")]
public DateTime UpdateTime { get; set; }
[Required]
[Column("update_user")]
[StringLength(36)]
public string UpdateUser { get; set; }
[Column("code")]
[StringLength(36)]
public string Code { get; set; }
/// <summary>
/// 别名
/// </summary>
[Column("alias_name")]
[StringLength(255)]
public string AliasName { get; set; }
/// <summary>
/// 物资单位
/// </summary>
[Column("unit_type")]
[StringLength(255)]
public string UnitType { get; set; }
[ForeignKey(nameof(EquipmentId))]
[InverseProperty(nameof(BaseJpEquipmentInfo.BaseJpEquipmentDetails))]
public virtual BaseJpEquipmentInfo Equipment { get; set; }
[InverseProperty(nameof(BaseJpBagMap.Detail))]
public virtual ICollection<BaseJpBagMap> BaseJpBagMaps { get; set; }
[InverseProperty(nameof(BaseJpEquipmentSize.Detail))]
public virtual ICollection<BaseJpEquipmentSize> BaseJpEquipmentSizes { get; set; }
[InverseProperty(nameof(BaseJpSupplierEquipment.Equipment))]
public virtual ICollection<BaseJpSupplierEquipment> BaseJpSupplierEquipments { get; set; }
[InverseProperty(nameof(CommonJpBorrowReturnDetailEstimate.Equipment))]
public virtual ICollection<CommonJpBorrowReturnDetailEstimate> CommonJpBorrowReturnDetailEstimates { get; set; }
[InverseProperty(nameof(CommonJpBorrowReturnDetailReality.EquipmentDetail))]
public virtual ICollection<CommonJpBorrowReturnDetailReality> CommonJpBorrowReturnDetailRealities { get; set; }
[InverseProperty(nameof(CommonJpChannelMonitorRecordInventory.Equipment))]
public virtual ICollection<CommonJpChannelMonitorRecordInventory> CommonJpChannelMonitorRecordInventories { get; set; }
[InverseProperty(nameof(CommonJpEquipmentBoxMark.EquipmentDetail))]
public virtual ICollection<CommonJpEquipmentBoxMark> CommonJpEquipmentBoxMarks { get; set; }
[InverseProperty(nameof(CommonJpEquipmentInventory.EquipmentCodeNavigation))]
public virtual ICollection<CommonJpEquipmentInventory> CommonJpEquipmentInventories { get; set; }
[InverseProperty(nameof(CommonJpEquipmentThreshold.EquipmentDetail))]
public virtual ICollection<CommonJpEquipmentThreshold> CommonJpEquipmentThresholds { get; set; }
[InverseProperty(nameof(CommonJpFixReceiveApplyDetail.Equipment))]
public virtual ICollection<CommonJpFixReceiveApplyDetail> CommonJpFixReceiveApplyDetails { get; set; }
[InverseProperty(nameof(CommonJpFixUselessDetail.Equipment))]
public virtual ICollection<CommonJpFixUselessDetail> CommonJpFixUselessDetails { get; set; }
[InverseProperty(nameof(CommonJpInventoryReturnApplyDetail.Equipment))]
public virtual ICollection<CommonJpInventoryReturnApplyDetail> CommonJpInventoryReturnApplyDetails { get; set; }
[InverseProperty(nameof(CommonJpInventoryTable.Detail))]
public virtual ICollection<CommonJpInventoryTable> CommonJpInventoryTables { get; set; }
[InverseProperty(nameof(CommonJpModelBag.Equipment))]
public virtual ICollection<CommonJpModelBag> CommonJpModelBags { get; set; }
[InverseProperty(nameof(CommonJpPurchaseDetail.Equipment))]
public virtual ICollection<CommonJpPurchaseDetail> CommonJpPurchaseDetails { get; set; }
[InverseProperty(nameof(CommonJpTransferDetailEstimate.EquipmentDetail))]
public virtual ICollection<CommonJpTransferDetailEstimate> CommonJpTransferDetailEstimates { get; set; }
[InverseProperty(nameof(CommonJpTransferDetailReality.EquipmentDetail))]
public virtual ICollection<CommonJpTransferDetailReality> CommonJpTransferDetailRealities { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("base_jp_equipment_info")]
[Index(nameof(ParentId), Name = "parent_id")]
public partial class BaseJpEquipmentInfo
{
public BaseJpEquipmentInfo()
{
BaseJpEquipmentDetails = new HashSet<BaseJpEquipmentDetail>();
CommonJpEquipmentHistories = new HashSet<CommonJpEquipmentHistory>();
CommonJpTempEquipments = new HashSet<CommonJpTempEquipment>();
InverseParent = new HashSet<BaseJpEquipmentInfo>();
}
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
[Column(TypeName = "int(11)")]
public int? Sort { get; set; }
[Required]
[Column("name")]
[StringLength(36)]
public string Name { get; set; }
[Column("parent_id")]
[StringLength(36)]
public string ParentId { get; set; }
[Required]
[Column("code")]
[StringLength(36)]
public string Code { get; set; }
[Column("create_time", TypeName = "datetime")]
public DateTime? CreateTime { get; set; }
[Column("update_time", TypeName = "datetime")]
public DateTime? UpdateTime { get; set; }
[Column("update_user")]
[StringLength(64)]
public string UpdateUser { get; set; }
[ForeignKey(nameof(ParentId))]
[InverseProperty(nameof(BaseJpEquipmentInfo.InverseParent))]
public virtual BaseJpEquipmentInfo Parent { get; set; }
[InverseProperty(nameof(BaseJpEquipmentDetail.Equipment))]
public virtual ICollection<BaseJpEquipmentDetail> BaseJpEquipmentDetails { get; set; }
[InverseProperty(nameof(CommonJpEquipmentHistory.EquipmentCodeNavigation))]
public virtual ICollection<CommonJpEquipmentHistory> CommonJpEquipmentHistories { get; set; }
[InverseProperty(nameof(CommonJpTempEquipment.Equipment))]
public virtual ICollection<CommonJpTempEquipment> CommonJpTempEquipments { get; set; }
[InverseProperty(nameof(BaseJpEquipmentInfo.Parent))]
public virtual ICollection<BaseJpEquipmentInfo> InverseParent { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("base_jp_equipment_size")]
[Index(nameof(DetailId), Name = "detail_id")]
public partial class BaseJpEquipmentSize
{
public BaseJpEquipmentSize()
{
CommonJpBorrowReturnDetailEstimates = new HashSet<CommonJpBorrowReturnDetailEstimate>();
CommonJpBorrowReturnDetailRealities = new HashSet<CommonJpBorrowReturnDetailReality>();
CommonJpChannelMonitorRecordInventories = new HashSet<CommonJpChannelMonitorRecordInventory>();
CommonJpEquipmentBoxMarks = new HashSet<CommonJpEquipmentBoxMark>();
CommonJpEquipmentInventories = new HashSet<CommonJpEquipmentInventory>();
CommonJpEquipmentThresholds = new HashSet<CommonJpEquipmentThreshold>();
CommonJpFixReceiveApplyDetails = new HashSet<CommonJpFixReceiveApplyDetail>();
CommonJpFixUselessDetails = new HashSet<CommonJpFixUselessDetail>();
CommonJpInventoryReturnApplyDetails = new HashSet<CommonJpInventoryReturnApplyDetail>();
CommonJpInventoryTables = new HashSet<CommonJpInventoryTable>();
CommonJpPurchaseDetails = new HashSet<CommonJpPurchaseDetail>();
CommonJpTransferDetailEstimates = new HashSet<CommonJpTransferDetailEstimate>();
CommonJpTransferDetailRealities = new HashSet<CommonJpTransferDetailReality>();
}
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
[Column("size_code", TypeName = "int(11)")]
public int? SizeCode { get; set; }
[Column("size_name")]
[StringLength(64)]
public string SizeName { get; set; }
[Column("create_time", TypeName = "datetime")]
public DateTime CreateTime { get; set; }
[Column("update_user")]
[StringLength(64)]
public string UpdateUser { get; set; }
[Column("detail_id")]
[StringLength(36)]
public string DetailId { get; set; }
[Column("note", TypeName = "text")]
public string Note { get; set; }
[Column("update_time", TypeName = "datetime")]
public DateTime UpdateTime { get; set; }
[Column("epc_type", TypeName = "int(11)")]
public int? EpcType { get; set; }
[ForeignKey(nameof(DetailId))]
[InverseProperty(nameof(BaseJpEquipmentDetail.BaseJpEquipmentSizes))]
public virtual BaseJpEquipmentDetail Detail { get; set; }
[InverseProperty(nameof(CommonJpBorrowReturnDetailEstimate.Size))]
public virtual ICollection<CommonJpBorrowReturnDetailEstimate> CommonJpBorrowReturnDetailEstimates { get; set; }
[InverseProperty(nameof(CommonJpBorrowReturnDetailReality.Size))]
public virtual ICollection<CommonJpBorrowReturnDetailReality> CommonJpBorrowReturnDetailRealities { get; set; }
[InverseProperty(nameof(CommonJpChannelMonitorRecordInventory.Size))]
public virtual ICollection<CommonJpChannelMonitorRecordInventory> CommonJpChannelMonitorRecordInventories { get; set; }
[InverseProperty(nameof(CommonJpEquipmentBoxMark.Size))]
public virtual ICollection<CommonJpEquipmentBoxMark> CommonJpEquipmentBoxMarks { get; set; }
[InverseProperty(nameof(CommonJpEquipmentInventory.EquipmentSizecodeNavigation))]
public virtual ICollection<CommonJpEquipmentInventory> CommonJpEquipmentInventories { get; set; }
[InverseProperty(nameof(CommonJpEquipmentThreshold.EquipmentSize))]
public virtual ICollection<CommonJpEquipmentThreshold> CommonJpEquipmentThresholds { get; set; }
[InverseProperty(nameof(CommonJpFixReceiveApplyDetail.Size))]
public virtual ICollection<CommonJpFixReceiveApplyDetail> CommonJpFixReceiveApplyDetails { get; set; }
[InverseProperty(nameof(CommonJpFixUselessDetail.Size))]
public virtual ICollection<CommonJpFixUselessDetail> CommonJpFixUselessDetails { get; set; }
[InverseProperty(nameof(CommonJpInventoryReturnApplyDetail.Size))]
public virtual ICollection<CommonJpInventoryReturnApplyDetail> CommonJpInventoryReturnApplyDetails { get; set; }
[InverseProperty(nameof(CommonJpInventoryTable.Size))]
public virtual ICollection<CommonJpInventoryTable> CommonJpInventoryTables { get; set; }
[InverseProperty(nameof(CommonJpPurchaseDetail.Size))]
public virtual ICollection<CommonJpPurchaseDetail> CommonJpPurchaseDetails { get; set; }
[InverseProperty(nameof(CommonJpTransferDetailEstimate.EquipmentSize))]
public virtual ICollection<CommonJpTransferDetailEstimate> CommonJpTransferDetailEstimates { get; set; }
[InverseProperty(nameof(CommonJpTransferDetailReality.Size))]
public virtual ICollection<CommonJpTransferDetailReality> CommonJpTransferDetailRealities { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("base_jp_key_value")]
public partial class BaseJpKeyValue
{
[Key]
[Column("key")]
public string Key { get; set; }
[Column("value", TypeName = "text")]
public string Value { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("base_jp_log")]
public partial class BaseJpLog
{
[Key]
[Column("id", TypeName = "int(11)")]
public int Id { get; set; }
[Column("create_time", TypeName = "datetime")]
public DateTime? CreateTime { get; set; }
[Column("description", TypeName = "text")]
public string Description { get; set; }
[Column("exception_detail")]
[StringLength(255)]
public string ExceptionDetail { get; set; }
[Column("log_type")]
[StringLength(255)]
public string LogType { get; set; }
[Column("method")]
[StringLength(255)]
public string Method { get; set; }
[Column("params", TypeName = "text")]
public string Params { get; set; }
[Column("request_ip")]
[StringLength(255)]
public string RequestIp { get; set; }
[Column("time", TypeName = "int(11)")]
public int? Time { get; set; }
[Column("username")]
[StringLength(255)]
public string Username { get; set; }
[Column("address")]
[StringLength(255)]
public string Address { get; set; }
[Column("browser")]
[StringLength(255)]
public string Browser { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("base_jp_model")]
[Index(nameof(OrgId), Name = "org_id")]
public partial class BaseJpModel
{
public BaseJpModel()
{
CommonJpMisssionChildren = new HashSet<CommonJpMisssionChild>();
CommonJpModelBags = new HashSet<CommonJpModelBag>();
}
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
[Column("name")]
[StringLength(128)]
public string Name { get; set; }
[Column("create_time", TypeName = "datetime")]
public DateTime? CreateTime { get; set; }
[Column("isdefault")]
public bool? Isdefault { get; set; }
[Column("org_id")]
[StringLength(36)]
public string OrgId { get; set; }
[Column("update_time", TypeName = "datetime")]
public DateTime? UpdateTime { get; set; }
[ForeignKey(nameof(OrgId))]
[InverseProperty(nameof(BaseJpOrganization.BaseJpModels))]
public virtual BaseJpOrganization Org { get; set; }
[InverseProperty(nameof(CommonJpMisssionChild.Model))]
public virtual ICollection<CommonJpMisssionChild> CommonJpMisssionChildren { get; set; }
[InverseProperty(nameof(CommonJpModelBag.Model))]
public virtual ICollection<CommonJpModelBag> CommonJpModelBags { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("base_jp_organization")]
[Index(nameof(Code), nameof(State), Name = "_dta_index_base_jp_organization_8_837578022__K3D_K8")]
[Index(nameof(State), Name = "_dta_index_base_jp_organization_8_837578022__K8")]
public partial class BaseJpOrganization
{
public BaseJpOrganization()
{
BaseJpBags = new HashSet<BaseJpBag>();
BaseJpCabinetOutinlogs = new HashSet<BaseJpCabinetOutinlog>();
BaseJpCabinets = new HashSet<BaseJpCabinet>();
BaseJpModels = new HashSet<BaseJpModel>();
BaseJpPolicemen = new HashSet<BaseJpPoliceman>();
BaseJpWarehouses = new HashSet<BaseJpWarehouse>();
CommonJpBorrowReturnApplies = new HashSet<CommonJpBorrowReturnApply>();
CommonJpBorrowReturns = new HashSet<CommonJpBorrowReturn>();
CommonJpChannelMonitorRecords = new HashSet<CommonJpChannelMonitorRecord>();
CommonJpEquipmentStates = new HashSet<CommonJpEquipmentState>();
CommonJpEquipmentThresholds = new HashSet<CommonJpEquipmentThreshold>();
CommonJpFixReceiveApplies = new HashSet<CommonJpFixReceiveApply>();
CommonJpFixUselesses = new HashSet<CommonJpFixUseless>();
CommonJpInventoryReturnApplies = new HashSet<CommonJpInventoryReturnApply>();
CommonJpInventoryTables = new HashSet<CommonJpInventoryTable>();
CommonJpLogs = new HashSet<CommonJpLog>();
CommonJpMissions = new HashSet<CommonJpMission>();
CommonJpPurchaseOrders = new HashSet<CommonJpPurchaseOrder>();
CommonJpTransferApplyTargets = new HashSet<CommonJpTransferApply>();
CommonJpTransferApplyTransfers = new HashSet<CommonJpTransferApply>();
CommonJpTransferReceiveOrgizations = new HashSet<CommonJpTransfer>();
CommonJpTransferSendOrgizations = new HashSet<CommonJpTransfer>();
CommonJpUsers = new HashSet<CommonJpUser>();
}
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
[Required]
[Column("name")]
[StringLength(255)]
public string Name { get; set; }
[Required]
[Column("code")]
[StringLength(36)]
public string Code { get; set; }
[Column("create_time", TypeName = "datetime")]
public DateTime? CreateTime { get; set; }
[Column("update_time", TypeName = "datetime")]
public DateTime? UpdateTime { get; set; }
[Column("find_code")]
[StringLength(10)]
public string FindCode { get; set; }
[Column("area_name")]
[StringLength(128)]
public string AreaName { get; set; }
[Column("state", TypeName = "smallint(6)")]
public short? State { get; set; }
[Column("parent_id")]
[StringLength(36)]
public string ParentId { get; set; }
[Column("name_jc")]
[StringLength(64)]
public string NameJc { get; set; }
[Column("d_name")]
[StringLength(64)]
public string DName { get; set; }
[Column("show")]
[StringLength(10)]
public string Show { get; set; }
[Column("is_map", TypeName = "smallint(6)")]
public short? IsMap { get; set; }
/// <summary>
/// 打印单据数量
/// </summary>
[Column("order_count", TypeName = "int(11)")]
public int? OrderCount { get; set; }
[InverseProperty(nameof(BaseJpBag.Org))]
public virtual ICollection<BaseJpBag> BaseJpBags { get; set; }
[InverseProperty(nameof(BaseJpCabinetOutinlog.Organization))]
public virtual ICollection<BaseJpCabinetOutinlog> BaseJpCabinetOutinlogs { get; set; }
[InverseProperty(nameof(BaseJpCabinet.Organization))]
public virtual ICollection<BaseJpCabinet> BaseJpCabinets { get; set; }
[InverseProperty(nameof(BaseJpModel.Org))]
public virtual ICollection<BaseJpModel> BaseJpModels { get; set; }
[InverseProperty(nameof(BaseJpPoliceman.OrgizationCodeNavigation))]
public virtual ICollection<BaseJpPoliceman> BaseJpPolicemen { get; set; }
[InverseProperty(nameof(BaseJpWarehouse.Orgization))]
public virtual ICollection<BaseJpWarehouse> BaseJpWarehouses { get; set; }
[InverseProperty(nameof(CommonJpBorrowReturnApply.Org))]
public virtual ICollection<CommonJpBorrowReturnApply> CommonJpBorrowReturnApplies { get; set; }
[InverseProperty(nameof(CommonJpBorrowReturn.Org))]
public virtual ICollection<CommonJpBorrowReturn> CommonJpBorrowReturns { get; set; }
[InverseProperty(nameof(CommonJpChannelMonitorRecord.Org))]
public virtual ICollection<CommonJpChannelMonitorRecord> CommonJpChannelMonitorRecords { get; set; }
[InverseProperty(nameof(CommonJpEquipmentState.Org))]
public virtual ICollection<CommonJpEquipmentState> CommonJpEquipmentStates { get; set; }
[InverseProperty(nameof(CommonJpEquipmentThreshold.Org))]
public virtual ICollection<CommonJpEquipmentThreshold> CommonJpEquipmentThresholds { get; set; }
[InverseProperty(nameof(CommonJpFixReceiveApply.Org))]
public virtual ICollection<CommonJpFixReceiveApply> CommonJpFixReceiveApplies { get; set; }
[InverseProperty(nameof(CommonJpFixUseless.Org))]
public virtual ICollection<CommonJpFixUseless> CommonJpFixUselesses { get; set; }
[InverseProperty(nameof(CommonJpInventoryReturnApply.Org))]
public virtual ICollection<CommonJpInventoryReturnApply> CommonJpInventoryReturnApplies { get; set; }
[InverseProperty(nameof(CommonJpInventoryTable.Org))]
public virtual ICollection<CommonJpInventoryTable> CommonJpInventoryTables { get; set; }
[InverseProperty(nameof(CommonJpLog.OrganizationCodeNavigation))]
public virtual ICollection<CommonJpLog> CommonJpLogs { get; set; }
[InverseProperty(nameof(CommonJpMission.Org))]
public virtual ICollection<CommonJpMission> CommonJpMissions { get; set; }
[InverseProperty(nameof(CommonJpPurchaseOrder.Org))]
public virtual ICollection<CommonJpPurchaseOrder> CommonJpPurchaseOrders { get; set; }
[InverseProperty(nameof(CommonJpTransferApply.Target))]
public virtual ICollection<CommonJpTransferApply> CommonJpTransferApplyTargets { get; set; }
[InverseProperty(nameof(CommonJpTransferApply.Transfer))]
public virtual ICollection<CommonJpTransferApply> CommonJpTransferApplyTransfers { get; set; }
[InverseProperty(nameof(CommonJpTransfer.ReceiveOrgization))]
public virtual ICollection<CommonJpTransfer> CommonJpTransferReceiveOrgizations { get; set; }
[InverseProperty(nameof(CommonJpTransfer.SendOrgization))]
public virtual ICollection<CommonJpTransfer> CommonJpTransferSendOrgizations { get; set; }
[InverseProperty(nameof(CommonJpUser.Organization))]
public virtual ICollection<CommonJpUser> CommonJpUsers { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("base_jp_policefinger")]
[Index(nameof(PoliceId), Name = "police_id")]
public partial class BaseJpPolicefinger
{
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
[Column("police_id")]
[StringLength(36)]
public string PoliceId { get; set; }
[Column("finger_info")]
public string FingerInfo { get; set; }
[Column("type")]
[StringLength(10)]
public string Type { get; set; }
[Column("finger_num", TypeName = "int(11)")]
public int? FingerNum { get; set; }
[ForeignKey(nameof(PoliceId))]
[InverseProperty(nameof(BaseJpPoliceman.BaseJpPolicefingers))]
public virtual BaseJpPoliceman Police { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("base_jp_policeman")]
[Index(nameof(CabinetId), Name = "cabinet_id")]
[Index(nameof(OrgizationCode), Name = "orgization_code")]
public partial class BaseJpPoliceman
{
public BaseJpPoliceman()
{
BaseJpCabinetPolicemen = new HashSet<BaseJpCabinetPoliceman>();
BaseJpPolicefingers = new HashSet<BaseJpPolicefinger>();
CommonJpBorrowReturnApplyApplies = new HashSet<CommonJpBorrowReturnApply>();
CommonJpBorrowReturnApplyApprovalPersonNavigations = new HashSet<CommonJpBorrowReturnApply>();
CommonJpBorrowReturns = new HashSet<CommonJpBorrowReturn>();
CommonJpChannelMonitorRecords = new HashSet<CommonJpChannelMonitorRecord>();
CommonJpEquipmentHistories = new HashSet<CommonJpEquipmentHistory>();
CommonJpEquipmentInventories = new HashSet<CommonJpEquipmentInventory>();
CommonJpEquipmentStates = new HashSet<CommonJpEquipmentState>();
CommonJpTransferApplyApplies = new HashSet<CommonJpTransferApply>();
CommonJpTransferApplyApprovalPersonNavigations = new HashSet<CommonJpTransferApply>();
CommonJpUsers = new HashSet<CommonJpUser>();
}
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
[Column(TypeName = "int(11)")]
public int? Sort { get; set; }
[Required]
[Column("name")]
[StringLength(64)]
public string Name { get; set; }
[Column("cabinet_id")]
[StringLength(36)]
public string CabinetId { get; set; }
[Column("orgization_code")]
[StringLength(36)]
public string OrgizationCode { get; set; }
[Required]
[Column("police_code")]
[StringLength(36)]
public string PoliceCode { get; set; }
[Column("sex")]
[StringLength(3)]
public string Sex { get; set; }
[Column("finger_info2")]
public string FingerInfo2 { get; set; }
[Column("finger_info1")]
public string FingerInfo1 { get; set; }
[Column("face_info")]
public string FaceInfo { get; set; }
[Column("password")]
[StringLength(64)]
public string Password { get; set; }
[Column("photo")]
[StringLength(128)]
public string Photo { get; set; }
[Required]
[Column("phone")]
[StringLength(36)]
public string Phone { get; set; }
[Column("create_time", TypeName = "datetime")]
public DateTime CreateTime { get; set; }
[Column("update_time", TypeName = "datetime")]
public DateTime UpdateTime { get; set; }
[Required]
[Column("update_user")]
[StringLength(64)]
public string UpdateUser { get; set; }
[Required]
public bool? IsCreatedAccount { get; set; }
[Column("cardNo")]
[StringLength(255)]
public string CardNo { get; set; }
[ForeignKey(nameof(CabinetId))]
[InverseProperty(nameof(BaseJpCabinet.BaseJpPolicemen))]
public virtual BaseJpCabinet Cabinet { get; set; }
[ForeignKey(nameof(OrgizationCode))]
[InverseProperty(nameof(BaseJpOrganization.BaseJpPolicemen))]
public virtual BaseJpOrganization OrgizationCodeNavigation { get; set; }
[InverseProperty(nameof(BaseJpCabinetPoliceman.Policeman))]
public virtual ICollection<BaseJpCabinetPoliceman> BaseJpCabinetPolicemen { get; set; }
[InverseProperty(nameof(BaseJpPolicefinger.Police))]
public virtual ICollection<BaseJpPolicefinger> BaseJpPolicefingers { get; set; }
[InverseProperty(nameof(CommonJpBorrowReturnApply.Apply))]
public virtual ICollection<CommonJpBorrowReturnApply> CommonJpBorrowReturnApplyApplies { get; set; }
[InverseProperty(nameof(CommonJpBorrowReturnApply.ApprovalPersonNavigation))]
public virtual ICollection<CommonJpBorrowReturnApply> CommonJpBorrowReturnApplyApprovalPersonNavigations { get; set; }
[InverseProperty(nameof(CommonJpBorrowReturn.Policeman))]
public virtual ICollection<CommonJpBorrowReturn> CommonJpBorrowReturns { get; set; }
[InverseProperty(nameof(CommonJpChannelMonitorRecord.Police))]
public virtual ICollection<CommonJpChannelMonitorRecord> CommonJpChannelMonitorRecords { get; set; }
[InverseProperty(nameof(CommonJpEquipmentHistory.OperatorNavigation))]
public virtual ICollection<CommonJpEquipmentHistory> CommonJpEquipmentHistories { get; set; }
[InverseProperty(nameof(CommonJpEquipmentInventory.PoliceCodeNavigation))]
public virtual ICollection<CommonJpEquipmentInventory> CommonJpEquipmentInventories { get; set; }
[InverseProperty(nameof(CommonJpEquipmentState.Police))]
public virtual ICollection<CommonJpEquipmentState> CommonJpEquipmentStates { get; set; }
[InverseProperty(nameof(CommonJpTransferApply.Apply))]
public virtual ICollection<CommonJpTransferApply> CommonJpTransferApplyApplies { get; set; }
[InverseProperty(nameof(CommonJpTransferApply.ApprovalPersonNavigation))]
public virtual ICollection<CommonJpTransferApply> CommonJpTransferApplyApprovalPersonNavigations { get; set; }
[InverseProperty(nameof(CommonJpUser.Police))]
public virtual ICollection<CommonJpUser> CommonJpUsers { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("base_jp_process")]
public partial class BaseJpProcess
{
[Key]
[Column("id")]
[StringLength(32)]
public string Id { get; set; }
[Column("name")]
[StringLength(36)]
public string Name { get; set; }
[Column("code")]
[StringLength(36)]
public string Code { get; set; }
[Column("description")]
[StringLength(255)]
public string Description { get; set; }
[Column("publish_status")]
public bool PublishStatus { get; set; }
[Column("process_xml")]
public string ProcessXml { get; set; }
[Column("create_time", TypeName = "datetime")]
public DateTime? CreateTime { get; set; }
[Column("update_time", TypeName = "datetime")]
public DateTime? UpdateTime { get; set; }
[Column("org_id")]
[StringLength(36)]
public string OrgId { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("base_jp_shelf_info")]
[Index(nameof(WarehouseId), Name = "warehouseId")]
public partial class BaseJpShelfInfo
{
public BaseJpShelfInfo()
{
CommonJpEquipmentInventories = new HashSet<CommonJpEquipmentInventory>();
CommonJpInventoryTables = new HashSet<CommonJpInventoryTable>();
}
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
[Column("create_time", TypeName = "datetime")]
public DateTime? CreateTime { get; set; }
[Column("name")]
[StringLength(255)]
public string Name { get; set; }
[Column("code")]
[StringLength(255)]
public string Code { get; set; }
[Column("type")]
[StringLength(255)]
public string Type { get; set; }
[Column("warehouseId")]
[StringLength(36)]
public string WarehouseId { get; set; }
[Column("shelf_size")]
[StringLength(255)]
public string ShelfSize { get; set; }
[Column("row", TypeName = "int(11)")]
public int? Row { get; set; }
[Column("column", TypeName = "int(11)")]
public int? Column { get; set; }
[Column("url")]
[StringLength(255)]
public string Url { get; set; }
[Column("range", TypeName = "int(11)")]
public int? Range { get; set; }
[ForeignKey(nameof(WarehouseId))]
[InverseProperty(nameof(BaseJpWarehouse.BaseJpShelfInfos))]
public virtual BaseJpWarehouse Warehouse { get; set; }
[InverseProperty(nameof(CommonJpEquipmentInventory.Shelf))]
public virtual ICollection<CommonJpEquipmentInventory> CommonJpEquipmentInventories { get; set; }
[InverseProperty(nameof(CommonJpInventoryTable.Shelf))]
public virtual ICollection<CommonJpInventoryTable> CommonJpInventoryTables { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("base_jp_soft_update")]
public partial class BaseJpSoftUpdate
{
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
[Column("name")]
[StringLength(36)]
public string Name { get; set; }
[Column("address")]
[StringLength(250)]
public string Address { get; set; }
[Column("note")]
[StringLength(255)]
public string Note { get; set; }
[Column("sort")]
[StringLength(125)]
public string Sort { get; set; }
[Column("version", TypeName = "int(11)")]
public int? Version { get; set; }
[Column("updateTime", TypeName = "datetime")]
public DateTime? UpdateTime { get; set; }
[Column("appCode")]
[StringLength(50)]
public string AppCode { get; set; }
[Column("version2")]
[StringLength(255)]
public string Version2 { get; set; }
[Column("fileMD5")]
[StringLength(255)]
public string FileMd5 { get; set; }
[Column("isAutoUpdate")]
public bool? IsAutoUpdate { get; set; }
[Column("autoUpdateAddress")]
[StringLength(255)]
public string AutoUpdateAddress { get; set; }
[Column("autoUpdateFileMD5")]
[StringLength(255)]
public string AutoUpdateFileMd5 { get; set; }
[Column("autoUpdateVersion2")]
[StringLength(255)]
public string AutoUpdateVersion2 { get; set; }
[Column("type")]
[StringLength(255)]
public string Type { get; set; }
}
}
\ No newline at end of file
using JmpModel.Model.DataContext;
using JunmpPoliceStation.Models.Repository;
namespace JmpModel.Model
{
public class BaseJpSoftUpdateRepository : BaseRepository<BaseJpSoftUpdate>
{
public BaseJpSoftUpdateRepository(JunmppolicesqlContext context) : base(context)
{
}
}
}
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("base_jp_supplier")]
public partial class BaseJpSupplier
{
public BaseJpSupplier()
{
BaseJpSupplierEquipments = new HashSet<BaseJpSupplierEquipment>();
CommonJpBorrowReturnDetailEstimates = new HashSet<CommonJpBorrowReturnDetailEstimate>();
CommonJpBorrowReturnDetailRealities = new HashSet<CommonJpBorrowReturnDetailReality>();
CommonJpChannelMonitorRecordInventories = new HashSet<CommonJpChannelMonitorRecordInventory>();
CommonJpEquipmentBoxMarks = new HashSet<CommonJpEquipmentBoxMark>();
CommonJpEquipmentInventories = new HashSet<CommonJpEquipmentInventory>();
CommonJpFixReceiveApplyDetails = new HashSet<CommonJpFixReceiveApplyDetail>();
CommonJpFixUselessDetails = new HashSet<CommonJpFixUselessDetail>();
CommonJpInventoryReturnApplyDetails = new HashSet<CommonJpInventoryReturnApplyDetail>();
CommonJpPurchaseDetails = new HashSet<CommonJpPurchaseDetail>();
CommonJpPurchaseEpcs = new HashSet<CommonJpPurchaseEpc>();
CommonJpTransferDetailEstimates = new HashSet<CommonJpTransferDetailEstimate>();
CommonJpTransferDetailRealities = new HashSet<CommonJpTransferDetailReality>();
}
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
[Column(TypeName = "int(11)")]
public int? Sort { get; set; }
[Required]
[Column("name")]
[StringLength(64)]
public string Name { get; set; }
[Column("supplier_code")]
[StringLength(36)]
public string SupplierCode { get; set; }
[Column("short_name")]
[StringLength(64)]
public string ShortName { get; set; }
[Column("create_time", TypeName = "datetime")]
public DateTime CreateTime { get; set; }
[Column("update_time", TypeName = "datetime")]
public DateTime? UpdateTime { get; set; }
[Column("update_user")]
[StringLength(64)]
public string UpdateUser { get; set; }
[Column("contacts")]
[StringLength(64)]
public string Contacts { get; set; }
[Column("phone")]
[StringLength(20)]
public string Phone { get; set; }
[InverseProperty(nameof(BaseJpSupplierEquipment.SupplierCodeNavigation))]
public virtual ICollection<BaseJpSupplierEquipment> BaseJpSupplierEquipments { get; set; }
[InverseProperty(nameof(CommonJpBorrowReturnDetailEstimate.Supplier))]
public virtual ICollection<CommonJpBorrowReturnDetailEstimate> CommonJpBorrowReturnDetailEstimates { get; set; }
[InverseProperty(nameof(CommonJpBorrowReturnDetailReality.Supplier))]
public virtual ICollection<CommonJpBorrowReturnDetailReality> CommonJpBorrowReturnDetailRealities { get; set; }
[InverseProperty(nameof(CommonJpChannelMonitorRecordInventory.Supplier))]
public virtual ICollection<CommonJpChannelMonitorRecordInventory> CommonJpChannelMonitorRecordInventories { get; set; }
[InverseProperty(nameof(CommonJpEquipmentBoxMark.Supplier))]
public virtual ICollection<CommonJpEquipmentBoxMark> CommonJpEquipmentBoxMarks { get; set; }
[InverseProperty(nameof(CommonJpEquipmentInventory.SupplierCodeNavigation))]
public virtual ICollection<CommonJpEquipmentInventory> CommonJpEquipmentInventories { get; set; }
[InverseProperty(nameof(CommonJpFixReceiveApplyDetail.Supplier))]
public virtual ICollection<CommonJpFixReceiveApplyDetail> CommonJpFixReceiveApplyDetails { get; set; }
[InverseProperty(nameof(CommonJpFixUselessDetail.Supplier))]
public virtual ICollection<CommonJpFixUselessDetail> CommonJpFixUselessDetails { get; set; }
[InverseProperty(nameof(CommonJpInventoryReturnApplyDetail.Supplier))]
public virtual ICollection<CommonJpInventoryReturnApplyDetail> CommonJpInventoryReturnApplyDetails { get; set; }
[InverseProperty(nameof(CommonJpPurchaseDetail.Supplier))]
public virtual ICollection<CommonJpPurchaseDetail> CommonJpPurchaseDetails { get; set; }
[InverseProperty(nameof(CommonJpPurchaseEpc.Supplier))]
public virtual ICollection<CommonJpPurchaseEpc> CommonJpPurchaseEpcs { get; set; }
[InverseProperty(nameof(CommonJpTransferDetailEstimate.Supplier))]
public virtual ICollection<CommonJpTransferDetailEstimate> CommonJpTransferDetailEstimates { get; set; }
[InverseProperty(nameof(CommonJpTransferDetailReality.Supplier))]
public virtual ICollection<CommonJpTransferDetailReality> CommonJpTransferDetailRealities { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("base_jp_supplier_equipment")]
[Index(nameof(SupplierCode), Name = "supplier_code")]
public partial class BaseJpSupplierEquipment
{
[Required]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
[Column(TypeName = "int(11)")]
public int? Sort { get; set; }
[Key]
[Column("supplier_code")]
[StringLength(36)]
public string SupplierCode { get; set; }
[Key]
[Column("equipment_id")]
[StringLength(36)]
public string EquipmentId { get; set; }
[Column("state", TypeName = "int(11)")]
public int State { get; set; }
[Column("useless_uint")]
[StringLength(64)]
public string UselessUint { get; set; }
[Column("useless_time", TypeName = "int(11)")]
public int? UselessTime { get; set; }
[Column("create_time", TypeName = "datetime")]
public DateTime CreateTime { get; set; }
[Column("update_time", TypeName = "datetime")]
public DateTime UpdateTime { get; set; }
[Required]
[Column("update_user")]
[StringLength(64)]
public string UpdateUser { get; set; }
[Column("num", TypeName = "int(11)")]
public int? Num { get; set; }
[ForeignKey(nameof(EquipmentId))]
[InverseProperty(nameof(BaseJpEquipmentDetail.BaseJpSupplierEquipments))]
public virtual BaseJpEquipmentDetail Equipment { get; set; }
[ForeignKey(nameof(SupplierCode))]
[InverseProperty(nameof(BaseJpSupplier.BaseJpSupplierEquipments))]
public virtual BaseJpSupplier SupplierCodeNavigation { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("base_jp_warehouse")]
[Index(nameof(OrgizationId), Name = "orgization_id")]
public partial class BaseJpWarehouse
{
public BaseJpWarehouse()
{
BaseJpShelfInfos = new HashSet<BaseJpShelfInfo>();
BaseJpWarehouseDevHistories = new HashSet<BaseJpWarehouseDevHistory>();
BaseJpWarehouseDevs = new HashSet<BaseJpWarehouseDev>();
CommonJpBagInventories = new HashSet<CommonJpBagInventory>();
CommonJpBorrowReturnApplies = new HashSet<CommonJpBorrowReturnApply>();
CommonJpBorrowReturns = new HashSet<CommonJpBorrowReturn>();
CommonJpChannelCfgV2s = new HashSet<CommonJpChannelCfgV2>();
CommonJpChannelCfgs = new HashSet<CommonJpChannelCfg>();
CommonJpChannelMonitorRecords = new HashSet<CommonJpChannelMonitorRecord>();
CommonJpEquipmentBoxMarks = new HashSet<CommonJpEquipmentBoxMark>();
CommonJpEquipmentHistories = new HashSet<CommonJpEquipmentHistory>();
CommonJpEquipmentInventories = new HashSet<CommonJpEquipmentInventory>();
CommonJpEquipmentStates = new HashSet<CommonJpEquipmentState>();
CommonJpEquipmentThresholds = new HashSet<CommonJpEquipmentThreshold>();
CommonJpFixReceiveApplies = new HashSet<CommonJpFixReceiveApply>();
CommonJpFixUselesses = new HashSet<CommonJpFixUseless>();
CommonJpInventoryDetails = new HashSet<CommonJpInventoryDetail>();
CommonJpInventoryReturnApplies = new HashSet<CommonJpInventoryReturnApply>();
CommonJpInventoryTables = new HashSet<CommonJpInventoryTable>();
CommonJpLogs = new HashSet<CommonJpLog>();
CommonJpMissions = new HashSet<CommonJpMission>();
CommonJpPurchaseOrderTargetWarehouses = new HashSet<CommonJpPurchaseOrder>();
CommonJpPurchaseOrderWarehouses = new HashSet<CommonJpPurchaseOrder>();
CommonJpTransferApplies = new HashSet<CommonJpTransferApply>();
CommonJpTransferDetailRealityReceivedWarehouses = new HashSet<CommonJpTransferDetailReality>();
CommonJpTransferDetailRealityWarehouses = new HashSet<CommonJpTransferDetailReality>();
CommonJpTransferReceiveWarehouses = new HashSet<CommonJpTransfer>();
CommonJpTransferSendWarehouses = new HashSet<CommonJpTransfer>();
}
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
[Column(TypeName = "int(11)")]
public int? Sort { get; set; }
[Required]
[Column("name")]
[StringLength(36)]
public string Name { get; set; }
[Column("location")]
[StringLength(128)]
public string Location { get; set; }
[Column("location_detail")]
[StringLength(128)]
public string LocationDetail { get; set; }
[Required]
[Column("orgization_id")]
[StringLength(36)]
public string OrgizationId { get; set; }
[Column("phone")]
[StringLength(36)]
public string Phone { get; set; }
[Column("create_time", TypeName = "datetime")]
public DateTime CreateTime { get; set; }
[Column("update_time", TypeName = "datetime")]
public DateTime UpdateTime { get; set; }
[Column("update_user")]
[StringLength(64)]
public string UpdateUser { get; set; }
[Column("is_locked")]
public bool? IsLocked { get; set; }
[Column("camera_url")]
[StringLength(255)]
public string CameraUrl { get; set; }
/// <summary>
/// 通道读取装备类型json
/// </summary>
[Column("channel_read_equ_type_json", TypeName = "text")]
public string ChannelReadEquTypeJson { get; set; }
/// <summary>
/// 是否启用通道读取指定类型装备
/// </summary>
[Column("is_enable_channel_read_equ")]
public bool? IsEnableChannelReadEqu { get; set; }
[ForeignKey(nameof(OrgizationId))]
[InverseProperty(nameof(BaseJpOrganization.BaseJpWarehouses))]
public virtual BaseJpOrganization Orgization { get; set; }
[InverseProperty(nameof(BaseJpShelfInfo.Warehouse))]
public virtual ICollection<BaseJpShelfInfo> BaseJpShelfInfos { get; set; }
[InverseProperty(nameof(BaseJpWarehouseDevHistory.Warehouse))]
public virtual ICollection<BaseJpWarehouseDevHistory> BaseJpWarehouseDevHistories { get; set; }
[InverseProperty(nameof(BaseJpWarehouseDev.Warehouse))]
public virtual ICollection<BaseJpWarehouseDev> BaseJpWarehouseDevs { get; set; }
[InverseProperty(nameof(CommonJpBagInventory.Warehouse))]
public virtual ICollection<CommonJpBagInventory> CommonJpBagInventories { get; set; }
[InverseProperty(nameof(CommonJpBorrowReturnApply.Warehouse))]
public virtual ICollection<CommonJpBorrowReturnApply> CommonJpBorrowReturnApplies { get; set; }
[InverseProperty(nameof(CommonJpBorrowReturn.Warehouse))]
public virtual ICollection<CommonJpBorrowReturn> CommonJpBorrowReturns { get; set; }
[InverseProperty(nameof(CommonJpChannelCfgV2.Warehouse))]
public virtual ICollection<CommonJpChannelCfgV2> CommonJpChannelCfgV2s { get; set; }
[InverseProperty(nameof(CommonJpChannelCfg.Warehouse))]
public virtual ICollection<CommonJpChannelCfg> CommonJpChannelCfgs { get; set; }
[InverseProperty(nameof(CommonJpChannelMonitorRecord.Warehouse))]
public virtual ICollection<CommonJpChannelMonitorRecord> CommonJpChannelMonitorRecords { get; set; }
[InverseProperty(nameof(CommonJpEquipmentBoxMark.Warehouse))]
public virtual ICollection<CommonJpEquipmentBoxMark> CommonJpEquipmentBoxMarks { get; set; }
[InverseProperty(nameof(CommonJpEquipmentHistory.WarehouseNavigation))]
public virtual ICollection<CommonJpEquipmentHistory> CommonJpEquipmentHistories { get; set; }
[InverseProperty(nameof(CommonJpEquipmentInventory.WarehouseCodeNavigation))]
public virtual ICollection<CommonJpEquipmentInventory> CommonJpEquipmentInventories { get; set; }
[InverseProperty(nameof(CommonJpEquipmentState.Warehouse))]
public virtual ICollection<CommonJpEquipmentState> CommonJpEquipmentStates { get; set; }
[InverseProperty(nameof(CommonJpEquipmentThreshold.Warehouse))]
public virtual ICollection<CommonJpEquipmentThreshold> CommonJpEquipmentThresholds { get; set; }
[InverseProperty(nameof(CommonJpFixReceiveApply.Warehouse))]
public virtual ICollection<CommonJpFixReceiveApply> CommonJpFixReceiveApplies { get; set; }
[InverseProperty(nameof(CommonJpFixUseless.Warehouse))]
public virtual ICollection<CommonJpFixUseless> CommonJpFixUselesses { get; set; }
[InverseProperty(nameof(CommonJpInventoryDetail.Warehouse))]
public virtual ICollection<CommonJpInventoryDetail> CommonJpInventoryDetails { get; set; }
[InverseProperty(nameof(CommonJpInventoryReturnApply.Warehouse))]
public virtual ICollection<CommonJpInventoryReturnApply> CommonJpInventoryReturnApplies { get; set; }
[InverseProperty(nameof(CommonJpInventoryTable.Warehouse))]
public virtual ICollection<CommonJpInventoryTable> CommonJpInventoryTables { get; set; }
[InverseProperty(nameof(CommonJpLog.WareHouseCodeNavigation))]
public virtual ICollection<CommonJpLog> CommonJpLogs { get; set; }
[InverseProperty(nameof(CommonJpMission.Warehouse))]
public virtual ICollection<CommonJpMission> CommonJpMissions { get; set; }
[InverseProperty(nameof(CommonJpPurchaseOrder.TargetWarehouse))]
public virtual ICollection<CommonJpPurchaseOrder> CommonJpPurchaseOrderTargetWarehouses { get; set; }
[InverseProperty(nameof(CommonJpPurchaseOrder.Warehouse))]
public virtual ICollection<CommonJpPurchaseOrder> CommonJpPurchaseOrderWarehouses { get; set; }
[InverseProperty(nameof(CommonJpTransferApply.TransferWarehouseNavigation))]
public virtual ICollection<CommonJpTransferApply> CommonJpTransferApplies { get; set; }
[InverseProperty(nameof(CommonJpTransferDetailReality.ReceivedWarehouse))]
public virtual ICollection<CommonJpTransferDetailReality> CommonJpTransferDetailRealityReceivedWarehouses { get; set; }
[InverseProperty(nameof(CommonJpTransferDetailReality.Warehouse))]
public virtual ICollection<CommonJpTransferDetailReality> CommonJpTransferDetailRealityWarehouses { get; set; }
[InverseProperty(nameof(CommonJpTransfer.ReceiveWarehouse))]
public virtual ICollection<CommonJpTransfer> CommonJpTransferReceiveWarehouses { get; set; }
[InverseProperty(nameof(CommonJpTransfer.SendWarehouse))]
public virtual ICollection<CommonJpTransfer> CommonJpTransferSendWarehouses { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("base_jp_warehouse_dev")]
[Index(nameof(WarehouseId), Name = "warehouse_id")]
public partial class BaseJpWarehouseDev
{
[Key]
[Column("dev_id")]
[StringLength(36)]
public string DevId { get; set; }
[Column("warehouse_id")]
[StringLength(36)]
public string WarehouseId { get; set; }
[Column("dev_ip")]
[StringLength(20)]
public string DevIp { get; set; }
[Column("dev_port", TypeName = "int(11)")]
public int? DevPort { get; set; }
[Column("dev_name")]
[StringLength(255)]
public string DevName { get; set; }
[Column("dev_code")]
[StringLength(255)]
public string DevCode { get; set; }
[Column("warehouse_sd")]
public double? WarehouseSd { get; set; }
[Column("warehouse_wd")]
public double? WarehouseWd { get; set; }
[Column("dev_state", TypeName = "int(11)")]
public int? DevState { get; set; }
[Column("set_sd")]
[StringLength(36)]
public string SetSd { get; set; }
[ForeignKey(nameof(WarehouseId))]
[InverseProperty(nameof(BaseJpWarehouse.BaseJpWarehouseDevs))]
public virtual BaseJpWarehouse Warehouse { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("base_jp_warehouse_dev_history")]
[Index(nameof(WarehouseId), Name = "warehouse_id")]
public partial class BaseJpWarehouseDevHistory
{
[Key]
[Column("dev_id")]
[StringLength(36)]
public string DevId { get; set; }
[Column("warehouse_id")]
[StringLength(36)]
public string WarehouseId { get; set; }
[Column("dev_ip")]
[StringLength(20)]
public string DevIp { get; set; }
[Column("dev_port", TypeName = "int(11)")]
public int? DevPort { get; set; }
[Column("dev_name")]
[StringLength(255)]
public string DevName { get; set; }
[Column("dev_code")]
[StringLength(255)]
public string DevCode { get; set; }
[Column("warehouse_sd")]
public double? WarehouseSd { get; set; }
[Column("warehouse_wd")]
public double? WarehouseWd { get; set; }
[Column("dev_state", TypeName = "int(11)")]
public int? DevState { get; set; }
[Column("update_time", TypeName = "datetime")]
public DateTime UpdateTime { get; set; }
[ForeignKey(nameof(WarehouseId))]
[InverseProperty(nameof(BaseJpWarehouse.BaseJpWarehouseDevHistories))]
public virtual BaseJpWarehouse Warehouse { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Keyless]
[Table("c_area_list")]
public partial class CAreaList
{
[Column("findCode")]
[StringLength(50)]
public string FindCode { get; set; }
[Column("areaName")]
[StringLength(50)]
public string AreaName { get; set; }
[Column("sumCount", TypeName = "int(11)")]
public int? SumCount { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Keyless]
[Table("c_sy_p")]
public partial class CSyP
{
[Column("parentName")]
[StringLength(50)]
public string ParentName { get; set; }
[Column("weekP")]
public double? WeekP { get; set; }
[Column("monthP")]
public double? MonthP { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("column_config")]
public partial class ColumnConfig
{
[Key]
[Column("id", TypeName = "int(11)")]
public int Id { get; set; }
[Column("column_name")]
[StringLength(255)]
public string ColumnName { get; set; }
[Column("column_type")]
[StringLength(255)]
public string ColumnType { get; set; }
[Column("date_annotation")]
[StringLength(255)]
public string DateAnnotation { get; set; }
[Column("dict_name")]
[StringLength(255)]
public string DictName { get; set; }
[Column("extra")]
[StringLength(255)]
public string Extra { get; set; }
[Column("form_show")]
public bool? FormShow { get; set; }
[Column("form_type")]
[StringLength(255)]
public string FormType { get; set; }
[Column("key_type")]
[StringLength(255)]
public string KeyType { get; set; }
[Column("list_show")]
public bool? ListShow { get; set; }
[Column("not_null")]
public bool? NotNull { get; set; }
[Column("query_type")]
[StringLength(255)]
public string QueryType { get; set; }
[Column("remark")]
[StringLength(255)]
public string Remark { get; set; }
[Column("table_name")]
[StringLength(255)]
public string TableName { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("common_jp_bag_inventory")]
[Index(nameof(BagId), Name = "bag_id")]
[Index(nameof(WarehouseId), Name = "warehouse_id")]
public partial class CommonJpBagInventory
{
public CommonJpBagInventory()
{
CommonJpEquipmentInventories = new HashSet<CommonJpEquipmentInventory>();
CommonJpEquipmentStates = new HashSet<CommonJpEquipmentState>();
}
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
[Column("create_time", TypeName = "datetime")]
public DateTime? CreateTime { get; set; }
[Column("update_time", TypeName = "datetime")]
public DateTime? UpdateTime { get; set; }
[Column("epc")]
[StringLength(255)]
public string Epc { get; set; }
[Column("bag_id")]
[StringLength(36)]
public string BagId { get; set; }
[Column("print_state", TypeName = "int(11)")]
public int? PrintState { get; set; }
[Column("number", TypeName = "int(11)")]
public int? Number { get; set; }
[Column("need_number", TypeName = "int(11)")]
public int? NeedNumber { get; set; }
[Column("warehouse_id")]
[StringLength(36)]
public string WarehouseId { get; set; }
[Column("is_delete")]
public bool? IsDelete { get; set; }
[Column("state", TypeName = "int(11)")]
public int State { get; set; }
[ForeignKey(nameof(BagId))]
[InverseProperty(nameof(BaseJpBag.CommonJpBagInventories))]
public virtual BaseJpBag Bag { get; set; }
[ForeignKey(nameof(WarehouseId))]
[InverseProperty(nameof(BaseJpWarehouse.CommonJpBagInventories))]
public virtual BaseJpWarehouse Warehouse { get; set; }
[InverseProperty(nameof(CommonJpEquipmentInventory.BagInventory))]
public virtual ICollection<CommonJpEquipmentInventory> CommonJpEquipmentInventories { get; set; }
[InverseProperty(nameof(CommonJpEquipmentState.BagInventory))]
public virtual ICollection<CommonJpEquipmentState> CommonJpEquipmentStates { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("common_jp_borrow_return")]
[Index(nameof(ApplyId), Name = "apply_id")]
[Index(nameof(OrgId), Name = "org_id")]
[Index(nameof(PolicemanId), Name = "policeman_id")]
[Index(nameof(WarehouseId), Name = "warehouse_id")]
public partial class CommonJpBorrowReturn
{
public CommonJpBorrowReturn()
{
CommonJpBorrowReturnDetailRealities = new HashSet<CommonJpBorrowReturnDetailReality>();
}
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
[Column(TypeName = "int(11)")]
public int? Sort { get; set; }
[Column("policeman_id")]
[StringLength(36)]
public string PolicemanId { get; set; }
[Column("current_state", TypeName = "int(11)")]
public int CurrentState { get; set; }
[Column("action_type", TypeName = "int(11)")]
public int? ActionType { get; set; }
[Column("warehouse_id")]
[StringLength(36)]
public string WarehouseId { get; set; }
[Column("out_time", TypeName = "datetime")]
public DateTime? OutTime { get; set; }
[Required]
[Column("order_code")]
[StringLength(36)]
public string OrderCode { get; set; }
[Column("org_id")]
[StringLength(36)]
public string OrgId { get; set; }
[Column("create_user")]
[StringLength(64)]
public string CreateUser { get; set; }
[Column("create_time", TypeName = "datetime")]
public DateTime CreateTime { get; set; }
[Column("apply_id")]
[StringLength(36)]
public string ApplyId { get; set; }
[Column("isAfter")]
public bool? IsAfter { get; set; }
[Required]
[Column("is_work")]
public bool? IsWork { get; set; }
[Column("update_user")]
[StringLength(36)]
public string UpdateUser { get; set; }
[ForeignKey(nameof(ApplyId))]
[InverseProperty(nameof(CommonJpBorrowReturnApply.CommonJpBorrowReturns))]
public virtual CommonJpBorrowReturnApply Apply { get; set; }
[ForeignKey(nameof(OrgId))]
[InverseProperty(nameof(BaseJpOrganization.CommonJpBorrowReturns))]
public virtual BaseJpOrganization Org { get; set; }
[ForeignKey(nameof(PolicemanId))]
[InverseProperty(nameof(BaseJpPoliceman.CommonJpBorrowReturns))]
public virtual BaseJpPoliceman Policeman { get; set; }
[ForeignKey(nameof(WarehouseId))]
[InverseProperty(nameof(BaseJpWarehouse.CommonJpBorrowReturns))]
public virtual BaseJpWarehouse Warehouse { get; set; }
[InverseProperty(nameof(CommonJpBorrowReturnDetailReality.Reality))]
public virtual ICollection<CommonJpBorrowReturnDetailReality> CommonJpBorrowReturnDetailRealities { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("common_jp_borrow_return_apply")]
[Index(nameof(ApplyId), Name = "apply_id")]
[Index(nameof(ApprovalPerson), Name = "approval_person")]
[Index(nameof(OrgId), Name = "org_id")]
[Index(nameof(ProcessCurrentId), Name = "process_current_id")]
[Index(nameof(WarehouseId), Name = "warehouse_id")]
public partial class CommonJpBorrowReturnApply
{
public CommonJpBorrowReturnApply()
{
CommonJpBorrowReturnDetailEstimates = new HashSet<CommonJpBorrowReturnDetailEstimate>();
CommonJpBorrowReturnDetailRealities = new HashSet<CommonJpBorrowReturnDetailReality>();
CommonJpBorrowReturns = new HashSet<CommonJpBorrowReturn>();
}
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
[Column(TypeName = "int(11)")]
public int? Sort { get; set; }
[Required]
[Column("org_id")]
[StringLength(36)]
public string OrgId { get; set; }
[Column("action_type", TypeName = "int(11)")]
public int ActionType { get; set; }
[Column("apply_id")]
[StringLength(36)]
public string ApplyId { get; set; }
[Column("return_time", TypeName = "datetime")]
public DateTime? ReturnTime { get; set; }
[Column("warehouse_id")]
[StringLength(36)]
public string WarehouseId { get; set; }
[Column("apply_time", TypeName = "datetime")]
public DateTime? ApplyTime { get; set; }
[Column("approval_result", TypeName = "int(11)")]
public int? ApprovalResult { get; set; }
[Column("approval_person")]
[StringLength(36)]
public string ApprovalPerson { get; set; }
[Column("approval_time", TypeName = "datetime")]
public DateTime? ApprovalTime { get; set; }
[Column("approval_msg", TypeName = "text")]
public string ApprovalMsg { get; set; }
[Required]
[Column("order_code")]
[StringLength(64)]
public string OrderCode { get; set; }
[Column("note")]
[StringLength(255)]
public string Note { get; set; }
[Column("create_time", TypeName = "datetime")]
public DateTime CreateTime { get; set; }
[Column("approval_user")]
[StringLength(36)]
public string ApprovalUser { get; set; }
[Column("approval_user_name")]
[StringLength(36)]
public string ApprovalUserName { get; set; }
[Column("apply_user")]
[StringLength(36)]
public string ApplyUser { get; set; }
[Column("apply_user_name")]
[StringLength(36)]
public string ApplyUserName { get; set; }
[Column("isAfter")]
public bool? IsAfter { get; set; }
[Column("expectedReturnTime", TypeName = "date")]
public DateTime? ExpectedReturnTime { get; set; }
[Column("process_current_id")]
[StringLength(36)]
public string ProcessCurrentId { get; set; }
[Column("change_flag", TypeName = "int(11)")]
public int? ChangeFlag { get; set; }
[Column("police_note")]
public string PoliceNote { get; set; }
[ForeignKey(nameof(ApplyId))]
[InverseProperty(nameof(BaseJpPoliceman.CommonJpBorrowReturnApplyApplies))]
public virtual BaseJpPoliceman Apply { get; set; }
[ForeignKey(nameof(ApprovalPerson))]
[InverseProperty(nameof(BaseJpPoliceman.CommonJpBorrowReturnApplyApprovalPersonNavigations))]
public virtual BaseJpPoliceman ApprovalPersonNavigation { get; set; }
[ForeignKey(nameof(OrgId))]
[InverseProperty(nameof(BaseJpOrganization.CommonJpBorrowReturnApplies))]
public virtual BaseJpOrganization Org { get; set; }
[ForeignKey(nameof(ProcessCurrentId))]
[InverseProperty(nameof(CommonJpProcessCurrent.CommonJpBorrowReturnApplies))]
public virtual CommonJpProcessCurrent ProcessCurrent { get; set; }
[ForeignKey(nameof(WarehouseId))]
[InverseProperty(nameof(BaseJpWarehouse.CommonJpBorrowReturnApplies))]
public virtual BaseJpWarehouse Warehouse { get; set; }
[InverseProperty(nameof(CommonJpBorrowReturnDetailEstimate.Estimate))]
public virtual ICollection<CommonJpBorrowReturnDetailEstimate> CommonJpBorrowReturnDetailEstimates { get; set; }
[InverseProperty(nameof(CommonJpBorrowReturnDetailReality.Estimate))]
public virtual ICollection<CommonJpBorrowReturnDetailReality> CommonJpBorrowReturnDetailRealities { get; set; }
[InverseProperty(nameof(CommonJpBorrowReturn.Apply))]
public virtual ICollection<CommonJpBorrowReturn> CommonJpBorrowReturns { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("common_jp_borrow_return_detail_estimate")]
[Index(nameof(EquipmentId), Name = "equipment_id")]
[Index(nameof(EstimateId), Name = "estimate_id")]
[Index(nameof(SizeId), Name = "size_id")]
[Index(nameof(SupplierId), Name = "supplier_id")]
public partial class CommonJpBorrowReturnDetailEstimate
{
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
[Column(TypeName = "int(11)")]
public int? Sort { get; set; }
[Column("estimate_id")]
[StringLength(36)]
public string EstimateId { get; set; }
[Column("equipment_id")]
[StringLength(36)]
public string EquipmentId { get; set; }
[Column("equipment_count", TypeName = "int(11)")]
public int EquipmentCount { get; set; }
[Column("supplier_id")]
[StringLength(36)]
public string SupplierId { get; set; }
[Column("size_id")]
[StringLength(36)]
public string SizeId { get; set; }
[ForeignKey(nameof(EquipmentId))]
[InverseProperty(nameof(BaseJpEquipmentDetail.CommonJpBorrowReturnDetailEstimates))]
public virtual BaseJpEquipmentDetail Equipment { get; set; }
[ForeignKey(nameof(EstimateId))]
[InverseProperty(nameof(CommonJpBorrowReturnApply.CommonJpBorrowReturnDetailEstimates))]
public virtual CommonJpBorrowReturnApply Estimate { get; set; }
[ForeignKey(nameof(SizeId))]
[InverseProperty(nameof(BaseJpEquipmentSize.CommonJpBorrowReturnDetailEstimates))]
public virtual BaseJpEquipmentSize Size { get; set; }
[ForeignKey(nameof(SupplierId))]
[InverseProperty(nameof(BaseJpSupplier.CommonJpBorrowReturnDetailEstimates))]
public virtual BaseJpSupplier Supplier { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("common_jp_borrow_return_detail_reality")]
[Index(nameof(EquipmentDetailId), Name = "equipment_detail_id")]
[Index(nameof(EstimateId), Name = "estimate_id")]
[Index(nameof(RealityId), Name = "reality_id")]
[Index(nameof(SizeId), Name = "size_id")]
[Index(nameof(SupplierId), Name = "supplier_id")]
public partial class CommonJpBorrowReturnDetailReality
{
public CommonJpBorrowReturnDetailReality()
{
CommonJpEquipmentStates = new HashSet<CommonJpEquipmentState>();
}
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
[Column("reality_id")]
[StringLength(36)]
public string RealityId { get; set; }
[Column("estimate_id")]
[StringLength(36)]
public string EstimateId { get; set; }
[Column(TypeName = "int(11)")]
public int? Sort { get; set; }
[Column("state", TypeName = "int(11)")]
public int? State { get; set; }
[Column("equipment_count", TypeName = "int(11)")]
public int? EquipmentCount { get; set; }
[Column("equipment_detail_id")]
[StringLength(36)]
public string EquipmentDetailId { get; set; }
[Column("supplier_id")]
[StringLength(36)]
public string SupplierId { get; set; }
[Column("size_id")]
[StringLength(36)]
public string SizeId { get; set; }
[Column("real_count", TypeName = "int(11)")]
public int? RealCount { get; set; }
[Column("inside_real_count", TypeName = "int(11)")]
public int? InsideRealCount { get; set; }
[ForeignKey(nameof(EquipmentDetailId))]
[InverseProperty(nameof(BaseJpEquipmentDetail.CommonJpBorrowReturnDetailRealities))]
public virtual BaseJpEquipmentDetail EquipmentDetail { get; set; }
[ForeignKey(nameof(EstimateId))]
[InverseProperty(nameof(CommonJpBorrowReturnApply.CommonJpBorrowReturnDetailRealities))]
public virtual CommonJpBorrowReturnApply Estimate { get; set; }
[ForeignKey(nameof(RealityId))]
[InverseProperty(nameof(CommonJpBorrowReturn.CommonJpBorrowReturnDetailRealities))]
public virtual CommonJpBorrowReturn Reality { get; set; }
[ForeignKey(nameof(SizeId))]
[InverseProperty(nameof(BaseJpEquipmentSize.CommonJpBorrowReturnDetailRealities))]
public virtual BaseJpEquipmentSize Size { get; set; }
[ForeignKey(nameof(SupplierId))]
[InverseProperty(nameof(BaseJpSupplier.CommonJpBorrowReturnDetailRealities))]
public virtual BaseJpSupplier Supplier { get; set; }
[InverseProperty(nameof(CommonJpEquipmentState.Borrow))]
public virtual ICollection<CommonJpEquipmentState> CommonJpEquipmentStates { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("common_jp_channel_cfg")]
[Index(nameof(WarehouseId), Name = "warehouseId")]
public partial class CommonJpChannelCfg
{
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
[Column("code")]
[StringLength(255)]
public string Code { get; set; }
[Column("warehouseId")]
[StringLength(36)]
public string WarehouseId { get; set; }
[Column("location")]
[StringLength(255)]
public string Location { get; set; }
[Column("currentState")]
public bool? CurrentState { get; set; }
[Column("name")]
[StringLength(255)]
public string Name { get; set; }
[Column("createTime", TypeName = "datetime")]
public DateTime? CreateTime { get; set; }
[Column("updateUser")]
[StringLength(100)]
public string UpdateUser { get; set; }
[Column("faceUser")]
[StringLength(255)]
public string FaceUser { get; set; }
[Column("facePwd")]
[StringLength(255)]
public string FacePwd { get; set; }
[Column("facePort", TypeName = "int(11)")]
public int? FacePort { get; set; }
[Column("faceAddress")]
[StringLength(255)]
public string FaceAddress { get; set; }
[Column("readerTime", TypeName = "int(11)")]
public int? ReaderTime { get; set; }
[Column("faceEnable")]
public bool? FaceEnable { get; set; }
[Column("filterTime", TypeName = "int(11)")]
public int? FilterTime { get; set; }
[Column("readerAddress")]
[StringLength(255)]
public string ReaderAddress { get; set; }
[Column("camAddress")]
[StringLength(30)]
public string CamAddress { get; set; }
[Column("camPort", TypeName = "int(11)")]
public int? CamPort { get; set; }
[Column("camUser")]
[StringLength(30)]
public string CamUser { get; set; }
[Column("camPwd")]
[StringLength(50)]
public string CamPwd { get; set; }
[Column("useSnapshot")]
public bool? UseSnapshot { get; set; }
[Column("camType", TypeName = "int(11)")]
public int? CamType { get; set; }
[Column("camChannel", TypeName = "int(11)")]
public int? CamChannel { get; set; }
[Column("gpioAddr")]
[StringLength(255)]
public string GpioAddr { get; set; }
[Column("gpioPort", TypeName = "int(11)")]
public int? GpioPort { get; set; }
[Column("useGpio")]
public bool? UseGpio { get; set; }
[ForeignKey(nameof(WarehouseId))]
[InverseProperty(nameof(BaseJpWarehouse.CommonJpChannelCfgs))]
public virtual BaseJpWarehouse Warehouse { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("common_jp_channel_cfg_v2")]
[Index(nameof(WarehouseId), Name = "warehouseId")]
public partial class CommonJpChannelCfgV2
{
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
[Column("code")]
[StringLength(255)]
public string Code { get; set; }
[Column("warehouseId")]
[StringLength(36)]
public string WarehouseId { get; set; }
[Column("location")]
[StringLength(255)]
public string Location { get; set; }
[Column("currentState")]
public bool? CurrentState { get; set; }
[Column("name")]
[StringLength(255)]
public string Name { get; set; }
[Column("createTime", TypeName = "datetime")]
public DateTime? CreateTime { get; set; }
[Column("updateUser")]
[StringLength(100)]
public string UpdateUser { get; set; }
[Column("readerConfigJson")]
public string ReaderConfigJson { get; set; }
[Column("filterTime", TypeName = "int(11)")]
public int? FilterTime { get; set; }
[Column("faceConfigJson")]
public string FaceConfigJson { get; set; }
[ForeignKey(nameof(WarehouseId))]
[InverseProperty(nameof(BaseJpWarehouse.CommonJpChannelCfgV2s))]
public virtual BaseJpWarehouse Warehouse { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("common_jp_channel_monitor_record")]
[Index(nameof(OrgId), Name = "org_id")]
[Index(nameof(PoliceId), Name = "police_id")]
[Index(nameof(WarehouseId), Name = "warehouse_id")]
public partial class CommonJpChannelMonitorRecord
{
public CommonJpChannelMonitorRecord()
{
CommonJpChannelMonitorRecordInventories = new HashSet<CommonJpChannelMonitorRecordInventory>();
}
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
[Column("createTime", TypeName = "datetime")]
public DateTime? CreateTime { get; set; }
[Column("out_in_state", TypeName = "int(11)")]
public int? OutInState { get; set; }
[Column("warehouse_id")]
[StringLength(36)]
public string WarehouseId { get; set; }
[Column("org_id")]
[StringLength(36)]
public string OrgId { get; set; }
[Column("police_id")]
[StringLength(36)]
public string PoliceId { get; set; }
[Column("pic_url")]
[StringLength(255)]
public string PicUrl { get; set; }
[ForeignKey(nameof(OrgId))]
[InverseProperty(nameof(BaseJpOrganization.CommonJpChannelMonitorRecords))]
public virtual BaseJpOrganization Org { get; set; }
[ForeignKey(nameof(PoliceId))]
[InverseProperty(nameof(BaseJpPoliceman.CommonJpChannelMonitorRecords))]
public virtual BaseJpPoliceman Police { get; set; }
[ForeignKey(nameof(WarehouseId))]
[InverseProperty(nameof(BaseJpWarehouse.CommonJpChannelMonitorRecords))]
public virtual BaseJpWarehouse Warehouse { get; set; }
[InverseProperty(nameof(CommonJpChannelMonitorRecordInventory.Record))]
public virtual ICollection<CommonJpChannelMonitorRecordInventory> CommonJpChannelMonitorRecordInventories { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("common_jp_channel_monitor_record_inventory")]
[Index(nameof(EquipmentId), Name = "equipment_id")]
[Index(nameof(InventoryId), Name = "inventory_id")]
[Index(nameof(RecordId), Name = "record_id")]
[Index(nameof(SizeId), Name = "size_id")]
[Index(nameof(SupplierId), Name = "supplier_id")]
public partial class CommonJpChannelMonitorRecordInventory
{
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
[Column("createTime", TypeName = "datetime")]
public DateTime? CreateTime { get; set; }
[Column("record_id")]
[StringLength(36)]
public string RecordId { get; set; }
[Column("epc")]
[StringLength(128)]
public string Epc { get; set; }
[Column("supplier_id")]
[StringLength(36)]
public string SupplierId { get; set; }
[Column("equipment_id")]
[StringLength(36)]
public string EquipmentId { get; set; }
[Column("size_id")]
[StringLength(36)]
public string SizeId { get; set; }
[Column("inventory_id")]
[StringLength(36)]
public string InventoryId { get; set; }
/// <summary>
/// epc类型
/// 0:件标
/// 1:箱标
/// 2:装备包
/// </summary>
[Column("epc_type", TypeName = "int(11)")]
public int? EpcType { get; set; }
[ForeignKey(nameof(EquipmentId))]
[InverseProperty(nameof(BaseJpEquipmentDetail.CommonJpChannelMonitorRecordInventories))]
public virtual BaseJpEquipmentDetail Equipment { get; set; }
[ForeignKey(nameof(InventoryId))]
[InverseProperty(nameof(CommonJpEquipmentInventory.CommonJpChannelMonitorRecordInventories))]
public virtual CommonJpEquipmentInventory Inventory { get; set; }
[ForeignKey(nameof(RecordId))]
[InverseProperty(nameof(CommonJpChannelMonitorRecord.CommonJpChannelMonitorRecordInventories))]
public virtual CommonJpChannelMonitorRecord Record { get; set; }
[ForeignKey(nameof(SizeId))]
[InverseProperty(nameof(BaseJpEquipmentSize.CommonJpChannelMonitorRecordInventories))]
public virtual BaseJpEquipmentSize Size { get; set; }
[ForeignKey(nameof(SupplierId))]
[InverseProperty(nameof(BaseJpSupplier.CommonJpChannelMonitorRecordInventories))]
public virtual BaseJpSupplier Supplier { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("common_jp_epc_gscode")]
public partial class CommonJpEpcGscode
{
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
[Column("epc")]
[StringLength(128)]
public string Epc { get; set; }
[Column("gsCode")]
[StringLength(255)]
public string GsCode { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("common_jp_equipment_box_mark")]
[Index(nameof(EquipmentDetailId), Name = "equipmentDetailId")]
[Index(nameof(SizeId), Name = "sizeId")]
[Index(nameof(SupplierId), Name = "supplierId")]
[Index(nameof(WarehouseId), Name = "warehouseId")]
public partial class CommonJpEquipmentBoxMark
{
public CommonJpEquipmentBoxMark()
{
CommonJpEquipmentInventories = new HashSet<CommonJpEquipmentInventory>();
}
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
[Column("create_time", TypeName = "datetime")]
public DateTime? CreateTime { get; set; }
[Column("epc")]
[StringLength(128)]
public string Epc { get; set; }
[Column("oneBoxNum", TypeName = "int(11)")]
public int? OneBoxNum { get; set; }
[Column("equipmentDetailId")]
[StringLength(36)]
public string EquipmentDetailId { get; set; }
[Column("sizeId")]
[StringLength(36)]
public string SizeId { get; set; }
[Column("supplierId")]
[StringLength(36)]
public string SupplierId { get; set; }
[Column("currentState", TypeName = "int(11)")]
public int? CurrentState { get; set; }
[Column("warehouseId")]
[StringLength(36)]
public string WarehouseId { get; set; }
[Column("reloadBoxingState", TypeName = "int(11)")]
public int? ReloadBoxingState { get; set; }
[Column("oldEpc")]
[StringLength(255)]
public string OldEpc { get; set; }
[ForeignKey(nameof(EquipmentDetailId))]
[InverseProperty(nameof(BaseJpEquipmentDetail.CommonJpEquipmentBoxMarks))]
public virtual BaseJpEquipmentDetail EquipmentDetail { get; set; }
[ForeignKey(nameof(SizeId))]
[InverseProperty(nameof(BaseJpEquipmentSize.CommonJpEquipmentBoxMarks))]
public virtual BaseJpEquipmentSize Size { get; set; }
[ForeignKey(nameof(SupplierId))]
[InverseProperty(nameof(BaseJpSupplier.CommonJpEquipmentBoxMarks))]
public virtual BaseJpSupplier Supplier { get; set; }
[ForeignKey(nameof(WarehouseId))]
[InverseProperty(nameof(BaseJpWarehouse.CommonJpEquipmentBoxMarks))]
public virtual BaseJpWarehouse Warehouse { get; set; }
[InverseProperty(nameof(CommonJpEquipmentInventory.BoxMark))]
public virtual ICollection<CommonJpEquipmentInventory> CommonJpEquipmentInventories { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("common_jp_equipment_history")]
[Index(nameof(EquipmentCode), Name = "equipment_code")]
[Index(nameof(Operator), Name = "operator")]
[Index(nameof(Warehouse), Name = "warehouse")]
public partial class CommonJpEquipmentHistory
{
[Key]
[Column("id", TypeName = "int(11)")]
public int Id { get; set; }
[Column(TypeName = "int(11)")]
public int? Sort { get; set; }
[Required]
[Column("equipment_state")]
[StringLength(36)]
public string EquipmentState { get; set; }
[Column("operator")]
[StringLength(36)]
public string Operator { get; set; }
[Required]
[Column("equipment_code")]
[StringLength(36)]
public string EquipmentCode { get; set; }
[Required]
[Column("warehouse")]
[StringLength(36)]
public string Warehouse { get; set; }
[Column("operate_time", TypeName = "datetime")]
public DateTime OperateTime { get; set; }
[ForeignKey(nameof(EquipmentCode))]
[InverseProperty(nameof(BaseJpEquipmentInfo.CommonJpEquipmentHistories))]
public virtual BaseJpEquipmentInfo EquipmentCodeNavigation { get; set; }
[ForeignKey(nameof(Operator))]
[InverseProperty(nameof(BaseJpPoliceman.CommonJpEquipmentHistories))]
public virtual BaseJpPoliceman OperatorNavigation { get; set; }
[ForeignKey(nameof(Warehouse))]
[InverseProperty(nameof(BaseJpWarehouse.CommonJpEquipmentHistories))]
public virtual BaseJpWarehouse WarehouseNavigation { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("common_jp_equipment_inventory")]
[Index(nameof(WarehouseCode), Name = "ClusteredIndex-20200901-100012")]
[Index(nameof(Id), Name = "NonClusteredIndex-20200901-104052", IsUnique = true)]
[Index(nameof(CurrentState), nameof(Id), nameof(WarehouseCode), Name = "_dta_index_common_jp_equipment_inventory_8_1109578991__K12_K1_K")]
[Index(nameof(Id), nameof(Epc), nameof(CurrentState), Name = "_dta_index_common_jp_equipment_inventory_8_1109578991__K1_K4_K12")]
[Index(nameof(WarrantyCycle), nameof(UseTime), nameof(WarehouseCode), nameof(EquipmentSizecode), nameof(EquipmentCode), nameof(SupplierCode), Name = "_dta_index_common_jp_equipment_inventory_8_1109578991__K20_K23_")]
[Index(nameof(EquipmentCode), nameof(WarehouseCode), nameof(CabinetId), nameof(EquipmentSizecode), nameof(CurrentState), Name = "_dta_index_common_jp_equipment_inventory_8_1109578991__K6_K8_K9")]
[Index(nameof(WarehouseCode), nameof(EquipmentSizecode), Name = "_dta_index_common_jp_equipment_inventory_8_1109578991__K8_K10")]
[Index(nameof(WarehouseCode), nameof(Id), nameof(EquipmentSizecode), Name = "_dta_index_common_jp_equipment_inventory_8_1109578991__K8_K1_K10")]
[Index(nameof(BagInventoryId), Name = "bag_inventory_id")]
[Index(nameof(BoxMarkId), Name = "box_mark_id")]
[Index(nameof(CabinetId), Name = "cabinet_id")]
[Index(nameof(EquipmentSizecode), Name = "equipment_sizecode")]
[Index(nameof(PoliceCode), Name = "police_code")]
[Index(nameof(ShelfId), Name = "shelfId")]
[Index(nameof(SupplierCode), Name = "supplier_code")]
public partial class CommonJpEquipmentInventory
{
public CommonJpEquipmentInventory()
{
CommonJpChannelMonitorRecordInventories = new HashSet<CommonJpChannelMonitorRecordInventory>();
CommonJpEquipmentStates = new HashSet<CommonJpEquipmentState>();
CommonJpInventoryDetails = new HashSet<CommonJpInventoryDetail>();
}
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
[Column(TypeName = "int(11)")]
public int? Sort { get; set; }
[Column("supplier_code")]
[StringLength(36)]
public string SupplierCode { get; set; }
[Column("epc")]
[StringLength(128)]
public string Epc { get; set; }
[Column("police_code")]
[StringLength(36)]
public string PoliceCode { get; set; }
[Required]
[Column("equipment_code")]
[StringLength(36)]
public string EquipmentCode { get; set; }
[Column("wzdm")]
[StringLength(36)]
public string Wzdm { get; set; }
[Column("warehouse_code")]
[StringLength(36)]
public string WarehouseCode { get; set; }
[Column("cabinet_id")]
[StringLength(36)]
public string CabinetId { get; set; }
[Required]
[Column("equipment_sizecode")]
[StringLength(36)]
public string EquipmentSizecode { get; set; }
[Column("equipment_location", TypeName = "int(11)")]
public int EquipmentLocation { get; set; }
[Column("current_state", TypeName = "int(11)")]
public int CurrentState { get; set; }
[Column("out_time", TypeName = "datetime")]
public DateTime? OutTime { get; set; }
[Column("return_time", TypeName = "datetime")]
public DateTime? ReturnTime { get; set; }
[Column("create_time", TypeName = "datetime")]
public DateTime CreateTime { get; set; }
[Column("first_use_time", TypeName = "datetime")]
public DateTime? FirstUseTime { get; set; }
[Column("fix_count", TypeName = "int(11)")]
public int? FixCount { get; set; }
[Required]
[Column("create_user")]
[StringLength(64)]
public string CreateUser { get; set; }
[Required]
[Column("update_user")]
[StringLength(64)]
public string UpdateUser { get; set; }
[Column("warrantyCycle", TypeName = "int(11)")]
public int? WarrantyCycle { get; set; }
[Column("repairCycle", TypeName = "int(11)")]
public int? RepairCycle { get; set; }
[Column("productTime", TypeName = "datetime")]
public DateTime? ProductTime { get; set; }
[Column("useTime", TypeName = "datetime")]
public DateTime? UseTime { get; set; }
[Column("price")]
public decimal? Price { get; set; }
[Column("useDirection", TypeName = "int(11)")]
public int? UseDirection { get; set; }
[Column("is_borrowed")]
public bool? IsBorrowed { get; set; }
[Column("address")]
[StringLength(50)]
public string Address { get; set; }
[Column("lostFlag")]
public bool? LostFlag { get; set; }
[Column("shelfId")]
[StringLength(36)]
public string ShelfId { get; set; }
[Column("inventory_state")]
[StringLength(36)]
public string InventoryState { get; set; }
[Column("isInBox")]
public bool? IsInBox { get; set; }
[Column("shelf_row", TypeName = "int(11)")]
public int? ShelfRow { get; set; }
[Column("shelf_column", TypeName = "int(11)")]
public int? ShelfColumn { get; set; }
[Column("shelf_range", TypeName = "int(11)")]
public int? ShelfRange { get; set; }
[Column("safe_level", TypeName = "int(11)")]
public int? SafeLevel { get; set; }
[Column("box_mark_id")]
[StringLength(36)]
public string BoxMarkId { get; set; }
[Column("instantiation_state", TypeName = "int(11)")]
public int? InstantiationState { get; set; }
[Column("third_code")]
[StringLength(255)]
public string ThirdCode { get; set; }
[Column("bag_inventory_id")]
[StringLength(36)]
public string BagInventoryId { get; set; }
[Column("is_need_push_update")]
public bool? IsNeedPushUpdate { get; set; }
[ForeignKey(nameof(BagInventoryId))]
[InverseProperty(nameof(CommonJpBagInventory.CommonJpEquipmentInventories))]
public virtual CommonJpBagInventory BagInventory { get; set; }
[ForeignKey(nameof(BoxMarkId))]
[InverseProperty(nameof(CommonJpEquipmentBoxMark.CommonJpEquipmentInventories))]
public virtual CommonJpEquipmentBoxMark BoxMark { get; set; }
[ForeignKey(nameof(CabinetId))]
[InverseProperty(nameof(BaseJpCabinet.CommonJpEquipmentInventories))]
public virtual BaseJpCabinet Cabinet { get; set; }
[ForeignKey(nameof(EquipmentCode))]
[InverseProperty(nameof(BaseJpEquipmentDetail.CommonJpEquipmentInventories))]
public virtual BaseJpEquipmentDetail EquipmentCodeNavigation { get; set; }
[ForeignKey(nameof(EquipmentSizecode))]
[InverseProperty(nameof(BaseJpEquipmentSize.CommonJpEquipmentInventories))]
public virtual BaseJpEquipmentSize EquipmentSizecodeNavigation { get; set; }
[ForeignKey(nameof(PoliceCode))]
[InverseProperty(nameof(BaseJpPoliceman.CommonJpEquipmentInventories))]
public virtual BaseJpPoliceman PoliceCodeNavigation { get; set; }
[ForeignKey(nameof(ShelfId))]
[InverseProperty(nameof(BaseJpShelfInfo.CommonJpEquipmentInventories))]
public virtual BaseJpShelfInfo Shelf { get; set; }
[ForeignKey(nameof(SupplierCode))]
[InverseProperty(nameof(BaseJpSupplier.CommonJpEquipmentInventories))]
public virtual BaseJpSupplier SupplierCodeNavigation { get; set; }
[ForeignKey(nameof(WarehouseCode))]
[InverseProperty(nameof(BaseJpWarehouse.CommonJpEquipmentInventories))]
public virtual BaseJpWarehouse WarehouseCodeNavigation { get; set; }
[InverseProperty(nameof(CommonJpChannelMonitorRecordInventory.Inventory))]
public virtual ICollection<CommonJpChannelMonitorRecordInventory> CommonJpChannelMonitorRecordInventories { get; set; }
[InverseProperty(nameof(CommonJpEquipmentState.Eqiupment))]
public virtual ICollection<CommonJpEquipmentState> CommonJpEquipmentStates { get; set; }
[InverseProperty(nameof(CommonJpInventoryDetail.Inv))]
public virtual ICollection<CommonJpInventoryDetail> CommonJpInventoryDetails { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("common_jp_equipment_state")]
[Index(nameof(CreateTime), Name = "ClusteredIndex-20201113-135343")]
[Index(nameof(Id), Name = "NonClusteredIndex-20200901-104118", IsUnique = true)]
[Index(nameof(OutInState), nameof(ActionState), Name = "NonClusteredIndex-20201113-125142")]
[Index(nameof(ActionState), nameof(State), nameof(OutTime), nameof(EqiupmentId), nameof(ErrorEpc), nameof(ParentId), nameof(OrgId), Name = "_dta_index_common_jp_equipment_state_8_1125579048__K19_K5_K15_K3")]
[Index(nameof(EqiupmentId), nameof(Id), Name = "_dta_index_common_jp_equipment_state_8_1125579048__K3_K1_2_4_5_")]
[Index(nameof(BagInventoryId), Name = "bag_inventory_id")]
[Index(nameof(BorrowId), Name = "borrow_id")]
[Index(nameof(CabinetIdInto), Name = "cabinet_id_into")]
[Index(nameof(CabinetIdOut), Name = "cabinet_id_out")]
[Index(nameof(FixId), Name = "fix_id")]
[Index(nameof(MissionModelId), Name = "mission_model_id")]
[Index(nameof(OrgId), Name = "org_id")]
[Index(nameof(PoliceId), Name = "police_id")]
[Index(nameof(PurchaseId), Name = "purchase_id")]
[Index(nameof(ReturnId), Name = "return_id")]
[Index(nameof(TransferId), Name = "transfer_id")]
[Index(nameof(WarehouseId), Name = "warehouse_id")]
public partial class CommonJpEquipmentState
{
public CommonJpEquipmentState()
{
CommonJpTmpInfos = new HashSet<CommonJpTmpInfo>();
}
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
[Column(TypeName = "int(11)")]
public int? Sort { get; set; }
[Column("eqiupment_id")]
[StringLength(36)]
public string EqiupmentId { get; set; }
[Column("out_in_state", TypeName = "int(11)")]
public int? OutInState { get; set; }
[Column("state", TypeName = "int(11)")]
public int State { get; set; }
[Column("warehouse_id")]
[StringLength(36)]
public string WarehouseId { get; set; }
[Column("org_id")]
[StringLength(36)]
public string OrgId { get; set; }
[Column("borrow_id")]
[StringLength(36)]
public string BorrowId { get; set; }
[Column("cabinet_id_into")]
[StringLength(36)]
public string CabinetIdInto { get; set; }
[Column("cabinet_id_out")]
[StringLength(36)]
public string CabinetIdOut { get; set; }
[Column("error_Epc")]
[StringLength(128)]
public string ErrorEpc { get; set; }
[Column("purchase_id")]
[StringLength(36)]
public string PurchaseId { get; set; }
[Column("transfer_id")]
[StringLength(36)]
public string TransferId { get; set; }
[Column("fix_id")]
[StringLength(36)]
public string FixId { get; set; }
[Column("outTime", TypeName = "datetime")]
public DateTime? OutTime { get; set; }
[Column("police_id")]
[StringLength(36)]
public string PoliceId { get; set; }
[Column("intoTime", TypeName = "datetime")]
public DateTime? IntoTime { get; set; }
[Column("createTime", TypeName = "datetime")]
public DateTime? CreateTime { get; set; }
[Column("action_state", TypeName = "int(11)")]
public int? ActionState { get; set; }
[Column("pic_url")]
[StringLength(255)]
public string PicUrl { get; set; }
[Column("parent_id")]
[StringLength(36)]
public string ParentId { get; set; }
[Column("note")]
[StringLength(255)]
public string Note { get; set; }
[Column("order_code")]
[StringLength(36)]
public string OrderCode { get; set; }
[Column("history_safe_level", TypeName = "int(11)")]
public int? HistorySafeLevel { get; set; }
[Column("return_id")]
[StringLength(36)]
public string ReturnId { get; set; }
[Column("bag_inventory_id")]
[StringLength(36)]
public string BagInventoryId { get; set; }
[Column("mission_model_id")]
[StringLength(36)]
public string MissionModelId { get; set; }
[Column("is_push", TypeName = "int(11)")]
public int IsPush { get; set; }
[ForeignKey(nameof(BagInventoryId))]
[InverseProperty(nameof(CommonJpBagInventory.CommonJpEquipmentStates))]
public virtual CommonJpBagInventory BagInventory { get; set; }
[ForeignKey(nameof(BorrowId))]
[InverseProperty(nameof(CommonJpBorrowReturnDetailReality.CommonJpEquipmentStates))]
public virtual CommonJpBorrowReturnDetailReality Borrow { get; set; }
[ForeignKey(nameof(CabinetIdInto))]
[InverseProperty(nameof(BaseJpCabinet.CommonJpEquipmentStateCabinetIdIntoNavigations))]
public virtual BaseJpCabinet CabinetIdIntoNavigation { get; set; }
[ForeignKey(nameof(CabinetIdOut))]
[InverseProperty(nameof(BaseJpCabinet.CommonJpEquipmentStateCabinetIdOutNavigations))]
public virtual BaseJpCabinet CabinetIdOutNavigation { get; set; }
[ForeignKey(nameof(EqiupmentId))]
[InverseProperty(nameof(CommonJpEquipmentInventory.CommonJpEquipmentStates))]
public virtual CommonJpEquipmentInventory Eqiupment { get; set; }
[ForeignKey(nameof(FixId))]
[InverseProperty(nameof(CommonJpFixUselessDetail.CommonJpEquipmentStates))]
public virtual CommonJpFixUselessDetail Fix { get; set; }
[ForeignKey(nameof(MissionModelId))]
[InverseProperty(nameof(CommonJpMission.CommonJpEquipmentStates))]
public virtual CommonJpMission MissionModel { get; set; }
[ForeignKey(nameof(OrgId))]
[InverseProperty(nameof(BaseJpOrganization.CommonJpEquipmentStates))]
public virtual BaseJpOrganization Org { get; set; }
[ForeignKey(nameof(PoliceId))]
[InverseProperty(nameof(BaseJpPoliceman.CommonJpEquipmentStates))]
public virtual BaseJpPoliceman Police { get; set; }
[ForeignKey(nameof(PurchaseId))]
[InverseProperty(nameof(CommonJpPurchaseDetail.CommonJpEquipmentStates))]
public virtual CommonJpPurchaseDetail Purchase { get; set; }
[ForeignKey(nameof(ReturnId))]
[InverseProperty(nameof(CommonJpInventoryReturnApplyDetail.CommonJpEquipmentStates))]
public virtual CommonJpInventoryReturnApplyDetail Return { get; set; }
[ForeignKey(nameof(TransferId))]
[InverseProperty(nameof(CommonJpTransferDetailReality.CommonJpEquipmentStates))]
public virtual CommonJpTransferDetailReality Transfer { get; set; }
[ForeignKey(nameof(WarehouseId))]
[InverseProperty(nameof(BaseJpWarehouse.CommonJpEquipmentStates))]
public virtual BaseJpWarehouse Warehouse { get; set; }
[InverseProperty(nameof(CommonJpTmpInfo.EquState))]
public virtual ICollection<CommonJpTmpInfo> CommonJpTmpInfos { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("common_jp_equipment_threshold")]
[Index(nameof(EquipmentDetailId), Name = "equipment_detail_id")]
[Index(nameof(EquipmentSizeId), Name = "equipment_size_id")]
[Index(nameof(OrgId), Name = "org_id")]
[Index(nameof(WarehouseId), Name = "warehouse_id")]
public partial class CommonJpEquipmentThreshold
{
public CommonJpEquipmentThreshold()
{
CommonJpEquipmentThresholdResults = new HashSet<CommonJpEquipmentThresholdResult>();
}
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
[Column("create_time", TypeName = "datetime")]
public DateTime CreateTime { get; set; }
[Required]
[Column("equipment_detail_id")]
[StringLength(36)]
public string EquipmentDetailId { get; set; }
[Required]
[Column("equipment_size_id")]
[StringLength(36)]
public string EquipmentSizeId { get; set; }
[Required]
[Column("org_id")]
[StringLength(36)]
public string OrgId { get; set; }
[Column("threshold_count", TypeName = "int(11)")]
public int ThresholdCount { get; set; }
[Required]
[Column("is_enabled")]
public bool? IsEnabled { get; set; }
[Column("warehouse_id")]
[StringLength(36)]
public string WarehouseId { get; set; }
[Required]
[Column("scope_type")]
[StringLength(255)]
public string ScopeType { get; set; }
[ForeignKey(nameof(EquipmentDetailId))]
[InverseProperty(nameof(BaseJpEquipmentDetail.CommonJpEquipmentThresholds))]
public virtual BaseJpEquipmentDetail EquipmentDetail { get; set; }
[ForeignKey(nameof(EquipmentSizeId))]
[InverseProperty(nameof(BaseJpEquipmentSize.CommonJpEquipmentThresholds))]
public virtual BaseJpEquipmentSize EquipmentSize { get; set; }
[ForeignKey(nameof(OrgId))]
[InverseProperty(nameof(BaseJpOrganization.CommonJpEquipmentThresholds))]
public virtual BaseJpOrganization Org { get; set; }
[ForeignKey(nameof(WarehouseId))]
[InverseProperty(nameof(BaseJpWarehouse.CommonJpEquipmentThresholds))]
public virtual BaseJpWarehouse Warehouse { get; set; }
[InverseProperty(nameof(CommonJpEquipmentThresholdResult.Threshold))]
public virtual ICollection<CommonJpEquipmentThresholdResult> CommonJpEquipmentThresholdResults { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("common_jp_equipment_threshold_result")]
[Index(nameof(ThresholdId), Name = "threshold_id")]
public partial class CommonJpEquipmentThresholdResult
{
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
[Column("create_time", TypeName = "datetime")]
public DateTime CreateTime { get; set; }
[Required]
[Column("threshold_id")]
[StringLength(36)]
public string ThresholdId { get; set; }
[Column("inside_count", TypeName = "int(11)")]
public int InsideCount { get; set; }
[Column("real_inside_count", TypeName = "int(11)")]
public int RealInsideCount { get; set; }
[Column("purchase_fill_count", TypeName = "int(11)")]
public int PurchaseFillCount { get; set; }
[Column("is_below_threshold")]
public bool IsBelowThreshold { get; set; }
[ForeignKey(nameof(ThresholdId))]
[InverseProperty(nameof(CommonJpEquipmentThreshold.CommonJpEquipmentThresholdResults))]
public virtual CommonJpEquipmentThreshold Threshold { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("common_jp_fix_receive_apply")]
[Index(nameof(OrgId), Name = "org_id")]
[Index(nameof(ProcessCurrentId), Name = "process_current_id")]
[Index(nameof(WarehouseId), Name = "warehouse_id")]
public partial class CommonJpFixReceiveApply
{
public CommonJpFixReceiveApply()
{
CommonJpFixReceiveApplyDetails = new HashSet<CommonJpFixReceiveApplyDetail>();
CommonJpFixUselesses = new HashSet<CommonJpFixUseless>();
}
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
[Column("sort", TypeName = "int(11)")]
public int? Sort { get; set; }
[Column("action", TypeName = "int(11)")]
public int Action { get; set; }
[Column("apply_id")]
[StringLength(36)]
public string ApplyId { get; set; }
[Required]
[Column("warehouse_id")]
[StringLength(36)]
public string WarehouseId { get; set; }
[Column("apply_time", TypeName = "datetime")]
public DateTime ApplyTime { get; set; }
[Column("approval_result", TypeName = "int(11)")]
public int? ApprovalResult { get; set; }
[Column("approval_name")]
[StringLength(255)]
public string ApprovalName { get; set; }
[Column("approval_id")]
[StringLength(64)]
public string ApprovalId { get; set; }
[Column("approval_time", TypeName = "datetime")]
public DateTime? ApprovalTime { get; set; }
[Column("create_time", TypeName = "datetime")]
public DateTime? CreateTime { get; set; }
[Column("note")]
[StringLength(64)]
public string Note { get; set; }
[Column("order_code")]
[StringLength(40)]
public string OrderCode { get; set; }
[Column("org_id")]
[StringLength(36)]
public string OrgId { get; set; }
[Column("approval_msg")]
[StringLength(255)]
public string ApprovalMsg { get; set; }
[Column("current_state", TypeName = "int(11)")]
public int? CurrentState { get; set; }
[Column("apply_name")]
[StringLength(255)]
public string ApplyName { get; set; }
[Column("process_current_id")]
[StringLength(36)]
public string ProcessCurrentId { get; set; }
[Column("isAfter")]
public bool? IsAfter { get; set; }
[ForeignKey(nameof(OrgId))]
[InverseProperty(nameof(BaseJpOrganization.CommonJpFixReceiveApplies))]
public virtual BaseJpOrganization Org { get; set; }
[ForeignKey(nameof(ProcessCurrentId))]
[InverseProperty(nameof(CommonJpProcessCurrent.CommonJpFixReceiveApplies))]
public virtual CommonJpProcessCurrent ProcessCurrent { get; set; }
[ForeignKey(nameof(WarehouseId))]
[InverseProperty(nameof(BaseJpWarehouse.CommonJpFixReceiveApplies))]
public virtual BaseJpWarehouse Warehouse { get; set; }
[InverseProperty(nameof(CommonJpFixReceiveApplyDetail.Order))]
public virtual ICollection<CommonJpFixReceiveApplyDetail> CommonJpFixReceiveApplyDetails { get; set; }
[InverseProperty(nameof(CommonJpFixUseless.Estimate))]
public virtual ICollection<CommonJpFixUseless> CommonJpFixUselesses { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("common_jp_fix_receive_apply_detail")]
[Index(nameof(EquipmentId), Name = "equipment_id")]
[Index(nameof(OrderId), Name = "order_id")]
[Index(nameof(SizeId), Name = "size_id")]
[Index(nameof(SupplierId), Name = "supplier_id")]
public partial class CommonJpFixReceiveApplyDetail
{
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
[Column("sort", TypeName = "int(11)")]
public int? Sort { get; set; }
[Required]
[Column("equipment_id")]
[StringLength(36)]
public string EquipmentId { get; set; }
[Column("quantity", TypeName = "int(11)")]
public int? Quantity { get; set; }
[Required]
[Column("size_id")]
[StringLength(36)]
public string SizeId { get; set; }
[Column("order_id")]
[StringLength(36)]
public string OrderId { get; set; }
[Required]
[Column("supplier_id")]
[StringLength(36)]
public string SupplierId { get; set; }
[Column("epc")]
[StringLength(255)]
public string Epc { get; set; }
[Column("state", TypeName = "int(11)")]
public int? State { get; set; }
[Column("real_count", TypeName = "int(11)")]
public int? RealCount { get; set; }
[Column("inside_real_count", TypeName = "int(11)")]
public int? InsideRealCount { get; set; }
[ForeignKey(nameof(EquipmentId))]
[InverseProperty(nameof(BaseJpEquipmentDetail.CommonJpFixReceiveApplyDetails))]
public virtual BaseJpEquipmentDetail Equipment { get; set; }
[ForeignKey(nameof(OrderId))]
[InverseProperty(nameof(CommonJpFixReceiveApply.CommonJpFixReceiveApplyDetails))]
public virtual CommonJpFixReceiveApply Order { get; set; }
[ForeignKey(nameof(SizeId))]
[InverseProperty(nameof(BaseJpEquipmentSize.CommonJpFixReceiveApplyDetails))]
public virtual BaseJpEquipmentSize Size { get; set; }
[ForeignKey(nameof(SupplierId))]
[InverseProperty(nameof(BaseJpSupplier.CommonJpFixReceiveApplyDetails))]
public virtual BaseJpSupplier Supplier { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("common_jp_fix_useless")]
[Index(nameof(EstimateId), Name = "estimate_id")]
[Index(nameof(OrgId), Name = "org_id")]
[Index(nameof(WarehouseId), Name = "warehouse_id")]
public partial class CommonJpFixUseless
{
public CommonJpFixUseless()
{
CommonJpFixUselessDetails = new HashSet<CommonJpFixUselessDetail>();
}
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
[Column("sort", TypeName = "int(11)")]
public int? Sort { get; set; }
[Column("estimate_id")]
[StringLength(36)]
public string EstimateId { get; set; }
[Column("apply_id")]
[StringLength(36)]
public string ApplyId { get; set; }
[Column("action", TypeName = "int(11)")]
public int Action { get; set; }
[Required]
[Column("warehouse_id")]
[StringLength(36)]
public string WarehouseId { get; set; }
[Column("fix_time", TypeName = "datetime")]
public DateTime FixTime { get; set; }
[Column("create_time", TypeName = "datetime")]
public DateTime CreateTime { get; set; }
[Required]
[Column("create_user")]
[StringLength(36)]
public string CreateUser { get; set; }
[Column("note")]
[StringLength(64)]
public string Note { get; set; }
[Column("order_code")]
[StringLength(40)]
public string OrderCode { get; set; }
[Column("org_id")]
[StringLength(36)]
public string OrgId { get; set; }
[Column("current_state", TypeName = "int(11)")]
public int? CurrentState { get; set; }
[Column("isAfter")]
public bool? IsAfter { get; set; }
[ForeignKey(nameof(EstimateId))]
[InverseProperty(nameof(CommonJpFixReceiveApply.CommonJpFixUselesses))]
public virtual CommonJpFixReceiveApply Estimate { get; set; }
[ForeignKey(nameof(OrgId))]
[InverseProperty(nameof(BaseJpOrganization.CommonJpFixUselesses))]
public virtual BaseJpOrganization Org { get; set; }
[ForeignKey(nameof(WarehouseId))]
[InverseProperty(nameof(BaseJpWarehouse.CommonJpFixUselesses))]
public virtual BaseJpWarehouse Warehouse { get; set; }
[InverseProperty(nameof(CommonJpFixUselessDetail.Order))]
public virtual ICollection<CommonJpFixUselessDetail> CommonJpFixUselessDetails { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("common_jp_fix_useless_detail")]
[Index(nameof(EquipmentId), Name = "equipment_id")]
[Index(nameof(OrderId), Name = "order_id")]
[Index(nameof(SizeId), Name = "size_id")]
[Index(nameof(SupplierId), Name = "supplier_id")]
public partial class CommonJpFixUselessDetail
{
public CommonJpFixUselessDetail()
{
CommonJpEquipmentStates = new HashSet<CommonJpEquipmentState>();
}
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
[Column("sort", TypeName = "int(11)")]
public int? Sort { get; set; }
[Required]
[Column("equipment_id")]
[StringLength(36)]
public string EquipmentId { get; set; }
[Required]
[Column("size_id")]
[StringLength(36)]
public string SizeId { get; set; }
[Column("order_id")]
[StringLength(36)]
public string OrderId { get; set; }
[Required]
[Column("supplier_id")]
[StringLength(36)]
public string SupplierId { get; set; }
[Column("state", TypeName = "int(11)")]
public int? State { get; set; }
[Column("quantity", TypeName = "int(11)")]
public int? Quantity { get; set; }
[Column("epc")]
[StringLength(255)]
public string Epc { get; set; }
[Column("real_count", TypeName = "int(11)")]
public int? RealCount { get; set; }
[Column("inside_real_count", TypeName = "int(11)")]
public int? InsideRealCount { get; set; }
[ForeignKey(nameof(EquipmentId))]
[InverseProperty(nameof(BaseJpEquipmentDetail.CommonJpFixUselessDetails))]
public virtual BaseJpEquipmentDetail Equipment { get; set; }
[ForeignKey(nameof(OrderId))]
[InverseProperty(nameof(CommonJpFixUseless.CommonJpFixUselessDetails))]
public virtual CommonJpFixUseless Order { get; set; }
[ForeignKey(nameof(SizeId))]
[InverseProperty(nameof(BaseJpEquipmentSize.CommonJpFixUselessDetails))]
public virtual BaseJpEquipmentSize Size { get; set; }
[ForeignKey(nameof(SupplierId))]
[InverseProperty(nameof(BaseJpSupplier.CommonJpFixUselessDetails))]
public virtual BaseJpSupplier Supplier { get; set; }
[InverseProperty(nameof(CommonJpEquipmentState.Fix))]
public virtual ICollection<CommonJpEquipmentState> CommonJpEquipmentStates { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("common_jp_inventory_detail")]
[Index(nameof(InvId), Name = "inv_id")]
[Index(nameof(TableId), Name = "table_id")]
[Index(nameof(WarehouseId), Name = "warehouse_id")]
public partial class CommonJpInventoryDetail
{
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
[Column("state")]
[StringLength(10)]
public string State { get; set; }
[Column("inv_id")]
[StringLength(36)]
public string InvId { get; set; }
[Column("table_id")]
[StringLength(36)]
public string TableId { get; set; }
[Column("warehouse_id")]
[StringLength(36)]
public string WarehouseId { get; set; }
[ForeignKey(nameof(InvId))]
[InverseProperty(nameof(CommonJpEquipmentInventory.CommonJpInventoryDetails))]
public virtual CommonJpEquipmentInventory Inv { get; set; }
[ForeignKey(nameof(TableId))]
[InverseProperty(nameof(CommonJpInventoryTable.CommonJpInventoryDetails))]
public virtual CommonJpInventoryTable Table { get; set; }
[ForeignKey(nameof(WarehouseId))]
[InverseProperty(nameof(BaseJpWarehouse.CommonJpInventoryDetails))]
public virtual BaseJpWarehouse Warehouse { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("common_jp_inventory_return_apply")]
[Index(nameof(OrgId), Name = "org_id")]
[Index(nameof(ProcessCurrentId), Name = "process_current_id")]
[Index(nameof(WarehouseId), Name = "warehouse_id")]
public partial class CommonJpInventoryReturnApply
{
public CommonJpInventoryReturnApply()
{
CommonJpInventoryReturnApplyDetails = new HashSet<CommonJpInventoryReturnApplyDetail>();
}
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
[Column("apply_id")]
[StringLength(36)]
public string ApplyId { get; set; }
[Required]
[Column("warehouse_id")]
[StringLength(36)]
public string WarehouseId { get; set; }
[Column("apply_time", TypeName = "datetime")]
public DateTime ApplyTime { get; set; }
[Column("create_time", TypeName = "datetime")]
public DateTime? CreateTime { get; set; }
[Column("note")]
[StringLength(64)]
public string Note { get; set; }
[Column("order_code")]
[StringLength(40)]
public string OrderCode { get; set; }
[Column("org_id")]
[StringLength(36)]
public string OrgId { get; set; }
[Column("current_state", TypeName = "int(11)")]
public int? CurrentState { get; set; }
[Column("apply_name")]
[StringLength(255)]
public string ApplyName { get; set; }
[Column("process_current_id")]
[StringLength(36)]
public string ProcessCurrentId { get; set; }
[Column("approval_time", TypeName = "datetime")]
public DateTime? ApprovalTime { get; set; }
[ForeignKey(nameof(OrgId))]
[InverseProperty(nameof(BaseJpOrganization.CommonJpInventoryReturnApplies))]
public virtual BaseJpOrganization Org { get; set; }
[ForeignKey(nameof(ProcessCurrentId))]
[InverseProperty(nameof(CommonJpProcessCurrent.CommonJpInventoryReturnApplies))]
public virtual CommonJpProcessCurrent ProcessCurrent { get; set; }
[ForeignKey(nameof(WarehouseId))]
[InverseProperty(nameof(BaseJpWarehouse.CommonJpInventoryReturnApplies))]
public virtual BaseJpWarehouse Warehouse { get; set; }
[InverseProperty(nameof(CommonJpInventoryReturnApplyDetail.Order))]
public virtual ICollection<CommonJpInventoryReturnApplyDetail> CommonJpInventoryReturnApplyDetails { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("common_jp_inventory_return_apply_detail")]
[Index(nameof(EquipmentId), Name = "equipment_id")]
[Index(nameof(OrderId), Name = "order_id")]
[Index(nameof(SizeId), Name = "size_id")]
[Index(nameof(SupplierId), Name = "supplier_id")]
public partial class CommonJpInventoryReturnApplyDetail
{
public CommonJpInventoryReturnApplyDetail()
{
CommonJpEquipmentStates = new HashSet<CommonJpEquipmentState>();
}
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
[Required]
[Column("equipment_id")]
[StringLength(36)]
public string EquipmentId { get; set; }
[Column("quantity", TypeName = "int(11)")]
public int? Quantity { get; set; }
[Required]
[Column("size_id")]
[StringLength(36)]
public string SizeId { get; set; }
[Column("order_id")]
[StringLength(36)]
public string OrderId { get; set; }
[Required]
[Column("supplier_id")]
[StringLength(36)]
public string SupplierId { get; set; }
[Column("epc")]
[StringLength(255)]
public string Epc { get; set; }
[Column("state", TypeName = "int(11)")]
public int? State { get; set; }
[ForeignKey(nameof(EquipmentId))]
[InverseProperty(nameof(BaseJpEquipmentDetail.CommonJpInventoryReturnApplyDetails))]
public virtual BaseJpEquipmentDetail Equipment { get; set; }
[ForeignKey(nameof(OrderId))]
[InverseProperty(nameof(CommonJpInventoryReturnApply.CommonJpInventoryReturnApplyDetails))]
public virtual CommonJpInventoryReturnApply Order { get; set; }
[ForeignKey(nameof(SizeId))]
[InverseProperty(nameof(BaseJpEquipmentSize.CommonJpInventoryReturnApplyDetails))]
public virtual BaseJpEquipmentSize Size { get; set; }
[ForeignKey(nameof(SupplierId))]
[InverseProperty(nameof(BaseJpSupplier.CommonJpInventoryReturnApplyDetails))]
public virtual BaseJpSupplier Supplier { get; set; }
[InverseProperty(nameof(CommonJpEquipmentState.Return))]
public virtual ICollection<CommonJpEquipmentState> CommonJpEquipmentStates { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("common_jp_inventory_table")]
[Index(nameof(DetailId), Name = "detailId")]
[Index(nameof(OrgId), Name = "org_id")]
[Index(nameof(ProcessCurrentId), Name = "process_current_id")]
[Index(nameof(ShelfId), Name = "shelfId")]
[Index(nameof(SizeId), Name = "sizeId")]
[Index(nameof(UserId), Name = "user_id")]
[Index(nameof(WarehouseId), Name = "warehouse_id")]
public partial class CommonJpInventoryTable
{
public CommonJpInventoryTable()
{
CommonJpInventoryDetails = new HashSet<CommonJpInventoryDetail>();
}
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
[Required]
[Column("warehouse_id")]
[StringLength(36)]
public string WarehouseId { get; set; }
[Required]
[Column("org_id")]
[StringLength(36)]
public string OrgId { get; set; }
[Column("order_no")]
[StringLength(36)]
public string OrderNo { get; set; }
[Column("user_id")]
[StringLength(36)]
public string UserId { get; set; }
[Column("remarks")]
[StringLength(255)]
public string Remarks { get; set; }
[Column("updateTime", TypeName = "datetime")]
public DateTime UpdateTime { get; set; }
[Column("action_state")]
[StringLength(36)]
public string ActionState { get; set; }
[Column("process_current_id")]
[StringLength(36)]
public string ProcessCurrentId { get; set; }
[Column("type")]
[StringLength(36)]
public string Type { get; set; }
[Column("shelfId")]
[StringLength(36)]
public string ShelfId { get; set; }
[Column("side")]
[StringLength(36)]
public string Side { get; set; }
[Column("line")]
[StringLength(36)]
public string Line { get; set; }
[Column("column")]
[StringLength(36)]
public string Column { get; set; }
[Column("detailId")]
[StringLength(36)]
public string DetailId { get; set; }
[Column("sizeId")]
[StringLength(36)]
public string SizeId { get; set; }
[ForeignKey(nameof(DetailId))]
[InverseProperty(nameof(BaseJpEquipmentDetail.CommonJpInventoryTables))]
public virtual BaseJpEquipmentDetail Detail { get; set; }
[ForeignKey(nameof(OrgId))]
[InverseProperty(nameof(BaseJpOrganization.CommonJpInventoryTables))]
public virtual BaseJpOrganization Org { get; set; }
[ForeignKey(nameof(ProcessCurrentId))]
[InverseProperty(nameof(CommonJpProcessCurrent.CommonJpInventoryTables))]
public virtual CommonJpProcessCurrent ProcessCurrent { get; set; }
[ForeignKey(nameof(ShelfId))]
[InverseProperty(nameof(BaseJpShelfInfo.CommonJpInventoryTables))]
public virtual BaseJpShelfInfo Shelf { get; set; }
[ForeignKey(nameof(SizeId))]
[InverseProperty(nameof(BaseJpEquipmentSize.CommonJpInventoryTables))]
public virtual BaseJpEquipmentSize Size { get; set; }
[ForeignKey(nameof(UserId))]
[InverseProperty(nameof(CommonJpUser.CommonJpInventoryTables))]
public virtual CommonJpUser User { get; set; }
[ForeignKey(nameof(WarehouseId))]
[InverseProperty(nameof(BaseJpWarehouse.CommonJpInventoryTables))]
public virtual BaseJpWarehouse Warehouse { get; set; }
[InverseProperty(nameof(CommonJpInventoryDetail.Table))]
public virtual ICollection<CommonJpInventoryDetail> CommonJpInventoryDetails { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("common_jp_log")]
[Index(nameof(OrganizationCode), Name = "organization_code")]
[Index(nameof(WareHouseCode), Name = "ware_house_code")]
public partial class CommonJpLog
{
[Key]
[Column("id", TypeName = "int(11)")]
public int Id { get; set; }
[Column("ware_house_code")]
[StringLength(36)]
public string WareHouseCode { get; set; }
[Required]
[Column("organization_code")]
[StringLength(36)]
public string OrganizationCode { get; set; }
[Required]
[Column("name")]
[StringLength(64)]
public string Name { get; set; }
[Required]
[Column("log_detail")]
[StringLength(128)]
public string LogDetail { get; set; }
[Column("create_time", TypeName = "datetime")]
public DateTime CreateTime { get; set; }
[ForeignKey(nameof(OrganizationCode))]
[InverseProperty(nameof(BaseJpOrganization.CommonJpLogs))]
public virtual BaseJpOrganization OrganizationCodeNavigation { get; set; }
[ForeignKey(nameof(WareHouseCode))]
[InverseProperty(nameof(BaseJpWarehouse.CommonJpLogs))]
public virtual BaseJpWarehouse WareHouseCodeNavigation { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("common_jp_log_cfg")]
public partial class CommonJpLogCfg
{
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
[Column("updateCicle", TypeName = "int(11)")]
public int UpdateCicle { get; set; }
[Column("lastTime", TypeName = "datetime")]
public DateTime LastTime { get; set; }
[Column("urlText")]
public string UrlText { get; set; }
[Column("logUrl")]
public string LogUrl { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("common_jp_message")]
[Index(nameof(SendName), Name = "IX_common_jp_message")]
public partial class CommonJpMessage
{
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
[Column("message_type")]
[StringLength(36)]
public string MessageType { get; set; }
[Column("order_name")]
[StringLength(36)]
public string OrderName { get; set; }
[Column("send_name")]
[StringLength(36)]
public string SendName { get; set; }
[Column("message_info")]
[StringLength(128)]
public string MessageInfo { get; set; }
[Column("send_time", TypeName = "datetime")]
public DateTime? SendTime { get; set; }
[Column("state", TypeName = "int(11)")]
public int? State { get; set; }
[Column("pc_number")]
[StringLength(36)]
public string PcNumber { get; set; }
[Column("order_type")]
[StringLength(36)]
public string OrderType { get; set; }
[Column("order_id")]
[StringLength(255)]
public string OrderId { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("common_jp_mission")]
[Index(nameof(OrgId), Name = "org_id")]
[Index(nameof(WarehouseId), Name = "warehouse_id")]
public partial class CommonJpMission
{
public CommonJpMission()
{
CommonJpEquipmentStates = new HashSet<CommonJpEquipmentState>();
CommonJpMisssionChildren = new HashSet<CommonJpMisssionChild>();
}
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
[Column("name")]
[StringLength(126)]
public string Name { get; set; }
[Column("create_time", TypeName = "datetime")]
public DateTime? CreateTime { get; set; }
[Column("org_id")]
[StringLength(36)]
public string OrgId { get; set; }
[Column("warehouse_id")]
[StringLength(36)]
public string WarehouseId { get; set; }
[Column("is_work")]
public bool? IsWork { get; set; }
[Column("state", TypeName = "int(11)")]
public int? State { get; set; }
[ForeignKey(nameof(OrgId))]
[InverseProperty(nameof(BaseJpOrganization.CommonJpMissions))]
public virtual BaseJpOrganization Org { get; set; }
[ForeignKey(nameof(WarehouseId))]
[InverseProperty(nameof(BaseJpWarehouse.CommonJpMissions))]
public virtual BaseJpWarehouse Warehouse { get; set; }
[InverseProperty(nameof(CommonJpEquipmentState.MissionModel))]
public virtual ICollection<CommonJpEquipmentState> CommonJpEquipmentStates { get; set; }
[InverseProperty(nameof(CommonJpMisssionChild.Mission))]
public virtual ICollection<CommonJpMisssionChild> CommonJpMisssionChildren { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("common_jp_misssion_child")]
[Index(nameof(MissionId), Name = "mission_id")]
[Index(nameof(ModelId), Name = "model_id")]
public partial class CommonJpMisssionChild
{
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
[Column("mission_id")]
[StringLength(36)]
public string MissionId { get; set; }
[Column("state")]
[StringLength(10)]
public string State { get; set; }
[Column("model_id")]
[StringLength(36)]
public string ModelId { get; set; }
[ForeignKey(nameof(MissionId))]
[InverseProperty(nameof(CommonJpMission.CommonJpMisssionChildren))]
public virtual CommonJpMission Mission { get; set; }
[ForeignKey(nameof(ModelId))]
[InverseProperty(nameof(BaseJpModel.CommonJpMisssionChildren))]
public virtual BaseJpModel Model { get; set; }
}
}
\ No newline at end of file
// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
#nullable disable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace JmpModel.Model
{
[Table("common_jp_model_bag")]
[Index(nameof(BagId), Name = "bag_id")]
[Index(nameof(EquipmentId), Name = "equipment_id")]
[Index(nameof(ModelId), Name = "model_id")]
public partial class CommonJpModelBag
{
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
[Column("model_id")]
[StringLength(36)]
public string ModelId { get; set; }
[Column("bag_id")]
[StringLength(36)]
public string BagId { get; set; }
[Column("create_time", TypeName = "datetime")]
public DateTime? CreateTime { get; set; }
[Column("equipment_id")]
[StringLength(36)]
public string EquipmentId { get; set; }
[Column("count", TypeName = "int(11)")]
public int? Count { get; set; }
[ForeignKey(nameof(BagId))]
[InverseProperty(nameof(BaseJpBag.CommonJpModelBags))]
public virtual BaseJpBag Bag { get; set; }
[ForeignKey(nameof(EquipmentId))]
[InverseProperty(nameof(BaseJpEquipmentDetail.CommonJpModelBags))]
public virtual BaseJpEquipmentDetail Equipment { get; set; }
[ForeignKey(nameof(ModelId))]
[InverseProperty(nameof(BaseJpModel.CommonJpModelBags))]
public virtual BaseJpModel Model { get; set; }
}
}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论