Example #1
0
 private void ExcelExport()
 {
     string[] exceptlist = new string[] { "DowntimeType_ID", "Employees_ID", "Factory_ID", "Line_ID", "Product_ID" };
     if (tabDowntime.SelectedIndex == 0)
     {
         UtilClass.ExportToDataGridView(dgvDowntime, exceptlist);
     }
     else if (tabDowntime.SelectedIndex == 1)
     {
         UtilClass.ExportToDataGridView(dgvDowntimeByLine, exceptlist);
     }
     else if (tabDowntime.SelectedIndex == 2)
     {
         UtilClass.ExportToDataGridView(dgvDowntimeByType, exceptlist);
     }
 }
Example #2
0
 private void ExcelExport()
 {
     string[] exceptlist = new string[] { "DefectiveHandle_ID", "DefectiveType_ID", "Employees_ID", "Factory_ID", "Line_ID", "Product_ID" };
     if (tabDefective.SelectedIndex == 0)
     {
         UtilClass.ExportToDataGridView(dgvDefective, exceptlist);
     }
     else if (tabDefective.SelectedIndex == 1)
     {
         UtilClass.ExportToDataGridView(dgvDefectiveByLine, exceptlist);
     }
     else if (tabDefective.SelectedIndex == 2)
     {
         UtilClass.ExportToDataGridView(dgvDefectiveByDefecType, exceptlist);
     }
     else
     {
         UtilClass.ExportToDataGridView(dgvDefectiveByDefecHandleType, exceptlist);
     }
 }
 public void ExcelExport()
 {
     string[] exceptColumns = { "" };
     UtilClass.ExportToDataGridView(dgv_SalesStatus, exceptColumns);
 }
Example #4
0
 public void ExcelExport()
 {
     string[] exceptColumns = { "Warehouse_Division" };
     UtilClass.ExportToDataGridView(dgv_Stock, exceptColumns);
 }