You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
2.0 KiB
63 lines
2.0 KiB
2 years ago
|
using BBWY.Client.Models;
|
||
|
using BBWY.Client.Models.APIModel.Response.PackTask;
|
||
|
using BBWY.Common.Http;
|
||
|
using BBWY.Common.Models;
|
||
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using System.Net.Http;
|
||
|
using System.Text;
|
||
|
|
||
|
namespace BBWY.Client.APIServices.QiKu
|
||
|
{
|
||
|
public class PackTaskAbortService : BaseApiService, IDenpendency
|
||
|
{
|
||
|
public PackTaskAbortService(RestApiService restApiService, GlobalContext globalContext) : base(restApiService, globalContext)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
public ApiResponse<object> AbortPackTask(long TaskId, int TaskExceptionType, string RemarkMsg, TaskState AbortTaskState, string ShelvesNumber, int? FloorNumber)
|
||
|
{
|
||
|
return SendRequest<object>(globalContext.QKApiHost, $"api/PackTaskAbort/AbortPackTask?taskId={TaskId}",
|
||
|
new
|
||
|
{
|
||
|
TaskId,
|
||
|
TaskExceptionType,
|
||
|
RemarkMsg,
|
||
|
UserName = globalContext.User.Name,
|
||
|
AbortTaskState,
|
||
|
ShelvesNumber,
|
||
|
FloorNumber
|
||
|
}
|
||
|
, null, HttpMethod.Post);
|
||
|
}
|
||
|
|
||
|
public ApiResponse<object> DisposedPackTask(long TaskId)
|
||
|
{
|
||
|
return SendRequest<object>(globalContext.QKApiHost, $"api/PackTaskAbort/DisposedPackTask?taskId={TaskId}",
|
||
|
new {
|
||
|
TaskId,
|
||
|
UserName = globalContext.User.Name
|
||
|
|
||
|
}
|
||
|
, null, HttpMethod.Post);
|
||
|
}
|
||
|
|
||
|
public ApiResponse<object> UpdateAbortPackTask(long TaskId, TaskState TaskState, string ShelvesNumber,int? FloorNumber)
|
||
|
{
|
||
|
return SendRequest<object>(globalContext.QKApiHost, $"api/PackTaskAbort/UpdateAbortPackTask",
|
||
|
new
|
||
|
{
|
||
|
TaskId,
|
||
|
TaskState,
|
||
|
ShelvesNumber,
|
||
|
FloorNumber,
|
||
|
UserName = globalContext.User.Name
|
||
|
|
||
|
}
|
||
|
, null, HttpMethod.Post);
|
||
|
}
|
||
|
}
|
||
|
}
|