Beispiel #1
0
        public clsGestationMisbirthsthreeVO m_objGetSingleContent()
        {
            clsGestationMisbirthsthreeVO objRecord = new clsGestationMisbirthsthreeVO();
            long lngRes = m_objDomain.m_lngGetCircsRecordContent(m_strMotherID, m_strInPatientDate, m_strOpenTime, out objRecord);

            return(objRecord);
        }
Beispiel #2
0
        private void m_mthModifyRecord()
        {
            if (m_objCurrentRecord == null)
            {
                return;
            }
            clsGestationMisbirthsthreeVO objNewRecord = m_objGetCircsRecordContentFromUI();

            string strNow = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");

            objNewRecord.m_strInPatientID   = m_strMotherID;
            objNewRecord.m_dtmInPatientDate = DateTime.Parse(m_strInPatientDate);
            objNewRecord.m_dtmOpenDate      = m_objCurrentRecord.m_dtmOpenDate;
            objNewRecord.m_strCreateUserID  = m_objCurrentRecord.m_strCreateUserID;
            objNewRecord.m_dtmCreateDate    = m_objCurrentRecord.m_dtmCreateDate;
            objNewRecord.m_strModifyUserID  = MDIParent.OperatorID;
            objNewRecord.m_dtmModifyDate    = DateTime.Parse(strNow);
            clsPreModifyInfo p_objModifyInfo = new clsPreModifyInfo();
            long             lngRes          = m_objDomain.m_lngModifyCircsRecord(m_objCurrentRecord, objNewRecord, out p_objModifyInfo);

            if (lngRes < 0)
            {
                MDIParent.ShowInformationMessageBox("保存失败");
            }
            else
            {
                this.DialogResult = DialogResult.Yes;
                this.Close();
            }
        }
Beispiel #3
0
        /// <summary>
        /// 设置是否控制修改(修改留痕迹)。

        /// </summary>
        /// <param name="p_objRecordContent"></param>
        /// <param name="p_blnReset"></param>
        protected void m_mthSetModifyControl(clsGestationMisbirthsthreeVO p_objRecordContent, bool p_blnReset)
        {
            //根据书写规范设置具体窗体的书写控制,由子窗体重载实现
            if (p_blnReset == true)
            {
                m_mthSetRichTextModifyColor(this, clsHRPColor.s_ClrInputFore);
                m_mthSetRichTextCanModifyLast(this, true);
            }
            else if (p_objRecordContent != null)
            {
                m_mthSetRichTextModifyColor(this, Color.Red);
                m_mthSetRichTextCanModifyLast(this, m_blnGetCanModifyLast(p_objRecordContent.m_strModifyUserID));
            }
        }
Beispiel #4
0
        /// <summary>
        /// 删除新生儿情况记录

        /// </summary>
        /// <param name="p_objRecordContent"></param>
        /// <param name="p_objModifyInfo"></param>
        /// <returns></returns>
        public long m_lngDeleteCircsRecord(clsGestationMisbirthsthreeVO p_objRecordContent)
        {
            clsGestationMisbirthsthreeRecService m_objCircsServ =
                (clsGestationMisbirthsthreeRecService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsGestationMisbirthsthreeRecService));
            long m_lngRes = 0;

            try
            {
                m_lngRes = m_objCircsServ.m_lngDeleteCircsRecord(p_objRecordContent);
            }
            finally
            {
                m_objCircsServ.Dispose();
            }
            return(m_lngRes);
        }
Beispiel #5
0
 private void frmGestationMisbirthsthree_Con_Load(object sender, EventArgs e)
 {
     this.Size = new System.Drawing.Size(650, 215);
     if (!m_blnIsNew)
     {
         clsGestationMisbirthsthreeVO objRecord = m_objGetSingleContent();
         m_mthSetCircsRecordContentToUI(objRecord);
         m_mthSetModifyControl(m_objCurrentRecord, false);
     }
     else
     {
         try
         {
             //TimeSpan tsBirthDays = m_dtpRecordTime.Value - DateTime.Parse(m_strBirthTime);
             //m_cboBirthDays.Text = (tsBirthDays.Days + 1).ToString();
             m_mthSetModifyControl(null, true);
         }
         catch { }
     }
 }
Beispiel #6
0
        /// <summary>
        /// 添加新生儿情况记录

        /// </summary>
        /// <param name="p_objRecordContent"></param>
        /// <param name="p_objModifyInfo"></param>
        /// <returns></returns>
        public long m_lngAddNewCircsRecord(clsGestationMisbirthsthreeVO p_objRecordContent,
                                           out clsPreModifyInfo p_objModifyInfo)
        {
            p_objModifyInfo = null;

            clsGestationMisbirthsthreeRecService m_objCircsServ =
                (clsGestationMisbirthsthreeRecService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsGestationMisbirthsthreeRecService));

            long m_lngRes = 0;

            try
            {
                m_lngRes = m_objCircsServ.m_lngAddNewRecord(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, p_objRecordContent, out p_objModifyInfo);
            }
            finally
            {
                //m_objCircsServ.Dispose();
            }
            return(m_lngRes);
        }
