LEEHSIEHJUI 1 gadu atpakaļ
vecāks
revīzija
50d8e2bde4
31 mainītis faili ar 2009 papildinājumiem un 80 dzēšanām
  1. Binārs
      .vs/FTP-DGAC-SYS/FileContentIndex/10a0aa9e-3efa-4928-a67a-026c8f054fce.vsidx
  2. Binārs
      .vs/FTP-DGAC-SYS/FileContentIndex/33283e4d-54cc-4e33-8600-abd899d7a012.vsidx
  3. Binārs
      .vs/FTP-DGAC-SYS/FileContentIndex/813cec11-30fe-41bc-841b-e0959fb518b2.vsidx
  4. Binārs
      .vs/FTP-DGAC-SYS/FileContentIndex/834702eb-6333-46ae-92e4-f1fc7a625e4d.vsidx
  5. Binārs
      .vs/FTP-DGAC-SYS/FileContentIndex/97d51c53-4fa3-4658-ab29-180240111d32.vsidx
  6. Binārs
      .vs/FTP-DGAC-SYS/FileContentIndex/9b2af6e4-72cc-4b72-8ba9-dd4918aab74a.vsidx
  7. 0
    0
      .vs/FTP-DGAC-SYS/FileContentIndex/read.lock
  8. Binārs
      .vs/FTP-DGAC-SYS/v17/.suo
  9. 108
    0
      .vs/FTP-DGAC-SYS/v17/DocumentLayout.json
  10. 84
    46
      FTP-DGAC-SYS/FTP-DGAC-SYS.Designer.vb
  11. 3
    0
      FTP-DGAC-SYS/FTP-DGAC-SYS.resx
  12. 81
    32
      FTP-DGAC-SYS/FTP-DGAC-SYS.vb
  13. 11
    0
      FTP-DGAC-SYS/FTP-DGAC-SYS.vbproj
  14. 1414
    0
      FTP-DGAC-SYS/LINE_使用者管理表.Designer.vb
  15. 120
    0
      FTP-DGAC-SYS/LINE_使用者管理表.resx
  16. 3
    0
      FTP-DGAC-SYS/LINE_使用者管理表.vb
  17. 150
    0
      FTP-DGAC-SYS/SQL_LINE.vb
  18. 32
    0
      FTP-DGAC-SYS/SQL_Module.vb
  19. Binārs
      FTP-DGAC-SYS/bin/Debug/FTP-DGAC-SYS.exe
  20. Binārs
      FTP-DGAC-SYS/bin/Debug/FTP-DGAC-SYS.pdb
  21. 1
    0
      FTP-DGAC-SYS/bin/Debug/SERVERNAME.CSV
  22. Binārs
      FTP-DGAC-SYS/obj/Debug/DesignTimeResolveAssemblyReferences.cache
  23. Binārs
      FTP-DGAC-SYS/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
  24. Binārs
      FTP-DGAC-SYS/obj/Debug/FTP-DGAC-SYS.exe
  25. Binārs
      FTP-DGAC-SYS/obj/Debug/FTP-DGAC-SYS.pdb
  26. Binārs
      FTP-DGAC-SYS/obj/Debug/FTP-DGAC-SYS.vbproj.AssemblyReference.cache
  27. 1
    1
      FTP-DGAC-SYS/obj/Debug/FTP-DGAC-SYS.vbproj.CoreCompileInputs.cache
  28. 1
    1
      FTP-DGAC-SYS/obj/Debug/FTP-DGAC-SYS.vbproj.FileListAbsolute.txt
  29. Binārs
      FTP-DGAC-SYS/obj/Debug/FTP-DGAC-SYS.vbproj.GenerateResource.cache
  30. 0
    0
      FTP-DGAC-SYS/obj/Debug/FTP-DGAC-SYS.vbproj.SuggestedBindingRedirects.cache
  31. Binārs
      FTP-DGAC-SYS/obj/Debug/FTP_DGAC_SYS.LINE_使用者管理表.resources

Binārs
.vs/FTP-DGAC-SYS/FileContentIndex/10a0aa9e-3efa-4928-a67a-026c8f054fce.vsidx Parādīt failu


Binārs
.vs/FTP-DGAC-SYS/FileContentIndex/33283e4d-54cc-4e33-8600-abd899d7a012.vsidx Parādīt failu


Binārs
.vs/FTP-DGAC-SYS/FileContentIndex/813cec11-30fe-41bc-841b-e0959fb518b2.vsidx Parādīt failu


Binārs
.vs/FTP-DGAC-SYS/FileContentIndex/834702eb-6333-46ae-92e4-f1fc7a625e4d.vsidx Parādīt failu


Binārs
.vs/FTP-DGAC-SYS/FileContentIndex/97d51c53-4fa3-4658-ab29-180240111d32.vsidx Parādīt failu


Binārs
.vs/FTP-DGAC-SYS/FileContentIndex/9b2af6e4-72cc-4b72-8ba9-dd4918aab74a.vsidx Parādīt failu


+ 0
- 0
.vs/FTP-DGAC-SYS/FileContentIndex/read.lock Parādīt failu


Binārs
.vs/FTP-DGAC-SYS/v17/.suo Parādīt failu


+ 108
- 0
.vs/FTP-DGAC-SYS/v17/DocumentLayout.json Parādīt failu

