public JsonResult DepartmentAllDropList() { DepartmentRepository rep = new DepartmentRepository(); DataTable source = rep.GetDropListSource(); List <DropListSource> dropList = rep.DropList(source, ""); return(DropListJson(dropList)); }
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)); }
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()); } }
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()); } }