Exemplo n.º 1
0
        public async Task UpdateTimePrinted([FromBody] LabelRepository.TaskPrintItemWithTimePrintedDateTime input)
        {
            await CheckPermission();

            var sqlR = new LabelRepository();
            await sqlR.UpdateTimePrinted(input);

            sqlR.Dispose();
        }
Exemplo n.º 2
0
        public async Task DeleteTaskPrintItem([FromBody] TaskPrint input)
        {
            await CheckPermission();

            var sqlR = new LabelRepository();
            await sqlR.DeleteTaskPrintItem(input.Id);

            sqlR.Dispose();
        }
Exemplo n.º 3
0
        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));
        }
Exemplo n.º 4
0
        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));
        }
Exemplo n.º 5
0
        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));
        }
Exemplo n.º 6
0
        public async Task <JsonResult> GetPrintTaskByIdGetPrintTaskById(int taskPrintId)
        {
            await CheckPermission();

            var sqlR   = new LabelRepository();
            var result = await sqlR.GetPrintTaskById(taskPrintId);

            sqlR.Dispose();
            return(Json(result));
        }
Exemplo n.º 7
0
        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 }));
        }
Exemplo n.º 8
0
        public async Task <JsonResult> GetAllTemplateLabels()
        {
            await CheckPermission();

            var sqlR   = new LabelRepository();
            var result = await sqlR.GetAllTemplateLabels();

            sqlR.Dispose();
            return(Json(result));
        }
Exemplo n.º 9
0
        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 }));
        }