示例#1
0
 private void cmbGRN_SelectedIndexChanged(object sender, EventArgs e)
 {
     try
     {
         ClearItem();
         cmbItem.DataSource = null;
         cmbItem.Text       = "";
         objGRNMaterialsCollec.Clear();
         bindItemList.DataSource = null;
         txtUnitCost.ReadOnly    = true;
     }
     catch (Exception ex)
     {
         MessageBox.Show(this, ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
示例#2
0
 private void cmbGRNType_SelectedIndexChanged(object sender, EventArgs e)
 {
     ClearItem();
     try
     {
         objGRNMaterialsCollec.Clear();
         objGRNBasicProductCollec.Clear();
         objGRNFinishProductCollec.Clear();
         bindItemList.DataSource = null;
         LoadDirect();
     }
     catch (Exception ex)
     {
         MessageBox.Show(this, ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }