Ejemplo n.º 1
0
 public function fillTransferFundInfo($request, $response)
 {/*{{{*/
     $operator = UserClient::getInstance()->getCurrentUser();
     if(!in_array($operator->name, financialinterceptor::$userAuditor))
     {
          die("<font color='color'>你没有权限访问!</font>");
     }
     $fundOwner = TelOwner::getFundOwner();
     $response->fundOwner = $fundOwner;
     $response->amount = $request->amount;
     $response->username = $request->username;
     $response->remark = $request->remark;
     $user = DAL::get()->find_by_fld_username('User', $request->username);
     $response->owner = TelOwnerClient::getInstance()->getOwner($user);
 }/*}}}*/
Ejemplo n.º 2
0
    public function updateDoctorOwner($request, $response)
    {/*{{{*/
        $id = $request->ownerId;
        $newDoctorOwner = $this->getDoctorOwner4Update($request->amountlimit, $request->identityCardNo, $request->cardType, $request->bankName,
                                                       $request->bankAccountNo, $request->bankUserName, $request->bankMark, $request->sharedoctor,
                                                       $request->numhiddenlevel, $request->hiddenlevel);
        $newSpaceExt = $this->getSpaceExt4Update($request->phone1, $request->phone2, $request->phone3, $request->getUnSafeData('remark'), 
                                                 $request->getUnSafeData('remark1'), $request->getUnSafeData('remark2'), 
                                                 $request->getUnSafeData('remark3'), $request->getRequest('doctoredit', ''), 
                                                 $request->getUnSafeData('commonquestions', ''), $request->doctorlevel4tel, $request->adminusername4tel);
        $spaceExt = DAL::get()->find('spaceext', $request->extId);
        if($spaceExt->isNull())
        {
            $space = DAL::get()->find('space', $request->spaceId);
            $spaceExt = TelOwnerClient::getInstance()->createSpaceExt($space, $newSpaceExt);
        }
        
        if(TelOwner::isAuthorityDoctor($this->curUser))
        {
            $newDoctorOwner = array('isRecommendDoctor'=>$request->sharedoctor, 'numHiddenLevel'=>$request->numhiddenlevel, 'hiddenLevel'=>$request->hiddenlevel);
        }
        $newData = $newDoctorOwner + $newSpaceExt;
        $logData = array(
            'user'=>$this->curUser,
            'newData'=>$newData
        );
        TelOwnerClient::getInstance()->modifyOwner($id, $spaceExt, $newDoctorOwner, $newSpaceExt, $logData);
		$response->setRedirect($response->router->urlfor('doctor/showadddoctorowner', array('ownerId'=>$id, 'spaceId'=>$spaceExt->space->id, 'msg'=>'修改成功!')));
    }/*}}}*/