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

72 lines
2.1 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QMAPP.BLL;
using QMAPP.Entity;
using QMFrameWork.Data;
using QMAPP.FJC.Entity.FIS;
using QMAPP.FJC.DAL.FIS;
using QMFrameWork.Log;
using QMAPP.FJC.Entity;
using QMAPP.FJC.BLL.Dict;
namespace QMAPP.FJC.BLL.FIS
{
/// <summary>
/// 模块编号:M16-4
/// 作 用:FIS M100生产信息逻辑层
/// 作 者:王丹丹
/// 编写日期:2015年07月10日
///</summary>
public class FISInfoBLL : BaseBLL
{
#region 获取列表
/// <summary>
/// 获取列表
/// </summary>
/// <param name="condition">条件</param>
/// <param name="page">数据页</param>
/// <returns>数据页</returns>
public DataResult<DataPage> GetList(FISInfo condition, DataPage page)
{
DataResult<DataPage> result = new DataResult<DataPage>();
try
{
//获取信息列表
DataPage dataPage = new FISInfoDAL().GetList(condition, page);
#region 转换生产标记显示类型
List<FISInfo> fisInfoList = dataPage.Result as List<FISInfo>;
DictManageBLL dictCreateFlagBll = new DictManageBLL(DictKind.CREATEFLAG);
//foreach (FISInfo m in fisInfoList)
//{
// //生产标记
// m.CREATEFLAGTXT = dictCreateFlagBll.GetDictValue(m.CREATEFLAG);
//}
#endregion
result.Result = dataPage;
}
catch (Exception ex)
{
LogManager.LogHelper.Error(new LogInfo()
{
ErrorInfo = ex,
Tag = ex.StackTrace,
Info = "FIS M100生产信息逻辑层-获取列表!"
});
result.IsSuccess = false;
result.Msg = Resource.SystemException;
throw ex;
}
result.IsSuccess = true;
return result;
}
#endregion
}
}