/// <summary> /// 外来寄存 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void BarButtonItem3_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Frm_register frm_reg = new Frm_register(); frm_reg.swapdata["dataset"] = register_ds; frm_reg.swapdata["source"] = "1"; if (frm_reg.ShowDialog() == DialogResult.OK) { frm_reg.Dispose(); this.RefreshData(); } }
/// <summary> /// 本馆火化寄存 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void BarButtonItem2_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Frm_fromFire frm_fromFire = new Frm_fromFire(); frm_fromFire.swapdata["BusinessObject"] = this; if (frm_fromFire.ShowDialog() == DialogResult.OK) { string s_ac001 = this.swapdata["AC001"].ToString(); frm_fromFire.Dispose(); Frm_register regform = new Frm_register(); regform.swapdata["dataset"] = register_ds; regform.swapdata["source"] = "0"; regform.swapdata["AC001"] = s_ac001; if (regform.ShowDialog() == DialogResult.OK) { regform.Dispose(); this.RefreshData(); } } }