/// <summary> /// 点击"放弃填写"事件 /// </summary> void _userGiveUp_GiveUpClik() { FrmEscOrFinishGiveUp esc = new FrmEscOrFinishGiveUp("确认放弃本次筛查报告填写吗", "*本次已填写的内容将不会被保存"); esc.Opacity = 0.0; _fGiveUp = esc; esc.Show(); timerGiveUp.Start(); }
void printDataOrNot1_NotPrintEvent() { FrmEscOrFinishGiveUp giveUp = new FrmEscOrFinishGiveUp("确认放弃报告打印吗?", "*您可在待机画面下选择重新打印报告"); _fGiveUpPrint = giveUp; _fGiveUpPrint.Opacity = 0.0; timerGiveUpPrint.Start(); giveUp.ShowDialog(); //询问界面 if (giveUp.DialogResult == DialogResult.OK) //确认放弃报告打印 { giveUp.Dispose(); //询问界面关闭 Close(); Dispose(); } else if (giveUp.DialogResult == DialogResult.Cancel) //不放弃 { giveUp.Dispose(); //询问界面 } }
void PrevOrNext_Next() { if (_park != _frmList.Count) { timerNext.Start(); } else { FrmEscOrFinishGiveUp finish = new FrmEscOrFinishGiveUp("确认提交筛查报告吗?", "*提交后本次结果将不可被修改"); finish.Opacity = 0.0; _fPrint = finish; timerPrint.Start(); finish.ShowDialog();//询问是否提交报告界面 if (finish.DialogResult == DialogResult.OK) { _patient.PSex = _sexUi.NeedMessage == "男";//男true女false _patient.PAge = Convert.ToInt32(_ageUi.NeedMessage); _patient.PHeight = Convert.ToInt32(_heightUi.NeedMessage); _patient.Pweight = Convert.ToInt32(_weightUi.NeedMessage); _patient.PWaist = _waistLineUi.NeedMessage; _patient.PHighBloodPressure = Convert.ToInt32(_bloodPressureUi.NeedMessage.Split('@')[0]); _patient.PLowBloodPressure = Convert.ToInt32(_bloodPressureUi.NeedMessage.Split('@')[1]); _patient.PUseHypotensor = _useMedicineUi.NeedMessage == "已用降压药"; //已使用为true _patient.PBloodSugar = _bloodSugarUi.NeedMessage.Split('@')[0]; _patient.PSmoking = _smokingUi.NeedMessage == "吸烟"; //吸烟为true _patient.PLackExercise = _sportUi.NeedMessage.Split('@')[0] == "缺乏运动"; //缺乏运动 为true _patient.PHeredity = _inheritanceUi.NeedMessage.Split('@')[0] == "一级亲属中\n有糖尿病患者"; //亲属有病为true _patient.PHighCholesterol = _highCholesterolUi.NeedMessage.Split('@')[0] == "高胆固醇"; //高胆固醇为true _patient.PStroke = _strokeUi.NeedMessage.Split('@')[0] == "有过\n短暂性脑缺血发作或中风"; //有为true _patient.PFamilyStroke = _familyStrokeUi.NeedMessage.Split('@')[0] == "有中风家族史"; _patient.PDateTime = DateTime.Now; ResultReport rr = new ResultReport(_patient); rr.Opacity = 0.0; _thisrr = rr; rr.Show();//结果报告界面 timerAskToReport.Start(); } else { finish.Close(); } } }