25111702 调整登陆界面允许添加超级管理员新密码

This commit is contained in:
moxiliang
2025-11-17 16:52:59 +08:00
parent 6958075f22
commit 220a794a5b
27 changed files with 350 additions and 340 deletions

Binary file not shown.

View File

@@ -14,33 +14,33 @@
"RelativeMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|solutionrelative:slc1-n\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form"
},
{
"AbsoluteMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u6B63\u8D1F\u538B28\\\u6B63\u8D1F\u538B LL-28\\LL-28\\slc1-n\\form_logon.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form",
"RelativeMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|solutionrelative:slc1-n\\form_logon.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form"
},
{
"AbsoluteMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|d:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u6B63\u8D1F\u538B28\\\u6B63\u8D1F\u538B ll-28\\ll-28\\slc1-n\\form_logon.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|solutionrelative:slc1-n\\form_logon.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
"AbsoluteMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u6B63\u8D1F\u538B28\\\u6B63\u8D1F\u538B LL-28\\LL-28\\slc1-n\\electricity.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form",
"RelativeMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|solutionrelative:slc1-n\\electricity.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form"
},
{
"AbsoluteMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u6B63\u8D1F\u538B28\\\u6B63\u8D1F\u538B LL-28\\LL-28\\slc1-n\\electricity.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|solutionrelative:slc1-n\\electricity.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u6B63\u8D1F\u538B28\\\u6B63\u8D1F\u538B LL-28\\LL-28\\slc1-n\\electricity.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form",
"RelativeMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|solutionrelative:slc1-n\\electricity.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form"
"AbsoluteMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u6B63\u8D1F\u538B28\\\u6B63\u8D1F\u538B LL-28\\LL-28\\slc1-n\\form_batchsave.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|solutionrelative:slc1-n\\form_batchsave.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u6B63\u8D1F\u538B28\\\u6B63\u8D1F\u538B LL-28\\LL-28\\slc1-n\\form_batchsave.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form",
"RelativeMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|solutionrelative:slc1-n\\form_batchsave.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form"
},
{
"AbsoluteMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u6B63\u8D1F\u538B28\\\u6B63\u8D1F\u538B LL-28\\LL-28\\slc1-n\\form_logon.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|solutionrelative:slc1-n\\form_logon.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u6B63\u8D1F\u538B28\\\u6B63\u8D1F\u538B LL-28\\LL-28\\slc1-n\\form_logon.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form",
"RelativeMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|solutionrelative:slc1-n\\form_logon.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form"
},
{
"AbsoluteMoniker": "D:0:0:{FB7970FD-F699-4093-83D0-509501B7863C}|tongxin\\NetWorkHelper\\NetWorkHelper.csproj|D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u6B63\u8D1F\u538B28\\\u6B63\u8D1F\u538B LL-28\\LL-28\\tongxin\\networkhelper\\tcp\\itcpclient.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{FB7970FD-F699-4093-83D0-509501B7863C}|tongxin\\NetWorkHelper\\NetWorkHelper.csproj|solutionrelative:tongxin\\networkhelper\\tcp\\itcpclient.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|d:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u6B63\u8D1F\u538B28\\\u6B63\u8D1F\u538B ll-28\\ll-28\\slc1-n\\form_batchsave.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form",
"RelativeMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|solutionrelative:slc1-n\\form_batchsave.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form"
},
{
"AbsoluteMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|d:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u6B63\u8D1F\u538B28\\\u6B63\u8D1F\u538B ll-28\\ll-28\\slc1-n\\form_batchsave.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|solutionrelative:slc1-n\\form_batchsave.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u6B63\u8D1F\u538B28\\\u6B63\u8D1F\u538B LL-28\\LL-28\\slc1-n\\yiqiparam.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{F7F71589-095A-45C2-975C-739BE2D1CE15}|SLC1-N\\SLC1-N.csproj|solutionrelative:slc1-n\\yiqiparam.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
@@ -234,7 +234,7 @@
"RelativeDocumentMoniker": "SLC1-N\\Form1.cs",
"ToolTip": "D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u6B63\u8D1F\u538B28\\\u6B63\u8D1F\u538B LL-28\\LL-28\\SLC1-N\\Form1.cs",
"RelativeToolTip": "SLC1-N\\Form1.cs",
"ViewState": "AQIAAN4QAAAAAAAAAAA1wOYQAAAkAAAA",
"ViewState": "AQIAAAkQAAAAAAAAAAAzwEYQAAAPAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2025-10-18T01:41:29.412Z",
"IsPinned": true,
@@ -242,45 +242,42 @@
},
{
"$type": "Document",
"DocumentIndex": 4,
"DocumentIndex": 7,
"Title": "Form_LogOn.cs",
"DocumentMoniker": "D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u6B63\u8D1F\u538B28\\\u6B63\u8D1F\u538B LL-28\\LL-28\\SLC1-N\\Form_LogOn.cs",
"RelativeDocumentMoniker": "SLC1-N\\Form_LogOn.cs",
"ToolTip": "D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u6B63\u8D1F\u538B28\\\u6B63\u8D1F\u538B LL-28\\LL-28\\SLC1-N\\Form_LogOn.cs",
"RelativeToolTip": "SLC1-N\\Form_LogOn.cs",
"ViewState": "AQIAABAAAAAAAAAAAADwvyEAAAARAAAA",
"ViewState": "AQIAAGEAAAAAAAAAAAA0wIUAAABEAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2025-11-17T06:04:04.368Z",
"IsPinned": true,
"EditorCaption": ""
"IsPinned": true
},
{
"$type": "Document",
"DocumentIndex": 9,
"DocumentIndex": 5,
"Title": "Form_BatchSave.cs",
"DocumentMoniker": "D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u6B63\u8D1F\u538B28\\\u6B63\u8D1F\u538B LL-28\\LL-28\\SLC1-N\\Form_BatchSave.cs",
"RelativeDocumentMoniker": "SLC1-N\\Form_BatchSave.cs",
"ToolTip": "D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u6B63\u8D1F\u538B28\\\u6B63\u8D1F\u538B LL-28\\LL-28\\SLC1-N\\Form_BatchSave.cs",
"RelativeToolTip": "SLC1-N\\Form_BatchSave.cs",
"ViewState": "AQIAAAAAAAAAAAAAAAAAABoAAAAJAAAA",
"ViewState": "AQIAAAAAAAAAAAAAAAAAABsAAAAwAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2025-11-17T02:16:54.363Z",
"IsPinned": true,
"EditorCaption": ""
"IsPinned": true
},
{
"$type": "Document",
"DocumentIndex": 5,
"DocumentIndex": 4,
"Title": "Electricity.cs",
"DocumentMoniker": "D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u6B63\u8D1F\u538B28\\\u6B63\u8D1F\u538B LL-28\\LL-28\\SLC1-N\\Electricity.cs",
"RelativeDocumentMoniker": "SLC1-N\\Electricity.cs",
"ToolTip": "D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u6B63\u8D1F\u538B28\\\u6B63\u8D1F\u538B LL-28\\LL-28\\SLC1-N\\Electricity.cs",
"RelativeToolTip": "SLC1-N\\Electricity.cs",
"ViewState": "AQIAAFcBAAAAAAAAAAAqwHgBAAANAAAA",
"ViewState": "AQIAALoCAAAAAAAAAAAUwNMCAAAeAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2025-10-30T02:55:49.085Z",
"IsPinned": true,
"EditorCaption": ""
"IsPinned": true
},
{
"$type": "Bookmark",
@@ -311,40 +308,30 @@
"Name": "ST:254354193:0:{71f361cc-493f-47c0-923f-f2570b6f8618}"
},
{
"$type": "Document",
"DocumentIndex": 1,
"Title": "SLC1-N",
"DocumentMoniker": "D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u6B63\u8D1F\u538B28\\\u6B63\u8D1F\u538B LL-28\\LL-28\\SLC1-N\\SLC1-N.csproj",
"RelativeDocumentMoniker": "SLC1-N\\SLC1-N.csproj",
"ToolTip": "D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u6B63\u8D1F\u538B28\\\u6B63\u8D1F\u538B LL-28\\LL-28\\SLC1-N\\SLC1-N.csproj",
"RelativeToolTip": "SLC1-N\\SLC1-N.csproj",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.001001|",
"WhenOpened": "2025-11-11T02:49:54.535Z",
"EditorCaption": ""
"$type": "Bookmark",
"Name": "ST:0:0:{5a4e9529-b6a0-46b5-be4f-0f0b239bc0eb}"
},
{
"$type": "Document",
"DocumentIndex": 6,
"DocumentIndex": 3,
"Title": "Electricity.cs [\u8BBE\u8BA1]",
"DocumentMoniker": "D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u6B63\u8D1F\u538B28\\\u6B63\u8D1F\u538B LL-28\\LL-28\\SLC1-N\\Electricity.cs",
"RelativeDocumentMoniker": "SLC1-N\\Electricity.cs",
"ToolTip": "D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u6B63\u8D1F\u538B28\\\u6B63\u8D1F\u538B LL-28\\LL-28\\SLC1-N\\Electricity.cs [\u8BBE\u8BA1]",
"RelativeToolTip": "SLC1-N\\Electricity.cs [\u8BBE\u8BA1]",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2025-08-18T01:03:21.678Z",
"EditorCaption": " [\u8BBE\u8BA1]"
"WhenOpened": "2025-08-18T01:03:21.678Z"
},
{
"$type": "Document",
"DocumentIndex": 3,
"DocumentIndex": 8,
"Title": "Form_LogOn.cs [\u8BBE\u8BA1]",
"DocumentMoniker": "D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u6B63\u8D1F\u538B28\\\u6B63\u8D1F\u538B LL-28\\LL-28\\SLC1-N\\Form_LogOn.cs",
"RelativeDocumentMoniker": "SLC1-N\\Form_LogOn.cs",
"ToolTip": "D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u6B63\u8D1F\u538B28\\\u6B63\u8D1F\u538B LL-28\\LL-28\\SLC1-N\\Form_LogOn.cs [\u8BBE\u8BA1]",
"RelativeToolTip": "SLC1-N\\Form_LogOn.cs [\u8BBE\u8BA1]",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2025-08-20T08:55:27.078Z",
"EditorCaption": " [\u8BBE\u8BA1]"
"WhenOpened": "2025-08-20T08:55:27.078Z"
},
{
"$type": "Document",
@@ -358,6 +345,29 @@
"WhenOpened": "2025-08-18T02:52:28.347Z",
"EditorCaption": " [\u8BBE\u8BA1]"
},
{
"$type": "Document",
"DocumentIndex": 1,
"Title": "SLC1-N",
"DocumentMoniker": "D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u6B63\u8D1F\u538B28\\\u6B63\u8D1F\u538B LL-28\\LL-28\\SLC1-N\\SLC1-N.csproj",
"RelativeDocumentMoniker": "SLC1-N\\SLC1-N.csproj",
"ToolTip": "D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u6B63\u8D1F\u538B28\\\u6B63\u8D1F\u538B LL-28\\LL-28\\SLC1-N\\SLC1-N.csproj",
"RelativeToolTip": "SLC1-N\\SLC1-N.csproj",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.001001|",
"WhenOpened": "2025-11-11T02:49:54.535Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 6,
"Title": "Form_BatchSave.cs [\u8BBE\u8BA1]",
"DocumentMoniker": "D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u6B63\u8D1F\u538B28\\\u6B63\u8D1F\u538B LL-28\\LL-28\\SLC1-N\\Form_BatchSave.cs",
"RelativeDocumentMoniker": "SLC1-N\\Form_BatchSave.cs",
"ToolTip": "D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u6B63\u8D1F\u538B28\\\u6B63\u8D1F\u538B LL-28\\LL-28\\SLC1-N\\Form_BatchSave.cs [\u8BBE\u8BA1]",
"RelativeToolTip": "SLC1-N\\Form_BatchSave.cs [\u8BBE\u8BA1]",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2025-11-17T02:12:36.44Z"
},
{
"$type": "Document",
"DocumentIndex": 15,
@@ -369,13 +379,9 @@
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2025-11-06T07:27:25.808Z"
},
{
"$type": "Bookmark",
"Name": "ST:0:0:{5a4e9529-b6a0-46b5-be4f-0f0b239bc0eb}"
},
{
"$type": "Document",
"DocumentIndex": 7,
"DocumentIndex": 9,
"Title": "ITcpClient.cs",
"DocumentMoniker": "D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u6B63\u8D1F\u538B28\\\u6B63\u8D1F\u538B LL-28\\LL-28\\tongxin\\NetWorkHelper\\TCP\\ITcpClient.cs",
"RelativeDocumentMoniker": "tongxin\\NetWorkHelper\\TCP\\ITcpClient.cs",
@@ -383,20 +389,7 @@
"RelativeToolTip": "tongxin\\NetWorkHelper\\TCP\\ITcpClient.cs",
"ViewState": "AQIAADcAAAAAAAAAAAAAANMAAAAuAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2025-08-21T06:27:43.017Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 8,
"Title": "Form_BatchSave.cs [\u8BBE\u8BA1]",
"DocumentMoniker": "D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u6B63\u8D1F\u538B28\\\u6B63\u8D1F\u538B LL-28\\LL-28\\SLC1-N\\Form_BatchSave.cs",
"RelativeDocumentMoniker": "SLC1-N\\Form_BatchSave.cs",
"ToolTip": "D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u6B63\u8D1F\u538B28\\\u6B63\u8D1F\u538B LL-28\\LL-28\\SLC1-N\\Form_BatchSave.cs [\u8BBE\u8BA1]",
"RelativeToolTip": "SLC1-N\\Form_BatchSave.cs [\u8BBE\u8BA1]",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2025-11-17T02:12:36.44Z",
"EditorCaption": " [\u8BBE\u8BA1]"
"WhenOpened": "2025-08-21T06:27:43.017Z"
},
{
"$type": "Document",
@@ -408,8 +401,7 @@
"RelativeToolTip": "SLC1-N\\Electricity.Designer.cs",
"ViewState": "AQIAANMCAAAAAAAAAAA1wOoCAAAAAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2025-10-28T09:46:39.581Z",
"EditorCaption": ""
"WhenOpened": "2025-10-28T09:46:39.581Z"
},
{
"$type": "Document",
@@ -712,8 +704,7 @@
"ToolTip": "D:\\\u684C\u9762\\\u83AB\u79A7\u4EAE\\\u534E\u8D1D\\\u6B63\u8D1F\u538B28\\\u6B63\u8D1F\u538B LL-28\\LL-28\\tongxin\\NetWorkHelper\\TCP\\ITcpClient.cs [\u8BBE\u8BA1]",
"RelativeToolTip": "tongxin\\NetWorkHelper\\TCP\\ITcpClient.cs [\u8BBE\u8BA1]",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2025-08-27T07:15:33.671Z",
"EditorCaption": " [\u8BBE\u8BA1]"
"WhenOpened": "2025-08-27T07:15:33.671Z"
},
{
"$type": "Document",

View File

@@ -51,31 +51,32 @@ namespace SLC1_N
cb_PUnit.Enabled = false;
cb_LUnit.Enabled = false;
}
if (Form1.f1.User == "工程师")
{
cb_PUnit.Enabled = false;
cb_LUnit.Enabled = false;
tb_FullTime.Enabled = false;
tb_BalanTime.Enabled=false;
tb_TestTime1.Enabled = false;
tb_ExhaustTime.Enabled=false;
tb_FPlowlimit.Enabled=false;
tb_FPtoplimit.Enabled=false;
tb_Leaktoplimit.Enabled=false;
tb_Leaklowlimit.Enabled=false;
}
if (Form1.f1.User != "厂商")
{
//消失
label111.Visible = false;
label112.Visible = false;
//if (Form1.f1.User == "工程师")
//{
// cb_PUnit.Enabled = false;
// cb_LUnit.Enabled = false;
// tb_FullTime.Enabled = false;
// tb_BalanTime.Enabled=false;
// tb_TestTime1.Enabled = false;
// tb_ExhaustTime.Enabled=false;
// tb_FPlowlimit.Enabled=false;
// tb_FPtoplimit.Enabled=false;
// tb_Leaktoplimit.Enabled=false;
// tb_Leaklowlimit.Enabled=false;
//}
label117.Visible = false;
tb_BalanPreMax.Visible = false;
tb_BalanPreMin.Visible = false;
label116.Visible = false;
}
//if (Form1.f1.User != "厂商")
//{
// //消失
// label111.Visible = false;
// label112.Visible = false;
// label117.Visible = false;
// tb_BalanPreMax.Visible = false;
// tb_BalanPreMin.Visible = false;
// label116.Visible = false;
//}
//PressMax.Text = Form1.f1.PressMax.ToString();
//PressMin.Text = Form1.f1.PressMin.ToString();
@@ -105,6 +106,7 @@ namespace SLC1_N
lb_PLCsaomamsg.Text = "PLC未连接";
lb_PLCsaomamsg.ForeColor = Color.Red;
}
//chk_ch1saoma.Checked = config.GetValue<bool>("chk_ch1saoma", true);
//chk_ch2saoma.Checked = config.GetValue<bool>("chk_ch2saoma", true);
//chk_ch3saoma.Checked = config.GetValue<bool>("chk_ch3saoma", true);

332
SLC1-N/Form1.Designer.cs generated
View File

@@ -147,7 +147,9 @@
this.chk_SaomaFocus = new System.Windows.Forms.CheckBox();
this.bt_test2 = new System.Windows.Forms.Button();
this.lb_User = new System.Windows.Forms.Label();
this.pb_MESswitch = new System.Windows.Forms.PictureBox();
this.lb_MESswitch = new System.Windows.Forms.Label();
this.pb_PLC_CommunicationStatus = new System.Windows.Forms.PictureBox();
this.label4 = new System.Windows.Forms.Label();
this.label22 = new System.Windows.Forms.Label();
this.lb_NowTime = new System.Windows.Forms.Label();
@@ -170,9 +172,13 @@
this.tb_CH1Code = new Sunny.UI.UITextBox();
this.bt_code1clear = new System.Windows.Forms.Button();
this.label34 = new System.Windows.Forms.Label();
this.pictureBox5 = new System.Windows.Forms.PictureBox();
this.label31 = new System.Windows.Forms.Label();
this.pictureBox4 = new System.Windows.Forms.PictureBox();
this.label28 = new System.Windows.Forms.Label();
this.pictureBox3 = new System.Windows.Forms.PictureBox();
this.label18 = new System.Windows.Forms.Label();
this.pictureBox2 = new System.Windows.Forms.PictureBox();
this.lb_CH1MES_INstatus = new System.Windows.Forms.Label();
this.label14 = new System.Windows.Forms.Label();
this.tb_CH1codeLeng = new System.Windows.Forms.TextBox();
@@ -207,15 +213,19 @@
this.label36 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.lb_CH3ProcessTime4 = new System.Windows.Forms.Label();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.label44 = new System.Windows.Forms.Label();
this.label11 = new System.Windows.Forms.Label();
this.lb_CH3ProcessTime3 = new System.Windows.Forms.Label();
this.pictureBox6 = new System.Windows.Forms.PictureBox();
this.label48 = new System.Windows.Forms.Label();
this.label12 = new System.Windows.Forms.Label();
this.lb_CH3ProcessTime2 = new System.Windows.Forms.Label();
this.pictureBox7 = new System.Windows.Forms.PictureBox();
this.label53 = new System.Windows.Forms.Label();
this.label13 = new System.Windows.Forms.Label();
this.lb_CH3ProcessTime1 = new System.Windows.Forms.Label();
this.pictureBox8 = new System.Windows.Forms.PictureBox();
this.label57 = new System.Windows.Forms.Label();
this.lb_CH3MES_INstatus = new System.Windows.Forms.Label();
this.label19 = new System.Windows.Forms.Label();
@@ -283,9 +293,13 @@
this.lb_Total = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.label17 = new System.Windows.Forms.Label();
this.pictureBox9 = new System.Windows.Forms.PictureBox();
this.label21 = new System.Windows.Forms.Label();
this.pictureBox10 = new System.Windows.Forms.PictureBox();
this.label24 = new System.Windows.Forms.Label();
this.pictureBox11 = new System.Windows.Forms.PictureBox();
this.label25 = new System.Windows.Forms.Label();
this.pictureBox12 = new System.Windows.Forms.PictureBox();
this.SerialPort_CH3Saoma = new System.IO.Ports.SerialPort(this.components);
this.SerialPort_CH4Saoma = new System.IO.Ports.SerialPort(this.components);
this.dataGridViewTextBoxColumn7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -294,42 +308,28 @@
this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.DataGridView2 = new Sunny.UI.UIDataGridView();
this.pictureBox9 = new System.Windows.Forms.PictureBox();
this.pictureBox10 = new System.Windows.Forms.PictureBox();
this.pictureBox11 = new System.Windows.Forms.PictureBox();
this.pictureBox12 = new System.Windows.Forms.PictureBox();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.pictureBox6 = new System.Windows.Forms.PictureBox();
this.pictureBox7 = new System.Windows.Forms.PictureBox();
this.pictureBox8 = new System.Windows.Forms.PictureBox();
this.pb_MESswitch = new System.Windows.Forms.PictureBox();
this.pb_PLC_CommunicationStatus = new System.Windows.Forms.PictureBox();
this.pictureBox5 = new System.Windows.Forms.PictureBox();
this.pictureBox4 = new System.Windows.Forms.PictureBox();
this.pictureBox3 = new System.Windows.Forms.PictureBox();
this.pictureBox2 = new System.Windows.Forms.PictureBox();
this.uiGroupBox5.SuspendLayout();
this.nb_MainMenu.SuspendLayout();
this.uiGroupBox1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.DataGridView1)).BeginInit();
this.uiGroupBox2.SuspendLayout();
this.uiGroupBox3.SuspendLayout();
this.uiGroupBox4.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.DataGridView2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox9)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox10)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox11)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox12)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox6)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox7)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox8)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pb_MESswitch)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pb_PLC_CommunicationStatus)).BeginInit();
this.uiGroupBox1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox5)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox4)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.DataGridView1)).BeginInit();
this.uiGroupBox2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox6)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox7)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox8)).BeginInit();
this.uiGroupBox3.SuspendLayout();
this.uiGroupBox4.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox9)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox10)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox11)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox12)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.DataGridView2)).BeginInit();
this.SuspendLayout();
//
// SerialPort_CH1Saoma
@@ -1078,6 +1078,14 @@
this.lb_User.Text = "label15";
this.lb_User.TabIndexChanged += new System.EventHandler(this.Admin_TabIndexChanged);
//
// pb_MESswitch
//
this.pb_MESswitch.Location = new System.Drawing.Point(542, 15);
this.pb_MESswitch.Name = "pb_MESswitch";
this.pb_MESswitch.Size = new System.Drawing.Size(52, 31);
this.pb_MESswitch.TabIndex = 454;
this.pb_MESswitch.TabStop = false;
//
// lb_MESswitch
//
this.lb_MESswitch.AutoSize = true;
@@ -1087,6 +1095,15 @@
this.lb_MESswitch.TabIndex = 453;
this.lb_MESswitch.Text = "MES离线";
//
// pb_PLC_CommunicationStatus
//
this.pb_PLC_CommunicationStatus.BackColor = System.Drawing.Color.Silver;
this.pb_PLC_CommunicationStatus.Location = new System.Drawing.Point(387, 16);
this.pb_PLC_CommunicationStatus.Name = "pb_PLC_CommunicationStatus";
this.pb_PLC_CommunicationStatus.Size = new System.Drawing.Size(52, 28);
this.pb_PLC_CommunicationStatus.TabIndex = 452;
this.pb_PLC_CommunicationStatus.TabStop = false;
//
// label4
//
this.label4.AutoSize = true;
@@ -1402,6 +1419,15 @@
this.label34.Text = "正压模式";
this.label34.Visible = false;
//
// pictureBox5
//
this.pictureBox5.Location = new System.Drawing.Point(609, 264);
this.pictureBox5.Name = "pictureBox5";
this.pictureBox5.Size = new System.Drawing.Size(43, 27);
this.pictureBox5.TabIndex = 446;
this.pictureBox5.TabStop = false;
this.pictureBox5.Visible = false;
//
// label31
//
this.label31.AutoSize = true;
@@ -1414,6 +1440,15 @@
this.label31.Text = "负压模式";
this.label31.Visible = false;
//
// pictureBox4
//
this.pictureBox4.Location = new System.Drawing.Point(477, 264);
this.pictureBox4.Name = "pictureBox4";
this.pictureBox4.Size = new System.Drawing.Size(43, 27);
this.pictureBox4.TabIndex = 444;
this.pictureBox4.TabStop = false;
this.pictureBox4.Visible = false;
//
// label28
//
this.label28.AutoSize = true;
@@ -1425,6 +1460,14 @@
this.label28.TabIndex = 443;
this.label28.Text = "扫码完成";
//
// pictureBox3
//
this.pictureBox3.Location = new System.Drawing.Point(302, 268);
this.pictureBox3.Name = "pictureBox3";
this.pictureBox3.Size = new System.Drawing.Size(43, 27);
this.pictureBox3.TabIndex = 442;
this.pictureBox3.TabStop = false;
//
// label18
//
this.label18.AutoSize = true;
@@ -1436,6 +1479,14 @@
this.label18.TabIndex = 441;
this.label18.Text = "开始扫码";
//
// pictureBox2
//
this.pictureBox2.Location = new System.Drawing.Point(123, 268);
this.pictureBox2.Name = "pictureBox2";
this.pictureBox2.Size = new System.Drawing.Size(43, 27);
this.pictureBox2.TabIndex = 440;
this.pictureBox2.TabStop = false;
//
// lb_CH1MES_INstatus
//
this.lb_CH1MES_INstatus.AutoSize = true;
@@ -1866,6 +1917,15 @@
this.lb_CH3ProcessTime4.TabIndex = 470;
this.lb_CH3ProcessTime4.Text = "##";
//
// pictureBox1
//
this.pictureBox1.Location = new System.Drawing.Point(609, 264);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(43, 27);
this.pictureBox1.TabIndex = 446;
this.pictureBox1.TabStop = false;
this.pictureBox1.Visible = false;
//
// label44
//
this.label44.AutoSize = true;
@@ -1901,6 +1961,15 @@
this.lb_CH3ProcessTime3.TabIndex = 468;
this.lb_CH3ProcessTime3.Text = "##";
//
// pictureBox6
//
this.pictureBox6.Location = new System.Drawing.Point(477, 264);
this.pictureBox6.Name = "pictureBox6";
this.pictureBox6.Size = new System.Drawing.Size(43, 27);
this.pictureBox6.TabIndex = 444;
this.pictureBox6.TabStop = false;
this.pictureBox6.Visible = false;
//
// label48
//
this.label48.AutoSize = true;
@@ -1935,6 +2004,14 @@
this.lb_CH3ProcessTime2.TabIndex = 466;
this.lb_CH3ProcessTime2.Text = "##";
//
// pictureBox7
//
this.pictureBox7.Location = new System.Drawing.Point(302, 268);
this.pictureBox7.Name = "pictureBox7";
this.pictureBox7.Size = new System.Drawing.Size(43, 27);
this.pictureBox7.TabIndex = 442;
this.pictureBox7.TabStop = false;
//
// label53
//
this.label53.AutoSize = true;
@@ -1969,6 +2046,14 @@
this.lb_CH3ProcessTime1.TabIndex = 464;
this.lb_CH3ProcessTime1.Text = "##";
//
// pictureBox8
//
this.pictureBox8.Location = new System.Drawing.Point(123, 268);
this.pictureBox8.Name = "pictureBox8";
this.pictureBox8.Size = new System.Drawing.Size(43, 27);
this.pictureBox8.TabIndex = 440;
this.pictureBox8.TabStop = false;
//
// label57
//
this.label57.AutoSize = true;
@@ -2782,6 +2867,15 @@
this.label17.Text = "正压模式";
this.label17.Visible = false;
//
// pictureBox9
//
this.pictureBox9.Location = new System.Drawing.Point(609, 264);
this.pictureBox9.Name = "pictureBox9";
this.pictureBox9.Size = new System.Drawing.Size(43, 27);
this.pictureBox9.TabIndex = 446;
this.pictureBox9.TabStop = false;
this.pictureBox9.Visible = false;
//
// label21
//
this.label21.AutoSize = true;
@@ -2794,6 +2888,15 @@
this.label21.Text = "负压模式";
this.label21.Visible = false;
//
// pictureBox10
//
this.pictureBox10.Location = new System.Drawing.Point(477, 264);
this.pictureBox10.Name = "pictureBox10";
this.pictureBox10.Size = new System.Drawing.Size(43, 27);
this.pictureBox10.TabIndex = 444;
this.pictureBox10.TabStop = false;
this.pictureBox10.Visible = false;
//
// label24
//
this.label24.AutoSize = true;
@@ -2805,6 +2908,14 @@
this.label24.TabIndex = 443;
this.label24.Text = "扫码完成";
//
// pictureBox11
//
this.pictureBox11.Location = new System.Drawing.Point(302, 268);
this.pictureBox11.Name = "pictureBox11";
this.pictureBox11.Size = new System.Drawing.Size(43, 27);
this.pictureBox11.TabIndex = 442;
this.pictureBox11.TabStop = false;
//
// label25
//
this.label25.AutoSize = true;
@@ -2816,6 +2927,14 @@
this.label25.TabIndex = 441;
this.label25.Text = "开始扫码";
//
// pictureBox12
//
this.pictureBox12.Location = new System.Drawing.Point(123, 268);
this.pictureBox12.Name = "pictureBox12";
this.pictureBox12.Size = new System.Drawing.Size(43, 27);
this.pictureBox12.TabIndex = 440;
this.pictureBox12.TabStop = false;
//
// SerialPort_CH3Saoma
//
this.SerialPort_CH3Saoma.DataReceived += new System.IO.Ports.SerialDataReceivedEventHandler(this.SerialPort_CH3Saoma_DataReceived);
@@ -2922,125 +3041,6 @@
this.DataGridView2.TabIndex = 439;
this.DataGridView2.RowPrePaint += new System.Windows.Forms.DataGridViewRowPrePaintEventHandler(this.DataGridView2_RowPrePaint);
//
// pictureBox9
//
this.pictureBox9.Location = new System.Drawing.Point(609, 264);
this.pictureBox9.Name = "pictureBox9";
this.pictureBox9.Size = new System.Drawing.Size(43, 27);
this.pictureBox9.TabIndex = 446;
this.pictureBox9.TabStop = false;
this.pictureBox9.Visible = false;
//
// pictureBox10
//
this.pictureBox10.Location = new System.Drawing.Point(477, 264);
this.pictureBox10.Name = "pictureBox10";
this.pictureBox10.Size = new System.Drawing.Size(43, 27);
this.pictureBox10.TabIndex = 444;
this.pictureBox10.TabStop = false;
this.pictureBox10.Visible = false;
//
// pictureBox11
//
this.pictureBox11.Location = new System.Drawing.Point(302, 268);
this.pictureBox11.Name = "pictureBox11";
this.pictureBox11.Size = new System.Drawing.Size(43, 27);
this.pictureBox11.TabIndex = 442;
this.pictureBox11.TabStop = false;
//
// pictureBox12
//
this.pictureBox12.Location = new System.Drawing.Point(123, 268);
this.pictureBox12.Name = "pictureBox12";
this.pictureBox12.Size = new System.Drawing.Size(43, 27);
this.pictureBox12.TabIndex = 440;
this.pictureBox12.TabStop = false;
//
// pictureBox1
//
this.pictureBox1.Location = new System.Drawing.Point(609, 264);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(43, 27);
this.pictureBox1.TabIndex = 446;
this.pictureBox1.TabStop = false;
this.pictureBox1.Visible = false;
//
// pictureBox6
//
this.pictureBox6.Location = new System.Drawing.Point(477, 264);
this.pictureBox6.Name = "pictureBox6";
this.pictureBox6.Size = new System.Drawing.Size(43, 27);
this.pictureBox6.TabIndex = 444;
this.pictureBox6.TabStop = false;
this.pictureBox6.Visible = false;
//
// pictureBox7
//
this.pictureBox7.Location = new System.Drawing.Point(302, 268);
this.pictureBox7.Name = "pictureBox7";
this.pictureBox7.Size = new System.Drawing.Size(43, 27);
this.pictureBox7.TabIndex = 442;
this.pictureBox7.TabStop = false;
//
// pictureBox8
//
this.pictureBox8.Location = new System.Drawing.Point(123, 268);
this.pictureBox8.Name = "pictureBox8";
this.pictureBox8.Size = new System.Drawing.Size(43, 27);
this.pictureBox8.TabIndex = 440;
this.pictureBox8.TabStop = false;
//
// pb_MESswitch
//
this.pb_MESswitch.Location = new System.Drawing.Point(542, 15);
this.pb_MESswitch.Name = "pb_MESswitch";
this.pb_MESswitch.Size = new System.Drawing.Size(52, 31);
this.pb_MESswitch.TabIndex = 454;
this.pb_MESswitch.TabStop = false;
//
// pb_PLC_CommunicationStatus
//
this.pb_PLC_CommunicationStatus.BackColor = System.Drawing.Color.Silver;
this.pb_PLC_CommunicationStatus.Location = new System.Drawing.Point(387, 16);
this.pb_PLC_CommunicationStatus.Name = "pb_PLC_CommunicationStatus";
this.pb_PLC_CommunicationStatus.Size = new System.Drawing.Size(52, 28);
this.pb_PLC_CommunicationStatus.TabIndex = 452;
this.pb_PLC_CommunicationStatus.TabStop = false;
//
// pictureBox5
//
this.pictureBox5.Location = new System.Drawing.Point(609, 264);
this.pictureBox5.Name = "pictureBox5";
this.pictureBox5.Size = new System.Drawing.Size(43, 27);
this.pictureBox5.TabIndex = 446;
this.pictureBox5.TabStop = false;
this.pictureBox5.Visible = false;
//
// pictureBox4
//
this.pictureBox4.Location = new System.Drawing.Point(477, 264);
this.pictureBox4.Name = "pictureBox4";
this.pictureBox4.Size = new System.Drawing.Size(43, 27);
this.pictureBox4.TabIndex = 444;
this.pictureBox4.TabStop = false;
this.pictureBox4.Visible = false;
//
// pictureBox3
//
this.pictureBox3.Location = new System.Drawing.Point(302, 268);
this.pictureBox3.Name = "pictureBox3";
this.pictureBox3.Size = new System.Drawing.Size(43, 27);
this.pictureBox3.TabIndex = 442;
this.pictureBox3.TabStop = false;
//
// pictureBox2
//
this.pictureBox2.Location = new System.Drawing.Point(123, 268);
this.pictureBox2.Name = "pictureBox2";
this.pictureBox2.Size = new System.Drawing.Size(43, 27);
this.pictureBox2.TabIndex = 440;
this.pictureBox2.TabStop = false;
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
@@ -3062,37 +3062,37 @@
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.KeyPreview = true;
this.Name = "Form1";
this.Text = " LL28-Z_V25111701";
this.Text = " LL28-Z_V25111702";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing);
this.Load += new System.EventHandler(this.Form1_Load);
this.uiGroupBox5.ResumeLayout(false);
this.uiGroupBox5.PerformLayout();
this.nb_MainMenu.ResumeLayout(false);
this.nb_MainMenu.PerformLayout();
this.uiGroupBox1.ResumeLayout(false);
this.uiGroupBox1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.DataGridView1)).EndInit();
this.uiGroupBox2.ResumeLayout(false);
this.uiGroupBox2.PerformLayout();
this.uiGroupBox3.ResumeLayout(false);
this.uiGroupBox3.PerformLayout();
this.uiGroupBox4.ResumeLayout(false);
this.uiGroupBox4.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.DataGridView2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox9)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox10)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox11)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox12)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox6)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox7)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox8)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pb_MESswitch)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pb_PLC_CommunicationStatus)).EndInit();
this.uiGroupBox1.ResumeLayout(false);
this.uiGroupBox1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox5)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox4)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.DataGridView1)).EndInit();
this.uiGroupBox2.ResumeLayout(false);
this.uiGroupBox2.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox6)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox7)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox8)).EndInit();
this.uiGroupBox3.ResumeLayout(false);
this.uiGroupBox3.PerformLayout();
this.uiGroupBox4.ResumeLayout(false);
this.uiGroupBox4.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox9)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox10)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox11)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox12)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.DataGridView2)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();

