|
|
@ -40,7 +40,12 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
}).state('partners.new', {
|
|
|
|
}).state('partners.new', {
|
|
|
|
url: '/new',
|
|
|
|
url: '/new',
|
|
|
|
templateUrl: '/static/payment/partner/templates/add_partner.html',
|
|
|
|
templateUrl: '/static/payment/partner/templates/add_partner.html',
|
|
|
|
controller: 'addPartnerCtrl'
|
|
|
|
controller: 'addPartnerCtrl',
|
|
|
|
|
|
|
|
resolve: {
|
|
|
|
|
|
|
|
merchant_code: ['$http', function ($http) {
|
|
|
|
|
|
|
|
return $http.get('/sys/partners/init/merchant_code');
|
|
|
|
|
|
|
|
}]
|
|
|
|
|
|
|
|
}
|
|
|
|
}).state('partners.detail', {
|
|
|
|
}).state('partners.detail', {
|
|
|
|
url: '/{clientMoniker}/detail',
|
|
|
|
url: '/{clientMoniker}/detail',
|
|
|
|
templateUrl: '/static/payment/partner/templates/partner_detail.html',
|
|
|
|
templateUrl: '/static/payment/partner/templates/partner_detail.html',
|
|
|
@ -224,6 +229,9 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$scope.partner.company_phone_c = 61;
|
|
|
|
$scope.partner.company_phone_c = 61;
|
|
|
|
$scope.partner.contact_phone_c = 61;
|
|
|
|
$scope.partner.contact_phone_c = 61;
|
|
|
|
|
|
|
|
$http.get('/sys/partners/init/merchant_code').then(function (response) {
|
|
|
|
|
|
|
|
$scope.partner.client_moniker = response.data;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
function remove(arr, val) {
|
|
|
|
function remove(arr, val) {
|
|
|
|
if (angular.isArray(arr)) {
|
|
|
|
if (angular.isArray(arr)) {
|
|
|
@ -1241,6 +1249,10 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
controller: 'partnerNewSubPartnerDialogCtrl',
|
|
|
|
controller: 'partnerNewSubPartnerDialogCtrl',
|
|
|
|
size: 'lg',
|
|
|
|
size: 'lg',
|
|
|
|
resolve: {
|
|
|
|
resolve: {
|
|
|
|
|
|
|
|
merchant_code: ['$http', function ($http) {
|
|
|
|
|
|
|
|
return $http.get('/sys/partners/init/merchant_code');
|
|
|
|
|
|
|
|
}],
|
|
|
|
|
|
|
|
|
|
|
|
clientMoniker: function () {
|
|
|
|
clientMoniker: function () {
|
|
|
|
return $scope.partner.client_moniker;
|
|
|
|
return $scope.partner.client_moniker;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1534,6 +1546,9 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
app.controller('partnerNewSubPartnerDialogCtrl', ['$rootScope', '$scope', '$http', '$state', 'Upload', 'commonDialog', 'timezone',
|
|
|
|
app.controller('partnerNewSubPartnerDialogCtrl', ['$rootScope', '$scope', '$http', '$state', 'Upload', 'commonDialog', 'timezone',
|
|
|
|
'clientMoniker', 'industryMap', 'businessStructuresMap', 'stateMap', 'countryMap',
|
|
|
|
'clientMoniker', 'industryMap', 'businessStructuresMap', 'stateMap', 'countryMap',
|
|
|
|
function ($rootScope, $scope, $http, $state, Upload, commonDialog, timezone, clientMoniker, industryMap, businessStructuresMap, stateMap, countryMap) {
|
|
|
|
function ($rootScope, $scope, $http, $state, Upload, commonDialog, timezone, clientMoniker, industryMap, businessStructuresMap, stateMap, countryMap) {
|
|
|
|
|
|
|
|
$http.get('/sys/partners/init/merchant_code').then(function (response) {
|
|
|
|
|
|
|
|
$scope.partner.client_moniker = response.data;
|
|
|
|
|
|
|
|
});
|
|
|
|
if ($scope.partner_application) {
|
|
|
|
if ($scope.partner_application) {
|
|
|
|
$scope.partner = angular.copy($scope.partner_application);
|
|
|
|
$scope.partner = angular.copy($scope.partner_application);
|
|
|
|
delete $rootScope.partner_application;
|
|
|
|
delete $rootScope.partner_application;
|
|
|
|