已重命名1个文件
已删除8个文件
已修改17个文件
| | |
| | | { |
| | | public interface IStationPackDetailRepository : IRepository<Dt_StationPackDetail> |
| | | { |
| | | <<<<<<< HEAD |
| | | ======= |
| | | |
| | | >>>>>>> main |
| | | } |
| | | } |
| | |
| | | { |
| | | public interface IStationPackDetailService : IService<Dt_StationPackDetail> |
| | | { |
| | | <<<<<<< HEAD |
| | | ======= |
| | | |
| | | >>>>>>> main |
| | | } |
| | | } |
| | |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | <<<<<<< HEAD |
| | | ======= |
| | | using WIDESEAWCS_Core; |
| | | >>>>>>> main |
| | | using WIDESEAWCS_Core.BaseServices; |
| | | using WIDESEAWCS_Model.Models; |
| | | |
| | |
| | | { |
| | | public interface IStationPackInfoService : IService<Dt_StationPackInfo> |
| | | { |
| | | <<<<<<< HEAD |
| | | ======= |
| | | /// <summary> |
| | | /// æå¨æ¸
空ç åæ§è¡å·¥ä½æ°æ® |
| | | /// </summary> |
| | | /// <param name="taskNum"></param> |
| | | /// <returns></returns> |
| | | WebResponseContent ManualClearPalletStationData(string StationCode); |
| | | >>>>>>> main |
| | | } |
| | | } |
| | |
| | | using System.Threading.Tasks; |
| | | using WIDESEAWCS_Core; |
| | | using WIDESEAWCS_Core.BaseServices; |
| | | <<<<<<< HEAD |
| | | ======= |
| | | using WIDESEAWCS_DTO.TaskInfo; |
| | | >>>>>>> main |
| | | using WIDESEAWCS_Model.Models; |
| | | |
| | | namespace WIDESEAWCS_ITaskInfoService |
| | |
| | | WebResponseContent TaskCompleted(int taskNum=0,Dt_PackaxisTask? packaxisTask=null); |
| | | //ç åç»æå¹¶ä¸ä¼ ç åå·¥ä½ç åæç»æ°æ® |
| | | WebResponseContent BoxingInBound(string stationCode); |
| | | <<<<<<< HEAD |
| | | ======= |
| | | |
| | | ///// <summary> |
| | | ///// å é¤ç åä»»å¡ |
| | | ///// </summary> |
| | | ///// <param name="packaxisTasks"></param> |
| | | ///// <returns></returns> |
| | | WebResponseContent PickaixsTaskDele(int PackTaskNum); |
| | | |
| | | |
| | | >>>>>>> main |
| | | } |
| | | } |
| | |
| | | /// ä¸»é® |
| | | /// </summary> |
| | | [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主é®")] |
| | | <<<<<<< HEAD |
| | | public int id { get; set; } |
| | | ======= |
| | | public int Id { get; set; } |
| | | >>>>>>> main |
| | | |
| | | /// <summary> |
| | | /// ç åååé¿åº¦ |
| | | /// </summary> |
| | |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = false, ColumnDescription = "ç åååé«åº¦")] |
| | | public int PackHeight { get; set; } |
| | | <<<<<<< HEAD |
| | | ======= |
| | | /// <summary> |
| | | /// 夿³¨ |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "夿³¨")] |
| | | public string Remark { get; set; } |
| | | >>>>>>> main |
| | | } |
| | | } |
| | |
| | | /// ä¸»é® |
| | | /// </summary> |
| | | [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主é®")] |
| | | <<<<<<< HEAD |
| | | public int id { get; set; } |
| | | ======= |
| | | public int Id { get; set; } |
| | | >>>>>>> main |
| | | |
| | | /// <summary> |
| | | /// 设å¤ç¼å· |
| | |
| | | /// ç åæ°é |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, ColumnDescription = "ç åæ°é")] |
| | | <<<<<<< HEAD |
| | | public int PackNum { get; set; } |
| | | ======= |
| | | public int PackNum { get; set; } = 0; |
| | | >>>>>>> main |
| | | |
| | | /// <summary> |
| | | /// Xåæ |
| | |
| | | [SugarColumn(IsNullable = true, ColumnDescription = "Zåæ é´è·")] |
| | | public int AxisZSpacing { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 夿³¨ |
| | | /// </summary> |
| | | <<<<<<< HEAD |
| | | [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "夿³¨")] |
| | | ======= |
| | | [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "夿³¨")] |
| | | >>>>>>> main |
| | | public string Remark { get; set; } |
| | | } |
| | | } |
| | |
| | | public StationPackDetailRepository(IUnitOfWorkManage unitOfWorkManage) : base(unitOfWorkManage) |
| | | { |
| | | } |
| | | <<<<<<< HEAD |
| | | ======= |
| | | |
| | | |
| | | >>>>>>> main |
| | | } |
| | | } |
| | |
| | | using WIDESEAWCS_Model.Models; |
| | | using WIDESEAWCS_Core.Helper; |
| | | using WIDESEAWCS_IPackInfoService; |
| | | <<<<<<< HEAD |
| | | ======= |
| | | using WIDESEAWCS_IBasicInfoRepository; |
| | | |
| | | >>>>>>> main |
| | | |
| | | namespace WIDESEAWCS_PackInfoService |
| | | { |
| | | public class PackaxisService : ServiceBase<Dt_Packaxis, IPackaxisRepository>, IPackaxisService |
| | | { |
| | | <<<<<<< HEAD |
| | | public PackaxisService(IPackaxisRepository BaseDal) : base(BaseDal) |
| | | { |
| | | ======= |
| | | } |
| | | private readonly IPackTypeRepository _packTypeRepository; |
| | | private readonly IStationMangerRepository _stationMangerRepository; |
| | | public PackaxisService(IPackaxisRepository BaseDal, IPackTypeRepository packTypeRepository, IStationMangerRepository stationMangerRepository) : base(BaseDal) |
| | | { |
| | | _packTypeRepository = packTypeRepository; |
| | | _stationMangerRepository = stationMangerRepository; |
| | | >>>>>>> main |
| | | } |
| | | public override WebResponseContent Import(List<IFormFile> files) |
| | | { |
| | |
| | | using (ImportExcelHelper excelHelper = new ImportExcelHelper(fullPath)) |
| | | { |
| | | dtExcel = excelHelper.ExcelToDataTable(); |
| | | <<<<<<< HEAD |
| | | |
| | | ======= |
| | | |
| | | >>>>>>> main |
| | | } |
| | | List<Dt_Packaxis> addAxis = new List<Dt_Packaxis>(); |
| | | List<Dt_Packaxis> updateAxis = new List<Dt_Packaxis>(); |
| | |
| | | string AxisZCount = row["AxisZCount"]?.ToString() ?? string.Empty; |
| | | string AxisZSpacing = row["AxisZSpacing"]?.ToString() ?? string.Empty; |
| | | var axis = BaseDal.QueryFirst(x => x.DeviceCode == DeviceCode && x.StationCode == StationCode && x.PackType == PackType); |
| | | <<<<<<< HEAD |
| | | if(axis == null) |
| | | ======= |
| | | if (axis == null) |
| | | >>>>>>> main |
| | | { |
| | | Dt_Packaxis packaxis = new Dt_Packaxis() |
| | | { |
| | |
| | | |
| | | return content; |
| | | } |
| | | <<<<<<< HEAD |
| | | ======= |
| | | /// <summary> |
| | | /// æ·»å åæ æ°æ® |
| | | /// </summary> |
| | |
| | | return content; |
| | | |
| | | } |
| | | >>>>>>> main |
| | | } |
| | | } |
| | |
| | | Dt_PackType? packType = packTypes.FirstOrDefault(x=>x.PackWidth==item.Width && x.PackLength==item.Length && x.PackHeight==item.Height); |
| | | if (packType == null) throw new Exception($"æªæ¾å°æ¡ç {item.BarCode},{item.Length}*{item.Width}*{item.Height}ç åé
ç½®"); |
| | | Dt_Packinfo packinfo = _mapper.Map<Dt_Packinfo>(item); |
| | | <<<<<<< HEAD |
| | | packinfo.PackType = packType.id; |
| | | ======= |
| | | packinfo.PackType = packType.Id; |
| | | >>>>>>> main |
| | | packinfos.Add(packinfo); |
| | | } |
| | | BaseDal.AddData(packinfos); |
| | |
| | | { |
| | | public StationPackDetailService(IStationPackDetailRepository BaseDal) : base(BaseDal) |
| | | { |
| | | <<<<<<< HEAD |
| | | } |
| | | ======= |
| | | |
| | | } |
| | | |
| | | >>>>>>> main |
| | | } |
| | | } |
| | |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | <<<<<<< HEAD |
| | | using WIDESEAWCS_Core.BaseRepository; |
| | | using WIDESEAWCS_Core; |
| | | using WIDESEAWCS_Core.BaseServices; |
| | |
| | | using WIDESEAWCS_Model.Models; |
| | | using WIDESEAWCS_Core.Helper; |
| | | using WIDESEAWCS_IPackInfoService; |
| | | ======= |
| | | using WIDESEAWCS_Common.Utilities; |
| | | using WIDESEAWCS_Core; |
| | | using WIDESEAWCS_Core.BaseRepository; |
| | |
| | | using WIDESEAWCS_ITaskInfoRepository; |
| | | using WIDESEAWCS_Model.Models; |
| | | using WIDESEAWCS_PackInfoRepository; |
| | | >>>>>>> main |
| | | |
| | | namespace WIDESEAWCS_PackInfoService |
| | | { |
| | | public class StationPackInfoService : ServiceBase<Dt_StationPackInfo, IStationPackInfoRepository>, IStationPackInfoService |
| | | { |
| | | <<<<<<< HEAD |
| | | public StationPackInfoService(IStationPackInfoRepository BaseDal) : base(BaseDal) |
| | | { |
| | | ======= |
| | | } |
| | | private readonly IStationPackDetailRepository _stationPackDetailRepository; |
| | | private readonly IPackinfoRepository _packInfoRepository; |
| | | private readonly IPackaxisTaskRepository _packaxisTaskRepository; |
| | |
| | | WebResponseContent.Instance.Error(e.Message); |
| | | } |
| | | return content; |
| | | >>>>>>> main |
| | | } |
| | | } |
| | | } |
| | |
| | | </PropertyGroup> |
| | | |
| | | <ItemGroup> |
| | | <<<<<<< HEAD |
| | | <ProjectReference Include="..\WIDESEAWCS_IPackInfoService\WIDESEAWCS_IPackInfoService.csproj" /> |
| | | ======= |
| | | <ProjectReference Include="..\WIDESEAWCS_IBasicInfoRepository\WIDESEAWCS_IBasicInfoRepository.csproj" /> |
| | | <ProjectReference Include="..\WIDESEAWCS_IPackInfoService\WIDESEAWCS_IPackInfoService.csproj" /> |
| | | <ProjectReference Include="..\WIDESEAWCS_ITaskInfoRepository\WIDESEAWCS_ITaskInfoRepository.csproj" /> |
| | | >>>>>>> main |
| | | </ItemGroup> |
| | | |
| | | </Project> |
| | |
| | | { |
| | | return Service.TaskCompleted(taskNum); |
| | | } |
| | | <<<<<<< HEAD |
| | | ======= |
| | | |
| | | [HttpPost, Route("PickaixsTaskDele")] |
| | | public WebResponseContent PickaixsTaskDele(int PackTaskNum) |
| | |
| | | |
| | | return Service.PickaixsTaskDele(PackTaskNum); |
| | | } |
| | | >>>>>>> main |
| | | } |
| | | } |
| | |
| | | "MainDB": "DB_WIDESEA", //å½å项ç®ç主åºï¼æå¯¹åºçè¿æ¥å符串çEnabledå¿
须为true |
| | | "DBType": "SqlServer", |
| | | //è¿æ¥å符串 |
| | | //"ConnectionString": "HTI6FB1H05Krd07mNm9yBCNhofW6edA5zLs9TY~MNthRYW3kn0qKbMIsGp~3yyPDF1YZUCPBQx8U0Jfk4PH~ajNFXVIwlH85M3F~v_qKYQ3CeAz3q1mLVDn8O5uWt1~3Ut2V3KRkEwYHvW2oMDN~QIDXPxDgXN0R2oTIhc9dNu7QNaLEknblqmHhjaNSSpERdDVZIgHnMKejU_SL49tralBkZmDNi0hmkbL~837j1NWe37u9fJKmv91QPb~16JsuI9uu0EvNZ06g6PuZfOSAeFH9GMMIZiketdcJG3tHelo=", |
| | | //"ConnectionString": "Data Source=.;Initial Catalog=WIDESEA_WCSLLD;User ID=sa;Password=123456;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", |
| | | <<<<<<< HEAD |
| | | "ConnectionString": "Data Source=.;Initial Catalog=WIDESEA_WCSLLD;User ID=sa;Password=123456;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", |
| | | //"ConnectionString": "Data Source=192.168.35.3;Initial Catalog=WIDESEA_WCSLLD;User ID=sa;Password=Sa123456;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", |
| | | //"ConnectionString": "Data Source=10.30.4.92;Initial Catalog=TESTWCSCP_WCS;User ID=sa;Password=duo123456;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", |
| | | "WMSConnectionStrings": "Data Source=.;Initial Catalog=WIDESEA_WMSLLD;User ID=sa;Password=123456;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", |
| | | ======= |
| | | "ConnectionString": "Data Source=127.0.0.1;Initial Catalog=WIDESEA_WCSLLD;User ID=sa;Password=123456;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", |
| | | //"ConnectionString": "Data Source=192.168.35.3;Initial Catalog=WIDESEA_WCSLLD;User ID=sa;Password=Sa123456;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", |
| | | //"ConnectionString": "Data Source=10.30.4.92;Initial Catalog=TESTWCSCP_WCS;User ID=sa;Password=duo123456;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", |
| | | "WMSConnectionStrings": "Data Source=127.0.0.1;Initial Catalog=WIDESEA_WMSLLD;User ID=sa;Password=123456;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", |
| | | >>>>>>> main |
| | | //"WMSConnectionStrings": "Data Source=.;Initial Catalog=WIDESEA_WMSLLD;User ID=sa;Password=123456;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", |
| | | //"WMSConnectionStrings": "Data Source=10.30.4.92;Initial Catalog=WIDESEAWMS_HUAIAN;User ID=sa;Password=123456;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", |
| | | //è·¨å |
| | | "Cors": { |
| | | "PolicyName": "CorsIpAccess", //çç¥åç§° |
| | |
| | | using WIDESEAWCS_Core.BaseServices; |
| | | using WIDESEAWCS_Core.Enums; |
| | | using WIDESEAWCS_Core.Helper; |
| | | <<<<<<< HEAD |
| | | ======= |
| | | using WIDESEAWCS_DTO.TaskInfo; |
| | | >>>>>>> main |
| | | using WIDESEAWCS_IBasicInfoRepository; |
| | | using WIDESEAWCS_IPackInfoRepository; |
| | | using WIDESEAWCS_ITaskInfoRepository; |
| | |
| | | return WebResponseContent.Instance.Error(ex.Message); |
| | | } |
| | | } |
| | | <<<<<<< HEAD |
| | | ======= |
| | | /// <summary> |
| | | /// å é¤ç åä»»å¡ä¿¡æ¯ |
| | | /// </summary> |
| | |
| | | } |
| | | return content; |
| | | } |
| | | |
| | | |
| | | >>>>>>> main |
| | | } |
| | | public class MDCount |
| | | { |
| | |
| | | else if (item.StationType == StationTypeEnum.StationType_InboundAndOutbound.ObjToInt() && deviceProRead != null) |
| | | {//å
¥åºRGVæ¥é©³ä½äº¤äº |
| | | R_ConveyorLineCPInfo conveyorLineInfoRead = device.Communicator.ReadCustomer<R_ConveyorLineCPInfo>(deviceProRead.DeviceProAddress); |
| | | if (conveyorLineInfoRead != null) |
| | | { |
| | | WriteInfo(item.StationName, $"ç¶æ{conveyorLineInfoRead}"); |
| | | } |
| | | if (conveyorLineInfoRead != null && conveyorLineInfoRead.Command == 4 && conveyorLineInfoRead.TaskNo > 0) |
| | | { |
| | | Dt_Task task = _taskRepository.QueryFirst(x => x.TaskNum == conveyorLineInfoRead.TaskNo && x.CurrentAddress == item.StationCode && _taskService.TaskInboundTypes.Contains(x.TaskType) && x.TaskState == TaskStatusEnum.Line_Execute.ObjToInt() && x.DeviceCode == device.DeviceCode); |
| | |
| | | } |
| | | } |
| | | else if (item.StationType == StationTypeEnum.StationType_StackingPlates.ObjToInt() && item.IsOccupied==StationOccupiedEnum.None.ObjToInt() && deviceProRead != null && deviceProWrite != null) |
| | | {//å çæºå·¥ä½å«æ |
| | | { |
| | | //å çæºå·¥ä½å«æ |
| | | R_ConveyorLineCPInfo conveyorLineInfoRead = device.Communicator.ReadCustomer<R_ConveyorLineCPInfo>(deviceProRead.DeviceProAddress); |
| | | |
| | | if (conveyorLineInfoRead != null && conveyorLineInfoRead.Command == 7 && conveyorLineInfoRead.TaskNo <= 0) |
| | |
| | | try |
| | | { |
| | | bool flag = context.JobDetail.JobDataMap.TryGetValue("JobParams", out object? value); |
| | | bool isUpdate = false; |
| | | if (flag && value != null) |
| | | { |
| | | OtherDevice device = (OtherDevice)value; |
| | |
| | | Thread.Sleep(1000); |
| | | } |
| | | } |
| | | if (conveyorLineInfoRead != null && conveyorLineInfoRead.StatusPV == 2 && conveyorLineInfoRead.Command == 10) |
| | | if (conveyorLineInfoRead != null && conveyorLineInfoRead.StatusPV == 2 && conveyorLineInfoRead.Command == 10 && item.IsOccupied == 1) |
| | | { |
| | | item.IsOccupied = 0; |
| | | isUpdate = true; |
| | | WriteInfo("ç åå·¥ä½ç¶ææ´æ°",$"{item.StationCode}{DateTime.Now}æ´æ°å·¥ä½ç¶æ:{conveyorLineInfoRead.Command}"); |
| | | } |
| | | else |
| | | else if (item.IsOccupied == 0) |
| | | { |
| | | item.IsOccupied = 1; |
| | | isUpdate = true; |
| | | WriteInfo("ç åå·¥ä½ç¶ææ´æ°", $"{item.StationCode}{DateTime.Now}æ´æ°å·¥ä½ç¶æä¸å¯ç¨"); |
| | | } |
| | | } |
| | | |
| | | } |
| | | if (isUpdate) |
| | | { |
| | | _stationMangerRepository.UpdateData(stationMangers); |
| | | } |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | WriteError(nameof(ConveyorLineJob_CPC),ex.Message); |