private void FormBrowseRetailUntreadRefundBill_Load(object sender, EventArgs e) { formRetailUntreadRefundBill = (FormRetailUntreadRefundBill)this.Owner; ControlBindDataSource cbds = new ControlBindDataSource(); cbds.BindDataSource(this); useful.InitFormContros(this, null); dtpAppendDate.Checked = false; dtpUntreadMoneyDate.Checked = false; }
private void FormRetailUntreadRefundBillInput_Load(object sender, EventArgs e) { formRetailUntreadRefundBill = (FormRetailUntreadRefundBill)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 = formRetailUntreadRefundBill.dgvUntreadRefundBill.CurrentRow.Cells["UntreadBillNo"].Value.ToString(); RetrieveUntreadBaseBillInfo(txtUntreadBillNo.Text.Trim()); GetUntreadGatherBillInfo(txtUntreadBillNo.Text.Trim()); GetUntreadRefundBillInfo(txtUntreadBillNo.Text.Trim()); } }