public ServiceResponseData GetSystemParamenter()
        {
            SysConfigManagement basic  = NewObject <SysConfigManagement>();
            string regValidDays        = basic.GetSystemConfigValue("RegValidPeriod");
            string presCount           = basic.GetSystemConfigValue("PresCount");
            string drugRepeatWarn      = basic.GetSystemConfigValue("DrugRepeatWarn");
            string dayGreater30        = basic.GetSystemConfigValue("DayGreater30");
            string canPrintChargedPres = basic.GetSystemConfigValue("CanPrintChargedPres");

            responseData.AddData(regValidDays);
            responseData.AddData(presCount);
            responseData.AddData(drugRepeatWarn);
            responseData.AddData(dayGreater30);
            responseData.AddData(canPrintChargedPres);
            return(responseData);
        }
        /// <summary>
        /// 一键复制就诊记录
        /// </summary>
        /// <param name="bDiseaseHis">病历</param>
        /// <param name="bWest">西药</param>
        /// <param name="bChinese">中草药</param>
        /// <param name="bFee">费用</param>
        /// <param name="currentPatId">当前病人Id</param>
        /// <param name="hisPatListId">历史病人Id</param>
        /// <param name="presDoctorID">处方医生Id</param>
        /// <param name="presDeptID">处方科室</param>
        /// <returns>true成功</returns>
        public bool OneCopy(bool bDiseaseHis, bool bWest, bool bChinese, bool bFee, int currentPatId, int hisPatListId, int presDoctorID, int presDeptID)
        {
            SysConfigManagement basic = NewObject <SysConfigManagement>();
            string     regValidDays   = basic.GetSystemConfigValue("RegValidPeriod");
            OP_PatList pat            = NewObject <OP_PatList>().getmodel(currentPatId) as OP_PatList;
            DateTime   regDate        = pat.RegDate;
            DateTime   tempDate       = regDate.AddDays(Convert.ToInt32(regValidDays) - 1);

            if (tempDate < DateTime.Now)
            {
                throw new Exception("该病人超过挂号有效期不能复制");
            }

            //复制病历
            if (bDiseaseHis)
            {
                CopyOMR(currentPatId, hisPatListId, presDoctorID, presDeptID);
            }

            if (bWest)
            {
                CopyPres(1, currentPatId, hisPatListId, presDoctorID, presDeptID);
            }

            if (bChinese)
            {
                CopyPres(2, currentPatId, hisPatListId, presDoctorID, presDeptID);
            }

            if (bFee)
            {
                CopyPres(3, currentPatId, hisPatListId, presDoctorID, presDeptID);
            }

            return(true);
        }