From c6e7e582b899e9084c53d6ed7e312294ee7dbfb7 Mon Sep 17 00:00:00 2001 From: gongxh Date: Thu, 5 May 2022 20:18:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A8=A1=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CleanMachine.BLL/{ => BAS}/CleanModeBLL.cs | 20 +- .../{ => BAS}/ContaminationDtlBLL.cs | 20 +- .../{ => BAS}/ContaminationTypeBLL.cs | 20 +- CleanMachine.BLL/{ => BAS}/PlcItemBLL.cs | 20 +- CleanMachine.BLL/{ => BAS}/SheetTypeBLL.cs | 20 +- CleanMachine.BLL/{ => BAS}/WarningBLL.cs | 20 +- CleanMachine.BLL/{ => CM}/LastPattleNumBLL.cs | 38 ++- CleanMachine.BLL/{ => CM}/WarningLogBLL.cs | 20 +- CleanMachine.BLL/{ => CM}/WorkingPalletBLL.cs | 20 +- .../{ => CM}/WorkingPalletDtlBLL.cs | 20 +- CleanMachine.BLL/{ => SYS}/LanguageBLL.cs | 20 +- .../{ => SYS}/LanguageControlBLL.cs | 20 +- CleanMachine.BLL/{ => SYS}/LogBLL.cs | 20 +- CleanMachine.BLL/{ => SYS}/MenuBLL.cs | 20 +- CleanMachine.BLL/{ => SYS}/ParameterBLL.cs | 20 +- CleanMachine.BLL/{ => SYS}/RoleBLL.cs | 20 +- .../{ => SYS}/RoleMenuPermissionBLL.cs | 20 +- CleanMachine.BLL/{ => SYS}/ScheduleDtlBLL.cs | 20 +- CleanMachine.BLL/{ => SYS}/UserBLL.cs | 42 ++- CleanMachine.BLL/ZBK/WorkingPalletBLL.cs | 91 +++++++ CleanMachine.BLL/ZBK/WorkingPalletDtlBLL.cs | 91 +++++++ CleanMachine.DAL/{ => BAS}/CleanModeDAL.cs | 20 +- .../{ => BAS}/ContaminationDtlDAL.cs | 20 +- .../{ => BAS}/ContaminationTypeDAL.cs | 20 +- CleanMachine.DAL/{ => BAS}/PlcItemDAL.cs | 20 +- CleanMachine.DAL/{ => BAS}/SheetTypeDAL.cs | 20 +- CleanMachine.DAL/{ => BAS}/WarningDAL.cs | 20 +- CleanMachine.DAL/{ => CM}/LastPattleNumDAL.cs | 43 +++- CleanMachine.DAL/{ => CM}/WarningLogDAL.cs | 20 +- CleanMachine.DAL/CM/WorkingPalletDAL.cs | 112 ++++++++ CleanMachine.DAL/CM/WorkingPalletDtlDAL.cs | 112 ++++++++ .../{ => SYS}/LanguageControlDAL.cs | 20 +- CleanMachine.DAL/{ => SYS}/LanguageDAL.cs | 20 +- CleanMachine.DAL/{ => SYS}/LogDAL.cs | 20 +- CleanMachine.DAL/{ => SYS}/MenuDAL.cs | 20 +- CleanMachine.DAL/{ => SYS}/ParameterDAL.cs | 20 +- CleanMachine.DAL/{ => SYS}/RoleDAL.cs | 20 +- .../{ => SYS}/RoleMenuPermissionDAL.cs | 20 +- CleanMachine.DAL/{ => SYS}/ScheduleDtlDAL.cs | 20 +- CleanMachine.DAL/{ => SYS}/UserDAL.cs | 47 +++- .../{ => ZBK}/WorkingPalletDAL.cs | 20 +- .../{ => ZBK}/WorkingPalletDtlDAL.cs | 20 +- CleanMachine.Model/BAS/CleanMode.cs | 169 +++++++++++++ CleanMachine.Model/BAS/ContaminationDtl.cs | 179 +++++++++++++ CleanMachine.Model/BAS/ContaminationType.cs | 179 +++++++++++++ CleanMachine.Model/BAS/PlcItem.cs | 239 ++++++++++++++++++ CleanMachine.Model/BAS/SheetType.cs | 169 +++++++++++++ CleanMachine.Model/BAS/Warning.cs | 199 +++++++++++++++ CleanMachine.Model/CM/LastPattleNum.cs | 39 +++ CleanMachine.Model/CM/WarningLog.cs | 219 ++++++++++++++++ CleanMachine.Model/CM/WorkingPallet.cs | 159 ++++++++++++ CleanMachine.Model/CM/WorkingPalletDtl.cs | 239 ++++++++++++++++++ CleanMachine.Model/CleanMode.cs | 48 ---- CleanMachine.Model/ContaminationDtl.cs | 57 ----- CleanMachine.Model/ContaminationType.cs | 58 ----- CleanMachine.Model/Language.cs | 48 ---- CleanMachine.Model/LanguageControl.cs | 77 ------ CleanMachine.Model/LastPattleNum.cs | 35 --- CleanMachine.Model/Log.cs | 67 ----- CleanMachine.Model/Menu.cs | 23 -- CleanMachine.Model/Parameter.cs | 79 ------ CleanMachine.Model/PlcItem.cs | 117 --------- CleanMachine.Model/Role.cs | 57 ----- CleanMachine.Model/RoleMenuPermission.cs | 47 ---- CleanMachine.Model/SYS/Language.cs | 169 +++++++++++++ CleanMachine.Model/SYS/LanguageControl.cs | 199 +++++++++++++++ CleanMachine.Model/SYS/Log.cs | 169 +++++++++++++ CleanMachine.Model/SYS/Menu.cs | 199 +++++++++++++++ CleanMachine.Model/SYS/Parameter.cs | 189 ++++++++++++++ CleanMachine.Model/SYS/Role.cs | 179 +++++++++++++ CleanMachine.Model/SYS/RoleMenuPermission.cs | 149 +++++++++++ CleanMachine.Model/SYS/ScheduleDtl.cs | 189 ++++++++++++++ CleanMachine.Model/SYS/User.cs | 209 +++++++++++++++ CleanMachine.Model/ScheduleDtl.cs | 66 ----- CleanMachine.Model/SheetType.cs | 48 ---- CleanMachine.Model/User.cs | 88 ------- CleanMachine.Model/Warning.cs | 78 ------ CleanMachine.Model/WarningLog.cs | 118 --------- CleanMachine.Model/WorkingPallet.cs | 58 ----- CleanMachine.Model/WorkingPalletDtl.cs | 138 ---------- CleanMachine.Model/ZBK/WorkingPallet.cs | 159 ++++++++++++ CleanMachine.Model/ZBK/WorkingPalletDtl.cs | 239 ++++++++++++++++++ CleanMachine.Model/ZbkWorkingPallet.cs | 57 ----- CleanMachine.Model/ZbkWorkingPalletDtl.cs | 137 ---------- CleanMachineHMI/DataBase/clearMac.db | Bin 380928 -> 380928 bytes CleanMachineHMI/frmLogin.cs | 3 +- 86 files changed, 4721 insertions(+), 1878 deletions(-) rename CleanMachine.BLL/{ => BAS}/CleanModeBLL.cs (72%) rename CleanMachine.BLL/{ => BAS}/ContaminationDtlBLL.cs (71%) rename CleanMachine.BLL/{ => BAS}/ContaminationTypeBLL.cs (71%) rename CleanMachine.BLL/{ => BAS}/PlcItemBLL.cs (73%) rename CleanMachine.BLL/{ => BAS}/SheetTypeBLL.cs (72%) rename CleanMachine.BLL/{ => BAS}/WarningBLL.cs (73%) rename CleanMachine.BLL/{ => CM}/LastPattleNumBLL.cs (60%) rename CleanMachine.BLL/{ => CM}/WarningLogBLL.cs (73%) rename CleanMachine.BLL/{ => CM}/WorkingPalletBLL.cs (73%) rename CleanMachine.BLL/{ => CM}/WorkingPalletDtlBLL.cs (73%) rename CleanMachine.BLL/{ => SYS}/LanguageBLL.cs (72%) rename CleanMachine.BLL/{ => SYS}/LanguageControlBLL.cs (72%) rename CleanMachine.BLL/{ => SYS}/LogBLL.cs (73%) rename CleanMachine.BLL/{ => SYS}/MenuBLL.cs (73%) rename CleanMachine.BLL/{ => SYS}/ParameterBLL.cs (72%) rename CleanMachine.BLL/{ => SYS}/RoleBLL.cs (73%) rename CleanMachine.BLL/{ => SYS}/RoleMenuPermissionBLL.cs (71%) rename CleanMachine.BLL/{ => SYS}/ScheduleDtlBLL.cs (72%) rename CleanMachine.BLL/{ => SYS}/UserBLL.cs (57%) create mode 100644 CleanMachine.BLL/ZBK/WorkingPalletBLL.cs create mode 100644 CleanMachine.BLL/ZBK/WorkingPalletDtlBLL.cs rename CleanMachine.DAL/{ => BAS}/CleanModeDAL.cs (82%) rename CleanMachine.DAL/{ => BAS}/ContaminationDtlDAL.cs (82%) rename CleanMachine.DAL/{ => BAS}/ContaminationTypeDAL.cs (82%) rename CleanMachine.DAL/{ => BAS}/PlcItemDAL.cs (84%) rename CleanMachine.DAL/{ => BAS}/SheetTypeDAL.cs (82%) rename CleanMachine.DAL/{ => BAS}/WarningDAL.cs (83%) rename CleanMachine.DAL/{ => CM}/LastPattleNumDAL.cs (65%) rename CleanMachine.DAL/{ => CM}/WarningLogDAL.cs (84%) create mode 100644 CleanMachine.DAL/CM/WorkingPalletDAL.cs create mode 100644 CleanMachine.DAL/CM/WorkingPalletDtlDAL.cs rename CleanMachine.DAL/{ => SYS}/LanguageControlDAL.cs (82%) rename CleanMachine.DAL/{ => SYS}/LanguageDAL.cs (82%) rename CleanMachine.DAL/{ => SYS}/LogDAL.cs (83%) rename CleanMachine.DAL/{ => SYS}/MenuDAL.cs (83%) rename CleanMachine.DAL/{ => SYS}/ParameterDAL.cs (82%) rename CleanMachine.DAL/{ => SYS}/RoleDAL.cs (83%) rename CleanMachine.DAL/{ => SYS}/RoleMenuPermissionDAL.cs (80%) rename CleanMachine.DAL/{ => SYS}/ScheduleDtlDAL.cs (84%) rename CleanMachine.DAL/{ => SYS}/UserDAL.cs (68%) rename CleanMachine.DAL/{ => ZBK}/WorkingPalletDAL.cs (82%) rename CleanMachine.DAL/{ => ZBK}/WorkingPalletDtlDAL.cs (83%) create mode 100644 CleanMachine.Model/BAS/CleanMode.cs create mode 100644 CleanMachine.Model/BAS/ContaminationDtl.cs create mode 100644 CleanMachine.Model/BAS/ContaminationType.cs create mode 100644 CleanMachine.Model/BAS/PlcItem.cs create mode 100644 CleanMachine.Model/BAS/SheetType.cs create mode 100644 CleanMachine.Model/BAS/Warning.cs create mode 100644 CleanMachine.Model/CM/LastPattleNum.cs create mode 100644 CleanMachine.Model/CM/WarningLog.cs create mode 100644 CleanMachine.Model/CM/WorkingPallet.cs create mode 100644 CleanMachine.Model/CM/WorkingPalletDtl.cs delete mode 100644 CleanMachine.Model/CleanMode.cs delete mode 100644 CleanMachine.Model/ContaminationDtl.cs delete mode 100644 CleanMachine.Model/ContaminationType.cs delete mode 100644 CleanMachine.Model/Language.cs delete mode 100644 CleanMachine.Model/LanguageControl.cs delete mode 100644 CleanMachine.Model/LastPattleNum.cs delete mode 100644 CleanMachine.Model/Log.cs delete mode 100644 CleanMachine.Model/Menu.cs delete mode 100644 CleanMachine.Model/Parameter.cs delete mode 100644 CleanMachine.Model/PlcItem.cs delete mode 100644 CleanMachine.Model/Role.cs delete mode 100644 CleanMachine.Model/RoleMenuPermission.cs create mode 100644 CleanMachine.Model/SYS/Language.cs create mode 100644 CleanMachine.Model/SYS/LanguageControl.cs create mode 100644 CleanMachine.Model/SYS/Log.cs create mode 100644 CleanMachine.Model/SYS/Menu.cs create mode 100644 CleanMachine.Model/SYS/Parameter.cs create mode 100644 CleanMachine.Model/SYS/Role.cs create mode 100644 CleanMachine.Model/SYS/RoleMenuPermission.cs create mode 100644 CleanMachine.Model/SYS/ScheduleDtl.cs create mode 100644 CleanMachine.Model/SYS/User.cs delete mode 100644 CleanMachine.Model/ScheduleDtl.cs delete mode 100644 CleanMachine.Model/SheetType.cs delete mode 100644 CleanMachine.Model/User.cs delete mode 100644 CleanMachine.Model/Warning.cs delete mode 100644 CleanMachine.Model/WarningLog.cs delete mode 100644 CleanMachine.Model/WorkingPallet.cs delete mode 100644 CleanMachine.Model/WorkingPalletDtl.cs create mode 100644 CleanMachine.Model/ZBK/WorkingPallet.cs create mode 100644 CleanMachine.Model/ZBK/WorkingPalletDtl.cs delete mode 100644 CleanMachine.Model/ZbkWorkingPallet.cs delete mode 100644 CleanMachine.Model/ZbkWorkingPalletDtl.cs diff --git a/CleanMachine.BLL/CleanModeBLL.cs b/CleanMachine.BLL/BAS/CleanModeBLL.cs similarity index 72% rename from CleanMachine.BLL/CleanModeBLL.cs rename to CleanMachine.BLL/BAS/CleanModeBLL.cs index 72f60e1..2af0bde 100644 --- a/CleanMachine.BLL/CleanModeBLL.cs +++ b/CleanMachine.BLL/BAS/CleanModeBLL.cs @@ -1,13 +1,13 @@ //模板信息:{"Template":{"Language":"C#"}} -//输出信息:{"Extension":".cs","FileName":"BLL\\CleanModeBLL"} +//输出信息:{"Extension":".cs","FileName":"BLL\\BAS\\CleanModeBLL"} using System; using System.Text; using System.Linq; using System.Collections.Generic; -using CleanMachine.DAL; +using CleanMachine.DAL.BAS; -namespace CleanMachine.BLL +namespace CleanMachine.BLL.BAS { /// /// @@ -23,7 +23,7 @@ namespace CleanMachine.BLL /// /// 存在 /// - public bool Exists(string CleanModeId) + public bool Exists(int CleanModeId) { return new CleanModeDAL().Exists(CleanModeId); } @@ -31,7 +31,7 @@ namespace CleanMachine.BLL /// /// 添加一个数据 /// - public bool Add(CleanMachine.Model.CleanMode model) + public bool Add(CleanMachine.Model.BAS.CleanMode model) { return new CleanModeDAL().Add(model); } @@ -39,7 +39,7 @@ namespace CleanMachine.BLL /// /// 更新一个数据 /// - public bool Update(CleanMachine.Model.CleanMode model) + public bool Update(CleanMachine.Model.BAS.CleanMode model) { return new CleanModeDAL().Update(model); } @@ -56,7 +56,7 @@ namespace CleanMachine.BLL /// /// 删除一个数据 /// - public bool Delete(string CleanModeId) + public bool Delete(int CleanModeId) { return new CleanModeDAL().Delete(CleanModeId); } @@ -64,7 +64,7 @@ namespace CleanMachine.BLL /// /// 获得数据列表 /// - public IEnumerable GetList(string strWhere, object Params = null) + public IEnumerable GetList(string strWhere, object Params = null) { return new CleanModeDAL().GetList(strWhere,Params); } @@ -72,7 +72,7 @@ namespace CleanMachine.BLL /// /// 获取一个对象 /// - public CleanMachine.Model.CleanMode GetModel(string CleanModeId) + public CleanMachine.Model.BAS.CleanMode GetModel(int CleanModeId) { return new CleanModeDAL().GetModel(CleanModeId); } @@ -83,7 +83,7 @@ namespace CleanMachine.BLL /// /// 查询数据 /// - // public IEnumerable GetModelList(RuleGroup rule) + // public IEnumerable GetModelList(RuleGroup rule) // { // return new CleanModeDAL().GetModelList(rule); // } diff --git a/CleanMachine.BLL/ContaminationDtlBLL.cs b/CleanMachine.BLL/BAS/ContaminationDtlBLL.cs similarity index 71% rename from CleanMachine.BLL/ContaminationDtlBLL.cs rename to CleanMachine.BLL/BAS/ContaminationDtlBLL.cs index 8dbdb1b..9b4f964 100644 --- a/CleanMachine.BLL/ContaminationDtlBLL.cs +++ b/CleanMachine.BLL/BAS/ContaminationDtlBLL.cs @@ -1,13 +1,13 @@ //模板信息:{"Template":{"Language":"C#"}} -//输出信息:{"Extension":".cs","FileName":"BLL\\ContaminationDtlBLL"} +//输出信息:{"Extension":".cs","FileName":"BLL\\BAS\\ContaminationDtlBLL"} using System; using System.Text; using System.Linq; using System.Collections.Generic; -using CleanMachine.DAL; +using CleanMachine.DAL.BAS; -namespace CleanMachine.BLL +namespace CleanMachine.BLL.BAS { /// /// @@ -23,7 +23,7 @@ namespace CleanMachine.BLL /// /// 存在 /// - public bool Exists(string ContaminationDtlId) + public bool Exists(int ContaminationDtlId) { return new ContaminationDtlDAL().Exists(ContaminationDtlId); } @@ -31,7 +31,7 @@ namespace CleanMachine.BLL /// /// 添加一个数据 /// - public bool Add(CleanMachine.Model.ContaminationDtl model) + public bool Add(CleanMachine.Model.BAS.ContaminationDtl model) { return new ContaminationDtlDAL().Add(model); } @@ -39,7 +39,7 @@ namespace CleanMachine.BLL /// /// 更新一个数据 /// - public bool Update(CleanMachine.Model.ContaminationDtl model) + public bool Update(CleanMachine.Model.BAS.ContaminationDtl model) { return new ContaminationDtlDAL().Update(model); } @@ -56,7 +56,7 @@ namespace CleanMachine.BLL /// /// 删除一个数据 /// - public bool Delete(string ContaminationDtlId) + public bool Delete(int ContaminationDtlId) { return new ContaminationDtlDAL().Delete(ContaminationDtlId); } @@ -64,7 +64,7 @@ namespace CleanMachine.BLL /// /// 获得数据列表 /// - public IEnumerable GetList(string strWhere, object Params = null) + public IEnumerable GetList(string strWhere, object Params = null) { return new ContaminationDtlDAL().GetList(strWhere,Params); } @@ -72,7 +72,7 @@ namespace CleanMachine.BLL /// /// 获取一个对象 /// - public CleanMachine.Model.ContaminationDtl GetModel(string ContaminationDtlId) + public CleanMachine.Model.BAS.ContaminationDtl GetModel(int ContaminationDtlId) { return new ContaminationDtlDAL().GetModel(ContaminationDtlId); } @@ -83,7 +83,7 @@ namespace CleanMachine.BLL /// /// 查询数据 /// - // public IEnumerable GetModelList(RuleGroup rule) + // public IEnumerable GetModelList(RuleGroup rule) // { // return new ContaminationDtlDAL().GetModelList(rule); // } diff --git a/CleanMachine.BLL/ContaminationTypeBLL.cs b/CleanMachine.BLL/BAS/ContaminationTypeBLL.cs similarity index 71% rename from CleanMachine.BLL/ContaminationTypeBLL.cs rename to CleanMachine.BLL/BAS/ContaminationTypeBLL.cs index 127060c..be43c64 100644 --- a/CleanMachine.BLL/ContaminationTypeBLL.cs +++ b/CleanMachine.BLL/BAS/ContaminationTypeBLL.cs @@ -1,13 +1,13 @@ //模板信息:{"Template":{"Language":"C#"}} -//输出信息:{"Extension":".cs","FileName":"BLL\\ContaminationTypeBLL"} +//输出信息:{"Extension":".cs","FileName":"BLL\\BAS\\ContaminationTypeBLL"} using System; using System.Text; using System.Linq; using System.Collections.Generic; -using CleanMachine.DAL; +using CleanMachine.DAL.BAS; -namespace CleanMachine.BLL +namespace CleanMachine.BLL.BAS { /// /// @@ -23,7 +23,7 @@ namespace CleanMachine.BLL /// /// 存在 /// - public bool Exists(string ContaminationTypeId) + public bool Exists(int ContaminationTypeId) { return new ContaminationTypeDAL().Exists(ContaminationTypeId); } @@ -31,7 +31,7 @@ namespace CleanMachine.BLL /// /// 添加一个数据 /// - public bool Add(CleanMachine.Model.ContaminationType model) + public bool Add(CleanMachine.Model.BAS.ContaminationType model) { return new ContaminationTypeDAL().Add(model); } @@ -39,7 +39,7 @@ namespace CleanMachine.BLL /// /// 更新一个数据 /// - public bool Update(CleanMachine.Model.ContaminationType model) + public bool Update(CleanMachine.Model.BAS.ContaminationType model) { return new ContaminationTypeDAL().Update(model); } @@ -56,7 +56,7 @@ namespace CleanMachine.BLL /// /// 删除一个数据 /// - public bool Delete(string ContaminationTypeId) + public bool Delete(int ContaminationTypeId) { return new ContaminationTypeDAL().Delete(ContaminationTypeId); } @@ -64,7 +64,7 @@ namespace CleanMachine.BLL /// /// 获得数据列表 /// - public IEnumerable GetList(string strWhere, object Params = null) + public IEnumerable GetList(string strWhere, object Params = null) { return new ContaminationTypeDAL().GetList(strWhere,Params); } @@ -72,7 +72,7 @@ namespace CleanMachine.BLL /// /// 获取一个对象 /// - public CleanMachine.Model.ContaminationType GetModel(string ContaminationTypeId) + public CleanMachine.Model.BAS.ContaminationType GetModel(int ContaminationTypeId) { return new ContaminationTypeDAL().GetModel(ContaminationTypeId); } @@ -83,7 +83,7 @@ namespace CleanMachine.BLL /// /// 查询数据 /// - // public IEnumerable GetModelList(RuleGroup rule) + // public IEnumerable GetModelList(RuleGroup rule) // { // return new ContaminationTypeDAL().GetModelList(rule); // } diff --git a/CleanMachine.BLL/PlcItemBLL.cs b/CleanMachine.BLL/BAS/PlcItemBLL.cs similarity index 73% rename from CleanMachine.BLL/PlcItemBLL.cs rename to CleanMachine.BLL/BAS/PlcItemBLL.cs index 91c4353..be73c42 100644 --- a/CleanMachine.BLL/PlcItemBLL.cs +++ b/CleanMachine.BLL/BAS/PlcItemBLL.cs @@ -1,13 +1,13 @@ //模板信息:{"Template":{"Language":"C#"}} -//输出信息:{"Extension":".cs","FileName":"BLL\\PlcItemBLL"} +//输出信息:{"Extension":".cs","FileName":"BLL\\BAS\\PlcItemBLL"} using System; using System.Text; using System.Linq; using System.Collections.Generic; -using CleanMachine.DAL; +using CleanMachine.DAL.BAS; -namespace CleanMachine.BLL +namespace CleanMachine.BLL.BAS { /// /// @@ -23,7 +23,7 @@ namespace CleanMachine.BLL /// /// 存在 /// - public bool Exists(string PlcItemId) + public bool Exists(int PlcItemId) { return new PlcItemDAL().Exists(PlcItemId); } @@ -31,7 +31,7 @@ namespace CleanMachine.BLL /// /// 添加一个数据 /// - public bool Add(CleanMachine.Model.PlcItem model) + public bool Add(CleanMachine.Model.BAS.PlcItem model) { return new PlcItemDAL().Add(model); } @@ -39,7 +39,7 @@ namespace CleanMachine.BLL /// /// 更新一个数据 /// - public bool Update(CleanMachine.Model.PlcItem model) + public bool Update(CleanMachine.Model.BAS.PlcItem model) { return new PlcItemDAL().Update(model); } @@ -56,7 +56,7 @@ namespace CleanMachine.BLL /// /// 删除一个数据 /// - public bool Delete(string PlcItemId) + public bool Delete(int PlcItemId) { return new PlcItemDAL().Delete(PlcItemId); } @@ -64,7 +64,7 @@ namespace CleanMachine.BLL /// /// 获得数据列表 /// - public IEnumerable GetList(string strWhere, object Params = null) + public IEnumerable GetList(string strWhere, object Params = null) { return new PlcItemDAL().GetList(strWhere,Params); } @@ -72,7 +72,7 @@ namespace CleanMachine.BLL /// /// 获取一个对象 /// - public CleanMachine.Model.PlcItem GetModel(string PlcItemId) + public CleanMachine.Model.BAS.PlcItem GetModel(int PlcItemId) { return new PlcItemDAL().GetModel(PlcItemId); } @@ -83,7 +83,7 @@ namespace CleanMachine.BLL /// /// 查询数据 /// - // public IEnumerable GetModelList(RuleGroup rule) + // public IEnumerable GetModelList(RuleGroup rule) // { // return new PlcItemDAL().GetModelList(rule); // } diff --git a/CleanMachine.BLL/SheetTypeBLL.cs b/CleanMachine.BLL/BAS/SheetTypeBLL.cs similarity index 72% rename from CleanMachine.BLL/SheetTypeBLL.cs rename to CleanMachine.BLL/BAS/SheetTypeBLL.cs index 66a2c4d..7f74edb 100644 --- a/CleanMachine.BLL/SheetTypeBLL.cs +++ b/CleanMachine.BLL/BAS/SheetTypeBLL.cs @@ -1,13 +1,13 @@ //模板信息:{"Template":{"Language":"C#"}} -//输出信息:{"Extension":".cs","FileName":"BLL\\SheetTypeBLL"} +//输出信息:{"Extension":".cs","FileName":"BLL\\BAS\\SheetTypeBLL"} using System; using System.Text; using System.Linq; using System.Collections.Generic; -using CleanMachine.DAL; +using CleanMachine.DAL.BAS; -namespace CleanMachine.BLL +namespace CleanMachine.BLL.BAS { /// /// @@ -23,7 +23,7 @@ namespace CleanMachine.BLL /// /// 存在 /// - public bool Exists(string SheetTypeId) + public bool Exists(int SheetTypeId) { return new SheetTypeDAL().Exists(SheetTypeId); } @@ -31,7 +31,7 @@ namespace CleanMachine.BLL /// /// 添加一个数据 /// - public bool Add(CleanMachine.Model.SheetType model) + public bool Add(CleanMachine.Model.BAS.SheetType model) { return new SheetTypeDAL().Add(model); } @@ -39,7 +39,7 @@ namespace CleanMachine.BLL /// /// 更新一个数据 /// - public bool Update(CleanMachine.Model.SheetType model) + public bool Update(CleanMachine.Model.BAS.SheetType model) { return new SheetTypeDAL().Update(model); } @@ -56,7 +56,7 @@ namespace CleanMachine.BLL /// /// 删除一个数据 /// - public bool Delete(string SheetTypeId) + public bool Delete(int SheetTypeId) { return new SheetTypeDAL().Delete(SheetTypeId); } @@ -64,7 +64,7 @@ namespace CleanMachine.BLL /// /// 获得数据列表 /// - public IEnumerable GetList(string strWhere, object Params = null) + public IEnumerable GetList(string strWhere, object Params = null) { return new SheetTypeDAL().GetList(strWhere,Params); } @@ -72,7 +72,7 @@ namespace CleanMachine.BLL /// /// 获取一个对象 /// - public CleanMachine.Model.SheetType GetModel(string SheetTypeId) + public CleanMachine.Model.BAS.SheetType GetModel(int SheetTypeId) { return new SheetTypeDAL().GetModel(SheetTypeId); } @@ -83,7 +83,7 @@ namespace CleanMachine.BLL /// /// 查询数据 /// - // public IEnumerable GetModelList(RuleGroup rule) + // public IEnumerable GetModelList(RuleGroup rule) // { // return new SheetTypeDAL().GetModelList(rule); // } diff --git a/CleanMachine.BLL/WarningBLL.cs b/CleanMachine.BLL/BAS/WarningBLL.cs similarity index 73% rename from CleanMachine.BLL/WarningBLL.cs rename to CleanMachine.BLL/BAS/WarningBLL.cs index 2feb33b..4d94371 100644 --- a/CleanMachine.BLL/WarningBLL.cs +++ b/CleanMachine.BLL/BAS/WarningBLL.cs @@ -1,13 +1,13 @@ //模板信息:{"Template":{"Language":"C#"}} -//输出信息:{"Extension":".cs","FileName":"BLL\\WarningBLL"} +//输出信息:{"Extension":".cs","FileName":"BLL\\BAS\\WarningBLL"} using System; using System.Text; using System.Linq; using System.Collections.Generic; -using CleanMachine.DAL; +using CleanMachine.DAL.BAS; -namespace CleanMachine.BLL +namespace CleanMachine.BLL.BAS { /// /// @@ -23,7 +23,7 @@ namespace CleanMachine.BLL /// /// 存在 /// - public bool Exists(string WarningId) + public bool Exists(int WarningId) { return new WarningDAL().Exists(WarningId); } @@ -31,7 +31,7 @@ namespace CleanMachine.BLL /// /// 添加一个数据 /// - public bool Add(CleanMachine.Model.Warning model) + public bool Add(CleanMachine.Model.BAS.Warning model) { return new WarningDAL().Add(model); } @@ -39,7 +39,7 @@ namespace CleanMachine.BLL /// /// 更新一个数据 /// - public bool Update(CleanMachine.Model.Warning model) + public bool Update(CleanMachine.Model.BAS.Warning model) { return new WarningDAL().Update(model); } @@ -56,7 +56,7 @@ namespace CleanMachine.BLL /// /// 删除一个数据 /// - public bool Delete(string WarningId) + public bool Delete(int WarningId) { return new WarningDAL().Delete(WarningId); } @@ -64,7 +64,7 @@ namespace CleanMachine.BLL /// /// 获得数据列表 /// - public IEnumerable GetList(string strWhere, object Params = null) + public IEnumerable GetList(string strWhere, object Params = null) { return new WarningDAL().GetList(strWhere,Params); } @@ -72,7 +72,7 @@ namespace CleanMachine.BLL /// /// 获取一个对象 /// - public CleanMachine.Model.Warning GetModel(string WarningId) + public CleanMachine.Model.BAS.Warning GetModel(int WarningId) { return new WarningDAL().GetModel(WarningId); } @@ -83,7 +83,7 @@ namespace CleanMachine.BLL /// /// 查询数据 /// - // public IEnumerable GetModelList(RuleGroup rule) + // public IEnumerable GetModelList(RuleGroup rule) // { // return new WarningDAL().GetModelList(rule); // } diff --git a/CleanMachine.BLL/LastPattleNumBLL.cs b/CleanMachine.BLL/CM/LastPattleNumBLL.cs similarity index 60% rename from CleanMachine.BLL/LastPattleNumBLL.cs rename to CleanMachine.BLL/CM/LastPattleNumBLL.cs index e4f020a..ef12270 100644 --- a/CleanMachine.BLL/LastPattleNumBLL.cs +++ b/CleanMachine.BLL/CM/LastPattleNumBLL.cs @@ -1,13 +1,13 @@ //模板信息:{"Template":{"Language":"C#"}} -//输出信息:{"Extension":".cs","FileName":"BLL\\LastPattleNumBLL"} +//输出信息:{"Extension":".cs","FileName":"BLL\\CM\\LastPattleNumBLL"} using System; using System.Text; using System.Linq; using System.Collections.Generic; -using CleanMachine.DAL; +using CleanMachine.DAL.CM; -namespace CleanMachine.BLL +namespace CleanMachine.BLL.CM { /// /// @@ -31,7 +31,7 @@ namespace CleanMachine.BLL /// /// 添加一个数据 /// - public bool Add(CleanMachine.Model.LastPattleNum model) + public bool Add(CleanMachine.Model.CM.LastPattleNum model) { return new LastPattleNumDAL().Add(model); } @@ -39,7 +39,7 @@ namespace CleanMachine.BLL /// /// 更新一个数据 /// - public bool Update(CleanMachine.Model.LastPattleNum model) + public bool Update(CleanMachine.Model.CM.LastPattleNum model) { return new LastPattleNumDAL().Update(model); } @@ -64,7 +64,7 @@ namespace CleanMachine.BLL /// /// 获得数据列表 /// - public IEnumerable GetList(string strWhere, object Params = null) + public IEnumerable GetList(string strWhere, object Params = null) { return new LastPattleNumDAL().GetList(strWhere,Params); } @@ -72,18 +72,40 @@ namespace CleanMachine.BLL /// /// 获取一个对象 /// - public CleanMachine.Model.LastPattleNum GetModel(string Key) + public CleanMachine.Model.CM.LastPattleNum GetModel(string Key) { return new LastPattleNumDAL().GetModel(Key); } #endregion + + /// + /// 删除一个数据 + /// + public bool Delete(string Key) + { + return new LastPattleNumDAL().Delete(Key); + } + /// + /// 获取一个对象 + /// + public CleanMachine.Model.CM.LastPattleNum GetModel(string Key) + { + return new LastPattleNumDAL().GetModel(Key); + } + /// + /// 存在 + /// + public bool Exists(string Key) + { + return new LastPattleNumDAL().Exists(Key); + } /// /// 查询数据 /// - // public IEnumerable GetModelList(RuleGroup rule) + // public IEnumerable GetModelList(RuleGroup rule) // { // return new LastPattleNumDAL().GetModelList(rule); // } diff --git a/CleanMachine.BLL/WarningLogBLL.cs b/CleanMachine.BLL/CM/WarningLogBLL.cs similarity index 73% rename from CleanMachine.BLL/WarningLogBLL.cs rename to CleanMachine.BLL/CM/WarningLogBLL.cs index 23573fa..5edf426 100644 --- a/CleanMachine.BLL/WarningLogBLL.cs +++ b/CleanMachine.BLL/CM/WarningLogBLL.cs @@ -1,13 +1,13 @@ //模板信息:{"Template":{"Language":"C#"}} -//输出信息:{"Extension":".cs","FileName":"BLL\\WarningLogBLL"} +//输出信息:{"Extension":".cs","FileName":"BLL\\CM\\WarningLogBLL"} using System; using System.Text; using System.Linq; using System.Collections.Generic; -using CleanMachine.DAL; +using CleanMachine.DAL.CM; -namespace CleanMachine.BLL +namespace CleanMachine.BLL.CM { /// /// @@ -23,7 +23,7 @@ namespace CleanMachine.BLL /// /// 存在 /// - public bool Exists(string WarningLogId) + public bool Exists(int WarningLogId) { return new WarningLogDAL().Exists(WarningLogId); } @@ -31,7 +31,7 @@ namespace CleanMachine.BLL /// /// 添加一个数据 /// - public bool Add(CleanMachine.Model.WarningLog model) + public bool Add(CleanMachine.Model.CM.WarningLog model) { return new WarningLogDAL().Add(model); } @@ -39,7 +39,7 @@ namespace CleanMachine.BLL /// /// 更新一个数据 /// - public bool Update(CleanMachine.Model.WarningLog model) + public bool Update(CleanMachine.Model.CM.WarningLog model) { return new WarningLogDAL().Update(model); } @@ -56,7 +56,7 @@ namespace CleanMachine.BLL /// /// 删除一个数据 /// - public bool Delete(string WarningLogId) + public bool Delete(int WarningLogId) { return new WarningLogDAL().Delete(WarningLogId); } @@ -64,7 +64,7 @@ namespace CleanMachine.BLL /// /// 获得数据列表 /// - public IEnumerable GetList(string strWhere, object Params = null) + public IEnumerable GetList(string strWhere, object Params = null) { return new WarningLogDAL().GetList(strWhere,Params); } @@ -72,7 +72,7 @@ namespace CleanMachine.BLL /// /// 获取一个对象 /// - public CleanMachine.Model.WarningLog GetModel(string WarningLogId) + public CleanMachine.Model.CM.WarningLog GetModel(int WarningLogId) { return new WarningLogDAL().GetModel(WarningLogId); } @@ -83,7 +83,7 @@ namespace CleanMachine.BLL /// /// 查询数据 /// - // public IEnumerable GetModelList(RuleGroup rule) + // public IEnumerable GetModelList(RuleGroup rule) // { // return new WarningLogDAL().GetModelList(rule); // } diff --git a/CleanMachine.BLL/WorkingPalletBLL.cs b/CleanMachine.BLL/CM/WorkingPalletBLL.cs similarity index 73% rename from CleanMachine.BLL/WorkingPalletBLL.cs rename to CleanMachine.BLL/CM/WorkingPalletBLL.cs index b1a465d..7a2f32c 100644 --- a/CleanMachine.BLL/WorkingPalletBLL.cs +++ b/CleanMachine.BLL/CM/WorkingPalletBLL.cs @@ -1,13 +1,13 @@ //模板信息:{"Template":{"Language":"C#"}} -//输出信息:{"Extension":".cs","FileName":"BLL\\WorkingPalletBLL"} +//输出信息:{"Extension":".cs","FileName":"BLL\\CM\\WorkingPalletBLL"} using System; using System.Text; using System.Linq; using System.Collections.Generic; -using CleanMachine.DAL; +using CleanMachine.DAL.CM; -namespace CleanMachine.BLL +namespace CleanMachine.BLL.CM { /// /// @@ -23,7 +23,7 @@ namespace CleanMachine.BLL /// /// 存在 /// - public bool Exists(string WorkingPalletId) + public bool Exists(int WorkingPalletId) { return new WorkingPalletDAL().Exists(WorkingPalletId); } @@ -31,7 +31,7 @@ namespace CleanMachine.BLL /// /// 添加一个数据 /// - public bool Add(CleanMachine.Model.WorkingPallet model) + public bool Add(CleanMachine.Model.CM.WorkingPallet model) { return new WorkingPalletDAL().Add(model); } @@ -39,7 +39,7 @@ namespace CleanMachine.BLL /// /// 更新一个数据 /// - public bool Update(CleanMachine.Model.WorkingPallet model) + public bool Update(CleanMachine.Model.CM.WorkingPallet model) { return new WorkingPalletDAL().Update(model); } @@ -56,7 +56,7 @@ namespace CleanMachine.BLL /// /// 删除一个数据 /// - public bool Delete(string WorkingPalletId) + public bool Delete(int WorkingPalletId) { return new WorkingPalletDAL().Delete(WorkingPalletId); } @@ -64,7 +64,7 @@ namespace CleanMachine.BLL /// /// 获得数据列表 /// - public IEnumerable GetList(string strWhere, object Params = null) + public IEnumerable GetList(string strWhere, object Params = null) { return new WorkingPalletDAL().GetList(strWhere,Params); } @@ -72,7 +72,7 @@ namespace CleanMachine.BLL /// /// 获取一个对象 /// - public CleanMachine.Model.WorkingPallet GetModel(string WorkingPalletId) + public CleanMachine.Model.CM.WorkingPallet GetModel(int WorkingPalletId) { return new WorkingPalletDAL().GetModel(WorkingPalletId); } @@ -83,7 +83,7 @@ namespace CleanMachine.BLL /// /// 查询数据 /// - // public IEnumerable GetModelList(RuleGroup rule) + // public IEnumerable GetModelList(RuleGroup rule) // { // return new WorkingPalletDAL().GetModelList(rule); // } diff --git a/CleanMachine.BLL/WorkingPalletDtlBLL.cs b/CleanMachine.BLL/CM/WorkingPalletDtlBLL.cs similarity index 73% rename from CleanMachine.BLL/WorkingPalletDtlBLL.cs rename to CleanMachine.BLL/CM/WorkingPalletDtlBLL.cs index 9da5ea6..093e51d 100644 --- a/CleanMachine.BLL/WorkingPalletDtlBLL.cs +++ b/CleanMachine.BLL/CM/WorkingPalletDtlBLL.cs @@ -1,13 +1,13 @@ //模板信息:{"Template":{"Language":"C#"}} -//输出信息:{"Extension":".cs","FileName":"BLL\\WorkingPalletDtlBLL"} +//输出信息:{"Extension":".cs","FileName":"BLL\\CM\\WorkingPalletDtlBLL"} using System; using System.Text; using System.Linq; using System.Collections.Generic; -using CleanMachine.DAL; +using CleanMachine.DAL.CM; -namespace CleanMachine.BLL +namespace CleanMachine.BLL.CM { /// /// @@ -23,7 +23,7 @@ namespace CleanMachine.BLL /// /// 存在 /// - public bool Exists(string WorkingPalletDtlId) + public bool Exists(int WorkingPalletDtlId) { return new WorkingPalletDtlDAL().Exists(WorkingPalletDtlId); } @@ -31,7 +31,7 @@ namespace CleanMachine.BLL /// /// 添加一个数据 /// - public bool Add(CleanMachine.Model.WorkingPalletDtl model) + public bool Add(CleanMachine.Model.CM.WorkingPalletDtl model) { return new WorkingPalletDtlDAL().Add(model); } @@ -39,7 +39,7 @@ namespace CleanMachine.BLL /// /// 更新一个数据 /// - public bool Update(CleanMachine.Model.WorkingPalletDtl model) + public bool Update(CleanMachine.Model.CM.WorkingPalletDtl model) { return new WorkingPalletDtlDAL().Update(model); } @@ -56,7 +56,7 @@ namespace CleanMachine.BLL /// /// 删除一个数据 /// - public bool Delete(string WorkingPalletDtlId) + public bool Delete(int WorkingPalletDtlId) { return new WorkingPalletDtlDAL().Delete(WorkingPalletDtlId); } @@ -64,7 +64,7 @@ namespace CleanMachine.BLL /// /// 获得数据列表 /// - public IEnumerable GetList(string strWhere, object Params = null) + public IEnumerable GetList(string strWhere, object Params = null) { return new WorkingPalletDtlDAL().GetList(strWhere,Params); } @@ -72,7 +72,7 @@ namespace CleanMachine.BLL /// /// 获取一个对象 /// - public CleanMachine.Model.WorkingPalletDtl GetModel(string WorkingPalletDtlId) + public CleanMachine.Model.CM.WorkingPalletDtl GetModel(int WorkingPalletDtlId) { return new WorkingPalletDtlDAL().GetModel(WorkingPalletDtlId); } @@ -83,7 +83,7 @@ namespace CleanMachine.BLL /// /// 查询数据 /// - // public IEnumerable GetModelList(RuleGroup rule) + // public IEnumerable GetModelList(RuleGroup rule) // { // return new WorkingPalletDtlDAL().GetModelList(rule); // } diff --git a/CleanMachine.BLL/LanguageBLL.cs b/CleanMachine.BLL/SYS/LanguageBLL.cs similarity index 72% rename from CleanMachine.BLL/LanguageBLL.cs rename to CleanMachine.BLL/SYS/LanguageBLL.cs index 30a2047..29b707c 100644 --- a/CleanMachine.BLL/LanguageBLL.cs +++ b/CleanMachine.BLL/SYS/LanguageBLL.cs @@ -1,13 +1,13 @@ //模板信息:{"Template":{"Language":"C#"}} -//输出信息:{"Extension":".cs","FileName":"BLL\\LanguageBLL"} +//输出信息:{"Extension":".cs","FileName":"BLL\\SYS\\LanguageBLL"} using System; using System.Text; using System.Linq; using System.Collections.Generic; -using CleanMachine.DAL; +using CleanMachine.DAL.SYS; -namespace CleanMachine.BLL +namespace CleanMachine.BLL.SYS { /// /// @@ -23,7 +23,7 @@ namespace CleanMachine.BLL /// /// 存在 /// - public bool Exists(string LanguageId) + public bool Exists(int LanguageId) { return new LanguageDAL().Exists(LanguageId); } @@ -31,7 +31,7 @@ namespace CleanMachine.BLL /// /// 添加一个数据 /// - public bool Add(CleanMachine.Model.Language model) + public bool Add(CleanMachine.Model.SYS.Language model) { return new LanguageDAL().Add(model); } @@ -39,7 +39,7 @@ namespace CleanMachine.BLL /// /// 更新一个数据 /// - public bool Update(CleanMachine.Model.Language model) + public bool Update(CleanMachine.Model.SYS.Language model) { return new LanguageDAL().Update(model); } @@ -56,7 +56,7 @@ namespace CleanMachine.BLL /// /// 删除一个数据 /// - public bool Delete(string LanguageId) + public bool Delete(int LanguageId) { return new LanguageDAL().Delete(LanguageId); } @@ -64,7 +64,7 @@ namespace CleanMachine.BLL /// /// 获得数据列表 /// - public IEnumerable GetList(string strWhere, object Params = null) + public IEnumerable GetList(string strWhere, object Params = null) { return new LanguageDAL().GetList(strWhere,Params); } @@ -72,7 +72,7 @@ namespace CleanMachine.BLL /// /// 获取一个对象 /// - public CleanMachine.Model.Language GetModel(string LanguageId) + public CleanMachine.Model.SYS.Language GetModel(int LanguageId) { return new LanguageDAL().GetModel(LanguageId); } @@ -83,7 +83,7 @@ namespace CleanMachine.BLL /// /// 查询数据 /// - // public IEnumerable GetModelList(RuleGroup rule) + // public IEnumerable GetModelList(RuleGroup rule) // { // return new LanguageDAL().GetModelList(rule); // } diff --git a/CleanMachine.BLL/LanguageControlBLL.cs b/CleanMachine.BLL/SYS/LanguageControlBLL.cs similarity index 72% rename from CleanMachine.BLL/LanguageControlBLL.cs rename to CleanMachine.BLL/SYS/LanguageControlBLL.cs index 002018c..9700c3d 100644 --- a/CleanMachine.BLL/LanguageControlBLL.cs +++ b/CleanMachine.BLL/SYS/LanguageControlBLL.cs @@ -1,13 +1,13 @@ //模板信息:{"Template":{"Language":"C#"}} -//输出信息:{"Extension":".cs","FileName":"BLL\\LanguageControlBLL"} +//输出信息:{"Extension":".cs","FileName":"BLL\\SYS\\LanguageControlBLL"} using System; using System.Text; using System.Linq; using System.Collections.Generic; -using CleanMachine.DAL; +using CleanMachine.DAL.SYS; -namespace CleanMachine.BLL +namespace CleanMachine.BLL.SYS { /// /// @@ -23,7 +23,7 @@ namespace CleanMachine.BLL /// /// 存在 /// - public bool Exists(string LanguageControlId) + public bool Exists(int LanguageControlId) { return new LanguageControlDAL().Exists(LanguageControlId); } @@ -31,7 +31,7 @@ namespace CleanMachine.BLL /// /// 添加一个数据 /// - public bool Add(CleanMachine.Model.LanguageControl model) + public bool Add(CleanMachine.Model.SYS.LanguageControl model) { return new LanguageControlDAL().Add(model); } @@ -39,7 +39,7 @@ namespace CleanMachine.BLL /// /// 更新一个数据 /// - public bool Update(CleanMachine.Model.LanguageControl model) + public bool Update(CleanMachine.Model.SYS.LanguageControl model) { return new LanguageControlDAL().Update(model); } @@ -56,7 +56,7 @@ namespace CleanMachine.BLL /// /// 删除一个数据 /// - public bool Delete(string LanguageControlId) + public bool Delete(int LanguageControlId) { return new LanguageControlDAL().Delete(LanguageControlId); } @@ -64,7 +64,7 @@ namespace CleanMachine.BLL /// /// 获得数据列表 /// - public IEnumerable GetList(string strWhere, object Params = null) + public IEnumerable GetList(string strWhere, object Params = null) { return new LanguageControlDAL().GetList(strWhere,Params); } @@ -72,7 +72,7 @@ namespace CleanMachine.BLL /// /// 获取一个对象 /// - public CleanMachine.Model.LanguageControl GetModel(string LanguageControlId) + public CleanMachine.Model.SYS.LanguageControl GetModel(int LanguageControlId) { return new LanguageControlDAL().GetModel(LanguageControlId); } @@ -83,7 +83,7 @@ namespace CleanMachine.BLL /// /// 查询数据 /// - // public IEnumerable GetModelList(RuleGroup rule) + // public IEnumerable GetModelList(RuleGroup rule) // { // return new LanguageControlDAL().GetModelList(rule); // } diff --git a/CleanMachine.BLL/LogBLL.cs b/CleanMachine.BLL/SYS/LogBLL.cs similarity index 73% rename from CleanMachine.BLL/LogBLL.cs rename to CleanMachine.BLL/SYS/LogBLL.cs index daa6591..283ce1c 100644 --- a/CleanMachine.BLL/LogBLL.cs +++ b/CleanMachine.BLL/SYS/LogBLL.cs @@ -1,13 +1,13 @@ //模板信息:{"Template":{"Language":"C#"}} -//输出信息:{"Extension":".cs","FileName":"BLL\\LogBLL"} +//输出信息:{"Extension":".cs","FileName":"BLL\\SYS\\LogBLL"} using System; using System.Text; using System.Linq; using System.Collections.Generic; -using CleanMachine.DAL; +using CleanMachine.DAL.SYS; -namespace CleanMachine.BLL +namespace CleanMachine.BLL.SYS { /// /// @@ -23,7 +23,7 @@ namespace CleanMachine.BLL /// /// 存在 /// - public bool Exists(string SysLogId) + public bool Exists(int SysLogId) { return new LogDAL().Exists(SysLogId); } @@ -31,7 +31,7 @@ namespace CleanMachine.BLL /// /// 添加一个数据 /// - public bool Add(CleanMachine.Model.Log model) + public bool Add(CleanMachine.Model.SYS.Log model) { return new LogDAL().Add(model); } @@ -39,7 +39,7 @@ namespace CleanMachine.BLL /// /// 更新一个数据 /// - public bool Update(CleanMachine.Model.Log model) + public bool Update(CleanMachine.Model.SYS.Log model) { return new LogDAL().Update(model); } @@ -56,7 +56,7 @@ namespace CleanMachine.BLL /// /// 删除一个数据 /// - public bool Delete(string SysLogId) + public bool Delete(int SysLogId) { return new LogDAL().Delete(SysLogId); } @@ -64,7 +64,7 @@ namespace CleanMachine.BLL /// /// 获得数据列表 /// - public IEnumerable GetList(string strWhere, object Params = null) + public IEnumerable GetList(string strWhere, object Params = null) { return new LogDAL().GetList(strWhere,Params); } @@ -72,7 +72,7 @@ namespace CleanMachine.BLL /// /// 获取一个对象 /// - public CleanMachine.Model.Log GetModel(string SysLogId) + public CleanMachine.Model.SYS.Log GetModel(int SysLogId) { return new LogDAL().GetModel(SysLogId); } @@ -83,7 +83,7 @@ namespace CleanMachine.BLL /// /// 查询数据 /// - // public IEnumerable GetModelList(RuleGroup rule) + // public IEnumerable GetModelList(RuleGroup rule) // { // return new LogDAL().GetModelList(rule); // } diff --git a/CleanMachine.BLL/MenuBLL.cs b/CleanMachine.BLL/SYS/MenuBLL.cs similarity index 73% rename from CleanMachine.BLL/MenuBLL.cs rename to CleanMachine.BLL/SYS/MenuBLL.cs index df05ea8..68d65d7 100644 --- a/CleanMachine.BLL/MenuBLL.cs +++ b/CleanMachine.BLL/SYS/MenuBLL.cs @@ -1,13 +1,13 @@ //模板信息:{"Template":{"Language":"C#"}} -//输出信息:{"Extension":".cs","FileName":"BLL\\MenuBLL"} +//输出信息:{"Extension":".cs","FileName":"BLL\\SYS\\MenuBLL"} using System; using System.Text; using System.Linq; using System.Collections.Generic; -using CleanMachine.DAL; +using CleanMachine.DAL.SYS; -namespace CleanMachine.BLL +namespace CleanMachine.BLL.SYS { /// /// @@ -23,7 +23,7 @@ namespace CleanMachine.BLL /// /// 存在 /// - public bool Exists(string MenuId) + public bool Exists(int MenuId) { return new MenuDAL().Exists(MenuId); } @@ -31,7 +31,7 @@ namespace CleanMachine.BLL /// /// 添加一个数据 /// - public bool Add(CleanMachine.Model.Menu model) + public bool Add(CleanMachine.Model.SYS.Menu model) { return new MenuDAL().Add(model); } @@ -39,7 +39,7 @@ namespace CleanMachine.BLL /// /// 更新一个数据 /// - public bool Update(CleanMachine.Model.Menu model) + public bool Update(CleanMachine.Model.SYS.Menu model) { return new MenuDAL().Update(model); } @@ -56,7 +56,7 @@ namespace CleanMachine.BLL /// /// 删除一个数据 /// - public bool Delete(string MenuId) + public bool Delete(int MenuId) { return new MenuDAL().Delete(MenuId); } @@ -64,7 +64,7 @@ namespace CleanMachine.BLL /// /// 获得数据列表 /// - public IEnumerable GetList(string strWhere, object Params = null) + public IEnumerable GetList(string strWhere, object Params = null) { return new MenuDAL().GetList(strWhere,Params); } @@ -72,7 +72,7 @@ namespace CleanMachine.BLL /// /// 获取一个对象 /// - public CleanMachine.Model.Menu GetModel(string MenuId) + public CleanMachine.Model.SYS.Menu GetModel(int MenuId) { return new MenuDAL().GetModel(MenuId); } @@ -83,7 +83,7 @@ namespace CleanMachine.BLL /// /// 查询数据 /// - // public IEnumerable GetModelList(RuleGroup rule) + // public IEnumerable GetModelList(RuleGroup rule) // { // return new MenuDAL().GetModelList(rule); // } diff --git a/CleanMachine.BLL/ParameterBLL.cs b/CleanMachine.BLL/SYS/ParameterBLL.cs similarity index 72% rename from CleanMachine.BLL/ParameterBLL.cs rename to CleanMachine.BLL/SYS/ParameterBLL.cs index 57a5fcc..7adade3 100644 --- a/CleanMachine.BLL/ParameterBLL.cs +++ b/CleanMachine.BLL/SYS/ParameterBLL.cs @@ -1,13 +1,13 @@ //模板信息:{"Template":{"Language":"C#"}} -//输出信息:{"Extension":".cs","FileName":"BLL\\ParameterBLL"} +//输出信息:{"Extension":".cs","FileName":"BLL\\SYS\\ParameterBLL"} using System; using System.Text; using System.Linq; using System.Collections.Generic; -using CleanMachine.DAL; +using CleanMachine.DAL.SYS; -namespace CleanMachine.BLL +namespace CleanMachine.BLL.SYS { /// /// @@ -23,7 +23,7 @@ namespace CleanMachine.BLL /// /// 存在 /// - public bool Exists(string ParameterId) + public bool Exists(int ParameterId) { return new ParameterDAL().Exists(ParameterId); } @@ -31,7 +31,7 @@ namespace CleanMachine.BLL /// /// 添加一个数据 /// - public bool Add(CleanMachine.Model.Parameter model) + public bool Add(CleanMachine.Model.SYS.Parameter model) { return new ParameterDAL().Add(model); } @@ -39,7 +39,7 @@ namespace CleanMachine.BLL /// /// 更新一个数据 /// - public bool Update(CleanMachine.Model.Parameter model) + public bool Update(CleanMachine.Model.SYS.Parameter model) { return new ParameterDAL().Update(model); } @@ -56,7 +56,7 @@ namespace CleanMachine.BLL /// /// 删除一个数据 /// - public bool Delete(string ParameterId) + public bool Delete(int ParameterId) { return new ParameterDAL().Delete(ParameterId); } @@ -64,7 +64,7 @@ namespace CleanMachine.BLL /// /// 获得数据列表 /// - public IEnumerable GetList(string strWhere, object Params = null) + public IEnumerable GetList(string strWhere, object Params = null) { return new ParameterDAL().GetList(strWhere,Params); } @@ -72,7 +72,7 @@ namespace CleanMachine.BLL /// /// 获取一个对象 /// - public CleanMachine.Model.Parameter GetModel(string ParameterId) + public CleanMachine.Model.SYS.Parameter GetModel(int ParameterId) { return new ParameterDAL().GetModel(ParameterId); } @@ -83,7 +83,7 @@ namespace CleanMachine.BLL /// /// 查询数据 /// - // public IEnumerable GetModelList(RuleGroup rule) + // public IEnumerable GetModelList(RuleGroup rule) // { // return new ParameterDAL().GetModelList(rule); // } diff --git a/CleanMachine.BLL/RoleBLL.cs b/CleanMachine.BLL/SYS/RoleBLL.cs similarity index 73% rename from CleanMachine.BLL/RoleBLL.cs rename to CleanMachine.BLL/SYS/RoleBLL.cs index 5e41376..824a2b9 100644 --- a/CleanMachine.BLL/RoleBLL.cs +++ b/CleanMachine.BLL/SYS/RoleBLL.cs @@ -1,13 +1,13 @@ //模板信息:{"Template":{"Language":"C#"}} -//输出信息:{"Extension":".cs","FileName":"BLL\\RoleBLL"} +//输出信息:{"Extension":".cs","FileName":"BLL\\SYS\\RoleBLL"} using System; using System.Text; using System.Linq; using System.Collections.Generic; -using CleanMachine.DAL; +using CleanMachine.DAL.SYS; -namespace CleanMachine.BLL +namespace CleanMachine.BLL.SYS { /// /// @@ -23,7 +23,7 @@ namespace CleanMachine.BLL /// /// 存在 /// - public bool Exists(string RoleId) + public bool Exists(int RoleId) { return new RoleDAL().Exists(RoleId); } @@ -31,7 +31,7 @@ namespace CleanMachine.BLL /// /// 添加一个数据 /// - public bool Add(CleanMachine.Model.Role model) + public bool Add(CleanMachine.Model.SYS.Role model) { return new RoleDAL().Add(model); } @@ -39,7 +39,7 @@ namespace CleanMachine.BLL /// /// 更新一个数据 /// - public bool Update(CleanMachine.Model.Role model) + public bool Update(CleanMachine.Model.SYS.Role model) { return new RoleDAL().Update(model); } @@ -56,7 +56,7 @@ namespace CleanMachine.BLL /// /// 删除一个数据 /// - public bool Delete(string RoleId) + public bool Delete(int RoleId) { return new RoleDAL().Delete(RoleId); } @@ -64,7 +64,7 @@ namespace CleanMachine.BLL /// /// 获得数据列表 /// - public IEnumerable GetList(string strWhere, object Params = null) + public IEnumerable GetList(string strWhere, object Params = null) { return new RoleDAL().GetList(strWhere,Params); } @@ -72,7 +72,7 @@ namespace CleanMachine.BLL /// /// 获取一个对象 /// - public CleanMachine.Model.Role GetModel(string RoleId) + public CleanMachine.Model.SYS.Role GetModel(int RoleId) { return new RoleDAL().GetModel(RoleId); } @@ -83,7 +83,7 @@ namespace CleanMachine.BLL /// /// 查询数据 /// - // public IEnumerable GetModelList(RuleGroup rule) + // public IEnumerable GetModelList(RuleGroup rule) // { // return new RoleDAL().GetModelList(rule); // } diff --git a/CleanMachine.BLL/RoleMenuPermissionBLL.cs b/CleanMachine.BLL/SYS/RoleMenuPermissionBLL.cs similarity index 71% rename from CleanMachine.BLL/RoleMenuPermissionBLL.cs rename to CleanMachine.BLL/SYS/RoleMenuPermissionBLL.cs index 4377e88..6e0e566 100644 --- a/CleanMachine.BLL/RoleMenuPermissionBLL.cs +++ b/CleanMachine.BLL/SYS/RoleMenuPermissionBLL.cs @@ -1,13 +1,13 @@ //模板信息:{"Template":{"Language":"C#"}} -//输出信息:{"Extension":".cs","FileName":"BLL\\RoleMenuPermissionBLL"} +//输出信息:{"Extension":".cs","FileName":"BLL\\SYS\\RoleMenuPermissionBLL"} using System; using System.Text; using System.Linq; using System.Collections.Generic; -using CleanMachine.DAL; +using CleanMachine.DAL.SYS; -namespace CleanMachine.BLL +namespace CleanMachine.BLL.SYS { /// /// @@ -23,7 +23,7 @@ namespace CleanMachine.BLL /// /// 存在 /// - public bool Exists(string RoleMenuPermissionId) + public bool Exists(int RoleMenuPermissionId) { return new RoleMenuPermissionDAL().Exists(RoleMenuPermissionId); } @@ -31,7 +31,7 @@ namespace CleanMachine.BLL /// /// 添加一个数据 /// - public bool Add(CleanMachine.Model.RoleMenuPermission model) + public bool Add(CleanMachine.Model.SYS.RoleMenuPermission model) { return new RoleMenuPermissionDAL().Add(model); } @@ -39,7 +39,7 @@ namespace CleanMachine.BLL /// /// 更新一个数据 /// - public bool Update(CleanMachine.Model.RoleMenuPermission model) + public bool Update(CleanMachine.Model.SYS.RoleMenuPermission model) { return new RoleMenuPermissionDAL().Update(model); } @@ -56,7 +56,7 @@ namespace CleanMachine.BLL /// /// 删除一个数据 /// - public bool Delete(string RoleMenuPermissionId) + public bool Delete(int RoleMenuPermissionId) { return new RoleMenuPermissionDAL().Delete(RoleMenuPermissionId); } @@ -64,7 +64,7 @@ namespace CleanMachine.BLL /// /// 获得数据列表 /// - public IEnumerable GetList(string strWhere, object Params = null) + public IEnumerable GetList(string strWhere, object Params = null) { return new RoleMenuPermissionDAL().GetList(strWhere,Params); } @@ -72,7 +72,7 @@ namespace CleanMachine.BLL /// /// 获取一个对象 /// - public CleanMachine.Model.RoleMenuPermission GetModel(string RoleMenuPermissionId) + public CleanMachine.Model.SYS.RoleMenuPermission GetModel(int RoleMenuPermissionId) { return new RoleMenuPermissionDAL().GetModel(RoleMenuPermissionId); } @@ -83,7 +83,7 @@ namespace CleanMachine.BLL /// /// 查询数据 /// - // public IEnumerable GetModelList(RuleGroup rule) + // public IEnumerable GetModelList(RuleGroup rule) // { // return new RoleMenuPermissionDAL().GetModelList(rule); // } diff --git a/CleanMachine.BLL/ScheduleDtlBLL.cs b/CleanMachine.BLL/SYS/ScheduleDtlBLL.cs similarity index 72% rename from CleanMachine.BLL/ScheduleDtlBLL.cs rename to CleanMachine.BLL/SYS/ScheduleDtlBLL.cs index b6d107b..b892386 100644 --- a/CleanMachine.BLL/ScheduleDtlBLL.cs +++ b/CleanMachine.BLL/SYS/ScheduleDtlBLL.cs @@ -1,13 +1,13 @@ //模板信息:{"Template":{"Language":"C#"}} -//输出信息:{"Extension":".cs","FileName":"BLL\\ScheduleDtlBLL"} +//输出信息:{"Extension":".cs","FileName":"BLL\\SYS\\ScheduleDtlBLL"} using System; using System.Text; using System.Linq; using System.Collections.Generic; -using CleanMachine.DAL; +using CleanMachine.DAL.SYS; -namespace CleanMachine.BLL +namespace CleanMachine.BLL.SYS { /// /// @@ -23,7 +23,7 @@ namespace CleanMachine.BLL /// /// 存在 /// - public bool Exists(string ScheduleDtlId) + public bool Exists(int ScheduleDtlId) { return new ScheduleDtlDAL().Exists(ScheduleDtlId); } @@ -31,7 +31,7 @@ namespace CleanMachine.BLL /// /// 添加一个数据 /// - public bool Add(CleanMachine.Model.ScheduleDtl model) + public bool Add(CleanMachine.Model.SYS.ScheduleDtl model) { return new ScheduleDtlDAL().Add(model); } @@ -39,7 +39,7 @@ namespace CleanMachine.BLL /// /// 更新一个数据 /// - public bool Update(CleanMachine.Model.ScheduleDtl model) + public bool Update(CleanMachine.Model.SYS.ScheduleDtl model) { return new ScheduleDtlDAL().Update(model); } @@ -56,7 +56,7 @@ namespace CleanMachine.BLL /// /// 删除一个数据 /// - public bool Delete(string ScheduleDtlId) + public bool Delete(int ScheduleDtlId) { return new ScheduleDtlDAL().Delete(ScheduleDtlId); } @@ -64,7 +64,7 @@ namespace CleanMachine.BLL /// /// 获得数据列表 /// - public IEnumerable GetList(string strWhere, object Params = null) + public IEnumerable GetList(string strWhere, object Params = null) { return new ScheduleDtlDAL().GetList(strWhere,Params); } @@ -72,7 +72,7 @@ namespace CleanMachine.BLL /// /// 获取一个对象 /// - public CleanMachine.Model.ScheduleDtl GetModel(string ScheduleDtlId) + public CleanMachine.Model.SYS.ScheduleDtl GetModel(int ScheduleDtlId) { return new ScheduleDtlDAL().GetModel(ScheduleDtlId); } @@ -83,7 +83,7 @@ namespace CleanMachine.BLL /// /// 查询数据 /// - // public IEnumerable GetModelList(RuleGroup rule) + // public IEnumerable GetModelList(RuleGroup rule) // { // return new ScheduleDtlDAL().GetModelList(rule); // } diff --git a/CleanMachine.BLL/UserBLL.cs b/CleanMachine.BLL/SYS/UserBLL.cs similarity index 57% rename from CleanMachine.BLL/UserBLL.cs rename to CleanMachine.BLL/SYS/UserBLL.cs index 3f59c20..6f0ebcd 100644 --- a/CleanMachine.BLL/UserBLL.cs +++ b/CleanMachine.BLL/SYS/UserBLL.cs @@ -1,13 +1,13 @@ //模板信息:{"Template":{"Language":"C#"}} -//输出信息:{"Extension":".cs","FileName":"BLL\\UserBLL"} +//输出信息:{"Extension":".cs","FileName":"BLL\\SYS\\UserBLL"} using System; using System.Text; using System.Linq; using System.Collections.Generic; -using CleanMachine.DAL; +using CleanMachine.DAL.SYS; -namespace CleanMachine.BLL +namespace CleanMachine.BLL.SYS { /// /// @@ -23,7 +23,7 @@ namespace CleanMachine.BLL /// /// 存在 /// - public bool Exists(string UserId) + public bool Exists(int UserId) { return new UserDAL().Exists(UserId); } @@ -31,7 +31,7 @@ namespace CleanMachine.BLL /// /// 添加一个数据 /// - public bool Add(CleanMachine.Model.User model) + public bool Add(CleanMachine.Model.SYS.User model) { return new UserDAL().Add(model); } @@ -39,7 +39,7 @@ namespace CleanMachine.BLL /// /// 更新一个数据 /// - public bool Update(CleanMachine.Model.User model) + public bool Update(CleanMachine.Model.SYS.User model) { return new UserDAL().Update(model); } @@ -56,7 +56,7 @@ namespace CleanMachine.BLL /// /// 删除一个数据 /// - public bool Delete(string UserId) + public bool Delete(int UserId) { return new UserDAL().Delete(UserId); } @@ -64,7 +64,7 @@ namespace CleanMachine.BLL /// /// 获得数据列表 /// - public IEnumerable GetList(string strWhere, object Params = null) + public IEnumerable GetList(string strWhere, object Params = null) { return new UserDAL().GetList(strWhere,Params); } @@ -72,18 +72,40 @@ namespace CleanMachine.BLL /// /// 获取一个对象 /// - public CleanMachine.Model.User GetModel(string UserId) + public CleanMachine.Model.SYS.User GetModel(int UserId) { return new UserDAL().GetModel(UserId); } #endregion + + /// + /// 删除一个数据 + /// + public bool Delete(string UserCode) + { + return new UserDAL().Delete(UserCode); + } + /// + /// 获取一个对象 + /// + public CleanMachine.Model.SYS.User GetModel(string UserCode) + { + return new UserDAL().GetModel(UserCode); + } + /// + /// 存在 + /// + public bool Exists(string UserCode) + { + return new UserDAL().Exists(UserCode); + } /// /// 查询数据 /// - // public IEnumerable GetModelList(RuleGroup rule) + // public IEnumerable GetModelList(RuleGroup rule) // { // return new UserDAL().GetModelList(rule); // } diff --git a/CleanMachine.BLL/ZBK/WorkingPalletBLL.cs b/CleanMachine.BLL/ZBK/WorkingPalletBLL.cs new file mode 100644 index 0000000..47b8251 --- /dev/null +++ b/CleanMachine.BLL/ZBK/WorkingPalletBLL.cs @@ -0,0 +1,91 @@ + +//模板信息:{"Template":{"Language":"C#"}} +//输出信息:{"Extension":".cs","FileName":"BLL\\ZBK\\WorkingPalletBLL"} +using System; +using System.Text; +using System.Linq; +using System.Collections.Generic; +using CleanMachine.DAL.ZBK; + +namespace CleanMachine.BLL.ZBK +{ + /// + /// + /// + public class WorkingPalletBLL + { + + public WorkingPalletBLL() + { + + } + #region 一般方法 + /// + /// 存在 + /// + public bool Exists(int WorkingPalletId) + { + return new WorkingPalletDAL().Exists(WorkingPalletId); + } + + /// + /// 添加一个数据 + /// + public bool Add(CleanMachine.Model.ZBK.WorkingPallet model) + { + return new WorkingPalletDAL().Add(model); + } + + /// + /// 更新一个数据 + /// + public bool Update(CleanMachine.Model.ZBK.WorkingPallet model) + { + return new WorkingPalletDAL().Update(model); + } + + + /// + /// 删除一个数据 + /// + public bool Delete(string strWhere, object Params = null) + { + return new WorkingPalletDAL().Delete(strWhere,Params); + } + + /// + /// 删除一个数据 + /// + public bool Delete(int WorkingPalletId) + { + return new WorkingPalletDAL().Delete(WorkingPalletId); + } + + /// + /// 获得数据列表 + /// + public IEnumerable GetList(string strWhere, object Params = null) + { + return new WorkingPalletDAL().GetList(strWhere,Params); + } + + /// + /// 获取一个对象 + /// + public CleanMachine.Model.ZBK.WorkingPallet GetModel(int WorkingPalletId) + { + return new WorkingPalletDAL().GetModel(WorkingPalletId); + } + #endregion + + + + /// + /// 查询数据 + /// + // public IEnumerable GetModelList(RuleGroup rule) + // { + // return new WorkingPalletDAL().GetModelList(rule); + // } + } +} diff --git a/CleanMachine.BLL/ZBK/WorkingPalletDtlBLL.cs b/CleanMachine.BLL/ZBK/WorkingPalletDtlBLL.cs new file mode 100644 index 0000000..4ca8bd8 --- /dev/null +++ b/CleanMachine.BLL/ZBK/WorkingPalletDtlBLL.cs @@ -0,0 +1,91 @@ + +//模板信息:{"Template":{"Language":"C#"}} +//输出信息:{"Extension":".cs","FileName":"BLL\\ZBK\\WorkingPalletDtlBLL"} +using System; +using System.Text; +using System.Linq; +using System.Collections.Generic; +using CleanMachine.DAL.ZBK; + +namespace CleanMachine.BLL.ZBK +{ + /// + /// + /// + public class WorkingPalletDtlBLL + { + + public WorkingPalletDtlBLL() + { + + } + #region 一般方法 + /// + /// 存在 + /// + public bool Exists(int WorkingPalletDtlId) + { + return new WorkingPalletDtlDAL().Exists(WorkingPalletDtlId); + } + + /// + /// 添加一个数据 + /// + public bool Add(CleanMachine.Model.ZBK.WorkingPalletDtl model) + { + return new WorkingPalletDtlDAL().Add(model); + } + + /// + /// 更新一个数据 + /// + public bool Update(CleanMachine.Model.ZBK.WorkingPalletDtl model) + { + return new WorkingPalletDtlDAL().Update(model); + } + + + /// + /// 删除一个数据 + /// + public bool Delete(string strWhere, object Params = null) + { + return new WorkingPalletDtlDAL().Delete(strWhere,Params); + } + + /// + /// 删除一个数据 + /// + public bool Delete(int WorkingPalletDtlId) + { + return new WorkingPalletDtlDAL().Delete(WorkingPalletDtlId); + } + + /// + /// 获得数据列表 + /// + public IEnumerable GetList(string strWhere, object Params = null) + { + return new WorkingPalletDtlDAL().GetList(strWhere,Params); + } + + /// + /// 获取一个对象 + /// + public CleanMachine.Model.ZBK.WorkingPalletDtl GetModel(int WorkingPalletDtlId) + { + return new WorkingPalletDtlDAL().GetModel(WorkingPalletDtlId); + } + #endregion + + + + /// + /// 查询数据 + /// + // public IEnumerable GetModelList(RuleGroup rule) + // { + // return new WorkingPalletDtlDAL().GetModelList(rule); + // } + } +} diff --git a/CleanMachine.DAL/CleanModeDAL.cs b/CleanMachine.DAL/BAS/CleanModeDAL.cs similarity index 82% rename from CleanMachine.DAL/CleanModeDAL.cs rename to CleanMachine.DAL/BAS/CleanModeDAL.cs index 91d5ec2..3197fc9 100644 --- a/CleanMachine.DAL/CleanModeDAL.cs +++ b/CleanMachine.DAL/BAS/CleanModeDAL.cs @@ -1,6 +1,6 @@ //模板信息:{"Template":{"Language":"C#"}} -//输出信息:{"Extension":".cs","FileName":"DAL\\CleanModeDAL"} +//输出信息:{"Extension":".cs","FileName":"DAL\\BAS\\CleanModeDAL"} using System; using System.Text; using System.Linq; @@ -8,7 +8,7 @@ using System.Collections.Generic; using LeadDataBaseUtility; -namespace CleanMachine.DAL +namespace CleanMachine.DAL.BAS { /// /// @@ -26,7 +26,7 @@ namespace CleanMachine.DAL /// /// 存在 /// - public bool Exists(string CleanModeId) + public bool Exists(int CleanModeId) { string strSql = @"SELECT count(1) from BAS_CLEAN_MODE WHERE CLEAN_MODE_ID=@CleanModeId "; return LeadDbHelperSQLite.ExecuteScalar(strSql, new { CleanModeId }) > 0; @@ -35,7 +35,7 @@ namespace CleanMachine.DAL /// /// 添加一个数据 /// - public bool Add(CleanMachine.Model.CleanMode model) + public bool Add(CleanMachine.Model.BAS.CleanMode model) { string strSql = $@"INSERT INTO BAS_CLEAN_MODE (CLEAN_MODE_ID,CLEAN_MODE_CODE,CLEAN_MODE_NAME,USED_FLAG,DEL_FLAG,CREATE_BY,CREATE_TIME,UPDATE_BY,UPDATE_TIME,DATA_VERSION,REMARKS1,REMARKS2,REMARKS3,REMARKS4,REMARKS5) @@ -47,7 +47,7 @@ namespace CleanMachine.DAL /// /// 更新一个数据 /// - public bool Update(CleanMachine.Model.CleanMode model) + public bool Update(CleanMachine.Model.BAS.CleanMode model) { string strSql = $@"UPDATE BAS_CLEAN_MODE SET CLEAN_MODE_CODE=@CleanModeCode,CLEAN_MODE_NAME=@CleanModeName,USED_FLAG=@UsedFlag,DEL_FLAG=@DelFlag,CREATE_BY=@CreateBy,CREATE_TIME=@CreateTime,UPDATE_BY=@UpdateBy,UPDATE_TIME=@UpdateTime,DATA_VERSION=@DataVersion,REMARKS1=@Remarks1,REMARKS2=@Remarks2,REMARKS3=@Remarks3,REMARKS4=@Remarks4,REMARKS5=@Remarks5 @@ -72,7 +72,7 @@ namespace CleanMachine.DAL /// /// 删除一个数据 /// - public bool Delete(string CleanModeId) + public bool Delete(int CleanModeId) { return this.Delete("CLEAN_MODE_ID=@CleanModeId ", new { CleanModeId }) ; } @@ -80,20 +80,20 @@ namespace CleanMachine.DAL /// /// 获得数据列表 /// - public IEnumerable GetList(string strWhere, object Params = null) + public IEnumerable GetList(string strWhere, object Params = null) { string strSql = $@"SELECT * FROM BAS_CLEAN_MODE "; if (strWhere.Trim() != "") { strSql += $" WHERE {strWhere}"; } - return LeadDbHelperSQLite.Query(strSql, Params); + return LeadDbHelperSQLite.Query(strSql, Params); } /// /// 获取一个对象 /// - public CleanMachine.Model.CleanMode GetModel(string CleanModeId) + public CleanMachine.Model.BAS.CleanMode GetModel(int CleanModeId) { return this.GetList("CLEAN_MODE_ID=@CleanModeId", new { CleanModeId }).FirstOrDefault(); } @@ -103,7 +103,7 @@ namespace CleanMachine.DAL /// /// 查询数据 /// - // public IEnumerable GetModelList(RuleGroup rule) + // public IEnumerable GetModelList(RuleGroup rule) // { // var tuper = _dbhelper.BuildRuleGroupStr(rule); // return this.GetList(tuper.where, tuper.Param); diff --git a/CleanMachine.DAL/ContaminationDtlDAL.cs b/CleanMachine.DAL/BAS/ContaminationDtlDAL.cs similarity index 82% rename from CleanMachine.DAL/ContaminationDtlDAL.cs rename to CleanMachine.DAL/BAS/ContaminationDtlDAL.cs index 08aa32a..fa33a88 100644 --- a/CleanMachine.DAL/ContaminationDtlDAL.cs +++ b/CleanMachine.DAL/BAS/ContaminationDtlDAL.cs @@ -1,6 +1,6 @@ //模板信息:{"Template":{"Language":"C#"}} -//输出信息:{"Extension":".cs","FileName":"DAL\\ContaminationDtlDAL"} +//输出信息:{"Extension":".cs","FileName":"DAL\\BAS\\ContaminationDtlDAL"} using System; using System.Text; using System.Linq; @@ -8,7 +8,7 @@ using System.Collections.Generic; using LeadDataBaseUtility; -namespace CleanMachine.DAL +namespace CleanMachine.DAL.BAS { /// /// @@ -26,7 +26,7 @@ namespace CleanMachine.DAL /// /// 存在 /// - public bool Exists(string ContaminationDtlId) + public bool Exists(int ContaminationDtlId) { string strSql = @"SELECT count(1) from BAS_CONTAMINATION_DTL WHERE CONTAMINATION_DTL_ID=@ContaminationDtlId "; return LeadDbHelperSQLite.ExecuteScalar(strSql, new { ContaminationDtlId }) > 0; @@ -35,7 +35,7 @@ namespace CleanMachine.DAL /// /// 添加一个数据 /// - public bool Add(CleanMachine.Model.ContaminationDtl model) + public bool Add(CleanMachine.Model.BAS.ContaminationDtl model) { string strSql = $@"INSERT INTO BAS_CONTAMINATION_DTL (CONTAMINATION_DTL_ID,CONTAMINATION_TYPE_CODE,CONTAMINATION_DTL_CODE,CONTAMINATION_DTL_NAME,USED_FLAG,DEL_FLAG,CREATE_BY,CREATE_TIME,UPDATE_BY,UPDATE_TIME,DATA_VERSION,REMARKS1,REMARKS2,REMARKS3,REMARKS4,REMARKS5) @@ -47,7 +47,7 @@ namespace CleanMachine.DAL /// /// 更新一个数据 /// - public bool Update(CleanMachine.Model.ContaminationDtl model) + public bool Update(CleanMachine.Model.BAS.ContaminationDtl model) { string strSql = $@"UPDATE BAS_CONTAMINATION_DTL SET CONTAMINATION_TYPE_CODE=@ContaminationTypeCode,CONTAMINATION_DTL_CODE=@ContaminationDtlCode,CONTAMINATION_DTL_NAME=@ContaminationDtlName,USED_FLAG=@UsedFlag,DEL_FLAG=@DelFlag,CREATE_BY=@CreateBy,CREATE_TIME=@CreateTime,UPDATE_BY=@UpdateBy,UPDATE_TIME=@UpdateTime,DATA_VERSION=@DataVersion,REMARKS1=@Remarks1,REMARKS2=@Remarks2,REMARKS3=@Remarks3,REMARKS4=@Remarks4,REMARKS5=@Remarks5 @@ -72,7 +72,7 @@ namespace CleanMachine.DAL /// /// 删除一个数据 /// - public bool Delete(string ContaminationDtlId) + public bool Delete(int ContaminationDtlId) { return this.Delete("CONTAMINATION_DTL_ID=@ContaminationDtlId ", new { ContaminationDtlId }) ; } @@ -80,20 +80,20 @@ namespace CleanMachine.DAL /// /// 获得数据列表 /// - public IEnumerable GetList(string strWhere, object Params = null) + public IEnumerable GetList(string strWhere, object Params = null) { string strSql = $@"SELECT * FROM BAS_CONTAMINATION_DTL "; if (strWhere.Trim() != "") { strSql += $" WHERE {strWhere}"; } - return LeadDbHelperSQLite.Query(strSql, Params); + return LeadDbHelperSQLite.Query(strSql, Params); } /// /// 获取一个对象 /// - public CleanMachine.Model.ContaminationDtl GetModel(string ContaminationDtlId) + public CleanMachine.Model.BAS.ContaminationDtl GetModel(int ContaminationDtlId) { return this.GetList("CONTAMINATION_DTL_ID=@ContaminationDtlId", new { ContaminationDtlId }).FirstOrDefault(); } @@ -103,7 +103,7 @@ namespace CleanMachine.DAL /// /// 查询数据 /// - // public IEnumerable GetModelList(RuleGroup rule) + // public IEnumerable GetModelList(RuleGroup rule) // { // var tuper = _dbhelper.BuildRuleGroupStr(rule); // return this.GetList(tuper.where, tuper.Param); diff --git a/CleanMachine.DAL/ContaminationTypeDAL.cs b/CleanMachine.DAL/BAS/ContaminationTypeDAL.cs similarity index 82% rename from CleanMachine.DAL/ContaminationTypeDAL.cs rename to CleanMachine.DAL/BAS/ContaminationTypeDAL.cs index befef6d..b3089fc 100644 --- a/CleanMachine.DAL/ContaminationTypeDAL.cs +++ b/CleanMachine.DAL/BAS/ContaminationTypeDAL.cs @@ -1,6 +1,6 @@ //模板信息:{"Template":{"Language":"C#"}} -//输出信息:{"Extension":".cs","FileName":"DAL\\ContaminationTypeDAL"} +//输出信息:{"Extension":".cs","FileName":"DAL\\BAS\\ContaminationTypeDAL"} using System; using System.Text; using System.Linq; @@ -8,7 +8,7 @@ using System.Collections.Generic; using LeadDataBaseUtility; -namespace CleanMachine.DAL +namespace CleanMachine.DAL.BAS { /// /// @@ -26,7 +26,7 @@ namespace CleanMachine.DAL /// /// 存在 /// - public bool Exists(string ContaminationTypeId) + public bool Exists(int ContaminationTypeId) { string strSql = @"SELECT count(1) from BAS_CONTAMINATION_TYPE WHERE CONTAMINATION_TYPE_ID=@ContaminationTypeId "; return LeadDbHelperSQLite.ExecuteScalar(strSql, new { ContaminationTypeId }) > 0; @@ -35,7 +35,7 @@ namespace CleanMachine.DAL /// /// 添加一个数据 /// - public bool Add(CleanMachine.Model.ContaminationType model) + public bool Add(CleanMachine.Model.BAS.ContaminationType model) { string strSql = $@"INSERT INTO BAS_CONTAMINATION_TYPE (CONTAMINATION_TYPE_ID,CONTAMINATION_TYPE_CODE,CONTAMINATION_TYPE_NAME,CLEAN_MODE_CODE,USED_FLAG,DEL_FLAG,CREATE_BY,CREATE_TIME,UPDATE_BY,UPDATE_TIME,DATA_VERSION,REMARKS1,REMARKS2,REMARKS3,REMARKS4,REMARKS5) @@ -47,7 +47,7 @@ namespace CleanMachine.DAL /// /// 更新一个数据 /// - public bool Update(CleanMachine.Model.ContaminationType model) + public bool Update(CleanMachine.Model.BAS.ContaminationType model) { string strSql = $@"UPDATE BAS_CONTAMINATION_TYPE SET CONTAMINATION_TYPE_CODE=@ContaminationTypeCode,CONTAMINATION_TYPE_NAME=@ContaminationTypeName,CLEAN_MODE_CODE=@CleanModeCode,USED_FLAG=@UsedFlag,DEL_FLAG=@DelFlag,CREATE_BY=@CreateBy,CREATE_TIME=@CreateTime,UPDATE_BY=@UpdateBy,UPDATE_TIME=@UpdateTime,DATA_VERSION=@DataVersion,REMARKS1=@Remarks1,REMARKS2=@Remarks2,REMARKS3=@Remarks3,REMARKS4=@Remarks4,REMARKS5=@Remarks5 @@ -72,7 +72,7 @@ namespace CleanMachine.DAL /// /// 删除一个数据 /// - public bool Delete(string ContaminationTypeId) + public bool Delete(int ContaminationTypeId) { return this.Delete("CONTAMINATION_TYPE_ID=@ContaminationTypeId ", new { ContaminationTypeId }) ; } @@ -80,20 +80,20 @@ namespace CleanMachine.DAL /// /// 获得数据列表 /// - public IEnumerable GetList(string strWhere, object Params = null) + public IEnumerable GetList(string strWhere, object Params = null) { string strSql = $@"SELECT * FROM BAS_CONTAMINATION_TYPE "; if (strWhere.Trim() != "") { strSql += $" WHERE {strWhere}"; } - return LeadDbHelperSQLite.Query(strSql, Params); + return LeadDbHelperSQLite.Query(strSql, Params); } /// /// 获取一个对象 /// - public CleanMachine.Model.ContaminationType GetModel(string ContaminationTypeId) + public CleanMachine.Model.BAS.ContaminationType GetModel(int ContaminationTypeId) { return this.GetList("CONTAMINATION_TYPE_ID=@ContaminationTypeId", new { ContaminationTypeId }).FirstOrDefault(); } @@ -103,7 +103,7 @@ namespace CleanMachine.DAL /// /// 查询数据 /// - // public IEnumerable GetModelList(RuleGroup rule) + // public IEnumerable GetModelList(RuleGroup rule) // { // var tuper = _dbhelper.BuildRuleGroupStr(rule); // return this.GetList(tuper.where, tuper.Param); diff --git a/CleanMachine.DAL/PlcItemDAL.cs b/CleanMachine.DAL/BAS/PlcItemDAL.cs similarity index 84% rename from CleanMachine.DAL/PlcItemDAL.cs rename to CleanMachine.DAL/BAS/PlcItemDAL.cs index e221392..a836f80 100644 --- a/CleanMachine.DAL/PlcItemDAL.cs +++ b/CleanMachine.DAL/BAS/PlcItemDAL.cs @@ -1,6 +1,6 @@ //模板信息:{"Template":{"Language":"C#"}} -//输出信息:{"Extension":".cs","FileName":"DAL\\PlcItemDAL"} +//输出信息:{"Extension":".cs","FileName":"DAL\\BAS\\PlcItemDAL"} using System; using System.Text; using System.Linq; @@ -8,7 +8,7 @@ using System.Collections.Generic; using LeadDataBaseUtility; -namespace CleanMachine.DAL +namespace CleanMachine.DAL.BAS { /// /// @@ -26,7 +26,7 @@ namespace CleanMachine.DAL /// /// 存在 /// - public bool Exists(string PlcItemId) + public bool Exists(int PlcItemId) { string strSql = @"SELECT count(1) from BAS_PLC_ITEM WHERE PLC_ITEM_ID=@PlcItemId "; return LeadDbHelperSQLite.ExecuteScalar(strSql, new { PlcItemId }) > 0; @@ -35,7 +35,7 @@ namespace CleanMachine.DAL /// /// 添加一个数据 /// - public bool Add(CleanMachine.Model.PlcItem model) + public bool Add(CleanMachine.Model.BAS.PlcItem model) { string strSql = $@"INSERT INTO BAS_PLC_ITEM (PLC_ITEM_ID,PLC_ITEM_CODE,PLC_ITEM_NAME,PLC_ITEM_TYPE,PLC_ITEM_DATA_TYPE,PLC_ITEM_DATA_LENGTH,PLC_ITEM_PRI_ADDRESS,PLC_ITEM_MODBUS_ADDRESS,PLC_ITEM_DEVIATION_ADDRESS,PLC_ITEM_VALUE,USED_FLAG,DEL_FLAG,CREATE_BY,CREATE_TIME,UPDATE_BY,UPDATE_TIME,DATA_VERSION,REMARKS1,REMARKS2,REMARKS3,REMARKS4,REMARKS5) @@ -47,7 +47,7 @@ namespace CleanMachine.DAL /// /// 更新一个数据 /// - public bool Update(CleanMachine.Model.PlcItem model) + public bool Update(CleanMachine.Model.BAS.PlcItem model) { string strSql = $@"UPDATE BAS_PLC_ITEM SET PLC_ITEM_CODE=@PlcItemCode,PLC_ITEM_NAME=@PlcItemName,PLC_ITEM_TYPE=@PlcItemType,PLC_ITEM_DATA_TYPE=@PlcItemDataType,PLC_ITEM_DATA_LENGTH=@PlcItemDataLength,PLC_ITEM_PRI_ADDRESS=@PlcItemPriAddress,PLC_ITEM_MODBUS_ADDRESS=@PlcItemModbusAddress,PLC_ITEM_DEVIATION_ADDRESS=@PlcItemDeviationAddress,PLC_ITEM_VALUE=@PlcItemValue,USED_FLAG=@UsedFlag,DEL_FLAG=@DelFlag,CREATE_BY=@CreateBy,CREATE_TIME=@CreateTime,UPDATE_BY=@UpdateBy,UPDATE_TIME=@UpdateTime,DATA_VERSION=@DataVersion,REMARKS1=@Remarks1,REMARKS2=@Remarks2,REMARKS3=@Remarks3,REMARKS4=@Remarks4,REMARKS5=@Remarks5 @@ -72,7 +72,7 @@ namespace CleanMachine.DAL /// /// 删除一个数据 /// - public bool Delete(string PlcItemId) + public bool Delete(int PlcItemId) { return this.Delete("PLC_ITEM_ID=@PlcItemId ", new { PlcItemId }) ; } @@ -80,20 +80,20 @@ namespace CleanMachine.DAL /// /// 获得数据列表 /// - public IEnumerable GetList(string strWhere, object Params = null) + public IEnumerable GetList(string strWhere, object Params = null) { string strSql = $@"SELECT * FROM BAS_PLC_ITEM "; if (strWhere.Trim() != "") { strSql += $" WHERE {strWhere}"; } - return LeadDbHelperSQLite.Query(strSql, Params); + return LeadDbHelperSQLite.Query(strSql, Params); } /// /// 获取一个对象 /// - public CleanMachine.Model.PlcItem GetModel(string PlcItemId) + public CleanMachine.Model.BAS.PlcItem GetModel(int PlcItemId) { return this.GetList("PLC_ITEM_ID=@PlcItemId", new { PlcItemId }).FirstOrDefault(); } @@ -103,7 +103,7 @@ namespace CleanMachine.DAL /// /// 查询数据 /// - // public IEnumerable GetModelList(RuleGroup rule) + // public IEnumerable GetModelList(RuleGroup rule) // { // var tuper = _dbhelper.BuildRuleGroupStr(rule); // return this.GetList(tuper.where, tuper.Param); diff --git a/CleanMachine.DAL/SheetTypeDAL.cs b/CleanMachine.DAL/BAS/SheetTypeDAL.cs similarity index 82% rename from CleanMachine.DAL/SheetTypeDAL.cs rename to CleanMachine.DAL/BAS/SheetTypeDAL.cs index 124806f..2da91c3 100644 --- a/CleanMachine.DAL/SheetTypeDAL.cs +++ b/CleanMachine.DAL/BAS/SheetTypeDAL.cs @@ -1,6 +1,6 @@ //模板信息:{"Template":{"Language":"C#"}} -//输出信息:{"Extension":".cs","FileName":"DAL\\SheetTypeDAL"} +//输出信息:{"Extension":".cs","FileName":"DAL\\BAS\\SheetTypeDAL"} using System; using System.Text; using System.Linq; @@ -8,7 +8,7 @@ using System.Collections.Generic; using LeadDataBaseUtility; -namespace CleanMachine.DAL +namespace CleanMachine.DAL.BAS { /// /// @@ -26,7 +26,7 @@ namespace CleanMachine.DAL /// /// 存在 /// - public bool Exists(string SheetTypeId) + public bool Exists(int SheetTypeId) { string strSql = @"SELECT count(1) from BAS_SHEET_TYPE WHERE SHEET_TYPE_ID=@SheetTypeId "; return LeadDbHelperSQLite.ExecuteScalar(strSql, new { SheetTypeId }) > 0; @@ -35,7 +35,7 @@ namespace CleanMachine.DAL /// /// 添加一个数据 /// - public bool Add(CleanMachine.Model.SheetType model) + public bool Add(CleanMachine.Model.BAS.SheetType model) { string strSql = $@"INSERT INTO BAS_SHEET_TYPE (SHEET_TYPE_ID,SHEET_TYPE_CODE,SHEET_TYPE_NAME,USED_FLAG,DEL_FLAG,CREATE_BY,CREATE_TIME,UPDATE_BY,UPDATE_TIME,DATA_VERSION,REMARKS1,REMARKS2,REMARKS3,REMARKS4,REMARKS5) @@ -47,7 +47,7 @@ namespace CleanMachine.DAL /// /// 更新一个数据 /// - public bool Update(CleanMachine.Model.SheetType model) + public bool Update(CleanMachine.Model.BAS.SheetType model) { string strSql = $@"UPDATE BAS_SHEET_TYPE SET SHEET_TYPE_CODE=@SheetTypeCode,SHEET_TYPE_NAME=@SheetTypeName,USED_FLAG=@UsedFlag,DEL_FLAG=@DelFlag,CREATE_BY=@CreateBy,CREATE_TIME=@CreateTime,UPDATE_BY=@UpdateBy,UPDATE_TIME=@UpdateTime,DATA_VERSION=@DataVersion,REMARKS1=@Remarks1,REMARKS2=@Remarks2,REMARKS3=@Remarks3,REMARKS4=@Remarks4,REMARKS5=@Remarks5 @@ -72,7 +72,7 @@ namespace CleanMachine.DAL /// /// 删除一个数据 /// - public bool Delete(string SheetTypeId) + public bool Delete(int SheetTypeId) { return this.Delete("SHEET_TYPE_ID=@SheetTypeId ", new { SheetTypeId }) ; } @@ -80,20 +80,20 @@ namespace CleanMachine.DAL /// /// 获得数据列表 /// - public IEnumerable GetList(string strWhere, object Params = null) + public IEnumerable GetList(string strWhere, object Params = null) { string strSql = $@"SELECT * FROM BAS_SHEET_TYPE "; if (strWhere.Trim() != "") { strSql += $" WHERE {strWhere}"; } - return LeadDbHelperSQLite.Query(strSql, Params); + return LeadDbHelperSQLite.Query(strSql, Params); } /// /// 获取一个对象 /// - public CleanMachine.Model.SheetType GetModel(string SheetTypeId) + public CleanMachine.Model.BAS.SheetType GetModel(int SheetTypeId) { return this.GetList("SHEET_TYPE_ID=@SheetTypeId", new { SheetTypeId }).FirstOrDefault(); } @@ -103,7 +103,7 @@ namespace CleanMachine.DAL /// /// 查询数据 /// - // public IEnumerable GetModelList(RuleGroup rule) + // public IEnumerable GetModelList(RuleGroup rule) // { // var tuper = _dbhelper.BuildRuleGroupStr(rule); // return this.GetList(tuper.where, tuper.Param); diff --git a/CleanMachine.DAL/WarningDAL.cs b/CleanMachine.DAL/BAS/WarningDAL.cs similarity index 83% rename from CleanMachine.DAL/WarningDAL.cs rename to CleanMachine.DAL/BAS/WarningDAL.cs index b93102a..f5655a3 100644 --- a/CleanMachine.DAL/WarningDAL.cs +++ b/CleanMachine.DAL/BAS/WarningDAL.cs @@ -1,6 +1,6 @@ //模板信息:{"Template":{"Language":"C#"}} -//输出信息:{"Extension":".cs","FileName":"DAL\\WarningDAL"} +//输出信息:{"Extension":".cs","FileName":"DAL\\BAS\\WarningDAL"} using System; using System.Text; using System.Linq; @@ -8,7 +8,7 @@ using System.Collections.Generic; using LeadDataBaseUtility; -namespace CleanMachine.DAL +namespace CleanMachine.DAL.BAS { /// /// @@ -26,7 +26,7 @@ namespace CleanMachine.DAL /// /// 存在 /// - public bool Exists(string WarningId) + public bool Exists(int WarningId) { string strSql = @"SELECT count(1) from BAS_WARNING WHERE WARNING_ID=@WarningId "; return LeadDbHelperSQLite.ExecuteScalar(strSql, new { WarningId }) > 0; @@ -35,7 +35,7 @@ namespace CleanMachine.DAL /// /// 添加一个数据 /// - public bool Add(CleanMachine.Model.Warning model) + public bool Add(CleanMachine.Model.BAS.Warning model) { string strSql = $@"INSERT INTO BAS_WARNING (WARNING_ID,WARNING_CODE,WARNING_NAME,PLC_ITEM_CODE,WARNING_TYPE,WARNING_MESSAGE,USED_FLAG,DEL_FLAG,CREATE_BY,CREATE_TIME,UPDATE_BY,UPDATE_TIME,DATA_VERSION,REMARKS1,REMARKS2,REMARKS3,REMARKS4,REMARKS5) @@ -47,7 +47,7 @@ namespace CleanMachine.DAL /// /// 更新一个数据 /// - public bool Update(CleanMachine.Model.Warning model) + public bool Update(CleanMachine.Model.BAS.Warning model) { string strSql = $@"UPDATE BAS_WARNING SET WARNING_CODE=@WarningCode,WARNING_NAME=@WarningName,PLC_ITEM_CODE=@PlcItemCode,WARNING_TYPE=@WarningType,WARNING_MESSAGE=@WarningMessage,USED_FLAG=@UsedFlag,DEL_FLAG=@DelFlag,CREATE_BY=@CreateBy,CREATE_TIME=@CreateTime,UPDATE_BY=@UpdateBy,UPDATE_TIME=@UpdateTime,DATA_VERSION=@DataVersion,REMARKS1=@Remarks1,REMARKS2=@Remarks2,REMARKS3=@Remarks3,REMARKS4=@Remarks4,REMARKS5=@Remarks5 @@ -72,7 +72,7 @@ namespace CleanMachine.DAL /// /// 删除一个数据 /// - public bool Delete(string WarningId) + public bool Delete(int WarningId) { return this.Delete("WARNING_ID=@WarningId ", new { WarningId }) ; } @@ -80,20 +80,20 @@ namespace CleanMachine.DAL /// /// 获得数据列表 /// - public IEnumerable GetList(string strWhere, object Params = null) + public IEnumerable GetList(string strWhere, object Params = null) { string strSql = $@"SELECT * FROM BAS_WARNING "; if (strWhere.Trim() != "") { strSql += $" WHERE {strWhere}"; } - return LeadDbHelperSQLite.Query(strSql, Params); + return LeadDbHelperSQLite.Query(strSql, Params); } /// /// 获取一个对象 /// - public CleanMachine.Model.Warning GetModel(string WarningId) + public CleanMachine.Model.BAS.Warning GetModel(int WarningId) { return this.GetList("WARNING_ID=@WarningId", new { WarningId }).FirstOrDefault(); } @@ -103,7 +103,7 @@ namespace CleanMachine.DAL /// /// 查询数据 /// - // public IEnumerable GetModelList(RuleGroup rule) + // public IEnumerable GetModelList(RuleGroup rule) // { // var tuper = _dbhelper.BuildRuleGroupStr(rule); // return this.GetList(tuper.where, tuper.Param); diff --git a/CleanMachine.DAL/LastPattleNumDAL.cs b/CleanMachine.DAL/CM/LastPattleNumDAL.cs similarity index 65% rename from CleanMachine.DAL/LastPattleNumDAL.cs rename to CleanMachine.DAL/CM/LastPattleNumDAL.cs index 4e94949..02aa146 100644 --- a/CleanMachine.DAL/LastPattleNumDAL.cs +++ b/CleanMachine.DAL/CM/LastPattleNumDAL.cs @@ -1,6 +1,6 @@ //模板信息:{"Template":{"Language":"C#"}} -//输出信息:{"Extension":".cs","FileName":"DAL\\LastPattleNumDAL"} +//输出信息:{"Extension":".cs","FileName":"DAL\\CM\\LastPattleNumDAL"} using System; using System.Text; using System.Linq; @@ -8,7 +8,7 @@ using System.Collections.Generic; using LeadDataBaseUtility; -namespace CleanMachine.DAL +namespace CleanMachine.DAL.CM { /// /// @@ -35,7 +35,7 @@ namespace CleanMachine.DAL /// /// 添加一个数据 /// - public bool Add(CleanMachine.Model.LastPattleNum model) + public bool Add(CleanMachine.Model.CM.LastPattleNum model) { string strSql = $@"INSERT INTO CM_LastPattleNum (Key,Value) @@ -47,7 +47,7 @@ namespace CleanMachine.DAL /// /// 更新一个数据 /// - public bool Update(CleanMachine.Model.LastPattleNum model) + public bool Update(CleanMachine.Model.CM.LastPattleNum model) { string strSql = $@"UPDATE CM_LastPattleNum SET Value=@Value @@ -80,30 +80,57 @@ namespace CleanMachine.DAL /// /// 获得数据列表 /// - public IEnumerable GetList(string strWhere, object Params = null) + public IEnumerable GetList(string strWhere, object Params = null) { string strSql = $@"SELECT * FROM CM_LastPattleNum "; if (strWhere.Trim() != "") { strSql += $" WHERE {strWhere}"; } - return LeadDbHelperSQLite.Query(strSql, Params); + return LeadDbHelperSQLite.Query(strSql, Params); } /// /// 获取一个对象 /// - public CleanMachine.Model.LastPattleNum GetModel(string Key) + public CleanMachine.Model.CM.LastPattleNum GetModel(string Key) { return this.GetList("Key=@Key", new { Key }).FirstOrDefault(); } #endregion + + + + /// + /// 删除一个数据 + /// + public bool Delete(string Key) + { + return this.Delete("Key=@Key ", new { Key }) ; + } + /// + /// 获取一个对象 + /// + public CleanMachine.Model.CM.LastPattleNum GetModel(string Key) + { + return this.GetList("Key=@Key", new { Key }).QueryFirstOrDefault(); + } + + + /// + /// 存在 + /// + public bool Exists(string Key) + { + string strSql = @"SELECT count(1) from CM_LastPattleNum WHERE Key=@Key "; + return LeadDbHelperSQLite.ExecuteScalar(strSql, new { Key }) > 0; + } /// /// 查询数据 /// - // public IEnumerable GetModelList(RuleGroup rule) + // public IEnumerable GetModelList(RuleGroup rule) // { // var tuper = _dbhelper.BuildRuleGroupStr(rule); // return this.GetList(tuper.where, tuper.Param); diff --git a/CleanMachine.DAL/WarningLogDAL.cs b/CleanMachine.DAL/CM/WarningLogDAL.cs similarity index 84% rename from CleanMachine.DAL/WarningLogDAL.cs rename to CleanMachine.DAL/CM/WarningLogDAL.cs index 69e4c64..195ce69 100644 --- a/CleanMachine.DAL/WarningLogDAL.cs +++ b/CleanMachine.DAL/CM/WarningLogDAL.cs @@ -1,6 +1,6 @@ //模板信息:{"Template":{"Language":"C#"}} -//输出信息:{"Extension":".cs","FileName":"DAL\\WarningLogDAL"} +//输出信息:{"Extension":".cs","FileName":"DAL\\CM\\WarningLogDAL"} using System; using System.Text; using System.Linq; @@ -8,7 +8,7 @@ using System.Collections.Generic; using LeadDataBaseUtility; -namespace CleanMachine.DAL +namespace CleanMachine.DAL.CM { /// /// @@ -26,7 +26,7 @@ namespace CleanMachine.DAL /// /// 存在 /// - public bool Exists(string WarningLogId) + public bool Exists(int WarningLogId) { string strSql = @"SELECT count(1) from CM_WARNING_LOG WHERE WARNING_LOG_ID=@WarningLogId "; return LeadDbHelperSQLite.ExecuteScalar(strSql, new { WarningLogId }) > 0; @@ -35,7 +35,7 @@ namespace CleanMachine.DAL /// /// 添加一个数据 /// - public bool Add(CleanMachine.Model.WarningLog model) + public bool Add(CleanMachine.Model.CM.WarningLog model) { string strSql = $@"INSERT INTO CM_WARNING_LOG (WARNING_LOG_ID,WARNING_CODE,WARNING_NAME,WARNING_TYPE,WARNING_MESSAGE,WARNING_TIME,PLC_ITEM_CODE,WARING_STATUS,WARNING_HANDLE_RESULT,WARNING_HANDLE_TIME,CREATE_BY,CREATE_TIME,UPDATE_BY,UPDATE_TIME,DATA_VERSION,REMARKS1,REMARKS2,REMARKS3,REMARKS4,REMARKS5) @@ -47,7 +47,7 @@ namespace CleanMachine.DAL /// /// 更新一个数据 /// - public bool Update(CleanMachine.Model.WarningLog model) + public bool Update(CleanMachine.Model.CM.WarningLog model) { string strSql = $@"UPDATE CM_WARNING_LOG SET WARNING_CODE=@WarningCode,WARNING_NAME=@WarningName,WARNING_TYPE=@WarningType,WARNING_MESSAGE=@WarningMessage,WARNING_TIME=@WarningTime,PLC_ITEM_CODE=@PlcItemCode,WARING_STATUS=@WaringStatus,WARNING_HANDLE_RESULT=@WarningHandleResult,WARNING_HANDLE_TIME=@WarningHandleTime,CREATE_BY=@CreateBy,CREATE_TIME=@CreateTime,UPDATE_BY=@UpdateBy,UPDATE_TIME=@UpdateTime,DATA_VERSION=@DataVersion,REMARKS1=@Remarks1,REMARKS2=@Remarks2,REMARKS3=@Remarks3,REMARKS4=@Remarks4,REMARKS5=@Remarks5 @@ -72,7 +72,7 @@ namespace CleanMachine.DAL /// /// 删除一个数据 /// - public bool Delete(string WarningLogId) + public bool Delete(int WarningLogId) { return this.Delete("WARNING_LOG_ID=@WarningLogId ", new { WarningLogId }) ; } @@ -80,20 +80,20 @@ namespace CleanMachine.DAL /// /// 获得数据列表 /// - public IEnumerable GetList(string strWhere, object Params = null) + public IEnumerable GetList(string strWhere, object Params = null) { string strSql = $@"SELECT * FROM CM_WARNING_LOG "; if (strWhere.Trim() != "") { strSql += $" WHERE {strWhere}"; } - return LeadDbHelperSQLite.Query(strSql, Params); + return LeadDbHelperSQLite.Query(strSql, Params); } /// /// 获取一个对象 /// - public CleanMachine.Model.WarningLog GetModel(string WarningLogId) + public CleanMachine.Model.CM.WarningLog GetModel(int WarningLogId) { return this.GetList("WARNING_LOG_ID=@WarningLogId", new { WarningLogId }).FirstOrDefault(); } @@ -103,7 +103,7 @@ namespace CleanMachine.DAL /// /// 查询数据 /// - // public IEnumerable GetModelList(RuleGroup rule) + // public IEnumerable GetModelList(RuleGroup rule) // { // var tuper = _dbhelper.BuildRuleGroupStr(rule); // return this.GetList(tuper.where, tuper.Param); diff --git a/CleanMachine.DAL/CM/WorkingPalletDAL.cs b/CleanMachine.DAL/CM/WorkingPalletDAL.cs new file mode 100644 index 0000000..fc6546d --- /dev/null +++ b/CleanMachine.DAL/CM/WorkingPalletDAL.cs @@ -0,0 +1,112 @@ + +//模板信息:{"Template":{"Language":"C#"}} +//输出信息:{"Extension":".cs","FileName":"DAL\\CM\\WorkingPalletDAL"} +using System; +using System.Text; +using System.Linq; +using System.Collections.Generic; + +using LeadDataBaseUtility; + +namespace CleanMachine.DAL.CM +{ + /// + /// + /// + public class WorkingPalletDAL + { + + + + public WorkingPalletDAL() + { + + } + #region 一般方法 + /// + /// 存在 + /// + public bool Exists(int WorkingPalletId) + { + string strSql = @"SELECT count(1) from CM_WORKING_PALLET WHERE WORKING_PALLET_ID=@WorkingPalletId "; + return LeadDbHelperSQLite.ExecuteScalar(strSql, new { WorkingPalletId }) > 0; + } + + /// + /// 添加一个数据 + /// + public bool Add(CleanMachine.Model.CM.WorkingPallet model) + { + string strSql = $@"INSERT INTO CM_WORKING_PALLET + (WORKING_PALLET_ID,WORKING_PALLET_CODE,WORKING_PALLET_DESC,WORKING_STATUS,CREATE_BY,CREATE_TIME,UPDATE_BY,UPDATE_TIME,DATA_VERSION,REMARKS1,REMARKS2,REMARKS3,REMARKS4,REMARKS5) + values + (@WorkingPalletId,@WorkingPalletCode,@WorkingPalletDesc,@WorkingStatus,@CreateBy,@CreateTime,@UpdateBy,@UpdateTime,@DataVersion,@Remarks1,@Remarks2,@Remarks3,@Remarks4,@Remarks5) "; + return LeadDbHelperSQLite.Execute(strSql, model) > 0; + } + + /// + /// 更新一个数据 + /// + public bool Update(CleanMachine.Model.CM.WorkingPallet model) + { + string strSql = $@"UPDATE CM_WORKING_PALLET SET + WORKING_PALLET_CODE=@WorkingPalletCode,WORKING_PALLET_DESC=@WorkingPalletDesc,WORKING_STATUS=@WorkingStatus,CREATE_BY=@CreateBy,CREATE_TIME=@CreateTime,UPDATE_BY=@UpdateBy,UPDATE_TIME=@UpdateTime,DATA_VERSION=@DataVersion,REMARKS1=@Remarks1,REMARKS2=@Remarks2,REMARKS3=@Remarks3,REMARKS4=@Remarks4,REMARKS5=@Remarks5 + WHERE WORKING_PALLET_ID=@WorkingPalletId "; + return LeadDbHelperSQLite.Execute(strSql, model) > 0; + } + + + /// + /// 删除一个数据 + /// + public bool Delete(string strWhere, object Params = null) + { + string strSql = $@"DELETE FROM CM_WORKING_PALLET "; + if (strWhere.Trim() != "") + { + strSql += $" WHERE {strWhere}"; + } + return LeadDbHelperSQLite.Execute(strSql, Params) > 0; + } + + /// + /// 删除一个数据 + /// + public bool Delete(int WorkingPalletId) + { + return this.Delete("WORKING_PALLET_ID=@WorkingPalletId ", new { WorkingPalletId }) ; + } + + /// + /// 获得数据列表 + /// + public IEnumerable GetList(string strWhere, object Params = null) + { + string strSql = $@"SELECT * FROM CM_WORKING_PALLET "; + if (strWhere.Trim() != "") + { + strSql += $" WHERE {strWhere}"; + } + return LeadDbHelperSQLite.Query(strSql, Params); + } + + /// + /// 获取一个对象 + /// + public CleanMachine.Model.CM.WorkingPallet GetModel(int WorkingPalletId) + { + return this.GetList("WORKING_PALLET_ID=@WorkingPalletId", new { WorkingPalletId }).FirstOrDefault(); + } + #endregion + + + /// + /// 查询数据 + /// + // public IEnumerable GetModelList(RuleGroup rule) + // { + // var tuper = _dbhelper.BuildRuleGroupStr(rule); + // return this.GetList(tuper.where, tuper.Param); + // } + } +} diff --git a/CleanMachine.DAL/CM/WorkingPalletDtlDAL.cs b/CleanMachine.DAL/CM/WorkingPalletDtlDAL.cs new file mode 100644 index 0000000..e619651 --- /dev/null +++ b/CleanMachine.DAL/CM/WorkingPalletDtlDAL.cs @@ -0,0 +1,112 @@ + +//模板信息:{"Template":{"Language":"C#"}} +//输出信息:{"Extension":".cs","FileName":"DAL\\CM\\WorkingPalletDtlDAL"} +using System; +using System.Text; +using System.Linq; +using System.Collections.Generic; + +using LeadDataBaseUtility; + +namespace CleanMachine.DAL.CM +{ + /// + /// + /// + public class WorkingPalletDtlDAL + { + + + + public WorkingPalletDtlDAL() + { + + } + #region 一般方法 + /// + /// 存在 + /// + public bool Exists(int WorkingPalletDtlId) + { + string strSql = @"SELECT count(1) from CM_WORKING_PALLET_DTL WHERE WORKING_PALLET_DTL_ID=@WorkingPalletDtlId "; + return LeadDbHelperSQLite.ExecuteScalar(strSql, new { WorkingPalletDtlId }) > 0; + } + + /// + /// 添加一个数据 + /// + public bool Add(CleanMachine.Model.CM.WorkingPalletDtl model) + { + string strSql = $@"INSERT INTO CM_WORKING_PALLET_DTL + (WORKING_PALLET_DTL_ID,WORKING_PALLET_CODE,IR_CODE,SHEET_TYPE_CODE,INPUT_TIME,CLEAN_MODE_CODE,CONTAMINATION_TYPE_CODE,CONTAMINATION_DTL_CODE,CURRENT_NUMBER,OPERATE_USER_ID,OPERATE_USER_TIME,WORKING_DTL_STATUS,CREATE_BY,CREATE_TIME,UPDATE_BY,UPDATE_TIME,DATA_VERSION,REMARKS1,REMARKS2,REMARKS3,REMARKS4,REMARKS5) + values + (@WorkingPalletDtlId,@WorkingPalletCode,@IrCode,@SheetTypeCode,@InputTime,@CleanModeCode,@ContaminationTypeCode,@ContaminationDtlCode,@CurrentNumber,@OperateUserId,@OperateUserTime,@WorkingDtlStatus,@CreateBy,@CreateTime,@UpdateBy,@UpdateTime,@DataVersion,@Remarks1,@Remarks2,@Remarks3,@Remarks4,@Remarks5) "; + return LeadDbHelperSQLite.Execute(strSql, model) > 0; + } + + /// + /// 更新一个数据 + /// + public bool Update(CleanMachine.Model.CM.WorkingPalletDtl model) + { + string strSql = $@"UPDATE CM_WORKING_PALLET_DTL SET + WORKING_PALLET_CODE=@WorkingPalletCode,IR_CODE=@IrCode,SHEET_TYPE_CODE=@SheetTypeCode,INPUT_TIME=@InputTime,CLEAN_MODE_CODE=@CleanModeCode,CONTAMINATION_TYPE_CODE=@ContaminationTypeCode,CONTAMINATION_DTL_CODE=@ContaminationDtlCode,CURRENT_NUMBER=@CurrentNumber,OPERATE_USER_ID=@OperateUserId,OPERATE_USER_TIME=@OperateUserTime,WORKING_DTL_STATUS=@WorkingDtlStatus,CREATE_BY=@CreateBy,CREATE_TIME=@CreateTime,UPDATE_BY=@UpdateBy,UPDATE_TIME=@UpdateTime,DATA_VERSION=@DataVersion,REMARKS1=@Remarks1,REMARKS2=@Remarks2,REMARKS3=@Remarks3,REMARKS4=@Remarks4,REMARKS5=@Remarks5 + WHERE WORKING_PALLET_DTL_ID=@WorkingPalletDtlId "; + return LeadDbHelperSQLite.Execute(strSql, model) > 0; + } + + + /// + /// 删除一个数据 + /// + public bool Delete(string strWhere, object Params = null) + { + string strSql = $@"DELETE FROM CM_WORKING_PALLET_DTL "; + if (strWhere.Trim() != "") + { + strSql += $" WHERE {strWhere}"; + } + return LeadDbHelperSQLite.Execute(strSql, Params) > 0; + } + + /// + /// 删除一个数据 + /// + public bool Delete(int WorkingPalletDtlId) + { + return this.Delete("WORKING_PALLET_DTL_ID=@WorkingPalletDtlId ", new { WorkingPalletDtlId }) ; + } + + /// + /// 获得数据列表 + /// + public IEnumerable GetList(string strWhere, object Params = null) + { + string strSql = $@"SELECT * FROM CM_WORKING_PALLET_DTL "; + if (strWhere.Trim() != "") + { + strSql += $" WHERE {strWhere}"; + } + return LeadDbHelperSQLite.Query(strSql, Params); + } + + /// + /// 获取一个对象 + /// + public CleanMachine.Model.CM.WorkingPalletDtl GetModel(int WorkingPalletDtlId) + { + return this.GetList("WORKING_PALLET_DTL_ID=@WorkingPalletDtlId", new { WorkingPalletDtlId }).FirstOrDefault(); + } + #endregion + + + /// + /// 查询数据 + /// + // public IEnumerable GetModelList(RuleGroup rule) + // { + // var tuper = _dbhelper.BuildRuleGroupStr(rule); + // return this.GetList(tuper.where, tuper.Param); + // } + } +} diff --git a/CleanMachine.DAL/LanguageControlDAL.cs b/CleanMachine.DAL/SYS/LanguageControlDAL.cs similarity index 82% rename from CleanMachine.DAL/LanguageControlDAL.cs rename to CleanMachine.DAL/SYS/LanguageControlDAL.cs index 5ab8a07..7aa285d 100644 --- a/CleanMachine.DAL/LanguageControlDAL.cs +++ b/CleanMachine.DAL/SYS/LanguageControlDAL.cs @@ -1,6 +1,6 @@ //模板信息:{"Template":{"Language":"C#"}} -//输出信息:{"Extension":".cs","FileName":"DAL\\LanguageControlDAL"} +//输出信息:{"Extension":".cs","FileName":"DAL\\SYS\\LanguageControlDAL"} using System; using System.Text; using System.Linq; @@ -8,7 +8,7 @@ using System.Collections.Generic; using LeadDataBaseUtility; -namespace CleanMachine.DAL +namespace CleanMachine.DAL.SYS { /// /// @@ -26,7 +26,7 @@ namespace CleanMachine.DAL /// /// 存在 /// - public bool Exists(string LanguageControlId) + public bool Exists(int LanguageControlId) { string strSql = @"SELECT count(1) from SYS_LANGUAGE_CONTROL WHERE LANGUAGE_CONTROL_ID=@LanguageControlId "; return LeadDbHelperSQLite.ExecuteScalar(strSql, new { LanguageControlId }) > 0; @@ -35,7 +35,7 @@ namespace CleanMachine.DAL /// /// 添加一个数据 /// - public bool Add(CleanMachine.Model.LanguageControl model) + public bool Add(CleanMachine.Model.SYS.LanguageControl model) { string strSql = $@"INSERT INTO SYS_LANGUAGE_CONTROL (LANGUAGE_CONTROL_ID,LANGUAGE_CODE,FORM_CODE,CONTROL_CODE,CONTROL_NAME,CONTROL_TYPE,USED_FLAG,DEL_FLAG,CREATE_BY,CREATE_TIME,UPDATE_BY,UPDATE_TIME,DATA_VERSION,REMARKS1,REMARKS2,REMARKS3,REMARKS4,REMARKS5) @@ -47,7 +47,7 @@ namespace CleanMachine.DAL /// /// 更新一个数据 /// - public bool Update(CleanMachine.Model.LanguageControl model) + public bool Update(CleanMachine.Model.SYS.LanguageControl model) { string strSql = $@"UPDATE SYS_LANGUAGE_CONTROL SET LANGUAGE_CODE=@LanguageCode,FORM_CODE=@FormCode,CONTROL_CODE=@ControlCode,CONTROL_NAME=@ControlName,CONTROL_TYPE=@ControlType,USED_FLAG=@UsedFlag,DEL_FLAG=@DelFlag,CREATE_BY=@CreateBy,CREATE_TIME=@CreateTime,UPDATE_BY=@UpdateBy,UPDATE_TIME=@UpdateTime,DATA_VERSION=@DataVersion,REMARKS1=@Remarks1,REMARKS2=@Remarks2,REMARKS3=@Remarks3,REMARKS4=@Remarks4,REMARKS5=@Remarks5 @@ -72,7 +72,7 @@ namespace CleanMachine.DAL /// /// 删除一个数据 /// - public bool Delete(string LanguageControlId) + public bool Delete(int LanguageControlId) { return this.Delete("LANGUAGE_CONTROL_ID=@LanguageControlId ", new { LanguageControlId }) ; } @@ -80,20 +80,20 @@ namespace CleanMachine.DAL /// /// 获得数据列表 /// - public IEnumerable GetList(string strWhere, object Params = null) + public IEnumerable GetList(string strWhere, object Params = null) { string strSql = $@"SELECT * FROM SYS_LANGUAGE_CONTROL "; if (strWhere.Trim() != "") { strSql += $" WHERE {strWhere}"; } - return LeadDbHelperSQLite.Query(strSql, Params); + return LeadDbHelperSQLite.Query(strSql, Params); } /// /// 获取一个对象 /// - public CleanMachine.Model.LanguageControl GetModel(string LanguageControlId) + public CleanMachine.Model.SYS.LanguageControl GetModel(int LanguageControlId) { return this.GetList("LANGUAGE_CONTROL_ID=@LanguageControlId", new { LanguageControlId }).FirstOrDefault(); } @@ -103,7 +103,7 @@ namespace CleanMachine.DAL /// /// 查询数据 /// - // public IEnumerable GetModelList(RuleGroup rule) + // public IEnumerable GetModelList(RuleGroup rule) // { // var tuper = _dbhelper.BuildRuleGroupStr(rule); // return this.GetList(tuper.where, tuper.Param); diff --git a/CleanMachine.DAL/LanguageDAL.cs b/CleanMachine.DAL/SYS/LanguageDAL.cs similarity index 82% rename from CleanMachine.DAL/LanguageDAL.cs rename to CleanMachine.DAL/SYS/LanguageDAL.cs index a6c65bb..46497c1 100644 --- a/CleanMachine.DAL/LanguageDAL.cs +++ b/CleanMachine.DAL/SYS/LanguageDAL.cs @@ -1,6 +1,6 @@ //模板信息:{"Template":{"Language":"C#"}} -//输出信息:{"Extension":".cs","FileName":"DAL\\LanguageDAL"} +//输出信息:{"Extension":".cs","FileName":"DAL\\SYS\\LanguageDAL"} using System; using System.Text; using System.Linq; @@ -8,7 +8,7 @@ using System.Collections.Generic; using LeadDataBaseUtility; -namespace CleanMachine.DAL +namespace CleanMachine.DAL.SYS { /// /// @@ -26,7 +26,7 @@ namespace CleanMachine.DAL /// /// 存在 /// - public bool Exists(string LanguageId) + public bool Exists(int LanguageId) { string strSql = @"SELECT count(1) from SYS_LANGUAGE WHERE LANGUAGE_ID=@LanguageId "; return LeadDbHelperSQLite.ExecuteScalar(strSql, new { LanguageId }) > 0; @@ -35,7 +35,7 @@ namespace CleanMachine.DAL /// /// 添加一个数据 /// - public bool Add(CleanMachine.Model.Language model) + public bool Add(CleanMachine.Model.SYS.Language model) { string strSql = $@"INSERT INTO SYS_LANGUAGE (LANGUAGE_ID,LANGUAGE_CODE,LANGUAGE_NAME,USED_FLAG,DEL_FLAG,CREATE_BY,CREATE_TIME,UPDATE_BY,UPDATE_TIME,DATA_VERSION,REMARKS1,REMARKS2,REMARKS3,REMARKS4,REMARKS5) @@ -47,7 +47,7 @@ namespace CleanMachine.DAL /// /// 更新一个数据 /// - public bool Update(CleanMachine.Model.Language model) + public bool Update(CleanMachine.Model.SYS.Language model) { string strSql = $@"UPDATE SYS_LANGUAGE SET LANGUAGE_CODE=@LanguageCode,LANGUAGE_NAME=@LanguageName,USED_FLAG=@UsedFlag,DEL_FLAG=@DelFlag,CREATE_BY=@CreateBy,CREATE_TIME=@CreateTime,UPDATE_BY=@UpdateBy,UPDATE_TIME=@UpdateTime,DATA_VERSION=@DataVersion,REMARKS1=@Remarks1,REMARKS2=@Remarks2,REMARKS3=@Remarks3,REMARKS4=@Remarks4,REMARKS5=@Remarks5 @@ -72,7 +72,7 @@ namespace CleanMachine.DAL /// /// 删除一个数据 /// - public bool Delete(string LanguageId) + public bool Delete(int LanguageId) { return this.Delete("LANGUAGE_ID=@LanguageId ", new { LanguageId }) ; } @@ -80,20 +80,20 @@ namespace CleanMachine.DAL /// /// 获得数据列表 /// - public IEnumerable GetList(string strWhere, object Params = null) + public IEnumerable GetList(string strWhere, object Params = null) { string strSql = $@"SELECT * FROM SYS_LANGUAGE "; if (strWhere.Trim() != "") { strSql += $" WHERE {strWhere}"; } - return LeadDbHelperSQLite.Query(strSql, Params); + return LeadDbHelperSQLite.Query(strSql, Params); } /// /// 获取一个对象 /// - public CleanMachine.Model.Language GetModel(string LanguageId) + public CleanMachine.Model.SYS.Language GetModel(int LanguageId) { return this.GetList("LANGUAGE_ID=@LanguageId", new { LanguageId }).FirstOrDefault(); } @@ -103,7 +103,7 @@ namespace CleanMachine.DAL /// /// 查询数据 /// - // public IEnumerable GetModelList(RuleGroup rule) + // public IEnumerable GetModelList(RuleGroup rule) // { // var tuper = _dbhelper.BuildRuleGroupStr(rule); // return this.GetList(tuper.where, tuper.Param); diff --git a/CleanMachine.DAL/LogDAL.cs b/CleanMachine.DAL/SYS/LogDAL.cs similarity index 83% rename from CleanMachine.DAL/LogDAL.cs rename to CleanMachine.DAL/SYS/LogDAL.cs index bb7f239..f2c5e7c 100644 --- a/CleanMachine.DAL/LogDAL.cs +++ b/CleanMachine.DAL/SYS/LogDAL.cs @@ -1,6 +1,6 @@ //模板信息:{"Template":{"Language":"C#"}} -//输出信息:{"Extension":".cs","FileName":"DAL\\LogDAL"} +//输出信息:{"Extension":".cs","FileName":"DAL\\SYS\\LogDAL"} using System; using System.Text; using System.Linq; @@ -8,7 +8,7 @@ using System.Collections.Generic; using LeadDataBaseUtility; -namespace CleanMachine.DAL +namespace CleanMachine.DAL.SYS { /// /// @@ -26,7 +26,7 @@ namespace CleanMachine.DAL /// /// 存在 /// - public bool Exists(string SysLogId) + public bool Exists(int SysLogId) { string strSql = @"SELECT count(1) from SYS_LOG WHERE SYS_LOG_ID=@SysLogId "; return LeadDbHelperSQLite.ExecuteScalar(strSql, new { SysLogId }) > 0; @@ -35,7 +35,7 @@ namespace CleanMachine.DAL /// /// 添加一个数据 /// - public bool Add(CleanMachine.Model.Log model) + public bool Add(CleanMachine.Model.SYS.Log model) { string strSql = $@"INSERT INTO SYS_LOG (SYS_LOG_ID,USER_ID,OPERATE_STATUS,RESULT_STATUS,MESSAGE,CREATE_BY,CREATE_TIME,UPDATE_BY,UPDATE_TIME,DATA_VERSION,REMARKS1,REMARKS2,REMARKS3,REMARKS4,REMARKS5) @@ -47,7 +47,7 @@ namespace CleanMachine.DAL /// /// 更新一个数据 /// - public bool Update(CleanMachine.Model.Log model) + public bool Update(CleanMachine.Model.SYS.Log model) { string strSql = $@"UPDATE SYS_LOG SET USER_ID=@UserId,OPERATE_STATUS=@OperateStatus,RESULT_STATUS=@ResultStatus,MESSAGE=@Message,CREATE_BY=@CreateBy,CREATE_TIME=@CreateTime,UPDATE_BY=@UpdateBy,UPDATE_TIME=@UpdateTime,DATA_VERSION=@DataVersion,REMARKS1=@Remarks1,REMARKS2=@Remarks2,REMARKS3=@Remarks3,REMARKS4=@Remarks4,REMARKS5=@Remarks5 @@ -72,7 +72,7 @@ namespace CleanMachine.DAL /// /// 删除一个数据 /// - public bool Delete(string SysLogId) + public bool Delete(int SysLogId) { return this.Delete("SYS_LOG_ID=@SysLogId ", new { SysLogId }) ; } @@ -80,20 +80,20 @@ namespace CleanMachine.DAL /// /// 获得数据列表 /// - public IEnumerable GetList(string strWhere, object Params = null) + public IEnumerable GetList(string strWhere, object Params = null) { string strSql = $@"SELECT * FROM SYS_LOG "; if (strWhere.Trim() != "") { strSql += $" WHERE {strWhere}"; } - return LeadDbHelperSQLite.Query(strSql, Params); + return LeadDbHelperSQLite.Query(strSql, Params); } /// /// 获取一个对象 /// - public CleanMachine.Model.Log GetModel(string SysLogId) + public CleanMachine.Model.SYS.Log GetModel(int SysLogId) { return this.GetList("SYS_LOG_ID=@SysLogId", new { SysLogId }).FirstOrDefault(); } @@ -103,7 +103,7 @@ namespace CleanMachine.DAL /// /// 查询数据 /// - // public IEnumerable GetModelList(RuleGroup rule) + // public IEnumerable GetModelList(RuleGroup rule) // { // var tuper = _dbhelper.BuildRuleGroupStr(rule); // return this.GetList(tuper.where, tuper.Param); diff --git a/CleanMachine.DAL/MenuDAL.cs b/CleanMachine.DAL/SYS/MenuDAL.cs similarity index 83% rename from CleanMachine.DAL/MenuDAL.cs rename to CleanMachine.DAL/SYS/MenuDAL.cs index 13938b0..d50e7a3 100644 --- a/CleanMachine.DAL/MenuDAL.cs +++ b/CleanMachine.DAL/SYS/MenuDAL.cs @@ -1,6 +1,6 @@ //模板信息:{"Template":{"Language":"C#"}} -//输出信息:{"Extension":".cs","FileName":"DAL\\MenuDAL"} +//输出信息:{"Extension":".cs","FileName":"DAL\\SYS\\MenuDAL"} using System; using System.Text; using System.Linq; @@ -8,7 +8,7 @@ using System.Collections.Generic; using LeadDataBaseUtility; -namespace CleanMachine.DAL +namespace CleanMachine.DAL.SYS { /// /// @@ -26,7 +26,7 @@ namespace CleanMachine.DAL /// /// 存在 /// - public bool Exists(string MenuId) + public bool Exists(int MenuId) { string strSql = @"SELECT count(1) from SYS_MENU WHERE MENU_ID=@MenuId "; return LeadDbHelperSQLite.ExecuteScalar(strSql, new { MenuId }) > 0; @@ -35,7 +35,7 @@ namespace CleanMachine.DAL /// /// 添加一个数据 /// - public bool Add(CleanMachine.Model.Menu model) + public bool Add(CleanMachine.Model.SYS.Menu model) { string strSql = $@"INSERT INTO SYS_MENU (MENU_ID,MENU_CODE,MENU_NAME,MENU_URL,MENU_PID,MENU_ORDER,USED_FLAG,DEL_FLAG,CREATE_BY,CREATE_TIME,UPDATE_BY,UPDATE_TIME,DATA_VERSION,REMARKS1,REMARKS2,REMARKS3,REMARKS4,REMARKS5) @@ -47,7 +47,7 @@ namespace CleanMachine.DAL /// /// 更新一个数据 /// - public bool Update(CleanMachine.Model.Menu model) + public bool Update(CleanMachine.Model.SYS.Menu model) { string strSql = $@"UPDATE SYS_MENU SET MENU_CODE=@MenuCode,MENU_NAME=@MenuName,MENU_URL=@MenuUrl,MENU_PID=@MenuPid,MENU_ORDER=@MenuOrder,USED_FLAG=@UsedFlag,DEL_FLAG=@DelFlag,CREATE_BY=@CreateBy,CREATE_TIME=@CreateTime,UPDATE_BY=@UpdateBy,UPDATE_TIME=@UpdateTime,DATA_VERSION=@DataVersion,REMARKS1=@Remarks1,REMARKS2=@Remarks2,REMARKS3=@Remarks3,REMARKS4=@Remarks4,REMARKS5=@Remarks5 @@ -72,7 +72,7 @@ namespace CleanMachine.DAL /// /// 删除一个数据 /// - public bool Delete(string MenuId) + public bool Delete(int MenuId) { return this.Delete("MENU_ID=@MenuId ", new { MenuId }) ; } @@ -80,20 +80,20 @@ namespace CleanMachine.DAL /// /// 获得数据列表 /// - public IEnumerable GetList(string strWhere, object Params = null) + public IEnumerable GetList(string strWhere, object Params = null) { string strSql = $@"SELECT * FROM SYS_MENU "; if (strWhere.Trim() != "") { strSql += $" WHERE {strWhere}"; } - return LeadDbHelperSQLite.Query(strSql, Params); + return LeadDbHelperSQLite.Query(strSql, Params); } /// /// 获取一个对象 /// - public CleanMachine.Model.Menu GetModel(string MenuId) + public CleanMachine.Model.SYS.Menu GetModel(int MenuId) { return this.GetList("MENU_ID=@MenuId", new { MenuId }).FirstOrDefault(); } @@ -103,7 +103,7 @@ namespace CleanMachine.DAL /// /// 查询数据 /// - // public IEnumerable GetModelList(RuleGroup rule) + // public IEnumerable GetModelList(RuleGroup rule) // { // var tuper = _dbhelper.BuildRuleGroupStr(rule); // return this.GetList(tuper.where, tuper.Param); diff --git a/CleanMachine.DAL/ParameterDAL.cs b/CleanMachine.DAL/SYS/ParameterDAL.cs similarity index 82% rename from CleanMachine.DAL/ParameterDAL.cs rename to CleanMachine.DAL/SYS/ParameterDAL.cs index bab7334..30f1a5d 100644 --- a/CleanMachine.DAL/ParameterDAL.cs +++ b/CleanMachine.DAL/SYS/ParameterDAL.cs @@ -1,6 +1,6 @@ //模板信息:{"Template":{"Language":"C#"}} -//输出信息:{"Extension":".cs","FileName":"DAL\\ParameterDAL"} +//输出信息:{"Extension":".cs","FileName":"DAL\\SYS\\ParameterDAL"} using System; using System.Text; using System.Linq; @@ -8,7 +8,7 @@ using System.Collections.Generic; using LeadDataBaseUtility; -namespace CleanMachine.DAL +namespace CleanMachine.DAL.SYS { /// /// @@ -26,7 +26,7 @@ namespace CleanMachine.DAL /// /// 存在 /// - public bool Exists(string ParameterId) + public bool Exists(int ParameterId) { string strSql = @"SELECT count(1) from SYS_PARAMETER WHERE PARAMETER_ID=@ParameterId "; return LeadDbHelperSQLite.ExecuteScalar(strSql, new { ParameterId }) > 0; @@ -35,7 +35,7 @@ namespace CleanMachine.DAL /// /// 添加一个数据 /// - public bool Add(CleanMachine.Model.Parameter model) + public bool Add(CleanMachine.Model.SYS.Parameter model) { string strSql = $@"INSERT INTO SYS_PARAMETER (PARAMETER_ID,PARAMETER_CODE,PARAMETER_NAME,PARAMETER_VALUE,PARAMETER_TYPE,USED_FLAG,DEL_FLAG,CREATE_BY,CREATE_TIME,UPDATE_BY,UPDATE_TIME,DATA_VERSION,REMARKS1,REMARKS2,REMARKS3,REMARKS4,REMARKS5) @@ -47,7 +47,7 @@ namespace CleanMachine.DAL /// /// 更新一个数据 /// - public bool Update(CleanMachine.Model.Parameter model) + public bool Update(CleanMachine.Model.SYS.Parameter model) { string strSql = $@"UPDATE SYS_PARAMETER SET PARAMETER_CODE=@ParameterCode,PARAMETER_NAME=@ParameterName,PARAMETER_VALUE=@ParameterValue,PARAMETER_TYPE=@ParameterType,USED_FLAG=@UsedFlag,DEL_FLAG=@DelFlag,CREATE_BY=@CreateBy,CREATE_TIME=@CreateTime,UPDATE_BY=@UpdateBy,UPDATE_TIME=@UpdateTime,DATA_VERSION=@DataVersion,REMARKS1=@Remarks1,REMARKS2=@Remarks2,REMARKS3=@Remarks3,REMARKS4=@Remarks4,REMARKS5=@Remarks5 @@ -72,7 +72,7 @@ namespace CleanMachine.DAL /// /// 删除一个数据 /// - public bool Delete(string ParameterId) + public bool Delete(int ParameterId) { return this.Delete("PARAMETER_ID=@ParameterId ", new { ParameterId }) ; } @@ -80,20 +80,20 @@ namespace CleanMachine.DAL /// /// 获得数据列表 /// - public IEnumerable GetList(string strWhere, object Params = null) + public IEnumerable GetList(string strWhere, object Params = null) { string strSql = $@"SELECT * FROM SYS_PARAMETER "; if (strWhere.Trim() != "") { strSql += $" WHERE {strWhere}"; } - return LeadDbHelperSQLite.Query(strSql, Params); + return LeadDbHelperSQLite.Query(strSql, Params); } /// /// 获取一个对象 /// - public CleanMachine.Model.Parameter GetModel(string ParameterId) + public CleanMachine.Model.SYS.Parameter GetModel(int ParameterId) { return this.GetList("PARAMETER_ID=@ParameterId", new { ParameterId }).FirstOrDefault(); } @@ -103,7 +103,7 @@ namespace CleanMachine.DAL /// /// 查询数据 /// - // public IEnumerable GetModelList(RuleGroup rule) + // public IEnumerable GetModelList(RuleGroup rule) // { // var tuper = _dbhelper.BuildRuleGroupStr(rule); // return this.GetList(tuper.where, tuper.Param); diff --git a/CleanMachine.DAL/RoleDAL.cs b/CleanMachine.DAL/SYS/RoleDAL.cs similarity index 83% rename from CleanMachine.DAL/RoleDAL.cs rename to CleanMachine.DAL/SYS/RoleDAL.cs index a7693e3..4934a78 100644 --- a/CleanMachine.DAL/RoleDAL.cs +++ b/CleanMachine.DAL/SYS/RoleDAL.cs @@ -1,6 +1,6 @@ //模板信息:{"Template":{"Language":"C#"}} -//输出信息:{"Extension":".cs","FileName":"DAL\\RoleDAL"} +//输出信息:{"Extension":".cs","FileName":"DAL\\SYS\\RoleDAL"} using System; using System.Text; using System.Linq; @@ -8,7 +8,7 @@ using System.Collections.Generic; using LeadDataBaseUtility; -namespace CleanMachine.DAL +namespace CleanMachine.DAL.SYS { /// /// @@ -26,7 +26,7 @@ namespace CleanMachine.DAL /// /// 存在 /// - public bool Exists(string RoleId) + public bool Exists(int RoleId) { string strSql = @"SELECT count(1) from SYS_ROLE WHERE ROLE_ID=@RoleId "; return LeadDbHelperSQLite.ExecuteScalar(strSql, new { RoleId }) > 0; @@ -35,7 +35,7 @@ namespace CleanMachine.DAL /// /// 添加一个数据 /// - public bool Add(CleanMachine.Model.Role model) + public bool Add(CleanMachine.Model.SYS.Role model) { string strSql = $@"INSERT INTO SYS_ROLE (ROLE_ID,ROLE_CODE,ROLE_NAME,ROLE_GRADE,USED_FLAG,DEL_FLAG,CREATE_BY,CREATE_TIME,UPDATE_BY,UPDATE_TIME,DATA_VERSION,REMARKS1,REMARKS2,REMARKS3,REMARKS4,REMARKS5) @@ -47,7 +47,7 @@ namespace CleanMachine.DAL /// /// 更新一个数据 /// - public bool Update(CleanMachine.Model.Role model) + public bool Update(CleanMachine.Model.SYS.Role model) { string strSql = $@"UPDATE SYS_ROLE SET ROLE_CODE=@RoleCode,ROLE_NAME=@RoleName,ROLE_GRADE=@RoleGrade,USED_FLAG=@UsedFlag,DEL_FLAG=@DelFlag,CREATE_BY=@CreateBy,CREATE_TIME=@CreateTime,UPDATE_BY=@UpdateBy,UPDATE_TIME=@UpdateTime,DATA_VERSION=@DataVersion,REMARKS1=@Remarks1,REMARKS2=@Remarks2,REMARKS3=@Remarks3,REMARKS4=@Remarks4,REMARKS5=@Remarks5 @@ -72,7 +72,7 @@ namespace CleanMachine.DAL /// /// 删除一个数据 /// - public bool Delete(string RoleId) + public bool Delete(int RoleId) { return this.Delete("ROLE_ID=@RoleId ", new { RoleId }) ; } @@ -80,20 +80,20 @@ namespace CleanMachine.DAL /// /// 获得数据列表 /// - public IEnumerable GetList(string strWhere, object Params = null) + public IEnumerable GetList(string strWhere, object Params = null) { string strSql = $@"SELECT * FROM SYS_ROLE "; if (strWhere.Trim() != "") { strSql += $" WHERE {strWhere}"; } - return LeadDbHelperSQLite.Query(strSql, Params); + return LeadDbHelperSQLite.Query(strSql, Params); } /// /// 获取一个对象 /// - public CleanMachine.Model.Role GetModel(string RoleId) + public CleanMachine.Model.SYS.Role GetModel(int RoleId) { return this.GetList("ROLE_ID=@RoleId", new { RoleId }).FirstOrDefault(); } @@ -103,7 +103,7 @@ namespace CleanMachine.DAL /// /// 查询数据 /// - // public IEnumerable GetModelList(RuleGroup rule) + // public IEnumerable GetModelList(RuleGroup rule) // { // var tuper = _dbhelper.BuildRuleGroupStr(rule); // return this.GetList(tuper.where, tuper.Param); diff --git a/CleanMachine.DAL/RoleMenuPermissionDAL.cs b/CleanMachine.DAL/SYS/RoleMenuPermissionDAL.cs similarity index 80% rename from CleanMachine.DAL/RoleMenuPermissionDAL.cs rename to CleanMachine.DAL/SYS/RoleMenuPermissionDAL.cs index e93b2e7..db2ddd5 100644 --- a/CleanMachine.DAL/RoleMenuPermissionDAL.cs +++ b/CleanMachine.DAL/SYS/RoleMenuPermissionDAL.cs @@ -1,6 +1,6 @@ //模板信息:{"Template":{"Language":"C#"}} -//输出信息:{"Extension":".cs","FileName":"DAL\\RoleMenuPermissionDAL"} +//输出信息:{"Extension":".cs","FileName":"DAL\\SYS\\RoleMenuPermissionDAL"} using System; using System.Text; using System.Linq; @@ -8,7 +8,7 @@ using System.Collections.Generic; using LeadDataBaseUtility; -namespace CleanMachine.DAL +namespace CleanMachine.DAL.SYS { /// /// @@ -26,7 +26,7 @@ namespace CleanMachine.DAL /// /// 存在 /// - public bool Exists(string RoleMenuPermissionId) + public bool Exists(int RoleMenuPermissionId) { string strSql = @"SELECT count(1) from SYS_ROLE_MENU_PERMISSION WHERE ROLE_MENU_PERMISSION_ID=@RoleMenuPermissionId "; return LeadDbHelperSQLite.ExecuteScalar(strSql, new { RoleMenuPermissionId }) > 0; @@ -35,7 +35,7 @@ namespace CleanMachine.DAL /// /// 添加一个数据 /// - public bool Add(CleanMachine.Model.RoleMenuPermission model) + public bool Add(CleanMachine.Model.SYS.RoleMenuPermission model) { string strSql = $@"INSERT INTO SYS_ROLE_MENU_PERMISSION (ROLE_MENU_PERMISSION_ID,ROLE_ID,MENU_ID,CREATE_BY,CREATE_TIME,UPDATE_BY,UPDATE_TIME,DATA_VERSION,REMARKS1,REMARKS2,REMARKS3,REMARKS4,REMARKS5) @@ -47,7 +47,7 @@ namespace CleanMachine.DAL /// /// 更新一个数据 /// - public bool Update(CleanMachine.Model.RoleMenuPermission model) + public bool Update(CleanMachine.Model.SYS.RoleMenuPermission model) { string strSql = $@"UPDATE SYS_ROLE_MENU_PERMISSION SET ROLE_ID=@RoleId,MENU_ID=@MenuId,CREATE_BY=@CreateBy,CREATE_TIME=@CreateTime,UPDATE_BY=@UpdateBy,UPDATE_TIME=@UpdateTime,DATA_VERSION=@DataVersion,REMARKS1=@Remarks1,REMARKS2=@Remarks2,REMARKS3=@Remarks3,REMARKS4=@Remarks4,REMARKS5=@Remarks5 @@ -72,7 +72,7 @@ namespace CleanMachine.DAL /// /// 删除一个数据 /// - public bool Delete(string RoleMenuPermissionId) + public bool Delete(int RoleMenuPermissionId) { return this.Delete("ROLE_MENU_PERMISSION_ID=@RoleMenuPermissionId ", new { RoleMenuPermissionId }) ; } @@ -80,20 +80,20 @@ namespace CleanMachine.DAL /// /// 获得数据列表 /// - public IEnumerable GetList(string strWhere, object Params = null) + public IEnumerable GetList(string strWhere, object Params = null) { string strSql = $@"SELECT * FROM SYS_ROLE_MENU_PERMISSION "; if (strWhere.Trim() != "") { strSql += $" WHERE {strWhere}"; } - return LeadDbHelperSQLite.Query(strSql, Params); + return LeadDbHelperSQLite.Query(strSql, Params); } /// /// 获取一个对象 /// - public CleanMachine.Model.RoleMenuPermission GetModel(string RoleMenuPermissionId) + public CleanMachine.Model.SYS.RoleMenuPermission GetModel(int RoleMenuPermissionId) { return this.GetList("ROLE_MENU_PERMISSION_ID=@RoleMenuPermissionId", new { RoleMenuPermissionId }).FirstOrDefault(); } @@ -103,7 +103,7 @@ namespace CleanMachine.DAL /// /// 查询数据 /// - // public IEnumerable GetModelList(RuleGroup rule) + // public IEnumerable GetModelList(RuleGroup rule) // { // var tuper = _dbhelper.BuildRuleGroupStr(rule); // return this.GetList(tuper.where, tuper.Param); diff --git a/CleanMachine.DAL/ScheduleDtlDAL.cs b/CleanMachine.DAL/SYS/ScheduleDtlDAL.cs similarity index 84% rename from CleanMachine.DAL/ScheduleDtlDAL.cs rename to CleanMachine.DAL/SYS/ScheduleDtlDAL.cs index c236edc..fc82e85 100644 --- a/CleanMachine.DAL/ScheduleDtlDAL.cs +++ b/CleanMachine.DAL/SYS/ScheduleDtlDAL.cs @@ -1,6 +1,6 @@ //模板信息:{"Template":{"Language":"C#"}} -//输出信息:{"Extension":".cs","FileName":"DAL\\ScheduleDtlDAL"} +//输出信息:{"Extension":".cs","FileName":"DAL\\SYS\\ScheduleDtlDAL"} using System; using System.Text; using System.Linq; @@ -8,7 +8,7 @@ using System.Collections.Generic; using LeadDataBaseUtility; -namespace CleanMachine.DAL +namespace CleanMachine.DAL.SYS { /// /// @@ -26,7 +26,7 @@ namespace CleanMachine.DAL /// /// 存在 /// - public bool Exists(string ScheduleDtlId) + public bool Exists(int ScheduleDtlId) { string strSql = @"SELECT count(1) from SYS_SCHEDULE_DTL WHERE SCHEDULE_DTL_ID=@ScheduleDtlId "; return LeadDbHelperSQLite.ExecuteScalar(strSql, new { ScheduleDtlId }) > 0; @@ -35,7 +35,7 @@ namespace CleanMachine.DAL /// /// 添加一个数据 /// - public bool Add(CleanMachine.Model.ScheduleDtl model) + public bool Add(CleanMachine.Model.SYS.ScheduleDtl model) { string strSql = $@"INSERT INTO SYS_SCHEDULE_DTL (SCHEDULE_DTL_ID,SCHEDULE_CODE,SCHEDULE_NAME,BEGIN_TIME,END_TIME,USED_FLAG,DEL_FLAG,CREATE_BY,CREATE_TIME,UPDATE_BY,UPDATE_TIME,DATA_VERSION,REMARKS1,REMARKS2,REMARKS3,REMARKS4,REMARKS5) @@ -47,7 +47,7 @@ namespace CleanMachine.DAL /// /// 更新一个数据 /// - public bool Update(CleanMachine.Model.ScheduleDtl model) + public bool Update(CleanMachine.Model.SYS.ScheduleDtl model) { string strSql = $@"UPDATE SYS_SCHEDULE_DTL SET SCHEDULE_CODE=@ScheduleCode,SCHEDULE_NAME=@ScheduleName,BEGIN_TIME=@BeginTime,END_TIME=@EndTime,USED_FLAG=@UsedFlag,DEL_FLAG=@DelFlag,CREATE_BY=@CreateBy,CREATE_TIME=@CreateTime,UPDATE_BY=@UpdateBy,UPDATE_TIME=@UpdateTime,DATA_VERSION=@DataVersion,REMARKS1=@Remarks1,REMARKS2=@Remarks2,REMARKS3=@Remarks3,REMARKS4=@Remarks4,REMARKS5=@Remarks5 @@ -72,7 +72,7 @@ namespace CleanMachine.DAL /// /// 删除一个数据 /// - public bool Delete(string ScheduleDtlId) + public bool Delete(int ScheduleDtlId) { return this.Delete("SCHEDULE_DTL_ID=@ScheduleDtlId ", new { ScheduleDtlId }) ; } @@ -80,20 +80,20 @@ namespace CleanMachine.DAL /// /// 获得数据列表 /// - public IEnumerable GetList(string strWhere, object Params = null) + public IEnumerable GetList(string strWhere, object Params = null) { string strSql = $@"SELECT * FROM SYS_SCHEDULE_DTL "; if (strWhere.Trim() != "") { strSql += $" WHERE {strWhere}"; } - return LeadDbHelperSQLite.Query(strSql, Params); + return LeadDbHelperSQLite.Query(strSql, Params); } /// /// 获取一个对象 /// - public CleanMachine.Model.ScheduleDtl GetModel(string ScheduleDtlId) + public CleanMachine.Model.SYS.ScheduleDtl GetModel(int ScheduleDtlId) { return this.GetList("SCHEDULE_DTL_ID=@ScheduleDtlId", new { ScheduleDtlId }).FirstOrDefault(); } @@ -103,7 +103,7 @@ namespace CleanMachine.DAL /// /// 查询数据 /// - // public IEnumerable GetModelList(RuleGroup rule) + // public IEnumerable GetModelList(RuleGroup rule) // { // var tuper = _dbhelper.BuildRuleGroupStr(rule); // return this.GetList(tuper.where, tuper.Param); diff --git a/CleanMachine.DAL/UserDAL.cs b/CleanMachine.DAL/SYS/UserDAL.cs similarity index 68% rename from CleanMachine.DAL/UserDAL.cs rename to CleanMachine.DAL/SYS/UserDAL.cs index 0557f26..dfef936 100644 --- a/CleanMachine.DAL/UserDAL.cs +++ b/CleanMachine.DAL/SYS/UserDAL.cs @@ -1,6 +1,6 @@ //模板信息:{"Template":{"Language":"C#"}} -//输出信息:{"Extension":".cs","FileName":"DAL\\UserDAL"} +//输出信息:{"Extension":".cs","FileName":"DAL\\SYS\\UserDAL"} using System; using System.Text; using System.Linq; @@ -8,7 +8,7 @@ using System.Collections.Generic; using LeadDataBaseUtility; -namespace CleanMachine.DAL +namespace CleanMachine.DAL.SYS { /// /// @@ -26,7 +26,7 @@ namespace CleanMachine.DAL /// /// 存在 /// - public bool Exists(string UserId) + public bool Exists(int UserId) { string strSql = @"SELECT count(1) from SYS_USER WHERE USER_ID=@UserId "; return LeadDbHelperSQLite.ExecuteScalar(strSql, new { UserId }) > 0; @@ -35,7 +35,7 @@ namespace CleanMachine.DAL /// /// 添加一个数据 /// - public bool Add(CleanMachine.Model.User model) + public bool Add(CleanMachine.Model.SYS.User model) { string strSql = $@"INSERT INTO SYS_USER (USER_ID,USER_CODE,USER_NAME,PASSWORD,GENDER,ROLE_ID,SCHEDULE_CODE,USED_FLAG,DEL_FLAG,CREATE_BY,CREATE_TIME,UPDATE_BY,UPDATE_TIME,DATA_VERSION,REMARKS1,REMARKS2,REMARKS3,REMARKS4,REMARKS5) @@ -47,7 +47,7 @@ namespace CleanMachine.DAL /// /// 更新一个数据 /// - public bool Update(CleanMachine.Model.User model) + public bool Update(CleanMachine.Model.SYS.User model) { string strSql = $@"UPDATE SYS_USER SET USER_CODE=@UserCode,USER_NAME=@UserName,PASSWORD=@Password,GENDER=@Gender,ROLE_ID=@RoleId,SCHEDULE_CODE=@ScheduleCode,USED_FLAG=@UsedFlag,DEL_FLAG=@DelFlag,CREATE_BY=@CreateBy,CREATE_TIME=@CreateTime,UPDATE_BY=@UpdateBy,UPDATE_TIME=@UpdateTime,DATA_VERSION=@DataVersion,REMARKS1=@Remarks1,REMARKS2=@Remarks2,REMARKS3=@Remarks3,REMARKS4=@Remarks4,REMARKS5=@Remarks5 @@ -72,7 +72,7 @@ namespace CleanMachine.DAL /// /// 删除一个数据 /// - public bool Delete(string UserId) + public bool Delete(int UserId) { return this.Delete("USER_ID=@UserId ", new { UserId }) ; } @@ -80,30 +80,57 @@ namespace CleanMachine.DAL /// /// 获得数据列表 /// - public IEnumerable GetList(string strWhere, object Params = null) + public IEnumerable GetList(string strWhere, object Params = null) { string strSql = $@"SELECT * FROM SYS_USER "; if (strWhere.Trim() != "") { strSql += $" WHERE {strWhere}"; } - return LeadDbHelperSQLite.Query(strSql, Params); + return LeadDbHelperSQLite.Query(strSql, Params); } /// /// 获取一个对象 /// - public CleanMachine.Model.User GetModel(string UserId) + public CleanMachine.Model.SYS.User GetModel(int UserId) { return this.GetList("USER_ID=@UserId", new { UserId }).FirstOrDefault(); } #endregion + + + + /// + /// 删除一个数据 + /// + public bool Delete(string UserCode) + { + return this.Delete("USER_CODE=@UserCode ", new { UserCode }) ; + } + /// + /// 获取一个对象 + /// + public CleanMachine.Model.SYS.User GetModel(string UserCode) + { + return this.GetList("USER_CODE=@UserCode", new { UserCode }).QueryFirstOrDefault(); + } + + + /// + /// 存在 + /// + public bool Exists(string UserCode) + { + string strSql = @"SELECT count(1) from SYS_USER WHERE USER_CODE=@UserCode "; + return LeadDbHelperSQLite.ExecuteScalar(strSql, new { UserCode }) > 0; + } /// /// 查询数据 /// - // public IEnumerable GetModelList(RuleGroup rule) + // public IEnumerable GetModelList(RuleGroup rule) // { // var tuper = _dbhelper.BuildRuleGroupStr(rule); // return this.GetList(tuper.where, tuper.Param); diff --git a/CleanMachine.DAL/WorkingPalletDAL.cs b/CleanMachine.DAL/ZBK/WorkingPalletDAL.cs similarity index 82% rename from CleanMachine.DAL/WorkingPalletDAL.cs rename to CleanMachine.DAL/ZBK/WorkingPalletDAL.cs index eac5a85..54fdb74 100644 --- a/CleanMachine.DAL/WorkingPalletDAL.cs +++ b/CleanMachine.DAL/ZBK/WorkingPalletDAL.cs @@ -1,6 +1,6 @@ //模板信息:{"Template":{"Language":"C#"}} -//输出信息:{"Extension":".cs","FileName":"DAL\\WorkingPalletDAL"} +//输出信息:{"Extension":".cs","FileName":"DAL\\ZBK\\WorkingPalletDAL"} using System; using System.Text; using System.Linq; @@ -8,7 +8,7 @@ using System.Collections.Generic; using LeadDataBaseUtility; -namespace CleanMachine.DAL +namespace CleanMachine.DAL.ZBK { /// /// @@ -26,7 +26,7 @@ namespace CleanMachine.DAL /// /// 存在 /// - public bool Exists(string WorkingPalletId) + public bool Exists(int WorkingPalletId) { string strSql = @"SELECT count(1) from ZBK_WORKING_PALLET WHERE WORKING_PALLET_ID=@WorkingPalletId "; return LeadDbHelperSQLite.ExecuteScalar(strSql, new { WorkingPalletId }) > 0; @@ -35,7 +35,7 @@ namespace CleanMachine.DAL /// /// 添加一个数据 /// - public bool Add(CleanMachine.Model.WorkingPallet model) + public bool Add(CleanMachine.Model.ZBK.WorkingPallet model) { string strSql = $@"INSERT INTO ZBK_WORKING_PALLET (WORKING_PALLET_ID,WORKING_PALLET_CODE,WORKING_PALLET_DESC,WORKING_STATUS,CREATE_BY,CREATE_TIME,UPDATE_BY,UPDATE_TIME,DATA_VERSION,REMARKS1,REMARKS2,REMARKS3,REMARKS4,REMARKS5) @@ -47,7 +47,7 @@ namespace CleanMachine.DAL /// /// 更新一个数据 /// - public bool Update(CleanMachine.Model.WorkingPallet model) + public bool Update(CleanMachine.Model.ZBK.WorkingPallet model) { string strSql = $@"UPDATE ZBK_WORKING_PALLET SET WORKING_PALLET_CODE=@WorkingPalletCode,WORKING_PALLET_DESC=@WorkingPalletDesc,WORKING_STATUS=@WorkingStatus,CREATE_BY=@CreateBy,CREATE_TIME=@CreateTime,UPDATE_BY=@UpdateBy,UPDATE_TIME=@UpdateTime,DATA_VERSION=@DataVersion,REMARKS1=@Remarks1,REMARKS2=@Remarks2,REMARKS3=@Remarks3,REMARKS4=@Remarks4,REMARKS5=@Remarks5 @@ -72,7 +72,7 @@ namespace CleanMachine.DAL /// /// 删除一个数据 /// - public bool Delete(string WorkingPalletId) + public bool Delete(int WorkingPalletId) { return this.Delete("WORKING_PALLET_ID=@WorkingPalletId ", new { WorkingPalletId }) ; } @@ -80,20 +80,20 @@ namespace CleanMachine.DAL /// /// 获得数据列表 /// - public IEnumerable GetList(string strWhere, object Params = null) + public IEnumerable GetList(string strWhere, object Params = null) { string strSql = $@"SELECT * FROM ZBK_WORKING_PALLET "; if (strWhere.Trim() != "") { strSql += $" WHERE {strWhere}"; } - return LeadDbHelperSQLite.Query(strSql, Params); + return LeadDbHelperSQLite.Query(strSql, Params); } /// /// 获取一个对象 /// - public CleanMachine.Model.WorkingPallet GetModel(string WorkingPalletId) + public CleanMachine.Model.ZBK.WorkingPallet GetModel(int WorkingPalletId) { return this.GetList("WORKING_PALLET_ID=@WorkingPalletId", new { WorkingPalletId }).FirstOrDefault(); } @@ -103,7 +103,7 @@ namespace CleanMachine.DAL /// /// 查询数据 /// - // public IEnumerable GetModelList(RuleGroup rule) + // public IEnumerable GetModelList(RuleGroup rule) // { // var tuper = _dbhelper.BuildRuleGroupStr(rule); // return this.GetList(tuper.where, tuper.Param); diff --git a/CleanMachine.DAL/WorkingPalletDtlDAL.cs b/CleanMachine.DAL/ZBK/WorkingPalletDtlDAL.cs similarity index 83% rename from CleanMachine.DAL/WorkingPalletDtlDAL.cs rename to CleanMachine.DAL/ZBK/WorkingPalletDtlDAL.cs index 9e2530e..1c75da4 100644 --- a/CleanMachine.DAL/WorkingPalletDtlDAL.cs +++ b/CleanMachine.DAL/ZBK/WorkingPalletDtlDAL.cs @@ -1,6 +1,6 @@ //模板信息:{"Template":{"Language":"C#"}} -//输出信息:{"Extension":".cs","FileName":"DAL\\WorkingPalletDtlDAL"} +//输出信息:{"Extension":".cs","FileName":"DAL\\ZBK\\WorkingPalletDtlDAL"} using System; using System.Text; using System.Linq; @@ -8,7 +8,7 @@ using System.Collections.Generic; using LeadDataBaseUtility; -namespace CleanMachine.DAL +namespace CleanMachine.DAL.ZBK { /// /// @@ -26,7 +26,7 @@ namespace CleanMachine.DAL /// /// 存在 /// - public bool Exists(string WorkingPalletDtlId) + public bool Exists(int WorkingPalletDtlId) { string strSql = @"SELECT count(1) from ZBK_WORKING_PALLET_DTL WHERE WORKING_PALLET_DTL_ID=@WorkingPalletDtlId "; return LeadDbHelperSQLite.ExecuteScalar(strSql, new { WorkingPalletDtlId }) > 0; @@ -35,7 +35,7 @@ namespace CleanMachine.DAL /// /// 添加一个数据 /// - public bool Add(CleanMachine.Model.WorkingPalletDtl model) + public bool Add(CleanMachine.Model.ZBK.WorkingPalletDtl model) { string strSql = $@"INSERT INTO ZBK_WORKING_PALLET_DTL (WORKING_PALLET_DTL_ID,WORKING_PALLET_CODE,IR_CODE,SHEET_TYPE_CODE,INPUT_TIME,CLEAN_MODE_CODE,CONTAMINATION_TYPE_CODE,CONTAMINATION_DTL_CODE,CURRENT_NUMBER,OPERATE_USER_ID,OPERATE_USER_TIME,WORKING_DTL_STATUS,CREATE_BY,CREATE_TIME,UPDATE_BY,UPDATE_TIME,DATA_VERSION,REMARKS1,REMARKS2,REMARKS3,REMARKS4,REMARKS5) @@ -47,7 +47,7 @@ namespace CleanMachine.DAL /// /// 更新一个数据 /// - public bool Update(CleanMachine.Model.WorkingPalletDtl model) + public bool Update(CleanMachine.Model.ZBK.WorkingPalletDtl model) { string strSql = $@"UPDATE ZBK_WORKING_PALLET_DTL SET WORKING_PALLET_CODE=@WorkingPalletCode,IR_CODE=@IrCode,SHEET_TYPE_CODE=@SheetTypeCode,INPUT_TIME=@InputTime,CLEAN_MODE_CODE=@CleanModeCode,CONTAMINATION_TYPE_CODE=@ContaminationTypeCode,CONTAMINATION_DTL_CODE=@ContaminationDtlCode,CURRENT_NUMBER=@CurrentNumber,OPERATE_USER_ID=@OperateUserId,OPERATE_USER_TIME=@OperateUserTime,WORKING_DTL_STATUS=@WorkingDtlStatus,CREATE_BY=@CreateBy,CREATE_TIME=@CreateTime,UPDATE_BY=@UpdateBy,UPDATE_TIME=@UpdateTime,DATA_VERSION=@DataVersion,REMARKS1=@Remarks1,REMARKS2=@Remarks2,REMARKS3=@Remarks3,REMARKS4=@Remarks4,REMARKS5=@Remarks5 @@ -72,7 +72,7 @@ namespace CleanMachine.DAL /// /// 删除一个数据 /// - public bool Delete(string WorkingPalletDtlId) + public bool Delete(int WorkingPalletDtlId) { return this.Delete("WORKING_PALLET_DTL_ID=@WorkingPalletDtlId ", new { WorkingPalletDtlId }) ; } @@ -80,20 +80,20 @@ namespace CleanMachine.DAL /// /// 获得数据列表 /// - public IEnumerable GetList(string strWhere, object Params = null) + public IEnumerable GetList(string strWhere, object Params = null) { string strSql = $@"SELECT * FROM ZBK_WORKING_PALLET_DTL "; if (strWhere.Trim() != "") { strSql += $" WHERE {strWhere}"; } - return LeadDbHelperSQLite.Query(strSql, Params); + return LeadDbHelperSQLite.Query(strSql, Params); } /// /// 获取一个对象 /// - public CleanMachine.Model.WorkingPalletDtl GetModel(string WorkingPalletDtlId) + public CleanMachine.Model.ZBK.WorkingPalletDtl GetModel(int WorkingPalletDtlId) { return this.GetList("WORKING_PALLET_DTL_ID=@WorkingPalletDtlId", new { WorkingPalletDtlId }).FirstOrDefault(); } @@ -103,7 +103,7 @@ namespace CleanMachine.DAL /// /// 查询数据 /// - // public IEnumerable GetModelList(RuleGroup rule) + // public IEnumerable GetModelList(RuleGroup rule) // { // var tuper = _dbhelper.BuildRuleGroupStr(rule); // return this.GetList(tuper.where, tuper.Param); diff --git a/CleanMachine.Model/BAS/CleanMode.cs b/CleanMachine.Model/BAS/CleanMode.cs new file mode 100644 index 0000000..c22bee1 --- /dev/null +++ b/CleanMachine.Model/BAS/CleanMode.cs @@ -0,0 +1,169 @@ + + +//模板信息:{"Template":{"Language":"C#"}} +//输出信息:{"Extension":".cs","FileName":"Model\\BAS\\CleanMode"} +using System; +using System.Text; +using System.Linq; +using System.Collections.Generic; +namespace CleanMachine.Model.BAS +{ + /// + /// + /// + public class CleanMode + { + + private int cleanModeId; + private string cleanModeCode; + private string cleanModeName; + private int usedFlag; + private int delFlag; + private int createBy; + private DateTime createTime; + private int updateBy; + private DateTime updateTime; + private int dataVersion; + private string remarks1; + private string remarks2; + private string remarks3; + private string remarks4; + private string remarks5; + + /// + /// + /// + public int CleanModeId + { + get { return this.cleanModeId; } + set { this.cleanModeId=value;} + } + + /// + /// + /// + public string CleanModeCode + { + get { return this.cleanModeCode; } + set { this.cleanModeCode=value;} + } + + /// + /// + /// + public string CleanModeName + { + get { return this.cleanModeName; } + set { this.cleanModeName=value;} + } + + /// + /// + /// + public int UsedFlag + { + get { return this.usedFlag; } + set { this.usedFlag=value;} + } + + /// + /// + /// + public int DelFlag + { + get { return this.delFlag; } + set { this.delFlag=value;} + } + + /// + /// + /// + public int CreateBy + { + get { return this.createBy; } + set { this.createBy=value;} + } + + /// + /// + /// + public DateTime CreateTime + { + get { return this.createTime; } + set { this.createTime=value;} + } + + /// + /// + /// + public int UpdateBy + { + get { return this.updateBy; } + set { this.updateBy=value;} + } + + /// + /// + /// + public DateTime UpdateTime + { + get { return this.updateTime; } + set { this.updateTime=value;} + } + + /// + /// + /// + public int DataVersion + { + get { return this.dataVersion; } + set { this.dataVersion=value;} + } + + /// + /// + /// + public string Remarks1 + { + get { return this.remarks1; } + set { this.remarks1=value;} + } + + /// + /// + /// + public string Remarks2 + { + get { return this.remarks2; } + set { this.remarks2=value;} + } + + /// + /// + /// + public string Remarks3 + { + get { return this.remarks3; } + set { this.remarks3=value;} + } + + /// + /// + /// + public string Remarks4 + { + get { return this.remarks4; } + set { this.remarks4=value;} + } + + /// + /// + /// + public string Remarks5 + { + get { return this.remarks5; } + set { this.remarks5=value;} + } + + } +} diff --git a/CleanMachine.Model/BAS/ContaminationDtl.cs b/CleanMachine.Model/BAS/ContaminationDtl.cs new file mode 100644 index 0000000..277b000 --- /dev/null +++ b/CleanMachine.Model/BAS/ContaminationDtl.cs @@ -0,0 +1,179 @@ + + +//模板信息:{"Template":{"Language":"C#"}} +//输出信息:{"Extension":".cs","FileName":"Model\\BAS\\ContaminationDtl"} +using System; +using System.Text; +using System.Linq; +using System.Collections.Generic; +namespace CleanMachine.Model.BAS +{ + /// + /// + /// + public class ContaminationDtl + { + + private int contaminationDtlId; + private string contaminationTypeCode; + private string contaminationDtlCode; + private string contaminationDtlName; + private int usedFlag; + private int delFlag; + private int createBy; + private DateTime createTime; + private int updateBy; + private DateTime updateTime; + private int dataVersion; + private string remarks1; + private string remarks2; + private string remarks3; + private string remarks4; + private string remarks5; + + /// + /// + /// + public int ContaminationDtlId + { + get { return this.contaminationDtlId; } + set { this.contaminationDtlId=value;} + } + + /// + /// + /// + public string ContaminationTypeCode + { + get { return this.contaminationTypeCode; } + set { this.contaminationTypeCode=value;} + } + + /// + /// + /// + public string ContaminationDtlCode + { + get { return this.contaminationDtlCode; } + set { this.contaminationDtlCode=value;} + } + + /// + /// + /// + public string ContaminationDtlName + { + get { return this.contaminationDtlName; } + set { this.contaminationDtlName=value;} + } + + /// + /// + /// + public int UsedFlag + { + get { return this.usedFlag; } + set { this.usedFlag=value;} + } + + /// + /// + /// + public int DelFlag + { + get { return this.delFlag; } + set { this.delFlag=value;} + } + + /// + /// + /// + public int CreateBy + { + get { return this.createBy; } + set { this.createBy=value;} + } + + /// + /// + /// + public DateTime CreateTime + { + get { return this.createTime; } + set { this.createTime=value;} + } + + /// + /// + /// + public int UpdateBy + { + get { return this.updateBy; } + set { this.updateBy=value;} + } + + /// + /// + /// + public DateTime UpdateTime + { + get { return this.updateTime; } + set { this.updateTime=value;} + } + + /// + /// + /// + public int DataVersion + { + get { return this.dataVersion; } + set { this.dataVersion=value;} + } + + /// + /// + /// + public string Remarks1 + { + get { return this.remarks1; } + set { this.remarks1=value;} + } + + /// + /// + /// + public string Remarks2 + { + get { return this.remarks2; } + set { this.remarks2=value;} + } + + /// + /// + /// + public string Remarks3 + { + get { return this.remarks3; } + set { this.remarks3=value;} + } + + /// + /// + /// + public string Remarks4 + { + get { return this.remarks4; } + set { this.remarks4=value;} + } + + /// + /// + /// + public string Remarks5 + { + get { return this.remarks5; } + set { this.remarks5=value;} + } + + } +} diff --git a/CleanMachine.Model/BAS/ContaminationType.cs b/CleanMachine.Model/BAS/ContaminationType.cs new file mode 100644 index 0000000..62ae043 --- /dev/null +++ b/CleanMachine.Model/BAS/ContaminationType.cs @@ -0,0 +1,179 @@ + + +//模板信息:{"Template":{"Language":"C#"}} +//输出信息:{"Extension":".cs","FileName":"Model\\BAS\\ContaminationType"} +using System; +using System.Text; +using System.Linq; +using System.Collections.Generic; +namespace CleanMachine.Model.BAS +{ + /// + /// + /// + public class ContaminationType + { + + private int contaminationTypeId; + private string contaminationTypeCode; + private string contaminationTypeName; + private string cleanModeCode; + private int usedFlag; + private int delFlag; + private int createBy; + private DateTime createTime; + private int updateBy; + private DateTime updateTime; + private int dataVersion; + private string remarks1; + private string remarks2; + private string remarks3; + private string remarks4; + private string remarks5; + + /// + /// + /// + public int ContaminationTypeId + { + get { return this.contaminationTypeId; } + set { this.contaminationTypeId=value;} + } + + /// + /// + /// + public string ContaminationTypeCode + { + get { return this.contaminationTypeCode; } + set { this.contaminationTypeCode=value;} + } + + /// + /// + /// + public string ContaminationTypeName + { + get { return this.contaminationTypeName; } + set { this.contaminationTypeName=value;} + } + + /// + /// + /// + public string CleanModeCode + { + get { return this.cleanModeCode; } + set { this.cleanModeCode=value;} + } + + /// + /// + /// + public int UsedFlag + { + get { return this.usedFlag; } + set { this.usedFlag=value;} + } + + /// + /// + /// + public int DelFlag + { + get { return this.delFlag; } + set { this.delFlag=value;} + } + + /// + /// + /// + public int CreateBy + { + get { return this.createBy; } + set { this.createBy=value;} + } + + /// + /// + /// + public DateTime CreateTime + { + get { return this.createTime; } + set { this.createTime=value;} + } + + /// + /// + /// + public int UpdateBy + { + get { return this.updateBy; } + set { this.updateBy=value;} + } + + /// + /// + /// + public DateTime UpdateTime + { + get { return this.updateTime; } + set { this.updateTime=value;} + } + + /// + /// + /// + public int DataVersion + { + get { return this.dataVersion; } + set { this.dataVersion=value;} + } + + /// + /// + /// + public string Remarks1 + { + get { return this.remarks1; } + set { this.remarks1=value;} + } + + /// + /// + /// + public string Remarks2 + { + get { return this.remarks2; } + set { this.remarks2=value;} + } + + /// + /// + /// + public string Remarks3 + { + get { return this.remarks3; } + set { this.remarks3=value;} + } + + /// + /// + /// + public string Remarks4 + { + get { return this.remarks4; } + set { this.remarks4=value;} + } + + /// + /// + /// + public string Remarks5 + { + get { return this.remarks5; } + set { this.remarks5=value;} + } + + } +} diff --git a/CleanMachine.Model/BAS/PlcItem.cs b/CleanMachine.Model/BAS/PlcItem.cs new file mode 100644 index 0000000..7520e86 --- /dev/null +++ b/CleanMachine.Model/BAS/PlcItem.cs @@ -0,0 +1,239 @@ + + +//模板信息:{"Template":{"Language":"C#"}} +//输出信息:{"Extension":".cs","FileName":"Model\\BAS\\PlcItem"} +using System; +using System.Text; +using System.Linq; +using System.Collections.Generic; +namespace CleanMachine.Model.BAS +{ + /// + /// + /// + public class PlcItem + { + + private int plcItemId; + private string plcItemCode; + private string plcItemName; + private int plcItemType; + private int plcItemDataType; + private int plcItemDataLength; + private string plcItemPriAddress; + private string plcItemModbusAddress; + private string plcItemDeviationAddress; + private string plcItemValue; + private int usedFlag; + private int delFlag; + private int createBy; + private DateTime createTime; + private int updateBy; + private DateTime updateTime; + private int dataVersion; + private string remarks1; + private string remarks2; + private string remarks3; + private string remarks4; + private string remarks5; + + /// + /// + /// + public int PlcItemId + { + get { return this.plcItemId; } + set { this.plcItemId=value;} + } + + /// + /// + /// + public string PlcItemCode + { + get { return this.plcItemCode; } + set { this.plcItemCode=value;} + } + + /// + /// + /// + public string PlcItemName + { + get { return this.plcItemName; } + set { this.plcItemName=value;} + } + + /// + /// + /// + public int PlcItemType + { + get { return this.plcItemType; } + set { this.plcItemType=value;} + } + + /// + /// + /// + public int PlcItemDataType + { + get { return this.plcItemDataType; } + set { this.plcItemDataType=value;} + } + + /// + /// + /// + public int PlcItemDataLength + { + get { return this.plcItemDataLength; } + set { this.plcItemDataLength=value;} + } + + /// + /// + /// + public string PlcItemPriAddress + { + get { return this.plcItemPriAddress; } + set { this.plcItemPriAddress=value;} + } + + /// + /// + /// + public string PlcItemModbusAddress + { + get { return this.plcItemModbusAddress; } + set { this.plcItemModbusAddress=value;} + } + + /// + /// + /// + public string PlcItemDeviationAddress + { + get { return this.plcItemDeviationAddress; } + set { this.plcItemDeviationAddress=value;} + } + + /// + /// + /// + public string PlcItemValue + { + get { return this.plcItemValue; } + set { this.plcItemValue=value;} + } + + /// + /// + /// + public int UsedFlag + { + get { return this.usedFlag; } + set { this.usedFlag=value;} + } + + /// + /// + /// + public int DelFlag + { + get { return this.delFlag; } + set { this.delFlag=value;} + } + + /// + /// + /// + public int CreateBy + { + get { return this.createBy; } + set { this.createBy=value;} + } + + /// + /// + /// + public DateTime CreateTime + { + get { return this.createTime; } + set { this.createTime=value;} + } + + /// + /// + /// + public int UpdateBy + { + get { return this.updateBy; } + set { this.updateBy=value;} + } + + /// + /// + /// + public DateTime UpdateTime + { + get { return this.updateTime; } + set { this.updateTime=value;} + } + + /// + /// + /// + public int DataVersion + { + get { return this.dataVersion; } + set { this.dataVersion=value;} + } + + /// + /// + /// + public string Remarks1 + { + get { return this.remarks1; } + set { this.remarks1=value;} + } + + /// + /// + /// + public string Remarks2 + { + get { return this.remarks2; } + set { this.remarks2=value;} + } + + /// + /// + /// + public string Remarks3 + { + get { return this.remarks3; } + set { this.remarks3=value;} + } + + /// + /// + /// + public string Remarks4 + { + get { return this.remarks4; } + set { this.remarks4=value;} + } + + /// + /// + /// + public string Remarks5 + { + get { return this.remarks5; } + set { this.remarks5=value;} + } + + } +} diff --git a/CleanMachine.Model/BAS/SheetType.cs b/CleanMachine.Model/BAS/SheetType.cs new file mode 100644 index 0000000..a744bad --- /dev/null +++ b/CleanMachine.Model/BAS/SheetType.cs @@ -0,0 +1,169 @@ + + +//模板信息:{"Template":{"Language":"C#"}} +//输出信息:{"Extension":".cs","FileName":"Model\\BAS\\SheetType"} +using System; +using System.Text; +using System.Linq; +using System.Collections.Generic; +namespace CleanMachine.Model.BAS +{ + /// + /// + /// + public class SheetType + { + + private int sheetTypeId; + private string sheetTypeCode; + private string sheetTypeName; + private int usedFlag; + private int delFlag; + private int createBy; + private DateTime createTime; + private int updateBy; + private DateTime updateTime; + private int dataVersion; + private string remarks1; + private string remarks2; + private string remarks3; + private string remarks4; + private string remarks5; + + /// + /// + /// + public int SheetTypeId + { + get { return this.sheetTypeId; } + set { this.sheetTypeId=value;} + } + + /// + /// + /// + public string SheetTypeCode + { + get { return this.sheetTypeCode; } + set { this.sheetTypeCode=value;} + } + + /// + /// + /// + public string SheetTypeName + { + get { return this.sheetTypeName; } + set { this.sheetTypeName=value;} + } + + /// + /// + /// + public int UsedFlag + { + get { return this.usedFlag; } + set { this.usedFlag=value;} + } + + /// + /// + /// + public int DelFlag + { + get { return this.delFlag; } + set { this.delFlag=value;} + } + + /// + /// + /// + public int CreateBy + { + get { return this.createBy; } + set { this.createBy=value;} + } + + /// + /// + /// + public DateTime CreateTime + { + get { return this.createTime; } + set { this.createTime=value;} + } + + /// + /// + /// + public int UpdateBy + { + get { return this.updateBy; } + set { this.updateBy=value;} + } + + /// + /// + /// + public DateTime UpdateTime + { + get { return this.updateTime; } + set { this.updateTime=value;} + } + + /// + /// + /// + public int DataVersion + { + get { return this.dataVersion; } + set { this.dataVersion=value;} + } + + /// + /// + /// + public string Remarks1 + { + get { return this.remarks1; } + set { this.remarks1=value;} + } + + /// + /// + /// + public string Remarks2 + { + get { return this.remarks2; } + set { this.remarks2=value;} + } + + /// + /// + /// + public string Remarks3 + { + get { return this.remarks3; } + set { this.remarks3=value;} + } + + /// + /// + /// + public string Remarks4 + { + get { return this.remarks4; } + set { this.remarks4=value;} + } + + /// + /// + /// + public string Remarks5 + { + get { return this.remarks5; } + set { this.remarks5=value;} + } + + } +} diff --git a/CleanMachine.Model/BAS/Warning.cs b/CleanMachine.Model/BAS/Warning.cs new file mode 100644 index 0000000..3b8cb2b --- /dev/null +++ b/CleanMachine.Model/BAS/Warning.cs @@ -0,0 +1,199 @@ + + +//模板信息:{"Template":{"Language":"C#"}} +//输出信息:{"Extension":".cs","FileName":"Model\\BAS\\Warning"} +using System; +using System.Text; +using System.Linq; +using System.Collections.Generic; +namespace CleanMachine.Model.BAS +{ + /// + /// + /// + public class Warning + { + + private int warningId; + private string warningCode; + private string warningName; + private string plcItemCode; + private string warningType; + private string warningMessage; + private int usedFlag; + private int delFlag; + private int createBy; + private DateTime createTime; + private int updateBy; + private DateTime updateTime; + private int dataVersion; + private string remarks1; + private string remarks2; + private string remarks3; + private string remarks4; + private string remarks5; + + /// + /// + /// + public int WarningId + { + get { return this.warningId; } + set { this.warningId=value;} + } + + /// + /// + /// + public string WarningCode + { + get { return this.warningCode; } + set { this.warningCode=value;} + } + + /// + /// + /// + public string WarningName + { + get { return this.warningName; } + set { this.warningName=value;} + } + + /// + /// + /// + public string PlcItemCode + { + get { return this.plcItemCode; } + set { this.plcItemCode=value;} + } + + /// + /// + /// + public string WarningType + { + get { return this.warningType; } + set { this.warningType=value;} + } + + /// + /// + /// + public string WarningMessage + { + get { return this.warningMessage; } + set { this.warningMessage=value;} + } + + /// + /// + /// + public int UsedFlag + { + get { return this.usedFlag; } + set { this.usedFlag=value;} + } + + /// + /// + /// + public int DelFlag + { + get { return this.delFlag; } + set { this.delFlag=value;} + } + + /// + /// + /// + public int CreateBy + { + get { return this.createBy; } + set { this.createBy=value;} + } + + /// + /// + /// + public DateTime CreateTime + { + get { return this.createTime; } + set { this.createTime=value;} + } + + /// + /// + /// + public int UpdateBy + { + get { return this.updateBy; } + set { this.updateBy=value;} + } + + /// + /// + /// + public DateTime UpdateTime + { + get { return this.updateTime; } + set { this.updateTime=value;} + } + + /// + /// + /// + public int DataVersion + { + get { return this.dataVersion; } + set { this.dataVersion=value;} + } + + /// + /// + /// + public string Remarks1 + { + get { return this.remarks1; } + set { this.remarks1=value;} + } + + /// + /// + /// + public string Remarks2 + { + get { return this.remarks2; } + set { this.remarks2=value;} + } + + /// + /// + /// + public string Remarks3 + { + get { return this.remarks3; } + set { this.remarks3=value;} + } + + /// + /// + /// + public string Remarks4 + { + get { return this.remarks4; } + set { this.remarks4=value;} + } + + /// + /// + /// + public string Remarks5 + { + get { return this.remarks5; } + set { this.remarks5=value;} + } + + } +} diff --git a/CleanMachine.Model/CM/LastPattleNum.cs b/CleanMachine.Model/CM/LastPattleNum.cs new file mode 100644 index 0000000..1c2b7b3 --- /dev/null +++ b/CleanMachine.Model/CM/LastPattleNum.cs @@ -0,0 +1,39 @@ + + +//模板信息:{"Template":{"Language":"C#"}} +//输出信息:{"Extension":".cs","FileName":"Model\\CM\\LastPattleNum"} +using System; +using System.Text; +using System.Linq; +using System.Collections.Generic; +namespace CleanMachine.Model.CM +{ + /// + /// + /// + public class LastPattleNum + { + + private string key; + private int value; + + /// + /// + /// + public string Key + { + get { return this.key; } + set { this.key=value;} + } + + /// + /// + /// + public int Value + { + get { return this.value; } + set { this.value=value;} + } + + } +} diff --git a/CleanMachine.Model/CM/WarningLog.cs b/CleanMachine.Model/CM/WarningLog.cs new file mode 100644 index 0000000..9da91a2 --- /dev/null +++ b/CleanMachine.Model/CM/WarningLog.cs @@ -0,0 +1,219 @@ + + +//模板信息:{"Template":{"Language":"C#"}} +//输出信息:{"Extension":".cs","FileName":"Model\\CM\\WarningLog"} +using System; +using System.Text; +using System.Linq; +using System.Collections.Generic; +namespace CleanMachine.Model.CM +{ + /// + /// + /// + public class WarningLog + { + + private int warningLogId; + private string warningCode; + private string warningName; + private string warningType; + private string warningMessage; + private DateTime warningTime; + private string plcItemCode; + private int waringStatus; + private int warningHandleResult; + private DateTime warningHandleTime; + private int createBy; + private DateTime createTime; + private int updateBy; + private DateTime updateTime; + private int dataVersion; + private string remarks1; + private string remarks2; + private string remarks3; + private string remarks4; + private string remarks5; + + /// + /// + /// + public int WarningLogId + { + get { return this.warningLogId; } + set { this.warningLogId=value;} + } + + /// + /// + /// + public string WarningCode + { + get { return this.warningCode; } + set { this.warningCode=value;} + } + + /// + /// + /// + public string WarningName + { + get { return this.warningName; } + set { this.warningName=value;} + } + + /// + /// + /// + public string WarningType + { + get { return this.warningType; } + set { this.warningType=value;} + } + + /// + /// + /// + public string WarningMessage + { + get { return this.warningMessage; } + set { this.warningMessage=value;} + } + + /// + /// + /// + public DateTime WarningTime + { + get { return this.warningTime; } + set { this.warningTime=value;} + } + + /// + /// + /// + public string PlcItemCode + { + get { return this.plcItemCode; } + set { this.plcItemCode=value;} + } + + /// + /// + /// + public int WaringStatus + { + get { return this.waringStatus; } + set { this.waringStatus=value;} + } + + /// + /// + /// + public int WarningHandleResult + { + get { return this.warningHandleResult; } + set { this.warningHandleResult=value;} + } + + /// + /// + /// + public DateTime WarningHandleTime + { + get { return this.warningHandleTime; } + set { this.warningHandleTime=value;} + } + + /// + /// + /// + public int CreateBy + { + get { return this.createBy; } + set { this.createBy=value;} + } + + /// + /// + /// + public DateTime CreateTime + { + get { return this.createTime; } + set { this.createTime=value;} + } + + /// + /// + /// + public int UpdateBy + { + get { return this.updateBy; } + set { this.updateBy=value;} + } + + /// + /// + /// + public DateTime UpdateTime + { + get { return this.updateTime; } + set { this.updateTime=value;} + } + + /// + /// + /// + public int DataVersion + { + get { return this.dataVersion; } + set { this.dataVersion=value;} + } + + /// + /// + /// + public string Remarks1 + { + get { return this.remarks1; } + set { this.remarks1=value;} + } + + /// + /// + /// + public string Remarks2 + { + get { return this.remarks2; } + set { this.remarks2=value;} + } + + /// + /// + /// + public string Remarks3 + { + get { return this.remarks3; } + set { this.remarks3=value;} + } + + /// + /// + /// + public string Remarks4 + { + get { return this.remarks4; } + set { this.remarks4=value;} + } + + /// + /// + /// + public string Remarks5 + { + get { return this.remarks5; } + set { this.remarks5=value;} + } + + } +} diff --git a/CleanMachine.Model/CM/WorkingPallet.cs b/CleanMachine.Model/CM/WorkingPallet.cs new file mode 100644 index 0000000..e528149 --- /dev/null +++ b/CleanMachine.Model/CM/WorkingPallet.cs @@ -0,0 +1,159 @@ + + +//模板信息:{"Template":{"Language":"C#"}} +//输出信息:{"Extension":".cs","FileName":"Model\\CM\\WorkingPallet"} +using System; +using System.Text; +using System.Linq; +using System.Collections.Generic; +namespace CleanMachine.Model.CM +{ + /// + /// + /// + public class WorkingPallet + { + + private int workingPalletId; + private string workingPalletCode; + private string workingPalletDesc; + private int workingStatus; + private int createBy; + private DateTime createTime; + private int updateBy; + private DateTime updateTime; + private int dataVersion; + private string remarks1; + private string remarks2; + private string remarks3; + private string remarks4; + private string remarks5; + + /// + /// + /// + public int WorkingPalletId + { + get { return this.workingPalletId; } + set { this.workingPalletId=value;} + } + + /// + /// + /// + public string WorkingPalletCode + { + get { return this.workingPalletCode; } + set { this.workingPalletCode=value;} + } + + /// + /// + /// + public string WorkingPalletDesc + { + get { return this.workingPalletDesc; } + set { this.workingPalletDesc=value;} + } + + /// + /// + /// + public int WorkingStatus + { + get { return this.workingStatus; } + set { this.workingStatus=value;} + } + + /// + /// + /// + public int CreateBy + { + get { return this.createBy; } + set { this.createBy=value;} + } + + /// + /// + /// + public DateTime CreateTime + { + get { return this.createTime; } + set { this.createTime=value;} + } + + /// + /// + /// + public int UpdateBy + { + get { return this.updateBy; } + set { this.updateBy=value;} + } + + /// + /// + /// + public DateTime UpdateTime + { + get { return this.updateTime; } + set { this.updateTime=value;} + } + + /// + /// + /// + public int DataVersion + { + get { return this.dataVersion; } + set { this.dataVersion=value;} + } + + /// + /// + /// + public string Remarks1 + { + get { return this.remarks1; } + set { this.remarks1=value;} + } + + /// + /// + /// + public string Remarks2 + { + get { return this.remarks2; } + set { this.remarks2=value;} + } + + /// + /// + /// + public string Remarks3 + { + get { return this.remarks3; } + set { this.remarks3=value;} + } + + /// + /// + /// + public string Remarks4 + { + get { return this.remarks4; } + set { this.remarks4=value;} + } + + /// + /// + /// + public string Remarks5 + { + get { return this.remarks5; } + set { this.remarks5=value;} + } + + } +} diff --git a/CleanMachine.Model/CM/WorkingPalletDtl.cs b/CleanMachine.Model/CM/WorkingPalletDtl.cs new file mode 100644 index 0000000..3e2dba1 --- /dev/null +++ b/CleanMachine.Model/CM/WorkingPalletDtl.cs @@ -0,0 +1,239 @@ + + +//模板信息:{"Template":{"Language":"C#"}} +//输出信息:{"Extension":".cs","FileName":"Model\\CM\\WorkingPalletDtl"} +using System; +using System.Text; +using System.Linq; +using System.Collections.Generic; +namespace CleanMachine.Model.CM +{ + /// + /// + /// + public class WorkingPalletDtl + { + + private int workingPalletDtlId; + private string workingPalletCode; + private string irCode; + private string sheetTypeCode; + private DateTime inputTime; + private string cleanModeCode; + private string contaminationTypeCode; + private string contaminationDtlCode; + private int currentNumber; + private int operateUserId; + private DateTime operateUserTime; + private int workingDtlStatus; + private int createBy; + private DateTime createTime; + private int updateBy; + private DateTime updateTime; + private int dataVersion; + private string remarks1; + private string remarks2; + private string remarks3; + private string remarks4; + private string remarks5; + + /// + /// + /// + public int WorkingPalletDtlId + { + get { return this.workingPalletDtlId; } + set { this.workingPalletDtlId=value;} + } + + /// + /// + /// + public string WorkingPalletCode + { + get { return this.workingPalletCode; } + set { this.workingPalletCode=value;} + } + + /// + /// + /// + public string IrCode + { + get { return this.irCode; } + set { this.irCode=value;} + } + + /// + /// + /// + public string SheetTypeCode + { + get { return this.sheetTypeCode; } + set { this.sheetTypeCode=value;} + } + + /// + /// + /// + public DateTime InputTime + { + get { return this.inputTime; } + set { this.inputTime=value;} + } + + /// + /// + /// + public string CleanModeCode + { + get { return this.cleanModeCode; } + set { this.cleanModeCode=value;} + } + + /// + /// + /// + public string ContaminationTypeCode + { + get { return this.contaminationTypeCode; } + set { this.contaminationTypeCode=value;} + } + + /// + /// + /// + public string ContaminationDtlCode + { + get { return this.contaminationDtlCode; } + set { this.contaminationDtlCode=value;} + } + + /// + /// + /// + public int CurrentNumber + { + get { return this.currentNumber; } + set { this.currentNumber=value;} + } + + /// + /// + /// + public int OperateUserId + { + get { return this.operateUserId; } + set { this.operateUserId=value;} + } + + /// + /// + /// + public DateTime OperateUserTime + { + get { return this.operateUserTime; } + set { this.operateUserTime=value;} + } + + /// + /// + /// + public int WorkingDtlStatus + { + get { return this.workingDtlStatus; } + set { this.workingDtlStatus=value;} + } + + /// + /// + /// + public int CreateBy + { + get { return this.createBy; } + set { this.createBy=value;} + } + + /// + /// + /// + public DateTime CreateTime + { + get { return this.createTime; } + set { this.createTime=value;} + } + + /// + /// + /// + public int UpdateBy + { + get { return this.updateBy; } + set { this.updateBy=value;} + } + + /// + /// + /// + public DateTime UpdateTime + { + get { return this.updateTime; } + set { this.updateTime=value;} + } + + /// + /// + /// + public int DataVersion + { + get { return this.dataVersion; } + set { this.dataVersion=value;} + } + + /// + /// + /// + public string Remarks1 + { + get { return this.remarks1; } + set { this.remarks1=value;} + } + + /// + /// + /// + public string Remarks2 + { + get { return this.remarks2; } + set { this.remarks2=value;} + } + + /// + /// + /// + public string Remarks3 + { + get { return this.remarks3; } + set { this.remarks3=value;} + } + + /// + /// + /// + public string Remarks4 + { + get { return this.remarks4; } + set { this.remarks4=value;} + } + + /// + /// + /// + public string Remarks5 + { + get { return this.remarks5; } + set { this.remarks5=value;} + } + + } +} diff --git a/CleanMachine.Model/CleanMode.cs b/CleanMachine.Model/CleanMode.cs deleted file mode 100644 index 5204911..0000000 --- a/CleanMachine.Model/CleanMode.cs +++ /dev/null @@ -1,48 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace CleanMachine.Model -{ - /// - /// - /// - public class CleanMode: BaseModel - { - - private string cleanModeId; - private string cleanModeCode; - private string cleanModeName; - - - /// - /// - /// - public string CleanModeId - { - get { return this.cleanModeId; } - set { this.cleanModeId = value; } - } - - /// - /// - /// - public string CleanModeCode - { - get { return this.cleanModeCode; } - set { this.cleanModeCode = value; } - } - - /// - /// - /// - public string CleanModeName - { - get { return this.cleanModeName; } - set { this.cleanModeName = value; } - } - - - - } -} diff --git a/CleanMachine.Model/ContaminationDtl.cs b/CleanMachine.Model/ContaminationDtl.cs deleted file mode 100644 index e1800bc..0000000 --- a/CleanMachine.Model/ContaminationDtl.cs +++ /dev/null @@ -1,57 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace CleanMachine.Model -{ - /// - /// 污染明细 - /// - public class ContaminationDtl: BaseModel - { - - private string contaminationDtlId; - private string contaminationTypeCode; - private string contaminationDtlCode; - private string contaminationDtlName; - - - /// - /// - /// - public string ContaminationDtlId - { - get { return this.contaminationDtlId; } - set { this.contaminationDtlId = value; } - } - - /// - /// - /// - public string ContaminationTypeCode - { - get { return this.contaminationTypeCode; } - set { this.contaminationTypeCode = value; } - } - - /// - /// - /// - public string ContaminationDtlCode - { - get { return this.contaminationDtlCode; } - set { this.contaminationDtlCode = value; } - } - - /// - /// - /// - public string ContaminationDtlName - { - get { return this.contaminationDtlName; } - set { this.contaminationDtlName = value; } - } - - - } -} diff --git a/CleanMachine.Model/ContaminationType.cs b/CleanMachine.Model/ContaminationType.cs deleted file mode 100644 index efa88e5..0000000 --- a/CleanMachine.Model/ContaminationType.cs +++ /dev/null @@ -1,58 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace CleanMachine.Model -{ - /// - /// 污染类型 - /// - public class ContaminationType:BaseModel - { - - private string contaminationTypeId; - private string contaminationTypeCode; - private string contaminationTypeName; - private string cleanModeCode; - - - /// - /// - /// - public string ContaminationTypeId - { - get { return this.contaminationTypeId; } - set { this.contaminationTypeId = value; } - } - - /// - /// - /// - public string ContaminationTypeCode - { - get { return this.contaminationTypeCode; } - set { this.contaminationTypeCode = value; } - } - - /// - /// - /// - public string ContaminationTypeName - { - get { return this.contaminationTypeName; } - set { this.contaminationTypeName = value; } - } - - /// - /// - /// - public string CleanModeCode - { - get { return this.cleanModeCode; } - set { this.cleanModeCode = value; } - } - - - - } -} diff --git a/CleanMachine.Model/Language.cs b/CleanMachine.Model/Language.cs deleted file mode 100644 index 93e5249..0000000 --- a/CleanMachine.Model/Language.cs +++ /dev/null @@ -1,48 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace CleanMachine.Model -{ - /// - /// - /// - public class Language:BaseModel - { - - private string languageId; - private string languageCode; - private string languageName; - - - /// - /// - /// - public string LanguageId - { - get { return this.languageId; } - set { this.languageId = value; } - } - - /// - /// - /// - public string LanguageCode - { - get { return this.languageCode; } - set { this.languageCode = value; } - } - - /// - /// - /// - public string LanguageName - { - get { return this.languageName; } - set { this.languageName = value; } - } - - - - } -} diff --git a/CleanMachine.Model/LanguageControl.cs b/CleanMachine.Model/LanguageControl.cs deleted file mode 100644 index 43a087e..0000000 --- a/CleanMachine.Model/LanguageControl.cs +++ /dev/null @@ -1,77 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace CleanMachine.Model -{ - /// - /// - /// - public class LanguageControl : BaseModel - { - - private string languageControlId; - private string languageCode; - private string formCode; - private string controlCode; - private string controlName; - private string controlType; - - /// - /// - /// - public string LanguageControlId - { - get { return this.languageControlId; } - set { this.languageControlId = value; } - } - - /// - /// - /// - public string LanguageCode - { - get { return this.languageCode; } - set { this.languageCode = value; } - } - - /// - /// - /// - public string FormCode - { - get { return this.formCode; } - set { this.formCode = value; } - } - - /// - /// - /// - public string ControlCode - { - get { return this.controlCode; } - set { this.controlCode = value; } - } - - /// - /// - /// - public string ControlName - { - get { return this.controlName; } - set { this.controlName = value; } - } - - /// - /// - /// - public string ControlType - { - get { return this.controlType; } - set { this.controlType = value; } - } - - - - } -} diff --git a/CleanMachine.Model/LastPattleNum.cs b/CleanMachine.Model/LastPattleNum.cs deleted file mode 100644 index 28ba8df..0000000 --- a/CleanMachine.Model/LastPattleNum.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace CleanMachine.Model -{ - /// - /// - /// - public class LastPattleNum:BaseModel - { - - private string key; - private string value; - - /// - /// - /// - public string Key - { - get { return this.key; } - set { this.key = value; } - } - - /// - /// - /// - public string Value - { - get { return this.value; } - set { this.value = value; } - } - - } -} diff --git a/CleanMachine.Model/Log.cs b/CleanMachine.Model/Log.cs deleted file mode 100644 index 425aa28..0000000 --- a/CleanMachine.Model/Log.cs +++ /dev/null @@ -1,67 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace CleanMachine.Model -{ - /// - /// - /// - public class Log : BaseModel - { - - private string sysLogId; - private int userId; - private string operateStatus; - private string resultStatus; - private string message; - - /// - /// - /// - public string SysLogId - { - get { return this.sysLogId; } - set { this.sysLogId = value; } - } - - /// - /// - /// - public int UserId - { - get { return this.userId; } - set { this.userId = value; } - } - - /// - /// - /// - public string OperateStatus - { - get { return this.operateStatus; } - set { this.operateStatus = value; } - } - - /// - /// - /// - public string ResultStatus - { - get { return this.resultStatus; } - set { this.resultStatus = value; } - } - - /// - /// - /// - public string Message - { - get { return this.message; } - set { this.message = value; } - } - - - - } -} diff --git a/CleanMachine.Model/Menu.cs b/CleanMachine.Model/Menu.cs deleted file mode 100644 index e111941..0000000 --- a/CleanMachine.Model/Menu.cs +++ /dev/null @@ -1,23 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace CleanMachine.Model -{ - /// - /// - /// - public class Menu : BaseModel - { - - private string menuId; - private string menuCode; - private string menuName; - private string menuUrl; - private int menuPid; - private int menuOrder; - private int usedFlag; - - - } -} diff --git a/CleanMachine.Model/Parameter.cs b/CleanMachine.Model/Parameter.cs deleted file mode 100644 index 7f46f66..0000000 --- a/CleanMachine.Model/Parameter.cs +++ /dev/null @@ -1,79 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace CleanMachine.Model -{ - /// - /// - /// - public class Parameter : BaseModel - { - - private string parameterId; - private string parameterCode; - private string parameterName; - private string parameterValue; - private string parameterType; - private int usedFlag; - private int delFlag; - private int createBy; - private DateTime createTime; - private int updateBy; - private DateTime updateTime; - private int dataVersion; - private string remarks1; - private string remarks2; - private string remarks3; - private string remarks4; - private string remarks5; - - /// - /// - /// - public string ParameterId - { - get { return this.parameterId; } - set { this.parameterId = value; } - } - - /// - /// - /// - public string ParameterCode - { - get { return this.parameterCode; } - set { this.parameterCode = value; } - } - - /// - /// - /// - public string ParameterName - { - get { return this.parameterName; } - set { this.parameterName = value; } - } - - /// - /// - /// - public string ParameterValue - { - get { return this.parameterValue; } - set { this.parameterValue = value; } - } - - /// - /// - /// - public string ParameterType - { - get { return this.parameterType; } - set { this.parameterType = value; } - } - - - - } -} diff --git a/CleanMachine.Model/PlcItem.cs b/CleanMachine.Model/PlcItem.cs deleted file mode 100644 index 6263b6e..0000000 --- a/CleanMachine.Model/PlcItem.cs +++ /dev/null @@ -1,117 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace CleanMachine.Model -{ - /// - /// - /// - public class PlcItem : BaseModel - { - - private string plcItemId; - private string plcItemCode; - private string plcItemName; - private int plcItemType; - private int plcItemDataType; - private int plcItemDataLength; - private string plcItemPriAddress; - private string plcItemModbusAddress; - private string plcItemDeviationAddress; - private string plcItemValue; - - - /// - /// - /// - public string PlcItemId - { - get { return this.plcItemId; } - set { this.plcItemId = value; } - } - - /// - /// - /// - public string PlcItemCode - { - get { return this.plcItemCode; } - set { this.plcItemCode = value; } - } - - /// - /// - /// - public string PlcItemName - { - get { return this.plcItemName; } - set { this.plcItemName = value; } - } - - /// - /// - /// - public int PlcItemType - { - get { return this.plcItemType; } - set { this.plcItemType = value; } - } - - /// - /// - /// - public int PlcItemDataType - { - get { return this.plcItemDataType; } - set { this.plcItemDataType = value; } - } - - /// - /// - /// - public int PlcItemDataLength - { - get { return this.plcItemDataLength; } - set { this.plcItemDataLength = value; } - } - - /// - /// - /// - public string PlcItemPriAddress - { - get { return this.plcItemPriAddress; } - set { this.plcItemPriAddress = value; } - } - - /// - /// - /// - public string PlcItemModbusAddress - { - get { return this.plcItemModbusAddress; } - set { this.plcItemModbusAddress = value; } - } - - /// - /// - /// - public string PlcItemDeviationAddress - { - get { return this.plcItemDeviationAddress; } - set { this.plcItemDeviationAddress = value; } - } - - /// - /// - /// - public string PlcItemValue - { - get { return this.plcItemValue; } - set { this.plcItemValue = value; } - } - - - } -} diff --git a/CleanMachine.Model/Role.cs b/CleanMachine.Model/Role.cs deleted file mode 100644 index 86ed3d6..0000000 --- a/CleanMachine.Model/Role.cs +++ /dev/null @@ -1,57 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace CleanMachine.Model -{ - /// - /// - /// - public class Role : BaseModel - { - - private string roleId; - private string roleCode; - private string roleName; - private int roleGrade; - - /// - /// - /// - public string RoleId - { - get { return this.roleId; } - set { this.roleId = value; } - } - - /// - /// - /// - public string RoleCode - { - get { return this.roleCode; } - set { this.roleCode = value; } - } - - /// - /// - /// - public string RoleName - { - get { return this.roleName; } - set { this.roleName = value; } - } - - /// - /// - /// - public int RoleGrade - { - get { return this.roleGrade; } - set { this.roleGrade = value; } - } - - - - } -} diff --git a/CleanMachine.Model/RoleMenuPermission.cs b/CleanMachine.Model/RoleMenuPermission.cs deleted file mode 100644 index c79b8a1..0000000 --- a/CleanMachine.Model/RoleMenuPermission.cs +++ /dev/null @@ -1,47 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace CleanMachine.Model -{ - /// - /// - /// - public class RoleMenuPermission : BaseModel - { - - private string roleMenuPermissionId; - private string roleId; - private string menuId; - - /// - /// - /// - public string RoleMenuPermissionId - { - get { return this.roleMenuPermissionId; } - set { this.roleMenuPermissionId = value; } - } - - /// - /// - /// - public string RoleId - { - get { return this.roleId; } - set { this.roleId = value; } - } - - /// - /// - /// - public string MenuId - { - get { return this.menuId; } - set { this.menuId = value; } - } - - - - } -} diff --git a/CleanMachine.Model/SYS/Language.cs b/CleanMachine.Model/SYS/Language.cs new file mode 100644 index 0000000..5d1b1ab --- /dev/null +++ b/CleanMachine.Model/SYS/Language.cs @@ -0,0 +1,169 @@ + + +//模板信息:{"Template":{"Language":"C#"}} +//输出信息:{"Extension":".cs","FileName":"Model\\SYS\\Language"} +using System; +using System.Text; +using System.Linq; +using System.Collections.Generic; +namespace CleanMachine.Model.SYS +{ + /// + /// + /// + public class Language + { + + private int languageId; + private string languageCode; + private string languageName; + private int usedFlag; + private int delFlag; + private int createBy; + private DateTime createTime; + private int updateBy; + private DateTime updateTime; + private int dataVersion; + private string remarks1; + private string remarks2; + private string remarks3; + private string remarks4; + private string remarks5; + + /// + /// + /// + public int LanguageId + { + get { return this.languageId; } + set { this.languageId=value;} + } + + /// + /// + /// + public string LanguageCode + { + get { return this.languageCode; } + set { this.languageCode=value;} + } + + /// + /// + /// + public string LanguageName + { + get { return this.languageName; } + set { this.languageName=value;} + } + + /// + /// + /// + public int UsedFlag + { + get { return this.usedFlag; } + set { this.usedFlag=value;} + } + + /// + /// + /// + public int DelFlag + { + get { return this.delFlag; } + set { this.delFlag=value;} + } + + /// + /// + /// + public int CreateBy + { + get { return this.createBy; } + set { this.createBy=value;} + } + + /// + /// + /// + public DateTime CreateTime + { + get { return this.createTime; } + set { this.createTime=value;} + } + + /// + /// + /// + public int UpdateBy + { + get { return this.updateBy; } + set { this.updateBy=value;} + } + + /// + /// + /// + public DateTime UpdateTime + { + get { return this.updateTime; } + set { this.updateTime=value;} + } + + /// + /// + /// + public int DataVersion + { + get { return this.dataVersion; } + set { this.dataVersion=value;} + } + + /// + /// + /// + public string Remarks1 + { + get { return this.remarks1; } + set { this.remarks1=value;} + } + + /// + /// + /// + public string Remarks2 + { + get { return this.remarks2; } + set { this.remarks2=value;} + } + + /// + /// + /// + public string Remarks3 + { + get { return this.remarks3; } + set { this.remarks3=value;} + } + + /// + /// + /// + public string Remarks4 + { + get { return this.remarks4; } + set { this.remarks4=value;} + } + + /// + /// + /// + public string Remarks5 + { + get { return this.remarks5; } + set { this.remarks5=value;} + } + + } +} diff --git a/CleanMachine.Model/SYS/LanguageControl.cs b/CleanMachine.Model/SYS/LanguageControl.cs new file mode 100644 index 0000000..7fa6fd7 --- /dev/null +++ b/CleanMachine.Model/SYS/LanguageControl.cs @@ -0,0 +1,199 @@ + + +//模板信息:{"Template":{"Language":"C#"}} +//输出信息:{"Extension":".cs","FileName":"Model\\SYS\\LanguageControl"} +using System; +using System.Text; +using System.Linq; +using System.Collections.Generic; +namespace CleanMachine.Model.SYS +{ + /// + /// + /// + public class LanguageControl + { + + private int languageControlId; + private string languageCode; + private string formCode; + private string controlCode; + private string controlName; + private string controlType; + private int usedFlag; + private int delFlag; + private int createBy; + private DateTime createTime; + private int updateBy; + private DateTime updateTime; + private int dataVersion; + private string remarks1; + private string remarks2; + private string remarks3; + private string remarks4; + private string remarks5; + + /// + /// + /// + public int LanguageControlId + { + get { return this.languageControlId; } + set { this.languageControlId=value;} + } + + /// + /// + /// + public string LanguageCode + { + get { return this.languageCode; } + set { this.languageCode=value;} + } + + /// + /// + /// + public string FormCode + { + get { return this.formCode; } + set { this.formCode=value;} + } + + /// + /// + /// + public string ControlCode + { + get { return this.controlCode; } + set { this.controlCode=value;} + } + + /// + /// + /// + public string ControlName + { + get { return this.controlName; } + set { this.controlName=value;} + } + + /// + /// + /// + public string ControlType + { + get { return this.controlType; } + set { this.controlType=value;} + } + + /// + /// + /// + public int UsedFlag + { + get { return this.usedFlag; } + set { this.usedFlag=value;} + } + + /// + /// + /// + public int DelFlag + { + get { return this.delFlag; } + set { this.delFlag=value;} + } + + /// + /// + /// + public int CreateBy + { + get { return this.createBy; } + set { this.createBy=value;} + } + + /// + /// + /// + public DateTime CreateTime + { + get { return this.createTime; } + set { this.createTime=value;} + } + + /// + /// + /// + public int UpdateBy + { + get { return this.updateBy; } + set { this.updateBy=value;} + } + + /// + /// + /// + public DateTime UpdateTime + { + get { return this.updateTime; } + set { this.updateTime=value;} + } + + /// + /// + /// + public int DataVersion + { + get { return this.dataVersion; } + set { this.dataVersion=value;} + } + + /// + /// + /// + public string Remarks1 + { + get { return this.remarks1; } + set { this.remarks1=value;} + } + + /// + /// + /// + public string Remarks2 + { + get { return this.remarks2; } + set { this.remarks2=value;} + } + + /// + /// + /// + public string Remarks3 + { + get { return this.remarks3; } + set { this.remarks3=value;} + } + + /// + /// + /// + public string Remarks4 + { + get { return this.remarks4; } + set { this.remarks4=value;} + } + + /// + /// + /// + public string Remarks5 + { + get { return this.remarks5; } + set { this.remarks5=value;} + } + + } +} diff --git a/CleanMachine.Model/SYS/Log.cs b/CleanMachine.Model/SYS/Log.cs new file mode 100644 index 0000000..66bcf84 --- /dev/null +++ b/CleanMachine.Model/SYS/Log.cs @@ -0,0 +1,169 @@ + + +//模板信息:{"Template":{"Language":"C#"}} +//输出信息:{"Extension":".cs","FileName":"Model\\SYS\\Log"} +using System; +using System.Text; +using System.Linq; +using System.Collections.Generic; +namespace CleanMachine.Model.SYS +{ + /// + /// + /// + public class Log + { + + private int sysLogId; + private int userId; + private string operateStatus; + private string resultStatus; + private string message; + private int createBy; + private DateTime createTime; + private int updateBy; + private DateTime updateTime; + private int dataVersion; + private string remarks1; + private string remarks2; + private string remarks3; + private string remarks4; + private string remarks5; + + /// + /// + /// + public int SysLogId + { + get { return this.sysLogId; } + set { this.sysLogId=value;} + } + + /// + /// + /// + public int UserId + { + get { return this.userId; } + set { this.userId=value;} + } + + /// + /// + /// + public string OperateStatus + { + get { return this.operateStatus; } + set { this.operateStatus=value;} + } + + /// + /// + /// + public string ResultStatus + { + get { return this.resultStatus; } + set { this.resultStatus=value;} + } + + /// + /// + /// + public string Message + { + get { return this.message; } + set { this.message=value;} + } + + /// + /// + /// + public int CreateBy + { + get { return this.createBy; } + set { this.createBy=value;} + } + + /// + /// + /// + public DateTime CreateTime + { + get { return this.createTime; } + set { this.createTime=value;} + } + + /// + /// + /// + public int UpdateBy + { + get { return this.updateBy; } + set { this.updateBy=value;} + } + + /// + /// + /// + public DateTime UpdateTime + { + get { return this.updateTime; } + set { this.updateTime=value;} + } + + /// + /// + /// + public int DataVersion + { + get { return this.dataVersion; } + set { this.dataVersion=value;} + } + + /// + /// + /// + public string Remarks1 + { + get { return this.remarks1; } + set { this.remarks1=value;} + } + + /// + /// + /// + public string Remarks2 + { + get { return this.remarks2; } + set { this.remarks2=value;} + } + + /// + /// + /// + public string Remarks3 + { + get { return this.remarks3; } + set { this.remarks3=value;} + } + + /// + /// + /// + public string Remarks4 + { + get { return this.remarks4; } + set { this.remarks4=value;} + } + + /// + /// + /// + public string Remarks5 + { + get { return this.remarks5; } + set { this.remarks5=value;} + } + + } +} diff --git a/CleanMachine.Model/SYS/Menu.cs b/CleanMachine.Model/SYS/Menu.cs new file mode 100644 index 0000000..a94933a --- /dev/null +++ b/CleanMachine.Model/SYS/Menu.cs @@ -0,0 +1,199 @@ + + +//模板信息:{"Template":{"Language":"C#"}} +//输出信息:{"Extension":".cs","FileName":"Model\\SYS\\Menu"} +using System; +using System.Text; +using System.Linq; +using System.Collections.Generic; +namespace CleanMachine.Model.SYS +{ + /// + /// + /// + public class Menu + { + + private int menuId; + private string menuCode; + private string menuName; + private string menuUrl; + private int menuPid; + private int menuOrder; + private int usedFlag; + private int delFlag; + private int createBy; + private DateTime createTime; + private int updateBy; + private DateTime updateTime; + private int dataVersion; + private string remarks1; + private string remarks2; + private string remarks3; + private string remarks4; + private string remarks5; + + /// + /// + /// + public int MenuId + { + get { return this.menuId; } + set { this.menuId=value;} + } + + /// + /// + /// + public string MenuCode + { + get { return this.menuCode; } + set { this.menuCode=value;} + } + + /// + /// + /// + public string MenuName + { + get { return this.menuName; } + set { this.menuName=value;} + } + + /// + /// + /// + public string MenuUrl + { + get { return this.menuUrl; } + set { this.menuUrl=value;} + } + + /// + /// + /// + public int MenuPid + { + get { return this.menuPid; } + set { this.menuPid=value;} + } + + /// + /// + /// + public int MenuOrder + { + get { return this.menuOrder; } + set { this.menuOrder=value;} + } + + /// + /// + /// + public int UsedFlag + { + get { return this.usedFlag; } + set { this.usedFlag=value;} + } + + /// + /// + /// + public int DelFlag + { + get { return this.delFlag; } + set { this.delFlag=value;} + } + + /// + /// + /// + public int CreateBy + { + get { return this.createBy; } + set { this.createBy=value;} + } + + /// + /// + /// + public DateTime CreateTime + { + get { return this.createTime; } + set { this.createTime=value;} + } + + /// + /// + /// + public int UpdateBy + { + get { return this.updateBy; } + set { this.updateBy=value;} + } + + /// + /// + /// + public DateTime UpdateTime + { + get { return this.updateTime; } + set { this.updateTime=value;} + } + + /// + /// + /// + public int DataVersion + { + get { return this.dataVersion; } + set { this.dataVersion=value;} + } + + /// + /// + /// + public string Remarks1 + { + get { return this.remarks1; } + set { this.remarks1=value;} + } + + /// + /// + /// + public string Remarks2 + { + get { return this.remarks2; } + set { this.remarks2=value;} + } + + /// + /// + /// + public string Remarks3 + { + get { return this.remarks3; } + set { this.remarks3=value;} + } + + /// + /// + /// + public string Remarks4 + { + get { return this.remarks4; } + set { this.remarks4=value;} + } + + /// + /// + /// + public string Remarks5 + { + get { return this.remarks5; } + set { this.remarks5=value;} + } + + } +} diff --git a/CleanMachine.Model/SYS/Parameter.cs b/CleanMachine.Model/SYS/Parameter.cs new file mode 100644 index 0000000..42b4aff --- /dev/null +++ b/CleanMachine.Model/SYS/Parameter.cs @@ -0,0 +1,189 @@ + + +//模板信息:{"Template":{"Language":"C#"}} +//输出信息:{"Extension":".cs","FileName":"Model\\SYS\\Parameter"} +using System; +using System.Text; +using System.Linq; +using System.Collections.Generic; +namespace CleanMachine.Model.SYS +{ + /// + /// + /// + public class Parameter + { + + private int parameterId; + private string parameterCode; + private string parameterName; + private string parameterValue; + private string parameterType; + private int usedFlag; + private int delFlag; + private int createBy; + private DateTime createTime; + private int updateBy; + private DateTime updateTime; + private int dataVersion; + private string remarks1; + private string remarks2; + private string remarks3; + private string remarks4; + private string remarks5; + + /// + /// + /// + public int ParameterId + { + get { return this.parameterId; } + set { this.parameterId=value;} + } + + /// + /// + /// + public string ParameterCode + { + get { return this.parameterCode; } + set { this.parameterCode=value;} + } + + /// + /// + /// + public string ParameterName + { + get { return this.parameterName; } + set { this.parameterName=value;} + } + + /// + /// + /// + public string ParameterValue + { + get { return this.parameterValue; } + set { this.parameterValue=value;} + } + + /// + /// + /// + public string ParameterType + { + get { return this.parameterType; } + set { this.parameterType=value;} + } + + /// + /// + /// + public int UsedFlag + { + get { return this.usedFlag; } + set { this.usedFlag=value;} + } + + /// + /// + /// + public int DelFlag + { + get { return this.delFlag; } + set { this.delFlag=value;} + } + + /// + /// + /// + public int CreateBy + { + get { return this.createBy; } + set { this.createBy=value;} + } + + /// + /// + /// + public DateTime CreateTime + { + get { return this.createTime; } + set { this.createTime=value;} + } + + /// + /// + /// + public int UpdateBy + { + get { return this.updateBy; } + set { this.updateBy=value;} + } + + /// + /// + /// + public DateTime UpdateTime + { + get { return this.updateTime; } + set { this.updateTime=value;} + } + + /// + /// + /// + public int DataVersion + { + get { return this.dataVersion; } + set { this.dataVersion=value;} + } + + /// + /// + /// + public string Remarks1 + { + get { return this.remarks1; } + set { this.remarks1=value;} + } + + /// + /// + /// + public string Remarks2 + { + get { return this.remarks2; } + set { this.remarks2=value;} + } + + /// + /// + /// + public string Remarks3 + { + get { return this.remarks3; } + set { this.remarks3=value;} + } + + /// + /// + /// + public string Remarks4 + { + get { return this.remarks4; } + set { this.remarks4=value;} + } + + /// + /// + /// + public string Remarks5 + { + get { return this.remarks5; } + set { this.remarks5=value;} + } + + } +} diff --git a/CleanMachine.Model/SYS/Role.cs b/CleanMachine.Model/SYS/Role.cs new file mode 100644 index 0000000..a893a58 --- /dev/null +++ b/CleanMachine.Model/SYS/Role.cs @@ -0,0 +1,179 @@ + + +//模板信息:{"Template":{"Language":"C#"}} +//输出信息:{"Extension":".cs","FileName":"Model\\SYS\\Role"} +using System; +using System.Text; +using System.Linq; +using System.Collections.Generic; +namespace CleanMachine.Model.SYS +{ + /// + /// + /// + public class Role + { + + private int roleId; + private string roleCode; + private string roleName; + private int roleGrade; + private int usedFlag; + private int delFlag; + private int createBy; + private DateTime createTime; + private int updateBy; + private DateTime updateTime; + private int dataVersion; + private string remarks1; + private string remarks2; + private string remarks3; + private string remarks4; + private string remarks5; + + /// + /// + /// + public int RoleId + { + get { return this.roleId; } + set { this.roleId=value;} + } + + /// + /// + /// + public string RoleCode + { + get { return this.roleCode; } + set { this.roleCode=value;} + } + + /// + /// + /// + public string RoleName + { + get { return this.roleName; } + set { this.roleName=value;} + } + + /// + /// + /// + public int RoleGrade + { + get { return this.roleGrade; } + set { this.roleGrade=value;} + } + + /// + /// + /// + public int UsedFlag + { + get { return this.usedFlag; } + set { this.usedFlag=value;} + } + + /// + /// + /// + public int DelFlag + { + get { return this.delFlag; } + set { this.delFlag=value;} + } + + /// + /// + /// + public int CreateBy + { + get { return this.createBy; } + set { this.createBy=value;} + } + + /// + /// + /// + public DateTime CreateTime + { + get { return this.createTime; } + set { this.createTime=value;} + } + + /// + /// + /// + public int UpdateBy + { + get { return this.updateBy; } + set { this.updateBy=value;} + } + + /// + /// + /// + public DateTime UpdateTime + { + get { return this.updateTime; } + set { this.updateTime=value;} + } + + /// + /// + /// + public int DataVersion + { + get { return this.dataVersion; } + set { this.dataVersion=value;} + } + + /// + /// + /// + public string Remarks1 + { + get { return this.remarks1; } + set { this.remarks1=value;} + } + + /// + /// + /// + public string Remarks2 + { + get { return this.remarks2; } + set { this.remarks2=value;} + } + + /// + /// + /// + public string Remarks3 + { + get { return this.remarks3; } + set { this.remarks3=value;} + } + + /// + /// + /// + public string Remarks4 + { + get { return this.remarks4; } + set { this.remarks4=value;} + } + + /// + /// + /// + public string Remarks5 + { + get { return this.remarks5; } + set { this.remarks5=value;} + } + + } +} diff --git a/CleanMachine.Model/SYS/RoleMenuPermission.cs b/CleanMachine.Model/SYS/RoleMenuPermission.cs new file mode 100644 index 0000000..fada4c1 --- /dev/null +++ b/CleanMachine.Model/SYS/RoleMenuPermission.cs @@ -0,0 +1,149 @@ + + +//模板信息:{"Template":{"Language":"C#"}} +//输出信息:{"Extension":".cs","FileName":"Model\\SYS\\RoleMenuPermission"} +using System; +using System.Text; +using System.Linq; +using System.Collections.Generic; +namespace CleanMachine.Model.SYS +{ + /// + /// + /// + public class RoleMenuPermission + { + + private int roleMenuPermissionId; + private int roleId; + private int menuId; + private int createBy; + private DateTime createTime; + private int updateBy; + private DateTime updateTime; + private int dataVersion; + private string remarks1; + private string remarks2; + private string remarks3; + private string remarks4; + private string remarks5; + + /// + /// + /// + public int RoleMenuPermissionId + { + get { return this.roleMenuPermissionId; } + set { this.roleMenuPermissionId=value;} + } + + /// + /// + /// + public int RoleId + { + get { return this.roleId; } + set { this.roleId=value;} + } + + /// + /// + /// + public int MenuId + { + get { return this.menuId; } + set { this.menuId=value;} + } + + /// + /// + /// + public int CreateBy + { + get { return this.createBy; } + set { this.createBy=value;} + } + + /// + /// + /// + public DateTime CreateTime + { + get { return this.createTime; } + set { this.createTime=value;} + } + + /// + /// + /// + public int UpdateBy + { + get { return this.updateBy; } + set { this.updateBy=value;} + } + + /// + /// + /// + public DateTime UpdateTime + { + get { return this.updateTime; } + set { this.updateTime=value;} + } + + /// + /// + /// + public int DataVersion + { + get { return this.dataVersion; } + set { this.dataVersion=value;} + } + + /// + /// + /// + public string Remarks1 + { + get { return this.remarks1; } + set { this.remarks1=value;} + } + + /// + /// + /// + public string Remarks2 + { + get { return this.remarks2; } + set { this.remarks2=value;} + } + + /// + /// + /// + public string Remarks3 + { + get { return this.remarks3; } + set { this.remarks3=value;} + } + + /// + /// + /// + public string Remarks4 + { + get { return this.remarks4; } + set { this.remarks4=value;} + } + + /// + /// + /// + public string Remarks5 + { + get { return this.remarks5; } + set { this.remarks5=value;} + } + + } +} diff --git a/CleanMachine.Model/SYS/ScheduleDtl.cs b/CleanMachine.Model/SYS/ScheduleDtl.cs new file mode 100644 index 0000000..9e502ae --- /dev/null +++ b/CleanMachine.Model/SYS/ScheduleDtl.cs @@ -0,0 +1,189 @@ + + +//模板信息:{"Template":{"Language":"C#"}} +//输出信息:{"Extension":".cs","FileName":"Model\\SYS\\ScheduleDtl"} +using System; +using System.Text; +using System.Linq; +using System.Collections.Generic; +namespace CleanMachine.Model.SYS +{ + /// + /// + /// + public class ScheduleDtl + { + + private int scheduleDtlId; + private string scheduleCode; + private string scheduleName; + private string beginTime; + private string endTime; + private int usedFlag; + private int delFlag; + private int createBy; + private DateTime createTime; + private int updateBy; + private DateTime updateTime; + private int dataVersion; + private string remarks1; + private string remarks2; + private string remarks3; + private string remarks4; + private string remarks5; + + /// + /// + /// + public int ScheduleDtlId + { + get { return this.scheduleDtlId; } + set { this.scheduleDtlId=value;} + } + + /// + /// + /// + public string ScheduleCode + { + get { return this.scheduleCode; } + set { this.scheduleCode=value;} + } + + /// + /// + /// + public string ScheduleName + { + get { return this.scheduleName; } + set { this.scheduleName=value;} + } + + /// + /// + /// + public string BeginTime + { + get { return this.beginTime; } + set { this.beginTime=value;} + } + + /// + /// + /// + public string EndTime + { + get { return this.endTime; } + set { this.endTime=value;} + } + + /// + /// + /// + public int UsedFlag + { + get { return this.usedFlag; } + set { this.usedFlag=value;} + } + + /// + /// + /// + public int DelFlag + { + get { return this.delFlag; } + set { this.delFlag=value;} + } + + /// + /// + /// + public int CreateBy + { + get { return this.createBy; } + set { this.createBy=value;} + } + + /// + /// + /// + public DateTime CreateTime + { + get { return this.createTime; } + set { this.createTime=value;} + } + + /// + /// + /// + public int UpdateBy + { + get { return this.updateBy; } + set { this.updateBy=value;} + } + + /// + /// + /// + public DateTime UpdateTime + { + get { return this.updateTime; } + set { this.updateTime=value;} + } + + /// + /// + /// + public int DataVersion + { + get { return this.dataVersion; } + set { this.dataVersion=value;} + } + + /// + /// + /// + public string Remarks1 + { + get { return this.remarks1; } + set { this.remarks1=value;} + } + + /// + /// + /// + public string Remarks2 + { + get { return this.remarks2; } + set { this.remarks2=value;} + } + + /// + /// + /// + public string Remarks3 + { + get { return this.remarks3; } + set { this.remarks3=value;} + } + + /// + /// + /// + public string Remarks4 + { + get { return this.remarks4; } + set { this.remarks4=value;} + } + + /// + /// + /// + public string Remarks5 + { + get { return this.remarks5; } + set { this.remarks5=value;} + } + + } +} diff --git a/CleanMachine.Model/SYS/User.cs b/CleanMachine.Model/SYS/User.cs new file mode 100644 index 0000000..4f44bce --- /dev/null +++ b/CleanMachine.Model/SYS/User.cs @@ -0,0 +1,209 @@ + + +//模板信息:{"Template":{"Language":"C#"}} +//输出信息:{"Extension":".cs","FileName":"Model\\SYS\\User"} +using System; +using System.Text; +using System.Linq; +using System.Collections.Generic; +namespace CleanMachine.Model.SYS +{ + /// + /// + /// + public class User + { + + private int userId; + private string userCode; + private string userName; + private string password; + private int gender; + private int roleId; + private string scheduleCode; + private int usedFlag; + private int delFlag; + private int createBy; + private DateTime createTime; + private int updateBy; + private DateTime updateTime; + private int dataVersion; + private string remarks1; + private string remarks2; + private string remarks3; + private string remarks4; + private string remarks5; + + /// + /// + /// + public int UserId + { + get { return this.userId; } + set { this.userId=value;} + } + + /// + /// + /// + public string UserCode + { + get { return this.userCode; } + set { this.userCode=value;} + } + + /// + /// + /// + public string UserName + { + get { return this.userName; } + set { this.userName=value;} + } + + /// + /// + /// + public string Password + { + get { return this.password; } + set { this.password=value;} + } + + /// + /// + /// + public int Gender + { + get { return this.gender; } + set { this.gender=value;} + } + + /// + /// + /// + public int RoleId + { + get { return this.roleId; } + set { this.roleId=value;} + } + + /// + /// + /// + public string ScheduleCode + { + get { return this.scheduleCode; } + set { this.scheduleCode=value;} + } + + /// + /// + /// + public int UsedFlag + { + get { return this.usedFlag; } + set { this.usedFlag=value;} + } + + /// + /// + /// + public int DelFlag + { + get { return this.delFlag; } + set { this.delFlag=value;} + } + + /// + /// + /// + public int CreateBy + { + get { return this.createBy; } + set { this.createBy=value;} + } + + /// + /// + /// + public DateTime CreateTime + { + get { return this.createTime; } + set { this.createTime=value;} + } + + /// + /// + /// + public int UpdateBy + { + get { return this.updateBy; } + set { this.updateBy=value;} + } + + /// + /// + /// + public DateTime UpdateTime + { + get { return this.updateTime; } + set { this.updateTime=value;} + } + + /// + /// + /// + public int DataVersion + { + get { return this.dataVersion; } + set { this.dataVersion=value;} + } + + /// + /// + /// + public string Remarks1 + { + get { return this.remarks1; } + set { this.remarks1=value;} + } + + /// + /// + /// + public string Remarks2 + { + get { return this.remarks2; } + set { this.remarks2=value;} + } + + /// + /// + /// + public string Remarks3 + { + get { return this.remarks3; } + set { this.remarks3=value;} + } + + /// + /// + /// + public string Remarks4 + { + get { return this.remarks4; } + set { this.remarks4=value;} + } + + /// + /// + /// + public string Remarks5 + { + get { return this.remarks5; } + set { this.remarks5=value;} + } + + } +} diff --git a/CleanMachine.Model/ScheduleDtl.cs b/CleanMachine.Model/ScheduleDtl.cs deleted file mode 100644 index 59e19ba..0000000 --- a/CleanMachine.Model/ScheduleDtl.cs +++ /dev/null @@ -1,66 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace CleanMachine.Model -{ - /// - /// - /// - public class ScheduleDtl : BaseModel - { - - private string scheduleDtlId; - private string scheduleCode; - private string scheduleName; - private string beginTime; - private string endTime; - - /// - /// - /// - public string ScheduleDtlId - { - get { return this.scheduleDtlId; } - set { this.scheduleDtlId = value; } - } - - /// - /// - /// - public string ScheduleCode - { - get { return this.scheduleCode; } - set { this.scheduleCode = value; } - } - - /// - /// - /// - public string ScheduleName - { - get { return this.scheduleName; } - set { this.scheduleName = value; } - } - - /// - /// - /// - public string BeginTime - { - get { return this.beginTime; } - set { this.beginTime = value; } - } - - /// - /// - /// - public string EndTime - { - get { return this.endTime; } - set { this.endTime = value; } - } - - - } -} diff --git a/CleanMachine.Model/SheetType.cs b/CleanMachine.Model/SheetType.cs deleted file mode 100644 index 1c0311a..0000000 --- a/CleanMachine.Model/SheetType.cs +++ /dev/null @@ -1,48 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace CleanMachine.Model -{ - /// - /// - /// - public class SheetType : BaseModel - { - - private string sheetTypeId; - private string sheetTypeCode; - private string sheetTypeName; - - - /// - /// - /// - public string SheetTypeId - { - get { return this.sheetTypeId; } - set { this.sheetTypeId = value; } - } - - /// - /// - /// - public string SheetTypeCode - { - get { return this.sheetTypeCode; } - set { this.sheetTypeCode = value; } - } - - /// - /// - /// - public string SheetTypeName - { - get { return this.sheetTypeName; } - set { this.sheetTypeName = value; } - } - - - - } -} diff --git a/CleanMachine.Model/User.cs b/CleanMachine.Model/User.cs deleted file mode 100644 index b995502..0000000 --- a/CleanMachine.Model/User.cs +++ /dev/null @@ -1,88 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace CleanMachine.Model -{ - /// - /// - /// - public class User : BaseModel - { - - private string userId; - private string userCode; - private string userName; - private string password; - private int gender; - private string roleId; - private string scheduleCode; - - - /// - /// - /// - public string UserId - { - get { return this.userId; } - set { this.userId = value; } - } - - /// - /// - /// - public string UserCode - { - get { return this.userCode; } - set { this.userCode = value; } - } - - /// - /// - /// - public string UserName - { - get { return this.userName; } - set { this.userName = value; } - } - - /// - /// - /// - public string Password - { - get { return this.password; } - set { this.password = value; } - } - - /// - /// - /// - public int Gender - { - get { return this.gender; } - set { this.gender = value; } - } - - /// - /// - /// - public string RoleId - { - get { return this.roleId; } - set { this.roleId = value; } - } - - /// - /// - /// - public string ScheduleCode - { - get { return this.scheduleCode; } - set { this.scheduleCode = value; } - } - - - - } -} diff --git a/CleanMachine.Model/Warning.cs b/CleanMachine.Model/Warning.cs deleted file mode 100644 index 5ba0965..0000000 --- a/CleanMachine.Model/Warning.cs +++ /dev/null @@ -1,78 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace CleanMachine.Model -{ - /// - /// - /// - public class Warning : BaseModel - { - - private string warningId; - private string warningCode; - private string warningName; - private string plcItemCode; - private string warningType; - private string warningMessage; - - - /// - /// - /// - public string WarningId - { - get { return this.warningId; } - set { this.warningId = value; } - } - - /// - /// - /// - public string WarningCode - { - get { return this.warningCode; } - set { this.warningCode = value; } - } - - /// - /// - /// - public string WarningName - { - get { return this.warningName; } - set { this.warningName = value; } - } - - /// - /// - /// - public string PlcItemCode - { - get { return this.plcItemCode; } - set { this.plcItemCode = value; } - } - - /// - /// - /// - public string WarningType - { - get { return this.warningType; } - set { this.warningType = value; } - } - - /// - /// - /// - public string WarningMessage - { - get { return this.warningMessage; } - set { this.warningMessage = value; } - } - - - - } -} diff --git a/CleanMachine.Model/WarningLog.cs b/CleanMachine.Model/WarningLog.cs deleted file mode 100644 index 9a42d9a..0000000 --- a/CleanMachine.Model/WarningLog.cs +++ /dev/null @@ -1,118 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace CleanMachine.Model -{ - /// - /// - /// - public class WarningLog : BaseModel - { - - private string warningLogId; - private string warningCode; - private string warningName; - private string warningType; - private string warningMessage; - private DateTime warningTime; - private string plcItemCode; - private int waringStatus; - private int warningHandleResult; - private DateTime warningHandleTime; - - - /// - /// - /// - public string WarningLogId - { - get { return this.warningLogId; } - set { this.warningLogId = value; } - } - - /// - /// - /// - public string WarningCode - { - get { return this.warningCode; } - set { this.warningCode = value; } - } - - /// - /// - /// - public string WarningName - { - get { return this.warningName; } - set { this.warningName = value; } - } - - /// - /// - /// - public string WarningType - { - get { return this.warningType; } - set { this.warningType = value; } - } - - /// - /// - /// - public string WarningMessage - { - get { return this.warningMessage; } - set { this.warningMessage = value; } - } - - /// - /// - /// - public DateTime WarningTime - { - get { return this.warningTime; } - set { this.warningTime = value; } - } - - /// - /// - /// - public string PlcItemCode - { - get { return this.plcItemCode; } - set { this.plcItemCode = value; } - } - - /// - /// - /// - public int WaringStatus - { - get { return this.waringStatus; } - set { this.waringStatus = value; } - } - - /// - /// - /// - public int WarningHandleResult - { - get { return this.warningHandleResult; } - set { this.warningHandleResult = value; } - } - - /// - /// - /// - public DateTime WarningHandleTime - { - get { return this.warningHandleTime; } - set { this.warningHandleTime = value; } - } - - - - } -} diff --git a/CleanMachine.Model/WorkingPallet.cs b/CleanMachine.Model/WorkingPallet.cs deleted file mode 100644 index 9a2e059..0000000 --- a/CleanMachine.Model/WorkingPallet.cs +++ /dev/null @@ -1,58 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace CleanMachine.Model -{ - /// - /// - /// - public class WorkingPallet : BaseModel - { - - private string workingPalletId; - private string workingPalletCode; - private string workingPalletDesc; - private string workingStatus; - - - /// - /// - /// - public string WorkingPalletId - { - get { return this.workingPalletId; } - set { this.workingPalletId = value; } - } - - /// - /// - /// - public string WorkingPalletCode - { - get { return this.workingPalletCode; } - set { this.workingPalletCode = value; } - } - - /// - /// - /// - public string WorkingPalletDesc - { - get { return this.workingPalletDesc; } - set { this.workingPalletDesc = value; } - } - - /// - /// - /// - public string WorkingStatus - { - get { return this.workingStatus; } - set { this.workingStatus = value; } - } - - - - } -} diff --git a/CleanMachine.Model/WorkingPalletDtl.cs b/CleanMachine.Model/WorkingPalletDtl.cs deleted file mode 100644 index a6ccc50..0000000 --- a/CleanMachine.Model/WorkingPalletDtl.cs +++ /dev/null @@ -1,138 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace CleanMachine.Model -{ - /// - /// - /// - public class WorkingPalletDtl : BaseModel - { - - private string workingPalletDtlId; - private string workingPalletCode; - private string irCode; - private string sheetTypeCode; - private DateTime inputTime; - private string cleanModeCode; - private string contaminationTypeCode; - private string contaminationDtlCode; - private int currentNumber; - private int operateUserId; - private DateTime operateUserTime; - private int workingDtlStatus; - - - /// - /// - /// - public string WorkingPalletDtlId - { - get { return this.workingPalletDtlId; } - set { this.workingPalletDtlId = value; } - } - - /// - /// - /// - public string WorkingPalletCode - { - get { return this.workingPalletCode; } - set { this.workingPalletCode = value; } - } - - /// - /// - /// - public string IrCode - { - get { return this.irCode; } - set { this.irCode = value; } - } - - /// - /// - /// - public string SheetTypeCode - { - get { return this.sheetTypeCode; } - set { this.sheetTypeCode = value; } - } - - /// - /// - /// - public DateTime InputTime - { - get { return this.inputTime; } - set { this.inputTime = value; } - } - - /// - /// - /// - public string CleanModeCode - { - get { return this.cleanModeCode; } - set { this.cleanModeCode = value; } - } - - /// - /// - /// - public string ContaminationTypeCode - { - get { return this.contaminationTypeCode; } - set { this.contaminationTypeCode = value; } - } - - /// - /// - /// - public string ContaminationDtlCode - { - get { return this.contaminationDtlCode; } - set { this.contaminationDtlCode = value; } - } - - /// - /// - /// - public int CurrentNumber - { - get { return this.currentNumber; } - set { this.currentNumber = value; } - } - - /// - /// - /// - public int OperateUserId - { - get { return this.operateUserId; } - set { this.operateUserId = value; } - } - - /// - /// - /// - public DateTime OperateUserTime - { - get { return this.operateUserTime; } - set { this.operateUserTime = value; } - } - - /// - /// - /// - public int WorkingDtlStatus - { - get { return this.workingDtlStatus; } - set { this.workingDtlStatus = value; } - } - - - - } -} diff --git a/CleanMachine.Model/ZBK/WorkingPallet.cs b/CleanMachine.Model/ZBK/WorkingPallet.cs new file mode 100644 index 0000000..b03ed99 --- /dev/null +++ b/CleanMachine.Model/ZBK/WorkingPallet.cs @@ -0,0 +1,159 @@ + + +//模板信息:{"Template":{"Language":"C#"}} +//输出信息:{"Extension":".cs","FileName":"Model\\ZBK\\WorkingPallet"} +using System; +using System.Text; +using System.Linq; +using System.Collections.Generic; +namespace CleanMachine.Model.ZBK +{ + /// + /// + /// + public class WorkingPallet + { + + private int workingPalletId; + private string workingPalletCode; + private string workingPalletDesc; + private int workingStatus; + private int createBy; + private DateTime createTime; + private int updateBy; + private DateTime updateTime; + private int dataVersion; + private string remarks1; + private string remarks2; + private string remarks3; + private string remarks4; + private string remarks5; + + /// + /// + /// + public int WorkingPalletId + { + get { return this.workingPalletId; } + set { this.workingPalletId=value;} + } + + /// + /// + /// + public string WorkingPalletCode + { + get { return this.workingPalletCode; } + set { this.workingPalletCode=value;} + } + + /// + /// + /// + public string WorkingPalletDesc + { + get { return this.workingPalletDesc; } + set { this.workingPalletDesc=value;} + } + + /// + /// + /// + public int WorkingStatus + { + get { return this.workingStatus; } + set { this.workingStatus=value;} + } + + /// + /// + /// + public int CreateBy + { + get { return this.createBy; } + set { this.createBy=value;} + } + + /// + /// + /// + public DateTime CreateTime + { + get { return this.createTime; } + set { this.createTime=value;} + } + + /// + /// + /// + public int UpdateBy + { + get { return this.updateBy; } + set { this.updateBy=value;} + } + + /// + /// + /// + public DateTime UpdateTime + { + get { return this.updateTime; } + set { this.updateTime=value;} + } + + /// + /// + /// + public int DataVersion + { + get { return this.dataVersion; } + set { this.dataVersion=value;} + } + + /// + /// + /// + public string Remarks1 + { + get { return this.remarks1; } + set { this.remarks1=value;} + } + + /// + /// + /// + public string Remarks2 + { + get { return this.remarks2; } + set { this.remarks2=value;} + } + + /// + /// + /// + public string Remarks3 + { + get { return this.remarks3; } + set { this.remarks3=value;} + } + + /// + /// + /// + public string Remarks4 + { + get { return this.remarks4; } + set { this.remarks4=value;} + } + + /// + /// + /// + public string Remarks5 + { + get { return this.remarks5; } + set { this.remarks5=value;} + } + + } +} diff --git a/CleanMachine.Model/ZBK/WorkingPalletDtl.cs b/CleanMachine.Model/ZBK/WorkingPalletDtl.cs new file mode 100644 index 0000000..d8f7109 --- /dev/null +++ b/CleanMachine.Model/ZBK/WorkingPalletDtl.cs @@ -0,0 +1,239 @@ + + +//模板信息:{"Template":{"Language":"C#"}} +//输出信息:{"Extension":".cs","FileName":"Model\\ZBK\\WorkingPalletDtl"} +using System; +using System.Text; +using System.Linq; +using System.Collections.Generic; +namespace CleanMachine.Model.ZBK +{ + /// + /// + /// + public class WorkingPalletDtl + { + + private int workingPalletDtlId; + private string workingPalletCode; + private string irCode; + private string sheetTypeCode; + private DateTime inputTime; + private string cleanModeCode; + private string contaminationTypeCode; + private string contaminationDtlCode; + private int currentNumber; + private int operateUserId; + private DateTime operateUserTime; + private int workingDtlStatus; + private int createBy; + private DateTime createTime; + private int updateBy; + private DateTime updateTime; + private int dataVersion; + private string remarks1; + private string remarks2; + private string remarks3; + private string remarks4; + private string remarks5; + + /// + /// + /// + public int WorkingPalletDtlId + { + get { return this.workingPalletDtlId; } + set { this.workingPalletDtlId=value;} + } + + /// + /// + /// + public string WorkingPalletCode + { + get { return this.workingPalletCode; } + set { this.workingPalletCode=value;} + } + + /// + /// + /// + public string IrCode + { + get { return this.irCode; } + set { this.irCode=value;} + } + + /// + /// + /// + public string SheetTypeCode + { + get { return this.sheetTypeCode; } + set { this.sheetTypeCode=value;} + } + + /// + /// + /// + public DateTime InputTime + { + get { return this.inputTime; } + set { this.inputTime=value;} + } + + /// + /// + /// + public string CleanModeCode + { + get { return this.cleanModeCode; } + set { this.cleanModeCode=value;} + } + + /// + /// + /// + public string ContaminationTypeCode + { + get { return this.contaminationTypeCode; } + set { this.contaminationTypeCode=value;} + } + + /// + /// + /// + public string ContaminationDtlCode + { + get { return this.contaminationDtlCode; } + set { this.contaminationDtlCode=value;} + } + + /// + /// + /// + public int CurrentNumber + { + get { return this.currentNumber; } + set { this.currentNumber=value;} + } + + /// + /// + /// + public int OperateUserId + { + get { return this.operateUserId; } + set { this.operateUserId=value;} + } + + /// + /// + /// + public DateTime OperateUserTime + { + get { return this.operateUserTime; } + set { this.operateUserTime=value;} + } + + /// + /// + /// + public int WorkingDtlStatus + { + get { return this.workingDtlStatus; } + set { this.workingDtlStatus=value;} + } + + /// + /// + /// + public int CreateBy + { + get { return this.createBy; } + set { this.createBy=value;} + } + + /// + /// + /// + public DateTime CreateTime + { + get { return this.createTime; } + set { this.createTime=value;} + } + + /// + /// + /// + public int UpdateBy + { + get { return this.updateBy; } + set { this.updateBy=value;} + } + + /// + /// + /// + public DateTime UpdateTime + { + get { return this.updateTime; } + set { this.updateTime=value;} + } + + /// + /// + /// + public int DataVersion + { + get { return this.dataVersion; } + set { this.dataVersion=value;} + } + + /// + /// + /// + public string Remarks1 + { + get { return this.remarks1; } + set { this.remarks1=value;} + } + + /// + /// + /// + public string Remarks2 + { + get { return this.remarks2; } + set { this.remarks2=value;} + } + + /// + /// + /// + public string Remarks3 + { + get { return this.remarks3; } + set { this.remarks3=value;} + } + + /// + /// + /// + public string Remarks4 + { + get { return this.remarks4; } + set { this.remarks4=value;} + } + + /// + /// + /// + public string Remarks5 + { + get { return this.remarks5; } + set { this.remarks5=value;} + } + + } +} diff --git a/CleanMachine.Model/ZbkWorkingPallet.cs b/CleanMachine.Model/ZbkWorkingPallet.cs deleted file mode 100644 index ebf948e..0000000 --- a/CleanMachine.Model/ZbkWorkingPallet.cs +++ /dev/null @@ -1,57 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace CleanMachine.Model -{ - /// - /// - /// - public class ZbkWorkingPallet:BaseModel - { - - private string workingPalletId; - private string workingPalletCode; - private string workingPalletDesc; - private int workingStatus; - - - /// - /// - /// - public string WorkingPalletId - { - get { return this.workingPalletId; } - set { this.workingPalletId = value; } - } - - /// - /// - /// - public string WorkingPalletCode - { - get { return this.workingPalletCode; } - set { this.workingPalletCode = value; } - } - - /// - /// - /// - public string WorkingPalletDesc - { - get { return this.workingPalletDesc; } - set { this.workingPalletDesc = value; } - } - - /// - /// - /// - public int WorkingStatus - { - get { return this.workingStatus; } - set { this.workingStatus = value; } - } - - - } -} diff --git a/CleanMachine.Model/ZbkWorkingPalletDtl.cs b/CleanMachine.Model/ZbkWorkingPalletDtl.cs deleted file mode 100644 index 098d140..0000000 --- a/CleanMachine.Model/ZbkWorkingPalletDtl.cs +++ /dev/null @@ -1,137 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace CleanMachine.Model -{ - /// - /// - /// - public class ZbkWorkingPalletDtl : BaseModel - { - - private string workingPalletDtlId; - private string workingPalletCode; - private string irCode; - private string sheetTypeCode; - private DateTime inputTime; - private string cleanModeCode; - private string contaminationTypeCode; - private string contaminationDtlCode; - private int currentNumber; - private int operateUserId; - private DateTime operateUserTime; - private int workingDtlStatus; - - - /// - /// - /// - public string WorkingPalletDtlId - { - get { return this.workingPalletDtlId; } - set { this.workingPalletDtlId = value; } - } - - /// - /// - /// - public string WorkingPalletCode - { - get { return this.workingPalletCode; } - set { this.workingPalletCode = value; } - } - - /// - /// - /// - public string IrCode - { - get { return this.irCode; } - set { this.irCode = value; } - } - - /// - /// - /// - public string SheetTypeCode - { - get { return this.sheetTypeCode; } - set { this.sheetTypeCode = value; } - } - - /// - /// - /// - public DateTime InputTime - { - get { return this.inputTime; } - set { this.inputTime = value; } - } - - /// - /// - /// - public string CleanModeCode - { - get { return this.cleanModeCode; } - set { this.cleanModeCode = value; } - } - - /// - /// - /// - public string ContaminationTypeCode - { - get { return this.contaminationTypeCode; } - set { this.contaminationTypeCode = value; } - } - - /// - /// - /// - public string ContaminationDtlCode - { - get { return this.contaminationDtlCode; } - set { this.contaminationDtlCode = value; } - } - - /// - /// - /// - public int CurrentNumber - { - get { return this.currentNumber; } - set { this.currentNumber = value; } - } - - /// - /// - /// - public int OperateUserId - { - get { return this.operateUserId; } - set { this.operateUserId = value; } - } - - /// - /// - /// - public DateTime OperateUserTime - { - get { return this.operateUserTime; } - set { this.operateUserTime = value; } - } - - /// - /// - /// - public int WorkingDtlStatus - { - get { return this.workingDtlStatus; } - set { this.workingDtlStatus = value; } - } - - - } -} diff --git a/CleanMachineHMI/DataBase/clearMac.db b/CleanMachineHMI/DataBase/clearMac.db index c20cbc74226466dc6994ed88fc7c458d79c3b813..4c51a0f7618145441c439a1b5f31d60577ba9ed2 100644 GIT binary patch delta 622 zcmZozAl|S*e1f!K9|HqJED$pTu`m!nn5bjS+Q*=0{c&T;VtGL!ppY{Vy8^L05Qk2d zP_SkU-5jE@L7q`~GOL3k2k$q2CSFF~=bQB$ba@&3Cr?x`pFG(&#FN*MSynJOGB`do z*fq$|Qc926k})2}kI&CZi8nGZGBPkVFcs$K7vbmQ(`De`boPzs(Pfrp1gQ)1_i<(B z`^7L_uz|6-d9mO2#eR&5jY8~9+6=78T>PA69FsY9nY8)OZ=R?i%B0X{8o@3uE6dnp zTauWRlM1s5M(b^ty36>OX|j9`YrV6-UvNl}qo-epf>LO4YLRn(N~(8irIJFZpJ!mG ztAd6S$j$N2{w}Ucn!H?^ZMwni;+B?--KAiovHJqMXryzHt7C|(LWrZ2kE?VV^HNePiVJfx zOH$(#OH1;>e1yG*Fu&?Ad%*ZXh!+@Ntb9%k{44qG_&)M=@;L!bGvJ%PwvYACbj3c_ z?CC4}S;K|6K+5>{Gw|={f6RZJ|2zM!&4L%!@;kCK3o{xU8VUt4*(j=u_OQh delta 282 zcmZozAl|S*e1f!KF9QQZED$pTu_zGVo2X;V+RLEFsj)F-vAm!NP{GBJRMg-@J8exjqa zJU_n(KOdhi0|%$GZ#<7Kvn*q9WN>_tzmF?3-!Fy?pcW+%W4ho4CV3VhLt&z$3?Gjk zR9$GWYmjjBV!!Q+{TLG)`B*t7Gw}T4;^!>mn9QlWd7?ri$MnfJ7;iH%Fl;Zl$=JoL z(8e6hE-ov}*d1Atn3R(WvI}GejE>yyeTnfg6EiQD=CTKjAC@yd0BZTb)b@dS*$0*f E01u){hX4Qo diff --git a/CleanMachineHMI/frmLogin.cs b/CleanMachineHMI/frmLogin.cs index 4b31746..9f41044 100644 --- a/CleanMachineHMI/frmLogin.cs +++ b/CleanMachineHMI/frmLogin.cs @@ -51,8 +51,9 @@ namespace CleanMachineHMI return; } - var sql = $@"SELECT A.USER_ID,A.USER_CODE,A.USER_NAME,A.SCHEDULE_CODE,A.USED_FLAG,A.DEL_FLAG,A.PASSWORD,B.ROLE_ID,B.ROLE_GRADE FROM SYS_USER A LEFT JOIN SYS_ROLE B ON A.ROLE_ID = B.ROLE_ID WHERE A.USER_CODE= '{txtAccount.Text}'"; + // var sql = $@"SELECT A.USER_ID,A.USER_CODE,A.USER_NAME,A.SCHEDULE_CODE,A.USED_FLAG,A.DEL_FLAG,A.PASSWORD,B.ROLE_ID,B.ROLE_GRADE FROM SYS_USER A LEFT JOIN SYS_ROLE B ON A.ROLE_ID = B.ROLE_ID WHERE A.USER_CODE= '{txtAccount.Text}'"; DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0]; + if (dt.Rows.Count > 0) { var data = dt.Rows[0];