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
c68fbe25
Commit
c68fbe25
authored
Jul 19, 2018
by
dgoud-nisum-com
Committed by
tdutta-nisum-com
Jul 19, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Accounts module_MT-77_MT-81 (#29)
* adding and fetcg * adding and fetcg
parent
6acbfdff
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
470 additions
and
35 deletions
+470
-35
AccountController.java
...n/java/com/nisum/mytime/controller/AccountController.java
+31
-13
AccountService.java
src/main/java/com/nisum/mytime/service/AccountService.java
+2
-0
AccountServiceImpl.java
...ain/java/com/nisum/mytime/service/AccountServiceImpl.java
+10
-9
MyTimeUtils.java
src/main/java/com/nisum/mytime/utils/MyTimeUtils.java
+2
-2
LoginController.js
src/main/webapp/WEB-INF/controllers/LoginController.js
+1
-0
assignAccountsController.js
...in/webapp/WEB-INF/controllers/assignAccountsController.js
+286
-0
default-styles.css
src/main/webapp/WEB-INF/css/default-styles.css
+9
-11
accounts.html
src/main/webapp/WEB-INF/templates/accounts.html
+39
-0
index.html
src/main/webapp/WEB-INF/templates/index.html
+1
-0
newAccount.html
src/main/webapp/WEB-INF/templates/newAccount.html
+89
-0
No files found.
src/main/java/com/nisum/mytime/controller/AccountController.java
View file @
c68fbe25
...
@@ -9,6 +9,7 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -9,6 +9,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.http.HttpStatus
;
import
org.springframework.http.HttpStatus
;
import
org.springframework.http.MediaType
;
import
org.springframework.http.MediaType
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RequestMethod
;
...
@@ -27,29 +28,36 @@ public class AccountController {
...
@@ -27,29 +28,36 @@ public class AccountController {
@Autowired
@Autowired
private
AccountServiceImpl
accountServiceImpl
;
private
AccountServiceImpl
accountServiceImpl
;
@RequestMapping
(
value
=
"/addAccount"
,
method
=
RequestMethod
.
POST
,
produces
=
MediaType
.
APPLICATION_JSON_VALUE
,
consumes
=
MediaType
.
APPLICATION_JSON_VALUE
)
@RequestMapping
(
value
=
"/accounts"
,
method
=
RequestMethod
.
POST
,
produces
=
MediaType
.
TEXT_PLAIN_VALUE
,
consumes
=
MediaType
.
APPLICATION_JSON_VALUE
)
public
ResponseEntity
<
AccountInfo
>
addAccount
(
@RequestBody
AccountInfo
accountInfo
)
throws
MyTimeException
{
public
ResponseEntity
<
String
>
addAccount
(
@RequestBody
AccountInfo
accountInfo
)
throws
MyTimeException
{
String
response
=
""
;
if
(
StringUtils
.
isEmpty
(
accountInfo
.
getAccountId
()))
{
if
(
StringUtils
.
isEmpty
(
accountInfo
.
getAccountId
()))
{
accountInfo
.
setAccountId
(
ge
t
AccountId
());
accountInfo
.
setAccountId
(
ge
nerate
AccountId
());
}
}
accountInfo
.
setStatus
(
MyTimeUtils
.
ACTIVE
);
accountInfo
.
setStatus
(
MyTimeUtils
.
ACTIVE
);
AccountInfo
currentAccount
=
accountServiceImpl
.
addAccount
(
accountInfo
);
if
(
accountInfo
.
getId
()==
null
){
return
new
ResponseEntity
<>(
currentAccount
,
HttpStatus
.
OK
);
response
=
"saved Succesfully"
;
}
else
{
response
=
"updated Succesfully"
;
}
accountServiceImpl
.
addAccount
(
accountInfo
);
return
new
ResponseEntity
<>(
response
,
HttpStatus
.
OK
);
}
}
// ge
t
ting the account id.
// ge
nera
ting the account id.
// account
i
d format is "Acc001"
// account
I
d format is "Acc001"
private
String
ge
t
AccountId
()
throws
MyTimeException
{
private
String
ge
nerate
AccountId
()
throws
MyTimeException
{
return
(
MyTimeUtils
.
ACC
_NAME
+
MyTimeUtils
.
ZERO_
)
+
(
accountServiceImpl
.
getAccounts
().
size
()
+
MyTimeUtils
.
ONE
);
return
(
MyTimeUtils
.
ACC
+
MyTimeUtils
.
ZERO_
)
+
(
accountServiceImpl
.
getAccounts
().
size
()
+
MyTimeUtils
.
ONE
);
}
}
@RequestMapping
(
value
=
"/
getA
ccounts"
,
method
=
RequestMethod
.
GET
,
produces
=
MediaType
.
APPLICATION_JSON_VALUE
)
@RequestMapping
(
value
=
"/
a
ccounts"
,
method
=
RequestMethod
.
GET
,
produces
=
MediaType
.
APPLICATION_JSON_VALUE
)
public
ResponseEntity
<
List
<
Map
<
Object
,
Object
>>>
getAccounts
()
throws
MyTimeException
{
public
ResponseEntity
<
List
<
Map
<
Object
,
Object
>>>
getAccounts
()
throws
MyTimeException
{
List
<
Map
<
Object
,
Object
>>
acounts
=
accountServiceImpl
.
getAccountsList
();
List
<
Map
<
Object
,
Object
>>
acounts
=
accountServiceImpl
.
getAccountsList
();
return
new
ResponseEntity
<>(
acounts
,
HttpStatus
.
OK
);
return
new
ResponseEntity
<>(
acounts
,
HttpStatus
.
OK
);
}
}
@RequestMapping
(
value
=
"/
getA
ccountNames"
,
method
=
RequestMethod
.
GET
,
produces
=
MediaType
.
APPLICATION_JSON_VALUE
)
@RequestMapping
(
value
=
"/
a
ccountNames"
,
method
=
RequestMethod
.
GET
,
produces
=
MediaType
.
APPLICATION_JSON_VALUE
)
public
ResponseEntity
<
List
<
String
>>
getAccountNames
()
throws
MyTimeException
{
public
ResponseEntity
<
List
<
String
>>
getAccountNames
()
throws
MyTimeException
{
List
<
AccountInfo
>
acounts
=
accountServiceImpl
.
getAccounts
();
List
<
AccountInfo
>
acounts
=
accountServiceImpl
.
getAccounts
();
List
<
String
>
accountNames
=
new
ArrayList
<>();
List
<
String
>
accountNames
=
new
ArrayList
<>();
...
@@ -59,11 +67,21 @@ public class AccountController {
...
@@ -59,11 +67,21 @@ public class AccountController {
return
new
ResponseEntity
<>(
accountNames
,
HttpStatus
.
OK
);
return
new
ResponseEntity
<>(
accountNames
,
HttpStatus
.
OK
);
}
}
@RequestMapping
(
value
=
"/
deleteAccount
"
,
method
=
RequestMethod
.
DELETE
,
produces
=
MediaType
.
TEXT_PLAIN_VALUE
)
@RequestMapping
(
value
=
"/
accounts
"
,
method
=
RequestMethod
.
DELETE
,
produces
=
MediaType
.
TEXT_PLAIN_VALUE
)
public
ResponseEntity
<
String
>
deleteAccount
(
@RequestParam
(
value
=
"accountId"
)
String
accountId
)
public
ResponseEntity
<
String
>
deleteAccount
(
@RequestParam
(
value
=
"accountId"
)
String
accountId
)
throws
MyTimeException
{
throws
MyTimeException
{
accountServiceImpl
.
deleteAccount
(
accountId
);
accountServiceImpl
.
deleteAccount
(
accountId
);
return
new
ResponseEntity
<>(
"Success"
,
HttpStatus
.
OK
);
return
new
ResponseEntity
<>(
"Deleted Successfully"
,
HttpStatus
.
OK
);
}
@RequestMapping
(
value
=
"/accounts/{accountName}"
,
method
=
RequestMethod
.
GET
,
produces
=
MediaType
.
TEXT_PLAIN_VALUE
)
public
ResponseEntity
<
String
>
validateAccounts
(
@PathVariable
(
"accountName"
)
String
accountName
)
throws
MyTimeException
{
String
response
=
""
;
List
<
AccountInfo
>
acounts
=
accountServiceImpl
.
validateAccounts
(
accountName
);
if
(
acounts
.
size
()>
0
){
response
=
"Account already exist"
;
}
return
new
ResponseEntity
<>(
response
,
HttpStatus
.
OK
);
}
}
}
}
\ No newline at end of file
src/main/java/com/nisum/mytime/service/AccountService.java
View file @
c68fbe25
...
@@ -13,5 +13,7 @@ public interface AccountService {
...
@@ -13,5 +13,7 @@ public interface AccountService {
List
<
AccountInfo
>
getAccounts
()
throws
MyTimeException
;
List
<
AccountInfo
>
getAccounts
()
throws
MyTimeException
;
List
<
Map
<
Object
,
Object
>>
getAccountsList
()
throws
MyTimeException
;
List
<
Map
<
Object
,
Object
>>
getAccountsList
()
throws
MyTimeException
;
List
<
AccountInfo
>
validateAccounts
(
String
accountName
)
throws
MyTimeException
;
}
}
src/main/java/com/nisum/mytime/service/AccountServiceImpl.java
View file @
c68fbe25
...
@@ -42,7 +42,7 @@ public class AccountServiceImpl implements AccountService {
...
@@ -42,7 +42,7 @@ public class AccountServiceImpl implements AccountService {
public
List
<
Map
<
Object
,
Object
>>
getAccountsList
()
throws
MyTimeException
{
public
List
<
Map
<
Object
,
Object
>>
getAccountsList
()
throws
MyTimeException
{
List
<
Map
<
Object
,
Object
>>
updatedAccountList
=
new
ArrayList
<>();
List
<
Map
<
Object
,
Object
>>
updatedAccountList
=
new
ArrayList
<>();
List
<
Map
<
String
,
String
>>
updatedEmployeeList
=
null
;
List
<
Map
<
String
,
String
>>
updatedEmployeeList
=
null
;
for
(
AccountInfo
account
:
getAccountInfo
())
{
for
(
AccountInfo
account
:
accountRepo
.
findAll
())
{
updatedEmployeeList
=
new
ArrayList
<>();
updatedEmployeeList
=
new
ArrayList
<>();
for
(
EmployeeRoles
employeesRole
:
getEmployeeDetails
(
account
))
{
for
(
EmployeeRoles
employeesRole
:
getEmployeeDetails
(
account
))
{
updatedEmployeeList
.
add
(
getEmployeeDetails
(
employeesRole
));
updatedEmployeeList
.
add
(
getEmployeeDetails
(
employeesRole
));
...
@@ -52,6 +52,14 @@ public class AccountServiceImpl implements AccountService {
...
@@ -52,6 +52,14 @@ public class AccountServiceImpl implements AccountService {
return
updatedAccountList
;
return
updatedAccountList
;
}
}
@Override
public
List
<
AccountInfo
>
validateAccounts
(
String
accountName
)
throws
MyTimeException
{
List
<
AccountInfo
>
accountList
=
mongoTemplate
.
find
(
new
Query
(
Criteria
.
where
(
MyTimeUtils
.
ACCOUNT_NAME
).
is
(
accountName
.
trim
())),
AccountInfo
.
class
);
return
accountList
;
}
// fetching the employee details using employeeId.
// fetching the employee details using employeeId.
private
List
<
EmployeeRoles
>
getEmployeeDetails
(
AccountInfo
account
)
{
private
List
<
EmployeeRoles
>
getEmployeeDetails
(
AccountInfo
account
)
{
List
<
EmployeeRoles
>
employeeRoles
=
mongoTemplate
.
find
(
List
<
EmployeeRoles
>
employeeRoles
=
mongoTemplate
.
find
(
...
@@ -60,13 +68,6 @@ public class AccountServiceImpl implements AccountService {
...
@@ -60,13 +68,6 @@ public class AccountServiceImpl implements AccountService {
return
employeeRoles
;
return
employeeRoles
;
}
}
// fetching the active account details.
private
List
<
AccountInfo
>
getAccountInfo
()
{
List
<
AccountInfo
>
accountList
=
mongoTemplate
.
find
(
new
Query
(
Criteria
.
where
(
MyTimeUtils
.
STATUS
).
is
(
MyTimeUtils
.
ACTIVE
)),
AccountInfo
.
class
);
return
accountList
;
}
private
HashMap
<
String
,
String
>
getEmployeeDetails
(
EmployeeRoles
employeesRole
)
{
private
HashMap
<
String
,
String
>
getEmployeeDetails
(
EmployeeRoles
employeesRole
)
{
HashMap
<
String
,
String
>
employeeDetails
=
new
HashMap
<>();
HashMap
<
String
,
String
>
employeeDetails
=
new
HashMap
<>();
employeeDetails
.
put
(
MyTimeUtils
.
EMPLOYEE_ID
,
employeesRole
.
getEmployeeId
());
employeeDetails
.
put
(
MyTimeUtils
.
EMPLOYEE_ID
,
employeesRole
.
getEmployeeId
());
...
@@ -76,7 +77,7 @@ public class AccountServiceImpl implements AccountService {
...
@@ -76,7 +77,7 @@ public class AccountServiceImpl implements AccountService {
private
Map
<
Object
,
Object
>
getAccuntDetails
(
AccountInfo
account
,
List
<
Map
<
String
,
String
>>
updatedEmployeeList
)
{
private
Map
<
Object
,
Object
>
getAccuntDetails
(
AccountInfo
account
,
List
<
Map
<
String
,
String
>>
updatedEmployeeList
)
{
Map
<
Object
,
Object
>
accountDetails
=
new
HashMap
<>();
Map
<
Object
,
Object
>
accountDetails
=
new
HashMap
<>();
accountDetails
.
put
(
MyTimeUtils
.
ACC_ID
,
account
.
getId
());
accountDetails
.
put
(
MyTimeUtils
.
ID_
,
account
.
getId
());
accountDetails
.
put
(
MyTimeUtils
.
ACCOUNT_ID
,
account
.
getAccountId
());
accountDetails
.
put
(
MyTimeUtils
.
ACCOUNT_ID
,
account
.
getAccountId
());
accountDetails
.
put
(
MyTimeUtils
.
ACCOUNT_NAME
,
account
.
getAccountName
());
accountDetails
.
put
(
MyTimeUtils
.
ACCOUNT_NAME
,
account
.
getAccountName
());
accountDetails
.
put
(
MyTimeUtils
.
STATUS
,
account
.
getStatus
());
accountDetails
.
put
(
MyTimeUtils
.
STATUS
,
account
.
getStatus
());
...
...
src/main/java/com/nisum/mytime/utils/MyTimeUtils.java
View file @
c68fbe25
...
@@ -40,10 +40,10 @@ public class MyTimeUtils {
...
@@ -40,10 +40,10 @@ public class MyTimeUtils {
public
final
static
String
ACCOUNT_ID
=
"accountId"
;
public
final
static
String
ACCOUNT_ID
=
"accountId"
;
public
static
final
int
ONE
=
1
;
public
static
final
int
ONE
=
1
;
public
final
static
String
ACC
_NAME
=
"Acc"
;
public
final
static
String
ACC
=
"Acc"
;
public
static
final
String
ZERO_
=
"00"
;
public
static
final
String
ZERO_
=
"00"
;
// Manage account details
// Manage account details
public
static
final
String
ACC_ID
=
"id"
;
public
static
final
String
ID_
=
"id"
;
public
static
final
String
ACCOUNT_NAME
=
"accountName"
;
public
static
final
String
ACCOUNT_NAME
=
"accountName"
;
public
static
final
String
STATUS
=
"status"
;
public
static
final
String
STATUS
=
"status"
;
public
static
final
String
CLIENT_ADDRESS
=
"clientAddress"
;
public
static
final
String
CLIENT_ADDRESS
=
"clientAddress"
;
...
...
src/main/webapp/WEB-INF/controllers/LoginController.js
View file @
c68fbe25
...
@@ -290,6 +290,7 @@ myApp.controller("loginController",function($scope, myFactory, $compile, $window
...
@@ -290,6 +290,7 @@ myApp.controller("loginController",function($scope, myFactory, $compile, $window
menuItems
.
push
({
"menu"
:
"My Org"
,
"icon"
:
"fa fa-address-card-o fa-2x"
,
"path"
:
"templates/myOrg.html"
});
menuItems
.
push
({
"menu"
:
"My Org"
,
"icon"
:
"fa fa-address-card-o fa-2x"
,
"path"
:
"templates/myOrg.html"
});
menuItems
.
push
({
"menu"
:
"My Profile"
,
"icon"
:
"fa fa-address-book-o fa-2x"
,
"path"
:
"templates/profile.html"
});
menuItems
.
push
({
"menu"
:
"My Profile"
,
"icon"
:
"fa fa-address-book-o fa-2x"
,
"path"
:
"templates/profile.html"
});
}
else
if
(
role
==
"Delivery Manager"
||
role
==
"Director"
){
}
else
if
(
role
==
"Delivery Manager"
||
role
==
"Director"
){
menuItems
.
push
({
"menu"
:
"Manage Accounts"
,
"icon"
:
"fa fa-user-plus fa-2x"
,
"path"
:
"templates/accounts.html"
});
menuItems
.
push
({
"menu"
:
"Manage Employees"
,
"icon"
:
"fa fa-user-plus fa-2x"
,
"path"
:
"templates/roles.html"
});
menuItems
.
push
({
"menu"
:
"Manage Employees"
,
"icon"
:
"fa fa-user-plus fa-2x"
,
"path"
:
"templates/roles.html"
});
menuItems
.
push
({
"menu"
:
"Manage Team"
,
"icon"
:
"fa fa-sitemap fa-2x"
,
"path"
:
"templates/projectDetails.html"
});
menuItems
.
push
({
"menu"
:
"Manage Team"
,
"icon"
:
"fa fa-sitemap fa-2x"
,
"path"
:
"templates/projectDetails.html"
});
menuItems
.
push
({
"menu"
:
"Manage Projects"
,
"icon"
:
"fa fa-tasks fa-2x"
,
"path"
:
"templates/projects.html"
});
menuItems
.
push
({
"menu"
:
"Manage Projects"
,
"icon"
:
"fa fa-tasks fa-2x"
,
"path"
:
"templates/projects.html"
});
...
...
src/main/webapp/WEB-INF/controllers/assignAccountsController.js
0 → 100644
View file @
c68fbe25
This diff is collapsed.
Click to expand it.
src/main/webapp/WEB-INF/css/default-styles.css
View file @
c68fbe25
...
@@ -114,14 +114,11 @@ md-dialog{
...
@@ -114,14 +114,11 @@ md-dialog{
max-height
:
206px
;
max-height
:
206px
;
}
}
.selectHeader
{
.selectHeader
.searchBoxHeader
{
Please
note
:
All
these
selectors
are
only
applied
to
children
of
elements
with
the
'selectdemoSelectHeader'
class
border
:
none
;
}
outline
:
none
;
.selectHeader
.searchBoxHeader
{
border
:
none
;
outline
:
none
;
}
}
.selectHeader
.selectHeaderChild
{
.selectHeader
.selectHeaderChild
{
box-shadow
:
0
1px
0
0
rgba
(
0
,
0
,
0
,
0.1
),
0
0
0
0
rgba
(
0
,
0
,
0
,
0.14
),
0
0
0
0
rgba
(
0
,
0
,
0
,
0.12
);
box-shadow
:
0
1px
0
0
rgba
(
0
,
0
,
0
,
0.1
),
0
0
0
0
rgba
(
0
,
0
,
0
,
0.14
),
0
0
0
0
rgba
(
0
,
0
,
0
,
0.12
);
padding-left
:
10.667px
;
padding-left
:
10.667px
;
height
:
48px
;
height
:
48px
;
...
@@ -147,7 +144,6 @@ md-dialog{
...
@@ -147,7 +144,6 @@ md-dialog{
z-index
:
100
!important
;
z-index
:
100
!important
;
}
}
.md-dialog-custom-height
{
.md-dialog-custom-height
{
max-height
:
95%
!important
;
max-height
:
95%
!important
;
}
}
...
@@ -156,8 +152,6 @@ md-dialog{
...
@@ -156,8 +152,6 @@ md-dialog{
height
:
1100px
!important
;
height
:
1100px
!important
;
}
}
.selectdemoSelectHeader
.demo-header-searchbox
{
.selectdemoSelectHeader
.demo-header-searchbox
{
border
:
none
;
border
:
none
;
outline
:
none
;
outline
:
none
;
...
@@ -210,4 +204,8 @@ md-dialog{
...
@@ -210,4 +204,8 @@ md-dialog{
.header-spacing
{
.header-spacing
{
padding-left
:
0px
!important
;
padding-left
:
0px
!important
;
}
}
/* Styles added*/
/* Styles added for accounts module*/
.addButtonDisable
{
background-color
:
darkgrey
!important
;
}
src/main/webapp/WEB-INF/templates/accounts.html
0 → 100644
View file @
c68fbe25
<div
class=
"md-padding"
style=
"width: 100%; padding: 3px 0px 0px 0px;"
id=
"Container"
ng-controller=
"assignAccountsController"
ng-init=
"getAccountDetails()"
>
<div
class=
"container-fluid mainDivHeaderClass"
>
<div
class=
"row"
>
<div
class=
"col-lg-12"
>
<p
align=
"center"
class=
"col-xs-11"
style=
"vertical-align: middle; font-weight: bold; font-size: 30px;"
>
Manage Accounts
</p>
<p
align=
"right"
class=
"col-xs-1"
style=
"vertical-align: middle; font-weight: bold; font-size: 1.5em; margin-top: 8px; cursor: pointer;"
>
<i
class=
"fa fa-refresh"
aria-hidden=
"true"
ng-click=
"refreshPage()"
></i>
</p>
</div>
<div
class=
"clearfix"
></div>
</div>
</div>
<div
class=
"row col-lg-12"
>
<div
class=
"col-lg-8"
>
<md-button
class=
"md-raised md-primary"
style=
"width:142px;background: cadetblue; margin: 2% 0% 0% 124%;"
ng-click=
"addAccount('Add', parentData)"
>
<i
class=
"fa fa-plus-circle fa-2x"
style=
"margin-top: 5px; font-size: 1.5em; float: left"
></i>
Add
Account
</md-button>
</div>
</div>
<div
class=
"row col-lg-12"
style=
"height: 15px;"
></div>
<div
class=
"row col-lg-12"
style=
"margin-left: 0px;"
>
<div
id=
"gridTest"
ui-grid=
"gridOptions"
ui-grid-pagination
class=
"myGrid"
style=
"width:99%;height:370px;margin-left:0px;"
>
<div
class=
"watermark"
ng-show=
"!gridOptions.data.length"
>
No
data available
</div>
</div>
</div>
<div
class=
"row col-lg-12"
style=
"height: 15px;"
></div>
</div>
\ No newline at end of file
src/main/webapp/WEB-INF/templates/index.html
View file @
c68fbe25
...
@@ -52,6 +52,7 @@
...
@@ -52,6 +52,7 @@
<script
src=
"js/app.js"
></script>
<script
src=
"js/app.js"
></script>
<script
src=
"js/date-text-filter.js"
></script>
<script
src=
"js/date-text-filter.js"
></script>
<script
src=
"js/ui-grid-edit-datepicker.js"
></script>
<script
src=
"js/ui-grid-edit-datepicker.js"
></script>
<script
src=
"controllers/assignAccountsController.js"
></script>
<script
src=
"controllers/LoginController.js"
></script>
<script
src=
"controllers/LoginController.js"
></script>
<script
src=
"controllers/HeaderController.js"
></script>
<script
src=
"controllers/HeaderController.js"
></script>
<script
src=
"controllers/LeftMenuController.js"
></script>
<script
src=
"controllers/LeftMenuController.js"
></script>
...
...
src/main/webapp/WEB-INF/templates/newAccount.html
0 → 100644
View file @
c68fbe25
<md-dialog
aria-label=
"Account Template"
style=
"width:520px;height:500px;"
>
<form
ng-cloak
name=
"myForm"
ng-init=
"getDeliveryManagers()"
>
<md-toolbar>
<div
class=
"md-toolbar-tools"
style=
"background: cadetblue;"
>
<h2>
{{templateTitle}} Account
</h2>
<span
flex
></span>
<md-button
class=
"md-icon-button"
ng-click=
"cancel()"
>
<i
class=
"fa fa-times fa-2x"
style=
"margin-top: 5px; font-size: 1.5em; float: left"
></i>
</md-button>
</div>
</md-toolbar>
<md-dialog-content>
<div
class=
"md-dialog-content"
>
<div
class=
"form-group"
>
<div
class=
"row"
>
<table
width=
"450px"
>
<tr>
<td
colspan=
"4"
>
<b
>
Account ID
</b></td>
<td
colspan=
"8"
><input
type=
"text"
class=
"form-control"
id=
"accountId"
name=
"accountId"
ng-model=
"accountId"
placeholder=
"Account Id Auto Generates"
ng-blur=
""
ng-disabled=
"true"
/>
</td>
<tr>
<td
colspan=
"4"
>
<b
>
Account Name
</b></td>
<td
colspan=
"8"
>
<!-- <md-input-container class="md-block"> -->
<input
type=
"text"
class=
"form-control"
id=
"accountName"
name=
"accountName"
placeholder=
"Account Name"
ng-blur=
"duplicateAccNameValidation()"
ng-model=
"accountName"
/>
<!-- </md-input-container> -->
{{accountValidationMessage}}
</td>
</tr>
<tr>
<td
colspan=
"4"
>
<b
>
Industry Type
</b></td>
<td
colspan=
"8"
>
<md-select
ng-model=
"industryType"
md-selected-text=
"getIndustryTypeSelected()"
id=
"industryType"
>
<md-optgroup
label=
"Industry Type"
>
<md-option
ng-value=
"industryType"
ng-repeat=
"industryType in industryTypesList"
>
{{industryType}}
</md-option>
</md-optgroup>
</md-select>
</td>
</tr>
<tr>
<td
colspan=
"4"
>
<b
>
Client Address
</b></td>
<td
colspan=
"8"
>
<!-- <md-input-container class="md-block"> -->
<textarea
ng-model=
"clientAddress"
id=
"clientAddress"
style=
"width:100%"
md-select-on-focus
></textarea>
<!-- </md-input-container> -->
</td>
</tr>
<tr>
<td
colspan=
"4"
>
<b
>
Account Managers
</b></td>
<td
id=
"lead"
colspan=
"8"
>
<div
class=
"leads-data"
ng-show=
"managersSelectedList.length > 0"
>
<div
ng-repeat=
"item in managersSelectedList"
>
<p>
{{item.employeeName}}
<span
ng-click=
"removeSelectedLead(item)"
class=
"glyphicon glyphicon-remove"
></span>
</p>
</div>
</div>
<md-input-container
style=
"display: block; float: left; width: 100%;"
>
<md-select
class=
"lead-search"
ng-model=
"managersSelectedList"
id=
"selectManager"
data-md-container-class=
"selectdemoSelectHeader"
multiple=
""
md-selected-text=
"getSelectedLead()"
>
<md-select-header
class=
"demo-select-header"
>
<input
ng-model=
"searchTerm"
type=
"search"
id=
"search"
style =
"width:100%"
placeholder=
"Search for a manager"
ng-keydown=
"updateSearch($event)"
ng-model-options=
"{debounce: {'default': 500, 'blur': 0}}"
class=
"demo-header-searchbox md-text"
/>
</md-select-header>
<md-optgroup
label=
"managers"
>
<md-option
ng-value=
"manager"
ng-repeat=
"manager in managerDetails | filter:searchFilter"
>
{{manager.employeeName}}
</md-option>
</md-optgroup>
</md-select>
</md-input-container>
</td>
</tr>
</table>
</div>
<div
role=
"alert"
>
<span
class=
"error"
style=
"color: red;"
>
{{alertMsg}}
</span>
</div>
</div>
</div>
</md-dialog-content>
<md-dialog-actions
layout=
"row"
>
<md-button
class=
"md-raised md-accent"
id =
"addButton"
data-ng-click=
"validateFields(templateTitle)"
ng-disabled=
"addButtonvisible"
style=
"width:120px;background: cadetblue;color:white;"
>
{{templateTitle}}
</md-button>
<md-button
class=
"md-raised"
ng-click=
"cancel()"
style=
"width:120px;background: cadetblue;color:white;"
>
Cancel
</md-button>
</md-dialog-actions>
</form>
</md-dialog>
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