public static PodTable.Record GetPodByRes(string res) { if (!UserCacheManager.ContainesKey("USERCEH_NAMECACHE", res)) { var orgRec = PodTable.GetRecord(new SqlCmdText("CEH_NAME = @cehname and PR_DO = ''", new SqlParam("cehname", res))); UserCacheManager.Set("USERCEH_NAMECACHE", res, orgRec); return(orgRec); } return(UserCacheManager.Get <PodTable.Record>("USERCEH_NAMECACHE", Text.Convert(res))); }
public static OrgTable.Record GetOrgByCode(int org) { if (!UserCacheManager.ContainesKey("USERCONTRACTORCACHE", Text.Convert(org))) { var orgRec = OrgTable.GetRecord(org); UserCacheManager.Set("USERCONTRACTORCACHE", Text.Convert(org), orgRec); return(orgRec); } return(UserCacheManager.Get <OrgTable.Record>("USERCONTRACTORCACHE", Text.Convert(org))); }