修正项目结构

This commit is contained in:
admin
2021-01-15 09:26:17 +08:00
parent 62bd133757
commit a2fd7eca0b
44 changed files with 230 additions and 73 deletions

View File

@@ -21,7 +21,7 @@ namespace NX.ERP.U8.Store
public string AddVocher(MaterielStoreOut storeOut)
public string AddVocher(Model.Request.MaterielStoreOut storeOut)
{
VoucherParameter voucherParameter = new VoucherParameter
{
@@ -65,8 +65,8 @@ namespace NX.ERP.U8.Store
for (var n = 0; n < storeOut.Details.Count(); n++)
{
var detail = storeOut.Details[n];
var alllocate = Order.moAllocates.First(m => { return m.Id == detail.sorceDetailId; });
var moomDetail = Order.momDetails.First(m => { return m.Id == alllocate.ModId; });
var alllocate = Order.Allocates.First(m => { return m.Id == detail.sorceDetailId; });
var moomDetail = Order.Details.First(m => { return m.Id == alllocate.ModId; });
bodyXml = domBody.createElement("z:row");
bodyXml.setAttribute("autoid", n);
bodyXml.setAttribute("cinvcode", detail.Cinvcode);
@@ -74,7 +74,7 @@ namespace NX.ERP.U8.Store
bodyXml.setAttribute("irowno", n + 1);
bodyXml.setAttribute("cbatch", "");
bodyXml.setAttribute("cvmivencode", "");
bodyXml.setAttribute("cposition", detail.BinCode);
bodyXml.setAttribute("cposition", detail.Position);
bodyXml.setAttribute("editprop", "A");
bodyXml.setAttribute("innum", 10);
bodyXml.setAttribute("autoid", storeOut.Id);

View File

@@ -62,7 +62,7 @@ namespace NX.ERP.U8.Store
bodyXml.setAttribute("editprop", "A");
bodyXml.setAttribute("cbatch", detail.Batch);
bodyXml.setAttribute("cposition", detail.Position);
var momOrderDetail = momOrder.momDetails.First(m => { return m.Id == detail.SourceDetailId; });
var momOrderDetail = momOrder.Details.First(m => { return m.Id == detail.SourceDetailId; });
headXml.setAttribute("cmpocode", momOrder.Code);
headXml.setAttribute("iproorderid", momOrder.Id);
domBody.selectSingleNode("//rs:data").appendChild(bodyXml);

View File

@@ -19,7 +19,7 @@ namespace NX.ERP.U8.Store
/// 保存一个采购到货单
/// </summary>
/// <param name="puStoreIn"></param>
public string AddVocher(Model.Store.PuStoreIn puStoreIn)
public string AddVocher(Model.Request.PuStoreIn puStoreIn)
{
VoucherParameter voucherParameter = new VoucherParameter
@@ -43,13 +43,13 @@ namespace NX.ERP.U8.Store
headXml.setAttribute("bpufirst", "0"); //DomHead[0]["bpufirst"] = ""; //采购期初标志,string类型
headXml.setAttribute("brdflag", 1); //DomHead[0]["brdflag"] = ""; //收发标志,int类型
headXml.setAttribute("csource", puStoreIn.Source); //DomHead[0]["csource"] = ""; //单据来源,int类型
headXml.setAttribute("cmaker", U8LoginContext.Instance.LoginUserName);//DomHead[0]["cmaker"] = ""; //制单人,string类型
headXml.setAttribute("cmaker", puStoreIn.Maker);//DomHead[0]["cmaker"] = ""; //制单人,string类型
headXml.setAttribute("vt_id", "27");
headXml.setAttribute("editprop", "A");
headXml.setAttribute("cdepcode", puStoreIn.Depcode);
headXml.setAttribute("cpersoncode", puStoreIn.PersonCode);
headXml.setAttribute("crdcode", puStoreIn.RdCode);
headXml.setAttribute("cwhcode", "1");
headXml.setAttribute("crdcode", "101" /*puStoreIn.RdCode*/);
headXml.setAttribute("cwhcode", puStoreIn.Whcode);
headXml.setAttribute("bisstqc", "0");
if (puStoreIn.Source == "采购到货单")
{
@@ -74,11 +74,13 @@ namespace NX.ERP.U8.Store
bodyXml = domBody.createElement("z:row");
bodyXml.setAttribute("cinvcode", detail.Invcode);
bodyXml.setAttribute("iquantity", detail.Quantity);
bodyXml.setAttribute("irowno", n+1);
bodyXml.setAttribute("irowno", n + 1);
bodyXml.setAttribute("cbvencode", "10001");
bodyXml.setAttribute("inquantity", detail.Quantity); //应收数量,double类型
bodyXml.setAttribute("cbatch", detail.Batch);
bodyXml.setAttribute("innum", 0);
bodyXml.setAttribute("cposition", detail.Position);
// bodyXml.setAttribute("cposname", "B1Y1H001"); //货位,string类型
//iXMLDOMElement.setAttribute("carvcode", Arrival.ArrivalCode);
bodyXml.setAttribute("cbarvcode", Arrival.ArrivalCode);
bodyXml.setAttribute("ipurarriveid", Arrival.Id);
@@ -107,7 +109,7 @@ namespace NX.ERP.U8.Store
}
domHead.selectSingleNode("//rs:data").appendChild(headXml);
try
{
return AddRdVoucher(voucherParameter);