Beispiel #1
0
 /// <summary>
 /// Function to fill cmbVoucherType combobox
 /// </summary>
 public void VoucherTypeNameComboFill()
 {
     try
     {
         AdvancePaymentSP spAdvancePaymentSP  = new AdvancePaymentSP();
         DataTable        dtblVoucherTypeName = new DataTable();
         dtblVoucherTypeName = spAdvancePaymentSP.VoucherTypeNameComboFillAdvanceRegister();
         DataRow dr = dtblVoucherTypeName.NewRow();
         dr[1] = "All";
         dtblVoucherTypeName.Rows.InsertAt(dr, 0);
         cmbVoucherType.DataSource    = dtblVoucherTypeName;
         cmbVoucherType.ValueMember   = "voucherTypeId";
         cmbVoucherType.DisplayMember = "voucherTypeName";
     }
     catch (Exception ex)
     {
         formMDI.infoError.ErrorString = "AR2:" + ex.Message;
     }
 }
 /// <summary>
 /// Function to fill cmbVoucherType combobox
 /// </summary>
 public void VoucherTypeNameComboFill()
 {
     try
     {
         AdvancePaymentSP spAdvancePaymentSP  = new AdvancePaymentSP();
         DataTable        dtblVoucherTypeName = new DataTable();
         dtblVoucherTypeName = spAdvancePaymentSP.VoucherTypeNameComboFillAdvanceRegister();
         DataRow dr = dtblVoucherTypeName.NewRow();
         dr[1] = "All";
         dtblVoucherTypeName.Rows.InsertAt(dr, 0);
         cmbVoucherType.DataSource    = dtblVoucherTypeName;
         cmbVoucherType.ValueMember   = "voucherTypeId";
         cmbVoucherType.DisplayMember = "voucherTypeName";
     }
     catch (Exception ex)
     {
         MessageBox.Show("AR2:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
        /// <summary>
        /// Function to fill cmbVoucherType combobox
        /// </summary>
        public void VoucherTypeNameComboFill()
        {
            try
            {
                AdvancePaymentSP spAdvancePaymentSP = new AdvancePaymentSP();
                DataTable dtblVoucherTypeName = new DataTable();
                dtblVoucherTypeName = spAdvancePaymentSP.VoucherTypeNameComboFillAdvanceRegister();
                DataRow dr = dtblVoucherTypeName.NewRow();
                dr[1] = "All";
                dtblVoucherTypeName.Rows.InsertAt(dr, 0);
                cmbVoucherType.DataSource = dtblVoucherTypeName;
                cmbVoucherType.ValueMember = "voucherTypeId";
                cmbVoucherType.DisplayMember = "voucherTypeName";

            }
            catch (Exception ex)
            {
                MessageBox.Show("AR2:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }