|
|
|
@ -18,6 +18,7 @@ define(['angular', 'angularSanitize', 'angularAnimate', 'angularMessages', 'uiRo
|
|
|
|
|
|
|
|
|
|
var stompClient = null;
|
|
|
|
|
var newPartnerGuide_counts = 0;
|
|
|
|
|
var pwdcount = 0;
|
|
|
|
|
$scope.loadCurrentUser = function () {
|
|
|
|
|
$http.get('/global/userstatus/current_partner').then(function (resp) {
|
|
|
|
|
$rootScope.currentUser = resp.data;
|
|
|
|
@ -33,13 +34,15 @@ define(['angular', 'angularSanitize', 'angularAnimate', 'angularMessages', 'uiRo
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}*/
|
|
|
|
|
if ($rootScope.currentUser.is_password_expired) {
|
|
|
|
|
if ($rootScope.currentUser.is_password_expired && pwdcount == 0) {
|
|
|
|
|
|
|
|
|
|
commonDialog.confirm({
|
|
|
|
|
title: 'Change Password!',
|
|
|
|
|
content: 'Your password has been expired,click OK to set a new password'
|
|
|
|
|
}).then(function () {
|
|
|
|
|
$scope.changePwd();
|
|
|
|
|
})
|
|
|
|
|
pwdcount++;
|
|
|
|
|
}
|
|
|
|
|
connectWebSocket();
|
|
|
|
|
if ($scope.currentUser.role == 1 || $scope.currentUser.role == 2) {
|
|
|
|
@ -119,9 +122,9 @@ define(['angular', 'angularSanitize', 'angularAnimate', 'angularMessages', 'uiRo
|
|
|
|
|
ag: ag
|
|
|
|
|
},
|
|
|
|
|
size: 'lg',
|
|
|
|
|
type:'info',
|
|
|
|
|
backdrop:'static',
|
|
|
|
|
keyboard:false
|
|
|
|
|
type: 'info',
|
|
|
|
|
backdrop: 'static',
|
|
|
|
|
keyboard: false
|
|
|
|
|
}).result.then(function () {
|
|
|
|
|
// $scope.loadPartnerNotice();
|
|
|
|
|
})
|
|
|
|
@ -129,7 +132,7 @@ define(['angular', 'angularSanitize', 'angularAnimate', 'angularMessages', 'uiRo
|
|
|
|
|
|
|
|
|
|
$scope.getAgStatus = function () {
|
|
|
|
|
$http.get('/client/partner_info/checkContract').then(function (resp) {
|
|
|
|
|
if (resp.data){
|
|
|
|
|
if (resp.data) {
|
|
|
|
|
$scope.showAG(resp.data)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -305,7 +308,7 @@ define(['angular', 'angularSanitize', 'angularAnimate', 'angularMessages', 'uiRo
|
|
|
|
|
}
|
|
|
|
|
}]);
|
|
|
|
|
|
|
|
|
|
app.controller('agreementDetailCtrl', ['$scope', '$http', 'commonDialog','$sce', 'ag', function ($scope, $http,commonDialog, $sce, ag) {
|
|
|
|
|
app.controller('agreementDetailCtrl', ['$scope', '$http', 'commonDialog', '$sce', 'ag', function ($scope, $http, commonDialog, $sce, ag) {
|
|
|
|
|
$scope.ag = angular.copy(ag);
|
|
|
|
|
$scope.agreeCheck = false;
|
|
|
|
|
$scope.agree = function () {
|
|
|
|
@ -560,7 +563,7 @@ define(['angular', 'angularSanitize', 'angularAnimate', 'angularMessages', 'uiRo
|
|
|
|
|
return function (module) {
|
|
|
|
|
var result = false;
|
|
|
|
|
angular.forEach($rootScope.currentUser.available_module_ids, function (item) {
|
|
|
|
|
if((item+'') == (module+'')){
|
|
|
|
|
if ((item + '') == (module + '')) {
|
|
|
|
|
result = true;
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|