// //搜索接口 // public void search(OutputStateList rOutputer) { m_rSearchMap.Clear(); m_rNoSaleMap.Clear(); m_rExcelOperator.readSearchListTable(m_szSearchList, ref this.m_rSearchMap, ref this.m_rNoSaleMap); m_rXmlOperator.build(m_szConfigPath); Dictionary <string, ExchangeState> rResult = new Dictionary <string, ExchangeState>(); foreach (var it in this.m_rSearchMap) { ExchangeState eState = m_rXmlOperator.getClothSaleState(it.Key, this.m_rNoSaleMap); if (ExchangeState.Error != eState) { rResult.Add(it.Key, eState); } } rOutputer(rResult); }
public void execute(ref System.Windows.Forms.RichTextBox rLog, getSaveAsPath rSavePath) { string szError = ""; rLog.Clear(); //错误提示 null m_szConfigPath m_szInputPath m_rXmlOperator.build(m_szConfigPath); initNoSale(); m_rExcelOperator.excelFillIn(m_szInputPath, TableRowWriteFunc, ref szError); string szXmlSavePath = rSavePath(); if (string.Empty != szXmlSavePath) { generateXmlFile(szXmlSavePath); } rLog.AppendText(szError); writeLopFile(szError); m_rExcelOperator.saveAsNewFile(); }