Commit cd1bd77e by zxw

init

parents
**/.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
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
# User-specific files
*.suo
*.user
*.sln.docstates
# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
build/
bld/
[Bb]in/
[Oo]bj/
# Roslyn cache directories
*.ide/
# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*
#NUNIT
*.VisualState.xml
TestResult.xml
# Build Results of an ATL Project
[Dd]ebugPS/
[Rr]eleasePS/
dlldata.c
*_i.c
*_p.c
*_i.h
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.svclog
*.scc
# Chutzpah Test files
_Chutzpah*
# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opensdf
*.sdf
*.cachefile
# Visual Studio profiler
*.psess
*.vsp
*.vspx
# TFS 2012 Local Workspace
$tf/
# Guidance Automation Toolkit
*.gpState
# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user
# JustCode is a .NET coding addin-in
.JustCode
# TeamCity is a build add-in
_TeamCity*
# DotCover is a Code Coverage Tool
*.dotCover
# NCrunch
_NCrunch_*
.*crunch*.local.xml
# MightyMoose
*.mm.*
AutoTest.Net/
# Web workbench (sass)
.sass-cache/
# Installshield output folder
[Ee]xpress/
# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html
# Click-Once directory
publish/
# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml
## TODO: Comment the next line if you want to checkin your
## web deploy settings but do note that will include unencrypted
## passwords
*.pubxml
# NuGet Packages
packages/*
*.nupkg
## TODO: If the tool you use requires repositories.config
## uncomment the next line
#!packages/repositories.config
# Enable "build/" folder in the NuGet Packages folder since
# NuGet packages use it for MSBuild targets.
# This line needs to be after the ignore of the build folder
# (and the packages folder if the line above has been uncommented)
!packages/build/
# Windows Azure Build Output
csx/
*.build.csdef
# Windows Store app package directory
AppPackages/
# Others
sql/
*.Cache
ClientBin/
[Ss]tyle[Cc]op.*
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.pfx
*.publishsettings
node_modules/
# RIA/Silverlight projects
Generated_Code/
# Backup & report files from converting an old project file
# to a newer Visual Studio version. Backup files are not needed,
# because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm
# SQL Server files
*.mdf
*.ldf
# Business Intelligence projects
*.rdl.data
*.bim.layout
*.bim_*.settings
# Microsoft Fakes
FakesAssemblies/
/.vs
/JmpModel/CodeTemplates
/JunmpPoliceStation/appsettings.json
/JunmpPoliceStation/internal-nlog.txt
/JunmpPoliceStation/JunmpPoliceStation.xml
<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 ORDER_START = new ResultInfo { Code = "10049", 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>
<Compile Remove="Model\DataContext\DbContextExtensions.cs" />
<Compile Remove="Model\DataContext\IJunmppolicesqlContextProcedures.cs" />
<Compile Remove="Model\DataContext\JunmppolicesqlContextProcedures.cs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ErikEJ.EntityFrameworkCore.DgmlBuilder" Version="3.1.1" />
<PackageReference Include="Microsoft.AspNetCore.Razor.Language" Version="3.1.10" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="3.1.10" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="3.1.10" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer.Design" Version="1.1.6" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="3.1.10">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="3.1.8" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
</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;
namespace JmpModel.Model
{
[Table("alipay_config")]
public partial class AlipayConfig
{
[Key]
[Column("id")]
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", TypeName = "text")]
public string PrivateKey { get; set; }
[Column("public_key", TypeName = "text")]
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;
namespace JmpModel.Model
{
[Table("api_mqtt_message")]
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")]
[StringLength(255)]
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;
namespace JmpModel.Model
{
[Table("base_charge")]
public partial class BaseCharge
{
[Key]
[Column("id")]
public Guid 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;
namespace JmpModel.Model
{
[Table("base_jp_bag")]
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; }
/// <summary>
/// 组织机构ID
/// </summary>
[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; }
/// <summary>
/// 装备包名称
/// </summary>
[Column("name")]
[StringLength(128)]
public string Name { get; set; }
[Column("num")]
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;
namespace JmpModel.Model
{
[Table("base_jp_bag_map")]
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; }
/// <summary>
/// 装备包概念id
/// </summary>
[Column("bag_id")]
[StringLength(36)]
public string BagId { get; set; }
/// <summary>
/// 装备详情id
/// </summary>
[Column("detail_id")]
[StringLength(36)]
public string DetailId { get; set; }
/// <summary>
/// 当前装备类型数量
/// </summary>
[Column("count")]
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;
namespace JmpModel.Model
{
[Table("base_jp_cabinet")]
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; }
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")]
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")]
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")]
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;
namespace JmpModel.Model
{
[Table("base_jp_cabinet_inv_error_msg")]
public partial class BaseJpCabinetInvErrorMsg
{
[Key]
[Column("id")]
[StringLength(36)]
public string Id { 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")]
public int CabinetChildNum { get; set; }
[Column("organization_id")]
[StringLength(36)]
public string OrganizationId { get; set; }
[Column("state")]
[StringLength(255)]
public string State { get; set; }
[Column("msg", TypeName = "text")]
public string Msg { get; set; }
[Column("push_time", TypeName = "datetime")]
public DateTime? PushTime { get; set; }
[Column("user_name")]
[StringLength(255)]
public string UserName { get; set; }
[Column("current_user_name")]
[StringLength(255)]
public string CurrentUserName { get; set; }
[Column("cabinet_id")]
[StringLength(36)]
public string CabinetId { get; set; }
[Column("epc", TypeName = "text")]
public string Epc { 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;
namespace JmpModel.Model
{
[Table("base_jp_cabinet_outinlog")]
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; }
/// <summary>
/// 上报时间
/// </summary>
[Column("pushTime", TypeName = "datetime")]
public DateTime? PushTime { get; set; }
/// <summary>
/// 操作时间
/// </summary>
[Column("operationTime", TypeName = "datetime")]
public DateTime? OperationTime { get; set; }
/// <summary>
/// 组织机构id
/// </summary>
[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;
namespace JmpModel.Model
{
[Table("base_jp_cabinet_policeman")]
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;
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;
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;
namespace JmpModel.Model
{
[Table("base_jp_equipment_detail")]
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>();
CommonJpPoliceShiftJobsApplyDetails = new HashSet<CommonJpPoliceShiftJobsApplyDetail>();
CommonJpPurchaseDetails = new HashSet<CommonJpPurchaseDetail>();
CommonJpTransferDetailEstimates = new HashSet<CommonJpTransferDetailEstimate>();
CommonJpTransferDetailRealities = new HashSet<CommonJpTransferDetailReality>();
}
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
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")]
[StringLength(500)]
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("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(CommonJpPoliceShiftJobsApplyDetail.Equipment))]
public virtual ICollection<CommonJpPoliceShiftJobsApplyDetail> CommonJpPoliceShiftJobsApplyDetails { 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;
namespace JmpModel.Model
{
[Table("base_jp_equipment_info")]
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; }
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;
namespace JmpModel.Model
{
[Table("base_jp_equipment_size")]
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>();
CommonJpPoliceShiftJobsApplyDetails = new HashSet<CommonJpPoliceShiftJobsApplyDetail>();
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")]
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")]
[StringLength(500)]
public string Note { get; set; }
[Column("update_time", TypeName = "datetime")]
public DateTime UpdateTime { get; set; }
[Column("epc_type")]
public int? EpcType { get; set; }
/// <summary>
/// 默认价格
/// </summary>
[Column("price", TypeName = "decimal(11, 2)")]
public decimal? Price { 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(CommonJpPoliceShiftJobsApplyDetail.Size))]
public virtual ICollection<CommonJpPoliceShiftJobsApplyDetail> CommonJpPoliceShiftJobsApplyDetails { 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;
namespace JmpModel.Model
{
[Table("base_jp_key_value")]
public partial class BaseJpKeyValue
{
[Key]
[Column("key")]
[StringLength(255)]
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;
namespace JmpModel.Model
{
[Table("base_jp_log")]
public partial class BaseJpLog
{
[Key]
[Column("id")]
public int Id { get; set; }
[Column("create_time", TypeName = "datetime")]
public DateTime? CreateTime { get; set; }
[Column("description")]
[StringLength(500)]
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")]
[StringLength(500)]
public string Params { get; set; }
[Column("request_ip")]
[StringLength(255)]
public string RequestIp { get; set; }
[Column("time")]
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;
namespace JmpModel.Model
{
[Table("base_jp_model")]
public partial class BaseJpModel
{
public BaseJpModel()
{
CommonJpMisssionChildren = new HashSet<CommonJpMisssionChild>();
CommonJpModelBags = new HashSet<CommonJpModelBag>();
}
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
/// <summary>
/// 模块名称
/// </summary>
[Column("name")]
[StringLength(128)]
public string Name { get; set; }
[Column("create_time", TypeName = "datetime")]
public DateTime? CreateTime { get; set; }
/// <summary>
/// 是否默认模块:0自定义 1默认
/// </summary>
[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;
namespace JmpModel.Model
{
[Table("base_jp_organization")]
public partial class BaseJpOrganization
{
public BaseJpOrganization()
{
BaseJpBags = new HashSet<BaseJpBag>();
BaseJpCabinetOutinlogs = new HashSet<BaseJpCabinetOutinlog>();
BaseJpCabinets = new HashSet<BaseJpCabinet>();
BaseJpModels = new HashSet<BaseJpModel>();
BaseJpOrganizationOrderCounts = new HashSet<BaseJpOrganizationOrderCount>();
BaseJpPolicemen = new HashSet<BaseJpPoliceman>();
BaseJpWarehouses = new HashSet<BaseJpWarehouse>();
CommonJpBorrowReturnApplies = new HashSet<CommonJpBorrowReturnApply>();
CommonJpBorrowReturns = new HashSet<CommonJpBorrowReturn>();
CommonJpChannelMonitorRecords = new HashSet<CommonJpChannelMonitorRecord>();
CommonJpEquipmentInventories = new HashSet<CommonJpEquipmentInventory>();
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>();
CommonJpPoliceShiftJobsApplyApplyOrgs = new HashSet<CommonJpPoliceShiftJobsApply>();
CommonJpPoliceShiftJobsApplyTargetOrgs = new HashSet<CommonJpPoliceShiftJobsApply>();
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")]
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; }
/// <summary>
/// 派出所是否有采购权利
/// </summary>
[Column("show")]
[StringLength(10)]
public string Show { get; set; }
/// <summary>
/// 是否在地图上
/// </summary>
[Column("is_map")]
public short? IsMap { get; set; }
/// <summary>
/// 打印单据数量
/// </summary>
[Column("order_count")]
public int? OrderCount { get; set; }
/// <summary>
/// 经度
/// </summary>
[Column("longitude")]
[StringLength(255)]
public string Longitude { get; set; }
/// <summary>
/// 纬度
/// </summary>
[Column("latitude")]
[StringLength(255)]
public string Latitude { 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(BaseJpOrganizationOrderCount.Org))]
public virtual ICollection<BaseJpOrganizationOrderCount> BaseJpOrganizationOrderCounts { 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(CommonJpEquipmentInventory.Org))]
public virtual ICollection<CommonJpEquipmentInventory> CommonJpEquipmentInventories { 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(CommonJpPoliceShiftJobsApply.ApplyOrg))]
public virtual ICollection<CommonJpPoliceShiftJobsApply> CommonJpPoliceShiftJobsApplyApplyOrgs { get; set; }
[InverseProperty(nameof(CommonJpPoliceShiftJobsApply.TargetOrg))]
public virtual ICollection<CommonJpPoliceShiftJobsApply> CommonJpPoliceShiftJobsApplyTargetOrgs { 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;
namespace JmpModel.Model
{
[Table("base_jp_organization_order_count")]
public partial class BaseJpOrganizationOrderCount
{
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
[Required]
[Column("org_id")]
[StringLength(36)]
public string OrgId { get; set; }
/// <summary>
/// 创建时间
/// </summary>
[Column("create_time", TypeName = "datetime")]
public DateTime CreateTime { get; set; }
/// <summary>
/// 单据类型
/// 借:借用
/// 领:领用
/// 支:调拨
/// 价:调拨
/// 废:报废
/// 销:销毁
/// </summary>
[Column("order_type")]
[StringLength(255)]
public string OrderType { get; set; }
/// <summary>
/// 单据年份
/// </summary>
[Column("order_year")]
public int? OrderYear { get; set; }
/// <summary>
/// 单据计数
/// </summary>
[Column("order_count")]
public int? OrderCount { get; set; }
[ForeignKey(nameof(OrgId))]
[InverseProperty(nameof(BaseJpOrganization.BaseJpOrganizationOrderCounts))]
public virtual BaseJpOrganization Org { 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;
namespace JmpModel.Model
{
[Table("base_jp_policefinger")]
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")]
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;
namespace JmpModel.Model
{
[Table("base_jp_policeman")]
public partial class BaseJpPoliceman
{
public BaseJpPoliceman()
{
BaseJpCabinetPolicemen = new HashSet<BaseJpCabinetPoliceman>();
BaseJpPolicefingers = new HashSet<BaseJpPolicefinger>();
CommonJpBorrowReturnApplyApplies = new HashSet<CommonJpBorrowReturnApply>();
CommonJpBorrowReturnApplyApprovalPersonNavigations = new HashSet<CommonJpBorrowReturnApply>();
CommonJpBorrowReturnApplyPolices = new HashSet<CommonJpBorrowReturnApply>();
CommonJpBorrowReturns = new HashSet<CommonJpBorrowReturn>();
CommonJpChannelMonitorRecords = new HashSet<CommonJpChannelMonitorRecord>();
CommonJpEquipmentHistories = new HashSet<CommonJpEquipmentHistory>();
CommonJpEquipmentInventories = new HashSet<CommonJpEquipmentInventory>();
CommonJpEquipmentStates = new HashSet<CommonJpEquipmentState>();
CommonJpPoliceShiftJobsApplies = new HashSet<CommonJpPoliceShiftJobsApply>();
CommonJpTransferApplyApplies = new HashSet<CommonJpTransferApply>();
CommonJpTransferApplyApprovalPersonNavigations = new HashSet<CommonJpTransferApply>();
CommonJpUsers = new HashSet<CommonJpUser>();
}
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
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", TypeName = "text")]
public string FingerInfo2 { get; set; }
[Column("finger_info1", TypeName = "text")]
public string FingerInfo1 { get; set; }
[Column("face_info", TypeName = "text")]
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; }
/// <summary>
/// 是否已创建账户
/// </summary>
public bool IsCreatedAccount { get; set; }
/// <summary>
/// 卡号
/// </summary>
[Column("cardNo")]
[StringLength(255)]
public string CardNo { get; set; }
/// <summary>
/// 身份证号
/// </summary>
[Column("idCardNo")]
[StringLength(255)]
public string IdCardNo { 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(CommonJpBorrowReturnApply.Police))]
public virtual ICollection<CommonJpBorrowReturnApply> CommonJpBorrowReturnApplyPolices { 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(CommonJpPoliceShiftJobsApply.ApplyPolice))]
public virtual ICollection<CommonJpPoliceShiftJobsApply> CommonJpPoliceShiftJobsApplies { 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;
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", TypeName = "text")]
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;
namespace JmpModel.Model
{
[Table("base_jp_shelf_info")]
public partial class BaseJpShelfInfo
{
public BaseJpShelfInfo()
{
CommonJpEquipmentInventories = new HashSet<CommonJpEquipmentInventory>();
CommonJpInventoryTables = new HashSet<CommonJpInventoryTable>();
}
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
/// <summary>
/// 创建时间
/// </summary>
[Column("create_time", TypeName = "datetime")]
public DateTime? CreateTime { get; set; }
/// <summary>
/// 货架名称
/// </summary>
[Column("name")]
[StringLength(255)]
public string Name { get; set; }
/// <summary>
/// 货架编号
/// </summary>
[Column("code")]
[StringLength(255)]
public string Code { get; set; }
/// <summary>
/// 货架类型
/// Normal:普通货架
/// Smart:智能货架
///
/// </summary>
[Column("type")]
[StringLength(255)]
public string Type { get; set; }
/// <summary>
/// 仓库id
/// </summary>
[Column("warehouseId")]
[StringLength(36)]
public string WarehouseId { get; set; }
/// <summary>
/// 货架尺寸
/// </summary>
[Column("shelf_size")]
[StringLength(255)]
public string ShelfSize { get; set; }
/// <summary>
/// 货架层数
/// </summary>
[Column("row")]
public int? Row { get; set; }
/// <summary>
/// 单层货架列数
/// </summary>
[Column("column")]
public int? Column { get; set; }
/// <summary>
/// 智能货架url
/// </summary>
[Column("url")]
[StringLength(255)]
public string Url { get; set; }
/// <summary>
/// 货架排数(智能货架多货架拼接)
/// </summary>
[Column("range")]
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;
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")]
public int? Version { get; set; }
[Column("updateTime", TypeName = "datetime")]
public DateTime? UpdateTime { get; set; }
[Column("appCode")]
[StringLength(50)]
public string AppCode { get; set; }
/// <summary>
/// 版本号 1.0.0.0
/// </summary>
[Column("version2")]
[StringLength(255)]
public string Version2 { get; set; }
/// <summary>
/// 文件md5
/// </summary>
[Column("fileMD5")]
[StringLength(255)]
public string FileMd5 { get; set; }
/// <summary>
/// 是否启用自动更新
/// </summary>
[Column("isAutoUpdate")]
public bool? IsAutoUpdate { get; set; }
/// <summary>
/// 自动更新文件地址
/// </summary>
[Column("autoUpdateAddress")]
[StringLength(255)]
public string AutoUpdateAddress { get; set; }
/// <summary>
/// 自动更新文件md5
/// </summary>
[Column("autoUpdateFileMD5")]
[StringLength(255)]
public string AutoUpdateFileMd5 { get; set; }
/// <summary>
/// 自动更新版本号 1.0.0.0
/// </summary>
[Column("autoUpdateVersion2")]
[StringLength(255)]
public string AutoUpdateVersion2 { get; set; }
/// <summary>
/// 分类类型
/// </summary>
[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;
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>();
CommonJpPoliceShiftJobsApplyDetails = new HashSet<CommonJpPoliceShiftJobsApplyDetail>();
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; }
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(CommonJpPoliceShiftJobsApplyDetail.Supplier))]
public virtual ICollection<CommonJpPoliceShiftJobsApplyDetail> CommonJpPoliceShiftJobsApplyDetails { 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;
namespace JmpModel.Model
{
[Table("base_jp_supplier_equipment")]
public partial class BaseJpSupplierEquipment
{
[Required]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
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")]
public int State { get; set; }
[Column("useless_uint")]
[StringLength(64)]
public string UselessUint { get; set; }
[Column("useless_time")]
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")]
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;
namespace JmpModel.Model
{
[Table("base_jp_temp_file")]
public partial class BaseJpTempFile
{
[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("updateTime", TypeName = "datetime")]
public DateTime? UpdateTime { get; set; }
/// <summary>
/// 上传人
/// </summary>
[Column("uploadUserId")]
[StringLength(36)]
public string UploadUserId { get; set; }
[ForeignKey(nameof(UploadUserId))]
[InverseProperty(nameof(CommonJpUser.BaseJpTempFiles))]
public virtual CommonJpUser UploadUser { 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;
namespace JmpModel.Model
{
[Table("base_jp_temp_file_log")]
public partial class BaseJpTempFileLog
{
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
/// <summary>
/// 操作类型 add delete
/// </summary>
[Column("type")]
[StringLength(36)]
public string Type { get; set; }
/// <summary>
/// 操作文件名
/// </summary>
[Column("fileName")]
[StringLength(255)]
public string FileName { get; set; }
/// <summary>
/// 创建时间
/// </summary>
[Column("createTime", TypeName = "datetime")]
public DateTime? CreateTime { get; set; }
/// <summary>
/// 上传人
/// </summary>
[Column("updateUserName")]
[StringLength(36)]
public string UpdateUserName { 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;
namespace JmpModel.Model
{
[Table("base_jp_warehouse")]
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; }
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; }
/// <summary>
/// 是否锁库,0:未锁库,1:锁库中
/// </summary>
[Column("is_locked")]
public bool? IsLocked { get; set; }
/// <summary>
/// 摄像头地址
/// </summary>
[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; }
/// <summary>
/// 是否停用仓库
/// </summary>
[Column("is_disabled")]
public bool? IsDisabled { 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;
namespace JmpModel.Model
{
[Table("base_jp_warehouse_dev")]
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")]
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")]
public int? DevState { get; set; }
[Column("set_sd")]
[StringLength(255)]
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;
namespace JmpModel.Model
{
[Table("base_jp_warehouse_dev_history")]
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")]
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")]
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;
namespace JmpModel.Model
{
[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")]
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;
namespace JmpModel.Model
{
[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;
namespace JmpModel.Model
{
[Table("column_config")]
public partial class ColumnConfig
{
[Key]
[Column("id")]
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;
namespace JmpModel.Model
{
[Table("common_jp_bag_inventory")]
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; }
/// <summary>
/// 装备包实例epc
/// </summary>
[Column("epc")]
[StringLength(255)]
public string Epc { get; set; }
/// <summary>
/// 装备包概念id
/// </summary>
[Column("bag_id")]
[StringLength(36)]
public string BagId { get; set; }
/// <summary>
/// 打印状态:
/// 0 初始化
/// 1 待打印
/// 2 已打印
/// </summary>
[Column("print_state")]
public int? PrintState { get; set; }
/// <summary>
/// 序号
/// </summary>
[Column("number")]
public int? Number { get; set; }
/// <summary>
/// 需要绑定的装备数量
/// </summary>
[Column("need_number")]
public int? NeedNumber { get; set; }
/// <summary>
/// 仓库id
/// </summary>
[Column("warehouse_id")]
[StringLength(36)]
public string WarehouseId { get; set; }
[Column("is_delete")]
public bool? IsDelete { get; set; }
/// <summary>
/// 出入库状态,0在库,1出库, 2维护
/// </summary>
[Column("state")]
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;
namespace JmpModel.Model
{
[Table("common_jp_borrow_return")]
public partial class CommonJpBorrowReturn
{
public CommonJpBorrowReturn()
{
CommonJpBorrowReturnDetailRealities = new HashSet<CommonJpBorrowReturnDetailReality>();
}
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
public int? Sort { get; set; }
[Column("policeman_id")]
[StringLength(36)]
public string PolicemanId { get; set; }
[Column("current_state")]
public int CurrentState { get; set; }
[Column("action_type")]
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; }
[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;
namespace JmpModel.Model
{
[Table("common_jp_borrow_return_apply")]
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; }
public int? Sort { get; set; }
[Required]
[Column("org_id")]
[StringLength(36)]
public string OrgId { get; set; }
[Column("action_type")]
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")]
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")]
[StringLength(500)]
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 = "datetime")]
public DateTime? ExpectedReturnTime { get; set; }
[Column("process_current_id")]
[StringLength(36)]
public string ProcessCurrentId { get; set; }
[Column("change_flag")]
public int? ChangeFlag { get; set; }
[Column("police_note", TypeName = "text")]
public string PoliceNote { get; set; }
[Column("police_id")]
[StringLength(36)]
public string PoliceId { get; set; }
/// <summary>
/// 打印单单据号
/// </summary>
[Column("print_order_code")]
[StringLength(255)]
public string PrintOrderCode { get; set; }
/// <summary>
/// 打印单单据时间(第一次创建打印单时间)
/// </summary>
[Column("print_order_time", TypeName = "datetime")]
public DateTime? PrintOrderTime { get; set; }
/// <summary>
/// 单据附加文件地址(上传)
/// </summary>
[Column("file_url")]
[StringLength(255)]
public string FileUrl { 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(PoliceId))]
[InverseProperty(nameof(BaseJpPoliceman.CommonJpBorrowReturnApplyPolices))]
public virtual BaseJpPoliceman Police { 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;
namespace JmpModel.Model
{
[Table("common_jp_borrow_return_detail_estimate")]
public partial class CommonJpBorrowReturnDetailEstimate
{
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
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")]
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; }
/// <summary>
/// 单价
/// </summary>
[Column("unitPrice", TypeName = "decimal(18, 2)")]
public decimal? UnitPrice { get; set; }
/// <summary>
/// 总价
/// </summary>
[Column("price", TypeName = "decimal(18, 2)")]
public decimal? Price { 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;
namespace JmpModel.Model
{
[Table("common_jp_borrow_return_detail_reality")]
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; }
public int? Sort { get; set; }
[Column("state")]
public int? State { get; set; }
[Column("equipment_count")]
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")]
public int? RealCount { get; set; }
[Column("inside_real_count")]
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;
namespace JmpModel.Model
{
[Table("common_jp_channel_cfg")]
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")]
public int? FacePort { get; set; }
[Column("faceAddress")]
[StringLength(255)]
public string FaceAddress { get; set; }
[Column("readerTime")]
public int? ReaderTime { get; set; }
[Column("faceEnable")]
public bool? FaceEnable { get; set; }
[Column("filterTime")]
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")]
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")]
public int? CamType { get; set; }
[Column("camChannel")]
public int? CamChannel { get; set; }
[Column("gpioAddr")]
[StringLength(255)]
public string GpioAddr { get; set; }
[Column("gpioPort")]
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;
namespace JmpModel.Model
{
[Table("common_jp_channel_cfg_v2")]
public partial class CommonJpChannelCfgV2
{
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
/// <summary>
/// 通道编号
/// </summary>
[Column("code")]
[StringLength(255)]
public string Code { get; set; }
/// <summary>
/// 仓库id
/// </summary>
[Column("warehouseId")]
[StringLength(36)]
public string WarehouseId { get; set; }
/// <summary>
/// 位置
/// </summary>
[Column("location")]
[StringLength(255)]
public string Location { get; set; }
/// <summary>
/// 通道状态
/// </summary>
[Column("currentState")]
public bool? CurrentState { get; set; }
/// <summary>
/// 通道名称
/// </summary>
[Column("name")]
[StringLength(255)]
public string Name { get; set; }
/// <summary>
/// 创建时间
/// </summary>
[Column("createTime", TypeName = "datetime")]
public DateTime? CreateTime { get; set; }
/// <summary>
/// 更新用户
/// </summary>
[Column("updateUser")]
[StringLength(100)]
public string UpdateUser { get; set; }
/// <summary>
/// 读写器配置json
/// </summary>
[Column("readerConfigJson", TypeName = "text")]
public string ReaderConfigJson { get; set; }
/// <summary>
/// 过滤时间(单位 秒 所有读写器共用)
/// </summary>
[Column("filterTime")]
public int? FilterTime { get; set; }
/// <summary>
/// 门禁机配置json
/// </summary>
[Column("faceConfigJson", TypeName = "text")]
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;
namespace JmpModel.Model
{
[Table("common_jp_channel_monitor_record")]
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")]
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;
namespace JmpModel.Model
{
[Table("common_jp_channel_monitor_record_inventory")]
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")]
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;
namespace JmpModel.Model
{
[Table("common_jp_epc_gscode")]
public partial class CommonJpEpcGscode
{
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
/// <summary>
/// epc
/// </summary>
[Column("epc")]
[StringLength(128)]
public string Epc { get; set; }
/// <summary>
/// 资产云编号
/// </summary>
[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;
namespace JmpModel.Model
{
[Table("common_jp_equipment_box_mark")]
public partial class CommonJpEquipmentBoxMark
{
public CommonJpEquipmentBoxMark()
{
CommonJpEquipmentInventories = new HashSet<CommonJpEquipmentInventory>();
}
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
/// <summary>
/// 创建时间
/// </summary>
[Column("create_time", TypeName = "datetime")]
public DateTime? CreateTime { get; set; }
/// <summary>
/// epc
/// </summary>
[Column("epc")]
[StringLength(128)]
public string Epc { get; set; }
/// <summary>
/// 箱内数量
/// </summary>
[Column("oneBoxNum")]
public int? OneBoxNum { get; set; }
/// <summary>
/// 装备详细类型id
/// </summary>
[Column("equipmentDetailId")]
[StringLength(36)]
public string EquipmentDetailId { get; set; }
/// <summary>
/// 装备型号id
/// </summary>
[Column("sizeId")]
[StringLength(36)]
public string SizeId { get; set; }
/// <summary>
/// 供应商id
/// </summary>
[Column("supplierId")]
[StringLength(36)]
public string SupplierId { get; set; }
/// <summary>
/// 状态
/// </summary>
[Column("currentState")]
public int? CurrentState { get; set; }
/// <summary>
/// 仓库id
/// </summary>
[Column("warehouseId")]
[StringLength(36)]
public string WarehouseId { get; set; }
/// <summary>
/// 重装箱状态
/// 0:未重装箱
/// 1:未打印
/// 2:已打印
/// </summary>
[Column("reloadBoxingState")]
public int? ReloadBoxingState { get; set; }
/// <summary>
/// 旧版epc
/// </summary>
[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;
namespace JmpModel.Model
{
[Table("common_jp_equipment_history")]
public partial class CommonJpEquipmentHistory
{
[Key]
[Column("id")]
public int Id { get; set; }
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;
namespace JmpModel.Model
{
[Table("common_jp_equipment_inventory")]
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; }
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")]
public int EquipmentLocation { get; set; }
[Column("current_state")]
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")]
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")]
public int? WarrantyCycle { get; set; }
[Column("repairCycle")]
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", TypeName = "decimal(10, 2)")]
public decimal? Price { get; set; }
[Column("useDirection")]
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; }
/// <summary>
/// 货架id
/// </summary>
[Column("shelfId")]
[StringLength(36)]
public string ShelfId { get; set; }
/// <summary>
/// normal:正常状态,loss:盘亏,profit :盘盈
/// </summary>
[Column("inventory_state")]
[StringLength(36)]
public string InventoryState { get; set; }
/// <summary>
/// 是否在箱内(箱标未拆箱)
/// </summary>
[Column("isInBox")]
public bool? IsInBox { get; set; }
/// <summary>
/// 货架位置:行
/// </summary>
[Column("shelf_row")]
public int? ShelfRow { get; set; }
/// <summary>
/// 货架位置:列
/// </summary>
[Column("shelf_column")]
public int? ShelfColumn { get; set; }
/// <summary>
/// 货架位置:排
/// </summary>
[Column("shelf_range")]
public int? ShelfRange { get; set; }
/// <summary>
/// 安全等级
/// 0:安全
/// 1:即将过期
/// 2:已过期
/// </summary>
[Column("safe_level")]
public int? SafeLevel { get; set; }
/// <summary>
/// 箱标id
/// </summary>
[Column("box_mark_id")]
[StringLength(36)]
public string BoxMarkId { get; set; }
/// <summary>
/// 标签实例化状态(打印or绑定过)
/// 0:其他
/// 1:未打印
/// 2:已打印
/// </summary>
[Column("instantiation_state")]
public int? InstantiationState { get; set; }
/// <summary>
/// 第三方code(判重用)
/// </summary>
[Column("third_code")]
[StringLength(255)]
public string ThirdCode { get; set; }
/// <summary>
/// 装备包实例id
/// </summary>
[Column("bag_inventory_id")]
[StringLength(36)]
public string BagInventoryId { get; set; }
/// <summary>
/// 组织机构id
/// </summary>
[Column("org_id")]
[StringLength(36)]
public string OrgId { get; set; }
/// <summary>
/// 是否已报废待销毁
/// </summary>
[Column("is_fixed")]
public bool IsFixed { get; set; }
/// <summary>
/// 标签TID
/// </summary>
[Column("tid")]
[StringLength(255)]
public string Tid { 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(OrgId))]
[InverseProperty(nameof(BaseJpOrganization.CommonJpEquipmentInventories))]
public virtual BaseJpOrganization Org { 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;
namespace JmpModel.Model
{
[Table("common_jp_equipment_state")]
public partial class CommonJpEquipmentState
{
public CommonJpEquipmentState()
{
CommonJpTmpInfos = new HashSet<CommonJpTmpInfo>();
}
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
public int? Sort { get; set; }
[Column("eqiupment_id")]
[StringLength(36)]
public string EqiupmentId { get; set; }
[Column("out_in_state")]
public int? OutInState { get; set; }
[Column("state")]
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")]
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; }
/// <summary>
/// 历史安全等级
/// 0:安全
/// 1:即将过期
/// 2:已过期
/// </summary>
[Column("history_safe_level")]
public int? HistorySafeLevel { get; set; }
/// <summary>
/// 装备回库id
/// </summary>
[Column("return_id")]
[StringLength(36)]
public string ReturnId { get; set; }
/// <summary>
/// 包实例id
/// </summary>
[Column("bag_inventory_id")]
[StringLength(36)]
public string BagInventoryId { get; set; }
[Column("mission_model_id")]
[StringLength(36)]
public string MissionModelId { get; set; }
/// <summary>
/// 入库单警柜名称
/// </summary>
[Column("cabinet_id_into_name")]
[StringLength(255)]
public string CabinetIdIntoName { get; set; }
/// <summary>
/// 出库单警柜名称
/// </summary>
[Column("cabinet_id_out_name")]
[StringLength(255)]
public string CabinetIdOutName { get; set; }
/// <summary>
/// 自建平台内stateid
/// </summary>
[Column("third_state_id")]
[StringLength(36)]
public string ThirdStateId { get; set; }
/// <summary>
/// 自建平台基础orgid
/// </summary>
[Column("third_base_org_id")]
[StringLength(36)]
public string ThirdBaseOrgId { get; set; }
/// <summary>
/// 调岗id
/// </summary>
[Column("shift_jobs_id")]
[StringLength(36)]
public string ShiftJobsId { 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(ShiftJobsId))]
[InverseProperty(nameof(CommonJpPoliceShiftJobsApplyDetail.CommonJpEquipmentStates))]
public virtual CommonJpPoliceShiftJobsApplyDetail ShiftJobs { 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;
namespace JmpModel.Model
{
[Table("common_jp_equipment_threshold")]
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; }
/// <summary>
/// 装备细类id
/// </summary>
[Required]
[Column("equipment_detail_id")]
[StringLength(36)]
public string EquipmentDetailId { get; set; }
/// <summary>
/// 装备型号id
/// </summary>
[Required]
[Column("equipment_size_id")]
[StringLength(36)]
public string EquipmentSizeId { get; set; }
/// <summary>
/// 组织机构id
/// </summary>
[Required]
[Column("org_id")]
[StringLength(36)]
public string OrgId { get; set; }
/// <summary>
/// 阈值
/// </summary>
[Column("threshold_count")]
public int ThresholdCount { get; set; }
/// <summary>
/// 是否启用
/// </summary>
[Column("is_enabled")]
public bool IsEnabled { get; set; }
/// <summary>
/// 仓库id
/// </summary>
[Column("warehouse_id")]
[StringLength(36)]
public string WarehouseId { get; set; }
/// <summary>
/// 范围类型
/// Organization :组织机构
/// Warehouse:仓库
/// </summary>
[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;
namespace JmpModel.Model
{
[Table("common_jp_equipment_threshold_result")]
public partial class CommonJpEquipmentThresholdResult
{
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
[Column("create_time", TypeName = "datetime")]
public DateTime CreateTime { get; set; }
/// <summary>
/// 关联阈值设置id
/// </summary>
[Required]
[Column("threshold_id")]
[StringLength(36)]
public string ThresholdId { get; set; }
/// <summary>
/// 当前仓库总数
/// </summary>
[Column("inside_count")]
public int InsideCount { get; set; }
/// <summary>
/// 实际在库总数
/// </summary>
[Column("real_inside_count")]
public int RealInsideCount { get; set; }
/// <summary>
/// 采购单补填总数 (采购单采购总数-已采购总数)
/// </summary>
[Column("purchase_fill_count")]
public int PurchaseFillCount { get; set; }
/// <summary>
/// 是否低于阈值
/// </summary>
[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;
namespace JmpModel.Model
{
[Table("common_jp_fix_receive_apply")]
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")]
public int? Sort { get; set; }
[Column("action")]
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")]
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")]
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; }
/// <summary>
/// 打印单单据号
/// </summary>
[Column("print_order_code")]
[StringLength(255)]
public string PrintOrderCode { get; set; }
/// <summary>
/// 打印单单据时间(第一次创建打印单时间)
/// </summary>
[Column("print_order_time", TypeName = "datetime")]
public DateTime? PrintOrderTime { 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;
namespace JmpModel.Model
{
[Table("common_jp_fix_receive_apply_detail")]
public partial class CommonJpFixReceiveApplyDetail
{
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
[Column("sort")]
public int? Sort { get; set; }
[Required]
[Column("equipment_id")]
[StringLength(36)]
public string EquipmentId { get; set; }
[Column("quantity")]
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")]
public int? State { get; set; }
[Column("real_count")]
public int? RealCount { get; set; }
[Column("inside_real_count")]
public int? InsideRealCount { get; set; }
/// <summary>
/// 单价
/// </summary>
[Column("unitPrice", TypeName = "decimal(18, 2)")]
public decimal? UnitPrice { get; set; }
/// <summary>
/// 总价
/// </summary>
[Column("price", TypeName = "decimal(18, 2)")]
public decimal? Price { 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;
namespace JmpModel.Model
{
[Table("common_jp_fix_useless")]
public partial class CommonJpFixUseless
{
public CommonJpFixUseless()
{
CommonJpFixUselessDetails = new HashSet<CommonJpFixUselessDetail>();
}
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
[Column("sort")]
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")]
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")]
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;
namespace JmpModel.Model
{
[Table("common_jp_fix_useless_detail")]
public partial class CommonJpFixUselessDetail
{
public CommonJpFixUselessDetail()
{
CommonJpEquipmentStates = new HashSet<CommonJpEquipmentState>();
}
[Key]
[Column("id")]
[StringLength(36)]
public string Id { get; set; }
[Column("sort")]
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")]
public int? State { get; set; }
[Column("quantity")]
public int? Quantity { get; set; }
[Column("epc")]
[StringLength(255)]
public string Epc { get; set; }
[Column("real_count")]
public int? RealCount { get; set; }
[Column("inside_real_count")]
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
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.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论