コード例 #1
0
 public function postFundamentalList()
 {
     $serviceRequest = $this->GetObjectFromJsonRequest(Input::json()->all());
     $serviceResponse = $this->DataProvider->getFundamentalList($serviceRequest->Data);
     if (count($serviceResponse->Data->FundamentalListArray) > 0) {
         $index = $serviceRequest->Data->PageSize * ($serviceRequest->Data->PageIndex - 1) + 1;
         foreach ($serviceResponse->Data->FundamentalListArray as $fundamentals) {
             $fundamentalID = Constants::$QueryStringFundamentalID . "=" . $fundamentals->FundamentalID;
             $fundamentals->EncryptFundamentalID = Common::getEncryptDecryptID('encrypt', $fundamentalID);
             $fundamentals->Description = Common::GetSubString($fundamentals->Description);
             $fundamentals->Index = $index++;
         }
     }
     return $this->GetJsonResponse($serviceResponse);
 }
コード例 #2
0
 public function postplanlist()
 {
     $serviceRequest = $this->GetObjectFromJsonRequest(Input::json()->all());
     $serviceResponse = $this->PlanDataProvider->getPlanList($serviceRequest->Data);
     if (count($serviceResponse->Data->PlanListArray) > 0) {
         $index = $serviceRequest->Data->PageSize * ($serviceRequest->Data->PageIndex - 1) + 1;
         foreach ($serviceResponse->Data->PlanListArray as $plans) {
             $planID = Constants::$QueryStringPlanID . "=" . $plans->PlanID;
             $plans->EncryptPlanID = Common::getEncryptDecryptID('encrypt', $planID);
             $plans->DisplayName = Common::GetSubString($plans->PlanName);
             $plans->Index = $index++;
         }
     }
     return $this->GetJsonResponse($serviceResponse);
 }
コード例 #3
0
 public function postNotificationList()
 {
     $serviceRequest = $this->GetObjectFromJsonRequest(Input::json()->all());
     $serviceResponse = $this->AdminDataProvider->getNotificationList($serviceRequest->Data, Auth::user()->UserID);
     if (count($serviceResponse->Data->NotificationListArray) > 0) {
         $index = $serviceRequest->Data->PageSize * ($serviceRequest->Data->PageIndex - 1) + 1;
         foreach ($serviceResponse->Data->NotificationListArray as $notification) {
             $userID = Constants::$QueryStringUSerID . "=" . $notification->UserID;
             $notification->EncryptUserID = Common::getEncryptDecryptID('encrypt', $userID);
             $notification->Index = $index++;
         }
     }
     return $this->GetJsonResponse($serviceResponse);
 }
コード例 #4
0
 public function postUserGroup()
 {
     $serviceRequest = $this->GetObjectFromJsonRequest(Input::json()->all());
     $serviceResponse = $this->GroupDataProvider->getUserGroupList($serviceRequest->Data);
     if (count($serviceResponse->Data->UserGroupListArray) > 0) {
         $index = $serviceRequest->Data->PageSize * ($serviceRequest->Data->PageIndex - 1) + 1;
         foreach ($serviceResponse->Data->UserGroupListArray as $groups) {
             $groupID = Constants::$QueryStringGroupID . "=" . $groups->GroupID;
             $groups->EncryptGroupID = Common::getEncryptDecryptID('encrypt', $groupID);
             $userID = Constants::$QueryStringUSerID . "=" . $groups->UserID;
             $groups->EncryptUserID = Common::getEncryptDecryptID('encrypt', $userID);
             $groups->UserName = $groups->FirstName . "  " . $groups->LastName;
             $groups->Index = $index++;
         }
     }
     return $this->GetJsonResponse($serviceResponse);
 }