Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mytime
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Narendar Vakiti
mytime
Commits
736d9e53
Commit
736d9e53
authored
Jul 26, 2018
by
rammula-nisum-com
Committed by
tdutta-nisum-com
Jul 26, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MT_78_changes (#68)
parent
e32e363e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
12 deletions
+18
-12
DomainController.js
src/main/webapp/WEB-INF/controllers/DomainController.js
+15
-10
LoginController.js
src/main/webapp/WEB-INF/controllers/LoginController.js
+1
-1
assignAccountsController.js
...in/webapp/WEB-INF/controllers/assignAccountsController.js
+1
-0
newDomain.html
src/main/webapp/WEB-INF/templates/newDomain.html
+1
-1
No files found.
src/main/webapp/WEB-INF/controllers/DomainController.js
View file @
736d9e53
...
...
@@ -232,21 +232,25 @@ myApp.controller("domainController",
$scope
.
selectedEmployeeNames
=
[];
$scope
.
templateTitle
=
dataToPass
.
action
;
$scope
.
accounts
=
myFactory
.
getAccounts
();
var
allAccounts
=
myFactory
.
getAccounts
();
function
getActiveAccounts
(){
var
activeAccounts
=
[];
for
(
i
in
allAccounts
){
console
.
log
(
allAccounts
[
i
]);
if
(
allAccounts
[
i
].
status
==
"Y"
){
activeAccounts
.
push
(
allAccounts
[
i
]);
}
}
return
activeAccounts
;
}
$scope
.
accounts
=
getActiveAccounts
();
$scope
.
getSelectedText
=
function
()
{
if
(
$scope
.
employeeModel
!==
undefined
)
{
return
null
;
}
else
{
return
"Please select a Delivery Head"
;
}
}
$scope
.
getAccountText
=
function
()
{
if
(
$scope
.
AccountInfo
!==
undefined
)
{
...
...
@@ -347,7 +351,8 @@ myApp.controller("domainController",
$scope
.
id
=
dataToPass
.
id
;
$scope
.
domainId
=
dataToPass
.
domainId
;
$scope
.
domainName
=
dataToPass
.
domainName
;
$scope
.
AccountInfo
=
dataToPass
.
AccountName
;
$scope
.
AccountInfo
=
{};
$scope
.
AccountInfo
.
accountName
=
dataToPass
.
AccountName
;
$scope
.
AccountId
=
dataToPass
.
AccountId
;
var
accounts1
=
myFactory
.
getAccounts
();
for
(
var
i
=
0
;
i
<
accounts1
.
length
;
i
++
)
{
...
...
@@ -375,7 +380,7 @@ myApp.controller("domainController",
}
else
if
(
domainName
==
""
||
undefined
){
$scope
.
alertMsg
=
"Please enter a Domain Name"
;
document
.
getElementById
(
'domainName'
).
focus
();
}
else
if
(
deliveryManagers
==
undefined
){
}
else
if
(
deliveryManagers
.
length
<=
0
){
$scope
.
alertMsg
=
"Please select a deliveryManagers"
;
document
.
getElementById
(
'selectDeliveryLeads'
).
focus
();
}
else
{
...
...
src/main/webapp/WEB-INF/controllers/LoginController.js
View file @
736d9e53
...
...
@@ -88,7 +88,7 @@ myApp.controller("loginController",function($scope, myFactory, $compile, $window
function
getAllAccounts
(){
$http
({
method
:
"GET"
,
url
:
appConfig
.
appUri
+
"user/getAccounts
Info
"
url
:
appConfig
.
appUri
+
"user/getAccounts"
}).
then
(
function
mySuccess
(
response
)
{
myFactory
.
setAccounts
(
response
.
data
);
},
function
myError
(
response
)
{
...
...
src/main/webapp/WEB-INF/controllers/assignAccountsController.js
View file @
736d9e53
...
...
@@ -50,6 +50,7 @@ myApp.controller("assignAccountsController",function($scope, myFactory, $mdDialo
url
:
appConfig
.
appUri
+
"account/accounts"
}).
then
(
function
mySuccess
(
response
)
{
$scope
.
gridOptions
.
data
=
response
.
data
;
myFactory
.
setAccounts
(
response
.
data
);
},
function
myError
(
response
)
{
showAlert
(
"Something went wrong while fetching data!!!"
);
$scope
.
gridOptions
.
data
=
[];
...
...
src/main/webapp/WEB-INF/templates/newDomain.html
View file @
736d9e53
...
...
@@ -40,7 +40,7 @@
</tr>
<tr>
<td
colspan=
"4"
><b>
Delivery
H
ead
</b></td>
<td
colspan=
"4"
><b>
Delivery
L
ead
</b></td>
<td
colspan=
"8"
id=
"lead"
>
<div
class=
"leads-data"
ng-show=
"employeeModel.length > 0"
>
<div
ng-repeat=
"item in employeeModel"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment