Beispiel #1
0
        /// <summary>
        /// 修改主记录
        /// </summary>
        /// <param name="p_objMain"></param>
        /// <param name="p_objContent"></param>
        /// <returns></returns>
        public long m_lngModifyMain(clsPartogramMain_VO p_objMain, clsPartogramContent_VO p_objContent)
        {
            clsPartogramService objServ =
                (clsPartogramService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsPartogramService));

            long lngRes = objServ.m_lngModifyMain(null, p_objMain, p_objContent);

            return(lngRes);
        }
Beispiel #2
0
        protected override long m_lngSubAddNew()
        {
            clsPartogramContent_VO objContent = null;
            clsPartogramMain_VO    objMain    = m_objGetMainContentFromGui(out objContent);

            if (objMain == null || objContent == null)
            {
                return(-1);
            }
            objMain.m_dtmCREATEDATE_DAT    = new clsPublicDomain().m_dtmGetServerTime();
            objMain.m_dtmRECORDDATE_DAT    = objMain.m_dtmCREATEDATE_DAT;
            objMain.m_strREGISTERID_CHR    = m_objBaseCurrentPatient.m_StrRegisterId;
            objContent.m_strREGISTERID_CHR = m_objBaseCurrentPatient.m_StrRegisterId;
            objContent.m_dtmCREATEDATE_DAT = objMain.m_dtmCREATEDATE_DAT;
            objContent.m_dtmMODIFYDATE_DAT = objMain.m_dtmCREATEDATE_DAT;
            //数字签名 兼容考虑
            //记录ID通常为 住院号+住院时间 || 住院号+记录时间 来识别唯一 格式 00000056-2005-10-10 10:20:20
            clsEmrDigitalSign_VO objSign_VO = new clsEmrDigitalSign_VO();

            objSign_VO.m_strFORMID_VCHR       = this.Name;
            objSign_VO.m_strFORMRECORDID_VCHR = m_objBaseCurrentPatient.m_StrInPatientID.Trim() + "-" + m_objBaseCurrentPatient.m_DtmSelectedInDate.ToString("yyyy-MM-dd HH:mm:ss");
            objSign_VO.m_strSIGNIDID_VCHR     = clsEMRLogin.LoginInfo.m_strEmpID;
            objSign_VO.m_strRegisterId        = m_objBaseCurrentPatient.m_StrRegisterId;
            clsCheckSignersController objCheck = new clsCheckSignersController();

            if (objCheck.m_lngSign(new object[] { objMain, objContent }, objSign_VO) == -1)
            {
                return(-1);
            }

            long lngRes = m_objDomain.m_lngAddNewMain(objMain, objContent);

            if (lngRes > 0)
            {
                m_blnIsNew = false;
                if (m_objPartogramRecord == null)
                {
                    m_objPartogramRecord = new clsPartogramAll_VO();
                }
                m_objPartogramRecord.m_objPartogramMain    = objMain;
                m_objPartogramRecord.m_objPartogramContent = objContent;
            }
            return(lngRes);
        }
