Esempio n. 1
0
        private void BaseToVo(ref clsBIHOrder order)
        {
            //order.m_strOrderID = m_objViewer.baseBIHOrder.m_strOrderID;
            //order.m_intRecipenNo = m_objViewer.baseBIHOrder.m_intRecipenNo;
            order.m_strRegisterID = m_objViewer.baseBIHOrder.m_strRegisterID;
            //order.m_strParentID = m_objViewer.baseBIHOrder.m_strParentID;
            order.m_strPatientID = m_objViewer.baseBIHOrder.m_strPatientID;
            //order.m_intExecuteType = m_objViewer.baseBIHOrder.m_intExecuteType;
            order.m_intIsRepare = m_objViewer.baseBIHOrder.m_intIsRepare;
            //order.m_intRateType = m_objViewer.baseBIHOrder.m_intRateType;

            order.m_strCreator   = m_objViewer.baseBIHOrder.m_strCreator;
            order.m_strCreatorID = m_objViewer.baseBIHOrder.m_strCreatorID;
            //order.m_strOrderID = m_objViewer.baseBIHOrder.m_strOrderID;
            order.m_dtCreatedate = DateTime.Now;
            // 保存申请科室(当前科室)
            order.m_strCREATEAREA_ID   = m_objViewer.baseBIHOrder.m_strCREATEAREA_ID;
            order.m_strCREATEAREA_Name = m_objViewer.baseBIHOrder.m_strCREATEAREA_Name;

            order.m_strCHARGEDOCTORGROUPID = m_objViewer.baseBIHOrder.m_strCHARGEDOCTORGROUPID;
            order.m_strDOCTORID_CHR        = m_objViewer.baseBIHOrder.m_strDOCTORID_CHR;
            order.m_strDOCTOR_VCHR         = m_objViewer.baseBIHOrder.m_strDOCTOR_VCHR;
            order.m_strDOCTORGROUPID_CHR   = m_objViewer.baseBIHOrder.m_strDOCTORGROUPID_CHR;
            //下医嘱时病人所在病区ID
            order.m_strCURAREAID_CHR = m_objViewer.baseBIHOrder.m_strCURAREAID_CHR;
            //下医嘱时病人所在病床ID
            order.m_strCURBEDID_CHR = m_objViewer.baseBIHOrder.m_strCURBEDID_CHR;
            /*<==============================================*/
            //order.m_intOUTGETMEDDAYS_INT=m_objViewer.baseBIHOrder.m_intOUTGETMEDDAYS_INT;
            //order.m_intATTACHTIMES_INT=m_objViewer.baseBIHOrder.m_intATTACHTIMES_INT;
            order.m_dtStartDate  = m_objViewer.baseBIHOrder.m_dtStartDate;
            order.m_dtFinishDate = m_objViewer.baseBIHOrder.m_dtFinishDate;
            //医生签名
            order.SIGN_INT = m_objViewer.baseBIHOrder.SIGN_INT;
            // 设置类型及频率次数
            clsAIDRecipeFreq m_objTempFreq = GetFreqVoByFreqID(order.m_strExecFreqID);

            if (m_objTempFreq != null)
            {
                order.m_intFreqTime = m_objTempFreq.m_intTimes;
                order.m_intFreqDays = m_objTempFreq.m_intDays;
            }
            //设置领量及补次的量
        }
Esempio n. 2
0
        /// <summary>
        /// 根据频率id获取频率VO
        /// </summary>
        /// <param name="m_strExecFreqID"></param>
        /// <returns></returns>
        public clsAIDRecipeFreq GetFreqVoByFreqID(string m_strExecFreqID)
        {
            if (m_htTempFreq == null)
            {
                // clsBIHOrderService m_objService = clsGenerator.CreateObject(typeof(clsBIHOrderService)) as clsBIHOrderService;
                m_htTempFreq = new Hashtable();
                clsAIDRecipeFreq[] Freq;
                m_objManage.m_lngGetRecipeFreq("", out Freq);
                for (int i = 0; i < Freq.Length; i++)
                {
                    m_htTempFreq.Add(Freq[i].m_strFreqID, Freq[i]);
                }
            }
            clsAIDRecipeFreq m_objTemp = (clsAIDRecipeFreq)m_htTempFreq[m_strExecFreqID];

            if (m_objTemp == null)
            {
                m_objTemp = new clsAIDRecipeFreq();
            }
            return(m_objTemp);
        }