Exemple #1
0
        private void FormBrowseRetailBarterBaseBill_Load(object sender, EventArgs e)
        {
            formRetailBarterBaseBill = (FormRetailBarterBaseBill)this.Owner;
            ControlBindDataSource cbds = new ControlBindDataSource();

            cbds.BindDataSource(this);
            useful.InitFormContros(this, null);
            dtpAppendDate.Checked     = false;
            dtpBarterBillDate.Checked = false;
        }
Exemple #2
0
        private void FormRetailBarterBaseBillInput_Load(object sender, EventArgs e)
        {
            ControlBindDataSource cbds = new ControlBindDataSource();

            cbds.BindDataSource(this);
            useful.InitFormContros(groupBox1, null);
            formRetailBarterBaseBill = (FormRetailBarterBaseBill)this.Owner;
            if (this.Tag.ToString() == "Add")
            {
                btnCD.Enabled        = false;
                this.Text            = "添加单据";
                txtBarterBillNo.Text = useful.BuildCode("BarterBaseBill", "Where OperatorCode = '" + GlobalProperty.OperatorCode + "'", "BarterBillNo", "HH" + GlobalProperty.DBTime.Year.ToString(), 7);
            }
            else
            {
                btnCD.Enabled = true;
                this.Text     = "修改单据";
                //chbIsAmendBillNo.Enabled = false;
                txtBarterBillNo.Text = formRetailBarterBaseBill.dgvBarterBaseBill.CurrentRow.Cells["BarterBillNo"].Value.ToString();
                GetBarterBaseBillInfo(txtBarterBillNo.Text);
            }
        }