You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
74 lines
1.9 KiB
74 lines
1.9 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using QMAPP.BLL;
|
|
using QMAPP.FJC.Entity.CellCycle;
|
|
using QMAPP.FJC.DAL.CellCycle;
|
|
using QMFrameWork.Log;
|
|
using QMAPP.Entity;
|
|
using QMAPP.FJC.Entity;
|
|
|
|
namespace QMAPP.FJC.BLL.CellCycle
|
|
{
|
|
public class CellCycleTimeSetBLL : BaseBLL
|
|
{
|
|
/// <summary>
|
|
/// 获取列表
|
|
/// </summary>
|
|
/// <param name="condition">条件</param>
|
|
/// <returns>全部数据</returns>
|
|
public List<CellCycleTimeSet> GetAllList()
|
|
{
|
|
try
|
|
{
|
|
return new CellCycleTimeSetDAL().GetList();
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
//LogManager.LogHelper.Error(new LogInfo { ErrorInfo = ex, Tag = ex.StackTrace, Info = "获取XXXX表错误!" });
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
|
|
#region 插入信息
|
|
/// <summary>
|
|
/// 插入信息(单表)
|
|
/// </summary>
|
|
/// <param name="">信息</param>
|
|
/// <returns>插入行数</returns>
|
|
public DataResult<int> Insert(CellCycleTime model)
|
|
{
|
|
DataResult<int> result = new DataResult<int>();
|
|
CellCycleTimeSetDAL cmdDAL = new CellCycleTimeSetDAL();
|
|
try
|
|
{
|
|
result.Result = new CellCycleTimeSetDAL().Insert(model);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogManager.LogHelper.Error(new LogInfo()
|
|
{
|
|
ErrorInfo = ex,
|
|
Tag = ex.StackTrace,
|
|
Info = "设备信息逻辑层-插入信息!"
|
|
});
|
|
result.IsSuccess = false;
|
|
result.Msg = Resource.SystemException;
|
|
throw ex;
|
|
}
|
|
result.IsSuccess = true;
|
|
return result;
|
|
}
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|