diff --git a/.vs/MQTT-Winform/CopilotIndices/17.14.1290.42047/CodeChunks.db b/.vs/MQTT-Winform/CopilotIndices/17.14.1290.42047/CodeChunks.db index 5d79b69..8d9c8d1 100644 Binary files a/.vs/MQTT-Winform/CopilotIndices/17.14.1290.42047/CodeChunks.db and b/.vs/MQTT-Winform/CopilotIndices/17.14.1290.42047/CodeChunks.db differ diff --git a/.vs/MQTT-Winform/CopilotIndices/17.14.1290.42047/CodeChunks.db-wal b/.vs/MQTT-Winform/CopilotIndices/17.14.1290.42047/CodeChunks.db-wal index 786320b..77e99be 100644 Binary files a/.vs/MQTT-Winform/CopilotIndices/17.14.1290.42047/CodeChunks.db-wal and b/.vs/MQTT-Winform/CopilotIndices/17.14.1290.42047/CodeChunks.db-wal differ diff --git a/.vs/MQTT-Winform/CopilotIndices/17.14.1290.42047/SemanticSymbols.db-wal b/.vs/MQTT-Winform/CopilotIndices/17.14.1290.42047/SemanticSymbols.db-wal index 07c1ef9..0593e73 100644 Binary files a/.vs/MQTT-Winform/CopilotIndices/17.14.1290.42047/SemanticSymbols.db-wal and b/.vs/MQTT-Winform/CopilotIndices/17.14.1290.42047/SemanticSymbols.db-wal differ diff --git a/.vs/MQTT-Winform/v17/.suo b/.vs/MQTT-Winform/v17/.suo index a4cdbd4..d3bbb49 100644 Binary files a/.vs/MQTT-Winform/v17/.suo and b/.vs/MQTT-Winform/v17/.suo differ diff --git a/.vs/MQTT-Winform/v17/DocumentLayout.backup.json b/.vs/MQTT-Winform/v17/DocumentLayout.backup.json index f7a334b..9ff256a 100644 --- a/.vs/MQTT-Winform/v17/DocumentLayout.backup.json +++ b/.vs/MQTT-Winform/v17/DocumentLayout.backup.json @@ -2,30 +2,34 @@ "Version": 1, "WorkspaceRootPath": "F:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_FistFinalDataMove\\", "Documents": [ - { - "AbsoluteMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|f:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_fistfinaldatamove\\mqtt-winformv1\\formdatazf.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", - "RelativeMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|solutionrelative:mqtt-winformv1\\formdatazf.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" - }, - { - "AbsoluteMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|F:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_FistFinalDataMove\\mqtt-winformv1\\formdatazf.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form", - "RelativeMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|solutionrelative:mqtt-winformv1\\formdatazf.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form" - }, - { - "AbsoluteMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|F:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_FistFinalDataMove\\mqtt-winformv1\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form", - "RelativeMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|solutionrelative:mqtt-winformv1\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form" - }, { "AbsoluteMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|F:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_FistFinalDataMove\\mqtt-winformv1\\service\\datauploadservice.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", "RelativeMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|solutionrelative:mqtt-winformv1\\service\\datauploadservice.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" }, + { + "AbsoluteMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|f:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_fistfinaldatamove\\mqtt-winformv1\\formdatazf.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|solutionrelative:mqtt-winformv1\\formdatazf.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, { "AbsoluteMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|F:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_FistFinalDataMove\\mqtt-winformv1\\model\\globalstatic.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", "RelativeMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|solutionrelative:mqtt-winformv1\\model\\globalstatic.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" }, + { + "AbsoluteMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|F:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_FistFinalDataMove\\mqtt-winformv1\\formdatazf.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form", + "RelativeMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|solutionrelative:mqtt-winformv1\\formdatazf.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form" + }, { "AbsoluteMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|F:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_FistFinalDataMove\\mqtt-winformv1\\formdatazf.designer.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", "RelativeMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|solutionrelative:mqtt-winformv1\\formdatazf.designer.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" }, + { + "AbsoluteMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|F:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_FistFinalDataMove\\mqtt-winformv1\\model\\yidamodel.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|solutionrelative:mqtt-winformv1\\model\\yidamodel.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, + { + "AbsoluteMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|F:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_FistFinalDataMove\\mqtt-winformv1\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form", + "RelativeMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|solutionrelative:mqtt-winformv1\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form" + }, { "AbsoluteMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|F:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_FistFinalDataMove\\mqtt-winformv1\\mqttclientservice.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", "RelativeMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|solutionrelative:mqtt-winformv1\\mqttclientservice.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" @@ -34,10 +38,6 @@ "AbsoluteMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|F:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_FistFinalDataMove\\mqtt-winformv1\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", "RelativeMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|solutionrelative:mqtt-winformv1\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" }, - { - "AbsoluteMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|F:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_FistFinalDataMove\\mqtt-winformv1\\model\\yidamodel.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", - "RelativeMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|solutionrelative:mqtt-winformv1\\model\\yidamodel.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" - }, { "AbsoluteMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|F:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_FistFinalDataMove\\mqtt-winformv1\\model\\finaldatamachine.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", "RelativeMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|solutionrelative:mqtt-winformv1\\model\\finaldatamachine.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" @@ -70,17 +70,17 @@ "DocumentGroups": [ { "DockedWidth": 323, - "SelectedChildIndex": 5, + "SelectedChildIndex": 6, "Children": [ { "$type": "Document", - "DocumentIndex": 4, + "DocumentIndex": 2, "Title": "Globalstatic.cs", "DocumentMoniker": "F:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_FistFinalDataMove\\MQTT-WinformV1\\Model\\Globalstatic.cs", "RelativeDocumentMoniker": "MQTT-WinformV1\\Model\\Globalstatic.cs", "ToolTip": "F:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_FistFinalDataMove\\MQTT-WinformV1\\Model\\Globalstatic.cs", "RelativeToolTip": "MQTT-WinformV1\\Model\\Globalstatic.cs", - "ViewState": "AgIAAAAAAAAAAAAAAAAAAAQAAAAdAAAAAAAAAA==", + "ViewState": "AgIAAA0AAAAAAAAAAADgvx0AAAAdAAAAAAAAAA==", "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", "WhenOpened": "2025-10-23T02:02:31.977Z", "IsPinned": true, @@ -88,7 +88,7 @@ }, { "$type": "Document", - "DocumentIndex": 8, + "DocumentIndex": 5, "Title": "YIDAModel.cs", "DocumentMoniker": "F:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_FistFinalDataMove\\MQTT-WinformV1\\Model\\YIDAModel.cs", "RelativeDocumentMoniker": "MQTT-WinformV1\\Model\\YIDAModel.cs", @@ -97,7 +97,8 @@ "ViewState": "AgIAAJ4AAAAAAAAAAAAswKQAAAAnAAAAAAAAAA==", "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", "WhenOpened": "2025-10-23T02:03:23.018Z", - "IsPinned": true + "IsPinned": true, + "EditorCaption": "" }, { "$type": "Bookmark", @@ -109,7 +110,7 @@ }, { "$type": "Document", - "DocumentIndex": 1, + "DocumentIndex": 3, "Title": "FormDataZF.cs [\u8BBE\u8BA1]", "DocumentMoniker": "F:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_FistFinalDataMove\\MQTT-WinformV1\\FormDataZF.cs", "RelativeDocumentMoniker": "MQTT-WinformV1\\FormDataZF.cs", @@ -121,46 +122,46 @@ }, { "$type": "Document", - "DocumentIndex": 0, + "DocumentIndex": 1, "Title": "FormDataZF.cs", "DocumentMoniker": "F:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_FistFinalDataMove\\MQTT-WinformV1\\FormDataZF.cs", "RelativeDocumentMoniker": "MQTT-WinformV1\\FormDataZF.cs", "ToolTip": "F:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_FistFinalDataMove\\MQTT-WinformV1\\FormDataZF.cs", "RelativeToolTip": "MQTT-WinformV1\\FormDataZF.cs", - "ViewState": "AgIAAGQAAAAAAAAAAAAtwGgAAAAVAAAAAAAAAA==", + "ViewState": "AgIAADEAAAAAAAAAAIA+wD4AAAAQAAAAAAAAAA==", "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", "WhenOpened": "2025-12-08T08:58:07.402Z", "EditorCaption": "" }, { "$type": "Document", - "DocumentIndex": 3, + "DocumentIndex": 0, "Title": "DataUploadService.cs", "DocumentMoniker": "F:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_FistFinalDataMove\\MQTT-WinformV1\\Service\\DataUploadService.cs", "RelativeDocumentMoniker": "MQTT-WinformV1\\Service\\DataUploadService.cs", "ToolTip": "F:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_FistFinalDataMove\\MQTT-WinformV1\\Service\\DataUploadService.cs", "RelativeToolTip": "MQTT-WinformV1\\Service\\DataUploadService.cs", - "ViewState": "AgIAABIAAAAAAAAAAAAAAC8AAAAwAAAAAAAAAA==", + "ViewState": "AgIAACAAAAAAAAAAAAAEwD4AAABvAAAAAAAAAA==", "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", "WhenOpened": "2025-12-08T10:27:41.471Z", "EditorCaption": "" }, { "$type": "Document", - "DocumentIndex": 5, + "DocumentIndex": 4, "Title": "FormDataZF.Designer.cs", "DocumentMoniker": "F:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_FistFinalDataMove\\MQTT-WinformV1\\FormDataZF.Designer.cs", "RelativeDocumentMoniker": "MQTT-WinformV1\\FormDataZF.Designer.cs", "ToolTip": "F:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_FistFinalDataMove\\MQTT-WinformV1\\FormDataZF.Designer.cs", "RelativeToolTip": "MQTT-WinformV1\\FormDataZF.Designer.cs", - "ViewState": "AgIAAGEAAAAAAAAAAAAkwGsAAAAAAAAAAAAAAA==", + "ViewState": "AgIAAAAAAAAAAAAAAAAAABYAAAAIAAAAAAAAAA==", "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", "WhenOpened": "2025-12-08T11:19:40.019Z", "EditorCaption": "" }, { "$type": "Document", - "DocumentIndex": 2, + "DocumentIndex": 6, "Title": "Form1.cs [\u8BBE\u8BA1]", "DocumentMoniker": "F:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_FistFinalDataMove\\MQTT-WinformV1\\Form1.cs", "RelativeDocumentMoniker": "MQTT-WinformV1\\Form1.cs", @@ -172,7 +173,7 @@ }, { "$type": "Document", - "DocumentIndex": 6, + "DocumentIndex": 7, "Title": "MqttClientService.cs", "DocumentMoniker": "F:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_FistFinalDataMove\\MQTT-WinformV1\\MqttClientService.cs", "RelativeDocumentMoniker": "MQTT-WinformV1\\MqttClientService.cs", @@ -185,7 +186,7 @@ }, { "$type": "Document", - "DocumentIndex": 7, + "DocumentIndex": 8, "Title": "Form1.cs", "DocumentMoniker": "F:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_FistFinalDataMove\\MQTT-WinformV1\\Form1.cs", "RelativeDocumentMoniker": "MQTT-WinformV1\\Form1.cs", diff --git a/.vs/MQTT-Winform/v17/DocumentLayout.json b/.vs/MQTT-Winform/v17/DocumentLayout.json index 1e9ee3e..592ea1b 100644 --- a/.vs/MQTT-Winform/v17/DocumentLayout.json +++ b/.vs/MQTT-Winform/v17/DocumentLayout.json @@ -6,25 +6,29 @@ "AbsoluteMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|f:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_fistfinaldatamove\\mqtt-winformv1\\formdatazf.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", "RelativeMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|solutionrelative:mqtt-winformv1\\formdatazf.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" }, + { + "AbsoluteMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|F:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_FistFinalDataMove\\mqtt-winformv1\\formdatazf.designer.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|solutionrelative:mqtt-winformv1\\formdatazf.designer.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, { "AbsoluteMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|F:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_FistFinalDataMove\\mqtt-winformv1\\service\\datauploadservice.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", "RelativeMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|solutionrelative:mqtt-winformv1\\service\\datauploadservice.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" }, - { - "AbsoluteMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|F:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_FistFinalDataMove\\mqtt-winformv1\\formdatazf.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form", - "RelativeMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|solutionrelative:mqtt-winformv1\\formdatazf.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form" - }, - { - "AbsoluteMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|F:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_FistFinalDataMove\\mqtt-winformv1\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form", - "RelativeMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|solutionrelative:mqtt-winformv1\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form" - }, { "AbsoluteMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|F:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_FistFinalDataMove\\mqtt-winformv1\\model\\globalstatic.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", "RelativeMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|solutionrelative:mqtt-winformv1\\model\\globalstatic.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" }, { - "AbsoluteMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|F:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_FistFinalDataMove\\mqtt-winformv1\\formdatazf.designer.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", - "RelativeMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|solutionrelative:mqtt-winformv1\\formdatazf.designer.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + "AbsoluteMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|F:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_FistFinalDataMove\\mqtt-winformv1\\formdatazf.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form", + "RelativeMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|solutionrelative:mqtt-winformv1\\formdatazf.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form" + }, + { + "AbsoluteMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|F:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_FistFinalDataMove\\mqtt-winformv1\\model\\yidamodel.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|solutionrelative:mqtt-winformv1\\model\\yidamodel.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, + { + "AbsoluteMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|F:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_FistFinalDataMove\\mqtt-winformv1\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form", + "RelativeMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|solutionrelative:mqtt-winformv1\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form" }, { "AbsoluteMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|F:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_FistFinalDataMove\\mqtt-winformv1\\mqttclientservice.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", @@ -34,10 +38,6 @@ "AbsoluteMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|F:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_FistFinalDataMove\\mqtt-winformv1\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", "RelativeMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|solutionrelative:mqtt-winformv1\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" }, - { - "AbsoluteMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|F:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_FistFinalDataMove\\mqtt-winformv1\\model\\yidamodel.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", - "RelativeMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|solutionrelative:mqtt-winformv1\\model\\yidamodel.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" - }, { "AbsoluteMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|F:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_FistFinalDataMove\\mqtt-winformv1\\model\\finaldatamachine.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", "RelativeMoniker": "D:0:0:{63E20B1E-AA08-4594-986A-58FF509E940D}|MQTT-WinformV1\\MQTT-WinformV1.csproj|solutionrelative:mqtt-winformv1\\model\\finaldatamachine.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" @@ -74,13 +74,13 @@ "Children": [ { "$type": "Document", - "DocumentIndex": 4, + "DocumentIndex": 3, "Title": "Globalstatic.cs", "DocumentMoniker": "F:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_FistFinalDataMove\\MQTT-WinformV1\\Model\\Globalstatic.cs", "RelativeDocumentMoniker": "MQTT-WinformV1\\Model\\Globalstatic.cs", "ToolTip": "F:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_FistFinalDataMove\\MQTT-WinformV1\\Model\\Globalstatic.cs", "RelativeToolTip": "MQTT-WinformV1\\Model\\Globalstatic.cs", - "ViewState": "AgIAAAAAAAAAAAAAAAAAAAQAAAAdAAAAAAAAAA==", + "ViewState": "AgIAAA0AAAAAAAAAAADgvx0AAAAdAAAAAAAAAA==", "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", "WhenOpened": "2025-10-23T02:02:31.977Z", "IsPinned": true, @@ -88,7 +88,7 @@ }, { "$type": "Document", - "DocumentIndex": 8, + "DocumentIndex": 5, "Title": "YIDAModel.cs", "DocumentMoniker": "F:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_FistFinalDataMove\\MQTT-WinformV1\\Model\\YIDAModel.cs", "RelativeDocumentMoniker": "MQTT-WinformV1\\Model\\YIDAModel.cs", @@ -97,7 +97,8 @@ "ViewState": "AgIAAJ4AAAAAAAAAAAAswKQAAAAnAAAAAAAAAA==", "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", "WhenOpened": "2025-10-23T02:03:23.018Z", - "IsPinned": true + "IsPinned": true, + "EditorCaption": "" }, { "$type": "Bookmark", @@ -109,7 +110,7 @@ }, { "$type": "Document", - "DocumentIndex": 2, + "DocumentIndex": 4, "Title": "FormDataZF.cs [\u8BBE\u8BA1]", "DocumentMoniker": "F:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_FistFinalDataMove\\MQTT-WinformV1\\FormDataZF.cs", "RelativeDocumentMoniker": "MQTT-WinformV1\\FormDataZF.cs", @@ -127,40 +128,40 @@ "RelativeDocumentMoniker": "MQTT-WinformV1\\FormDataZF.cs", "ToolTip": "F:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_FistFinalDataMove\\MQTT-WinformV1\\FormDataZF.cs", "RelativeToolTip": "MQTT-WinformV1\\FormDataZF.cs", - "ViewState": "AgIAACEAAAAAAAAAAAAuwAEAAAANAAAAAAAAAA==", + "ViewState": "AgIAAF4AAAAAAAAAAAAjwG0AAAAVAAAAAAAAAA==", "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", "WhenOpened": "2025-12-08T08:58:07.402Z", "EditorCaption": "" }, { "$type": "Document", - "DocumentIndex": 1, + "DocumentIndex": 2, "Title": "DataUploadService.cs", "DocumentMoniker": "F:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_FistFinalDataMove\\MQTT-WinformV1\\Service\\DataUploadService.cs", "RelativeDocumentMoniker": "MQTT-WinformV1\\Service\\DataUploadService.cs", "ToolTip": "F:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_FistFinalDataMove\\MQTT-WinformV1\\Service\\DataUploadService.cs", "RelativeToolTip": "MQTT-WinformV1\\Service\\DataUploadService.cs", - "ViewState": "AgIAABIAAAAAAAAAAAAAADQAAAAQAAAAAAAAAA==", + "ViewState": "AgIAABEAAAAAAAAAAIAwwDcAAAAvAAAAAAAAAA==", "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", "WhenOpened": "2025-12-08T10:27:41.471Z", "EditorCaption": "" }, { "$type": "Document", - "DocumentIndex": 5, + "DocumentIndex": 1, "Title": "FormDataZF.Designer.cs", "DocumentMoniker": "F:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_FistFinalDataMove\\MQTT-WinformV1\\FormDataZF.Designer.cs", "RelativeDocumentMoniker": "MQTT-WinformV1\\FormDataZF.Designer.cs", "ToolTip": "F:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_FistFinalDataMove\\MQTT-WinformV1\\FormDataZF.Designer.cs", "RelativeToolTip": "MQTT-WinformV1\\FormDataZF.Designer.cs", - "ViewState": "AgIAAGEAAAAAAAAAAAAkwGsAAAAAAAAAAAAAAA==", + "ViewState": "AgIAAAAAAAAAAAAAAAAAABYAAAAIAAAAAAAAAA==", "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", "WhenOpened": "2025-12-08T11:19:40.019Z", "EditorCaption": "" }, { "$type": "Document", - "DocumentIndex": 3, + "DocumentIndex": 6, "Title": "Form1.cs [\u8BBE\u8BA1]", "DocumentMoniker": "F:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_FistFinalDataMove\\MQTT-WinformV1\\Form1.cs", "RelativeDocumentMoniker": "MQTT-WinformV1\\Form1.cs", @@ -172,7 +173,7 @@ }, { "$type": "Document", - "DocumentIndex": 6, + "DocumentIndex": 7, "Title": "MqttClientService.cs", "DocumentMoniker": "F:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_FistFinalDataMove\\MQTT-WinformV1\\MqttClientService.cs", "RelativeDocumentMoniker": "MQTT-WinformV1\\MqttClientService.cs", @@ -185,7 +186,7 @@ }, { "$type": "Document", - "DocumentIndex": 7, + "DocumentIndex": 8, "Title": "Form1.cs", "DocumentMoniker": "F:\\\u9879\u76EE\u7BA1\u7406\\\u4E0A\u6D77\u5E72\u5DF7\u603B\u88C5\u8F66\u95F4\u6570\u636E\u8F6C\u53D1\\shgx_zp_FistFinalDataMove\\MQTT-WinformV1\\Form1.cs", "RelativeDocumentMoniker": "MQTT-WinformV1\\Form1.cs", diff --git a/MQTT-WinformV1/FormDataZF.Designer.cs b/MQTT-WinformV1/FormDataZF.Designer.cs index 3ae6a90..ce69d03 100644 --- a/MQTT-WinformV1/FormDataZF.Designer.cs +++ b/MQTT-WinformV1/FormDataZF.Designer.cs @@ -36,9 +36,9 @@ this.button1 = new System.Windows.Forms.Button(); this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components); this.groupBox1 = new System.Windows.Forms.GroupBox(); - this.textBox7 = new System.Windows.Forms.TextBox(); + this.txtMesDB = new System.Windows.Forms.TextBox(); this.label10 = new System.Windows.Forms.Label(); - this.textBox8 = new System.Windows.Forms.TextBox(); + this.txtMesPort = new System.Windows.Forms.TextBox(); this.label11 = new System.Windows.Forms.Label(); this.txtPwd = new System.Windows.Forms.TextBox(); this.label9 = new System.Windows.Forms.Label(); @@ -48,7 +48,7 @@ this.label7 = new System.Windows.Forms.Label(); this.txtPort = new System.Windows.Forms.TextBox(); this.LPort = new System.Windows.Forms.Label(); - this.textBox2 = new System.Windows.Forms.TextBox(); + this.txtMesIP = new System.Windows.Forms.TextBox(); this.label5 = new System.Windows.Forms.Label(); this.txtIP = new System.Windows.Forms.TextBox(); this.LIP = new System.Windows.Forms.Label(); @@ -113,9 +113,9 @@ | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.groupBox1.BackColor = System.Drawing.SystemColors.GradientActiveCaption; - this.groupBox1.Controls.Add(this.textBox7); + this.groupBox1.Controls.Add(this.txtMesDB); this.groupBox1.Controls.Add(this.label10); - this.groupBox1.Controls.Add(this.textBox8); + this.groupBox1.Controls.Add(this.txtMesPort); this.groupBox1.Controls.Add(this.label11); this.groupBox1.Controls.Add(this.txtPwd); this.groupBox1.Controls.Add(this.label9); @@ -125,7 +125,7 @@ this.groupBox1.Controls.Add(this.label7); this.groupBox1.Controls.Add(this.txtPort); this.groupBox1.Controls.Add(this.LPort); - this.groupBox1.Controls.Add(this.textBox2); + this.groupBox1.Controls.Add(this.txtMesIP); this.groupBox1.Controls.Add(this.label5); this.groupBox1.Controls.Add(this.txtIP); this.groupBox1.Controls.Add(this.LIP); @@ -138,14 +138,13 @@ this.groupBox1.TabStop = false; this.groupBox1.Text = "数据库配置"; // - // textBox7 + // txtMesDB // - this.textBox7.Location = new System.Drawing.Point(798, 138); - this.textBox7.Name = "textBox7"; - this.textBox7.ReadOnly = true; - this.textBox7.Size = new System.Drawing.Size(293, 25); - this.textBox7.TabIndex = 17; - this.textBox7.Text = "GXAssembly"; + this.txtMesDB.Location = new System.Drawing.Point(798, 138); + this.txtMesDB.Name = "txtMesDB"; + this.txtMesDB.ReadOnly = true; + this.txtMesDB.Size = new System.Drawing.Size(293, 25); + this.txtMesDB.TabIndex = 17; // // label10 // @@ -156,14 +155,13 @@ this.label10.TabIndex = 16; this.label10.Text = "数据库:"; // - // textBox8 + // txtMesPort // - this.textBox8.Location = new System.Drawing.Point(798, 98); - this.textBox8.Name = "textBox8"; - this.textBox8.ReadOnly = true; - this.textBox8.Size = new System.Drawing.Size(293, 25); - this.textBox8.TabIndex = 15; - this.textBox8.Text = "3308"; + this.txtMesPort.Location = new System.Drawing.Point(798, 98); + this.txtMesPort.Name = "txtMesPort"; + this.txtMesPort.ReadOnly = true; + this.txtMesPort.Size = new System.Drawing.Size(293, 25); + this.txtMesPort.TabIndex = 15; // // label11 // @@ -239,14 +237,13 @@ this.LPort.TabIndex = 6; this.LPort.Text = "端口号:"; // - // textBox2 + // txtMesIP // - this.textBox2.Location = new System.Drawing.Point(798, 57); - this.textBox2.Name = "textBox2"; - this.textBox2.ReadOnly = true; - this.textBox2.Size = new System.Drawing.Size(293, 25); - this.textBox2.TabIndex = 5; - this.textBox2.Text = "139.224.232.211"; + this.txtMesIP.Location = new System.Drawing.Point(798, 57); + this.txtMesIP.Name = "txtMesIP"; + this.txtMesIP.ReadOnly = true; + this.txtMesIP.Size = new System.Drawing.Size(293, 25); + this.txtMesIP.TabIndex = 5; // // label5 // @@ -350,7 +347,7 @@ private System.Windows.Forms.GroupBox groupBox1; private System.Windows.Forms.TextBox txtPort; private System.Windows.Forms.Label LPort; - private System.Windows.Forms.TextBox textBox2; + private System.Windows.Forms.TextBox txtMesIP; private System.Windows.Forms.Label label5; private System.Windows.Forms.TextBox txtIP; private System.Windows.Forms.Label LIP; @@ -358,9 +355,9 @@ private System.Windows.Forms.Label label1; private System.Windows.Forms.TextBox txtDBName; private System.Windows.Forms.Label label7; - private System.Windows.Forms.TextBox textBox7; + private System.Windows.Forms.TextBox txtMesDB; private System.Windows.Forms.Label label10; - private System.Windows.Forms.TextBox textBox8; + private System.Windows.Forms.TextBox txtMesPort; private System.Windows.Forms.Label label11; private System.Windows.Forms.TextBox txtPwd; private System.Windows.Forms.Label label9; diff --git a/MQTT-WinformV1/FormDataZF.cs b/MQTT-WinformV1/FormDataZF.cs index 20f186e..9ed639c 100644 --- a/MQTT-WinformV1/FormDataZF.cs +++ b/MQTT-WinformV1/FormDataZF.cs @@ -1,4 +1,5 @@ -using MQTT_WinformV1.Service; +using MQTT_WinformV1.Model; +using MQTT_WinformV1.Service; using MqttClient; using MySql.Data.MySqlClient; using System; @@ -35,11 +36,15 @@ namespace MQTT_WinformV1 private void initDBData() { - this.txtIP.Text = "139.224.232.211"; - this.txtPort.Text = "3308"; - this.txtUser.Text = "root"; - this.txtPwd.Text = "doantech123"; - this.txtDBName.Text = "ay2509055-guiyang-fluorescence-lmes"; + this.txtIP.Text = Globalstatic.localIP; + this.txtPort.Text = Globalstatic.localPort; + this.txtUser.Text = Globalstatic.localUser; + this.txtPwd.Text = Globalstatic.localPwd; + this.txtDBName.Text = Globalstatic.localDBName; + + this.txtMesIP.Text = Globalstatic.mesIP; + this.txtMesPort.Text = Globalstatic.mesPort; + this.txtMesDB.Text = Globalstatic.mesDBName; } private void _timer_Tick(object sender, ElapsedEventArgs e) @@ -55,7 +60,7 @@ namespace MQTT_WinformV1 if (TestDbConnection(this.txtIP.Text.Trim(), this.txtPort.Text, this.txtUser.Text, this.txtDBName.Text, this.txtPwd.Text)) { AppendLog("开始上传数据"); - int count = await _upLoadService.QueryDataAsync(this.txtIP.Text.Trim(), this.txtPort.Text, this.txtUser.Text, this.txtDBName.Text, this.txtPwd.Text); + int count = await _upLoadService.QueryDataAsync(this.txtIP.Text.Trim(), this.txtPort.Text, this.txtDBName.Text, this.txtUser.Text, this.txtPwd.Text); AppendLog(count.ToString() + "条数据已上传!"); } } diff --git a/MQTT-WinformV1/Model/Globalstatic.cs b/MQTT-WinformV1/Model/Globalstatic.cs index 7985251..1a1591d 100644 --- a/MQTT-WinformV1/Model/Globalstatic.cs +++ b/MQTT-WinformV1/Model/Globalstatic.cs @@ -15,5 +15,20 @@ namespace MQTT_WinformV1.Model public static string appkey = "962d2ac7d5297cc988263269e5da773a"; + + //本地数据库配置 + public static string localIP = "139.224.232.211"; + public static string localPort = "3308"; + public static string localDBName = "ay2509055-guiyang-fluorescence-lmes"; + public static string localUser = "root"; + public static string localPwd = "doantech123"; + + //MES数据库配置 + public static string mesIP = "139.224.232.211"; + public static string mesPort = "3308"; + public static string mesDBName = "GXAssembly"; + public static string mesUser = "root"; + public static string mesPwd = "doantech123"; + } } diff --git a/MQTT-WinformV1/Service/DataUploadService.cs b/MQTT-WinformV1/Service/DataUploadService.cs index c3ec9b7..fb55771 100644 --- a/MQTT-WinformV1/Service/DataUploadService.cs +++ b/MQTT-WinformV1/Service/DataUploadService.cs @@ -1,4 +1,5 @@ -using MySql.Data.MySqlClient; +using MQTT_WinformV1.Model; +using MySql.Data.MySqlClient; using MySqlX.XDevAPI.Common; using NPOI.OpenXmlFormats.Dml; using System; @@ -16,7 +17,15 @@ namespace MQTT_WinformV1.Service { //private readonly string sendconnectionString = "server=139.224.232.211;port=3308;database=ay2509055-guiyang-fluorescence-lmes;user=root;password=doantech123;"; private string sendconnectionString = string.Empty; - private readonly string receiveconnectionString = "server=139.224.232.211;port=3308;database=GXAssembly;user=root;password=doantech123;"; + private readonly string receiveconnectionString = new MySqlConnectionStringBuilder + { + Server = Globalstatic.mesIP, + Port = uint.Parse(Globalstatic.mesPort), // 端口转成uint(匹配Builder的Port类型) + Database = Globalstatic.mesDBName, + UserID = Globalstatic.mesUser, + Password = Globalstatic.mesPwd, + CharacterSet = "utf8mb4" + }.ConnectionString; public async Task QueryDataAsync(string strIP,string strPort,string strDBName,string strUser,string strPwd) { @@ -42,14 +51,12 @@ namespace MQTT_WinformV1.Service MySqlConnectionStringBuilder connStrBuilder = new MySqlConnectionStringBuilder(); connStrBuilder.Server = strIP; - uint.TryParse(strPort, out uint portNum); - connStrBuilder.Port = portNum; // 端口转无符号整数 + connStrBuilder.Port = portNum; connStrBuilder.UserID = strUser; connStrBuilder.Password = strPwd; connStrBuilder.Database = strDBName; - connStrBuilder.CharacterSet = "utf8mb4"; // 字符集(避免中文乱码) - // 转换为最终的连接字符串 + connStrBuilder.CharacterSet = "utf8mb4"; sendconnectionString = connStrBuilder.ConnectionString; var (firstMachineData, finalMachineData) = await GetTodayInspectionDataAsync(sendconnectionString); int iResult = await InsertDataAsync(firstMachineData, finalMachineData, receiveconnectionString); diff --git a/MQTT-WinformV1/bin/Debug/app.publish/上海干巷总装车间首终检数据转移.exe b/MQTT-WinformV1/bin/Debug/app.publish/上海干巷总装车间首终检数据转移.exe index b5b3ebc..538b705 100644 Binary files a/MQTT-WinformV1/bin/Debug/app.publish/上海干巷总装车间首终检数据转移.exe and b/MQTT-WinformV1/bin/Debug/app.publish/上海干巷总装车间首终检数据转移.exe differ diff --git a/MQTT-WinformV1/bin/Debug/上海干巷总装车间首终检数据转移.application b/MQTT-WinformV1/bin/Debug/上海干巷总装车间首终检数据转移.application index 8dac8f9..5bc1767 100644 --- a/MQTT-WinformV1/bin/Debug/上海干巷总装车间首终检数据转移.application +++ b/MQTT-WinformV1/bin/Debug/上海干巷总装车间首终检数据转移.application @@ -21,7 +21,7 @@ - 9YoBMfwWEE3StSD3sWQL9VIZXe0M/DK26L7X7+w6XCA= + 1HqJgzY5SJ0r74I7TIuESl44y2I8pgsTgdZc/rOGOdQ= diff --git a/MQTT-WinformV1/bin/Debug/上海干巷总装车间首终检数据转移.exe b/MQTT-WinformV1/bin/Debug/上海干巷总装车间首终检数据转移.exe index 0bb3b57..8ab130d 100644 Binary files a/MQTT-WinformV1/bin/Debug/上海干巷总装车间首终检数据转移.exe and b/MQTT-WinformV1/bin/Debug/上海干巷总装车间首终检数据转移.exe differ diff --git a/MQTT-WinformV1/bin/Debug/上海干巷总装车间首终检数据转移.exe.manifest b/MQTT-WinformV1/bin/Debug/上海干巷总装车间首终检数据转移.exe.manifest index aa2c929..3830325 100644 --- a/MQTT-WinformV1/bin/Debug/上海干巷总装车间首终检数据转移.exe.manifest +++ b/MQTT-WinformV1/bin/Debug/上海干巷总装车间首终检数据转移.exe.manifest @@ -421,7 +421,7 @@ - z0L+dUK1aVw+MK2RWK2p4uMANCv0S+OGCMYhxNgF95w= + zy8E0FNYN6uQ+8bIrtzIGldobBBFYNm+3gPv3T7AC8Y= diff --git a/MQTT-WinformV1/bin/Debug/上海干巷总装车间首终检数据转移.pdb b/MQTT-WinformV1/bin/Debug/上海干巷总装车间首终检数据转移.pdb index 673035b..7c42f37 100644 Binary files a/MQTT-WinformV1/bin/Debug/上海干巷总装车间首终检数据转移.pdb and b/MQTT-WinformV1/bin/Debug/上海干巷总装车间首终检数据转移.pdb differ diff --git a/MQTT-WinformV1/obj/Debug/MQTT-WinformV1.csproj.GenerateResource.cache b/MQTT-WinformV1/obj/Debug/MQTT-WinformV1.csproj.GenerateResource.cache index 7a0eee3..862d9d6 100644 Binary files a/MQTT-WinformV1/obj/Debug/MQTT-WinformV1.csproj.GenerateResource.cache and b/MQTT-WinformV1/obj/Debug/MQTT-WinformV1.csproj.GenerateResource.cache differ diff --git a/MQTT-WinformV1/obj/Debug/上海干巷总装车间首终检数据转移.application b/MQTT-WinformV1/obj/Debug/上海干巷总装车间首终检数据转移.application index 8dac8f9..5bc1767 100644 --- a/MQTT-WinformV1/obj/Debug/上海干巷总装车间首终检数据转移.application +++ b/MQTT-WinformV1/obj/Debug/上海干巷总装车间首终检数据转移.application @@ -21,7 +21,7 @@ - 9YoBMfwWEE3StSD3sWQL9VIZXe0M/DK26L7X7+w6XCA= + 1HqJgzY5SJ0r74I7TIuESl44y2I8pgsTgdZc/rOGOdQ= diff --git a/MQTT-WinformV1/obj/Debug/上海干巷总装车间首终检数据转移.exe b/MQTT-WinformV1/obj/Debug/上海干巷总装车间首终检数据转移.exe index 0bb3b57..8ab130d 100644 Binary files a/MQTT-WinformV1/obj/Debug/上海干巷总装车间首终检数据转移.exe and b/MQTT-WinformV1/obj/Debug/上海干巷总装车间首终检数据转移.exe differ diff --git a/MQTT-WinformV1/obj/Debug/上海干巷总装车间首终检数据转移.exe.manifest b/MQTT-WinformV1/obj/Debug/上海干巷总装车间首终检数据转移.exe.manifest index aa2c929..3830325 100644 --- a/MQTT-WinformV1/obj/Debug/上海干巷总装车间首终检数据转移.exe.manifest +++ b/MQTT-WinformV1/obj/Debug/上海干巷总装车间首终检数据转移.exe.manifest @@ -421,7 +421,7 @@ - z0L+dUK1aVw+MK2RWK2p4uMANCv0S+OGCMYhxNgF95w= + zy8E0FNYN6uQ+8bIrtzIGldobBBFYNm+3gPv3T7AC8Y= diff --git a/MQTT-WinformV1/obj/Debug/上海干巷总装车间首终检数据转移.pdb b/MQTT-WinformV1/obj/Debug/上海干巷总装车间首终检数据转移.pdb index 673035b..7c42f37 100644 Binary files a/MQTT-WinformV1/obj/Debug/上海干巷总装车间首终检数据转移.pdb and b/MQTT-WinformV1/obj/Debug/上海干巷总装车间首终检数据转移.pdb differ