修改依赖

This commit is contained in:
gongxh
2021-05-29 10:18:22 +08:00
parent f45796c09f
commit 12adfecd99
12 changed files with 46 additions and 40 deletions

View File

@@ -9,7 +9,7 @@ using UFIDA.U8.U8MOMAPIFramework;
namespace NX.ERP.U8.AP
{
public class APVouch : VoucherBase
public class APVouch : STVoucherBase
{
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
@@ -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
{
@@ -196,7 +196,7 @@ namespace NX.ERP.U8.AP
public string AddVocher(NX.ERP.Model.Request.ApVouch ApVouch)
{
VoucherParameter voucherParameter = new VoucherParameter
STVoucherParameter voucherParameter = new STVoucherParameter
{
VoucherType = this.VoucherID,
DomHead = new DOMDocumentClass(),

View File

@@ -63,7 +63,7 @@
<Compile Include="Store\PuStoreInDAL.cs" />
<Compile Include="Store\SaleOutDAL.cs" />
<Compile Include="Store\StockDAL.cs" />
<Compile Include="Store\VoucherBase.cs" />
<Compile Include="Store\STVoucherBase.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Base\SupplierDAL.cs" />
<Compile Include="Account\Accinformation.cs" />
@@ -74,7 +74,7 @@
<Compile Include="Base\WarehouseDAL.cs" />
<Compile Include="ufsoft.cs" />
<Compile Include="VoucherHistory.cs" />
<Compile Include="VoucherParameter.cs" />
<Compile Include="Store\STVoucherParameter.cs" />
<Compile Include="VT.cs" />
<Compile Include="XmlHelper.cs" />
</ItemGroup>

View File

@@ -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(),

View File

@@ -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(),

View File

@@ -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)
{

View File

@@ -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)

View File

@@ -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)

View File

@@ -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)
{

View File

@@ -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
{

View File

@@ -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

View File

@@ -6,7 +6,10 @@ using System.Text;
namespace NX.ERP.U8
{
public class VoucherParameter
/// <summary>
/// 库存模块
/// </summary>
public class STVoucherParameter
{
private string string_0;
@@ -268,7 +271,7 @@ namespace NX.ERP.U8
}
}
public VoucherParameter()
public STVoucherParameter()
{
isCheck = false;

View File

@@ -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)
{