Compare commits
69 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
de8fd63d02 | ||
|
|
163b60d144 | ||
|
|
0475822618 | ||
|
|
69b8f96e73 | ||
|
|
7a49390c02 | ||
|
|
496bb60a79 | ||
|
|
5bcc89c0b5 | ||
|
|
60222dbf9b | ||
|
|
bd39e5110f | ||
|
|
a7afd29d82 | ||
|
|
ae42a43f15 | ||
|
|
507bde6bed | ||
|
|
2a334e7d75 | ||
|
|
847dffd9f1 | ||
|
|
3be258e671 | ||
|
|
5194300402 | ||
|
|
ab6f8874c5 | ||
|
|
c4027d7220 | ||
|
|
8a875860e9 | ||
|
|
80b9aab619 | ||
|
|
2a03e1dba9 | ||
|
|
f5190d70ce | ||
|
|
972124f446 | ||
|
|
53d459641e | ||
|
|
4c33e874b0 | ||
|
|
c738aeab37 | ||
|
|
1043fe18be | ||
|
|
7240b17c1e | ||
|
|
099335e6b3 | ||
|
|
47c68facc3 | ||
|
|
103708143e | ||
|
|
2bc18cb082 | ||
|
|
d14b2ac45f | ||
|
|
4fe118f2e5 | ||
|
|
e120927df2 | ||
|
|
9dfb90f683 | ||
|
|
c7762f1c88 | ||
|
|
f3e77f63c0 | ||
|
|
4a6894457d | ||
|
|
dfd71fe48c | ||
|
|
617a205527 | ||
|
|
33ce865577 | ||
|
|
f3652923f4 | ||
|
|
08c7d6baef | ||
|
|
2a9a10cb46 | ||
|
|
041ecb2da2 | ||
|
|
f9f8e587d1 | ||
|
|
8f9e5a8ee2 | ||
|
|
b39357f27e | ||
|
|
64238fee13 | ||
|
|
0e459f231a | ||
|
|
c57ca69dfd | ||
|
|
3acbcc78c7 | ||
|
|
7e9c7ca86f | ||
|
|
74a05e7bb3 | ||
|
|
b6b365339f | ||
|
|
c6e7e582b8 | ||
|
|
6635db5425 | ||
|
|
64ab02ec4c | ||
|
|
10bb16f3c7 | ||
|
|
74afdf00f9 | ||
|
|
43fa85e6e8 | ||
|
|
235f9767a7 | ||
|
|
8cce51203e | ||
|
|
3593c53fbe | ||
|
|
ff80fe49e3 | ||
|
|
36b3831689 | ||
|
|
b260f034a2 | ||
|
|
fe3f0f0f9e |
91
CleanMachine.BLL/BAS/CleanModeBLL.cs
Normal file
91
CleanMachine.BLL/BAS/CleanModeBLL.cs
Normal file
@@ -0,0 +1,91 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"BLL\\BAS\\CleanModeBLL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using CleanMachine.DAL.BAS;
|
||||
|
||||
namespace CleanMachine.BLL.BAS
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class CleanModeBLL
|
||||
{
|
||||
|
||||
public CleanModeBLL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
public bool Exists(int CleanModeId)
|
||||
{
|
||||
return new CleanModeDAL().Exists(CleanModeId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
public bool Add(CleanMachine.Model.BAS.CleanMode model)
|
||||
{
|
||||
return new CleanModeDAL().Add(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
public bool Update(CleanMachine.Model.BAS.CleanMode model)
|
||||
{
|
||||
return new CleanModeDAL().Update(model);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(string strWhere, object Params = null)
|
||||
{
|
||||
return new CleanModeDAL().Delete(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(int CleanModeId)
|
||||
{
|
||||
return new CleanModeDAL().Delete(CleanModeId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public IEnumerable<CleanMachine.Model.BAS.CleanMode> GetList(string strWhere, object Params = null)
|
||||
{
|
||||
return new CleanModeDAL().GetList(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.BAS.CleanMode GetModel(int CleanModeId)
|
||||
{
|
||||
return new CleanModeDAL().GetModel(CleanModeId);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.BAS.CleanMode> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// return new CleanModeDAL().GetModelList(rule);
|
||||
// }
|
||||
}
|
||||
}
|
||||
91
CleanMachine.BLL/BAS/ContaminationDtlBLL.cs
Normal file
91
CleanMachine.BLL/BAS/ContaminationDtlBLL.cs
Normal file
@@ -0,0 +1,91 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"BLL\\BAS\\ContaminationDtlBLL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using CleanMachine.DAL.BAS;
|
||||
|
||||
namespace CleanMachine.BLL.BAS
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class ContaminationDtlBLL
|
||||
{
|
||||
|
||||
public ContaminationDtlBLL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
public bool Exists(int ContaminationDtlId)
|
||||
{
|
||||
return new ContaminationDtlDAL().Exists(ContaminationDtlId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
public bool Add(CleanMachine.Model.BAS.ContaminationDtl model)
|
||||
{
|
||||
return new ContaminationDtlDAL().Add(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
public bool Update(CleanMachine.Model.BAS.ContaminationDtl model)
|
||||
{
|
||||
return new ContaminationDtlDAL().Update(model);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(string strWhere, object Params = null)
|
||||
{
|
||||
return new ContaminationDtlDAL().Delete(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(int ContaminationDtlId)
|
||||
{
|
||||
return new ContaminationDtlDAL().Delete(ContaminationDtlId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public IEnumerable<CleanMachine.Model.BAS.ContaminationDtl> GetList(string strWhere, object Params = null)
|
||||
{
|
||||
return new ContaminationDtlDAL().GetList(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.BAS.ContaminationDtl GetModel(int ContaminationDtlId)
|
||||
{
|
||||
return new ContaminationDtlDAL().GetModel(ContaminationDtlId);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.BAS.ContaminationDtl> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// return new ContaminationDtlDAL().GetModelList(rule);
|
||||
// }
|
||||
}
|
||||
}
|
||||
91
CleanMachine.BLL/BAS/ContaminationTypeBLL.cs
Normal file
91
CleanMachine.BLL/BAS/ContaminationTypeBLL.cs
Normal file
@@ -0,0 +1,91 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"BLL\\BAS\\ContaminationTypeBLL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using CleanMachine.DAL.BAS;
|
||||
|
||||
namespace CleanMachine.BLL.BAS
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class ContaminationTypeBLL
|
||||
{
|
||||
|
||||
public ContaminationTypeBLL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
public bool Exists(int ContaminationTypeId)
|
||||
{
|
||||
return new ContaminationTypeDAL().Exists(ContaminationTypeId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
public bool Add(CleanMachine.Model.BAS.ContaminationType model)
|
||||
{
|
||||
return new ContaminationTypeDAL().Add(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
public bool Update(CleanMachine.Model.BAS.ContaminationType model)
|
||||
{
|
||||
return new ContaminationTypeDAL().Update(model);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(string strWhere, object Params = null)
|
||||
{
|
||||
return new ContaminationTypeDAL().Delete(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(int ContaminationTypeId)
|
||||
{
|
||||
return new ContaminationTypeDAL().Delete(ContaminationTypeId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public IEnumerable<CleanMachine.Model.BAS.ContaminationType> GetList(string strWhere, object Params = null)
|
||||
{
|
||||
return new ContaminationTypeDAL().GetList(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.BAS.ContaminationType GetModel(int ContaminationTypeId)
|
||||
{
|
||||
return new ContaminationTypeDAL().GetModel(ContaminationTypeId);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.BAS.ContaminationType> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// return new ContaminationTypeDAL().GetModelList(rule);
|
||||
// }
|
||||
}
|
||||
}
|
||||
91
CleanMachine.BLL/BAS/PlcItemBLL.cs
Normal file
91
CleanMachine.BLL/BAS/PlcItemBLL.cs
Normal file
@@ -0,0 +1,91 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"BLL\\BAS\\PlcItemBLL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using CleanMachine.DAL.BAS;
|
||||
|
||||
namespace CleanMachine.BLL.BAS
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class PlcItemBLL
|
||||
{
|
||||
|
||||
public PlcItemBLL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
public bool Exists(int PlcItemId)
|
||||
{
|
||||
return new PlcItemDAL().Exists(PlcItemId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
public bool Add(CleanMachine.Model.BAS.PlcItem model)
|
||||
{
|
||||
return new PlcItemDAL().Add(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
public bool Update(CleanMachine.Model.BAS.PlcItem model)
|
||||
{
|
||||
return new PlcItemDAL().Update(model);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(string strWhere, object Params = null)
|
||||
{
|
||||
return new PlcItemDAL().Delete(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(int PlcItemId)
|
||||
{
|
||||
return new PlcItemDAL().Delete(PlcItemId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public IEnumerable<CleanMachine.Model.BAS.PlcItem> GetList(string strWhere, object Params = null)
|
||||
{
|
||||
return new PlcItemDAL().GetList(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.BAS.PlcItem GetModel(int PlcItemId)
|
||||
{
|
||||
return new PlcItemDAL().GetModel(PlcItemId);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.BAS.PlcItem> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// return new PlcItemDAL().GetModelList(rule);
|
||||
// }
|
||||
}
|
||||
}
|
||||
91
CleanMachine.BLL/BAS/SheetTypeBLL.cs
Normal file
91
CleanMachine.BLL/BAS/SheetTypeBLL.cs
Normal file
@@ -0,0 +1,91 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"BLL\\BAS\\SheetTypeBLL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using CleanMachine.DAL.BAS;
|
||||
|
||||
namespace CleanMachine.BLL.BAS
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class SheetTypeBLL
|
||||
{
|
||||
|
||||
public SheetTypeBLL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
public bool Exists(int SheetTypeId)
|
||||
{
|
||||
return new SheetTypeDAL().Exists(SheetTypeId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
public bool Add(CleanMachine.Model.BAS.SheetType model)
|
||||
{
|
||||
return new SheetTypeDAL().Add(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
public bool Update(CleanMachine.Model.BAS.SheetType model)
|
||||
{
|
||||
return new SheetTypeDAL().Update(model);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(string strWhere, object Params = null)
|
||||
{
|
||||
return new SheetTypeDAL().Delete(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(int SheetTypeId)
|
||||
{
|
||||
return new SheetTypeDAL().Delete(SheetTypeId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public IEnumerable<CleanMachine.Model.BAS.SheetType> GetList(string strWhere, object Params = null)
|
||||
{
|
||||
return new SheetTypeDAL().GetList(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.BAS.SheetType GetModel(int SheetTypeId)
|
||||
{
|
||||
return new SheetTypeDAL().GetModel(SheetTypeId);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.BAS.SheetType> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// return new SheetTypeDAL().GetModelList(rule);
|
||||
// }
|
||||
}
|
||||
}
|
||||
91
CleanMachine.BLL/BAS/WarningBLL.cs
Normal file
91
CleanMachine.BLL/BAS/WarningBLL.cs
Normal file
@@ -0,0 +1,91 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"BLL\\BAS\\WarningBLL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using CleanMachine.DAL.BAS;
|
||||
|
||||
namespace CleanMachine.BLL.BAS
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class WarningBLL
|
||||
{
|
||||
|
||||
public WarningBLL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
public bool Exists(int WarningId)
|
||||
{
|
||||
return new WarningDAL().Exists(WarningId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
public bool Add(CleanMachine.Model.BAS.Warning model)
|
||||
{
|
||||
return new WarningDAL().Add(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
public bool Update(CleanMachine.Model.BAS.Warning model)
|
||||
{
|
||||
return new WarningDAL().Update(model);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(string strWhere, object Params = null)
|
||||
{
|
||||
return new WarningDAL().Delete(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(int WarningId)
|
||||
{
|
||||
return new WarningDAL().Delete(WarningId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public IEnumerable<CleanMachine.Model.BAS.Warning> GetList(string strWhere, object Params = null)
|
||||
{
|
||||
return new WarningDAL().GetList(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.BAS.Warning GetModel(int WarningId)
|
||||
{
|
||||
return new WarningDAL().GetModel(WarningId);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.BAS.Warning> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// return new WarningDAL().GetModelList(rule);
|
||||
// }
|
||||
}
|
||||
}
|
||||
90
CleanMachine.BLL/CM/DayWorkTimeBLL.cs
Normal file
90
CleanMachine.BLL/CM/DayWorkTimeBLL.cs
Normal file
@@ -0,0 +1,90 @@
|
||||
using CleanMachine.DAL.CM;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace CleanMachine.BLL.CM
|
||||
{
|
||||
public class DayWorkTimeBLL
|
||||
{
|
||||
public DayWorkTimeBLL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
public bool Exists(DateTime Date,string UserName)
|
||||
{
|
||||
return new DayWorkTimeDAL().Exists(Date, UserName);
|
||||
}
|
||||
|
||||
public bool UpdateTime(DateTime date, int value,string UserName)
|
||||
{
|
||||
var _dal = new DayWorkTimeDAL();
|
||||
|
||||
if (!_dal.Exists(date,UserName))
|
||||
{
|
||||
return _dal.Add(new Model.CM.DayWorkTime() {UserName=UserName ,Date = date, StartValue = value, StartTime = DateTime.Now, EndValue = 0 });
|
||||
}
|
||||
else
|
||||
{
|
||||
return _dal.UpdateEndValue(new Model.CM.DayWorkTime() {UserName=UserName ,Date = date, StartValue = 0, EndValue = value, EndTime = DateTime.Now });
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
public bool Add(CleanMachine.Model.CM.DayWorkTime model)
|
||||
{
|
||||
return new DayWorkTimeDAL().Add(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
public bool Update(CleanMachine.Model.CM.DayWorkTime model)
|
||||
{
|
||||
return new DayWorkTimeDAL().Update(model);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(string strWhere, object Params = null)
|
||||
{
|
||||
return new DayWorkTimeDAL().Delete(strWhere, Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(DateTime Date)
|
||||
{
|
||||
return new DayWorkTimeDAL().Delete(Date);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public IEnumerable<CleanMachine.Model.CM.DayWorkTime> GetList(string strWhere, object Params = null)
|
||||
{
|
||||
return new DayWorkTimeDAL().GetList(strWhere, Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.CM.DayWorkTime GetModel(DateTime Date)
|
||||
{
|
||||
return new DayWorkTimeDAL().GetModel(Date);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
305
CleanMachine.BLL/CM/IncomingReceipt.cs
Normal file
305
CleanMachine.BLL/CM/IncomingReceipt.cs
Normal file
@@ -0,0 +1,305 @@
|
||||
using FastReport;
|
||||
using LeadDataBaseUtility;
|
||||
using NX_LogUtility;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Text;
|
||||
|
||||
namespace CleanMachine.BLL.CM
|
||||
{
|
||||
public class IncomingReceipt
|
||||
{
|
||||
|
||||
public bool Print(string workingIrCodeMsg, string MacCode, string _reportFolder)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】自动打印开始。~~~~~~~~~~~~~~", LogTypeEum.Run);
|
||||
//string sql = $@"
|
||||
// SELECT
|
||||
// *
|
||||
// FROM
|
||||
// VW_WORKING_PALLET_MSG
|
||||
// WHERE
|
||||
// WORKING_PALLET_CODE = '{woringPalletMsg}'
|
||||
// AND IR_CODE = '{workingIrCodeMsg}'
|
||||
// ";
|
||||
string sql = $@"
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
VW_WORKING_PALLET_MSG
|
||||
WHERE
|
||||
IR_CODE = '{workingIrCodeMsg}'
|
||||
";
|
||||
DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
|
||||
if (dt != null && dt.Rows.Count > 0)
|
||||
{
|
||||
LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】打印明细数据获取成功!~~~~~~~~~~~~~~", LogTypeEum.Run);
|
||||
|
||||
string sqlGroup = $@"
|
||||
SELECT
|
||||
CONTAMINATION_TYPE_CODE,
|
||||
CONTAMINATION_DTL_CODE,
|
||||
SUM(CURRENT_NUMBER) CURRENT_NUMBER
|
||||
FROM
|
||||
VW_WORKING_PALLET_MSG
|
||||
WHERE
|
||||
IR_CODE = '{workingIrCodeMsg}'
|
||||
GROUP BY
|
||||
CONTAMINATION_TYPE_CODE,
|
||||
CONTAMINATION_DTL_CODE
|
||||
";
|
||||
DataTable dtGroup = LeadDbHelperSQLite.Query(sqlGroup).Tables[0];
|
||||
|
||||
#region 物理污染
|
||||
//string sql1 = $@"SELECT CONTAMINATION_DTL_CODE Kind,CURRENT_NUMBER Qty FROM VW_WORKING_PALLET_MSG WHERE WORKING_PALLET_CODE = '{woringPalletMsg}' AND IR_CODE = '{workingIrCodeMsg}' AND CONTAMINATION_TYPE_CODE = 'PhysicalContamination'";
|
||||
//DataTable dt1 = LeadDbHelperSQLite.Query(sql1).Tables[0].Copy();
|
||||
|
||||
DataRow[] drs = dtGroup.Select(" CONTAMINATION_TYPE_CODE = 'PhysicalContamination'");
|
||||
if (drs != null && drs.Length > 0)
|
||||
{
|
||||
LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】物理污染 明细数据获取成功!~~~~~~~~~~~~~~", LogTypeEum.Run);
|
||||
}
|
||||
else
|
||||
{
|
||||
LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】物理污染 明细数据获取失败!~~~~~~~~~~~~~~", LogTypeEum.Err);
|
||||
}
|
||||
DataTable dt1 = new DataTable();
|
||||
dt1.Columns.Add("Kind", typeof(string));
|
||||
dt1.Columns.Add("Qty", typeof(string));
|
||||
foreach (DataRow item in drs)
|
||||
{
|
||||
DataRow row = dt1.NewRow();
|
||||
row["Kind"] = item["CONTAMINATION_DTL_CODE"].ToString();
|
||||
row["Qty"] = item["CURRENT_NUMBER"].ToString();
|
||||
dt1.Rows.Add(row);
|
||||
}
|
||||
dt1.TableName = "Table1";
|
||||
#endregion
|
||||
|
||||
#region 化学污染
|
||||
//string sql2 = $@"SELECT CONTAMINATION_DTL_CODE Kind,CURRENT_NUMBER Qty FROM VW_WORKING_PALLET_MSG WHERE WORKING_PALLET_CODE = '{woringPalletMsg}' AND IR_CODE = '{workingIrCodeMsg}' AND CONTAMINATION_TYPE_CODE = 'ChemicalContamination'";
|
||||
//DataTable dt2 = LeadDbHelperSQLite.Query(sql2).Tables[0].Copy();
|
||||
drs = dtGroup.Select(" CONTAMINATION_TYPE_CODE = 'ChemicalContamination'");
|
||||
if (drs != null && drs.Length > 0)
|
||||
{
|
||||
LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】化学污染 明细数据获取成功!~~~~~~~~~~~~~~", LogTypeEum.Run);
|
||||
}
|
||||
else
|
||||
{
|
||||
LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】化学污染 明细数据获取失败!~~~~~~~~~~~~~~", LogTypeEum.Err);
|
||||
}
|
||||
DataTable dt2 = dt1.Clone();
|
||||
foreach (DataRow item in drs)
|
||||
{
|
||||
DataRow row = dt2.NewRow();
|
||||
row["Kind"] = item["CONTAMINATION_DTL_CODE"].ToString();
|
||||
row["Qty"] = item["CURRENT_NUMBER"].ToString();
|
||||
dt2.Rows.Add(row);
|
||||
}
|
||||
dt2.TableName = "Table2";
|
||||
#endregion
|
||||
|
||||
#region 微生物污染
|
||||
//string sql3 = $@"SELECT CONTAMINATION_DTL_CODE Kind,CURRENT_NUMBER Qty FROM VW_WORKING_PALLET_MSG WHERE WORKING_PALLET_CODE = '{woringPalletMsg}' AND IR_CODE = '{workingIrCodeMsg}' AND CONTAMINATION_TYPE_CODE = 'MicrobiologicalContamination'";
|
||||
//DataTable dt3 = LeadDbHelperSQLite.Query(sql3).Tables[0].Copy();
|
||||
drs = dtGroup.Select(" CONTAMINATION_TYPE_CODE = 'MicrobiologicalContamination'");
|
||||
if (drs != null && drs.Length > 0)
|
||||
{
|
||||
LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】微生物污染 明细数据获取成功!~~~~~~~~~~~~~~", LogTypeEum.Run);
|
||||
}
|
||||
else
|
||||
{
|
||||
LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】微生物污染 明细数据获取失败!~~~~~~~~~~~~~~", LogTypeEum.Err);
|
||||
}
|
||||
DataTable dt3 = dt1.Clone();
|
||||
foreach (DataRow item in drs)
|
||||
{
|
||||
DataRow row = dt3.NewRow();
|
||||
row["Kind"] = item["CONTAMINATION_DTL_CODE"].ToString();
|
||||
row["Qty"] = item["CURRENT_NUMBER"].ToString();
|
||||
dt3.Rows.Add(row);
|
||||
}
|
||||
dt3.TableName = "Table3";
|
||||
#endregion
|
||||
|
||||
string sql4 = $@"
|
||||
SELECT
|
||||
C.SHEET_TYPE_CODE Sheets,
|
||||
SUM(CASE CLEAN_MODE_CODE WHEN 'SortedCleaned' THEN Qty ELSE 0 END) SortedCleaned,
|
||||
SUM(CASE CLEAN_MODE_CODE WHEN 'SpecialCleaning' THEN Qty ELSE 0 END) SpecialCleaning,
|
||||
SUM(CASE CLEAN_MODE_CODE WHEN 'Scrap' THEN Qty ELSE 0 END) Scrap,
|
||||
SUM(CASE CLEAN_MODE_CODE WHEN 'Others' THEN Qty ELSE 0 END) Others,
|
||||
IFNULL(C.TotalQty, 0) TotalQty
|
||||
FROM
|
||||
(
|
||||
SELECT
|
||||
A.SHEET_TYPE_CODE,
|
||||
B.CLEAN_MODE_CODE,
|
||||
B.Qty,
|
||||
C.TotalQty
|
||||
FROM
|
||||
BAS_SHEET_TYPE A LEFT JOIN
|
||||
(
|
||||
SELECT
|
||||
SHEET_TYPE_CODE,
|
||||
SUM(CURRENT_NUMBER) TotalQty
|
||||
FROM
|
||||
VW_WORKING_PALLET_MSG
|
||||
WHERE
|
||||
IR_CODE = '{workingIrCodeMsg}'
|
||||
GROUP BY SHEET_TYPE_CODE) C ON A.SHEET_TYPE_CODE = C.SHEET_TYPE_CODE
|
||||
LEFT JOIN (
|
||||
SELECT
|
||||
SHEET_TYPE_CODE,
|
||||
CLEAN_MODE_CODE,
|
||||
SUM(CURRENT_NUMBER) Qty
|
||||
FROM
|
||||
VW_WORKING_PALLET_MSG
|
||||
WHERE
|
||||
IR_CODE = '{workingIrCodeMsg}'
|
||||
GROUP BY CLEAN_MODE_CODE,SHEET_TYPE_CODE
|
||||
) B ON C.SHEET_TYPE_CODE = B.SHEET_TYPE_CODE
|
||||
) C
|
||||
GROUP BY C.SHEET_TYPE_CODE,C.TotalQty
|
||||
";
|
||||
|
||||
DataTable dt4 = LeadDbHelperSQLite.Query(sql4).Tables[0].Copy();
|
||||
if (dt4 != null && dt4.Rows.Count > 0)
|
||||
{
|
||||
LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】按照板材分类和清洗方式统计的数据获取成功!~~~~~~~~~~~~~~", LogTypeEum.Run);
|
||||
}
|
||||
else
|
||||
{
|
||||
LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】按照板材分类和清洗方式统计的数据获取失败!~~~~~~~~~~~~~~", LogTypeEum.Err);
|
||||
}
|
||||
|
||||
dt4.TableName = "Table4";
|
||||
|
||||
|
||||
string sql5 = $@"
|
||||
SELECT
|
||||
SUM (CURRENT_NUMBER) CleanedSheets,
|
||||
date (INPUT_TIME) DateAndTime,
|
||||
USER_NAME Operator
|
||||
FROM
|
||||
VW_WORKING_PALLET_MSG
|
||||
WHERE
|
||||
IR_CODE = '{workingIrCodeMsg}'
|
||||
GROUP BY
|
||||
date (INPUT_TIME),
|
||||
OPERATE_USER_ID,
|
||||
USER_CODE,
|
||||
USER_NAME
|
||||
";
|
||||
|
||||
DataTable dt5 = LeadDbHelperSQLite.Query(sql5).Tables[0].Copy();
|
||||
if (dt5 != null && dt5.Rows.Count > 0)
|
||||
{
|
||||
LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】操作员每日作业板材数量的数据获取成功!~~~~~~~~~~~~~~", LogTypeEum.Run);
|
||||
}
|
||||
else
|
||||
{
|
||||
LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】操作员每日作业板材数量的数据获取失败!~~~~~~~~~~~~~~", LogTypeEum.Err);
|
||||
}
|
||||
dt5.TableName = "Table5";
|
||||
|
||||
string userName = dt.Rows[0]["USER_NAME"].ToString();
|
||||
DateTime dateMsg = Convert.ToDateTime(dt.Rows[0]["INPUT_TIME"]);
|
||||
string IRNumber = dt.Rows[0]["IR_CODE"].ToString();
|
||||
// string MacCode = Global.MacCode; //GlobalHelper.ParameterList.Select(" PARAMETER_CODE = 'CleanMachineName'")[0]["PARAMETER_VALUE"].ToString();
|
||||
|
||||
string sqlCleanedNum = $@"
|
||||
SELECT
|
||||
SUM(CURRENT_NUMBER) CURRENT_NUMBER
|
||||
FROM
|
||||
VW_WORKING_PALLET_MSG
|
||||
WHERE
|
||||
IR_CODE = '{workingIrCodeMsg}'
|
||||
AND CLEAN_MODE_CODE = 'SortedCleaned'
|
||||
";
|
||||
DataTable dtCleanedNum = LeadDbHelperSQLite.Query(sqlCleanedNum).Tables[0];
|
||||
string cleanNum = dtCleanedNum.Rows[0][0].ToString();
|
||||
|
||||
string sqlPalletNum = $@"
|
||||
SELECT
|
||||
DISTINCT WORKING_PALLET_CODE
|
||||
FROM
|
||||
VW_WORKING_PALLET_MSG
|
||||
WHERE
|
||||
IR_CODE = '{workingIrCodeMsg}'
|
||||
";
|
||||
DataTable dtPalletNum = LeadDbHelperSQLite.Query(sqlPalletNum).Tables[0];
|
||||
string palletNum = dtPalletNum.Rows.Count.ToString();
|
||||
|
||||
string sqlScrapNum = $@"
|
||||
SELECT
|
||||
SUM(CURRENT_NUMBER) CURRENT_NUMBER
|
||||
FROM
|
||||
VW_WORKING_PALLET_MSG
|
||||
WHERE
|
||||
IR_CODE = '{workingIrCodeMsg}'
|
||||
AND CLEAN_MODE_CODE <> 'SortedCleaned'
|
||||
";
|
||||
DataTable dtScrapNum = LeadDbHelperSQLite.Query(sqlScrapNum).Tables[0];
|
||||
string scrapNum = dtScrapNum.Rows[0][0].ToString();
|
||||
|
||||
DataSet dts = new DataSet();
|
||||
dts.Tables.Add(dt1);
|
||||
dts.Tables.Add(dt2);
|
||||
dts.Tables.Add(dt3);
|
||||
dts.Tables.Add(dt4);
|
||||
dts.Tables.Add(dt5);
|
||||
|
||||
LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】打印模板所需要的数据拼装完成!~~~~~~~~~~~~~~", LogTypeEum.Run);
|
||||
|
||||
LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】开始加载打印控件类!~~~~~~~~~~~~~~", LogTypeEum.Run);
|
||||
Report report = new Report();
|
||||
string filename = _reportFolder + "CleanMac_IRMsg_PrintMd.frx";
|
||||
report.Load(filename);
|
||||
report.RegisterData(dts);
|
||||
LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】打印控件类加载完成,数据传入成功!~~~~~~~~~~~~~~", LogTypeEum.Run);
|
||||
report.SetParameterValue("Parm_CusName", userName);
|
||||
report.SetParameterValue("Parm_MachineCode", MacCode);
|
||||
report.SetParameterValue("Parm_IRNumber", IRNumber);
|
||||
report.SetParameterValue("Parm_RecDate", dateMsg);
|
||||
report.SetParameterValue("Parm_RecordName", userName);
|
||||
report.SetParameterValue("Parm_CleanedNum", cleanNum);
|
||||
report.SetParameterValue("Parm_PalletNumber", palletNum);
|
||||
report.SetParameterValue("Parm_ScrapNumber", scrapNum);
|
||||
|
||||
LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】打印控件类所需参数设置成功,开始发送打印机数据!~~~~~~~~~~~~~~", LogTypeEum.Run);
|
||||
report.Prepare();
|
||||
|
||||
report.PrintSettings.ShowDialog = false;
|
||||
report.Print();
|
||||
report.Clear();
|
||||
LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】打印控件类发送打印机数据成功!~~~~~~~~~~~~~~", LogTypeEum.Run);
|
||||
}
|
||||
else
|
||||
{
|
||||
LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】打印明细数据获取失败!~~~~~~~~~~~~~~", LogTypeEum.Err);
|
||||
}
|
||||
LogHelper.WriteLog($"~~~~~~~~~~~~~~作业IR:【{workingIrCodeMsg}】自动打印结束。~~~~~~~~~~~~~~", LogTypeEum.Run);
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
92
CleanMachine.BLL/CM/LastPattleNumBLL.cs
Normal file
92
CleanMachine.BLL/CM/LastPattleNumBLL.cs
Normal file
@@ -0,0 +1,92 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"BLL\\CM\\LastPattleNumBLL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using CleanMachine.DAL.CM;
|
||||
|
||||
namespace CleanMachine.BLL.CM
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class LastPattleNumBLL
|
||||
{
|
||||
|
||||
public LastPattleNumBLL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
public bool Exists(string Key)
|
||||
{
|
||||
return new LastPattleNumDAL().Exists(Key);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
public bool Add(CleanMachine.Model.CM.LastPattleNum model)
|
||||
{
|
||||
return new LastPattleNumDAL().Add(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
public bool Update(CleanMachine.Model.CM.LastPattleNum model)
|
||||
{
|
||||
return new LastPattleNumDAL().Update(model);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(string strWhere, object Params = null)
|
||||
{
|
||||
return new LastPattleNumDAL().Delete(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(string Key)
|
||||
{
|
||||
return new LastPattleNumDAL().Delete(Key);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public IEnumerable<CleanMachine.Model.CM.LastPattleNum> GetList(string strWhere, object Params = null)
|
||||
{
|
||||
return new LastPattleNumDAL().GetList(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.CM.LastPattleNum GetModel(string Key)
|
||||
{
|
||||
return new LastPattleNumDAL().GetModel(Key);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.CM.LastPattleNum> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// return new LastPattleNumDAL().GetModelList(rule);
|
||||
// }
|
||||
}
|
||||
}
|
||||
82
CleanMachine.BLL/CM/ShiftCountBLL.cs
Normal file
82
CleanMachine.BLL/CM/ShiftCountBLL.cs
Normal file
@@ -0,0 +1,82 @@
|
||||
using CleanMachine.DAL.CM;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace CleanMachine.BLL.CM
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class ShiftCountBLL
|
||||
{
|
||||
|
||||
public ShiftCountBLL()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
public bool Exists(DateTime DateTime)
|
||||
{
|
||||
return new ShiftCountDAL().Exists(DateTime);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
public bool Add(CleanMachine.Model.CM.ShiftCount model)
|
||||
{
|
||||
return new ShiftCountDAL().Add(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
public bool Update(CleanMachine.Model.CM.ShiftCount model)
|
||||
{
|
||||
return new ShiftCountDAL().Update(model);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(string strWhere, object Params = null)
|
||||
{
|
||||
return new ShiftCountDAL().Delete(strWhere, Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(DateTime DateTime)
|
||||
{
|
||||
return new ShiftCountDAL().Delete(DateTime);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public IEnumerable<CleanMachine.Model.CM.ShiftCount> GetList(string strWhere, object Params = null)
|
||||
{
|
||||
return new ShiftCountDAL().GetList(strWhere, Params);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Cm.Model.ShiftCount> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// return new ShiftCountDAL().GetModelList(rule);
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
91
CleanMachine.BLL/CM/WarningLogBLL.cs
Normal file
91
CleanMachine.BLL/CM/WarningLogBLL.cs
Normal file
@@ -0,0 +1,91 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"BLL\\CM\\WarningLogBLL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using CleanMachine.DAL.CM;
|
||||
|
||||
namespace CleanMachine.BLL.CM
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class WarningLogBLL
|
||||
{
|
||||
|
||||
public WarningLogBLL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
public bool Exists(int WarningLogId)
|
||||
{
|
||||
return new WarningLogDAL().Exists(WarningLogId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
public bool Add(CleanMachine.Model.CM.WarningLog model)
|
||||
{
|
||||
return new WarningLogDAL().Add(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
public bool Update(CleanMachine.Model.CM.WarningLog model)
|
||||
{
|
||||
return new WarningLogDAL().Update(model);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(string strWhere, object Params = null)
|
||||
{
|
||||
return new WarningLogDAL().Delete(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(int WarningLogId)
|
||||
{
|
||||
return new WarningLogDAL().Delete(WarningLogId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public IEnumerable<CleanMachine.Model.CM.WarningLog> GetList(string strWhere, object Params = null)
|
||||
{
|
||||
return new WarningLogDAL().GetList(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.CM.WarningLog GetModel(int WarningLogId)
|
||||
{
|
||||
return new WarningLogDAL().GetModel(WarningLogId);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.CM.WarningLog> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// return new WarningLogDAL().GetModelList(rule);
|
||||
// }
|
||||
}
|
||||
}
|
||||
91
CleanMachine.BLL/CM/WorkingPalletBLL.cs
Normal file
91
CleanMachine.BLL/CM/WorkingPalletBLL.cs
Normal file
@@ -0,0 +1,91 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"BLL\\CM\\WorkingPalletBLL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using CleanMachine.DAL.CM;
|
||||
|
||||
namespace CleanMachine.BLL.CM
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class WorkingPalletBLL
|
||||
{
|
||||
|
||||
public WorkingPalletBLL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
public bool Exists(int WorkingPalletId)
|
||||
{
|
||||
return new WorkingPalletDAL().Exists(WorkingPalletId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
public bool Add(CleanMachine.Model.CM.WorkingPallet model)
|
||||
{
|
||||
return new WorkingPalletDAL().Add(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
public bool Update(CleanMachine.Model.CM.WorkingPallet model)
|
||||
{
|
||||
return new WorkingPalletDAL().Update(model);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(string strWhere, object Params = null)
|
||||
{
|
||||
return new WorkingPalletDAL().Delete(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(int WorkingPalletId)
|
||||
{
|
||||
return new WorkingPalletDAL().Delete(WorkingPalletId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public IEnumerable<CleanMachine.Model.CM.WorkingPallet> GetList(string strWhere, object Params = null)
|
||||
{
|
||||
return new WorkingPalletDAL().GetList(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.CM.WorkingPallet GetModel(int WorkingPalletId)
|
||||
{
|
||||
return new WorkingPalletDAL().GetModel(WorkingPalletId);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.CM.WorkingPallet> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// return new WorkingPalletDAL().GetModelList(rule);
|
||||
// }
|
||||
}
|
||||
}
|
||||
91
CleanMachine.BLL/CM/WorkingPalletDtlBLL.cs
Normal file
91
CleanMachine.BLL/CM/WorkingPalletDtlBLL.cs
Normal file
@@ -0,0 +1,91 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"BLL\\CM\\WorkingPalletDtlBLL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using CleanMachine.DAL.CM;
|
||||
|
||||
namespace CleanMachine.BLL.CM
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class WorkingPalletDtlBLL
|
||||
{
|
||||
|
||||
public WorkingPalletDtlBLL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
public bool Exists(int WorkingPalletDtlId)
|
||||
{
|
||||
return new WorkingPalletDtlDAL().Exists(WorkingPalletDtlId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
public bool Add(CleanMachine.Model.CM.WorkingPalletDtl model)
|
||||
{
|
||||
return new WorkingPalletDtlDAL().Add(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
public bool Update(CleanMachine.Model.CM.WorkingPalletDtl model)
|
||||
{
|
||||
return new WorkingPalletDtlDAL().Update(model);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(string strWhere, object Params = null)
|
||||
{
|
||||
return new WorkingPalletDtlDAL().Delete(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(int WorkingPalletDtlId)
|
||||
{
|
||||
return new WorkingPalletDtlDAL().Delete(WorkingPalletDtlId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public IEnumerable<CleanMachine.Model.CM.WorkingPalletDtl> GetList(string strWhere, object Params = null)
|
||||
{
|
||||
return new WorkingPalletDtlDAL().GetList(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.CM.WorkingPalletDtl GetModel(int WorkingPalletDtlId)
|
||||
{
|
||||
return new WorkingPalletDtlDAL().GetModel(WorkingPalletDtlId);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.CM.WorkingPalletDtl> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// return new WorkingPalletDtlDAL().GetModelList(rule);
|
||||
// }
|
||||
}
|
||||
}
|
||||
18
CleanMachine.BLL/CleanMachine.BLL.csproj
Normal file
18
CleanMachine.BLL/CleanMachine.BLL.csproj
Normal file
@@ -0,0 +1,18 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard2.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\CleanMachine.DAL\CleanMachine.DAL.csproj" />
|
||||
<ProjectReference Include="..\CleanMachine.Model\CleanMachine.Model.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Reference Include="FastReport">
|
||||
<HintPath>..\public\FastReport.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
91
CleanMachine.BLL/SYS/LanguageBLL.cs
Normal file
91
CleanMachine.BLL/SYS/LanguageBLL.cs
Normal file
@@ -0,0 +1,91 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"BLL\\SYS\\LanguageBLL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using CleanMachine.DAL.SYS;
|
||||
|
||||
namespace CleanMachine.BLL.SYS
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class LanguageBLL
|
||||
{
|
||||
|
||||
public LanguageBLL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
public bool Exists(int LanguageId)
|
||||
{
|
||||
return new LanguageDAL().Exists(LanguageId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
public bool Add(CleanMachine.Model.SYS.Language model)
|
||||
{
|
||||
return new LanguageDAL().Add(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
public bool Update(CleanMachine.Model.SYS.Language model)
|
||||
{
|
||||
return new LanguageDAL().Update(model);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(string strWhere, object Params = null)
|
||||
{
|
||||
return new LanguageDAL().Delete(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(int LanguageId)
|
||||
{
|
||||
return new LanguageDAL().Delete(LanguageId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public IEnumerable<CleanMachine.Model.SYS.Language> GetList(string strWhere, object Params = null)
|
||||
{
|
||||
return new LanguageDAL().GetList(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.SYS.Language GetModel(int LanguageId)
|
||||
{
|
||||
return new LanguageDAL().GetModel(LanguageId);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.SYS.Language> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// return new LanguageDAL().GetModelList(rule);
|
||||
// }
|
||||
}
|
||||
}
|
||||
91
CleanMachine.BLL/SYS/LanguageControlBLL.cs
Normal file
91
CleanMachine.BLL/SYS/LanguageControlBLL.cs
Normal file
@@ -0,0 +1,91 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"BLL\\SYS\\LanguageControlBLL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using CleanMachine.DAL.SYS;
|
||||
|
||||
namespace CleanMachine.BLL.SYS
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class LanguageControlBLL
|
||||
{
|
||||
|
||||
public LanguageControlBLL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
public bool Exists(int LanguageControlId)
|
||||
{
|
||||
return new LanguageControlDAL().Exists(LanguageControlId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
public bool Add(CleanMachine.Model.SYS.LanguageControl model)
|
||||
{
|
||||
return new LanguageControlDAL().Add(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
public bool Update(CleanMachine.Model.SYS.LanguageControl model)
|
||||
{
|
||||
return new LanguageControlDAL().Update(model);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(string strWhere, object Params = null)
|
||||
{
|
||||
return new LanguageControlDAL().Delete(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(int LanguageControlId)
|
||||
{
|
||||
return new LanguageControlDAL().Delete(LanguageControlId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public IEnumerable<CleanMachine.Model.SYS.LanguageControl> GetList(string strWhere, object Params = null)
|
||||
{
|
||||
return new LanguageControlDAL().GetList(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.SYS.LanguageControl GetModel(int LanguageControlId)
|
||||
{
|
||||
return new LanguageControlDAL().GetModel(LanguageControlId);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.SYS.LanguageControl> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// return new LanguageControlDAL().GetModelList(rule);
|
||||
// }
|
||||
}
|
||||
}
|
||||
91
CleanMachine.BLL/SYS/LogBLL.cs
Normal file
91
CleanMachine.BLL/SYS/LogBLL.cs
Normal file
@@ -0,0 +1,91 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"BLL\\SYS\\LogBLL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using CleanMachine.DAL.SYS;
|
||||
|
||||
namespace CleanMachine.BLL.SYS
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class LogBLL
|
||||
{
|
||||
|
||||
public LogBLL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
public bool Exists(int SysLogId)
|
||||
{
|
||||
return new LogDAL().Exists(SysLogId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
public bool Add(CleanMachine.Model.SYS.Log model)
|
||||
{
|
||||
return new LogDAL().Add(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
public bool Update(CleanMachine.Model.SYS.Log model)
|
||||
{
|
||||
return new LogDAL().Update(model);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(string strWhere, object Params = null)
|
||||
{
|
||||
return new LogDAL().Delete(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(int SysLogId)
|
||||
{
|
||||
return new LogDAL().Delete(SysLogId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public IEnumerable<CleanMachine.Model.SYS.Log> GetList(string strWhere, object Params = null)
|
||||
{
|
||||
return new LogDAL().GetList(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.SYS.Log GetModel(int SysLogId)
|
||||
{
|
||||
return new LogDAL().GetModel(SysLogId);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.SYS.Log> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// return new LogDAL().GetModelList(rule);
|
||||
// }
|
||||
}
|
||||
}
|
||||
91
CleanMachine.BLL/SYS/MenuBLL.cs
Normal file
91
CleanMachine.BLL/SYS/MenuBLL.cs
Normal file
@@ -0,0 +1,91 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"BLL\\SYS\\MenuBLL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using CleanMachine.DAL.SYS;
|
||||
|
||||
namespace CleanMachine.BLL.SYS
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class MenuBLL
|
||||
{
|
||||
|
||||
public MenuBLL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
public bool Exists(int MenuId)
|
||||
{
|
||||
return new MenuDAL().Exists(MenuId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
public bool Add(CleanMachine.Model.SYS.Menu model)
|
||||
{
|
||||
return new MenuDAL().Add(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
public bool Update(CleanMachine.Model.SYS.Menu model)
|
||||
{
|
||||
return new MenuDAL().Update(model);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(string strWhere, object Params = null)
|
||||
{
|
||||
return new MenuDAL().Delete(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(int MenuId)
|
||||
{
|
||||
return new MenuDAL().Delete(MenuId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public IEnumerable<CleanMachine.Model.SYS.Menu> GetList(string strWhere, object Params = null)
|
||||
{
|
||||
return new MenuDAL().GetList(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.SYS.Menu GetModel(int MenuId)
|
||||
{
|
||||
return new MenuDAL().GetModel(MenuId);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.SYS.Menu> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// return new MenuDAL().GetModelList(rule);
|
||||
// }
|
||||
}
|
||||
}
|
||||
101
CleanMachine.BLL/SYS/ParameterBLL.cs
Normal file
101
CleanMachine.BLL/SYS/ParameterBLL.cs
Normal file
@@ -0,0 +1,101 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"BLL\\SYS\\ParameterBLL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using CleanMachine.DAL.SYS;
|
||||
|
||||
namespace CleanMachine.BLL.SYS
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class ParameterBLL
|
||||
{
|
||||
|
||||
public ParameterBLL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
public bool Exists(int ParameterId)
|
||||
{
|
||||
return new ParameterDAL().Exists(ParameterId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
public bool Add(CleanMachine.Model.SYS.Parameter model)
|
||||
{
|
||||
return new ParameterDAL().Add(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
public bool Update(CleanMachine.Model.SYS.Parameter model)
|
||||
{
|
||||
return new ParameterDAL().Update(model);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(string strWhere, object Params = null)
|
||||
{
|
||||
return new ParameterDAL().Delete(strWhere, Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(int ParameterId)
|
||||
{
|
||||
return new ParameterDAL().Delete(ParameterId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public IEnumerable<CleanMachine.Model.SYS.Parameter> GetList(string strWhere, object Params = null)
|
||||
{
|
||||
return new ParameterDAL().GetList(strWhere, Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.SYS.Parameter GetModel(int ParameterId)
|
||||
{
|
||||
return new ParameterDAL().GetModel(ParameterId);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
public bool RestMaintainTime(int Time)
|
||||
{
|
||||
|
||||
return new ParameterDAL().Update("MaintainTime", Time.ToString());
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.SYS.Parameter> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// return new ParameterDAL().GetModelList(rule);
|
||||
// }
|
||||
}
|
||||
}
|
||||
91
CleanMachine.BLL/SYS/RoleBLL.cs
Normal file
91
CleanMachine.BLL/SYS/RoleBLL.cs
Normal file
@@ -0,0 +1,91 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"BLL\\SYS\\RoleBLL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using CleanMachine.DAL.SYS;
|
||||
|
||||
namespace CleanMachine.BLL.SYS
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class RoleBLL
|
||||
{
|
||||
|
||||
public RoleBLL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
public bool Exists(int RoleId)
|
||||
{
|
||||
return new RoleDAL().Exists(RoleId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
public bool Add(CleanMachine.Model.SYS.Role model)
|
||||
{
|
||||
return new RoleDAL().Add(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
public bool Update(CleanMachine.Model.SYS.Role model)
|
||||
{
|
||||
return new RoleDAL().Update(model);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(string strWhere, object Params = null)
|
||||
{
|
||||
return new RoleDAL().Delete(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(int RoleId)
|
||||
{
|
||||
return new RoleDAL().Delete(RoleId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public IEnumerable<CleanMachine.Model.SYS.Role> GetList(string strWhere, object Params = null)
|
||||
{
|
||||
return new RoleDAL().GetList(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.SYS.Role GetModel(int RoleId)
|
||||
{
|
||||
return new RoleDAL().GetModel(RoleId);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.SYS.Role> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// return new RoleDAL().GetModelList(rule);
|
||||
// }
|
||||
}
|
||||
}
|
||||
101
CleanMachine.BLL/SYS/RoleMenuPermissionBLL.cs
Normal file
101
CleanMachine.BLL/SYS/RoleMenuPermissionBLL.cs
Normal file
@@ -0,0 +1,101 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"BLL\\SYS\\RoleMenuPermissionBLL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using CleanMachine.DAL.SYS;
|
||||
|
||||
namespace CleanMachine.BLL.SYS
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class RoleMenuPermissionBLL
|
||||
{
|
||||
|
||||
public RoleMenuPermissionBLL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
public bool Exists(int RoleMenuPermissionId)
|
||||
{
|
||||
return new RoleMenuPermissionDAL().Exists(RoleMenuPermissionId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
public bool Add(CleanMachine.Model.SYS.RoleMenuPermission model)
|
||||
{
|
||||
return new RoleMenuPermissionDAL().Add(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
public bool Update(CleanMachine.Model.SYS.RoleMenuPermission model)
|
||||
{
|
||||
return new RoleMenuPermissionDAL().Update(model);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(string strWhere, object Params = null)
|
||||
{
|
||||
return new RoleMenuPermissionDAL().Delete(strWhere, Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(int RoleMenuPermissionId)
|
||||
{
|
||||
return new RoleMenuPermissionDAL().Delete(RoleMenuPermissionId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public IEnumerable<CleanMachine.Model.SYS.RoleMenuPermission> GetList(string strWhere, object Params = null)
|
||||
{
|
||||
return new RoleMenuPermissionDAL().GetList(strWhere, Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public IEnumerable<CleanMachine.Model.SYS.RoleMenuPermission> GetList(int RoleId)
|
||||
{
|
||||
return new RoleMenuPermissionDAL().GetList("A.ROLE_ID=@RoleId", new { RoleId });
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.SYS.RoleMenuPermission GetModel(int RoleMenuPermissionId)
|
||||
{
|
||||
return new RoleMenuPermissionDAL().GetModel(RoleMenuPermissionId);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.SYS.RoleMenuPermission> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// return new RoleMenuPermissionDAL().GetModelList(rule);
|
||||
// }
|
||||
}
|
||||
}
|
||||
91
CleanMachine.BLL/SYS/ScheduleDtlBLL.cs
Normal file
91
CleanMachine.BLL/SYS/ScheduleDtlBLL.cs
Normal file
@@ -0,0 +1,91 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"BLL\\SYS\\ScheduleDtlBLL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using CleanMachine.DAL.SYS;
|
||||
|
||||
namespace CleanMachine.BLL.SYS
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class ScheduleDtlBLL
|
||||
{
|
||||
|
||||
public ScheduleDtlBLL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
public bool Exists(int ScheduleDtlId)
|
||||
{
|
||||
return new ScheduleDtlDAL().Exists(ScheduleDtlId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
public bool Add(CleanMachine.Model.SYS.ScheduleDtl model)
|
||||
{
|
||||
return new ScheduleDtlDAL().Add(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
public bool Update(CleanMachine.Model.SYS.ScheduleDtl model)
|
||||
{
|
||||
return new ScheduleDtlDAL().Update(model);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(string strWhere, object Params = null)
|
||||
{
|
||||
return new ScheduleDtlDAL().Delete(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(int ScheduleDtlId)
|
||||
{
|
||||
return new ScheduleDtlDAL().Delete(ScheduleDtlId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public IEnumerable<CleanMachine.Model.SYS.ScheduleDtl> GetList(string strWhere, object Params = null)
|
||||
{
|
||||
return new ScheduleDtlDAL().GetList(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.SYS.ScheduleDtl GetModel(int ScheduleDtlId)
|
||||
{
|
||||
return new ScheduleDtlDAL().GetModel(ScheduleDtlId);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.SYS.ScheduleDtl> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// return new ScheduleDtlDAL().GetModelList(rule);
|
||||
// }
|
||||
}
|
||||
}
|
||||
113
CleanMachine.BLL/SYS/UserBLL.cs
Normal file
113
CleanMachine.BLL/SYS/UserBLL.cs
Normal file
@@ -0,0 +1,113 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"BLL\\SYS\\UserBLL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using CleanMachine.DAL.SYS;
|
||||
|
||||
namespace CleanMachine.BLL.SYS
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class UserBLL
|
||||
{
|
||||
|
||||
public UserBLL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
public bool Exists(int UserId)
|
||||
{
|
||||
return new UserDAL().Exists(UserId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
public bool Add(CleanMachine.Model.SYS.User model)
|
||||
{
|
||||
return new UserDAL().Add(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
public bool Update(CleanMachine.Model.SYS.User model)
|
||||
{
|
||||
return new UserDAL().Update(model);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(string strWhere, object Params = null)
|
||||
{
|
||||
return new UserDAL().Delete(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(int UserId)
|
||||
{
|
||||
return new UserDAL().Delete(UserId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public IEnumerable<CleanMachine.Model.SYS.User> GetList(string strWhere, object Params = null)
|
||||
{
|
||||
return new UserDAL().GetList(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.SYS.User GetModel(int UserId)
|
||||
{
|
||||
return new UserDAL().GetModel(UserId);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(string UserCode)
|
||||
{
|
||||
return new UserDAL().Delete(UserCode);
|
||||
}
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.SYS.User GetModel(string UserCode)
|
||||
{
|
||||
return new UserDAL().GetModel(UserCode);
|
||||
}
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
public bool Exists(string UserCode)
|
||||
{
|
||||
return new UserDAL().Exists(UserCode);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.SYS.User> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// return new UserDAL().GetModelList(rule);
|
||||
// }
|
||||
}
|
||||
}
|
||||
30
CleanMachine.BLL/ZBK/DayReportBLL.cs
Normal file
30
CleanMachine.BLL/ZBK/DayReportBLL.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace CleanMachine.BLL.ZBK
|
||||
{
|
||||
public class DayReportBLL
|
||||
{
|
||||
|
||||
public IEnumerable<Model.ZBK.DayReport> GetReport(string strWhere, object Params = null)
|
||||
{
|
||||
return new CleanMachine.DAL.ZBK.DayReportDAL().GetReport(strWhere, Params);
|
||||
}
|
||||
public IEnumerable<Model.ZBK.DayReport> GetReport(DateTime BeginDate, DateTime EndDate)
|
||||
{
|
||||
return new CleanMachine.DAL.ZBK.DayReportDAL().GetReport("date >=@BeginDate and Date<=@EndDate ", new { BeginDate, EndDate });
|
||||
}
|
||||
|
||||
public IEnumerable<Model.ZBK.OperatorReport> GetOPReport(string strWhere, object Params = null)
|
||||
{
|
||||
return new CleanMachine.DAL.ZBK.DayReportDAL().GetOPReport(strWhere, Params);
|
||||
}
|
||||
|
||||
public IEnumerable<Model.ZBK.OperatorReport> GetOPReport(DateTime BeginDate, DateTime EndDate)
|
||||
{
|
||||
return new CleanMachine.DAL.ZBK.DayReportDAL().GetOPReport("date >=@BeginDate and Date<=@EndDate ", new { BeginDate, EndDate });
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
91
CleanMachine.BLL/ZBK/WorkingPalletBLL.cs
Normal file
91
CleanMachine.BLL/ZBK/WorkingPalletBLL.cs
Normal file
@@ -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
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class WorkingPalletBLL
|
||||
{
|
||||
|
||||
public WorkingPalletBLL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
public bool Exists(int WorkingPalletId)
|
||||
{
|
||||
return new WorkingPalletDAL().Exists(WorkingPalletId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
public bool Add(CleanMachine.Model.ZBK.WorkingPallet model)
|
||||
{
|
||||
return new WorkingPalletDAL().Add(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
public bool Update(CleanMachine.Model.ZBK.WorkingPallet model)
|
||||
{
|
||||
return new WorkingPalletDAL().Update(model);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(string strWhere, object Params = null)
|
||||
{
|
||||
return new WorkingPalletDAL().Delete(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(int WorkingPalletId)
|
||||
{
|
||||
return new WorkingPalletDAL().Delete(WorkingPalletId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public IEnumerable<CleanMachine.Model.ZBK.WorkingPallet> GetList(string strWhere, object Params = null)
|
||||
{
|
||||
return new WorkingPalletDAL().GetList(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.ZBK.WorkingPallet GetModel(int WorkingPalletId)
|
||||
{
|
||||
return new WorkingPalletDAL().GetModel(WorkingPalletId);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.ZBK.WorkingPallet> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// return new WorkingPalletDAL().GetModelList(rule);
|
||||
// }
|
||||
}
|
||||
}
|
||||
91
CleanMachine.BLL/ZBK/WorkingPalletDtlBLL.cs
Normal file
91
CleanMachine.BLL/ZBK/WorkingPalletDtlBLL.cs
Normal file
@@ -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
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class WorkingPalletDtlBLL
|
||||
{
|
||||
|
||||
public WorkingPalletDtlBLL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
public bool Exists(int WorkingPalletDtlId)
|
||||
{
|
||||
return new WorkingPalletDtlDAL().Exists(WorkingPalletDtlId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
public bool Add(CleanMachine.Model.ZBK.WorkingPalletDtl model)
|
||||
{
|
||||
return new WorkingPalletDtlDAL().Add(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
public bool Update(CleanMachine.Model.ZBK.WorkingPalletDtl model)
|
||||
{
|
||||
return new WorkingPalletDtlDAL().Update(model);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(string strWhere, object Params = null)
|
||||
{
|
||||
return new WorkingPalletDtlDAL().Delete(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(int WorkingPalletDtlId)
|
||||
{
|
||||
return new WorkingPalletDtlDAL().Delete(WorkingPalletDtlId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public IEnumerable<CleanMachine.Model.ZBK.WorkingPalletDtl> GetList(string strWhere, object Params = null)
|
||||
{
|
||||
return new WorkingPalletDtlDAL().GetList(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.ZBK.WorkingPalletDtl GetModel(int WorkingPalletDtlId)
|
||||
{
|
||||
return new WorkingPalletDtlDAL().GetModel(WorkingPalletDtlId);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.ZBK.WorkingPalletDtl> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// return new WorkingPalletDtlDAL().GetModelList(rule);
|
||||
// }
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,9 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Properties\" />
|
||||
<Compile Remove="Properties\**" />
|
||||
<EmbeddedResource Remove="Properties\**" />
|
||||
<None Remove="Properties\**" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
112
CleanMachine.DAL/BAS/CleanModeDAL.cs
Normal file
112
CleanMachine.DAL/BAS/CleanModeDAL.cs
Normal file
@@ -0,0 +1,112 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"DAL\\BAS\\CleanModeDAL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
|
||||
using LeadDataBaseUtility;
|
||||
|
||||
namespace CleanMachine.DAL.BAS
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class CleanModeDAL
|
||||
{
|
||||
|
||||
|
||||
|
||||
public CleanModeDAL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
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)
|
||||
values
|
||||
(@CleanModeId,@CleanModeCode,@CleanModeName,@UsedFlag,@DelFlag,@CreateBy,@CreateTime,@UpdateBy,@UpdateTime,@DataVersion,@Remarks1,@Remarks2,@Remarks3,@Remarks4,@Remarks5) ";
|
||||
return LeadDbHelperSQLite.Execute(strSql, model) > 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
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
|
||||
WHERE CLEAN_MODE_ID=@CleanModeId ";
|
||||
return LeadDbHelperSQLite.Execute(strSql, model) > 0;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(string strWhere, object Params = null)
|
||||
{
|
||||
string strSql = $@"DELETE FROM BAS_CLEAN_MODE ";
|
||||
if (strWhere.Trim() != "")
|
||||
{
|
||||
strSql += $" WHERE {strWhere}";
|
||||
}
|
||||
return LeadDbHelperSQLite.Execute(strSql, Params) > 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(int CleanModeId)
|
||||
{
|
||||
return this.Delete("CLEAN_MODE_ID=@CleanModeId ", new { CleanModeId }) ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
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.BAS.CleanMode>(strSql, Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.BAS.CleanMode GetModel(int CleanModeId)
|
||||
{
|
||||
return this.GetList("CLEAN_MODE_ID=@CleanModeId", new { CleanModeId }).FirstOrDefault();
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.BAS.CleanMode> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// var tuper = _dbhelper.BuildRuleGroupStr(rule);
|
||||
// return this.GetList(tuper.where, tuper.Param);
|
||||
// }
|
||||
}
|
||||
}
|
||||
112
CleanMachine.DAL/BAS/ContaminationDtlDAL.cs
Normal file
112
CleanMachine.DAL/BAS/ContaminationDtlDAL.cs
Normal file
@@ -0,0 +1,112 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"DAL\\BAS\\ContaminationDtlDAL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
|
||||
using LeadDataBaseUtility;
|
||||
|
||||
namespace CleanMachine.DAL.BAS
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class ContaminationDtlDAL
|
||||
{
|
||||
|
||||
|
||||
|
||||
public ContaminationDtlDAL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
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)
|
||||
values
|
||||
(@ContaminationDtlId,@ContaminationTypeCode,@ContaminationDtlCode,@ContaminationDtlName,@UsedFlag,@DelFlag,@CreateBy,@CreateTime,@UpdateBy,@UpdateTime,@DataVersion,@Remarks1,@Remarks2,@Remarks3,@Remarks4,@Remarks5) ";
|
||||
return LeadDbHelperSQLite.Execute(strSql, model) > 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
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
|
||||
WHERE CONTAMINATION_DTL_ID=@ContaminationDtlId ";
|
||||
return LeadDbHelperSQLite.Execute(strSql, model) > 0;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(string strWhere, object Params = null)
|
||||
{
|
||||
string strSql = $@"DELETE FROM BAS_CONTAMINATION_DTL ";
|
||||
if (strWhere.Trim() != "")
|
||||
{
|
||||
strSql += $" WHERE {strWhere}";
|
||||
}
|
||||
return LeadDbHelperSQLite.Execute(strSql, Params) > 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(int ContaminationDtlId)
|
||||
{
|
||||
return this.Delete("CONTAMINATION_DTL_ID=@ContaminationDtlId ", new { ContaminationDtlId }) ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
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.BAS.ContaminationDtl>(strSql, Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.BAS.ContaminationDtl GetModel(int ContaminationDtlId)
|
||||
{
|
||||
return this.GetList("CONTAMINATION_DTL_ID=@ContaminationDtlId", new { ContaminationDtlId }).FirstOrDefault();
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.BAS.ContaminationDtl> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// var tuper = _dbhelper.BuildRuleGroupStr(rule);
|
||||
// return this.GetList(tuper.where, tuper.Param);
|
||||
// }
|
||||
}
|
||||
}
|
||||
112
CleanMachine.DAL/BAS/ContaminationTypeDAL.cs
Normal file
112
CleanMachine.DAL/BAS/ContaminationTypeDAL.cs
Normal file
@@ -0,0 +1,112 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"DAL\\BAS\\ContaminationTypeDAL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
|
||||
using LeadDataBaseUtility;
|
||||
|
||||
namespace CleanMachine.DAL.BAS
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class ContaminationTypeDAL
|
||||
{
|
||||
|
||||
|
||||
|
||||
public ContaminationTypeDAL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
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)
|
||||
values
|
||||
(@ContaminationTypeId,@ContaminationTypeCode,@ContaminationTypeName,@CleanModeCode,@UsedFlag,@DelFlag,@CreateBy,@CreateTime,@UpdateBy,@UpdateTime,@DataVersion,@Remarks1,@Remarks2,@Remarks3,@Remarks4,@Remarks5) ";
|
||||
return LeadDbHelperSQLite.Execute(strSql, model) > 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
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
|
||||
WHERE CONTAMINATION_TYPE_ID=@ContaminationTypeId ";
|
||||
return LeadDbHelperSQLite.Execute(strSql, model) > 0;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(string strWhere, object Params = null)
|
||||
{
|
||||
string strSql = $@"DELETE FROM BAS_CONTAMINATION_TYPE ";
|
||||
if (strWhere.Trim() != "")
|
||||
{
|
||||
strSql += $" WHERE {strWhere}";
|
||||
}
|
||||
return LeadDbHelperSQLite.Execute(strSql, Params) > 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(int ContaminationTypeId)
|
||||
{
|
||||
return this.Delete("CONTAMINATION_TYPE_ID=@ContaminationTypeId ", new { ContaminationTypeId }) ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
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.BAS.ContaminationType>(strSql, Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.BAS.ContaminationType GetModel(int ContaminationTypeId)
|
||||
{
|
||||
return this.GetList("CONTAMINATION_TYPE_ID=@ContaminationTypeId", new { ContaminationTypeId }).FirstOrDefault();
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.BAS.ContaminationType> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// var tuper = _dbhelper.BuildRuleGroupStr(rule);
|
||||
// return this.GetList(tuper.where, tuper.Param);
|
||||
// }
|
||||
}
|
||||
}
|
||||
112
CleanMachine.DAL/BAS/PlcItemDAL.cs
Normal file
112
CleanMachine.DAL/BAS/PlcItemDAL.cs
Normal file
@@ -0,0 +1,112 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"DAL\\BAS\\PlcItemDAL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
|
||||
using LeadDataBaseUtility;
|
||||
|
||||
namespace CleanMachine.DAL.BAS
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class PlcItemDAL
|
||||
{
|
||||
|
||||
|
||||
|
||||
public PlcItemDAL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
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)
|
||||
values
|
||||
(@PlcItemId,@PlcItemCode,@PlcItemName,@PlcItemType,@PlcItemDataType,@PlcItemDataLength,@PlcItemPriAddress,@PlcItemModbusAddress,@PlcItemDeviationAddress,@PlcItemValue,@UsedFlag,@DelFlag,@CreateBy,@CreateTime,@UpdateBy,@UpdateTime,@DataVersion,@Remarks1,@Remarks2,@Remarks3,@Remarks4,@Remarks5) ";
|
||||
return LeadDbHelperSQLite.Execute(strSql, model) > 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
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
|
||||
WHERE PLC_ITEM_ID=@PlcItemId ";
|
||||
return LeadDbHelperSQLite.Execute(strSql, model) > 0;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(string strWhere, object Params = null)
|
||||
{
|
||||
string strSql = $@"DELETE FROM BAS_PLC_ITEM ";
|
||||
if (strWhere.Trim() != "")
|
||||
{
|
||||
strSql += $" WHERE {strWhere}";
|
||||
}
|
||||
return LeadDbHelperSQLite.Execute(strSql, Params) > 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(int PlcItemId)
|
||||
{
|
||||
return this.Delete("PLC_ITEM_ID=@PlcItemId ", new { PlcItemId }) ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
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.BAS.PlcItem>(strSql, Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.BAS.PlcItem GetModel(int PlcItemId)
|
||||
{
|
||||
return this.GetList("PLC_ITEM_ID=@PlcItemId", new { PlcItemId }).FirstOrDefault();
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.BAS.PlcItem> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// var tuper = _dbhelper.BuildRuleGroupStr(rule);
|
||||
// return this.GetList(tuper.where, tuper.Param);
|
||||
// }
|
||||
}
|
||||
}
|
||||
112
CleanMachine.DAL/BAS/SheetTypeDAL.cs
Normal file
112
CleanMachine.DAL/BAS/SheetTypeDAL.cs
Normal file
@@ -0,0 +1,112 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"DAL\\BAS\\SheetTypeDAL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
|
||||
using LeadDataBaseUtility;
|
||||
|
||||
namespace CleanMachine.DAL.BAS
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class SheetTypeDAL
|
||||
{
|
||||
|
||||
|
||||
|
||||
public SheetTypeDAL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
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)
|
||||
values
|
||||
(@SheetTypeId,@SheetTypeCode,@SheetTypeName,@UsedFlag,@DelFlag,@CreateBy,@CreateTime,@UpdateBy,@UpdateTime,@DataVersion,@Remarks1,@Remarks2,@Remarks3,@Remarks4,@Remarks5) ";
|
||||
return LeadDbHelperSQLite.Execute(strSql, model) > 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
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
|
||||
WHERE SHEET_TYPE_ID=@SheetTypeId ";
|
||||
return LeadDbHelperSQLite.Execute(strSql, model) > 0;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(string strWhere, object Params = null)
|
||||
{
|
||||
string strSql = $@"DELETE FROM BAS_SHEET_TYPE ";
|
||||
if (strWhere.Trim() != "")
|
||||
{
|
||||
strSql += $" WHERE {strWhere}";
|
||||
}
|
||||
return LeadDbHelperSQLite.Execute(strSql, Params) > 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(int SheetTypeId)
|
||||
{
|
||||
return this.Delete("SHEET_TYPE_ID=@SheetTypeId ", new { SheetTypeId }) ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
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.BAS.SheetType>(strSql, Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.BAS.SheetType GetModel(int SheetTypeId)
|
||||
{
|
||||
return this.GetList("SHEET_TYPE_ID=@SheetTypeId", new { SheetTypeId }).FirstOrDefault();
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.BAS.SheetType> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// var tuper = _dbhelper.BuildRuleGroupStr(rule);
|
||||
// return this.GetList(tuper.where, tuper.Param);
|
||||
// }
|
||||
}
|
||||
}
|
||||
112
CleanMachine.DAL/BAS/WarningDAL.cs
Normal file
112
CleanMachine.DAL/BAS/WarningDAL.cs
Normal file
@@ -0,0 +1,112 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"DAL\\BAS\\WarningDAL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
|
||||
using LeadDataBaseUtility;
|
||||
|
||||
namespace CleanMachine.DAL.BAS
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class WarningDAL
|
||||
{
|
||||
|
||||
|
||||
|
||||
public WarningDAL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
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)
|
||||
values
|
||||
(@WarningId,@WarningCode,@WarningName,@PlcItemCode,@WarningType,@WarningMessage,@UsedFlag,@DelFlag,@CreateBy,@CreateTime,@UpdateBy,@UpdateTime,@DataVersion,@Remarks1,@Remarks2,@Remarks3,@Remarks4,@Remarks5) ";
|
||||
return LeadDbHelperSQLite.Execute(strSql, model) > 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
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
|
||||
WHERE WARNING_ID=@WarningId ";
|
||||
return LeadDbHelperSQLite.Execute(strSql, model) > 0;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(string strWhere, object Params = null)
|
||||
{
|
||||
string strSql = $@"DELETE FROM BAS_WARNING ";
|
||||
if (strWhere.Trim() != "")
|
||||
{
|
||||
strSql += $" WHERE {strWhere}";
|
||||
}
|
||||
return LeadDbHelperSQLite.Execute(strSql, Params) > 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(int WarningId)
|
||||
{
|
||||
return this.Delete("WARNING_ID=@WarningId ", new { WarningId }) ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
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.BAS.Warning>(strSql, Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.BAS.Warning GetModel(int WarningId)
|
||||
{
|
||||
return this.GetList("WARNING_ID=@WarningId", new { WarningId }).FirstOrDefault();
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.BAS.Warning> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// var tuper = _dbhelper.BuildRuleGroupStr(rule);
|
||||
// return this.GetList(tuper.where, tuper.Param);
|
||||
// }
|
||||
}
|
||||
}
|
||||
106
CleanMachine.DAL/CM/DayWorkTimeDAL.cs
Normal file
106
CleanMachine.DAL/CM/DayWorkTimeDAL.cs
Normal file
@@ -0,0 +1,106 @@
|
||||
using LeadDataBaseUtility;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace CleanMachine.DAL.CM
|
||||
{
|
||||
public class DayWorkTimeDAL
|
||||
{
|
||||
public DayWorkTimeDAL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
public bool Exists(DateTime Date,string UserName)
|
||||
{
|
||||
string strSql = @"SELECT count(1) from CM_DayWorkTime WHERE Date=@Date and UserName=@UserName ";
|
||||
return LeadDbHelperSQLite.ExecuteScalar<int>(strSql, new { Date, UserName }) > 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
public bool Add(CleanMachine.Model.CM.DayWorkTime model)
|
||||
{
|
||||
string strSql = $@"INSERT INTO CM_DayWorkTime
|
||||
(Date,StartValue,EndValue,StartTime,UserName)
|
||||
values
|
||||
(@Date,@StartValue,@EndValue,@StartTime,@UserName) ";
|
||||
return LeadDbHelperSQLite.Execute(strSql, model) > 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
public bool Update(CleanMachine.Model.CM.DayWorkTime model)
|
||||
{
|
||||
string strSql = $@"UPDATE CM_DayWorkTime SET
|
||||
StartValue=@StartValue,EndValue=@EndValue
|
||||
WHERE Date=@Date and UserName=@UserName ";
|
||||
return LeadDbHelperSQLite.Execute(strSql, model) > 0;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
public bool UpdateEndValue(CleanMachine.Model.CM.DayWorkTime model)
|
||||
{
|
||||
string strSql = $@"UPDATE CM_DayWorkTime SET
|
||||
EndValue=@EndValue,
|
||||
EndTime=@EndTime
|
||||
WHERE Date=@Date ";
|
||||
return LeadDbHelperSQLite.Execute(strSql, model) > 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(string strWhere, object Params = null)
|
||||
{
|
||||
string strSql = $@"DELETE FROM CM_DayWorkTime ";
|
||||
if (strWhere.Trim() != "")
|
||||
{
|
||||
strSql += $" WHERE {strWhere}";
|
||||
}
|
||||
return LeadDbHelperSQLite.Execute(strSql, Params) > 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(DateTime Date)
|
||||
{
|
||||
return this.Delete("Date=@Date ", new { Date });
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public IEnumerable<CleanMachine.Model.CM.DayWorkTime> GetList(string strWhere, object Params = null)
|
||||
{
|
||||
string strSql = $@"SELECT * FROM CM_DayWorkTime ";
|
||||
if (strWhere.Trim() != "")
|
||||
{
|
||||
strSql += $" WHERE {strWhere}";
|
||||
}
|
||||
return LeadDbHelperSQLite.Query<CleanMachine.Model.CM.DayWorkTime>(strSql, Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.CM.DayWorkTime GetModel(DateTime Date)
|
||||
{
|
||||
return this.GetList("Date=@Date", new { Date }).FirstOrDefault();
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
115
CleanMachine.DAL/CM/LastPattleNumDAL.cs
Normal file
115
CleanMachine.DAL/CM/LastPattleNumDAL.cs
Normal file
@@ -0,0 +1,115 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"DAL\\CM\\LastPattleNumDAL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
|
||||
using LeadDataBaseUtility;
|
||||
|
||||
namespace CleanMachine.DAL.CM
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class LastPattleNumDAL
|
||||
{
|
||||
|
||||
|
||||
|
||||
public LastPattleNumDAL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <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 bool Add(CleanMachine.Model.CM.LastPattleNum model)
|
||||
{
|
||||
string strSql = $@"INSERT INTO CM_LastPattleNum
|
||||
(Key,Value)
|
||||
values
|
||||
(@Key,@Value) ";
|
||||
return LeadDbHelperSQLite.Execute(strSql, model) > 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
public bool Update(CleanMachine.Model.CM.LastPattleNum model)
|
||||
{
|
||||
string strSql = $@"UPDATE CM_LastPattleNum SET
|
||||
Value=@Value
|
||||
WHERE Key=@Key ";
|
||||
return LeadDbHelperSQLite.Execute(strSql, model) > 0;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(string strWhere, object Params = null)
|
||||
{
|
||||
string strSql = $@"DELETE FROM CM_LastPattleNum ";
|
||||
if (strWhere.Trim() != "")
|
||||
{
|
||||
strSql += $" WHERE {strWhere}";
|
||||
}
|
||||
return LeadDbHelperSQLite.Execute(strSql, Params) > 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(string Key)
|
||||
{
|
||||
return this.Delete("Key=@Key ", new { Key }) ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
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.CM.LastPattleNum>(strSql, Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.CM.LastPattleNum GetModel(string Key)
|
||||
{
|
||||
return this.GetList("Key=@Key", new { Key }).FirstOrDefault();
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.CM.LastPattleNum> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// var tuper = _dbhelper.BuildRuleGroupStr(rule);
|
||||
// return this.GetList(tuper.where, tuper.Param);
|
||||
// }
|
||||
}
|
||||
}
|
||||
96
CleanMachine.DAL/CM/ShiftCountDAL.cs
Normal file
96
CleanMachine.DAL/CM/ShiftCountDAL.cs
Normal file
@@ -0,0 +1,96 @@
|
||||
using LeadDataBaseUtility;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace CleanMachine.DAL.CM
|
||||
{
|
||||
public class ShiftCountDAL
|
||||
{
|
||||
public ShiftCountDAL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
public bool Exists(DateTime DateTime)
|
||||
{
|
||||
string strSql = @"SELECT count(1) from CM_SHIFT_COUNT WHERE DateTime=@DateTime ";
|
||||
return LeadDbHelperSQLite.ExecuteScalar<int>(strSql, new { DateTime }) > 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
public bool Add(CleanMachine.Model.CM.ShiftCount model)
|
||||
{
|
||||
string strSql = $@"INSERT INTO CM_SHIFT_COUNT
|
||||
(DateTime,count,UserCode)
|
||||
values
|
||||
(@DateTime,@Count,@UserCode) ";
|
||||
return LeadDbHelperSQLite.Execute(strSql, model) > 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
public bool Update(CleanMachine.Model.CM.ShiftCount model)
|
||||
{
|
||||
string strSql = $@"UPDATE CM_SHIFT_COUNT SET
|
||||
count=@Count,UserCode=@UserCode
|
||||
WHERE DateTime=@DateTime ";
|
||||
return LeadDbHelperSQLite.Execute(strSql, model) > 0;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(string strWhere, object Params = null)
|
||||
{
|
||||
string strSql = $@"DELETE FROM CM_SHIFT_COUNT ";
|
||||
if (strWhere.Trim() != "")
|
||||
{
|
||||
strSql += $" WHERE {strWhere}";
|
||||
}
|
||||
return LeadDbHelperSQLite.Execute(strSql, Params) > 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(DateTime DateTime)
|
||||
{
|
||||
return this.Delete("DateTime=@DateTime ", new { DateTime });
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public IEnumerable<CleanMachine.Model.CM.ShiftCount> GetList(string strWhere, object Params = null)
|
||||
{
|
||||
string strSql = $@"SELECT * FROM CM_SHIFT_COUNT ";
|
||||
if (strWhere.Trim() != "")
|
||||
{
|
||||
strSql += $" WHERE {strWhere}";
|
||||
}
|
||||
return LeadDbHelperSQLite.Query <CleanMachine.Model.CM.ShiftCount> (strSql, Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.CM.ShiftCount GetModel(DateTime DateTime)
|
||||
{
|
||||
return this.GetList("DateTime=@DateTime", new { DateTime }).FirstOrDefault();
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
112
CleanMachine.DAL/CM/WarningLogDAL.cs
Normal file
112
CleanMachine.DAL/CM/WarningLogDAL.cs
Normal file
@@ -0,0 +1,112 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"DAL\\CM\\WarningLogDAL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
|
||||
using LeadDataBaseUtility;
|
||||
|
||||
namespace CleanMachine.DAL.CM
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class WarningLogDAL
|
||||
{
|
||||
|
||||
|
||||
|
||||
public WarningLogDAL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
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)
|
||||
values
|
||||
(@WarningLogId,@WarningCode,@WarningName,@WarningType,@WarningMessage,@WarningTime,@PlcItemCode,@WaringStatus,@WarningHandleResult,@WarningHandleTime,@CreateBy,@CreateTime,@UpdateBy,@UpdateTime,@DataVersion,@Remarks1,@Remarks2,@Remarks3,@Remarks4,@Remarks5) ";
|
||||
return LeadDbHelperSQLite.Execute(strSql, model) > 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
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
|
||||
WHERE WARNING_LOG_ID=@WarningLogId ";
|
||||
return LeadDbHelperSQLite.Execute(strSql, model) > 0;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(string strWhere, object Params = null)
|
||||
{
|
||||
string strSql = $@"DELETE FROM CM_WARNING_LOG ";
|
||||
if (strWhere.Trim() != "")
|
||||
{
|
||||
strSql += $" WHERE {strWhere}";
|
||||
}
|
||||
return LeadDbHelperSQLite.Execute(strSql, Params) > 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(int WarningLogId)
|
||||
{
|
||||
return this.Delete("WARNING_LOG_ID=@WarningLogId ", new { WarningLogId }) ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
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.CM.WarningLog>(strSql, Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.CM.WarningLog GetModel(int WarningLogId)
|
||||
{
|
||||
return this.GetList("WARNING_LOG_ID=@WarningLogId", new { WarningLogId }).FirstOrDefault();
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.CM.WarningLog> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// var tuper = _dbhelper.BuildRuleGroupStr(rule);
|
||||
// return this.GetList(tuper.where, tuper.Param);
|
||||
// }
|
||||
}
|
||||
}
|
||||
112
CleanMachine.DAL/CM/WorkingPalletDAL.cs
Normal file
112
CleanMachine.DAL/CM/WorkingPalletDAL.cs
Normal 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);
|
||||
// }
|
||||
}
|
||||
}
|
||||
112
CleanMachine.DAL/CM/WorkingPalletDtlDAL.cs
Normal file
112
CleanMachine.DAL/CM/WorkingPalletDtlDAL.cs
Normal 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);
|
||||
// }
|
||||
}
|
||||
}
|
||||
12
CleanMachine.DAL/CleanMachine.DAL.csproj
Normal file
12
CleanMachine.DAL/CleanMachine.DAL.csproj
Normal file
@@ -0,0 +1,12 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard2.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\CleanMachine.Model\CleanMachine.Model.csproj" />
|
||||
<ProjectReference Include="..\LeadDataBaseUtility\LeadDataBaseUtility.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
112
CleanMachine.DAL/SYS/LanguageControlDAL.cs
Normal file
112
CleanMachine.DAL/SYS/LanguageControlDAL.cs
Normal file
@@ -0,0 +1,112 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"DAL\\SYS\\LanguageControlDAL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
|
||||
using LeadDataBaseUtility;
|
||||
|
||||
namespace CleanMachine.DAL.SYS
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class LanguageControlDAL
|
||||
{
|
||||
|
||||
|
||||
|
||||
public LanguageControlDAL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
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)
|
||||
values
|
||||
(@LanguageControlId,@LanguageCode,@FormCode,@ControlCode,@ControlName,@ControlType,@UsedFlag,@DelFlag,@CreateBy,@CreateTime,@UpdateBy,@UpdateTime,@DataVersion,@Remarks1,@Remarks2,@Remarks3,@Remarks4,@Remarks5) ";
|
||||
return LeadDbHelperSQLite.Execute(strSql, model) > 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
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
|
||||
WHERE LANGUAGE_CONTROL_ID=@LanguageControlId ";
|
||||
return LeadDbHelperSQLite.Execute(strSql, model) > 0;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(string strWhere, object Params = null)
|
||||
{
|
||||
string strSql = $@"DELETE FROM SYS_LANGUAGE_CONTROL ";
|
||||
if (strWhere.Trim() != "")
|
||||
{
|
||||
strSql += $" WHERE {strWhere}";
|
||||
}
|
||||
return LeadDbHelperSQLite.Execute(strSql, Params) > 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(int LanguageControlId)
|
||||
{
|
||||
return this.Delete("LANGUAGE_CONTROL_ID=@LanguageControlId ", new { LanguageControlId }) ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
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.SYS.LanguageControl>(strSql, Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.SYS.LanguageControl GetModel(int LanguageControlId)
|
||||
{
|
||||
return this.GetList("LANGUAGE_CONTROL_ID=@LanguageControlId", new { LanguageControlId }).FirstOrDefault();
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.SYS.LanguageControl> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// var tuper = _dbhelper.BuildRuleGroupStr(rule);
|
||||
// return this.GetList(tuper.where, tuper.Param);
|
||||
// }
|
||||
}
|
||||
}
|
||||
112
CleanMachine.DAL/SYS/LanguageDAL.cs
Normal file
112
CleanMachine.DAL/SYS/LanguageDAL.cs
Normal file
@@ -0,0 +1,112 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"DAL\\SYS\\LanguageDAL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
|
||||
using LeadDataBaseUtility;
|
||||
|
||||
namespace CleanMachine.DAL.SYS
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class LanguageDAL
|
||||
{
|
||||
|
||||
|
||||
|
||||
public LanguageDAL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
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)
|
||||
values
|
||||
(@LanguageId,@LanguageCode,@LanguageName,@UsedFlag,@DelFlag,@CreateBy,@CreateTime,@UpdateBy,@UpdateTime,@DataVersion,@Remarks1,@Remarks2,@Remarks3,@Remarks4,@Remarks5) ";
|
||||
return LeadDbHelperSQLite.Execute(strSql, model) > 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
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
|
||||
WHERE LANGUAGE_ID=@LanguageId ";
|
||||
return LeadDbHelperSQLite.Execute(strSql, model) > 0;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(string strWhere, object Params = null)
|
||||
{
|
||||
string strSql = $@"DELETE FROM SYS_LANGUAGE ";
|
||||
if (strWhere.Trim() != "")
|
||||
{
|
||||
strSql += $" WHERE {strWhere}";
|
||||
}
|
||||
return LeadDbHelperSQLite.Execute(strSql, Params) > 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(int LanguageId)
|
||||
{
|
||||
return this.Delete("LANGUAGE_ID=@LanguageId ", new { LanguageId }) ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
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.SYS.Language>(strSql, Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.SYS.Language GetModel(int LanguageId)
|
||||
{
|
||||
return this.GetList("LANGUAGE_ID=@LanguageId", new { LanguageId }).FirstOrDefault();
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.SYS.Language> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// var tuper = _dbhelper.BuildRuleGroupStr(rule);
|
||||
// return this.GetList(tuper.where, tuper.Param);
|
||||
// }
|
||||
}
|
||||
}
|
||||
112
CleanMachine.DAL/SYS/LogDAL.cs
Normal file
112
CleanMachine.DAL/SYS/LogDAL.cs
Normal file
@@ -0,0 +1,112 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"DAL\\SYS\\LogDAL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
|
||||
using LeadDataBaseUtility;
|
||||
|
||||
namespace CleanMachine.DAL.SYS
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class LogDAL
|
||||
{
|
||||
|
||||
|
||||
|
||||
public LogDAL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
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)
|
||||
values
|
||||
(@SysLogId,@UserId,@OperateStatus,@ResultStatus,@Message,@CreateBy,@CreateTime,@UpdateBy,@UpdateTime,@DataVersion,@Remarks1,@Remarks2,@Remarks3,@Remarks4,@Remarks5) ";
|
||||
return LeadDbHelperSQLite.Execute(strSql, model) > 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
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
|
||||
WHERE SYS_LOG_ID=@SysLogId ";
|
||||
return LeadDbHelperSQLite.Execute(strSql, model) > 0;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(string strWhere, object Params = null)
|
||||
{
|
||||
string strSql = $@"DELETE FROM SYS_LOG ";
|
||||
if (strWhere.Trim() != "")
|
||||
{
|
||||
strSql += $" WHERE {strWhere}";
|
||||
}
|
||||
return LeadDbHelperSQLite.Execute(strSql, Params) > 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(int SysLogId)
|
||||
{
|
||||
return this.Delete("SYS_LOG_ID=@SysLogId ", new { SysLogId }) ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
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.SYS.Log>(strSql, Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.SYS.Log GetModel(int SysLogId)
|
||||
{
|
||||
return this.GetList("SYS_LOG_ID=@SysLogId", new { SysLogId }).FirstOrDefault();
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.SYS.Log> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// var tuper = _dbhelper.BuildRuleGroupStr(rule);
|
||||
// return this.GetList(tuper.where, tuper.Param);
|
||||
// }
|
||||
}
|
||||
}
|
||||
112
CleanMachine.DAL/SYS/MenuDAL.cs
Normal file
112
CleanMachine.DAL/SYS/MenuDAL.cs
Normal file
@@ -0,0 +1,112 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"DAL\\SYS\\MenuDAL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
|
||||
using LeadDataBaseUtility;
|
||||
|
||||
namespace CleanMachine.DAL.SYS
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class MenuDAL
|
||||
{
|
||||
|
||||
|
||||
|
||||
public MenuDAL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
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)
|
||||
values
|
||||
(@MenuId,@MenuCode,@MenuName,@MenuUrl,@MenuPid,@MenuOrder,@UsedFlag,@DelFlag,@CreateBy,@CreateTime,@UpdateBy,@UpdateTime,@DataVersion,@Remarks1,@Remarks2,@Remarks3,@Remarks4,@Remarks5) ";
|
||||
return LeadDbHelperSQLite.Execute(strSql, model) > 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
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
|
||||
WHERE MENU_ID=@MenuId ";
|
||||
return LeadDbHelperSQLite.Execute(strSql, model) > 0;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(string strWhere, object Params = null)
|
||||
{
|
||||
string strSql = $@"DELETE FROM SYS_MENU ";
|
||||
if (strWhere.Trim() != "")
|
||||
{
|
||||
strSql += $" WHERE {strWhere}";
|
||||
}
|
||||
return LeadDbHelperSQLite.Execute(strSql, Params) > 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(int MenuId)
|
||||
{
|
||||
return this.Delete("MENU_ID=@MenuId ", new { MenuId }) ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
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.SYS.Menu>(strSql, Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.SYS.Menu GetModel(int MenuId)
|
||||
{
|
||||
return this.GetList("MENU_ID=@MenuId", new { MenuId }).FirstOrDefault();
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.SYS.Menu> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// var tuper = _dbhelper.BuildRuleGroupStr(rule);
|
||||
// return this.GetList(tuper.where, tuper.Param);
|
||||
// }
|
||||
}
|
||||
}
|
||||
127
CleanMachine.DAL/SYS/ParameterDAL.cs
Normal file
127
CleanMachine.DAL/SYS/ParameterDAL.cs
Normal file
@@ -0,0 +1,127 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"DAL\\SYS\\ParameterDAL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
|
||||
using LeadDataBaseUtility;
|
||||
|
||||
namespace CleanMachine.DAL.SYS
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class ParameterDAL
|
||||
{
|
||||
|
||||
|
||||
|
||||
public ParameterDAL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
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)
|
||||
values
|
||||
(@ParameterId,@ParameterCode,@ParameterName,@ParameterValue,@ParameterType,@UsedFlag,@DelFlag,@CreateBy,@CreateTime,@UpdateBy,@UpdateTime,@DataVersion,@Remarks1,@Remarks2,@Remarks3,@Remarks4,@Remarks5) ";
|
||||
return LeadDbHelperSQLite.Execute(strSql, model) > 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
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
|
||||
WHERE PARAMETER_ID=@ParameterId ";
|
||||
return LeadDbHelperSQLite.Execute(strSql, model) > 0;
|
||||
}
|
||||
|
||||
|
||||
public bool Update(string ParameterCode, string Value)
|
||||
{
|
||||
string strSql = $@"UPDATE SYS_PARAMETER SET
|
||||
PARAMETER_VALUE=@ParameterValue
|
||||
WHERE PARAMETER_CODE=@ParameterCode ";
|
||||
return LeadDbHelperSQLite.Execute(strSql, new
|
||||
{
|
||||
ParameterCode = ParameterCode,
|
||||
ParameterValue = Value
|
||||
}) > 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(string strWhere, object Params = null)
|
||||
{
|
||||
string strSql = $@"DELETE FROM SYS_PARAMETER ";
|
||||
if (strWhere.Trim() != "")
|
||||
{
|
||||
strSql += $" WHERE {strWhere}";
|
||||
}
|
||||
return LeadDbHelperSQLite.Execute(strSql, Params) > 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(int ParameterId)
|
||||
{
|
||||
return this.Delete("PARAMETER_ID=@ParameterId ", new { ParameterId });
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
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.SYS.Parameter>(strSql, Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.SYS.Parameter GetModel(int ParameterId)
|
||||
{
|
||||
return this.GetList("PARAMETER_ID=@ParameterId", new { ParameterId }).FirstOrDefault();
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.SYS.Parameter> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// var tuper = _dbhelper.BuildRuleGroupStr(rule);
|
||||
// return this.GetList(tuper.where, tuper.Param);
|
||||
// }
|
||||
}
|
||||
}
|
||||
112
CleanMachine.DAL/SYS/RoleDAL.cs
Normal file
112
CleanMachine.DAL/SYS/RoleDAL.cs
Normal file
@@ -0,0 +1,112 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"DAL\\SYS\\RoleDAL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
|
||||
using LeadDataBaseUtility;
|
||||
|
||||
namespace CleanMachine.DAL.SYS
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class RoleDAL
|
||||
{
|
||||
|
||||
|
||||
|
||||
public RoleDAL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
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)
|
||||
values
|
||||
(@RoleId,@RoleCode,@RoleName,@RoleGrade,@UsedFlag,@DelFlag,@CreateBy,@CreateTime,@UpdateBy,@UpdateTime,@DataVersion,@Remarks1,@Remarks2,@Remarks3,@Remarks4,@Remarks5) ";
|
||||
return LeadDbHelperSQLite.Execute(strSql, model) > 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
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
|
||||
WHERE ROLE_ID=@RoleId ";
|
||||
return LeadDbHelperSQLite.Execute(strSql, model) > 0;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(string strWhere, object Params = null)
|
||||
{
|
||||
string strSql = $@"DELETE FROM SYS_ROLE ";
|
||||
if (strWhere.Trim() != "")
|
||||
{
|
||||
strSql += $" WHERE {strWhere}";
|
||||
}
|
||||
return LeadDbHelperSQLite.Execute(strSql, Params) > 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(int RoleId)
|
||||
{
|
||||
return this.Delete("ROLE_ID=@RoleId ", new { RoleId }) ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public IEnumerable<CleanMachine.Model.SYS.Role> GetList(string strWhere, object Params = null)
|
||||
{
|
||||
string strSql = $@"SELECT A.ROLE_ID,A.ROLE_CODE,A.ROLE_NAME,B.MENU_ID,C.MENU_CODE,C.MENU_NAME,C.MENU_URL,C.MENU_PID FROM SYS_ROLE A LEFT JOIN SYS_ROLE_MENU_PERMISSION B on A.ROLE_ID = B.ROLE_ID LEFT JOIN SYS_MENU C on B.MENU_ID = C.MENU_ID ";
|
||||
if (strWhere.Trim() != "")
|
||||
{
|
||||
strSql += $" WHERE {strWhere}";
|
||||
}
|
||||
return LeadDbHelperSQLite.Query<CleanMachine.Model.SYS.Role>(strSql, Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.SYS.Role GetModel(int RoleId)
|
||||
{
|
||||
return this.GetList("ROLE_ID=@RoleId", new { RoleId }).FirstOrDefault();
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.SYS.Role> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// var tuper = _dbhelper.BuildRuleGroupStr(rule);
|
||||
// return this.GetList(tuper.where, tuper.Param);
|
||||
// }
|
||||
}
|
||||
}
|
||||
112
CleanMachine.DAL/SYS/RoleMenuPermissionDAL.cs
Normal file
112
CleanMachine.DAL/SYS/RoleMenuPermissionDAL.cs
Normal file
@@ -0,0 +1,112 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"DAL\\SYS\\RoleMenuPermissionDAL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
|
||||
using LeadDataBaseUtility;
|
||||
|
||||
namespace CleanMachine.DAL.SYS
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class RoleMenuPermissionDAL
|
||||
{
|
||||
|
||||
|
||||
|
||||
public RoleMenuPermissionDAL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
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)
|
||||
values
|
||||
(@RoleMenuPermissionId,@RoleId,@MenuId,@CreateBy,@CreateTime,@UpdateBy,@UpdateTime,@DataVersion,@Remarks1,@Remarks2,@Remarks3,@Remarks4,@Remarks5) ";
|
||||
return LeadDbHelperSQLite.Execute(strSql, model) > 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
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
|
||||
WHERE ROLE_MENU_PERMISSION_ID=@RoleMenuPermissionId ";
|
||||
return LeadDbHelperSQLite.Execute(strSql, model) > 0;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(string strWhere, object Params = null)
|
||||
{
|
||||
string strSql = $@"DELETE FROM SYS_ROLE_MENU_PERMISSION ";
|
||||
if (strWhere.Trim() != "")
|
||||
{
|
||||
strSql += $" WHERE {strWhere}";
|
||||
}
|
||||
return LeadDbHelperSQLite.Execute(strSql, Params) > 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(int RoleMenuPermissionId)
|
||||
{
|
||||
return this.Delete("ROLE_MENU_PERMISSION_ID=@RoleMenuPermissionId ", new { RoleMenuPermissionId }) ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public IEnumerable<CleanMachine.Model.SYS.RoleMenuPermission> GetList(string strWhere, object Params = null)
|
||||
{
|
||||
string strSql = $@"SELECT A.ROLE_ID,A.ROLE_CODE,A.ROLE_NAME,B.MENU_ID,C.MENU_CODE,C.MENU_NAME,C.MENU_URL,C.MENU_PID FROM SYS_ROLE A LEFT JOIN SYS_ROLE_MENU_PERMISSION B on A.ROLE_ID = B.ROLE_ID LEFT JOIN SYS_MENU C on B.MENU_ID = C.MENU_ID ";
|
||||
if (strWhere.Trim() != "")
|
||||
{
|
||||
strSql += $" WHERE {strWhere}";
|
||||
}
|
||||
return LeadDbHelperSQLite.Query<CleanMachine.Model.SYS.RoleMenuPermission>(strSql, Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.SYS.RoleMenuPermission GetModel(int RoleMenuPermissionId)
|
||||
{
|
||||
return this.GetList("ROLE_MENU_PERMISSION_ID=@RoleMenuPermissionId", new { RoleMenuPermissionId }).FirstOrDefault();
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.SYS.RoleMenuPermission> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// var tuper = _dbhelper.BuildRuleGroupStr(rule);
|
||||
// return this.GetList(tuper.where, tuper.Param);
|
||||
// }
|
||||
}
|
||||
}
|
||||
112
CleanMachine.DAL/SYS/ScheduleDtlDAL.cs
Normal file
112
CleanMachine.DAL/SYS/ScheduleDtlDAL.cs
Normal file
@@ -0,0 +1,112 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"DAL\\SYS\\ScheduleDtlDAL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
|
||||
using LeadDataBaseUtility;
|
||||
|
||||
namespace CleanMachine.DAL.SYS
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class ScheduleDtlDAL
|
||||
{
|
||||
|
||||
|
||||
|
||||
public ScheduleDtlDAL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
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)
|
||||
values
|
||||
(@ScheduleDtlId,@ScheduleCode,@ScheduleName,@BeginTime,@EndTime,@UsedFlag,@DelFlag,@CreateBy,@CreateTime,@UpdateBy,@UpdateTime,@DataVersion,@Remarks1,@Remarks2,@Remarks3,@Remarks4,@Remarks5) ";
|
||||
return LeadDbHelperSQLite.Execute(strSql, model) > 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
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
|
||||
WHERE SCHEDULE_DTL_ID=@ScheduleDtlId ";
|
||||
return LeadDbHelperSQLite.Execute(strSql, model) > 0;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(string strWhere, object Params = null)
|
||||
{
|
||||
string strSql = $@"DELETE FROM SYS_SCHEDULE_DTL ";
|
||||
if (strWhere.Trim() != "")
|
||||
{
|
||||
strSql += $" WHERE {strWhere}";
|
||||
}
|
||||
return LeadDbHelperSQLite.Execute(strSql, Params) > 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(int ScheduleDtlId)
|
||||
{
|
||||
return this.Delete("SCHEDULE_DTL_ID=@ScheduleDtlId ", new { ScheduleDtlId }) ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
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.SYS.ScheduleDtl>(strSql, Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.SYS.ScheduleDtl GetModel(int ScheduleDtlId)
|
||||
{
|
||||
return this.GetList("SCHEDULE_DTL_ID=@ScheduleDtlId", new { ScheduleDtlId }).FirstOrDefault();
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.SYS.ScheduleDtl> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// var tuper = _dbhelper.BuildRuleGroupStr(rule);
|
||||
// return this.GetList(tuper.where, tuper.Param);
|
||||
// }
|
||||
}
|
||||
}
|
||||
139
CleanMachine.DAL/SYS/UserDAL.cs
Normal file
139
CleanMachine.DAL/SYS/UserDAL.cs
Normal file
@@ -0,0 +1,139 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"DAL\\SYS\\UserDAL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
|
||||
using LeadDataBaseUtility;
|
||||
|
||||
namespace CleanMachine.DAL.SYS
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class UserDAL
|
||||
{
|
||||
|
||||
|
||||
|
||||
public UserDAL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
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)
|
||||
values
|
||||
(@UserId,@UserCode,@UserName,@Password,@Gender,@RoleId,@ScheduleCode,@UsedFlag,@DelFlag,@CreateBy,@CreateTime,@UpdateBy,@UpdateTime,@DataVersion,@Remarks1,@Remarks2,@Remarks3,@Remarks4,@Remarks5) ";
|
||||
return LeadDbHelperSQLite.Execute(strSql, model) > 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
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
|
||||
WHERE USER_ID=@UserId ";
|
||||
return LeadDbHelperSQLite.Execute(strSql, model) > 0;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(string strWhere, object Params = null)
|
||||
{
|
||||
string strSql = $@"DELETE FROM SYS_USER ";
|
||||
if (strWhere.Trim() != "")
|
||||
{
|
||||
strSql += $" WHERE {strWhere}";
|
||||
}
|
||||
return LeadDbHelperSQLite.Execute(strSql, Params) > 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除一个数据
|
||||
/// </summary>
|
||||
public bool Delete(int UserId)
|
||||
{
|
||||
return this.Delete("USER_ID=@UserId ", new { UserId }) ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public IEnumerable<CleanMachine.Model.SYS.User> GetList(string strWhere, object Params = null)
|
||||
{
|
||||
string strSql = $@"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 ";
|
||||
if (strWhere.Trim() != "")
|
||||
{
|
||||
strSql += $" WHERE {strWhere}";
|
||||
}
|
||||
return LeadDbHelperSQLite.Query<CleanMachine.Model.SYS.User>(strSql, Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
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 }).FirstOrDefault();
|
||||
}
|
||||
|
||||
|
||||
/// <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.SYS.User> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// var tuper = _dbhelper.BuildRuleGroupStr(rule);
|
||||
// return this.GetList(tuper.where, tuper.Param);
|
||||
// }
|
||||
}
|
||||
}
|
||||
72
CleanMachine.DAL/ZBK/DayReportDAL.cs
Normal file
72
CleanMachine.DAL/ZBK/DayReportDAL.cs
Normal file
@@ -0,0 +1,72 @@
|
||||
using LeadDataBaseUtility;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace CleanMachine.DAL.ZBK
|
||||
{
|
||||
public class DayReportDAL
|
||||
|
||||
{
|
||||
|
||||
|
||||
|
||||
public IEnumerable<Model.ZBK.OperatorReport> GetOPReport(string strWhere, object Params = null)
|
||||
{
|
||||
|
||||
|
||||
string strSql = $@"
|
||||
select * from (SELECT a.*,b.Scrap,(EndValue-StartValue)/3600.0 as MachineHours,c.StartTime,c.EndTime from
|
||||
(SELECT date(INPUT_TIME) as date, USER_NAME as Operator ,SUM(CURRENT_NUMBER) as cleaned from VW_WORKING_PALLET_MSG WHERE CLEAN_MODE_CODE='SortedCleaned'
|
||||
GROUP BY date(INPUT_TIME),USER_NAME) as a
|
||||
LEFT JOIN
|
||||
(
|
||||
SELECT date(INPUT_TIME) as date,USER_NAME as Operator,SUM(CURRENT_NUMBER) as scrap from VW_WORKING_PALLET_MSG WHERE CLEAN_MODE_CODE<>'SortedCleaned'
|
||||
GROUP BY date(INPUT_TIME),USER_NAME
|
||||
) as b on a.date=b.date and a.Operator=b.Operator
|
||||
left join CM_DayWorkTime as c on a.date=date(c.date) and a.Operator=c.UserName
|
||||
|
||||
) as tbl
|
||||
";
|
||||
if (strWhere.Trim() != "")
|
||||
{
|
||||
strSql += $" WHERE {strWhere}";
|
||||
}
|
||||
return LeadDbHelperSQLite.Query<Model.ZBK.OperatorReport>(strSql, Params);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public IEnumerable<Model.ZBK.DayReport> GetReport(string strWhere,object Params=null)
|
||||
{
|
||||
|
||||
string strSql = $@"
|
||||
select * from (SELECT a.*,b.Scrap,c.MachineHours,c.StartTime,c.EndTime from
|
||||
(SELECT date(INPUT_TIME) as date,SUM(CURRENT_NUMBER) as cleaned,GROUP_CONCAT(DISTINCT USER_NAME) as operators from VW_WORKING_PALLET_MSG WHERE CLEAN_MODE_CODE='SortedCleaned'
|
||||
GROUP BY date(INPUT_TIME)) as a
|
||||
LEFT JOIN
|
||||
(
|
||||
SELECT date(INPUT_TIME) as date,SUM(CURRENT_NUMBER) as scrap from VW_WORKING_PALLET_MSG WHERE CLEAN_MODE_CODE<>'SortedCleaned'
|
||||
GROUP BY date(INPUT_TIME)
|
||||
) as b on a.date=b.date
|
||||
LEFT JOIN
|
||||
(SELECT date(date) as date,SUM(EndValue-StartValue)/3600.0 as MachineHours, MIN(StartTime) as StartTime,MAX(EndTime) as EndTime from
|
||||
|
||||
CM_DayWorkTime GROUP BY date(date) ) as c on a.date=date(c.date)
|
||||
) as tbl
|
||||
";
|
||||
if (strWhere.Trim() != "")
|
||||
{
|
||||
strSql += $" WHERE {strWhere}";
|
||||
}
|
||||
return LeadDbHelperSQLite.Query<Model.ZBK.DayReport>(strSql, Params);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
112
CleanMachine.DAL/ZBK/WorkingPalletDAL.cs
Normal file
112
CleanMachine.DAL/ZBK/WorkingPalletDAL.cs
Normal file
@@ -0,0 +1,112 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"DAL\\ZBK\\WorkingPalletDAL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
|
||||
using LeadDataBaseUtility;
|
||||
|
||||
namespace CleanMachine.DAL.ZBK
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class WorkingPalletDAL
|
||||
{
|
||||
|
||||
|
||||
|
||||
public WorkingPalletDAL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
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)
|
||||
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.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
|
||||
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 ZBK_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.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.ZBK.WorkingPallet>(strSql, Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.ZBK.WorkingPallet GetModel(int WorkingPalletId)
|
||||
{
|
||||
return this.GetList("WORKING_PALLET_ID=@WorkingPalletId", new { WorkingPalletId }).FirstOrDefault();
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.ZBK.WorkingPallet> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// var tuper = _dbhelper.BuildRuleGroupStr(rule);
|
||||
// return this.GetList(tuper.where, tuper.Param);
|
||||
// }
|
||||
}
|
||||
}
|
||||
112
CleanMachine.DAL/ZBK/WorkingPalletDtlDAL.cs
Normal file
112
CleanMachine.DAL/ZBK/WorkingPalletDtlDAL.cs
Normal file
@@ -0,0 +1,112 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"DAL\\ZBK\\WorkingPalletDtlDAL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
|
||||
using LeadDataBaseUtility;
|
||||
|
||||
namespace CleanMachine.DAL.ZBK
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class WorkingPalletDtlDAL
|
||||
{
|
||||
|
||||
|
||||
|
||||
public WorkingPalletDtlDAL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
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)
|
||||
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.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
|
||||
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 ZBK_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.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.ZBK.WorkingPalletDtl>(strSql, Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.ZBK.WorkingPalletDtl GetModel(int WorkingPalletDtlId)
|
||||
{
|
||||
return this.GetList("WORKING_PALLET_DTL_ID=@WorkingPalletDtlId", new { WorkingPalletDtlId }).FirstOrDefault();
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.ZBK.WorkingPalletDtl> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// var tuper = _dbhelper.BuildRuleGroupStr(rule);
|
||||
// return this.GetList(tuper.where, tuper.Param);
|
||||
// }
|
||||
}
|
||||
}
|
||||
169
CleanMachine.Model/BAS/CleanMode.cs
Normal file
169
CleanMachine.Model/BAS/CleanMode.cs
Normal file
@@ -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
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
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;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int CleanModeId
|
||||
{
|
||||
get { return this.cleanModeId; }
|
||||
set { this.cleanModeId=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string CleanModeCode
|
||||
{
|
||||
get { return this.cleanModeCode; }
|
||||
set { this.cleanModeCode=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string CleanModeName
|
||||
{
|
||||
get { return this.cleanModeName; }
|
||||
set { this.cleanModeName=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int UsedFlag
|
||||
{
|
||||
get { return this.usedFlag; }
|
||||
set { this.usedFlag=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int DelFlag
|
||||
{
|
||||
get { return this.delFlag; }
|
||||
set { this.delFlag=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int CreateBy
|
||||
{
|
||||
get { return this.createBy; }
|
||||
set { this.createBy=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime CreateTime
|
||||
{
|
||||
get { return this.createTime; }
|
||||
set { this.createTime=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int UpdateBy
|
||||
{
|
||||
get { return this.updateBy; }
|
||||
set { this.updateBy=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime UpdateTime
|
||||
{
|
||||
get { return this.updateTime; }
|
||||
set { this.updateTime=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int DataVersion
|
||||
{
|
||||
get { return this.dataVersion; }
|
||||
set { this.dataVersion=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks1
|
||||
{
|
||||
get { return this.remarks1; }
|
||||
set { this.remarks1=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks2
|
||||
{
|
||||
get { return this.remarks2; }
|
||||
set { this.remarks2=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks3
|
||||
{
|
||||
get { return this.remarks3; }
|
||||
set { this.remarks3=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks4
|
||||
{
|
||||
get { return this.remarks4; }
|
||||
set { this.remarks4=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks5
|
||||
{
|
||||
get { return this.remarks5; }
|
||||
set { this.remarks5=value;}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
18
CleanMachine.Model/BAS/CleanType.cs
Normal file
18
CleanMachine.Model/BAS/CleanType.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CleanMachine.Model.BAS
|
||||
{
|
||||
public class CleanType
|
||||
{
|
||||
public string CleanModeCode { get; set; }
|
||||
public string CleanModeName { get; set; }
|
||||
public string ContaminationTypeCode { get; set; }
|
||||
public string ContaminationTypeName { get; set; }
|
||||
public string ContaminationDtlCode { get; set; }
|
||||
public string ContaminationDtlName { get; set; }
|
||||
}
|
||||
}
|
||||
179
CleanMachine.Model/BAS/ContaminationDtl.cs
Normal file
179
CleanMachine.Model/BAS/ContaminationDtl.cs
Normal file
@@ -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
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
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;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int ContaminationDtlId
|
||||
{
|
||||
get { return this.contaminationDtlId; }
|
||||
set { this.contaminationDtlId=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ContaminationTypeCode
|
||||
{
|
||||
get { return this.contaminationTypeCode; }
|
||||
set { this.contaminationTypeCode=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ContaminationDtlCode
|
||||
{
|
||||
get { return this.contaminationDtlCode; }
|
||||
set { this.contaminationDtlCode=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ContaminationDtlName
|
||||
{
|
||||
get { return this.contaminationDtlName; }
|
||||
set { this.contaminationDtlName=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int UsedFlag
|
||||
{
|
||||
get { return this.usedFlag; }
|
||||
set { this.usedFlag=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int DelFlag
|
||||
{
|
||||
get { return this.delFlag; }
|
||||
set { this.delFlag=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int CreateBy
|
||||
{
|
||||
get { return this.createBy; }
|
||||
set { this.createBy=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime CreateTime
|
||||
{
|
||||
get { return this.createTime; }
|
||||
set { this.createTime=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int UpdateBy
|
||||
{
|
||||
get { return this.updateBy; }
|
||||
set { this.updateBy=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime UpdateTime
|
||||
{
|
||||
get { return this.updateTime; }
|
||||
set { this.updateTime=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int DataVersion
|
||||
{
|
||||
get { return this.dataVersion; }
|
||||
set { this.dataVersion=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks1
|
||||
{
|
||||
get { return this.remarks1; }
|
||||
set { this.remarks1=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks2
|
||||
{
|
||||
get { return this.remarks2; }
|
||||
set { this.remarks2=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks3
|
||||
{
|
||||
get { return this.remarks3; }
|
||||
set { this.remarks3=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks4
|
||||
{
|
||||
get { return this.remarks4; }
|
||||
set { this.remarks4=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks5
|
||||
{
|
||||
get { return this.remarks5; }
|
||||
set { this.remarks5=value;}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
179
CleanMachine.Model/BAS/ContaminationType.cs
Normal file
179
CleanMachine.Model/BAS/ContaminationType.cs
Normal file
@@ -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
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
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;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int ContaminationTypeId
|
||||
{
|
||||
get { return this.contaminationTypeId; }
|
||||
set { this.contaminationTypeId=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ContaminationTypeCode
|
||||
{
|
||||
get { return this.contaminationTypeCode; }
|
||||
set { this.contaminationTypeCode=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ContaminationTypeName
|
||||
{
|
||||
get { return this.contaminationTypeName; }
|
||||
set { this.contaminationTypeName=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string CleanModeCode
|
||||
{
|
||||
get { return this.cleanModeCode; }
|
||||
set { this.cleanModeCode=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int UsedFlag
|
||||
{
|
||||
get { return this.usedFlag; }
|
||||
set { this.usedFlag=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int DelFlag
|
||||
{
|
||||
get { return this.delFlag; }
|
||||
set { this.delFlag=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int CreateBy
|
||||
{
|
||||
get { return this.createBy; }
|
||||
set { this.createBy=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime CreateTime
|
||||
{
|
||||
get { return this.createTime; }
|
||||
set { this.createTime=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int UpdateBy
|
||||
{
|
||||
get { return this.updateBy; }
|
||||
set { this.updateBy=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime UpdateTime
|
||||
{
|
||||
get { return this.updateTime; }
|
||||
set { this.updateTime=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int DataVersion
|
||||
{
|
||||
get { return this.dataVersion; }
|
||||
set { this.dataVersion=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks1
|
||||
{
|
||||
get { return this.remarks1; }
|
||||
set { this.remarks1=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks2
|
||||
{
|
||||
get { return this.remarks2; }
|
||||
set { this.remarks2=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks3
|
||||
{
|
||||
get { return this.remarks3; }
|
||||
set { this.remarks3=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks4
|
||||
{
|
||||
get { return this.remarks4; }
|
||||
set { this.remarks4=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks5
|
||||
{
|
||||
get { return this.remarks5; }
|
||||
set { this.remarks5=value;}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
239
CleanMachine.Model/BAS/PlcItem.cs
Normal file
239
CleanMachine.Model/BAS/PlcItem.cs
Normal file
@@ -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
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class PlcItem
|
||||
{
|
||||
|
||||
private int plcItemId;
|
||||
private string plcItemCode;
|
||||
private string plcItemName;
|
||||
private int plcItemType;
|
||||
private PlcItemTypeDesc 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;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int PlcItemId
|
||||
{
|
||||
get { return this.plcItemId; }
|
||||
set { this.plcItemId=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string PlcItemCode
|
||||
{
|
||||
get { return this.plcItemCode; }
|
||||
set { this.plcItemCode=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string PlcItemName
|
||||
{
|
||||
get { return this.plcItemName; }
|
||||
set { this.plcItemName=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int PlcItemType
|
||||
{
|
||||
get { return this.plcItemType; }
|
||||
set { this.plcItemType=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public PlcItemTypeDesc PlcItemDataType
|
||||
{
|
||||
get { return this.plcItemDataType; }
|
||||
set { this.plcItemDataType=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int PlcItemDataLength
|
||||
{
|
||||
get { return this.plcItemDataLength; }
|
||||
set { this.plcItemDataLength=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string PlcItemPriAddress
|
||||
{
|
||||
get { return this.plcItemPriAddress; }
|
||||
set { this.plcItemPriAddress=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string PlcItemModbusAddress
|
||||
{
|
||||
get { return this.plcItemModbusAddress; }
|
||||
set { this.plcItemModbusAddress=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string PlcItemDeviationAddress
|
||||
{
|
||||
get { return this.plcItemDeviationAddress; }
|
||||
set { this.plcItemDeviationAddress=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string PlcItemValue
|
||||
{
|
||||
get { return this.plcItemValue; }
|
||||
set { this.plcItemValue=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int UsedFlag
|
||||
{
|
||||
get { return this.usedFlag; }
|
||||
set { this.usedFlag=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int DelFlag
|
||||
{
|
||||
get { return this.delFlag; }
|
||||
set { this.delFlag=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int CreateBy
|
||||
{
|
||||
get { return this.createBy; }
|
||||
set { this.createBy=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime CreateTime
|
||||
{
|
||||
get { return this.createTime; }
|
||||
set { this.createTime=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int UpdateBy
|
||||
{
|
||||
get { return this.updateBy; }
|
||||
set { this.updateBy=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime UpdateTime
|
||||
{
|
||||
get { return this.updateTime; }
|
||||
set { this.updateTime=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int DataVersion
|
||||
{
|
||||
get { return this.dataVersion; }
|
||||
set { this.dataVersion=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks1
|
||||
{
|
||||
get { return this.remarks1; }
|
||||
set { this.remarks1=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks2
|
||||
{
|
||||
get { return this.remarks2; }
|
||||
set { this.remarks2=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks3
|
||||
{
|
||||
get { return this.remarks3; }
|
||||
set { this.remarks3=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks4
|
||||
{
|
||||
get { return this.remarks4; }
|
||||
set { this.remarks4=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks5
|
||||
{
|
||||
get { return this.remarks5; }
|
||||
set { this.remarks5=value;}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
26
CleanMachine.Model/BAS/PlcItemTypeDesc.cs
Normal file
26
CleanMachine.Model/BAS/PlcItemTypeDesc.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace CleanMachine.Model.BAS
|
||||
{
|
||||
public enum PlcItemTypeDesc
|
||||
{
|
||||
/// <summary>
|
||||
/// M 类型布尔变量
|
||||
/// </summary>
|
||||
M,
|
||||
/// <summary>
|
||||
/// D 类型整数变量
|
||||
/// </summary>
|
||||
D,
|
||||
/// <summary>
|
||||
/// X 类型布尔变量
|
||||
/// </summary>
|
||||
X,
|
||||
/// <summary>
|
||||
/// Y 类型布尔变量
|
||||
/// </summary>
|
||||
Y
|
||||
}
|
||||
}
|
||||
169
CleanMachine.Model/BAS/SheetType.cs
Normal file
169
CleanMachine.Model/BAS/SheetType.cs
Normal file
@@ -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
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
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;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int SheetTypeId
|
||||
{
|
||||
get { return this.sheetTypeId; }
|
||||
set { this.sheetTypeId=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string SheetTypeCode
|
||||
{
|
||||
get { return this.sheetTypeCode; }
|
||||
set { this.sheetTypeCode=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string SheetTypeName
|
||||
{
|
||||
get { return this.sheetTypeName; }
|
||||
set { this.sheetTypeName=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int UsedFlag
|
||||
{
|
||||
get { return this.usedFlag; }
|
||||
set { this.usedFlag=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int DelFlag
|
||||
{
|
||||
get { return this.delFlag; }
|
||||
set { this.delFlag=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int CreateBy
|
||||
{
|
||||
get { return this.createBy; }
|
||||
set { this.createBy=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime CreateTime
|
||||
{
|
||||
get { return this.createTime; }
|
||||
set { this.createTime=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int UpdateBy
|
||||
{
|
||||
get { return this.updateBy; }
|
||||
set { this.updateBy=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime UpdateTime
|
||||
{
|
||||
get { return this.updateTime; }
|
||||
set { this.updateTime=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int DataVersion
|
||||
{
|
||||
get { return this.dataVersion; }
|
||||
set { this.dataVersion=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks1
|
||||
{
|
||||
get { return this.remarks1; }
|
||||
set { this.remarks1=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks2
|
||||
{
|
||||
get { return this.remarks2; }
|
||||
set { this.remarks2=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks3
|
||||
{
|
||||
get { return this.remarks3; }
|
||||
set { this.remarks3=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks4
|
||||
{
|
||||
get { return this.remarks4; }
|
||||
set { this.remarks4=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks5
|
||||
{
|
||||
get { return this.remarks5; }
|
||||
set { this.remarks5=value;}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
219
CleanMachine.Model/BAS/Warning.cs
Normal file
219
CleanMachine.Model/BAS/Warning.cs
Normal file
@@ -0,0 +1,219 @@
|
||||
|
||||
|
||||
//模板信息:{"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
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
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 ushort bitCode
|
||||
{
|
||||
get
|
||||
{
|
||||
int index = int.Parse(this.warningCode.Replace("bit", ""));
|
||||
|
||||
ushort num = 1;
|
||||
num = (ushort)(num << index);
|
||||
|
||||
return num;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int WarningId
|
||||
{
|
||||
get { return this.warningId; }
|
||||
set { this.warningId = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string WarningCode
|
||||
{
|
||||
get { return this.warningCode; }
|
||||
set { this.warningCode = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string WarningName
|
||||
{
|
||||
get { return this.warningName; }
|
||||
set { this.warningName = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string PlcItemCode
|
||||
{
|
||||
get { return this.plcItemCode; }
|
||||
set { this.plcItemCode = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string WarningType
|
||||
{
|
||||
get { return this.warningType; }
|
||||
set { this.warningType = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string WarningMessage
|
||||
{
|
||||
get { return this.warningMessage; }
|
||||
set { this.warningMessage = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int UsedFlag
|
||||
{
|
||||
get { return this.usedFlag; }
|
||||
set { this.usedFlag = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int DelFlag
|
||||
{
|
||||
get { return this.delFlag; }
|
||||
set { this.delFlag = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int CreateBy
|
||||
{
|
||||
get { return this.createBy; }
|
||||
set { this.createBy = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime CreateTime
|
||||
{
|
||||
get { return this.createTime; }
|
||||
set { this.createTime = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int UpdateBy
|
||||
{
|
||||
get { return this.updateBy; }
|
||||
set { this.updateBy = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime UpdateTime
|
||||
{
|
||||
get { return this.updateTime; }
|
||||
set { this.updateTime = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int DataVersion
|
||||
{
|
||||
get { return this.dataVersion; }
|
||||
set { this.dataVersion = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks1
|
||||
{
|
||||
get { return this.remarks1; }
|
||||
set { this.remarks1 = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks2
|
||||
{
|
||||
get { return this.remarks2; }
|
||||
set { this.remarks2 = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks3
|
||||
{
|
||||
get { return this.remarks3; }
|
||||
set { this.remarks3 = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks4
|
||||
{
|
||||
get { return this.remarks4; }
|
||||
set { this.remarks4 = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks5
|
||||
{
|
||||
get { return this.remarks5; }
|
||||
set { this.remarks5 = value; }
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
50
CleanMachine.Model/CM/DayWorkTime.cs
Normal file
50
CleanMachine.Model/CM/DayWorkTime.cs
Normal file
@@ -0,0 +1,50 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace CleanMachine.Model.CM
|
||||
{
|
||||
public class DayWorkTime
|
||||
{
|
||||
private DateTime date;
|
||||
private int startValue;
|
||||
private int endValue;
|
||||
|
||||
|
||||
private DateTime _startTime;
|
||||
private DateTime _endTime;
|
||||
|
||||
private string _userName;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime Date
|
||||
{
|
||||
get { return this.date; }
|
||||
set { this.date = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int StartValue
|
||||
{
|
||||
get { return this.startValue; }
|
||||
set { this.startValue = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int EndValue
|
||||
{
|
||||
get { return this.endValue; }
|
||||
set { this.endValue = value; }
|
||||
}
|
||||
|
||||
public DateTime StartTime { get => _startTime; set => _startTime = value; }
|
||||
public DateTime EndTime { get => _endTime; set => _endTime = value; }
|
||||
public string UserName { get => _userName; set => _userName = value; }
|
||||
}
|
||||
}
|
||||
39
CleanMachine.Model/CM/LastPattleNum.cs
Normal file
39
CleanMachine.Model/CM/LastPattleNum.cs
Normal file
@@ -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
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class LastPattleNum
|
||||
{
|
||||
|
||||
private string key;
|
||||
private int value;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Key
|
||||
{
|
||||
get { return this.key; }
|
||||
set { this.key=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int Value
|
||||
{
|
||||
get { return this.value; }
|
||||
set { this.value=value;}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
39
CleanMachine.Model/CM/ShiftCount.cs
Normal file
39
CleanMachine.Model/CM/ShiftCount.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace CleanMachine.Model.CM
|
||||
{
|
||||
public class ShiftCount
|
||||
{
|
||||
private DateTime dateTime;
|
||||
private int count;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime DateTime
|
||||
{
|
||||
get { return this.dateTime; }
|
||||
set { this.dateTime = value; }
|
||||
}
|
||||
|
||||
private string _userCode;
|
||||
public string UserCode
|
||||
{
|
||||
get { return this._userCode; }
|
||||
set { this._userCode = value; }
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int Count
|
||||
{
|
||||
get { return this.count; }
|
||||
set { this.count = value; }
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
219
CleanMachine.Model/CM/WarningLog.cs
Normal file
219
CleanMachine.Model/CM/WarningLog.cs
Normal file
@@ -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
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
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;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int WarningLogId
|
||||
{
|
||||
get { return this.warningLogId; }
|
||||
set { this.warningLogId=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string WarningCode
|
||||
{
|
||||
get { return this.warningCode; }
|
||||
set { this.warningCode=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string WarningName
|
||||
{
|
||||
get { return this.warningName; }
|
||||
set { this.warningName=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string WarningType
|
||||
{
|
||||
get { return this.warningType; }
|
||||
set { this.warningType=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string WarningMessage
|
||||
{
|
||||
get { return this.warningMessage; }
|
||||
set { this.warningMessage=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime WarningTime
|
||||
{
|
||||
get { return this.warningTime; }
|
||||
set { this.warningTime=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string PlcItemCode
|
||||
{
|
||||
get { return this.plcItemCode; }
|
||||
set { this.plcItemCode=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int WaringStatus
|
||||
{
|
||||
get { return this.waringStatus; }
|
||||
set { this.waringStatus=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int WarningHandleResult
|
||||
{
|
||||
get { return this.warningHandleResult; }
|
||||
set { this.warningHandleResult=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime WarningHandleTime
|
||||
{
|
||||
get { return this.warningHandleTime; }
|
||||
set { this.warningHandleTime=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int CreateBy
|
||||
{
|
||||
get { return this.createBy; }
|
||||
set { this.createBy=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime CreateTime
|
||||
{
|
||||
get { return this.createTime; }
|
||||
set { this.createTime=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int UpdateBy
|
||||
{
|
||||
get { return this.updateBy; }
|
||||
set { this.updateBy=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime UpdateTime
|
||||
{
|
||||
get { return this.updateTime; }
|
||||
set { this.updateTime=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int DataVersion
|
||||
{
|
||||
get { return this.dataVersion; }
|
||||
set { this.dataVersion=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks1
|
||||
{
|
||||
get { return this.remarks1; }
|
||||
set { this.remarks1=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks2
|
||||
{
|
||||
get { return this.remarks2; }
|
||||
set { this.remarks2=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks3
|
||||
{
|
||||
get { return this.remarks3; }
|
||||
set { this.remarks3=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks4
|
||||
{
|
||||
get { return this.remarks4; }
|
||||
set { this.remarks4=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks5
|
||||
{
|
||||
get { return this.remarks5; }
|
||||
set { this.remarks5=value;}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
159
CleanMachine.Model/CM/WorkingPallet.cs
Normal file
159
CleanMachine.Model/CM/WorkingPallet.cs
Normal file
@@ -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
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
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;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int WorkingPalletId
|
||||
{
|
||||
get { return this.workingPalletId; }
|
||||
set { this.workingPalletId=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string WorkingPalletCode
|
||||
{
|
||||
get { return this.workingPalletCode; }
|
||||
set { this.workingPalletCode=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string WorkingPalletDesc
|
||||
{
|
||||
get { return this.workingPalletDesc; }
|
||||
set { this.workingPalletDesc=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int WorkingStatus
|
||||
{
|
||||
get { return this.workingStatus; }
|
||||
set { this.workingStatus=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int CreateBy
|
||||
{
|
||||
get { return this.createBy; }
|
||||
set { this.createBy=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime CreateTime
|
||||
{
|
||||
get { return this.createTime; }
|
||||
set { this.createTime=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int UpdateBy
|
||||
{
|
||||
get { return this.updateBy; }
|
||||
set { this.updateBy=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime UpdateTime
|
||||
{
|
||||
get { return this.updateTime; }
|
||||
set { this.updateTime=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int DataVersion
|
||||
{
|
||||
get { return this.dataVersion; }
|
||||
set { this.dataVersion=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks1
|
||||
{
|
||||
get { return this.remarks1; }
|
||||
set { this.remarks1=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks2
|
||||
{
|
||||
get { return this.remarks2; }
|
||||
set { this.remarks2=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks3
|
||||
{
|
||||
get { return this.remarks3; }
|
||||
set { this.remarks3=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks4
|
||||
{
|
||||
get { return this.remarks4; }
|
||||
set { this.remarks4=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks5
|
||||
{
|
||||
get { return this.remarks5; }
|
||||
set { this.remarks5=value;}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
239
CleanMachine.Model/CM/WorkingPalletDtl.cs
Normal file
239
CleanMachine.Model/CM/WorkingPalletDtl.cs
Normal file
@@ -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
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
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;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int WorkingPalletDtlId
|
||||
{
|
||||
get { return this.workingPalletDtlId; }
|
||||
set { this.workingPalletDtlId=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string WorkingPalletCode
|
||||
{
|
||||
get { return this.workingPalletCode; }
|
||||
set { this.workingPalletCode=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string IrCode
|
||||
{
|
||||
get { return this.irCode; }
|
||||
set { this.irCode=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string SheetTypeCode
|
||||
{
|
||||
get { return this.sheetTypeCode; }
|
||||
set { this.sheetTypeCode=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime InputTime
|
||||
{
|
||||
get { return this.inputTime; }
|
||||
set { this.inputTime=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string CleanModeCode
|
||||
{
|
||||
get { return this.cleanModeCode; }
|
||||
set { this.cleanModeCode=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ContaminationTypeCode
|
||||
{
|
||||
get { return this.contaminationTypeCode; }
|
||||
set { this.contaminationTypeCode=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ContaminationDtlCode
|
||||
{
|
||||
get { return this.contaminationDtlCode; }
|
||||
set { this.contaminationDtlCode=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int CurrentNumber
|
||||
{
|
||||
get { return this.currentNumber; }
|
||||
set { this.currentNumber=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int OperateUserId
|
||||
{
|
||||
get { return this.operateUserId; }
|
||||
set { this.operateUserId=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime OperateUserTime
|
||||
{
|
||||
get { return this.operateUserTime; }
|
||||
set { this.operateUserTime=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int WorkingDtlStatus
|
||||
{
|
||||
get { return this.workingDtlStatus; }
|
||||
set { this.workingDtlStatus=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int CreateBy
|
||||
{
|
||||
get { return this.createBy; }
|
||||
set { this.createBy=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime CreateTime
|
||||
{
|
||||
get { return this.createTime; }
|
||||
set { this.createTime=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int UpdateBy
|
||||
{
|
||||
get { return this.updateBy; }
|
||||
set { this.updateBy=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime UpdateTime
|
||||
{
|
||||
get { return this.updateTime; }
|
||||
set { this.updateTime=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int DataVersion
|
||||
{
|
||||
get { return this.dataVersion; }
|
||||
set { this.dataVersion=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks1
|
||||
{
|
||||
get { return this.remarks1; }
|
||||
set { this.remarks1=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks2
|
||||
{
|
||||
get { return this.remarks2; }
|
||||
set { this.remarks2=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks3
|
||||
{
|
||||
get { return this.remarks3; }
|
||||
set { this.remarks3=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks4
|
||||
{
|
||||
get { return this.remarks4; }
|
||||
set { this.remarks4=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks5
|
||||
{
|
||||
get { return this.remarks5; }
|
||||
set { this.remarks5=value;}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,48 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace CleanMachine.Model
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class CleanMode: BaseModel
|
||||
{
|
||||
|
||||
private string cleanModeId;
|
||||
private string cleanModeCode;
|
||||
private string cleanModeName;
|
||||
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string CleanModeId
|
||||
{
|
||||
get { return this.cleanModeId; }
|
||||
set { this.cleanModeId = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string CleanModeCode
|
||||
{
|
||||
get { return this.cleanModeCode; }
|
||||
set { this.cleanModeCode = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string CleanModeName
|
||||
{
|
||||
get { return this.cleanModeName; }
|
||||
set { this.cleanModeName = value; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,57 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace CleanMachine.Model
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class ContaminationDtl: BaseModel
|
||||
{
|
||||
|
||||
private string contaminationDtlId;
|
||||
private string contaminationTypeCode;
|
||||
private string contaminationDtlCode;
|
||||
private string contaminationDtlName;
|
||||
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ContaminationDtlId
|
||||
{
|
||||
get { return this.contaminationDtlId; }
|
||||
set { this.contaminationDtlId = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ContaminationTypeCode
|
||||
{
|
||||
get { return this.contaminationTypeCode; }
|
||||
set { this.contaminationTypeCode = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ContaminationDtlCode
|
||||
{
|
||||
get { return this.contaminationDtlCode; }
|
||||
set { this.contaminationDtlCode = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ContaminationDtlName
|
||||
{
|
||||
get { return this.contaminationDtlName; }
|
||||
set { this.contaminationDtlName = value; }
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,58 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace CleanMachine.Model
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class ContaminationType:BaseModel
|
||||
{
|
||||
|
||||
private string contaminationTypeId;
|
||||
private string contaminationTypeCode;
|
||||
private string contaminationTypeName;
|
||||
private string cleanModeCode;
|
||||
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ContaminationTypeId
|
||||
{
|
||||
get { return this.contaminationTypeId; }
|
||||
set { this.contaminationTypeId = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ContaminationTypeCode
|
||||
{
|
||||
get { return this.contaminationTypeCode; }
|
||||
set { this.contaminationTypeCode = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ContaminationTypeName
|
||||
{
|
||||
get { return this.contaminationTypeName; }
|
||||
set { this.contaminationTypeName = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string CleanModeCode
|
||||
{
|
||||
get { return this.cleanModeCode; }
|
||||
set { this.cleanModeCode = value; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
41
CleanMachine.Model/EnumFormType.cs
Normal file
41
CleanMachine.Model/EnumFormType.cs
Normal file
@@ -0,0 +1,41 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace CleanMachineHMI.Domain.Enums
|
||||
{
|
||||
/// <summary>
|
||||
/// 窗体类别
|
||||
/// </summary>
|
||||
public enum EnumFormType
|
||||
{
|
||||
Main,
|
||||
MainDetail,
|
||||
MechineCheck,
|
||||
Login,
|
||||
Manual,
|
||||
Parameter,
|
||||
WorkingDataRecord,
|
||||
PlcItemConfig,
|
||||
PlcAlarmLog,
|
||||
IoMonitor,
|
||||
CurrWorkingIR,
|
||||
CleanMode,
|
||||
ContaminationDTL,
|
||||
ContaminationType,
|
||||
Role,
|
||||
User,
|
||||
SheetType,
|
||||
Warning,
|
||||
WorkingPallet,
|
||||
Log,
|
||||
Base,
|
||||
DataSearch,
|
||||
WarningLog,
|
||||
Maintenance,
|
||||
ShiftCountRecord,
|
||||
DayReport,
|
||||
OperatorReport
|
||||
}
|
||||
}
|
||||
19
CleanMachine.Model/EnumOperateType.cs
Normal file
19
CleanMachine.Model/EnumOperateType.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CleanMachineHMI.Domain.Enums
|
||||
{
|
||||
/// <summary>
|
||||
/// 操作类型
|
||||
/// </summary>
|
||||
public enum EnumOperateType
|
||||
{
|
||||
Add,
|
||||
Edit,
|
||||
Deleted,
|
||||
Select,
|
||||
}
|
||||
}
|
||||
20
CleanMachine.Model/FormModel.cs
Normal file
20
CleanMachine.Model/FormModel.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using CleanMachineHMI.Domain.Enums;
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
|
||||
namespace CleanMachineHMI.Domain.Models.ViewModels
|
||||
{
|
||||
/// <summary>
|
||||
/// 窗体模型
|
||||
/// </summary>
|
||||
public class FormModel<T> where T : Type
|
||||
{
|
||||
public T Form { get; set; }
|
||||
|
||||
public EnumFormType FormType { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,48 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace CleanMachine.Model
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class Language:BaseModel
|
||||
{
|
||||
|
||||
private string languageId;
|
||||
private string languageCode;
|
||||
private string languageName;
|
||||
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string LanguageId
|
||||
{
|
||||
get { return this.languageId; }
|
||||
set { this.languageId = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string LanguageCode
|
||||
{
|
||||
get { return this.languageCode; }
|
||||
set { this.languageCode = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string LanguageName
|
||||
{
|
||||
get { return this.languageName; }
|
||||
set { this.languageName = value; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,77 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace CleanMachine.Model
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class LanguageControl : BaseModel
|
||||
{
|
||||
|
||||
private string languageControlId;
|
||||
private string languageCode;
|
||||
private string formCode;
|
||||
private string controlCode;
|
||||
private string controlName;
|
||||
private string controlType;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string LanguageControlId
|
||||
{
|
||||
get { return this.languageControlId; }
|
||||
set { this.languageControlId = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string LanguageCode
|
||||
{
|
||||
get { return this.languageCode; }
|
||||
set { this.languageCode = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string FormCode
|
||||
{
|
||||
get { return this.formCode; }
|
||||
set { this.formCode = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ControlCode
|
||||
{
|
||||
get { return this.controlCode; }
|
||||
set { this.controlCode = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ControlName
|
||||
{
|
||||
get { return this.controlName; }
|
||||
set { this.controlName = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ControlType
|
||||
{
|
||||
get { return this.controlType; }
|
||||
set { this.controlType = value; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,35 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace CleanMachine.Model
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class LastPattleNum:BaseModel
|
||||
{
|
||||
|
||||
private string key;
|
||||
private string value;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Key
|
||||
{
|
||||
get { return this.key; }
|
||||
set { this.key = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Value
|
||||
{
|
||||
get { return this.value; }
|
||||
set { this.value = value; }
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,67 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace CleanMachine.Model
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class Log : BaseModel
|
||||
{
|
||||
|
||||
private string sysLogId;
|
||||
private int userId;
|
||||
private string operateStatus;
|
||||
private string resultStatus;
|
||||
private string message;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string SysLogId
|
||||
{
|
||||
get { return this.sysLogId; }
|
||||
set { this.sysLogId = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int UserId
|
||||
{
|
||||
get { return this.userId; }
|
||||
set { this.userId = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string OperateStatus
|
||||
{
|
||||
get { return this.operateStatus; }
|
||||
set { this.operateStatus = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ResultStatus
|
||||
{
|
||||
get { return this.resultStatus; }
|
||||
set { this.resultStatus = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Message
|
||||
{
|
||||
get { return this.message; }
|
||||
set { this.message = value; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace CleanMachine.Model
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
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;
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,79 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace CleanMachine.Model
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
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;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ParameterId
|
||||
{
|
||||
get { return this.parameterId; }
|
||||
set { this.parameterId = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ParameterCode
|
||||
{
|
||||
get { return this.parameterCode; }
|
||||
set { this.parameterCode = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ParameterName
|
||||
{
|
||||
get { return this.parameterName; }
|
||||
set { this.parameterName = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ParameterValue
|
||||
{
|
||||
get { return this.parameterValue; }
|
||||
set { this.parameterValue = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ParameterType
|
||||
{
|
||||
get { return this.parameterType; }
|
||||
set { this.parameterType = value; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,117 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace CleanMachine.Model
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
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;
|
||||
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string PlcItemId
|
||||
{
|
||||
get { return this.plcItemId; }
|
||||
set { this.plcItemId = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string PlcItemCode
|
||||
{
|
||||
get { return this.plcItemCode; }
|
||||
set { this.plcItemCode = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string PlcItemName
|
||||
{
|
||||
get { return this.plcItemName; }
|
||||
set { this.plcItemName = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int PlcItemType
|
||||
{
|
||||
get { return this.plcItemType; }
|
||||
set { this.plcItemType = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int PlcItemDataType
|
||||
{
|
||||
get { return this.plcItemDataType; }
|
||||
set { this.plcItemDataType = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int PlcItemDataLength
|
||||
{
|
||||
get { return this.plcItemDataLength; }
|
||||
set { this.plcItemDataLength = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string PlcItemPriAddress
|
||||
{
|
||||
get { return this.plcItemPriAddress; }
|
||||
set { this.plcItemPriAddress = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string PlcItemModbusAddress
|
||||
{
|
||||
get { return this.plcItemModbusAddress; }
|
||||
set { this.plcItemModbusAddress = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string PlcItemDeviationAddress
|
||||
{
|
||||
get { return this.plcItemDeviationAddress; }
|
||||
set { this.plcItemDeviationAddress = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string PlcItemValue
|
||||
{
|
||||
get { return this.plcItemValue; }
|
||||
set { this.plcItemValue = value; }
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,57 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace CleanMachine.Model
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class Role : BaseModel
|
||||
{
|
||||
|
||||
private string roleId;
|
||||
private string roleCode;
|
||||
private string roleName;
|
||||
private int roleGrade;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string RoleId
|
||||
{
|
||||
get { return this.roleId; }
|
||||
set { this.roleId = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string RoleCode
|
||||
{
|
||||
get { return this.roleCode; }
|
||||
set { this.roleCode = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string RoleName
|
||||
{
|
||||
get { return this.roleName; }
|
||||
set { this.roleName = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int RoleGrade
|
||||
{
|
||||
get { return this.roleGrade; }
|
||||
set { this.roleGrade = value; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,47 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace CleanMachine.Model
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class RoleMenuPermission : BaseModel
|
||||
{
|
||||
|
||||
private string roleMenuPermissionId;
|
||||
private string roleId;
|
||||
private string menuId;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string RoleMenuPermissionId
|
||||
{
|
||||
get { return this.roleMenuPermissionId; }
|
||||
set { this.roleMenuPermissionId = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string RoleId
|
||||
{
|
||||
get { return this.roleId; }
|
||||
set { this.roleId = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string MenuId
|
||||
{
|
||||
get { return this.menuId; }
|
||||
set { this.menuId = value; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
169
CleanMachine.Model/SYS/Language.cs
Normal file
169
CleanMachine.Model/SYS/Language.cs
Normal file
@@ -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
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
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;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int LanguageId
|
||||
{
|
||||
get { return this.languageId; }
|
||||
set { this.languageId=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string LanguageCode
|
||||
{
|
||||
get { return this.languageCode; }
|
||||
set { this.languageCode=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string LanguageName
|
||||
{
|
||||
get { return this.languageName; }
|
||||
set { this.languageName=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int UsedFlag
|
||||
{
|
||||
get { return this.usedFlag; }
|
||||
set { this.usedFlag=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int DelFlag
|
||||
{
|
||||
get { return this.delFlag; }
|
||||
set { this.delFlag=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int CreateBy
|
||||
{
|
||||
get { return this.createBy; }
|
||||
set { this.createBy=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime CreateTime
|
||||
{
|
||||
get { return this.createTime; }
|
||||
set { this.createTime=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int UpdateBy
|
||||
{
|
||||
get { return this.updateBy; }
|
||||
set { this.updateBy=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime UpdateTime
|
||||
{
|
||||
get { return this.updateTime; }
|
||||
set { this.updateTime=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int DataVersion
|
||||
{
|
||||
get { return this.dataVersion; }
|
||||
set { this.dataVersion=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks1
|
||||
{
|
||||
get { return this.remarks1; }
|
||||
set { this.remarks1=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks2
|
||||
{
|
||||
get { return this.remarks2; }
|
||||
set { this.remarks2=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks3
|
||||
{
|
||||
get { return this.remarks3; }
|
||||
set { this.remarks3=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks4
|
||||
{
|
||||
get { return this.remarks4; }
|
||||
set { this.remarks4=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks5
|
||||
{
|
||||
get { return this.remarks5; }
|
||||
set { this.remarks5=value;}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
199
CleanMachine.Model/SYS/LanguageControl.cs
Normal file
199
CleanMachine.Model/SYS/LanguageControl.cs
Normal file
@@ -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
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
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;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int LanguageControlId
|
||||
{
|
||||
get { return this.languageControlId; }
|
||||
set { this.languageControlId=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string LanguageCode
|
||||
{
|
||||
get { return this.languageCode; }
|
||||
set { this.languageCode=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string FormCode
|
||||
{
|
||||
get { return this.formCode; }
|
||||
set { this.formCode=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ControlCode
|
||||
{
|
||||
get { return this.controlCode; }
|
||||
set { this.controlCode=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ControlName
|
||||
{
|
||||
get { return this.controlName; }
|
||||
set { this.controlName=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ControlType
|
||||
{
|
||||
get { return this.controlType; }
|
||||
set { this.controlType=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int UsedFlag
|
||||
{
|
||||
get { return this.usedFlag; }
|
||||
set { this.usedFlag=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int DelFlag
|
||||
{
|
||||
get { return this.delFlag; }
|
||||
set { this.delFlag=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int CreateBy
|
||||
{
|
||||
get { return this.createBy; }
|
||||
set { this.createBy=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime CreateTime
|
||||
{
|
||||
get { return this.createTime; }
|
||||
set { this.createTime=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int UpdateBy
|
||||
{
|
||||
get { return this.updateBy; }
|
||||
set { this.updateBy=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime UpdateTime
|
||||
{
|
||||
get { return this.updateTime; }
|
||||
set { this.updateTime=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int DataVersion
|
||||
{
|
||||
get { return this.dataVersion; }
|
||||
set { this.dataVersion=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks1
|
||||
{
|
||||
get { return this.remarks1; }
|
||||
set { this.remarks1=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks2
|
||||
{
|
||||
get { return this.remarks2; }
|
||||
set { this.remarks2=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks3
|
||||
{
|
||||
get { return this.remarks3; }
|
||||
set { this.remarks3=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks4
|
||||
{
|
||||
get { return this.remarks4; }
|
||||
set { this.remarks4=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks5
|
||||
{
|
||||
get { return this.remarks5; }
|
||||
set { this.remarks5=value;}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
169
CleanMachine.Model/SYS/Log.cs
Normal file
169
CleanMachine.Model/SYS/Log.cs
Normal file
@@ -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
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
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;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int SysLogId
|
||||
{
|
||||
get { return this.sysLogId; }
|
||||
set { this.sysLogId=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int UserId
|
||||
{
|
||||
get { return this.userId; }
|
||||
set { this.userId=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string OperateStatus
|
||||
{
|
||||
get { return this.operateStatus; }
|
||||
set { this.operateStatus=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ResultStatus
|
||||
{
|
||||
get { return this.resultStatus; }
|
||||
set { this.resultStatus=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Message
|
||||
{
|
||||
get { return this.message; }
|
||||
set { this.message=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int CreateBy
|
||||
{
|
||||
get { return this.createBy; }
|
||||
set { this.createBy=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime CreateTime
|
||||
{
|
||||
get { return this.createTime; }
|
||||
set { this.createTime=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int UpdateBy
|
||||
{
|
||||
get { return this.updateBy; }
|
||||
set { this.updateBy=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime UpdateTime
|
||||
{
|
||||
get { return this.updateTime; }
|
||||
set { this.updateTime=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int DataVersion
|
||||
{
|
||||
get { return this.dataVersion; }
|
||||
set { this.dataVersion=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks1
|
||||
{
|
||||
get { return this.remarks1; }
|
||||
set { this.remarks1=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks2
|
||||
{
|
||||
get { return this.remarks2; }
|
||||
set { this.remarks2=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks3
|
||||
{
|
||||
get { return this.remarks3; }
|
||||
set { this.remarks3=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks4
|
||||
{
|
||||
get { return this.remarks4; }
|
||||
set { this.remarks4=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks5
|
||||
{
|
||||
get { return this.remarks5; }
|
||||
set { this.remarks5=value;}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
199
CleanMachine.Model/SYS/Menu.cs
Normal file
199
CleanMachine.Model/SYS/Menu.cs
Normal file
@@ -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
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
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;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int MenuId
|
||||
{
|
||||
get { return this.menuId; }
|
||||
set { this.menuId=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string MenuCode
|
||||
{
|
||||
get { return this.menuCode; }
|
||||
set { this.menuCode=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string MenuName
|
||||
{
|
||||
get { return this.menuName; }
|
||||
set { this.menuName=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string MenuUrl
|
||||
{
|
||||
get { return this.menuUrl; }
|
||||
set { this.menuUrl=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int MenuPid
|
||||
{
|
||||
get { return this.menuPid; }
|
||||
set { this.menuPid=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int MenuOrder
|
||||
{
|
||||
get { return this.menuOrder; }
|
||||
set { this.menuOrder=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int UsedFlag
|
||||
{
|
||||
get { return this.usedFlag; }
|
||||
set { this.usedFlag=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int DelFlag
|
||||
{
|
||||
get { return this.delFlag; }
|
||||
set { this.delFlag=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int CreateBy
|
||||
{
|
||||
get { return this.createBy; }
|
||||
set { this.createBy=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime CreateTime
|
||||
{
|
||||
get { return this.createTime; }
|
||||
set { this.createTime=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int UpdateBy
|
||||
{
|
||||
get { return this.updateBy; }
|
||||
set { this.updateBy=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime UpdateTime
|
||||
{
|
||||
get { return this.updateTime; }
|
||||
set { this.updateTime=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int DataVersion
|
||||
{
|
||||
get { return this.dataVersion; }
|
||||
set { this.dataVersion=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks1
|
||||
{
|
||||
get { return this.remarks1; }
|
||||
set { this.remarks1=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks2
|
||||
{
|
||||
get { return this.remarks2; }
|
||||
set { this.remarks2=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks3
|
||||
{
|
||||
get { return this.remarks3; }
|
||||
set { this.remarks3=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks4
|
||||
{
|
||||
get { return this.remarks4; }
|
||||
set { this.remarks4=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks5
|
||||
{
|
||||
get { return this.remarks5; }
|
||||
set { this.remarks5=value;}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
189
CleanMachine.Model/SYS/Parameter.cs
Normal file
189
CleanMachine.Model/SYS/Parameter.cs
Normal file
@@ -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
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
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;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int ParameterId
|
||||
{
|
||||
get { return this.parameterId; }
|
||||
set { this.parameterId=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ParameterCode
|
||||
{
|
||||
get { return this.parameterCode; }
|
||||
set { this.parameterCode=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ParameterName
|
||||
{
|
||||
get { return this.parameterName; }
|
||||
set { this.parameterName=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ParameterValue
|
||||
{
|
||||
get { return this.parameterValue; }
|
||||
set { this.parameterValue=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ParameterType
|
||||
{
|
||||
get { return this.parameterType; }
|
||||
set { this.parameterType=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int UsedFlag
|
||||
{
|
||||
get { return this.usedFlag; }
|
||||
set { this.usedFlag=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int DelFlag
|
||||
{
|
||||
get { return this.delFlag; }
|
||||
set { this.delFlag=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int CreateBy
|
||||
{
|
||||
get { return this.createBy; }
|
||||
set { this.createBy=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime CreateTime
|
||||
{
|
||||
get { return this.createTime; }
|
||||
set { this.createTime=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int UpdateBy
|
||||
{
|
||||
get { return this.updateBy; }
|
||||
set { this.updateBy=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime UpdateTime
|
||||
{
|
||||
get { return this.updateTime; }
|
||||
set { this.updateTime=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int DataVersion
|
||||
{
|
||||
get { return this.dataVersion; }
|
||||
set { this.dataVersion=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks1
|
||||
{
|
||||
get { return this.remarks1; }
|
||||
set { this.remarks1=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks2
|
||||
{
|
||||
get { return this.remarks2; }
|
||||
set { this.remarks2=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks3
|
||||
{
|
||||
get { return this.remarks3; }
|
||||
set { this.remarks3=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks4
|
||||
{
|
||||
get { return this.remarks4; }
|
||||
set { this.remarks4=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks5
|
||||
{
|
||||
get { return this.remarks5; }
|
||||
set { this.remarks5=value;}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
182
CleanMachine.Model/SYS/Role.cs
Normal file
182
CleanMachine.Model/SYS/Role.cs
Normal file
@@ -0,0 +1,182 @@
|
||||
|
||||
|
||||
//模板信息:{"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
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
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;
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int RoleId
|
||||
{
|
||||
get { return this.roleId; }
|
||||
set { this.roleId=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string RoleCode
|
||||
{
|
||||
get { return this.roleCode; }
|
||||
set { this.roleCode=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string RoleName
|
||||
{
|
||||
get { return this.roleName; }
|
||||
set { this.roleName=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int RoleGrade
|
||||
{
|
||||
get { return this.roleGrade; }
|
||||
set { this.roleGrade=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int UsedFlag
|
||||
{
|
||||
get { return this.usedFlag; }
|
||||
set { this.usedFlag=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int DelFlag
|
||||
{
|
||||
get { return this.delFlag; }
|
||||
set { this.delFlag=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int CreateBy
|
||||
{
|
||||
get { return this.createBy; }
|
||||
set { this.createBy=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime CreateTime
|
||||
{
|
||||
get { return this.createTime; }
|
||||
set { this.createTime=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int UpdateBy
|
||||
{
|
||||
get { return this.updateBy; }
|
||||
set { this.updateBy=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime UpdateTime
|
||||
{
|
||||
get { return this.updateTime; }
|
||||
set { this.updateTime=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int DataVersion
|
||||
{
|
||||
get { return this.dataVersion; }
|
||||
set { this.dataVersion=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks1
|
||||
{
|
||||
get { return this.remarks1; }
|
||||
set { this.remarks1=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks2
|
||||
{
|
||||
get { return this.remarks2; }
|
||||
set { this.remarks2=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks3
|
||||
{
|
||||
get { return this.remarks3; }
|
||||
set { this.remarks3=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks4
|
||||
{
|
||||
get { return this.remarks4; }
|
||||
set { this.remarks4=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks5
|
||||
{
|
||||
get { return this.remarks5; }
|
||||
set { this.remarks5=value;}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
162
CleanMachine.Model/SYS/RoleMenuPermission.cs
Normal file
162
CleanMachine.Model/SYS/RoleMenuPermission.cs
Normal file
@@ -0,0 +1,162 @@
|
||||
|
||||
|
||||
//模板信息:{"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
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
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;
|
||||
|
||||
|
||||
private string menuCode;
|
||||
private string menuName;
|
||||
|
||||
private string menuUrl;
|
||||
private int menuPid;
|
||||
|
||||
|
||||
|
||||
public string MenuCode { get => menuCode; set => menuCode = value; }
|
||||
public string MenuName { get => menuName; set => menuName = value; }
|
||||
public string MenuUrl { get => menuUrl; set => menuUrl = value; }
|
||||
public int MenuPid { get => menuPid; set => menuPid = value; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int RoleMenuPermissionId
|
||||
{
|
||||
get { return this.roleMenuPermissionId; }
|
||||
set { this.roleMenuPermissionId = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int RoleId
|
||||
{
|
||||
get { return this.roleId; }
|
||||
set { this.roleId = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int MenuId
|
||||
{
|
||||
get { return this.menuId; }
|
||||
set { this.menuId = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int CreateBy
|
||||
{
|
||||
get { return this.createBy; }
|
||||
set { this.createBy = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime CreateTime
|
||||
{
|
||||
get { return this.createTime; }
|
||||
set { this.createTime = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int UpdateBy
|
||||
{
|
||||
get { return this.updateBy; }
|
||||
set { this.updateBy = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime UpdateTime
|
||||
{
|
||||
get { return this.updateTime; }
|
||||
set { this.updateTime = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int DataVersion
|
||||
{
|
||||
get { return this.dataVersion; }
|
||||
set { this.dataVersion = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks1
|
||||
{
|
||||
get { return this.remarks1; }
|
||||
set { this.remarks1 = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks2
|
||||
{
|
||||
get { return this.remarks2; }
|
||||
set { this.remarks2 = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks3
|
||||
{
|
||||
get { return this.remarks3; }
|
||||
set { this.remarks3 = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks4
|
||||
{
|
||||
get { return this.remarks4; }
|
||||
set { this.remarks4 = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks5
|
||||
{
|
||||
get { return this.remarks5; }
|
||||
set { this.remarks5 = value; }
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
189
CleanMachine.Model/SYS/ScheduleDtl.cs
Normal file
189
CleanMachine.Model/SYS/ScheduleDtl.cs
Normal file
@@ -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
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
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;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int ScheduleDtlId
|
||||
{
|
||||
get { return this.scheduleDtlId; }
|
||||
set { this.scheduleDtlId=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ScheduleCode
|
||||
{
|
||||
get { return this.scheduleCode; }
|
||||
set { this.scheduleCode=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ScheduleName
|
||||
{
|
||||
get { return this.scheduleName; }
|
||||
set { this.scheduleName=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string BeginTime
|
||||
{
|
||||
get { return this.beginTime; }
|
||||
set { this.beginTime=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string EndTime
|
||||
{
|
||||
get { return this.endTime; }
|
||||
set { this.endTime=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int UsedFlag
|
||||
{
|
||||
get { return this.usedFlag; }
|
||||
set { this.usedFlag=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int DelFlag
|
||||
{
|
||||
get { return this.delFlag; }
|
||||
set { this.delFlag=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int CreateBy
|
||||
{
|
||||
get { return this.createBy; }
|
||||
set { this.createBy=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime CreateTime
|
||||
{
|
||||
get { return this.createTime; }
|
||||
set { this.createTime=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int UpdateBy
|
||||
{
|
||||
get { return this.updateBy; }
|
||||
set { this.updateBy=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime UpdateTime
|
||||
{
|
||||
get { return this.updateTime; }
|
||||
set { this.updateTime=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int DataVersion
|
||||
{
|
||||
get { return this.dataVersion; }
|
||||
set { this.dataVersion=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks1
|
||||
{
|
||||
get { return this.remarks1; }
|
||||
set { this.remarks1=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks2
|
||||
{
|
||||
get { return this.remarks2; }
|
||||
set { this.remarks2=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks3
|
||||
{
|
||||
get { return this.remarks3; }
|
||||
set { this.remarks3=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks4
|
||||
{
|
||||
get { return this.remarks4; }
|
||||
set { this.remarks4=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks5
|
||||
{
|
||||
get { return this.remarks5; }
|
||||
set { this.remarks5=value;}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
210
CleanMachine.Model/SYS/User.cs
Normal file
210
CleanMachine.Model/SYS/User.cs
Normal file
@@ -0,0 +1,210 @@
|
||||
|
||||
|
||||
//模板信息:{"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
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
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;
|
||||
private int _roleGrade;
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int UserId
|
||||
{
|
||||
get { return this.userId; }
|
||||
set { this.userId=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string UserCode
|
||||
{
|
||||
get { return this.userCode; }
|
||||
set { this.userCode=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string UserName
|
||||
{
|
||||
get { return this.userName; }
|
||||
set { this.userName=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Password
|
||||
{
|
||||
get { return this.password; }
|
||||
set { this.password=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int Gender
|
||||
{
|
||||
get { return this.gender; }
|
||||
set { this.gender=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int RoleId
|
||||
{
|
||||
get { return this.roleId; }
|
||||
set { this.roleId=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ScheduleCode
|
||||
{
|
||||
get { return this.scheduleCode; }
|
||||
set { this.scheduleCode=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int UsedFlag
|
||||
{
|
||||
get { return this.usedFlag; }
|
||||
set { this.usedFlag=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int DelFlag
|
||||
{
|
||||
get { return this.delFlag; }
|
||||
set { this.delFlag=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int CreateBy
|
||||
{
|
||||
get { return this.createBy; }
|
||||
set { this.createBy=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime CreateTime
|
||||
{
|
||||
get { return this.createTime; }
|
||||
set { this.createTime=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int UpdateBy
|
||||
{
|
||||
get { return this.updateBy; }
|
||||
set { this.updateBy=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime UpdateTime
|
||||
{
|
||||
get { return this.updateTime; }
|
||||
set { this.updateTime=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int DataVersion
|
||||
{
|
||||
get { return this.dataVersion; }
|
||||
set { this.dataVersion=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks1
|
||||
{
|
||||
get { return this.remarks1; }
|
||||
set { this.remarks1=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks2
|
||||
{
|
||||
get { return this.remarks2; }
|
||||
set { this.remarks2=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks3
|
||||
{
|
||||
get { return this.remarks3; }
|
||||
set { this.remarks3=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks4
|
||||
{
|
||||
get { return this.remarks4; }
|
||||
set { this.remarks4=value;}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Remarks5
|
||||
{
|
||||
get { return this.remarks5; }
|
||||
set { this.remarks5=value;}
|
||||
}
|
||||
|
||||
public int RoleGrade { get => _roleGrade; set => _roleGrade = value; }
|
||||
}
|
||||
}
|
||||
@@ -1,66 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace CleanMachine.Model
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class ScheduleDtl : BaseModel
|
||||
{
|
||||
|
||||
private string scheduleDtlId;
|
||||
private string scheduleCode;
|
||||
private string scheduleName;
|
||||
private string beginTime;
|
||||
private string endTime;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ScheduleDtlId
|
||||
{
|
||||
get { return this.scheduleDtlId; }
|
||||
set { this.scheduleDtlId = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ScheduleCode
|
||||
{
|
||||
get { return this.scheduleCode; }
|
||||
set { this.scheduleCode = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ScheduleName
|
||||
{
|
||||
get { return this.scheduleName; }
|
||||
set { this.scheduleName = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string BeginTime
|
||||
{
|
||||
get { return this.beginTime; }
|
||||
set { this.beginTime = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string EndTime
|
||||
{
|
||||
get { return this.endTime; }
|
||||
set { this.endTime = value; }
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,48 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace CleanMachine.Model
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class SheetType : BaseModel
|
||||
{
|
||||
|
||||
private string sheetTypeId;
|
||||
private string sheetTypeCode;
|
||||
private string sheetTypeName;
|
||||
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string SheetTypeId
|
||||
{
|
||||
get { return this.sheetTypeId; }
|
||||
set { this.sheetTypeId = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string SheetTypeCode
|
||||
{
|
||||
get { return this.sheetTypeCode; }
|
||||
set { this.sheetTypeCode = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string SheetTypeName
|
||||
{
|
||||
get { return this.sheetTypeName; }
|
||||
set { this.sheetTypeName = value; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,88 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace CleanMachine.Model
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
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;
|
||||
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string UserId
|
||||
{
|
||||
get { return this.userId; }
|
||||
set { this.userId = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string UserCode
|
||||
{
|
||||
get { return this.userCode; }
|
||||
set { this.userCode = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string UserName
|
||||
{
|
||||
get { return this.userName; }
|
||||
set { this.userName = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Password
|
||||
{
|
||||
get { return this.password; }
|
||||
set { this.password = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int Gender
|
||||
{
|
||||
get { return this.gender; }
|
||||
set { this.gender = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string RoleId
|
||||
{
|
||||
get { return this.roleId; }
|
||||
set { this.roleId = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ScheduleCode
|
||||
{
|
||||
get { return this.scheduleCode; }
|
||||
set { this.scheduleCode = value; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
32
CleanMachine.Model/UserInfo.cs
Normal file
32
CleanMachine.Model/UserInfo.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CleanMachineHMI.Domain.Models.ViewModels
|
||||
{
|
||||
/// <summary>
|
||||
/// 用户信息
|
||||
/// </summary>
|
||||
public class UserInfo
|
||||
{
|
||||
public int UserId { get; set; }
|
||||
|
||||
public string UserCode { get; set; }
|
||||
|
||||
public string UserName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 性别.0:男;1:女。
|
||||
/// </summary>
|
||||
public int Gender { get; set; }
|
||||
|
||||
public string ScheduleCode { get; set; }
|
||||
public int RoleId { get; set; }
|
||||
|
||||
public int RoleGrade { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,78 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace CleanMachine.Model
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class Warning : BaseModel
|
||||
{
|
||||
|
||||
private string warningId;
|
||||
private string warningCode;
|
||||
private string warningName;
|
||||
private string plcItemCode;
|
||||
private string warningType;
|
||||
private string warningMessage;
|
||||
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string WarningId
|
||||
{
|
||||
get { return this.warningId; }
|
||||
set { this.warningId = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string WarningCode
|
||||
{
|
||||
get { return this.warningCode; }
|
||||
set { this.warningCode = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string WarningName
|
||||
{
|
||||
get { return this.warningName; }
|
||||
set { this.warningName = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string PlcItemCode
|
||||
{
|
||||
get { return this.plcItemCode; }
|
||||
set { this.plcItemCode = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string WarningType
|
||||
{
|
||||
get { return this.warningType; }
|
||||
set { this.warningType = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string WarningMessage
|
||||
{
|
||||
get { return this.warningMessage; }
|
||||
set { this.warningMessage = value; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,118 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace CleanMachine.Model
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
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;
|
||||
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string WarningLogId
|
||||
{
|
||||
get { return this.warningLogId; }
|
||||
set { this.warningLogId = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string WarningCode
|
||||
{
|
||||
get { return this.warningCode; }
|
||||
set { this.warningCode = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string WarningName
|
||||
{
|
||||
get { return this.warningName; }
|
||||
set { this.warningName = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string WarningType
|
||||
{
|
||||
get { return this.warningType; }
|
||||
set { this.warningType = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string WarningMessage
|
||||
{
|
||||
get { return this.warningMessage; }
|
||||
set { this.warningMessage = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime WarningTime
|
||||
{
|
||||
get { return this.warningTime; }
|
||||
set { this.warningTime = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string PlcItemCode
|
||||
{
|
||||
get { return this.plcItemCode; }
|
||||
set { this.plcItemCode = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int WaringStatus
|
||||
{
|
||||
get { return this.waringStatus; }
|
||||
set { this.waringStatus = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int WarningHandleResult
|
||||
{
|
||||
get { return this.warningHandleResult; }
|
||||
set { this.warningHandleResult = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime WarningHandleTime
|
||||
{
|
||||
get { return this.warningHandleTime; }
|
||||
set { this.warningHandleTime = value; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,58 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace CleanMachine.Model
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class WorkingPallet : BaseModel
|
||||
{
|
||||
|
||||
private string workingPalletId;
|
||||
private string workingPalletCode;
|
||||
private string workingPalletDesc;
|
||||
private string workingStatus;
|
||||
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string WorkingPalletId
|
||||
{
|
||||
get { return this.workingPalletId; }
|
||||
set { this.workingPalletId = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string WorkingPalletCode
|
||||
{
|
||||
get { return this.workingPalletCode; }
|
||||
set { this.workingPalletCode = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string WorkingPalletDesc
|
||||
{
|
||||
get { return this.workingPalletDesc; }
|
||||
set { this.workingPalletDesc = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string WorkingStatus
|
||||
{
|
||||
get { return this.workingStatus; }
|
||||
set { this.workingStatus = value; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,138 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace CleanMachine.Model
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
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;
|
||||
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string WorkingPalletDtlId
|
||||
{
|
||||
get { return this.workingPalletDtlId; }
|
||||
set { this.workingPalletDtlId = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string WorkingPalletCode
|
||||
{
|
||||
get { return this.workingPalletCode; }
|
||||
set { this.workingPalletCode = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string IrCode
|
||||
{
|
||||
get { return this.irCode; }
|
||||
set { this.irCode = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string SheetTypeCode
|
||||
{
|
||||
get { return this.sheetTypeCode; }
|
||||
set { this.sheetTypeCode = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime InputTime
|
||||
{
|
||||
get { return this.inputTime; }
|
||||
set { this.inputTime = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string CleanModeCode
|
||||
{
|
||||
get { return this.cleanModeCode; }
|
||||
set { this.cleanModeCode = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ContaminationTypeCode
|
||||
{
|
||||
get { return this.contaminationTypeCode; }
|
||||
set { this.contaminationTypeCode = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string ContaminationDtlCode
|
||||
{
|
||||
get { return this.contaminationDtlCode; }
|
||||
set { this.contaminationDtlCode = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int CurrentNumber
|
||||
{
|
||||
get { return this.currentNumber; }
|
||||
set { this.currentNumber = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int OperateUserId
|
||||
{
|
||||
get { return this.operateUserId; }
|
||||
set { this.operateUserId = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public DateTime OperateUserTime
|
||||
{
|
||||
get { return this.operateUserTime; }
|
||||
set { this.operateUserTime = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int WorkingDtlStatus
|
||||
{
|
||||
get { return this.workingDtlStatus; }
|
||||
set { this.workingDtlStatus = value; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
25
CleanMachine.Model/ZBK/DayReport.cs
Normal file
25
CleanMachine.Model/ZBK/DayReport.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace CleanMachine.Model.ZBK
|
||||
{
|
||||
public class DayReport
|
||||
{
|
||||
|
||||
public DateTime Date { get; set; }
|
||||
public int Cleaned { get; set; }
|
||||
public int Scrap { get; set; }
|
||||
|
||||
public DateTime StartTime { get; set; }
|
||||
public DateTime EndTime { get; set; }
|
||||
|
||||
public string Operators { get; set; }
|
||||
|
||||
public DayOfWeek DayOfWeek { get => Date.DayOfWeek; }
|
||||
|
||||
public float MachineHours { get; set; }
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
21
CleanMachine.Model/ZBK/OperatorReport.cs
Normal file
21
CleanMachine.Model/ZBK/OperatorReport.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace CleanMachine.Model.ZBK
|
||||
{
|
||||
public class OperatorReport
|
||||
{
|
||||
public DateTime Date { get; set; }
|
||||
public string Operator { get; set; }
|
||||
public int Cleaned { get; set; }
|
||||
public int Scrap { get; set; }
|
||||
|
||||
public DayOfWeek DayOfWeek { get => Date.DayOfWeek; }
|
||||
public DateTime StartTime { get; set; }
|
||||
public DateTime EndTime { get; set; }
|
||||
public float MachineHours { get; set; }
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user