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
9a7a6a5c
Unverified
Commit
9a7a6a5c
authored
Jul 30, 2018
by
rsayannagari-nisum-com
Committed by
GitHub
Jul 30, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #89 from nisum-inc/MyTeamMate_Defects
myteam mate changes
parents
8c7f0083
afb70d41
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
2 deletions
+14
-2
ProjectServiceImpl.java
...ain/java/com/nisum/mytime/service/ProjectServiceImpl.java
+6
-1
ProjectTeamController.js
src/main/webapp/WEB-INF/controllers/ProjectTeamController.js
+1
-1
UpdateTeamMate.html
src/main/webapp/WEB-INF/templates/UpdateTeamMate.html
+7
-0
No files found.
src/main/java/com/nisum/mytime/service/ProjectServiceImpl.java
View file @
9a7a6a5c
...
...
@@ -369,14 +369,19 @@ public class ProjectServiceImpl implements ProjectService {
billings
.
setProjectName
(
projectTeamMate
.
getProjectName
());
billings
.
setBillableStatus
(
projectTeamMate
.
getBillableStatus
());
billings
.
setActive
(
true
);
//TODO
Date
d
=
projectTeamMate
.
getNewBillingStartDate
();
d
.
setDate
(
d
.
getDate
()
+
1
);
billings
.
setBillingStartDate
(
DateUtils
.
truncate
(
projectTeamMate
.
getNewBillingStartDate
(),
Calendar
.
DATE
));
d
,
Calendar
.
DATE
));
existingTeammate
.
setNewBillingStartDate
(
DateUtils
.
truncate
(
d
,
Calendar
.
DATE
));
billings
.
setBillingEndDate
(
DateUtils
.
truncate
(
projectTeamMate
.
getEndDate
(),
Calendar
.
DATE
));
billings
.
setCreateDate
(
new
Date
());
addEmployeeBillingDetails
(
billings
);
// TODO
}
existingTeammate
.
setBillableStatus
(
projectTeamMate
.
getBillableStatus
());
existingTeammate
.
setStartDate
(
projectTeamMate
.
getStartDate
());
existingTeammate
.
setEndDate
(
projectTeamMate
.
getEndDate
());
...
...
src/main/webapp/WEB-INF/controllers/ProjectTeamController.js
View file @
9a7a6a5c
...
...
@@ -682,7 +682,7 @@ myApp.controller("projectTeamController",function($scope, myFactory, $mdDialog,
else
{
$scope
.
alertMsg
=
""
;
var
record
=
{
"employeeId"
:
employeeModel
.
employeeId
,
"employeeName"
:
employeeModel
.
employeeName
,
"emailId"
:
employeeModel
.
emailId
,
"role"
:
employeeModel
.
role
,
"designation"
:
employeeModel
.
designation
,
"shift"
:
employeeModel
.
shift
,
"projectId"
:
projectModel
.
projectId
,
"projectName"
:
projectModel
.
projectName
,
"account"
:
$scope
.
projectModel
.
account
,
"managerId"
:
myFactory
.
getEmpId
(),
"managerName"
:
myFactory
.
getEmpName
(),
"mobileNumber"
:
employeeModel
.
mobileNumber
,
"active"
:
true
,
"billableStatus"
:
$scope
.
empBillableStatus
,
"startDate"
:
$scope
.
startDate
,
"endDate"
:
$scope
.
endDate
,
"newBillingStartDate"
:
$scope
.
newBillingStartDate
};
var
record
=
{
"employeeId"
:
employeeModel
.
employeeId
,
"employeeName"
:
employeeModel
.
employeeName
,
"emailId"
:
employeeModel
.
emailId
,
"role"
:
employeeModel
.
role
,
"designation"
:
employeeModel
.
designation
,
"shift"
:
employeeModel
.
shift
,
"projectId"
:
projectModel
.
projectId
,
"projectName"
:
projectModel
.
projectName
,
"account"
:
$scope
.
projectModel
.
account
,
"managerId"
:
myFactory
.
getEmpId
(),
"managerName"
:
myFactory
.
getEmpName
(),
"mobileNumber"
:
employeeModel
.
mobileNumber
,
"active"
:
true
,
"billableStatus"
:
$scope
.
empBillableStatus
,
"startDate"
:
$scope
.
startDate
,
"endDate"
:
$scope
.
endDate
,
"newBillingStartDate"
:
$scope
.
newBillingStartDate
,
"accountId"
:
$scope
.
projectModel
.
accountId
,
"domainId"
:
$scope
.
projectModel
.
domainId
};
addOrUpdateRole
(
record
,
$scope
.
templateTitle
);
$timeout
(
function
(){
updateGrid
(
$scope
.
templateTitle
,
record
)},
500
);
}
...
...
src/main/webapp/WEB-INF/templates/UpdateTeamMate.html
View file @
9a7a6a5c
...
...
@@ -35,6 +35,13 @@
<md-select
ng-model=
"empBillableStatus"
md-selected-text=
"getSelectedBillableStatus()"
id=
"empBillableStatus"
>
<md-optgroup
label=
"billable statuses"
>
<md-option
ng-value=
"billableStatus"
ng-repeat=
"billableStatus in billableStatuses"
>
{{billableStatus}}
</md-option>
</md-optgroup>
</md-select>
<div
ng-show=
"empBillableStatus"
>
<output>
Current Billability Start Date :
<md-datepicker
ng-model=
"newBillingStartDate"
md-placeholder=
"Please Select Date"
id =
"newBillingStartDate"
md-min-date=
"minDate"
md-max-date=
"maxDate"
onkeydown=
"return false"
></md-datepicker></br></output>
</div>
<md-datepicker
ng-model=
"startDate"
md-placeholder=
"Start Date"
md-min-date=
"minDate"
md-max-date=
"maxDate"
onkeydown=
"return false"
...
...
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