Compare commits
70 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c738aeab37 | ||
|
|
1043fe18be | ||
|
|
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 | ||
|
|
9d000b8407 | ||
|
|
a070a6aa0e | ||
|
|
598eaf7bd4 | ||
|
|
55588c0e6e | ||
|
|
e9367f6b29 | ||
|
|
0fc04d5b52 | ||
|
|
2b39fb593c | ||
|
|
0a4fe0907b | ||
|
|
5b47fd6d1a | ||
|
|
eceea6f5ba | ||
|
|
7ab0346321 | ||
|
|
f802acfd18 | ||
|
|
e1731268c0 | ||
|
|
9cfeb818fa | ||
|
|
89f1bb0536 | ||
|
|
a7ef9c7b54 | ||
|
|
39c4c20fee | ||
|
|
9b3b616f83 | ||
|
|
9e758a951f | ||
|
|
a78a6bd334 | ||
|
|
7321539b72 | ||
|
|
31fe9e834a | ||
|
|
75b42432b9 | ||
|
|
a5f3550a5c | ||
|
|
59eec06d5e | ||
|
|
c6260156f8 | ||
|
|
d39ac43a08 |
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);
|
||||
// }
|
||||
}
|
||||
}
|
||||
23
CleanMachine.BLL/ZBK/DayReportBLL.cs
Normal file
23
CleanMachine.BLL/ZBK/DayReportBLL.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
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.OperatorReport> GetOPReport(string strWhere, object Params = null)
|
||||
{
|
||||
return new CleanMachine.DAL.ZBK.DayReportDAL().GetOPReport(strWhere, Params);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
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);
|
||||
// }
|
||||
}
|
||||
}
|
||||
148
CleanMachine.Control/AnimateBase.cs
Normal file
148
CleanMachine.Control/AnimateBase.cs
Normal file
@@ -0,0 +1,148 @@
|
||||
// LEase.AnimateBase
|
||||
using System;
|
||||
using LEase;
|
||||
|
||||
public class AnimateBase
|
||||
{
|
||||
public static double Back(double x, LEaseMode easeMode)
|
||||
{
|
||||
switch (easeMode)
|
||||
{
|
||||
case LEaseMode.EaseIn:
|
||||
return 2.70158 * x * x * x - 1.70158 * x * x;
|
||||
case LEaseMode.EaseOut:
|
||||
return 1.0 + 2.70158 * Math.Pow(x - 1.0, 3.0) + 1.70158 * Math.Pow(x - 1.0, 2.0);
|
||||
case LEaseMode.EaseInOut:
|
||||
return (x < 0.5) ? (Math.Pow(2.0 * x, 2.0) * (7.189819 * x - 2.5949095) / 2.0) : ((Math.Pow(2.0 * x - 2.0, 2.0) * (7.189819 * x - 4.5949095) + 2.0) / 2.0);
|
||||
default:
|
||||
return 0.0;
|
||||
}
|
||||
}
|
||||
|
||||
private static double BounceOut(double x)
|
||||
{
|
||||
if (x < 0.36363636363636365)
|
||||
{
|
||||
return 7.5625 * x * x;
|
||||
}
|
||||
if (x < 0.72727272727272729)
|
||||
{
|
||||
return 7.5625 * (x -= 0.54545454545454541) * x + 0.75;
|
||||
}
|
||||
if (x < 0.90909090909090906)
|
||||
{
|
||||
return 7.5625 * (x -= 0.81818181818181823) * x + 0.9375;
|
||||
}
|
||||
return 7.5625 * (x -= 21.0 / 22.0) * x + 63.0 / 64.0;
|
||||
}
|
||||
|
||||
public static double Bounce(double x, LEaseMode easeMode)
|
||||
{
|
||||
switch (easeMode)
|
||||
{
|
||||
case LEaseMode.EaseIn:
|
||||
return 1.0 - BounceOut(1.0 - x);
|
||||
case LEaseMode.EaseOut:
|
||||
return BounceOut(x);
|
||||
case LEaseMode.EaseInOut:
|
||||
return (x < 0.5) ? ((1.0 - BounceOut(1.0 - 2.0 * x)) / 2.0) : ((1.0 + BounceOut(2.0 * x - 1.0)) / 2.0);
|
||||
default:
|
||||
return 0.0;
|
||||
}
|
||||
}
|
||||
|
||||
public static double Circle(double x, LEaseMode easeMode)
|
||||
{
|
||||
switch (easeMode)
|
||||
{
|
||||
case LEaseMode.EaseIn:
|
||||
return 1.0 - Math.Sqrt(1.0 - Math.Pow(x, 2.0));
|
||||
case LEaseMode.EaseOut:
|
||||
return Math.Sqrt(1.0 - Math.Pow(x - 1.0, 2.0));
|
||||
case LEaseMode.EaseInOut:
|
||||
return (x < 0.5) ? ((1.0 - Math.Sqrt(1.0 - Math.Pow(2.0 * x, 2.0))) / 2.0) : ((Math.Sqrt(1.0 - Math.Pow(-2.0 * x + 2.0, 2.0)) + 1.0) / 2.0);
|
||||
default:
|
||||
return 0.0;
|
||||
}
|
||||
}
|
||||
|
||||
public static double Power(double x, LEaseMode easeMode, int power)
|
||||
{
|
||||
switch (easeMode)
|
||||
{
|
||||
case LEaseMode.EaseIn:
|
||||
return Math.Pow(x, power);
|
||||
case LEaseMode.EaseOut:
|
||||
return 1.0 - Math.Pow(1.0 - x, power);
|
||||
case LEaseMode.EaseInOut:
|
||||
return (x < 0.5) ? (Math.Pow(2.0, power - 1) * Math.Pow(x, power)) : (1.0 - Math.Pow(-2.0 * x + 2.0, power) / 2.0);
|
||||
default:
|
||||
return 0.0;
|
||||
}
|
||||
}
|
||||
|
||||
public static double Quadratic(double x, LEaseMode easeMode)
|
||||
{
|
||||
return Power(x, easeMode, 2);
|
||||
}
|
||||
|
||||
public static double Cubic(double x, LEaseMode easeMode)
|
||||
{
|
||||
return Power(x, easeMode, 3);
|
||||
}
|
||||
|
||||
public static double Quartic(double x, LEaseMode easeMode)
|
||||
{
|
||||
return Power(x, easeMode, 4);
|
||||
}
|
||||
|
||||
public static double Quintic(double x, LEaseMode easeMode)
|
||||
{
|
||||
return Power(x, easeMode, 5);
|
||||
}
|
||||
|
||||
public static double Elastic(double x, LEaseMode easeMode)
|
||||
{
|
||||
switch (easeMode)
|
||||
{
|
||||
case LEaseMode.EaseIn:
|
||||
return (x == 0.0) ? 0.0 : ((x == 1.0) ? 1.0 : ((0.0 - Math.Pow(2.0, 10.0 * x - 10.0)) * Math.Sin((x * 10.0 - 10.75) * 2.0 * Math.PI / 3.0)));
|
||||
case LEaseMode.EaseOut:
|
||||
return (x == 0.0) ? 0.0 : ((x == 1.0) ? 1.0 : (Math.Pow(2.0, -10.0 * x) * Math.Sin((x * 10.0 - 0.75) * 2.0 * Math.PI / 3.0) + 1.0));
|
||||
case LEaseMode.EaseInOut:
|
||||
return (x == 0.0) ? 0.0 : ((x == 1.0) ? 1.0 : ((x < 0.5) ? ((0.0 - Math.Pow(2.0, 20.0 * x - 10.0) * Math.Sin((x * 20.0 - 11.125) * 2.0 * Math.PI / 4.5)) / 2.0) : (Math.Pow(2.0, -20.0 * x + 10.0) * Math.Sin((x * 20.0 - 11.125) * 2.0 * Math.PI / 4.5) / 2.0 + 1.0)));
|
||||
default:
|
||||
return 0.0;
|
||||
}
|
||||
}
|
||||
|
||||
public static double Exponential(double x, LEaseMode easeMode)
|
||||
{
|
||||
switch (easeMode)
|
||||
{
|
||||
case LEaseMode.EaseIn:
|
||||
return (x == 0.0) ? 0.0 : Math.Pow(2.0, 10.0 * x - 10.0);
|
||||
case LEaseMode.EaseOut:
|
||||
return (x == 1.0) ? 1.0 : (1.0 - Math.Pow(2.0, -10.0 * x));
|
||||
case LEaseMode.EaseInOut:
|
||||
return (x == 0.0) ? 0.0 : ((x == 1.0) ? 1.0 : ((x < 0.5) ? (Math.Pow(2.0, 20.0 * x - 10.0) / 2.0) : ((2.0 - Math.Pow(2.0, -20.0 * x + 10.0)) / 2.0)));
|
||||
default:
|
||||
return 0.0;
|
||||
}
|
||||
}
|
||||
|
||||
public static double Sine(double x, LEaseMode easeMode)
|
||||
{
|
||||
switch (easeMode)
|
||||
{
|
||||
case LEaseMode.EaseIn:
|
||||
return 1.0 - Math.Cos(x * Math.PI / 2.0);
|
||||
case LEaseMode.EaseOut:
|
||||
return Math.Sin(x * Math.PI / 2.0);
|
||||
case LEaseMode.EaseInOut:
|
||||
return (0.0 - (Math.Cos(Math.PI * x) - 1.0)) / 2.0;
|
||||
default:
|
||||
return 0.0;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -12,14 +12,26 @@ namespace CleanMachineHMI
|
||||
[ToolboxItem(true)]
|
||||
public class CircleButton : Button//继承按钮类 重新生成解决方案就能看见我啦
|
||||
{
|
||||
|
||||
|
||||
protected override void OnResize(EventArgs e)
|
||||
{
|
||||
|
||||
base.OnResize(e);
|
||||
System.Drawing.Drawing2D.GraphicsPath path = new System.Drawing.Drawing2D.GraphicsPath();
|
||||
|
||||
path.AddEllipse(2, 2, this.Width - 6, this.Height - 6);
|
||||
Region = new Region(path);
|
||||
}
|
||||
|
||||
protected override void OnPaint(PaintEventArgs e)//重新设置控件的形状
|
||||
{
|
||||
base.OnPaint(e);//递归 每次重新都发生此方法,保证其形状为自定义形状
|
||||
System.Drawing.Drawing2D.GraphicsPath path = new System.Drawing.Drawing2D.GraphicsPath();
|
||||
path.AddEllipse(2, 2, this.Width - 6, this.Height - 6);
|
||||
|
||||
|
||||
Graphics g = e.Graphics;
|
||||
g.DrawEllipse(new Pen(Color.White, 0), 2, 2, Width - 6, Height - 6);
|
||||
Region = new Region(path);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
18
CleanMachine.Control/CleanMachine.Control.csproj
Normal file
18
CleanMachine.Control/CleanMachine.Control.csproj
Normal file
@@ -0,0 +1,18 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net472</TargetFramework>
|
||||
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Remove="Properties\**" />
|
||||
<EmbeddedResource Remove="Properties\**" />
|
||||
<None Remove="Properties\**" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
9
CleanMachine.Control/LEaseMode.cs
Normal file
9
CleanMachine.Control/LEaseMode.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace LEase
|
||||
{
|
||||
public enum LEaseMode
|
||||
{
|
||||
EaseIn,
|
||||
EaseOut,
|
||||
EaseInOut
|
||||
}
|
||||
}
|
||||
16
CleanMachine.Control/LEaseType.cs
Normal file
16
CleanMachine.Control/LEaseType.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
namespace LEase
|
||||
{
|
||||
public enum LEaseType
|
||||
{
|
||||
Back,
|
||||
Bounce,
|
||||
Circle,
|
||||
Quadratic,
|
||||
Cubic,
|
||||
Quartic,
|
||||
Quintic,
|
||||
Elastic,
|
||||
Exponential,
|
||||
Sine
|
||||
}
|
||||
}
|
||||
@@ -186,6 +186,8 @@ namespace CleanMachineHMI
|
||||
|
||||
private void TTimer_Tick(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
|
||||
bool b = (_IsOpen?(iNow>=0):(iNow<=iDuration));
|
||||
if (b)
|
||||
{
|
||||
@@ -251,7 +253,7 @@ namespace CleanMachineHMI
|
||||
protected override void OnPaint(PaintEventArgs e)
|
||||
{
|
||||
base.OnPaint(e);
|
||||
e.Graphics.SmoothingMode = SmoothingMode.HighQuality;
|
||||
// e.Graphics.SmoothingMode = SmoothingMode.HighQuality;
|
||||
|
||||
Pen penBarBack = new Pen(_CloseColor, _BarHight);
|
||||
Pen penBarFore = new Pen(_OpenColor, _BarHight);
|
||||
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; }
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
129
CleanMachine.Model/BaseModel.cs
Normal file
129
CleanMachine.Model/BaseModel.cs
Normal file
@@ -0,0 +1,129 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace CleanMachine.Model
|
||||
{
|
||||
public class BaseModel
|
||||
{
|
||||
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 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;}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
7
CleanMachine.Model/CleanMachine.Model.csproj
Normal file
7
CleanMachine.Model/CleanMachine.Model.csproj
Normal file
@@ -0,0 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard2.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
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; }
|
||||
}
|
||||
}
|
||||
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; }
|
||||
}
|
||||
}
|
||||
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; }
|
||||
|
||||
}
|
||||
}
|
||||
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; }
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
159
CleanMachine.Model/ZBK/WorkingPallet.cs
Normal file
159
CleanMachine.Model/ZBK/WorkingPallet.cs
Normal file
@@ -0,0 +1,159 @@
|
||||
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"Model\\ZBK\\WorkingPallet"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
namespace CleanMachine.Model.ZBK
|
||||
{
|
||||
/// <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/ZBK/WorkingPalletDtl.cs
Normal file
239
CleanMachine.Model/ZBK/WorkingPalletDtl.cs
Normal file
@@ -0,0 +1,239 @@
|
||||
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"Model\\ZBK\\WorkingPalletDtl"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
namespace CleanMachine.Model.ZBK
|
||||
{
|
||||
/// <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,99 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{F7AF907B-5DDC-469F-956C-08C5FD110448}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>CleanMachineHMI.Domain</RootNamespace>
|
||||
<AssemblyName>CleanMachineHMI.Domain</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<Deterministic>true</Deterministic>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\x64\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<LangVersion>7.3</LangVersion>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
|
||||
<OutputPath>bin\x64\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<LangVersion>7.3</LangVersion>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\x86\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<LangVersion>7.3</LangVersion>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
|
||||
<OutputPath>bin\x86\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<LangVersion>7.3</LangVersion>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<TargetFramework>netstandard1.3</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Reference Include="ComponentFactory.Krypton.Toolkit, Version=4.6.0.0, Culture=neutral, PublicKeyToken=a87e673e9ecb6e8e, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\public\ComponentFactory.Krypton.Toolkit.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Folder Include="Properties\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Enums\EnumFormType.cs" />
|
||||
<Compile Include="Enums\EnumOperateType.cs" />
|
||||
<Compile Include="Models\ViewModels\FormModel.cs" />
|
||||
<Compile Include="Models\ViewModels\UserInfo.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="Models\ConditionModels\" />
|
||||
<Folder Include="Models\ResultModels\" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
|
||||
</Project>
|
||||
@@ -1,10 +1,10 @@
|
||||
using CleanMachineHMI.Domain.Enums;
|
||||
using ComponentFactory.Krypton.Toolkit;
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
|
||||
namespace CleanMachineHMI.Domain.Models.ViewModels
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using ComponentFactory.Krypton.Toolkit;
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
@@ -12,21 +12,21 @@ namespace CleanMachineHMI.Domain.Models.ViewModels
|
||||
/// </summary>
|
||||
public class UserInfo
|
||||
{
|
||||
public int USER_ID { get; set; }
|
||||
public int UserId { get; set; }
|
||||
|
||||
public string USER_CODE { get; set; }
|
||||
public string UserCode { get; set; }
|
||||
|
||||
public string USER_NAME { get; set; }
|
||||
public string UserName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 性别.0:男;1:女。
|
||||
/// </summary>
|
||||
public int GENDER { get; set; }
|
||||
public int Gender { get; set; }
|
||||
|
||||
public string SCHEDULE_CODE { get; set; }
|
||||
public int ROLE_ID { get; set; }
|
||||
public string ScheduleCode { get; set; }
|
||||
public int RoleId { get; set; }
|
||||
|
||||
public int ROLE_GRADE { get; set; }
|
||||
public int RoleGrade { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// 有关程序集的一般信息由以下
|
||||
// 控制。更改这些特性值可修改
|
||||
// 与程序集关联的信息。
|
||||
[assembly: AssemblyTitle("CleanMachineHMI.Domain")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("CleanMachineHMI.Domain")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2020")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// 将 ComVisible 设置为 false 会使此程序集中的类型
|
||||
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
|
||||
//请将此类型的 ComVisible 特性设置为 true。
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
|
||||
[assembly: Guid("f7af907b-5ddc-469f-956c-08c5fd110448")]
|
||||
|
||||
// 程序集的版本信息由下列四个值组成:
|
||||
//
|
||||
// 主版本
|
||||
// 次版本
|
||||
// 生成号
|
||||
// 修订号
|
||||
//
|
||||
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
|
||||
//通过使用 "*",如下所示:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
@@ -1,17 +1,21 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 16
|
||||
VisualStudioVersion = 16.0.30330.147
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.0.32014.148
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CleanMachineHMI", "CleanMachineHMI\CleanMachineHMI.csproj", "{9CF77369-B471-4476-9F42-779945113EA5}"
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CleanMachineHMI", "CleanMachineHMI\CleanMachineHMI.csproj", "{9CF77369-B471-4476-9F42-779945113EA5}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CleanMachineHMI.Domain", "CleanMachineHMI.Model\CleanMachineHMI.Domain.csproj", "{F7AF907B-5DDC-469F-956C-08C5FD110448}"
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LeadDataBaseUtility", "LeadDataBaseUtility\LeadDataBaseUtility.csproj", "{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LeadDataBaseUtility", "LeadDataBaseUtility\LeadDataBaseUtility.csproj", "{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}"
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NX_LogUtility", "NX_LogUtility\NX_LogUtility.csproj", "{925057D8-7EE8-42ED-8AA0-628AF82F10B2}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NX_LogUtility", "NX_LogUtility\NX_LogUtility.csproj", "{925057D8-7EE8-42ED-8AA0-628AF82F10B2}"
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CleanMachine.Control", "CleanMachine.Control\CleanMachine.Control.csproj", "{6891D010-F826-49C9-A087-2717A264BC16}"
|
||||
EndProject
|
||||
Project("{54435603-DBB4-11D2-8724-00A0C9A8B90C}") = "CleanMachineSoftware_Setup", "CleanMachineSoftware_Setup\CleanMachineSoftware_Setup.vdproj", "{497A7E73-E2E8-4134-93CA-8F6A5B72D992}"
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CleanMachine.Model", "CleanMachine.Model\CleanMachine.Model.csproj", "{BC0DA19C-0C89-4D3D-9DEE-1673D465A688}"
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CleanMachine.DAL", "CleanMachine.DAL\CleanMachine.DAL.csproj", "{E3E4D285-F91B-4370-91F2-83E6036610FC}"
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CleanMachine.BLL", "CleanMachine.BLL\CleanMachine.BLL.csproj", "{951A4D28-2428-40C6-8A4D-6E694AF5539A}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
@@ -25,64 +29,94 @@ Global
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{9CF77369-B471-4476-9F42-779945113EA5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{9CF77369-B471-4476-9F42-779945113EA5}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{9CF77369-B471-4476-9F42-779945113EA5}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{9CF77369-B471-4476-9F42-779945113EA5}.Debug|x64.Build.0 = Debug|x64
|
||||
{9CF77369-B471-4476-9F42-779945113EA5}.Debug|x86.ActiveCfg = Debug|x86
|
||||
{9CF77369-B471-4476-9F42-779945113EA5}.Debug|x86.Build.0 = Debug|x86
|
||||
{9CF77369-B471-4476-9F42-779945113EA5}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{9CF77369-B471-4476-9F42-779945113EA5}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{9CF77369-B471-4476-9F42-779945113EA5}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{9CF77369-B471-4476-9F42-779945113EA5}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{9CF77369-B471-4476-9F42-779945113EA5}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{9CF77369-B471-4476-9F42-779945113EA5}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{9CF77369-B471-4476-9F42-779945113EA5}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{9CF77369-B471-4476-9F42-779945113EA5}.Release|x64.Build.0 = Release|Any CPU
|
||||
{9CF77369-B471-4476-9F42-779945113EA5}.Release|x86.ActiveCfg = Release|x86
|
||||
{9CF77369-B471-4476-9F42-779945113EA5}.Release|x86.Build.0 = Release|x86
|
||||
{F7AF907B-5DDC-469F-956C-08C5FD110448}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{F7AF907B-5DDC-469F-956C-08C5FD110448}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{F7AF907B-5DDC-469F-956C-08C5FD110448}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{F7AF907B-5DDC-469F-956C-08C5FD110448}.Debug|x64.Build.0 = Debug|x64
|
||||
{F7AF907B-5DDC-469F-956C-08C5FD110448}.Debug|x86.ActiveCfg = Debug|x86
|
||||
{F7AF907B-5DDC-469F-956C-08C5FD110448}.Debug|x86.Build.0 = Debug|x86
|
||||
{F7AF907B-5DDC-469F-956C-08C5FD110448}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{F7AF907B-5DDC-469F-956C-08C5FD110448}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{F7AF907B-5DDC-469F-956C-08C5FD110448}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{F7AF907B-5DDC-469F-956C-08C5FD110448}.Release|x64.Build.0 = Release|Any CPU
|
||||
{F7AF907B-5DDC-469F-956C-08C5FD110448}.Release|x86.ActiveCfg = Release|x86
|
||||
{F7AF907B-5DDC-469F-956C-08C5FD110448}.Release|x86.Build.0 = Release|x86
|
||||
{9CF77369-B471-4476-9F42-779945113EA5}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{9CF77369-B471-4476-9F42-779945113EA5}.Release|x86.Build.0 = Release|Any CPU
|
||||
{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Debug|x64.Build.0 = Debug|x64
|
||||
{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Debug|x86.ActiveCfg = Debug|x86
|
||||
{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Debug|x86.Build.0 = Debug|x86
|
||||
{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Release|x64.Build.0 = Release|Any CPU
|
||||
{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Release|x86.ActiveCfg = Release|x86
|
||||
{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Release|x86.Build.0 = Release|x86
|
||||
{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Release|x86.Build.0 = Release|Any CPU
|
||||
{925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Debug|x64.Build.0 = Debug|x64
|
||||
{925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Debug|x86.ActiveCfg = Debug|x86
|
||||
{925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Debug|x86.Build.0 = Debug|x86
|
||||
{925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Release|x64.Build.0 = Release|Any CPU
|
||||
{925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Release|x86.ActiveCfg = Release|x86
|
||||
{925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Release|x86.Build.0 = Release|x86
|
||||
{497A7E73-E2E8-4134-93CA-8F6A5B72D992}.Debug|Any CPU.ActiveCfg = Debug
|
||||
{497A7E73-E2E8-4134-93CA-8F6A5B72D992}.Debug|x64.ActiveCfg = Debug
|
||||
{497A7E73-E2E8-4134-93CA-8F6A5B72D992}.Debug|x86.ActiveCfg = Debug
|
||||
{497A7E73-E2E8-4134-93CA-8F6A5B72D992}.Release|Any CPU.ActiveCfg = Release
|
||||
{497A7E73-E2E8-4134-93CA-8F6A5B72D992}.Release|x64.ActiveCfg = Release
|
||||
{497A7E73-E2E8-4134-93CA-8F6A5B72D992}.Release|x86.ActiveCfg = Release
|
||||
{925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Release|x86.Build.0 = Release|Any CPU
|
||||
{6891D010-F826-49C9-A087-2717A264BC16}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{6891D010-F826-49C9-A087-2717A264BC16}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{6891D010-F826-49C9-A087-2717A264BC16}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{6891D010-F826-49C9-A087-2717A264BC16}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{6891D010-F826-49C9-A087-2717A264BC16}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{6891D010-F826-49C9-A087-2717A264BC16}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{6891D010-F826-49C9-A087-2717A264BC16}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{6891D010-F826-49C9-A087-2717A264BC16}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{6891D010-F826-49C9-A087-2717A264BC16}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{6891D010-F826-49C9-A087-2717A264BC16}.Release|x64.Build.0 = Release|Any CPU
|
||||
{6891D010-F826-49C9-A087-2717A264BC16}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{6891D010-F826-49C9-A087-2717A264BC16}.Release|x86.Build.0 = Release|Any CPU
|
||||
{BC0DA19C-0C89-4D3D-9DEE-1673D465A688}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{BC0DA19C-0C89-4D3D-9DEE-1673D465A688}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{BC0DA19C-0C89-4D3D-9DEE-1673D465A688}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{BC0DA19C-0C89-4D3D-9DEE-1673D465A688}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{BC0DA19C-0C89-4D3D-9DEE-1673D465A688}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{BC0DA19C-0C89-4D3D-9DEE-1673D465A688}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{BC0DA19C-0C89-4D3D-9DEE-1673D465A688}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{BC0DA19C-0C89-4D3D-9DEE-1673D465A688}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{BC0DA19C-0C89-4D3D-9DEE-1673D465A688}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{BC0DA19C-0C89-4D3D-9DEE-1673D465A688}.Release|x64.Build.0 = Release|Any CPU
|
||||
{BC0DA19C-0C89-4D3D-9DEE-1673D465A688}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{BC0DA19C-0C89-4D3D-9DEE-1673D465A688}.Release|x86.Build.0 = Release|Any CPU
|
||||
{E3E4D285-F91B-4370-91F2-83E6036610FC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{E3E4D285-F91B-4370-91F2-83E6036610FC}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{E3E4D285-F91B-4370-91F2-83E6036610FC}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{E3E4D285-F91B-4370-91F2-83E6036610FC}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{E3E4D285-F91B-4370-91F2-83E6036610FC}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{E3E4D285-F91B-4370-91F2-83E6036610FC}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{E3E4D285-F91B-4370-91F2-83E6036610FC}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{E3E4D285-F91B-4370-91F2-83E6036610FC}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{E3E4D285-F91B-4370-91F2-83E6036610FC}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{E3E4D285-F91B-4370-91F2-83E6036610FC}.Release|x64.Build.0 = Release|Any CPU
|
||||
{E3E4D285-F91B-4370-91F2-83E6036610FC}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{E3E4D285-F91B-4370-91F2-83E6036610FC}.Release|x86.Build.0 = Release|Any CPU
|
||||
{951A4D28-2428-40C6-8A4D-6E694AF5539A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{951A4D28-2428-40C6-8A4D-6E694AF5539A}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{951A4D28-2428-40C6-8A4D-6E694AF5539A}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{951A4D28-2428-40C6-8A4D-6E694AF5539A}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{951A4D28-2428-40C6-8A4D-6E694AF5539A}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{951A4D28-2428-40C6-8A4D-6E694AF5539A}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{951A4D28-2428-40C6-8A4D-6E694AF5539A}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{951A4D28-2428-40C6-8A4D-6E694AF5539A}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{951A4D28-2428-40C6-8A4D-6E694AF5539A}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{951A4D28-2428-40C6-8A4D-6E694AF5539A}.Release|x64.Build.0 = Release|Any CPU
|
||||
{951A4D28-2428-40C6-8A4D-6E694AF5539A}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{951A4D28-2428-40C6-8A4D-6E694AF5539A}.Release|x86.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
VisualSVNWorkingCopyRoot = .
|
||||
SolutionGuid = {09FA6A17-2C18-418A-81E3-612D52950830}
|
||||
VisualSVNWorkingCopyRoot = .
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
|
||||
@@ -1,34 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<configSections>
|
||||
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
|
||||
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
|
||||
</configSections>
|
||||
<connectionStrings>
|
||||
<add name="NX_CLEAR_MAC_20200915Entities" connectionString="metadata=res://*/Entitys.Model1.csdl|res://*/Entitys.Model1.ssdl|res://*/Entitys.Model1.msl;provider=System.Data.SqlClient;provider connection string="data source=.;initial catalog=NX_CLEAR_MAC_20200915;persist security info=True;user id=sa;password=1q2w3e4r!@;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient" />
|
||||
<add name="CleanMachineHMI.Properties.Settings.NX_CLEAR_MAC_20200915ConnectionString" connectionString="Data Source=.;Initial Catalog=NX_CLEAR_MAC_20200915;Persist Security Info=True;User ID=sa;Password=1q2w3e4r!@" providerName="System.Data.SqlClient" />
|
||||
</connectionStrings>
|
||||
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
|
||||
</startup>
|
||||
<appSettings>
|
||||
|
||||
|
||||
<add key="GlobalPaletteMode" value="Professionaloffice2003" />
|
||||
<!--<add key="LanguageCode" value="Chinese"/>-->
|
||||
<add key="LanguageCode" value="English" />
|
||||
<add key="sqlmapConfigPath" value="Config/sqlmap.config" />
|
||||
<!--MySql数据库连接字符串-->
|
||||
<add key="LeadMySql" value="Data Source = localhost; Port=3306;Initial Catalog = testasrs; Persist Security Info=True;User ID = root; Password=sa1234567;" />
|
||||
<!--SqlServer数据库连接字符串-->
|
||||
<add key="LeadSqlServer" value="Data Source =localhost;Initial Catalog =NX_CLEAR_MAC;User Id = sa;Password =syl.syl503601;" />
|
||||
<!--Oracle数据库连接字符串-->
|
||||
<add key="LeadOracle" value="Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=ORCL)));User Id=LEADASRS; Password=LEADASRS;" />
|
||||
<!--<add key="GlobalPaletteMode" value="Professionaloffice2003"/>-->
|
||||
<add key="LanguageCode" value="zh-CN"/>
|
||||
<!--SQLite数据库连接字符串-->
|
||||
<!--<add key="LeadSQLite" value="Data Source=|DataDirectory|\\clearMac.db;Pooling=true;FailIfMissing=false"/>-->
|
||||
<add key="LeadSQLite" value="Data Source=DataBase/clearMac.db"/>
|
||||
<!--串口名称-->
|
||||
<add key="PortName" value="COM3" />
|
||||
<add key="PortName" value="COM2"/>
|
||||
<!--串口波特率-->
|
||||
<add key="BaudRate" value="9600"/>
|
||||
<!--串口数据位-->
|
||||
@@ -37,6 +22,10 @@
|
||||
<add key="StopBits" value="1"/>
|
||||
<!--奇偶校验。0:无校验;1:奇校验;2:偶校验;-->
|
||||
<add key="ParityMsg" value="2"/>
|
||||
|
||||
<add key="ModbusPattern" value="0" />
|
||||
|
||||
<add key="SlaveAddress" value="1" />
|
||||
<!--托盘序列号前缀-->
|
||||
<add key="PalletIndexPrefix" value="Pallet"/>
|
||||
<!--托盘序列号生成日期-->
|
||||
@@ -49,16 +38,6 @@
|
||||
<add key="LastTimeUserCode" value=""/>
|
||||
<add key="ClientSettingsProvider.ServiceUri" value=""/>
|
||||
</appSettings>
|
||||
<system.web>
|
||||
<membership defaultProvider="ClientAuthenticationMembershipProvider">
|
||||
<providers>
|
||||
<add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" />
|
||||
</providers>
|
||||
</membership>
|
||||
<roleManager defaultProvider="ClientRoleProvider" enabled="true">
|
||||
<providers>
|
||||
<add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400" />
|
||||
</providers>
|
||||
</roleManager>
|
||||
</system.web>
|
||||
|
||||
|
||||
</configuration>
|
||||
@@ -1,665 +1,100 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{9CF77369-B471-4476-9F42-779945113EA5}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<RootNamespace>CleanMachineHMI</RootNamespace>
|
||||
<AssemblyName>CleanMachineHMI</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<Deterministic>true</Deterministic>
|
||||
<TargetFrameworkProfile />
|
||||
<PublishUrl>publish\</PublishUrl>
|
||||
<Install>true</Install>
|
||||
<InstallFrom>Disk</InstallFrom>
|
||||
<UpdateEnabled>false</UpdateEnabled>
|
||||
<UpdateMode>Foreground</UpdateMode>
|
||||
<UpdateInterval>7</UpdateInterval>
|
||||
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
|
||||
<UpdatePeriodically>false</UpdatePeriodically>
|
||||
<UpdateRequired>false</UpdateRequired>
|
||||
<MapFileExtensions>true</MapFileExtensions>
|
||||
<ApplicationRevision>0</ApplicationRevision>
|
||||
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
|
||||
<IsWebBootstrapper>false</IsWebBootstrapper>
|
||||
<UseApplicationTrust>false</UseApplicationTrust>
|
||||
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<ApplicationIcon>Resources\cleaner_128px_1238161_easyicon.net.ico</ApplicationIcon>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\x64\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<LangVersion>7.3</LangVersion>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
|
||||
<OutputPath>bin\x64\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<LangVersion>7.3</LangVersion>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\x86\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<LangVersion>7.3</LangVersion>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
|
||||
<OutputPath>bin\x86\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<LangVersion>7.3</LangVersion>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net472</TargetFramework>
|
||||
|
||||
<UseWindowsForms>true</UseWindowsForms>
|
||||
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Reference Include="ComponentFactory.Krypton.Navigator, Version=4.6.0.0, Culture=neutral, PublicKeyToken=a87e673e9ecb6e8e, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\public\ComponentFactory.Krypton.Navigator.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="ComponentFactory.Krypton.Toolkit, Version=4.6.0.0, Culture=neutral, PublicKeyToken=a87e673e9ecb6e8e, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\public\ComponentFactory.Krypton.Toolkit.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="FastReport, Version=2014.4.8.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<Compile Remove="forms\**" />
|
||||
<EmbeddedResource Remove="forms\**" />
|
||||
<None Remove="forms\**" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Remove="Model\Bas_WarningMd.cs" />
|
||||
<Compile Remove="Model\CleanType.cs" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Krypton.Navigator" Version="60.22.2.32" />
|
||||
<PackageReference Include="Krypton.Toolkit" Version="60.22.2.32" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
|
||||
<PackageReference Include="NModbus" Version="3.0.72" />
|
||||
<PackageReference Include="NModbus.Serial" Version="3.0.72" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\CleanMachine.BLL\CleanMachine.BLL.csproj" />
|
||||
<ProjectReference Include="..\CleanMachine.Control\CleanMachine.Control.csproj" />
|
||||
<ProjectReference Include="..\CleanMachine.Model\CleanMachine.Model.csproj" />
|
||||
<ProjectReference Include="..\LeadDataBaseUtility\LeadDataBaseUtility.csproj" />
|
||||
<ProjectReference Include="..\NX_LogUtility\NX_LogUtility.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Reference Include="FastReport">
|
||||
<HintPath>..\public\FastReport.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="FastReport.Bars, Version=2014.4.8.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\public\FastReport.Bars.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="FastReport.Editor, Version=2014.4.8.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\public\FastReport.Editor.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="FastReport.Install, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\public\FastReport.Install.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="FastReport.Service, Version=2014.4.8.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\public\FastReport.Service.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="FastReport.Web, Version=2014.4.8.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\public\FastReport.Web.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="LEase, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\public\LEase.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.ReportViewer.Common, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.ReportingServices.ReportViewerControl.Winforms.140.1000.523\lib\net40\Microsoft.ReportViewer.Common.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.ReportViewer.DataVisualization, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.ReportingServices.ReportViewerControl.Winforms.140.1000.523\lib\net40\Microsoft.ReportViewer.DataVisualization.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.ReportViewer.Design, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.ReportingServices.ReportViewerControl.Winforms.140.1000.523\lib\net40\Microsoft.ReportViewer.Design.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.ReportViewer.ProcessingObjectModel, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.ReportingServices.ReportViewerControl.Winforms.140.1000.523\lib\net40\Microsoft.ReportViewer.ProcessingObjectModel.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.ReportViewer.WinForms, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.ReportingServices.ReportViewerControl.Winforms.140.1000.523\lib\net40\Microsoft.ReportViewer.WinForms.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.SqlServer.Types, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.SqlServer.Types.14.0.314.76\lib\net40\Microsoft.SqlServer.Types.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.VisualBasic" />
|
||||
<Reference Include="Microsoft.VisualBasic.PowerPacks">
|
||||
<HintPath>..\public\Microsoft.VisualBasic.PowerPacks.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="NModbus4, Version=2.1.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\public\NModbus4.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Configuration" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Design" />
|
||||
<Reference Include="System.Web" />
|
||||
<Reference Include="System.Web.Extensions" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Deployment" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="PresentationCore" />
|
||||
<Reference Include="PresentationFramework" />
|
||||
<Reference Include="System.Management" />
|
||||
<Reference Include="System.Xaml" />
|
||||
<Reference Include="UIAutomationProvider" />
|
||||
<Reference Include="WindowsFormsIntegration" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="frmChild\frmPopupWarningMsg.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="frmChild\frmPopupWarningMsg.Designer.cs">
|
||||
<DependentUpon>frmPopupWarningMsg.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="frmChild\frmSwitchRunDirection.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="frmChild\frmSwitchRunDirection.Designer.cs">
|
||||
<DependentUpon>frmSwitchRunDirection.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="frmIoMonitorNew.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="frmIoMonitorNew.Designer.cs">
|
||||
<DependentUpon>frmIoMonitorNew.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="FrmUserControl\frmMainDetail.cs">
|
||||
<Compile Update="FrmUserControl\frmOperatorReport.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FrmUserControl\frmMainDetail.Designer.cs">
|
||||
<DependentUpon>frmMainDetail.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="FrmUserControl\frmMaintenance.cs">
|
||||
<Compile Update="FrmUserControl\frmIOMonitorAuto.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FrmUserControl\frmMaintenance.Designer.cs">
|
||||
<DependentUpon>frmMaintenance.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="FrmUserControl\frmMechineCheck.cs">
|
||||
<Compile Update="FrmUserControl\frmMainDetailNew.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FrmUserControl\frmMechineCheck.Designer.cs">
|
||||
<DependentUpon>frmMechineCheck.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="FrmUserControl\frmPrinterMain.cs">
|
||||
<Compile Update="FrmUserControl\frmDayReport.cs" />
|
||||
<Compile Update="FrmUserControl\frmShiftCountRecord.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FrmUserControl\frmPrinterMain.Designer.cs">
|
||||
<DependentUpon>frmPrinterMain.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="FrmUserControl\frmPlcItemConfig.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FrmUserControl\frmPlcItemConfig.Designer.cs">
|
||||
<DependentUpon>frmPlcItemConfig.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="FrmUserControl\frmPlcAlarmLog.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FrmUserControl\frmPlcAlarmLog.Designer.cs">
|
||||
<DependentUpon>frmPlcAlarmLog.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="FrmUserControl\frmManual.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FrmUserControl\frmManual.Designer.cs">
|
||||
<DependentUpon>frmManual.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="FrmUserControl\frmIOMonitor.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FrmUserControl\frmIOMonitor.Designer.cs">
|
||||
<DependentUpon>frmIOMonitor.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="FrmUserControl\frmCurrWorkingIrMsg.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FrmUserControl\frmCurrWorkingIrMsg.Designer.cs">
|
||||
<DependentUpon>frmCurrWorkingIrMsg.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="FrmUserControl\Base\frmCleanMode.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FrmUserControl\Base\frmCleanMode.Designer.cs">
|
||||
<DependentUpon>frmCleanMode.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="FrmUserControl\Base\frmContaminationDTL.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FrmUserControl\Base\frmContaminationDTL.Designer.cs">
|
||||
<DependentUpon>frmContaminationDTL.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="FrmUserControl\Base\frmContaminationType.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FrmUserControl\Base\frmContaminationType.Designer.cs">
|
||||
<DependentUpon>frmContaminationType.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="FrmUserControl\frmParamater.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FrmUserControl\frmParamater.Designer.cs">
|
||||
<DependentUpon>frmParamater.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="FrmUserControl\Base\frmRole.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FrmUserControl\Base\frmRole.Designer.cs">
|
||||
<DependentUpon>frmRole.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="FrmUserControl\Base\frmSheetType.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FrmUserControl\Base\frmSheetType.Designer.cs">
|
||||
<DependentUpon>frmSheetType.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="FrmUserControl\Base\frmUser.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FrmUserControl\Base\frmUser.Designer.cs">
|
||||
<DependentUpon>frmUser.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="FrmUserControl\Base\frmWarning.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FrmUserControl\Base\frmWarning.Designer.cs">
|
||||
<DependentUpon>frmWarning.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Utils\GlobalHelper.cs" />
|
||||
<Compile Include="Model\BasCleanTypeMsg.cs" />
|
||||
<Compile Include="Model\BasPlcItemMd.cs" />
|
||||
<Compile Include="Model\Bas_WarningMd.cs" />
|
||||
<Compile Include="Utils\CircleButton.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Model\CM_WarningLogMd.cs" />
|
||||
<Compile Include="frmSysExitAlarm.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="frmSysExitAlarm.Designer.cs">
|
||||
<DependentUpon>frmSysExitAlarm.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Form2.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Form2.Designer.cs">
|
||||
<DependentUpon>Form2.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="frmChild\frmAddRole.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="frmChild\frmAddRole.Designer.cs">
|
||||
<DependentUpon>frmAddRole.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="frmChild\frmEditRole.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="frmChild\frmEditRole.Designer.cs">
|
||||
<DependentUpon>frmEditRole.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="frmChild\frmEditWorkingPalletData.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="frmChild\frmEditWorkingPalletData.Designer.cs">
|
||||
<DependentUpon>frmEditWorkingPalletData.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="frmChild\frmSetRoleMenuPermission.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="frmChild\frmSetRoleMenuPermission.Designer.cs">
|
||||
<DependentUpon>frmSetRoleMenuPermission.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="frmBase.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="frmBase.Designer.cs">
|
||||
<DependentUpon>frmBase.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="frmChild\frmAddCleanCode.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="frmChild\frmAddCleanCode.Designer.cs">
|
||||
<DependentUpon>frmAddCleanCode.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="frmChild\frmEditCleanCode.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="frmChild\frmEditCleanCode.Designer.cs">
|
||||
<DependentUpon>frmEditCleanCode.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="frmChild\frmAddContaminationType.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="frmChild\frmAddContaminationType.Designer.cs">
|
||||
<DependentUpon>frmAddContaminationType.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="frmChild\frmEditContaminationType.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="frmChild\frmEditContaminationType.Designer.cs">
|
||||
<DependentUpon>frmEditContaminationType.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="frmChild\frmAddContaminationDtl.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="frmChild\frmAddContaminationDtl.Designer.cs">
|
||||
<DependentUpon>frmAddContaminationDtl.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="frmChild\frmEditContaminationDtl.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="frmChild\frmEditContaminationDtl.Designer.cs">
|
||||
<DependentUpon>frmEditContaminationDtl.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="frmChild\frmAddWaringMsg.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="frmChild\frmAddWaringMsg.Designer.cs">
|
||||
<DependentUpon>frmAddWaringMsg.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="frmChild\frmEditParamater.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="frmChild\frmEditParamater.Designer.cs">
|
||||
<DependentUpon>frmEditParamater.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="frmChild\frmEditWaringMsg.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="frmChild\frmEditWaringMsg.Designer.cs">
|
||||
<DependentUpon>frmEditWaringMsg.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="frmChild\frmAddSheetType.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="frmChild\frmAddSheetType.Designer.cs">
|
||||
<DependentUpon>frmAddSheetType.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="frmChild\frmEditSheetType.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="frmChild\frmEditSheetType.Designer.cs">
|
||||
<DependentUpon>frmEditSheetType.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="frmChild\frmEditUser.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="frmChild\frmEditUser.Designer.cs">
|
||||
<DependentUpon>frmEditUser.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="frmChild\frmAddPlcItem.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="frmChild\frmAddPlcItem.Designer.cs">
|
||||
<DependentUpon>frmAddPlcItem.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="frmChild\frmAddUser.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="frmChild\frmAddUser.Designer.cs">
|
||||
<DependentUpon>frmAddUser.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="frmChild\frmEditPlcItem.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="frmChild\frmEditPlcItem.Designer.cs">
|
||||
<DependentUpon>frmEditPlcItem.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="frmIOMonitor_Old.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="frmIOMonitor_Old.Designer.cs">
|
||||
<DependentUpon>frmIOMonitor_Old.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="frmLogin.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="frmLogin.Designer.cs">
|
||||
<DependentUpon>frmLogin.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="frmMainNew.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="frmMainNew.Designer.cs">
|
||||
<DependentUpon>frmMainNew.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Utils\LEnum.cs" />
|
||||
<Compile Include="Utils\LEventArgs.cs" />
|
||||
<Compile Include="Utils\LSwitchButton.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Utils\PlcOperationHelper.cs" />
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Utils\KeyboardAutoPopUp.cs" />
|
||||
<Compile Include="Utils\AppConfigHelper.cs" />
|
||||
<Compile Include="Utils\FormTypeAttribute.cs" />
|
||||
<Compile Include="Utils\frmUtil.cs" />
|
||||
<EmbeddedResource Include="frmChild\frmPopupWarningMsg.resx">
|
||||
<DependentUpon>frmPopupWarningMsg.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="frmChild\frmSwitchRunDirection.resx">
|
||||
<DependentUpon>frmSwitchRunDirection.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="frmIoMonitorNew.resx">
|
||||
<DependentUpon>frmIoMonitorNew.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="frmSysExitAlarm.resx">
|
||||
<DependentUpon>frmSysExitAlarm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Form2.resx">
|
||||
<DependentUpon>Form2.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="frmChild\frmAddRole.resx">
|
||||
<DependentUpon>frmAddRole.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="frmChild\frmEditRole.resx">
|
||||
<DependentUpon>frmEditRole.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="frmChild\frmEditWorkingPalletData.resx">
|
||||
<DependentUpon>frmEditWorkingPalletData.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="frmChild\frmSetRoleMenuPermission.resx">
|
||||
<DependentUpon>frmSetRoleMenuPermission.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="frmChild\frmAddCleanCode.resx">
|
||||
<DependentUpon>frmAddCleanCode.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="frmChild\frmAddContaminationDtl.resx">
|
||||
<DependentUpon>frmAddContaminationDtl.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="frmChild\frmAddContaminationType.resx">
|
||||
<DependentUpon>frmAddContaminationType.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="frmChild\frmAddWaringMsg.resx">
|
||||
<DependentUpon>frmAddWaringMsg.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="frmChild\frmEditCleanCode.resx">
|
||||
<DependentUpon>frmEditCleanCode.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="frmChild\frmEditContaminationDtl.resx">
|
||||
<DependentUpon>frmEditContaminationDtl.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="frmChild\frmEditContaminationType.resx">
|
||||
<DependentUpon>frmEditContaminationType.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="frmChild\frmEditParamater.resx">
|
||||
<DependentUpon>frmEditParamater.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="frmChild\frmEditWaringMsg.resx">
|
||||
<DependentUpon>frmEditWaringMsg.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="frmChild\frmAddSheetType.resx">
|
||||
<DependentUpon>frmAddSheetType.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="frmChild\frmAddUser.resx">
|
||||
<DependentUpon>frmAddUser.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="frmChild\frmEditSheetType.resx">
|
||||
<DependentUpon>frmEditSheetType.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="frmChild\frmEditUser.resx">
|
||||
<DependentUpon>frmEditUser.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="frmIOMonitor_Old.resx">
|
||||
<DependentUpon>frmIOMonitor_Old.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="frmLogin.resx">
|
||||
<DependentUpon>frmLogin.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="frmMainNew.resx">
|
||||
<DependentUpon>frmMainNew.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="frmBase.resx">
|
||||
<DependentUpon>frmBase.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="frmChild\frmAddPlcItem.resx">
|
||||
<DependentUpon>frmAddPlcItem.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="frmChild\frmEditPlcItem.resx">
|
||||
<DependentUpon>frmEditPlcItem.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="FrmUserControl\Base\frmCleanMode.resx">
|
||||
<DependentUpon>frmCleanMode.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="FrmUserControl\Base\frmContaminationDTL.resx">
|
||||
<DependentUpon>frmContaminationDTL.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="FrmUserControl\Base\frmContaminationType.resx">
|
||||
<DependentUpon>frmContaminationType.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="FrmUserControl\Base\frmRole.resx">
|
||||
<DependentUpon>frmRole.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="FrmUserControl\Base\frmSheetType.resx">
|
||||
<DependentUpon>frmSheetType.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="FrmUserControl\Base\frmUser.resx">
|
||||
<DependentUpon>frmUser.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="FrmUserControl\Base\frmWarning.resx">
|
||||
<DependentUpon>frmWarning.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="FrmUserControl\frmCurrWorkingIrMsg.resx">
|
||||
<DependentUpon>frmCurrWorkingIrMsg.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="FrmUserControl\frmIOMonitor.resx">
|
||||
<DependentUpon>frmIOMonitor.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="FrmUserControl\frmMainDetail.resx">
|
||||
<DependentUpon>frmMainDetail.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="FrmUserControl\frmMaintenance.resx">
|
||||
<DependentUpon>frmMaintenance.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="FrmUserControl\frmManual.resx">
|
||||
<DependentUpon>frmManual.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="FrmUserControl\frmMechineCheck.resx">
|
||||
<DependentUpon>frmMechineCheck.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="FrmUserControl\frmParamater.resx">
|
||||
<DependentUpon>frmParamater.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="FrmUserControl\frmPlcAlarmLog.resx">
|
||||
<DependentUpon>frmPlcAlarmLog.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="FrmUserControl\frmPlcItemConfig.resx">
|
||||
<DependentUpon>frmPlcItemConfig.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="FrmUserControl\frmPrinterMain.resx">
|
||||
<DependentUpon>frmPrinterMain.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<Compile Include="Properties\Resources.Designer.cs">
|
||||
<Compile Update="Properties\Settings.Designer.cs">
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
</Compile>
|
||||
<None Include="App.config" />
|
||||
<None Include="DataBase\clearMac.db">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Update="DataBase\clearMac.db">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Include="packages.config" />
|
||||
<None Include="Properties\Settings.settings">
|
||||
<None Update="Lang\en-US.json">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Update="Lang\zh-CN.json">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Update="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<Compile Include="Properties\Settings.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
</Compile>
|
||||
<None Include="ReportMd\CleanMac_IRMsg_PrintMd.frd">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
<None Update="ReportMd\CleanMac_IRMsg_PrintMd.frd">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Include="ReportMd\CleanMac_IRMsg_PrintMd.frx">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
<None Update="ReportMd\CleanMac_IRMsg_PrintMd.frx">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Update="ReportMd\operatorReport.frx">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Content Include="Resources\cleaner_128px_1238161_easyicon.net.ico" />
|
||||
<Content Include="Resources\cleaning_spray.ico" />
|
||||
<Content Include="Resources\favicon.ico" />
|
||||
<Content Include="Resources\add.png" />
|
||||
<Content Include="Resources\conn.png" />
|
||||
<None Include="Resources\上升.png" />
|
||||
<None Include="Resources\下降.png" />
|
||||
<None Include="Resources\下降_1.png" />
|
||||
<None Include="Resources\上升_1.png" />
|
||||
<Content Include="Resources\客情维护.png" />
|
||||
<Content Include="Resources\报警 %281%29.png" />
|
||||
<Folder Include="Model\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<WCFMetadata Include="Connected Services\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\CleanMachineHMI.Model\CleanMachineHMI.Domain.csproj">
|
||||
<Project>{f7af907b-5ddc-469f-956c-08c5fd110448}</Project>
|
||||
<Name>CleanMachineHMI.Domain</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\LeadDataBaseUtility\LeadDataBaseUtility.csproj">
|
||||
<Project>{824348a6-ffff-4c1b-bbf5-8b507a8c8ce5}</Project>
|
||||
<Name>LeadDataBaseUtility</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\NX_LogUtility\NX_LogUtility.csproj">
|
||||
<Project>{925057d8-7ee8-42ed-8aa0-628af82f10b2}</Project>
|
||||
<Name>NX_LogUtility</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 3.5 SP1</ProductName>
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
|
||||
</Project>
|
||||
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user