public async Task UpdateTimePrinted([FromBody] LabelRepository.TaskPrintItemWithTimePrintedDateTime input) { await CheckPermission(); var sqlR = new LabelRepository(); await sqlR.UpdateTimePrinted(input); sqlR.Dispose(); }
public async Task DeleteTaskPrintItem([FromBody] TaskPrint input) { await CheckPermission(); var sqlR = new LabelRepository(); await sqlR.DeleteTaskPrintItem(input.Id); sqlR.Dispose(); }
public async Task <JsonResult> GetSelectedLabelsByTaskPrintId([FromBody] TaskPrintSelectLabels req) { await CheckPermission(); var sqlR = new LabelRepository(); var result = await sqlR.GetTaskSelectedItemsByTaskPrintsIdUi(req.Id, req.IsSelectedAll, req.SelectedRows); sqlR.Dispose(); return(Json(result)); }
public async Task <JsonResult> GetAllLabelsByTaskPrintId(int taskPrintId, int skip, int limit) { await CheckPermission(); var sqlR = new LabelRepository(); var result = await sqlR.GetTaskPrintItemsByTaskPrintsIdUi(taskPrintId, skip, limit); sqlR.Dispose(); return(Json(result)); }
public async Task <JsonResult> GetTaskPrints(int skip, int limit, string filter) { await CheckPermission(); var sqlR = new LabelRepository(); var result = await sqlR.GetTaskPrints(skip, limit, filter); sqlR.Dispose(); return(Json(result)); }
public async Task <JsonResult> GetPrintTaskByIdGetPrintTaskById(int taskPrintId) { await CheckPermission(); var sqlR = new LabelRepository(); var result = await sqlR.GetPrintTaskById(taskPrintId); sqlR.Dispose(); return(Json(result)); }
public async Task <JsonResult> AddLabelWithTaskPtintsItem([FromBody] LabelRepository.LabelWithTaskPrintId input) { var user = await CheckPermission(); var sqlR = new LabelRepository(); var id = await sqlR.AddLabelWithTaskPtintsItem(input, user); sqlR.Dispose(); return(Json(new { id = id })); }
public async Task <JsonResult> GetAllTemplateLabels() { await CheckPermission(); var sqlR = new LabelRepository(); var result = await sqlR.GetAllTemplateLabels(); sqlR.Dispose(); return(Json(result)); }
public async Task <JsonResult> AddOrUpdateTaskPrints([FromBody] TaskPrint input) { var user = await CheckPermission(); input.User = user; var sqlr = new LabelRepository(); var id = await sqlr.AddOrUpdateTaskPrints(input); sqlr.Dispose(); return(Json(new { id = id })); }