天津投入产出系统后端
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.
 
 
 
 
 
 

83 lines
1.7 KiB

using System;
using System.Collections.Generic;
using QMAPP.BLL;
using QMAPP.Entity;
using QMAPP.FJC.BLL.FIS;
using QMAPP.FJC.DAL.FIS;
using QMAPP.FJC.DAL.MesB9;
using QMAPP.FJC.Entity;
using QMAPP.FJC.Entity.FIS;
using QMAPP.FJC.Entity.MesB9;
using QMFrameWork.Data;
using QMFrameWork.Log;
namespace QMAPP.FJC.BLL.MesB9
{
public class MesB9M110BLL : BaseBLL
{
/// <summary>
/// 获取列表
/// </summary>
/// <returns>全部数据</returns>
public List<MesB9M110Entity> GetAllList()
{
try
{
return new MesB9M110DAL().GetList();
}
catch (Exception ex)
{
LogManager.LogHelper.Error(new LogInfo { ErrorInfo = ex, Tag = ex.StackTrace, Info = "获取Mes_B9表错误!" });
throw;
}
}
/// <summary>
/// 更新信息
/// </summary>
/// <param name="model"></param>
/// <returns>更新行数</returns>
public DataResult<int> Update(MesB9M110Entity model)
{
DataResult<int> result = new DataResult<int>
{
IsSuccess = true,
Msg = Resource.MsgSuccess
};
try
{
result.Result = new MesB9M110DAL().Update(model);
}
catch (Exception ex)
{
LogManager.LogHelper.Error(new LogInfo { ErrorInfo = ex, Tag = ex.StackTrace, Info = "更新Mes_B9表异常!" });
result.IsSuccess = false;
result.Msg = Resource.SystemException;
}
return result;
}
}
}