Exemplo n.º 1
0
        public IList <NursingQuestion> LstNurseQuestion()
        {
            var cache = CacheIO.Get(KEY);

            if (cache == null)
            {
                var data = List <NursingQuestion>(null);
                CacheIO.Insert(KEY, data);
                return(data);
            }
            return(cache as IList <NursingQuestion>);
        }
Exemplo n.º 2
0
        public IList <NursingMark> GetMarks()
        {
            var cache = CacheIO.Get(KEY);

            if (cache == null)
            {
                var data = this.List <NursingMark>(null);
                CacheIO.Insert(KEY, data);
                return(data);
            }

            return(cache as IList <NursingMark>);
        }
Exemplo n.º 3
0
        /// <summary>
        /// 根据Code查找
        /// </summary>
        /// <param name="code">因素/ys、目标/mb、措施/cs、评估/pg</param>
        /// <returns></returns>
        public IList <NursingPlanTarget> GetPlanTargetByCode(string code)
        {
            if (string.IsNullOrEmpty(code))
            {
                return(null);
            }

            var key = string.Format("{0}_{1}", PREFIX, code);

            var cache = CacheIO.Get(key);

            if (cache == null)
            {
                var data = List <NursingPlanTarget>(new { Code = code }.toStrObjDict());
                CacheIO.Insert(key, data);
                return(data);
            }
            return(cache as IList <NursingPlanTarget>);
        }