TaskBookBehavior_63011.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using DbCommon.BusinessCore.BaseCore;
  2. using DbCommon.Enties.DbModels;
  3. using Pms.DataLibrary.Models;
  4. using Pms.DataLibrary.Order;
  5. using Pms.Models;
  6. using ProjectManagementSystem.Common.Config;
  7. using ProjectManagementSystem.Common.Extenions;
  8. using ProjectManagementSystem.Common.Logger;
  9. using ProjectManagementSystem.Common.WebApi;
  10. using ProjectManagementSystem.Common.Models;
  11. using System;
  12. using System.Collections.Generic;
  13. using System.Linq;
  14. using System.Text;
  15. using System.Threading.Tasks;
  16. using ProjectManagementSystem.Common.Core;
  17. namespace ProjectManagementSystem.TaskBookEvent
  18. {
  19. public class TaskBookBehavior_63011 : BaseTaskBookBehaviorV2
  20. {
  21. public TaskBookBehavior_63011() : base(63011, "库位取货上报")
  22. {
  23. }
  24. public override bool TaskBookOperator(TaskData taskDetailInfo, StepData stepInfo)
  25. {
  26. try
  27. {
  28. bool result = CustomerApi.ReportAgvARrrived(taskDetailInfo.TaskID, stepInfo.WareHouseID, "1");
  29. Log(taskDetailInfo, stepInfo, $"库位取货完成上报{result.ToChineseString()}");
  30. return result;
  31. }
  32. catch (Exception ex)
  33. {
  34. LogException(ex);
  35. }
  36. return false;
  37. }
  38. }
  39. }