| | |
| | | using WIDESEAWCS_Core.Enums; |
| | | using WIDESEAWCS_Core.Helper; |
| | | using WIDESEAWCS_DTO.BasicInfo; |
| | | using WIDESEAWCS_DTO.Enum; |
| | | using WIDESEAWCS_DTO.TaskInfo; |
| | | using WIDESEAWCS_IBasicInfoRepository; |
| | | using WIDESEAWCS_IBasicInfoService; |
| | | using WIDESEAWCS_Model.Models; |
| | |
| | | private static bool toggle = false; |
| | | |
| | | private static int lastStaion = 0; |
| | | public int GetOrderDetails(string barcode, List<int> useableStations) |
| | | public int GetOrderDetails(string barcode, List<int> useableStations, out ProductInfoDTO productInfo) |
| | | { |
| | | OrderDetails? orderDetails = BaseDal.QueryData(x => x.Orderdetails_outid == barcode).FirstOrDefault(); |
| | | if (orderDetails != null) |
| | | { |
| | | productInfo = new ProductInfoDTO() |
| | | { |
| | | Code = barcode, |
| | | Height = Convert.ToInt32(orderDetails.Orderdetails_thickness), |
| | | Length = Convert.ToInt32(orderDetails.Orderdetails_length), |
| | | Width = Convert.ToInt32(orderDetails.Orderdetails_width), |
| | | }; |
| | | useableStations = useableStations.OrderByDescending(x => x).ToList(); |
| | | if (orderDetails.Orderdetails_width <= 800 && orderDetails.Orderdetails_width >= 50)//1,2,3 |
| | | { |
| | |
| | | } |
| | | else |
| | | { |
| | | productInfo = new ProductInfoDTO(); |
| | | return -1; |
| | | } |
| | | } |