private void frmPRPDRework_Load(object sender, EventArgs e) { try { dtPRPDBatchCollec = objPRPDBatch_DL.GetDataByState(PRPDBatch.PRPDBatchStatus.Cost, PRPDBatch.PRPDType.Rework); cmbPRPDBatch.DataSource = dtPRPDBatchCollec; } catch (Exception ex) { MessageBox.Show(ex.Message.ToString()); } }
private void frmPRPDBatchTransfer_Preperation_Load(object sender, EventArgs e) { try { dtPRPDBatches = objPRPDBatch_DL.GetDataByState(PRPDBatch.PRPDBatchStatus.Cost); if (dtPRPDBatches.Rows.Count != 0) { objSourcePRPDBatches.DataSource = dtPRPDBatches; cmbPRPDBatch.DataSource = objSourcePRPDBatches; } else { objSourcePRPDBatches.DataSource = null; } } catch (Exception ex) { MessageBox.Show(ex.Message.ToString()); } }
private void frmPRPDBatchTransferCAP_Load(object sender, EventArgs e) { try { ucProcessedMaterial1.Load_Data(ConnectionStringClass.GetConnection(), txtMaterialCode.Text); dtPRPDBatches = objPRPDBatch_DL.GetDataByState(PRPDBatch.PRPDBatchStatus.Cost, PRPDBatch.PRPDType.PrimaryRework); if (dtPRPDBatches.Rows.Count != 0) { objSourcePRPDBatches.DataSource = dtPRPDBatches; cmbPRPDBatch.DataSource = objSourcePRPDBatches; } else { objSourcePRPDBatches.DataSource = null; } } catch (Exception ex) { MessageBox.Show(ex.Message.ToString()); } }