@@ -0,0 +1,108 @@
1
+{
2
+  "Version": 1,
3
+  "WorkspaceRootPath": "D:\\\u5DE5\u5DE7\u660E\\FTP-DGAC\\FTP-DGAC-SYS\\",
4
+  "Documents": [
5
+    {
6
+      "AbsoluteMoniker": "D:0:0:{41BA1A26-BAFE-43DA-886C-132DC14A8B99}|FTP-DGAC-SYS\\FTP-DGAC-SYS.vbproj|d:\\\u5DE5\u5DE7\u660E\\ftp-dgac\\ftp-dgac-sys\\ftp-dgac-sys\\ftp-dgac-sys.vb||{2C015C70-C72C-11D0-88C3-00A0C9110049}",
7
+      "RelativeMoniker": "D:0:0:{41BA1A26-BAFE-43DA-886C-132DC14A8B99}|FTP-DGAC-SYS\\FTP-DGAC-SYS.vbproj|solutionrelative:ftp-dgac-sys\\ftp-dgac-sys.vb||{2C015C70-C72C-11D0-88C3-00A0C9110049}"
8
+    },
9
+    {
10
+      "AbsoluteMoniker": "D:0:0:{41BA1A26-BAFE-43DA-886C-132DC14A8B99}|FTP-DGAC-SYS\\FTP-DGAC-SYS.vbproj|D:\\\u5DE5\u5DE7\u660E\\FTP-DGAC\\FTP-DGAC-SYS\\ftp-dgac-sys\\sql_module.vb||{2C015C70-C72C-11D0-88C3-00A0C9110049}",
11
+      "RelativeMoniker": "D:0:0:{41BA1A26-BAFE-43DA-886C-132DC14A8B99}|FTP-DGAC-SYS\\FTP-DGAC-SYS.vbproj|solutionrelative:ftp-dgac-sys\\sql_module.vb||{2C015C70-C72C-11D0-88C3-00A0C9110049}"
12
+    },
13
+    {
14
+      "AbsoluteMoniker": "D:0:0:{00000000-0000-0000-0000-000000000000}|\u003CSolution\u003E|FTP-DGAC-SYS||{04B8AB82-A572-4FEF-95CE-5222444B6B64}|"
15
+    },
16
+    {
17
+      "AbsoluteMoniker": "D:0:0:{41BA1A26-BAFE-43DA-886C-132DC14A8B99}|FTP-DGAC-SYS\\FTP-DGAC-SYS.vbproj|D:\\\u5DE5\u5DE7\u660E\\FTP-DGAC\\FTP-DGAC-SYS\\ftp-dgac-sys\\ftp-dgac-sys.vb||{2C015C70-C72C-11D0-88C3-00A0C9110049}|Form",
18
+      "RelativeMoniker": "D:0:0:{41BA1A26-BAFE-43DA-886C-132DC14A8B99}|FTP-DGAC-SYS\\FTP-DGAC-SYS.vbproj|solutionrelative:ftp-dgac-sys\\ftp-dgac-sys.vb||{2C015C70-C72C-11D0-88C3-00A0C9110049}|Form"
19
+    },
20
+    {
21
+      "AbsoluteMoniker": "D:0:0:{41BA1A26-BAFE-43DA-886C-132DC14A8B99}|FTP-DGAC-SYS\\FTP-DGAC-SYS.vbproj|D:\\\u5DE5\u5DE7\u660E\\FTP-DGAC\\FTP-DGAC-SYS\\ftp-dgac-sys\\app.manifest||{FA3CD31E-987B-443A-9B81-186104E8DAC1}",
22
+      "RelativeMoniker": "D:0:0:{41BA1A26-BAFE-43DA-886C-132DC14A8B99}|FTP-DGAC-SYS\\FTP-DGAC-SYS.vbproj|solutionrelative:ftp-dgac-sys\\app.manifest||{FA3CD31E-987B-443A-9B81-186104E8DAC1}"
23
+    },
24
+    {
25
+      "AbsoluteMoniker": "D:0:0:{41BA1A26-BAFE-43DA-886C-132DC14A8B99}|FTP-DGAC-SYS\\FTP-DGAC-SYS.vbproj|d:\\\u5DE5\u5DE7\u660E\\ftp-dgac\\ftp-dgac-sys\\ftp-dgac-sys\\||{B270807C-D8C6-49EB-8EBE-8E8D566637A1}|8998e48e-b89a-4034-b66e-353d8c1fdc2e"
26
+    }
27
+  ],
28
+  "DocumentGroupContainers": [
29
+    {
30
+      "Orientation": 0,
31
+      "VerticalTabListWidth": 256,
32
+      "DocumentGroups": [
33
+        {
34
+          "DockedWidth": 200,
35
+          "SelectedChildIndex": 4,
36
+          "Children": [
37
+            {
38
+              "$type": "Bookmark",
39
+              "Name": "ST:0:0:{004be353-6879-467c-9d1e-9ac23cdf6d49}"
40
+            },
41
+            {
42
+              "$type": "Document",
43
+              "DocumentIndex": 1,
44
+              "Title": "SQL_Module.vb",
45
+              "DocumentMoniker": "D:\\\u5DE5\u5DE7\u660E\\FTP-DGAC\\FTP-DGAC-SYS\\FTP-DGAC-SYS\\SQL_Module.vb",
46
+              "RelativeDocumentMoniker": "FTP-DGAC-SYS\\SQL_Module.vb",
47
+              "ToolTip": "D:\\\u5DE5\u5DE7\u660E\\FTP-DGAC\\FTP-DGAC-SYS\\FTP-DGAC-SYS\\SQL_Module.vb",
48
+              "RelativeToolTip": "FTP-DGAC-SYS\\SQL_Module.vb",
49
+              "ViewState": "AQIAAAIAAAAAAAAAAAAgwBUAAAAEAAAA",
50
+              "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003361|",
51
+              "WhenOpened": "2024-05-26T02:38:16.387Z",
52
+              "EditorCaption": ""
53
+            },
54
+            {
55
+              "$type": "Document",
56
+              "DocumentIndex": 4,
57
+              "Title": "app.manifest",
58
+              "DocumentMoniker": "D:\\\u5DE5\u5DE7\u660E\\FTP-DGAC\\FTP-DGAC-SYS\\FTP-DGAC-SYS\\app.manifest",
59
+              "RelativeDocumentMoniker": "FTP-DGAC-SYS\\app.manifest",
60
+              "ToolTip": "D:\\\u5DE5\u5DE7\u660E\\FTP-DGAC\\FTP-DGAC-SYS\\FTP-DGAC-SYS\\app.manifest",
61
+              "RelativeToolTip": "FTP-DGAC-SYS\\app.manifest",
62
+              "ViewState": "AQIAAAAAAAAAAAAAAAAAABIAAAA8AAAA",
63
+              "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.001203|",
64
+              "WhenOpened": "2023-02-18T08:52:37.753Z"
65
+            },
66
+            {
67
+              "$type": "Document",
68
+              "DocumentIndex": 2,
69
+              "Title": "FTP-DGAC-SYS",
70
+              "DocumentMoniker": "D:\\\u5DE5\u5DE7\u660E\\FTP-DGAC\\FTP-DGAC-SYS\\FTP-DGAC-SYS\\FTP-DGAC-SYS.vbproj",
71
+              "RelativeDocumentMoniker": "FTP-DGAC-SYS\\FTP-DGAC-SYS.vbproj",
72
+              "ToolTip": "D:\\\u5DE5\u5DE7\u660E\\FTP-DGAC\\FTP-DGAC-SYS\\FTP-DGAC-SYS\\FTP-DGAC-SYS.vbproj",
73
+              "RelativeToolTip": "FTP-DGAC-SYS\\FTP-DGAC-SYS.vbproj",
74
+              "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.001001|",
75
+              "WhenOpened": "2023-02-18T03:36:55.506Z",
76
+              "EditorCaption": ""
77
+            },
78
+            {
79
+              "$type": "Document",
80
+              "DocumentIndex": 0,
81
+              "Title": "FTP-DGAC-SYS.vb",
82
+              "DocumentMoniker": "D:\\\u5DE5\u5DE7\u660E\\FTP-DGAC\\FTP-DGAC-SYS\\FTP-DGAC-SYS\\FTP-DGAC-SYS.vb",
83
+              "RelativeDocumentMoniker": "FTP-DGAC-SYS\\FTP-DGAC-SYS.vb",
84
+              "ToolTip": "D:\\\u5DE5\u5DE7\u660E\\FTP-DGAC\\FTP-DGAC-SYS\\FTP-DGAC-SYS\\FTP-DGAC-SYS.vb",
85
+              "RelativeToolTip": "FTP-DGAC-SYS\\FTP-DGAC-SYS.vb",
86
+              "ViewState": "AQIAAGQAAAAAAAAAAAAgwHcAAAAYAAAA",
87
+              "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003361|",
88
+              "WhenOpened": "2023-02-18T03:33:17.733Z",
89
+              "EditorCaption": ""
90
+            },
91
+            {
92
+              "$type": "Document",
93
+              "DocumentIndex": 3,
94
+              "Title": "FTP-DGAC-SYS.vb [\u8A2D\u8A08]",
95
+              "DocumentMoniker": "D:\\\u5DE5\u5DE7\u660E\\FTP-DGAC\\FTP-DGAC-SYS\\FTP-DGAC-SYS\\FTP-DGAC-SYS.vb",
96
+              "RelativeDocumentMoniker": "FTP-DGAC-SYS\\FTP-DGAC-SYS.vb",
97
+              "ToolTip": "D:\\\u5DE5\u5DE7\u660E\\FTP-DGAC\\FTP-DGAC-SYS\\FTP-DGAC-SYS\\FTP-DGAC-SYS.vb [\u8A2D\u8A08]",
98
+              "RelativeToolTip": "FTP-DGAC-SYS\\FTP-DGAC-SYS.vb [\u8A2D\u8A08]",
99
+              "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003361|",
100
+              "WhenOpened": "2023-02-18T03:28:51.885Z",
101
+              "EditorCaption": " [\u8A2D\u8A08]"
102
+            }
103
+          ]
104
+        }
105
+      ]
106
+    }
107
+  ]
108
+}

+ 84
- 46
FTP-DGAC-SYS/FTP-DGAC-SYS.Designer.vb Parādīt failu

@@ -26,9 +26,11 @@ Partial Class FTP_DGAC_SYS
26 26
         Dim DataGridViewCellStyle1 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27 27
         Dim DataGridViewCellStyle2 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
28 28
         Dim DataGridViewCellStyle3 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
29
+        Dim DataGridViewCellStyle6 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
30
+        Dim DataGridViewCellStyle7 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
31
+        Dim DataGridViewCellStyle8 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
29 32
         Dim DataGridViewCellStyle4 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
30 33
         Dim DataGridViewCellStyle5 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
31
-        Dim DataGridViewCellStyle6 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
32 34
         Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(FTP_DGAC_SYS))
33 35
         Me.捷徑_dgv = New System.Windows.Forms.DataGridView()
34 36
         Me.Column2 = New System.Windows.Forms.DataGridViewTextBoxColumn()
@@ -60,17 +62,19 @@ Partial Class FTP_DGAC_SYS
60 62
         Me.通知_lb = New System.Windows.Forms.Label()
61 63
         Me.自動運行 = New System.Windows.Forms.Timer(Me.components)
62 64
         Me.停頓1 = New System.Windows.Forms.Timer(Me.components)
