| | |
| | | if (config.url.includes('http://') || config.url.includes('https://')) { |
| | | config.baseURL = ''; |
| | | } else { |
| | | config.baseURL = baseUrl; |
| | | uni.getStorage({ |
| | | key: 'storage_key_ipAddress', |
| | | success: (res) => { |
| | | debugger; |
| | | console.log(res.data.WCSIP); |
| | | config.baseURL = res.data.WCSIP; |
| | | }, |
| | | fail: (err) => { |
| | | console.log("æ²¡ææ¾å°åå¨çIPå°å,使ç¨é»è®¤BaseURL") |
| | | config.baseURL = baseUrl; |
| | | }, |
| | | }); |
| | | } |
| | | |
| | | config.header.Token = 'xxxxxx'; |
| | |
| | | "enablePullDownRefresh": false |
| | | } |
| | | |
| | | }, |
| | | { |
| | | "path" : "pages/SetAddress/SetAddress", |
| | | "style" : |
| | | { |
| | | "navigationBarTitleText" : "设置å°å" |
| | | } |
| | | } |
| | | ], |
| | | "globalStyle": { |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <view class="example"> |
| | | <u-form :model="valiFormData" ref="uForm" label-width="180" label-align="right"> |
| | | <u-form-item label="WCSIP:" prop="WCSIP"> |
| | | <u-input v-model="valiFormData.WCSIP" /> |
| | | </u-form-item> |
| | | <u-form-item label="åæºæ£æIP:" prop="CZZJip"> |
| | | <u-input v-model="valiFormData.CZZJip" /> |
| | | </u-form-item> |
| | | <u-form-item label="åæºè´æIP:" prop="CZFJiP"> |
| | | <u-input v-model="valiFormData.CZFJiP" /> |
| | | </u-form-item> |
| | | </u-form> |
| | | <u-button @click="submit" type="success">æäº¤</u-button> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | data() { |
| | | return { |
| | | // æ ¡éªè¡¨åæ°æ® |
| | | valiFormData: {}, |
| | | rules: { |
| | | WCSIP: [{ |
| | | required: true, |
| | | message: '请è¾å
¥WCSIP', |
| | | // å¯ä»¥å个æè
åæ¶å两个触åéªè¯æ¹å¼ |
| | | trigger: ['change', 'blur'], |
| | | }, { |
| | | // èªå®ä¹URLæ ¡éªå½æ° |
| | | validator: (rule, value, callback) => { |
| | | // ç®åçURLæ£å表达å¼ï¼å¯æ ¹æ®éæ±è°æ´ |
| | | const urlPattern = /^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/; |
| | | if (value && !urlPattern.test(value)) { |
| | | callback(new Error('请è¾å
¥ææçURLå°å')); |
| | | } else { |
| | | callback(); |
| | | } |
| | | }, |
| | | trigger: ['change', 'blur'] |
| | | }], |
| | | CZZJip: [{ |
| | | required: true, |
| | | message: '请è¾å
¥åæºæ£æIP', |
| | | // å¯ä»¥å个æè
åæ¶å两个触åéªè¯æ¹å¼ |
| | | trigger: ['change', 'blur'], |
| | | }, { |
| | | // èªå®ä¹URLæ ¡éªå½æ° |
| | | validator: (rule, value, callback) => { |
| | | // ç®åçURLæ£å表达å¼ï¼å¯æ ¹æ®éæ±è°æ´ |
| | | const urlPattern = /^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/; |
| | | if (value && !urlPattern.test(value)) { |
| | | callback(new Error('请è¾å
¥ææçURLå°å')); |
| | | } else { |
| | | callback(); |
| | | } |
| | | }, |
| | | trigger: ['change', 'blur'] |
| | | }], |
| | | CZFJiP: [{ |
| | | required: true, |
| | | message: '请è¾å
¥åæºè´æIP', |
| | | // å¯ä»¥å个æè
åæ¶å两个触åéªè¯æ¹å¼ |
| | | trigger: ['change', 'blur'], |
| | | }, { |
| | | // èªå®ä¹URLæ ¡éªå½æ° |
| | | validator: (rule, value, callback) => { |
| | | // ç®åçURLæ£å表达å¼ï¼å¯æ ¹æ®éæ±è°æ´ |
| | | const urlPattern = /^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/; |
| | | if (value && !urlPattern.test(value)) { |
| | | callback(new Error('请è¾å
¥ææçURLå°å')); |
| | | } else { |
| | | callback(); |
| | | } |
| | | }, |
| | | trigger: ['change', 'blur'] |
| | | }] |
| | | } |
| | | }; |
| | | }, |
| | | methods: { |
| | | submit() { |
| | | this.$refs.uForm.validate().then(res => { |
| | | const ipAddress = { |
| | | WCSIP: this.valiFormData.WCSIP, |
| | | CZZJip: this.valiFormData.CZZJip, |
| | | CZFJiP: this.valiFormData.CZFJiP, |
| | | } |
| | | uni.setStorage({ |
| | | key: 'storage_key_ipAddress', |
| | | data: ipAddress, |
| | | success: (res) => { |
| | | this.$t.message.toast('ä¿åæå'); |
| | | uni.switchTab({ |
| | | url: '/pages/index/index' |
| | | }) |
| | | } |
| | | }); |
| | | }).catch(errors => { |
| | | console.log('æ ¡éªå¤±è´¥', errors) |
| | | }) |
| | | }, |
| | | setModel() { |
| | | uni.getStorage({ |
| | | key: 'storage_key_ipAddress', |
| | | success: (res) => { |
| | | console.log(res.data.WCSIP); |
| | | this.valiFormData.WCSIP = res.data.WCSIP |
| | | this.valiFormData.CZZJip = res.data.CZZJip |
| | | this.valiFormData.CZFJiP = res.data.CZFJiP |
| | | this.valiFormData = res.data |
| | | }, |
| | | fail: (err) => { |
| | | console.log("æ²¡ææ¾å°åå¨çIPå°å,è¯·éæ°è¾å
¥") |
| | | }, |
| | | }); |
| | | } |
| | | }, |
| | | // å¿
é¡»è¦å¨onReadyçå½å¨æï¼å 为onLoadçå½å¨æç»ä»¶å¯è½å°æªåå»ºå®æ¯ |
| | | onReady() { |
| | | this.$refs.uForm.setRules(this.rules); |
| | | this.setModel(); |
| | | }, |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss"> |
| | | .example { |
| | | padding: 15px; |
| | | background-color: #fff; |
| | | } |
| | | </style> |
| | |
| | | <view class="mine"> |
| | | <view class="tools"> |
| | | <uni-icons type="scan" size="48rpx" color="#292C39" @click="doScan"></uni-icons> |
| | | <uni-icons type="gear-filled" size="48rpx" color="#292C39"></uni-icons> |
| | | <uni-icons type="gear-filled" size="48rpx" color="#292C39" @click="goSetAddress"></uni-icons> |
| | | </view> |
| | | <view class="header"> |
| | | <view class="header-user"> |
| | |
| | | } |
| | | }) |
| | | } |
| | | |
| | | //跳转å°SetAddressé¡µé¢ |
| | | , |
| | | goSetAddress() { |
| | | this.$u.route('/pages/SetAddress/SetAddress'); |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | |
| | | OrderNo: orderNo, |
| | | Number: availableQuantity > 4 ? 4 : availableQuantity, |
| | | InputValue: inputValue, |
| | | TaskType: "æ£æ" |
| | | // ...å
¶ä»éè¦ä¼ éçåæ° |
| | | }; |
| | | this.$u.post('/api/PDA/AddCZTask', formDataParam).then(res => { |
| | |
| | | } |
| | | }, |
| | | submit(cb) { |
| | | this.$t.message.loading(); |
| | | let formDataParam = { |
| | | current: this.current, |
| | | size: this.size |
| | | }; |
| | | // 使ç¨åæºå®æ´æ¥å£ |
| | | this.$u.post('/api/PDA/AGVPage', null).then(res => { |
| | | console.log(res); |
| | | this.$t.message.closeLoading(); |
| | | cb && cb(); |
| | | if (cb != null) this.listData = []; |
| | | this.listData = [...this.listData, ...res.data]; |
| | | console.log(this.listData); |
| | | }).catch((err) => { |
| | | this.$t.message.toast(err.message); |
| | | uni.getStorage({ |
| | | key: 'storage_key_ipAddress', |
| | | success: (res) => { |
| | | this.$t.message.loading(); |
| | | let formDataParam = { |
| | | current: this.current, |
| | | size: this.size |
| | | }; |
| | | // 使ç¨åæºå®æ´æ¥å£ |
| | | this.$u.post(res.data.CZFJiP, null).then(res => { |
| | | console.log(res); |
| | | this.$t.message.closeLoading(); |
| | | cb && cb(); |
| | | if (cb != null) this.listData = []; |
| | | this.listData = [...this.listData, ...res.data]; |
| | | console.log(this.listData); |
| | | }).catch((err) => { |
| | | this.$t.message.toast(err.message); |
| | | }); |
| | | }, |
| | | fail: (err) => { |
| | | this.$t.message.toast('请å
设置IPå°å'); |
| | | uni.navigateTo({ |
| | | url: '/pages/SetAddress/SetAddress', |
| | | }); |
| | | }, |
| | | }); |
| | | |
| | | }, |
| | | clickLoadMore(e) { |
| | | this.status = 'loading'; |
| | |
| | | OrderNo: orderNo, |
| | | Number: availableQuantity > 4 ? 4 : availableQuantity, |
| | | InputValue: inputValue, |
| | | TaskType: "è´æ" |
| | | // ...å
¶ä»éè¦ä¼ éçåæ° |
| | | }; |
| | | |
| | | |
| | | // 使ç¨åæºå®æ´æ¥å£ |
| | | this.$u.post('/api/PDA/insertTask', formDataParam).then(res => { |
| | | if (res.status) { |
| | |
| | | /// </summary> |
| | | public string TaskType { get; set; } |
| | | } |
| | | } |
| | | |
| | | public class CZTaskFinshDto |
| | | { |
| | | /// <summary> |
| | | /// ä»»å¡ID |
| | | /// </summary> |
| | | public string TaskId { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 产ååå· |
| | | /// </summary> |
| | | public string ProductCode { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å·¥åå· |
| | | /// </summary> |
| | | public string OrderNo { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ°é |
| | | /// </summary> |
| | | public int FinishNum { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 嫿æºå° |
| | | /// </summary> |
| | | public string Tags { get; set; } |
| | | } |
| | | } |
| | |
| | | public interface ITaskCZService : IService<DtCZTask> |
| | | { |
| | | public Task<WebResponseContent> AddTaskCZAsync(CZTaskDto dto); |
| | | |
| | | |
| | | /// <summary> |
| | | /// å®æä»»å¡ |
| | | /// </summary> |
| | | /// <param name="dto"></param> |
| | | /// <returns></returns> |
| | | public Task<WebResponseContent> FinishTask(CZTaskFinshDto dto); |
| | | } |
| | | } |
| | |
| | | /// <param name="taskNum">ä»»å¡å·</param> |
| | | /// <returns>è¿åå¤çç»æ</returns> |
| | | WebResponseContent RollbackTaskStatusToLast(int taskNum); |
| | | |
| | | /// <summary> |
| | | /// è·åä»»å¡å· |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public int GetTaskNum(); |
| | | } |
| | | } |
| | |
| | | } |
| | | |
| | | [HttpPost, Route("AddCZTask"), AllowAnonymous] |
| | | public WebResponseContent AddCZTask([FromBody] CZTaskDto czTaskDto) |
| | | public Task<WebResponseContent> AddCZTask([FromBody] CZTaskDto czTaskDto) |
| | | { |
| | | return WebResponseContent.Instance.OK(); |
| | | return _taskCZService.AddTaskCZAsync(czTaskDto); |
| | | } |
| | | } |
| | | } |
| | |
| | | using WIDESEAWCS_DTO.TaskInfo; |
| | | using WIDESEAWCS_ITaskInfoService; |
| | | using WIDESEAWCS_Model.Models; |
| | | using WIDESEAWCS_TaskInfoService; |
| | | |
| | | namespace WIDESEAWCS_WCSServer.Controllers.Task |
| | | { |
| | |
| | | public class TaskController : ApiBaseController<ITaskService, Dt_Task> |
| | | { |
| | | private readonly IHttpContextAccessor _httpContextAccessor; |
| | | public TaskController(ITaskService service, IHttpContextAccessor httpContextAccessor) : base(service) |
| | | private readonly ITaskCZService _taskInfoService; |
| | | public TaskController(ITaskService service, IHttpContextAccessor httpContextAccessor, ITaskCZService taskInfoService) : base(service) |
| | | { |
| | | _httpContextAccessor = httpContextAccessor; |
| | | _taskInfoService = taskInfoService; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | /// <param name="taskDTOs"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("ReceiveTask"), AllowAnonymous] |
| | | public WebResponseContent ReceiveWMSTask([FromBody] List<WMSTaskDTO> taskDTOs) |
| | | { |
| | |
| | | { |
| | | return Service.RollbackTaskStatusToLast(taskNum); |
| | | } |
| | | |
| | | public Task<WebResponseContent> FinishTask(CZTaskFinshDto taskFinshDto) |
| | | { |
| | | return _taskInfoService.FinishTask(taskFinshDto); |
| | | } |
| | | } |
| | | } |
| | |
| | | #region << ç æ¬ 注 é >> |
| | | |
| | | /*---------------------------------------------------------------- |
| | | * å½å空é´ï¼WIDESEAWCS_TaskInfoService |
| | | * å建è
ï¼è¡ç«¥åº |
| | |
| | | * ä¿®æ¹æ¶é´ï¼ |
| | | * çæ¬ï¼V1.0.1 |
| | | * ä¿®æ¹è¯´æï¼ |
| | | * |
| | | * |
| | | *----------------------------------------------------------------*/ |
| | | |
| | | #endregion << ç æ¬ 注 é >> |
| | | |
| | | using AutoMapper; |
| | | using SqlSugar; |
| | | using System.Diagnostics.CodeAnalysis; |
| | | using WIDESEAWCS_Common.TaskEnum; |
| | | using WIDESEAWCS_Core; |
| | | using WIDESEAWCS_Core.BaseServices; |
| | |
| | | using WIDESEAWCS_ITaskInfoRepository; |
| | | using WIDESEAWCS_ITaskInfoService; |
| | | using WIDESEAWCS_Model.Models; |
| | | using WIDESEAWCS_QuartzJob.Models; |
| | | using WIDESEAWCS_QuartzJob.Service; |
| | | |
| | | namespace WIDESEAWCS_TaskInfoService |
| | | { |
| | |
| | | } |
| | | return Task.FromResult(response); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// å®æä»»å¡ |
| | | /// </summary> |
| | | /// <param name="dto"></param> |
| | | /// <returns></returns> |
| | | public Task<WebResponseContent> FinishTask(CZTaskFinshDto dto) |
| | | { |
| | | WebResponseContent response = new WebResponseContent(); |
| | | try |
| | | { |
| | | var czTask = BaseDal.QueryFirst(x => x.TaskTaskID == dto.TaskId); |
| | | if (czTask == null) |
| | | { |
| | | response.Error("ä»»å¡ä¸åå¨ï¼"); |
| | | return Task.FromResult(response); |
| | | } |
| | | if (dto.Tags.Contains("æ£æ")) |
| | | { |
| | | czTask.TaskZJFinishNumber += 1; |
| | | } |
| | | else |
| | | { |
| | | czTask.TaskFJFinishNumber += 1; |
| | | } |
| | | if (czTask.TaskZJFinishNumber == czTask.TaskNumber || czTask.TaskFJFinishNumber == czTask.TaskNumber) |
| | | { |
| | | czTask.TaskStatus = TaskInStatusEnum.InFinish.ToString(); |
| | | czTask.TaskEndDate = DateTime.Now; |
| | | } |
| | | else |
| | | { |
| | | czTask.TaskStatus = TaskInStatusEnum.Line_InExecuting.ToString(); |
| | | } |
| | | var isTrue = BaseDal.UpdateData(czTask); |
| | | if (isTrue) |
| | | { |
| | | response.OK("ä»»å¡å®ææåï¼"); |
| | | } |
| | | else |
| | | { |
| | | response.Error("ä»»å¡å®æå¤±è´¥ï¼"); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | response.Error(ex.Message); |
| | | } |
| | | return Task.FromResult(response); |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | } |
| | | return content; |
| | | } |
| | | |
| | | private readonly object _lockObj = new object(); |
| | | /// <summary> |
| | | /// è·åä»»å¡å· |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public int GetTaskNum() |
| | | { |
| | | int taskNum = 0; |
| | | lock (_lockObj) |
| | | { |
| | | taskNum = Db.Ado.SqlQuerySingle<int>("select next value for dbo.GetTaskNum"); |
| | | } |
| | | return taskNum; |
| | | } |
| | | } |
| | | } |
| | |
| | | using System.Reflection; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEAWCS_Common.TaskEnum; |
| | | using WIDESEAWCS_Core; |
| | | using WIDESEAWCS_Core.Helper; |
| | | using WIDESEAWCS_ITaskInfoRepository; |
| | | using WIDESEAWCS_ITaskInfoService; |
| | | using WIDESEAWCS_Model.Models; |
| | | using WIDESEAWCS_QuartzJob; |
| | |
| | | public class CommonConveyorLineJob : JobBase, IJob, IDisposable |
| | | { |
| | | private readonly ITaskService _taskService; |
| | | private readonly ITaskRepository _taskRepository; |
| | | private readonly ITaskCZRepository _taskCZRepository; |
| | | private readonly ITaskExecuteDetailService _taskExecuteDetailService; |
| | | private readonly IRouterService _routerService; |
| | | private readonly IMapper _mapper; |
| | | |
| | | public CommonConveyorLineJob(ITaskService taskService, ITaskExecuteDetailService taskExecuteDetailService, IRouterService routerService, IMapper mapper) |
| | | public CommonConveyorLineJob(ITaskService taskService, ITaskExecuteDetailService taskExecuteDetailService, IRouterService routerService, IMapper mapper, ITaskRepository taskRepository, ITaskCZRepository taskCZRepository) |
| | | { |
| | | _taskService = taskService; |
| | | _taskExecuteDetailService = taskExecuteDetailService; |
| | | _routerService = routerService; |
| | | _mapper = mapper; |
| | | _taskRepository = taskRepository; |
| | | _taskCZRepository = taskCZRepository; |
| | | } |
| | | |
| | | public Task Execute(IJobExecutionContext context) |
| | | { |
| | | //Console.Out.WriteLine(DateTime.Now); |
| | | try |
| | | { |
| | | // ä»ä¸ä¸æä¸è·å JobParams 并转æ¢ä¸º CommonConveyorLine ç±»å |
| | | CommonConveyorLine conveyorLine = (CommonConveyorLine)context.JobDetail.JobDataMap.Get("JobParams"); |
| | | if (conveyorLine != null) |
| | | if (conveyorLine == null) |
| | | { |
| | | short[] values = conveyorLine.Communicator.Read<short>("DB2.0", 20); |
| | | |
| | | //bool result = conveyorLine.Communicator.Write("DB1.0", "AAABBB"); |
| | | //string testVal = conveyorLine.Communicator.Read<string>("DB1.0"); |
| | | |
| | | List<string> childDeviceCodes = _routerService.QueryAllPositions(conveyorLine.DeviceCode); |
| | | List<Task> tasks = new List<Task>(); |
| | | foreach (string childDeviceCode in childDeviceCodes) |
| | | { |
| | | //Task task = Task.Run(() => |
| | | //{ |
| | | ConveyorLineTaskCommand command = conveyorLine.ReadCustomer<ConveyorLineTaskCommand>(childDeviceCode); |
| | | if (command != null) |
| | | { |
| | | DeviceProtocolDetailDTO? deviceProtocolDetail = conveyorLine.DeviceProtocolDetailDTOs.FirstOrDefault(x => x.ProtocalDetailValue == command.InteractiveSignal.ToString() && x.DeviceProParamName == nameof(ConveyorLineTaskCommand.InteractiveSignal)); |
| | | if (deviceProtocolDetail != null) |
| | | { |
| | | MethodInfo? method = GetType().GetMethod(deviceProtocolDetail.ProtocolDetailType); |
| | | if (method != null) |
| | | { |
| | | method.Invoke(this, new object[] { conveyorLine, command, childDeviceCode }); |
| | | } |
| | | else |
| | | { |
| | | //todo æªæ¾å°æ¹æ³æ¶ |
| | | } |
| | | } |
| | | } |
| | | //}); |
| | | //tasks.Add(task); |
| | | } |
| | | |
| | | Task.WaitAll(tasks.ToArray()); |
| | | throw new Exception("JobParams ä¸å
å« CommonConveyorLine ç±»ååæ°"); |
| | | } |
| | | |
| | | // å®ä¹çº¿ä½å®çå
¥åºè¯·æ±çå°ååä»»å¡ç±»å |
| | | var requests = new Dictionary<string, string> |
| | | { |
| | | { "DB1002.293.0", "ZJXL-WLX002" }, |
| | | { "DB1002.1493.0", "FJXL-WLX002" } |
| | | }; |
| | | |
| | | foreach (var request in requests) |
| | | { |
| | | var isDownRequest = conveyorLine.Communicator.Read<bool>(request.Key); |
| | | if (!isDownRequest) |
| | | { |
| | | continue; |
| | | } |
| | | |
| | | string fromAdd = request.Value; |
| | | string taskType = request.Value.Contains("ZJXL") ? "æ£æ" : "è´æ"; |
| | | |
| | | // æ¥è¯¢æ¯å¦åå¨å·²çæçæ°ä»»å¡ |
| | | var task = _taskRepository.QueryFirst(x => x.SourceAddress == fromAdd && x.TaskState == (int)TaskInStatusEnum.InNew); |
| | | if (task != null) |
| | | { |
| | | ConsoleHelper.WriteInfoLine($"{nameof(CommonConveyorLineJob)}: {taskType}ä¸çº¿è¯·æ±å
¥åº,ä»»å¡å·²çæåå¨ï¼ç¨åéè¯......"); |
| | | continue; |
| | | } |
| | | |
| | | // æ¥è¯¢ä»»å¡ç±»å对åºçczTask |
| | | DtCZTask czTask = _taskCZRepository.QueryFirst(x => x.TaskType == taskType); |
| | | if (czTask == null) |
| | | { |
| | | ConsoleHelper.WriteInfoLine($"{nameof(CommonConveyorLineJob)}: {taskType}ä¸çº¿è¯·æ±å
¥åº,{taskType}ä»»å¡ä¸åå¨ï¼ç¨åéè¯......"); |
| | | continue; |
| | | } |
| | | |
| | | // å建æ°çä»»å¡å¹¶æ·»å å°ä»»å¡ä»åº |
| | | task = new Dt_Task() |
| | | { |
| | | TaskNum = _taskService.GetTaskNum(), |
| | | CreateDate = DateTime.Now, |
| | | Creater = "system", |
| | | CurrentAddress = fromAdd, |
| | | SourceAddress = fromAdd, |
| | | TaskState = (int)TaskInStatusEnum.InNew, |
| | | TaskType = (int)TaskInboundTypeEnum.Inbound, |
| | | Grade = 1, |
| | | PalletCode = czTask.TaskProductCode, |
| | | TargetAddress = czTask.TaskEndAddress, |
| | | Roadway = $"{taskType}AGV", |
| | | WMSId = czTask.Id, |
| | | Remark = czTask.TaskOrderNo |
| | | }; |
| | | _taskRepository.AddData(task); |
| | | ConsoleHelper.WriteInfoLine($"{nameof(CommonConveyorLineJob)}: {taskType}ä¸çº¿è¯·æ±å
¥åº,ä»»å¡å·²çæï¼çå¾
æ§è¡......"); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | //Console.Out.WriteLine(nameof(CommonConveyorLineJob) + ":" + ex.ToString()); |
| | | // è®°å½å¼å¸¸ä¿¡æ¯ |
| | | // Console.Out.WriteLine(nameof(CommonConveyorLineJob) + ":" + ex.ToString()); |
| | | ConsoleHelper.WriteErrorLine($"{nameof(CommonConveyorLineJob)}: åçå¼å¸¸ - {ex.Message}"); |
| | | } |
| | | finally |
| | | { |
| | | // åè°è¯ä¿¡æ¯ |
| | | WriteDebug("CommonConveyorLineJob", "test"); |
| | | //Console.Out.WriteLine(DateTime.Now); |
| | | // Console.Out.WriteLine(DateTime.Now); |
| | | } |
| | | |
| | | return Task.CompletedTask; |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// è¾é线请æ±å
¥åº |
| | | /// </summary> |