Exemplo n.º 1
0
 private void LoadList()
 {
     try
     {
         bindPRPD.DataSource = objPRPDBatch_DL.GetDataView(CurrentUser.EmployeeID, (PRPDBatch.PRPDBatchStatus)Enum.Parse(typeof(PRPDBatch.PRPDBatchStatus), cmbStatus.SelectedItem.ToString()), dtFrom.Value, dtTo.Value);
     }
     catch (Exception)
     {
         MessageBox.Show(this, "Error occured while loading Batch List", "Error", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
 }
Exemplo n.º 2
0
 private void LoadList()
 {
     try
     {
         dgvPRPDbatchByState.AutoGenerateColumns = false;
         bindPRPD.DataSource            = objPRPDBatch_DL.GetDataView((PRPDBatch.PRPDBatchStatus)Enum.Parse(typeof(PRPDBatch.PRPDBatchStatus), cmbStatus.SelectedValue.ToString()));
         dgvPRPDbatchByState.DataSource = bindPRPD;
         bindPRPD.ResetBindings(true);
     }
     catch (Exception)
     {
         MessageBox.Show(this, "Error occured while loading Batch List", "Error", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
 }
Exemplo n.º 3
0
 private void Load_Batch_List()
 {
     try
     {
         dgvPRPDbatchByState.AutoGenerateColumns = false;
         bindPRPD.DataSource            = objPRPDBatch_DL.GetDataView(PRPDBatch.PRPDBatchStatus.Finished);
         dgvPRPDbatchByState.DataSource = bindPRPD;
         bindPRPD.ResetBindings(true);
     }
     catch (Exception)
     {
         MessageBox.Show(this, "Error occured while loading Batch List", "Error", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
 }