public SettingsPage() { Trait = new PlatformQuery { Android = x => x.Id("SettingsContentFrame") }; _appThemeDialog = BuildBaseAppQuery().Id("select_dialog_listview"); }
public AjaxReturnInfo Query([FromUri] PlatformQuery query) { var datas = IPlatformManager.QueryPlatform(query); return(new AjaxReturnInfo() { Data = new { List = datas, query.Pagination, } }); }
public ManageTaskListsDialog() { _uniqueEditTextInDialog = x => x.Class("TextInputEditText"); _cancelButton = x => x.Button("Cancel"); _okButton = x => x.Button("Ok"); _updateButton = x => x.Button("Update"); Trait = new PlatformQuery { Android = x => x.Class(MvxListViewClass) }; }
private Expression <Func <Entity.Platform, bool> > CreatCondition(PlatformQuery query) { var condition = LinqExtension.True <Entity.Platform>(); if (!string.IsNullOrEmpty(query.AppId)) { condition.And(a => a.Config.AppId == query.AppId); } if (!string.IsNullOrEmpty(query.Name)) { condition.And(a => a.Name.Contains(query.Name)); } return(condition); }
private IMongoQueryable <Entity.Platform> CreatQueryAble(PlatformQuery query) { var collection = DbProvider.Collection <Entity.Platform>(); var queryAble = collection.AsQueryable().Where(a => 1 == 1); if (!string.IsNullOrEmpty(query.Name)) { queryAble = queryAble.Where(a => a.Name.Contains(query.Name)); } if (!string.IsNullOrEmpty(query.AppId)) { queryAble = queryAble.Where(a => a.Config.AppId == query.AppId); } return(queryAble); }
public TaskMenuOptionsDialog() { _uniqueEditTextInDialog = x => x.Class("TextInputEditText"); _yesButton = x => x.Button("Yes"); _noButton = x => x.Button("No"); _addButton = x => x.Button("Add"); _cancelButton = x => x.Button("Cancel"); _okButton = x => x.Button("Ok"); _closeButton = x => x.Button("Close"); _moveTaskDialogId = BuildBaseAppQuery().Id("MoveTaskListView"); Trait = new PlatformQuery { Android = x => x.Id("TaskMenuOptionsDialogView") }; }
public TasksPage() { _mainFabButton = x => x.Marked("AppFab"); _addTaskListButton = x => x.Id("AddNewTaskListFab"); _addTaskButton = x => x.Id("AddNewTaskFab"); _uniqueEditTextInDialog = x => x.Class("TextInputEditText"); _yesButton = x => x.Button("Yes"); _noButton = x => x.Button("No"); _cancelButton = x => x.Button("Cancel"); _updateButton = x => x.Button("Update"); _taskItemTitleId = x => x.Id("TaskItemTitle"); _taskItemContentId = x => x.Id("TaskItemContent"); _navView = BuildBaseAppQuery().Id("AppNavView"); Trait = new PlatformQuery { Android = _mainFabButton }; }
public NewTaskPage() { _saveChangesButton = x => x.Id("SaveTask"); _discardChangesButton = x => x.Id("DiscardChanges"); _reminderButton = x => x.Button("Add / Edit a reminder"); _completitionDateButton = x => x.Id("CompletitionDateButton"); _moveButton = x => x.Button("Move"); _addSubTaskButton = x => x.Button("Add a subtask"); _cancelButton = x => x.Button("Cancel"); _tasReminderDateDialogButton = x => x.Button("TaskReminderDate"); _okButton = x => x.Button("Ok"); _closeButton = x => x.Button("Close"); _taskTitleEditText = x => x.Id("TaskTitle"); _taskContentEditText = x => x.Id("TaskNotes"); Trait = new PlatformQuery { Android = _discardChangesButton }; }
public List <Platform> QueryPlatform(PlatformQuery query) { if (query == null) { return(new List <Platform>()); } var queryAble = CreatQueryAble(query).OrderByDescending(a => a.CreatTime); query.Pagination.DataCount = queryAble.Count(); if (!query.Pagination.IsPaging) { var allResult = queryAble.ToList(); return(allResult.RobotMap <Entity.Platform, Platform>()); } var entities = queryAble .Skip(query.Pagination.Skip) .Take(query.Pagination.Take) .ToList(); return(entities.RobotMap <Entity.Platform, Platform>()); }
public List <Platform> QueryPlatform(PlatformQuery query) { return(_PlatformAccess.QueryPlatform(query)); }