public function Ajax_GetUserGroup(Request $request)
 {
     $PageSize = $request->input('pagesize');
     $PageNumber = $request->input('PageNumber');
     $ArrParam["pagesize"] = $PageSize;
     $ArrParam["PageNumber"] = $PageNumber;
     $UserGroupDatacount = $this->getuserGroupAll();
     $UserGroupData = $this->getuserGroupAllData($ArrParam);
     $totals = count($UserGroupDatacount);
     $htmlPaginate = Paginatre_gen($totals, $PageSize, 'page_click_search', $PageNumber);
     $returnHTML = view('backend.pages.ajax.ajax_userGroup')->with(['htmlPaginate' => $htmlPaginate, 'UserGroupData' => $UserGroupData])->render();
     return response()->json(array('success' => true, 'html' => $returnHTML));
 }
Example #2
0
 public function Ajax_Index(Request $request)
 {
     $PageSize = $request->input('pagesize');
     $PageNumber = $request->input('PageNumber');
     $NEWS_CATE_ID = $request->input('NEWS_CATE_ID');
     $NEWS_TOPIC_FLAG = $request->input('NEWS_TOPIC_FLAG');
     $ArrParam["pagesize"] = $PageSize;
     $ArrParam["PageNumber"] = $PageNumber;
     $ArrParam["NEWS_CATE_ID"] = $NEWS_CATE_ID;
     $ArrParam["NEWS_TOPIC_FLAG"] = $NEWS_TOPIC_FLAG;
     $Datacount = $this->getCountAll($ArrParam);
     $Data = $this->getData($ArrParam);
     $totals = count($Datacount);
     $htmlPaginate = Paginatre_gen($totals, $PageSize, 'page_click_search', $PageNumber);
     $returnHTML = view('backend.pages.ajax.ajax_54_2')->with(['htmlPaginate' => $htmlPaginate, 'data' => $Data])->render();
     return response()->json(array('success' => true, 'html' => $returnHTML));
 }
Example #3
0
 public function Ajax_GetUser(Request $request)
 {
     $PageSize = $request->input('pagesize');
     $PageNumber = $request->input('PageNumber');
     $filter1 = $request->input('filter1');
     $filter2 = $request->input('filter2');
     $datasearch = $request->input('datasearch');
     $operator = $request->input('operator');
     $ArrParam["pagesize"] = $PageSize;
     $ArrParam["PageNumber"] = $PageNumber;
     $ArrParam["filter1"] = $filter1;
     $ArrParam["filter2"] = $filter2;
     $ArrParam["datasearch"] = $datasearch;
     $ArrParam["operator"] = $operator;
     $userAll = $this->getUserAlllData($ArrParam, true);
     $totals = $this->getUserAlllCount($ArrParam, true);
     $htmlPaginate = Paginatre_gen($totals, $PageSize, 'page_click_search', $PageNumber);
     $returnHTML = view('backend.pages.ajax.ajax_user')->with(['htmlPaginate' => $htmlPaginate, 'userAll' => $userAll, 'totals' => $totals, 'PageSize' => $PageSize, 'PageNumber' => $PageNumber])->render();
     return response()->json(array('success' => true, 'html' => $returnHTML));
 }
 public function ajax_report_search(Request $request)
 {
     $PageSize = $request->input('pagesize');
     $PageNumber = $request->input('PageNumber');
     $emp_id = $request->input('emp_id');
     $depart = $request->input('depart');
     $plan = $request->input('plan');
     $date_start = $request->input('date_start');
     $date_end = $request->input('date_end');
     $check_name = $request->input('check_name');
     $check_depart = $request->input('check_depart');
     $check_plan = $request->input('check_plan');
     $check_date = $request->input('check_date');
     $ArrParam = array();
     $ArrParam["pagesize"] = $PageSize;
     $ArrParam["PageNumber"] = $PageNumber;
     $ArrParam["emp_id"] = $emp_id;
     $ArrParam["depart"] = $depart;
     $ArrParam["plan"] = $plan;
     $ArrParam["date_start"] = $date_start;
     $ArrParam["date_end"] = $date_end;
     $ArrParam["check_name"] = $check_name;
     $ArrParam["check_depart"] = $check_depart;
     $ArrParam["check_plan"] = $check_plan;
     $ArrParam["check_date"] = $check_date;
     $data = null;
     $totals = 0;
     $data = $this->DataSource($ArrParam, true);
     $totals = $this->DataSourceCount($ArrParam, true);
     $htmlPaginate = Paginatre_gen($totals, $PageSize, 'page_click_search', $PageNumber);
     $returnHTML = view('backend.pages.ajax.ajax_report6')->with(['htmlPaginate' => $htmlPaginate, 'data' => $data, 'totals' => $totals, 'PageSize' => $PageSize, 'PageNumber' => $PageNumber])->render();
     return response()->json(array('success' => true, 'html' => $returnHTML));
 }
 public function ajax_report1(Request $request)
 {
     //        $data = getmemulist();
     //        $this->pageSetting( [
     //            'menu_group_id' => 58,
     //            'menu_id' => 1,
     //            'title' => getMenuName($data,58,1) . '|  MEA FUND'
     //        ] );
     $PageSize = $request->input('pagesize');
     $PageNumber = $request->input('PageNumber');
     $ArrParam = array();
     $ArrParam["pagesize"] = $PageSize;
     $ArrParam["PageNumber"] = $PageNumber;
     $ArrParam["emp_id"] = "";
     $ArrParam["depart"] = "";
     $ArrParam["plan"] = "";
     $ArrParam["date_start"] = "";
     $ArrParam["date_end"] = "";
     $data = $this->DataSource($ArrParam, false);
     $totals = $this->DataSourceCount($ArrParam, false);
     //
     $htmlPaginate = Paginatre_gen($totals, $PageSize, 'page_click', $PageNumber);
     $returnHTML = view('backend.pages.ajax.ajax_report1')->with(['htmlPaginate' => $htmlPaginate, 'data' => $data, 'totals' => $totals, 'PageSize' => $PageSize, 'PageNumber' => $PageNumber])->render();
     return response()->json(array('success' => true, 'html' => $returnHTML));
 }