65
+        Me.計算分流3 = New System.Windows.Forms.Timer(Me.components)
66
+        Me.清單1_dgv = New System.Windows.Forms.DataGridView()
63 67
         CType(Me.捷徑_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
64 68
         Me.Panel1.SuspendLayout()
65 69
         CType(Me.剔除清單_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
66 70
         CType(Me.計數_nud, System.ComponentModel.ISupportInitialize).BeginInit()
71
+        CType(Me.清單1_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
67 72
         Me.SuspendLayout()
68 73
         '
69 74
         '捷徑_dgv
70 75
         '
71
-        Me.捷徑_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
72
-            Or System.Windows.Forms.AnchorStyles.Left) _
73
-            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
76
+        Me.捷徑_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
77
+            Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
74 78
         Me.捷徑_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
75 79
         Me.捷徑_dgv.BackgroundColor = System.Drawing.Color.White
76 80
         Me.捷徑_dgv.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
@@ -106,7 +110,7 @@ Partial Class FTP_DGAC_SYS
106 110
         Me.捷徑_dgv.RowHeadersDefaultCellStyle = DataGridViewCellStyle3
107 111
         Me.捷徑_dgv.RowHeadersWidth = 5
108 112
         Me.捷徑_dgv.RowTemplate.Height = 24
109
-        Me.捷徑_dgv.Size = New System.Drawing.Size(458, 299)
113
+        Me.捷徑_dgv.Size = New System.Drawing.Size(458, 425)
110 114
         Me.捷徑_dgv.TabIndex = 664
111 115
         '
112 116
         'Column2
@@ -135,8 +139,6 @@ Partial Class FTP_DGAC_SYS
135 139
         '
136 140
         'FTP主要位置_tb
137 141
         '
138
-        Me.FTP主要位置_tb.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
139
-            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
140 142
         Me.FTP主要位置_tb.Location = New System.Drawing.Point(85, 3)
141 143
         Me.FTP主要位置_tb.Name = "FTP主要位置_tb"
142 144
         Me.FTP主要位置_tb.Size = New System.Drawing.Size(276, 23)
@@ -193,6 +195,7 @@ Partial Class FTP_DGAC_SYS
193 195
         'Panel1
194 196
         '
195 197
         Me.Panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
198
+        Me.Panel1.Controls.Add(Me.清單1_dgv)
196 199
         Me.Panel1.Controls.Add(Me.剔除清單_cb)
197 200
         Me.Panel1.Controls.Add(Me.路徑暫存1_cb)
198 201
         Me.Panel1.Controls.Add(Me.路徑暫存6_cb)
@@ -200,9 +203,9 @@ Partial Class FTP_DGAC_SYS
200 203
         Me.Panel1.Controls.Add(Me.路徑暫存5_cb)
201 204
         Me.Panel1.Controls.Add(Me.路徑暫存3_cb)
202 205
         Me.Panel1.Controls.Add(Me.路徑暫存4_cb)
203
-        Me.Panel1.Location = New System.Drawing.Point(161, 107)
206
+        Me.Panel1.Location = New System.Drawing.Point(161, 38)
204 207
         Me.Panel1.Name = "Panel1"
205
-        Me.Panel1.Size = New System.Drawing.Size(146, 198)
208
+        Me.Panel1.Size = New System.Drawing.Size(146, 258)
206 209
         Me.Panel1.TabIndex = 673
207 210
         '
208 211
         '剔除清單_cb
@@ -215,7 +218,6 @@ Partial Class FTP_DGAC_SYS
215 218
         '
216 219
         '讀取料夾路徑_bt
217 220
         '
218
-        Me.讀取料夾路徑_bt.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
219 221
         Me.讀取料夾路徑_bt.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
220 222
         Me.讀取料夾路徑_bt.ForeColor = System.Drawing.Color.Blue
221 223
         Me.讀取料夾路徑_bt.Location = New System.Drawing.Point(367, 2)
@@ -227,33 +229,10 @@ Partial Class FTP_DGAC_SYS
227 229
         '
228 230
         '剔除清單_dgv
229 231
         '
230
-        Me.剔除清單_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left) _
231
-            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
232
+        Me.剔除清單_dgv.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
232 233
         Me.剔除清單_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
233 234
         Me.剔除清單_dgv.BackgroundColor = System.Drawing.Color.White
234 235
         Me.剔除清單_dgv.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
235
-        DataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
236
-        DataGridViewCellStyle4.BackColor = System.Drawing.Color.White
237
-        DataGridViewCellStyle4.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
238
-        DataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText
239
-        DataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight
240
-        DataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText
241
-        DataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
242
-        Me.剔除清單_dgv.ColumnHeadersDefaultCellStyle = DataGridViewCellStyle4
243
-        Me.剔除清單_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
244
-        Me.剔除清單_dgv.Columns.AddRange(New System.Windows.Forms.DataGridViewColumn() {Me.DataGridViewTextBoxColumn1})
245
-        DataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
246
-        DataGridViewCellStyle5.BackColor = System.Drawing.Color.White
247
-        DataGridViewCellStyle5.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
248
-        DataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.ControlText
249
-        DataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight
250
-        DataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText
251
-        DataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.[False]
252
-        Me.剔除清單_dgv.DefaultCellStyle = DataGridViewCellStyle5
253
-        Me.剔除清單_dgv.GridColor = System.Drawing.Color.LightGray
254
-        Me.剔除清單_dgv.Location = New System.Drawing.Point(6, 328)
255
-        Me.剔除清單_dgv.Margin = New System.Windows.Forms.Padding(4)
256
-        Me.剔除清單_dgv.Name = "剔除清單_dgv"
257 236
         DataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
258 237
         DataGridViewCellStyle6.BackColor = System.Drawing.Color.White
259 238
         DataGridViewCellStyle6.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
@@ -261,7 +240,29 @@ Partial Class FTP_DGAC_SYS
261 240
         DataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight
262 241
         DataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText
263 242
         DataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
264
-        Me.剔除清單_dgv.RowHeadersDefaultCellStyle = DataGridViewCellStyle6
243
+        Me.剔除清單_dgv.ColumnHeadersDefaultCellStyle = DataGridViewCellStyle6
244
+        Me.剔除清單_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
245
+        Me.剔除清單_dgv.Columns.AddRange(New System.Windows.Forms.DataGridViewColumn() {Me.DataGridViewTextBoxColumn1})
246
+        DataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
247
+        DataGridViewCellStyle7.BackColor = System.Drawing.Color.White
248
+        DataGridViewCellStyle7.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
249
+        DataGridViewCellStyle7.ForeColor = System.Drawing.SystemColors.ControlText
250
+        DataGridViewCellStyle7.SelectionBackColor = System.Drawing.SystemColors.Highlight
251
+        DataGridViewCellStyle7.SelectionForeColor = System.Drawing.SystemColors.HighlightText
252
+        DataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.[False]
253
+        Me.剔除清單_dgv.DefaultCellStyle = DataGridViewCellStyle7
254
+        Me.剔除清單_dgv.GridColor = System.Drawing.Color.LightGray
255
+        Me.剔除清單_dgv.Location = New System.Drawing.Point(6, 454)
256
+        Me.剔除清單_dgv.Margin = New System.Windows.Forms.Padding(4)
257
+        Me.剔除清單_dgv.Name = "剔除清單_dgv"
258
+        DataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
259
+        DataGridViewCellStyle8.BackColor = System.Drawing.Color.White
260
+        DataGridViewCellStyle8.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
261
+        DataGridViewCellStyle8.ForeColor = System.Drawing.SystemColors.WindowText
262
+        DataGridViewCellStyle8.SelectionBackColor = System.Drawing.SystemColors.Highlight
263
+        DataGridViewCellStyle8.SelectionForeColor = System.Drawing.SystemColors.HighlightText
264
+        DataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
265
+        Me.剔除清單_dgv.RowHeadersDefaultCellStyle = DataGridViewCellStyle8
265 266
         Me.剔除清單_dgv.RowHeadersWidth = 5
266 267
         Me.剔除清單_dgv.RowTemplate.Height = 24
267 268
         Me.剔除清單_dgv.Size = New System.Drawing.Size(316, 113)
@@ -278,7 +279,7 @@ Partial Class FTP_DGAC_SYS
278 279
         Me.加入剔除檔案_bt.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
279 280
         Me.加入剔除檔案_bt.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
280 281
         Me.加入剔除檔案_bt.ForeColor = System.Drawing.Color.Blue
281
-        Me.加入剔除檔案_bt.Location = New System.Drawing.Point(325, 329)
282
+        Me.加入剔除檔案_bt.Location = New System.Drawing.Point(325, 455)
282 283
         Me.加入剔除檔案_bt.Name = "加入剔除檔案_bt"
283 284
         Me.加入剔除檔案_bt.Size = New System.Drawing.Size(139, 38)
284 285
         Me.加入剔除檔案_bt.TabIndex = 676
@@ -297,7 +298,7 @@ Partial Class FTP_DGAC_SYS
297 298
         Me.刪除剔除檔案_bt.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
298 299
         Me.刪除剔除檔案_bt.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
299 300
         Me.刪除剔除檔案_bt.ForeColor = System.Drawing.Color.Red
300
-        Me.刪除剔除檔案_bt.Location = New System.Drawing.Point(325, 367)
301
+        Me.刪除剔除檔案_bt.Location = New System.Drawing.Point(325, 493)
301 302
         Me.刪除剔除檔案_bt.Name = "刪除剔除檔案_bt"
302 303
         Me.刪除剔除檔案_bt.Size = New System.Drawing.Size(139, 38)
303 304
         Me.刪除剔除檔案_bt.TabIndex = 677
@@ -309,7 +310,7 @@ Partial Class FTP_DGAC_SYS
309 310
         Me.運行自動刪除_bt.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
310 311
         Me.運行自動刪除_bt.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
311 312
         Me.運行自動刪除_bt.ForeColor = System.Drawing.Color.Green
312
-        Me.運行自動刪除_bt.Location = New System.Drawing.Point(325, 432)
313
+        Me.運行自動刪除_bt.Location = New System.Drawing.Point(325, 558)
313 314
         Me.運行自動刪除_bt.Name = "運行自動刪除_bt"
314 315
         Me.運行自動刪除_bt.Size = New System.Drawing.Size(139, 38)
315 316
         Me.運行自動刪除_bt.TabIndex = 678
@@ -318,8 +319,9 @@ Partial Class FTP_DGAC_SYS
318 319
         '
319 320
         '自動循環_ch
320 321
         '
322
+        Me.自動循環_ch.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
321 323
         Me.自動循環_ch.AutoSize = True
322
-        Me.自動循環_ch.Location = New System.Drawing.Point(329, 411)
324
+        Me.自動循環_ch.Location = New System.Drawing.Point(329, 537)
323 325
         Me.自動循環_ch.Name = "自動循環_ch"
324 326
         Me.自動循環_ch.Size = New System.Drawing.Size(129, 20)
325 327
         Me.自動循環_ch.TabIndex = 679
@@ -328,9 +330,10 @@ Partial Class FTP_DGAC_SYS
328 330
         '
329 331
         'Label2
330 332
         '
333
+        Me.Label2.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
331 334
         Me.Label2.AutoSize = True
332 335
         Me.Label2.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
333
-        Me.Label2.Location = New System.Drawing.Point(10, 447)
336
+        Me.Label2.Location = New System.Drawing.Point(10, 573)
334 337
         Me.Label2.Margin = New System.Windows.Forms.Padding(4, 0, 4, 0)
335 338
         Me.Label2.Name = "Label2"
336 339
         Me.Label2.Size = New System.Drawing.Size(139, 16)
@@ -339,8 +342,9 @@ Partial Class FTP_DGAC_SYS
339 342
         '
340 343
         '計數_nud
341 344
         '
345
+        Me.計數_nud.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
342 346
         Me.計數_nud.Enabled = False
343
-        Me.計數_nud.Location = New System.Drawing.Point(156, 444)
347
+        Me.計數_nud.Location = New System.Drawing.Point(156, 570)
344 348
         Me.計數_nud.Maximum = New Decimal(New Integer() {1000000000, 0, 0, 0})
345 349
         Me.計數_nud.Name = "計數_nud"
346 350
         Me.計數_nud.Size = New System.Drawing.Size(90, 23)
@@ -349,10 +353,10 @@ Partial Class FTP_DGAC_SYS
349 353
         '
350 354
         '計數歸零_bt
351 355
         '
352
-        Me.計數歸零_bt.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
356
+        Me.計數歸零_bt.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
353 357
         Me.計數歸零_bt.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
354 358
         Me.計數歸零_bt.ForeColor = System.Drawing.Color.Blue
355
-        Me.計數歸零_bt.Location = New System.Drawing.Point(252, 443)
359
+        Me.計數歸零_bt.Location = New System.Drawing.Point(252, 569)
356 360
         Me.計數歸零_bt.Name = "計數歸零_bt"
357 361
         Me.計數歸零_bt.Size = New System.Drawing.Size(69, 24)
358 362
         Me.計數歸零_bt.TabIndex = 682
@@ -361,8 +365,9 @@ Partial Class FTP_DGAC_SYS
361 365
         '
362 366
         'Label3
363 367
         '
368
+        Me.Label3.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
364 369
         Me.Label3.AutoSize = True
365
-        Me.Label3.Location = New System.Drawing.Point(2, 457)
370
+        Me.Label3.Location = New System.Drawing.Point(2, 583)
366 371
         Me.Label3.Margin = New System.Windows.Forms.Padding(4, 0, 4, 0)
367 372
         Me.Label3.Name = "Label3"
368 373
         Me.Label3.Size = New System.Drawing.Size(467, 16)
@@ -372,9 +377,10 @@ Partial Class FTP_DGAC_SYS
372 377
         '
373 378
         '通知_lb
374 379
         '
380
+        Me.通知_lb.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
375 381
         Me.通知_lb.AutoEllipsis = True
376 382
         Me.通知_lb.ForeColor = System.Drawing.Color.Red
377
-        Me.通知_lb.Location = New System.Drawing.Point(5, 474)
383
+        Me.通知_lb.Location = New System.Drawing.Point(5, 597)
378 384
         Me.通知_lb.Margin = New System.Windows.Forms.Padding(4, 0, 4, 0)
379 385
         Me.通知_lb.Name = "通知_lb"
380 386
         Me.通知_lb.Size = New System.Drawing.Size(464, 22)
@@ -390,11 +396,38 @@ Partial Class FTP_DGAC_SYS
390 396
         '
391 397
         Me.停頓1.Interval = 1200
392 398
         '
399
+        '計算分流3
400
+        '
401
+        Me.計算分流3.Interval = 300000
402
+        '
403
+        '清單1_dgv
404
+        '
405
+        Me.清單1_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
406
+            Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
407
+        Me.清單1_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
408
+        Me.清單1_dgv.BackgroundColor = System.Drawing.Color.White
409
+        DataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
410
+        DataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Control
411
+        DataGridViewCellStyle4.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
412
+        DataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText
413
+        DataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight
414
+        DataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText
415
+        Me.清單1_dgv.ColumnHeadersDefaultCellStyle = DataGridViewCellStyle4
416
+        Me.清單1_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
417
+        Me.清單1_dgv.Location = New System.Drawing.Point(3, 184)
418
+        Me.清單1_dgv.Name = "清單1_dgv"
419
+        Me.清單1_dgv.RowHeadersWidth = 5
420
+        DataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
421
+        Me.清單1_dgv.RowsDefaultCellStyle = DataGridViewCellStyle5
422
+        Me.清單1_dgv.RowTemplate.Height = 24
423
+        Me.清單1_dgv.Size = New System.Drawing.Size(137, 67)
424
+        Me.清單1_dgv.TabIndex = 1882
425
+        '
393 426
         'FTP_DGAC_SYS
394 427
         '
395 428
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
396 429
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
397
-        Me.ClientSize = New System.Drawing.Size(469, 496)
430
+        Me.ClientSize = New System.Drawing.Size(468, 619)
398 431
         Me.Controls.Add(Me.通知_lb)
399 432
         Me.Controls.Add(Me.計數歸零_bt)
400 433
         Me.Controls.Add(Me.計數_nud)
@@ -413,6 +446,8 @@ Partial Class FTP_DGAC_SYS
413 446
         Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
414 447
         Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon)
