private void FormBrowseRetailBarterExchangeBill_Load(object sender, EventArgs e)
        {
            formRetailBarterExchangeBill = (FormRetailBarterExchangeBill)this.Owner;
            ControlBindDataSource cbds = new ControlBindDataSource();

            cbds.BindDataSource(this);
            useful.InitFormContros(this, null);
            dtpAppendDate.Checked = false;
            dtpTradeDate.Checked  = false;
        }
Esempio n. 2
0
        private void FormRetailBarterExchangeBillInput_Load(object sender, EventArgs e)
        {
            formRetailBarterExchangeBill = (FormRetailBarterExchangeBill)this.Owner;
            ControlBindDataSource cbds = new ControlBindDataSource();

            cbds.BindDataSource(this);
            useful.InitFormContros(this, null);
            if (this.Tag.ToString() == "Add")
            {
                this.Text = "添加单据";
            }
            if (this.Tag.ToString() == "Edit")
            {
                this.Text            = "修改单据";
                txtBarterBillNo.Text = formRetailBarterExchangeBill.dgvBarterExchangeBill.CurrentRow.Cells["BarterBillNo"].Value.ToString();
                RetrieveBarterBaseInfo(txtBarterBillNo.Text);
                GetBarterExchangeInfo(txtBarterBillNo.Text);
                txtBarterBillNo.Enabled = false;
                btnBrowse.Enabled       = false;
            }
        }