コード例 #1
0
        /// <summary>
        /// Function to view VoucherType For AgainstBill Details
        /// </summary>
        /// <returns></returns>
        public List <DataTable> VoucherTypeViewAllForAgainstBillDetails()
        {
            List <DataTable> listObj = new List <DataTable>();

            try
            {
                listObj = spVoucherType.VoucherTypeViewAllForAgainstBillDetails();
            }
            catch (Exception ex)
            {
                MessageBox.Show("VT23:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(listObj);
        }
コード例 #2
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);
     }
 }