View File

@@ -30,39 +30,15 @@
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form_LogOn));
this.Account = new System.Windows.Forms.ComboBox();
this.label2 = new System.Windows.Forms.Label();
this.Logtime = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.Password = new System.Windows.Forms.TextBox();
this.tb_Password = new System.Windows.Forms.TextBox();
this.Log = new System.Windows.Forms.Button();
this.Timer_timeShow = new System.Windows.Forms.Timer(this.components);
this.timer2 = new System.Windows.Forms.Timer(this.components);
this.bt_PasswordAdd = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// Account
//
this.Account.Font = new System.Drawing.Font("宋体", 15F);
this.Account.FormattingEnabled = true;
this.Account.Location = new System.Drawing.Point(54, 203);
this.Account.Name = "Account";
this.Account.Size = new System.Drawing.Size(190, 28);
this.Account.TabIndex = 45;
this.Account.Visible = false;
this.Account.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Account_KeyDown);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("宋体", 13F);
this.label2.Location = new System.Drawing.Point(82, 182);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(134, 18);
this.label2.TabIndex = 44;
this.label2.Text = "请选择账户名称";
this.label2.Visible = false;
//
// Logtime
//
this.Logtime.AutoSize = true;
@@ -96,15 +72,15 @@
this.label1.TabIndex = 40;
this.label1.Text = "请输入密码";
//
// Password
// tb_Password
//
this.Password.Font = new System.Drawing.Font("宋体", 15F);
this.Password.Location = new System.Drawing.Point(55, 64);
this.Password.Name = "Password";
this.Password.Size = new System.Drawing.Size(190, 30);
this.Password.TabIndex = 39;
this.Password.UseSystemPasswordChar = true;
this.Password.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Password_KeyDown);
this.tb_Password.Font = new System.Drawing.Font("宋体", 15F);
this.tb_Password.Location = new System.Drawing.Point(55, 64);
this.tb_Password.Name = "tb_Password";
this.tb_Password.Size = new System.Drawing.Size(190, 30);
this.tb_Password.TabIndex = 39;
this.tb_Password.UseSystemPasswordChar = true;
this.tb_Password.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Password_KeyDown);
//
// Log
//
@@ -121,22 +97,28 @@
//
this.Timer_timeShow.Tick += new System.EventHandler(this.Timer1_Tick);
//
// timer2
// bt_PasswordAdd
//
this.timer2.Tick += new System.EventHandler(this.timer2_Tick);
this.bt_PasswordAdd.Font = new System.Drawing.Font("宋体", 10F);
this.bt_PasswordAdd.Location = new System.Drawing.Point(227, 174);
this.bt_PasswordAdd.Name = "bt_PasswordAdd";
this.bt_PasswordAdd.Size = new System.Drawing.Size(76, 29);
this.bt_PasswordAdd.TabIndex = 47;
this.bt_PasswordAdd.Text = "添加密码";
this.bt_PasswordAdd.UseVisualStyleBackColor = true;
this.bt_PasswordAdd.Click += new System.EventHandler(this.bt_PasswordAdd_Click);
//
// Form_LogOn
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(314, 179);
this.ClientSize = new System.Drawing.Size(314, 215);
this.Controls.Add(this.bt_PasswordAdd);
this.Controls.Add(this.Log);
this.Controls.Add(this.Account);
this.Controls.Add(this.label2);
this.Controls.Add(this.Logtime);
this.Controls.Add(this.label3);
this.Controls.Add(this.label1);
this.Controls.Add(this.Password);
this.Controls.Add(this.tb_Password);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "Form_LogOn";
this.Text = "登录";
@@ -148,15 +130,12 @@
}
#endregion
public System.Windows.Forms.ComboBox Account;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label Logtime;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.TextBox Password;
private System.Windows.Forms.TextBox tb_Password;
private System.Windows.Forms.Button Log;
private System.Windows.Forms.Timer Timer_timeShow;
private System.Windows.Forms.Timer timer2;
private System.Windows.Forms.Button bt_PasswordAdd;
}
}