Beispiel #7
0
        private clsGestationMisbirthsthreeVO m_objGetCircsRecordContentFromUI()
        {
            clsGestationMisbirthsthreeVO objRecord = new clsGestationMisbirthsthreeVO();

            objRecord.m_dtmRecordDate = m_dtpRecordTime.Value;

            if (m_txtBLOODPRESSURE1.Text.Trim() != "" || m_txtBLOODPRESSURE2.Text.Trim() != "")
            {
                objRecord.m_strBLOODPRESSURE_VCHR = m_txtBLOODPRESSURE1.m_strGetRightText() + "/" + m_txtBLOODPRESSURE2.m_strGetRightText();
            }

            objRecord.m_strTEMPERATURE_VCHR = m_txtTEMPERATURE.m_strGetRightText();
            objRecord.m_strTEMPERATURE_XML  = m_txtTEMPERATURE.m_strGetXmlText();

            objRecord.m_strPULSE_VCHR = m_txtPULSE.m_strGetRightText();
            objRecord.m_strPULSE_XML  = m_txtPULSE.m_strGetXmlText();

            objRecord.m_strCONTRACTIONS_VCHR = m_txtCONTRACTIONS.m_strGetRightText();
            objRecord.m_strCONTRACTIONS_XML  = m_txtCONTRACTIONS.m_strGetXmlText();

            objRecord.m_strBLEEDING_VCHR = m_txtBLEEDING.m_strGetRightText();
            objRecord.m_strBLEEDING_XML  = m_txtBLEEDING.m_strGetXmlText();

            objRecord.m_strBROKENWATER_VCHR = m_txtBROKENWATER.m_strGetRightText();
            objRecord.m_strBROKENWATER_XML  = m_txtBROKENWATER.m_strGetXmlText();

            objRecord.m_strFETAL_VCHR = m_txtFETAL.m_strGetRightText();
            objRecord.m_strFETAL_XML  = m_txtFETAL.m_strGetXmlText();

            objRecord.m_strMIYAGUCHISIZE_VCHR = m_txtMIYAGUCHISIZE.m_strGetRightText();
            objRecord.m_strMIYAGUCHISIZE_XML  = m_txtMIYAGUCHISIZE.m_strGetXmlText();

            if (m_txtSign.Tag != null)
            {
                //objRecord.m_strSignUserID = ((clsEmrEmployeeBase_VO)m_txtSign.Tag).m_strEMPID_CHR;
                objRecord.m_strSignUserName = m_txtSign.Text;
            }

            return(objRecord);
        }
Beispiel #8
0
        private void m_mthSetCircsRecordContentToUI(clsGestationMisbirthsthreeVO objRecord)
        {
            if (objRecord != null)
            {
                m_dtpRecordTime.Value = objRecord.m_dtmRecordDate;
                if (objRecord.m_strBLOODPRESSURE_VCHR != "")
                {
                    string[] strXY = objRecord.m_strBLOODPRESSURE_VCHR.Split('/');
                    m_txtBLOODPRESSURE1.Text = strXY[0].ToString();
                    m_txtBLOODPRESSURE2.Text = strXY[1].ToString();
                }
                m_txtTEMPERATURE.m_mthSetNewText(objRecord.m_strTEMPERATURE_VCHR, objRecord.m_strTEMPERATURE_XML);
                m_txtPULSE.m_mthSetNewText(objRecord.m_strPULSE_VCHR, objRecord.m_strPULSE_XML);
                m_txtCONTRACTIONS.m_mthSetNewText(objRecord.m_strCONTRACTIONS_VCHR, objRecord.m_strCONTRACTIONS_XML);
                m_txtBLEEDING.m_mthSetNewText(objRecord.m_strBLEEDING_VCHR, objRecord.m_strBLEEDING_XML);
                m_txtBROKENWATER.m_mthSetNewText(objRecord.m_strBROKENWATER_VCHR, objRecord.m_strBROKENWATER_XML);
                m_txtFETAL.m_mthSetNewText(objRecord.m_strFETAL_VCHR, objRecord.m_strFETAL_XML);
                m_txtSign.Text = objRecord.m_strSignUserName;
                m_txtMIYAGUCHISIZE.m_mthSetNewText(objRecord.m_strMIYAGUCHISIZE_VCHR, objRecord.m_strMIYAGUCHISIZE_XML);

                clsEmrEmployeeBase_VO objEmpVO = new clsEmrEmployeeBase_VO();
                objEmployeeSign.m_lngGetEmpByID(objRecord.m_strSignUserID, out objEmpVO);
                //if (objEmpVO != null)
                //{
                //    m_txtSign.Tag = objEmpVO;
                //    m_txtSign.Text = objEmpVO.m_strLASTNAME_VCHR;
                //}
                if (objRecord.m_strSignUserName != "" && objRecord.m_strSignUserName != null && objRecord.m_strSignUserID != "" && objRecord.m_strSignUserID != null)
                {
                    m_txtSign.Text = objRecord.m_strSignUserName;

                    clsEmployee objEmp = new clsEmployee(objRecord.m_strSignUserID);
                    m_txtSign.Tag = objEmp;
                }
            }
            m_objCurrentRecord = objRecord;
        }
Beispiel #9
0
        /// <summary>
        /// 获取新生儿情况记录

        /// </summary>
        /// <param name="p_strInPatientID"></param>
        /// <param name="p_strInPatientDate"></param>
        /// <param name="p_strOpenDate"></param>
        /// <param name="p_objRecordContent"></param>
        /// <returns></returns>
        public long m_lngGetCircsRecordContent(string p_strInPatientID,
                                               string p_strInPatientDate,
                                               string p_strOpenDate,
                                               out clsGestationMisbirthsthreeVO p_objRecordContent)
        {
            p_objRecordContent = null;
            clsTrackRecordContent objTemp = null;

            clsGestationMisbirthsthreeRecService m_objCircsServ =
                (clsGestationMisbirthsthreeRecService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsGestationMisbirthsthreeRecService));

            long m_lngRes = 0;

            try
            {
                m_lngRes           = m_objCircsServ.m_lngGetRecordContent(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, p_strInPatientID, p_strInPatientDate, p_strOpenDate, out objTemp);
                p_objRecordContent = (clsGestationMisbirthsthreeVO)objTemp;
            }
            finally
            {
                //m_objCircsServ.Dispose();
            }
            return(m_lngRes);
        }