private void FormBrowseRetailUntreadGatherBill_Load(object sender, EventArgs e)
        {
            formRetailUntreadGatherBill = (FormRetailUntreadGatherBill)this.Owner;
            ControlBindDataSource cbds = new ControlBindDataSource();

            cbds.BindDataSource(this);
            useful.InitFormContros(this, null);
            dtpAppendDate.Checked = false;
            dtpSignDate2.Checked  = false;
        }
示例#2
0
        private void FormRetailUntreadGatherBillInput_Load(object sender, EventArgs e)
        {
            formRetailUntreadGatherBill = (FormRetailUntreadGatherBill)this.Owner;
            ControlBindDataSource cbds = new ControlBindDataSource();

            cbds.BindDataSource(this);
            if (this.Tag.ToString() == "Add")
            {
                this.Text = "添加单据";
                useful.InitFormContros(this, null);
            }
            if (this.Tag.ToString() == "Edit")
            {
                this.Text = "修改单据";
                useful.SetControlsState(groupBox1, false);
                txtUntreadBillNo.Enabled = false;
                btnBrowse.Enabled        = false;
                txtUntreadBillNo.Text    = formRetailUntreadGatherBill.dgvUntreadGatherBill.CurrentRow.Cells["UntreadBillNo"].Value.ToString();
                RetrieveUntreadBaseBillInfo(txtUntreadBillNo.Text.Trim());
                GetUntreadGatherBillInfo(txtUntreadBillNo.Text.Trim());
            }
        }