コード例 #1
0
 /// <summary>
 /// Function for BatchComboFill
 /// </summary>
 /// <param name="cmbBatch"></param>
 public void BatchComboFill(ComboBox cmbBatch)
 {
     BatchBll BllBatch = new BatchBll();
     try
     {
         if (cmbProductCode.SelectedIndex != -1)
         {
             if (cmbProductCode.SelectedValue.ToString() != "System.Data.DataRowView" && cmbProductCode.Text != "System.Data.DataRowView")
             {
                 cmbBatch.Enabled = true;
                 BllBatch.BatchViewAllByProductCodeForBarcodePrinting(Convert.ToDecimal(cmbProductCode.SelectedValue.ToString()), cmbBatch, true);
             }
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("BCP10:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }