예제 #1
0
 internal void WriteExcelResolverConfig(JiaGeType jg, InvType fapiao)
 {
     if (File.Exists(this.ExcelCRXmlPath))
     {
         XmlDocument document = new XmlDocument();
         document.Load(this.ExcelCRXmlPath);
         XmlNode node  = document.DocumentElement.SelectSingleNode("ExcelJEandFP");
         XmlNode node2 = node.SelectSingleNode("JinE");
         XmlNode node3 = node.SelectSingleNode("FaPiao");
         node2.InnerText = jg.ToString();
         node3.InnerText = fapiao.ToString();
         document.Save(this.ExcelCRXmlPath);
     }
 }
예제 #2
0
 internal void WriteTxtResolverConfig(string strTxtpath, JiaGeType jg, InvType fapiao)
 {
     if (File.Exists(this.TxtWbcrXmlPath))
     {
         XmlDocument document = new XmlDocument();
         document.Load(this.TxtWbcrXmlPath);
         document.DocumentElement.SelectSingleNode("TxtJieXiPath").InnerText = strTxtpath;
         XmlNode node2 = document.DocumentElement.SelectSingleNode("JinEandFaPiao");
         XmlNode node3 = node2.SelectSingleNode("JinE");
         XmlNode node4 = node2.SelectSingleNode("FaPiao");
         node3.InnerText = jg.ToString();
         node4.InnerText = fapiao.ToString();
         document.Save(this.TxtWbcrXmlPath);
     }
 }