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
d3547db3
Commit
d3547db3
authored
May 15, 2019
by
Prayas Jain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated_ACCOUNTS_PAGE
parent
f04bcb2a
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
18 deletions
+21
-18
application.properties
src/main/resources/application.properties
+1
-1
DashboardController.js
src/main/webapp/WEB-INF/controllers/DashboardController.js
+3
-3
ProjectController.js
src/main/webapp/WEB-INF/controllers/ProjectController.js
+13
-12
app.js
src/main/webapp/WEB-INF/js/app.js
+2
-0
accounts.html
src/main/webapp/WEB-INF/templates/accounts.html
+1
-1
projectTeamDetails.html
src/main/webapp/WEB-INF/templates/projectTeamDetails.html
+1
-1
No files found.
src/main/resources/application.properties
View file @
d3547db3
...
...
@@ -11,7 +11,7 @@ server.context-path=/myTeam/
#Local Database configuration
spring.data.mongodb.host
=
localhost
spring.data.mongodb.port
=
27017
spring.data.mongodb.database
=
my
TeamDB
spring.data.mongodb.database
=
my
time
quartz.enabled
=
true
cron.expression
=
0 45 10/3 1/1 * ? *
...
...
src/main/webapp/WEB-INF/controllers/DashboardController.js
View file @
d3547db3
...
...
@@ -204,7 +204,7 @@ myApp.controller("dashboardController", function($scope, $http, myFactory,export
columnDefs
:
[
{
field
:
'projectName'
,
displayName
:
'Project'
,
enableColumnMenu
:
true
,
enableSorting
:
true
,
minWidth
:
100
,
width
:
150
},
{
field
:
'accountName'
,
displayName
:
'Account'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
minWidth
:
100
,
width
:
150
},
{
field
:
'
managerName'
,
displayName
:
'Manager Name'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
minWidth
:
100
,
width
:
150
},
{
field
:
'
deliveryLeadIds[0].employeeName'
,
displayName
:
'Delivery Lead'
,
minWidth
:
100
,
width
:
150
},
{
field
:
'billableStatus'
,
displayName
:
'Billability'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
minWidth
:
100
,
width
:
150
},
{
field
:
'projectStartDate'
,
displayName
:
'Start Date'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
cellFilter
:
'date:"dd-MMM-yyyy"'
,
minWidth
:
100
,
width
:
150
},
{
field
:
'projectEndDate'
,
displayName
:
'End Date'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
cellFilter
:
'date:"dd-MMM-yyyy"'
,
minWidth
:
100
,
width
:
150
},
...
...
@@ -248,7 +248,7 @@ myApp.controller("dashboardController", function($scope, $http, myFactory,export
]
};
var
getCellActiveTemplateBilling
=
'<div ng-show="COL_FIELD==true"><p class="col-lg-12">Y</P></div><div ng-show="COL_FIELD==false"><p class="col-lg-12">N</p></div>'
;
//
var getCellActiveTemplateBilling='<div ng-show="COL_FIELD==true"><p class="col-lg-12">Y</P></div><div ng-show="COL_FIELD==false"><p class="col-lg-12">N</p></div>';
$scope
.
gridOptionsEmpBillability
=
{
paginationPageSizes
:
[
10
,
20
,
30
,
40
,
50
,
100
],
...
...
@@ -268,7 +268,7 @@ myApp.controller("dashboardController", function($scope, $http, myFactory,export
cellFilter
:
'date:"dd-MMM-yyyy"'
,
minWidth
:
100
,
width
:
150
},
{
field
:
'comments'
,
displayName
:
'Comments'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
minWidth
:
100
,
width
:
150
},
{
field
:
'resourceStatus'
,
displayName
:
'Status'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
cellTemplate
:
getCellActiveTemplateBilling
,
enableCellEdit
:
false
,
minWidth
:
100
,
width
:
150
}
{
field
:
'resourceStatus'
,
displayName
:
'Status'
,
enableColumnMenu
:
false
,
enableSorting
:
false
,
enableCellEdit
:
false
,
minWidth
:
100
,
width
:
150
}
]
};
...
...
src/main/webapp/WEB-INF/controllers/ProjectController.js
View file @
d3547db3
...
...
@@ -476,7 +476,7 @@ myApp.controller("projectController", function ($scope, myFactory, exportUiGridS
$
(
'.md-select-value'
)[
0
].
childNodes
[
0
].
innerHTML
=
null
$
(
'.md-select-value'
)[
1
].
childNodes
[
0
].
innerHTML
=
null
$
(
'.md-select-value'
)[
2
].
childNodes
[
0
].
innerHTML
=
null
$
(
'.md-select-value'
)[
3
].
childNodes
[
0
].
innerHTML
=
null
//
$('.md-select-value')[3].childNodes[0].innerHTML = null
$
(
'.md-datepicker-input'
)[
0
].
value
=
null
;
$
(
'.md-datepicker-input'
)[
1
].
value
=
null
;
$
(
'.md-datepicker-input'
)[
2
].
value
=
null
;
...
...
@@ -764,6 +764,7 @@ myApp.controller("projectController", function ($scope, myFactory, exportUiGridS
}
else
{
$scope
.
employeeRole
=
"Lead"
;
}
console
.
log
(
$scope
.
employeeRole
)
//$scope.employeeRole = userData.role;
//$scope.employeeShift = userData.shift;
$scope
.
newBillingStartDate
=
new
Date
(
userData
.
newBillingStartDate
);
...
...
@@ -921,12 +922,14 @@ myApp.controller("projectController", function ($scope, myFactory, exportUiGridS
}
};
$scope
.
changeEmpBillableStatus
=
function
(){
$scope
.
newBillingStartDate
=
null
;
//$scope.newBillingStartDate = null;
if
(
$scope
.
templateTitle
==
"Add"
){
$
(
'.md-datepicker-input'
)[
0
].
value
=
null
;
}
else
{
$
(
'.md-datepicker-input'
)[
3
].
value
=
new
Date
(
$scope
.
projectEndDate
).
toISOString
().
slice
(
0
,
10
);
$scope
.
endDate
=
new
Date
(
dataToPass
.
projectEndDate
);
$
(
'.md-datepicker-input'
)[
3
].
value
=
new
Date
(
dataToPass
.
projectEndDate
);
}
}
...
...
@@ -1170,8 +1173,6 @@ myApp.controller("projectController", function ($scope, myFactory, exportUiGridS
}
$scope
.
validateFields
=
function
(
action
)
{
console
.
log
(
new
Date
(
$scope
.
parentData
.
newBillingStartDate
));
console
.
log
(
$scope
.
newBillingStartDate
);
var
project
=
$scope
.
projectId
;
var
projectName
=
$scope
.
projectName
;
var
account
=
$scope
.
account
;
...
...
@@ -1448,13 +1449,13 @@ myApp.controller("projectController", function ($scope, myFactory, exportUiGridS
return
"Please select a employee role"
;
}
}
$scope
.
getSelectedEmpShift
=
function
(){
if
(
$scope
.
employeeShift
!=
undefined
)
{
return
$scope
.
employeeShift
;
}
else
{
return
"Please select a employee shift"
;
}
}
//
$scope.getSelectedEmpShift = function(){
//
if ($scope.employeeShift != undefined ) {
//
return $scope.employeeShift;
//
} else {
//
return "Please select a employee shift";
//
}
//
}
// $scope.getProjectSelected = function(){
// if ($scope.projectModel !== undefined) {
...
...
src/main/webapp/WEB-INF/js/app.js
View file @
d3547db3
...
...
@@ -18,6 +18,8 @@ myApp.constant('appConfig', {
appName
:
"MyTime"
,
//appUri: "http://10.3.45.11:8080/myTeam/",
appUri
:
"http://localhost:8080/myTeam/"
,
version
:
"1.0"
,
empStartId
:
16001
,
...
...
src/main/webapp/WEB-INF/templates/accounts.html
View file @
d3547db3
...
...
@@ -19,7 +19,7 @@
<div
class=
"row col-lg-12"
>
<div
id=
"gridTest"
ui-grid=
"gridOptions"
ui-grid-pagination
class=
"myGrid
manage-accounts
"
>
class=
"myGrid
grid-full-view
"
>
<div
class=
"watermark"
ng-show=
"!gridOptions.data.length"
>
No
data available
</div>
</div>
...
...
src/main/webapp/WEB-INF/templates/projectTeamDetails.html
View file @
d3547db3
...
...
@@ -171,7 +171,7 @@
</table>
<div
role=
"alert"
>
<span
class=
"alert alert alert-danger"
style=
"color: red; "
>
{{alertMsg}}
</span>
<span
style=
"color: red; "
>
{{alertMsg}}
</span>
</div>
</div>
</div>
...
...
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