/// <summary> /// 获取dom结点值 /// </summary> /// <param name="xml"></param> /// <param name="nodeName">/inventory/cinvcode</param> /// <returns></returns> protected string GetNodeValue(IXMLDOMDocument2 doc, string nodeName) { try { return(doc.selectSingleNode(nodeName).text); } catch { return(""); } }
public GroupVouch(ref ADODB.Connection conn, IXMLDOMDocument2 doc, IXMLDOMDocument2 docbody, string ufConnStr, string _opertype) : base(conn, ufConnStr) { oracleTableName = "MES_CQ_GroupVouch"; //目标表名 oraclePriKey = "ccode"; //目标表逻辑主键 fieldcmpTablename = "MES_CQ_GroupVouch"; ufTableName = "GroupVouch"; // "SaleOrderQ"; //来源表名 ufPriKey = "ccode"; //来源表主键 this._ccode = ((IXMLDOMElement)doc.selectSingleNode("/xml/rs:data/z:row")).getAttribute("ccode").ToString(); //GetNodeValue(doc, "/GroupVouch/ccode"); this.opertype = _opertype; }