private void CheckProcess() { ZipCopyProcess.DeleteTxtFile(); fileName = "BNU" + batchFile.Substring(0, 4) + "P"; List <ChequeModel> lcheque = new List <ChequeModel>(); List <ChequeModel> pcheque = new List <ChequeModel>(); List <ChequeModel> dbfcheque = new List <ChequeModel>(); OutPut2Process processOutput = new OutPut2Process(); // Int64 endingSeries = 0; // db.GetAllData(lcheque, batchFile); db.DumpMySQL(); processOutput.ProcessCheck(lcheque, this); processOutput.PackingText(pcheque, this); processOutput.SaveToPackingDBF(dbfcheque, batchFile, this); processOutput.PrinterFile(lcheque, this); for (int i = 0; i < lcheque.Count; i++) { db.SavedDatatoDatabase(lcheque[i], batchFile, deliveryDate); } ZipCopyProcess z = new ZipCopyProcess(); db.DeleteTempData(); CheckLoadData(); db.UpdateRef(br, cheque.BRSTN); z.ZipFileS(frmLogIn._userName, this); MessageBox.Show("Process Done!!"); Environment.Exit(0); }
private void generateToolStripMenuItem_Click(object sender, EventArgs e) { ZipCopyProcess zip = new ZipCopyProcess(); zip.DeleteFiles(".txt"); // Main2 main2 = new Main2(); OutPut2Process process = new OutPut2Process(); process.ProcessCheck2(checks, this); process.PackingText2(checks, this); process.PrinterFile2(checks, this); process.SaveToPackingDBF2(checks, batchfile, this); for (int i = 0; i < checks.Count; i++) { db.SavedDatatoDatabase(checks[i], batchfile, deliveryDate); } db.DumpMySQL2(); zip.ZipFileS2(frmLogIn._userName, this); zip.DeleteHead(".xlsx"); MessageBox.Show("Data has been process!!!"); Environment.Exit(0); }