コード例 #1
0
        public JsonResult DepartmentAllDropList()
        {
            DepartmentRepository  rep      = new DepartmentRepository();
            DataTable             source   = rep.GetDropListSource();
            List <DropListSource> dropList = rep.DropList(source, "");

            return(DropListJson(dropList));
        }
コード例 #2
0
        public JsonResult DepartmentDropList(string currentId)
        {
            UserInfo              sysUser  = CacheInit.GetUserInfo(HttpContext);
            DepartmentRepository  rep      = new DepartmentRepository();
            DataTable             source   = rep.GetDropListSource(sysUser.UserId, currentId);
            List <DropListSource> dropList = rep.DropList(source, "");

            return(DropListJson(dropList));
        }
コード例 #3
0
 public JsonResult AllDropList()
 {
     try
     {
         DepartmentRepository  rep      = new DepartmentRepository();
         DataTable             source   = rep.GetDropListSource();
         List <DropListSource> dropList = rep.DropList(source, "");
         return(DropListJson(dropList));
     }
     catch (Exception ex)
     {
         AppLog.WriteLog(AppMember.AppText["SystemUser"], LogType.Error, "CompanyController.AllDropList", "[Message]:" + ex.Message + " [StackTrace]:" + ex.StackTrace);
         return(new JsonResult());
     }
 }
コード例 #4
0
 public override JsonResult DropList(string currentId, string pySearch)
 {
     try
     {
         ClearClientPageCache(Response);
         UserInfo              sysUser  = CacheInit.GetUserInfo(HttpContext);
         DepartmentRepository  rep      = new DepartmentRepository();
         DataTable             source   = rep.GetDropListSource(sysUser.UserId, currentId);
         List <DropListSource> dropList = rep.DropList(source, "");
         return(DropListJson(dropList));
     }
     catch (Exception ex)
     {
         AppLog.WriteLog(AppMember.AppText["SystemUser"], LogType.Error, "DepartmentController.DropList", "[Message]:" + ex.Message + " [StackTrace]:" + ex.StackTrace);
         return(new JsonResult());
     }
 }