/// <summary> /// PopupForm /// </summary> /// <param name="vo"></param> void PopupForm(EntityEventDisplay vo) { if (vo == null) { vo = new EntityEventDisplay(); vo.isNew = true; } vo.eventId = Viewer.EventId; vo.owerDeptCode = this.OwerDeptCode; vo.pubRoleId = this.PubRoleId; frmEventEdit frm = new frmEventEdit(vo); frm.Text = Viewer.Text; using (ProxyAdverseEvent proxy = new ProxyAdverseEvent()) { if (Function.Int(vo.rptId) > 0) { string RoleEdit = proxy.Service.GetEventRoleEdit(GlobalLogin.objLogin.EmpNo); string RoleDel = proxy.Service.GetEventRoleDel(GlobalLogin.objLogin.EmpNo); frm.blbiSave.Enabled = false; if (RoleEdit != string.Empty || RoleDel != string.Empty) { frm.blbiSave.Enabled = true; } } } frm.ShowDialog(); if (frm.IsSave) { this.Query(); } }
/// <summary> /// SetUI /// </summary> /// <param name="child"></param> public override void SetUI(frmBase child) { base.SetUI(child); Viewer = (frmEventEdit)child; }
/// <summary> /// PopupForm /// </summary> /// <param name="vo"></param> void PopupForm(EntityEventDisplay vo) { if (vo == null) { vo = new EntityEventDisplay(); vo.isNew = true; } //vo.eventId = Viewer.EventId; frmEventEdit frm = new frmEventEdit(vo); switch (vo.eventId) { case "11": Viewer.Text = "医疗安全不良事件"; break; case "12": Viewer.Text = "医疗器械不良事件"; break; case "13": Viewer.Text = "药品不良事件"; break; case "14": Viewer.Text = "护理不良事件"; break; case "15": Viewer.Text = "输血不良事件记录"; break; case "16": Viewer.Text = "输血不良事件回报"; break; case "17": Viewer.Text = "职业暴露登记"; break; case "18": Viewer.Text = "护理质量异常指标监测报告"; break; case "19": Viewer.Text = "护理安全(不良)事件(新)"; break; case "20": Viewer.Text = "护理皮肤损害安全(不良)事件"; break; case "21": Viewer.Text = "护理皮肤损害(院外)事件"; break; default: break; } frm.Text = Viewer.Text; frm.ShowDialog(); if (frm.IsSave) { this.Query(); } }