/// <summary> /// Function to fill VoucherType combobox /// </summary> public void VoucherTypeCombofill() { try { MaterialReceiptDetailsSP spMaterialReceiptDetails = new MaterialReceiptDetailsSP(); dtbl = spMaterialReceiptDetails.VoucherTypeCombofillforMaterialReceipt(); cmbVoucherType.DataSource = dtbl; cmbVoucherType.ValueMember = "voucherTypeId"; cmbVoucherType.DisplayMember = "voucherTypeName"; cmbVoucherType.SelectedIndex = 0; } catch (Exception ex) { MessageBox.Show("MRR2:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> /// Function to fill VoucherType combobox /// </summary> public void VoucherTypeCombofill() { try { MaterialReceiptDetailsSP spMaterialReceiptDetails = new MaterialReceiptDetailsSP(); dtbl = spMaterialReceiptDetails.VoucherTypeCombofillforMaterialReceipt(); cmbVoucherType.DataSource = dtbl; cmbVoucherType.ValueMember = "voucherTypeId"; cmbVoucherType.DisplayMember = "voucherTypeName"; cmbVoucherType.SelectedIndex = 0; } catch (Exception ex) { MessageBox.Show("MRR2:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> /// Function to fill VoucherType combobox /// </summary> public void VoucherTypeCombofill() { try { MaterialReceiptDetailsSP spMaterialReceiptDetails = new MaterialReceiptDetailsSP(); dtbl = spMaterialReceiptDetails.VoucherTypeCombofillforMaterialReceipt(); cmbVoucherType.DataSource = dtbl; cmbVoucherType.ValueMember = "voucherTypeId"; cmbVoucherType.DisplayMember = "voucherTypeName"; cmbVoucherType.SelectedIndex = 0; } catch (Exception ex) { formMDI.infoError.ErrorString = "MRREP2:" + ex.Message; } }