Beispiel #1
0
        protected override void m_mthSetDefaultValue(clsPatient p_objPatient)
        {
            //记录时间跟住院病历
            clsInPatientCaseHisoryDefaultValue[] objInPatientCaseDefaultValue = new clsInPatientCaseHisoryDefaultDomain().lngGetAllInPatientCaseHisoryDefault(m_objCurrentPatient.m_StrInPatientID, m_objCurrentPatient.m_DtmSelectedInDate.ToString());
            if (objInPatientCaseDefaultValue != null && objInPatientCaseDefaultValue.Length > 0)
            {
                m_dtpCreateDate.Value = DateTime.Parse(objInPatientCaseDefaultValue[0].m_strCreateDate);
                m_dtpCreateDate.Refresh();
            }

            //默认值
            new clsDefaultValueTool(this, p_objPatient).m_mthSetDefaultValue();
            //左上端空几格
            //m_txtMostlyContent.m_mthInsertText("    ", 0);

            //自动调用模板
            m_mthSetSpecialPatientTemplateSet(p_objPatient);

            if (m_blnHaveAssociateTemplate)
            {
                //				int intIndex1 = m_txtRecordContent.Text.IndexOf("鉴别诊断");
                //				int intIndex2 = m_txtRecordContent.Text.LastIndexOf("鉴别诊断");
                //				if(intIndex1 != -1 && intIndex2 > intIndex1)
                //					m_txtRecordContent.Text = m_txtRecordContent.Text.Remove(intIndex1,intIndex2 - intIndex1);
            }


            //			//记住关联了哪个手术名称
            //			string strTemplateSetID = m_objTemplateDomain.m_strGetPatientHaveDisease_TemplateSetID(m_objCurrentPatient.m_StrInPatientID,m_objCurrentPatient.m_DtmLastInDate.ToString(),this.Name,(int)enmAssociate.Disease);
            //			m_txtRecordContent.Tag = m_objTemplateDomain.m_strGetAssociateIDBySetID(strTemplateSetID,(int)enmAssociate.Operation);
        }
