Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5ca18b0b3f |
@@ -1,91 +0,0 @@
|
|||||||
|
|
||||||
//模板信息:{"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);
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,91 +0,0 @@
|
|||||||
|
|
||||||
//模板信息:{"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);
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,91 +0,0 @@
|
|||||||
|
|
||||||
//模板信息:{"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);
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,91 +0,0 @@
|
|||||||
|
|
||||||
//模板信息:{"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);
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,91 +0,0 @@
|
|||||||
|
|
||||||
//模板信息:{"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);
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,91 +0,0 @@
|
|||||||
|
|
||||||
//模板信息:{"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);
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,90 +0,0 @@
|
|||||||
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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,305 +0,0 @@
|
|||||||
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;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,92 +0,0 @@
|
|||||||
|
|
||||||
//模板信息:{"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);
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,82 +0,0 @@
|
|||||||
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);
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,91 +0,0 @@
|
|||||||
|
|
||||||
//模板信息:{"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);
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,91 +0,0 @@
|
|||||||
|
|
||||||
//模板信息:{"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);
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,91 +0,0 @@
|
|||||||
|
|
||||||
//模板信息:{"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);
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
<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>
|
|
||||||
@@ -1,91 +0,0 @@
|
|||||||
|
|
||||||
//模板信息:{"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);
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,91 +0,0 @@
|
|||||||
|
|
||||||
//模板信息:{"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);
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,91 +0,0 @@
|
|||||||
|
|
||||||
//模板信息:{"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);
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,91 +0,0 @@
|
|||||||
|
|
||||||
//模板信息:{"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);
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,101 +0,0 @@
|
|||||||
|
|
||||||
//模板信息:{"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);
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,91 +0,0 @@
|
|||||||
|
|
||||||
//模板信息:{"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);
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,101 +0,0 @@
|
|||||||
|
|
||||||
//模板信息:{"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);
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,91 +0,0 @@
|
|||||||
|
|
||||||
//模板信息:{"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);
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,113 +0,0 @@
|
|||||||
|
|
||||||
//模板信息:{"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);
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
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);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,91 +0,0 @@
|
|||||||
|
|
||||||
//模板信息:{"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);
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,91 +0,0 @@
|
|||||||
|
|
||||||
//模板信息:{"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);
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
<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>
|
|
||||||
@@ -1,112 +0,0 @@
|
|||||||
|
|
||||||
//模板信息:{"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);
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,112 +0,0 @@
|
|||||||
|
|
||||||
//模板信息:{"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);
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,112 +0,0 @@
|
|||||||
|
|
||||||
//模板信息:{"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);
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,112 +0,0 @@
|
|||||||
|
|
||||||
//模板信息:{"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);
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,112 +0,0 @@
|
|||||||
|
|
||||||
//模板信息:{"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);
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,112 +0,0 @@
|
|||||||
|
|
||||||
//模板信息:{"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);
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,106 +0,0 @@
|
|||||||
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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,115 +0,0 @@
|
|||||||
|
|
||||||
//模板信息:{"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);
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,96 +0,0 @@
|
|||||||
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
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,112 +0,0 @@
|
|||||||
|
|
||||||
//模板信息:{"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);
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,112 +0,0 @@
|
|||||||
|
|
||||||
//模板信息:{"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);
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,112 +0,0 @@
|
|||||||
|
|
||||||
//模板信息:{"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);
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
<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>
|
|
||||||
@@ -1,112 +0,0 @@
|
|||||||
|
|
||||||
//模板信息:{"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);
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,112 +0,0 @@
|
|||||||
|
|
||||||
//模板信息:{"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);
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,112 +0,0 @@
|
|||||||
|
|
||||||
//模板信息:{"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);
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,112 +0,0 @@
|
|||||||
|
|
||||||
//模板信息:{"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);
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,127 +0,0 @@
|
|||||||
|
|
||||||
//模板信息:{"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);
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,112 +0,0 @@
|
|||||||
|
|
||||||
//模板信息:{"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);
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,112 +0,0 @@
|
|||||||
|
|
||||||
//模板信息:{"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);
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,112 +0,0 @@
|
|||||||
|
|
||||||
//模板信息:{"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);
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,139 +0,0 @@
|
|||||||
|
|
||||||
//模板信息:{"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);
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,72 +0,0 @@
|
|||||||
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);
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,112 +0,0 @@
|
|||||||
|
|
||||||
//模板信息:{"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);
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,112 +0,0 @@
|
|||||||
|
|
||||||
//模板信息:{"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);
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,169 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
//模板信息:{"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;}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
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; }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,179 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
//模板信息:{"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;}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,179 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
//模板信息:{"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;}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,239 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
//模板信息:{"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;}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,169 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
//模板信息:{"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;}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,219 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
//模板信息:{"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; }
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,129 +0,0 @@
|
|||||||
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; }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
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; }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,39 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
//模板信息:{"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;}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,39 +0,0 @@
|
|||||||
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; }
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,219 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
//模板信息:{"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;}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,159 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
//模板信息:{"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;}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,239 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
//模板信息:{"Template":{"Language":"C#"}}
|
|
||||||
//输出信息:{"Extension":".cs","FileName":"Model\\CM\\WorkingPalletDtl"}
|
|
||||||
using System;
|
|
||||||
using System.Text;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
namespace CleanMachine.Model.CM
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public class WorkingPalletDtl
|
|
||||||
{
|
|
||||||
|
|
||||||
private int workingPalletDtlId;
|
|
||||||
private string workingPalletCode;
|
|
||||||
private string irCode;
|
|
||||||
private string sheetTypeCode;
|
|
||||||
private DateTime inputTime;
|
|
||||||
private string cleanModeCode;
|
|
||||||
private string contaminationTypeCode;
|
|
||||||
private string contaminationDtlCode;
|
|
||||||
private int currentNumber;
|
|
||||||
private int operateUserId;
|
|
||||||
private DateTime operateUserTime;
|
|
||||||
private int workingDtlStatus;
|
|
||||||
private int createBy;
|
|
||||||
private DateTime createTime;
|
|
||||||
private int updateBy;
|
|
||||||
private DateTime updateTime;
|
|
||||||
private int dataVersion;
|
|
||||||
private string remarks1;
|
|
||||||
private string remarks2;
|
|
||||||
private string remarks3;
|
|
||||||
private string remarks4;
|
|
||||||
private string remarks5;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public int WorkingPalletDtlId
|
|
||||||
{
|
|
||||||
get { return this.workingPalletDtlId; }
|
|
||||||
set { this.workingPalletDtlId=value;}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public string WorkingPalletCode
|
|
||||||
{
|
|
||||||
get { return this.workingPalletCode; }
|
|
||||||
set { this.workingPalletCode=value;}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public string IrCode
|
|
||||||
{
|
|
||||||
get { return this.irCode; }
|
|
||||||
set { this.irCode=value;}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public string SheetTypeCode
|
|
||||||
{
|
|
||||||
get { return this.sheetTypeCode; }
|
|
||||||
set { this.sheetTypeCode=value;}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public DateTime InputTime
|
|
||||||
{
|
|
||||||
get { return this.inputTime; }
|
|
||||||
set { this.inputTime=value;}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public string CleanModeCode
|
|
||||||
{
|
|
||||||
get { return this.cleanModeCode; }
|
|
||||||
set { this.cleanModeCode=value;}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public string ContaminationTypeCode
|
|
||||||
{
|
|
||||||
get { return this.contaminationTypeCode; }
|
|
||||||
set { this.contaminationTypeCode=value;}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public string ContaminationDtlCode
|
|
||||||
{
|
|
||||||
get { return this.contaminationDtlCode; }
|
|
||||||
set { this.contaminationDtlCode=value;}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public int CurrentNumber
|
|
||||||
{
|
|
||||||
get { return this.currentNumber; }
|
|
||||||
set { this.currentNumber=value;}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public int OperateUserId
|
|
||||||
{
|
|
||||||
get { return this.operateUserId; }
|
|
||||||
set { this.operateUserId=value;}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public DateTime OperateUserTime
|
|
||||||
{
|
|
||||||
get { return this.operateUserTime; }
|
|
||||||
set { this.operateUserTime=value;}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public int WorkingDtlStatus
|
|
||||||
{
|
|
||||||
get { return this.workingDtlStatus; }
|
|
||||||
set { this.workingDtlStatus=value;}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public int CreateBy
|
|
||||||
{
|
|
||||||
get { return this.createBy; }
|
|
||||||
set { this.createBy=value;}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public DateTime CreateTime
|
|
||||||
{
|
|
||||||
get { return this.createTime; }
|
|
||||||
set { this.createTime=value;}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public int UpdateBy
|
|
||||||
{
|
|
||||||
get { return this.updateBy; }
|
|
||||||
set { this.updateBy=value;}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public DateTime UpdateTime
|
|
||||||
{
|
|
||||||
get { return this.updateTime; }
|
|
||||||
set { this.updateTime=value;}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public int DataVersion
|
|
||||||
{
|
|
||||||
get { return this.dataVersion; }
|
|
||||||
set { this.dataVersion=value;}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public string Remarks1
|
|
||||||
{
|
|
||||||
get { return this.remarks1; }
|
|
||||||
set { this.remarks1=value;}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public string Remarks2
|
|
||||||
{
|
|
||||||
get { return this.remarks2; }
|
|
||||||
set { this.remarks2=value;}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public string Remarks3
|
|
||||||
{
|
|
||||||
get { return this.remarks3; }
|
|
||||||
set { this.remarks3=value;}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public string Remarks4
|
|
||||||
{
|
|
||||||
get { return this.remarks4; }
|
|
||||||
set { this.remarks4=value;}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public string Remarks5
|
|
||||||
{
|
|
||||||
get { return this.remarks5; }
|
|
||||||
set { this.remarks5=value;}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
|
||||||
|
|
||||||
<PropertyGroup>
|
|
||||||
<TargetFramework>netstandard2.0</TargetFramework>
|
|
||||||
</PropertyGroup>
|
|
||||||
|
|
||||||
</Project>
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
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,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
using CleanMachineHMI.Domain.Enums;
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
|
|
||||||
namespace CleanMachineHMI.Domain.Models.ViewModels
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// 窗体模型
|
|
||||||
/// </summary>
|
|
||||||
public class FormModel<T> where T : Type
|
|
||||||
{
|
|
||||||
public T Form { get; set; }
|
|
||||||
|
|
||||||
public EnumFormType FormType { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,169 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
//模板信息:{"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;}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,199 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
//模板信息:{"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;}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,169 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
//模板信息:{"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;}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,199 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
//模板信息:{"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;}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,189 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
//模板信息:{"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;}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,182 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
//模板信息:{"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;}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,162 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
//模板信息:{"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; }
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,189 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
//模板信息:{"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;}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,210 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
//模板信息:{"Template":{"Language":"C#"}}
|
|
||||||
//输出信息:{"Extension":".cs","FileName":"Model\\SYS\\User"}
|
|
||||||
using System;
|
|
||||||
using System.Text;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
namespace CleanMachine.Model.SYS
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public class User
|
|
||||||
{
|
|
||||||
|
|
||||||
private int userId;
|
|
||||||
private string userCode;
|
|
||||||
private string userName;
|
|
||||||
private string password;
|
|
||||||
private int gender;
|
|
||||||
private int roleId;
|
|
||||||
private string scheduleCode;
|
|
||||||
private int usedFlag;
|
|
||||||
private int delFlag;
|
|
||||||
private int createBy;
|
|
||||||
private DateTime createTime;
|
|
||||||
private int updateBy;
|
|
||||||
private DateTime updateTime;
|
|
||||||
private int dataVersion;
|
|
||||||
private string remarks1;
|
|
||||||
private string remarks2;
|
|
||||||
private string remarks3;
|
|
||||||
private string remarks4;
|
|
||||||
private string remarks5;
|
|
||||||
private int _roleGrade;
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public int UserId
|
|
||||||
{
|
|
||||||
get { return this.userId; }
|
|
||||||
set { this.userId=value;}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public string UserCode
|
|
||||||
{
|
|
||||||
get { return this.userCode; }
|
|
||||||
set { this.userCode=value;}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public string UserName
|
|
||||||
{
|
|
||||||
get { return this.userName; }
|
|
||||||
set { this.userName=value;}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public string Password
|
|
||||||
{
|
|
||||||
get { return this.password; }
|
|
||||||
set { this.password=value;}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public int Gender
|
|
||||||
{
|
|
||||||
get { return this.gender; }
|
|
||||||
set { this.gender=value;}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public int RoleId
|
|
||||||
{
|
|
||||||
get { return this.roleId; }
|
|
||||||
set { this.roleId=value;}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public string ScheduleCode
|
|
||||||
{
|
|
||||||
get { return this.scheduleCode; }
|
|
||||||
set { this.scheduleCode=value;}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public int UsedFlag
|
|
||||||
{
|
|
||||||
get { return this.usedFlag; }
|
|
||||||
set { this.usedFlag=value;}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public int DelFlag
|
|
||||||
{
|
|
||||||
get { return this.delFlag; }
|
|
||||||
set { this.delFlag=value;}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public int CreateBy
|
|
||||||
{
|
|
||||||
get { return this.createBy; }
|
|
||||||
set { this.createBy=value;}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public DateTime CreateTime
|
|
||||||
{
|
|
||||||
get { return this.createTime; }
|
|
||||||
set { this.createTime=value;}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public int UpdateBy
|
|
||||||
{
|
|
||||||
get { return this.updateBy; }
|
|
||||||
set { this.updateBy=value;}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public DateTime UpdateTime
|
|
||||||
{
|
|
||||||
get { return this.updateTime; }
|
|
||||||
set { this.updateTime=value;}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public int DataVersion
|
|
||||||
{
|
|
||||||
get { return this.dataVersion; }
|
|
||||||
set { this.dataVersion=value;}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public string Remarks1
|
|
||||||
{
|
|
||||||
get { return this.remarks1; }
|
|
||||||
set { this.remarks1=value;}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public string Remarks2
|
|
||||||
{
|
|
||||||
get { return this.remarks2; }
|
|
||||||
set { this.remarks2=value;}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public string Remarks3
|
|
||||||
{
|
|
||||||
get { return this.remarks3; }
|
|
||||||
set { this.remarks3=value;}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public string Remarks4
|
|
||||||
{
|
|
||||||
get { return this.remarks4; }
|
|
||||||
set { this.remarks4=value;}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// </summary>
|
|
||||||
public string Remarks5
|
|
||||||
{
|
|
||||||
get { return this.remarks5; }
|
|
||||||
set { this.remarks5=value;}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int RoleGrade { get => _roleGrade; set => _roleGrade = value; }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace CleanMachineHMI.Domain.Models.ViewModels
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// 用户信息
|
|
||||||
/// </summary>
|
|
||||||
public class UserInfo
|
|
||||||
{
|
|
||||||
public int UserId { get; set; }
|
|
||||||
|
|
||||||
public string UserCode { get; set; }
|
|
||||||
|
|
||||||
public string UserName { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 性别.0:男;1:女。
|
|
||||||
/// </summary>
|
|
||||||
public int Gender { get; set; }
|
|
||||||
|
|
||||||
public string ScheduleCode { get; set; }
|
|
||||||
public int RoleId { get; set; }
|
|
||||||
|
|
||||||
public int RoleGrade { get; set; }
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
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; }
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
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; }
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,159 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
//模板信息:{"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;}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,239 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
//模板信息:{"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,11 +1,99 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<?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')" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>netstandard1.3</TargetFramework>
|
<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.6</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>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Folder Include="Properties\" />
|
<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" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
</Project>
|
<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 CleanMachineHMI.Domain.Enums;
|
||||||
|
using ComponentFactory.Krypton.Toolkit;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
|
||||||
namespace CleanMachineHMI.Domain.Models.ViewModels
|
namespace CleanMachineHMI.Domain.Models.ViewModels
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
|
using ComponentFactory.Krypton.Toolkit;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
@@ -12,21 +12,21 @@ namespace CleanMachineHMI.Domain.Models.ViewModels
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public class UserInfo
|
public class UserInfo
|
||||||
{
|
{
|
||||||
public int UserId { get; set; }
|
public int USER_ID { get; set; }
|
||||||
|
|
||||||
public string UserCode { get; set; }
|
public string USER_CODE { get; set; }
|
||||||
|
|
||||||
public string UserName { get; set; }
|
public string USER_NAME { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 性别.0:男;1:女。
|
/// 性别.0:男;1:女。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int Gender { get; set; }
|
public int GENDER { get; set; }
|
||||||
|
|
||||||
public string ScheduleCode { get; set; }
|
public string SCHEDULE_CODE { get; set; }
|
||||||
public int RoleId { get; set; }
|
public int ROLE_ID { get; set; }
|
||||||
|
|
||||||
public int RoleGrade { get; set; }
|
public int ROLE_GRADE { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
36
CleanMachineHMI.Model/Properties/AssemblyInfo.cs
Normal file
36
CleanMachineHMI.Model/Properties/AssemblyInfo.cs
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
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,21 +1,17 @@
|
|||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
# Visual Studio Version 17
|
# Visual Studio Version 16
|
||||||
VisualStudioVersion = 17.0.32014.148
|
VisualStudioVersion = 16.0.30330.147
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CleanMachineHMI", "CleanMachineHMI\CleanMachineHMI.csproj", "{9CF77369-B471-4476-9F42-779945113EA5}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CleanMachineHMI", "CleanMachineHMI\CleanMachineHMI.csproj", "{9CF77369-B471-4476-9F42-779945113EA5}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LeadDataBaseUtility", "LeadDataBaseUtility\LeadDataBaseUtility.csproj", "{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CleanMachineHMI.Domain", "CleanMachineHMI.Model\CleanMachineHMI.Domain.csproj", "{F7AF907B-5DDC-469F-956C-08C5FD110448}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NX_LogUtility", "NX_LogUtility\NX_LogUtility.csproj", "{925057D8-7EE8-42ED-8AA0-628AF82F10B2}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LeadDataBaseUtility", "LeadDataBaseUtility\LeadDataBaseUtility.csproj", "{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CleanMachine.Control", "CleanMachine.Control\CleanMachine.Control.csproj", "{6891D010-F826-49C9-A087-2717A264BC16}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NX_LogUtility", "NX_LogUtility\NX_LogUtility.csproj", "{925057D8-7EE8-42ED-8AA0-628AF82F10B2}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CleanMachine.Model", "CleanMachine.Model\CleanMachine.Model.csproj", "{BC0DA19C-0C89-4D3D-9DEE-1673D465A688}"
|
Project("{54435603-DBB4-11D2-8724-00A0C9A8B90C}") = "CleanMachineSoftware_Setup", "CleanMachineSoftware_Setup\CleanMachineSoftware_Setup.vdproj", "{497A7E73-E2E8-4134-93CA-8F6A5B72D992}"
|
||||||
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
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
@@ -29,94 +25,64 @@ Global
|
|||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
{9CF77369-B471-4476-9F42-779945113EA5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{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|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{9CF77369-B471-4476-9F42-779945113EA5}.Debug|x64.ActiveCfg = Debug|Any CPU
|
{9CF77369-B471-4476-9F42-779945113EA5}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
{9CF77369-B471-4476-9F42-779945113EA5}.Debug|x64.Build.0 = Debug|Any CPU
|
{9CF77369-B471-4476-9F42-779945113EA5}.Debug|x64.Build.0 = Debug|x64
|
||||||
{9CF77369-B471-4476-9F42-779945113EA5}.Debug|x86.ActiveCfg = Debug|Any CPU
|
{9CF77369-B471-4476-9F42-779945113EA5}.Debug|x86.ActiveCfg = Debug|x86
|
||||||
{9CF77369-B471-4476-9F42-779945113EA5}.Debug|x86.Build.0 = Debug|Any CPU
|
{9CF77369-B471-4476-9F42-779945113EA5}.Debug|x86.Build.0 = Debug|x86
|
||||||
{9CF77369-B471-4476-9F42-779945113EA5}.Release|Any CPU.ActiveCfg = Release|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|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.ActiveCfg = Release|Any CPU
|
||||||
{9CF77369-B471-4476-9F42-779945113EA5}.Release|x64.Build.0 = Release|Any CPU
|
{9CF77369-B471-4476-9F42-779945113EA5}.Release|x64.Build.0 = Release|Any CPU
|
||||||
{9CF77369-B471-4476-9F42-779945113EA5}.Release|x86.ActiveCfg = Release|Any CPU
|
{9CF77369-B471-4476-9F42-779945113EA5}.Release|x86.ActiveCfg = Release|x86
|
||||||
{9CF77369-B471-4476-9F42-779945113EA5}.Release|x86.Build.0 = Release|Any CPU
|
{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
|
||||||
{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Debug|Any CPU.ActiveCfg = Debug|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|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Debug|x64.ActiveCfg = Debug|Any CPU
|
{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Debug|x64.Build.0 = Debug|Any CPU
|
{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Debug|x64.Build.0 = Debug|x64
|
||||||
{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Debug|x86.ActiveCfg = Debug|Any CPU
|
{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Debug|x86.ActiveCfg = Debug|x86
|
||||||
{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Debug|x86.Build.0 = Debug|Any CPU
|
{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Debug|x86.Build.0 = Debug|x86
|
||||||
{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Release|Any CPU.ActiveCfg = Release|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|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.ActiveCfg = Release|Any CPU
|
||||||
{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Release|x64.Build.0 = Release|Any CPU
|
{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Release|x64.Build.0 = Release|Any CPU
|
||||||
{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Release|x86.ActiveCfg = Release|Any CPU
|
{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Release|x86.ActiveCfg = Release|x86
|
||||||
{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Release|x86.Build.0 = Release|Any CPU
|
{824348A6-FFFF-4C1B-BBF5-8B507A8C8CE5}.Release|x86.Build.0 = Release|x86
|
||||||
{925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Debug|Any CPU.ActiveCfg = Debug|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|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Debug|x64.ActiveCfg = Debug|Any CPU
|
{925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
{925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Debug|x64.Build.0 = Debug|Any CPU
|
{925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Debug|x64.Build.0 = Debug|x64
|
||||||
{925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Debug|x86.ActiveCfg = Debug|Any CPU
|
{925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Debug|x86.ActiveCfg = Debug|x86
|
||||||
{925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Debug|x86.Build.0 = Debug|Any CPU
|
{925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Debug|x86.Build.0 = Debug|x86
|
||||||
{925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Release|Any CPU.ActiveCfg = Release|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|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.ActiveCfg = Release|Any CPU
|
||||||
{925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Release|x64.Build.0 = Release|Any CPU
|
{925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Release|x64.Build.0 = Release|Any CPU
|
||||||
{925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Release|x86.ActiveCfg = Release|Any CPU
|
{925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Release|x86.ActiveCfg = Release|x86
|
||||||
{925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Release|x86.Build.0 = Release|Any CPU
|
{925057D8-7EE8-42ED-8AA0-628AF82F10B2}.Release|x86.Build.0 = Release|x86
|
||||||
{6891D010-F826-49C9-A087-2717A264BC16}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{497A7E73-E2E8-4134-93CA-8F6A5B72D992}.Debug|Any CPU.ActiveCfg = Debug
|
||||||
{6891D010-F826-49C9-A087-2717A264BC16}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{497A7E73-E2E8-4134-93CA-8F6A5B72D992}.Debug|x64.ActiveCfg = Debug
|
||||||
{6891D010-F826-49C9-A087-2717A264BC16}.Debug|x64.ActiveCfg = Debug|Any CPU
|
{497A7E73-E2E8-4134-93CA-8F6A5B72D992}.Debug|x86.ActiveCfg = Debug
|
||||||
{6891D010-F826-49C9-A087-2717A264BC16}.Debug|x64.Build.0 = Debug|Any CPU
|
{497A7E73-E2E8-4134-93CA-8F6A5B72D992}.Release|Any CPU.ActiveCfg = Release
|
||||||
{6891D010-F826-49C9-A087-2717A264BC16}.Debug|x86.ActiveCfg = Debug|Any CPU
|
{497A7E73-E2E8-4134-93CA-8F6A5B72D992}.Release|x64.ActiveCfg = Release
|
||||||
{6891D010-F826-49C9-A087-2717A264BC16}.Debug|x86.Build.0 = Debug|Any CPU
|
{497A7E73-E2E8-4134-93CA-8F6A5B72D992}.Release|x86.ActiveCfg = Release
|
||||||
{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
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
SolutionGuid = {09FA6A17-2C18-418A-81E3-612D52950830}
|
|
||||||
VisualSVNWorkingCopyRoot = .
|
VisualSVNWorkingCopyRoot = .
|
||||||
|
SolutionGuid = {09FA6A17-2C18-418A-81E3-612D52950830}
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
EndGlobal
|
EndGlobal
|
||||||
|
|||||||
@@ -1,43 +1,64 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<configuration>
|
<configuration>
|
||||||
|
<configSections>
|
||||||
<startup>
|
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
|
||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
|
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/>
|
||||||
</startup>
|
</configSections>
|
||||||
<appSettings>
|
<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"/>
|
||||||
<!--<add key="GlobalPaletteMode" value="Professionaloffice2003"/>-->
|
</connectionStrings>
|
||||||
<add key="LanguageCode" value="zh-CN"/>
|
<startup>
|
||||||
<!--SQLite数据库连接字符串-->
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6"/>
|
||||||
<!--<add key="LeadSQLite" value="Data Source=|DataDirectory|\\clearMac.db;Pooling=true;FailIfMissing=false"/>-->
|
</startup>
|
||||||
<add key="LeadSQLite" value="Data Source=DataBase/clearMac.db"/>
|
<appSettings>
|
||||||
<!--串口名称-->
|
|
||||||
<add key="PortName" value="COM2"/>
|
|
||||||
<!--串口波特率-->
|
<add key="GlobalPaletteMode" value="Professionaloffice2003"/>
|
||||||
<add key="BaudRate" value="9600"/>
|
<!--<add key="LanguageCode" value="Chinese"/>-->
|
||||||
<!--串口数据位-->
|
<add key="LanguageCode" value="English"/>
|
||||||
<add key="DataBits" value="8"/>
|
<add key="sqlmapConfigPath" value="Config/sqlmap.config"/>
|
||||||
<!--停止位。 0:不使用停止位;1:使用一个停止位;2:使用两个停止位;3:使用 1.5 个停止位。-->
|
<!--MySql数据库连接字符串-->
|
||||||
<add key="StopBits" value="1"/>
|
<add key="LeadMySql" value="Data Source = localhost; Port=3306;Initial Catalog = testasrs; Persist Security Info=True;User ID = root; Password=sa1234567;"/>
|
||||||
<!--奇偶校验。0:无校验;1:奇校验;2:偶校验;-->
|
<!--SqlServer数据库连接字符串-->
|
||||||
<add key="ParityMsg" value="2"/>
|
<add key="LeadSqlServer" value="Data Source =localhost;Initial Catalog =NX_CLEAR_MAC;User Id = sa;Password =syl.syl503601;"/>
|
||||||
|
<!--Oracle数据库连接字符串-->
|
||||||
<add key="ModbusPattern" value="0" />
|
<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;"/>
|
||||||
|
<!--SQLite数据库连接字符串-->
|
||||||
<add key="SlaveAddress" value="1" />
|
<!--<add key="LeadSQLite" value="Data Source=|DataDirectory|\\clearMac.db;Pooling=true;FailIfMissing=false"/>-->
|
||||||
<!--托盘序列号前缀-->
|
<add key="LeadSQLite" value="Data Source=DataBase/clearMac.db"/>
|
||||||
<add key="PalletIndexPrefix" value="Pallet"/>
|
<!--串口名称-->
|
||||||
<!--托盘序列号生成日期-->
|
<add key="PortName" value="COM3"/>
|
||||||
<add key="PalletIndexDateMsg" value="20201107"/>
|
<!--串口波特率-->
|
||||||
<!--托盘序列号长度-->
|
<add key="BaudRate" value="9600"/>
|
||||||
<add key="PalletIndexLen" value="6"/>
|
<!--串口数据位-->
|
||||||
<!--当前托盘序列号值-->
|
<add key="DataBits" value="8"/>
|
||||||
<add key="PalletIndexValue" value="1"/>
|
<!--停止位。 0:不使用停止位;1:使用一个停止位;2:使用两个停止位;3:使用 1.5 个停止位。-->
|
||||||
<!--记录上一次登录用户名-->
|
<add key="StopBits" value="1"/>
|
||||||
<add key="LastTimeUserCode" value=""/>
|
<!--奇偶校验。0:无校验;1:奇校验;2:偶校验;-->
|
||||||
<add key="ClientSettingsProvider.ServiceUri" value=""/>
|
<add key="ParityMsg" value="2"/>
|
||||||
</appSettings>
|
<!--托盘序列号前缀-->
|
||||||
|
<add key="PalletIndexPrefix" value="Pallet"/>
|
||||||
|
<!--托盘序列号生成日期-->
|
||||||
|
<add key="PalletIndexDateMsg" value="20201107"/>
|
||||||
|
<!--托盘序列号长度-->
|
||||||
|
<add key="PalletIndexLen" value="6"/>
|
||||||
|
<!--当前托盘序列号值-->
|
||||||
|
<add key="PalletIndexValue" value="1"/>
|
||||||
|
<!--记录上一次登录用户名-->
|
||||||
|
<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>
|
</configuration>
|
||||||
|
|||||||
@@ -1,100 +1,660 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<?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')" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
<TargetFramework>net472</TargetFramework>
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
|
<ProjectGuid>{9CF77369-B471-4476-9F42-779945113EA5}</ProjectGuid>
|
||||||
<UseWindowsForms>true</UseWindowsForms>
|
<OutputType>WinExe</OutputType>
|
||||||
|
<RootNamespace>CleanMachineHMI</RootNamespace>
|
||||||
|
<AssemblyName>CleanMachineHMI</AssemblyName>
|
||||||
|
<TargetFrameworkVersion>v4.6</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>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Remove="forms\**" />
|
<Reference Include="ComponentFactory.Krypton.Navigator, Version=4.6.0.0, Culture=neutral, PublicKeyToken=a87e673e9ecb6e8e, processorArchitecture=MSIL">
|
||||||
<EmbeddedResource Remove="forms\**" />
|
<SpecificVersion>False</SpecificVersion>
|
||||||
<None Remove="forms\**" />
|
<HintPath>..\public\ComponentFactory.Krypton.Navigator.dll</HintPath>
|
||||||
</ItemGroup>
|
</Reference>
|
||||||
|
<Reference Include="ComponentFactory.Krypton.Toolkit, Version=4.6.0.0, Culture=neutral, PublicKeyToken=a87e673e9ecb6e8e, processorArchitecture=MSIL">
|
||||||
<ItemGroup>
|
<SpecificVersion>False</SpecificVersion>
|
||||||
<Compile Remove="Model\Bas_WarningMd.cs" />
|
<HintPath>..\public\ComponentFactory.Krypton.Toolkit.dll</HintPath>
|
||||||
<Compile Remove="Model\CleanType.cs" />
|
</Reference>
|
||||||
</ItemGroup>
|
<Reference Include="FastReport, Version=2014.4.8.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
<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>
|
<HintPath>..\public\FastReport.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="PresentationCore" />
|
<Reference Include="FastReport.Bars, Version=2014.4.8.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
<Reference Include="PresentationFramework" />
|
<SpecificVersion>False</SpecificVersion>
|
||||||
<Reference Include="System.Management" />
|
<HintPath>..\public\FastReport.Bars.dll</HintPath>
|
||||||
<Reference Include="System.Xaml" />
|
</Reference>
|
||||||
<Reference Include="UIAutomationProvider" />
|
<Reference Include="FastReport.Editor, Version=2014.4.8.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
<Reference Include="WindowsFormsIntegration" />
|
<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="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="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" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Update="FrmUserControl\frmOperatorReport.cs">
|
<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">
|
||||||
<SubType>UserControl</SubType>
|
<SubType>UserControl</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Update="FrmUserControl\frmIOMonitorAuto.cs">
|
<Compile Include="FrmUserControl\frmMainDetail.Designer.cs">
|
||||||
|
<DependentUpon>frmMainDetail.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="FrmUserControl\frmMaintenance.cs">
|
||||||
<SubType>UserControl</SubType>
|
<SubType>UserControl</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Update="FrmUserControl\frmMainDetailNew.cs">
|
<Compile Include="FrmUserControl\frmMaintenance.Designer.cs">
|
||||||
|
<DependentUpon>frmMaintenance.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="FrmUserControl\frmMechineCheck.cs">
|
||||||
<SubType>UserControl</SubType>
|
<SubType>UserControl</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Update="FrmUserControl\frmDayReport.cs" />
|
<Compile Include="FrmUserControl\frmMechineCheck.Designer.cs">
|
||||||
<Compile Update="FrmUserControl\frmShiftCountRecord.cs">
|
<DependentUpon>frmMechineCheck.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="FrmUserControl\frmPrinterMain.cs">
|
||||||
<SubType>UserControl</SubType>
|
<SubType>UserControl</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Update="Properties\Settings.Designer.cs">
|
<Compile Include="FrmUserControl\frmPrinterMain.Designer.cs">
|
||||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
<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\AnimateBase.cs" />
|
||||||
|
<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\LEaseMode.cs" />
|
||||||
|
<Compile Include="Utils\LEaseType.cs" />
|
||||||
|
<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">
|
||||||
<AutoGen>True</AutoGen>
|
<AutoGen>True</AutoGen>
|
||||||
<DependentUpon>Settings.settings</DependentUpon>
|
<DependentUpon>Resources.resx</DependentUpon>
|
||||||
|
<DesignTime>True</DesignTime>
|
||||||
</Compile>
|
</Compile>
|
||||||
</ItemGroup>
|
<None Include="App.config" />
|
||||||
|
<None Include="DataBase\clearMac.db">
|
||||||
<ItemGroup>
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
<None Update="DataBase\clearMac.db">
|
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
||||||
</None>
|
</None>
|
||||||
<None Update="Lang\en-US.json">
|
<None Include="packages.config" />
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<None Include="Properties\Settings.settings">
|
||||||
</None>
|
|
||||||
<None Update="Lang\zh-CN.json">
|
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
||||||
</None>
|
|
||||||
<None Update="Properties\Settings.settings">
|
|
||||||
<Generator>SettingsSingleFileGenerator</Generator>
|
<Generator>SettingsSingleFileGenerator</Generator>
|
||||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||||
</None>
|
</None>
|
||||||
<None Update="ReportMd\CleanMac_IRMsg_PrintMd.frd">
|
<Compile Include="Properties\Settings.Designer.cs">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<AutoGen>True</AutoGen>
|
||||||
|
<DependentUpon>Settings.settings</DependentUpon>
|
||||||
|
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||||
|
</Compile>
|
||||||
|
<None Include="ReportMd\CleanMac_IRMsg_PrintMd.frd">
|
||||||
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
</None>
|
</None>
|
||||||
<None Update="ReportMd\CleanMac_IRMsg_PrintMd.frx">
|
<None Include="ReportMd\CleanMac_IRMsg_PrintMd.frx">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
</None>
|
|
||||||
<None Update="ReportMd\operatorReport.frx">
|
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
||||||
</None>
|
</None>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Folder Include="Model\" />
|
<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" />
|
||||||
</ItemGroup>
|
</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>
|
</Project>
|
||||||
Binary file not shown.
@@ -1,239 +0,0 @@
|
|||||||
using CleanMachine.Model.BAS;
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace CleanMachineHMI
|
|
||||||
{
|
|
||||||
public class Device
|
|
||||||
{
|
|
||||||
|
|
||||||
|
|
||||||
public int SysRuningTime
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return (int)PlcOperationHelper.Instance.ReadPlcItem(nameof(SysRuningTime), PlcItemTypeDesc.D);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 毛刷1状态
|
|
||||||
/// </summary>
|
|
||||||
public bool Hairbrush1Selection
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return (bool)PlcOperationHelper.Instance.ReadPlcItem(nameof(Hairbrush1Selection), PlcItemTypeDesc.M);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// 毛刷2状态
|
|
||||||
/// </summary>
|
|
||||||
public bool Hairbrush2Selection
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return (bool)PlcOperationHelper.Instance.ReadPlcItem(nameof(Hairbrush2Selection), PlcItemTypeDesc.M);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// 毛刷3状态
|
|
||||||
/// </summary>
|
|
||||||
public bool Hairbrush3Selection
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return (bool)PlcOperationHelper.Instance.ReadPlcItem(nameof(Hairbrush3Selection), PlcItemTypeDesc.M);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
///
|
|
||||||
/// 静电棒状态
|
|
||||||
/// </summary>
|
|
||||||
public bool StaticbarsSel
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return (bool)PlcOperationHelper.Instance.ReadPlcItem(nameof(StaticbarsSel), PlcItemTypeDesc.M);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 当前计数
|
|
||||||
/// </summary>
|
|
||||||
public int NozzleNum
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return (int)PlcOperationHelper.Instance.ReadPlcItem(nameof(NozzleNum), PlcItemTypeDesc.D);
|
|
||||||
}
|
|
||||||
set
|
|
||||||
{
|
|
||||||
|
|
||||||
PlcOperationHelper.Instance.WritePlcItem(nameof(NozzleNum), value.ToString(), PlcItemTypeDesc.D);
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 班次计数
|
|
||||||
/// </summary>
|
|
||||||
public int ShiftCount
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return (int)PlcOperationHelper.Instance.ReadPlcItem(nameof(ShiftCount), PlcItemTypeDesc.D);
|
|
||||||
}
|
|
||||||
set
|
|
||||||
{
|
|
||||||
|
|
||||||
PlcOperationHelper.Instance.WritePlcItem(nameof(ShiftCount), value.ToString(), PlcItemTypeDesc.D);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
/// <summary>
|
|
||||||
///打印完成 托盘保存完成
|
|
||||||
/// </summary>
|
|
||||||
|
|
||||||
public bool PrintFinish
|
|
||||||
{
|
|
||||||
set
|
|
||||||
{
|
|
||||||
PlcOperationHelper.Instance.WritePlcItem(nameof(PrintFinish), value.ToString(), PlcItemTypeDesc.M);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//if (!Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("StopSys", PlcItemTypeDesc.M))
|
|
||||||
// && !Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("ManualOrAuto", PlcItemTypeDesc.M)))
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 系统是否运行
|
|
||||||
/// </summary>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public bool NextStop
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return (bool)PlcOperationHelper.Instance.ReadPlcItem(nameof(NextStop), PlcItemTypeDesc.M);
|
|
||||||
}
|
|
||||||
|
|
||||||
set
|
|
||||||
{
|
|
||||||
PlcOperationHelper.Instance.WritePlcItem(nameof(NextStop), value.ToString(), PlcItemTypeDesc.M);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public bool StopSys
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return (bool)PlcOperationHelper.Instance.ReadPlcItem(nameof(StopSys), PlcItemTypeDesc.M);
|
|
||||||
}
|
|
||||||
|
|
||||||
set
|
|
||||||
{
|
|
||||||
PlcOperationHelper.Instance.WritePlcItem(nameof(StopSys), value.ToString(), PlcItemTypeDesc.M);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
/// <summary>
|
|
||||||
/// 手动还是自动
|
|
||||||
/// </summary>
|
|
||||||
public bool ManualOrAuto
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return (bool)PlcOperationHelper.Instance.ReadPlcItem(nameof(ManualOrAuto), PlcItemTypeDesc.M);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 运行状态
|
|
||||||
/// </summary>
|
|
||||||
public bool CleanMacRunStatusNew
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return (bool)PlcOperationHelper.Instance.ReadPlcItem(nameof(CleanMacRunStatusNew), PlcItemTypeDesc.M);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 满料信号
|
|
||||||
/// </summary>
|
|
||||||
public bool FinishWorkingPallet
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return (bool)PlcOperationHelper.Instance.ReadPlcItem(nameof(FinishWorkingPallet), PlcItemTypeDesc.M);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 满料方式
|
|
||||||
/// </summary>
|
|
||||||
public bool FullPalletMode
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return (bool)PlcOperationHelper.Instance.ReadPlcItem(nameof(FullPalletMode), PlcItemTypeDesc.M);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 满料数量
|
|
||||||
/// </summary>
|
|
||||||
public int WorkedFullPalletNum
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return (int)PlcOperationHelper.Instance.ReadPlcItem(nameof(WorkedFullPalletNum), PlcItemTypeDesc.D);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 是否强制满料
|
|
||||||
/// </summary>
|
|
||||||
public bool ForceFullPallet
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return (bool)PlcOperationHelper.Instance.ReadPlcItem(nameof(ForceFullPallet), PlcItemTypeDesc.M);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
56
CleanMachineHMI/Form2.Designer.cs
generated
56
CleanMachineHMI/Form2.Designer.cs
generated
@@ -29,28 +29,28 @@
|
|||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
this.components = new System.ComponentModel.Container();
|
this.components = new System.ComponentModel.Container();
|
||||||
this.kryptonNavigator1 = new Krypton.Navigator.KryptonNavigator();
|
this.kryptonNavigator1 = new ComponentFactory.Krypton.Navigator.KryptonNavigator();
|
||||||
this.kryptonButton1 = new Krypton.Toolkit.KryptonButton();
|
this.kryptonButton1 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
|
||||||
this.kryptonButton2 = new Krypton.Toolkit.KryptonButton();
|
this.kryptonButton2 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
|
||||||
this.kryptonButton3 = new Krypton.Toolkit.KryptonButton();
|
this.kryptonButton3 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
|
||||||
this.kryptonButton4 = new Krypton.Toolkit.KryptonButton();
|
this.kryptonButton4 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
|
||||||
this.kryptonButton5 = new Krypton.Toolkit.KryptonButton();
|
this.kryptonButton5 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
|
||||||
this.kryptonButton6 = new Krypton.Toolkit.KryptonButton();
|
this.kryptonButton6 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
|
||||||
this.kryptonButton7 = new Krypton.Toolkit.KryptonButton();
|
this.kryptonButton7 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
|
||||||
this.kryptonButton8 = new Krypton.Toolkit.KryptonButton();
|
this.kryptonButton8 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
|
||||||
this.kryptonButton9 = new Krypton.Toolkit.KryptonButton();
|
this.kryptonButton9 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
|
||||||
this.kryptonButton10 = new Krypton.Toolkit.KryptonButton();
|
this.kryptonButton10 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
|
||||||
this.timer1 = new System.Windows.Forms.Timer(this.components);
|
this.timer1 = new System.Windows.Forms.Timer(this.components);
|
||||||
this.kryptonButton11 = new Krypton.Toolkit.KryptonButton();
|
this.kryptonButton11 = new ComponentFactory.Krypton.Toolkit.KryptonButton();
|
||||||
this.kryptonTextBox1 = new Krypton.Toolkit.KryptonTextBox();
|
this.kryptonTextBox1 = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.kryptonNavigator1)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.kryptonNavigator1)).BeginInit();
|
||||||
this.kryptonNavigator1.SuspendLayout();
|
this.kryptonNavigator1.SuspendLayout();
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
//
|
//
|
||||||
// kryptonNavigator1
|
// kryptonNavigator1
|
||||||
//
|
//
|
||||||
this.kryptonNavigator1.Button.ButtonDisplayLogic = Krypton.Navigator.ButtonDisplayLogic.ContextNextPrevious;
|
this.kryptonNavigator1.Button.ButtonDisplayLogic = ComponentFactory.Krypton.Navigator.ButtonDisplayLogic.ContextNextPrevious;
|
||||||
this.kryptonNavigator1.Button.CloseButtonDisplay = Krypton.Navigator.ButtonDisplay.Hide;
|
this.kryptonNavigator1.Button.CloseButtonDisplay = ComponentFactory.Krypton.Navigator.ButtonDisplay.Hide;
|
||||||
this.kryptonNavigator1.Location = new System.Drawing.Point(326, 45);
|
this.kryptonNavigator1.Location = new System.Drawing.Point(326, 45);
|
||||||
this.kryptonNavigator1.Name = "kryptonNavigator1";
|
this.kryptonNavigator1.Name = "kryptonNavigator1";
|
||||||
this.kryptonNavigator1.Size = new System.Drawing.Size(589, 418);
|
this.kryptonNavigator1.Size = new System.Drawing.Size(589, 418);
|
||||||
@@ -206,19 +206,19 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
private Krypton.Toolkit.KryptonButton kryptonButton1;
|
private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton1;
|
||||||
private Krypton.Toolkit.KryptonButton kryptonButton2;
|
private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton2;
|
||||||
private Krypton.Toolkit.KryptonButton kryptonButton3;
|
private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton3;
|
||||||
private Krypton.Toolkit.KryptonButton kryptonButton4;
|
private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton4;
|
||||||
private Krypton.Toolkit.KryptonButton kryptonButton5;
|
private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton5;
|
||||||
private Krypton.Toolkit.KryptonButton kryptonButton6;
|
private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton6;
|
||||||
private Krypton.Toolkit.KryptonButton kryptonButton7;
|
private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton7;
|
||||||
private Krypton.Toolkit.KryptonButton kryptonButton8;
|
private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton8;
|
||||||
private Krypton.Toolkit.KryptonButton kryptonButton9;
|
private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton9;
|
||||||
private Krypton.Toolkit.KryptonButton kryptonButton10;
|
private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton10;
|
||||||
private System.Windows.Forms.Timer timer1;
|
private System.Windows.Forms.Timer timer1;
|
||||||
private Krypton.Toolkit.KryptonButton kryptonButton11;
|
private ComponentFactory.Krypton.Toolkit.KryptonButton kryptonButton11;
|
||||||
private Krypton.Toolkit.KryptonTextBox kryptonTextBox1;
|
private ComponentFactory.Krypton.Toolkit.KryptonTextBox kryptonTextBox1;
|
||||||
private Krypton.Navigator.KryptonNavigator kryptonNavigator1;
|
private ComponentFactory.Krypton.Navigator.KryptonNavigator kryptonNavigator1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,5 @@
|
|||||||
using CleanMachine.Model;
|
using ComponentFactory.Krypton.Navigator;
|
||||||
using CleanMachine.Model.CM;
|
using ComponentFactory.Krypton.Toolkit;
|
||||||
using Krypton.Navigator;
|
|
||||||
using Krypton.Toolkit;
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
@@ -25,7 +23,7 @@ namespace CleanMachineHMI
|
|||||||
{
|
{
|
||||||
kryptonNavigator1.Pages.Clear();
|
kryptonNavigator1.Pages.Clear();
|
||||||
AddFrmPage(null, null);
|
AddFrmPage(null, null);
|
||||||
Global.CmWarningLogMd_List_1 = new List<WarningLog>();
|
GlobalHelper.CmWarningLogMd_List_1 = new List<CM_WarningLogMd>();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void kryptonButton8_BackColorChanged(object sender, EventArgs e)
|
private void kryptonButton8_BackColorChanged(object sender, EventArgs e)
|
||||||
@@ -87,14 +85,14 @@ namespace CleanMachineHMI
|
|||||||
|
|
||||||
private void kryptonButton9_Click(object sender, EventArgs e)
|
private void kryptonButton9_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
Global.CmWarningLogMd_List_1.Add(new WarningLog {
|
GlobalHelper.CmWarningLogMd_List_1.Add(new CM_WarningLogMd {
|
||||||
WarningCode = "TestAlarm001",
|
WarningCode = "TestAlarm001",
|
||||||
WarningName = "TestAlarm001",
|
WarningName = "TestAlarm001",
|
||||||
WarningType = "TestAlarm001",
|
WarningType = "TestAlarm001",
|
||||||
WarningMessage = "TestAlarm001",
|
WarningMessage = "TestAlarm001",
|
||||||
WarningTime = DateTime.Now,
|
WarningTime = DateTime.Now,
|
||||||
PlcItemCode = "TestAlarm001",
|
PlcItemCode = "TestAlarm001",
|
||||||
WaringStatus = 0,
|
WarningStatus = 0,
|
||||||
WarningHandleResult = 0,
|
WarningHandleResult = 0,
|
||||||
CreateBy = 1,
|
CreateBy = 1,
|
||||||
CreateTime = DateTime.Now,
|
CreateTime = DateTime.Now,
|
||||||
@@ -106,10 +104,10 @@ namespace CleanMachineHMI
|
|||||||
|
|
||||||
private void kryptonButton10_Click(object sender, EventArgs e)
|
private void kryptonButton10_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
WarningLog tmpWarn = Global.CmWarningLogMd_List_1.Find(x => x.WaringStatus == 0);
|
CM_WarningLogMd tmpWarn = GlobalHelper.CmWarningLogMd_List_1.Find(x => x.WarningStatus == 0);
|
||||||
if (tmpWarn != null)
|
if (tmpWarn != null)
|
||||||
{
|
{
|
||||||
tmpWarn.WaringStatus = 1;
|
tmpWarn.WarningStatus = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private void timer1_Tick(object sender, EventArgs e)
|
private void timer1_Tick(object sender, EventArgs e)
|
||||||
@@ -144,7 +142,7 @@ namespace CleanMachineHMI
|
|||||||
|
|
||||||
private void kryptonButton11_Click(object sender, EventArgs e)
|
private void kryptonButton11_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
kryptonTextBox1.Text = Global.GetPalletCode();
|
kryptonTextBox1.Text = GlobalHelper.GetPalletCode();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,44 +0,0 @@
|
|||||||
namespace CleanMachineHMI.FrmUserControl.Base
|
|
||||||
{
|
|
||||||
partial class UserControl1
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// 必需的设计器变量。
|
|
||||||
/// </summary>
|
|
||||||
private System.ComponentModel.IContainer components = null;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 清理所有正在使用的资源。
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
|
|
||||||
protected override void Dispose(bool disposing)
|
|
||||||
{
|
|
||||||
if (disposing && (components != null))
|
|
||||||
{
|
|
||||||
components.Dispose();
|
|
||||||
}
|
|
||||||
base.Dispose(disposing);
|
|
||||||
}
|
|
||||||
|
|
||||||
#region 组件设计器生成的代码
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 设计器支持所需的方法 - 不要修改
|
|
||||||
/// 使用代码编辑器修改此方法的内容。
|
|
||||||
/// </summary>
|
|
||||||
private void InitializeComponent()
|
|
||||||
{
|
|
||||||
this.SuspendLayout();
|
|
||||||
//
|
|
||||||
// UserControl1
|
|
||||||
//
|
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
||||||
this.Name = "UserControl1";
|
|
||||||
this.ResumeLayout(false);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.ComponentModel;
|
|
||||||
using System.Data;
|
|
||||||
using System.Drawing;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using System.Windows.Forms;
|
|
||||||
|
|
||||||
namespace CleanMachineHMI.FrmUserControl.Base
|
|
||||||
{
|
|
||||||
public partial class UserControl1 : UserControl
|
|
||||||
{
|
|
||||||
public UserControl1()
|
|
||||||
{
|
|
||||||
InitializeComponent();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
namespace CleanMachineHMI.FrmUserControl
|
namespace CleanMachineHMI.FrmUserControl
|
||||||
{
|
{
|
||||||
public partial class frmCleanMode
|
partial class frmCleanMode
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 必需的设计器变量。
|
/// 必需的设计器变量。
|
||||||
@@ -29,25 +29,25 @@ namespace CleanMachineHMI.FrmUserControl
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
this.kryptonGroupBox2 = new Krypton.Toolkit.KryptonGroupBox();
|
this.kryptonGroupBox2 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
|
||||||
this.dataGridView = new Krypton.Toolkit.KryptonDataGridView();
|
this.dataGridView = new ComponentFactory.Krypton.Toolkit.KryptonDataGridView();
|
||||||
this.kryptonPanel1 = new Krypton.Toolkit.KryptonPanel();
|
this.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel();
|
||||||
this.kryptonGroupBox1 = new Krypton.Toolkit.KryptonGroupBox();
|
this.kryptonGroupBox1 = new ComponentFactory.Krypton.Toolkit.KryptonGroupBox();
|
||||||
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
|
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
|
||||||
this.kbt_Reset = new Krypton.Toolkit.KryptonButton();
|
this.kbt_Reset = new ComponentFactory.Krypton.Toolkit.KryptonButton();
|
||||||
this.kbt_Edit = new Krypton.Toolkit.KryptonButton();
|
this.kbt_Edit = new ComponentFactory.Krypton.Toolkit.KryptonButton();
|
||||||
this.kbt_Delete = new Krypton.Toolkit.KryptonButton();
|
this.kbt_Delete = new ComponentFactory.Krypton.Toolkit.KryptonButton();
|
||||||
this.kbt_Query = new Krypton.Toolkit.KryptonButton();
|
this.kbt_Query = new ComponentFactory.Krypton.Toolkit.KryptonButton();
|
||||||
this.kbt_Add = new Krypton.Toolkit.KryptonButton();
|
this.kbt_Add = new ComponentFactory.Krypton.Toolkit.KryptonButton();
|
||||||
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
|
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
|
||||||
this.kdtp_CreateEndTime = new Krypton.Toolkit.KryptonDateTimePicker();
|
this.kdtp_CreateEndTime = new ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker();
|
||||||
this.kdtp_CreateStartTime = new Krypton.Toolkit.KryptonDateTimePicker();
|
this.kdtp_CreateStartTime = new ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker();
|
||||||
this.kryptonLabel2 = new Krypton.Toolkit.KryptonLabel();
|
this.kryptonLabel2 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
|
||||||
this.kryptonLabel5 = new Krypton.Toolkit.KryptonLabel();
|
this.kryptonLabel5 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
|
||||||
this.ktb_CleanModeCode = new Krypton.Toolkit.KryptonTextBox();
|
this.ktb_CleanModeCode = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
|
||||||
this.kryptonLabel4 = new Krypton.Toolkit.KryptonLabel();
|
this.kryptonLabel4 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
|
||||||
this.kryptonLabel3 = new Krypton.Toolkit.KryptonLabel();
|
this.kryptonLabel3 = new ComponentFactory.Krypton.Toolkit.KryptonLabel();
|
||||||
this.ktb_CleanModeName = new Krypton.Toolkit.KryptonTextBox();
|
this.ktb_CleanModeName = new ComponentFactory.Krypton.Toolkit.KryptonTextBox();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2)).BeginInit();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox2.Panel)).BeginInit();
|
||||||
this.kryptonGroupBox2.Panel.SuspendLayout();
|
this.kryptonGroupBox2.Panel.SuspendLayout();
|
||||||
@@ -67,7 +67,7 @@ namespace CleanMachineHMI.FrmUserControl
|
|||||||
//
|
//
|
||||||
this.kryptonGroupBox2.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowOnly;
|
this.kryptonGroupBox2.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowOnly;
|
||||||
this.kryptonGroupBox2.CaptionOverlap = 0D;
|
this.kryptonGroupBox2.CaptionOverlap = 0D;
|
||||||
this.kryptonGroupBox2.CaptionStyle = Krypton.Toolkit.LabelStyle.NormalControl;
|
this.kryptonGroupBox2.CaptionStyle = ComponentFactory.Krypton.Toolkit.LabelStyle.NormalControl;
|
||||||
this.kryptonGroupBox2.Dock = System.Windows.Forms.DockStyle.Fill;
|
this.kryptonGroupBox2.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
this.kryptonGroupBox2.Location = new System.Drawing.Point(0, 131);
|
this.kryptonGroupBox2.Location = new System.Drawing.Point(0, 131);
|
||||||
this.kryptonGroupBox2.Name = "kryptonGroupBox2";
|
this.kryptonGroupBox2.Name = "kryptonGroupBox2";
|
||||||
@@ -88,7 +88,7 @@ namespace CleanMachineHMI.FrmUserControl
|
|||||||
this.dataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
|
this.dataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
|
||||||
this.dataGridView.DataMember = "TestData";
|
this.dataGridView.DataMember = "TestData";
|
||||||
this.dataGridView.Dock = System.Windows.Forms.DockStyle.Fill;
|
this.dataGridView.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
this.dataGridView.GridStyles.Style = Krypton.Toolkit.DataGridViewStyle.Mixed;
|
this.dataGridView.GridStyles.Style = ComponentFactory.Krypton.Toolkit.DataGridViewStyle.Mixed;
|
||||||
this.dataGridView.Location = new System.Drawing.Point(0, 0);
|
this.dataGridView.Location = new System.Drawing.Point(0, 0);
|
||||||
this.dataGridView.MultiSelect = false;
|
this.dataGridView.MultiSelect = false;
|
||||||
this.dataGridView.Name = "dataGridView";
|
this.dataGridView.Name = "dataGridView";
|
||||||
@@ -335,24 +335,24 @@ namespace CleanMachineHMI.FrmUserControl
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2;
|
private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox2;
|
||||||
private Krypton.Toolkit.KryptonDataGridView dataGridView;
|
private ComponentFactory.Krypton.Toolkit.KryptonDataGridView dataGridView;
|
||||||
private Krypton.Toolkit.KryptonPanel kryptonPanel1;
|
private ComponentFactory.Krypton.Toolkit.KryptonPanel kryptonPanel1;
|
||||||
private Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
|
private ComponentFactory.Krypton.Toolkit.KryptonGroupBox kryptonGroupBox1;
|
||||||
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
|
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
|
||||||
private Krypton.Toolkit.KryptonButton kbt_Reset;
|
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Reset;
|
||||||
private Krypton.Toolkit.KryptonButton kbt_Edit;
|
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Edit;
|
||||||
private Krypton.Toolkit.KryptonButton kbt_Delete;
|
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Delete;
|
||||||
private Krypton.Toolkit.KryptonButton kbt_Query;
|
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Query;
|
||||||
private Krypton.Toolkit.KryptonButton kbt_Add;
|
private ComponentFactory.Krypton.Toolkit.KryptonButton kbt_Add;
|
||||||
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
|
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
|
||||||
private Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateEndTime;
|
private ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateEndTime;
|
||||||
private Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateStartTime;
|
private ComponentFactory.Krypton.Toolkit.KryptonDateTimePicker kdtp_CreateStartTime;
|
||||||
private Krypton.Toolkit.KryptonLabel kryptonLabel2;
|
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel2;
|
||||||
private Krypton.Toolkit.KryptonLabel kryptonLabel5;
|
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel5;
|
||||||
private Krypton.Toolkit.KryptonTextBox ktb_CleanModeCode;
|
private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_CleanModeCode;
|
||||||
private Krypton.Toolkit.KryptonLabel kryptonLabel4;
|
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel4;
|
||||||
private Krypton.Toolkit.KryptonLabel kryptonLabel3;
|
private ComponentFactory.Krypton.Toolkit.KryptonLabel kryptonLabel3;
|
||||||
private Krypton.Toolkit.KryptonTextBox ktb_CleanModeName;
|
private ComponentFactory.Krypton.Toolkit.KryptonTextBox ktb_CleanModeName;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using CleanMachineHMI.Domain.Enums;
|
using CleanMachineHMI.Domain.Enums;
|
||||||
using CleanMachineHMI.frmChild;
|
using CleanMachineHMI.frmChild;
|
||||||
using CleanMachineHMI.Utils;
|
using CleanMachineHMI.Utils;
|
||||||
using Krypton.Toolkit;
|
using ComponentFactory.Krypton.Toolkit;
|
||||||
using LeadDataBaseUtility;
|
using LeadDataBaseUtility;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
@@ -18,12 +18,15 @@ namespace CleanMachineHMI.FrmUserControl
|
|||||||
[FormType(EnumFormType.CleanMode)]
|
[FormType(EnumFormType.CleanMode)]
|
||||||
public partial class frmCleanMode : UserControl
|
public partial class frmCleanMode : UserControl
|
||||||
{
|
{
|
||||||
|
private DataTable _InfoLanguageTextList;
|
||||||
public delegate void dlgRefreshFrmHost();
|
public delegate void dlgRefreshFrmHost();
|
||||||
public static dlgRefreshFrmHost RefreshFrmHost;
|
public static dlgRefreshFrmHost RefreshFrmHost;
|
||||||
|
|
||||||
public frmCleanMode()
|
public frmCleanMode()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
_InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
|
||||||
|
|
||||||
}
|
}
|
||||||
protected override CreateParams CreateParams
|
protected override CreateParams CreateParams
|
||||||
{
|
{
|
||||||
@@ -59,7 +62,7 @@ namespace CleanMachineHMI.FrmUserControl
|
|||||||
|
|
||||||
dataGridView.Columns.Clear();
|
dataGridView.Columns.Clear();
|
||||||
dataGridView.DataSource = dt;
|
dataGridView.DataSource = dt;
|
||||||
dataGridView.SetDataViewColumnText(this.Name);
|
dataGridView.SetDataViewColumnText(this.Name, GlobalHelper.LanguageCode);
|
||||||
|
|
||||||
}
|
}
|
||||||
private void txt_GotFocus(object sender, EventArgs e)
|
private void txt_GotFocus(object sender, EventArgs e)
|
||||||
@@ -84,7 +87,7 @@ namespace CleanMachineHMI.FrmUserControl
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
InitControlEvent();
|
InitControlEvent();
|
||||||
this.SetFormControlText();
|
this.SetFormControlText(GlobalHelper.LanguageCode);
|
||||||
|
|
||||||
kdtp_CreateStartTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00"));
|
kdtp_CreateStartTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00"));
|
||||||
kdtp_CreateEndTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 23:59:59"));
|
kdtp_CreateEndTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 23:59:59"));
|
||||||
@@ -98,24 +101,23 @@ namespace CleanMachineHMI.FrmUserControl
|
|||||||
{
|
{
|
||||||
if (item.Tag == null)
|
if (item.Tag == null)
|
||||||
{
|
{
|
||||||
item.Enabled = Global.CheckRole(this.Name, item.Name);
|
DataRow[] drs = GlobalHelper.RoleMenuPermission.Select($" MENU_URL = '{this.Name}' AND MENU_PID = '-1'");
|
||||||
//DataRow[] drs = GlobalHelper.RoleMenuPermission.Select($" MENU_URL = '{this.Name}' AND MENU_PID = '-1'");
|
DataRow[] drs1 = GlobalHelper.RoleMenuPermission.Select($" MENU_URL = '{item.Name}' AND MENU_PID = '{drs[0]["MENU_ID"]}'");
|
||||||
//DataRow[] drs1 = GlobalHelper.RoleMenuPermission.Select($" MENU_URL = '{item.Name}' AND MENU_PID = '{drs[0]["MENU_ID"]}'");
|
if (drs1.Length > 0)
|
||||||
//if (drs1.Length > 0)
|
{
|
||||||
//{
|
item.Enabled = true;
|
||||||
// item.Enabled = true;
|
}
|
||||||
//}
|
else
|
||||||
//else
|
{
|
||||||
//{
|
item.Enabled = false;
|
||||||
// item.Enabled = false;
|
}
|
||||||
//}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
kryptonGroupBox2.Focus();
|
kryptonGroupBox2.Focus();
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
KryptonMessageBox.Show(this.T("加载清洁方式界面发生异常", "LoadFrmCleanModeExp") + $":【{ex.Message}】!");
|
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("加载清洁方式界面发生异常", "LoadFrmCleanModeExp") + $":【{ex.Message}】!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -127,7 +129,7 @@ namespace CleanMachineHMI.FrmUserControl
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
KryptonMessageBox.Show(this.T("查询清洁方式数据发生异常", "QueryCleanModeData") + $":【{ex.Message}】!");
|
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("查询清洁方式数据发生异常", "QueryCleanModeData") + $":【{ex.Message}】!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -157,7 +159,7 @@ namespace CleanMachineHMI.FrmUserControl
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
KryptonMessageBox.Show(this.T("请选择要编辑的清洗方式数据行!", "SelectWantToEditRow"));
|
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要编辑的清洗方式数据行!", "SelectWantToEditRow"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -167,31 +169,31 @@ namespace CleanMachineHMI.FrmUserControl
|
|||||||
{
|
{
|
||||||
if (dataGridView.SelectedRows.Count > 0)
|
if (dataGridView.SelectedRows.Count > 0)
|
||||||
{
|
{
|
||||||
DialogResult dr = KryptonMessageBox.Show(this.T("确定要删除所选的清洗方式数据吗?", "DeleteInfo"), "Prompt", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
|
DialogResult dr = KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("确定要删除所选的清洗方式数据吗?", "DeleteInfo"), "Prompt", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
|
||||||
if (dr == DialogResult.OK)
|
if (dr == DialogResult.OK)
|
||||||
{
|
{
|
||||||
string CleanModeId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
|
string CleanModeId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
|
||||||
string sql = $@"DELETE FROM BAS_CLEAN_MODE WHERE CLEAN_MODE_ID = '{CleanModeId}'";
|
string sql = $@"DELETE FROM BAS_CLEAN_MODE WHERE CLEAN_MODE_ID = '{CleanModeId}'";
|
||||||
int row = LeadDbHelperSQLite.Execute(sql);
|
int row = LeadDbHelperSQLite.ExecuteSql(sql);
|
||||||
if (row > 0)
|
if (row > 0)
|
||||||
{
|
{
|
||||||
KryptonMessageBox.Show(this.T("删除清洗方式数据成功!", "DeleteSuccessInfo"));
|
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除清洗方式数据成功!", "DeleteSuccessInfo"));
|
||||||
RefreshFrmHost();
|
RefreshFrmHost();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
KryptonMessageBox.Show(this.T("删除清洗方式数据失败!", "DeleteFailInfo"));
|
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除清洗方式数据失败!", "DeleteFailInfo"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
KryptonMessageBox.Show(this.T("请选择要删除的清洗方式数据行!", "SelectWantToDeleteRow"));
|
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要删除的清洗方式数据行!", "SelectWantToDeleteRow"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
KryptonMessageBox.Show(this.T("删除清洁方式数据发生异常", "DeleteCleanModeDataExp") + $":【{ex.Message}】!");
|
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除清洁方式数据发生异常", "DeleteCleanModeDataExp") + $":【{ex.Message}】!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user