//新增 private void btnADD_Click(object sender, EventArgs e) { frmYZOrder05 frmYZOrder05 = new frmYZOrder05("ADD", ""); frmYZOrder05.Text = frmYZOrder05.Text; frmYZOrder05.Show(); }
//查看 private void btnSel_Click(object sender, EventArgs e) { if (bdsMaster.Current != null) { frmYZOrder05 frmYZOrder05 = new frmYZOrder05("SEL", ((DataRowView)bdsMaster.Current).Row["ID"].ToString()); frmYZOrder05.Text = frmYZOrder05.Text; frmYZOrder05.Show(); } }
//修改 private void tsbtnEdit_Click(object sender, EventArgs e) { if (bdsMaster.Current != null) { if (getBillState("修改")) { frmYZOrder05 frmYZOrder05 = new frmYZOrder05("EDIT", ((DataRowView)bdsMaster.Current).Row["ID"].ToString()); frmYZOrder05.Text = frmYZOrder05.Text; frmYZOrder05.Show(); } } }