public void completionData(string szWorkFileFullPath, string szResultFileFolder, ref System.Windows.Forms.RichTextBox rInfoOutPut) { //打开第一个文件, if (m_szResultFolderPath != szResultFileFolder) { m_szResultFolderPath = szResultFileFolder; } OperatorFunc rOperator = new OperatorFunc(writeData); string szName = Global.Tools.getNameFromFullPath(szWorkFileFullPath); ExcelOperator.excelWrite(szWorkFileFullPath, szResultFileFolder + szName, rOperator, ref rInfoOutPut); }
public void testFunc(ref System.Windows.Forms.RichTextBox rOutput) { rOutput.SelectionColor = Color.Black; ExcelOperator.write_temp_file(ref this.m_rID2NameMap); // rOutput.AppendText(" ID:"); // foreach (var temp in this.m_rID2NameMap) // { // rOutput.AppendText(temp.Key); // rOutput.AppendText(" , "); // rOutput.AppendText(temp.Value + "\n"); // } }
public bool checkSrcTable(string szSrcFolder, ref System.Windows.Forms.RichTextBox rInfoOutPut) { bool rResult = true; for (int index = 0; index < m_rFileNameArr.Length; ++index) { if (!ExcelOperator.checkSrcExist(szSrcFolder + @"\" + m_rFileNameArr[index])) { rResult = false; rInfoOutPut.SelectionColor = Color.Red; rInfoOutPut.AppendText("缺少" + @"\" + m_rFileNameArr[index] + "文件" + '\n'); } } return(rResult); }
//初始化 public void initialize(string szSrcFolder, ref System.Windows.Forms.RichTextBox rInfoOutPut) { if (!checkSrcTable(szSrcFolder, ref rInfoOutPut)) { return; } if (m_szSrcPath != szSrcFolder) { m_szSrcPath = szSrcFolder; } var rSaveFunc = new SaveData(SaveFuncDef); for (int index = 0; index < this.m_rFileNameArr.Length; ++index) {//读取标准表文件 string szAbsPath = szSrcFolder + @"\" + m_rFileNameArr[index]; ExcelOperator.csvReader(szAbsPath, rSaveFunc, ref rInfoOutPut); } }
public void checkData(string szWorkFileFullPath, ref System.Windows.Forms.RichTextBox rInfoOutPut) { OperatorCheckFunc rCheckFunc = new OperatorCheckFunc(checkFunc); ExcelOperator.excelReadNCheck(szWorkFileFullPath, rCheckFunc, ref rInfoOutPut); }