修改模型

This commit is contained in:
gongxh
2022-05-05 20:18:34 +08:00
parent 6635db5425
commit c6e7e582b8
86 changed files with 4721 additions and 1878 deletions

View File

@@ -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
{
/// <summary>
///
@@ -26,7 +26,7 @@ namespace CleanMachine.DAL
/// <summary>
/// 存在
/// </summary>
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<int>(strSql, new { CleanModeId }) > 0;
@@ -35,7 +35,7 @@ namespace CleanMachine.DAL
/// <summary>
/// 添加一个数据
/// </summary>
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
/// <summary>
/// 更新一个数据
/// </summary>
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
/// <summary>
/// 删除一个数据
/// </summary>
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
/// <summary>
/// 获得数据列表
/// </summary>
public IEnumerable<CleanMachine.Model.CleanMode> GetList(string strWhere, object Params = null)
public IEnumerable<CleanMachine.Model.BAS.CleanMode> GetList(string strWhere, object Params = null)
{
string strSql = $@"SELECT * FROM BAS_CLEAN_MODE ";
if (strWhere.Trim() != "")
{
strSql += $" WHERE {strWhere}";
}
return LeadDbHelperSQLite.Query<CleanMachine.Model.CleanMode>(strSql, Params);
return LeadDbHelperSQLite.Query<CleanMachine.Model.BAS.CleanMode>(strSql, Params);
}
/// <summary>
/// 获取一个对象
/// </summary>
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
/// <summary>
/// 查询数据
/// </summary>
// public IEnumerable<CleanMachine.Model.CleanMode> GetModelList(RuleGroup rule)
// public IEnumerable<CleanMachine.Model.BAS.CleanMode> GetModelList(RuleGroup rule)
// {
// var tuper = _dbhelper.BuildRuleGroupStr(rule);
// return this.GetList(tuper.where, tuper.Param);

View File

@@ -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
{
/// <summary>
///
@@ -26,7 +26,7 @@ namespace CleanMachine.DAL
/// <summary>
/// 存在
/// </summary>
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<int>(strSql, new { ContaminationDtlId }) > 0;
@@ -35,7 +35,7 @@ namespace CleanMachine.DAL
/// <summary>
/// 添加一个数据
/// </summary>
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
/// <summary>
/// 更新一个数据
/// </summary>
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
/// <summary>
/// 删除一个数据
/// </summary>
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
/// <summary>
/// 获得数据列表
/// </summary>
public IEnumerable<CleanMachine.Model.ContaminationDtl> GetList(string strWhere, object Params = null)
public IEnumerable<CleanMachine.Model.BAS.ContaminationDtl> GetList(string strWhere, object Params = null)
{
string strSql = $@"SELECT * FROM BAS_CONTAMINATION_DTL ";
if (strWhere.Trim() != "")
{
strSql += $" WHERE {strWhere}";
}
return LeadDbHelperSQLite.Query<CleanMachine.Model.ContaminationDtl>(strSql, Params);
return LeadDbHelperSQLite.Query<CleanMachine.Model.BAS.ContaminationDtl>(strSql, Params);
}
/// <summary>
/// 获取一个对象
/// </summary>
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
/// <summary>
/// 查询数据
/// </summary>
// public IEnumerable<CleanMachine.Model.ContaminationDtl> GetModelList(RuleGroup rule)
// public IEnumerable<CleanMachine.Model.BAS.ContaminationDtl> GetModelList(RuleGroup rule)
// {
// var tuper = _dbhelper.BuildRuleGroupStr(rule);
// return this.GetList(tuper.where, tuper.Param);

View File

@@ -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
{
/// <summary>
///
@@ -26,7 +26,7 @@ namespace CleanMachine.DAL
/// <summary>
/// 存在
/// </summary>
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<int>(strSql, new { ContaminationTypeId }) > 0;
@@ -35,7 +35,7 @@ namespace CleanMachine.DAL
/// <summary>
/// 添加一个数据
/// </summary>
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
/// <summary>
/// 更新一个数据
/// </summary>
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
/// <summary>
/// 删除一个数据
/// </summary>
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
/// <summary>
/// 获得数据列表
/// </summary>
public IEnumerable<CleanMachine.Model.ContaminationType> GetList(string strWhere, object Params = null)
public IEnumerable<CleanMachine.Model.BAS.ContaminationType> GetList(string strWhere, object Params = null)
{
string strSql = $@"SELECT * FROM BAS_CONTAMINATION_TYPE ";
if (strWhere.Trim() != "")
{
strSql += $" WHERE {strWhere}";
}
return LeadDbHelperSQLite.Query<CleanMachine.Model.ContaminationType>(strSql, Params);
return LeadDbHelperSQLite.Query<CleanMachine.Model.BAS.ContaminationType>(strSql, Params);
}
/// <summary>
/// 获取一个对象
/// </summary>
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
/// <summary>
/// 查询数据
/// </summary>
// public IEnumerable<CleanMachine.Model.ContaminationType> GetModelList(RuleGroup rule)
// public IEnumerable<CleanMachine.Model.BAS.ContaminationType> GetModelList(RuleGroup rule)
// {
// var tuper = _dbhelper.BuildRuleGroupStr(rule);
// return this.GetList(tuper.where, tuper.Param);

View File

@@ -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
{
/// <summary>
///
@@ -26,7 +26,7 @@ namespace CleanMachine.DAL
/// <summary>
/// 存在
/// </summary>
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<int>(strSql, new { PlcItemId }) > 0;
@@ -35,7 +35,7 @@ namespace CleanMachine.DAL
/// <summary>
/// 添加一个数据
/// </summary>
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
/// <summary>
/// 更新一个数据
/// </summary>
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
/// <summary>
/// 删除一个数据
/// </summary>
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
/// <summary>
/// 获得数据列表
/// </summary>
public IEnumerable<CleanMachine.Model.PlcItem> GetList(string strWhere, object Params = null)
public IEnumerable<CleanMachine.Model.BAS.PlcItem> GetList(string strWhere, object Params = null)
{
string strSql = $@"SELECT * FROM BAS_PLC_ITEM ";
if (strWhere.Trim() != "")
{
strSql += $" WHERE {strWhere}";
}
return LeadDbHelperSQLite.Query<CleanMachine.Model.PlcItem>(strSql, Params);
return LeadDbHelperSQLite.Query<CleanMachine.Model.BAS.PlcItem>(strSql, Params);
}
/// <summary>
/// 获取一个对象
/// </summary>
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
/// <summary>
/// 查询数据
/// </summary>
// public IEnumerable<CleanMachine.Model.PlcItem> GetModelList(RuleGroup rule)
// public IEnumerable<CleanMachine.Model.BAS.PlcItem> GetModelList(RuleGroup rule)
// {
// var tuper = _dbhelper.BuildRuleGroupStr(rule);
// return this.GetList(tuper.where, tuper.Param);

View File

@@ -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
{
/// <summary>
///
@@ -26,7 +26,7 @@ namespace CleanMachine.DAL
/// <summary>
/// 存在
/// </summary>
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<int>(strSql, new { SheetTypeId }) > 0;
@@ -35,7 +35,7 @@ namespace CleanMachine.DAL
/// <summary>
/// 添加一个数据
/// </summary>
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
/// <summary>
/// 更新一个数据
/// </summary>
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
/// <summary>
/// 删除一个数据
/// </summary>
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
/// <summary>
/// 获得数据列表
/// </summary>
public IEnumerable<CleanMachine.Model.SheetType> GetList(string strWhere, object Params = null)
public IEnumerable<CleanMachine.Model.BAS.SheetType> GetList(string strWhere, object Params = null)
{
string strSql = $@"SELECT * FROM BAS_SHEET_TYPE ";
if (strWhere.Trim() != "")
{
strSql += $" WHERE {strWhere}";
}
return LeadDbHelperSQLite.Query<CleanMachine.Model.SheetType>(strSql, Params);
return LeadDbHelperSQLite.Query<CleanMachine.Model.BAS.SheetType>(strSql, Params);
}
/// <summary>
/// 获取一个对象
/// </summary>
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
/// <summary>
/// 查询数据
/// </summary>
// public IEnumerable<CleanMachine.Model.SheetType> GetModelList(RuleGroup rule)
// public IEnumerable<CleanMachine.Model.BAS.SheetType> GetModelList(RuleGroup rule)
// {
// var tuper = _dbhelper.BuildRuleGroupStr(rule);
// return this.GetList(tuper.where, tuper.Param);

View File

@@ -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
{
/// <summary>
///
@@ -26,7 +26,7 @@ namespace CleanMachine.DAL
/// <summary>
/// 存在
/// </summary>
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<int>(strSql, new { WarningId }) > 0;
@@ -35,7 +35,7 @@ namespace CleanMachine.DAL
/// <summary>
/// 添加一个数据
/// </summary>
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
/// <summary>
/// 更新一个数据
/// </summary>
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
/// <summary>
/// 删除一个数据
/// </summary>
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
/// <summary>
/// 获得数据列表
/// </summary>
public IEnumerable<CleanMachine.Model.Warning> GetList(string strWhere, object Params = null)
public IEnumerable<CleanMachine.Model.BAS.Warning> GetList(string strWhere, object Params = null)
{
string strSql = $@"SELECT * FROM BAS_WARNING ";
if (strWhere.Trim() != "")
{
strSql += $" WHERE {strWhere}";
}
return LeadDbHelperSQLite.Query<CleanMachine.Model.Warning>(strSql, Params);
return LeadDbHelperSQLite.Query<CleanMachine.Model.BAS.Warning>(strSql, Params);
}
/// <summary>
/// 获取一个对象
/// </summary>
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
/// <summary>
/// 查询数据
/// </summary>
// public IEnumerable<CleanMachine.Model.Warning> GetModelList(RuleGroup rule)
// public IEnumerable<CleanMachine.Model.BAS.Warning> GetModelList(RuleGroup rule)
// {
// var tuper = _dbhelper.BuildRuleGroupStr(rule);
// return this.GetList(tuper.where, tuper.Param);

View File

@@ -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
{
/// <summary>
///
@@ -35,7 +35,7 @@ namespace CleanMachine.DAL
/// <summary>
/// 添加一个数据
/// </summary>
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
/// <summary>
/// 更新一个数据
/// </summary>
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
/// <summary>
/// 获得数据列表
/// </summary>
public IEnumerable<CleanMachine.Model.LastPattleNum> GetList(string strWhere, object Params = null)
public IEnumerable<CleanMachine.Model.CM.LastPattleNum> GetList(string strWhere, object Params = null)
{
string strSql = $@"SELECT * FROM CM_LastPattleNum ";
if (strWhere.Trim() != "")
{
strSql += $" WHERE {strWhere}";
}
return LeadDbHelperSQLite.Query<CleanMachine.Model.LastPattleNum>(strSql, Params);
return LeadDbHelperSQLite.Query<CleanMachine.Model.CM.LastPattleNum>(strSql, Params);
}
/// <summary>
/// 获取一个对象
/// </summary>
public CleanMachine.Model.LastPattleNum GetModel(string Key)
public CleanMachine.Model.CM.LastPattleNum GetModel(string Key)
{
return this.GetList("Key=@Key", new { Key }).FirstOrDefault();
}
#endregion
/// <summary>
/// 删除一个数据
/// </summary>
public bool Delete(string Key)
{
return this.Delete("Key=@Key ", new { Key }) ;
}
/// <summary>
/// 获取一个对象
/// </summary>
public CleanMachine.Model.CM.LastPattleNum GetModel(string Key)
{
return this.GetList("Key=@Key", new { Key }).QueryFirstOrDefault();
}
/// <summary>
/// 存在
/// </summary>
public bool Exists(string Key)
{
string strSql = @"SELECT count(1) from CM_LastPattleNum WHERE Key=@Key ";
return LeadDbHelperSQLite.ExecuteScalar<int>(strSql, new { Key }) > 0;
}
/// <summary>
/// 查询数据
/// </summary>
// public IEnumerable<CleanMachine.Model.LastPattleNum> GetModelList(RuleGroup rule)
// public IEnumerable<CleanMachine.Model.CM.LastPattleNum> GetModelList(RuleGroup rule)
// {
// var tuper = _dbhelper.BuildRuleGroupStr(rule);
// return this.GetList(tuper.where, tuper.Param);

View File

@@ -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
{
/// <summary>
///
@@ -26,7 +26,7 @@ namespace CleanMachine.DAL
/// <summary>
/// 存在
/// </summary>
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<int>(strSql, new { WarningLogId }) > 0;
@@ -35,7 +35,7 @@ namespace CleanMachine.DAL
/// <summary>
/// 添加一个数据
/// </summary>
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
/// <summary>
/// 更新一个数据
/// </summary>
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
/// <summary>
/// 删除一个数据
/// </summary>
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
/// <summary>
/// 获得数据列表
/// </summary>
public IEnumerable<CleanMachine.Model.WarningLog> GetList(string strWhere, object Params = null)
public IEnumerable<CleanMachine.Model.CM.WarningLog> GetList(string strWhere, object Params = null)
{
string strSql = $@"SELECT * FROM CM_WARNING_LOG ";
if (strWhere.Trim() != "")
{
strSql += $" WHERE {strWhere}";
}
return LeadDbHelperSQLite.Query<CleanMachine.Model.WarningLog>(strSql, Params);
return LeadDbHelperSQLite.Query<CleanMachine.Model.CM.WarningLog>(strSql, Params);
}
/// <summary>
/// 获取一个对象
/// </summary>
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
/// <summary>
/// 查询数据
/// </summary>
// public IEnumerable<CleanMachine.Model.WarningLog> GetModelList(RuleGroup rule)
// public IEnumerable<CleanMachine.Model.CM.WarningLog> GetModelList(RuleGroup rule)
// {
// var tuper = _dbhelper.BuildRuleGroupStr(rule);
// return this.GetList(tuper.where, tuper.Param);

View File

@@ -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
{
/// <summary>
///
/// </summary>
public class WorkingPalletDAL
{
public WorkingPalletDAL()
{
}
#region 一般方法
/// <summary>
/// 存在
/// </summary>
public bool Exists(int WorkingPalletId)
{
string strSql = @"SELECT count(1) from CM_WORKING_PALLET WHERE WORKING_PALLET_ID=@WorkingPalletId ";
return LeadDbHelperSQLite.ExecuteScalar<int>(strSql, new { WorkingPalletId }) > 0;
}
/// <summary>
/// 添加一个数据
/// </summary>
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;
}
/// <summary>
/// 更新一个数据
/// </summary>
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;
}
/// <summary>
/// 删除一个数据
/// </summary>
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;
}
/// <summary>
/// 删除一个数据
/// </summary>
public bool Delete(int WorkingPalletId)
{
return this.Delete("WORKING_PALLET_ID=@WorkingPalletId ", new { WorkingPalletId }) ;
}
/// <summary>
/// 获得数据列表
/// </summary>
public IEnumerable<CleanMachine.Model.CM.WorkingPallet> GetList(string strWhere, object Params = null)
{
string strSql = $@"SELECT * FROM CM_WORKING_PALLET ";
if (strWhere.Trim() != "")
{
strSql += $" WHERE {strWhere}";
}
return LeadDbHelperSQLite.Query<CleanMachine.Model.CM.WorkingPallet>(strSql, Params);
}
/// <summary>
/// 获取一个对象
/// </summary>
public CleanMachine.Model.CM.WorkingPallet GetModel(int WorkingPalletId)
{
return this.GetList("WORKING_PALLET_ID=@WorkingPalletId", new { WorkingPalletId }).FirstOrDefault();
}
#endregion
/// <summary>
/// 查询数据
/// </summary>
// public IEnumerable<CleanMachine.Model.CM.WorkingPallet> GetModelList(RuleGroup rule)
// {
// var tuper = _dbhelper.BuildRuleGroupStr(rule);
// return this.GetList(tuper.where, tuper.Param);
// }
}
}

View File

@@ -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
{
/// <summary>
///
/// </summary>
public class WorkingPalletDtlDAL
{
public WorkingPalletDtlDAL()
{
}
#region 一般方法
/// <summary>
/// 存在
/// </summary>
public bool Exists(int WorkingPalletDtlId)
{
string strSql = @"SELECT count(1) from CM_WORKING_PALLET_DTL WHERE WORKING_PALLET_DTL_ID=@WorkingPalletDtlId ";
return LeadDbHelperSQLite.ExecuteScalar<int>(strSql, new { WorkingPalletDtlId }) > 0;
}
/// <summary>
/// 添加一个数据
/// </summary>
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;
}
/// <summary>
/// 更新一个数据
/// </summary>
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;
}
/// <summary>
/// 删除一个数据
/// </summary>
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;
}
/// <summary>
/// 删除一个数据
/// </summary>
public bool Delete(int WorkingPalletDtlId)
{
return this.Delete("WORKING_PALLET_DTL_ID=@WorkingPalletDtlId ", new { WorkingPalletDtlId }) ;
}
/// <summary>
/// 获得数据列表
/// </summary>
public IEnumerable<CleanMachine.Model.CM.WorkingPalletDtl> GetList(string strWhere, object Params = null)
{
string strSql = $@"SELECT * FROM CM_WORKING_PALLET_DTL ";
if (strWhere.Trim() != "")
{
strSql += $" WHERE {strWhere}";
}
return LeadDbHelperSQLite.Query<CleanMachine.Model.CM.WorkingPalletDtl>(strSql, Params);
}
/// <summary>
/// 获取一个对象
/// </summary>
public CleanMachine.Model.CM.WorkingPalletDtl GetModel(int WorkingPalletDtlId)
{
return this.GetList("WORKING_PALLET_DTL_ID=@WorkingPalletDtlId", new { WorkingPalletDtlId }).FirstOrDefault();
}
#endregion
/// <summary>
/// 查询数据
/// </summary>
// public IEnumerable<CleanMachine.Model.CM.WorkingPalletDtl> GetModelList(RuleGroup rule)
// {
// var tuper = _dbhelper.BuildRuleGroupStr(rule);
// return this.GetList(tuper.where, tuper.Param);
// }
}
}

View File

@@ -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
{
/// <summary>
///
@@ -26,7 +26,7 @@ namespace CleanMachine.DAL
/// <summary>
/// 存在
/// </summary>
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<int>(strSql, new { LanguageControlId }) > 0;
@@ -35,7 +35,7 @@ namespace CleanMachine.DAL
/// <summary>
/// 添加一个数据
/// </summary>
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
/// <summary>
/// 更新一个数据
/// </summary>
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
/// <summary>
/// 删除一个数据
/// </summary>
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
/// <summary>
/// 获得数据列表
/// </summary>
public IEnumerable<CleanMachine.Model.LanguageControl> GetList(string strWhere, object Params = null)
public IEnumerable<CleanMachine.Model.SYS.LanguageControl> GetList(string strWhere, object Params = null)
{
string strSql = $@"SELECT * FROM SYS_LANGUAGE_CONTROL ";
if (strWhere.Trim() != "")
{
strSql += $" WHERE {strWhere}";
}
return LeadDbHelperSQLite.Query<CleanMachine.Model.LanguageControl>(strSql, Params);
return LeadDbHelperSQLite.Query<CleanMachine.Model.SYS.LanguageControl>(strSql, Params);
}
/// <summary>
/// 获取一个对象
/// </summary>
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
/// <summary>
/// 查询数据
/// </summary>
// public IEnumerable<CleanMachine.Model.LanguageControl> GetModelList(RuleGroup rule)
// public IEnumerable<CleanMachine.Model.SYS.LanguageControl> GetModelList(RuleGroup rule)
// {
// var tuper = _dbhelper.BuildRuleGroupStr(rule);
// return this.GetList(tuper.where, tuper.Param);

View File

@@ -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
{
/// <summary>
///
@@ -26,7 +26,7 @@ namespace CleanMachine.DAL
/// <summary>
/// 存在
/// </summary>
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<int>(strSql, new { LanguageId }) > 0;
@@ -35,7 +35,7 @@ namespace CleanMachine.DAL
/// <summary>
/// 添加一个数据
/// </summary>
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
/// <summary>
/// 更新一个数据
/// </summary>
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
/// <summary>
/// 删除一个数据
/// </summary>
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
/// <summary>
/// 获得数据列表
/// </summary>
public IEnumerable<CleanMachine.Model.Language> GetList(string strWhere, object Params = null)
public IEnumerable<CleanMachine.Model.SYS.Language> GetList(string strWhere, object Params = null)
{
string strSql = $@"SELECT * FROM SYS_LANGUAGE ";
if (strWhere.Trim() != "")
{
strSql += $" WHERE {strWhere}";
}
return LeadDbHelperSQLite.Query<CleanMachine.Model.Language>(strSql, Params);
return LeadDbHelperSQLite.Query<CleanMachine.Model.SYS.Language>(strSql, Params);
}
/// <summary>
/// 获取一个对象
/// </summary>
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
/// <summary>
/// 查询数据
/// </summary>
// public IEnumerable<CleanMachine.Model.Language> GetModelList(RuleGroup rule)
// public IEnumerable<CleanMachine.Model.SYS.Language> GetModelList(RuleGroup rule)
// {
// var tuper = _dbhelper.BuildRuleGroupStr(rule);
// return this.GetList(tuper.where, tuper.Param);

View File

@@ -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
{
/// <summary>
///
@@ -26,7 +26,7 @@ namespace CleanMachine.DAL
/// <summary>
/// 存在
/// </summary>
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<int>(strSql, new { SysLogId }) > 0;
@@ -35,7 +35,7 @@ namespace CleanMachine.DAL
/// <summary>
/// 添加一个数据
/// </summary>
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
/// <summary>
/// 更新一个数据
/// </summary>
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
/// <summary>
/// 删除一个数据
/// </summary>
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
/// <summary>
/// 获得数据列表
/// </summary>
public IEnumerable<CleanMachine.Model.Log> GetList(string strWhere, object Params = null)
public IEnumerable<CleanMachine.Model.SYS.Log> GetList(string strWhere, object Params = null)
{
string strSql = $@"SELECT * FROM SYS_LOG ";
if (strWhere.Trim() != "")
{
strSql += $" WHERE {strWhere}";
}
return LeadDbHelperSQLite.Query<CleanMachine.Model.Log>(strSql, Params);
return LeadDbHelperSQLite.Query<CleanMachine.Model.SYS.Log>(strSql, Params);
}
/// <summary>
/// 获取一个对象
/// </summary>
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
/// <summary>
/// 查询数据
/// </summary>
// public IEnumerable<CleanMachine.Model.Log> GetModelList(RuleGroup rule)
// public IEnumerable<CleanMachine.Model.SYS.Log> GetModelList(RuleGroup rule)
// {
// var tuper = _dbhelper.BuildRuleGroupStr(rule);
// return this.GetList(tuper.where, tuper.Param);

View File

@@ -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
{
/// <summary>
///
@@ -26,7 +26,7 @@ namespace CleanMachine.DAL
/// <summary>
/// 存在
/// </summary>
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<int>(strSql, new { MenuId }) > 0;
@@ -35,7 +35,7 @@ namespace CleanMachine.DAL
/// <summary>
/// 添加一个数据
/// </summary>
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
/// <summary>
/// 更新一个数据
/// </summary>
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
/// <summary>
/// 删除一个数据
/// </summary>
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
/// <summary>
/// 获得数据列表
/// </summary>
public IEnumerable<CleanMachine.Model.Menu> GetList(string strWhere, object Params = null)
public IEnumerable<CleanMachine.Model.SYS.Menu> GetList(string strWhere, object Params = null)
{
string strSql = $@"SELECT * FROM SYS_MENU ";
if (strWhere.Trim() != "")
{
strSql += $" WHERE {strWhere}";
}
return LeadDbHelperSQLite.Query<CleanMachine.Model.Menu>(strSql, Params);
return LeadDbHelperSQLite.Query<CleanMachine.Model.SYS.Menu>(strSql, Params);
}
/// <summary>
/// 获取一个对象
/// </summary>
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
/// <summary>
/// 查询数据
/// </summary>
// public IEnumerable<CleanMachine.Model.Menu> GetModelList(RuleGroup rule)
// public IEnumerable<CleanMachine.Model.SYS.Menu> GetModelList(RuleGroup rule)
// {
// var tuper = _dbhelper.BuildRuleGroupStr(rule);
// return this.GetList(tuper.where, tuper.Param);

View File

@@ -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
{
/// <summary>
///
@@ -26,7 +26,7 @@ namespace CleanMachine.DAL
/// <summary>
/// 存在
/// </summary>
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<int>(strSql, new { ParameterId }) > 0;
@@ -35,7 +35,7 @@ namespace CleanMachine.DAL
/// <summary>
/// 添加一个数据
/// </summary>
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
/// <summary>
/// 更新一个数据
/// </summary>
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
/// <summary>
/// 删除一个数据
/// </summary>
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
/// <summary>
/// 获得数据列表
/// </summary>
public IEnumerable<CleanMachine.Model.Parameter> GetList(string strWhere, object Params = null)
public IEnumerable<CleanMachine.Model.SYS.Parameter> GetList(string strWhere, object Params = null)
{
string strSql = $@"SELECT * FROM SYS_PARAMETER ";
if (strWhere.Trim() != "")
{
strSql += $" WHERE {strWhere}";
}
return LeadDbHelperSQLite.Query<CleanMachine.Model.Parameter>(strSql, Params);
return LeadDbHelperSQLite.Query<CleanMachine.Model.SYS.Parameter>(strSql, Params);
}
/// <summary>
/// 获取一个对象
/// </summary>
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
/// <summary>
/// 查询数据
/// </summary>
// public IEnumerable<CleanMachine.Model.Parameter> GetModelList(RuleGroup rule)
// public IEnumerable<CleanMachine.Model.SYS.Parameter> GetModelList(RuleGroup rule)
// {
// var tuper = _dbhelper.BuildRuleGroupStr(rule);
// return this.GetList(tuper.where, tuper.Param);

View File

@@ -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
{
/// <summary>
///
@@ -26,7 +26,7 @@ namespace CleanMachine.DAL
/// <summary>
/// 存在
/// </summary>
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<int>(strSql, new { RoleId }) > 0;
@@ -35,7 +35,7 @@ namespace CleanMachine.DAL
/// <summary>
/// 添加一个数据
/// </summary>
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
/// <summary>
/// 更新一个数据
/// </summary>
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
/// <summary>
/// 删除一个数据
/// </summary>
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
/// <summary>
/// 获得数据列表
/// </summary>
public IEnumerable<CleanMachine.Model.Role> GetList(string strWhere, object Params = null)
public IEnumerable<CleanMachine.Model.SYS.Role> GetList(string strWhere, object Params = null)
{
string strSql = $@"SELECT * FROM SYS_ROLE ";
if (strWhere.Trim() != "")
{
strSql += $" WHERE {strWhere}";
}
return LeadDbHelperSQLite.Query<CleanMachine.Model.Role>(strSql, Params);
return LeadDbHelperSQLite.Query<CleanMachine.Model.SYS.Role>(strSql, Params);
}
/// <summary>
/// 获取一个对象
/// </summary>
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
/// <summary>
/// 查询数据
/// </summary>
// public IEnumerable<CleanMachine.Model.Role> GetModelList(RuleGroup rule)
// public IEnumerable<CleanMachine.Model.SYS.Role> GetModelList(RuleGroup rule)
// {
// var tuper = _dbhelper.BuildRuleGroupStr(rule);
// return this.GetList(tuper.where, tuper.Param);

View File

@@ -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
{
/// <summary>
///
@@ -26,7 +26,7 @@ namespace CleanMachine.DAL
/// <summary>
/// 存在
/// </summary>
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<int>(strSql, new { RoleMenuPermissionId }) > 0;
@@ -35,7 +35,7 @@ namespace CleanMachine.DAL
/// <summary>
/// 添加一个数据
/// </summary>
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
/// <summary>
/// 更新一个数据
/// </summary>
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
/// <summary>
/// 删除一个数据
/// </summary>
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
/// <summary>
/// 获得数据列表
/// </summary>
public IEnumerable<CleanMachine.Model.RoleMenuPermission> GetList(string strWhere, object Params = null)
public IEnumerable<CleanMachine.Model.SYS.RoleMenuPermission> GetList(string strWhere, object Params = null)
{
string strSql = $@"SELECT * FROM SYS_ROLE_MENU_PERMISSION ";
if (strWhere.Trim() != "")
{
strSql += $" WHERE {strWhere}";
}
return LeadDbHelperSQLite.Query<CleanMachine.Model.RoleMenuPermission>(strSql, Params);
return LeadDbHelperSQLite.Query<CleanMachine.Model.SYS.RoleMenuPermission>(strSql, Params);
}
/// <summary>
/// 获取一个对象
/// </summary>
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
/// <summary>
/// 查询数据
/// </summary>
// public IEnumerable<CleanMachine.Model.RoleMenuPermission> GetModelList(RuleGroup rule)
// public IEnumerable<CleanMachine.Model.SYS.RoleMenuPermission> GetModelList(RuleGroup rule)
// {
// var tuper = _dbhelper.BuildRuleGroupStr(rule);
// return this.GetList(tuper.where, tuper.Param);

View File

@@ -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
{
/// <summary>
///
@@ -26,7 +26,7 @@ namespace CleanMachine.DAL
/// <summary>
/// 存在
/// </summary>
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<int>(strSql, new { ScheduleDtlId }) > 0;
@@ -35,7 +35,7 @@ namespace CleanMachine.DAL
/// <summary>
/// 添加一个数据
/// </summary>
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
/// <summary>
/// 更新一个数据
/// </summary>
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
/// <summary>
/// 删除一个数据
/// </summary>
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
/// <summary>
/// 获得数据列表
/// </summary>
public IEnumerable<CleanMachine.Model.ScheduleDtl> GetList(string strWhere, object Params = null)
public IEnumerable<CleanMachine.Model.SYS.ScheduleDtl> GetList(string strWhere, object Params = null)
{
string strSql = $@"SELECT * FROM SYS_SCHEDULE_DTL ";
if (strWhere.Trim() != "")
{
strSql += $" WHERE {strWhere}";
}
return LeadDbHelperSQLite.Query<CleanMachine.Model.ScheduleDtl>(strSql, Params);
return LeadDbHelperSQLite.Query<CleanMachine.Model.SYS.ScheduleDtl>(strSql, Params);
}
/// <summary>
/// 获取一个对象
/// </summary>
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
/// <summary>
/// 查询数据
/// </summary>
// public IEnumerable<CleanMachine.Model.ScheduleDtl> GetModelList(RuleGroup rule)
// public IEnumerable<CleanMachine.Model.SYS.ScheduleDtl> GetModelList(RuleGroup rule)
// {
// var tuper = _dbhelper.BuildRuleGroupStr(rule);
// return this.GetList(tuper.where, tuper.Param);

View File

@@ -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
{
/// <summary>
///
@@ -26,7 +26,7 @@ namespace CleanMachine.DAL
/// <summary>
/// 存在
/// </summary>
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<int>(strSql, new { UserId }) > 0;
@@ -35,7 +35,7 @@ namespace CleanMachine.DAL
/// <summary>
/// 添加一个数据
/// </summary>
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
/// <summary>
/// 更新一个数据
/// </summary>
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
/// <summary>
/// 删除一个数据
/// </summary>
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
/// <summary>
/// 获得数据列表
/// </summary>
public IEnumerable<CleanMachine.Model.User> GetList(string strWhere, object Params = null)
public IEnumerable<CleanMachine.Model.SYS.User> GetList(string strWhere, object Params = null)
{
string strSql = $@"SELECT * FROM SYS_USER ";
if (strWhere.Trim() != "")
{
strSql += $" WHERE {strWhere}";
}
return LeadDbHelperSQLite.Query<CleanMachine.Model.User>(strSql, Params);
return LeadDbHelperSQLite.Query<CleanMachine.Model.SYS.User>(strSql, Params);
}
/// <summary>
/// 获取一个对象
/// </summary>
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
/// <summary>
/// 删除一个数据
/// </summary>
public bool Delete(string UserCode)
{
return this.Delete("USER_CODE=@UserCode ", new { UserCode }) ;
}
/// <summary>
/// 获取一个对象
/// </summary>
public CleanMachine.Model.SYS.User GetModel(string UserCode)
{
return this.GetList("USER_CODE=@UserCode", new { UserCode }).QueryFirstOrDefault();
}
/// <summary>
/// 存在
/// </summary>
public bool Exists(string UserCode)
{
string strSql = @"SELECT count(1) from SYS_USER WHERE USER_CODE=@UserCode ";
return LeadDbHelperSQLite.ExecuteScalar<int>(strSql, new { UserCode }) > 0;
}
/// <summary>
/// 查询数据
/// </summary>
// public IEnumerable<CleanMachine.Model.User> GetModelList(RuleGroup rule)
// public IEnumerable<CleanMachine.Model.SYS.User> GetModelList(RuleGroup rule)
// {
// var tuper = _dbhelper.BuildRuleGroupStr(rule);
// return this.GetList(tuper.where, tuper.Param);

View File

@@ -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
{
/// <summary>
///
@@ -26,7 +26,7 @@ namespace CleanMachine.DAL
/// <summary>
/// 存在
/// </summary>
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<int>(strSql, new { WorkingPalletId }) > 0;
@@ -35,7 +35,7 @@ namespace CleanMachine.DAL
/// <summary>
/// 添加一个数据
/// </summary>
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
/// <summary>
/// 更新一个数据
/// </summary>
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
/// <summary>
/// 删除一个数据
/// </summary>
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
/// <summary>
/// 获得数据列表
/// </summary>
public IEnumerable<CleanMachine.Model.WorkingPallet> GetList(string strWhere, object Params = null)
public IEnumerable<CleanMachine.Model.ZBK.WorkingPallet> GetList(string strWhere, object Params = null)
{
string strSql = $@"SELECT * FROM ZBK_WORKING_PALLET ";
if (strWhere.Trim() != "")
{
strSql += $" WHERE {strWhere}";
}
return LeadDbHelperSQLite.Query<CleanMachine.Model.WorkingPallet>(strSql, Params);
return LeadDbHelperSQLite.Query<CleanMachine.Model.ZBK.WorkingPallet>(strSql, Params);
}
/// <summary>
/// 获取一个对象
/// </summary>
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
/// <summary>
/// 查询数据
/// </summary>
// public IEnumerable<CleanMachine.Model.WorkingPallet> GetModelList(RuleGroup rule)
// public IEnumerable<CleanMachine.Model.ZBK.WorkingPallet> GetModelList(RuleGroup rule)
// {
// var tuper = _dbhelper.BuildRuleGroupStr(rule);
// return this.GetList(tuper.where, tuper.Param);

View File

@@ -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
{
/// <summary>
///
@@ -26,7 +26,7 @@ namespace CleanMachine.DAL
/// <summary>
/// 存在
/// </summary>
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<int>(strSql, new { WorkingPalletDtlId }) > 0;
@@ -35,7 +35,7 @@ namespace CleanMachine.DAL
/// <summary>
/// 添加一个数据
/// </summary>
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
/// <summary>
/// 更新一个数据
/// </summary>
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
/// <summary>
/// 删除一个数据
/// </summary>
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
/// <summary>
/// 获得数据列表
/// </summary>
public IEnumerable<CleanMachine.Model.WorkingPalletDtl> GetList(string strWhere, object Params = null)
public IEnumerable<CleanMachine.Model.ZBK.WorkingPalletDtl> GetList(string strWhere, object Params = null)
{
string strSql = $@"SELECT * FROM ZBK_WORKING_PALLET_DTL ";
if (strWhere.Trim() != "")
{
strSql += $" WHERE {strWhere}";
}
return LeadDbHelperSQLite.Query<CleanMachine.Model.WorkingPalletDtl>(strSql, Params);
return LeadDbHelperSQLite.Query<CleanMachine.Model.ZBK.WorkingPalletDtl>(strSql, Params);
}
/// <summary>
/// 获取一个对象
/// </summary>
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
/// <summary>
/// 查询数据
/// </summary>
// public IEnumerable<CleanMachine.Model.WorkingPalletDtl> GetModelList(RuleGroup rule)
// public IEnumerable<CleanMachine.Model.ZBK.WorkingPalletDtl> GetModelList(RuleGroup rule)
// {
// var tuper = _dbhelper.BuildRuleGroupStr(rule);
// return this.GetList(tuper.where, tuper.Param);