修改依赖
This commit is contained in:
@@ -6,7 +6,7 @@ using System.Text;
|
||||
|
||||
namespace NX.ERP.U8.Store
|
||||
{
|
||||
public class BinChangeDAL : VoucherBase
|
||||
public class BinChangeDAL : STVoucherBase
|
||||
{
|
||||
public BinChangeDAL() : base("19", "U8API/BinChange")
|
||||
{
|
||||
@@ -15,7 +15,7 @@ namespace NX.ERP.U8.Store
|
||||
|
||||
public string AddVocher(Model.Request.BinChange binChange)
|
||||
{
|
||||
VoucherParameter voucherParameter = new VoucherParameter
|
||||
STVoucherParameter voucherParameter = new STVoucherParameter
|
||||
{
|
||||
VoucherType = this.VoucherID,
|
||||
DomHead = new DOMDocumentClass(),
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace NX.ERP.U8.Store
|
||||
/// <summary>
|
||||
/// 领料申请
|
||||
/// </summary>
|
||||
public class MaterialAppDAL : VoucherBase
|
||||
public class MaterialAppDAL : STVoucherBase
|
||||
{
|
||||
public MaterialAppDAL() : base("64", "U8API/MaterialApp")
|
||||
{
|
||||
@@ -24,7 +24,7 @@ namespace NX.ERP.U8.Store
|
||||
//u8DbHelper.BeginTrans();
|
||||
try
|
||||
{
|
||||
VoucherParameter voucherParameter = new VoucherParameter
|
||||
STVoucherParameter voucherParameter = new STVoucherParameter
|
||||
{
|
||||
VoucherType = this.VoucherID,
|
||||
DomHead = new DOMDocumentClass(),
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace NX.ERP.U8.Store
|
||||
/// <summary>
|
||||
/// 材料出库单
|
||||
/// </summary>
|
||||
public class MaterialStoreOutDAL : VoucherBase
|
||||
public class MaterialStoreOutDAL : STVoucherBase
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
@@ -211,7 +211,7 @@ namespace NX.ERP.U8.Store
|
||||
/// <returns></returns>
|
||||
public string AddVocher(Model.Request.MaterialStoreOut storeOut)
|
||||
{
|
||||
VoucherParameter voucherParameter = new VoucherParameter
|
||||
STVoucherParameter voucherParameter = new STVoucherParameter
|
||||
{
|
||||
VoucherType = this.VoucherID,
|
||||
DomHead = new DOMDocumentClass(),
|
||||
@@ -296,7 +296,7 @@ namespace NX.ERP.U8.Store
|
||||
/// <param name="storeOut"></param>
|
||||
/// <param name="voucherParameter"></param>
|
||||
/// <returns></returns>
|
||||
public bool UpdateVocher(Model.Request.MaterialStoreOut storeOut, VoucherParameter voucherParameter = null)
|
||||
public bool UpdateVocher(Model.Request.MaterialStoreOut storeOut, STVoucherParameter voucherParameter = null)
|
||||
{
|
||||
if (voucherParameter == null)
|
||||
{
|
||||
|
||||
@@ -6,7 +6,7 @@ using System.Text;
|
||||
|
||||
namespace NX.ERP.U8.Store
|
||||
{
|
||||
public class OtherStoreInDAL : VoucherBase
|
||||
public class OtherStoreInDAL : STVoucherBase
|
||||
{
|
||||
public OtherStoreInDAL() : base("08", "U8API/otherin")
|
||||
{
|
||||
@@ -16,7 +16,7 @@ namespace NX.ERP.U8.Store
|
||||
public string AddVocher(Model.Request.OtherStoreInOut storeIn)
|
||||
{
|
||||
|
||||
VoucherParameter voucherParameter = new VoucherParameter
|
||||
STVoucherParameter voucherParameter = new STVoucherParameter
|
||||
{
|
||||
VoucherType = this.VoucherID,
|
||||
DomHead = new DOMDocumentClass(),
|
||||
@@ -117,7 +117,7 @@ namespace NX.ERP.U8.Store
|
||||
|
||||
|
||||
|
||||
public bool UpdateVocher(Model.Request.OtherStoreInOut storeIn, VoucherParameter voucherParameter = null)
|
||||
public bool UpdateVocher(Model.Request.OtherStoreInOut storeIn, STVoucherParameter voucherParameter = null)
|
||||
{
|
||||
|
||||
if (voucherParameter == null)
|
||||
|
||||
@@ -6,7 +6,7 @@ using System.Text;
|
||||
|
||||
namespace NX.ERP.U8.Store
|
||||
{
|
||||
public class OtherStoreOutDAL : VoucherBase
|
||||
public class OtherStoreOutDAL : STVoucherBase
|
||||
{
|
||||
public OtherStoreOutDAL() : base("09", "U8API/otherout")
|
||||
{
|
||||
@@ -16,7 +16,7 @@ namespace NX.ERP.U8.Store
|
||||
public string AddVocher(Model.Request.OtherStoreInOut storeIn)
|
||||
{
|
||||
|
||||
VoucherParameter voucherParameter = new VoucherParameter
|
||||
STVoucherParameter voucherParameter = new STVoucherParameter
|
||||
{
|
||||
VoucherType = this.VoucherID,
|
||||
DomHead = new DOMDocumentClass(),
|
||||
@@ -119,7 +119,7 @@ namespace NX.ERP.U8.Store
|
||||
|
||||
|
||||
|
||||
public bool UpdateVocher(Model.Request.OtherStoreInOut storeIn, VoucherParameter voucherParameter = null)
|
||||
public bool UpdateVocher(Model.Request.OtherStoreInOut storeIn, STVoucherParameter voucherParameter = null)
|
||||
{
|
||||
|
||||
if (voucherParameter == null)
|
||||
|
||||
@@ -7,7 +7,7 @@ using System.Text;
|
||||
|
||||
namespace NX.ERP.U8.Store
|
||||
{
|
||||
public class ProductInDAL : VoucherBase
|
||||
public class ProductInDAL : STVoucherBase
|
||||
{
|
||||
public ProductInDAL() : base("10", "U8API/ProductIn")
|
||||
{
|
||||
@@ -16,7 +16,7 @@ namespace NX.ERP.U8.Store
|
||||
|
||||
public string AddVoucher(ProductStoreIn storeIn)
|
||||
{
|
||||
VoucherParameter voucherParameter = new VoucherParameter
|
||||
STVoucherParameter voucherParameter = new STVoucherParameter
|
||||
{
|
||||
VoucherType = this.VoucherID,
|
||||
DomHead = new DOMDocumentClass(),
|
||||
@@ -108,7 +108,7 @@ namespace NX.ERP.U8.Store
|
||||
}
|
||||
|
||||
|
||||
public bool UpdateVoucher(ProductStoreIn storeIn, VoucherParameter voucherParameter=null)
|
||||
public bool UpdateVoucher(ProductStoreIn storeIn, STVoucherParameter voucherParameter=null)
|
||||
{
|
||||
if (voucherParameter == null)
|
||||
{
|
||||
|
||||
@@ -10,7 +10,7 @@ using UFIDA.U8.U8MOMAPIFramework;
|
||||
|
||||
namespace NX.ERP.U8.Store
|
||||
{
|
||||
public class PuStoreInDAL : VoucherBase
|
||||
public class PuStoreInDAL : STVoucherBase
|
||||
{
|
||||
public PuStoreInDAL() : base("01", "U8API/PuStoreIn")
|
||||
{
|
||||
@@ -25,7 +25,7 @@ namespace NX.ERP.U8.Store
|
||||
{
|
||||
try
|
||||
{
|
||||
VoucherParameter voucherParameter = new VoucherParameter
|
||||
STVoucherParameter voucherParameter = new STVoucherParameter
|
||||
{
|
||||
VoucherType = this.VoucherID,
|
||||
DomHead = new DOMDocumentClass(),
|
||||
@@ -162,7 +162,7 @@ namespace NX.ERP.U8.Store
|
||||
|
||||
|
||||
|
||||
public bool UpdateVocher(Model.Request.PuStoreIn puStoreIn, VoucherParameter voucherParameter = null)
|
||||
public bool UpdateVocher(Model.Request.PuStoreIn puStoreIn, STVoucherParameter voucherParameter = null)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
@@ -9,7 +9,10 @@ using UFIDA.U8.U8MOMAPIFramework;
|
||||
|
||||
namespace NX.ERP.U8.Store
|
||||
{
|
||||
public abstract class VoucherBase
|
||||
/// <summary>
|
||||
/// 库存模板基础类
|
||||
/// </summary>
|
||||
public abstract class STVoucherBase
|
||||
{
|
||||
private string voucherID;
|
||||
|
||||
@@ -19,7 +22,7 @@ namespace NX.ERP.U8.Store
|
||||
|
||||
private const string FLODER_NAME = "xml";
|
||||
|
||||
static VoucherBase()
|
||||
static STVoucherBase()
|
||||
{
|
||||
BasePath = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, FLODER_NAME);
|
||||
|
||||
@@ -84,7 +87,7 @@ namespace NX.ERP.U8.Store
|
||||
return this.voucherID;
|
||||
}
|
||||
}
|
||||
public VoucherBase(string voucherID, string Url)
|
||||
public STVoucherBase(string voucherID, string Url)
|
||||
{
|
||||
this.voucherID = voucherID;
|
||||
this.BaseUrl = Url;
|
||||
@@ -131,7 +134,7 @@ namespace NX.ERP.U8.Store
|
||||
|
||||
|
||||
|
||||
protected virtual void LoadRdVoucher(VoucherParameter para)
|
||||
protected virtual void LoadRdVoucher(STVoucherParameter para)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -204,7 +207,7 @@ namespace NX.ERP.U8.Store
|
||||
|
||||
|
||||
|
||||
protected bool UpdateRdVoucher(VoucherParameter para)
|
||||
protected bool UpdateRdVoucher(STVoucherParameter para)
|
||||
{
|
||||
|
||||
|
||||
@@ -286,7 +289,7 @@ namespace NX.ERP.U8.Store
|
||||
}
|
||||
|
||||
|
||||
protected virtual string AddRdVoucher(VoucherParameter para)
|
||||
protected virtual string AddRdVoucher(STVoucherParameter para)
|
||||
{
|
||||
string VoucherId;
|
||||
|
||||
@@ -381,9 +384,9 @@ namespace NX.ERP.U8.Store
|
||||
|
||||
|
||||
|
||||
protected VoucherParameter LoadVoucher(string where)
|
||||
protected STVoucherParameter LoadVoucher(string where)
|
||||
{
|
||||
var rdVoucherParameter = new VoucherParameter
|
||||
var rdVoucherParameter = new STVoucherParameter
|
||||
{
|
||||
VoucherType = this.VoucherID,
|
||||
IsGetBlank = false,
|
||||
@@ -402,11 +405,11 @@ namespace NX.ERP.U8.Store
|
||||
|
||||
private void LoadTemplate()
|
||||
{
|
||||
VoucherParameter rdVoucherParameter = null;
|
||||
STVoucherParameter rdVoucherParameter = null;
|
||||
try
|
||||
{
|
||||
|
||||
rdVoucherParameter = new VoucherParameter
|
||||
rdVoucherParameter = new STVoucherParameter
|
||||
{
|
||||
VoucherType = this.VoucherID,
|
||||
IsGetBlank = true
|
||||
282
NX.ERP.U8/Store/STVoucherParameter.cs
Normal file
282
NX.ERP.U8/Store/STVoucherParameter.cs
Normal file
@@ -0,0 +1,282 @@
|
||||
using MSXML2;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace NX.ERP.U8
|
||||
{
|
||||
/// <summary>
|
||||
/// 库存模块
|
||||
/// </summary>
|
||||
public class STVoucherParameter
|
||||
{
|
||||
private string string_0;
|
||||
|
||||
private DOMDocument domHead;
|
||||
|
||||
private DOMDocument domBody;
|
||||
|
||||
private DOMDocument domPosition;
|
||||
|
||||
private string errMsg;
|
||||
|
||||
private string string_2;
|
||||
|
||||
private DOMDocument domMsg;
|
||||
|
||||
private bool isCheck;
|
||||
|
||||
private bool isBeforCheckStock;
|
||||
|
||||
private bool isRedVouch;
|
||||
|
||||
private bool isReMote;
|
||||
|
||||
private string addedState;
|
||||
|
||||
private object timeStamp;
|
||||
|
||||
private string voucherCode;
|
||||
|
||||
|
||||
|
||||
private bool returnValue;
|
||||
|
||||
private string strWhere;
|
||||
|
||||
private bool isGetBlank;
|
||||
|
||||
private string sBodyWhere_Order;
|
||||
|
||||
|
||||
public ADODB.Connection cnnFrom { get; set; } = null;
|
||||
|
||||
|
||||
public string SBodyWhere_Order
|
||||
{
|
||||
get
|
||||
{
|
||||
return sBodyWhere_Order;
|
||||
}
|
||||
set
|
||||
{
|
||||
sBodyWhere_Order = value;
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsGetBlank
|
||||
{
|
||||
get
|
||||
{
|
||||
return isGetBlank;
|
||||
}
|
||||
set
|
||||
{
|
||||
isGetBlank = value;
|
||||
}
|
||||
}
|
||||
|
||||
public string StrWhere
|
||||
{
|
||||
get
|
||||
{
|
||||
return strWhere;
|
||||
}
|
||||
set
|
||||
{
|
||||
strWhere = value;
|
||||
}
|
||||
}
|
||||
|
||||
public bool ReturnValue
|
||||
{
|
||||
get
|
||||
{
|
||||
return returnValue;
|
||||
}
|
||||
set
|
||||
{
|
||||
returnValue = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public string VoucherCode
|
||||
{
|
||||
get
|
||||
{
|
||||
return voucherCode;
|
||||
}
|
||||
set
|
||||
{
|
||||
voucherCode = value;
|
||||
}
|
||||
}
|
||||
|
||||
public string VoucherType
|
||||
{
|
||||
get
|
||||
{
|
||||
return string_0;
|
||||
}
|
||||
set
|
||||
{
|
||||
string_0 = value;
|
||||
}
|
||||
}
|
||||
|
||||
public DOMDocument DomHead
|
||||
{
|
||||
get
|
||||
{
|
||||
return domHead;
|
||||
}
|
||||
set
|
||||
{
|
||||
domHead = value;
|
||||
}
|
||||
}
|
||||
|
||||
public DOMDocument DomBody
|
||||
{
|
||||
get
|
||||
{
|
||||
return domBody;
|
||||
}
|
||||
set
|
||||
{
|
||||
domBody = value;
|
||||
}
|
||||
}
|
||||
|
||||
public DOMDocument DomPosition
|
||||
{
|
||||
get
|
||||
{
|
||||
return domPosition;
|
||||
}
|
||||
set
|
||||
{
|
||||
domPosition = value;
|
||||
}
|
||||
}
|
||||
|
||||
public string ErrMsg
|
||||
{
|
||||
get
|
||||
{
|
||||
return errMsg;
|
||||
}
|
||||
set
|
||||
{
|
||||
errMsg = value;
|
||||
}
|
||||
}
|
||||
|
||||
public string VoucherId
|
||||
{
|
||||
get
|
||||
{
|
||||
return string_2;
|
||||
}
|
||||
set
|
||||
{
|
||||
string_2 = value;
|
||||
}
|
||||
}
|
||||
|
||||
public DOMDocument DOMMsg
|
||||
{
|
||||
get
|
||||
{
|
||||
return domMsg;
|
||||
}
|
||||
set
|
||||
{
|
||||
domMsg = value;
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsCheck
|
||||
{
|
||||
get
|
||||
{
|
||||
return isCheck;
|
||||
}
|
||||
set
|
||||
{
|
||||
isCheck = value;
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsBeforCheckStock
|
||||
{
|
||||
get
|
||||
{
|
||||
return isBeforCheckStock;
|
||||
}
|
||||
set
|
||||
{
|
||||
isBeforCheckStock = value;
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsRedVouch
|
||||
{
|
||||
get
|
||||
{
|
||||
return isRedVouch;
|
||||
}
|
||||
set
|
||||
{
|
||||
isRedVouch = value;
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsReMote
|
||||
{
|
||||
get
|
||||
{
|
||||
return isReMote;
|
||||
}
|
||||
set
|
||||
{
|
||||
isReMote = value;
|
||||
}
|
||||
}
|
||||
|
||||
public string AddedState
|
||||
{
|
||||
get
|
||||
{
|
||||
return addedState;
|
||||
}
|
||||
set
|
||||
{
|
||||
addedState = value;
|
||||
}
|
||||
}
|
||||
|
||||
public object TimeStamp
|
||||
{
|
||||
get
|
||||
{
|
||||
return timeStamp;
|
||||
}
|
||||
set
|
||||
{
|
||||
timeStamp = value;
|
||||
}
|
||||
}
|
||||
|
||||
public STVoucherParameter()
|
||||
{
|
||||
|
||||
isCheck = false;
|
||||
isBeforCheckStock = false;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -7,7 +7,7 @@ using System.Text;
|
||||
|
||||
namespace NX.ERP.U8.Store
|
||||
{
|
||||
public class SaleOutDAL : VoucherBase
|
||||
public class SaleOutDAL : STVoucherBase
|
||||
{
|
||||
public SaleOutDAL() : base("32", "U8API/saleout")
|
||||
{
|
||||
@@ -18,7 +18,7 @@ namespace NX.ERP.U8.Store
|
||||
public string AddVoucher(SaleStoreOut storeOut)
|
||||
{
|
||||
|
||||
VoucherParameter voucherParameter = new VoucherParameter
|
||||
STVoucherParameter voucherParameter = new STVoucherParameter
|
||||
{
|
||||
VoucherType = this.VoucherID,
|
||||
DomHead = new DOMDocumentClass(),
|
||||
@@ -125,7 +125,7 @@ namespace NX.ERP.U8.Store
|
||||
|
||||
|
||||
|
||||
public bool UpdateVoucher(SaleStoreOut storeOut, VoucherParameter voucherParameter = null)
|
||||
public bool UpdateVoucher(SaleStoreOut storeOut, STVoucherParameter voucherParameter = null)
|
||||
{
|
||||
if (voucherParameter == null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user