Esempio n. 1
0
 /// <summary>
 /// On 'Export' button click to export the report to Excel
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnExport_Click(object sender, EventArgs e)
 {
     try
     {
         ExportNew ex = new ExportNew();
         ex.ExportExcel(dgvStockReport, "Stock Report", 0, 0, "Excel", null, null, "");
     }
     catch (Exception ex)
     {
         MessageBox.Show("STKR:26" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// On 'Export' button click to export the report to Excel
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnExport_Click(object sender, EventArgs e)
 {
     try
     {
         ExportNew ex = new ExportNew();
         ex.ExportExcel(dgvDailyAttendanceReport, "Daily Attendance Report", 0, 0, "Excel", txtDate.Text, null, "");
     }
     catch (Exception ex)
     {
         MessageBox.Show("DAR:18" + ex.Message, "Open Miracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Esempio n. 3
0
 /// <summary>
 /// On 'Export' button click to export the report to Excel
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnExport_Click(object sender, EventArgs e)
 {
     try
     {
         ExportNew ex = new ExportNew();
         ex.ExportExcel(dgvProductStatistics, "Product Statistics Report", 0, 0, "Excel", null, null, "");
     }
     catch (Exception ex)
     {
         MessageBox.Show("PS20 " + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Esempio n. 4
0
 /// <summary>
 /// On 'Export' button click to export the report to Excel
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnExport_Click(object sender, EventArgs e)
 {
     try
     {
         ExportNew ex = new ExportNew();
         ex.ExportExcel(dgvCashOrBank, "Cash/Bank Book", 0, 0, "Excel", null, null, "");
     }
     catch (Exception ex)
     {
         MessageBox.Show("CBBOOK17: " + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Esempio n. 5
0
 /// <summary>
 /// On 'Export' button click to export the report to Excel
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnExport_Click(object sender, EventArgs e)
 {
     try
     {
         ExportNew ex = new ExportNew();
         ex.ExportExcel(dgvBonusDeductionReport, "Bonus Deduction Report", 0, 0, "Excel", txtDate.Text, txtTodate.Text, "");
     }
     catch (Exception ex)
     {
         MessageBox.Show("BDR:19" + ex.Message, "Open Miracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Esempio n. 6
0
 /// <summary>
 /// On 'Export' button click to export the report to Excel
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnExport_Click(object sender, EventArgs e)
 {
     try
     {
         ExportNew ex = new ExportNew();
         ex.ExportExcel(DGVClraranceReport, "PDC Clearance Report", 0, 0, "Excel", null, null, "");
     }
     catch (Exception ex)
     {
         MessageBox.Show("PCREP24:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Esempio n. 7
0
 /// <summary>
 /// On 'Export' button click to export the report to Excel
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnExport_Click(object sender, EventArgs e)
 {
     try
     {
         ExportNew ex = new ExportNew();
         ex.ExportExcel(dgvPdcReceivableSearch, "PDC Receivable Report", 0, 0, "Excel", null, null, "");
     }
     catch (Exception ex)
     {
         MessageBox.Show("PRREP33: " + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Esempio n. 8
0
 /// <summary>
 /// On 'Export' button click to export the report to Excel
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnExport_Click(object sender, EventArgs e)
 {
     try
     {
         ExportNew ex = new ExportNew();
         ex.ExportExcel(dgvDailySalary, "Daily Salary Report", 0, 0, "Excel", txtFromDate.Text, txtToDate.Text, "");
     }
     catch (Exception ex)
     {
         MessageBox.Show("DSR21" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Esempio n. 9
0
 /// <summary>
 /// On 'Export' button click to export the report to Excel
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnExport_Click(object sender, EventArgs e)
 {
     try
     {
         ExportNew ex = new ExportNew();
         ex.ExportExcel(dvgPartyAddressBook, "Party Address Book", 0, 0, "Excel", null, null, "");
     }
     catch (Exception ex)
     {
         MessageBox.Show("PAB:17 " + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }