diff --git a/Admin.Core.FrameWork/obj/Debug/netcoreapp3.1/Admin.Core.FrameWork.GeneratedMSBuildEditorConfig.editorconfig b/Admin.Core.FrameWork/obj/Debug/netcoreapp3.1/Admin.Core.FrameWork.GeneratedMSBuildEditorConfig.editorconfig
index 5decb385..34f11e1e 100644
--- a/Admin.Core.FrameWork/obj/Debug/netcoreapp3.1/Admin.Core.FrameWork.GeneratedMSBuildEditorConfig.editorconfig
+++ b/Admin.Core.FrameWork/obj/Debug/netcoreapp3.1/Admin.Core.FrameWork.GeneratedMSBuildEditorConfig.editorconfig
@@ -1,3 +1,3 @@
is_global = true
build_property.RootNamespace = Admin.Core.FrameWork
-build_property.ProjectDir = E:\桌面\AUCMA_SCADA\Admin.Core.FrameWork\
+build_property.ProjectDir = D:\Project\gitea\AUCMA\SCADA\Admin.Core.FrameWork\
diff --git a/Admin.Core.Model/Model_New/RecordSidePanelComplate.cs b/Admin.Core.Model/Model_New/RecordSidePanelComplate.cs
index 97e9d77a..81a0f85f 100644
--- a/Admin.Core.Model/Model_New/RecordSidePanelComplate.cs
+++ b/Admin.Core.Model/Model_New/RecordSidePanelComplate.cs
@@ -16,8 +16,8 @@ namespace Admin.Core.Model
///
/// 主键标识
///
- //[SugarColumn(ColumnName = "OBJ_ID", IsPrimaryKey = true, OracleSequenceName = "SEQ_RECORD_SIDEPANEL_COMPLATE")]
- [SugarColumn(ColumnName = "OBJ_ID", IsPrimaryKey = true, IsIdentity = true)]
+ [SugarColumn(ColumnName = "OBJ_ID", IsPrimaryKey = true, OracleSequenceName = "SEQ_RECORD_SIDEPANEL_COMPLATE")]
+ //[SugarColumn(ColumnName = "OBJ_ID", IsPrimaryKey = true, IsIdentity = true)]
public int ObjId { get; set; }
///
/// 计划编号
@@ -39,25 +39,25 @@ namespace Admin.Core.Model
///
[SugarColumn(ColumnName = "COMPLETE_AMOUNT")]
public int CompleteAmount { get; set; }
-
+
///
/// 下线数量
///
[SugarColumn(ColumnName = "OFFLINE_AMOUNT")]
public int OffLineAmount { get; set; }
-
+
///
/// 实际产量
///
[SugarColumn(ColumnName = "OUTPUT_AMOUNT")]
public int OutPutAmount { get; set; }
-
+
[SugarColumn(ColumnName = "DEVICE_STATUS")]
- public string DeviceStatus { get; set; }
-
+ public decimal? DeviceStatus { get; set; }
+
[SugarColumn(ColumnName = "PRODUCTION_BEAT")]
- public string ProductionBeat { get; set; }
-
+ public decimal? ProductionBeat { get; set; }
+
///
/// 记录时间
///
@@ -67,6 +67,6 @@ namespace Admin.Core.Model
/// 是否标识
///
[SugarColumn(ColumnName = "IS_FLAG")]
- public string IsFlag { get; set; }
+ public decimal? IsFlag { get; set; }
}
}
diff --git a/Admin.Core.RealTimeService/obj/Debug/net6.0/Admin.Core.RealTimeService.GeneratedMSBuildEditorConfig.editorconfig b/Admin.Core.RealTimeService/obj/Debug/net6.0/Admin.Core.RealTimeService.GeneratedMSBuildEditorConfig.editorconfig
index abc27d01..ce84cb9f 100644
--- a/Admin.Core.RealTimeService/obj/Debug/net6.0/Admin.Core.RealTimeService.GeneratedMSBuildEditorConfig.editorconfig
+++ b/Admin.Core.RealTimeService/obj/Debug/net6.0/Admin.Core.RealTimeService.GeneratedMSBuildEditorConfig.editorconfig
@@ -8,4 +8,4 @@ build_property.PlatformNeutralAssembly =
build_property.EnforceExtendedAnalyzerRules =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = Admin.Core.RealTimeService
-build_property.ProjectDir = E:\桌面\AUCMA_SCADA\Admin.Core.RealTimeService\
+build_property.ProjectDir = D:\Project\gitea\AUCMA\SCADA\Admin.Core.RealTimeService\
diff --git a/Admin.Core.Serilog.Es/obj/Debug/net6.0/Admin.Core.Serilog.Es.GeneratedMSBuildEditorConfig.editorconfig b/Admin.Core.Serilog.Es/obj/Debug/net6.0/Admin.Core.Serilog.Es.GeneratedMSBuildEditorConfig.editorconfig
index a3d7d5ba..a581a844 100644
--- a/Admin.Core.Serilog.Es/obj/Debug/net6.0/Admin.Core.Serilog.Es.GeneratedMSBuildEditorConfig.editorconfig
+++ b/Admin.Core.Serilog.Es/obj/Debug/net6.0/Admin.Core.Serilog.Es.GeneratedMSBuildEditorConfig.editorconfig
@@ -8,4 +8,4 @@ build_property.PlatformNeutralAssembly =
build_property.EnforceExtendedAnalyzerRules =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = Admin.Core.Serilog.Es
-build_property.ProjectDir = E:\桌面\AUCMA_SCADA\Admin.Core.Serilog.Es\
+build_property.ProjectDir = D:\Project\gitea\AUCMA\SCADA\Admin.Core.Serilog.Es\
diff --git a/Aucma.Core.HwPLc/Impl/MelsecPlc.cs b/Aucma.Core.HwPLc/Impl/MelsecPlc.cs
index 4ac238a4..a6648ecc 100644
--- a/Aucma.Core.HwPLc/Impl/MelsecPlc.cs
+++ b/Aucma.Core.HwPLc/Impl/MelsecPlc.cs
@@ -76,7 +76,7 @@ namespace Aucma.Core.HwPLc
///
public bool Connect(string iP, int port)
{
- melsecMcNet.IpAddress = iP;//正式环境开启
+ //melsecMcNet.IpAddress = iP;//正式环境开启
melsecMcNet.Port = port;
// 如果网络不太理想,配置了两个端口,一个有问题,立即切换另一个的话,可以配置如下的代码
diff --git a/Aucma.Core.OldBoxFoam/appsettings.json b/Aucma.Core.OldBoxFoam/appsettings.json
index 969fa5ea..d296f800 100644
--- a/Aucma.Core.OldBoxFoam/appsettings.json
+++ b/Aucma.Core.OldBoxFoam/appsettings.json
@@ -226,7 +226,7 @@
"Enabled": true,
"EquipName": "OldMelsecPlc4",
"IP": "10.10.93.154",
- "Port": 5002
+ "Port": 5003
}
],
"IpRateLimiting": {
diff --git a/Aucma.Core.PrintTo/ViewModels/IndexPageViewModel.cs b/Aucma.Core.PrintTo/ViewModels/IndexPageViewModel.cs
index 3073e1b6..69fb702c 100644
--- a/Aucma.Core.PrintTo/ViewModels/IndexPageViewModel.cs
+++ b/Aucma.Core.PrintTo/ViewModels/IndexPageViewModel.cs
@@ -371,7 +371,7 @@ namespace Aucma.Core.PrintTo.ViewModels
select c;
foreach (var item in query)
{
- if ( = null) { }
+ if ( item == null) { }
GetParentID(treeNodes, item.MaterialCode);
treeNodes.Add(item);
}
diff --git a/Aucma.Core.SheetMetal/Business/SheetMetalPlanTaskHandle.cs b/Aucma.Core.SheetMetal/Business/SheetMetalPlanTaskHandle.cs
index 6c90b693..cb6b9d57 100644
--- a/Aucma.Core.SheetMetal/Business/SheetMetalPlanTaskHandle.cs
+++ b/Aucma.Core.SheetMetal/Business/SheetMetalPlanTaskHandle.cs
@@ -365,7 +365,7 @@ public class SheetMetalPlanTaskHandle
}
//先查询该计划编号下的前一条完工记录,如果不存在本条记录产量为0
- List sidePanelComplates = _sidePanelComplateServices.Query(x => x.ProductlineCode == "1001" && x.PlanCode == planCode.Substring(0, 16));
+ List sidePanelComplates = _sidePanelComplateServices.QueryAsync(x => x.ProductlineCode == "1001" && x.PlanCode == planCode.Substring(0, 16)).Result;
int lastComplateAmount = 0; //前一条完成记录的计划完成数量
int sumComplateAmount = 0; //当前计划总产量
if (sidePanelComplates != null)
@@ -551,7 +551,7 @@ public class SheetMetalPlanTaskHandle
}
else
{
- List planInfos = _executePlanInfoServices.Query(x => x.TaskCode == planCode.Substring(0, 16) && x.ExecuteStatus == 2);
+ List planInfos = _executePlanInfoServices.QueryAsync(x => x.TaskCode == planCode.Substring(0, 16) && x.ExecuteStatus == 2).Result;
if (planInfos != null)
{
if (planInfos.Count > 0)
diff --git a/Aucma.Core.SheetMetal/ViewModels/IndexPageViewModel.cs b/Aucma.Core.SheetMetal/ViewModels/IndexPageViewModel.cs
index 708fba53..a83faea0 100644
--- a/Aucma.Core.SheetMetal/ViewModels/IndexPageViewModel.cs
+++ b/Aucma.Core.SheetMetal/ViewModels/IndexPageViewModel.cs
@@ -65,10 +65,7 @@ namespace Aucma.Core.SheetMetal.ViewModels
}
SelectLocation = ReadFile();
_taskHandle.RefreshCurrentPlanInfoEvent += RefreshCurrentPlanInfo;
- Task.Run(() =>
- {
- _taskHandle.InitSendPlan();
- });
+
}
#endregion
diff --git a/Aucma.Core.SheetMetal/ViewModels/MainWindowViewModel.cs b/Aucma.Core.SheetMetal/ViewModels/MainWindowViewModel.cs
index 04719c97..65a99b7c 100644
--- a/Aucma.Core.SheetMetal/ViewModels/MainWindowViewModel.cs
+++ b/Aucma.Core.SheetMetal/ViewModels/MainWindowViewModel.cs
@@ -13,6 +13,8 @@ using System.IO;
using Aucma.Core.PLc;
using Aucma.Core.Scanner;
using System.Linq;
+using System.Threading.Tasks;
+using Aucma.Core.SheetMetal.Business;
namespace Aucma.Core.SheetMetal.ViewModels
{
@@ -22,11 +24,18 @@ namespace Aucma.Core.SheetMetal.ViewModels
private IndexPageView firstPage = new IndexPageView();//首页
private LogPageView logPage = new LogPageView();//日志
private StatisticsPageView statisticsPage = new StatisticsPageView();//统计
-
+ private SheetMetalPlanTaskHandle _taskHandle = new SheetMetalPlanTaskHandle();
+
public MainWindowViewModel()
{
UserContent = firstPage;
init();
+ Task.Run(() =>
+ {
+ //_taskHandle.InitSendPlanData();
+ _taskHandle.InitSendPlan();
+
+ });
}
public void init()
{
diff --git a/Aucma.Core.SheetMetal/appsettings.json b/Aucma.Core.SheetMetal/appsettings.json
index 70b2eed7..9bba7ef7 100644
--- a/Aucma.Core.SheetMetal/appsettings.json
+++ b/Aucma.Core.SheetMetal/appsettings.json
@@ -134,7 +134,7 @@
"Id": 2,
"EquipName": "BackPanelPLC",
"PlcType": "Melsec",
- "Enabled": false,
+ "Enabled": true,
"IP": "127.0.0.1",
"Port": 6001
}
diff --git a/HwControlLib/bin/Debug/net6.0-windows/HwControlLib.dll b/HwControlLib/bin/Debug/net6.0-windows/HwControlLib.dll
index 914b0885..bb9cc798 100644
Binary files a/HwControlLib/bin/Debug/net6.0-windows/HwControlLib.dll and b/HwControlLib/bin/Debug/net6.0-windows/HwControlLib.dll differ
diff --git a/HwControlLib/bin/Debug/net6.0-windows/HwControlLib.pdb b/HwControlLib/bin/Debug/net6.0-windows/HwControlLib.pdb
index afa0f38e..e11f8d6b 100644
Binary files a/HwControlLib/bin/Debug/net6.0-windows/HwControlLib.pdb and b/HwControlLib/bin/Debug/net6.0-windows/HwControlLib.pdb differ