예제 #1
0
 /// <summary>
 /// Function to fill vouchertype combobox
 /// </summary>
 public void VoucherComboFill()
 {
     try
     {
         VoucherTypeSP SpVoucherType = new VoucherTypeSP();
         DataTable     dtbl          = new DataTable();
         dtbl = SpVoucherType.VoucherTypeViewAllForAgainstBillDetails();
         DataRow dr = dtbl.NewRow();
         dr[0] = 0;
         dr[1] = "All";
         dtbl.Rows.InsertAt(dr, 0);
         cmbVoucherType.DisplayMember = "typeOfVoucher";
         cmbVoucherType.ValueMember   = "voucherTypeId";
         cmbVoucherType.DataSource    = dtbl;
         cmbVoucherType.SelectedIndex = 0;
     }
     catch (Exception ex)
     {
         formMDI.infoError.ErrorString = "AB1:" + ex.Message;
     }
 }
 /// <summary>
 /// Function to fill vouchertype combobox
 /// </summary>
 public void VoucherComboFill()
 {
     try
     {
         VoucherTypeSP SpVoucherType = new VoucherTypeSP();
         DataTable     dtbl          = new DataTable();
         dtbl = SpVoucherType.VoucherTypeViewAllForAgainstBillDetails();
         DataRow dr = dtbl.NewRow();
         dr[0] = 0;
         dr[1] = "All";
         dtbl.Rows.InsertAt(dr, 0);
         cmbVoucherType.DisplayMember = "typeOfVoucher";
         cmbVoucherType.ValueMember   = "voucherTypeId";
         cmbVoucherType.DataSource    = dtbl;
         cmbVoucherType.SelectedIndex = 0;
     }
     catch (Exception ex)
     {
         MessageBox.Show("AB1:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
예제 #3
0
 /// <summary>
 /// Function to fill vouchertype combobox
 /// </summary>
 public void VoucherComboFill()
 {
     try
     {
         VoucherTypeSP SpVoucherType = new VoucherTypeSP();
         DataTable dtbl = new DataTable();
         dtbl = SpVoucherType.VoucherTypeViewAllForAgainstBillDetails();
         DataRow dr = dtbl.NewRow();
         dr[0] = 0;
         dr[1] = "All";
         dtbl.Rows.InsertAt(dr, 0);                             
         cmbVoucherType.DisplayMember = "typeOfVoucher";
         cmbVoucherType.ValueMember = "voucherTypeId";
         cmbVoucherType.DataSource = dtbl;  
         cmbVoucherType.SelectedIndex = 0;
     }
     catch (Exception ex)
     {
         MessageBox.Show("AB1:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }