/// <summary> /// 二次手術呼叫表單 /// </summary> /// <param name="inCaseuuid">病例識別碼</param> /// <param name="inParentPostUuid">父項術後識別碼</param> public PreOperativeMainForm(string inCaseuuid, string inParentPostUuid) { //從 PreOperativeMainForm(string inCaseuuid) 複製 InitializeComponent(); firstLaunch = false; DBPostOperativeData parentPost = new DBPostOperativeData(inParentPostUuid); theOperativeCase = new DBOperativeCase(inCaseuuid); tmpopCase = new DBOperativeCase(inCaseuuid); if (theOperativeCase.caseuuid != "") { formDataType = FormDataType.FormDataTypeIsEdit; selectedPatientuuid = theOperativeCase.patuuid; selectedBookedsurgeonuuid = theOperativeCase.bookedsurgeonuuid; } else { //從父項術後找出原病人術後 formDataType = FormDataType.FormDataTypeIsAdd; DBOperativeCase parentCase = new DBOperativeCase(parentPost.caseuuid); selectedPatientuuid = parentCase.patuuid; doSelectedPatient(selectedPatientuuid); theOperativeCase.parentpostopuuid = inParentPostUuid; tmpopCase.parentpostopuuid = inParentPostUuid; } theODPreOperativeData = new DBPreOperativeData(inCaseuuid, "OD"); theOSPreOperativeData = new DBPreOperativeData(inCaseuuid, "OS"); tmpODInfo = new DBPreOperativeData(inCaseuuid, "OD"); tmpOSInfo = new DBPreOperativeData(inCaseuuid, "OS"); //從父項綁定 bindPreOperativeInfoFromParentPostUuid(inParentPostUuid); }
public TreatOperativeMainForm(string inCaseuuid) { InitializeComponent(); thisOperativeCase = new DBOperativeCase(inCaseuuid); if (thisOperativeCase.caseuuid == "") { new CustomMessageBox().Show("Error Operative Case!!", true); this.Close(); this.Dispose(); return; } ODPreInfoControl = new PreOPInfoControl(inCaseuuid, "OD"); OSPreInfoControl = new PreOPInfoControl(inCaseuuid, "OS"); //處理 DBTreatOperativeData: OD/OS thisODTreatOperativeData = new DBTreatOperativeData(inCaseuuid, "OD"); thisOSTreatOperativeData = new DBTreatOperativeData(inCaseuuid, "OS"); if (thisODTreatOperativeData.treatopuuid == "") { thisODTreatOperativeData.caseuuid = inCaseuuid; thisODTreatOperativeData.part = "OD"; } if (thisOSTreatOperativeData.treatopuuid == "") { thisOSTreatOperativeData.caseuuid = inCaseuuid; thisOSTreatOperativeData.part = "OS"; } //this.btnOD.Click += new System.EventHandler(this.btnODOS_Click); //this.btnOS.Click += new System.EventHandler(this.btnODOS_Click); // DBPreOperativeData ODtmpObj = new DBPreOperativeData(inCaseuuid, "OD"); DBPreOperativeData OStmpObj = new DBPreOperativeData(inCaseuuid, "OS"); ODsphericalcorr = ODtmpObj.spherical; OSsphericalcorr = OStmpObj.spherical; ODcylindericlcorr = ODtmpObj.cylinder; OScylindericlcorr = OStmpObj.cylinder; ODcylaxis = ODtmpObj.preaxis; OScylaxis = OStmpObj.preaxis; ODCCT = ODtmpObj.cct; OSCCT = OStmpObj.cct; ODFlapthickness = ODtmpObj.flapthickness; OSFlapthickness = OStmpObj.flapthickness; if (thisODTreatOperativeData.treatopuuid != "" || thisOSTreatOperativeData.treatopuuid != "") { formDataType = FormDataType.FormDataTypeIsEdit; } }
public PreOperativeMainForm() { InitializeComponent(); theOperativeCase = new DBOperativeCase(); theODPreOperativeData = new DBPreOperativeData(); theOSPreOperativeData = new DBPreOperativeData(); tmpopCase = new DBOperativeCase(); tmpODInfo = new DBPreOperativeData(); tmpOSInfo = new DBPreOperativeData(); formDataType = FormDataType.FormDataTypeIsAdd; }
public PreOperativeMainForm(string inCaseuuid) { InitializeComponent(); theOperativeCase = new DBOperativeCase(inCaseuuid); tmpopCase = new DBOperativeCase(inCaseuuid); if (theOperativeCase.caseuuid != "") { formDataType = FormDataType.FormDataTypeIsEdit; selectedPatientuuid = theOperativeCase.patuuid; selectedBookedsurgeonuuid = theOperativeCase.bookedsurgeonuuid; } theODPreOperativeData = new DBPreOperativeData(inCaseuuid, "OD"); theOSPreOperativeData = new DBPreOperativeData(inCaseuuid, "OS"); tmpODInfo = new DBPreOperativeData(inCaseuuid, "OD"); tmpOSInfo = new DBPreOperativeData(inCaseuuid, "OS"); }
private void bindViewValueToPreOPObj(DBPreOperativeData obj) { if (obj.part == "OD") { obj.spherical = tbOD_Spherical.Text.EMStringToDouble(); obj.cylinder = tbOD_Cylinder.Text.EMStringToDouble(); obj.preaxis = tbOD_PreAxis.Text.EMStringToDouble(); obj.ucva = tbOD_UCVA.Text.EMStringToDouble(); obj.bscva = tbOD_BSCVA.Text.EMStringToDouble(); obj.cct = tbOD_CCT.Text.EMStringToDouble(); obj.flapthickness = tbOD_Flapthickness.Text.EMStringToDouble(); obj.pupildiameter_s = tbOD_Pupildiameter_S.Text.EMStringToDouble(); obj.pupildiameter_m = tbOD_Pupildiameter_M.Text.EMStringToDouble(); obj.pupildiameter_p = tbOD_Pupildiameter_P.Text.EMStringToDouble(); obj.kvaluesteep = tbOD_KValueSteep.Text.EMStringToDouble(); obj.axis_ks = tbOD_Axis_KS.Text.EMStringToDouble(); obj.kvalueflat = tbOD_KValueFlat.Text.EMStringToDouble(); obj.axis_kf = tbOD_Axis_KF.Text.EMStringToDouble(); obj.qvalue = tbOD_QValue.Text.EMStringToDouble(); obj.contactlensperiod = tbOD_ContactlensPeriod.Text.EMStringToDouble(); } else if (obj.part == "OS") { obj.spherical = tbOS_Spherical.Text.EMStringToDouble(); obj.cylinder = tbOS_Cylinder.Text.EMStringToDouble(); obj.preaxis = tbOS_PreAxis.Text.EMStringToDouble(); obj.ucva = tbOS_UCVA.Text.EMStringToDouble(); obj.bscva = tbOS_BSCVA.Text.EMStringToDouble(); obj.cct = tbOS_CCT.Text.EMStringToDouble(); obj.flapthickness = tbOS_Flapthickness.Text.EMStringToDouble(); obj.pupildiameter_s = tbOS_Pupildiameter_S.Text.EMStringToDouble(); obj.pupildiameter_m = tbOS_Pupildiameter_M.Text.EMStringToDouble(); obj.pupildiameter_p = tbOS_Pupildiameter_P.Text.EMStringToDouble(); obj.kvaluesteep = tbOS_KValueSteep.Text.EMStringToDouble(); obj.axis_ks = tbOS_Axis_KS.Text.EMStringToDouble(); obj.kvalueflat = tbOS_KValueFlat.Text.EMStringToDouble(); obj.axis_kf = tbOS_Axis_KF.Text.EMStringToDouble(); obj.qvalue = tbOS_QValue.Text.EMStringToDouble(); obj.contactlensperiod = tbOS_ContactlensPeriod.Text.EMStringToDouble(); } }