public BulkPickPage(INavigationService navigationService, GetNextTaskModel modelSearch) { InitializeComponent(); _navigationService = navigationService; this.BindingContext = new BulkPickViewModel(navigationService, modelSearch); }
public static Result CompleteFinePickTask(GetNextTaskModel taskModel, int userId, string status, int execTaskId, bool CycleStores) { if (CycleStores) { return(Connect(taskModel, MethodType.Post, $"{Server}finepick/next/cycle/{userId}/{status}/{execTaskId}")); } else { return(Connect(taskModel, MethodType.Post, $"{Server}finepick/next/{userId}/{status}/{execTaskId}")); } }
public FinePickViewModel(INavigationService navigationService, FinePickModelSearch modelSearch, GetNextTaskModel task) { _navigationService = navigationService; DataContext = task; _modelSearch = modelSearch; pickDataStore = new PickDataStore(); NextCommand = new Command(async() => await NextTask()); SkipCommand = new Command(async() => await SkipTask()); BackCommand = new Command(async() => await Back()); HoldCommand = new Command(async() => await HoldTask()); ContextData(); }
//PickDataStore pickDataStore; public BulkPickViewModel(INavigationService navigationService, GetNextTaskModel bulkTask) { _navigationService = navigationService; CurrentTask = bulkTask; AppSession.ExecutingTaskId = CurrentTask.TaskDetailID; AppSession.LastRoleId = CurrentTask.LastRoleID; AppSession.CurrentWaveId = CurrentTask.WaveID; AppSession.IsHireWave = CurrentTask.IsHire; BackCommand = new Command(() => Back(true)); NextCommand = new Command(() => NextTask()); //HoldCommand = new Command(async () => await HoldTask()); //SkipCommand = new Command(async () => await SkipTask()); }
public FinePickPage(INavigationService navigationService, FinePickModelSearch modelSearch, GetNextTaskModel task) { InitializeComponent(); this.BindingContext = new FinePickViewModel(navigationService, modelSearch, task); }
public static Result ExitCurrentTask(GetNextTaskModel taskModel) { return(Connect(taskModel, MethodType.Post, $"{Server}wavepick/exittask")); }
public static Result CompleteBulkPickTask(GetNextTaskModel taskModel, int userId, string status, int execTaskId) { return(Connect(taskModel, MethodType.Post, $"{Server}bulkpick/next/{userId}/{status}/{execTaskId}")); }