Commit Graph

27 Commits

Author SHA1 Message Date
Watts
f1371f1f99 added cache control attributes.
tidied code. removed commenting for now. need to add this in shortly.
#29
2017-04-13 20:59:40 +01:00
Watts
c2de9a0575 created LogsController with
Create/Edit/Delete Logs methods on it.
#29
2017-04-12 22:01:48 +01:00
eb239d0458 add code in to handle group filtering.
if a groupId is present, then get the user list by the group Id.
#64
2017-03-17 23:53:02 +00:00
62e2aa1136 implement delete group api method.
#30
2017-03-17 22:32:18 +00:00
631c205f1a add no caching attribute for group data.
change UpdateGroup method so that it can create a group as well as update it.
#30
2017-03-16 23:06:49 +00:00
05436c2faf return GroupList from GroupController
#30
2017-03-14 22:46:20 +00:00
dc80fd9ba4 stubbed GroupController to include Update and Delete endpoints
#59
2017-03-09 16:05:01 +00:00
cf3a099314 created/padded out the GroupController to simply Get and Create groups.
#59
2017-03-08 16:28:06 +00:00
bb1eeed231 reference ConfigurationHandler and update calls to get configurations.
removed ConfigMonitor.cs.
#54
2017-03-02 22:04:58 +00:00
6f3c5931f4 created ApplicationController which returns an AppDetails object with the properties filled.
#48
2017-02-27 16:48:44 +00:00
caa7408465 add mapping for ManuallyPostData method (housekeeping)
correct 20 minute swipe event blocker and change to 3 min.
2017-02-23 16:55:13 +00:00
b8cd5792cf Set the default page size to a config value - "DefaultPageSize", defaults to 10 if the config value is missing.
#37
2017-02-22 20:43:48 +00:00
ebfced87ee fix relative file paths (file not found errors).
added razor engine to WindowsDataCenter project.
fixed odd logCount errors in spa.js/index.html
2017-02-16 17:07:48 +00:00
21f87c9558 removed braces.
added logging for when the selectedDate parameter is null (for current week).

#9
2017-02-14 17:07:07 +00:00
a2cb93bf83 fixup! add foreach to group logs by the day of the week in which they are entered. #15 2017-02-14 14:04:03 +00:00
00a6894197 added trace logging to the controller classes.
changed nlog config file to output trace logging.
#9
2017-02-13 14:07:09 +00:00
cdac61b18d added pagination to the repository GetUser method.
added pagesixe to userlist object.
added total user count to enable PageCount to work correctly.
added GET_TOTAL_USER_COUNT and GET_ALL_USERS_PAGINATE sqlite procedures to support pagination.
updated methods in SQLiteRepository to support pagination procedures and pagination properties of UserList.
updated UsersController to support pagination parameters.
tidied html script tags.
added pagination buttons at the bottom of user page. including drop down to select PageSize
added setPageSize, goToUserPage and setPagination methods to the viewmodel.
updated other methods for sammy etc to work with pagesize and PageNumber params.
#11
2017-02-12 22:26:00 +00:00
19b718a946 changed IRepository to accept a DateTime for the arg, instead of an int for calendar week/year.
added SelectedDate to the TimeLog object.
changed the timelog controller to accept a datetime as an arg, instead of the previous calendarweek/year args.
This kills two birds with one arg.
Changed the goToTimeLogs function to accept an args object to allow passing of datetime SelectedDate parameter.
removed console.logs to tidy code a little.
corrected some "undefined" parameter bugs/errors.
#5
2017-02-10 12:07:02 +00:00
760f37b14b added manuallog object to allow users to create a sign in/out log for the swipedatacontroller log. 2017-02-09 21:36:22 +00:00
34b427293a return the new Id of the created time log event.
tidied code too.
2017-02-08 22:26:33 +00:00
526aca3d58 TimelogController now pulls in the Repository interface.
Implemented the GetTimeLogs method to get the proper time logs from the DB.
2017-02-08 22:25:21 +00:00
54d11ddf9d added stub/comment for manual swipe data log submission.
returned user id in user edit
started working on the direction/logtime method
2017-02-08 16:51:23 +00:00
13868a2655 added cache attribute tags, set expiry to 0seconds on all API endpoints. 2017-02-07 17:25:39 +00:00
83cef61519 Implemented some proper stubbing out method to return the defined object for testing.
Time logs yet to be fully implemented.
2017-02-06 22:18:37 +00:00
0bb6c8bc08 corrected uiPages method to return correct home endpoint.
changed references to User.Id to User.UserId.
added relativePath option to createRequestUrl(..).
added documentation to returnButtonClick and createRequestUrl methods.
changed initDatePicker to have separate assign handler method to make code simpler.
changed all URL references to relative urls, no longer JSONP/crossdomain compatible.
tidied code.
added query parameter to home/users page.
added search getJson method.
changed all property names to match the WebApi endpoint.
added js to conditionally highlight the datepicker row on hover.
changed script and css references to proper CDN urls.
tidied html.
added form for querying user list.
UserController will conditionally choose to GetUsersList or Search, based on Query Parameter.
Add search method to IRepository
Implement Search method on IRepository interface
added search procedure to SQLiteProcedures
added Query property to UserList to allow UI to display the last filter/query parameter.
2017-02-06 22:18:09 +00:00
39d7bc6cc4 added TimelogController. 2017-02-03 12:22:08 +00:00
532bf2b105 Moved CardsController, SwipeDataController, UsersController, ValuesController to a "Controllers" dir. 2017-02-03 12:21:54 +00:00