Exemple #1
0
        /// <summary>
        /// 填充下拉框:经手人
        ///// </summary>
        //private void FillTemplateIdByList()
        //{
        //    cbTemplateId.DisplayMember = "UserName";
        //    cbTemplateId.ValueMember = "UserId";

        //    cbTemplateId.DataSource = VoucherManage.DirectGetTemplate();
        //}

        /// <summary>
        /// 填充下拉框:票版
        /// </summary>
        private void FillVoucherBatchByList()
        {
            cbTicketId.DisplayMember = "TicketName";
            cbTicketId.ValueMember   = "TicketId";

            cbTicketId.DataSource = VoucherManage.DirectGetTicket();
        }
Exemple #2
0
        /// <summary>
        /// 填充下拉框:票券类型
        /// </summary>
        private void FillVoucherByList()
        {
            cbVoucherBatchId.DisplayMember = "VoucherName";
            cbVoucherBatchId.ValueMember   = "VoucherBatchId";

            cbVoucherBatchId.DataSource = VoucherManage.DirectGetVoucherBatch();
        }
Exemple #3
0
        public frmVoucherManage()
        {
            InitializeComponent();

            dataManager       = new VoucherManage();
            dataBindingSource = new BindingSource();

            this.dataGridViewColumnInfoList = dataManager.ColumnInfoList;
            dgvList.CellFormatting         += new DataGridViewCellFormattingEventHandler(DataGridView_CellFormatting);
            this.Load += new EventHandler(frmVoucherManage_Load);
        }