Beispiel #3
0
        private clsPartogramMain_VO m_objGetMainContentFromGui(out clsPartogramContent_VO p_objContent)
        {
            p_objContent = null;
            clsPartogramMain_VO objMain = new clsPartogramMain_VO();
            DateTime            dtmTemp = m_dtmNullDate;

            #region AddMain
            objMain.m_intIFCONFIRM_INT = 0;
            objMain.m_intMarkStatus    = 0;
            objMain.m_intSTATUS_INT    = 0;

            objMain.m_strALLPARTOGRAM_VCHR        = m_txtAllPartogram.Text;
            objMain.m_strALLPARTOGRAM_XML_VCHR    = "";
            objMain.m_strCHILDBEARINGWAY_VCHR     = m_cboGravidWay.Text;
            objMain.m_strCREATEUSERID_CHR         = clsEMRLogin.LoginInfo.m_strEmpID;
            objMain.m_strFIRSTPARTOGRAM_VCHR      = m_txtFirstPartogram.Text;
            objMain.m_strFIRSTPARTOGRAM_XML_VCHR  = m_txtFirstPartogram.m_strGetXmlText();
            objMain.m_strRECORDUSERID_VCHR        = objMain.m_strCREATEUSERID_CHR;
            objMain.m_strSECONDPARTOGRAM_VCHR     = m_txtSndPartogram.Text;
            objMain.m_strSECONDPARTOGRAM_XML_VCHR = m_txtSndPartogram.m_strGetXmlText();
            objMain.m_strTHIRDPARTOGRAM_VCHR      = m_txtThreePartogram.Text;
            objMain.m_strTHIRDPARTOGRAM_XML_VCHR  = m_txtThreePartogram.m_strGetXmlText();
            objMain.m_strRECORDUSERID_VCHR        = clsEMRLogin.LoginInfo.m_strEmpID;
            objMain.m_strAIDUSER_XML_VCHR         = m_txtAidUser.m_strGetXmlText();
            objMain.m_strAIDUSER_VCHR             = m_txtAidUser.Text;

            //获取签名
            string strUserIDList   = "";
            string strUserNameList = "";
            m_mthGetSignArr(new Control[] { m_lsvDeliver }, ref objMain.objSignerArr, ref strUserIDList, ref strUserNameList);

            #endregion AddMain

            #region AddContent
            p_objContent = new clsPartogramContent_VO();
            DateTime.TryParse(m_txtBreakTime.m_objGetValue(), out dtmTemp);
            p_objContent.m_dtmBREAKTIME_DAT = dtmTemp;
            dtmTemp = m_dtmNullDate;
            DateTime.TryParse(m_txtGiveBirthTime.m_objGetValue(), out dtmTemp);
            p_objContent.m_dtmGIVEBIRTHTIME_DAT = dtmTemp;
            dtmTemp = m_dtmNullDate;
            DateTime.TryParse(m_txtExpectDate.m_objGetValue(), out dtmTemp);
            p_objContent.m_dtmEDC_DAT = dtmTemp;
            dtmTemp = m_dtmNullDate;
            DateTime.TryParse(m_txtMenses.m_objGetValue(), out dtmTemp);
            p_objContent.m_dtmLASTMENSES_DAT = dtmTemp;

            int intTemp = 0;
            int.TryParse(m_txtBorn.m_objGetValue(), out intTemp);
            p_objContent.m_intBORNCOUNT_INT = intTemp;
            intTemp = 0;
            int.TryParse(m_txtGravid.m_objGetValue(), out intTemp);
            p_objContent.m_intGRAVIDITYCOUNT_INT = intTemp;
            intTemp = 0;
            int.TryParse(m_txtHight.m_objGetValue(), out intTemp);
            p_objContent.m_intHEIGHT_INT = intTemp;
            intTemp = 0;
            int.TryParse(m_txtWeight.m_objGetValue(), out intTemp);
            p_objContent.m_intWEIGHT_INT             = intTemp;
            p_objContent.m_intSTATUS_INT             = 1;
            p_objContent.m_strALLPARTOGRAM_R_VCHR    = m_txtAllPartogram.m_strGetRightText();
            p_objContent.m_strCHILDBEARINGWAY_R_VCHR = m_cboGravidWay.Text;
            p_objContent.m_strFIRSTPARTOGRAM_R_VCHR  = m_txtFirstPartogram.m_strGetRightText();
            p_objContent.m_strREGISTERID_CHR         = m_objBaseCurrentPatient.m_StrRegisterId;
            p_objContent.m_strMODIFYUSERID_CHR       = clsEMRLogin.LoginInfo.m_strEmpID;
            p_objContent.m_strSECONDPARTOGRAM_R_VCHR = m_txtSndPartogram.m_strGetRightText();
            p_objContent.m_strSEX_VCHR = m_cboSex.Text;
            p_objContent.m_strTHIRDPARTOGRAM_R_VCHR = m_txtThreePartogram.m_strGetRightText();
            p_objContent.m_strAIDUSER_R_VCHR        = m_txtAidUser.m_strGetRightText();
            #endregion AddContent

            return(objMain);
        }