示例#1
0
        }//连续空缺天数重载

        public ProgressBar(FileInfo[] WdataFile2, string ResourePath2, string ExportPath2, double a)
        {
            InitializeComponent();
            setCallBack  = new setTextValueCallBack(SetValue);
            setCallBack2 = new setTextValueCallBack2(ChangeProgress);
            switch (a)
            {
            case 0.1:
                ExcelWay = new setExcelWay(SingleRow);
                break;

            case 0.2:
                ExcelWay = new setExcelWay(INPUT);
                break;

            case 0.3:
                ExcelWay = new setExcelWay(OUTPUT);
                break;

            default:
                break;
            }
            ExportPath     = ExportPath2;
            ResourePath    = ResourePath2;
            WdataFile      = WdataFile2;
            ExcelProcess2  = new ExcelProcess();
            timer1.Enabled = true;
        }//非连续空缺天数重载
示例#2
0
        }//添加公式的方法

        private void WeatherTool(string FilesPath)
        {
            string [] a     = FilesPath.Split('\\');
            string    Fname = a[a.Length - 1];

            string[] b        = Fname.Split('.');
            string   hz       = b[1];
            string   Filename = b[0];

            if (hz == "dly")
            {
                ExcelProcess2 = new ExcelProcess(FilesPath, ExportPath, Filename);
                ExcelProcess2.WeatherTool(param);;
                count++;
            }
        }
示例#3
0
        }//调整连续多行列宽的方法

        private void AddData(string FilesPath)
        {
            ExcelProcess2 = new ExcelProcess(FilesPath, ExportPath);
            ExcelProcess2.AddData(Row, Column, Data);
            count++;
        }//添加数据
示例#4
0
        }//添加数据

        private void AddFormula(string FilesPath)
        {
            ExcelProcess2 = new ExcelProcess(FilesPath, ExportPath);
            ExcelProcess2.AddFormula(Column, Formula);
            count++;
        }//添加公式的方法
示例#5
0
        }//删除单行的方法

        private void AdjustColumn(string FilesPath)
        {
            ExcelProcess2 = new ExcelProcess(FilesPath, ExportPath);
            ExcelProcess2.Adjust(Scols, width);
            count++;
        }//调整列宽的方法
示例#6
0
        }//调整列宽的方法

        private void AdjustColumns(string FilesPath)
        {
            ExcelProcess2 = new ExcelProcess(FilesPath, ExportPath);
            ExcelProcess2.Adjusts(Mcols, Gcols, width);
            count++;
        }//调整连续多行列宽的方法
示例#7
0
        }//删除公式的方法

        private void DeleteRows(string FilesPath)
        {
            ExcelProcess2 = new ExcelProcess(FilesPath, ExportPath);
            ExcelProcess2.DeleteRows(Mcols, Gcols);
            count++;
        }//删除连续多行的方法
示例#8
0
        }//删除连续多行的方法

        private void DeleteRow(string FilesPath)
        {
            ExcelProcess2 = new ExcelProcess(FilesPath, ExportPath);
            ExcelProcess2.DeleteRow(Scols);
            count++;
        }//删除单行的方法
示例#9
0
        }//删除列的方法

        private void ChangeType(string FilesPath)
        {
            ExcelProcess2 = new ExcelProcess(FilesPath, ExportPath);
            ExcelProcess2.ChangeType(Scols);
            count++;
        }//改变数据格式的方法
示例#10
0
        }//改变数据格式的方法

        private void DeleteFormula(string FilesPath)
        {
            ExcelProcess2 = new ExcelProcess(FilesPath, ExportPath);
            ExcelProcess2.DeleteFormula(Scols);
            count++;
        }//删除公式的方法
示例#11
0
        }//删除列的方法

        private void ZSSunlight(string FilesPath)
        {
            ExcelProcess2 = new ExcelProcess(FilesPath, ExportPath);
            ExcelProcess2.ZSSunlight(LatPath, Mcols);
            count++;
        }//删除列的方法
示例#12
0
        }//非连续空缺方法

        private void MoveCols(string FilesPath)
        {
            ExcelProcess2 = new ExcelProcess(FilesPath, ExportPath);
            ExcelProcess2.MoveClos(Mcols, Gcols);
            count++;
        }//移动列的方法
示例#13
0
        }//连续空缺方法

        private void SingleRow(string FilesPath)
        {
            ExcelProcess2 = new ExcelProcess(FilesPath, ExportPath);
            ExcelProcess2.SingleRow();
            count++;
        }//非连续空缺方法
示例#14
0
        }//另存方法

        private void SuccessionRow(string FilesPath)
        {
            ExcelProcess2 = new ExcelProcess(FilesPath, ExportPath);
            ExcelProcess2.SuccessionRow(Days);
            count++;
        }//连续空缺方法
示例#15
0
        }//添加数据

        private void SaveAs2(string FilesPath)
        {
            ExcelProcess2 = new ExcelProcess(FilesPath, ExportPath);
            ExcelProcess2.SaveAs2(SaveType);
            count++;
        }//另存方法