using System;
|
using System.Collections.Generic;
|
using System.Text;
|
using System.Data;
|
|
namespace DAL
|
{
|
public class ClsKf_XCMoveStockBill_K3:DBUtility.ClsXt_BaseBill
|
{
|
public Model.ClsKf_XCMoveStockBillMain_K3 omodel = new Model.ClsKf_XCMoveStockBillMain_K3();
|
public List<Model.ClsKf_XCMoveStockBillSub_K3> DetailColl = new List<Model.ClsKf_XCMoveStockBillSub_K3>();
|
public SQLHelper.ClsCNK3 oCnK3 = new SQLHelper.ClsCNK3();
|
|
public ClsKf_XCMoveStockBill_K3()
|
{
|
base.MvarItemKeySub = "POStockBillEntry";
|
base.MvarItemKeySub2 = "";
|
base.MvarItemKeySub3 = "";
|
base.MvarItemKeySub4 = "";
|
base.MvarItemKey = "POStockBill";
|
base.MvarReportTitle = "虚仓调拨单";
|
base.BillType = "74";
|
}
|
|
#region 固定代码
|
|
~ClsKf_XCMoveStockBill_K3()
|
{
|
DetailColl = null;
|
}
|
|
#endregion 自定义方法
|
|
//条码扫描记录,新增到条码出入库表
|
public bool AddBill_WMS_PDA(ref string sReturn)
|
{
|
try
|
{
|
DataSet Ds;
|
oCn.BeginTran();
|
//删除主表
|
//oCn.RunProc("Delete From Kf_ICStockBillSub_WMS where HInterID=" + omodel.HInterID.ToString());
|
//插入子表
|
oCn.RunProc("EXEC h_p_Kf_ICStockBillSub_WMS_Insert " + omodel.HInterID.ToString() + ",'" + this.BillType + "','" + omodel.HBillNo + "'");
|
//
|
sReturn = "新增成功!";
|
oCn.Commit();
|
return true;
|
}
|
catch (Exception e)
|
{
|
sReturn = e.Message;
|
oCn.RollBack();
|
throw (e);
|
}
|
}
|
|
//条码扫描记录,新增到条码出入库表
|
public bool AddBill_WMS_PDA(Int64 sHSourceInterID, Int64 sHSourceEntryID, ref string sReturn)
|
{
|
try
|
{
|
DataSet Ds;
|
oCn.BeginTran();
|
//删除主表
|
//oCn.RunProc("Delete From Kf_ICStockBillSub_WMS where HInterID=" + omodel.HInterID.ToString());
|
//插入子表
|
oCn.RunProc("EXEC h_p_Kf_ICStockBillSub_WMS_RowInsert " + sHSourceEntryID.ToString() + "," + sHSourceEntryID.ToString() + ",'" + this.BillType + "'");
|
//更新 单据自定义字段(已提交)
|
oCn.RunProc("EXEC h_p_K3_XCMoveStock_Status_UPDate " + sHSourceEntryID.ToString() + "," + sHSourceEntryID.ToString() + ",'" + this.BillType + "'");
|
//
|
sReturn = "新增成功!";
|
oCn.Commit();
|
return true;
|
}
|
catch (Exception e)
|
{
|
sReturn = e.Message;
|
oCn.RollBack();
|
throw (e);
|
}
|
}
|
|
|
|
|
}
|
}
|