添加业务层
This commit is contained in:
91
CleanMachine.BLL/CleanModeBLL.cs
Normal file
91
CleanMachine.BLL/CleanModeBLL.cs
Normal file
@@ -0,0 +1,91 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"BLL\\CleanModeBLL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using CleanMachine.DAL;
|
||||
|
||||
namespace CleanMachine.BLL
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class CleanModeBLL
|
||||
{
|
||||
|
||||
public CleanModeBLL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
public bool Exists(string CleanModeId)
|
||||
{
|
||||
return new CleanModeDAL().Exists(CleanModeId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
public bool Add(CleanMachine.Model.CleanMode model)
|
||||
{
|
||||
return new CleanModeDAL().Add(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
public bool Update(CleanMachine.Model.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(string CleanModeId)
|
||||
{
|
||||
return new CleanModeDAL().Delete(CleanModeId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public IEnumerable<CleanMachine.Model.CleanMode> GetList(string strWhere, object Params = null)
|
||||
{
|
||||
return new CleanModeDAL().GetList(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.CleanMode GetModel(string CleanModeId)
|
||||
{
|
||||
return new CleanModeDAL().GetModel(CleanModeId);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.CleanMode> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// return new CleanModeDAL().GetModelList(rule);
|
||||
// }
|
||||
}
|
||||
}
|
||||
91
CleanMachine.BLL/ContaminationDtlBLL.cs
Normal file
91
CleanMachine.BLL/ContaminationDtlBLL.cs
Normal file
@@ -0,0 +1,91 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"BLL\\ContaminationDtlBLL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using CleanMachine.DAL;
|
||||
|
||||
namespace CleanMachine.BLL
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class ContaminationDtlBLL
|
||||
{
|
||||
|
||||
public ContaminationDtlBLL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
public bool Exists(string ContaminationDtlId)
|
||||
{
|
||||
return new ContaminationDtlDAL().Exists(ContaminationDtlId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
public bool Add(CleanMachine.Model.ContaminationDtl model)
|
||||
{
|
||||
return new ContaminationDtlDAL().Add(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
public bool Update(CleanMachine.Model.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(string ContaminationDtlId)
|
||||
{
|
||||
return new ContaminationDtlDAL().Delete(ContaminationDtlId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public IEnumerable<CleanMachine.Model.ContaminationDtl> GetList(string strWhere, object Params = null)
|
||||
{
|
||||
return new ContaminationDtlDAL().GetList(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.ContaminationDtl GetModel(string ContaminationDtlId)
|
||||
{
|
||||
return new ContaminationDtlDAL().GetModel(ContaminationDtlId);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.ContaminationDtl> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// return new ContaminationDtlDAL().GetModelList(rule);
|
||||
// }
|
||||
}
|
||||
}
|
||||
91
CleanMachine.BLL/ContaminationTypeBLL.cs
Normal file
91
CleanMachine.BLL/ContaminationTypeBLL.cs
Normal file
@@ -0,0 +1,91 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"BLL\\ContaminationTypeBLL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using CleanMachine.DAL;
|
||||
|
||||
namespace CleanMachine.BLL
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class ContaminationTypeBLL
|
||||
{
|
||||
|
||||
public ContaminationTypeBLL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
public bool Exists(string ContaminationTypeId)
|
||||
{
|
||||
return new ContaminationTypeDAL().Exists(ContaminationTypeId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
public bool Add(CleanMachine.Model.ContaminationType model)
|
||||
{
|
||||
return new ContaminationTypeDAL().Add(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
public bool Update(CleanMachine.Model.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(string ContaminationTypeId)
|
||||
{
|
||||
return new ContaminationTypeDAL().Delete(ContaminationTypeId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public IEnumerable<CleanMachine.Model.ContaminationType> GetList(string strWhere, object Params = null)
|
||||
{
|
||||
return new ContaminationTypeDAL().GetList(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.ContaminationType GetModel(string ContaminationTypeId)
|
||||
{
|
||||
return new ContaminationTypeDAL().GetModel(ContaminationTypeId);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.ContaminationType> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// return new ContaminationTypeDAL().GetModelList(rule);
|
||||
// }
|
||||
}
|
||||
}
|
||||
91
CleanMachine.BLL/LanguageBLL.cs
Normal file
91
CleanMachine.BLL/LanguageBLL.cs
Normal file
@@ -0,0 +1,91 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"BLL\\LanguageBLL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using CleanMachine.DAL;
|
||||
|
||||
namespace CleanMachine.BLL
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class LanguageBLL
|
||||
{
|
||||
|
||||
public LanguageBLL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
public bool Exists(string LanguageId)
|
||||
{
|
||||
return new LanguageDAL().Exists(LanguageId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
public bool Add(CleanMachine.Model.Language model)
|
||||
{
|
||||
return new LanguageDAL().Add(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
public bool Update(CleanMachine.Model.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(string LanguageId)
|
||||
{
|
||||
return new LanguageDAL().Delete(LanguageId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public IEnumerable<CleanMachine.Model.Language> GetList(string strWhere, object Params = null)
|
||||
{
|
||||
return new LanguageDAL().GetList(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.Language GetModel(string LanguageId)
|
||||
{
|
||||
return new LanguageDAL().GetModel(LanguageId);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.Language> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// return new LanguageDAL().GetModelList(rule);
|
||||
// }
|
||||
}
|
||||
}
|
||||
91
CleanMachine.BLL/LanguageControlBLL.cs
Normal file
91
CleanMachine.BLL/LanguageControlBLL.cs
Normal file
@@ -0,0 +1,91 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"BLL\\LanguageControlBLL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using CleanMachine.DAL;
|
||||
|
||||
namespace CleanMachine.BLL
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class LanguageControlBLL
|
||||
{
|
||||
|
||||
public LanguageControlBLL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
public bool Exists(string LanguageControlId)
|
||||
{
|
||||
return new LanguageControlDAL().Exists(LanguageControlId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
public bool Add(CleanMachine.Model.LanguageControl model)
|
||||
{
|
||||
return new LanguageControlDAL().Add(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
public bool Update(CleanMachine.Model.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(string LanguageControlId)
|
||||
{
|
||||
return new LanguageControlDAL().Delete(LanguageControlId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public IEnumerable<CleanMachine.Model.LanguageControl> GetList(string strWhere, object Params = null)
|
||||
{
|
||||
return new LanguageControlDAL().GetList(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.LanguageControl GetModel(string LanguageControlId)
|
||||
{
|
||||
return new LanguageControlDAL().GetModel(LanguageControlId);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.LanguageControl> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// return new LanguageControlDAL().GetModelList(rule);
|
||||
// }
|
||||
}
|
||||
}
|
||||
91
CleanMachine.BLL/LastPattleNumBLL.cs
Normal file
91
CleanMachine.BLL/LastPattleNumBLL.cs
Normal file
@@ -0,0 +1,91 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"BLL\\LastPattleNumBLL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using CleanMachine.DAL;
|
||||
|
||||
namespace CleanMachine.BLL
|
||||
{
|
||||
/// <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.LastPattleNum model)
|
||||
{
|
||||
return new LastPattleNumDAL().Add(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
public bool Update(CleanMachine.Model.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.LastPattleNum> GetList(string strWhere, object Params = null)
|
||||
{
|
||||
return new LastPattleNumDAL().GetList(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.LastPattleNum GetModel(string Key)
|
||||
{
|
||||
return new LastPattleNumDAL().GetModel(Key);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.LastPattleNum> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// return new LastPattleNumDAL().GetModelList(rule);
|
||||
// }
|
||||
}
|
||||
}
|
||||
91
CleanMachine.BLL/LogBLL.cs
Normal file
91
CleanMachine.BLL/LogBLL.cs
Normal file
@@ -0,0 +1,91 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"BLL\\LogBLL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using CleanMachine.DAL;
|
||||
|
||||
namespace CleanMachine.BLL
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class LogBLL
|
||||
{
|
||||
|
||||
public LogBLL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
public bool Exists(string SysLogId)
|
||||
{
|
||||
return new LogDAL().Exists(SysLogId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
public bool Add(CleanMachine.Model.Log model)
|
||||
{
|
||||
return new LogDAL().Add(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
public bool Update(CleanMachine.Model.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(string SysLogId)
|
||||
{
|
||||
return new LogDAL().Delete(SysLogId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public IEnumerable<CleanMachine.Model.Log> GetList(string strWhere, object Params = null)
|
||||
{
|
||||
return new LogDAL().GetList(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.Log GetModel(string SysLogId)
|
||||
{
|
||||
return new LogDAL().GetModel(SysLogId);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.Log> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// return new LogDAL().GetModelList(rule);
|
||||
// }
|
||||
}
|
||||
}
|
||||
91
CleanMachine.BLL/MenuBLL.cs
Normal file
91
CleanMachine.BLL/MenuBLL.cs
Normal file
@@ -0,0 +1,91 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"BLL\\MenuBLL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using CleanMachine.DAL;
|
||||
|
||||
namespace CleanMachine.BLL
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class MenuBLL
|
||||
{
|
||||
|
||||
public MenuBLL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
public bool Exists(string MenuId)
|
||||
{
|
||||
return new MenuDAL().Exists(MenuId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
public bool Add(CleanMachine.Model.Menu model)
|
||||
{
|
||||
return new MenuDAL().Add(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
public bool Update(CleanMachine.Model.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(string MenuId)
|
||||
{
|
||||
return new MenuDAL().Delete(MenuId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public IEnumerable<CleanMachine.Model.Menu> GetList(string strWhere, object Params = null)
|
||||
{
|
||||
return new MenuDAL().GetList(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.Menu GetModel(string MenuId)
|
||||
{
|
||||
return new MenuDAL().GetModel(MenuId);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.Menu> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// return new MenuDAL().GetModelList(rule);
|
||||
// }
|
||||
}
|
||||
}
|
||||
91
CleanMachine.BLL/ParameterBLL.cs
Normal file
91
CleanMachine.BLL/ParameterBLL.cs
Normal file
@@ -0,0 +1,91 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"BLL\\ParameterBLL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using CleanMachine.DAL;
|
||||
|
||||
namespace CleanMachine.BLL
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class ParameterBLL
|
||||
{
|
||||
|
||||
public ParameterBLL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
public bool Exists(string ParameterId)
|
||||
{
|
||||
return new ParameterDAL().Exists(ParameterId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
public bool Add(CleanMachine.Model.Parameter model)
|
||||
{
|
||||
return new ParameterDAL().Add(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
public bool Update(CleanMachine.Model.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(string ParameterId)
|
||||
{
|
||||
return new ParameterDAL().Delete(ParameterId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public IEnumerable<CleanMachine.Model.Parameter> GetList(string strWhere, object Params = null)
|
||||
{
|
||||
return new ParameterDAL().GetList(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.Parameter GetModel(string ParameterId)
|
||||
{
|
||||
return new ParameterDAL().GetModel(ParameterId);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.Parameter> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// return new ParameterDAL().GetModelList(rule);
|
||||
// }
|
||||
}
|
||||
}
|
||||
91
CleanMachine.BLL/PlcItemBLL.cs
Normal file
91
CleanMachine.BLL/PlcItemBLL.cs
Normal file
@@ -0,0 +1,91 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"BLL\\PlcItemBLL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using CleanMachine.DAL;
|
||||
|
||||
namespace CleanMachine.BLL
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class PlcItemBLL
|
||||
{
|
||||
|
||||
public PlcItemBLL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
public bool Exists(string PlcItemId)
|
||||
{
|
||||
return new PlcItemDAL().Exists(PlcItemId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
public bool Add(CleanMachine.Model.PlcItem model)
|
||||
{
|
||||
return new PlcItemDAL().Add(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
public bool Update(CleanMachine.Model.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(string PlcItemId)
|
||||
{
|
||||
return new PlcItemDAL().Delete(PlcItemId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public IEnumerable<CleanMachine.Model.PlcItem> GetList(string strWhere, object Params = null)
|
||||
{
|
||||
return new PlcItemDAL().GetList(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.PlcItem GetModel(string PlcItemId)
|
||||
{
|
||||
return new PlcItemDAL().GetModel(PlcItemId);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.PlcItem> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// return new PlcItemDAL().GetModelList(rule);
|
||||
// }
|
||||
}
|
||||
}
|
||||
91
CleanMachine.BLL/RoleBLL.cs
Normal file
91
CleanMachine.BLL/RoleBLL.cs
Normal file
@@ -0,0 +1,91 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"BLL\\RoleBLL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using CleanMachine.DAL;
|
||||
|
||||
namespace CleanMachine.BLL
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class RoleBLL
|
||||
{
|
||||
|
||||
public RoleBLL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
public bool Exists(string RoleId)
|
||||
{
|
||||
return new RoleDAL().Exists(RoleId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
public bool Add(CleanMachine.Model.Role model)
|
||||
{
|
||||
return new RoleDAL().Add(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
public bool Update(CleanMachine.Model.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(string RoleId)
|
||||
{
|
||||
return new RoleDAL().Delete(RoleId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public IEnumerable<CleanMachine.Model.Role> GetList(string strWhere, object Params = null)
|
||||
{
|
||||
return new RoleDAL().GetList(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.Role GetModel(string RoleId)
|
||||
{
|
||||
return new RoleDAL().GetModel(RoleId);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.Role> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// return new RoleDAL().GetModelList(rule);
|
||||
// }
|
||||
}
|
||||
}
|
||||
91
CleanMachine.BLL/RoleMenuPermissionBLL.cs
Normal file
91
CleanMachine.BLL/RoleMenuPermissionBLL.cs
Normal file
@@ -0,0 +1,91 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"BLL\\RoleMenuPermissionBLL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using CleanMachine.DAL;
|
||||
|
||||
namespace CleanMachine.BLL
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class RoleMenuPermissionBLL
|
||||
{
|
||||
|
||||
public RoleMenuPermissionBLL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
public bool Exists(string RoleMenuPermissionId)
|
||||
{
|
||||
return new RoleMenuPermissionDAL().Exists(RoleMenuPermissionId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
public bool Add(CleanMachine.Model.RoleMenuPermission model)
|
||||
{
|
||||
return new RoleMenuPermissionDAL().Add(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
public bool Update(CleanMachine.Model.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(string RoleMenuPermissionId)
|
||||
{
|
||||
return new RoleMenuPermissionDAL().Delete(RoleMenuPermissionId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public IEnumerable<CleanMachine.Model.RoleMenuPermission> GetList(string strWhere, object Params = null)
|
||||
{
|
||||
return new RoleMenuPermissionDAL().GetList(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.RoleMenuPermission GetModel(string RoleMenuPermissionId)
|
||||
{
|
||||
return new RoleMenuPermissionDAL().GetModel(RoleMenuPermissionId);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.RoleMenuPermission> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// return new RoleMenuPermissionDAL().GetModelList(rule);
|
||||
// }
|
||||
}
|
||||
}
|
||||
91
CleanMachine.BLL/ScheduleDtlBLL.cs
Normal file
91
CleanMachine.BLL/ScheduleDtlBLL.cs
Normal file
@@ -0,0 +1,91 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"BLL\\ScheduleDtlBLL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using CleanMachine.DAL;
|
||||
|
||||
namespace CleanMachine.BLL
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class ScheduleDtlBLL
|
||||
{
|
||||
|
||||
public ScheduleDtlBLL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
public bool Exists(string ScheduleDtlId)
|
||||
{
|
||||
return new ScheduleDtlDAL().Exists(ScheduleDtlId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
public bool Add(CleanMachine.Model.ScheduleDtl model)
|
||||
{
|
||||
return new ScheduleDtlDAL().Add(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
public bool Update(CleanMachine.Model.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(string ScheduleDtlId)
|
||||
{
|
||||
return new ScheduleDtlDAL().Delete(ScheduleDtlId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public IEnumerable<CleanMachine.Model.ScheduleDtl> GetList(string strWhere, object Params = null)
|
||||
{
|
||||
return new ScheduleDtlDAL().GetList(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.ScheduleDtl GetModel(string ScheduleDtlId)
|
||||
{
|
||||
return new ScheduleDtlDAL().GetModel(ScheduleDtlId);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.ScheduleDtl> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// return new ScheduleDtlDAL().GetModelList(rule);
|
||||
// }
|
||||
}
|
||||
}
|
||||
91
CleanMachine.BLL/SheetTypeBLL.cs
Normal file
91
CleanMachine.BLL/SheetTypeBLL.cs
Normal file
@@ -0,0 +1,91 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"BLL\\SheetTypeBLL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using CleanMachine.DAL;
|
||||
|
||||
namespace CleanMachine.BLL
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class SheetTypeBLL
|
||||
{
|
||||
|
||||
public SheetTypeBLL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
public bool Exists(string SheetTypeId)
|
||||
{
|
||||
return new SheetTypeDAL().Exists(SheetTypeId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
public bool Add(CleanMachine.Model.SheetType model)
|
||||
{
|
||||
return new SheetTypeDAL().Add(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
public bool Update(CleanMachine.Model.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(string SheetTypeId)
|
||||
{
|
||||
return new SheetTypeDAL().Delete(SheetTypeId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public IEnumerable<CleanMachine.Model.SheetType> GetList(string strWhere, object Params = null)
|
||||
{
|
||||
return new SheetTypeDAL().GetList(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.SheetType GetModel(string SheetTypeId)
|
||||
{
|
||||
return new SheetTypeDAL().GetModel(SheetTypeId);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.SheetType> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// return new SheetTypeDAL().GetModelList(rule);
|
||||
// }
|
||||
}
|
||||
}
|
||||
91
CleanMachine.BLL/UserBLL.cs
Normal file
91
CleanMachine.BLL/UserBLL.cs
Normal file
@@ -0,0 +1,91 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"BLL\\UserBLL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using CleanMachine.DAL;
|
||||
|
||||
namespace CleanMachine.BLL
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class UserBLL
|
||||
{
|
||||
|
||||
public UserBLL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
public bool Exists(string UserId)
|
||||
{
|
||||
return new UserDAL().Exists(UserId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
public bool Add(CleanMachine.Model.User model)
|
||||
{
|
||||
return new UserDAL().Add(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
public bool Update(CleanMachine.Model.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(string UserId)
|
||||
{
|
||||
return new UserDAL().Delete(UserId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public IEnumerable<CleanMachine.Model.User> GetList(string strWhere, object Params = null)
|
||||
{
|
||||
return new UserDAL().GetList(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.User GetModel(string UserId)
|
||||
{
|
||||
return new UserDAL().GetModel(UserId);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.User> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// return new UserDAL().GetModelList(rule);
|
||||
// }
|
||||
}
|
||||
}
|
||||
91
CleanMachine.BLL/WarningBLL.cs
Normal file
91
CleanMachine.BLL/WarningBLL.cs
Normal file
@@ -0,0 +1,91 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"BLL\\WarningBLL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using CleanMachine.DAL;
|
||||
|
||||
namespace CleanMachine.BLL
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class WarningBLL
|
||||
{
|
||||
|
||||
public WarningBLL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
public bool Exists(string WarningId)
|
||||
{
|
||||
return new WarningDAL().Exists(WarningId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
public bool Add(CleanMachine.Model.Warning model)
|
||||
{
|
||||
return new WarningDAL().Add(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
public bool Update(CleanMachine.Model.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(string WarningId)
|
||||
{
|
||||
return new WarningDAL().Delete(WarningId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public IEnumerable<CleanMachine.Model.Warning> GetList(string strWhere, object Params = null)
|
||||
{
|
||||
return new WarningDAL().GetList(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.Warning GetModel(string WarningId)
|
||||
{
|
||||
return new WarningDAL().GetModel(WarningId);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.Warning> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// return new WarningDAL().GetModelList(rule);
|
||||
// }
|
||||
}
|
||||
}
|
||||
91
CleanMachine.BLL/WarningLogBLL.cs
Normal file
91
CleanMachine.BLL/WarningLogBLL.cs
Normal file
@@ -0,0 +1,91 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"BLL\\WarningLogBLL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using CleanMachine.DAL;
|
||||
|
||||
namespace CleanMachine.BLL
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class WarningLogBLL
|
||||
{
|
||||
|
||||
public WarningLogBLL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
public bool Exists(string WarningLogId)
|
||||
{
|
||||
return new WarningLogDAL().Exists(WarningLogId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
public bool Add(CleanMachine.Model.WarningLog model)
|
||||
{
|
||||
return new WarningLogDAL().Add(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
public bool Update(CleanMachine.Model.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(string WarningLogId)
|
||||
{
|
||||
return new WarningLogDAL().Delete(WarningLogId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public IEnumerable<CleanMachine.Model.WarningLog> GetList(string strWhere, object Params = null)
|
||||
{
|
||||
return new WarningLogDAL().GetList(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.WarningLog GetModel(string WarningLogId)
|
||||
{
|
||||
return new WarningLogDAL().GetModel(WarningLogId);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.WarningLog> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// return new WarningLogDAL().GetModelList(rule);
|
||||
// }
|
||||
}
|
||||
}
|
||||
91
CleanMachine.BLL/WorkingPalletBLL.cs
Normal file
91
CleanMachine.BLL/WorkingPalletBLL.cs
Normal file
@@ -0,0 +1,91 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"BLL\\WorkingPalletBLL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using CleanMachine.DAL;
|
||||
|
||||
namespace CleanMachine.BLL
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class WorkingPalletBLL
|
||||
{
|
||||
|
||||
public WorkingPalletBLL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
public bool Exists(string WorkingPalletId)
|
||||
{
|
||||
return new WorkingPalletDAL().Exists(WorkingPalletId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
public bool Add(CleanMachine.Model.WorkingPallet model)
|
||||
{
|
||||
return new WorkingPalletDAL().Add(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
public bool Update(CleanMachine.Model.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(string WorkingPalletId)
|
||||
{
|
||||
return new WorkingPalletDAL().Delete(WorkingPalletId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public IEnumerable<CleanMachine.Model.WorkingPallet> GetList(string strWhere, object Params = null)
|
||||
{
|
||||
return new WorkingPalletDAL().GetList(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.WorkingPallet GetModel(string WorkingPalletId)
|
||||
{
|
||||
return new WorkingPalletDAL().GetModel(WorkingPalletId);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.WorkingPallet> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// return new WorkingPalletDAL().GetModelList(rule);
|
||||
// }
|
||||
}
|
||||
}
|
||||
91
CleanMachine.BLL/WorkingPalletDtlBLL.cs
Normal file
91
CleanMachine.BLL/WorkingPalletDtlBLL.cs
Normal file
@@ -0,0 +1,91 @@
|
||||
|
||||
//模板信息:{"Template":{"Language":"C#"}}
|
||||
//输出信息:{"Extension":".cs","FileName":"BLL\\WorkingPalletDtlBLL"}
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using CleanMachine.DAL;
|
||||
|
||||
namespace CleanMachine.BLL
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class WorkingPalletDtlBLL
|
||||
{
|
||||
|
||||
public WorkingPalletDtlBLL()
|
||||
{
|
||||
|
||||
}
|
||||
#region 一般方法
|
||||
/// <summary>
|
||||
/// 存在
|
||||
/// </summary>
|
||||
public bool Exists(string WorkingPalletDtlId)
|
||||
{
|
||||
return new WorkingPalletDtlDAL().Exists(WorkingPalletDtlId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加一个数据
|
||||
/// </summary>
|
||||
public bool Add(CleanMachine.Model.WorkingPalletDtl model)
|
||||
{
|
||||
return new WorkingPalletDtlDAL().Add(model);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新一个数据
|
||||
/// </summary>
|
||||
public bool Update(CleanMachine.Model.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(string WorkingPalletDtlId)
|
||||
{
|
||||
return new WorkingPalletDtlDAL().Delete(WorkingPalletDtlId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得数据列表
|
||||
/// </summary>
|
||||
public IEnumerable<CleanMachine.Model.WorkingPalletDtl> GetList(string strWhere, object Params = null)
|
||||
{
|
||||
return new WorkingPalletDtlDAL().GetList(strWhere,Params);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取一个对象
|
||||
/// </summary>
|
||||
public CleanMachine.Model.WorkingPalletDtl GetModel(string WorkingPalletDtlId)
|
||||
{
|
||||
return new WorkingPalletDtlDAL().GetModel(WorkingPalletDtlId);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询数据
|
||||
/// </summary>
|
||||
// public IEnumerable<CleanMachine.Model.WorkingPalletDtl> GetModelList(RuleGroup rule)
|
||||
// {
|
||||
// return new WorkingPalletDtlDAL().GetModelList(rule);
|
||||
// }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user