Beispiel #2
0
        protected override void m_mthSetDeletedGUIFromContent(clsTrackRecordContent p_objContent)
        {
            if (p_objContent == null)
            {
                return;
            }
            clsTakeOverRecordContent_XJ objContent = (clsTakeOverRecordContent_XJ)p_objContent;

            //把表单值赋值到界面,由子窗体重载实现
            txtruyuanqingkuang.Text = com.digitalwave.Utility.Controls.ctlRichTextBox.s_strGetRightText(objContent.m_strRuYuanQingKuang, objContent.m_strRuYuanQingKuangXML);
            txtzhongyiruyuan.Text   = com.digitalwave.Utility.Controls.ctlRichTextBox.s_strGetRightText(objContent.m_strZhongYiRuYuan, objContent.m_strZhongYiRuYuanXML);
            txtxiyiruyuan.Text      = com.digitalwave.Utility.Controls.ctlRichTextBox.s_strGetRightText(objContent.m_strXiYiRuYuan, objContent.m_strXiYiRuYuanXML);
            txtzhenliaojingguo.Text = com.digitalwave.Utility.Controls.ctlRichTextBox.s_strGetRightText(objContent.m_strZhenLiaoJingGuo, objContent.m_strZhenLiaoJingGuoXML);

            txtmuqianqingkuang.Text = com.digitalwave.Utility.Controls.ctlRichTextBox.s_strGetRightText(objContent.m_strMuQianQingKuang, objContent.m_strMuQianQingKuangXML);
            txtzhongyimuqian.Text   = com.digitalwave.Utility.Controls.ctlRichTextBox.s_strGetRightText(objContent.m_strZhongYiMuQian, objContent.m_strZhongYiMuQianXML);
            txtxiyimuqian.Text      = com.digitalwave.Utility.Controls.ctlRichTextBox.s_strGetRightText(objContent.m_strXiYiMuQian, objContent.m_strXiYiMuQianXML);
            txtzhuyishixiang.Text   = com.digitalwave.Utility.Controls.ctlRichTextBox.s_strGetRightText(objContent.m_strZhenLiaoJiHua, objContent.m_strZhenLiaoJiHuaXML);
            //txtzhenliaojingguo.Text = com.digitalwave.Utility.Controls.ctlRichTextBox.s_strGetRightText(objContent.m_strZhenLiaoJingGuo, objContent.m_strZhenLiaoJingGuoXML);


            if (objContent.objSignerArr != null)
            {
                m_mthAddSignToListView(lsvSign, objContent.objSignerArr);
            }

            #region 入院原因(主诉)
            clsInPatientCaseHisoryDefaultValue[] objInPatientCaseHisoryDefaultValueArr = new clsInPatientCaseHisoryDefaultDomain().lngGetAllInPatientCaseHisoryDefault(m_objCurrentPatient.m_StrInPatientID, m_ObjLastEmrPatientSession.m_dtmEMRInpatientDate.ToString("yyyy-MM-dd HH:mm:ss"));
            if (objInPatientCaseHisoryDefaultValueArr != null && objInPatientCaseHisoryDefaultValueArr.Length > 0)
            {
                m_lblInHospitalReason.Text = objInPatientCaseHisoryDefaultValueArr[0].m_strMainDescription;
            }
            #endregion 入院原因(主诉)
        }
 /// <summary>
 /// 数据复用
 /// </summary>
 /// <param name="p_objSelectedPatient"></param>
 protected override void m_mthDataShare(clsPatient p_objSelectedPatient)
 {
     clsInPatientCaseHisoryDefaultValue[] objInPatientCaseDefaultValue = new clsInPatientCaseHisoryDefaultDomain().lngGetAllInPatientCaseHisoryDefault(p_objSelectedPatient.m_StrInPatientID, p_objSelectedPatient.m_DtmSelectedInDate.ToString());
     if (objInPatientCaseDefaultValue != null && objInPatientCaseDefaultValue.Length > 0)
     {
         this.m_txtInHospitalDiagnose.Text = objInPatientCaseDefaultValue[0].m_strPrimaryDiagnose;
     }
 }
