FlexitimeTracker/DataCenter_Windows/WindowsDataCenter/SQLiteRepository/SQLiteProcedures.cs
chris.watts90@outlook.com 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

19 lines
907 B
C#

namespace SQLiteRepository
{
internal static class SQLiteProcedures
{
public const string GET_ALL_USERS = "select * from UserIdentity";
public const string GET_USER_BY_ID = "select * from UserIdentity where Id=?";
public const string GET_CARDS_BY_USER_ID = "select * from CardUniqueId where UserId_FK=?";
public const string GET_CARDS_BY_UNIQUE_ID = "select * from CardUniqueId where CardUId=?";
public const string GET_UNASSIGNED_CARD_LIST = "select * from CardUniqueId where UserId_FK=?";
public const string GET_USER_BY_FIRST_AND_LAST =
"select * from UserIdentity where FirstName = ? AND LastName = ?";
public const string UPDATE_CARD_USER_ID = "update CardUniqueId set UserId_FK=? where Id=?";
public const string SEARCH_USER_LIST = "SELECT * FROM[UserIdentity] where(FirstName Like ? OR LastName Like ?)";
}
}