Exemple #1
0
        private void button17_Click(object sender, EventArgs e)
        {
            ExcelBus excelBiz = new ExcelBus();
            DateTime CorpTriWeeklygenerateDate = dateTimePicker1.Value;

            excelBiz.PrepareFilesForCorpTricareMonday(CorpTriWeeklygenerateDate);

            ReportBusiness rptBiz = new ReportBusiness();

            rptBiz.GenerateCorpTriMonday(CorpTriWeeklygenerateDate);
        }
Exemple #2
0
        private void button13_Click(object sender, EventArgs e)
        {
            string weekday = dateTimePicker1.Value.DayOfWeek.ToString();

            if (weekday == "Monday")
            {
                DateTime generatedate = dateTimePicker1.Value;
                ExcelBus excelBiz     = new ExcelBus();
                excelBiz.PrepareFilesForRADTricareMonday(generatedate);
                ReportBusiness rptBiz = new ReportBusiness();
                rptBiz.GenerateTricareMonday(generatedate);
            }
            else
            {
                MessageBox.Show("请选择正确日期!");
            }
        }
Exemple #3
0
        private void button19_Click(object sender, EventArgs e)
        {
            string weekday = dateTimePicker1.Value.DayOfWeek.ToString();

            if (weekday == "Thursday")
            {
                string         error  = string.Empty;
                ReportBusiness rptBiz = new ReportBusiness();
                DateTime       TriWeeklygenerateDate = dateTimePicker1.Value;

                rptBiz.GenerateTricareWeeklyRpt(TriWeeklygenerateDate, out error);
                MessageBox.Show("Successed!");
            }
            else
            {
                MessageBox.Show("请选择正确日期!");
            }
        }
Exemple #4
0
 private void button10_Click(object sender, EventArgs e)
 {
     string weekday = dateTimePicker1.Value.DayOfWeek.ToString();
     string generatedateday = dateTimePicker1.Value.ToString("yyyy-MM-dd");
     if (weekday == "Monday")
     {
     ReportBusiness rptBiz = new ReportBusiness();
     ExcelBus excelBiz = new ExcelBus();
     DateTime generatedate = dateTimePicker1.Value;
     rptBiz.GenerateDailyRptForMultiDays(generatedate);
     rptBiz.GenerateServiceRemedyGroupLevel(generatedate);
     excelBiz.PrepareFilesForDailyReport(generatedate);
     }
     else
     {
         MessageBox.Show(generatedateday + "不是星期一,请使用Process Daily Data按钮");
     }
 }
Exemple #5
0
        private void button10_Click(object sender, EventArgs e)
        {
            string weekday         = dateTimePicker1.Value.DayOfWeek.ToString();
            string generatedateday = dateTimePicker1.Value.ToString("yyyy-MM-dd");

            if (weekday == "Monday")
            {
                ReportBusiness rptBiz       = new ReportBusiness();
                ExcelBus       excelBiz     = new ExcelBus();
                DateTime       generatedate = dateTimePicker1.Value;
                rptBiz.GenerateDailyRptForMultiDays(generatedate);
                rptBiz.GenerateServiceRemedyGroupLevel(generatedate);
                excelBiz.PrepareFilesForDailyReport(generatedate);
            }
            else
            {
                MessageBox.Show(generatedateday + "不是星期一,请使用Process Daily Data按钮");
            }
        }
Exemple #6
0
 private void button7_Click(object sender, EventArgs e)
 {
     if (dateTimePicker1.Value.DayOfWeek.ToString() == "Monday")
     {
         MessageBox.Show(dateTimePicker1.Value.ToString("yyyy-MM-dd") + "是星期一,请使用Generate MON Reports按钮");
     }
     else
     {
         ReportBusiness rptBiz       = new ReportBusiness();
         ExcelBus       excelBiz     = new ExcelBus();
         DateTime       generatedate = dateTimePicker1.Value;
         rptBiz.GenerateDailyRptForSingleDays(generatedate);
         //add for generate service remedy group level report to George
         rptBiz.GenerateServiceRemedyGroupLevel(generatedate);
         //end add by navy
         excelBiz.PrepareFilesForDailyReport(generatedate);
         //MessageBox.Show("Generate Daily Reports Success!");
     }
 }
Exemple #7
0
 private void button7_Click(object sender, EventArgs e)
 {
     if (dateTimePicker1.Value.DayOfWeek.ToString() == "Monday")
     {
         MessageBox.Show(dateTimePicker1.Value.ToString("yyyy-MM-dd") + "是星期一,请使用Generate MON Reports按钮");
     }
     else
     {
         ReportBusiness rptBiz = new ReportBusiness();
         ExcelBus excelBiz = new ExcelBus();
         DateTime generatedate = dateTimePicker1.Value;
         rptBiz.GenerateDailyRptForSingleDays(generatedate);
         //add for generate service remedy group level report to George
         rptBiz.GenerateServiceRemedyGroupLevel(generatedate);
         //end add by navy
         excelBiz.PrepareFilesForDailyReport(generatedate);
         //MessageBox.Show("Generate Daily Reports Success!");
     }
 }
Exemple #8
0
        private void button19_Click(object sender, EventArgs e)
        {
            string weekday = dateTimePicker1.Value.DayOfWeek.ToString();
            if (weekday == "Thursday")
            {
                string error = string.Empty;
                ReportBusiness rptBiz = new ReportBusiness();
                DateTime TriWeeklygenerateDate = dateTimePicker1.Value;

                rptBiz.GenerateTricareWeeklyRpt(TriWeeklygenerateDate, out error);
                MessageBox.Show("Successed!");

            }
            else
            {
                MessageBox.Show("请选择正确日期!");
            }
        }
Exemple #9
0
        private void button17_Click(object sender, EventArgs e)
        {
            ExcelBus excelBiz = new ExcelBus();
            DateTime CorpTriWeeklygenerateDate = dateTimePicker1.Value;
            excelBiz.PrepareFilesForCorpTricareMonday(CorpTriWeeklygenerateDate);

            ReportBusiness rptBiz = new ReportBusiness();
            rptBiz.GenerateCorpTriMonday(CorpTriWeeklygenerateDate);
        }
Exemple #10
0
 private void button13_Click(object sender, EventArgs e)
 {
     string weekday = dateTimePicker1.Value.DayOfWeek.ToString();
     if (weekday == "Monday")
     {
         DateTime generatedate = dateTimePicker1.Value;
         ExcelBus excelBiz = new ExcelBus();
         excelBiz.PrepareFilesForRADTricareMonday(generatedate);
         ReportBusiness rptBiz = new ReportBusiness();
         rptBiz.GenerateTricareMonday(generatedate);
     }
     else {
         MessageBox.Show("请选择正确日期!");
     }
 }