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
{
///
/// 获取列表
///
/// 条件
/// 全部数据
public List GetAllList()
{
try
{
return new CellCycleTimeSetDAL().GetList();
}
catch (Exception ex)
{
//LogManager.LogHelper.Error(new LogInfo { ErrorInfo = ex, Tag = ex.StackTrace, Info = "获取XXXX表错误!" });
throw ex;
}
}
#region 插入信息
///
/// 插入信息(单表)
///
/// 信息
/// 插入行数
public DataResult Insert(CellCycleTime model)
{
DataResult result = new DataResult();
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
}
}