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
8f8e6b01
Commit
8f8e6b01
authored
May 02, 2019
by
manikanta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
url modification of importDataand few other files
parent
9d60bb96
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
12 deletions
+9
-12
EmployeeController.java
.../java/com/nisum/myteam/controller/EmployeeController.java
+2
-2
ExportDataController.js
src/main/webapp/WEB-INF/controllers/ExportDataController.js
+1
-1
LoginController.js
src/main/webapp/WEB-INF/controllers/LoginController.js
+2
-2
ReporteesController.js
src/main/webapp/WEB-INF/controllers/ReporteesController.js
+2
-2
exportData.html
src/main/webapp/WEB-INF/templates/exportData.html
+2
-5
No files found.
src/main/java/com/nisum/myteam/controller/EmployeeController.java
View file @
8f8e6b01
...
...
@@ -191,14 +191,14 @@ public class EmployeeController {
}
@RequestMapping
(
value
=
"/
getEmployeeRoleDataForS
earchCriteria"
,
method
=
RequestMethod
.
GET
,
produces
=
MediaType
.
APPLICATION_JSON_VALUE
)
@RequestMapping
(
value
=
"/
employee/s
earchCriteria"
,
method
=
RequestMethod
.
GET
,
produces
=
MediaType
.
APPLICATION_JSON_VALUE
)
public
ResponseEntity
<
Employee
>
getEmployeeRoleDataForSearchCriteria
(
@RequestParam
(
"searchId"
)
String
searchId
,
@RequestParam
(
"searchAttribute"
)
String
searchAttribute
)
throws
MyTeamException
{
Employee
employeesRole
=
empService
.
getEmployeeRoleDataForSearchCriteria
(
searchId
,
searchAttribute
);
return
new
ResponseEntity
<>(
employeesRole
,
HttpStatus
.
OK
);
}
@RequestMapping
(
value
=
"/
getEmployeeDetailsForA
utocomplete"
,
method
=
RequestMethod
.
GET
,
produces
=
MediaType
.
APPLICATION_JSON_VALUE
)
@RequestMapping
(
value
=
"/
employee/a
utocomplete"
,
method
=
RequestMethod
.
GET
,
produces
=
MediaType
.
APPLICATION_JSON_VALUE
)
public
ResponseEntity
<
List
<
String
>>
getEmployeeDetailsForAutocomplete
()
throws
MyTeamException
{
List
<
String
>
details
=
empService
.
getEmployeeDetailsForAutocomplete
();
return
new
ResponseEntity
<>(
details
,
HttpStatus
.
OK
);
...
...
src/main/webapp/WEB-INF/controllers/ExportDataController.js
View file @
8f8e6b01
...
...
@@ -37,7 +37,7 @@ myApp
showProgressDialog
(
'Please wait while data is imported from file...!!!'
);
var
formData
=
new
FormData
();
formData
.
append
(
'file'
,
file
);
$http
.
post
(
appConfig
.
appUri
+
"
user
/fileUpload?empId="
+
empId
,
$http
.
post
(
appConfig
.
appUri
+
"
/employee
/fileUpload?empId="
+
empId
,
formData
,{
transformRequest
:
angular
.
identity
,
headers
:
{
'Content-Type'
:
undefined
},
...
...
src/main/webapp/WEB-INF/controllers/LoginController.js
View file @
8f8e6b01
...
...
@@ -310,8 +310,8 @@ myApp.controller("loginController",function($scope, myFactory, $compile, $window
menuItems
.
push
({
"menu"
:
"Manage Domains"
,
"icon"
:
"fa fa fa-cubes fa-2x"
,
"path"
:
"templates/domains.html"
});
menuItems
.
push
({
"menu"
:
"Manage Projects"
,
"icon"
:
"fa fa-tasks fa-2x"
,
"path"
:
"templates/projects.html"
});
//menuItems.push({"menu" : "Manage Team","icon" : "fa fa-sitemap fa-2x","path" : "templates/projectDetails.html"});
menuItems
.
push
({
"menu"
:
"Manage Visa"
,
"icon"
:
"fa fa-empire fa-2x"
,
"path"
:
"templates/visaList.html"
});
menuItems
.
push
({
"menu"
:
"Manage Travels"
,
"icon"
:
"fa fa-tasks fa-2x"
,
"path"
:
"templates/onsiteTravelsList.html"
});
//
menuItems.push({"menu" : "Manage Visa","icon" : "fa fa-empire fa-2x","path" : "templates/visaList.html"});
//
menuItems.push({"menu" : "Manage Travels","icon" : "fa fa-tasks fa-2x","path" : "templates/onsiteTravelsList.html"});
menuItems
.
push
({
"menu"
:
"Employee Login Details"
,
"icon"
:
"fa fa-users fa-2x"
,
"path"
:
"templates/employees.html"
});
menuItems
.
push
({
"menu"
:
"Login Reports"
,
"icon"
:
"fa fa-pie-chart fa-2x"
,
"path"
:
"templates/reports.html"
});
menuItems
.
push
({
"menu"
:
"Attendance Report"
,
"icon"
:
"fa fa-bar-chart fa-2x"
,
"path"
:
"templates/attendanceReport.html"
});
...
...
src/main/webapp/WEB-INF/controllers/ReporteesController.js
View file @
8f8e6b01
...
...
@@ -53,7 +53,7 @@ myApp.controller("employeesController", function($scope, $http, myFactory, $mdDi
$scope
.
getEmployeeDetailsForAutocomplete
=
function
(){
$http
({
method
:
"GET"
,
url
:
appConfig
.
appUri
+
"
user/getEmployeeDetailsForA
utocomplete"
url
:
appConfig
.
appUri
+
"
/employee/a
utocomplete"
}).
then
(
function
mySuccess
(
response
)
{
if
(
response
.
data
!=
""
&&
response
.
data
.
length
!=
0
){
$scope
.
employeeDetails
=
response
.
data
;
...
...
@@ -151,7 +151,7 @@ myApp.controller("employeesController", function($scope, $http, myFactory, $mdDi
function
getEmployeeIdFromRoles
(
searchId
,
searchAttribute
,
fromDate
,
toDate
,
type
){
$http
({
method
:
"GET"
,
url
:
appConfig
.
appUri
+
"
user/getEmployeeRoleDataForS
earchCriteria?searchId="
+
searchId
+
"&searchAttribute="
+
searchAttribute
url
:
appConfig
.
appUri
+
"
/employee/s
earchCriteria?searchId="
+
searchId
+
"&searchAttribute="
+
searchAttribute
}).
then
(
function
mySuccess
(
response
)
{
if
(
response
.
data
!=
""
&&
response
.
data
.
length
!=
0
){
getData
(
response
.
data
.
employeeId
,
fromDate
,
toDate
,
type
);
...
...
src/main/webapp/WEB-INF/templates/exportData.html
View file @
8f8e6b01
...
...
@@ -16,8 +16,7 @@
<div
class=
"form-inline col-lg-12"
style=
"margin-left: 22%; margin-top: 5%;"
>
<div
class=
"form-group col-lg-4"
>
<a
class=
"btn btn-primary"
href=
'javascript:;'
style=
"background: cadetblue;border-color:cadetblue; margin-top: 1%;"
>
Choose File...
<a
class=
"btn btn-primary"
href=
'javascript:;'
>
Choose File...
<input
type=
"file"
file-model=
"file"
style=
"position: absolute; z-index: 2; top: 0; left: 0; filter: alpha(opacity = 0); -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0); opacity: 0; background-color: transparent; color: transparent;"
name=
"file_source"
...
...
@@ -28,10 +27,8 @@
<div
class=
"form-group col-lg-1"
>
<label
class=
""
for=
"submitBtn"
><md-button
class=
"md-raised md-primary"
style=
"width:120px;background: cadetblue;"
ng-click=
"uploadFiles()"
>
<i
class=
"fa fa-upload fa-2x"
style=
"margin-top: 5px; font-size: 1.5em; float: left"
></i>
class=
"fa fa-upload fa-2x"
></i>
Import Data
</md-button></label>
</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