using MSXML2; using System; using System.Collections.Generic; using System.Linq; using System.Text; using UFIDA.U8.U8APIFramework; using UFIDA.U8.U8APIFramework.Parameter; using UFIDA.U8.U8MOMAPIFramework; namespace NX.ERP.U8.Store { public class PuStoreInDAL { /// /// 保存一个采购到货单 /// /// public void AddPuStoreIn(Model.Store.PuStoreIn puStoreIn) { VoucherParameter voucherParameter = new VoucherParameter(); voucherParameter.VoucherType = "01"; voucherParameter.DomHead = new DOMDocumentClass(); voucherParameter.DomBody = new DOMDocumentClass(); IXMLDOMElement iXMLDOMElement = voucherParameter.DomHead.createElement("z:row"); iXMLDOMElement.setAttribute("biafirst", "0"); iXMLDOMElement.setAttribute("bpufirst", "0"); iXMLDOMElement.setAttribute("bisstqc", "0"); iXMLDOMElement.setAttribute("bomfirst", "0"); iXMLDOMElement.setAttribute("brdflag", 1); iXMLDOMElement.setAttribute("ccode", puStoreIn.Code); iXMLDOMElement.setAttribute("ddate", puStoreIn.Date.ToShortDateString()); iXMLDOMElement.setAttribute("cmaker", puStoreIn.Maker); iXMLDOMElement.setAttribute("cvouchtype", "01"); ///iXMLDOMElement.setAttribute("vt_id", ((U8ApiInterfaceBase)u8STApiInterface).get_Util().GetDefaltVTID("24", "", "")); iXMLDOMElement.setAttribute("editprop", "A"); iXMLDOMElement.setAttribute("cdepcode", puStoreIn.Depcode); iXMLDOMElement.setAttribute("cpersoncode", puStoreIn.PersonCode); iXMLDOMElement.setAttribute("crdcode", puStoreIn.RdCode); } } }