예제 #1
0
        /// <summary>
        /// Function for VoucherTypename combofill
        /// </summary>
        /// <returns></returns>
        public List <DataTable> VoucherTypeNameComboFill()
        {
            List <DataTable> listObj = new List <DataTable>();

            try
            {
                listObj = spVoucherType.VoucherTypeNameComboFill();
            }
            catch (Exception ex)
            {
                MessageBox.Show("VT25:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(listObj);
        }
 public void VoucherTypeNameComboFill()
 {
     try
     {
         DataTable     dtblVoucherTyeName = new DataTable();
         VoucherTypeSP spVoucherType      = new VoucherTypeSP();
         dtblVoucherTyeName = spVoucherType.VoucherTypeNameComboFill();
         DataRow dr = dtblVoucherTyeName.NewRow();
         dr[1] = "All";
         dtblVoucherTyeName.Rows.InsertAt(dr, 0);
         //cmbVoucherTypeName.DataSource = dtblVoucherTyeName;
         //cmbVoucherTypeName.ValueMember = "voucherTypeId";
         //cmbVoucherTypeName.DisplayMember = "voucherTypeName";
     }
     catch (Exception ex)
     {
         //MessageBox.Show("MSR1:" + ex.Message, "Masterfine", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }