コード例 #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);
 }