77 lines
2.1 KiB
C#
77 lines
2.1 KiB
C#
using System;
|
||
using System.Collections.Generic;
|
||
using System.Linq;
|
||
using System.Text;
|
||
using WMS.Model.Base;
|
||
using WMS.IData;
|
||
using System.Data;
|
||
using WMS.Common;
|
||
|
||
namespace WMS.Business.Base
|
||
{
|
||
public class BussPrintInfo : IBussFactory
|
||
{
|
||
#region 获得打印信息
|
||
/// <summary>
|
||
/// 获得打印信息
|
||
/// </summary>
|
||
/// <param name="model"></param>
|
||
/// <returns></returns>
|
||
public List<PrintInfoModel> GetPrintInfo(PrintInfoModel model)
|
||
{
|
||
List<PrintInfoModel> list = new List<PrintInfoModel>();
|
||
DataTable dt = new DataTable();
|
||
dt = DataProvider.Instance.PrintInfo.GetPrintInfo(model);
|
||
list = ConvertHelper<PrintInfoModel>.ConvertToList(dt);
|
||
|
||
return list;
|
||
|
||
|
||
|
||
}
|
||
#endregion
|
||
|
||
#region 新增或修改打印信息
|
||
/// <summary>
|
||
/// 新增或修改打印信息
|
||
/// </summary>
|
||
/// <param name="model">打印Model</param>
|
||
/// <param name="flg">0 新增 , 1 修改</param>
|
||
/// <returns></returns>
|
||
public string InsOrUpdPrint(PrintInfoModel model, int flg)
|
||
{
|
||
Transaction = DataProvider.Instance.TranOracle;
|
||
if (flg == 0)
|
||
{
|
||
DataProvider.Instance.PrintInfo.InsertPrintInfo(model);
|
||
}
|
||
else
|
||
{
|
||
DataProvider.Instance.PrintInfo.UpdatePrintInfo(model);
|
||
}
|
||
logList.Add(DataProvider.Instance.logData);
|
||
TaCmtOrRak();
|
||
|
||
return this.ErrText;
|
||
}
|
||
#endregion
|
||
|
||
#region 删除打印信息
|
||
/// <summary>
|
||
/// 删除打印信息
|
||
/// </summary>
|
||
/// <param name="model"></param>
|
||
/// <returns></returns>
|
||
public string DelPrintInfo(PrintInfoModel model)
|
||
{
|
||
Transaction = DataProvider.Instance.TranOracle;
|
||
DataProvider.Instance.PrintInfo.DelPrintInfo(model);
|
||
logList.Add(DataProvider.Instance.logData);
|
||
TaCmtOrRak();
|
||
|
||
return this.ErrText;
|
||
}
|
||
#endregion
|
||
}
|
||
}
|