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.
98 lines
2.2 KiB
98 lines
2.2 KiB
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
|
|
{
|
|
/// <summary>
|
|
/// 作 用:线边库存大屏显示
|
|
/// 作 者:周晓东
|
|
/// 编写日期:20180530
|
|
///</summary>
|
|
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<Entity.Package.PackageSummary> GetList()
|
|
{
|
|
try
|
|
{
|
|
return new PackageDAL().GetList();
|
|
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
}
|
|
|
|
public List<Entity.Operation.Package> GetMaterialCodeList(string materialCode)
|
|
{
|
|
try
|
|
{
|
|
return new PackageDAL().GetMaterialCodeList(materialCode);
|
|
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
}
|
|
#endregion
|
|
|
|
#region 更新信息
|
|
/// <summary>
|
|
/// 更新信息
|
|
/// </summary>
|
|
/// <param name=""></param>
|
|
/// <returns>更新行数</returns>
|
|
public DataResult<int> Update(Entity.Operation.Package model)
|
|
{
|
|
DataResult<int> result = new DataResult<int>();
|
|
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
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|