415 448
         Me.Margin = New System.Windows.Forms.Padding(4)
449
+        Me.MaximizeBox = False
450
+        Me.MinimizeBox = False
416 451
         Me.Name = "FTP_DGAC_SYS"
417 452
         Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
418 453
         Me.Text = "FTP-DGAC-SYS"
@@ -420,6 +455,7 @@ Partial Class FTP_DGAC_SYS
420 455
         Me.Panel1.ResumeLayout(False)
421 456
         CType(Me.剔除清單_dgv, System.ComponentModel.ISupportInitialize).EndInit()
422 457
         CType(Me.計數_nud, System.ComponentModel.ISupportInitialize).EndInit()
458
+        CType(Me.清單1_dgv, System.ComponentModel.ISupportInitialize).EndInit()
423 459
         Me.ResumeLayout(False)
424 460
         Me.PerformLayout()
425 461
 
@@ -455,4 +491,6 @@ Partial Class FTP_DGAC_SYS
455 491
     Friend WithEvents 通知_lb As Label
456 492
     Friend WithEvents 自動運行 As Timer
457 493
     Friend WithEvents 停頓1 As Timer
494
+    Friend WithEvents 計算分流3 As Timer
495
+    Friend WithEvents 清單1_dgv As DataGridView
458 496
 End Class

+ 3
- 0
FTP-DGAC-SYS/FTP-DGAC-SYS.resx Parādīt failu

@@ -141,6 +141,9 @@
141 141
   <metadata name="停頓1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
142 142
     <value>632, 8</value>
143 143
   </metadata>
144
+  <metadata name="計算分流3.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
145
+    <value>717, 8</value>
146
+  </metadata>
144 147
   <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
145 148
   <data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
146 149
     <value>

+ 81
- 32
FTP-DGAC-SYS/FTP-DGAC-SYS.vb Parādīt failu

@@ -1,4 +1,6 @@
1 1
 Imports System.IO
2
+Imports System.Net.NetworkInformation
3
+Imports System.Net.Sockets
2 4
 Imports System.Text
3 5
 Public Class FTP_DGAC_SYS
4 6
     Dim FTP位置, file_name, strDirName As String
@@ -20,6 +22,13 @@ Public Class FTP_DGAC_SYS
20 22
         剔除清單_dgv.Columns(0).ReadOnly = True
21 23
     End Sub
22 24
     Private Sub FTP_DGAC_SYS_Shown(sender As Object, e As EventArgs) Handles MyBase.Shown
25
+        SQL_連線字串_國外() : Dim ds1 As New DataSet
26
+        清單1_dgv.DataSource = Nothing : ds1.Clear()
27
+        清單1_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
28
+        清單1_dgv.ColumnHeadersHeight = 25 : 清單1_dgv.AllowUserToAddRows = False : 清單1_dgv.RowTemplate.Height = 35
29
+        SQL_伺服器檢測()
30
+        da.Fill(ds1) : 清單1_dgv.DataSource = ds1.Tables(0) : conn.Close()
31
+        For I As Integer = 0 To 清單1_dgv.Rows.Count - 1 : 清單1_dgv.Rows(I).Cells("次數").Value = "0" : Next
23 32
         '--------------自動循環---------------------------------------------------------------------
24 33
         If File.Exists(Strs & "\OPAUTO.CSV") Then : 自動循環_ch.Checked = True : Else : 自動循環_ch.Checked = False : End If
25 34
         '--------------類計數量---------------------------------------------------------------------
@@ -57,7 +66,7 @@ Public Class FTP_DGAC_SYS
57 66
             Else
58 67
                 MsgBox("請先選擇資料夾路徑!!")
59 68
             End If
60
-        End If
69
+        End If : 確定LINE伺服器開通() : 伺服器上線檢測開始() : 計算分流3.Enabled = True
61 70
     End Sub
62 71
     Private Sub FTP_DGAC_SYS_Closing(sender As Object, e As EventArgs) Handles MyBase.Closing
63 72
         If File.Exists(Strs & "\DLNUD.CSV") Then : File.Delete(Strs & "\DLNUD.CSV") : End If
@@ -79,6 +88,66 @@ Public Class FTP_DGAC_SYS
79 88
         If 自動循環_ch.Checked = True Then : 運行自動刪除() : 自動運行.Enabled = True : End If
80 89
         停頓1.Enabled = False
81 90
     End Sub
