using System;
using System.Collections.Generic;
using QMAPP.BLL;
using QMAPP.Entity;
using QMAPP.FJC.DAL.Operation;
using QMAPP.FJC.DAL.Package;
using QMAPP.FJC.Entity;
using QMFrameWork.Log;
namespace QMAPP.FJC.BLL.Package
{
///
/// 作 用:线边库存大屏显示
/// 作 者:周晓东
/// 编写日期:20180530
///
public class PackageBLL : BaseBLL
{
#region 线边库存大屏显示
public Entity.Operation.Package Get(Entity.Operation.Package model)
{
try
{
return new PackageDAL().Get(model);
}
catch (Exception ex)
{
throw ex;
}
}
public List GetList()
{
try
{
return new PackageDAL().GetList();
}
catch (Exception ex)
{
return null;
}
}
public List GetMaterialCodeList(string materialCode)
{
try
{
return new PackageDAL().GetMaterialCodeList(materialCode);
}
catch (Exception ex)
{
return null;
}
}
#endregion
#region 更新信息
///
/// 更新信息
///
///
/// 更新行数
public DataResult Update(Entity.Operation.Package model)
{
DataResult result = new DataResult();
model.UPDATEUSER = this.LoginUser.UserID;
model.UPDATEDATE = DateTime.Now;
try
{
result.Result = new PackageDAL().Update(model);
result.IsSuccess = true;
}
catch (Exception ex)
{
result.IsSuccess = false;
result.Msg = Resource.SystemException;
throw ex;
}
return result;
}
#endregion
}
}