修改库存查询
This commit is contained in:
@@ -36,14 +36,10 @@ namespace NX.ERP.U8.Store
|
||||
if (metailApp == null)
|
||||
{
|
||||
throw new Exception("未知的领料申请单");
|
||||
|
||||
}
|
||||
|
||||
headXml.setAttribute("cbustype", "领料");
|
||||
headXml.setAttribute("cbuscode", metailApp.Code);
|
||||
|
||||
string lastProductNo = null;
|
||||
|
||||
string lastProductNo = null;
|
||||
IXMLDOMElement bodyXml;
|
||||
for (var n = 0; n < storeOut.Details.Count(); n++)
|
||||
{
|
||||
@@ -53,14 +49,10 @@ namespace NX.ERP.U8.Store
|
||||
{
|
||||
throw new Exception("未知明细");
|
||||
}
|
||||
|
||||
|
||||
bodyXml = domBody.createElement("z:row");
|
||||
|
||||
var metail = new NX.ERP.U8.MaterialDAL().GetInvPrice(detail.InvCode, 1, storeOut.Whcode, out var _cost);
|
||||
bodyXml.setAttribute("iunitcost", _cost);
|
||||
bodyXml.setAttribute("imaids", materialAppDetail.MaterialAppDtlId);
|
||||
|
||||
bodyXml.setAttribute("imaids", materialAppDetail.MaterialAppDtlId);//
|
||||
var info = new Account.Accinformation();
|
||||
bodyXml.setAttribute("iprice", info.FormatMoney(_cost * detail.Quantity));
|
||||
bodyXml.setAttribute("cinvcode", detail.InvCode);
|
||||
@@ -71,10 +63,8 @@ namespace NX.ERP.U8.Store
|
||||
bodyXml.setAttribute("cposition", detail.Position);
|
||||
bodyXml.setAttribute("editprop", "A");
|
||||
bodyXml.setAttribute("innum", 10);
|
||||
|
||||
bodyXml.setAttribute("imoseq", materialAppDetail.Moseq);
|
||||
bodyXml.setAttribute("inquantity", materialAppDetail.Quantit- materialAppDetail.OutQuantity);
|
||||
|
||||
bodyXml.setAttribute("inquantity", materialAppDetail.Quantit- materialAppDetail.OutQuantity);
|
||||
bodyXml.setAttribute("crejectcode", materialAppDetail.RejectCode);
|
||||
bodyXml.setAttribute("iOMoMID", materialAppDetail.OmomId);
|
||||
bodyXml.setAttribute("iopseq", materialAppDetail.OpSeq);
|
||||
@@ -100,10 +90,6 @@ namespace NX.ERP.U8.Store
|
||||
bodyXml.setAttribute("cpesocode", materialAppDetail.PesoCode);
|
||||
bodyXml.setAttribute("ipesodid", materialAppDetail.PesodId);
|
||||
bodyXml.setAttribute("ipesoseq", materialAppDetail.PesoSeq);
|
||||
|
||||
|
||||
|
||||
|
||||
domBody.selectSingleNode("//rs:data").appendChild(bodyXml);
|
||||
|
||||
}
|
||||
@@ -198,7 +184,11 @@ namespace NX.ERP.U8.Store
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="storeOut"></param>
|
||||
/// <returns></returns>
|
||||
public string AddVocher(Model.Request.MaterialStoreOut storeOut)
|
||||
{
|
||||
VoucherParameter voucherParameter = new VoucherParameter
|
||||
@@ -254,7 +244,11 @@ namespace NX.ERP.U8.Store
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="storeOut"></param>
|
||||
/// <returns></returns>
|
||||
public string SaveVoucher(Model.Request.MaterialStoreOut storeOut)
|
||||
{
|
||||
var voucherParameter = this.LoadVoucher($"id='{storeOut.Id}'");
|
||||
@@ -276,7 +270,12 @@ namespace NX.ERP.U8.Store
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="storeOut"></param>
|
||||
/// <param name="voucherParameter"></param>
|
||||
/// <returns></returns>
|
||||
public bool UpdateVocher(Model.Request.MaterialStoreOut storeOut, VoucherParameter voucherParameter = null)
|
||||
{
|
||||
if (voucherParameter == null)
|
||||
|
||||
Reference in New Issue
Block a user