91
+    Dim 伺服器是否正常 As Boolean
92
+    Private Sub 計算分流3_Tick(sender As Object, e As EventArgs) Handles 計算分流3.Tick
93
+        If 伺服器是否正常 = True Then : 確定LINE伺服器開通() : 伺服器上線檢測開始() : Else : 計算分流3.Enabled = False : End If
94
+    End Sub
95
+    Private Sub 確定LINE伺服器開通()
96
+        Dim ip As String = "106.1.49.218"
97
+        Dim ports As String() = "2433".Split(","c)
98
+        For Each portStr As String In ports : Dim port As Integer
99
+            If Integer.TryParse(portStr.Trim(), port) Then
100
+                Dim isPortOpen As Boolean = CheckPort(ip, port) : Dim result As String
101
+                If isPortOpen = True Then : result = "LINE 訊息通知伺服器 正常" : Else : result = "LINE 訊息通知伺服器 異常" : End If
102
+                If result = "LINE 訊息通知伺服器 正常" Then : 伺服器是否正常 = True : Else : 伺服器是否正常 = False : End If
103
+            Else : 伺服器是否正常 = False : End If
104
+        Next
105
+    End Sub
106
+    Private Sub 伺服器上線檢測開始()
107
+        If 伺服器是否正常 = True Then
108
+            Dim 伺服器 As String
109
+            If File.Exists(Str + "\SERVERNAME.CSV") Then
110
+                Dim filereader = My.Computer.FileSystem.OpenTextFileReader(Str + "\SERVERNAME.CSV", System.Text.Encoding.Default)
111
+                Dim Text As String = "" : Dim line As String = filereader.ReadLine()
112
+                While Not (line Is Nothing) : Text = Text & line : line = filereader.ReadLine() : End While : filereader.Close()
113
+                伺服器 = Text
114
+            Else
115
+                伺服器 = ""
116
+            End If
117
+            For i As Integer = 0 To 清單1_dgv.Rows.Count - 1
118
+                If 清單1_dgv.Rows(i).Cells("模式").Value.ToString <> "" Then
119
+                    Try
120
+                        IP位置 = 清單1_dgv.Rows(i).Cells("IP").Value.ToString & "," & 清單1_dgv.Rows(i).Cells("端口").Value.ToString
121
+                        模式 = 清單1_dgv.Rows(i).Cells("模式").Value.ToString
122
+                        SQL_連線字串_檢測()
123
+                        ConnOpen_檢測() : SQL1 = "SELECT  確認  FROM  確認表" : CmdSet_For_dr()
124
+                        If dr.Read Then
125
+                            清單1_dgv.Rows(i).Cells("次數").Value = "0"
126
+                        Else
127
+                            清單1_dgv.Rows(i).Cells("次數").Value = "0"
128
+                        End If
129
+                    Catch ex As Exception
130
+                        清單1_dgv.Rows(i).Cells("次數").Value = CInt(清單1_dgv.Rows(i).Cells("次數").Value) + 1
131
+                        If CInt(清單1_dgv.Rows(i).Cells("次數").Value.ToString) > 2 Then
132
+                            LIN訊息通知("CC259", "李協叡", 伺服器 & "]、[" & 清單1_dgv.Rows(i).Cells("名稱").Value.ToString, "連線異常")
133
+                            LIN訊息通知("CC259", "王詩文", 伺服器 & "]、[" & 清單1_dgv.Rows(i).Cells("名稱").Value.ToString, "連線異常")
134
+                            LIN訊息通知("CC259", "蘇秀虹", 伺服器 & "]、[" & 清單1_dgv.Rows(i).Cells("名稱").Value.ToString, "連線異常")
135
+                        End If
136
+                    End Try
137
+                End If
138
+            Next
139
+        Else : 計算分流3.Enabled = False : End If
140
+    End Sub
141
+    Private Function CheckPort(host As String, port As Integer) As Boolean
142
+        Try
143
+            Using client As New TcpClient()
144
+                Dim result = client.BeginConnect(host, port, Nothing, Nothing)
145
+                Dim success = result.AsyncWaitHandle.WaitOne(TimeSpan.FromSeconds(3))
146
+                If success Then : client.EndConnect(result) : Return True : End If
147
+            End Using
148
+        Catch ex As Exception
149
+        End Try : Return False
150
+    End Function
82 151
     Private Sub 計算分流1_Tick(sender As Object, e As EventArgs) Handles 計算分流1.Tick
83 152
         計算分流1.Enabled = False
84 153
         If File.Exists(Str + "\FTPLINE.CSV") Then
@@ -155,9 +224,7 @@ Public Class FTP_DGAC_SYS
155 224
         Next
156 225
     End Sub
157 226
     Private Sub 剔除清單_dgv_CellContentClick(sender As Object, e As DataGridViewCellEventArgs) Handles 剔除清單_dgv.CellClick
158
-        If e.RowIndex = -1 Then : Else
159
-            位置1 = e.RowIndex
160
-        End If
227
+        If e.RowIndex = -1 Then : Else : 位置1 = e.RowIndex : End If
161 228
     End Sub
162 229
     Private Sub 讀取料夾路徑_bt_Click(sender As Object, e As EventArgs) Handles 讀取料夾路徑_bt.Click
163 230
         If FolderBrowserDialog1.ShowDialog = DialogResult.OK Then
@@ -172,12 +239,8 @@ Public Class FTP_DGAC_SYS
172 239
                         sw.Flush()
173 240
                     End Using
174 241
                 End Using
175
-            Catch ex As Exception
176
-            End Try
177
-            計算分流1.Enabled = True
178
-        Else
179
-            MsgBox("請先選擇資料夾路徑!!")
180
-        End If
242
+            Catch ex As Exception : End Try : 計算分流1.Enabled = True
243
+        Else : MsgBox("請先選擇資料夾路徑!!") : End If
181 244
     End Sub
182 245
     Private Sub 加入剔除檔案_bt_Click(sender As Object, e As EventArgs) Handles 加入剔除檔案_bt.Click
183 246
         If OpenFileDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then
@@ -186,19 +249,13 @@ Public Class FTP_DGAC_SYS
186 249
         If file_name <> "" Then
187 250
             剔除清單_dgv.Rows.Insert(0) : 剔除清單_dgv.Rows(0).Cells(0).Value = file_name
188 251
             Dim SELE As Boolean = False
189
-            If 剔除清單_dgv.Rows.Count - 1 > 0 Then
190
-                SELE = True
191
-            End If
192
-            If SELE = True Then
193
-                剔除檔案存檔()
194
-            End If
252
+            If 剔除清單_dgv.Rows.Count - 1 > 0 Then : SELE = True : End If
253
+            If SELE = True Then : 剔除檔案存檔() : End If
195 254
         Else : End If
196 255
     End Sub
197 256
     Private Sub 刪除剔除檔案_bt_Click(sender As Object, e As EventArgs) Handles 刪除剔除檔案_bt.Click
198 257
         If 位置1 <> -1 And 位置1 > 剔除清單_dgv.Rows.Count Then : MsgBox("沒有選擇剃除檔案!!")
199
-        Else : 剔除清單_dgv.Rows.Insert(位置1) : 位置1 = -1
200
-            剔除檔案存檔()
201
-        End If
258
+        Else : 剔除清單_dgv.Rows.Insert(位置1) : 位置1 = -1 : 剔除檔案存檔() : End If
202 259
     End Sub
203 260
     Private Sub 剔除檔案存檔()
204 261
         If File.Exists(Strs & "\FTPDELETE.CSV") Then : File.Delete(Strs & "\FTPDELETE.CSV") : End If
@@ -217,7 +274,6 @@ Public Class FTP_DGAC_SYS
217 274
         End Try ': 計算分流2.Enabled = True
218 275
     End Sub
219 276
     Private Sub 自動循環_ch_CheckedChanged(sender As Object, e As EventArgs) Handles 自動循環_ch.Click
220
-
221 277
         If 自動循環_ch.Checked = False Then
222 278
             If File.Exists(Strs & "\OPAUTO.CSV") Then : File.Delete(Strs & "\OPAUTO.CSV") : End If
223 279
         Else
@@ -230,8 +286,7 @@ Public Class FTP_DGAC_SYS
230 286
                         str = "******************" : sw.WriteLine(str) : sw.Flush()
231 287
                     End Using
232 288
                 End Using
233
-            Catch ex As Exception
234
-            End Try
289
+            Catch ex As Exception : End Try
235 290
         End If
236 291
     End Sub
237 292
     Private Sub 運行自動刪除()
