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.
73 lines
1.9 KiB
73 lines
1.9 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data;
|
|
using System.Linq;
|
|
using QMAPP.BLL;
|
|
using QMAPP.Entity;
|
|
using QMAPP.FJC.BLL.Common;
|
|
using QMAPP.FJC.BLL.FIS;
|
|
using QMAPP.FJC.DAL.CompleteStatistics;
|
|
using QMAPP.FJC.DAL.FIS;
|
|
using QMAPP.FJC.DAL.MesB9;
|
|
using QMAPP.FJC.Entity;
|
|
using QMAPP.FJC.Entity.Common.Constants;
|
|
using QMAPP.FJC.Entity.CompleteStatistics;
|
|
using QMAPP.FJC.Entity.FIS;
|
|
using QMAPP.FJC.Entity.MesB9;
|
|
using QMFrameWork.Data;
|
|
using QMFrameWork.Log;
|
|
|
|
namespace QMAPP.FJC.BLL.MesB9
|
|
{
|
|
public class MesB4M110BLL : BaseBLL
|
|
{
|
|
|
|
/// <summary>
|
|
/// 获取列表
|
|
/// </summary>
|
|
/// <param name="condition">条件</param>
|
|
/// <returns>全部数据</returns>
|
|
public List<MesB4M110Entity> GetAllList()
|
|
{
|
|
try
|
|
{
|
|
return new MesB4M110DAL().GetList();
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogManager.LogHelper.Error(new LogInfo { ErrorInfo = ex, Tag = ex.StackTrace, Info = "获取Mes_B4表错误!" });
|
|
throw;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 更新信息
|
|
/// </summary>
|
|
/// <param name="model"></param>
|
|
/// <returns>更新行数</returns>
|
|
public DataResult<int> Update(MesB4M110Entity model)
|
|
{
|
|
DataResult<int> result = new DataResult<int>
|
|
{
|
|
IsSuccess = true,
|
|
Msg = Resource.MsgSuccess
|
|
};
|
|
try
|
|
{
|
|
result.Result = new MesB4M110DAL().Update(model);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogManager.LogHelper.Error(new LogInfo { ErrorInfo = ex, Tag = ex.StackTrace, Info = "更新Mes_B4表异常!" });
|
|
result.IsSuccess = false;
|
|
result.Msg = Resource.SystemException;
|
|
}
|
|
|
|
return result;
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|