.gitignore
@@ -868,3 +868,97 @@ /Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/obj/project.assets.json /Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/obj/project.nuget.cache /Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/obj/WIDESEA_StoragIntegrationServices.csproj.nuget.dgspec.json /Code Management/WCS/WIDESEAWCS_Server/.vs/ProjectEvaluation/wideseawcs_server.metadata.v9.bin /Code Management/WCS/WIDESEAWCS_Server/.vs/ProjectEvaluation/wideseawcs_server.projects.v9.bin /Code Management/WCS/WIDESEAWCS_Server/.vs/ProjectEvaluation/wideseawcs_server.strings.v9.bin /Code Management/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/DesignTimeBuild/.dtbcache.v2 /Code Management/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/v17/.futdcache.v2 /Code Management/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/v17/.suo /Code Management/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/v17/DocumentLayout.backup.json /Code Management/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/v17/DocumentLayout.json /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoRepository/obj/Debug/net6.0/WIDESEAWCS_BasicInfoRepository.AssemblyInfo.cs /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoRepository/obj/Debug/net6.0/WIDESEAWCS_BasicInfoRepository.AssemblyInfoInputs.cache /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoRepository/obj/Debug/net6.0/WIDESEAWCS_BasicInfoRepository.csproj.AssemblyReference.cache /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoService/obj/Debug/net6.0/WIDESEAWCS_BasicInfoService.AssemblyInfo.cs /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoService/obj/Debug/net6.0/WIDESEAWCS_BasicInfoService.AssemblyInfoInputs.cache /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoService/obj/Debug/net6.0/WIDESEAWCS_BasicInfoService.csproj.AssemblyReference.cache /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Common/obj/Debug/net6.0/WIDESEAWCS_Common.AssemblyInfo.cs /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Common/obj/Debug/net6.0/WIDESEAWCS_Common.AssemblyInfoInputs.cache /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Communicator/obj/Debug/net6.0/WIDESEAWCS_Communicator.AssemblyInfo.cs /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Communicator/obj/Debug/net6.0/WIDESEAWCS_Communicator.AssemblyInfoInputs.cache /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Core/obj/Debug/net6.0/WIDESEAWCS_Core.AssemblyInfo.cs /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Core/obj/Debug/net6.0/WIDESEAWCS_Core.AssemblyInfoInputs.cache /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_DTO/obj/Debug/net6.0/WIDESEAWCS_DTO.AssemblyInfo.cs /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_DTO/obj/Debug/net6.0/WIDESEAWCS_DTO.AssemblyInfoInputs.cache /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_DTO/obj/Debug/net6.0/WIDESEAWCS_DTO.csproj.AssemblyReference.cache /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_DTO/obj/Debug/net6.0/WIDESEAWCS_DTO.csproj.CoreCompileInputs.cache /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_IBasicInfoRepository/obj/Debug/net6.0/WIDESEAWCS_IBasicInfoRepository.AssemblyInfo.cs /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_IBasicInfoRepository/obj/Debug/net6.0/WIDESEAWCS_IBasicInfoRepository.AssemblyInfoInputs.cache /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_IBasicInfoRepository/obj/Debug/net6.0/WIDESEAWCS_IBasicInfoRepository.csproj.AssemblyReference.cache /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_IBasicInfoService/obj/Debug/net6.0/WIDESEAWCS_IBasicInfoService.AssemblyInfo.cs /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_IBasicInfoService/obj/Debug/net6.0/WIDESEAWCS_IBasicInfoService.AssemblyInfoInputs.cache /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_IBasicInfoService/obj/Debug/net6.0/WIDESEAWCS_IBasicInfoService.csproj.AssemblyReference.cache /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_ISystemRepository/obj/Debug/net6.0/WIDESEAWCS_ISystemRepository.AssemblyInfo.cs /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_ISystemRepository/obj/Debug/net6.0/WIDESEAWCS_ISystemRepository.AssemblyInfoInputs.cache /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_ISystemRepository/obj/Debug/net6.0/WIDESEAWCS_ISystemRepository.csproj.AssemblyReference.cache /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_ISystemServices/obj/Debug/net6.0/WIDESEAWCS_ISystemServices.AssemblyInfo.cs /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_ISystemServices/obj/Debug/net6.0/WIDESEAWCS_ISystemServices.AssemblyInfoInputs.cache /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_ISystemServices/obj/Debug/net6.0/WIDESEAWCS_ISystemServices.csproj.AssemblyReference.cache /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_ITaskInfoRepository/obj/Debug/net6.0/WIDESEAWCS_ITaskInfoRepository.AssemblyInfo.cs /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_ITaskInfoRepository/obj/Debug/net6.0/WIDESEAWCS_ITaskInfoRepository.AssemblyInfoInputs.cache /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_ITaskInfoRepository/obj/Debug/net6.0/WIDESEAWCS_ITaskInfoRepository.csproj.AssemblyReference.cache /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_ITaskInfoService/obj/Debug/net6.0/WIDESEAWCS_ITaskInfoService.AssemblyInfo.cs /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_ITaskInfoService/obj/Debug/net6.0/WIDESEAWCS_ITaskInfoService.AssemblyInfoInputs.cache /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_ITaskInfoService/obj/Debug/net6.0/WIDESEAWCS_ITaskInfoService.csproj.AssemblyReference.cache /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Model/obj/Debug/net6.0/WIDESEAWCS_Model.AssemblyInfo.cs /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Model/obj/Debug/net6.0/WIDESEAWCS_Model.AssemblyInfoInputs.cache /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_ProcessParameters/obj/Debug/net6.0/WIDESEAWCS_IProcessRepository.AssemblyInfo.cs /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_ProcessParameters/obj/Debug/net6.0/WIDESEAWCS_IProcessRepository.AssemblyInfoInputs.cache /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_ProcessParameters/obj/Debug/net6.0/WIDESEAWCS_IProcessRepository.csproj.AssemblyReference.cache /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_ProcessRepository/obj/Debug/net6.0/WIDESEAWCS_ProcessRepository.AssemblyInfo.cs /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_ProcessRepository/obj/Debug/net6.0/WIDESEAWCS_ProcessRepository.AssemblyInfoInputs.cache /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_ProcessRepository/obj/Debug/net6.0/WIDESEAWCS_ProcessRepository.csproj.AssemblyReference.cache /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/obj/Debug/net6.0/WIDESEAWCS_QuartzJob.AssemblyInfo.cs /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/obj/Debug/net6.0/WIDESEAWCS_QuartzJob.AssemblyInfoInputs.cache /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/bin/Debug/net6.0/Log_PLCReadWrite/è¾é线/Logs_20241101093806.txt /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/bin/Debug/net6.0/Log_PLCReadWrite/éå1å·å åæº/Logs_20241030164506.txt /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/bin/Debug/net6.0/Log_PLCReadWrite/éåè¾é线/Logs_20241102145422.txt /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/bin/Debug/net6.0/WIDESEAWCS_Server.exe /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/obj/Debug/net6.0/apphost.exe /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/obj/Debug/net6.0/WIDESEAWCS_Server.AssemblyInfo.cs /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/obj/Debug/net6.0/WIDESEAWCS_Server.AssemblyInfoInputs.cache /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/obj/Debug/net6.0/WIDESEAWCS_Server.csproj.AssemblyReference.cache /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_SystemRepository/obj/Debug/net6.0/WIDESEAWCS_SystemRepository.AssemblyInfo.cs /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_SystemRepository/obj/Debug/net6.0/WIDESEAWCS_SystemRepository.AssemblyInfoInputs.cache /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_SystemRepository/obj/Debug/net6.0/WIDESEAWCS_SystemRepository.csproj.AssemblyReference.cache /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_SystemServices/obj/Debug/net6.0/WIDESEAWCS_SystemServices.AssemblyInfo.cs /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_SystemServices/obj/Debug/net6.0/WIDESEAWCS_SystemServices.AssemblyInfoInputs.cache /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_SystemServices/obj/Debug/net6.0/WIDESEAWCS_SystemServices.csproj.AssemblyReference.cache /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoRepository/obj/Debug/net6.0/WIDESEAWCS_TaskInfoRepository.AssemblyInfo.cs /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoRepository/obj/Debug/net6.0/WIDESEAWCS_TaskInfoRepository.AssemblyInfoInputs.cache /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoRepository/obj/Debug/net6.0/WIDESEAWCS_TaskInfoRepository.csproj.AssemblyReference.cache /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/obj/Debug/net6.0/WIDESEAWCS_TaskInfoService.AssemblyInfo.cs /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/obj/Debug/net6.0/WIDESEAWCS_TaskInfoService.AssemblyInfoInputs.cache /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/obj/Debug/net6.0/WIDESEAWCS_TaskInfoService.assets.cache /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/obj/Debug/net6.0/WIDESEAWCS_TaskInfoService.csproj.AssemblyReference.cache /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/obj/Debug/net6.0/WIDESEAWCS_TaskInfoService.GeneratedMSBuildEditorConfig.editorconfig /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/obj/Debug/net6.0/WIDESEAWCS_Tasks.AssemblyInfo.cs /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/obj/Debug/net6.0/WIDESEAWCS_Tasks.AssemblyInfoInputs.cache /Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/obj/Debug/net6.0/WIDESEAWCS_Tasks.csproj.AssemblyReference.cache /Code Management/WMS/WIDESEA_WMSServer/WIDESEA_IStoragIntegrationServices/obj/Debug/net6.0/WIDESEA_IStoragIntegrationServices.AssemblyInfo.cs /Code Management/WMS/WIDESEA_WMSServer/WIDESEA_IStoragIntegrationServices/obj/Debug/net6.0/WIDESEA_IStoragIntegrationServices.AssemblyInfoInputs.cache /Code Management/WMS/WIDESEA_WMSServer/WIDESEA_IStoragIntegrationServices/obj/Debug/net6.0/WIDESEA_IStoragIntegrationServices.csproj.AssemblyReference.cache /Code Management/WMS/WIDESEA_WMSServer/WIDESEA_IStoragIntegrationServices/obj/Debug/net6.0/WIDESEA_IStoragIntegrationServices.csproj.CoreCompileInputs.cache /Code Management/WMS/WIDESEA_WMSServer/WIDESEA_IStoragIntegrationServices/obj/Debug/net6.0/WIDESEA_IStoragIntegrationServices.AssemblyInfo.cs /Code Management/WMS/WIDESEA_WMSServer/WIDESEA_IStoragIntegrationServices/obj/Debug/net6.0/WIDESEA_IStoragIntegrationServices.AssemblyInfoInputs.cache /Code Management/WMS/WIDESEA_WMSServer/WIDESEA_IStoragIntegrationServices/obj/Debug/net6.0/WIDESEA_IStoragIntegrationServices.csproj.AssemblyReference.cache /Code Management/WMS/WIDESEA_WMSServer/WIDESEA_IStoragIntegrationServices/obj/Debug/net6.0/WIDESEA_IStoragIntegrationServices.csproj.CoreCompileInputs.cache /Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/bin/Debug/net6.0/WIDESEA_StoragIntegrationServices.deps.json /Code Management/WMS/WIDESEA_WMSServer/.vs/WIDESEA_WMSServer/v17/fileList.bin /Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/obj/Debug/net6.0/WIDESEA_StoragIntegrationServices.AssemblyInfo.cs /Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/obj/Debug/net6.0/WIDESEA_StoragIntegrationServices.AssemblyInfoInputs.cache /Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/obj/Debug/net6.0/WIDESEA_StoragIntegrationServices.csproj.AssemblyReference.cache /Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/obj/Debug/net6.0/WIDESEA_StoragIntegrationServices.csproj.CoreCompileInputs.cache /Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/obj/Debug/net6.0/WIDESEA_StoragIntegrationServices.csproj.FileListAbsolute.txt /Code Management/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/bin/Debug/net6.0/WIDESEA_WMSServer.xml /Code Management/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/obj/Debug/net6.0/WIDESEA_WMSServer.xml Code Management/WCS/WIDESEAWCS_Client/src/extension/quartzJob/deviceInfo.js
@@ -1,29 +1,39 @@ import gridBody from './extend/importDevicePro.vue' import gridBody from "./extend/importDevicePro.vue"; let extension = { components: { //æ¥è¯¢ç颿©å±ç»ä»¶ gridHeader: '', gridHeader: "", gridBody: gridBody, gridFooter: '', gridFooter: "", //æ°å»ºãç¼è¾å¼¹åºæ¡æ©å±ç»ä»¶ modelHeader: '', modelBody: '', modelFooter: '' modelHeader: "", modelBody: "", modelFooter: "", }, tableAction: '', //æå®æå¼ 表çæé(è¿éå¡«å表å,é»è®¤ä¸ç¨å¡«å) tableAction: "", //æå®æå¼ 表çæé(è¿éå¡«å表å,é»è®¤ä¸ç¨å¡«å) buttons: { view: [], box: [], detail: [] }, //æ©å±çæé® methods: { //ä¸é¢è¿äºæ¹æ³å¯ä»¥ä¿çä¹å¯ä»¥å é¤ onInit() { // console.log(this.detailOptions.buttons); // console.log(this.$refs.detail) var detailImport = this.detailOptions.buttons.find(item=>item.value == 'import'); if(detailImport){ var detailImport = this.detailOptions.buttons.find( (item) => item.value == "import" ); if (detailImport) { detailImport.onClick = function () { this.$refs.gridBody.open(); } }; } this.buttons.unshift({ //ä¹å¯ä»¥ç¨pushæè spliceæ¹æ³æ¥ä¿®æ¹buttonsæ°ç» name: "å¼å¯æå¡", //æé®åç§° icon: "el-icon-document", //æé®å¾æ vue2çæ¬è§iviewææ¡£iconï¼vue3çæ¬è§element uiææ¡£icon(注æä¸æ¯element pulsææ¡£) type: "primary", //æé®æ ·å¼vue2çæ¬è§iviewææ¡£buttonï¼vue3çæ¬è§element uiææ¡£button onClick: function () { this.$Message.success("ç¹å»äºæé®"); }, }); }, onInited() { //æ¡æ¶åå§åé ç½®å @@ -64,15 +74,14 @@ //console.log(this.$refs) this.$nextTick(() => { if (this.$refs.upload_excel) { alert('ç¹å»äºä¸ä¼ æé®') alert("ç¹å»äºä¸ä¼ æé®"); this.$refs.upload_excel.upload = function () { console.log('ç¹å»äºä¸ä¼ æé®') } console.log("ç¹å»äºä¸ä¼ æé®"); }; } // alert(1) }) } } }); }, }, }; export default extension; Code Management/WCS/WIDESEAWCS_Server/.vs/ProjectEvaluation/wideseawcs_server.metadata.v9.binBinary files differ
Code Management/WCS/WIDESEAWCS_Server/.vs/ProjectEvaluation/wideseawcs_server.projects.v9.binBinary files differ
Code Management/WCS/WIDESEAWCS_Server/.vs/ProjectEvaluation/wideseawcs_server.strings.v9.binBinary files differ
Code Management/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/DesignTimeBuild/.dtbcache.v2Binary files differ
Code Management/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/v17/.futdcache.v2Binary files differ
Code Management/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/v17/.suoBinary files differ
Code Management/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/v17/DocumentLayout.backup.json
ÎļþÒÑɾ³ý Code Management/WCS/WIDESEAWCS_Server/.vs/WIDESEAWCS_Server/v17/DocumentLayout.json
ÎļþÒÑɾ³ý Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoRepository/obj/Debug/net6.0/WIDESEAWCS_BasicInfoRepository.AssemblyInfo.cs
ÎļþÒÑɾ³ý Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoRepository/obj/Debug/net6.0/WIDESEAWCS_BasicInfoRepository.AssemblyInfoInputs.cache
ÎļþÒÑɾ³ý Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoRepository/obj/Debug/net6.0/WIDESEAWCS_BasicInfoRepository.csproj.AssemblyReference.cacheBinary files differ
Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoService/obj/Debug/net6.0/WIDESEAWCS_BasicInfoService.AssemblyInfo.cs
ÎļþÒÑɾ³ý Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoService/obj/Debug/net6.0/WIDESEAWCS_BasicInfoService.AssemblyInfoInputs.cache
ÎļþÒÑɾ³ý Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoService/obj/Debug/net6.0/WIDESEAWCS_BasicInfoService.csproj.AssemblyReference.cacheBinary files differ
Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Common/obj/Debug/net6.0/WIDESEAWCS_Common.AssemblyInfo.cs
ÎļþÒÑɾ³ý Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Common/obj/Debug/net6.0/WIDESEAWCS_Common.AssemblyInfoInputs.cache
ÎļþÒÑɾ³ý Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Communicator/obj/Debug/net6.0/WIDESEAWCS_Communicator.AssemblyInfo.cs
ÎļþÒÑɾ³ý Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Communicator/obj/Debug/net6.0/WIDESEAWCS_Communicator.AssemblyInfoInputs.cache
ÎļþÒÑɾ³ý Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Core/obj/Debug/net6.0/WIDESEAWCS_Core.AssemblyInfo.cs
ÎļþÒÑɾ³ý Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Core/obj/Debug/net6.0/WIDESEAWCS_Core.AssemblyInfoInputs.cache
ÎļþÒÑɾ³ý Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_DTO/MOM/ResponeRunDto.cs
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,133 @@ namespace WIDESEAWCS_DTO.MOM; /// <summary> /// åæ°ä¿¡æ¯æ¨¡å /// </summary> public class ParameterInfoDto { /// <summary> /// åæ°ç¼ç /// </summary> public string ParameterCode { get; set; } /// <summary> /// åæ°ç±»å /// </summary> public string ParameterType { get; set; } /// <summary> /// æ¨èå¼ /// </summary> public string TargetValue { get; set; } /// <summary> /// åä½ /// </summary> public string UOMCode { get; set; } /// <summary> /// æ§å¶ä¸éå¼ /// </summary> public string UpperControlLimit { get; set; } /// <summary> /// æ§å¶ä¸éå¼ /// </summary> public string LowerControlLimit { get; set; } /// <summary> /// è§æ ¼ä¸éå¼ /// </summary> public string UpperSpecificationsLimit { get; set; } /// <summary> /// è§æ ¼ä¸éå¼ /// </summary> public string LowerSpecificationsLimit { get; set; } /// <summary> /// åæ°æè¿° /// </summary> public string Description { get; set; } /// <summary> /// å·¥èºè·¯çº¿ä¸å½å设å¤åæ°ä¿¡æ¯æ¯å¦å¯ç¨(TRUE å¯ç¨ /FALSE ä¸å¯ç¨) /// </summary> public string EquipmentAvailabilityFlag { get; set; } } /// <summary> /// ååºæ¨¡å /// </summary> public class ResponeRunDto { /// <summary> /// ä¼è¯ID /// </summary> public string SessionId { get; set; } /// <summary> /// è¿åæ¶é´ /// </summary> public string ResponseTime { get; set; } /// <summary> /// 设å¤ç¼å· /// </summary> public string EquipmentCode { get; set; } /// <summary> /// æ¥ææ¥æ¶ç»æ /// </summary> public bool ResultFlag { get; set; } /// <summary> /// è¿åç¶æç Trueï¼æ§è¡æåï¼Falseï¼æ§è¡å¤±è´¥ /// </summary> public bool Success { get; set; } /// <summary> /// æ¶æ¯ç±»å /// </summary> public string MessageCode { get; set; } /// <summary> /// æ¶æ¯ /// </summary> public string MOMMessage { get; set; } /// <summary> /// å·¥åç¼å· /// </summary> public string WipOrderNo { get; set; } /// <summary> /// 产ååç§° /// </summary> public string ProductDesc { get; set; } /// <summary> /// é¦ä»¶æ°é /// </summary> public string FirstArticleNum { get; set; } /// <summary> /// è°æºæ°é /// </summary> public string DebugNum { get; set; } /// <summary> /// åæ°çæ¬ä¿¡æ¯ /// </summary> public string ParamVersion { get; set; } /// <summary> /// æ¯å¦éè¦è¯»ååæ° /// </summary> public bool ParamRefreshFlag { get; set; } /// <summary> /// åæ°ä¿¡æ¯æ°ç» /// </summary> public List<ParameterInfoDto> ParameterInfo { get; set; } = new List<ParameterInfoDto>(); } Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_DTO/WMS/RequestTaskDto.cs
@@ -14,28 +14,8 @@ public string Position { get; set; } /// <summary> /// åºåç¼ç /// </summary> public string AreaCode { get; set; } /// <summary> /// æçå· /// </summary> public string PalletCode { get; set; } /// <summary> /// ç³è¯·ç±»å(1å ¥åºï¼2åºåº) /// </summary> public int Type { get; set; } /// <summary> /// å ³ç³»çåºå /// </summary> public string Area { get; set; } /// <summary> /// å ³ç³»çæ¹å /// </summary> public string Direction { get; set; } } } } Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_DTO/obj/Debug/net6.0/WIDESEAWCS_DTO.AssemblyInfo.cs
ÎļþÒÑɾ³ý Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_DTO/obj/Debug/net6.0/WIDESEAWCS_DTO.AssemblyInfoInputs.cache
ÎļþÒÑɾ³ý Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_DTO/obj/Debug/net6.0/WIDESEAWCS_DTO.csproj.AssemblyReference.cacheBinary files differ
Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_DTO/obj/Debug/net6.0/WIDESEAWCS_DTO.csproj.CoreCompileInputs.cache
ÎļþÒÑɾ³ý Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_IBasicInfoRepository/obj/Debug/net6.0/WIDESEAWCS_IBasicInfoRepository.AssemblyInfo.cs
ÎļþÒÑɾ³ý Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_IBasicInfoRepository/obj/Debug/net6.0/WIDESEAWCS_IBasicInfoRepository.AssemblyInfoInputs.cache
ÎļþÒÑɾ³ý Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_IBasicInfoRepository/obj/Debug/net6.0/WIDESEAWCS_IBasicInfoRepository.csproj.AssemblyReference.cacheBinary files differ
Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_IBasicInfoService/obj/Debug/net6.0/WIDESEAWCS_IBasicInfoService.AssemblyInfo.cs
ÎļþÒÑɾ³ý Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_IBasicInfoService/obj/Debug/net6.0/WIDESEAWCS_IBasicInfoService.AssemblyInfoInputs.cache
ÎļþÒÑɾ³ý Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_IBasicInfoService/obj/Debug/net6.0/WIDESEAWCS_IBasicInfoService.csproj.AssemblyReference.cacheBinary files differ
Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_ISystemRepository/obj/Debug/net6.0/WIDESEAWCS_ISystemRepository.AssemblyInfo.cs
ÎļþÒÑɾ³ý Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_ISystemRepository/obj/Debug/net6.0/WIDESEAWCS_ISystemRepository.AssemblyInfoInputs.cache
ÎļþÒÑɾ³ý Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_ISystemRepository/obj/Debug/net6.0/WIDESEAWCS_ISystemRepository.csproj.AssemblyReference.cacheBinary files differ
Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_ISystemServices/obj/Debug/net6.0/WIDESEAWCS_ISystemServices.AssemblyInfo.cs
ÎļþÒÑɾ³ý Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_ISystemServices/obj/Debug/net6.0/WIDESEAWCS_ISystemServices.AssemblyInfoInputs.cache
ÎļþÒÑɾ³ý Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_ISystemServices/obj/Debug/net6.0/WIDESEAWCS_ISystemServices.csproj.AssemblyReference.cacheBinary files differ
Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_ITaskInfoRepository/obj/Debug/net6.0/WIDESEAWCS_ITaskInfoRepository.AssemblyInfo.cs
ÎļþÒÑɾ³ý Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_ITaskInfoRepository/obj/Debug/net6.0/WIDESEAWCS_ITaskInfoRepository.AssemblyInfoInputs.cache
ÎļþÒÑɾ³ý Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_ITaskInfoRepository/obj/Debug/net6.0/WIDESEAWCS_ITaskInfoRepository.csproj.AssemblyReference.cacheBinary files differ
Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_ITaskInfoService/obj/Debug/net6.0/WIDESEAWCS_ITaskInfoService.AssemblyInfo.cs
ÎļþÒÑɾ³ý Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_ITaskInfoService/obj/Debug/net6.0/WIDESEAWCS_ITaskInfoService.AssemblyInfoInputs.cache
ÎļþÒÑɾ³ý Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_ITaskInfoService/obj/Debug/net6.0/WIDESEAWCS_ITaskInfoService.csproj.AssemblyReference.cacheBinary files differ
Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Model/Models/ProcessParameters/Dt_EquipmentProcess.cs
@@ -33,6 +33,22 @@ public string EquipmentType { get; set; } /// <summary> /// å·¥åç¼å· /// </summary> [ImporterHeader(Name = "å·¥åç¼å·")] [ExporterHeader(DisplayName = "å·¥åç¼å·")] [SugarColumn(IsNullable = false, Length = 100, ColumnDescription = "å·¥åç¼å·")] public string WipOrderNo { get; set; } /// <summary> /// å·¥èºåå· /// </summary> [ImporterHeader(Name = "å·¥èºåå·")] [ExporterHeader(DisplayName = "å·¥èºåå·")] [SugarColumn(IsNullable = false, Length = 100, ColumnDescription = "å·¥èºåå·")] public string ProductDesc { get; set; } /// <summary> /// å·¥èºåæ°å¼ /// </summary> [ImporterHeader(Name = "å·¥èºåæ°å¼")] Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Model/obj/Debug/net6.0/WIDESEAWCS_Model.AssemblyInfo.cs
ÎļþÒÑɾ³ý Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Model/obj/Debug/net6.0/WIDESEAWCS_Model.AssemblyInfoInputs.cache
ÎļþÒÑɾ³ý Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_ProcessParameters/obj/Debug/net6.0/WIDESEAWCS_IProcessRepository.AssemblyInfo.cs
ÎļþÒÑɾ³ý Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_ProcessParameters/obj/Debug/net6.0/WIDESEAWCS_IProcessRepository.AssemblyInfoInputs.cache
ÎļþÒÑɾ³ý Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_ProcessParameters/obj/Debug/net6.0/WIDESEAWCS_IProcessRepository.csproj.AssemblyReference.cacheBinary files differ
Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_ProcessRepository/obj/Debug/net6.0/WIDESEAWCS_ProcessRepository.AssemblyInfo.cs
ÎļþÒÑɾ³ý Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_ProcessRepository/obj/Debug/net6.0/WIDESEAWCS_ProcessRepository.AssemblyInfoInputs.cache
ÎļþÒÑɾ³ý Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_ProcessRepository/obj/Debug/net6.0/WIDESEAWCS_ProcessRepository.csproj.AssemblyReference.cacheBinary files differ
Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/obj/Debug/net6.0/WIDESEAWCS_QuartzJob.AssemblyInfo.cs
ÎļþÒÑɾ³ý Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/obj/Debug/net6.0/WIDESEAWCS_QuartzJob.AssemblyInfoInputs.cache
ÎļþÒÑɾ³ý Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/bin/Debug/net6.0/Log_PLCReadWrite/ÊäËÍÏß/Logs_20241101093806.txt
ÎļþÒÑɾ³ý Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/bin/Debug/net6.0/Log_PLCReadWrite/³Â»¯1ºÅ¶Ñ¶â»ú/Logs_20241030164506.txt
ÎļþÒÑɾ³ý Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/bin/Debug/net6.0/WIDESEAWCS_Server.exeBinary files differ
Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/obj/Debug/net6.0/WIDESEAWCS_Server.AssemblyInfo.cs
ÎļþÒÑɾ³ý Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/obj/Debug/net6.0/WIDESEAWCS_Server.AssemblyInfoInputs.cache
ÎļþÒÑɾ³ý Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/obj/Debug/net6.0/WIDESEAWCS_Server.csproj.AssemblyReference.cacheBinary files differ
Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/obj/Debug/net6.0/apphost.exeBinary files differ
Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_SystemRepository/obj/Debug/net6.0/WIDESEAWCS_SystemRepository.AssemblyInfo.cs
ÎļþÒÑɾ³ý Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_SystemRepository/obj/Debug/net6.0/WIDESEAWCS_SystemRepository.AssemblyInfoInputs.cache
ÎļþÒÑɾ³ý Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_SystemRepository/obj/Debug/net6.0/WIDESEAWCS_SystemRepository.csproj.AssemblyReference.cacheBinary files differ
Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_SystemServices/obj/Debug/net6.0/WIDESEAWCS_SystemServices.AssemblyInfo.cs
ÎļþÒÑɾ³ý Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_SystemServices/obj/Debug/net6.0/WIDESEAWCS_SystemServices.AssemblyInfoInputs.cache
ÎļþÒÑɾ³ý Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_SystemServices/obj/Debug/net6.0/WIDESEAWCS_SystemServices.csproj.AssemblyReference.cacheBinary files differ
Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoRepository/obj/Debug/net6.0/WIDESEAWCS_TaskInfoRepository.AssemblyInfo.cs
ÎļþÒÑɾ³ý Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoRepository/obj/Debug/net6.0/WIDESEAWCS_TaskInfoRepository.AssemblyInfoInputs.cache
ÎļþÒÑɾ³ý Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoRepository/obj/Debug/net6.0/WIDESEAWCS_TaskInfoRepository.csproj.AssemblyReference.cacheBinary files differ
Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/TaskService.cs
@@ -132,8 +132,8 @@ try { #region ç宿°æ® // å建请æ±å¯¹è±¡ // TODO: è°ç¨æ¥å£è·åä¸ä¸ä¸ªå°å //// å建请æ±å¯¹è±¡ //RequestTaskDto request = new RequestTaskDto() //{ // Position = sourceAddress, @@ -401,6 +401,34 @@ task.CurrentAddress = task.NextAddress; task.NextAddress = $"{random.Next(1, 1).ToString().PadLeft(3, '0')}-{random.Next(1, 1).ToString().PadLeft(3, '0')}-{random.Next(1, 1).ToString().PadLeft(3, '0')}"; task.TargetAddress = task.NextAddress; #region ç宿°æ® // TODO: è°ç¨æ¥å£è·åä¸ä¸ä¸ªå°å //// å建请æ±å¯¹è±¡ //RequestTaskDto request = new RequestTaskDto() //{ // Position = task.NextAddress, // PalletCode = task.PalletCode, //}; //// åé请æ±å¹¶çå¾ ååº //var result = HttpHelper.PostAsync("http:127.0.0.1:8098/api/Task/RequestTaskAsync", request.ToJsonString()).Result; //// ååºååååºå 容 //content = JsonConvert.DeserializeObject<WebResponseContent>(result); //// æ£æ¥ç¶æå¹¶è¿å //if (!content.Status) // return content; //// ååºåå任塿°æ® //WMSTaskDTO taskResult = JsonConvert.DeserializeObject<WMSTaskDTO>(content.Data.ToString()); //task.CurrentAddress = task.NextAddress; //task.NextAddress = taskResult.TargetAddress; //task.TargetAddress = task.NextAddress; #endregion } } else @@ -504,20 +532,25 @@ BaseDal.UpdateData(task); _taskExecuteDetailService.AddTaskExecuteDetail(task.TaskId, $"å åæºå ¥åºå®æ"); WMSTaskDTO taskDTO = new WMSTaskDTO() { TaskNum = Convert.ToInt32(DateTime.Now.ToString("HHmmss")), Grade = 1, PalletCode = task.PalletCode + "S", RoadWay = "SC01", SourceAddress = task.TargetAddress, TargetAddress = "CLOutAreaA", TaskState = (int)TaskOutStatusEnum.OutNew, Id = 0, TaskType = (int)TaskOutboundTypeEnum.Outbound }; content = ReceiveWMSTask(new List<WMSTaskDTO> { taskDTO }); //var x = new { taskNum = taskNum }; //var result = HttpHelper.GetAsync("http:127.0.0.1:8098/api/Task/CompleteTaskAsync", x.ToJsonString()).Result; //content = JsonConvert.DeserializeObject<WebResponseContent>(result); //WMSTaskDTO taskDTO = new WMSTaskDTO() //{ // TaskNum = Convert.ToInt32(DateTime.Now.ToString("HHmmss")), // Grade = 1, // PalletCode = task.PalletCode + "S", // RoadWay = "SC01", // SourceAddress = task.TargetAddress, // TargetAddress = "CLOutAreaA", // TaskState = (int)TaskOutStatusEnum.OutNew, // Id = 0, // TaskType = (int)TaskOutboundTypeEnum.Outbound //}; //content = ReceiveWMSTask(new List<WMSTaskDTO> { taskDTO }); } else if (task.TaskType.GetTaskTypeGroup() == TaskTypeGroup.RelocationGroup) { @@ -530,7 +563,7 @@ { throw new Exception($"ä»»å¡ç±»åé误,æªæ¾å°è¯¥ä»»å¡ç±»å,ä»»å¡å·:ã{taskNum}ã,ä»»å¡ç±»å:ã{task.TaskType}ã"); } content = WebResponseContent.Instance.OK(); //content = WebResponseContent.Instance.OK(); } catch (Exception ex) { Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/obj/Debug/net6.0/WIDESEAWCS_TaskInfoService.AssemblyInfo.cs
ÎļþÒÑɾ³ý Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/obj/Debug/net6.0/WIDESEAWCS_TaskInfoService.AssemblyInfoInputs.cache
ÎļþÒÑɾ³ý Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/obj/Debug/net6.0/WIDESEAWCS_TaskInfoService.GeneratedMSBuildEditorConfig.editorconfig
ÎļþÒÑɾ³ý Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/obj/Debug/net6.0/WIDESEAWCS_TaskInfoService.assets.cacheBinary files differ
Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/obj/Debug/net6.0/WIDESEAWCS_TaskInfoService.csproj.AssemblyReference.cacheBinary files differ
Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob/CommonConveyorLineJob.cs
@@ -19,7 +19,7 @@ using AutoMapper; using HslCommunication; using OfficeOpenXml.FormulaParsing.Excel.Functions.Text; using Newtonsoft.Json; using Quartz; using SqlSugar; using System.Reflection; @@ -43,6 +43,7 @@ { private readonly List<string> _deviceCodes1 = new List<string>() { "1063", "1061", "1060" }; private readonly List<string> _deviceCodes2 = new List<string>() { "1067", "1069", "1068" }; private readonly string[] HCTrayCode = { "1012", "1013" }; private readonly ITaskService _taskService; private readonly ITaskRepository _taskRepository; private readonly ITaskExecuteDetailService _taskExecuteDetailService; @@ -127,6 +128,14 @@ // EmptyTrayReturn(conveyorLine, command, _deviceCodes2[_deviceCodes1.Count - 1], i); // } //} foreach (var item in HCTrayCode) { ConveyorLineTaskCommand command = conveyorLine.ReadCustomer<ConveyorLineTaskCommand>(item); if (command.InteractiveSignal != 2) { ChuanhuaOutbound(conveyorLine, command, HCTrayCode[0], 0); } } Task.WaitAll(tasks.ToArray()); } } @@ -136,7 +145,7 @@ } finally { WriteDebug("CommonConveyorLineJob", "test"); //WriteDebug("CommonConveyorLineJob", "test"); //Console.Out.WriteLine(DateTime.Now); } return Task.CompletedTask; @@ -152,39 +161,86 @@ public void RequestInbound(CommonConveyorLine conveyorLine, ConveyorLineTaskCommand command, string childDeviceCode, int ProtocalDetailValue) { var taskNew = _taskService.QueryCraneConveyorLineTask(command.Barcode.ObjToInt(), childDeviceCode); var TaskTray = _taskService.QueryConveyorLineTask(conveyorLine.DeviceCode, childDeviceCode); if (TaskTray != null && TaskTray.TaskType == (int)TaskOutboundTypeEnum.OutTray) var Taskout = _taskService.QueryConveyorLineTask(conveyorLine.DeviceCode, childDeviceCode); if (Taskout != null) { // 空æçä»»å¡ if (TaskTray.TaskState == (int)TaskOutStatusEnum.SC_OutFinish) if (Taskout.TaskType == (int)TaskOutboundTypeEnum.OutTray) { ConveyorLineTaskCommand taskCommand = _mapper.Map<ConveyorLineTaskCommand>(TaskTray); taskCommand.InteractiveSignal = command.InteractiveSignal; if (command.Barcode == "") if (Taskout.TaskState == (int)TaskOutStatusEnum.SC_OutFinish) { taskCommand.TargetAddress = 1092; } conveyorLine.SendCommand(taskCommand, childDeviceCode); ConveyorLineSendFinish(conveyorLine, childDeviceCode, ProtocalDetailValue, true); _taskService.UpdateTaskStatusToNext(TaskTray); } else if(TaskTray.TaskState == (int)TaskOutStatusEnum.Line_OutExecuting) { if(command.Barcode == "") { ConveyorLineTaskCommand taskCommand = _mapper.Map<ConveyorLineTaskCommand>(TaskTray); ConveyorLineTaskCommand taskCommand = _mapper.Map<ConveyorLineTaskCommand>(Taskout); taskCommand.InteractiveSignal = command.InteractiveSignal; taskCommand.TargetAddress = 1092; if (command.Barcode == "") { taskCommand.TargetAddress = 1092; } conveyorLine.SendCommand(taskCommand, childDeviceCode); ConveyorLineSendFinish(conveyorLine, childDeviceCode, ProtocalDetailValue, true); _taskService.UpdateTaskStatusToNext(TaskTray); _taskService.UpdateTaskStatusToNext(Taskout); } else if (Taskout.TaskState == (int)TaskOutStatusEnum.Line_OutExecuting) { if (command.Barcode == "") { ConveyorLineTaskCommand taskCommand = _mapper.Map<ConveyorLineTaskCommand>(Taskout); taskCommand.InteractiveSignal = command.InteractiveSignal; taskCommand.TargetAddress = 1092; conveyorLine.SendCommand(taskCommand, childDeviceCode); ConveyorLineSendFinish(conveyorLine, childDeviceCode, ProtocalDetailValue, true); _taskService.UpdateTaskStatusToNext(Taskout); } } } else if (Taskout.TaskType == (int)TaskOutboundTypeEnum.Outbound) { if (Taskout.TaskState == (int)TaskOutStatusEnum.SC_OutExecuting) { ConveyorLineTaskCommand taskCommand = _mapper.Map<ConveyorLineTaskCommand>(Taskout); taskCommand.InteractiveSignal = command.InteractiveSignal; if (command.Barcode == "") { //todo 没ææç¡®å¼å¸¸å£ï¼éå°ç®æ å··éçNGå£ //taskCommand.TargetAddress = 1092; } conveyorLine.SendCommand(taskCommand, childDeviceCode); ConveyorLineSendFinish(conveyorLine, childDeviceCode, ProtocalDetailValue, true); _taskService.UpdateTaskStatusToNext(Taskout); } else if (Taskout.TaskState == (int)TaskOutStatusEnum.Line_OutExecuting) { if (command.Barcode == "") { ConveyorLineTaskCommand taskCommand = _mapper.Map<ConveyorLineTaskCommand>(Taskout); taskCommand.InteractiveSignal = command.InteractiveSignal; // todo éå°ç®æ å··éçNGå£ taskCommand.TargetAddress = 1092; conveyorLine.SendCommand(taskCommand, childDeviceCode); ConveyorLineSendFinish(conveyorLine, childDeviceCode, ProtocalDetailValue, true); _taskService.UpdateTaskStatusToNext(Taskout); } else { // todo è°ç¨WMSä»»å¡å®ææ¥å£ var x = new { taskNum = Taskout.TaskNum }; var result = HttpHelper.GetAsync("http:127.0.0.1:8098/api/Task/CompleteTaskAsync", x.ToJsonString()).Result; WebResponseContent content = JsonConvert.DeserializeObject<WebResponseContent>(result); if (content.Status) { ConveyorLineSendFinish(conveyorLine, childDeviceCode, ProtocalDetailValue, true); _taskService.UpdateTaskStatusToNext(Taskout); } } } } } if( taskNew == null) if (taskNew == null) { if (_taskService.RequestWMSTask(command.Barcode, childDeviceCode).Status) { @@ -210,7 +266,7 @@ /// <param name="conveyorLine">è¾é线å®ä¾å¯¹è±¡</param> /// <param name="command">读åç请æ±ä¿¡æ¯</param> /// <param name="childDeviceCode">å设å¤ç¼å·</param> /// <param name="ProtocalDetailValue">线ä½å½åbool读ååç§»å°å</param> /// <param name="index">读åç第ä¸ä¸ªä½ç½®</param> public void EmptyTrayReturn(CommonConveyorLine conveyorLine, ConveyorLineTaskCommand command, string childDeviceCode, int index) { var tasks = _taskRepository.QueryData(x => (x.TaskState == (int)TaskOutStatusEnum.OutNew || x.TaskState == (int)TaskOutStatusEnum.Line_OutExecuting) && x.TaskType == (int)TaskOutboundTypeEnum.OutTray); @@ -228,10 +284,78 @@ Id = 0, TaskType = (int)TaskOutboundTypeEnum.OutTray }; #region ç宿°æ® // TODO: è°ç¨æ¥å£è·åä¸ä¸ä¸ªå°å //RequestTaskDto request = new RequestTaskDto() //{ // Position = sourceAddress, // PalletCode = palletCode, //}; //// åé请æ±å¹¶çå¾ ååº //var result = HttpHelper.PostAsync("http:127.0.0.1:8098/api/Task/RequestTaskAsync", request.ToJsonString()).Result; //// ååºååååºå 容 //WebResponseContent content = JsonConvert.DeserializeObject<WebResponseContent>(result); //// æ£æ¥ç¶æå¹¶è¿å ////if (!content.Status) //// return content; //// ååºåå任塿°æ® //WMSTaskDTO task = JsonConvert.DeserializeObject<WMSTaskDTO>(content.Data.ToString()); #endregion var content = _taskService.ReceiveWMSTask(new List<WMSTaskDTO> { taskDTO }); if (content.Status) { Console.WriteLine("空æçå¼å«æå"); } } } /// <summary> /// éååºåº /// </summary> /// <param name="conveyorLine">è¾é线å®ä¾å¯¹è±¡</param> /// <param name="command">读åç请æ±ä¿¡æ¯</param> /// <param name="childDeviceCode">å设å¤ç¼å·</param> /// <param name="index">线ä½å½åbool读ååç§»å°å</param> public void ChuanhuaOutbound(CommonConveyorLine conveyorLine, ConveyorLineTaskCommand command, string childDeviceCode, int index) { var tasks = _taskRepository.QueryData(x => (x.TaskState == (int)TaskOutStatusEnum.OutNew || x.TaskState == (int)TaskOutStatusEnum.Line_OutExecuting) && x.TaskType == (int)TaskOutboundTypeEnum.Outbound); if (tasks.Count <= index) { WMSTaskDTO taskDTO = new WMSTaskDTO() { TaskNum = Convert.ToInt32(DateTime.Now.ToString("HHmmss")), Grade = 1, PalletCode = DateTime.Now.ToString("MMddHHmmss"), RoadWay = "CHSC01", SourceAddress = "001-001-001", TargetAddress = childDeviceCode, TaskState = (int)TaskOutStatusEnum.OutNew, Id = 0, TaskType = (int)TaskOutboundTypeEnum.Outbound, }; var content = _taskService.ReceiveWMSTask(new List<WMSTaskDTO> { taskDTO }); if (content.Status) { Console.WriteLine("åºåºå¼å«æå"); } } else { Dt_Task task = tasks[index]; if (task != null) { ConveyorLineTaskCommand taskCommand = _mapper.Map<ConveyorLineTaskCommand>(task); taskCommand.InteractiveSignal = command.InteractiveSignal; conveyorLine.SendCommand(taskCommand, childDeviceCode); } } } @@ -270,7 +394,6 @@ if (task != null && task.TaskState != (int)TaskInStatusEnum.Line_InFinish) { ConveyorLineSendFinish(conveyorLine, childDeviceCode, ProtocalDetailValue, true); //conveyorLine.SetValue(ConveyorLineDBName.WriteInteractiveSignal, 0, childDeviceCode); WebResponseContent content = _taskService.UpdateTaskStatusToNext(task); Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/StackerCraneJob/CommonStackerCraneJob.cs
@@ -322,10 +322,13 @@ var process = _processRepository.QueryData(x => x.EquipmentName == commonStackerCrane.DeviceName).FirstOrDefault(); if (process == null) { ResponeRunDto runDto = JsonConvert.DeserializeObject<ResponeRunDto>(respone); process = new Dt_EquipmentProcess() { EquipmentName = commonStackerCrane.DeviceName, EquipmentType = commonStackerCrane.DeviceCode.Substring(commonStackerCrane.DeviceCode.IndexOf("SC")), EquipmentName = commonStackerCrane.DeviceCode, EquipmentType = commonStackerCrane.DeviceName.Substring(commonStackerCrane.DeviceCode.IndexOf("å åæº")), WipOrderNo = runDto.WipOrderNo, ProductDesc = runDto.ProductDesc, ProcessValue = JsonConvert.SerializeObject(result) }; var isResult = await _processRepository.AddDataAsync(process) > 0; Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/obj/Debug/net6.0/WIDESEAWCS_Tasks.AssemblyInfo.cs
ÎļþÒÑɾ³ý Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/obj/Debug/net6.0/WIDESEAWCS_Tasks.AssemblyInfoInputs.cache
ÎļþÒÑɾ³ý Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/obj/Debug/net6.0/WIDESEAWCS_Tasks.csproj.AssemblyReference.cacheBinary files differ
Code Management/WMS/WIDESEA_WMSServer/.vs/WIDESEA_WMSServer/v17/fileList.binBinary files differ
Code Management/WMS/WIDESEA_WMSServer/WIDESEA_Core/Enums/ManageEnum.cs
@@ -76,7 +76,7 @@ #region ä»»å¡ç±»å /// <summary> /// ä»»å¡ç±»å 100 åºåº;çç¹åºåº 101; 102 忣åºåº;103 è´¨æ£åºåº;200 å ¥åº;çç¹å ¥åº 201;åæ£å ¥åº 202;è´¨æ£å ¥åº 203;ç§»åº 300;åºå ç§»åº 301;åºå¤ç§»åº 302 /// ä»»å¡ç±»å /// </summary> public enum TaskInboundTypeEnum Code Management/WMS/WIDESEA_WMSServer/WIDESEA_DTO/Basic/RequestTaskDto.cs
@@ -1,10 +1,4 @@ using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WIDESEA_DTO; namespace WIDESEA_DTO; public class RequestTaskDto { @@ -14,27 +8,7 @@ public string Position { get; set; } /// <summary> /// åºåç¼ç /// </summary> public string AreaCode { get; set; } /// <summary> /// æçå· /// </summary> public string PalletCode { get; set; } /// <summary> /// ç³è¯·ç±»å(1å ¥åºï¼2åºåº) /// </summary> public int Type { get; set; } /// <summary> /// å ³ç³»çåºå /// </summary> public string Area { get; set; } /// <summary> /// å ³ç³»çæ¹å /// </summary> public string Direction { get; set; } } Code Management/WMS/WIDESEA_WMSServer/WIDESEA_DTO/MOM/Dt_EquipmentProcess.cs
@@ -36,6 +36,22 @@ public string EquipmentType { get; set; } /// <summary> /// å·¥åç¼å· /// </summary> [ImporterHeader(Name = "å·¥åç¼å·")] [ExporterHeader(DisplayName = "å·¥åç¼å·")] [SugarColumn(IsNullable = false, Length = 100, ColumnDescription = "å·¥åç¼å·")] public string WipOrderNo { get; set; } /// <summary> /// å·¥èºåå· /// </summary> [ImporterHeader(Name = "å·¥èºåå·")] [ExporterHeader(DisplayName = "å·¥èºåå·")] [SugarColumn(IsNullable = false, Length = 100, ColumnDescription = "å·¥èºåå·")] public string ProductDesc { get; set; } /// <summary> /// å·¥èºåæ°å¼ /// </summary> [ImporterHeader(Name = "å·¥èºåæ°å¼")] Code Management/WMS/WIDESEA_WMSServer/WIDESEA_DTO/MOM/ResponeRunDto.cs
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,130 @@ namespace WIDESEA_DTO.MOM; public class ParameterInfoDto { /// <summary> /// åæ°ç¼ç /// </summary> public string ParameterCode { get; set; } /// <summary> /// åæ°ç±»å /// </summary> public string ParameterType { get; set; } /// <summary> /// æ¨èå¼ /// </summary> public string TargetValue { get; set; } /// <summary> /// åä½ /// </summary> public string UOMCode { get; set; } /// <summary> /// æ§å¶ä¸éå¼ /// </summary> public string UpperControlLimit { get; set; } /// <summary> /// æ§å¶ä¸éå¼ /// </summary> public string LowerControlLimit { get; set; } /// <summary> /// è§æ ¼ä¸éå¼ /// </summary> public string UpperSpecificationsLimit { get; set; } /// <summary> /// è§æ ¼ä¸éå¼ /// </summary> public string LowerSpecificationsLimit { get; set; } /// <summary> /// åæ°æè¿° /// </summary> public string Description { get; set; } /// <summary> /// å·¥èºè·¯çº¿ä¸å½å设å¤åæ°ä¿¡æ¯æ¯å¦å¯ç¨(TRUE å¯ç¨ /FALSE ä¸å¯ç¨) /// </summary> public string EquipmentAvailabilityFlag { get; set; } } /// <summary> /// ååºæ¨¡å /// </summary> public class ResponeRunDto { /// <summary> /// ä¼è¯ID /// </summary> public string SessionId { get; set; } /// <summary> /// è¿åæ¶é´ /// </summary> public string ResponseTime { get; set; } /// <summary> /// 设å¤ç¼å· /// </summary> public string EquipmentCode { get; set; } /// <summary> /// æ¥ææ¥æ¶ç»æ /// </summary> public bool ResultFlag { get; set; } /// <summary> /// è¿åç¶æç Trueï¼æ§è¡æåï¼Falseï¼æ§è¡å¤±è´¥ /// </summary> public bool Success { get; set; } /// <summary> /// æ¶æ¯ç±»å /// </summary> public string MessageCode { get; set; } /// <summary> /// æ¶æ¯ /// </summary> public string MOMMessage { get; set; } /// <summary> /// å·¥åç¼å· /// </summary> public string WipOrderNo { get; set; } /// <summary> /// 产ååç§° /// </summary> public string ProductDesc { get; set; } /// <summary> /// é¦ä»¶æ°é /// </summary> public string FirstArticleNum { get; set; } /// <summary> /// è°æºæ°é /// </summary> public string DebugNum { get; set; } /// <summary> /// åæ°çæ¬ä¿¡æ¯ /// </summary> public string ParamVersion { get; set; } /// <summary> /// æ¯å¦éè¦è¯»ååæ° /// </summary> public bool ParamRefreshFlag { get; set; } /// <summary> /// åæ°ä¿¡æ¯æ°ç» /// </summary> public List<ParameterInfoDto> ParameterInfo { get; set; } = new List<ParameterInfoDto>(); } Code Management/WMS/WIDESEA_WMSServer/WIDESEA_DTO/MOM/ResultTrayCellsStatus.cs
@@ -2,15 +2,66 @@ { public class ResultTrayCellsStatus : BasicResult { /// <summary> /// æçç¼å· /// </summary> public string TrayBarcode { get; set; } /// <summary> /// çµè¯å表 /// </summary> public List<SerialNoDto> SerialNos { get; set; } = new List<SerialNoDto>(); /// <summary> /// ç»å®ä»£ç /// </summary> public string BindCode { get; set; } public List<TrayCellsSerialNos> SerialNos { get; set; } /// <summary> /// ææ¡å±æ§å表 /// </summary> public List<TrayBarcodePropertyDto> TrayBarcodePropertys { get; set; } = new List<TrayBarcodePropertyDto>(); } public class TrayCellsSerialNos /// <summary> /// çµè¯ä¿¡æ¯æ¨¡å /// </summary> public class SerialNoDto { /// <summary> /// çµè¯å· /// </summary> public string SerialNo { get; set; } /// <summary> /// ééå· /// </summary> public int PositionNo { get; set; } /// <summary> /// çµè¯ç¶æ /// </summary> public int SerialNoStatus { get; set; } } /// <summary> /// ææ¡å±æ§æ¨¡å /// </summary> public class TrayBarcodePropertyDto { /// <summary> /// ææ¡å±æ§ /// </summary> public string TrayBarcodeProperty { get; set; } /// <summary> /// å·¥åº /// </summary> public string ProcessCode { get; set; } /// <summary> /// éç¨ç©æç¼ç /å·¥èºåå· /// </summary> public string ProductType { get; set; } } } Code Management/WMS/WIDESEA_WMSServer/WIDESEA_IStoragIntegrationServices/obj/Debug/net6.0/WIDESEA_IStoragIntegrationServices.AssemblyInfo.cs
ÎļþÒÑɾ³ý Code Management/WMS/WIDESEA_WMSServer/WIDESEA_IStoragIntegrationServices/obj/Debug/net6.0/WIDESEA_IStoragIntegrationServices.AssemblyInfoInputs.cache
ÎļþÒÑɾ³ý Code Management/WMS/WIDESEA_WMSServer/WIDESEA_IStoragIntegrationServices/obj/Debug/net6.0/WIDESEA_IStoragIntegrationServices.csproj.AssemblyReference.cacheBinary files differ
Code Management/WMS/WIDESEA_WMSServer/WIDESEA_IStoragIntegrationServices/obj/Debug/net6.0/WIDESEA_IStoragIntegrationServices.csproj.CoreCompileInputs.cache
ÎļþÒÑɾ³ý Code Management/WMS/WIDESEA_WMSServer/WIDESEA_IStorageTaskService/Task/IDt_TaskService.cs
@@ -132,4 +132,11 @@ /// <param name="type"></param> /// <returns></returns> Task<WebResponseContent> RequestTaskAsync(RequestTaskDto input); /// <summary> /// 请æ±ç©ºæçä»»å¡ /// </summary> /// <param name="position"></param> /// <returns></returns> Task<WebResponseContent> RequestTrayTaskAsync(string position); } Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/MOM/CellState/CellStateService.cs
@@ -100,7 +100,7 @@ DtBoxingInfo boxingInfo = new DtBoxingInfo() { IsFull = true, PalletCode = "", PalletCode = result.TrayBarcode, }; var details = new List<DtBoxingInfoDetail>(); foreach (var item in result.SerialNos) @@ -108,9 +108,10 @@ DtBoxingInfoDetail detail = new DtBoxingInfoDetail() { SerialNumber = item.SerialNo, OrderNo = result.BindCode, OrderNo = item.PositionNo.ToString(), Status = item.SerialNoStatus, BatchNo = item.PositionNo.ToString() Remark = result.TrayBarcodePropertys.ToJsonString(), MaterielCode = result.BindCode, }; details.Add(detail); } Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/MOM/ProcessApply/ProcessApplyService.cs
@@ -33,10 +33,7 @@ if (x != null) { var ResultProcess = JsonConvert.DeserializeObject<ResultProcessApply>(x); if (ResultProcess.Success) { //å·¥èºè·¯çº¿å¨åèµ·æ¥ } content.OK(data: ResultProcess); } LogFactory.GetLog("å·¥èºè·¯çº¿ç³è¯·").Info(true, $"\r\r--------------------------------------"); LogFactory.GetLog("å·¥èºè·¯çº¿ç³è¯·").Info(true, x); Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/bin/Debug/net6.0/WIDESEA_StoragIntegrationServices.deps.json
ÎļþÒÑɾ³ý Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/obj/Debug/net6.0/WIDESEA_StoragIntegrationServices.AssemblyInfo.cs
ÎļþÒÑɾ³ý Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/obj/Debug/net6.0/WIDESEA_StoragIntegrationServices.AssemblyInfoInputs.cache
ÎļþÒÑɾ³ý Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/obj/Debug/net6.0/WIDESEA_StoragIntegrationServices.csproj.AssemblyReference.cacheBinary files differ
Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/obj/Debug/net6.0/WIDESEA_StoragIntegrationServices.csproj.CoreCompileInputs.cache
ÎļþÒÑɾ³ý Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/obj/Debug/net6.0/WIDESEA_StoragIntegrationServices.csproj.FileListAbsolute.txt
ÎļþÒÑɾ³ý Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StorageBasicServices/Location/LocationInfoService.cs
@@ -135,7 +135,7 @@ LocationType = locType, Remark = "", Depth = locType > 1 ? (((line - 1) % 4) + 1) == 2 || (((line - 1) % 4) + 1) == 3 ? 1 : 2 : 1, RoadwayNo = locType > 1 ? $"SC{((line - 1) / 4) + 1}" : $"SC{((line - 1) / 2) + 1}", RoadwayNo = locType > 1 ? $"CHSC{((line - 1) / 4) + 1}" : $"CHSC{((line - 1) / 2) + 1}", LocationStatus = LocationEnum.Free.ObjToInt(), AreaId = areaId, Creater = "systeam", @@ -245,7 +245,7 @@ SourceAddress = originalLocationID, TaskNum = taskNo, TargetAddress = emptyLocation.LocationCode, TaskState = TaskInStatusEnum.RelocationNew.ObjToInt(), //TaskState = TaskInStatusEnum.RelocationNew.ObjToInt(), TaskType = TaskTypeEnum.RelocationIn.ObjToInt(), }; Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StorageTaskServices/Task/Dt_TaskService.cs
@@ -1,10 +1,10 @@ using Mapster; using System.Collections.Generic; using WIDESEA_DTO.MOM; using WIDESEA_DTO.WMS; using WIDESEA_IStoragIntegrationServices; using WIDESEA_StoragIntegrationServices; namespace WIDESEA_StorageOutTaskServices; using WIDESEA_StorageBasicRepository; namespace WIDESEA_StorageOutTaskServices; public class Dt_TaskService : ServiceBase<Dt_Task, IDt_TaskRepository>, IDt_TaskService { @@ -25,6 +25,7 @@ private readonly IBoxingInfoRepository _boxingInfoRepository; private readonly ICellStateService _cellStateService; private readonly IProcessApplyService _processApplyService; private readonly IDt_AreaInfoRepository _areaInfoRepository; public Dt_TaskService(IDt_TaskRepository BaseDal, IUnitOfWorkManage unitOfWorkManage, @@ -42,7 +43,8 @@ ILocationStatusChangeRecordRepository locationStatusChangeRecordRepository, IBoxingInfoRepository boxingInfoRepository, ICellStateService cellStateService, IProcessApplyService processApplyService) : base(BaseDal) IProcessApplyService processApplyService, IDt_AreaInfoRepository areaInfoRepository) : base(BaseDal) { _unitOfWorkManage = unitOfWorkManage; _outOrderRepository = outOrderRepository; @@ -59,7 +61,8 @@ _locationStatusChangeRecordRepository = locationStatusChangeRecordRepository; _boxingInfoRepository = boxingInfoRepository; _cellStateService = cellStateService; _processApplyService = processApplyService _processApplyService = processApplyService; _areaInfoRepository = areaInfoRepository; } #region å¤é¨æ¥å£æ¹æ³ @@ -195,7 +198,7 @@ // ä¿®æ¹è´§ä½ä¿¡æ¯ä¸ºæè´§ var locationInf = await _locationRepository.QueryFirstAsync(x => x.LocationCode == task.TargetAddress); locationInf.LocationStatus = (int)LocationEnum.Lock; locationInf.LocationStatus = (int)LocationEnum.InStock; LogFactory.GetLog("ä»»å¡å®æ").InfoFormat(true, "å ¥åºä»»å¡å®æ", $"è´§ä½å°åï¼{task.TargetAddress},ä¿®æ¹åè´§ä½æ°æ®ï¼{locationInf}"); @@ -241,7 +244,7 @@ if (stock == null) { LogFactory.GetLog("ä»»å¡å®æ").InfoFormat(true, "åºåä¸åå¨åå¨ï¼å¤ææ¯å¦æ¯å ¥åºä»»å¡", $"{task.TaskType}"); if (task.TaskType == (int)TaskTypeEnum.Inbound) if (task.TaskType == (int)TaskInboundTypeEnum.Inbound) { LogFactory.GetLog("ä»»å¡å®æ").InfoFormat(true, "å ¥åºä»»å¡", ""); return await CompleteInboundTaskAsync(task); @@ -254,7 +257,7 @@ } LogFactory.GetLog("ä»»å¡å®æ").InfoFormat(true, "éªè¯åºåæ¯å¦åå¨", JsonConvert.SerializeObject(stock)); if (task.TaskType == (int)TaskTypeEnum.Outbound) if (task.TaskType == (int)TaskOutboundTypeEnum.Outbound) { LogFactory.GetLog("ä»»å¡å®æ").InfoFormat(true, "åºåºä»»å¡", ""); if (task.TaskState == TaskOutStatusEnum.SC_OutExecuting.ObjToInt()) @@ -291,65 +294,156 @@ /// <returns>å å«ä»»å¡ä¿¡æ¯çååºå 容</returns> public async Task<WebResponseContent> RequestTaskAsync(RequestTaskDto input) { // å建ä¸ä¸ªWebResponseContent对象 WebResponseContent content = new WebResponseContent(); try { // æ ¹æ®æçè·ååºåä¿¡æ¯ //var stockInfo = await _stockInfoRepository.QueryFirstAsync(x => x.PalletCode == input.PalletCode); // å建ä¸ä¸ªTrayCellsStatusDto对象ï¼å¹¶èµå¼ TrayCellsStatusDto trayCells = new TrayCellsStatusDto() { TrayBarcode = input.PalletCode }; content = await _cellStateService.GetTrayCellStatusAsync(trayCells); if (content.Status) { ResultTrayCellsStatus result = JsonConvert.DeserializeObject<ResultTrayCellsStatus>(content.Data.ToString()); ProcessApplyDto process = new ProcessApplyDto() { WipOrderNo = result.BindCode, SerialNos = result.SerialNos.Select(item => new SerialNos { SerialNo = item.SerialNo }).ToList() }; content = await _processApplyService.GetProcessApplyAsync(process); if (content.Status) { var X = SqlSugarHelper.Db.Queryable<Dt_EquipmentProcess>().Where(x => x.EquipmentType == "CH").ToList(); } // è°ç¨GetTrayCellStatusAsyncæ¹æ³ï¼è·åæ´ççµè¯ content = await GetTrayCellStatusAsync(trayCells); // å¦æç¶æä¸ºfalseï¼åè¿åcontent if (!content.Status) return content; } // è°ç¨GetProcessApplyAsyncæ¹æ³ï¼è·åå·¥èºç³è¯· ProcessApplyDto process = await GetProcessApplyAsync(content); // 妿process为nullï¼åè¿åcontent if (process == null) return content; // è·åä»åºåºåä¿¡æ¯ var areaInfo = await _wareAreaInfoRepository.QueryFirstAsync(x => x.WareAreaCode == input.AreaCode); // è°ç¨GetProcessResponseAsyncæ¹æ³ï¼è·åå·¥èºååº var processResponse = await GetProcessResponseAsync(process, input.Position); // æ¥è¯¢æ¯å¦å·²æä»»å¡ // è°ç¨BaseDal.QueryFirstAsyncæ¹æ³ï¼æ¥è¯¢ä»»å¡ var task = await BaseDal.QueryFirstAsync(x => x.PalletCode == input.PalletCode); if (task != null) { // æ´æ°ç°æä»»å¡ content = await UpdateExistingTask(input, areaInfo.AreaID, task); } else { // å建æ°ä»»å¡ content = await CreateNewTask(input, areaInfo.AreaID); } // 妿taskä¸ä¸ºnullï¼åè°ç¨UpdateExistingTaskæ¹æ³ï¼æ´æ°ä»»å¡ï¼å¦åè°ç¨CreateNewTaskæ¹æ³ï¼å建æ°ä»»å¡ content = task != null ? await UpdateExistingTask(input, task) : await CreateNewTask(processResponse, input); } catch (Exception err) { // é误å¤ç // 妿åçå¼å¸¸ï¼åè°ç¨content.Erroræ¹æ³ï¼è®°å½é误信æ¯ï¼å¹¶è¾åºéè¯¯ä¿¡æ¯ content.Error(err.Message); Console.WriteLine(err.Message); } // è¿åcontent return content; } // è·åæçåå æ ¼ç¶æ private async Task<WebResponseContent> GetTrayCellStatusAsync(TrayCellsStatusDto trayCells) { // è°ç¨_cellStateService.GetTrayCellStatusAsyncæ¹æ³ï¼è·åæçåå æ ¼ç¶æ return await _cellStateService.GetTrayCellStatusAsync(trayCells); } // è·åå·¥èºç³è¯· private async Task<ProcessApplyDto> GetProcessApplyAsync(WebResponseContent content) { // å¦æç¶æä¸ºfalseï¼åè¿ånull if (!content.Status) return null; // å°content.Data转æ¢ä¸ºResultTrayCellsStatus对象 var result = JsonConvert.DeserializeObject<ResultTrayCellsStatus>(content.Data.ToString()); // å建ä¸ä¸ªProcessApplyDto对象ï¼å¹¶èµå¼ return new ProcessApplyDto() { WipOrderNo = result.BindCode, SerialNos = result.SerialNos.Select(item => new SerialNos { SerialNo = item.SerialNo }).ToList() }; } // è·åå·¥èºååº private async Task<List<Dt_EquipmentProcess>> GetProcessResponseAsync(ProcessApplyDto process, string position) { // 妿process为nullï¼åè¿ånull if (process == null) return null; // è°ç¨_processApplyService.GetProcessApplyAsyncæ¹æ³ï¼è·åå·¥èºç³è¯· WebResponseContent content = await _processApplyService.GetProcessApplyAsync(process); // å¦æç¶æä¸ºfalseï¼åè¿ånull if (!content.Status) return null; // å°content.Data转æ¢ä¸ºResultProcessApply对象 var apply = JsonConvert.DeserializeObject<ResultProcessApply>(content.Data.ToString()); // æ ¹æ®positionçå¼ï¼è¿åä¸åçDt_EquipmentProcesså表 switch (position) { case "1088": return SqlSugarHelper.Db.Queryable<Dt_EquipmentProcess>() .Where(x => x.EquipmentType == "éå" && x.WipOrderNo == apply.WipOrderNo && x.ProductDesc == apply.ProductNo) .ToList(); default: return new List<Dt_EquipmentProcess>(); } } #endregion 请æ±ä»»å¡ #region 请æ±ç©ºæç public async Task<WebResponseContent> RequestTrayTaskAsync(string position) { WebResponseContent content = new WebResponseContent(); try { var area = _areaInfoRepository.QueryFirst(x => x.AreaCode == "CH"); var stockInfo = _stockInfoRepository.QueryData(x => x.Remark == area.AreaCode && x.StockInfoDetails.Any(z => z.MaterielCode == "空æç")).OrderBy(x => x.CreateDate).FirstOrDefault(); // å建æ°ä»»å¡å®ä¾ var task = new Dt_Task { CurrentAddress = stockInfo.LocationCode, Grade = 1, Roadway = stockInfo.LocationInfo.RoadwayNo, TargetAddress = position, Dispatchertime = DateTime.Now, MaterialNo = "", NextAddress = position, OrderNo = null, PalletCode = stockInfo.PalletCode, SourceAddress = stockInfo.LocationCode, TaskState = (int)TaskOutStatusEnum.OutNew, TaskType = (int)TaskOutboundTypeEnum.OutTray, TaskNum = await BaseDal.GetTaskNo(), Creater = "Systeam" }; var taskId = await BaseDal.AddDataAsync(task); bool isResult = taskId > 0; if (isResult) { WMSTaskDTO taskDTO = new WMSTaskDTO() { TaskNum = task.TaskNum.Value, Grade = 1, PalletCode = DateTime.Now.ToString("MMddHHmmss"), RoadWay = task.Roadway, SourceAddress = stockInfo.LocationCode, TargetAddress = task.Roadway, TaskState = (int)TaskOutStatusEnum.OutNew, Id = 0, TaskType = (int)TaskOutboundTypeEnum.OutTray }; content.OK(data: taskDTO); } } catch (Exception ex) { throw; } return content; } #endregion 请æ±ç©ºæç #endregion å¤é¨æ¥å£æ¹æ³ @@ -640,7 +734,7 @@ /// <param name="task">ä»»å¡å®ä¾</param> /// <param name="content">ååºå 容</param> /// <returns></returns> private async Task<WebResponseContent> UpdateExistingTask(RequestTaskDto input, int areaId, Dt_Task task) private async Task<WebResponseContent> UpdateExistingTask(RequestTaskDto input, Dt_Task task) { // å建WebResponseContent对象 WebResponseContent content = new WebResponseContent(); @@ -652,26 +746,26 @@ int beforeStatus = 0; // æ ¹æ®ä»»å¡ç±»å夿æ¯åºåºä»»å¡è¿æ¯å ¥åºä»»å¡ if (input.Type == (int)TaskTypeEnum.Outbound) { // å¤çåºåºä»»å¡ toAddress = await GetRoadWayAsync(areaId, task.Roadway, input.Direction, input.Area, input.Type); taskState = (int)TaskOutStatusEnum.SC_OutFinish; } else { // å¤çå ¥åºä»»å¡ location = await GetLocationDistributeAsync(areaId, task.Roadway); toAddress = location.LocationCode; taskState = (int)TaskInStatusEnum.Line_InFinish; beforeStatus = location.LocationStatus; //if (input.Type == (int)TaskTypeEnum.Outbound) //{ // // å¤çåºåºä»»å¡ // toAddress = await GetRoadWayAsync(areaId, task.Roadway, input.Direction, input.Area, input.Type); // taskState = (int)TaskOutStatusEnum.SC_OutFinish; //} //else //{ // å¤çå ¥åºä»»å¡ location = await GetLocationDistributeAsync(task.Roadway); toAddress = location.LocationCode; taskState = (int)TaskInStatusEnum.Line_InFinish; beforeStatus = location.LocationStatus; // æ´æ°è´§ä½ä¿¡æ¯ location.LocationStatus = (int)LocationEnum.Lock; } // æ´æ°è´§ä½ä¿¡æ¯ location.LocationStatus = (int)LocationEnum.Lock; //} // æ´æ°ä»»å¡ä¿¡æ¯ task.SourceAddress = input.Position; //task.SourceAddress = input.Position; task.CurrentAddress = input.Position; task.TargetAddress = toAddress; task.NextAddress = toAddress; @@ -686,23 +780,21 @@ // å°è¯æ´æ°ä»»å¡ bool isResult = await BaseDal.UpdateDataAsync(task); bool isTaskDetail = await _taskExecuteDetailRepository.AddDetailAsync(task, false, TaskDescription.GetTaskUpdateDescription(task.PalletCode, original, input.Position, TaskInStatusEnum.Line_InFinish.GetIntegralRuleTypeEnumDesc())); if (input.Type != (int)TaskTypeEnum.Outbound) // å建LocationChangeRecordDto对象 LocationChangeRecordDto changeRecordDto = new LocationChangeRecordDto() { // å建LocationChangeRecordDto对象 LocationChangeRecordDto changeRecordDto = new LocationChangeRecordDto() { // 设置åé AfterStatus = location.LocationStatus, BeforeStatus = beforeStatus, TaskNum = task.TaskNum.Value, LocationId = location.Id, LocationCode = location.LocationCode, ChangeType = (int)StatusChangeTypeEnum.AutomaticStorage, }; // æ´æ°ä½ç½®ç¶æ isUpdateChange = _locationStatusChangeRecordRepository.AddStatusChangeRecord(changeRecordDto); isUpdateLo = await _locationRepository.UpdateDataAsync(location); } // 设置åé AfterStatus = location.LocationStatus, BeforeStatus = beforeStatus, TaskNum = task.TaskNum.Value, LocationId = location.Id, LocationCode = location.LocationCode, ChangeType = (int)StatusChangeTypeEnum.AutomaticStorage, }; // æ´æ°ä½ç½®ç¶æ isUpdateChange = _locationStatusChangeRecordRepository.AddStatusChangeRecord(changeRecordDto); isUpdateLo = await _locationRepository.UpdateDataAsync(location); if (isResult && isUpdateLo && isTaskDetail) { @@ -726,11 +818,12 @@ /// <param name="areaId">åºåID</param> /// <param name="content">ååºå 容</param> /// <returns></returns> private async Task<WebResponseContent> CreateNewTask(RequestTaskDto input, int areaId) private async Task<WebResponseContent> CreateNewTask(List<Dt_EquipmentProcess> process, RequestTaskDto input) { WebResponseContent content = new WebResponseContent(); List<string> strings = process.Select(x => x.EquipmentName).ToList(); // è·åç®æ å°å string ToAddress = await GetRoadWayAsync(areaId, input.Position, input.Direction, input.Area, input.Type); string ToAddress = await GetRoadWayAsync(strings); // å建æ°ä»»å¡å®ä¾ var task = new Dt_Task @@ -765,7 +858,7 @@ Grade = 1, PalletCode = DateTime.Now.ToString("MMddHHmmss"), RoadWay = task.Roadway, SourceAddress = "001-001-001", SourceAddress = input.Position, TargetAddress = task.Roadway, TaskState = (int)TaskInStatusEnum.InNew, Id = 0, @@ -787,13 +880,13 @@ /// <param name="areaId">åºå主é®</param> /// <param name="roadWay">å··é</param> /// <returns></returns> public async Task<DtLocationInfo> GetLocationDistributeAsync(int areaId, string roadWay) public async Task<DtLocationInfo> GetLocationDistributeAsync(string roadWay) { #region è·åè´§ä½ try { var locations = await _locationRepository.QueryDataAsync(x => x.AreaId == areaId && x.LocationStatus == (int)LocationEnum.Free && x.RoadwayNo == roadWay); var locations = await _locationRepository.QueryDataAsync(x => x.LocationStatus == (int)LocationEnum.Free && x.RoadwayNo == roadWay); if (locations == null) { return null; @@ -818,36 +911,16 @@ /// <param name="Direction">æ¹å</param> /// <param name="area">å ³ç³»åºå</param> /// <returns></returns> public async Task<string> GetRoadWayAsync(int areaId, string position, string Direction, string area, int type) public async Task<string> GetRoadWayAsync(List<string> process) { var point = new PointStackerRelation(); if (type == (int)TaskTypeEnum.Inbound) { point = await _pointStackerRelationRepository.QueryFirstAsync(x => x.Direction == Direction && x.PointCode == position && x.Area == area); if (point == null) { return null; } var locationInfos = await _locationRepository.QueryDataAsync(x => x.AreaId == areaId && point.StackerCode.Contains(x.RoadwayNo)); var groupWithMinCount = locationInfos.GroupBy(x => x.RoadwayNo).OrderBy(x => x.Count()).FirstOrDefault(); var minGroup = _locationRepository.QueryData(x => process.Contains(x.RoadwayNo) && x.LocationStatus == (int)LocationEnum.Free) .GroupBy(x => x.RoadwayNo) .OrderBy(g => g.Count()) // æ ¹æ®æ¯ä¸ªç»çå ç´ æ°éæåº .First(); // ååºæ°éæå°çç» if (groupWithMinCount != null) return groupWithMinCount.Key; else return null; } else if (type == (int)TaskTypeEnum.Outbound) { point = await _pointStackerRelationRepository.QueryFirstAsync(x => x.Direction == Direction && position == x.StackerCode && x.Area == area); if (point == null) { return null; } string minRoadwayNo = minGroup.Key; // æ°éæå°çç»çKey string station = point.PointCodeList[0]; var rList = point.PointCodeList; rList.Remove(station); rList.Add(station); point.PointCodeList = rList; return station; } else { return null; } return minRoadwayNo; } #endregion ä»»å¡è¯·æ±æ¹æ³ Code Management/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Integration/CellStateController.cs
@@ -22,7 +22,7 @@ // POST: api/CellState/GetTrayCellState [HttpPost("GetTrayCellState")] public Task<dynamic> GetTrayCellStateAsync([FromBody] TrayCellsStatusDto input) public Task<WebResponseContent> GetTrayCellStateAsync([FromBody] TrayCellsStatusDto input) { return _cellStateService.GetTrayCellStatusAsync(input); } Code Management/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/Integration/ProcessApplyController.cs
@@ -21,8 +21,8 @@ /// <returns></returns> // POST: api/ProcessApply/ProcessApply [HttpPost("ProcessApply")] public async Task<dynamic> ProcessApplyAsync([FromBody] ProcessApplyDto input) public async Task<WebResponseContent> ProcessApplyAsync([FromBody] ProcessApplyDto input) { return await _processApplyService.ProcessApplyAsync(input); return await _processApplyService.GetProcessApplyAsync(input); } } Code Management/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/TaskController.cs
@@ -23,9 +23,9 @@ } /// <summary> /// åºåºä»»å¡å®æ /// ä»»å¡å®æ /// </summary> /// <param name="saveModel">åºåºæ°æ®</param> /// <param name="saveModel">ä»»å¡å·</param> /// <returns>æåæå¤±è´¥</returns> [HttpGet, Route("CompleteTaskAsync"), AllowAnonymous] public async Task<WebResponseContent> CompleteTaskAsync(int taskNum) @@ -54,4 +54,15 @@ { return await Service.RequestTaskAsync(input); } /// <summary> /// 空æçè¯·æ± /// </summary> /// <param name="input">è¯·æ±æ°æ®</param> /// <returns></returns> [HttpPost, AllowAnonymous, Route("RequestTrayTaskAsync")] public async Task<WebResponseContent> RequestTrayTaskAsync([FromBody] string position) { return await Service.RequestTrayTaskAsync(position); } } Code Management/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/bin/Debug/net6.0/WIDESEA_WMSServer.xml
ÎļþÒÑɾ³ý Code Management/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/obj/Debug/net6.0/WIDESEA_WMSServer.xml
ÎļþÒÑɾ³ý