Ejemplo n.º 1
0
        /// <summary>
        /// 查看病人的相关时限信息
        /// </summary>
        /// <param name="patid">病人id(住院首页序号)</param>
        public void CheckPatientTime(int patid)
        {
            DataSet infos = CreateInfoData();

            _qcsv = new Qcsv();
            DataTable dtTimeLimit = _qcsv.SelectPatientRuleRecords(patid);

            SetGridViewDisplay(infos, dtTimeLimit);
            SetGridView(infos, false);
            m_PatID      = patid;
            m_MethodName = "CheckPatientTime".ToUpper();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 查看医生的时限信息
        /// </summary>
        /// <param name="doctorId">需要查看时限信息的医生代码</param>
        /// <param name="includeSub">是否包含下级医生的时限信息</param>
        public void CheckDoctorTime(string doctorId, bool includeSub)
        {
            DataSet infos = CreateInfoData();

            _qcsv = new Qcsv();
            DataTable dtTimeLimit = _qcsv.SelectDoctorRuleRecords(doctorId);

            SetGridViewDisplay(infos, dtTimeLimit);
            SetGridView(infos, true);
            m_DoctorID   = doctorId;
            m_IncludeSub = includeSub;
            m_MethodName = "CheckDoctorTime".ToUpper();
            SetHeaderCenter();
        }
Ejemplo n.º 3
0
        /// <summary>
        /// 通过指定的条件类别和对象定位条件
        /// </summary>
        /// <param name="conditionType"></param>
        /// <param name="conditionObject"></param>
        /// <returns></returns>
        public static QCCondition SelectQCCondition(QCConditionType conditionType, object conditionObject)
        {
            IList <QCCondition> kindConditions = new List <QCCondition>();

            foreach (QCCondition qcc in _allConditions)
            {
                if (qcc._conditionType == conditionType)
                {
                    kindConditions.Add(qcc.Clone());
                }
            }

            string objtype = Qcsv.ConditionType2String(conditionType);

            if (string.IsNullOrEmpty(objtype))
            {
                foreach (QCCondition qcc in kindConditions)
                {
                    if (qcc.JudgeSetting == conditionObject.ToString())
                    {
                        return(qcc);
                    }
                }
            }
            else
            {
                foreach (QCCondition qcc in kindConditions)
                {
                    QCParams qcp = new QCParams(qcc.JudgeSetting);
                    if (Qcsv.JudgeObjIsEqualProps(Type.GetType(objtype), conditionObject, qcp))
                    {
                        return(qcc);
                    }
                }
            }
            return(null);
        }
Ejemplo n.º 4
0
        /// <summary>
        /// 通过指定的条件类别和对象定位条件
        /// </summary>
        /// <param name="resultType"></param>
        /// <param name="resultObject"></param>
        /// <returns></returns>
        public static QCResult SelectQCResult(QCResultType resultType, object resultObject)
        {
            IList <QCResult> kindResults = new List <QCResult>();

            foreach (QCResult qcr in _allResults)
            {
                if (qcr._type == resultType)
                {
                    kindResults.Add(qcr.Clone());
                }
            }

            string objtype = Qcsv.ResultType2String(resultType);

            if (string.IsNullOrEmpty(objtype))
            {
                foreach (QCResult qcr in kindResults)
                {
                    if (qcr.JudgeSetting == resultObject.ToString())
                    {
                        return(qcr);
                    }
                }
            }
            else
            {
                foreach (QCResult qcr in kindResults)
                {
                    QCParams qcp = new QCParams(qcr.JudgeSetting);
                    if (Qcsv.JudgeObjIsEqualProps(Type.GetType(objtype), resultObject, qcp))
                    {
                        return(qcr);
                    }
                }
            }
            return(null);
        }