// 获取记录的主要信息(必须获取的是CreateDate,OpenDate,LastModifyDate) protected override clsTrackRecordContent m_objGetRecordMainContent(int p_intRecordType, object[] p_objDataArr) { //根据 p_intRecordType 获取对应的 clsTrackRecordContent clsTrackRecordContent objContent = null; //(需要改动) switch ((enmDiseaseTrackType)p_intRecordType) { case enmDiseaseTrackType.QuickeningTutelar_Acad: objContent = new clsQuickeningTutelarValue(); //(需要改动) break; } if (objContent == null) { objContent = new clsQuickeningTutelarValue(); //(需要改动) } if (m_objCurrentPatient != null) { objContent.m_strInPatientID = m_objCurrentPatient.m_StrInPatientID; } else { clsPublicFunction.ShowInformationMessageBox("当前病人为空!"); return(null); } objContent.m_dtmInPatientDate = m_objCurrentPatient.m_ObjInBedInfo.m_ObjLastSessionInfo.m_DtmEMRInDate; objContent.m_dtmCreateDate = DateTime.Parse((string)p_objDataArr[0]); objContent.m_dtmOpenDate = DateTime.Parse((string)p_objDataArr[2]); objContent.m_dtmModifyDate = DateTime.Parse((string)p_objDataArr[3]); objContent.m_strCreateUserID = clsEMRLogin.LoginEmployee.m_strEMPNO_CHR; return(objContent); }
protected override iCareData.clsTrackRecordContent m_objGetContentFromGUI() { //界面参数校验 if (m_objCurrentPatient == null) // || this.txtInPatientID.Text!=this.m_objCurrentPatient.m_StrHISInPatientID || txtInPatientID.Text=="") { return(null); } //从界面获取表单值 clsQuickeningTutelarValue objContent = new clsQuickeningTutelarValue(); try { objContent.m_dtmCreateDate = DateTime.Now; //objContent.m_strINAMOUNTITEM_RIGHT=this.m_txtItem.m_strGetRightText(); objContent.m_strPREGNANTTEAM_CHR = this.m_txtPREGNANTTEAM_CHR.Text; objContent.m_strPREGNANTTEAM_CHR_RIGHT = this.m_txtPREGNANTTEAM_CHR.m_strGetRightText(); objContent.m_strPREGNANTTEAM_CHRXML = this.m_txtPREGNANTTEAM_CHR.m_strGetXmlText(); objContent.m_strMORNING_CHR_RIGHT = this.m_txtMORNING_CHR.m_strGetRightText(); objContent.m_strMORNING_CHR = this.m_txtMORNING_CHR.Text; objContent.m_strMORNING_CHRXML = this.m_txtMORNING_CHR.m_strGetXmlText(); objContent.m_strMIDDAY_CHR_RIGHT = this.m_txtMIDDAY_CHR.m_strGetRightText(); objContent.m_strMIDDAY_CHR = this.m_txtMIDDAY_CHR.Text; objContent.m_strMIDDAY_CHRXML = this.m_txtMIDDAY_CHR.m_strGetXmlText(); objContent.m_strEVENING_CHR_RIGHT = this.m_txtEVENING_CHR.m_strGetRightText(); objContent.m_strEVENING_CHR = this.m_txtEVENING_CHR.Text; objContent.m_strEVENING_CHRXML = this.m_txtEVENING_CHR.m_strGetXmlText(); objContent.m_strQUICKENINGNUM_CHR_RIGHT = this.m_txtQUICKENINGNUM_CHR.m_strGetRightText(); objContent.m_strQUICKENINGNUM_CHR = this.m_txtQUICKENINGNUM_CHR.Text; objContent.m_strQUICKENINGNUM_CHRXML = this.m_txtQUICKENINGNUM_CHR.m_strGetXmlText(); // objContent.m_strCreateUserID = ((clsEmployee)m_txtSign.Tag).m_StrEmployeeID; objContent.m_dtmModifyDate = DateTime.Now; objContent.m_strModifyUserID = MDIParent.OperatorID; } catch (Exception ex) { MessageBox.Show(ex.Message); } return(objContent); }
/// <summary> /// 把特殊记录的值显示到界面上。 /// </summary> /// <param name="p_objContent"></param> protected override void m_mthSetGUIFromContent(iCareData.clsTrackRecordContent p_objContent) { clsQuickeningTutelarValue objContent = (clsQuickeningTutelarValue )p_objContent; //把表单值赋值到界面,由子窗体重载实现 this.m_mthClearRecordInfo(); this.m_txtPREGNANTTEAM_CHR.m_mthSetNewText(objContent.m_strPREGNANTTEAM_CHR, objContent.m_strPREGNANTTEAM_CHRXML); this.m_txtMORNING_CHR.m_mthSetNewText(objContent.m_strMORNING_CHR, objContent.m_strMORNING_CHRXML); this.m_txtMIDDAY_CHR.m_mthSetNewText(objContent.m_strMIDDAY_CHR, objContent.m_strMIDDAY_CHRXML); this.m_txtEVENING_CHR.m_mthSetNewText(objContent.m_strEVENING_CHR, objContent.m_strEVENING_CHRXML); this.m_txtQUICKENINGNUM_CHR.m_mthSetNewText(objContent.m_strQUICKENINGNUM_CHR, objContent.m_strQUICKENINGNUM_CHRXML); // if(objContent.m_strScrutator_chr !=null &&objContent.m_strScrutator_chr != "") // m_txtSign.Text=objContent.m_strScrutator_chr; // this.m_txtSign.Enabled = false; this.m_dtpCreateDate.Enabled = false; }
protected override object[][] m_objGetRecordsValueArr(clsTransDataInfo p_objTransDataInfo) { #region 显示记录到DataGrid try { // #region 处理产次 // m_txtDiseaseID.Text = ""; // m_dtpCreateDate.Value = System.DateTime.Now; // #endregion if (p_objTransDataInfo == null) { return(null); } object[] objData; ArrayList objReturnData = new ArrayList(); clsQuickeningTutelarContentDataInfo objICUInfo = new clsQuickeningTutelarContentDataInfo(); //(需要改动) clsDSTRichTextBoxValue objclsDSTRichTextBoxValue; string strText, strXml; objICUInfo = (clsQuickeningTutelarContentDataInfo)p_objTransDataInfo; //(需要改动) if (objICUInfo.m_objRecordArr == null) { return(null); } int intRecordCount = objICUInfo.m_objRecordArr.Length; int intRowOfCurrentDetail = 0; for (int i = 0; i < intRecordCount; i++) { objData = new object[10]; //(需要改动) DataTable的列数 clsQuickeningTutelarValue objCurrent = objICUInfo.m_objRecordArr[i]; //(需要改动) clsQuickeningTutelarValue objNext = new clsQuickeningTutelarValue(); //下一条记录//(需要改动) if (i < intRecordCount - 1) { objNext = objICUInfo.m_objRecordArr[i + 1]; } #region 存放关键字段 if (objCurrent.m_dtmCreateDate != DateTime.MinValue) { objData[0] = objCurrent.m_dtmCreateDate; //存放记录时间的字符串 objData[1] = (int)enmRecordsType.QuickeningTutelar_Acad; //存放记录类型的int值 //(需要改动) objData[2] = objCurrent.m_dtmOpenDate; //存放记录的OpenDate字符串 objData[3] = objICUInfo.m_objRecordArr[objICUInfo.m_objRecordArr.Length - 1].m_dtmModifyDate; //存放记录的ModifyDate字符串 objData[4] = objCurrent.m_dtmCreateDate.ToString("yyyy-MM-dd"); //日期字符串 //修改后带有痕迹的记录不再显示时间 // if(i==0 || (i > 0 && objICUInfo.m_objRecordArr[i-1].m_dtmCreateDate != objCurrent.m_dtmCreateDate)) // objData[5] = objCurrent.m_dtmCreateDate.ToString("HH:mm");//时间字符串 // } m_dtmPreRecordDate = objCurrent.m_dtmCreateDate; #endregion ; // //产次处理 // m_txtDiseaseID.Text = objCurrent.m_strLayCount_chr; // if(objCurrent.m_strBeforehand_chr.Trim() != "") // m_dtpCreateDate.Value = Convert.ToDateTime(objCurrent.m_strBeforehand_chr.ToString().Trim()); // // #region 存放单项信息 // strText = objCurrent.m_strPREGNANTTEAM_CHR_RIGHT; strXml = "<root />"; if (objNext != null && objNext.m_dtmCreateDate == objCurrent.m_dtmCreateDate && objNext.m_strPREGNANTTEAM_CHR_RIGHT != objCurrent.m_strPREGNANTTEAM_CHR_RIGHT) /*objNext的记录内容与objCurrent的记录内容不一致,文本需要加双划线*/ { strXml = m_strGetDSTTextXML(objCurrent.m_strPREGNANTTEAM_CHR_RIGHT, objCurrent.m_strModifyUserID, objCurrent.m_strModifyUserName); } objclsDSTRichTextBoxValue = new clsDSTRichTextBoxValue(); objclsDSTRichTextBoxValue.m_strText = strText; objclsDSTRichTextBoxValue.m_strDSTXml = strXml; objData[5] = objclsDSTRichTextBoxValue; //孕周 //早 strText = objCurrent.m_strMORNING_CHR_RIGHT; strXml = "<root />"; if (objNext != null && objNext.m_dtmCreateDate == objCurrent.m_dtmCreateDate && objNext.m_strMORNING_CHR_RIGHT != objCurrent.m_strMORNING_CHR_RIGHT) /*objNext的记录内容与objCurrent的记录内容不一致,文本需要加双划线*/ { strXml = m_strGetDSTTextXML(objCurrent.m_strMORNING_CHR_RIGHT, objCurrent.m_strModifyUserID, objCurrent.m_strModifyUserName); } objclsDSTRichTextBoxValue = new clsDSTRichTextBoxValue(); objclsDSTRichTextBoxValue.m_strText = strText; objclsDSTRichTextBoxValue.m_strDSTXml = strXml; objData[6] = objclsDSTRichTextBoxValue; //早 //中 strText = objCurrent.m_strMIDDAY_CHR_RIGHT; strXml = "<root />"; if (objNext != null && objNext.m_dtmCreateDate == objCurrent.m_dtmCreateDate && objNext.m_strMIDDAY_CHR_RIGHT != objCurrent.m_strMIDDAY_CHR_RIGHT) /*objNext的记录内容与objCurrent的记录内容不一致,文本需要加双划线*/ { strXml = m_strGetDSTTextXML(objCurrent.m_strMIDDAY_CHR_RIGHT, objCurrent.m_strModifyUserID, objCurrent.m_strModifyUserName); } objclsDSTRichTextBoxValue = new clsDSTRichTextBoxValue(); objclsDSTRichTextBoxValue.m_strText = strText; objclsDSTRichTextBoxValue.m_strDSTXml = strXml; objData[7] = objclsDSTRichTextBoxValue; //中 // 晚 strText = objCurrent.m_strEVENING_CHR_RIGHT; strXml = "<root />"; if (objNext != null && objNext.m_dtmCreateDate == objCurrent.m_dtmCreateDate && objNext.m_strEVENING_CHR_RIGHT != objCurrent.m_strEVENING_CHR_RIGHT) /*objNext的记录内容与objCurrent的记录内容不一致,文本需要加双划线*/ { strXml = m_strGetDSTTextXML(objCurrent.m_strEVENING_CHR_RIGHT, objCurrent.m_strModifyUserID, objCurrent.m_strModifyUserName); } objclsDSTRichTextBoxValue = new clsDSTRichTextBoxValue(); objclsDSTRichTextBoxValue.m_strText = strText; objclsDSTRichTextBoxValue.m_strDSTXml = strXml; objData[8] = objclsDSTRichTextBoxValue; // 晚 //12小时胎动数 strText = objCurrent.m_strQUICKENINGNUM_CHR_RIGHT; strXml = "<root />"; if (objNext != null && objNext.m_dtmCreateDate == objCurrent.m_dtmCreateDate && objNext.m_strQUICKENINGNUM_CHR_RIGHT != objCurrent.m_strQUICKENINGNUM_CHR_RIGHT) /*objNext的记录内容与objCurrent的记录内容不一致,文本需要加双划线*/ { strXml = m_strGetDSTTextXML(objCurrent.m_strQUICKENINGNUM_CHR_RIGHT, objCurrent.m_strModifyUserID, objCurrent.m_strModifyUserName); } objclsDSTRichTextBoxValue = new clsDSTRichTextBoxValue(); objclsDSTRichTextBoxValue.m_strText = strText; objclsDSTRichTextBoxValue.m_strDSTXml = strXml; objData[9] = objclsDSTRichTextBoxValue; //12小时胎动数 // // 检查着 // strText = objCurrent.m_strScrutator_chr_RIGHT ; // strXml = "<root />"; // if(objNext != null && objNext.m_dtmCreateDate == objCurrent.m_dtmCreateDate && objNext.m_strScrutator_chr_RIGHT != objCurrent.m_strScrutator_chr_RIGHT)/*objNext的记录内容与objCurrent的记录内容不一致,文本需要加双划线*/ // { // strXml = m_strGetDSTTextXML(objCurrent.m_strScrutator_chr_RIGHT,objCurrent.m_strModifyUserID,objCurrent.m_strModifyUserName); // } // objclsDSTRichTextBoxValue=new clsDSTRichTextBoxValue(); // objclsDSTRichTextBoxValue.m_strText=strText; // objclsDSTRichTextBoxValue.m_strDSTXml=strXml; // objData[18] = objclsDSTRichTextBoxValue;// #region bak //一般情况 // string[] strGeneralInstanceArr = null; // string[] strGeneralInstanceXMLArr = null; // if(objCurrent.m_strGENERALINSTANCE_RIGHT != null ||objCurrent.m_strGENERALINSTANCE_RIGHT != "") // { // string strGeneralInstance = objCurrent.m_strGENERALINSTANCE_RIGHT; // string strGeneralInstanceXML = objCurrent.m_strGENERALINSTANCEXML; // string[] strGeneralInstanceArrTemp; // string[] strGeneralInstanceXMLArrTemp; // //将病情记录分为20个字符一行。因第一行要空两格,故添加空字符串 // com.digitalwave.controls.ctlRichTextBox.m_mthSplitXml(" "+strGeneralInstance,strGeneralInstanceXML,16,out strGeneralInstanceArrTemp,out strGeneralInstanceXMLArrTemp); // // if(objCurrent.m_strCreateUserName != null && objCurrent.m_strCreateUserName != "") // { // strGeneralInstanceArr = new string[strGeneralInstanceArrTemp.Length + 1]; // strGeneralInstanceXMLArr = new string[strGeneralInstanceXMLArrTemp.Length + 1]; // // for(int j=0; j<strGeneralInstanceArr.Length-1; j++) // { // strGeneralInstanceArr[j] = strGeneralInstanceArrTemp[j]; // } // strGeneralInstanceArr[strGeneralInstanceArr.Length-1] = objCurrent.m_dtmCreateDate.ToString("yyyy-MM-dd")+" "+objCurrent.m_strCreateUserName; // // strGeneralInstanceXMLArr[strGeneralInstanceXMLArr.Length-1] = ""; // for(int j=0; j<strGeneralInstanceXMLArr.Length-1; j++) // { // strGeneralInstanceXMLArr[j] = strGeneralInstanceXMLArrTemp[j]; // } // } // else // { // strGeneralInstanceArr = strGeneralInstanceArrTemp; // strGeneralInstanceXMLArr = strGeneralInstanceXMLArrTemp; // } // // strText = strGeneralInstanceArr[0]; // strXml = strGeneralInstanceXMLArr[0]; // objclsDSTRichTextBoxValue=new clsDSTRichTextBoxValue(); // objclsDSTRichTextBoxValue.m_strText=strText; // objclsDSTRichTextBoxValue.m_strDSTXml=strXml; // objData[16] = objclsDSTRichTextBoxValue; // } // objReturnData.Add(objData); // // if(strGeneralInstanceArr.Length > 1) // { // object[] objInstance = null; // for(int j=1; j<strGeneralInstanceArr.Length; j++) // { // objInstance = new object[17]; // strText = strGeneralInstanceArr[j]; // strXml = strGeneralInstanceXMLArr[j]; // objclsDSTRichTextBoxValue=new clsDSTRichTextBoxValue(); // objclsDSTRichTextBoxValue.m_strText=strText; // objclsDSTRichTextBoxValue.m_strDSTXml=strXml; // objInstance[16] = objclsDSTRichTextBoxValue; // objReturnData.Add(objInstance); // } // } #endregion objReturnData.Add(objData); #endregion } object[][] m_objRe = new object[objReturnData.Count][]; for (int m = 0; m < objReturnData.Count; m++) { m_objRe[m] = (object[])objReturnData[m]; } return(m_objRe); } catch (Exception ex) { MessageBox.Show(ex.Message); return(null); } #endregion }
/// <summary> /// 把选择时间记录内容重新整理为完全正确的内容。 /// </summary> /// <param name="p_objRecordContent"></param> protected override void m_mthReAddNewRecord(clsTrackRecordContent p_objRecordContent) { //把选择时间记录内容重新整理为完全正确的内容,由子窗体重载实现。 clsQuickeningTutelarValue objContent = (clsQuickeningTutelarValue)p_objRecordContent; //(需要改动) }