update contract

master
wangning 7 years ago
parent 68c896aae2
commit 7dc7748f7e

@ -534,9 +534,9 @@ public class PartnerManageController {
clientContractService.confirmSourceAgreement(account.getIntValue("client_id"),account.getString("account_id"),"PC"); clientContractService.confirmSourceAgreement(account.getIntValue("client_id"),account.getString("account_id"),"PC");
} }
@ManagerMapping(value = "/{clientMoniker}/skip_contract", method = RequestMethod.PUT, role = {ManagerRole.ADMIN, ManagerRole.OPERATOR, ManagerRole.FINANCIAL_STAFF}) @ManagerMapping(value = "/{clientMoniker}/skip_contract", method = RequestMethod.PUT, role = {ManagerRole.ADMIN, ManagerRole.FINANCIAL_STAFF})
public void skipContract(@PathVariable String clientMoniker, @RequestBody JSONObject skip_clearing) { public void skipContract(@PathVariable String clientMoniker, @RequestBody JSONObject skip_contract) {
clientManager.setSkipClearing(clientMoniker, skip_clearing.getBooleanValue("skip_contract")); clientManager.setSkipContract(clientMoniker, skip_contract.getBooleanValue("skip_contract"));
} }
} }

@ -2350,7 +2350,13 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
$scope.downloadAsZip = function () { $scope.downloadAsZip = function () {
var url = '/sys/partners/' + $scope.partner.client_moniker + '/download/complianceAsZIP'; var url = '/sys/partners/' + $scope.partner.client_moniker + '/download/complianceAsZIP';
return url; return url;
} };
$scope.setSkipContract = function () {
$http.put('/sys/partners/' + $scope.partner.client_moniker + '/skip_contract',{skip_contract: $scope.partner.skip_contract}).then(function(){
})
};
$scope.updateFile = function () { $scope.updateFile = function () {
$http.put('/sys/partners/' + $scope.partner.client_moniker + '/file', $scope.file).then(function () { $http.put('/sys/partners/' + $scope.partner.client_moniker + '/file', $scope.file).then(function () {

@ -3,6 +3,18 @@
width: 100%; width: 100%;
} }
</style> </style>
<div class="panel panel-default">
<div class="panel-heading">Contract</div>
<div class="panel-body">
<label class="col-sm-7 control-label">Skip New Contract</label>
<div class="col-sm-5">
<input type="checkbox" ng-model="partner.skip_contract" bs-switch
switch-change="setSkipContract()">
</div>
</div>
</div>
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading">Audit Files &nbsp;&nbsp;&nbsp; <div class="panel-heading">Audit Files &nbsp;&nbsp;&nbsp;
<button class="btn-group btn btn-warning" ng-if="partner.approve_result==2 && partner.source==4" type="button" <button class="btn-group btn btn-warning" ng-if="partner.approve_result==2 && partner.source==4" type="button"

Loading…
Cancel
Save