Пример #1
0
        public clsBrothRecords_F2Rec m_objGetSingleContent()
        {
            clsBrothRecords_F2Rec objRecord = new clsBrothRecords_F2Rec();
            long lngRes = m_objDomain.m_lngGetCircsRecordContent(m_strMotherID, m_strInPatientDate, m_strOpenTime, out objRecord);

            return(objRecord);
        }
Пример #2
0
        private void m_mthAddNewRecord()
        {
            clsBrothRecords_F2Rec 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_dtmBIRTHTIME = DateTime.Parse(m_strBirthTime);
            objNewRecord.m_dtmOpenDate     = DateTime.Parse(strNow);
            objNewRecord.m_strCreateUserID = MDIParent.OperatorID;
            objNewRecord.m_dtmCreateDate   = DateTime.Parse(strNow);
            objNewRecord.m_strModifyUserID = MDIParent.OperatorID;
            objNewRecord.m_dtmModifyDate   = DateTime.Parse(strNow);

            clsPreModifyInfo p_objModifyInfo = new clsPreModifyInfo();
            long             lngRes          = m_objDomain.m_lngAddNewCircsRecord(objNewRecord, out p_objModifyInfo);

            if (lngRes < 0)
            {
                MDIParent.ShowInformationMessageBox("保存失败");
            }
            else
            {
                this.DialogResult = DialogResult.Yes;
                this.Close();
            }
        }
Пример #3
0
 /// <summary>
 /// 设置是否控制修改(修改留痕迹)。
 /// </summary>
 /// <param name="p_objRecordContent"></param>
 /// <param name="p_blnReset"></param>
 protected void m_mthSetModifyControl(clsBrothRecords_F2Rec 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));
     }
 }
Пример #4
0
        /// <summary>
        /// 删除新生儿情况记录
        /// </summary>
        /// <param name="p_objRecordContent"></param>
        /// <param name="p_objModifyInfo"></param>
        /// <returns></returns>
        public long m_lngDeleteCircsRecord(clsBrothRecords_F2Rec p_objRecordContent)
        {
            clsBrothRecords_F2RecService m_objCircsServ =
                (clsBrothRecords_F2RecService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsBrothRecords_F2RecService));

            long m_lngRes = 0;

            try
            {
                m_lngRes = m_objCircsServ.m_lngDeleteCircsRecord(p_objRecordContent);
            }
            finally
            {
                //m_objCircsServ.Dispose();
            }
            return(m_lngRes);
        }
Пример #5
0
        private void m_mthSetCircsRecordContentToUI(clsBrothRecords_F2Rec objRecord)
        {
            if (objRecord != null)
            {
                m_dtpRecordTime.Value = objRecord.m_dtmRecordDate;
                //  m_cboBirthDays.Text = objRecord.m_strBIRTHDAYS == null ? "" : objRecord.m_strBIRTHDAYS.Trim();
                m_txtxueya.m_mthSetNewText(objRecord.str_XUEYA, objRecord.str_XUEYAXML);
                m_txtCgongsuojianxie.m_mthSetNewText(objRecord.str_GONGSUOJIANXUE, objRecord.str_GONGSUOJIANXUEXML);
                m_txtgongsuotimes.m_mthSetNewText(objRecord.str_GONGSUOTIME, objRecord.str_GONGSUOTIMEXML);
                m_txttaixin.m_mthSetNewText(objRecord.str_TAIXIN, objRecord.str_TAIXINXML);
                m_txtgongkoukaida.m_mthSetNewText(objRecord.str_GONGKOU, objRecord.str_GONGKOUXML);
                m_txttaimoqingkuang.m_mthSetNewText(objRecord.str_TAIMO, objRecord.str_TAIMOXML);
                m_txtxianlugaodi.m_mthSetNewText(objRecord.str_XIANLU, objRecord.str_XIANLUXML);
                m_txtjianchafa.m_mthSetNewText(objRecord.str_JIANCHAFA, objRecord.str_JIANCHAFAXML);
                m_txtgongdijisizhou.m_mthSetNewText(objRecord.str_GONGDIJIZHOU, objRecord.str_GONGDIJIZHOUXML);
                m_yindaofenmiwu.m_mthSetNewText(objRecord.str_FENMIWU, objRecord.str_FENMIWUXML);
                //m_txtAGNAIL.m_mthSetNewText(objRecord.m_strAGNAIL, objRecord.m_strAGNAILXML);
                //m_txtREDSTERN.m_mthSetNewText(objRecord.m_strREDSTERN, objRecord.m_strREDSTERNXML);
                //m_txtSTERNSKIN.m_mthSetNewText(objRecord.m_strSTERNSKIN, objRecord.m_strSTERNSKINXML);
                //m_txtHEARTLUNG.m_mthSetNewText(objRecord.m_strHEARTLUNG, objRecord.m_strHEARTLUNGXML);
                //m_txtABDOMEN.m_mthSetNewText(objRecord.m_strABDOMEN, objRecord.m_strABDOMENXML);
                //m_txtRemark.m_mthSetNewText(objRecord.m_strREMARK, objRecord.m_strREMARKXML);

                clsEmrEmployeeBase_VO objEmpVO = new clsEmrEmployeeBase_VO();
                objEmployeeSign.m_lngGetEmpByID(objRecord.m_strSignUserID, out objEmpVO);
                if (objEmpVO != null)
                {
                    m_txtDoctorSign.Tag  = objEmpVO;
                    m_txtDoctorSign.Text = objEmpVO.m_strLASTNAME_VCHR;
                }

                //if(objRecord.m_strSignUserName != "" && objRecord.m_strSignUserName != null && objRecord.m_strSignUserID != "" &&objRecord.m_strSignUserID != null)
                //{
                //    m_txtDoctorSign.Text = objRecord.m_strSignUserName;

                //    clsEmployee objEmp = new clsEmployee(objRecord.m_strSignUserID);
                //    m_txtDoctorSign.Tag = objEmp;
                //}
            }

            m_objCurrentRecord = objRecord;
        }
