Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Q
QLNS_N01
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nguyễn Văn Hiếu
QLNS_N01
Commits
c2ba1016
Commit
c2ba1016
authored
Jun 15, 2019
by
Phạm Duy Phi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
6faa8f1a
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
35 additions
and
10 deletions
+35
-10
src/main/java/com/itsol/quantrivanphong/report/leaveform/business/LeaveFormBusiness.java
...vanphong/report/leaveform/business/LeaveFormBusiness.java
+4
-0
src/main/java/com/itsol/quantrivanphong/report/leaveform/controller/LeaveFormController.java
...hong/report/leaveform/controller/LeaveFormController.java
+6
-1
src/main/resources/public/index.html
src/main/resources/public/index.html
+1
-1
src/main/resources/public/pages/leaveform/leaveForm.html
src/main/resources/public/pages/leaveform/leaveForm.html
+6
-2
src/main/resources/public/pages/leaveform/leaveFormController.js
...n/resources/public/pages/leaveform/leaveFormController.js
+10
-0
src/main/resources/public/pages/timesheet/timeSheet.html
src/main/resources/public/pages/timesheet/timeSheet.html
+4
-3
src/main/resources/public/pages/timesheet/timesheet.html
src/main/resources/public/pages/timesheet/timesheet.html
+4
-3
No files found.
src/main/java/com/itsol/quantrivanphong/report/leaveform/business/LeaveFormBusiness.java
View file @
c2ba1016
...
@@ -135,4 +135,8 @@ public class LeaveFormBusiness {
...
@@ -135,4 +135,8 @@ public class LeaveFormBusiness {
public
LeaveForm
showLeaveFormById
(
int
id
)
{
public
LeaveForm
showLeaveFormById
(
int
id
)
{
return
leaveFormRepository
.
findLeaveFormById
(
id
);
return
leaveFormRepository
.
findLeaveFormById
(
id
);
}
}
public
List
<
LeaveType
>
getLeaveTypeList
()
{
return
leaveTypeRepository
.
findAll
();
}
}
}
src/main/java/com/itsol/quantrivanphong/report/leaveform/controller/LeaveFormController.java
View file @
c2ba1016
package
com.itsol.quantrivanphong.report.leaveform.controller
;
package
com.itsol.quantrivanphong.report.leaveform.controller
;
import
com.itsol.quantrivanphong.exception.InputException
;
import
com.itsol.quantrivanphong.exception.InputException
;
import
com.itsol.quantrivanphong.model.LeaveType
;
import
com.itsol.quantrivanphong.report.leaveform.business.LeaveFormBusiness
;
import
com.itsol.quantrivanphong.report.leaveform.business.LeaveFormBusiness
;
import
com.itsol.quantrivanphong.report.leaveform.dto.LeaveFormDTO
;
import
com.itsol.quantrivanphong.report.leaveform.dto.LeaveFormDTO
;
import
com.itsol.quantrivanphong.model.LeaveForm
;
import
com.itsol.quantrivanphong.model.LeaveForm
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.http.HttpStatus
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
...
@@ -76,4 +76,9 @@ public class LeaveFormController {
...
@@ -76,4 +76,9 @@ public class LeaveFormController {
public
ResponseEntity
<
LeaveForm
>
showLeaveFormById
(
@PathVariable
int
id
)
{
public
ResponseEntity
<
LeaveForm
>
showLeaveFormById
(
@PathVariable
int
id
)
{
return
ResponseEntity
.
ok
(
leaveFormBusiness
.
showLeaveFormById
(
id
));
return
ResponseEntity
.
ok
(
leaveFormBusiness
.
showLeaveFormById
(
id
));
}
}
@GetMapping
(
path
=
"/leaveType/getAll"
)
public
ResponseEntity
<
List
<
LeaveType
>>
getAllLeaveType
()
{
return
ResponseEntity
.
ok
(
leaveFormBusiness
.
getLeaveTypeList
());
}
}
}
src/main/resources/public/index.html
View file @
c2ba1016
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
<script
src=
"common/js/jquery.dataTables.js"
></script>
<script
src=
"common/js/jquery.dataTables.js"
></script>
<script
src=
"common/js/dataTables.bootstrap4.js"
></script>
<script
src=
"common/js/dataTables.bootstrap4.js"
></script>
<!-- Custom scripts for all pages-->
<!-- Custom scripts for all pages-->
<script
src=
"common/js/sb-admin.min.js"
></script>
\
<script
src=
"common/js/sb-admin.min.js"
></script>
<script
src=
"//ajax.googleapis.com/ajax/libs/angularjs/1.6.1/angular-animate.js"
></script>
<script
src=
"//ajax.googleapis.com/ajax/libs/angularjs/1.6.1/angular-animate.js"
></script>
<script
src=
"//ajax.googleapis.com/ajax/libs/angularjs/1.6.1/angular-sanitize.js"
></script>
<script
src=
"//ajax.googleapis.com/ajax/libs/angularjs/1.6.1/angular-sanitize.js"
></script>
<script
src=
"//angular-ui.github.io/bootstrap/ui-bootstrap-tpls-1.3.3.js"
></script>
<script
src=
"//angular-ui.github.io/bootstrap/ui-bootstrap-tpls-1.3.3.js"
></script>
...
...
src/main/resources/public/pages/leaveform/leaveForm.html
View file @
c2ba1016
...
@@ -46,14 +46,18 @@
...
@@ -46,14 +46,18 @@
<tr>
<tr>
<td><label>
Employee Id
</label></td>
<td><label>
Employee Id
</label></td>
<td>
<td>
<input
type=
"text"
maxlength=
"10"
value=
""
ng-model=
"lfdto.employeeId"
style=
"width: 100%;"
/>
<input
type=
"text"
maxlength=
"10"
value=
""
ng-model=
"lfdto.employeeId"
/>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
<td><label>
Leave Type Id
</label></td>
<td><label>
Leave Type Id
</label></td>
<td>
<td>
<input
type=
"text"
maxlength=
"10"
value=
""
ng-model=
"lfdto.leaveTypeId"
style=
"width: 100%;"
/>
<!-- <input type="text" maxlength="10" value="" ng-model="lfdto.leaveTypeId" style="width: 100%;"/>-->
<select
ng-model=
"lfdto.leaveTypeId"
>
<option
value=
""
>
Select Leave Type
</option>
<option
ng-repeat=
"lf in leaveTypeList"
value=
"{{lf.id}}"
>
{{lf.name}}
</option>
</select>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
...
src/main/resources/public/pages/leaveform/leaveFormController.js
View file @
c2ba1016
...
@@ -33,6 +33,16 @@ angular.module("myApp").controller("leaveFormController", function($scope, $http
...
@@ -33,6 +33,16 @@ angular.module("myApp").controller("leaveFormController", function($scope, $http
console
.
log
(
response
)
console
.
log
(
response
)
});
});
//get all leave type
$http
({
method
:
'
GET
'
,
url
:
"
http://localhost:8080/employee/leaveType/getAll
"
}).
then
(
function
successCallback
(
response
)
{
console
.
log
(
response
);
$scope
.
leaveTypeList
=
response
.
data
;
},
function
errorCallback
(
response
)
{
console
.
log
(
response
)
});
//delete leave form
//delete leave form
$scope
.
delete
=
function
(
lf
)
{
$scope
.
delete
=
function
(
lf
)
{
$http
({
$http
({
...
...
src/main/resources/public/pages/timesheet/timeSheet.html
View file @
c2ba1016
...
@@ -56,8 +56,9 @@
...
@@ -56,8 +56,9 @@
<!-- <input type="text" maxlength="10" value="" ng-model="tsdto.eprojectId" style="width: 100%;"/>-->
<!-- <input type="text" maxlength="10" value="" ng-model="tsdto.eprojectId" style="width: 100%;"/>-->
<!-- </td>-->
<!-- </td>-->
<td>
<td>
<select
ng-repeat=
"ep in eProjectList"
>
<select
ng-model=
"tsdto.eprojectId"
>
<option
value=
"ahihi"
>
{{ep.project.name}}
</option>
<option
value=
""
>
Select Project
</option>
<option
ng-repeat=
"ep in eProjectList"
value=
"{{ep.id}}"
>
{{ep.project.name}}
</option>
</select>
</select>
</td>
</td>
</tr>
</tr>
...
@@ -65,7 +66,7 @@
...
@@ -65,7 +66,7 @@
<tr>
<tr>
<td><label>
Employee Id
</label></td>
<td><label>
Employee Id
</label></td>
<td>
<td>
<input
type=
"text"
maxlength=
"10"
value=
""
ng-model=
"tsdto.employeeId"
style=
"width: 100%;"
/>
<input
type=
"text"
maxlength=
"10"
value=
""
ng-model=
"tsdto.employeeId"
/>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
...
src/main/resources/public/pages/timesheet/timesheet.html
View file @
c2ba1016
...
@@ -56,8 +56,9 @@
...
@@ -56,8 +56,9 @@
<!-- <input type="text" maxlength="10" value="" ng-model="tsdto.eprojectId" style="width: 100%;"/>-->
<!-- <input type="text" maxlength="10" value="" ng-model="tsdto.eprojectId" style="width: 100%;"/>-->
<!-- </td>-->
<!-- </td>-->
<td>
<td>
<select
ng-repeat=
"ep in eProjectList"
>
<select
ng-model=
"tsdto.eprojectId"
>
<option
value=
"ahihi"
>
{{ep.project.name}}
</option>
<option
value=
""
>
Select Project
</option>
<option
ng-repeat=
"ep in eProjectList"
value=
"{{ep.id}}"
>
{{ep.project.name}}
</option>
</select>
</select>
</td>
</td>
</tr>
</tr>
...
@@ -65,7 +66,7 @@
...
@@ -65,7 +66,7 @@
<tr>
<tr>
<td><label>
Employee Id
</label></td>
<td><label>
Employee Id
</label></td>
<td>
<td>
<input
type=
"text"
maxlength=
"10"
value=
""
ng-model=
"tsdto.employeeId"
style=
"width: 100%;"
/>
<input
type=
"text"
maxlength=
"10"
value=
""
ng-model=
"tsdto.employeeId"
/>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
...
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