Commit Graph

25 Commits

Author SHA1 Message Date
50e9d3d182 correct data binding for LastEventDateTime property
added method to convert the datetime to a display format.
created padNumber to ensure numbers below 10 get shown as two digits.
#53
2017-03-03 20:48:12 +00:00
4e0a299fc5 changed convertToHours to split hours and decimal minutes into two parts.
calculating the minutes of the hour for display e.g.: 6.5 hours would be 6 hrs 30 mins.
#58
2017-03-02 20:26:06 +00:00
c8c915d4e6 Added getAppDetails function to retrieve the application details object from the api.
Added getAppDetails endpoint to apiEndpoints object.
Set Homepage (users) to get the appdetails if the appDetails observable returns null.
#48
2017-02-27 16:52:41 +00:00
ded664cdd0 corrected rounding issue so that UI will always show hours/mins (3:32 hrs) to two dp.
#43
2017-02-23 20:54:46 +00:00
4c18778a79 remove test error message code, plus some additional tidying, removing old comments.
plus removed unnecessary menu options.
#38
2017-02-22 20:53:10 +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
7b5077ff5b fix data binding for the timelogs to the timelog table.
fixed formatting for convertToHours to correct for one decimal place minutes (less than 10).
added convertToDisplayTime method to convert the timelog timestamp to a logical format (hh:mm).
#15
2017-02-15 20:53:05 +00:00
79f5e392e9 test the databind for some of the timelog properties with the new Flattened TimeLogList object.
added convertToHours method to spa.js to enable WeeklyTotal(mins) to be converted to hours for ui.
#15
2017-02-15 16:53:06 +00:00
8020cd3801 fixed today button not changing the selected date
#16
2017-02-14 22:22:18 +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
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
fd015f1070 remove debugging code. tidy code up. 2017-02-10 17:15:28 +00:00
d237c6c00d remove unnecessary code from development.
#5
2017-02-10 17:12:20 +00:00
d2035a776d fixed selected date for the datepicker. will now highlight the selected date that it is showing time logs for.
#5
2017-02-10 16:55:58 +00:00
832426608c assign to selectedDate even if date is not supplied.
update initDatePicker to accept date. This date will be the setDate argument for bootstrap datepicker.
error is here, its not assigning the date correctly for the picker.
#5
2017-02-10 12:43:23 +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
7923867c2d hook into the selected week changed event to get timelogs from the api.
needs to change the datetime picker to show the selected date rather than today date.
#5
2017-02-09 22:13:45 +00:00
150a9a8d70 Add Error message generation to the UI.
#10
2017-02-09 21:27:20 +00:00
db15f01677 created assignErrorObject method to make raising an error much easier.
no error handling implemented yet.
2017-02-08 22:27:43 +00:00
992f5cd1f4 added footer CSS.
added dismissAlert method to clear error data.
added error data object.
tidying code a bit.
Added Error handling UI elements to the html page.
2017-02-07 17:24:34 +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
86a1618819 corrected binding for Id to look at UserId field. 2017-02-03 12:20:26 +00:00
384ae45c63 pulled out endpoints into single object, instead of having the strings in file.
all strings now use double quotes.
all url generation now handled by createRequestUrl, instead of string concatenation in methods.
errors in getJson methods will now redirect home, suggest implementing proper error message or something...
removed unnecessary console.log's
2017-02-02 17:03:50 +00:00
974ffe4b13 updated html/js/css to latest codepen code. will out of box point to the json-server endpoint. needs to be modified to work with the datacenter api 2017-02-01 21:10:38 +00:00
3fe792d36c manually merging static files etc from branch, this way i can make sure it still works.. seems to be some package going belly up with its dependencies.. no idea what. 2017-02-01 20:05:30 +00:00