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

124 lines
3.3 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QMAPP.BLL;
using QMFrameWork.Data;
using QMAPP.Entity;
using QMFrameWork.Log;
using System.Data;
using QMAPP.MD.Entity;
using QMAPP.MD.DAL;
using QMAPP.FJC.Entity.BZD;
namespace QMAPP.FJC.BLL.BZD
{
/// </summary>
/// 模块名称:条码补打记录
/// 作 者:张松男
/// 编写日期:2021年05月21日
/// </summary>
public class BarCodeReplacementBLL : BaseBLL
{
#region 获取信息
/// <summary>
/// 获取信息
/// </summary>
/// <param name="">条件</param>
/// <returns>信息</returns>
public DataResult<BarCodeReplacement> Get(BarCodeReplacement model)
{
DataResult<BarCodeReplacement> result = new DataResult<BarCodeReplacement>();
try
{
result.Result = new BarCodeReplacementDAL().Get(model);
}
catch (Exception ex)
{
result.IsSuccess = false;
result.Msg = Resource.SystemException;
throw ex;
}
result.IsSuccess = true;
return result;
}
public BarCodeReplacement GetRecord(BarCodeReplacement model)
{
DataResult<BarCodeReplacement> result = new DataResult<BarCodeReplacement>();
try
{
return new BarCodeReplacementDAL().GetRecord(model);
}
catch (Exception ex)
{
result.IsSuccess = false;
result.Msg = Resource.SystemException;
throw ex;
}
}
#endregion
#region 获取列表(分页)
/// <summary>
/// 获取列表
/// </summary>
/// <param name="condition">条件</param>
/// <param name="page">数据页</param>
/// <returns>数据页</returns>
public DataResult<DataPage> GetList(BarCodeReplacement condition, DataPage page)
{
DataResult<DataPage> result = new DataResult<DataPage>();
try
{
//获取物料信息列表
DataPage dataPage = new BarCodeReplacementDAL().GetList(condition, page);
result.Result = dataPage;
}
catch (Exception ex)
{
result.IsSuccess = false;
throw ex;
}
result.IsSuccess = true;
return result;
}
#endregion
#region 插入信息
/// <summary>
/// 插入信息(单表)
/// </summary>
/// <param name="">信息</param>
/// <returns>插入行数</returns>
public int Insert(BarCodeReplacement info)
{
try
{
//基本信息
info.PID = Guid.NewGuid().ToString();
info.CreateUser = this.LoginUser.UserName;
BarCodeReplacementDAL cmdDAL = new BarCodeReplacementDAL();
return new BarCodeReplacementDAL().Insert(info);
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
}
}