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
92f5e47f
Commit
92f5e47f
authored
Aug 06, 2018
by
rammula-nisum-com
Committed by
rbonthala-nisum-com
Aug 06, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
issues in project module validation (#118)
parent
2da1f9e2
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
30 deletions
+10
-30
ProjectController.js
src/main/webapp/WEB-INF/controllers/ProjectController.js
+8
-28
loginlogo.png
src/main/webapp/WEB-INF/images/loginlogo.png
+0
-0
loginlogoOld.png
src/main/webapp/WEB-INF/images/loginlogoOld.png
+0
-0
logo.png
src/main/webapp/WEB-INF/images/logo.png
+0
-0
logoOld.png
src/main/webapp/WEB-INF/images/logoOld.png
+0
-0
projectTeamDetails.html
src/main/webapp/WEB-INF/templates/projectTeamDetails.html
+2
-2
No files found.
src/main/webapp/WEB-INF/controllers/ProjectController.js
View file @
92f5e47f
...
@@ -1021,7 +1021,6 @@ myApp.controller("projectController", function ($scope, myFactory, exportUiGridS
...
@@ -1021,7 +1021,6 @@ myApp.controller("projectController", function ($scope, myFactory, exportUiGridS
var
projectStartDate
=
$scope
.
projectStartDate
;
var
projectStartDate
=
$scope
.
projectStartDate
;
var
projectEndDate
=
$scope
.
projectEndDate
;
var
projectEndDate
=
$scope
.
projectEndDate
;
var
projectStatus
=
$scope
.
projectStatus
;
var
projectStatus
=
$scope
.
projectStatus
;
// var projectStartedDate = $scope.startDate;
if
(
action
===
"Add"
||
action
==
"Update"
){
if
(
action
===
"Add"
||
action
==
"Update"
){
if
(
employeeModel
==
undefined
||
employeeModel
.
employeeName
==
undefined
){
if
(
employeeModel
==
undefined
||
employeeModel
.
employeeName
==
undefined
){
$scope
.
alertMsg
=
"Please select a employee"
;
$scope
.
alertMsg
=
"Please select a employee"
;
...
@@ -1048,28 +1047,16 @@ myApp.controller("projectController", function ($scope, myFactory, exportUiGridS
...
@@ -1048,28 +1047,16 @@ myApp.controller("projectController", function ($scope, myFactory, exportUiGridS
$scope
.
alertMsg
=
"Please select new Billing StartDate"
;
$scope
.
alertMsg
=
"Please select new Billing StartDate"
;
angular
.
element
(
document
.
getElementById
(
'newBillingStartDate'
)).
focus
();
angular
.
element
(
document
.
getElementById
(
'newBillingStartDate'
)).
focus
();
}
}
// else if(action =="Add" && ($scope.newBillingStartDate > $scope.endDate)){
else
if
(
employeeModel
!=
undefined
&&
projectModel
!=
undefined
&&
action
==
"Add"
&&
getExistingRecordProjectStatus
(
employeeModel
.
employeeId
,
projectModel
.
projectName
)){
// $scope.alertMsg = "Assignment End Date should be less than New Billability Start Date ";
// }
// else if (action == "Update" && (($scope.endDate < $scope.startDate) && ($scope.startDate <= $scope.newBillingStartDate) && ($scope.endDate < $scope.newBillingStartDate))) {
// $scope.alertMsg = "EndDate should be greater than StartDate and new BillingStartDate ";
// }
// else if (action == "Add"){
// if (!(($scope.newBillingStartDate >= new Date(dataToPass.projectStartDate)) && ($scope.newBillingStartDate <= $scope.endDate))){
// $scope.alertMsg = $scope.empBillableStatus + "start date should be in between start date and end date";
// }
// }
else
if
(
employeeModel
!=
undefined
&&
projectModel
!=
undefined
&&
action
==
"Add"
&&
getExistingRecordProjectStatus
(
employeeModel
.
employeeId
,
projectModel
.
projectName
)){
$scope
.
alertMsg
=
"Employee is already assigned to the selected project"
;
$scope
.
alertMsg
=
"Employee is already assigned to the selected project"
;
return
false
;
return
false
;
}
}
// else if (action == "Update"){
else
if
(
!
((
$scope
.
newBillingStartDate
>=
new
Date
(
dataToPass
.
projectStartDate
))
&&
(
$scope
.
newBillingStartDate
<=
$scope
.
endDate
))){
// if (!(($scope.newBillingStartDate >= $scope.startDate) && ($scope.newBillingStartDate <= $scope.endDate))){
$scope
.
alertMsg
=
$scope
.
empBillableStatus
+
" start date should be in between start date and end date"
;
// $scope.alertMsg = $scope.empBillableStatus + "start date should be in between start date and end date";
}
// }
else
if
(
!
((
$scope
.
newBillingStartDate
>=
$scope
.
startDate
)
&&
(
$scope
.
newBillingStartDate
<=
$scope
.
endDate
))
&&
action
==
"Update"
){
// }
$scope
.
alertMsg
=
$scope
.
empBillableStatus
+
" start date should be in between start date and end date"
;
}
else
{
else
{
$scope
.
alertMsg
=
""
;
$scope
.
alertMsg
=
""
;
var
record
=
{
"id"
:
$scope
.
id
,
"employeeId"
:
employeeModel
.
employeeId
,
"employeeName"
:
employeeModel
.
employeeName
,
"emailId"
:
employeeModel
.
emailId
,
"designation"
:
employeeModel
.
designation
,
"projectId"
:
project
,
"projectName"
:
projectName
,
"managerId"
:
managerId
,
"managerName"
:
managerName
,
"mobileNumber"
:
employeeModel
.
mobileNumber
,
"active"
:
true
,
"billableStatus"
:
$scope
.
empBillableStatus
,
"startDate"
:
$scope
.
startDate
,
"endDate"
:
$scope
.
endDate
,
"account"
:
account
,
"role"
:
$scope
.
employeeRole
,
"newBillingStartDate"
:
newBillingStartDate
,
"accountId"
:
$scope
.
accountId
,
"domainId"
:
$scope
.
domainId
,
"shift"
:
$scope
.
employeeShift
,
"projectStartDate"
:
$scope
.
startDate
,
"projectEndDate"
:
$scope
.
endDate
};
var
record
=
{
"id"
:
$scope
.
id
,
"employeeId"
:
employeeModel
.
employeeId
,
"employeeName"
:
employeeModel
.
employeeName
,
"emailId"
:
employeeModel
.
emailId
,
"designation"
:
employeeModel
.
designation
,
"projectId"
:
project
,
"projectName"
:
projectName
,
"managerId"
:
managerId
,
"managerName"
:
managerName
,
"mobileNumber"
:
employeeModel
.
mobileNumber
,
"active"
:
true
,
"billableStatus"
:
$scope
.
empBillableStatus
,
"startDate"
:
$scope
.
startDate
,
"endDate"
:
$scope
.
endDate
,
"account"
:
account
,
"role"
:
$scope
.
employeeRole
,
"newBillingStartDate"
:
newBillingStartDate
,
"accountId"
:
$scope
.
accountId
,
"domainId"
:
$scope
.
domainId
,
"shift"
:
$scope
.
employeeShift
,
"projectStartDate"
:
$scope
.
startDate
,
"projectEndDate"
:
$scope
.
endDate
};
...
@@ -1087,15 +1074,8 @@ myApp.controller("projectController", function ($scope, myFactory, exportUiGridS
...
@@ -1087,15 +1074,8 @@ myApp.controller("projectController", function ($scope, myFactory, exportUiGridS
}));
}));
},
500
);
},
500
);
}
}
// addRecord(record,action);
}
}
}
}
// if(project == ""){
// $scope.alertMsg = "Project ID is mandatory";
// document.getElementById('projectId').focus();
// }else
else
{
else
{
if
(
projectName
==
""
)
{
if
(
projectName
==
""
)
{
$scope
.
alertMsg
=
"Project Name is mandatory"
;
$scope
.
alertMsg
=
"Project Name is mandatory"
;
...
...
src/main/webapp/WEB-INF/images/loginlogo.png
View replaced file @
2da1f9e2
View file @
92f5e47f
7.33 KB
|
W:
|
H:
7.24 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/main/webapp/WEB-INF/images/loginlogoOld.png
0 → 100644
View file @
92f5e47f
7.33 KB
src/main/webapp/WEB-INF/images/logo.png
View replaced file @
2da1f9e2
View file @
92f5e47f
8.6 KB
|
W:
|
H:
4.95 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/main/webapp/WEB-INF/images/logoOld.png
0 → 100644
View file @
92f5e47f
8.6 KB
src/main/webapp/WEB-INF/templates/projectTeamDetails.html
View file @
92f5e47f
...
@@ -133,7 +133,7 @@
...
@@ -133,7 +133,7 @@
<tr>
<tr>
<td
class=
"Employee"
>
Billability Status
</td>
<td
class=
"Employee"
>
Billability Status
</td>
<td>
<td>
<md-select
ng-model=
"empBillableStatus "
md-selected-text=
"getSelectedBillableStatus() "
id=
"empBillableStatus"
name=
"empBillableStatus"
ng-change=
"changeEmpBillableStatus()>
<md-select
ng-model=
"empBillableStatus "
md-selected-text=
"getSelectedBillableStatus() "
id=
"empBillableStatus"
name=
"empBillableStatus"
ng-change=
"changeEmpBillableStatus()
"
>
<md-optgroup
label=
"billable statuses "
>
<md-optgroup
label=
"billable statuses "
>
<md-option
ng-value=
"billableStatus "
ng-repeat=
"billableStatus in billableStatuses "
>
{{billableStatus}}
</md-option>
<md-option
ng-value=
"billableStatus "
ng-repeat=
"billableStatus in billableStatuses "
>
{{billableStatus}}
</md-option>
</md-optgroup>
</md-optgroup>
...
@@ -258,7 +258,7 @@
...
@@ -258,7 +258,7 @@
<tr>
<tr>
<td
class=
"Employee"
>
Billability Status
</td>
<td
class=
"Employee"
>
Billability Status
</td>
<td>
<td>
<md-select
ng-model=
"empBillableStatus "
md-selected-text=
"getSelectedBillableStatus() "
id=
"empBillableStatus"
name=
"empBillableStatus"
ng-change=
"changeEmpBillableStatus()"
>
<md-select
ng-model=
"empBillableStatus "
md-selected-text=
"getSelectedBillableStatus() "
id=
"empBillableStatus"
name=
"empBillableStatus"
ng-change=
"changeEmpBillableStatus()"
>
<md-optgroup
label=
"billable statuses "
>
<md-optgroup
label=
"billable statuses "
>
<md-option
ng-value=
"billableStatus "
ng-repeat=
"billableStatus in billableStatuses "
>
{{billableStatus}}
</md-option>
<md-option
ng-value=
"billableStatus "
ng-repeat=
"billableStatus in billableStatuses "
>
{{billableStatus}}
</md-option>
</md-optgroup>
</md-optgroup>
...
...
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