Пример #6
0
        /// <summary>
        /// 添加新生儿情况记录
        /// </summary>
        /// <param name="p_objRecordContent"></param>
        /// <param name="p_objModifyInfo"></param>
        /// <returns></returns>
        public long m_lngAddNewCircsRecord(clsBrothRecords_F2Rec p_objRecordContent,
                                           out clsPreModifyInfo p_objModifyInfo)
        {
            p_objModifyInfo = null;

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

            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);
        }
Пример #7
0
        private void frmBrothRecordsRec_F2_Load(object sender, EventArgs e)
        {
            if (!m_blnIsNew)
            {
                clsBrothRecords_F2Rec 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 { }
            }
        }
Пример #8
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 clsBrothRecords_F2Rec p_objRecordContent)
        {
            p_objRecordContent = null;
            clsTrackRecordContent objTemp = null;

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

            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 = (clsBrothRecords_F2Rec)objTemp;
            }
            finally
            {
                //m_objCircsServ.Dispose();
            }
            return(m_lngRes);
        }
Пример #9
0
        private clsBrothRecords_F2Rec m_objGetCircsRecordContentFromUI()
        {
            clsBrothRecords_F2Rec objRecord = new clsBrothRecords_F2Rec();

            objRecord.m_dtmRecordDate = m_dtpRecordTime.Value;


            objRecord.str_XUEYA    = m_txtxueya.m_strGetRightText();
            objRecord.str_XUEYAXML = m_txtxueya.m_strGetXmlText();

            objRecord.str_GONGSUOJIANXUE    = m_txtCgongsuojianxie.m_strGetRightText();
            objRecord.str_GONGSUOJIANXUEXML = m_txtCgongsuojianxie.m_strGetXmlText();

            objRecord.str_GONGSUOTIME    = m_txtgongsuotimes.m_strGetRightText();
            objRecord.str_GONGSUOTIMEXML = m_txtgongsuotimes.m_strGetXmlText();

            objRecord.str_TAIXIN    = m_txttaixin.m_strGetRightText();
            objRecord.str_TAIXINXML = m_txttaixin.m_strGetXmlText();

            objRecord.str_GONGKOU    = m_txtgongkoukaida.m_strGetRightText();
            objRecord.str_GONGKOUXML = m_txtgongkoukaida.m_strGetXmlText();

            objRecord.str_TAIMO    = m_txttaimoqingkuang.m_strGetRightText();
            objRecord.str_TAIMOXML = m_txttaimoqingkuang.m_strGetXmlText();

            objRecord.str_XIANLU    = m_txtxianlugaodi.m_strGetRightText();
            objRecord.str_XIANLUXML = m_txtxianlugaodi.m_strGetXmlText();

            objRecord.str_JIANCHAFA    = m_txtjianchafa.m_strGetRightText();
            objRecord.str_JIANCHAFAXML = m_txtjianchafa.m_strGetXmlText();

            objRecord.str_GONGDIJIZHOU    = m_txtgongdijisizhou.m_strGetRightText();
            objRecord.str_GONGDIJIZHOUXML = m_txtgongdijisizhou.m_strGetXmlText();

            objRecord.str_FENMIWU    = m_yindaofenmiwu.m_strGetRightText();
            objRecord.str_FENMIWUXML = m_yindaofenmiwu.m_strGetXmlText();

            //objRecord.m_strAGNAIL = m_txtAGNAIL.m_strGetRightText();
            //objRecord.m_strAGNAILXML = m_txtAGNAIL.m_strGetXmlText();

            //objRecord.m_strREDSTERN = m_txtREDSTERN.m_strGetRightText();
            //objRecord.m_strREDSTERNXML = m_txtREDSTERN.m_strGetXmlText();

            //objRecord.m_strSTERNSKIN = m_txtSTERNSKIN.m_strGetRightText();
            //objRecord.m_strSTERNSKINXML = m_txtSTERNSKIN.m_strGetXmlText();

            //objRecord.m_strHEARTLUNG = m_txtHEARTLUNG.m_strGetRightText();
            //objRecord.m_strHEARTLUNGXML = m_txtHEARTLUNG.m_strGetXmlText();

            //objRecord.m_strABDOMEN = m_txtABDOMEN.m_strGetRightText();
            //objRecord.m_strABDOMENXML = m_txtABDOMEN.m_strGetXmlText();

            //objRecord.m_strREMARK = m_txtRemark.m_strGetRightText();
            //objRecord.m_strREMARKXML = m_txtRemark.m_strGetXmlText();

            if (m_txtDoctorSign.Tag != null)
            {
                objRecord.m_strSignUserName = m_txtDoctorSign.Text;

                objRecord.m_strSignUserID = ((clsEmrEmployeeBase_VO)m_txtDoctorSign.Tag).m_strEMPID_CHR;
            }

            return(objRecord);
        }