예제 #1
0
        private void Button2_Click(object sender, EventArgs e)
        {
            UploadDataToDatabase.BackLogReport.BacklogReport backlog = new BackLogReport.BacklogReport();
            string filename = @"C:\ERP_Temp\Back-log" + "" + "-" + DateTime.Now.ToString("yyyyMMdd hhmmss") + ".xlsx";

            if (backlog.ExportExcelToReport(ref dgv_export, PathFoler, version))
            {
                //  MessageBox.Show("Upload  data just Finished  ! ");
                Logfile.Output(StatusLog.Normal, "Export Excel File Complete ! ");
                isExportExcel = true;
            }
        }
예제 #2
0
        private void Button1_Click_1(object sender, EventArgs e)
        {
            UploadDataToDatabase.BackLogReport.BacklogReport backlog = new BackLogReport.BacklogReport();
            string FileName = "BackLog Report";

            if (backlog.ExportExcelToReport(ref dgv_export, PathFoler, version))
            {
                Logfile.Output(StatusLog.Normal, "Export Excel File Complete ! ");
            }
            else
            {
                Logfile.Output(StatusLog.Normal, "Export Excel File fail ! ");
            }
        }
예제 #3
0
        private void ExportDataBackLogToExcel(string FileName, int hour)
        {
            if (DateTime.Now.Hour == hour /*&& DateTime.Now.Minute   < 30*/)
            {
                if (isExportExcel == false)
                {
                    UploadDataToDatabase.BackLogReport.BacklogReport backlog = new BackLogReport.BacklogReport();

                    if (backlog.ExportExcelToReport(ref dgv_export, PathFoler, version))
                    {
                        //  MessageBox.Show("Upload  data just Finished  ! ");
                        Logfile.Output(StatusLog.Normal, "Export Excel File Complete ! ");
                        isExportExcel = true;
                    }
                    else
                    {
                        isExportExcel = false;
                        Logfile.Output(StatusLog.Normal, "Export Excel File fail ! ");
                    }
                }
            }
        }