@@ -247,11 +302,8 @@ Public Class FTP_DGAC_SYS
247 302
                         File.Delete(捷徑_dgv.Rows(i).Cells(0).Value.ToString & "\" & 剔除清單_dgv.Rows(ii).Cells(0).Value.ToString) : 刪除數 += 1
248 303
                     End If
249 304
                 Next
250
-            Next
251
-            計數_nud.Value += 刪除數
252
-        Else
253
-            MsgBox("系統基礎設定尚未完成!!")
254
-        End If
305
+            Next : 計數_nud.Value += 刪除數
306
+        Else : MsgBox("系統基礎設定尚未完成!!") : End If
255 307
         If 自動循環_ch.Checked = True Then
256 308
             通知_lb.Text = "☆☆☆☆☆☆☆☆☆☆   已自動運行   ☆☆☆☆☆☆☆☆☆☆" : 通知_lb.ForeColor = Color.Green
257 309
         Else
@@ -259,11 +311,8 @@ Public Class FTP_DGAC_SYS
259 311
         End If
260 312
     End Sub
261 313
     Private Sub 運行自動刪除_bt_Click(sender As Object, e As EventArgs) Handles 運行自動刪除_bt.Click
262
-        If 自動循環_ch.Checked = True Then
263
-            運行自動刪除() : 自動運行.Enabled = True
264
-        Else
265
-            運行自動刪除() : MsgBox("可疑檔案刪除完成!!")
266
-        End If
314
+        If 自動循環_ch.Checked = True Then : 運行自動刪除() : 自動運行.Enabled = True : Else : 運行自動刪除() : MsgBox("可疑檔案刪除完成!!") : End If
315
+        確定LINE伺服器開通() : 伺服器上線檢測開始() : 計算分流3.Enabled = True
267 316
     End Sub
268 317
     Private Sub 計數歸零_bt_Click(sender As Object, e As EventArgs) Handles 計數歸零_bt.Click
269 318
         計數_nud.Value = 0

+ 11
- 0
FTP-DGAC-SYS/FTP-DGAC-SYS.vbproj Parādīt failu

@@ -86,6 +86,12 @@
86 86
       <DependentUpon>FTP-DGAC-SYS.vb</DependentUpon>
87 87
       <SubType>Form</SubType>
88 88
     </Compile>
89
+    <Compile Include="LINE_使用者管理表.Designer.vb">
90
+      <DependentUpon>LINE_使用者管理表.vb</DependentUpon>
91
+    </Compile>
92
+    <Compile Include="LINE_使用者管理表.vb">
93
+      <SubType>Form</SubType>
94
+    </Compile>
89 95
     <Compile Include="My Project\AssemblyInfo.vb" />
90 96
     <Compile Include="My Project\Application.Designer.vb">
91 97
       <AutoGen>True</AutoGen>
@@ -101,11 +107,16 @@
101 107
       <DependentUpon>Settings.settings</DependentUpon>
102 108
       <DesignTimeSharedInput>True</DesignTimeSharedInput>
103 109
     </Compile>
110
+    <Compile Include="SQL_LINE.vb" />
111
+    <Compile Include="SQL_Module.vb" />
104 112
   </ItemGroup>
105 113
   <ItemGroup>
106 114
     <EmbeddedResource Include="FTP-DGAC-SYS.resx">
107 115
       <DependentUpon>FTP-DGAC-SYS.vb</DependentUpon>
108 116
     </EmbeddedResource>
117
+    <EmbeddedResource Include="LINE_使用者管理表.resx">
118
+      <DependentUpon>LINE_使用者管理表.vb</DependentUpon>
119
+    </EmbeddedResource>
109 120
     <EmbeddedResource Include="My Project\Resources.resx">
110 121
       <Generator>VbMyResourcesResXFileCodeGenerator</Generator>
111 122
       <LastGenOutput>Resources.Designer.vb</LastGenOutput>

+ 1414
- 0
FTP-DGAC-SYS/LINE_使用者管理表.Designer.vb
Failā izmaiņas netiks attēlotas, jo tās ir par lielu
Parādīt failu


+ 120
- 0
FTP-DGAC-SYS/LINE_使用者管理表.resx Parādīt failu

@@ -0,0 +1,120 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<root>
3
+  <!-- 
4
+    Microsoft ResX Schema 
5
+    
6
+    Version 2.0
7
+    
8
+    The primary goals of this format is to allow a simple XML format 
9
+    that is mostly human readable. The generation and parsing of the 
10
+    various data types are done through the TypeConverter classes 
11
+    associated with the data types.
12
+    
13
+    Example:
14
+    
15
+    ... ado.net/XML headers & schema ...
16
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
17
+    <resheader name="version">2.0</resheader>
18
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
21
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
24
+    </data>
25
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
27
+        <comment>This is a comment</comment>
28
+    </data>
29
+                
30
+    There are any number of "resheader" rows that contain simple 
31
+    name/value pairs.
32
+    
33
+    Each data row contains a name, and value. The row also contains a 
34
+    type or mimetype. Type corresponds to a .NET class that support 
35
+    text/value conversion through the TypeConverter architecture. 
36
+    Classes that don't support this are serialized and stored with the 
37
+    mimetype set.
38
+    
39
+    The mimetype is used for serialized objects, and tells the 
40
+    ResXResourceReader how to depersist the object. This is currently not 
41
+    extensible. For a given mimetype the value must be set accordingly:
42
+    
43
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
44
+    that the ResXResourceWriter will generate, however the reader can 
45
+    read any of the formats listed below.
46
+    
47
+    mimetype: application/x-microsoft.net.object.binary.base64
48
+    value   : The object must be serialized with 
49
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
50
+            : and then encoded with base64 encoding.
51
+    
52
+    mimetype: application/x-microsoft.net.object.soap.base64
53
+    value   : The object must be serialized with 
54
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
55
+            : and then encoded with base64 encoding.
56
+
57
+    mimetype: application/x-microsoft.net.object.bytearray.base64
58
+    value   : The object must be serialized into a byte array 
59
+            : using a System.ComponentModel.TypeConverter
60
+            : and then encoded with base64 encoding.
61
+    -->
62
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
64
+    <xsd:element name="root" msdata:IsDataSet="true">
65
+      <xsd:complexType>
66
+        <xsd:choice maxOccurs="unbounded">
67
+          <xsd:element name="metadata">
68
+            <xsd:complexType>
69
+              <xsd:sequence>
70
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
71
+              </xsd:sequence>
72
+              <xsd:attribute name="name" use="required" type="xsd:string" />
73
+              <xsd:attribute name="type" type="xsd:string" />
74
+              <xsd:attribute name="mimetype" type="xsd:string" />
75
+              <xsd:attribute ref="xml:space" />
76
+            </xsd:complexType>
77
+          </xsd:element>
78
+          <xsd:element name="assembly">
79
+            <xsd:complexType>
80
+              <xsd:attribute name="alias" type="xsd:string" />
81
+              <xsd:attribute name="name" type="xsd:string" />
82
+            </xsd:complexType>
83
+          </xsd:element>
84
+          <xsd:element name="data">
85
+            <xsd:complexType>
86
+              <xsd:sequence>
87
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
88
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
89
+              </xsd:sequence>
90
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
91
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
92
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
93
+              <xsd:attribute ref="xml:space" />
94
+            </xsd:complexType>
95
+          </xsd:element>
96
+          <xsd:element name="resheader">
97
+            <xsd:complexType>
98
+              <xsd:sequence>
99
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
100
+              </xsd:sequence>
101
+              <xsd:attribute name="name" type="xsd:string" use="required" />
102
+            </xsd:complexType>
103
+          </xsd:element>
104
+        </xsd:choice>
105
+      </xsd:complexType>
106
+    </xsd:element>
107
+  </xsd:schema>
108
+  <resheader name="resmimetype">
109
+    <value>text/microsoft-resx</value>
110
+  </resheader>
111
+  <resheader name="version">
112
+    <value>2.0</value>
113
+  </resheader>
114
+  <resheader name="reader">
115
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116
+  </resheader>
117
+  <resheader name="writer">
118
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119
+  </resheader>
120
+</root>

+ 3
- 0
FTP-DGAC-SYS/LINE_使用者管理表.vb Parādīt failu

@@ -0,0 +1,3 @@
1
+Public Class LINE_使用者管理表
2
+
3
+End Class

+ 150
- 0
FTP-DGAC-SYS/SQL_LINE.vb Parādīt failu

@@ -0,0 +1,150 @@
1
+Module SQL_LINE
2
+    '---------------LINE中控-----------------------
3
+    '------LINE變數-------
4
+    Public 發送對象, LINE_權限代號, PA201, PA202, PA203, PA204, PA205, 通知變數X, 通知變數Y As String
5
+    Public LINE_公司名稱 As String = "HS"
6
+    Public ConStringLINE As String
7
+    Public LINE_權限數量 As Integer = 61
8
+    Public linecc(61) As Boolean
9
+    Public LINE_系統權限 As String = "CC200,CC201,CC202,CC203,CC204,CC205,CC206,CC207,CC208,CC209,CC210,CC211,CC212,CC213,CC214,CC215,CC216,CC217,
10
+                                            CC218,CC219,CC220,CC221,CC222,CC223,CC224,CC225,CC226,CC227,CC228,CC229,CC230,CC231,CC232,CC233,CC234,CC235,CC236,CC237,
11
+                                            CC238,CC239,CC240,CC241,CC242,CC243,CC244,CC245,CC246,CC247,CC248,CC249,CC250,CC251,CC252,CC253,CC254,CC255,CC256,CC257,
12
+                                            CC258,CC259,CC260"
13
+    Public LINE_登入權限 As String = "姓名, 帳號 AS 公司名稱,token,通知語言,電話號碼1,電話號碼2,電話號碼3,Line,WhatsApp,Message," & LINE_系統權限
14
+    Public LINE_登入權限_IN As String = "姓名, 帳號 ,token,通知語言,電話號碼1,電話號碼2,電話號碼3,Line,WhatsApp,Message," & LINE_系統權限
15
+    Public LINE_登入權限2 As String = "使用者權限管理表_1.姓名, 使用者權限管理表_1.帳號, 使用者權限管理表.token, 使用者權限管理表.通知語言, 使用者權限管理表.電話號碼1, 
16
+                                       使用者權限管理表.電話號碼2, 使用者權限管理表.電話號碼3, 使用者權限管理表.Line, 使用者權限管理表.WhatsApp, 使用者權限管理表.Message," & LINE_系統權限
17
+    Friend Sub SQL_連線字串_測試_LINE_SQL()
18
+        ConStringLINE = "Data Source=106.1.49.218,2433;Initial Catalog=GCM-SCADA;Persist Security Info=True;User ID=b70340;Password=Lee0911274990;Max pool size = 200; Connection Timeout=0"
19
+    End Sub
20
+    Friend Sub ConnOpen_LINE_SQL()
21
+        SQL_連線字串_測試_LINE_SQL()
22
+        conn.Close() : If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConStringLINE : conn.Open() : End If
23
+    End Sub
24
+    Public Sub LIN訊息通知(ByVal 代號 As String, ByVal 對象 As String, Optional ByVal 變數X As String = "", Optional ByVal 變數Y As String = "")
25
+        LINE_權限代號 = 代號 : 發送對象 = 對象 : 通知變數X = 變數X : 通知變數Y = 變數Y : LINE_通知模塊()
26
+    End Sub
27
+    '=====LINE_權限代號 = "CC207" : 發送對象 = "tltony1234" : 通知變數X = "王詩文" : 通知變數Y = "9/7號" : LINE_通知模塊()=====
28
+    Friend Sub SQL_系統使用者_清單()
29
+        ConnOpen()
30
+        SQL1 = "SELECT   姓名 FROM    使用者權限管理表   ORDER BY   姓名"
31
+        CmdSet_For_DGV()
32
+    End Sub
33
+    Friend Sub SQL_LINE使用者_清單()
34
+        ConnOpen_LINE_SQL()
35
+        SQL1 = "SELECT   " & LINE_登入權限 & "  FROM LINE_使用者權限管理表 WHERE 帳號 LIKE N'" & LINE_公司名稱 & "'  ORDER BY  姓名"
36
+        CmdSet_For_DGV()
37
+    End Sub
38
+    Friend Sub SQL_LINE權限一覽_dgv_清單()
39
+        ConnOpen_LINE_SQL()
40
+        SQL1 = "SELECT   權限代號, 權限名稱  FROM LINE_權限一覽表 WHERE (權限名稱 LIKE N'WS%') OR (權限名稱 LIKE N'GCM%') ORDER BY 權限代號"
41
+        CmdSet_For_DGV()
42
+    End Sub
43
+    Friend Sub SQL_LINE_新增使用者資料()
44
+        ConnOpen_LINE_SQL()
45
+        SQL1 = "INSERT INTO LINE_使用者權限管理表 (" & LINE_登入權限_IN & ") 
46
+                VALUES (N'" & LINE_使用者管理表.姓名_tb.Text & "', N'" & LINE_公司名稱 & "', N'" & LINE_使用者管理表.token_tb.Text &
47
+                "',N'" & LINE_使用者管理表.通知語言_cb.Text & "',N'" & LINE_使用者管理表.電話號碼1_tb.Text & "',N'" & LINE_使用者管理表.電話號碼2_tb.Text &
48
+                "',N'" & LINE_使用者管理表.電話號碼3_tb.Text & "',N'" & LINE_使用者管理表.Line_cb.Checked & "',N'" & LINE_使用者管理表.WhatsApp_cb.Checked &
49
+                "',N'" & LINE_使用者管理表.Message_cb.Checked &
50
+                "','" & linecc(0) & "','" & linecc(1) & "','" & linecc(2) & "','" & linecc(3) & "','" & linecc(4) & "','" & linecc(5) & "','" & linecc(6) & "','" & linecc(7) & "','" & linecc(8) &
51
+                "','" & linecc(9) & "','" & linecc(10) & "','" & linecc(11) & "','" & linecc(12) & "','" & linecc(13) & "','" & linecc(14) & "','" & linecc(15) & "','" & linecc(16) &
52
+                "','" & linecc(17) & "','" & linecc(18) & "','" & linecc(19) & "','" & linecc(20) & "','" & linecc(21) & "','" & linecc(22) & "','" & linecc(23) & "','" & linecc(24) &
53
+                "','" & linecc(25) & "','" & linecc(26) & "','" & linecc(27) & "','" & linecc(28) & "','" & linecc(29) & "','" & linecc(30) & "','" & linecc(31) & "','" & linecc(32) &
54
+                "','" & linecc(33) & "','" & linecc(34) & "','" & linecc(35) & "','" & linecc(36) & "','" & linecc(37) & "','" & linecc(38) & "','" & linecc(39) & "','" & linecc(40) &
55
+                "','" & linecc(41) & "','" & linecc(42) & "','" & linecc(43) & "','" & linecc(44) & "','" & linecc(45) & "','" & linecc(46) & "','" & linecc(47) & "','" & linecc(48) &
56
+                "','" & linecc(49) & "','" & linecc(50) & "','" & linecc(51) & "','" & linecc(52) & "','" & linecc(53) & "','" & linecc(54) & "','" & linecc(55) & "','" & linecc(56) &
57
+                "','" & linecc(57) & "','" & linecc(58) & "','" & linecc(59) & "','" & linecc(60) & "')"
58
+        CmdSet_For_dr()
59
+    End Sub
60
+    Friend Sub SQL_LINE_搜尋符合通知對象()
61
+        ConnOpen_LINE_SQL()
62
+        SQL1 = "SELECT  token,通知語言,電話號碼1,電話號碼2,電話號碼3,Line,WhatsApp,Message  FROM LINE_使用者權限管理表 WHERE(" & LINE_權限代號 & "='True' and 姓名 LIKE N'" & 發送對象 & "' and (帳號 LIKE N'" & LINE_公司名稱 & "'  OR  帳號 LIKE N'GCM' )    )"
63
+        CmdSet_For_DGV()
64
+    End Sub
65
+    Friend Sub SQL_LINE_通知內容()
66
+        ConnOpen_LINE_SQL()
67
+        SQL1 = "SELECT  通知格式,變數位置,通知內容1,通知內容2,通知內容3  FROM LINE_通知內容設定表 WHERE (權限代號 LIKE N'" & LINE_權限代號 & "')"
68
+        CmdSet_For_DGV()
69
+    End Sub
70
+    Friend Sub SQL_LINE_新增發送通知()
71
+        ConnOpen_LINE_SQL()
72
+        SQL1 = "INSERT INTO LINE_通知設定表 (token,發送內容,隨機碼,通知語言,發送APP) VALUES (N'" & PA201 & "',N'" & PA202 & "',N'" & PA203 & "',N'" & PA204 & "',N'" & PA205 & "')"
73
+        CmdSet_For_dr()
74
+    End Sub
75
+    Function SQL_LINE_隨機碼()
76
+        Dim rancode As String
77
+        Dim RndNum As New Random()
78
+        rancode = Str(Date.Now.Year).Trim().PadLeft(4, "0") + Str(Date.Now.Month).Trim().PadLeft(2, "0") + Str(Date.Now.Day).Trim().PadLeft(2, "0") + Str(Date.Now.Hour).Trim().PadLeft(2, "0") + Str(Date.Now.Minute).Trim().PadLeft(2, "0") + Str(Date.Now.Second).Trim().PadLeft(2, "0") + Str(RndNum.Next(1000)).Trim().PadLeft(4, "0")
79
+        Return rancode
80
+    End Function
81
+    Friend Sub LINE_通知模塊()
82
+        Dim ds5, ds6 As New DataSet : ds5.Clear() : ds6.Clear()
83
+        Dim 通知格式, 變數位置, 通知內容1, 通知內容2, 通知內容3, 發送X, 發送Y As String
84
+        Dim L, M, W As Boolean
85
+        SQL_LINE_搜尋符合通知對象()
86
+        da.Fill(ds5) : LINE_使用者管理表.LINE_需通知清單_dgv.DataSource = ds5.Tables(0) : conn.Close()
87
+        If 通知變數X = "" Then : 發送X = "未設定通知變數X" : Else : 發送X = 通知變數X : End If
88
+        If 通知變數Y = "" Then : 發送Y = "未設定通知變數Y" : Else : 發送Y = 通知變數Y : End If
89
+        For x As Integer = 0 To LINE_使用者管理表.LINE_需通知清單_dgv.Rows.Count - 1
90
+            L = LINE_使用者管理表.LINE_需通知清單_dgv.Rows(x).Cells("Line").Value
91
+            W = LINE_使用者管理表.LINE_需通知清單_dgv.Rows(x).Cells("WhatsApp").Value
92
+            M = LINE_使用者管理表.LINE_需通知清單_dgv.Rows(x).Cells("Message").Value
93
+            SQL_LINE_通知內容() : da.Fill(ds6) : LINE_使用者管理表.LINE_通知內容清單_dgv.DataSource = ds6.Tables(0) : conn.Close()
94
+            If LINE_使用者管理表.LINE_需通知清單_dgv.Rows.Count = 0 Then : Else
95
+                通知格式 = LINE_使用者管理表.LINE_通知內容清單_dgv.Rows(0).Cells(0).Value
96
+                變數位置 = LINE_使用者管理表.LINE_通知內容清單_dgv.Rows(0).Cells(1).Value
97
+                通知內容1 = LINE_使用者管理表.LINE_通知內容清單_dgv.Rows(0).Cells(2).Value
98
+                通知內容2 = LINE_使用者管理表.LINE_通知內容清單_dgv.Rows(0).Cells(3).Value
99
+                通知內容3 = LINE_使用者管理表.LINE_通知內容清單_dgv.Rows(0).Cells(4).Value
100
+                If 變數位置 = "A" Then
101
+                    PA202 = 通知內容1
102
+                ElseIf 變數位置 = "X" Then
103
+                    PA202 = 發送X
104
+                ElseIf 變數位置 = "A+X" Then
105
+                    PA202 = 通知內容1 + 發送X
106
+                ElseIf 變數位置 = "X+A" Then
107
+                    PA202 = 發送X + 通知內容1
108
+                ElseIf 變數位置 = "X+A+Y" Then
109
+                    PA202 = 發送X + 通知內容1 + 發送Y
110
+                ElseIf 變數位置 = "A+X+B" Then
111
+                    PA202 = 通知內容1 + 發送X + 通知內容2
112
+                ElseIf 變數位置 = "X+A+Y+B" Then
113
+                    PA202 = 發送X + 通知內容1 + 發送Y + 通知內容2
114
+                ElseIf 變數位置 = "A+X+B+Y" Then
115
+                    PA202 = 通知內容1 + 發送X + 通知內容2 + 發送Y
116
+                ElseIf 變數位置 = "A+X+B+Y+C" Then
117
+                    PA202 = 通知內容1 + 發送X + 通知內容2 + 發送Y + 通知內容3
118
+                End If
119
+                PA204 = LINE_使用者管理表.LINE_需通知清單_dgv.Rows(x).Cells(1).Value
120
+                If L = True Then
121
+                    PA203 = LINE_公司名稱 & "-" & SQL_LINE_隨機碼() : PA201 = LINE_使用者管理表.LINE_需通知清單_dgv.Rows(x).Cells(0).Value.ToString : PA205 = "Line" : SQL_LINE_新增發送通知()
122
+                End If
123
+                If W = True Then
124
+                    If LINE_使用者管理表.LINE_需通知清單_dgv.Rows(x).Cells(2).Value.ToString <> "" Then
125
+                        PA203 = LINE_公司名稱 & "-" & SQL_LINE_隨機碼() : PA201 = LINE_使用者管理表.LINE_需通知清單_dgv.Rows(x).Cells(2).Value.ToString : PA205 = "WhatsApp" : SQL_LINE_新增發送通知()
126
+                    End If
127
+                    If LINE_使用者管理表.LINE_需通知清單_dgv.Rows(x).Cells(3).Value.ToString <> "" Then
128
+                        PA203 = LINE_公司名稱 & "-" & SQL_LINE_隨機碼() : PA201 = LINE_使用者管理表.LINE_需通知清單_dgv.Rows(x).Cells(3).Value.ToString : PA205 = "WhatsApp" : SQL_LINE_新增發送通知()
129
+                    End If
130
+                    If LINE_使用者管理表.LINE_需通知清單_dgv.Rows(x).Cells(4).Value.ToString <> "" Then
131
+                        PA203 = LINE_公司名稱 & "-" & SQL_LINE_隨機碼() : PA201 = LINE_使用者管理表.LINE_需通知清單_dgv.Rows(x).Cells(4).Value.ToString : PA205 = "WhatsApp" : SQL_LINE_新增發送通知()
132
+                    End If
133
+                End If
134
+                If M = True Then
135
+                    If LINE_使用者管理表.LINE_需通知清單_dgv.Rows(x).Cells(2).Value.ToString <> "" Then
136
+                        PA203 = LINE_公司名稱 & "-" & SQL_LINE_隨機碼() : PA201 = LINE_使用者管理表.LINE_需通知清單_dgv.Rows(x).Cells(2).Value.ToString : PA205 = "Message" : SQL_LINE_新增發送通知()
137
+                    End If
138
+                    If LINE_使用者管理表.LINE_需通知清單_dgv.Rows(x).Cells(3).Value.ToString <> "" Then
139
+                        PA203 = LINE_公司名稱 & "-" & SQL_LINE_隨機碼() : PA201 = LINE_使用者管理表.LINE_需通知清單_dgv.Rows(x).Cells(3).Value.ToString : PA205 = "Message" : SQL_LINE_新增發送通知()
140
+                    End If
141
+                    If LINE_使用者管理表.LINE_需通知清單_dgv.Rows(x).Cells(4).Value.ToString <> "" Then
142
+                        PA203 = LINE_公司名稱 & "-" & SQL_LINE_隨機碼() : PA201 = LINE_使用者管理表.LINE_需通知清單_dgv.Rows(x).Cells(4).Value.ToString : PA205 = "Message" : SQL_LINE_新增發送通知()
143
+                    End If
144
+                End If
145
+            End If
146
+        Next
147
+        ds5.Clear() : ds6.Clear() : 通知變數X = "" : 通知變數Y = ""
148
+    End Sub
149
+End Module
150
+

+ 32
- 0
FTP-DGAC-SYS/SQL_Module.vb Parādīt failu

@@ -0,0 +1,32 @@
1
+Imports System.Data.OleDb
2
+Imports System.Data.SqlClient
3
+Module SQL_Module
4
+    '---------------資料庫連線字串宣告--------------------------------------------------------------------------------------------------------------------------------------------------------
5
+    Public Access1 As New OleDbConnection : Public AccesCmd As OleDbCommand
6
+    Public Acdr As OleDbDataReader
7
+    Public ConString, ConString1, ConString2, ConString3, ConString4, IP位置, 模式 As String
8
+    Public AccessConString As String : Public SQL1, SQL2, SQL3, SQL4, SQL5, SQL6, SQL7, SQL8, SQL9, SQL10 As String
9
+    Public conn As New SqlConnection : Public cmd As New SqlCommand
10
+    Public dr As SqlDataReader : Public da As New SqlDataAdapter
11
+    Friend Sub SQL_連線字串_國外()
12
+        ConString = "Data Source=mssql-147629-0.cloudclusters.net,12711;Initial Catalog=GCM-IP-DATE02;Persist Security Info=True;User ID=GCMIP02;Password=F52dfgS5ZVD;Max pool size = 200;Connection Timeout=0"
13
+    End Sub
14
+    Friend Sub SQL_連線字串_檢測()
15
+        ConString1 = "Data Source=" & IP位置 & ";Initial Catalog=SQLConfirm;Persist Security Info=True;User ID=b70340;Password=" & 模式 & ";Max pool size = 200;Connection Timeout=0"
16
+    End Sub
17
+    Friend Sub ConnOpen()
18
+        conn.Close() : If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
19
+    End Sub
20
+    Friend Sub ConnOpen_檢測()
21
+        conn.Close() : If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString1 : conn.Open() : End If
22
+    End Sub
23
+    Friend Sub CmdSet_For_DGV()
24
+        cmd.Connection = conn : cmd.CommandText = SQL1 : da.SelectCommand = cmd
25
+    End Sub
26
+    Friend Sub CmdSet_For_dr()
27
+        cmd.CommandText = SQL1 : cmd.Connection = conn : dr = cmd.ExecuteReader
28
+    End Sub
29
+    Friend Sub SQL_伺服器檢測()
30
+        ConnOpen() : SQL1 = "SELECT  名稱, IP, 端口, 模式, 模式 AS 次數  FROM  伺服器檢測" : CmdSet_For_DGV()
31
+    End Sub
32
+End Module

Binārs
FTP-DGAC-SYS/bin/Debug/FTP-DGAC-SYS.exe Parādīt failu


Binārs
FTP-DGAC-SYS/bin/Debug/FTP-DGAC-SYS.pdb Parādīt failu


+ 1
- 0
FTP-DGAC-SYS/bin/Debug/SERVERNAME.CSV Parādīt failu

@@ -0,0 +1 @@
1
+106.1.48.106 主機發出

Binārs
FTP-DGAC-SYS/obj/Debug/DesignTimeResolveAssemblyReferences.cache Parādīt failu


Binārs
FTP-DGAC-SYS/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache Parādīt failu


Binārs
FTP-DGAC-SYS/obj/Debug/FTP-DGAC-SYS.exe Parādīt failu


Binārs
FTP-DGAC-SYS/obj/Debug/FTP-DGAC-SYS.pdb Parādīt failu


Binārs
FTP-DGAC-SYS/obj/Debug/FTP-DGAC-SYS.vbproj.AssemblyReference.cache Parādīt failu


+ 1
- 1
FTP-DGAC-SYS/obj/Debug/FTP-DGAC-SYS.vbproj.CoreCompileInputs.cache Parādīt failu

@@ -1 +1 @@
1
-582bd72780a1d0d024ac59cb74d7add377325b91
1
+f68e71ce42197cfcb104de1ab67f71931cf43ebd4d6e893f7ea08ea7f811bbde

+ 1
- 1
FTP-DGAC-SYS/obj/Debug/FTP-DGAC-SYS.vbproj.FileListAbsolute.txt Parādīt failu

@@ -1,5 +1,4 @@
1 1
 D:\工巧明\FTP-DGAC\FTP-DGAC-SYS\FTP-DGAC-SYS\obj\Debug\FTP-DGAC-SYS.vbproj.AssemblyReference.cache
2
-D:\工巧明\FTP-DGAC\FTP-DGAC-SYS\FTP-DGAC-SYS\obj\Debug\FTP-DGAC-SYS.vbproj.SuggestedBindingRedirects.cache
3 2
 D:\工巧明\FTP-DGAC\FTP-DGAC-SYS\FTP-DGAC-SYS\obj\Debug\FTP_DGAC_SYS.FTP_DGAC_SYS.resources
4 3
 D:\工巧明\FTP-DGAC\FTP-DGAC-SYS\FTP-DGAC-SYS\obj\Debug\FTP_DGAC_SYS.Resources.resources
5 4
 D:\工巧明\FTP-DGAC\FTP-DGAC-SYS\FTP-DGAC-SYS\obj\Debug\FTP-DGAC-SYS.vbproj.GenerateResource.cache
@@ -11,3 +10,4 @@ D:\工巧明\FTP-DGAC\FTP-DGAC-SYS\FTP-DGAC-SYS\bin\Debug\FTP-DGAC-SYS.xml
11 10
 D:\工巧明\FTP-DGAC\FTP-DGAC-SYS\FTP-DGAC-SYS\obj\Debug\FTP-DGAC-SYS.exe
12 11
 D:\工巧明\FTP-DGAC\FTP-DGAC-SYS\FTP-DGAC-SYS\obj\Debug\FTP-DGAC-SYS.xml
13 12
 D:\工巧明\FTP-DGAC\FTP-DGAC-SYS\FTP-DGAC-SYS\obj\Debug\FTP-DGAC-SYS.pdb
13
+D:\工巧明\FTP-DGAC\FTP-DGAC-SYS\FTP-DGAC-SYS\obj\Debug\FTP_DGAC_SYS.LINE_使用者管理表.resources

Binārs
FTP-DGAC-SYS/obj/Debug/FTP-DGAC-SYS.vbproj.GenerateResource.cache Parādīt failu


+ 0
- 0
FTP-DGAC-SYS/obj/Debug/FTP-DGAC-SYS.vbproj.SuggestedBindingRedirects.cache Parādīt failu


Binārs
FTP-DGAC-SYS/obj/Debug/FTP_DGAC_SYS.LINE_使用者管理表.resources Parādīt failu


Notiek ielāde…
Atcelt
Saglabāt