Beispiel #4
0
        /// <summary>
        /// 把特殊记录的值显示到界面上。
        /// </summary>
        /// <param name="p_objContent"></param>
        protected override void m_mthSetGUIFromContent(clsTrackRecordContent p_objContent)
        {
            if (p_objContent == null)
            {
                return;
            }
            clsConveyRecordContent_XJ objContent = (clsConveyRecordContent_XJ)p_objContent;

            //把表单值赋值到界面,由子窗体重载实现
            txtruyuanqingkuang.m_mthSetNewText(objContent.m_strRuYuanQingKuang, objContent.m_strRuYuanQingKuangXML);
            txtzhongyiruyuan.m_mthSetNewText(objContent.m_strZhongYiRuYuan, objContent.m_strZhongYiRuYuanXML);
            txtxiyiruyuan.m_mthSetNewText(objContent.m_strXiYiRuYuan, objContent.m_strXiYiRuYuanXML);

            txtzhenliaojingguo.m_mthSetNewText(objContent.m_strZhenLiaoJingGuo, objContent.m_strZhenLiaoJingGuoXML);
            txtmuqianqingkuang.m_mthSetNewText(objContent.m_strMuQianQingKuang, objContent.m_strMuQianQingKuangXML);
            txtzhongyimuqian.m_mthSetNewText(objContent.m_strZhongYiMuQian, objContent.m_strZhongYiMuQianXML);
            txtxiyimuqian.m_mthSetNewText(objContent.m_strXiYiMuQian, objContent.m_strXiYiMuQianXML);
            txtzhuyishixiang.m_mthSetNewText(objContent.m_strZhenLiaoJiHua, objContent.m_strZhenLiaoJiHuaXML);
            txtzhuankemudi.m_mthSetNewText(objContent.m_strZhuanKeMuDi, objContent.m_strZhuanKeMuDiXML);
            // m_txtReferral.m_mthSetNewText(objContent.m_strReferral, objContent.m_strReferralXML);


            #region 签名集合
            if (objContent.objSignerArr != null)
            {
                m_mthAddSignToListView(lsvSign, objContent.objSignerArr);
                //lsvSign.Items.Clear();
                //for (int i = 0; i < objContent.objSignerArr.Length; i++)
                //{
                //    if (objContent.objSignerArr[i].controlName=="lsvSign")
                //    {
                //        ListViewItem lviNewItem=new                        ListViewItem(objContent.objSignerArr[i].objEmployee.m_strLASTNAME_VCHR);
                //        //ID 检查重复用
                //        lviNewItem.SubItems.Add(objContent.objSignerArr[i].objEmployee.m_strEMPID_CHR);
                //        //级别 排序用
                //        lviNewItem.SubItems.Add(objContent.objSignerArr[i].objEmployee.m_strLEVEL_CHR);
                //        //tag均为对象
                //        lviNewItem.Tag=objContent.objSignerArr[i].objEmployee;
                //        //是按顺序保存故获取顺序也一样
                //        lsvSign.Items.Add(lviNewItem);
                //    }
                //}
            }
            #endregion 签名


            #region 入院原因(主诉)
            clsInPatientCaseHisoryDefaultValue[] objInPatientCaseHisoryDefaultValueArr = new clsInPatientCaseHisoryDefaultDomain().lngGetAllInPatientCaseHisoryDefault(m_objCurrentPatient.m_StrInPatientID, m_ObjLastEmrPatientSession.m_dtmEMRInpatientDate.ToString("yyyy-MM-dd HH:mm:ss"));
            if (objInPatientCaseHisoryDefaultValueArr != null && objInPatientCaseHisoryDefaultValueArr.Length > 0)
            {
                m_lblInHospitalReason.Text = objInPatientCaseHisoryDefaultValueArr[0].m_strMainDescription;
            }
            #endregion 入院原因(主诉)
        }
 /// <summary>
 /// 当选择根节点时,设置特殊的默认值(若子窗体需要,则重载实现)
 /// </summary>
 protected override void m_mthSelectRootNode()
 {
     if (m_objCurrentPatient != null)
     {
         clsInPatientCaseHisoryDefaultValue[] objInPatientCaseHisoryDefaultValueArr = new clsInPatientCaseHisoryDefaultDomain().lngGetAllInPatientCaseHisoryDefault(m_objCurrentPatient.m_StrInPatientID, m_objCurrentPatient.m_DtmSelectedInDate.ToString("yyyy-MM-dd HH:mm:ss"));
         if (objInPatientCaseHisoryDefaultValueArr != null && objInPatientCaseHisoryDefaultValueArr.Length > 0)
         {
             m_txtInHospitalDiagnose.Text = objInPatientCaseHisoryDefaultValueArr[0].m_strPrimaryDiagnose;
         }
     }
 }
Beispiel #6
0
 /// <summary>
 /// 当选择根节点时,设置特殊的默认值(若子窗体需要,则重载实现)
 /// </summary>
 protected override void m_mthSelectRootNode()
 {
     #region 初步诊断默认值
     if (m_objCurrentPatient != null && m_ObjLastEmrPatientSession != null)
     {
         clsInPatientCaseHisoryDefaultValue[] objInPatientCaseHisoryDefaultValueArr = new clsInPatientCaseHisoryDefaultDomain().lngGetAllInPatientCaseHisoryDefault(m_objCurrentPatient.m_StrInPatientID, m_ObjLastEmrPatientSession.m_dtmEMRInpatientDate.ToString("yyyy-MM-dd HH:mm:ss"));
         if (objInPatientCaseHisoryDefaultValueArr != null && objInPatientCaseHisoryDefaultValueArr.Length > 0)
         {
             //m_txtOriginalDiagnose.Text = objInPatientCaseHisoryDefaultValueArr[0].m_strPrimaryDiagnose;
         }
     }
     #endregion 初步诊断默认值
 }
