修改依赖
This commit is contained in:
@@ -9,7 +9,7 @@ using UFIDA.U8.U8MOMAPIFramework;
|
|||||||
|
|
||||||
namespace NX.ERP.U8.AP
|
namespace NX.ERP.U8.AP
|
||||||
{
|
{
|
||||||
public class APVouch : VoucherBase
|
public class APVouch : STVoucherBase
|
||||||
{
|
{
|
||||||
public APVouch() : base("应付单", "U8API/APVouch")
|
public APVouch() : base("应付单", "U8API/APVouch")
|
||||||
{
|
{
|
||||||
@@ -47,7 +47,7 @@ namespace NX.ERP.U8.AP
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
protected override void LoadRdVoucher(VoucherParameter para)
|
protected override void LoadRdVoucher(STVoucherParameter para)
|
||||||
{
|
{
|
||||||
|
|
||||||
try
|
try
|
||||||
@@ -110,7 +110,7 @@ namespace NX.ERP.U8.AP
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
protected override string AddRdVoucher(VoucherParameter para)
|
protected override string AddRdVoucher(STVoucherParameter para)
|
||||||
{
|
{
|
||||||
U8EnvContext u8EnvContext = new U8EnvContext
|
U8EnvContext u8EnvContext = new U8EnvContext
|
||||||
{
|
{
|
||||||
@@ -196,7 +196,7 @@ namespace NX.ERP.U8.AP
|
|||||||
public string AddVocher(NX.ERP.Model.Request.ApVouch ApVouch)
|
public string AddVocher(NX.ERP.Model.Request.ApVouch ApVouch)
|
||||||
{
|
{
|
||||||
|
|
||||||
VoucherParameter voucherParameter = new VoucherParameter
|
STVoucherParameter voucherParameter = new STVoucherParameter
|
||||||
{
|
{
|
||||||
VoucherType = this.VoucherID,
|
VoucherType = this.VoucherID,
|
||||||
DomHead = new DOMDocumentClass(),
|
DomHead = new DOMDocumentClass(),
|
||||||
|
|||||||
@@ -63,7 +63,7 @@
|
|||||||
<Compile Include="Store\PuStoreInDAL.cs" />
|
<Compile Include="Store\PuStoreInDAL.cs" />
|
||||||
<Compile Include="Store\SaleOutDAL.cs" />
|
<Compile Include="Store\SaleOutDAL.cs" />
|
||||||
<Compile Include="Store\StockDAL.cs" />
|
<Compile Include="Store\StockDAL.cs" />
|
||||||
<Compile Include="Store\VoucherBase.cs" />
|
<Compile Include="Store\STVoucherBase.cs" />
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
<Compile Include="Base\SupplierDAL.cs" />
|
<Compile Include="Base\SupplierDAL.cs" />
|
||||||
<Compile Include="Account\Accinformation.cs" />
|
<Compile Include="Account\Accinformation.cs" />
|
||||||
@@ -74,7 +74,7 @@
|
|||||||
<Compile Include="Base\WarehouseDAL.cs" />
|
<Compile Include="Base\WarehouseDAL.cs" />
|
||||||
<Compile Include="ufsoft.cs" />
|
<Compile Include="ufsoft.cs" />
|
||||||
<Compile Include="VoucherHistory.cs" />
|
<Compile Include="VoucherHistory.cs" />
|
||||||
<Compile Include="VoucherParameter.cs" />
|
<Compile Include="Store\STVoucherParameter.cs" />
|
||||||
<Compile Include="VT.cs" />
|
<Compile Include="VT.cs" />
|
||||||
<Compile Include="XmlHelper.cs" />
|
<Compile Include="XmlHelper.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ using System.Text;
|
|||||||
|
|
||||||
namespace NX.ERP.U8.Store
|
namespace NX.ERP.U8.Store
|
||||||
{
|
{
|
||||||
public class BinChangeDAL : VoucherBase
|
public class BinChangeDAL : STVoucherBase
|
||||||
{
|
{
|
||||||
public BinChangeDAL() : base("19", "U8API/BinChange")
|
public BinChangeDAL() : base("19", "U8API/BinChange")
|
||||||
{
|
{
|
||||||
@@ -15,7 +15,7 @@ namespace NX.ERP.U8.Store
|
|||||||
|
|
||||||
public string AddVocher(Model.Request.BinChange binChange)
|
public string AddVocher(Model.Request.BinChange binChange)
|
||||||
{
|
{
|
||||||
VoucherParameter voucherParameter = new VoucherParameter
|
STVoucherParameter voucherParameter = new STVoucherParameter
|
||||||
{
|
{
|
||||||
VoucherType = this.VoucherID,
|
VoucherType = this.VoucherID,
|
||||||
DomHead = new DOMDocumentClass(),
|
DomHead = new DOMDocumentClass(),
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ namespace NX.ERP.U8.Store
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 领料申请
|
/// 领料申请
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class MaterialAppDAL : VoucherBase
|
public class MaterialAppDAL : STVoucherBase
|
||||||
{
|
{
|
||||||
public MaterialAppDAL() : base("64", "U8API/MaterialApp")
|
public MaterialAppDAL() : base("64", "U8API/MaterialApp")
|
||||||
{
|
{
|
||||||
@@ -24,7 +24,7 @@ namespace NX.ERP.U8.Store
|
|||||||
//u8DbHelper.BeginTrans();
|
//u8DbHelper.BeginTrans();
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
VoucherParameter voucherParameter = new VoucherParameter
|
STVoucherParameter voucherParameter = new STVoucherParameter
|
||||||
{
|
{
|
||||||
VoucherType = this.VoucherID,
|
VoucherType = this.VoucherID,
|
||||||
DomHead = new DOMDocumentClass(),
|
DomHead = new DOMDocumentClass(),
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ namespace NX.ERP.U8.Store
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 材料出库单
|
/// 材料出库单
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class MaterialStoreOutDAL : VoucherBase
|
public class MaterialStoreOutDAL : STVoucherBase
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
@@ -211,7 +211,7 @@ namespace NX.ERP.U8.Store
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public string AddVocher(Model.Request.MaterialStoreOut storeOut)
|
public string AddVocher(Model.Request.MaterialStoreOut storeOut)
|
||||||
{
|
{
|
||||||
VoucherParameter voucherParameter = new VoucherParameter
|
STVoucherParameter voucherParameter = new STVoucherParameter
|
||||||
{
|
{
|
||||||
VoucherType = this.VoucherID,
|
VoucherType = this.VoucherID,
|
||||||
DomHead = new DOMDocumentClass(),
|
DomHead = new DOMDocumentClass(),
|
||||||
@@ -296,7 +296,7 @@ namespace NX.ERP.U8.Store
|
|||||||
/// <param name="storeOut"></param>
|
/// <param name="storeOut"></param>
|
||||||
/// <param name="voucherParameter"></param>
|
/// <param name="voucherParameter"></param>
|
||||||
/// <returns></returns>
|
/// <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)
|
if (voucherParameter == null)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ using System.Text;
|
|||||||
|
|
||||||
namespace NX.ERP.U8.Store
|
namespace NX.ERP.U8.Store
|
||||||
{
|
{
|
||||||
public class OtherStoreInDAL : VoucherBase
|
public class OtherStoreInDAL : STVoucherBase
|
||||||
{
|
{
|
||||||
public OtherStoreInDAL() : base("08", "U8API/otherin")
|
public OtherStoreInDAL() : base("08", "U8API/otherin")
|
||||||
{
|
{
|
||||||
@@ -16,7 +16,7 @@ namespace NX.ERP.U8.Store
|
|||||||
public string AddVocher(Model.Request.OtherStoreInOut storeIn)
|
public string AddVocher(Model.Request.OtherStoreInOut storeIn)
|
||||||
{
|
{
|
||||||
|
|
||||||
VoucherParameter voucherParameter = new VoucherParameter
|
STVoucherParameter voucherParameter = new STVoucherParameter
|
||||||
{
|
{
|
||||||
VoucherType = this.VoucherID,
|
VoucherType = this.VoucherID,
|
||||||
DomHead = new DOMDocumentClass(),
|
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)
|
if (voucherParameter == null)
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ using System.Text;
|
|||||||
|
|
||||||
namespace NX.ERP.U8.Store
|
namespace NX.ERP.U8.Store
|
||||||
{
|
{
|
||||||
public class OtherStoreOutDAL : VoucherBase
|
public class OtherStoreOutDAL : STVoucherBase
|
||||||
{
|
{
|
||||||
public OtherStoreOutDAL() : base("09", "U8API/otherout")
|
public OtherStoreOutDAL() : base("09", "U8API/otherout")
|
||||||
{
|
{
|
||||||
@@ -16,7 +16,7 @@ namespace NX.ERP.U8.Store
|
|||||||
public string AddVocher(Model.Request.OtherStoreInOut storeIn)
|
public string AddVocher(Model.Request.OtherStoreInOut storeIn)
|
||||||
{
|
{
|
||||||
|
|
||||||
VoucherParameter voucherParameter = new VoucherParameter
|
STVoucherParameter voucherParameter = new STVoucherParameter
|
||||||
{
|
{
|
||||||
VoucherType = this.VoucherID,
|
VoucherType = this.VoucherID,
|
||||||
DomHead = new DOMDocumentClass(),
|
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)
|
if (voucherParameter == null)
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ using System.Text;
|
|||||||
|
|
||||||
namespace NX.ERP.U8.Store
|
namespace NX.ERP.U8.Store
|
||||||
{
|
{
|
||||||
public class ProductInDAL : VoucherBase
|
public class ProductInDAL : STVoucherBase
|
||||||
{
|
{
|
||||||
public ProductInDAL() : base("10", "U8API/ProductIn")
|
public ProductInDAL() : base("10", "U8API/ProductIn")
|
||||||
{
|
{
|
||||||
@@ -16,7 +16,7 @@ namespace NX.ERP.U8.Store
|
|||||||
|
|
||||||
public string AddVoucher(ProductStoreIn storeIn)
|
public string AddVoucher(ProductStoreIn storeIn)
|
||||||
{
|
{
|
||||||
VoucherParameter voucherParameter = new VoucherParameter
|
STVoucherParameter voucherParameter = new STVoucherParameter
|
||||||
{
|
{
|
||||||
VoucherType = this.VoucherID,
|
VoucherType = this.VoucherID,
|
||||||
DomHead = new DOMDocumentClass(),
|
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)
|
if (voucherParameter == null)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ using UFIDA.U8.U8MOMAPIFramework;
|
|||||||
|
|
||||||
namespace NX.ERP.U8.Store
|
namespace NX.ERP.U8.Store
|
||||||
{
|
{
|
||||||
public class PuStoreInDAL : VoucherBase
|
public class PuStoreInDAL : STVoucherBase
|
||||||
{
|
{
|
||||||
public PuStoreInDAL() : base("01", "U8API/PuStoreIn")
|
public PuStoreInDAL() : base("01", "U8API/PuStoreIn")
|
||||||
{
|
{
|
||||||
@@ -25,7 +25,7 @@ namespace NX.ERP.U8.Store
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
VoucherParameter voucherParameter = new VoucherParameter
|
STVoucherParameter voucherParameter = new STVoucherParameter
|
||||||
{
|
{
|
||||||
VoucherType = this.VoucherID,
|
VoucherType = this.VoucherID,
|
||||||
DomHead = new DOMDocumentClass(),
|
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
|
try
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,7 +9,10 @@ using UFIDA.U8.U8MOMAPIFramework;
|
|||||||
|
|
||||||
namespace NX.ERP.U8.Store
|
namespace NX.ERP.U8.Store
|
||||||
{
|
{
|
||||||
public abstract class VoucherBase
|
/// <summary>
|
||||||
|
/// 库存模板基础类
|
||||||
|
/// </summary>
|
||||||
|
public abstract class STVoucherBase
|
||||||
{
|
{
|
||||||
private string voucherID;
|
private string voucherID;
|
||||||
|
|
||||||
@@ -19,7 +22,7 @@ namespace NX.ERP.U8.Store
|
|||||||
|
|
||||||
private const string FLODER_NAME = "xml";
|
private const string FLODER_NAME = "xml";
|
||||||
|
|
||||||
static VoucherBase()
|
static STVoucherBase()
|
||||||
{
|
{
|
||||||
BasePath = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, FLODER_NAME);
|
BasePath = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, FLODER_NAME);
|
||||||
|
|
||||||
@@ -84,7 +87,7 @@ namespace NX.ERP.U8.Store
|
|||||||
return this.voucherID;
|
return this.voucherID;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public VoucherBase(string voucherID, string Url)
|
public STVoucherBase(string voucherID, string Url)
|
||||||
{
|
{
|
||||||
this.voucherID = voucherID;
|
this.voucherID = voucherID;
|
||||||
this.BaseUrl = Url;
|
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
|
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;
|
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,
|
VoucherType = this.VoucherID,
|
||||||
IsGetBlank = false,
|
IsGetBlank = false,
|
||||||
@@ -402,11 +405,11 @@ namespace NX.ERP.U8.Store
|
|||||||
|
|
||||||
private void LoadTemplate()
|
private void LoadTemplate()
|
||||||
{
|
{
|
||||||
VoucherParameter rdVoucherParameter = null;
|
STVoucherParameter rdVoucherParameter = null;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
||||||
rdVoucherParameter = new VoucherParameter
|
rdVoucherParameter = new STVoucherParameter
|
||||||
{
|
{
|
||||||
VoucherType = this.VoucherID,
|
VoucherType = this.VoucherID,
|
||||||
IsGetBlank = true
|
IsGetBlank = true
|
||||||
@@ -6,7 +6,10 @@ using System.Text;
|
|||||||
|
|
||||||
namespace NX.ERP.U8
|
namespace NX.ERP.U8
|
||||||
{
|
{
|
||||||
public class VoucherParameter
|
/// <summary>
|
||||||
|
/// 库存模块
|
||||||
|
/// </summary>
|
||||||
|
public class STVoucherParameter
|
||||||
{
|
{
|
||||||
private string string_0;
|
private string string_0;
|
||||||
|
|
||||||
@@ -268,7 +271,7 @@ namespace NX.ERP.U8
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public VoucherParameter()
|
public STVoucherParameter()
|
||||||
{
|
{
|
||||||
|
|
||||||
isCheck = false;
|
isCheck = false;
|
||||||
@@ -7,7 +7,7 @@ using System.Text;
|
|||||||
|
|
||||||
namespace NX.ERP.U8.Store
|
namespace NX.ERP.U8.Store
|
||||||
{
|
{
|
||||||
public class SaleOutDAL : VoucherBase
|
public class SaleOutDAL : STVoucherBase
|
||||||
{
|
{
|
||||||
public SaleOutDAL() : base("32", "U8API/saleout")
|
public SaleOutDAL() : base("32", "U8API/saleout")
|
||||||
{
|
{
|
||||||
@@ -18,7 +18,7 @@ namespace NX.ERP.U8.Store
|
|||||||
public string AddVoucher(SaleStoreOut storeOut)
|
public string AddVoucher(SaleStoreOut storeOut)
|
||||||
{
|
{
|
||||||
|
|
||||||
VoucherParameter voucherParameter = new VoucherParameter
|
STVoucherParameter voucherParameter = new STVoucherParameter
|
||||||
{
|
{
|
||||||
VoucherType = this.VoucherID,
|
VoucherType = this.VoucherID,
|
||||||
DomHead = new DOMDocumentClass(),
|
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)
|
if (voucherParameter == null)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user