/// <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 toPostOpForm(int pos_row, int pos_column) { PostOPTableDataRow p = _dataRowsArray[pos_row - 1]; p.fetchODOSInfo(); string click_part = (pos_column == 1) ? "OD" : "OS"; string OPuuid = (pos_column == 1) ? p.ODpostOpUUID : p.OSpostOpUUID; PostOPForm f = new PostOPForm(OPuuid, theOperativeCase.caseuuid, click_part, p.startDateString, p.endDateString); f.finishAction = (PostOPForm.PostOPFinishedAction action, string postuuid) => { if (action == PostOPForm.PostOPFinishedAction.IsRefresh) { //f.Close(); return; } if (action == PostOPForm.PostOPFinishedAction.IsChildCase) { //f.Hide(); string childCaseuuid = DBOperativeCase.caseuuidFromParentPostOPuuid(postuuid); PreOperativeMainForm childPreOPForm = new PreOperativeMainForm(childCaseuuid, postuuid); childPreOPForm.ShowDialog(); childPreOPForm.Dispose(); } renewDataRowsArray(); }; PostOPForm.Temp = this; Update_TabPage("postOPForm", f, OPuuid, theOperativeCase.caseuuid, click_part, p.startDateString, p.endDateString); this.passtabControl += new PasstabControl(f.ReceivepasstabControl); this.passtabControl(tabControlOperation); //f.ShowDialog(); //f.Dispose(); //f = null; }
public PostOperativeMainForm(string inCaseuuid) { InitializeComponent(); theOperativeCase = new DBOperativeCase(inCaseuuid); }
public PostOperativeMainForm() { InitializeComponent(); theOperativeCase = new DBOperativeCase(); }