Beispiel #7
0
        /// <summary>
        /// 提取表头基本信息
        /// </summary>
        /// <returns></returns>
        private string m_strGetHeaderText()
        {
            if (m_objRecordContent == null)
            {
                return("");
            }

            clsOutHospitalRecordContent objContent = ((clsOutHospitalRecordContent)m_objRecordContent);
            string strText;

            strText = objContent.m_dtmCreateDate.ToString(MDIParent.s_ObjRecordDateTimeInfo.m_strGetRecordTimeFormat("frmOutHospital")) + "   " + "出院记录\n";
            clsPatient objPatient = new clsPatient(objContent.m_strInPatientID);

            if (objPatient != null && objPatient.m_ObjPeopleInfo != null)
            {
                strText += "  " + objPatient.m_ObjPeopleInfo.m_StrFirstName + "," + objPatient.m_ObjPeopleInfo.m_StrSex + "," + objPatient.m_ObjPeopleInfo.m_IntAge.ToString() + "岁,";
            }
            else
            {
                strText += "  病人信息不详,";
            }

            string strInHospitalReason = "";

            #region 入院原因(主诉)
            clsInPatientCaseHisoryDefaultValue[] objInPatientCaseHisoryDefaultValueArr = new clsInPatientCaseHisoryDefaultDomain().lngGetAllInPatientCaseHisoryDefault(objContent.m_strInPatientID, objContent.m_dtmInPatientDate.ToString("yyyy-MM-dd HH:mm:ss"));
            if (objInPatientCaseHisoryDefaultValueArr != null && objInPatientCaseHisoryDefaultValueArr.Length > 0)
            {
                strInHospitalReason = objInPatientCaseHisoryDefaultValueArr[0].m_strMainDescription;
            }
            #endregion 入院原因(主诉)

            string strLastChar = "";
            if (strInHospitalReason != null && strInHospitalReason.Length > 0)
            {
                strLastChar = strInHospitalReason.Substring(strInHospitalReason.Length - 1, 1);
            }
            if (strLastChar == "." || strLastChar == "," || strLastChar == "," || strLastChar == "。")   //去掉最后的标点
            {
                strInHospitalReason = strInHospitalReason.Substring(0, strInHospitalReason.Length - 1);
            }
            if (strInHospitalReason != "")
            {
                strInHospitalReason = "因" + strInHospitalReason + ",";
            }
            TimeSpan ts = objContent.m_dtmOutHospitalDate - objContent.m_dtmInPatientDate;

            //MM月->01月,M月->1月			只认英文字符
            strText += strInHospitalReason + objContent.m_dtmInPatientDate.ToString("yyyy年MM月dd日") + "入院," + objContent.m_dtmOutHospitalDate.ToString("yyyy年MM月dd日") + "出院,共住院" + (ts.Days + 1).ToString() + "天。";
            return(strText);
        }