View File

@@ -1,4 +1,5 @@
using System;
using Sunny.UI;
using System;
using System.Windows.Forms;
namespace SLC1_N
@@ -17,53 +18,66 @@ namespace SLC1_N
Timer_timeShow.Interval = 1000;
Timer_timeShow.Start();
Password.Focus();
tb_Password.Focus();
}
private void Log_Click(object sender, EventArgs e)
{
try
{
if (Password.Text == "linglong29529959" || Password.Text == "29529959" || Password.Text == "qwe")
if (tb_Password.Text == "linglong29529959" || tb_Password.Text == "29529959" || tb_Password.Text == "qwe")
{
Timer_timeShow.Stop();
Form1.f1.lb_User.Text = "厂商";
Form1.f1.User = "厂商";
this.Close();
}
else
{
string userpassword2 = DateTime.Now.ToString("yyMMHH");
string userpassword = DateTime.Now.ToString("ddHHmm");
string userpassword3 = "ghkj.2021";
if (Password.Text == userpassword)
bool bPassword = false;
string password_管理员 = DateTime.Now.ToString("yyMMHH");
string password_工程师 = DateTime.Now.ToString("ddHHmm");
string password_超级管理员 = "ghkj.2021";
if (tb_Password.Text == password_工程师)
{
Form1.f1.lb_User.Text = "工程师";
Form1.f1.User = "工程师";
Timer_timeShow.Stop();
this.Close();
bPassword = true;
}
else if (Password.Text== userpassword2)
else if (tb_Password.Text == password_管理员)
{
Form1.f1.lb_User.Text = "管理员";
Form1.f1.User = "管理员";
Timer_timeShow.Stop();
this.Close();
bPassword = true;
}
else if (Password.Text == userpassword3|| Password.Text == "123456" || Password.Text == "8888")
else if (tb_Password.Text == password_超级管理员 || tb_Password.Text == "123456")
{
Form1.f1.lb_User.Text = "超级管理员";
Form1.f1.User = "超级管理员";
Timer_timeShow.Stop();
bPassword = true;
}
var jsconfig = new JsonConfig("config.json");
string[] userPasswordArray = jsconfig.GetValue<string>("userPassword", "8888").Split('&');
for (int i = 0; i < userPasswordArray.Length; i++)
{
if (tb_Password.Text == userPasswordArray[i])
{
Form1.f1.lb_User.Text = "超级管理员";
Form1.f1.User = "超级管理员";
bPassword = true;
}
}
// 如果有登陆成功
if(bPassword)
{
this.Close();
}
else
{
MessageBox.Show("密码错误!");
Password.ResetText();
Password.Focus();
tb_Password.ResetText();
tb_Password.Focus();
}
}
}
@@ -73,11 +87,12 @@ namespace SLC1_N
}
}
// 密码回车
private void Password_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == System.Windows.Forms.Keys.Enter)
{
Log.PerformClick(); //执行单击button的动作
Log.PerformClick();
}
}
@@ -89,20 +104,45 @@ namespace SLC1_N
//}
}
// 显示时间
private void Timer1_Tick(object sender, EventArgs e)
{
Logtime.Text = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
}
private void Account_KeyDown(object sender, KeyEventArgs e)
// 添加密码
private void bt_PasswordAdd_Click(object sender, EventArgs e)
{
e.Handled = true;
if (Form1.f1.User == "厂商" || Form1.f1.User == "超级管理员")
{
var jsconfig = new JsonConfig("config.json");
string userPassword = jsconfig.GetValue<string>("userPassword", "8888");
if (!tb_Password.Text.Trim().IsNullOrEmpty())
{
string[] userPasswordArray = userPassword.Split('&');
for (int i = 0; i < userPasswordArray.Length; i++)
{
if (tb_Password.Text == userPasswordArray[i])
{
MessageBox.Show("密码已存在!");
return;
}
}
private void timer2_Tick(object sender, EventArgs e)
userPassword += $"&{tb_Password.Text}";
jsconfig.SetValue("userPassword", userPassword);
MessageBox.Show("添加成功!");
}
else
{
Form1.f1.lb_User.Text = "操作员";
Form1.f1.User = "操作员";
MessageBox.Show("密码不可为空!");
}
}
else
{
MessageBox.Show("非法用户!");
}
}
}
}

