From e72769341e240bd8dbc17d7d48dbf2525617ad9d Mon Sep 17 00:00:00 2001 From: Safiyu Date: Tue, 24 Dec 2013 16:02:03 +0530 Subject: [PATCH] highlight tables in clients,groups and centers --- .../centers/ViewCenterController.js | 6 +++ .../client/ViewClientController.js | 6 +++ .../controllers/groups/ViewGroupController.js | 9 +++++ app/views/centers/viewcenter.html | 22 +++++----- app/views/clients/viewclient.html | 28 ++++++------- app/views/groups/viewgroup.html | 40 ++++++++----------- 6 files changed, 62 insertions(+), 49 deletions(-) diff --git a/app/scripts/controllers/centers/ViewCenterController.js b/app/scripts/controllers/centers/ViewCenterController.js index 23bbdd0e..074b1a39 100644 --- a/app/scripts/controllers/centers/ViewCenterController.js +++ b/app/scripts/controllers/centers/ViewCenterController.js @@ -8,6 +8,12 @@ scope.staffData.staffId = data.staffId; scope.meeting = data.collectionMeetingCalendar; }); + scope.routeTo = function(id){ + location.path('/viewsavingaccount/' + id); + }; + scope.routeToGroup = function(id){ + location.path('/viewgroup/' + id); + } resourceFactory.runReportsResource.get({reportSource: 'GroupSummaryCounts',genericResultSet: 'false',R_groupId: routeParams.id} , function(data) { scope.summary = data[0]; }); diff --git a/app/scripts/controllers/client/ViewClientController.js b/app/scripts/controllers/client/ViewClientController.js index 4fef5a78..92c6ac51 100644 --- a/app/scripts/controllers/client/ViewClientController.js +++ b/app/scripts/controllers/client/ViewClientController.js @@ -6,6 +6,12 @@ scope.buttons = []; scope.clientdocuments = []; scope.staffData = {}; + scope.routeToLoan = function(id){ + location.path('/viewloanaccount/' + id); + }; + scope.routeToSaving = function(id){ + location.path('/viewsavingaccount/' + id); + }; scope.haveFile = []; resourceFactory.clientResource.get({clientId: routeParams.id} , function(data) { scope.client = data; diff --git a/app/scripts/controllers/groups/ViewGroupController.js b/app/scripts/controllers/groups/ViewGroupController.js index 25c1ef86..217af6f8 100644 --- a/app/scripts/controllers/groups/ViewGroupController.js +++ b/app/scripts/controllers/groups/ViewGroupController.js @@ -5,6 +5,15 @@ scope.template = []; scope.choice = 0; scope.staffData = {}; + scope.routeToLoan = function(id){ + location.path('/viewloanaccount/' + id); + }; + scope.routeToSaving = function(id){ + location.path('/viewsavingaccount/' + id); + }; + scope.routeToMem = function(id){ + location.path('/viewclient/' + id); + }; resourceFactory.groupResource.get({groupId: routeParams.id,associations:'all'} , function(data) { scope.group = data; scope.staffData.staffId = data.staffId; diff --git a/app/views/centers/viewcenter.html b/app/views/centers/viewcenter.html index ded41421..4bfa8687 100644 --- a/app/views/centers/viewcenter.html +++ b/app/views/centers/viewcenter.html @@ -147,7 +147,7 @@

{{ 'label.heading.savingsaccoverview' | translate }}

- +
@@ -158,11 +158,11 @@ - - - - - + + + + +
 
{{savingaccount.productName}}{{savingaccount.accountNo}}{{savingaccount.accountBalance}}{{savingaccount.status.value}}
{{savingaccount.productName}}{{savingaccount.accountNo}}{{savingaccount.accountBalance}}{{savingaccount.status.value}}
@@ -177,17 +177,17 @@
- +
- - - - + + + +
{{'label.heading.name' | translate}} {{'label.heading.office' | translate}} {{ 'label.heading.status' | translate }}
{{group.name}}{{group.officeName}} {{group.status.value}}
{{group.name}}{{group.officeName}} {{group.status.value}}
diff --git a/app/views/clients/viewclient.html b/app/views/clients/viewclient.html index 1d40ae56..8a8e382d 100644 --- a/app/views/clients/viewclient.html +++ b/app/views/clients/viewclient.html @@ -170,19 +170,19 @@ {{'label.heading.type' | translate}} {{'label.heading.status' | translate}} - - - + + + {{loanaccount.productName}} - + - - + + {{loanaccount.accountNo}} - + - {{loanaccount.loanType.value}} -   {{loanaccount.status.value}} + {{loanaccount.loanType.value}} +   {{loanaccount.status.value}}   @@ -198,11 +198,11 @@ {{'label.heading.balance' | translate}} {{'label.heading.status' | translate}} - - {{savingaccount.productName}} - {{savingaccount.accountNo}} - {{savingaccount.accountBalance}} -   {{savingaccount.status.value}} + + {{savingaccount.productName}} + {{savingaccount.accountNo}} + {{savingaccount.accountBalance}} +   {{savingaccount.status.value}} diff --git a/app/views/groups/viewgroup.html b/app/views/groups/viewgroup.html index 638be378..3951690b 100644 --- a/app/views/groups/viewgroup.html +++ b/app/views/groups/viewgroup.html @@ -155,7 +155,7 @@

{{ 'label.heading.loanaccoverview' | translate }}


{{ 'label.button.viewclosedloans' | translate }} - +
@@ -164,18 +164,10 @@ - - - - + + + + @@ -184,7 +176,7 @@

{{'label.heading.savingsaccoverview' | translate }}

{{ 'label.button.viewclosedsavings' | translate }} -
{{ 'label.heading.products' | translate }}
- - {{loanaccount.productName}} - - - - {{loanaccount.accountNo}} - - {{loanaccount.status.value}}
{{loanaccount.productName}}{{loanaccount.accountNo}}{{loanaccount.status.value}}
 
+
@@ -194,11 +186,11 @@ - - - - - + + + + +
{{ 'label.heading.products' | translate }}
{{savingaccount.productName}}{{savingaccount.accountNo}}{{savingaccount.accountBalance}}{{savingaccount.status.value}}
{{savingaccount.productName}}{{savingaccount.accountNo}}{{savingaccount.accountBalance}}{{savingaccount.status.value}}
@@ -215,17 +207,17 @@ {{ 'label.button.transferclients' | translate }} - +
- - - - + + + +
{{'label.heading.accnum' | translate}} {{'label.heading.name' | translate}} {{ 'label.heading.status' | translate }}
{{member.accountNo}}{{member.displayName}} {{member.status.value}}
{{member.accountNo}}{{member.displayName}} {{member.status.value}}