Beispiel #8
0
        //private void frmHandOver_XJ_Load(object sender, EventArgs e)
        //{
        //    if (m_objCurrentPatient != null && m_ObjLastEmrPatientSession != null)
        //    {
        //        m_lblInHospitalDate.Text = m_ObjLastEmrPatientSession.m_dtmHISInpatientDate.ToString("yyyy年MM月dd日 HH:mm");
        //        #region 入院原因(主诉)
        //        clsInPatientCaseHisoryDefaultValue[] objInPatientCaseHisoryDefaultValueArr = new clsInPatientCaseHisoryDefaultDomain().lngGetAllInPatientCaseHisoryDefault(m_objCurrentPatient.m_StrInPatientID, m_ObjLastEmrPatientSession.m_dtmEMRInpatientDate.ToString("yyyy-MM-dd HH:mm:ss"));
        //        if (objInPatientCaseHisoryDefaultValueArr != null && objInPatientCaseHisoryDefaultValueArr.Length > 0)
        //        {
        //            m_lblInHospitalReason.Text = objInPatientCaseHisoryDefaultValueArr[0].m_strMainDescription;
        //        }
        //        #endregion 入院原因(主诉)
        //    }

        //    this.m_dtpCreateDate.m_EnmVisibleFlag = MDIParent.s_ObjRecordDateTimeInfo.m_enmGetRecordTimeFlag(this.Name);
        //    this.m_dtpCreateDate.m_mthResetSize();

        //    txtruyuanqingkuang.Focus();
        //}

        private void frmTakeOver_XJ_Load(object sender, EventArgs e)
        {
            if (m_objCurrentPatient != null && m_ObjLastEmrPatientSession != null)
            {
                m_lblInHospitalDate.Text = m_ObjLastEmrPatientSession.m_dtmHISInpatientDate.ToString("yyyy年MM月dd日 HH:mm");
                #region 入院原因(主诉)
                clsInPatientCaseHisoryDefaultValue[] objInPatientCaseHisoryDefaultValueArr = new clsInPatientCaseHisoryDefaultDomain().lngGetAllInPatientCaseHisoryDefault(m_objCurrentPatient.m_StrInPatientID, m_ObjLastEmrPatientSession.m_dtmEMRInpatientDate.ToString("yyyy-MM-dd HH:mm:ss"));
                if (objInPatientCaseHisoryDefaultValueArr != null && objInPatientCaseHisoryDefaultValueArr.Length > 0)
                {
                    m_lblInHospitalReason.Text = objInPatientCaseHisoryDefaultValueArr[0].m_strMainDescription;
                }
                #endregion 入院原因(主诉)
            }

            this.m_dtpCreateDate.m_EnmVisibleFlag = MDIParent.s_ObjRecordDateTimeInfo.m_enmGetRecordTimeFlag(this.Name);
            this.m_dtpCreateDate.m_mthResetSize();

            txtruyuanqingkuang.Focus();
        }
Beispiel #9
0
        /// <summary>
        /// 提取表头基本信息
        /// </summary>
        /// <returns></returns>
        private string m_strGetHeaderText()
        {
            if (m_objRecordContent == null)
            {
                return("");
            }

            clsTurnInRecordContent objContent = ((clsTurnInRecordContent)m_objRecordContent);
            string strText;

            strText = objContent.m_dtmCreateDate.ToString(MDIParent.s_ObjRecordDateTimeInfo.m_strGetRecordTimeFormat("frmTurnIn")) + "   " + "转入记录\n";
            clsPatient objPatient = new clsPatient(objContent.m_strInPatientID);


            string strInHospitalReason = "";

            #region 入院原因(主诉)
            clsInPatientCaseHisoryDefaultValue[] objInPatientCaseHisoryDefaultValueArr = new clsInPatientCaseHisoryDefaultDomain().lngGetAllInPatientCaseHisoryDefault(objContent.m_strInPatientID, objContent.m_dtmInPatientDate.ToString("yyyy-MM-dd HH:mm:ss"));
            if (objInPatientCaseHisoryDefaultValueArr != null && objInPatientCaseHisoryDefaultValueArr.Length > 0)
            {
                strInHospitalReason = objInPatientCaseHisoryDefaultValueArr[0].m_strMainDescription;
            }
            #endregion 入院原因(主诉)

            string strLastChar = "";
            if (strInHospitalReason != null && strInHospitalReason.Length > 0)
            {
                strLastChar = strInHospitalReason.Substring(strInHospitalReason.Length - 1, 1);
            }
            if (strLastChar == "." || strLastChar == "," || strLastChar == "," || strLastChar == "。")   //去掉最后的标点
            {
                strInHospitalReason = strInHospitalReason.Substring(0, strInHospitalReason.Length - 1);
            }
            if (strInHospitalReason != null && strInHospitalReason.Trim() != "")
            {
                strInHospitalReason = "因" + strInHospitalReason + ",";
            }
            TimeSpan ts = objContent.m_dtmCreateDate - objContent.m_dtmInPatientDate;

            strText += strInHospitalReason + m_objCurrentPatient.m_DtmSelectedHISInDate.ToString("yyyy年MM月dd日") + "入院.现住院第" + (ts.Days + 1).ToString() + "天。";
            return(strText);
        }