This commit is contained in:
gongxh
2021-10-28 11:14:04 +08:00
parent 0d15cd1150
commit 4af423cdcf
8 changed files with 90 additions and 16 deletions

View File

@@ -230,7 +230,25 @@ namespace NX.ERP.U8.AP
headXml.setAttribute("cFlag", "AP");
headXml.setAttribute("cDeptCode", ApVouch.DeptCode);
headXml.setAttribute("cDigest", ApVouch.Digest);
var user = new NX.ERP.U8.User.UserDal().GetModel(ApVouch.UserCode);
if (user != null)
{
headXml.setAttribute("cCheckMan", user.UserName);
headXml.setAttribute("cOperator", user.UserName);
} else
{
headXml.setAttribute("cCheckMan", ApVouch.UserCode);
headXml.setAttribute("cOperator", ApVouch.UserCode);
}
headXml.setAttribute("cDefine10", id);
var supplier = new SupplierDAL().GetModel(ApVouch.supplierCode);
var per = new NX.ERP.U8.User.UserDal().GetModel(supplier.VenPPerson);
headXml.setAttribute("cPerson", supplier.VenPPerson);
if (per != null)
{
headXml.setAttribute("cPersonName", per.UserName);
}
// headXml.setAttribute("cLink", "");
IXMLDOMElement bodyXml;
@@ -242,6 +260,7 @@ namespace NX.ERP.U8.AP
bodyXml.setAttribute("cDeptCode", ApVouch.DeptCode);
bodyXml.setAttribute("cCode", "");
bodyXml.setAttribute("iExchRate", 1);
bodyXml.setAttribute("cexch_name", "人民币");
bodyXml.setAttribute("iAmount", ApVouch.Amount);
bodyXml.setAttribute("iAmount_f", ApVouch.Amount);