Ejemplo n.º 1
0
        public JsonResult StoreSiteDropList(string currentId)
        {
            UserInfo              sysUser  = CacheInit.GetUserInfo(HttpContext);
            StoreSiteRepository   rep      = new StoreSiteRepository();
            DataTable             source   = rep.GetDropListSource(sysUser.UserId, currentId);
            List <DropListSource> dropList = rep.DropList(source, "");

            return(DropListJson(dropList));
        }
Ejemplo n.º 2
0
 public override JsonResult DropList(string currentId, string pySearch)
 {
     try
     {
         ClearClientPageCache(Response);
         UserInfo              sysUser  = CacheInit.GetUserInfo(HttpContext);
         StoreSiteRepository   rep      = new StoreSiteRepository();
         DataTable             source   = rep.GetDropListSource(sysUser.UserId, currentId, sysUser);
         List <DropListSource> dropList = rep.DropList(source, "");
         return(DropListJson(dropList));
     }
     catch (Exception ex)
     {
         AppLog.WriteLog(AppMember.AppText["SystemUser"], LogType.Error, "StoreSiteController.SearchTree", "[Message]:" + ex.Message + " [StackTrace]:" + ex.StackTrace);
         return(new JsonResult());
     }
 }