Esempio n. 1
0
        /// <summary>
        /// 覆核作業查詢畫面
        /// </summary>
        /// <param name="searchModel"></param>
        /// <returns></returns>
        public JsonResult SearchAppr(TreasuryAccessApprSearchViewModel searchModel)
        {
            MSGReturnModel <string> result = new MSGReturnModel <string>();

            result.RETURN_FLAG = false;
            result.DESCRIPTION = Ref.MessageType.not_Find_Any.GetDescription();
            Cache.Invalidate(CacheList.TreasuryAccessApprSearchData);
            Cache.Set(CacheList.TreasuryAccessApprSearchData, searchModel);
            var datas = TreasuryAccess.GetApprSearchDetail(searchModel);

            if (datas.Any())
            {
                Cache.Invalidate(CacheList.TreasuryAccessApprSearchDetailViewData);
                Cache.Set(CacheList.TreasuryAccessApprSearchDetailViewData, datas);
                result.RETURN_FLAG = true;
            }
            return(Json(result));
        }