View File

@@ -120,9 +120,6 @@
<metadata name="Timer_timeShow.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="timer2.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>107, 17</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>

View File

@@ -7,7 +7,7 @@
<ProjectGuid>{F7F71589-095A-45C2-975C-739BE2D1CE15}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>SLC1_N</RootNamespace>
<AssemblyName>LL28-Z-V25111701</AssemblyName>
<AssemblyName>LL28-Z-V25111702</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>

Binary file not shown.

Binary file not shown.

View File

@@ -167,5 +167,6 @@
"4Npunit1": 1,
"4Nlunit1": 1,
"4Nbee1": false,
"4Nopmode1": false
"4Nopmode1": false,
"userPassword": "8888&mxl"
}

Binary file not shown.

View File

@@ -716,6 +716,9 @@ D:\华贝\上位机\正负压 LL-28\LL-28\SLC1-N\obj\Debug\LL28-Z-V25111505.exe
D:\华贝\上位机\正负压 LL-28\LL-28\SLC1-N\obj\Debug\LL28-Z-V25111505.pdb
D:\桌面\莫禧亮\华贝\正负压28\正负压 LL-28\LL-28\SLC1-N\bin\Debug\TCP\ITcpClient.cs
D:\桌面\莫禧亮\华贝\正负压28\正负压 LL-28\LL-28\SLC1-N\bin\Debug\TCP\ITcpClient.Designer.cs
D:\桌面\莫禧亮\华贝\正负压28\正负压 LL-28\LL-28\SLC1-N\bin\Debug\LL28-Z-V25111702.exe.config
D:\桌面\莫禧亮\华贝\正负压28\正负压 LL-28\LL-28\SLC1-N\bin\Debug\LL28-Z-V25111702.exe
D:\桌面\莫禧亮\华贝\正负压28\正负压 LL-28\LL-28\SLC1-N\bin\Debug\LL28-Z-V25111702.pdb
D:\桌面\莫禧亮\华贝\正负压28\正负压 LL-28\LL-28\SLC1-N\bin\Debug\DocumentFormat.OpenXml.dll
D:\桌面\莫禧亮\华贝\正负压28\正负压 LL-28\LL-28\SLC1-N\bin\Debug\EasyModbus.dll
D:\桌面\莫禧亮\华贝\正负压28\正负压 LL-28\LL-28\SLC1-N\bin\Debug\Guna.UI.dll
@@ -733,6 +736,7 @@ D:\桌面\莫禧亮\华贝\正负压28\正负压 LL-28\LL-28\SLC1-N\obj\Debug\SL
D:\桌面\莫禧亮\华贝\正负压28\正负压 LL-28\LL-28\SLC1-N\obj\Debug\Interop.ADOX.dll
D:\桌面\莫禧亮\华贝\正负压28\正负压 LL-28\LL-28\SLC1-N\obj\Debug\SLC1-N.csproj.ResolveComReference.cache
D:\桌面\莫禧亮\华贝\正负压28\正负压 LL-28\LL-28\SLC1-N\obj\Debug\SLC1_N.Form_Alarm.resources
D:\桌面\莫禧亮\华贝\正负压28\正负压 LL-28\LL-28\SLC1-N\obj\Debug\SLC1_N.Form_BatchSave.resources
D:\桌面\莫禧亮\华贝\正负压28\正负压 LL-28\LL-28\SLC1-N\obj\Debug\SLC1_N.Form_hbMESset.resources
D:\桌面\莫禧亮\华贝\正负压28\正负压 LL-28\LL-28\SLC1-N\obj\Debug\SLC1_N.Form_HQMESconfig.resources
D:\桌面\莫禧亮\华贝\正负压28\正负压 LL-28\LL-28\SLC1-N\obj\Debug\SLC1_N.Form_NetworkSet.resources
@@ -753,9 +757,5 @@ D:\桌面\莫禧亮\华贝\正负压28\正负压 LL-28\LL-28\SLC1-N\obj\Debug\SL
D:\桌面\莫禧亮\华贝\正负压28\正负压 LL-28\LL-28\SLC1-N\obj\Debug\SLC1-N.csproj.GenerateResource.cache
D:\桌面\莫禧亮\华贝\正负压28\正负压 LL-28\LL-28\SLC1-N\obj\Debug\SLC1-N.csproj.CoreCompileInputs.cache
D:\桌面\莫禧亮\华贝\正负压28\正负压 LL-28\LL-28\SLC1-N\obj\Debug\SLC1-N.csproj.Up2Date
D:\桌面\莫禧亮\华贝\正负压28\正负压 LL-28\LL-28\SLC1-N\obj\Debug\SLC1_N.Form_BatchSave.resources
D:\桌面\莫禧亮\华贝\正负压28\正负压 LL-28\LL-28\SLC1-N\bin\Debug\LL28-Z-V25111701.exe.config
D:\桌面\莫禧亮\华贝\正负压28\正负压 LL-28\LL-28\SLC1-N\bin\Debug\LL28-Z-V25111701.exe
D:\桌面\莫禧亮\华贝\正负压28\正负压 LL-28\LL-28\SLC1-N\bin\Debug\LL28-Z-V25111701.pdb
D:\桌面\莫禧亮\华贝\正负压28\正负压 LL-28\LL-28\SLC1-N\obj\Debug\LL28-Z-V25111701.exe
D:\桌面\莫禧亮\华贝\正负压28\正负压 LL-28\LL-28\SLC1-N\obj\Debug\LL28-Z-V25111701.pdb
D:\桌面\莫禧亮\华贝\正负压28\正负压 LL-28\LL-28\SLC1-N\obj\Debug\LL28-Z-V25111702.exe
D:\桌面\莫禧亮\华贝\正负压28\正负压 LL-28\LL-28\SLC1-N\obj\Debug\LL28-Z-V25111702.pdb