From dda57b4596dfef2e72cae57148b78781e84bacde Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=AD=A6=20=E8=B5=B5?= <89237069@qq.com>
Date: Thu, 6 Aug 2020 16:44:27 +0800
Subject: [PATCH 1/8] =?UTF-8?q?=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Models/CK.SCP.Models.csproj | 2 -
Models/ScpEntities.cs | 2 +-
Models/UniApiEntity/UniInterfaceExtention.cs | 729 -------------------
Models/UniApiEntity/xxwms_rt_det.cs | 4 +-
Models/xxqad_vd_mstr.cs | 93 ---
5 files changed, 3 insertions(+), 827 deletions(-)
delete mode 100644 Models/UniApiEntity/UniInterfaceExtention.cs
delete mode 100644 Models/xxqad_vd_mstr.cs
diff --git a/Models/CK.SCP.Models.csproj b/Models/CK.SCP.Models.csproj
index 9485ea2..0b8d682 100644
--- a/Models/CK.SCP.Models.csproj
+++ b/Models/CK.SCP.Models.csproj
@@ -438,7 +438,6 @@
-
@@ -471,7 +470,6 @@
-
diff --git a/Models/ScpEntities.cs b/Models/ScpEntities.cs
index 2c95f99..3f32acc 100644
--- a/Models/ScpEntities.cs
+++ b/Models/ScpEntities.cs
@@ -100,7 +100,7 @@ namespace CK.SCP.Models
public virtual DbSet V_TB_RECEIVE_LIST { get; set; }
public virtual DbSet TB_PRINT_COUNT { get; set; }
public virtual DbSet V_TB_ASN_DETAIL_VIEW { get; set; }
- public virtual DbSet xxqad_vd_mstr { get; set; }
+
public virtual DbSet V_TA_VENDER { get; set; }
public virtual DbSet V_TB_INCOMPLETE_ASK { get; set; }
public virtual DbSet V_TB_PALLET_DETAIL { get; set; }
diff --git a/Models/UniApiEntity/UniInterfaceExtention.cs b/Models/UniApiEntity/UniInterfaceExtention.cs
deleted file mode 100644
index e72f8bc..0000000
--- a/Models/UniApiEntity/UniInterfaceExtention.cs
+++ /dev/null
@@ -1,729 +0,0 @@
-namespace CK.SCP.Models.UniApiEntity
-{
- /*
- ///
- /// WMS系统控制主表
- ///
- public partial class xxwms_ctrl : IControlTable
- {
- [NotMapped] public int UID { get { return xxwms_uid; } set { xxwms_uid = value; } }
- [NotMapped] public string Seq { get { return xxwms_seq; } set { xxwms_seq = value; } }
- [NotMapped] public string TableName { get { return xxwms_table; } set { xxwms_table = value; } }
- [NotMapped] public int RowCount { get { return xxwms_table_qty; } set { xxwms_table_qty = value; } }
- [NotMapped] public string QadRead { get { return xxwms_qad; } set { xxwms_qad = value; } }
- [NotMapped] public string WmsRead { get { return xxwms_wms; } set { xxwms_wms = value; } }
- [NotMapped] public string ScmRead { get { return xxwms_scm; } set { xxwms_scm = value; } }
- [NotMapped] public string MesRead { get { return xxwms_mes; } set { xxwms_mes = value; } }
- [NotMapped] public string Remark { get { return xxwms_rmks; } set { xxwms_rmks = value; } }
-
- public override string ToString()
- {
-
- return EntitiesHelper.GetPropertiesString(this);
- }
- }
-
- ///
- /// QAD系统控制主表
- ///
- public partial class xxqad_ctrl : IControlTable
- {
- [NotMapped] public int UID { get { return xxqad_uid; } set { xxqad_uid = value; } }
-
- [NotMapped] public string Seq { get { return xxqad_seq; } set { xxqad_seq = value; } }
- [NotMapped] public string TableName { get { return xxqad_table; } set { xxqad_table = value; } }
- [NotMapped] public int RowCount { get { return xxqad_table_qty; } set { xxqad_table_qty = value; } }
- [NotMapped] public string QadRead { get { return xxqad_qad; } set { xxqad_qad = value; } }
- [NotMapped] public string WmsRead { get { return xxqad_wms; } set { xxqad_wms = value; } }
- [NotMapped] public string ScmRead { get { return xxqad_scm; } set { xxqad_scm = value; } }
- [NotMapped] public string MesRead { get { return xxqad_mes; } set { xxqad_mes = value; } }
- [NotMapped] public string Remark { get { return xxqad_rmks; } set { xxqad_rmks = value; } }
-
- public override string ToString()
- {
-
- return EntitiesHelper.GetPropertiesString(this);
- }
-
- }
-
- ///
- /// SCM系统控制主表
- ///
- public partial class xxscm_ctrl : IControlTable
- {
- [NotMapped] public int UID { get { return xxscm_uid; } set { xxscm_uid = value; } }
-
- [NotMapped] public string Seq { get { return xxscm_seq; } set { xxscm_seq = value; } }
- [NotMapped] public string TableName { get { return xxscm_table; } set { xxscm_table = value; } }
- [NotMapped] public int RowCount { get { return xxscm_table_qty; } set { xxscm_table_qty = value; } }
- [NotMapped] public string QadRead { get { return xxscm_qad; } set { xxscm_qad = value; } }
- [NotMapped] public string WmsRead { get { return xxscm_wms; } set { xxscm_wms = value; } }
- [NotMapped] public string ScmRead { get { return xxscm_scm; } set { xxscm_scm = value; } }
- [NotMapped] public string MesRead { get { return xxscm_mes; } set { xxscm_mes = value; } }
- [NotMapped] public string Remark { get { return xxscm_rmks; } set { xxscm_rmks = value; } }
-
- public override string ToString()
- {
-
- return EntitiesHelper.GetPropertiesString(this);
- }
- }
- */
-
- ///
- /// 物料信息 from QAD
- ///
- public partial class xxqad_pt_mstr
- {
-// [NotMapped] public int UID { get { return xxqad_pt_uid; } set { xxqad_pt_uid = value; } }
-//
-// [NotMapped] public string Seq { get { return xxqad_pt_seq; } set { xxqad_pt_seq = value; } }
-// [NotMapped] public string QadRead { get { return xxqad_pt_qadread; } set { xxqad_pt_qadread = value; } }
-// [NotMapped] public string WmsRead { get { return xxqad_pt_wmsread; } set { xxqad_pt_wmsread = value; } }
-// [NotMapped] public string ScmRead { get { return xxqad_pt_scmread; } set { xxqad_pt_scmread = value; } }
-// [NotMapped] public string MesRead { get { return xxqad_pt_mesread; } set { xxqad_pt_mesread = value; } }
-// [NotMapped] public string Remark { get { return xxqad_pt_rmks; } set { xxqad_pt_rmks = value; } }
-//
-// [NotMapped] public DateTime? CreateTime { get { return xxqad_pt_createdt; } set { xxqad_pt_createdt = value; } }
-// [NotMapped] public string CreateUser { get { return xxqad_pt_createur; } set { xxqad_pt_createur = value; } }
-// [NotMapped] public DateTime? UpdateTime { get { return xxqad_pt_updatedt; } set { xxqad_pt_updatedt = value; } }
-// [NotMapped] public string UpdateUser { get { return xxqad_pt_updateur; } set { xxqad_pt_updateur = value; } }
-
- public override string ToString()
- {
- return EntitiesHelper.GetPropertiesString(this);
- }
- }
-
- ///
- /// 供应商信息 from QAD
- ///
- public partial class xxqad_vd_mstr
- {
-// [NotMapped] public int UID { get { return xxqad_vd_uid; } set { xxqad_vd_uid = value; } }
-//
-// [NotMapped] public string Seq { get { return xxqad_vd_seq; } set { xxqad_vd_seq = value; } }
-// [NotMapped] public string QadRead { get { return xxqad_vd_qadread; } set { xxqad_vd_qadread = value; } }
-// [NotMapped] public string WmsRead { get { return xxqad_vd_wmsread; } set { xxqad_vd_wmsread = value; } }
-// [NotMapped] public string ScmRead { get { return xxqad_vd_scmread; } set { xxqad_vd_scmread = value; } }
-// [NotMapped] public string MesRead { get { return xxqad_vd_mesread; } set { xxqad_vd_mesread = value; } }
-// [NotMapped] public string Remark { get { return xxqad_vd_rmks; } set { xxqad_vd_rmks = value; } }
-//
-// [NotMapped] public DateTime? CreateTime { get { return xxqad_vd_createdt; } set { xxqad_vd_createdt = value; } }
-// [NotMapped] public string CreateUser { get { return xxqad_vd_createur; } set { xxqad_vd_createur = value; } }
-// [NotMapped] public DateTime? UpdateTime { get { return xxqad_vd_updatedt; } set { xxqad_vd_updatedt = value; } }
-// [NotMapped] public string UpdateUser { get { return xxqad_vd_updateur; } set { xxqad_vd_updateur = value; } }
-
- public override string ToString()
- {
-
- return EntitiesHelper.GetPropertiesString(this);
- }
- }
-
- ///
- /// 客户信息 from QAD
- ///
- public partial class xxqad_cm_mstr
- {
-// [NotMapped] public int UID { get { return xxqad_cm_uid; } set { xxqad_cm_uid = value; } }
-//
-// [NotMapped] public string Seq { get { return xxqad_cm_seq; } set { xxqad_cm_seq = value; } }
-// [NotMapped] public string QadRead { get { return xxqad_cm_qadread; } set { xxqad_cm_qadread = value; } }
-// [NotMapped] public string WmsRead { get { return xxqad_cm_wmsread; } set { xxqad_cm_wmsread = value; } }
-// [NotMapped] public string ScmRead { get { return xxqad_cm_scmread; } set { xxqad_cm_scmread = value; } }
-// [NotMapped] public string MesRead { get { return xxqad_cm_mesread; } set { xxqad_cm_mesread = value; } }
-// [NotMapped] public string Remark { get { return xxqad_cm_rmks; } set { xxqad_cm_rmks = value; } }
-//
-// [NotMapped] public DateTime? CreateTime { get { return xxqad_cm_createdt; } set { xxqad_cm_createdt = value; } }
-// [NotMapped] public string CreateUser { get { return xxqad_cm_createur; } set { xxqad_cm_createur = value; } }
-// [NotMapped] public DateTime? UpdateTime { get { return xxqad_cm_updatedt; } set { xxqad_cm_updatedt = value; } }
-// [NotMapped] public string UpdateUser { get { return xxqad_cm_updateur; } set { xxqad_cm_updateur = value; } }
- public override string ToString()
- {
-
- return EntitiesHelper.GetPropertiesString(this);
- }
- }
-
- ///
- /// 供应商物料信息 from QAD
- ///
- public partial class xxqad_vp_mstr
- {
-// [NotMapped] public int UID { get { return xxqad_vp_uid; } set { xxqad_vp_uid = value; } }
-//
-// [NotMapped] public string Seq { get { return xxqad_vp_seq; } set { xxqad_vp_seq = value; } }
-// [NotMapped] public string QadRead { get { return xxqad_vp_qadread; } set { xxqad_vp_qadread = value; } }
-// [NotMapped] public string WmsRead { get { return xxqad_vp_wmsread; } set { xxqad_vp_wmsread = value; } }
-// [NotMapped] public string ScmRead { get { return xxqad_vp_scmread; } set { xxqad_vp_scmread = value; } }
-// [NotMapped] public string MesRead { get { return xxqad_vp_mesread; } set { xxqad_vp_mesread = value; } }
-// [NotMapped] public string Remark { get { return xxqad_vp_rmks; } set { xxqad_vp_rmks = value; } }
-//
-// [NotMapped] public DateTime? CreateTime { get { return xxqad_vp_createdt; } set { xxqad_vp_createdt = value; } }
-// [NotMapped] public string CreateUser { get { return xxqad_vp_createur; } set { xxqad_vp_createur = value; } }
-// [NotMapped] public DateTime? UpdateTime { get { return xxqad_vp_updatedt; } set { xxqad_vp_updatedt = value; } }
-// [NotMapped] public string UpdateUser { get { return xxqad_vp_updateur; } set { xxqad_vp_updateur = value; } }
- public override string ToString()
- {
-
- return EntitiesHelper.GetPropertiesString(this);
- }
- }
-
-
- ///
- /// 供应商物料信息 from QAD
- ///
- public partial class xxqad_sche_mstr
- {
-// [NotMapped] public int UID { get { return xxqad_sche_uid; } set { xxqad_sche_uid = value; } }
-//
-// [NotMapped] public string Seq { get { return xxqad_sche_seq; } set { xxqad_sche_seq = value; } }
-// [NotMapped] public string QadRead { get { return xxqad_sche_qadread; } set { xxqad_sche_qadread = value; } }
-// [NotMapped] public string WmsRead { get { return xxqad_sche_wmsread; } set { xxqad_sche_wmsread = value; } }
-// [NotMapped] public string ScmRead { get { return xxqad_sche_scmread; } set { xxqad_sche_scmread = value; } }
-// [NotMapped] public string MesRead { get { return xxqad_sche_mesread; } set { xxqad_sche_mesread = value; } }
-// [NotMapped] public string Remark { get { return xxqad_sche_rmks; } set { xxqad_sche_rmks = value; } }
-//
-// [NotMapped] public DateTime? CreateTime { get { return xxqad_sche_createdt; } set { xxqad_sche_createdt = value; } }
-// [NotMapped] public string CreateUser { get { return xxqad_sche_createur; } set { xxqad_sche_createur = value; } }
-// [NotMapped] public DateTime? UpdateTime { get { return xxqad_sche_updatedt; } set { xxqad_sche_updatedt = value; } }
-// [NotMapped] public string UpdateUser { get { return xxqad_sche_updateur; } set { xxqad_sche_updateur = value; } }
- public override string ToString()
- {
-
- return EntitiesHelper.GetPropertiesString(this);
- }
- }
-
- ///
- /// 采购价格信息 from QAD
- ///
- public partial class xxqad_pprice_det
- {
-// [NotMapped] public int UID { get { return xxqad_pprice_uid; } set { xxqad_pprice_uid = value; } }
-//
-// [NotMapped] public string Seq { get { return xxqad_pprice_seq; } set { xxqad_pprice_seq = value; } }
-// [NotMapped] public string QadRead { get { return xxqad_pprice_qadread; } set { xxqad_pprice_qadread = value; } }
-// [NotMapped] public string WmsRead { get { return xxqad_pprice_wmsread; } set { xxqad_pprice_wmsread = value; } }
-// [NotMapped] public string ScmRead { get { return xxqad_pprice_scmread; } set { xxqad_pprice_scmread = value; } }
-// [NotMapped] public string MesRead { get { return xxqad_pprice_mesread; } set { xxqad_pprice_mesread = value; } }
-// [NotMapped] public string Remark { get { return xxqad_pprice_rmks; } set { xxqad_pprice_rmks = value; } }
-//
-// [NotMapped] public DateTime? CreateTime { get { return xxqad_pprice_createdt; } set { xxqad_pprice_createdt = value; } }
-// [NotMapped] public string CreateUser { get { return xxqad_pprice_createur; } set { xxqad_pprice_createur = value; } }
-// [NotMapped] public DateTime? UpdateTime { get { return xxqad_pprice_updatedt; } set { xxqad_pprice_updatedt = value; } }
-// [NotMapped] public string UpdateUser { get { return xxqad_pprice_updateur; } set { xxqad_pprice_updateur = value; } }
- public override string ToString()
- {
-
- return EntitiesHelper.GetPropertiesString(this);
- }
- }
-
- ///
- /// 销售价格信息 from QAD
- ///
- public partial class xxqad_sprice_det
- {
-// [NotMapped] public int UID { get { return xxqad_sprice_uid; } set { xxqad_sprice_uid = value; } }
-//
-// [NotMapped] public string Seq { get { return xxqad_sprice_seq; } set { xxqad_sprice_seq = value; } }
-// [NotMapped] public string QadRead { get { return xxqad_sprice_qadread; } set { xxqad_sprice_qadread = value; } }
-// [NotMapped] public string WmsRead { get { return xxqad_sprice_wmsread; } set { xxqad_sprice_wmsread = value; } }
-// [NotMapped] public string ScmRead { get { return xxqad_sprice_scmread; } set { xxqad_sprice_scmread = value; } }
-// [NotMapped] public string MesRead { get { return xxqad_sprice_mesread; } set { xxqad_sprice_mesread = value; } }
-// [NotMapped] public string Remark { get { return xxqad_sprice_rmks; } set { xxqad_sprice_rmks = value; } }
-//
-// [NotMapped] public DateTime? CreateTime { get { return xxqad_sprice_createdt; } set { xxqad_sprice_createdt = value; } }
-// [NotMapped] public string CreateUser { get { return xxqad_sprice_createur; } set { xxqad_sprice_createur = value; } }
-// [NotMapped] public DateTime? UpdateTime { get { return xxqad_sprice_updatedt; } set { xxqad_sprice_updatedt = value; } }
-// [NotMapped] public string UpdateUser { get { return xxqad_sprice_updateur; } set { xxqad_sprice_updateur = value; } }
- public override string ToString()
- {
-
- return EntitiesHelper.GetPropertiesString(this);
- }
- }
-
- ///
- /// 采购订单信息 from QAD
- ///
- public partial class xxqad_pod_det
- {
-// [NotMapped] public int UID { get { return xxqad_pod_uid; } set { xxqad_pod_uid = value; } }
-//
-// [NotMapped] public string Seq { get { return xxqad_pod_seq; } set { xxqad_pod_seq = value; } }
-// [NotMapped] public string QadRead { get { return xxqad_pod_qadread; } set { xxqad_pod_qadread = value; } }
-// [NotMapped] public string WmsRead { get { return xxqad_pod_wmsread; } set { xxqad_pod_wmsread = value; } }
-// [NotMapped] public string ScmRead { get { return xxqad_pod_scmread; } set { xxqad_pod_scmread = value; } }
-// [NotMapped] public string MesRead { get { return xxqad_pod_mesread; } set { xxqad_pod_mesread = value; } }
-// [NotMapped] public string Remark { get { return xxqad_pod_rmks; } set { xxqad_pod_rmks = value; } }
-//
-// [NotMapped] public DateTime? CreateTime { get { return xxqad_pod_createdt; } set { xxqad_pod_createdt = value; } }
-// [NotMapped] public string CreateUser { get { return xxqad_pod_createur; } set { xxqad_pod_createur = value; } }
-// [NotMapped] public DateTime? UpdateTime { get { return xxqad_pod_updatedt; } set { xxqad_pod_updatedt = value; } }
-// [NotMapped] public string UpdateUser { get { return xxqad_pod_updateur; } set { xxqad_pod_updateur = value; } }
- public override string ToString()
- {
-
- return EntitiesHelper.GetPropertiesString(this);
- }
- }
-
-
- ///
- /// 销售订单信息 from QAD
- ///
- public partial class xxqad_sod_det
- {
-// [NotMapped] public int UID { get { return xxqad_sod_uid; } set { xxqad_sod_uid = value; } }
-//
-// [NotMapped] public string Seq { get { return xxqad_sod_seq; } set { xxqad_sod_seq = value; } }
-// [NotMapped] public string QadRead { get { return xxqad_sod_qadread; } set { xxqad_sod_qadread = value; } }
-// [NotMapped] public string WmsRead { get { return xxqad_sod_wmsread; } set { xxqad_sod_wmsread = value; } }
-// [NotMapped] public string ScmRead { get { return xxqad_sod_scmread; } set { xxqad_sod_scmread = value; } }
-// [NotMapped] public string MesRead { get { return xxqad_sod_mesread; } set { xxqad_sod_mesread = value; } }
-// [NotMapped] public string Remark { get { return xxqad_sod_rmks; } set { xxqad_sod_rmks = value; } }
-//
-// [NotMapped] public DateTime? CreateTime { get { return xxqad_sod_createdt; } set { xxqad_sod_createdt = value; } }
-// [NotMapped] public string CreateUser { get { return xxqad_sod_createur; } set { xxqad_sod_createur = value; } }
-// [NotMapped] public DateTime? UpdateTime { get { return xxqad_sod_updatedt; } set { xxqad_sod_updatedt = value; } }
-// [NotMapped] public string UpdateUser { get { return xxqad_sod_updateur; } set { xxqad_sod_updateur = value; } }
- public override string ToString()
- {
-
- return EntitiesHelper.GetPropertiesString(this);
- }
- }
-
- ///
- /// 库位信息 from QAD
- ///
- public partial class xxqad_loc_det
- {
-// [NotMapped] public int UID { get { return xxqad_loc_uid; } set { xxqad_loc_uid = value; } }
-//
-// [NotMapped] public string Seq { get { return xxqad_loc_seq; } set { xxqad_loc_seq = value; } }
-// [NotMapped] public string QadRead { get { return xxqad_loc_qadread; } set { xxqad_loc_qadread = value; } }
-// [NotMapped] public string WmsRead { get { return xxqad_loc_wmsread; } set { xxqad_loc_wmsread = value; } }
-// [NotMapped] public string ScmRead { get { return xxqad_loc_scmread; } set { xxqad_loc_scmread = value; } }
-// [NotMapped] public string MesRead { get { return xxqad_loc_mesread; } set { xxqad_loc_mesread = value; } }
-// [NotMapped] public string Remark { get { return xxqad_loc_rmks; } set { xxqad_loc_rmks = value; } }
-//
-// [NotMapped] public DateTime? CreateTime { get { return xxqad_loc_createdt; } set { xxqad_loc_createdt = value; } }
-// [NotMapped] public string CreateUser { get { return xxqad_loc_createur; } set { xxqad_loc_createur = value; } }
-// [NotMapped] public DateTime? UpdateTime { get { return xxqad_loc_updatedt; } set { xxqad_loc_updatedt = value; } }
-// [NotMapped] public string UpdateUser { get { return xxqad_loc_updateur; } set { xxqad_loc_updateur = value; } }
- public override string ToString()
- {
-
- return EntitiesHelper.GetPropertiesString(this);
- }
- }
-
- ///
- /// 实时库存信息 from QAD
- ///
- public partial class xxqad_ld_det
- {
-// [NotMapped] public int UID { get { return xxqad_ld_uid; } set { xxqad_ld_uid = value; } }
-//
-// [NotMapped] public string Seq { get { return xxqad_ld_seq; } set { xxqad_ld_seq = value; } }
-// [NotMapped] public string QadRead { get { return xxqad_ld_qadread; } set { xxqad_ld_qadread = value; } }
-// [NotMapped] public string WmsRead { get { return xxqad_ld_wmsread; } set { xxqad_ld_wmsread = value; } }
-// [NotMapped] public string ScmRead { get { return xxqad_ld_scmread; } set { xxqad_ld_scmread = value; } }
-// [NotMapped] public string MesRead { get { return xxqad_ld_mesread; } set { xxqad_ld_mesread = value; } }
-// [NotMapped] public string Remark { get { return xxqad_ld_rmks; } set { xxqad_ld_rmks = value; } }
-//
-// [NotMapped] public DateTime? CreateTime { get { return xxqad_ld_createdt; } set { xxqad_ld_createdt = value; } }
-// [NotMapped] public string CreateUser { get { return xxqad_ld_createur; } set { xxqad_ld_createur = value; } }
-// [NotMapped] public DateTime? UpdateTime { get { return xxqad_ld_updatedt; } set { xxqad_ld_updatedt = value; } }
-// [NotMapped] public string UpdateUser { get { return xxqad_ld_updateur; } set { xxqad_ld_updateur = value; } }
- public override string ToString()
- {
-
- return EntitiesHelper.GetPropertiesString(this);
- }
- }
-
- ///
- /// BOM信息 from QAD
- ///
- public partial class xxqad_ps_mstr
- {
-// [NotMapped] public int UID { get { return xxqad_ps_uid; } set { xxqad_ps_uid = value; } }
-//
-// [NotMapped] public string Seq { get { return xxqad_ps_seq; } set { xxqad_ps_seq = value; } }
-// [NotMapped] public string QadRead { get { return xxqad_ps_qadread; } set { xxqad_ps_qadread = value; } }
-// [NotMapped] public string WmsRead { get { return xxqad_ps_wmsread; } set { xxqad_ps_wmsread = value; } }
-// [NotMapped] public string ScmRead { get { return xxqad_ps_scmread; } set { xxqad_ps_scmread = value; } }
-// [NotMapped] public string MesRead { get { return xxqad_ps_mesread; } set { xxqad_ps_mesread = value; } }
-// [NotMapped] public string Remark { get { return xxqad_ps_rmks; } set { xxqad_ps_rmks = value; } }
-//
-// [NotMapped] public DateTime? CreateTime { get { return xxqad_ps_createdt; } set { xxqad_ps_createdt = value; } }
-// [NotMapped] public string CreateUser { get { return xxqad_ps_createur; } set { xxqad_ps_createur = value; } }
-// [NotMapped] public DateTime? UpdateTime { get { return xxqad_ps_updatedt; } set { xxqad_ps_updatedt = value; } }
-// [NotMapped] public string UpdateUser { get { return xxqad_ps_updateur; } set { xxqad_ps_updateur = value; } }
- public override string ToString()
- {
-
- return EntitiesHelper.GetPropertiesString(this);
- }
- }
-
- ///
- /// 标准成本信息 from QAD
- ///
- public partial class xxqad_sct_det
- {
-// [NotMapped] public int UID { get { return xxqad_sct_uid; } set { xxqad_sct_uid = value; } }
-//
-// [NotMapped] public string Seq { get { return xxqad_sct_seq; } set { xxqad_sct_seq = value; } }
-// [NotMapped] public string QadRead { get { return xxqad_sct_qadread; } set { xxqad_sct_qadread = value; } }
-// [NotMapped] public string WmsRead { get { return xxqad_sct_wmsread; } set { xxqad_sct_wmsread = value; } }
-// [NotMapped] public string ScmRead { get { return xxqad_sct_scmread; } set { xxqad_sct_scmread = value; } }
-// [NotMapped] public string MesRead { get { return xxqad_sct_mesread; } set { xxqad_sct_mesread = value; } }
-// [NotMapped] public string Remark { get { return xxqad_sct_rmks; } set { xxqad_sct_rmks = value; } }
-//
-// [NotMapped] public DateTime? CreateTime { get { return xxqad_sct_createdt; } set { xxqad_sct_createdt = value; } }
-// [NotMapped] public string CreateUser { get { return xxqad_sct_createur; } set { xxqad_sct_createur = value; } }
-// [NotMapped] public DateTime? UpdateTime { get { return xxqad_sct_updatedt; } set { xxqad_sct_updatedt = value; } }
-// [NotMapped] public string UpdateUser { get { return xxqad_sct_updateur; } set { xxqad_sct_updateur = value; } }
- public override string ToString()
- {
-
- return EntitiesHelper.GetPropertiesString(this);
- }
- }
-
- ///
- /// 库存转移 from WMS
- ///
- public partial class xxwms_tr_det
- {
-// [NotMapped] public int UID { get { return xxwms_tr_uid; } set { xxwms_tr_uid = value; } }
-//
-// [NotMapped] public string Seq { get { return xxwms_tr_seq; } set { xxwms_tr_seq = value; } }
-// [NotMapped] public string QadRead { get { return xxwms_tr_qadread; } set { xxwms_tr_qadread = value; } }
-// [NotMapped] public string WmsRead { get { return xxwms_tr_wmsread; } set { xxwms_tr_wmsread = value; } }
-// [NotMapped] public string ScmRead { get { return xxwms_tr_scmread; } set { xxwms_tr_scmread = value; } }
-// [NotMapped] public string MesRead { get { return xxwms_tr_mesread; } set { xxwms_tr_mesread = value; } }
-// [NotMapped] public string Remark { get { return xxwms_tr_rmks; } set { xxwms_tr_rmks = value; } }
-//
-// [NotMapped] public DateTime? CreateTime { get { return xxwms_tr_createdt; } set { xxwms_tr_createdt = value; } }
-// [NotMapped] public string CreateUser { get { return xxwms_tr_createur; } set { xxwms_tr_createur = value; } }
-// [NotMapped] public DateTime? UpdateTime { get { return xxwms_tr_updatedt; } set { xxwms_tr_updatedt = value; } }
-// [NotMapped] public string UpdateUser { get { return xxwms_tr_updateur; } set { xxwms_tr_updateur = value; } }
- public override string ToString()
- {
-
- return EntitiesHelper.GetPropertiesString(this);
- }
- }
-
- ///
- /// 采购入库 from WMS
- ///
- public partial class xxwms_rc_det
- {
-// [NotMapped] public int UID { get { return xxwms_rc_uid; } set { xxwms_rc_uid = value; } }
-//
-// [NotMapped] public string Seq { get { return xxwms_rc_seq; } set { xxwms_rc_seq = value; } }
-// [NotMapped] public string QadRead { get { return xxwms_rc_qadread; } set { xxwms_rc_qadread = value; } }
-// [NotMapped] public string WmsRead { get { return xxwms_rc_wmsread; } set { xxwms_rc_wmsread = value; } }
-// [NotMapped] public string ScmRead { get { return xxwms_rc_scmread; } set { xxwms_rc_scmread = value; } }
-// [NotMapped] public string MesRead { get { return xxwms_rc_mesread; } set { xxwms_rc_mesread = value; } }
-// [NotMapped] public string Remark { get { return xxwms_rc_rmks; } set { xxwms_rc_rmks = value; } }
-//
-// [NotMapped] public DateTime? CreateTime { get { return xxwms_rc_createdt; } set { xxwms_rc_createdt = value; } }
-// [NotMapped] public string CreateUser { get { return xxwms_rc_createur; } set { xxwms_rc_createur = value; } }
-// [NotMapped] public DateTime? UpdateTime { get { return xxwms_rc_updatedt; } set { xxwms_rc_updatedt = value; } }
-// [NotMapped] public string UpdateUser { get { return xxwms_rc_updateur; } set { xxwms_rc_updateur = value; } }
- public override string ToString()
- {
-
- return EntitiesHelper.GetPropertiesString(this);
- }
- }
-
- ///
- /// 采购退货 from WMS
- ///
- public partial class xxwms_rt_det
- {
-// [NotMapped] public int UID { get { return xxwms_rt_uid; } set { xxwms_rt_uid = value; } }
-//
-// [NotMapped] public string Seq { get { return xxwms_rt_seq; } set { xxwms_rt_seq = value; } }
-// [NotMapped] public string QadRead { get { return xxwms_rt_qadread; } set { xxwms_rt_qadread = value; } }
-// [NotMapped] public string WmsRead { get { return xxwms_rt_wmsread; } set { xxwms_rt_wmsread = value; } }
-// [NotMapped] public string ScmRead { get { return xxwms_rt_scmread; } set { xxwms_rt_scmread = value; } }
-// [NotMapped] public string MesRead { get { return xxwms_rt_mesread; } set { xxwms_rt_mesread = value; } }
-// [NotMapped] public string Remark { get { return xxwms_rt_rmks; } set { xxwms_rt_rmks = value; } }
-//
-// [NotMapped] public DateTime? CreateTime { get { return xxwms_rt_createdt; } set { xxwms_rt_createdt = value; } }
-// [NotMapped] public string CreateUser { get { return xxwms_rt_createur; } set { xxwms_rt_createur = value; } }
-// [NotMapped] public DateTime? UpdateTime { get { return xxwms_rt_updatedt; } set { xxwms_rt_updatedt = value; } }
-// [NotMapped] public string UpdateUser { get { return xxwms_rt_updateur; } set { xxwms_rt_updateur = value; } }
- public override string ToString()
- {
-
- return EntitiesHelper.GetPropertiesString(this);
- }
- }
-
- ///
- /// 库存明细带批次 from WMS
- ///
- public partial class xxwms_ld_det
- {
-// [NotMapped] public int UID { get { return xxwms_ld_uid; } set { xxwms_ld_uid = value; } }
-//
-// [NotMapped] public string Seq { get { return xxwms_ld_seq; } set { xxwms_ld_seq = value; } }
-// [NotMapped] public string QadRead { get { return xxwms_ld_qadread; } set { xxwms_ld_qadread = value; } }
-// [NotMapped] public string WmsRead { get { return xxwms_ld_wmsread; } set { xxwms_ld_wmsread = value; } }
-// [NotMapped] public string ScmRead { get { return xxwms_ld_scmread; } set { xxwms_ld_scmread = value; } }
-// [NotMapped] public string MesRead { get { return xxwms_ld_mesread; } set { xxwms_ld_mesread = value; } }
-// [NotMapped] public string Remark { get { return xxwms_ld_rmks; } set { xxwms_ld_rmks = value; } }
-//
-// [NotMapped] public DateTime? CreateTime { get { return xxwms_ld_createdt; } set { xxwms_ld_createdt = value; } }
-// [NotMapped] public string CreateUser { get { return xxwms_ld_createur; } set { xxwms_ld_createur = value; } }
-// [NotMapped] public DateTime? UpdateTime { get { return xxwms_ld_updatedt; } set { xxwms_ld_updatedt = value; } }
-// [NotMapped] public string UpdateUser { get { return xxwms_ld_updateur; } set { xxwms_ld_updateur = value; } }
- public override string ToString()
- {
-
- return EntitiesHelper.GetPropertiesString(this);
- }
- }
-
- ///
- /// 生产回冲 from WMS
- ///
- public partial class xxwms_bk_mstr
- {
-// [NotMapped] public int UID { get { return xxwms_bk_uid; } set { xxwms_bk_uid = value; } }
-//
-// [NotMapped] public string Seq { get { return xxwms_bk_seq; } set { xxwms_bk_seq = value; } }
-// [NotMapped] public string QadRead { get { return xxwms_bk_qadread; } set { xxwms_bk_qadread = value; } }
-// [NotMapped] public string WmsRead { get { return xxwms_bk_wmsread; } set { xxwms_bk_wmsread = value; } }
-// [NotMapped] public string ScmRead { get { return xxwms_bk_scmread; } set { xxwms_bk_scmread = value; } }
-// [NotMapped] public string MesRead { get { return xxwms_bk_mesread; } set { xxwms_bk_mesread = value; } }
-// [NotMapped] public string Remark { get { return xxwms_bk_rmks; } set { xxwms_bk_rmks = value; } }
-//
-// [NotMapped] public DateTime? CreateTime { get { return xxwms_bk_createdt; } set { xxwms_bk_createdt = value; } }
-// [NotMapped] public string CreateUser { get { return xxwms_bk_createur; } set { xxwms_bk_createur = value; } }
-// [NotMapped] public DateTime? UpdateTime { get { return xxwms_bk_updatedt; } set { xxwms_bk_updatedt = value; } }
-// [NotMapped] public string UpdateUser { get { return xxwms_bk_updateur; } set { xxwms_bk_updateur = value; } }
- public override string ToString()
- {
-
- return EntitiesHelper.GetPropertiesString(this);
- }
- }
-
- ///
- /// 其它出库 from WMS
- ///
- public partial class xxwms_iss_det
- {
-// [NotMapped] public int UID { get { return xxwms_iss_uid; } set { xxwms_iss_uid = value; } }
-//
-// [NotMapped] public string Seq { get { return xxwms_iss_seq; } set { xxwms_iss_seq = value; } }
-// [NotMapped] public string QadRead { get { return xxwms_iss_qadread; } set { xxwms_iss_qadread = value; } }
-// [NotMapped] public string WmsRead { get { return xxwms_iss_wmsread; } set { xxwms_iss_wmsread = value; } }
-// [NotMapped] public string ScmRead { get { return xxwms_iss_scmread; } set { xxwms_iss_scmread = value; } }
-// [NotMapped] public string MesRead { get { return xxwms_iss_mesread; } set { xxwms_iss_mesread = value; } }
-// [NotMapped] public string Remark { get { return xxwms_iss_rmks; } set { xxwms_iss_rmks = value; } }
-//
-// [NotMapped] public DateTime? CreateTime { get { return xxwms_iss_createdt; } set { xxwms_iss_createdt = value; } }
-// [NotMapped] public string CreateUser { get { return xxwms_iss_createur; } set { xxwms_iss_createur = value; } }
-// [NotMapped] public DateTime? UpdateTime { get { return xxwms_iss_updatedt; } set { xxwms_iss_updatedt = value; } }
-// [NotMapped] public string UpdateUser { get { return xxwms_iss_updateur; } set { xxwms_iss_updateur = value; } }
- public override string ToString()
- {
-
- return EntitiesHelper.GetPropertiesString(this);
- }
- }
-
- ///
- /// 其它入库 from WMS
- ///
- public partial class xxwms_rct_det
- {
-// [NotMapped] public int UID { get { return xxwms_rct_uid; } set { xxwms_rct_uid = value; } }
-//
-// [NotMapped] public string Seq { get { return xxwms_rct_seq; } set { xxwms_rct_seq = value; } }
-// [NotMapped] public string QadRead { get { return xxwms_rct_qadread; } set { xxwms_rct_qadread = value; } }
-// [NotMapped] public string WmsRead { get { return xxwms_rct_wmsread; } set { xxwms_rct_wmsread = value; } }
-// [NotMapped] public string ScmRead { get { return xxwms_rct_scmread; } set { xxwms_rct_scmread = value; } }
-// [NotMapped] public string MesRead { get { return xxwms_rct_mesread; } set { xxwms_rct_mesread = value; } }
-// [NotMapped] public string Remark { get { return xxwms_rct_rmks; } set { xxwms_rct_rmks = value; } }
-//
-// [NotMapped] public DateTime? CreateTime { get { return xxwms_rct_createdt; } set { xxwms_rct_createdt = value; } }
-// [NotMapped] public string CreateUser { get { return xxwms_rct_createur; } set { xxwms_rct_createur = value; } }
-// [NotMapped] public DateTime? UpdateTime { get { return xxwms_rct_updatedt; } set { xxwms_rct_updatedt = value; } }
-// [NotMapped] public string UpdateUser { get { return xxwms_rct_updateur; } set { xxwms_rct_updateur = value; } }
- public override string ToString()
- {
-
- return EntitiesHelper.GetPropertiesString(this);
- }
- }
-
- ///
- /// 销售结算 from WMS
- ///
- public partial class xxwms_soiss_det
- {
-// [NotMapped] public int UID { get { return xxwms_soiss_uid; } set { xxwms_soiss_uid = value; } }
-//
-// [NotMapped] public string Seq { get { return xxwms_soiss_seq; } set { xxwms_soiss_seq = value; } }
-// [NotMapped] public string QadRead { get { return xxwms_soiss_qadread; } set { xxwms_soiss_qadread = value; } }
-// [NotMapped] public string WmsRead { get { return xxwms_soiss_wmsread; } set { xxwms_soiss_wmsread = value; } }
-// [NotMapped] public string ScmRead { get { return xxwms_soiss_scmread; } set { xxwms_soiss_scmread = value; } }
-// [NotMapped] public string MesRead { get { return xxwms_soiss_mesread; } set { xxwms_soiss_mesread = value; } }
-// [NotMapped] public string Remark { get { return xxwms_soiss_rmks; } set { xxwms_soiss_rmks = value; } }
-//
-// [NotMapped] public DateTime? CreateTime { get { return xxwms_soiss_createdt; } set { xxwms_soiss_createdt = value; } }
-// [NotMapped] public string CreateUser { get { return xxwms_soiss_createur; } set { xxwms_soiss_createur = value; } }
-// [NotMapped] public DateTime? UpdateTime { get { return xxwms_soiss_updatedt; } set { xxwms_soiss_updatedt = value; } }
-// [NotMapped] public string UpdateUser { get { return xxwms_soiss_updateur; } set { xxwms_soiss_updateur = value; } }
- public override string ToString()
- {
-
- return EntitiesHelper.GetPropertiesString(this);
- }
- }
-
- ///
- /// 库存盘点 from WMS
- ///
- public partial class xxwms_tag_det
- {
-// [NotMapped] public int UID { get { return xxwms_tag_uid; } set { xxwms_tag_uid = value; } }
-//
-// [NotMapped] public string Seq { get { return xxwms_tag_seq; } set { xxwms_tag_seq = value; } }
-// [NotMapped] public string QadRead { get { return xxwms_tag_qadread; } set { xxwms_tag_qadread = value; } }
-// [NotMapped] public string WmsRead { get { return xxwms_tag_wmsread; } set { xxwms_tag_wmsread = value; } }
-// [NotMapped] public string ScmRead { get { return xxwms_tag_scmread; } set { xxwms_tag_scmread = value; } }
-// [NotMapped] public string MesRead { get { return xxwms_tag_mesread; } set { xxwms_tag_mesread = value; } }
-// [NotMapped] public string Remark { get { return xxwms_tag_rmks; } set { xxwms_tag_rmks = value; } }
-//
-// [NotMapped] public DateTime? CreateTime { get { return xxwms_tag_createdt; } set { xxwms_tag_createdt = value; } }
-// [NotMapped] public string CreateUser { get { return xxwms_tag_createur; } set { xxwms_tag_createur = value; } }
-// [NotMapped] public DateTime? UpdateTime { get { return xxwms_tag_updatedt; } set { xxwms_tag_updatedt = value; } }
-// [NotMapped] public string UpdateUser { get { return xxwms_tag_updateur; } set { xxwms_tag_updateur = value; } }
- public override string ToString()
- {
-
- return EntitiesHelper.GetPropertiesString(this);
- }
- }
-
-
- ///
- /// 发货单(ASN) from SCM
- ///
- public partial class xxscm_tx_mstr
- {
-// [NotMapped] public int UID { get { return xxscm_tx_uid; } set { xxscm_tx_uid = value; } }
-//
-// [NotMapped] public string Seq { get { return xxscm_tx_seq; } set { xxscm_tx_seq = value; } }
-// [NotMapped] public string QadRead { get { return xxscm_tx_qadread; } set { xxscm_tx_qadread = value; } }
-// [NotMapped] public string WmsRead { get { return xxscm_tx_wmsread; } set { xxscm_tx_wmsread = value; } }
-// [NotMapped] public string ScmRead { get { return xxscm_tx_scmread; } set { xxscm_tx_scmread = value; } }
-// [NotMapped] public string MesRead { get { return xxscm_tx_mesread; } set { xxscm_tx_mesread = value; } }
-// [NotMapped] public string Remark { get { return xxscm_tx_rmks; } set { xxscm_tx_rmks = value; } }
-//
-// [NotMapped] public DateTime? CreateTime { get { return xxscm_tx_createdt; } set { xxscm_tx_createdt = value; } }
-// [NotMapped] public string CreateUser { get { return xxscm_tx_createur; } set { xxscm_tx_createur = value; } }
-// [NotMapped] public DateTime? UpdateTime { get { return xxscm_tx_updatedt; } set { xxscm_tx_updatedt = value; } }
-// [NotMapped] public string UpdateUser { get { return xxscm_tx_updateur; } set { xxscm_tx_updateur = value; } }
- public override string ToString()
- {
-
- return EntitiesHelper.GetPropertiesString(this);
- }
- }
-
- ///
- /// 发货单明细 from SCM
- ///
- public partial class xxscm_tx_det
- {
-// [NotMapped] public int UID { get { return xxscm_tx_uid; } set { xxscm_tx_uid = value; } }
-//
-// [NotMapped] public string Seq { get { return xxscm_tx_seq; } set { xxscm_tx_seq = value; } }
-// [NotMapped] public string QadRead { get { return xxscm_tx_qadread; } set { xxscm_tx_qadread = value; } }
-// [NotMapped] public string WmsRead { get { return xxscm_tx_wmsread; } set { xxscm_tx_wmsread = value; } }
-// [NotMapped] public string ScmRead { get { return xxscm_tx_scmread; } set { xxscm_tx_scmread = value; } }
-// [NotMapped] public string MesRead { get { return xxscm_tx_mesread; } set { xxscm_tx_mesread = value; } }
-// [NotMapped] public string Remark { get { return xxscm_tx_rmks; } set { xxscm_tx_rmks = value; } }
-//
-// [NotMapped] public DateTime? CreateTime { get { return xxscm_tx_createdt; } set { xxscm_tx_createdt = value; } }
-// [NotMapped] public string CreateUser { get { return xxscm_tx_createur; } set { xxscm_tx_createur = value; } }
-// [NotMapped] public DateTime? UpdateTime { get { return xxscm_tx_updatedt; } set { xxscm_tx_updatedt = value; } }
-// [NotMapped] public string UpdateUser { get { return xxscm_tx_updateur; } set { xxscm_tx_updateur = value; } }
- public override string ToString()
- {
-
- return EntitiesHelper.GetPropertiesString(this);
- }
- }
-
- ///
- /// 发票 from SCM
- ///
- public partial class xxscm_inv_det
- {
-// [NotMapped] public int UID { get { return xxscm_inv_uid; } set { xxscm_inv_uid = value; } }
-//
-// [NotMapped] public string Seq { get { return xxscm_inv_seq; } set { xxscm_inv_seq = value; } }
-// [NotMapped] public string QadRead { get { return xxscm_inv_qadread; } set { xxscm_inv_qadread = value; } }
-// [NotMapped] public string WmsRead { get { return xxscm_inv_wmsread; } set { xxscm_inv_wmsread = value; } }
-// [NotMapped] public string ScmRead { get { return xxscm_inv_scmread; } set { xxscm_inv_scmread = value; } }
-// [NotMapped] public string MesRead { get { return xxscm_inv_mesread; } set { xxscm_inv_mesread = value; } }
-// [NotMapped] public string Remark { get { return xxscm_inv_rmks; } set { xxscm_inv_rmks = value; } }
-//
-// [NotMapped] public DateTime? CreateTime { get { return xxscm_inv_createdt; } set { xxscm_inv_createdt = value; } }
-// [NotMapped] public string CreateUser { get { return xxscm_inv_createur; } set { xxscm_inv_createur = value; } }
-// [NotMapped] public DateTime? UpdateTime { get { return xxscm_inv_updatedt; } set { xxscm_inv_updatedt = value; } }
-// [NotMapped] public string UpdateUser { get { return xxscm_inv_updateur; } set { xxscm_inv_updateur = value; } }
- public override string ToString()
- {
-
- return EntitiesHelper.GetPropertiesString(this);
- }
- }
-
- ///
- /// 采购订单信息 from QAD
- ///
- public partial class xxscm_pod_det
- {
-// [NotMapped] public int UID { get { return xxscm_pod_uid; } set { xxscm_pod_uid = value; } }
-//
-// [NotMapped] public string Seq { get { return xxscm_pod_seq; } set { xxscm_pod_seq = value; } }
-// [NotMapped] public string QadRead { get { return xxscm_pod_qadread; } set { xxscm_pod_qadread = value; } }
-// [NotMapped] public string WmsRead { get { return xxscm_pod_wmsread; } set { xxscm_pod_wmsread = value; } }
-// [NotMapped] public string ScmRead { get { return xxscm_pod_scmread; } set { xxscm_pod_scmread = value; } }
-// [NotMapped] public string MesRead { get { return xxscm_pod_mesread; } set { xxscm_pod_mesread = value; } }
-// [NotMapped] public string Remark { get { return xxscm_pod_rmks; } set { xxscm_pod_rmks = value; } }
-//
-// [NotMapped] public DateTime? CreateTime { get { return xxscm_pod_createdt; } set { xxscm_pod_createdt = value; } }
-// [NotMapped] public string CreateUser { get { return xxscm_pod_createur; } set { xxscm_pod_createur = value; } }
-// [NotMapped] public DateTime? UpdateTime { get { return xxscm_pod_updatedt; } set { xxscm_pod_updatedt = value; } }
-// [NotMapped] public string UpdateUser { get { return xxscm_pod_updateur; } set { xxscm_pod_updateur = value; } }
- public override string ToString()
- {
-
- return EntitiesHelper.GetPropertiesString(this);
- }
- }
-
-
-}
\ No newline at end of file
diff --git a/Models/UniApiEntity/xxwms_rt_det.cs b/Models/UniApiEntity/xxwms_rt_det.cs
index 8f72521..cbb589a 100644
--- a/Models/UniApiEntity/xxwms_rt_det.cs
+++ b/Models/UniApiEntity/xxwms_rt_det.cs
@@ -16,13 +16,13 @@ namespace CK.SCP.Models.UniApiEntity
[StringLength(20)]
public string xxwms_rt_nbr { get; set; }
- [Required(AllowEmptyStrings = true)]
+ [Required(AllowEmptyStrings = true)]
[StringLength(8)]
public string xxwms_rt_po_nbr { get; set; }
public int xxwms_rt_po_line { get; set; }
- [Required(AllowEmptyStrings = true)]
+ [Required(AllowEmptyStrings = true)]
[StringLength(18)]
public string xxwms_rt_part { get; set; }
diff --git a/Models/xxqad_vd_mstr.cs b/Models/xxqad_vd_mstr.cs
deleted file mode 100644
index 17d9038..0000000
--- a/Models/xxqad_vd_mstr.cs
+++ /dev/null
@@ -1,93 +0,0 @@
-using System;
-using System.ComponentModel.DataAnnotations;
-
-namespace CK.SCP.Models.ScpEntity
-{
- public partial class xxqad_vd_mstr
- {
- [Key]
- public int xxqad_vd_uid { get; set; }
-
- [Required(AllowEmptyStrings = true)]
- [StringLength(50)]
- public string xxqad_vd_seq { get; set; }
-
- [Required(AllowEmptyStrings = true)]
- [StringLength(8)]
- public string xxqad_vd_addr { get; set; }
-
- [Required(AllowEmptyStrings = true)]
- [StringLength(8)]
- public string xxqad_vd_domain { get; set; }
-
- [Required(AllowEmptyStrings = true)]
- [StringLength(100)]
- public string xxqad_vd_name { get; set; }
-
- [Required(AllowEmptyStrings = true)]
- [StringLength(100)]
- public string xxqad_vd_line1 { get; set; }
-
- [StringLength(100)]
- public string xxqad_vd_line2 { get; set; }
-
- [StringLength(100)]
- public string xxqad_vd_line3 { get; set; }
-
- [Required(AllowEmptyStrings = true)]
- [StringLength(50)]
- public string xxqad_vd_country { get; set; }
-
- [StringLength(50)]
- public string xxqad_vd_city { get; set; }
-
- [StringLength(50)]
- public string xxqad_vd_phone { get; set; }
-
- [StringLength(50)]
- public string xxqad_vd_fax { get; set; }
-
- [StringLength(15)]
- public string xxqad_vd_pst_id { get; set; }
-
- [StringLength(50)]
- public string xxqad_vd_attn { get; set; }
-
- [Required(AllowEmptyStrings = true)]
- [StringLength(15)]
- public string xxqad_vd_curr { get; set; }
-
- public decimal xxqad_vd_tax { get; set; }
-
- [StringLength(2)]
- public string xxqad_vd_promo { get; set; }
-
- [Required(AllowEmptyStrings = true)]
- [StringLength(8)]
- public string xxqad_vd_type { get; set; }
-
- [StringLength(1)]
- public string xxqad_vd_qadread { get; set; }
-
- [StringLength(1)]
- public string xxqad_vd_wmsread { get; set; }
-
- [StringLength(1)]
- public string xxqad_vd_scmread { get; set; }
-
- [StringLength(1)]
- public string xxqad_vd_mesread { get; set; }
-
- public string xxqad_vd_rmks { get; set; }
-
- public DateTime? xxqad_vd_createdt { get; set; }
-
- [StringLength(8)]
- public string xxqad_vd_createur { get; set; }
-
- public DateTime? xxqad_vd_updatedt { get; set; }
-
- [StringLength(8)]
- public string xxqad_vd_updateur { get; set; }
- }
-}
From 30dc78f827e083711d2f5bdd8971bd4530a20712 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=AD=A6=20=E8=B5=B5?= <89237069@qq.com>
Date: Wed, 12 Aug 2020 09:20:56 +0800
Subject: [PATCH 2/8] 2
---
Controller/SCP_PO_CONTROLLER.cs | 17 ++++++++++++++++-
Models/ScpEntity/TB_ASN_DETAIL.cs | 1 -
SCP/SCP.csproj | 6 ++++++
SCP/Views/PlanData/SCP_PO.aspx.cs | 1 +
SCP/packages.config | 1 +
5 files changed, 24 insertions(+), 2 deletions(-)
diff --git a/Controller/SCP_PO_CONTROLLER.cs b/Controller/SCP_PO_CONTROLLER.cs
index 7a23b5c..62d9e8c 100644
--- a/Controller/SCP_PO_CONTROLLER.cs
+++ b/Controller/SCP_PO_CONTROLLER.cs
@@ -103,7 +103,22 @@ namespace CK.SCP.Controller
{
q = q.Where(p => p_entity.UserInVendIds.Contains(p.VendId));
}
-
+ if (!string.IsNullOrEmpty(p_entity.Extend1))
+ {
+ q = q.Where(p => p.Extend1.Contains(p_entity.Extend1));
+ }
+ if (!string.IsNullOrEmpty(p_entity.Extend2))
+ {
+ q = q.Where(p => p.Extend1.Contains(p_entity.Extend1));
+ }
+ if (!string.IsNullOrEmpty(p_entity.Extend1))
+ {
+ q = q.Where(p => p.Extend1.Contains(p_entity.Extend1));
+ }
+ if (!string.IsNullOrEmpty(p_entity.SubSite))
+ {
+ q = q.Where(p => p.SubSite.Contains(p_entity.SubSite));
+ }
//if (!string.IsNullOrEmpty(p_entity.PartCode))
//{
// var _po = db.TB_PO_DETAIL.Where(p => p.PartCode == p_entity.PartCode && p.IsDeleted== false);
diff --git a/Models/ScpEntity/TB_ASN_DETAIL.cs b/Models/ScpEntity/TB_ASN_DETAIL.cs
index 6e622d4..c541e00 100644
--- a/Models/ScpEntity/TB_ASN_DETAIL.cs
+++ b/Models/ScpEntity/TB_ASN_DETAIL.cs
@@ -55,7 +55,6 @@ namespace CK.SCP.Models.ScpEntity
public string Extend1 { get; set; }
public string Extend2 { get; set; }
public string Extend3 { get; set; }
-
public string SubSite { get; set; }
}
}
diff --git a/SCP/SCP.csproj b/SCP/SCP.csproj
index 230d03e..f67e90b 100644
--- a/SCP/SCP.csproj
+++ b/SCP/SCP.csproj
@@ -1,5 +1,6 @@
+
@@ -26,6 +27,8 @@
+ LaunchBrowser
+ http://{ServiceIPAddress}
true
@@ -6297,7 +6300,10 @@
+
+
+
-
\ No newline at end of file
diff --git a/CK.SCP.Controller/Class1.cs b/CK.SCP.Controller/Class1.cs
deleted file mode 100644
index f33df14..0000000
--- a/CK.SCP.Controller/Class1.cs
+++ /dev/null
@@ -1,12 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace CK.SCP.Controller
-{
- public class Class1
- {
- }
-}
diff --git a/CK.SCP.Controller/InfoController.cs b/CK.SCP.Controller/InfoController.cs
deleted file mode 100644
index b9d0957..0000000
--- a/CK.SCP.Controller/InfoController.cs
+++ /dev/null
@@ -1,59 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Data.Entity.Migrations;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using CK.SCP.Models;
-using CK.SCP.Models.ScpEntity;
-
-
-namespace CK.SCP.Controller
-{
- public class InfoController
- {
- public static bool SaveInfo(TA_Info model)
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- db.TA_Info.AddOrUpdate(model);
- db.SaveChanges();
- }
- return true;
- }
-
- public static bool UpdateInfo(TA_Info model)
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- db.TA_Info.AddOrUpdate(p => p.ID, model);
- db.SaveChanges();
- }
- return true;
- }
- public static TA_Info GetlistByBillNo(int id)
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- return db.TA_Info.SingleOrDefault(p => p.ID == id);
- }
- }
- public static V_Info GetInfoByBillNo(int id)
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- return db.V_Info.SingleOrDefault(p => p.ID == id);
- }
- }
-
- public static void DeleteById(int id)
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- var info = db.TA_Info.SingleOrDefault(p => p.ID == id);
- if (info != null) db.TA_Info.Remove(info);
- db.SaveChanges();
- }
- }
- }
-}
diff --git a/CK.SCP.Controller/InvoiceController.cs b/CK.SCP.Controller/InvoiceController.cs
deleted file mode 100644
index b3c3727..0000000
--- a/CK.SCP.Controller/InvoiceController.cs
+++ /dev/null
@@ -1,85 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Data.Entity.Migrations;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using CK.SCP.Models;
-using CK.SCP.Models.ScpEntity;
-
-
-namespace CK.SCP.Controller
-{
- public class InvoiceController
- {
- public static List GetDataByBillInvoice( string billnum)
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- return db.V_BillInvoice.Where(p => p.BillNum == billnum).ToList();
- }
- }
-
-
- public static V_BillInvoice GetDataByBillInvoiceDetailModel(string billnum)
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- return db.V_BillInvoice.SingleOrDefault(p => p.BillNum == billnum);
- }
- }
-
- public static bool UpdateData(int state, TB_INVOICE model)
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- model.State = state;
-
- db.TB_INVOICE.AddOrUpdate(p => p.UID, model);
- EntitiesFactory.SaveDb(db);
- }
- return true;
- }
- public static bool UpdateDataRemark(string remark, TB_INVOICE model)
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
-
- model.Remark = remark;
-
- db.TB_INVOICE.AddOrUpdate(p => p.UID, model);
- EntitiesFactory.SaveDb(db);
- }
- return true;
- }
-
- public static bool UpdateDataReason(string remark, string billnum)
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- TB_INVOICE model = new TB_INVOICE
- {
- Remark = remark,
- BillNum = billnum
- };
- db.TB_INVOICE.AddOrUpdate(p => p.BillNum, model);
- }
- return true;
- }
- public static TB_INVOICE GetDataByBillInvoiceBillNum(string id)
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- return db.TB_INVOICE.SingleOrDefault(p => p.BillNum == id);
- }
- }
-
- public static V_BillInvoice GetBillInvoiceByBillNum(string id)
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- return db.V_BillInvoice.SingleOrDefault(p => p.BillNum == id);
- }
- }
- }
-}
diff --git a/CK.SCP.Controller/InvoiceDetailController.cs b/CK.SCP.Controller/InvoiceDetailController.cs
deleted file mode 100644
index 9f53b4d..0000000
--- a/CK.SCP.Controller/InvoiceDetailController.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using CK.SCP.Models;
-using CK.SCP.Models.ScpEntity;
-
-
-namespace CK.SCP.Controller
-{
- public class InvoiceDetailController
- {
- public static List GetDataByBillInvoiceDetail(string billnum)
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- return db.V_BillInvoiceDetail.Where(p => p.BillNum == billnum).ToList();
- }
- }
-
- public static V_BillInvoiceDetail GetDataByBillInvoiceDetailModel(string billnum)
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- return db.V_BillInvoiceDetail.SingleOrDefault(p => p.BillNum == billnum);
- }
- }
- public static V_BillInvoiceDetail GetDataByBillInvoiceDetailBillNum(string id)
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- return db.V_BillInvoiceDetail.SingleOrDefault(p => p.BillNum == id);
- }
- }
- }
-}
diff --git a/CK.SCP.Controller/OadOrderController.cs b/CK.SCP.Controller/OadOrderController.cs
deleted file mode 100644
index b7fd682..0000000
--- a/CK.SCP.Controller/OadOrderController.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using CK.SCP.Models;
-using CK.SCP.Models.ScpEntity;
-
-namespace CK.SCP.Controller
-{
- public class OadOrderController
- {
-// public List GetList()
-// {
-// using (ScpEntities db = EntitiesFactory.CreateScpInstance())
-// {
-// // db.TB_QadOrder.Where(p=>p.BillNo==db.)
-// var query = db.TB_QadOrder.Join(db.TB_QadOrderDetail, a => a.BillNo, g => g.BillNo, (a, g) => new
-// {
-// a.BillNo,
-// a.SupplierCode,
-// a.StartDate,
-// a.Address,
-// a.ProductCode,
-// a.Qty,
-// }).ToList();
-//// return query;
-// // return db.V_BillInvoice.Where(p => p.BillNum == billnum).ToList();
-//
-// }
-// }
- }
-}
diff --git a/CK.SCP.Controller/POController.cs b/CK.SCP.Controller/POController.cs
deleted file mode 100644
index 481dde4..0000000
--- a/CK.SCP.Controller/POController.cs
+++ /dev/null
@@ -1,115 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Data;
-using System.Data.Entity.Migrations;
-using System.Data.SqlClient;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using CK.SCP.Models;
-using CK.SCP.Models.Enums;
-using CK.SCP.Models.ScpEntity;
-
-
-namespace CK.SCP.Controller
-{
- public class POController
- {
- public static List Getlist()
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- return db.V_POAll.ToList();
- }
- }
- public static bool UpdatePOState(TF_PO model)
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- db.TF_PO.AddOrUpdate(p => p.UID, model);
- EntitiesFactory.SaveDb(db);
- }
- return true;
- }
-
- public static TF_PO GetlistByID(int uid)
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- return db.TF_PO.SingleOrDefault(p => p.UID == uid);
- }
- }
-
- public static TF_PO GetlistByBillNum(string billnum)
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- return db.TF_PO.SingleOrDefault(p => p.BillNum == billnum);
- }
- }
- public static V_POAll GetPOAlllistByBillNum(string billnum)
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- return db.V_POAll.SingleOrDefault(p => p.BillNum == billnum);
- }
- }
- public static void UpdateOrderByUID(int state, int uid)
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- TF_PO model = new TF_PO();
- model.State = state;
- model.UID = uid;
- db.SaveChanges();
- }
- }
-
- public static void UpdatePOOBybillno(TF_PO model)
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- model.State = (int)PlanState.Confirm;
-
- db.TF_PO.AddOrUpdate(p => p.UID, model);
- db.SaveChanges();
- }
- }
- public static List GetlistByBillNum(V_POAll model)
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- return db.V_POAll.Where(p => p.BillNum == model.BillNum).ToList();
- }
- }
- public static TF_PO GetASNlist(string billnum, string vendid)
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- return db.TF_PO.SingleOrDefault(p => p.BillNum == billnum && p.VendId == vendid);
- }
- }
- public static TF_PO GetPOModel(int id)
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- return db.TF_PO.SingleOrDefault(p => p.UID == id);
- }
- }
- public static List GetASNlist()
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- return db.TF_PO.ToList();
- }
- }
- public static void DeletePO(TF_PO model)
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- db.TF_PO.Remove(model);
- db.SaveChanges();
- }
- }
- }
-}
diff --git a/CK.SCP.Controller/PODetailController.cs b/CK.SCP.Controller/PODetailController.cs
deleted file mode 100644
index 68951d7..0000000
--- a/CK.SCP.Controller/PODetailController.cs
+++ /dev/null
@@ -1,68 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using CK.SCP.Models;
-using CK.SCP.Models.ScpEntity;
-
-
-namespace CK.SCP.Controller
-{
- public class PODetailController
- {
- public static V_POAllDetail GetlistByBillNum(string billnum)
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- return db.V_POAllDetail.SingleOrDefault(p => p.BillNum == billnum);
- }
- }
-
- public static TA_VENDER GetlistBySupplierCode(string VendId)
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- return db.TA_VENDER.SingleOrDefault(p => p.VendId == VendId);
- }
- }
-
- public static List GetDetaillistByBillNum(string billnum)
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- return db.TF_PO_DETAIL.Where(p => p.BillNum == billnum).ToList();
- }
- }
-
- public static TF_PO_DETAIL GetDetaillistByuid(int uid)
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- return db.TF_PO_DETAIL.SingleOrDefault(p => p.UID == uid);
- }
- }
- public static List GetDetaillistBybillnos(string billno)
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- return db.TF_PO_DETAIL.Where(p => p.BillNum == billno).ToList();
- }
- }
- public static void Delete(TF_PO_DETAIL model)
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- db.TF_PO_DETAIL.Remove(model);
- }
- }
- public static TF_PO_DETAIL GetDetaillistBybillidandline(string bill, int linenum)
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- return db.TF_PO_DETAIL.SingleOrDefault(p => p.BillNum == bill && p.ErpLineNum == linenum);
- }
- }
- }
-}
-
diff --git a/CK.SCP.Controller/PartController.cs b/CK.SCP.Controller/PartController.cs
deleted file mode 100644
index 518ddb6..0000000
--- a/CK.SCP.Controller/PartController.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using CK.SCP.Models;
-using CK.SCP.Models.ScpEntity;
-
-
-namespace CK.SCP.Controller
-{
- public class PartController
- {
- public static List Getlist()
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- return db.TA_PART.ToList();
- }
- }
- public static List GetlistByPartCode(TA_PART model)
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- return db.TA_PART.Where(p=>p.PartCode==model.PartCode).ToList();
- }
- }
- }
-}
diff --git a/CK.SCP.Controller/PlanMonthController.cs b/CK.SCP.Controller/PlanMonthController.cs
deleted file mode 100644
index 6ae3765..0000000
--- a/CK.SCP.Controller/PlanMonthController.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Data.Entity.Migrations;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using CK.SCP.Models;
-using CK.SCP.Models.ScpEntity;
-
-
-namespace CK.SCP.Controller
-{
- public class PlanMonthController
- {
- public static TB_PlanMonth GetPlanMonthById(int id)
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- return db.TB_PlanMonth.SingleOrDefault(p => p.ID == id);
- }
- }
-
- public static bool UpdatePlanMonthById(TB_PlanMonth model)
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- model.IsSend = "是";
- model.SendTime = DateTime.Now;
- db.TB_PlanMonth.AddOrUpdate(model);
- db.SaveChanges();
- }
- return true;
- }
- public static TA_VENDER GetVend()
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- return db.TA_VENDER.OrderByDescending(p => p.Email).SingleOrDefault(p => p.Email != null);
- }
- }
-
- public static List GetVendList()
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- return db.TA_VENDER.ToList();
- }
- }
-
- public static bool SaveTbPlanMonth(TB_PlanMonth model)
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- db.TB_PlanMonth.AddOrUpdate(model);
- db.SaveChanges();
- }
- return true;
- }
- }
-}
diff --git a/CK.SCP.Controller/Properties/AssemblyInfo.cs b/CK.SCP.Controller/Properties/AssemblyInfo.cs
deleted file mode 100644
index ab041bf..0000000
--- a/CK.SCP.Controller/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-// 有关程序集的一般信息由以下
-// 控制。更改这些特性值可修改
-// 与程序集关联的信息。
-[assembly: AssemblyTitle("CK.SCP.CK.SCP.Controller")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("Microsoft")]
-[assembly: AssemblyProduct("CK.SCP.CK.SCP.Controller")]
-[assembly: AssemblyCopyright("Copyright © Microsoft 2018")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-//将 ComVisible 设置为 false 将使此程序集中的类型
-//对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型,
-//请将此类型的 ComVisible 特性设置为 true。
-[assembly: ComVisible(false)]
-
-// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
-[assembly: Guid("0c706e36-c79d-467c-91ca-ddf39bc43113")]
-
-// 程序集的版本信息由下列四个值组成:
-//
-// 主版本
-// 次版本
-// 生成号
-// 修订号
-//
-//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
-// 方法是按如下所示使用“*”: :
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/CK.SCP.Controller/PublicDataController.cs b/CK.SCP.Controller/PublicDataController.cs
deleted file mode 100644
index e0839fb..0000000
--- a/CK.SCP.Controller/PublicDataController.cs
+++ /dev/null
@@ -1,54 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Data.Entity.Migrations;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using CK.SCP.Models;
-using CK.SCP.Models.ScpEntity;
-
-
-namespace CK.SCP.Controller
-{
- public class PublicDataController
- {
- public static TB_PublicData GetlistByBillNo(int id)
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- return db.TB_PublicData.SingleOrDefault(p => p.ID == id);
- }
- }
- public static bool SaveInfo(TB_PublicData model)
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- db.TB_PublicData.AddOrUpdate(model);
- db.SaveChanges();
- }
- return true;
- }
-
-
- public static bool UpdateInfo(TB_PublicData model)
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- db.TB_PublicData.AddOrUpdate(p => p.ID, model);
- db.SaveChanges();
- }
- return true;
- }
-
- public static void DeleteById(int id)
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- var info = db.TB_PublicData.SingleOrDefault(p => p.ID == id);
- if (info != null) db.TB_PublicData.Remove(info);
- db.SaveChanges();
- }
- }
- }
-
-}
diff --git a/CK.SCP.Controller/ReceiveController.cs b/CK.SCP.Controller/ReceiveController.cs
deleted file mode 100644
index 43ef80b..0000000
--- a/CK.SCP.Controller/ReceiveController.cs
+++ /dev/null
@@ -1,22 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using CK.SCP.Models;
-using CK.SCP.Models.ScpEntity;
-
-
-namespace CK.SCP.Controller
-{
- public class ReceiveController
- {
- public static V_Receive GetlistByBillNum(string billnum)
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- return db.V_Receive.SingleOrDefault(p => p.BillNum == billnum);
- }
- }
- }
-}
diff --git a/CK.SCP.Controller/ReceiveDetailController.cs b/CK.SCP.Controller/ReceiveDetailController.cs
deleted file mode 100644
index ce6ab9a..0000000
--- a/CK.SCP.Controller/ReceiveDetailController.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Data.Entity.Migrations;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using CK.SCP.Models;
-using CK.SCP.Models.ScpEntity;
-
-
-namespace CK.SCP.Controller
-{
- public class ReceiveDetailController
- {
- public static V_ReceiveDetail GetlistByBillNum(string billnum)
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- return db.V_ReceiveDetail.SingleOrDefault(p => p.BillNum == billnum);
- }
- }
-
- public static bool UpdateReceive(V_ReceiveDetail model)
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- db.V_ReceiveDetail.AddOrUpdate(p => p.UID, model);
- EntitiesFactory.SaveDb(db);
- }
- return true;
- }
- }
-}
diff --git a/CK.SCP.Controller/ResultObject.cs b/CK.SCP.Controller/ResultObject.cs
deleted file mode 100644
index 270f538..0000000
--- a/CK.SCP.Controller/ResultObject.cs
+++ /dev/null
@@ -1,42 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace CK.SCP.Controller
-{
-///
-///返回结果类
-///
-///
- public class ResultObject
- {
- public ResultObject()
- {
- ErrorList = new List();
- }
- ///
- /// 返回结果
- ///
- public T Result { set; get; }
- ///
- /// 错误列表
- ///
- public List ErrorList { set; get; }
- ///
- /// 返回状态
- ///
- public ReturnStatus State
- {private set; get; }
- }
- public enum ReturnStatus
- {
- [Description("失败")]
- Failed,
- [Description("成功")]
- Succeed
-
- }
-}
diff --git a/CK.SCP.Controller/ShipController.cs b/CK.SCP.Controller/ShipController.cs
deleted file mode 100644
index 87fed15..0000000
--- a/CK.SCP.Controller/ShipController.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using CK.SCP.Models;
-
-
-namespace CK.SCP.Controller
-{
- public class ShipController
- {
- public static void DeleteById(int id)
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- var asn = db.TF_ASN.SingleOrDefault(p => p.UID == id);
- if (asn != null) db.TF_ASN.Remove(asn);
- db.SaveChanges();
- }
- }
- }
-}
diff --git a/CK.SCP.Controller/ShipDetailController.cs b/CK.SCP.Controller/ShipDetailController.cs
deleted file mode 100644
index 40435df..0000000
--- a/CK.SCP.Controller/ShipDetailController.cs
+++ /dev/null
@@ -1,57 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Data.Entity.Migrations;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using CK.SCP.Models;
-using CK.SCP.Models.ScpEntity;
-
-
-namespace CK.SCP.Controller
-{
- public class ShipDetailController
- {
- public static V_BillShipDetail GetlistByBillNum(string billnum)
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- return db.V_BillShipDetail.SingleOrDefault(p => p.BillNum == billnum);
- }
- }
-
- public static V_BillShip GetBillShiplistByBillNo(string billnum)
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- return db.V_BillShip.SingleOrDefault(p => p.Bill == billnum);
- }
- }
-
- public static TF_ASN GetlistByBillNo(string billnum)
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- return db.TF_ASN.SingleOrDefault(p => p.BillNum == billnum);
- }
- }
- public static TF_ASN_DETAIL GetDeatillistByBillNo(string billnum)
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- return db.TF_ASN_DETAIL.SingleOrDefault(p => p.BillNum == billnum);
- }
- }
- public static bool UpdateShip(TF_ASN model)
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- db.TF_ASN.AddOrUpdate(p => p.UID, model);
-
- EntitiesFactory.SaveDb(db);
- }
- return true;
-
- }
- }
-}
diff --git a/CK.SCP.Controller/SupplierController.cs b/CK.SCP.Controller/SupplierController.cs
deleted file mode 100644
index 558e4a0..0000000
--- a/CK.SCP.Controller/SupplierController.cs
+++ /dev/null
@@ -1,32 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Data;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using CK.SCP.Models;
-using CK.SCP.Models.ScpEntity;
-
-
-
-namespace CK.SCP.Controller
-{
- public class SupplierController
- {
- public static List GetlistByName(TA_VENDER model)
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- return db.TA_VENDER.Where(p => p.VendName == model.VendName).ToList();
- }
- }
- public static List Getlist()
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- return db.TA_VENDER.ToList();
- }
- }
-
- }
-}
diff --git a/CK.SCP.Controller/SupplierPartController.cs b/CK.SCP.Controller/SupplierPartController.cs
deleted file mode 100644
index 773337f..0000000
--- a/CK.SCP.Controller/SupplierPartController.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using CK.SCP.Models;
-using CK.SCP.Models.ScpEntity;
-
-
-namespace CK.SCP.Controller
-{
- public class SupplierPartController
- {
-// public static List Getlist()
-// {
-// using (ScpEntities db = EntitiesFactory.CreateScpInstance())
-// {
-// return db.V_VenderPart.ToList();
-// }
-// }
-// public static List GetlistByPartCode(V_VenderPart model)
-// {
-// using (ScpEntities db = EntitiesFactory.CreateScpInstance())
-// {
-// return db.V_VenderPart.Where(p => p.PartCode == model.PartCode).ToList();
-// }
-// }
- }
-}
diff --git a/CK.SCP.Controller/UniApiController.cs b/CK.SCP.Controller/UniApiController.cs
deleted file mode 100644
index 96a1117..0000000
--- a/CK.SCP.Controller/UniApiController.cs
+++ /dev/null
@@ -1,253 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using CK.SCP.Models;
-using CK.SCP.Models.Enums;
-using CK.SCP.Models.ScpEntity;
-using CK.SCP.Models.UniApiEntity;
-
-namespace CK.SCP.Controller
-{
- public static class UniApiController
- {
-
- public static void RemoveList(ScpEntities db, List uniApiList)
- {
- db.TS_UNI_API.RemoveRange(uniApiList);
- }
- public static void AddHisList(ScpEntities db, List uniApiHisList)
- {
-
- db.TS_UNI_API_HIS.AddRange(uniApiHisList);
- }
-
- public static void AddApiData(ScpEntities wdb, TS_UNI_API apiData)
- {
- wdb.TS_UNI_API.Add(apiData);
- }
-
-
- public static void AddApiDataList(ScpEntities wdb, List apiDataList)
- {
- wdb.TS_UNI_API.AddRange(apiDataList);
- }
-
-
- public static WmsTableName GetTableName(UniApiType uniApiType)
- {
- WmsTableName tableName;
- switch (uniApiType)
- {
- case UniApiType.PO:
- tableName = WmsTableName.TS_UNI_API;//中间表的名字
- break;
- case UniApiType.Receive:
- tableName = WmsTableName.TS_UNI_API;
- break;
- case UniApiType.BarCode:
- tableName = WmsTableName.TS_UNI_API;
- break;
- case UniApiType.Invoice:
- tableName = WmsTableName.TS_UNI_API;
- break;
- default:
- throw new ArgumentOutOfRangeException(nameof(uniApiType), uniApiType, null);
- }
- return tableName;
- }
-
- //创建采购订单
- public static TS_UNI_API CreateBy(TF_PO bill, TF_PO_DETAIL detail, UniApiType uniApiType)
- {
- var tableName = GetTableName(uniApiType);
- var apiData = new TS_UNI_API
- {
- InterfaceType = uniApiType.ToString(),
- TableName = tableName.ToString(),
- BillNum = bill.BillNum,
- PartCode = detail.PartCode,
- Batch = "",
- Qty = detail.BillQty,
- PoUnit = detail.PoUnit,
- LocUnit = detail.LocUnit,
- State = detail.State,
- CreateOper = bill.OperName,
- CreateTime = bill.BillTime,
- PutTime = ScpCache.GetServerTime(),
- VendId = bill.VendId,
- BillType = (int)BillType.PuchaseOrder,
- SubBillType = 0,
- ValidDate = detail.DueDate,
- ErpBillNum = bill.ErpBillNum,
- ErpLineNum = detail.ErpLineNum,
- VendBatch = "",
- SourceBillNum = "",
- Price = detail.Price,
- PackQty = detail.PackQty,
- Currency = detail.Currency,
- Attn = "",//TODO
- Buyer = bill.Buyer,
- BuyerPhone = bill.BuyerPhone,
- ModType = bill.ModType,
- Receiver = "",//TODO
- UmConv = (decimal)detail.UmConv,
- };
- return apiData;
- }
-
- private static ScpEntities db = EntitiesFactory.CreateScpInstance();
- public static TS_UNI_API CreateBy(TF_PO bill, List detail, UniApiType uniApiType)
- {
- var tableName = GetTableName(uniApiType);
- TS_UNI_API asp = new TS_UNI_API();
- foreach (var item in detail)
- {
- asp.InterfaceType = uniApiType.ToString();
- asp.TableName = tableName.ToString();
-
- asp.BillNum = bill.BillNum;
- asp.Batch = string.Empty;
- asp.CreateOper = bill.OperName;
- asp.CreateTime = bill.BillTime;
- asp.PutTime = ScpCache.GetServerTime();
- asp.VendId = bill.VendId;
- asp.BillType = (int)BillType.PO;
- asp.SubBillType = 0;
- asp.VendBatch = string.Empty;
- asp.SourceBillNum = string.Empty;
- asp.Attn = "";//TODO
- asp.Buyer = bill.Buyer;
- asp.BuyerPhone = bill.BuyerPhone;
- asp.ModType = bill.ModType;
- asp.Receiver = "";//TODO
- asp.PartCode = item.PartCode;
-
- asp.Qty = item.BillQty;
- asp.PoUnit = item.PoUnit;
- asp.LocUnit = item.LocUnit;
- asp.State = item.State;
-
- asp.ValidDate = item.DueDate;
- asp.ErpBillNum = bill.BillNum;//暂时跟billnum 一样 后期可能会改 预留
- asp.ErpLineNum = item.ErpLineNum;
-
- asp.Price = item.Price;
- asp.PackQty = item.PackQty;
- asp.Currency = item.Currency;
-
- asp.UmConv = (decimal)item.UmConv;
-
- db.TS_UNI_API.Add(asp);
- db.SaveChanges();
- }
-
- return asp;
- }
-
- //创建发货单
- public static TS_UNI_API CreateBy(TF_ASN bill, TF_ASN_DETAIL detail, UniApiType uniApiType)
- {
- var tableName = GetTableName(uniApiType);
- var apiData = new TS_UNI_API
- {
- InterfaceType = uniApiType.ToString(),
- TableName = tableName.ToString(),
- BillNum = bill.BillNum,
- PartCode = detail.PartCode,
- Batch = detail.Batch,
- Qty = detail.BillQty,
- PoUnit = detail.PoUnit,
- LocUnit = detail.LocUnit,
- State = detail.State,
- CreateOper = bill.OperName,
- CreateTime = bill.BillTime,
- PutTime = ScpCache.GetServerTime(),
- VendId = bill.VendId,
- BillType = (int)BillType.PuchaseOrder,
- SubBillType = 0,
- ValidDate = detail.ProduceDate,
- ErpBillNum = bill.PoBillNum,
- ErpLineNum = detail.PoLineNum,
- VendBatch = detail.VendBatch,
- Price = detail.Price,
- PackQty = detail.PackQty,
- Currency = detail.Currency,
- UmConv = (decimal) detail.UmConv,
- };
- return apiData;
- }
-
- //创建条码
- public static TS_UNI_API CreateBy(TF_ASN bill, TS_BARCODE detail, UniApiType uniApiType)
- {
- var tableName = GetTableName(uniApiType);
- var apiData = new TS_UNI_API
- {
- Barcode = detail.BarCode,
- InterfaceType = uniApiType.ToString(),
- TableName = tableName.ToString(),
- BillNum = bill.BillNum,
- PartCode = detail.PartCode,
- Batch = detail.Batch,
- Qty = detail.Qty,
- PoUnit = detail.PoUnit,
- LocUnit = detail.LocUnit,
- State = detail.State,
- CreateOper = bill.OperName,
- CreateTime = bill.BillTime,
- PutTime = ScpCache.GetServerTime(),
- VendId = bill.VendId,
- BillType = (int)BillType.PuchaseOrder,
- SubBillType = 0,
- ValidDate = detail.ProduceDate,
- ErpBillNum = bill.PoBillNum,
- ErpLineNum = detail.PoBillLine,
- VendBatch = detail.VendBatch,
- SourceBillNum = detail.FullBarCode,
- PackQty = detail.PackQty,
- };
- return apiData;
- }
-
- //创建发票
- public static TS_UNI_API CreateBy(TB_INVOICE bill, TB_INVOICE_DETAIL detail, UniApiType uniApiType)
- {
- var tableName = GetTableName(uniApiType);
- var apiData = new TS_UNI_API
- {
- InterfaceType = uniApiType.ToString(),
- TableName = tableName.ToString(),
- BillNum = bill.BillNum,
- PartCode = detail.PartCode,
- Batch = "",
- Qty = detail.Qty,
- PoUnit = detail.PoUnit,
- LocUnit = detail.LocUnit,
- State = detail.State,
- CreateOper = bill.OperName,
- CreateTime = bill.BillTime,
- PutTime = ScpCache.GetServerTime(),
- VendId = bill.VendId,
- BillType = (int)BillType.PuchaseOrder,
- SubBillType = 0,
- ValidDate = detail.ProduceDate,
- ErpBillNum = detail.PoBillNum,
- ErpLineNum = detail.PoLineNum,
- VendBatch = "",
- SourceBillNum = "",
- Price = detail.Price,
- PackQty = detail.PackQty,
- Currency = detail.Currency,
- Invoice = bill.InvoiceNum,
- Tax = detail.Tax,
- TaxAmt = detail.TaxAmt,
- };
- return apiData;
- }
-
- public static List GetNewInterfaceList(ScpEntities wdb)
- {
- return wdb.TS_UNI_API.Where(p => p.State == (int)BillState.New).OrderBy(p => p.UID).ToList();
- }
- }
-}
\ No newline at end of file
diff --git a/CK.SCP.Controller/UserController.cs b/CK.SCP.Controller/UserController.cs
deleted file mode 100644
index 004fb3a..0000000
--- a/CK.SCP.Controller/UserController.cs
+++ /dev/null
@@ -1,14 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-
-namespace CK.SCP.Controller
-{
- public class UserController
- {
-
- }
-}
diff --git a/CK.SCP.Controller/VEND_USERController.cs b/CK.SCP.Controller/VEND_USERController.cs
deleted file mode 100644
index a8a73a4..0000000
--- a/CK.SCP.Controller/VEND_USERController.cs
+++ /dev/null
@@ -1,21 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using CK.SCP.Models;
-using CK.SCP.Models.ScpEntity;
-
-namespace CK.SCP.Controller
-{
- public class VEND_USERController
- {
- public static TA_VEND_USER GetVendUserModel(int id)
- {
- using (ScpEntities db = EntitiesFactory.CreateScpInstance())
- {
- return db.TA_VEND_USER.SingleOrDefault(p => p.UID == id);
- }
- }
- }
-}
diff --git a/CK.SCP.Controller/app.config b/CK.SCP.Controller/app.config
deleted file mode 100644
index 23349b1..0000000
--- a/CK.SCP.Controller/app.config
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/CK.SCP.Controller/packages.config b/CK.SCP.Controller/packages.config
deleted file mode 100644
index 33e13d6..0000000
--- a/CK.SCP.Controller/packages.config
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/CK.SCP.Models/App.config b/CK.SCP.Models/App.config
deleted file mode 100644
index d696498..0000000
--- a/CK.SCP.Models/App.config
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/CK.SCP.Models/AppBoxEntity/AppBoxContext.cs b/CK.SCP.Models/AppBoxEntity/AppBoxContext.cs
deleted file mode 100644
index abe3209..0000000
--- a/CK.SCP.Models/AppBoxEntity/AppBoxContext.cs
+++ /dev/null
@@ -1,94 +0,0 @@
-using System.Data.Entity;
-
-namespace CK.SCP.Models.AppBoxEntity
-{
- public class AppBoxContext : DbContext
- {
- public AppBoxContext() : base(EntitiesFactory.GetEfConnectionString(GlobalConfig.AppBoxDatabase))
- {
-
- }
-
- public AppBoxContext(string strConn) : base(strConn)
- {
-
- }
-
- public DbSet Configs { get; set; }
- public DbSet Depts { get; set; }
- public DbSet Users { get; set; }
- public DbSet Roles { get; set; }
- public DbSet Titles { get; set; }
- public DbSet Onlines { get; set; }
- public DbSet Logs { get; set; }
- public DbSet Powers { get; set; }
- public DbSet