Exemplo n.º 1
0
        public void completionData(string szWorkFileFullPath, ref System.Windows.Forms.RichTextBox rInfoOutPut)
        {
            OperatorFunc rOperator = new OperatorFunc(writeData);

            //string szName = Global.Tools.getNameFromFullPath(szWorkFileFullPath);
            ExcelOperator.excelWrite(szWorkFileFullPath, rOperator, ref rInfoOutPut);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        //初始化
        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);
            }
        }
Exemplo n.º 4
0
        public void checkData(string szWorkFileFullPath, ref System.Windows.Forms.RichTextBox rInfoOutPut)
        {
            OperatorCheckFunc rCheckFunc = new OperatorCheckFunc(checkFunc);

            ExcelOperator.excelReadNCheck(szWorkFileFullPath, rCheckFunc, ref rInfoOutPut);
        }