B70340 3 years ago
parent
commit
8f36ca34a1
50 changed files with 1456 additions and 441 deletions
  1. BIN
      .vs/GA-ERP-SYS/v16/.suo
  2. 3
    3
      GA-ERP-SYS/App.config
  3. 57
    6
      GA-ERP-SYS/GA-ERP-SYS.Designer.vb
  4. 50
    27
      GA-ERP-SYS/GA-ERP-SYS.vb
  5. 18
    1
      GA-ERP-SYS/GA-ERP-SYS.vbproj
  6. 1
    1
      GA-ERP-SYS/LoginForm1.Designer.vb
  7. 41
    31
      GA-ERP-SYS/LoginForm1.vb
  8. 2
    2
      GA-ERP-SYS/Module/SQL_Module.vb
  9. 29
    13
      GA-ERP-SYS/Module/SQL_子系統管理.vb
  10. 17
    14
      GA-ERP-SYS/Module/SQL_資料庫系統管理.vb
  11. BIN
      GA-ERP-SYS/Module/cefsharp.common.93.1.111.nupkg
  12. 2
    1
      GA-ERP-SYS/Module/全域變數.vb
  13. 50
    0
      GA-ERP-SYS/My Project/Resources.Designer.vb
  14. 24
    9
      GA-ERP-SYS/My Project/Resources.resx
  15. 36
    36
      GA-ERP-SYS/My Project/Settings.Designer.vb
  16. BIN
      GA-ERP-SYS/bin/Debug/Auto.exe
  17. BIN
      GA-ERP-SYS/bin/Debug/GA-ERP-SYS.exe
  18. 3
    3
      GA-ERP-SYS/bin/Debug/GA-ERP-SYS.exe.config
  19. BIN
      GA-ERP-SYS/bin/Debug/GA-ERP-SYS.pdb
  20. 25
    0
      GA-ERP-SYS/bin/Debug/GA-ERP-SYS.xml
  21. BIN
      GA-ERP-SYS/bin/Debug/chromedriver.exe
  22. BIN
      GA-ERP-SYS/obj/Debug/DesignTimeResolveAssemblyReferences.cache
  23. BIN
      GA-ERP-SYS/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
  24. BIN
      GA-ERP-SYS/obj/Debug/GA-ERP-SYS.exe
  25. BIN
      GA-ERP-SYS/obj/Debug/GA-ERP-SYS.pdb
  26. 1
    1
      GA-ERP-SYS/obj/Debug/GA-ERP-SYS.vbproj.CoreCompileInputs.cache
  27. 1
    0
      GA-ERP-SYS/obj/Debug/GA-ERP-SYS.vbproj.FileListAbsolute.txt
  28. BIN
      GA-ERP-SYS/obj/Debug/GA-ERP-SYS.vbproj.GenerateResource.cache
  29. BIN
      GA-ERP-SYS/obj/Debug/GA-ERP-SYS.vbprojAssemblyReference.cache
  30. 25
    0
      GA-ERP-SYS/obj/Debug/GA-ERP-SYS.xml
  31. BIN
      GA-ERP-SYS/obj/Debug/GA_ERP_SYS.Resources.resources
  32. BIN
      GA-ERP-SYS/obj/Debug/GA_ERP_SYS.錯誤排除手冊.resources
  33. BIN
      GA-ERP-SYS/obj/Debug/TempPE/My Project.Resources.Designer.vb.dll
  34. BIN
      GA-ERP-SYS/圖片/00aa2ad767a242ddc3099a90a5c7edb.png
  35. BIN
      GA-ERP-SYS/圖片/125425789654.png
  36. BIN
      GA-ERP-SYS/圖片/1631414926457.jpg
  37. BIN
      GA-ERP-SYS/圖片/47526ccfe6fd81c95524745ad12d1f7.png
  38. BIN
      GA-ERP-SYS/圖片/5bb63d4ef7f776f75809dfb810d8a16.png
  39. 103
    80
      GA-ERP-SYS/基本資料管理/基本資料.Designer.vb
  40. 12
    8
      GA-ERP-SYS/基本資料管理/基本資料.vb
  41. 49
    49
      GA-ERP-SYS/報表系統管理/帳務彙總計算表.Designer.vb
  42. 30
    18
      GA-ERP-SYS/報表系統管理/帳務彙總計算表.vb
  43. 106
    14
      GA-ERP-SYS/報表系統管理/帳務明細查詢表.Designer.vb
  44. 153
    19
      GA-ERP-SYS/報表系統管理/帳務明細查詢表.vb
  45. 305
    0
      GA-ERP-SYS/特殊操作功能/錯誤排除手冊.Designer.vb
  46. 120
    0
      GA-ERP-SYS/特殊操作功能/錯誤排除手冊.resx
  47. 19
    0
      GA-ERP-SYS/特殊操作功能/錯誤排除手冊.vb
  48. 89
    29
      GA-ERP-SYS/資料庫系統管理/系統使用者管理.Designer.vb
  49. 30
    30
      GA-ERP-SYS/資料庫系統管理/資料備份轉移.Designer.vb
  50. 55
    46
      GA-ERP-SYS/資料庫系統管理/資料備份轉移.vb

BIN
.vs/GA-ERP-SYS/v16/.suo View File


+ 3
- 3
GA-ERP-SYS/App.config View File

@@ -1,6 +1,6 @@
1
-<?xml version="1.0" encoding="utf-8" ?>
1
+<?xml version="1.0" encoding="utf-8"?>
2 2
 <configuration>
3 3
     <startup>
4
-        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
4
+        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2"/>
5 5
     </startup>
6
-</configuration>
6
+</configuration>

+ 57
- 6
GA-ERP-SYS/GA-ERP-SYS.Designer.vb View File

@@ -43,6 +43,8 @@ Partial Class GA_ERP_SYS
43 43
         Me.帳務彙總計算表_tsm = New System.Windows.Forms.ToolStripMenuItem()
44 44
         Me.帳務明細查詢表_tsm = New System.Windows.Forms.ToolStripMenuItem()
45 45
         Me.特殊操作功能_tsm = New System.Windows.Forms.ToolStripMenuItem()
46
+        Me.錯誤排除手冊_tsm = New System.Windows.Forms.ToolStripMenuItem()
47
+        Me.ToolStripSeparator4 = New System.Windows.Forms.ToolStripSeparator()
46 48
         Me.流水帳自動導入_tsm = New System.Windows.Forms.ToolStripMenuItem()
47 49
         Me.流水帳手動輸入_tsm = New System.Windows.Forms.ToolStripMenuItem()
48 50
         Me.商客資料導入_tsm = New System.Windows.Forms.ToolStripMenuItem()
@@ -67,6 +69,10 @@ Partial Class GA_ERP_SYS
67 69
         Me.計算機_bt = New System.Windows.Forms.Button()
68 70
         Me.計算機1_bt = New System.Windows.Forms.Button()
69 71
         Me.Timer1 = New System.Windows.Forms.Timer(Me.components)
72
+        Me.歷史資料查詢_tsm = New System.Windows.Forms.ToolStripMenuItem()
73
+        Me.ToolStripSeparator5 = New System.Windows.Forms.ToolStripSeparator()
74
+        Me.歷史帳務彙總計算表_tsm = New System.Windows.Forms.ToolStripMenuItem()
75
+        Me.歷史帳務明細查詢表_tsm = New System.Windows.Forms.ToolStripMenuItem()
70 76
         Me.MenuStrip.SuspendLayout()
71 77
         Me.StatusStrip.SuspendLayout()
72 78
         Me.SuspendLayout()
@@ -164,12 +170,12 @@ Partial Class GA_ERP_SYS
164 170
         '
165 171
         Me.基本資料_tsm.Image = Global.GA_ERP_SYS.My.Resources.Resources.business_info
166 172
         Me.基本資料_tsm.Name = "基本資料_tsm"
167
-        Me.基本資料_tsm.Size = New System.Drawing.Size(122, 22)
173
+        Me.基本資料_tsm.Size = New System.Drawing.Size(180, 22)
168 174
         Me.基本資料_tsm.Text = "基本資料"
169 175
         '
170 176
         '報表系統管理_tsm
171 177
         '
172
-        Me.報表系統管理_tsm.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.帳務彙總計算表_tsm, Me.帳務明細查詢表_tsm})
178
+        Me.報表系統管理_tsm.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.帳務彙總計算表_tsm, Me.帳務明細查詢表_tsm, Me.ToolStripSeparator5, Me.歷史資料查詢_tsm})
173 179
         Me.報表系統管理_tsm.Image = Global.GA_ERP_SYS.My.Resources.Resources.Report
174 180
         Me.報表系統管理_tsm.Name = "報表系統管理_tsm"
175 181
         Me.報表系統管理_tsm.Size = New System.Drawing.Size(107, 20)
@@ -191,31 +197,43 @@ Partial Class GA_ERP_SYS
191 197
         '
192 198
         '特殊操作功能_tsm
193 199
         '
194
-        Me.特殊操作功能_tsm.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.流水帳自動導入_tsm, Me.流水帳手動輸入_tsm, Me.商客資料導入_tsm})
200
+        Me.特殊操作功能_tsm.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.錯誤排除手冊_tsm, Me.ToolStripSeparator4, Me.流水帳自動導入_tsm, Me.流水帳手動輸入_tsm, Me.商客資料導入_tsm})
195 201
         Me.特殊操作功能_tsm.Image = Global.GA_ERP_SYS.My.Resources.Resources.Personnel
196 202
         Me.特殊操作功能_tsm.Name = "特殊操作功能_tsm"
197 203
         Me.特殊操作功能_tsm.Size = New System.Drawing.Size(107, 20)
198 204
         Me.特殊操作功能_tsm.Text = "特殊操作功能"
199 205
         '
206
+        '錯誤排除手冊_tsm
207
+        '
208
+        Me.錯誤排除手冊_tsm.Image = Global.GA_ERP_SYS.My.Resources.Resources.childish_Tool
209
+        Me.錯誤排除手冊_tsm.Name = "錯誤排除手冊_tsm"
210
+        Me.錯誤排除手冊_tsm.Size = New System.Drawing.Size(180, 22)
211
+        Me.錯誤排除手冊_tsm.Text = "錯誤排除手冊"
212
+        '
213
+        'ToolStripSeparator4
214
+        '
215
+        Me.ToolStripSeparator4.Name = "ToolStripSeparator4"
216
+        Me.ToolStripSeparator4.Size = New System.Drawing.Size(177, 6)
217
+        '
200 218
         '流水帳自動導入_tsm
201 219
         '
202 220
         Me.流水帳自動導入_tsm.Image = Global.GA_ERP_SYS.My.Resources.Resources.pen
203 221
         Me.流水帳自動導入_tsm.Name = "流水帳自動導入_tsm"
204
-        Me.流水帳自動導入_tsm.Size = New System.Drawing.Size(158, 22)
222
+        Me.流水帳自動導入_tsm.Size = New System.Drawing.Size(180, 22)
205 223
         Me.流水帳自動導入_tsm.Text = "流水帳自動導入"
206 224
         '
207 225
         '流水帳手動輸入_tsm
208 226
         '
209 227
         Me.流水帳手動輸入_tsm.Image = Global.GA_ERP_SYS.My.Resources.Resources.pen
210 228
         Me.流水帳手動輸入_tsm.Name = "流水帳手動輸入_tsm"
211
-        Me.流水帳手動輸入_tsm.Size = New System.Drawing.Size(158, 22)
229
+        Me.流水帳手動輸入_tsm.Size = New System.Drawing.Size(180, 22)
212 230
         Me.流水帳手動輸入_tsm.Text = "流水帳手動輸入"
213 231
         '
214 232
         '商客資料導入_tsm
215 233
         '
216 234
         Me.商客資料導入_tsm.Image = Global.GA_ERP_SYS.My.Resources.Resources.pen
217 235
         Me.商客資料導入_tsm.Name = "商客資料導入_tsm"
218
-        Me.商客資料導入_tsm.Size = New System.Drawing.Size(158, 22)
236
+        Me.商客資料導入_tsm.Size = New System.Drawing.Size(180, 22)
219 237
         Me.商客資料導入_tsm.Text = "商客資料導入"
220 238
         '
221 239
         '資料庫系統管理_tsm
@@ -361,6 +379,33 @@ Partial Class GA_ERP_SYS
361 379
         '
362 380
         Me.Timer1.Interval = 1500
363 381
         '
382
+        '歷史資料查詢_tsm
383
+        '
384
+        Me.歷史資料查詢_tsm.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.歷史帳務彙總計算表_tsm, Me.歷史帳務明細查詢表_tsm})
385
+        Me.歷史資料查詢_tsm.Image = Global.GA_ERP_SYS.My.Resources.Resources.business_info
386
+        Me.歷史資料查詢_tsm.Name = "歷史資料查詢_tsm"
387
+        Me.歷史資料查詢_tsm.Size = New System.Drawing.Size(180, 22)
388
+        Me.歷史資料查詢_tsm.Text = "歷史資料查詢"
389
+        '
390
+        'ToolStripSeparator5
391
+        '
392
+        Me.ToolStripSeparator5.Name = "ToolStripSeparator5"
393
+        Me.ToolStripSeparator5.Size = New System.Drawing.Size(177, 6)
394
+        '
395
+        '歷史帳務彙總計算表_tsm
396
+        '
397
+        Me.歷史帳務彙總計算表_tsm.Image = Global.GA_ERP_SYS.My.Resources.Resources.business_info
398
+        Me.歷史帳務彙總計算表_tsm.Name = "歷史帳務彙總計算表_tsm"
399
+        Me.歷史帳務彙總計算表_tsm.Size = New System.Drawing.Size(182, 22)
400
+        Me.歷史帳務彙總計算表_tsm.Text = "歷史帳務彙總計算表"
401
+        '
402
+        '歷史帳務明細查詢表_tsm
403
+        '
404
+        Me.歷史帳務明細查詢表_tsm.Image = Global.GA_ERP_SYS.My.Resources.Resources.business_info
405
+        Me.歷史帳務明細查詢表_tsm.Name = "歷史帳務明細查詢表_tsm"
406
+        Me.歷史帳務明細查詢表_tsm.Size = New System.Drawing.Size(182, 22)
407
+        Me.歷史帳務明細查詢表_tsm.Text = "歷史帳務明細查詢表"
408
+        '
364 409
         'GA_ERP_SYS
365 410
         '
366 411
         Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 12.0!)
@@ -429,4 +474,10 @@ Partial Class GA_ERP_SYS
429 474
     Friend WithEvents ToolStripSeparator3 As ToolStripSeparator
430 475
     Friend WithEvents 帳務明細查詢表_tsm As ToolStripMenuItem
431 476
     Friend WithEvents 合計_TSSL As ToolStripStatusLabel
477
+    Friend WithEvents 錯誤排除手冊_tsm As ToolStripMenuItem
478
+    Friend WithEvents ToolStripSeparator4 As ToolStripSeparator
479
+    Friend WithEvents ToolStripSeparator5 As ToolStripSeparator
480
+    Friend WithEvents 歷史資料查詢_tsm As ToolStripMenuItem
481
+    Friend WithEvents 歷史帳務彙總計算表_tsm As ToolStripMenuItem
482
+    Friend WithEvents 歷史帳務明細查詢表_tsm As ToolStripMenuItem
432 483
 End Class

+ 50
- 27
GA-ERP-SYS/GA-ERP-SYS.vb View File

@@ -59,10 +59,11 @@ Public Class GA_ERP_SYS
59 59
             SQL_連線字串_子SQL()
60 60
         End If : conn.Close()
61 61
         '----------基本作功能-----------------------------------------------------------------------------------------------------------------
62
-        報表系統管理_tsm.Enabled = CC(17) : 帳務彙總計算表_tsm.Enabled = CC(18) : 帳務明細查詢表_tsm.Enabled = CC(21)
62
+        報表系統管理_tsm.Enabled = CC(17) : 帳務彙總計算表_tsm.Enabled = CC(18) : 帳務明細查詢表_tsm.Enabled = CC(21) : 歷史資料查詢_tsm.Enabled = CC(22)
63 63
         '----------資料庫系統管理-------------------------------------------------------------------------------------------------------------
64 64
         資料庫系統管理_tsm.Enabled = CC(1) : 系統使用者管理_tsm.Enabled = CC(2) : 系統編碼規則_tsm.Enabled = CC(3) : 系統執行檔版本管理_tsm.Enabled = CC(4)
65
-        FTP_tsm.Enabled = CC(5) : 人員ID卡系統配置設定_tsm.Enabled = CC(6)
65
+        FTP_tsm.Enabled = CC(5) : 人員ID卡系統配置設定_tsm.Enabled = CC(6) : USB_KEY_指定_tsm.Enabled = CC(23) : 資料備份轉移_tsm.Enabled = CC(24)
66
+        PY執行錯誤LOG檔_tsm.Enabled = CC(25)
66 67
         '----------特殊操作功能---------------------------------------------------------------------------------------------------------------
67 68
         特殊操作功能_tsm.Enabled = CC(10) : 流水帳自動導入_tsm.Enabled = CC(11) : 流水帳手動輸入_tsm.Enabled = CC(12) : 商客資料導入_tsm.Enabled = CC(13)
68 69
 
@@ -71,6 +72,18 @@ Public Class GA_ERP_SYS
71 72
     Private Sub GA_ERP_SYS_Close(sender As Object, e As EventArgs) Handles MyBase.Closed
72 73
         SQL_登入鎖定解除() : LoginForm1.Close()
73 74
     End Sub
75
+    Private Sub 主資料庫()
76
+        SQL_轉換連線用()
77
+        If dr.Read() Then
78
+            登入人IP2 = dr("IP位置") : 子SQL名稱 = dr("資料庫") : 業務帳號 = dr("帳號") : 業務密碼 = dr("密碼")
79
+        End If : conn.Close() : SQL_連線字串_子SQL()
80
+    End Sub
81
+    Private Sub 副資料庫()
82
+        SQL_轉換連線用()
83
+        If dr.Read() Then
84
+            登入人IP2 = dr("備份IP") : 子SQL名稱 = dr("資料庫") : 業務帳號 = dr("備份帳號") : 業務密碼 = dr("備份密碼")
85
+        End If : conn.Close() : SQL_連線字串_子SQL()
86
+    End Sub
74 87
     Private Sub 使用者_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 使用者_cb.SelectedIndexChanged
75 88
         For Each ChildForm As Form In Me.MdiChildren : ChildForm.Close() : Next
76 89
         子SQL名稱 = Strings.Right(使用者_cb.Text, 6)
@@ -78,70 +91,80 @@ Public Class GA_ERP_SYS
78 91
         SQL_連線字串_子SQL() : Me.WindowState = 0
79 92
     End Sub
80 93
     Private Sub 人員ID卡系統配置設定ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 人員ID卡系統配置設定_tsm.Click
81
-        For Each ChildForm As Form In Me.MdiChildren : ChildForm.Close() : Next
94
+        主資料庫() : For Each ChildForm As Form In Me.MdiChildren : ChildForm.Close() : Next
82 95
         PA = "" : 人員ID卡系統配置設定.ShowDialog() : 人員ID卡系統配置設定.BringToFront()
83 96
     End Sub
84 97
     Private Sub 系統執行檔版本管理ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 系統執行檔版本管理_tsm.Click
85
-        For Each ChildForm As Form In Me.MdiChildren : ChildForm.Close() : Next
98
+        主資料庫() : For Each ChildForm As Form In Me.MdiChildren : ChildForm.Close() : Next
86 99
         PA = "" : 系統執行檔版本管理.ShowDialog()
87 100
     End Sub
88 101
     Private Sub FTPToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles FTP_tsm.Click
89
-        For Each ChildForm As Form In Me.MdiChildren : ChildForm.Close() : Next
102
+        主資料庫() : For Each ChildForm As Form In Me.MdiChildren : ChildForm.Close() : Next
90 103
         PA = "" : FTP資料夾管理.Show() : FTP資料夾管理.BringToFront()
91 104
     End Sub
92 105
     Private Sub 系統使用者管理_tsm_Click(sender As Object, e As EventArgs) Handles 系統使用者管理_tsm.Click
93
-        For Each ChildForm As Form In Me.MdiChildren : ChildForm.Close() : Next
106
+        主資料庫() : For Each ChildForm As Form In Me.MdiChildren : ChildForm.Close() : Next
94 107
         PA = "" : 系統使用者管理.Show() : FTP資料夾管理.BringToFront()
95 108
     End Sub
96 109
     Private Sub 系統編碼規則_tsm_Click(sender As Object, e As EventArgs) Handles 系統編碼規則_tsm.Click
97
-        For Each ChildForm As Form In Me.MdiChildren : ChildForm.Close() : Next
110
+        主資料庫() : For Each ChildForm As Form In Me.MdiChildren : ChildForm.Close() : Next
98 111
         PA = "" : 系統編碼規則.Show() : 系統編碼規則.BringToFront()
99 112
     End Sub
100 113
     Private Sub 基本資料ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 基本資料_tsm.Click
101
-        For Each ChildForm As Form In Me.MdiChildren : ChildForm.Close() : Next
114
+        主資料庫() : For Each ChildForm As Form In Me.MdiChildren : ChildForm.Close() : Next
102 115
         PA = "" : 基本資料.Show() : 基本資料.BringToFront() : 帳務彙總計算表.Close()
103 116
     End Sub
104
-    Private Sub 流水帳查詢_tsm_Click(sender As Object, e As EventArgs) Handles 帳務彙總計算表_tsm.Click
105
-        For Each ChildForm As Form In Me.MdiChildren : ChildForm.Close() : Next
106
-        PA = "" : 帳務彙總計算表.Show() : 帳務彙總計算表.BringToFront() : 基本資料.Close()
117
+    Private Sub 帳務彙總計算表_tsm_Click(sender As Object, e As EventArgs) Handles 帳務彙總計算表_tsm.Click
118
+        主資料庫() : For Each ChildForm As Form In Me.MdiChildren : ChildForm.Close() : Next
119
+        PA = "" : 帳務彙總計算表.Show() : 帳務彙總計算表.BringToFront()
107 120
     End Sub
108
-    Private Sub 個人帳號管理_tsm_Click(sender As Object, e As EventArgs) Handles 個人帳號管理_tsm.Click
109
-        For Each ChildForm As Form In Me.MdiChildren : ChildForm.Close() : Next
110
-        PA = "" : 個人帳號管理.ShowDialog()
121
+    Private Sub 歷史帳務彙總計算表_tsm_Click(sender As Object, e As EventArgs) Handles 歷史帳務彙總計算表_tsm.Click
122
+        副資料庫() : For Each ChildForm As Form In Me.MdiChildren : ChildForm.Close() : Next
123
+        PA = "" : 帳務彙總計算表.Show() : 帳務彙總計算表.BringToFront()
111 124
     End Sub
112
-    Private Sub 計算機1_bt_Click(sender As Object, e As EventArgs) Handles 計算機1_bt.Click
113
-        PA = "" : 計算機.ShowDialog()
125
+    Private Sub 帳務明細查詢表_tsm_Click(sender As Object, e As EventArgs) Handles 帳務明細查詢表_tsm.Click
126
+        主資料庫() : For Each ChildForm As Form In Me.MdiChildren : ChildForm.Close() : Next
127
+        PA = "" : 帳務明細查詢表.Show() : 帳務明細查詢表.BringToFront()
114 128
     End Sub
115
-    Private Sub 計算機_bt_Click(sender As Object, e As EventArgs) Handles 計算機_bt.Click
129
+    Private Sub 歷史帳務明細查詢表_tsm_Click(sender As Object, e As EventArgs) Handles 歷史帳務明細查詢表_tsm.Click
130
+        副資料庫() : For Each ChildForm As Form In Me.MdiChildren : ChildForm.Close() : Next
131
+        PA = "" : 帳務明細查詢表.Show() : 帳務明細查詢表.BringToFront()
132
+    End Sub
133
+    Private Sub 個人帳號管理_tsm_Click(sender As Object, e As EventArgs) Handles 個人帳號管理_tsm.Click
134
+        主資料庫() : For Each ChildForm As Form In Me.MdiChildren : ChildForm.Close() : Next
135
+        PA = "" : 個人帳號管理.ShowDialog()
116 136
     End Sub
117 137
     Private Sub 流水帳自動導入_tsm_Click(sender As Object, e As EventArgs) Handles 流水帳自動導入_tsm.Click
118
-        For Each ChildForm As Form In Me.MdiChildren : ChildForm.Close() : Next
138
+        主資料庫() : For Each ChildForm As Form In Me.MdiChildren : ChildForm.Close() : Next
119 139
         PA = "" : 流水帳自動導入.ShowDialog()
120 140
     End Sub
121 141
     Private Sub 流水帳手動輸入_tsm_Click(sender As Object, e As EventArgs) Handles 流水帳手動輸入_tsm.Click
122
-        For Each ChildForm As Form In Me.MdiChildren : ChildForm.Close() : Next
142
+        主資料庫() : For Each ChildForm As Form In Me.MdiChildren : ChildForm.Close() : Next
123 143
         PA = "" : 流水帳手動輸入.Show() : 流水帳手動輸入.BringToFront()
124 144
     End Sub
125 145
     Private Sub 商客資料導入_tsm_Click(sender As Object, e As EventArgs) Handles 商客資料導入_tsm.Click
126
-        For Each ChildForm As Form In Me.MdiChildren : ChildForm.Close() : Next
146
+        主資料庫() : For Each ChildForm As Form In Me.MdiChildren : ChildForm.Close() : Next
127 147
         PA = "" : 商客資料導入.Show() : 商客資料導入.BringToFront()
128 148
     End Sub
129 149
     Private Sub 測試_tsm_Click(sender As Object, e As EventArgs) Handles USB_KEY_指定_tsm.Click
130
-        For Each ChildForm As Form In Me.MdiChildren : ChildForm.Close() : Next
150
+        主資料庫() : For Each ChildForm As Form In Me.MdiChildren : ChildForm.Close() : Next
131 151
         PA = "" : USB_KEY_指定.Show() : USB_KEY_指定.BringToFront()
132 152
     End Sub
133 153
     Private Sub 測試ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles PY執行錯誤LOG檔_tsm.Click
134
-        For Each ChildForm As Form In Me.MdiChildren : ChildForm.Close() : Next
154
+        主資料庫() : For Each ChildForm As Form In Me.MdiChildren : ChildForm.Close() : Next
135 155
         PA = "" : PY執行錯誤LOG檔.Show() : PY執行錯誤LOG檔.BringToFront()
136 156
     End Sub
137
-
138 157
     Private Sub 資料備份轉移_tsm_Click(sender As Object, e As EventArgs) Handles 資料備份轉移_tsm.Click
139
-        For Each ChildForm As Form In Me.MdiChildren : ChildForm.Close() : Next
158
+        主資料庫() : For Each ChildForm As Form In Me.MdiChildren : ChildForm.Close() : Next
140 159
         PA = "" : 資料備份轉移.Show() : 資料備份轉移.BringToFront()
141 160
     End Sub
142
-    Private Sub 帳務明細查詢表_tsm_Click(sender As Object, e As EventArgs) Handles 帳務明細查詢表_tsm.Click
143
-        For Each ChildForm As Form In Me.MdiChildren : ChildForm.Close() : Next
144
-        PA = "" : 帳務明細查詢表.Show() : 帳務明細查詢表.BringToFront()
161
+    Private Sub 錯誤排除手冊_tsm_Click(sender As Object, e As EventArgs) Handles 錯誤排除手冊_tsm.Click
162
+        PA = "" : 錯誤排除手冊.Show() : 錯誤排除手冊.BringToFront()
163
+    End Sub
164
+    Private Sub 計算機1_bt_Click(sender As Object, e As EventArgs) Handles 計算機1_bt.Click
165
+        PA = "" : 計算機.ShowDialog()
166
+    End Sub
167
+    Private Sub 計算機_bt_Click(sender As Object, e As EventArgs) Handles 計算機_bt.Click
145 168
     End Sub
146 169
     Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
147 170
         Dim Usbkey As Boolean = False

+ 18
- 1
GA-ERP-SYS/GA-ERP-SYS.vbproj View File

@@ -11,7 +11,7 @@
11 11
     <AssemblyName>GA-ERP-SYS</AssemblyName>
12 12
     <FileAlignment>512</FileAlignment>
13 13
     <MyType>WindowsForms</MyType>
14
-    <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
14
+    <TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
15 15
     <Deterministic>true</Deterministic>
16 16
     <PublishUrl>publish\</PublishUrl>
17 17
     <Install>true</Install>
@@ -28,6 +28,9 @@
28 28
     <IsWebBootstrapper>false</IsWebBootstrapper>
29 29
     <UseApplicationTrust>false</UseApplicationTrust>
30 30
     <BootstrapperEnabled>true</BootstrapperEnabled>
31
+    <TargetFrameworkProfile />
32
+    <NuGetPackageImportStamp>
33
+    </NuGetPackageImportStamp>
31 34
   </PropertyGroup>
32 35
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
33 36
     <PlatformTarget>AnyCPU</PlatformTarget>
@@ -120,6 +123,12 @@
120 123
     <Compile Include="報表系統管理\帳務明細查詢表.vb">
121 124
       <SubType>Form</SubType>
122 125
     </Compile>
126
+    <Compile Include="特殊操作功能\錯誤排除手冊.Designer.vb">
127
+      <DependentUpon>錯誤排除手冊.vb</DependentUpon>
128
+    </Compile>
129
+    <Compile Include="特殊操作功能\錯誤排除手冊.vb">
130
+      <SubType>Form</SubType>
131
+    </Compile>
123 132
     <Compile Include="資料庫系統管理\LOG檔.Designer.vb">
124 133
       <DependentUpon>LOG檔.vb</DependentUpon>
125 134
     </Compile>
@@ -266,6 +275,9 @@
266 275
     <EmbeddedResource Include="報表系統管理\帳務明細查詢表.resx">
267 276
       <DependentUpon>帳務明細查詢表.vb</DependentUpon>
268 277
     </EmbeddedResource>
278
+    <EmbeddedResource Include="特殊操作功能\錯誤排除手冊.resx">
279
+      <DependentUpon>錯誤排除手冊.vb</DependentUpon>
280
+    </EmbeddedResource>
269 281
     <EmbeddedResource Include="資料庫系統管理\LOG檔.resx">
270 282
       <DependentUpon>LOG檔.vb</DependentUpon>
271 283
     </EmbeddedResource>
@@ -356,6 +368,11 @@
356 368
   <ItemGroup>
357 369
     <Content Include="hnet.com-image.ico" />
358 370
     <Content Include="wrench1.ico" />
371
+    <None Include="圖片\00aa2ad767a242ddc3099a90a5c7edb.png" />
372
+    <None Include="圖片\125425789654.png" />
373
+    <None Include="圖片\5bb63d4ef7f776f75809dfb810d8a16.png" />
374
+    <None Include="圖片\47526ccfe6fd81c95524745ad12d1f7.png" />
375
+    <None Include="圖片\1631414926457.jpg" />
359 376
     <None Include="圖片\1627008239188.jpg" />
360 377
     <None Include="圖片\1627008239187.jpg" />
361 378
     <None Include="圖片\0111121hh.jpg" />

+ 1
- 1
GA-ERP-SYS/LoginForm1.Designer.vb View File

@@ -350,6 +350,7 @@ Partial Class LoginForm1
350 350
         Me.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom
351 351
         Me.CancelButton = Me.取消_bt
352 352
         Me.ClientSize = New System.Drawing.Size(964, 240)
353
+        Me.Controls.Add(Me.簡易登入_dgv)
353 354
         Me.Controls.Add(Me.藏_bt)
354 355
         Me.Controls.Add(Me.解鎖_bt)
355 356
         Me.Controls.Add(Me.簡易_lb)
@@ -371,7 +372,6 @@ Partial Class LoginForm1
371 372
         Me.Controls.Add(Me.PasswordLabel)
372 373
         Me.Controls.Add(Me.UsernameLabel)
373 374
         Me.Controls.Add(Me.LogoPictureBox)
374
-        Me.Controls.Add(Me.簡易登入_dgv)
375 375
         Me.Controls.Add(Me.Label1)
376 376
         Me.Controls.Add(Me.Button1)
377 377
         Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))

+ 41
- 31
GA-ERP-SYS/LoginForm1.vb View File

@@ -1,5 +1,6 @@
1 1
 Imports System.Net
2 2
 Imports System.Management
3
+Imports System.IO
3 4
 Public Class LoginForm1
4 5
     ' TODO: 插入程式碼,利用提供的使用者名稱和密碼執行自訂驗證
5 6
     ' (請參閱 https://go.microsoft.com/fwlink/?LinkId=35339)。
@@ -17,6 +18,7 @@ Public Class LoginForm1
17 18
     ReadOnly screenHeight = Screen.PrimaryScreen.Bounds.Height
18 19
     ReadOnly ds As New DataSet
19 20
     Dim FFGG As Integer
21
+    Dim 更新關閉 As Boolean
20 22
     Private Sub Set_使用者清單()
21 23
         簡易登入_dgv.DataSource = Nothing : ds.Clear()
22 24
         簡易登入_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
@@ -44,38 +46,39 @@ Public Class LoginForm1
44 46
         刷卡登入_ch.Checked = True : 刷卡登入_ch.Enabled = False : 帳號_tb.Visible = False : 解鎖_bt.Visible = False ': 使用者帳號_cb.Enabled = False
45 47
         執行檔版本號_lb.Text = "執行檔版本號 : " & 版本
46 48
         伺服器區域_ch.SelectedIndex = 0
47
-
48
-        Me.ActiveControl = 使用者帳號_cb
49
-        Set_使用者清單()
50
-        Dim cmicWmi As New ManagementObjectSearcher("SELECT * FROM Win32_DiskDrive")
51
-        For Each cmicWmiObj As ManagementObject In cmicWmi.Get
52
-            PA10 = cmicWmiObj("Signature") : QA1 = cmicWmiObj("Signature")
53
-            PA11 = cmicWmiObj("SerialNumber") : QA2 = cmicWmiObj("SerialNumber")
54
-            PA12 = cmicWmiObj("Model") : QA3 = cmicWmiObj("Model")
55
-            PA13 = cmicWmiObj("Size") : QA4 = cmicWmiObj("Size")
56
-            PA10 = Replace(PA10, "'", "/") : QA1 = Replace(QA1, "'", "/") : PA11 = Replace(PA11, "'", "/") : QA2 = Replace(QA2, "'", "/")
57
-            PA12 = Replace(PA12, "'", "/") : QA3 = Replace(QA3, "'", "/") : PA13 = Replace(PA13, "'", "/") : QA4 = Replace(QA4, "'", "/")
58
-            SQL_驗證是否綁定()
59
-            If dr.Read() Then
60
-                PA15 = dr("客戶") : conn.Close()
61
-                SQL_USB登入清單()
62
-                If dr.Read() Then : PA16 = dr("帳號") : gUserName = dr("姓名") : End If : Exit For
63
-            Else
64
-                PA16 = ""
65
-            End If
66
-        Next
67
-        If PA16 = "" Then
68
-            Dim aa As MsgBoxResult = MsgBox("請插入USB KEY!!!", MsgBoxStyle.OkCancel)
69
-            If aa = MsgBoxResult.Ok Then
70
-                QA1 = "00" : QA2 = "00" : QA3 = "00" : QA4 = "00"
49
+        If 更新關閉 = True Then : Me.Close() : Else
50
+            Me.ActiveControl = 使用者帳號_cb
51
+            Set_使用者清單()
52
+            Dim cmicWmi As New ManagementObjectSearcher("SELECT * FROM Win32_DiskDrive")
53
+            For Each cmicWmiObj As ManagementObject In cmicWmi.Get
54
+                PA10 = cmicWmiObj("Signature") : QA1 = cmicWmiObj("Signature")
55
+                PA11 = cmicWmiObj("SerialNumber") : QA2 = cmicWmiObj("SerialNumber")
56
+                PA12 = cmicWmiObj("Model") : QA3 = cmicWmiObj("Model")
57
+                PA13 = cmicWmiObj("Size") : QA4 = cmicWmiObj("Size")
58
+                PA10 = Replace(PA10, "'", "/") : QA1 = Replace(QA1, "'", "/") : PA11 = Replace(PA11, "'", "/") : QA2 = Replace(QA2, "'", "/")
59
+                PA12 = Replace(PA12, "'", "/") : QA3 = Replace(QA3, "'", "/") : PA13 = Replace(PA13, "'", "/") : QA4 = Replace(QA4, "'", "/")
60
+                SQL_驗證是否綁定()
61
+                If dr.Read() Then
62
+                    PA15 = dr("客戶") : conn.Close()
63
+                    SQL_USB登入清單()
64
+                    If dr.Read() Then : PA16 = dr("帳號") : gUserName = dr("姓名") : End If : Exit For
65
+                Else
66
+                    PA16 = ""
67
+                End If
68
+            Next
69
+            If PA16 = "" Then
70
+                Dim aa As MsgBoxResult = MsgBox("請插入USB KEY!!!", MsgBoxStyle.OkCancel)
71
+                If aa = MsgBoxResult.Ok Then
72
+                    QA1 = "00" : QA2 = "00" : QA3 = "00" : QA4 = "00"
73
+                Else
74
+                    Me.Close()
75
+                End If
71 76
             Else
72
-                Me.Close()
77
+                SQL_登入鎖定解除() : 使用者帳號_cb.Text = PA16 : PA16 = ""
78
+                Me.ActiveControl = 密碼_tb
73 79
             End If
74
-        Else
75
-            SQL_登入鎖定解除() : 使用者帳號_cb.Text = PA16 : PA16 = ""
76
-            Me.ActiveControl = 密碼_tb
80
+            Timer1.Enabled = True
77 81
         End If
78
-        Timer1.Enabled = True
79 82
     End Sub
80 83
     Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
81 84
         Dim Usbkey As Boolean = False
@@ -154,7 +157,11 @@ Public Class LoginForm1
154 157
             ElseIf screenWidth = 1280 And screenHeight = 1024 Then
155 158
             ElseIf screenWidth = 1600 And screenHeight = 900 Then
156 159
             End If
157
-            Shell("Rundll32.exe url.dll, FileProtocolHandler http://106.1.50.79:8080/ga-erp-sys/", vbNormalFocus)
160
+            Dim fileName As String = "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
161
+            Dim fullPath As String
162
+            fullPath = Path.GetFullPath(fileName)
163
+            Process.Start(fullPath, "--app= http://106.1.50.79:8080/ga-erp-sys/")
164
+            更新關閉 = True
158 165
         Else
159 166
             Me.Size = New Size(466, 279)
160 167
             If screenWidth = 1920 And screenHeight = 1080 Then : Me.Location = New Point(727, 401)
@@ -288,7 +295,10 @@ Public Class LoginForm1
288 295
         End If
289 296
     End Sub
290 297
     Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
291
-        Shell("Rundll32.exe url.dll, FileProtocolHandler http://106.1.50.79:8080/ga-erp-sys/", vbNormalFocus)
298
+        Dim fileName As String = "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
299
+        Dim fullPath As String
300
+        fullPath = Path.GetFullPath(fileName)
301
+        Process.Start(fullPath, "--app= http://106.1.50.79:8080/ga-erp-sys/")
292 302
     End Sub
293 303
     Private Sub 簡易_lb_Click(sender As Object, e As EventArgs) Handles 簡易_lb.Click
294 304
         PA = InputBox("請輸入系統商管理密碼!!")

+ 2
- 2
GA-ERP-SYS/Module/SQL_Module.vb View File

@@ -5,8 +5,8 @@ Module SQL_Module
5 5
     Public conn As New SqlConnection : Public cmd As New SqlCommand : Public dr As SqlDataReader : Public da As New SqlDataAdapter
6 6
     Public DTP As String : Public DTP1 As String : Public DTP2 As String : Public DTP3 As String
7 7
     Public 登入權限 As String = "姓名, 帳號, 密碼, ID卡號, 主客戶, 到期日, CC01, CC02, CC03, CC04, CC05, CC06, CC07, CC08, CC09, CC10, CC11, CC12, CC13, 
8
-                                 CC14, CC15, CC16, CC17, CC18, CC19, CC20, CC21"
9
-    Public 權限數量 As Integer = 21
8
+                                 CC14, CC15, CC16, CC17, CC18, CC19, CC20, CC21, CC22, CC23, CC24, CC25"
9
+    Public 權限數量 As Integer = 25
10 10
     Friend Sub ConnOpen()
11 11
         conn.Close() : If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
12 12
     End Sub

+ 29
- 13
GA-ERP-SYS/Module/SQL_子系統管理.vb View File

@@ -74,7 +74,7 @@
74 74
     Friend Sub SQL_基本資料_客戶下資料表()
75 75
         ConnOpen_子SQL()
76 76
         SQL1 = "SELECT     商客基本資料表.商品, 下行客戶.網址, 下行客戶.帳號 AS 老闆帳號, 下行客戶.客戶下 AS 客戶帳號, 下行客戶.客名 AS 客戶名稱, 下行客戶.流水號, 
77
-                           下行客戶.基數, 下行客戶.基數 AS 階級, 下行客戶.計算, 下行客戶.同帳, 下行客戶.所得
77
+                           下行客戶.基數, 下行客戶.基數 AS 階級, 下行客戶.計算, 下行客戶.同帳, 下行客戶.所得, 下行客戶.所得另算
78 78
                 FROM       下行客戶 LEFT OUTER JOIN
79 79
                            商客基本資料表 ON 下行客戶.網址 = 商客基本資料表.網址 AND 下行客戶.帳號 = 商客基本資料表.帳號
80 80
                 WHERE      下行客戶.客戶下 LIKE N'%" & PA & "%' " & PA9 & "
@@ -102,12 +102,13 @@
102 102
     Friend Sub SQL_系統編碼規則_客戶下修改()
103 103
         ConnOpen_子SQL()
104 104
         SQL1 = "UPDATE 下行客戶 SET 客戶下 = N'" & PA & "', 網址 = N'" & PA1 & "', 帳號 = N'" & PA2 & "', 基數 = N'" & PA3 & "', 客名 = N'" & PA4 & "', 
105
-                                    計算 = '" & 基本資料.參與計算_ch.Checked & "', 同帳 = '" & 基本資料.上下同帳_ch.Checked & "', 所得 = '" & 基本資料.所得計算_ch.Checked & "'
105
+                                    計算 = '" & 基本資料.參與計算_ch.Checked & "', 同帳 = '" & 基本資料.上下同帳_ch.Checked & "', 所得 = '" & 基本資料.所得計算_ch.Checked & "', 
106
+                                    所得另算 = N'" & PA5 & "'
106 107
                 WHERE  流水號 LIKE N'" & 基本資料.流水號_tb.Text & "'"
107 108
         CmdSet_For_dr()
108 109
     End Sub
109 110
     Friend Sub SQL_系統編碼規則_客戶下批改()
110
-        ConnOpen_子SQL() : SQL1 = "UPDATE 下行客戶 SET 計算 = '" & BL1 & "', 同帳 = '" & BL2 & "', 所得 = '" & BL3 & "' WHERE  流水號 LIKE N'" & PA & "'" : CmdSet_For_dr()
111
+        ConnOpen_子SQL() : SQL1 = "UPDATE 下行客戶 SET 計算 = '" & BL1 & "', 同帳 = '" & BL2 & "', 所得 = '" & BL3 & "', 所得另算 = N'" & PA1 & "' WHERE  流水號 LIKE N'" & PA & "'" : CmdSet_For_dr()
111 112
     End Sub
112 113
     Friend Sub SQL_商客資料表2()
113 114
         ConnOpen_子SQL()
@@ -327,7 +328,7 @@
327 328
                             QQQ.中獎s, QQQ.輸贏s, QQQ.客戶小計s, QQQ.代理小計s, QQQ.總代理小計s, QQQ.股東小計s, QQQ.大股東小計s, 
328 329
                             QQQ.總監小計s, QQQ.個人所得s, QQQ.水差s, QQQ.下注明細s, QQQ.查看對帳s, QQQ.客帳, 選擇按鈕.按鈕, 
329 330
                             QQQ.帳戶 AS 客名, 選擇按鈕.按鈕 AS 計算, 選擇按鈕.按鈕 AS 同帳, QQQ.帳戶 AS 同帳指定, 選擇按鈕.按鈕 AS 所得, 
330
-                            QQQ.個人所得 AS 所得另算
331
+                            QQQ.個人所得 AS 所得另算, QQQ.總監
331 332
                 FROM        選擇按鈕 RIGHT OUTER JOIN
332 333
                            (SELECT          流水帳.開始日期, 流水帳.結束日期, SUBSTRING(流水帳.網址, 7, 50) AS 網址, 流水帳.帳戶, 
333 334
                                             商客基本資料表.商品, 商客基本資料表.資料, 商客基本資料表.上行基數, 商客基本資料表.下行基數, 
@@ -339,7 +340,7 @@
339 340
                                             流水帳.退水, 流水帳.中獎, 流水帳.輸贏, 流水帳.佔成輸贏, 流水帳.水倍差, 流水帳.上繳金額, 
340 341
                                             流水帳.自已總輸贏, 流水帳.上繳貢獻額, 流水帳.貢獻額, 流水帳.貢獻度, 流水帳.下注明細, 
341 342
                                             流水帳.玩法明細, 流水帳.調盤退水, 流水帳.調退實佔, 流水帳.上繳, 流水帳.會員, 流水帳.代理, 
342
-                                            流水帳.總代理, 流水帳.股東, 流水帳.大股東, 流水帳.客戶s, 流水帳.總量s, 流水帳.中獎s, 
343
+                                            流水帳.總代理, 流水帳.股東, 流水帳.大股東, 流水帳.總監, 流水帳.客戶s, 流水帳.總量s, 流水帳.中獎s, 
343 344
                                             流水帳.輸贏s, 流水帳.客戶小計s, 流水帳.代理小計s, 流水帳.總代理小計s, 流水帳.股東小計s, 
344 345
                                             流水帳.大股東小計s, 流水帳.總監小計s, 流水帳.個人所得s, 流水帳.水差s, 流水帳.下注明細s, 
345 346
                                             流水帳.查看對帳s, 商客基本資料表.上繳源 AS 客帳
@@ -358,7 +359,7 @@
358 359
                                             流水帳.調退實佔, 流水帳.上繳, 流水帳.會員, 流水帳.代理, 流水帳.總代理, 流水帳.股東, 
359 360
                                             流水帳.大股東, 流水帳.客戶s, 流水帳.總量s, 流水帳.中獎s, 流水帳.輸贏s, 流水帳.客戶小計s, 
360 361
                                             流水帳.代理小計s, 流水帳.總代理小計s, 流水帳.股東小計s, 流水帳.大股東小計s, 流水帳.總監小計s, 
361
-                                            流水帳.個人所得s, 流水帳.水差s, 流水帳.下注明細s, 流水帳.查看對帳s) AS QQQ ON 
362
+                                            流水帳.個人所得s, 流水帳.水差s, 流水帳.下注明細s, 流水帳.查看對帳s, 流水帳.總監) AS QQQ ON 
362 363
                             選擇按鈕.選擇 = QQQ.商品
363 364
                 ORDER BY    QQQ.商品, QQQ.網址, QQQ.帳戶"
364 365
         CmdSet_For_DGV()
@@ -466,6 +467,11 @@
466 467
                 ORDER BY   下行客戶.客名"
467 468
         CmdSet_For_dr()
468 469
     End Sub
470
+    Friend Sub SQL_客戶下所得名稱清單()
471
+        ConnOpen_子SQL()
472
+        SQL1 = "SELECT 所得另算 FROM 下行客戶 WHERE (所得另算 IS NOT NULL) GROUP BY 所得另算 ORDER BY 所得另算"
473
+        CmdSet_For_dr()
474
+    End Sub
469 475
     Friend Sub SQL_流水帳商品()
470 476
         ConnOpen_子SQL() : SQL1 = "SELECT 商品 FROM 商客基本資料表 GROUP BY 商品 ORDER BY 商品" : CmdSet_For_dr()
471 477
     End Sub
@@ -481,7 +487,7 @@
481 487
         CmdSet_For_dr()
482 488
     End Sub
483 489
     Friend Sub SQL_客戶下資料表()
484
-        ConnOpen_子SQL() : SQL1 = "SELECT 客戶下 AS 客戶帳號, 網址, 帳號, 客名 AS 客戶名稱, 計算, 同帳, 所得, 基數, 流水號  FROM 下行客戶" : CmdSet_For_DGV()
490
+        ConnOpen_子SQL() : SQL1 = "SELECT 客戶下 AS 客戶帳號, 網址, 帳號, 客名 AS 客戶名稱, 計算, 同帳, 所得, 基數, 流水號, 所得另算  FROM 下行客戶" : CmdSet_For_DGV()
485 491
     End Sub
486 492
     Friend Sub SQL_客戶下名稱()
487 493
         ConnOpen_子SQL()
@@ -541,7 +547,7 @@
541 547
                             QQQ.中獎s, QQQ.輸贏s, QQQ.客戶小計s, QQQ.代理小計s, QQQ.總代理小計s, QQQ.股東小計s, QQQ.大股東小計s, 
542 548
                             QQQ.總監小計s, QQQ.個人所得s, QQQ.水差s, QQQ.下注明細s, QQQ.查看對帳s, QQQ.客帳 AS 客戶帳號, 選擇按鈕.按鈕, 
543 549
                             QQQ.帳戶 AS 客戶名稱, 選擇按鈕.按鈕 AS 計算, 選擇按鈕.按鈕 AS 同帳, QQQ.帳戶 AS 同帳指定, 選擇按鈕.按鈕 AS 所得, 
544
-                            QQQ.個人所得 AS 所得另算, QQQ.[index], QQQ.帳戶 AS 下客流水
550
+                            QQQ.個人所得 AS 所得另算, QQQ.[index], QQQ.帳戶 AS 下客流水, QQQ.總監, QQQ.帳戶 AS 所得指定
545 551
                 FROM        選擇按鈕 RIGHT OUTER JOIN
546 552
                            (SELECT     流水帳.開始日期, 流水帳.結束日期, SUBSTRING(流水帳.網址, 7, 50) AS 網址, 流水帳.帳戶, 
547 553
                                        商客基本資料表.商品, 商客基本資料表.資料, 商客基本資料表.上行基數, 商客基本資料表.下行基數, 
@@ -557,7 +563,7 @@
557 563
                                        流水帳.佔成輸贏, 流水帳.水倍差, 流水帳.上繳金額, 流水帳.自已總輸贏, 流水帳.上繳貢獻額, 
558 564
                                        流水帳.貢獻額, 流水帳.貢獻度, 流水帳.下注明細, 流水帳.玩法明細, 流水帳.調盤退水, 
559 565
                                        流水帳.調退實佔, 流水帳.上繳, 流水帳.會員, 流水帳.代理, 流水帳.總代理, 流水帳.股東, 
560
-                                       流水帳.大股東, 流水帳.客戶s, 流水帳.總量s, 流水帳.中獎s, 流水帳.輸贏s, 流水帳.客戶小計s, 
566
+                                       流水帳.大股東, 流水帳.總監, 流水帳.客戶s, 流水帳.總量s, 流水帳.中獎s, 流水帳.輸贏s, 流水帳.客戶小計s, 
561 567
                                        流水帳.代理小計s, 流水帳.總代理小計s, 流水帳.股東小計s, 流水帳.大股東小計s, 流水帳.總監小計s, 
562 568
                                        流水帳.個人所得s, 流水帳.水差s, 流水帳.下注明細s, 流水帳.查看對帳s, 
563 569
                                        商客基本資料表.上繳源 AS 客帳, 流水帳.[index]
@@ -565,8 +571,7 @@
565 571
                              WHERE    (流水帳.開始日期 LIKE N'" & Strings.Left(帳務明細查詢表.資料_cb.Text, 10) & "') AND 
566 572
                                       (流水帳.結束日期 LIKE N'" & Strings.Right(帳務明細查詢表.資料_cb.Text, 10) & "') AND 
567 573
                                       (商客基本資料表.商品 LIKE N'%" & 帳務明細查詢表.商品_cb.Text & "%') AND 
568
-                                      (商客基本資料表.上繳源 LIKE N'%" & 帳務明細查詢表.老闆_cb.Text & "%') AND 
569
-                                       (流水帳.查看對帳s LIKE N'" & PA32 & "')
574
+                                      (商客基本資料表.上繳源 LIKE N'%" & 帳務明細查詢表.老闆_cb.Text & "%') " & PA32 & "
570 575
                              GROUP BY  流水帳.開始日期, 流水帳.結束日期, SUBSTRING(流水帳.網址, 7, 50), 流水帳.帳戶, 
571 576
                                        商客基本資料表.商品, 商客基本資料表.資料, 商客基本資料表.上行基數, 商客基本資料表.下行基數, 
572 577
                                        商客基本資料表.上繳源, 流水帳.名稱, 流水帳.總量, 流水帳.退水, 流水帳.中獎, 流水帳.輸贏, 
@@ -575,15 +580,26 @@
575 580
                                        流水帳.調退實佔, 流水帳.上繳, 流水帳.會員, 流水帳.代理, 流水帳.總代理, 流水帳.股東, 
576 581
                                        流水帳.大股東, 流水帳.客戶s, 流水帳.總量s, 流水帳.中獎s, 流水帳.輸贏s, 流水帳.客戶小計s, 
577 582
                                        流水帳.代理小計s, 流水帳.總代理小計s, 流水帳.股東小計s, 流水帳.大股東小計s, 流水帳.總監小計s, 
578
-                                       流水帳.個人所得s, 流水帳.水差s, 流水帳.下注明細s, 流水帳.查看對帳s, 流水帳.[index]) AS QQQ ON 選擇按鈕.選擇 = QQQ.商品
583
+                                       流水帳.個人所得s, 流水帳.水差s, 流水帳.下注明細s, 流水帳.查看對帳s, 流水帳.[index], 流水帳.總監) AS QQQ ON 選擇按鈕.選擇 = QQQ.商品
579 584
                 ORDER BY   QQQ.商品, QQQ.網址, QQQ.帳戶"
580 585
         CmdSet_For_DGV()
581 586
     End Sub
582 587
     Friend Sub SQL_帳務明細查詢表客戶寫入()
583 588
         ConnOpen_子SQL()
584
-        SQL1 = "UPDATE 流水帳 SET 查看對帳s = N'" & PA38 & "' 
589
+        SQL1 = "UPDATE 流水帳 SET 查看對帳s = N'" & PA38 & "', 下注明細s = N'" & PA32 & "'
585 590
                 WHERE ([index] LIKE N'" & PA37 & "') AND (開始日期 LIKE N'" & PA36 & "') AND (結束日期 LIKE N'" & PA35 & "') AND 
586 591
                       (SUBSTRING(網址, 7, 50) LIKE N'" & PA34 & "') AND (帳戶 LIKE N'" & PA33 & "')"
587 592
         CmdSet_For_dr()
588 593
     End Sub
594
+    Friend Sub SQL_所得另算表()
595
+        ConnOpen_子SQL()
596
+        SQL1 = "SELECT     商客基本資料表.商品, 商客基本資料表.商品 AS 所得
597
+                FROM       流水帳 LEFT OUTER JOIN
598
+                           商客基本資料表 ON 流水帳.帳戶 = 商客基本資料表.帳號 AND SUBSTRING(流水帳.網址, 7, 50) = 商客基本資料表.網址
599
+                WHERE     (流水帳.下注明細s LIKE N'%" & 帳務明細查詢表.所得指定_cb.Text & "%') AND (流水帳.開始日期 LIKE N'" & Strings.Left(帳務明細查詢表.資料_cb.Text, 10) & "') AND 
600
+                          (流水帳.結束日期 LIKE N'" & Strings.Right(帳務明細查詢表.資料_cb.Text, 10) & "')
601
+                GROUP BY   商客基本資料表.商品
602
+                ORDER BY   商客基本資料表.商品"
603
+        CmdSet_For_DGV()
604
+    End Sub
589 605
 End Module

+ 17
- 14
GA-ERP-SYS/Module/SQL_資料庫系統管理.vb View File

@@ -41,7 +41,9 @@
41 41
                         N'" & 系統使用者管理.CheckBox10.Checked & "', N'" & 系統使用者管理.CheckBox11.Checked & "', N'" & 系統使用者管理.CheckBox12.Checked & "', 
42 42
                         N'" & 系統使用者管理.CheckBox13.Checked & "', N'" & 系統使用者管理.CheckBox14.Checked & "', N'" & 系統使用者管理.CheckBox15.Checked & "', 
43 43
                         N'" & 系統使用者管理.CheckBox16.Checked & "', N'" & 系統使用者管理.CheckBox17.Checked & "', N'" & 系統使用者管理.CheckBox18.Checked & "', 
44
-                        N'" & 系統使用者管理.CheckBox19.Checked & "', N'" & 系統使用者管理.CheckBox20.Checked & "', N'" & 系統使用者管理.CheckBox21.Checked & "')"
44
+                        N'" & 系統使用者管理.CheckBox19.Checked & "', N'" & 系統使用者管理.CheckBox20.Checked & "', N'" & 系統使用者管理.CheckBox21.Checked & "', 
45
+                        N'" & 系統使用者管理.CheckBox22.Checked & "', N'" & 系統使用者管理.CheckBox23.Checked & "', N'" & 系統使用者管理.CheckBox24.Checked & "', 
46
+                        N'" & 系統使用者管理.CheckBox25.Checked & "')"
45 47
         CmdSet_For_dr()
46 48
     End Sub
47 49
     Friend Sub SQL_系統使用者修改()
@@ -57,7 +59,9 @@
57 59
                                             CC15 = N'" & 系統使用者管理.CheckBox15.Checked & "', CC16 = N'" & 系統使用者管理.CheckBox16.Checked & "', 
58 60
                                             CC17 = N'" & 系統使用者管理.CheckBox17.Checked & "', CC18 = N'" & 系統使用者管理.CheckBox18.Checked & "', 
59 61
                                             CC19 = N'" & 系統使用者管理.CheckBox19.Checked & "', CC20 = N'" & 系統使用者管理.CheckBox20.Checked & "', 
60
-                                            CC21 = N'" & 系統使用者管理.CheckBox21.Checked & "'                  
62
+                                            CC21 = N'" & 系統使用者管理.CheckBox21.Checked & "', CC22 = N'" & 系統使用者管理.CheckBox22.Checked & "', 
63
+                                            CC23 = N'" & 系統使用者管理.CheckBox23.Checked & "', CC24 = N'" & 系統使用者管理.CheckBox24.Checked & "', 
64
+                                            CC25 = N'" & 系統使用者管理.CheckBox25.Checked & "'                  
61 65
                 WHERE (帳號 = N'" & 系統使用者管理.帳號_tb.Text & "')"
62 66
         CmdSet_For_dr()
63 67
     End Sub
@@ -186,41 +190,37 @@
186 190
         CmdSet_For_dr()
187 191
     End Sub
188 192
     Friend Sub SQL_資料庫轉換3()
189
-        ConnOpen_備份1() : SQL1 = "SELECT 客戶下, 網址, 帳號, 基數, 流水號, 客名, 計算, 同帳, 所得 FROM 下行客戶" : CmdSet_For_DGV()
193
+        ConnOpen_備份1() : SQL1 = "SELECT 客戶下, 網址, 帳號, 基數, 流水號, 客名, 計算, 同帳, 所得, 所得另算 FROM 下行客戶" : CmdSet_For_DGV()
190 194
     End Sub
191 195
     Friend Sub SQL_資料庫轉換3_1()
192
-        ConnOpen_備份2() : SQL1 = "SELECT 客戶下, 網址, 帳號, 基數, 流水號, 客名, 計算, 同帳, 所得 FROM 下行客戶" : CmdSet_For_DGV()
196
+        ConnOpen_備份2() : SQL1 = "SELECT 客戶下, 網址, 帳號, 基數, 流水號, 客名, 計算, 同帳, 所得, 所得另算 FROM 下行客戶" : CmdSet_For_DGV()
193 197
     End Sub
194 198
     Friend Sub SQL_資料庫轉換3_刪除()
195 199
         ConnOpen_備份2() : SQL1 = "DELETE FROM 下行客戶" : CmdSet_For_dr()
196 200
     End Sub
197 201
     Friend Sub SQL_資料庫轉換3_新增()
198 202
         ConnOpen_備份2()
199
-        SQL1 = "INSERT INTO 下行客戶 (客戶下, 網址, 帳號, 基數, 流水號, 客名, 計算, 同帳, 所得) 
200
-                VALUES (N'" & PA & "', N'" & PA1 & "', N'" & PA2 & "', N'" & PA3 & "', N'" & PA4 & "', N'" & PA5 & "', N'" & PA6 & "', N'" & PA7 & "', N'" & PA8 & "')"
203
+        SQL1 = "INSERT INTO 下行客戶 (客戶下, 網址, 帳號, 基數, 流水號, 客名, 計算, 同帳, 所得, 所得另算) 
204
+                VALUES (N'" & PA & "', N'" & PA1 & "', N'" & PA2 & "', N'" & PA3 & "', N'" & PA4 & "', N'" & PA5 & "', N'" & PA6 & "', N'" & PA7 & "', N'" & PA8 & "', N'" & PA9 & "')"
201 205
         CmdSet_For_dr()
202 206
     End Sub
203 207
     Friend Sub SQL_資料庫轉換4()
204 208
         ConnOpen_備份1()
205 209
         SQL1 = "SELECT [index], 開始日期, 結束日期, 網址, 帳戶, 名稱, 總量, 退水, 中獎, 輸贏, 佔成輸贏, 水倍差, 上繳金額, 自已總輸贏, 
206
-                       上繳貢獻額, 貢獻額, 貢獻度, 下注明細, 玩法明細, 調盤退水, 調退實佔, 上繳, 會員, 代理, 總代理, 股東, 大股東, 客戶s, 
210
+                       上繳貢獻額, 貢獻額, 貢獻度, 下注明細, 玩法明細, 調盤退水, 調退實佔, 上繳, 會員, 代理, 總代理, 股東, 大股東, 總監, 客戶s, 
207 211
                        總量s, 中獎s, 輸贏s, 客戶小計s, 代理小計s, 總代理小計s, 股東小計s, 大股東小計s, 總監小計s, 個人所得s, 水差s, 
208 212
                        下注明細s, 查看對帳s, 隨機碼
209 213
                 FROM   流水帳
210
-                WHERE  (結束日期 BETWEEN '2021-06-01' AND 
211
-                                                       '" & Strings.Format(資料備份轉移.日期_dtp.Value, "yyyy-MM-dd") & "')
212 214
                 ORDER BY 結束日期"
213 215
         CmdSet_For_DGV()
214 216
     End Sub
215 217
     Friend Sub SQL_資料庫轉換4_1()
216 218
         ConnOpen_備份2()
217 219
         SQL1 = "SELECT [index], 開始日期, 結束日期, 網址, 帳戶, 名稱, 總量, 退水, 中獎, 輸贏, 佔成輸贏, 水倍差, 上繳金額, 自已總輸贏, 
218
-                       上繳貢獻額, 貢獻額, 貢獻度, 下注明細, 玩法明細, 調盤退水, 調退實佔, 上繳, 會員, 代理, 總代理, 股東, 大股東, 客戶s, 
220
+                       上繳貢獻額, 貢獻額, 貢獻度, 下注明細, 玩法明細, 調盤退水, 調退實佔, 上繳, 會員, 代理, 總代理, 股東, 大股東, 總監, 客戶s, 
219 221
                        總量s, 中獎s, 輸贏s, 客戶小計s, 代理小計s, 總代理小計s, 股東小計s, 大股東小計s, 總監小計s, 個人所得s, 水差s, 
220 222
                        下注明細s, 查看對帳s, 隨機碼
221 223
                 FROM   流水帳
222
-                WHERE  (結束日期 BETWEEN '2021-06-01' AND 
223
-                                                       '" & Strings.Format(資料備份轉移.日期_dtp.Value, "yyyy-MM-dd") & "')
224 224
                 ORDER BY 結束日期"
225 225
         CmdSet_For_DGV()
226 226
     End Sub
@@ -235,13 +235,16 @@
235 235
         SQL1 = "INSERT INTO 流水帳 ([index], 開始日期, 結束日期, 網址, 帳戶, 名稱, 總量, 退水, 中獎, 輸贏, 佔成輸贏, 水倍差, 上繳金額, 自已總輸贏, 
236 236
                        上繳貢獻額, 貢獻額, 貢獻度, 下注明細, 玩法明細, 調盤退水, 調退實佔, 上繳, 會員, 代理, 總代理, 股東, 大股東, 客戶s, 
237 237
                        總量s, 中獎s, 輸贏s, 客戶小計s, 代理小計s, 總代理小計s, 股東小計s, 大股東小計s, 總監小計s, 個人所得s, 水差s, 
238
-                       下注明細s, 查看對帳s, 隨機碼) 
238
+                       下注明細s, 查看對帳s, 隨機碼, 總監) 
239 239
                 VALUES (N'" & PA & "', N'" & PA1 & "', N'" & PA2 & "', N'" & PA3 & "', N'" & PA4 & "', N'" & PA6 & "', N'" & PA7 & "', N'" & PA8 & "', 
240 240
                         N'" & PA9 & "', N'" & PA10 & "', N'" & PA11 & "', N'" & PA12 & "', N'" & PA13 & "', N'" & PA14 & "', N'" & PA15 & "', N'" & PA16 & "', 
241 241
                         N'" & PA17 & "', N'" & PA18 & "', N'" & PA19 & "', N'" & PA20 & "', N'" & PA21 & "', N'" & PA22 & "', N'" & PA23 & "', N'" & PA24 & "', 
242 242
                         N'" & PA25 & "', N'" & PA26 & "', N'" & PA27 & "', N'" & PA28 & "', N'" & PA29 & "', N'" & PA30 & "', N'" & PA31 & "', N'" & PA32 & "', 
243 243
                         N'" & PA33 & "', N'" & PA34 & "', N'" & PA35 & "', N'" & PA36 & "', N'" & PA37 & "', N'" & PA38 & "', N'" & PA39 & "', N'" & PA40 & "', 
244
-                        N'" & PA41 & "', N'" & PA5 & "')"
244
+                        N'" & PA41 & "', N'" & PA5 & "', N'" & PA42 & "')"
245 245
         CmdSet_For_dr()
246 246
     End Sub
247
+    Friend Sub SQL_轉換連線用()
248
+        ConnOpen() : SQL1 = "SELECT  客戶, 資料庫, IP位置, 帳號, 密碼, 備份, 備份IP, 備份帳號, 密碼密碼 AS 備份密碼 FROM 客戶資料表 WHERE 資料庫 LIKE N'" & 子SQL名稱 & "'" : CmdSet_For_dr()
249
+    End Sub
247 250
 End Module

BIN
GA-ERP-SYS/Module/cefsharp.common.93.1.111.nupkg View File


+ 2
- 1
GA-ERP-SYS/Module/全域變數.vb View File

@@ -10,7 +10,7 @@
10 10
     Public AA(99) As String : Public BB(99) As Boolean : Public CC(99) As Boolean : Public 登入判斷 As Boolean : Public 登入客戶 As String : Public 登入資料庫 As String : Public 業務名稱 As String
11 11
     Public QA1 As String : Public QA2 As String : Public QA3 As String : Public QA4 As String
12 12
     '----系統版本-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
13
-    Public 版本 As String = "2021073001"
13
+    Public 版本 As String = "2021091601"
14 14
     '----系統用全域變數-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
15 15
     '----系統閒置-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
16 16
     Public 判斷重登 As Boolean : Public 內外網 As Boolean : Public 重登確認 As Boolean : Public 主頁開啟 As Boolean
@@ -23,6 +23,7 @@
23 23
     Public PA24 As String = "" : Public PA25 As String = "" : Public PA26 As String = "" : Public PA27 As String = "" : Public PA28 As String = "" : Public PA29 As String = ""
24 24
     Public PA30 As String = "" : Public PA31 As String = "" : Public PA32 As String = "" : Public PA33 As String = "" : Public PA34 As String = "" : Public PA35 As String = ""
25 25
     Public PA36 As String = "" : Public PA37 As String = "" : Public PA38 As String = "" : Public PA39 As String = "" : Public PA40 As String = "" : Public PA41 As String = ""
26
+    Public PA42 As String = ""
26 27
     '----全域數字變數-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
27 28
     Public NU1 As Double : Public NU2 As Double : Public NU3 As Double : Public NU4 As Double : Public NU5 As Double
28 29
     '----全域布林含數-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

+ 50
- 0
GA-ERP-SYS/My Project/Resources.Designer.vb View File

@@ -60,6 +60,16 @@ Namespace My.Resources
60 60
             End Set
61 61
         End Property
62 62
         
63
+        '''<summary>
64
+        '''  查詢類型 System.Drawing.Bitmap 的當地語系化資源。
65
+        '''</summary>
66
+        Friend ReadOnly Property _00aa2ad767a242ddc3099a90a5c7edb() As System.Drawing.Bitmap
67
+            Get
68
+                Dim obj As Object = ResourceManager.GetObject("00aa2ad767a242ddc3099a90a5c7edb", resourceCulture)
69
+                Return CType(obj,System.Drawing.Bitmap)
70
+            End Get
71
+        End Property
72
+        
63 73
         '''<summary>
64 74
         '''  查詢類型 System.Drawing.Bitmap 的當地語系化資源。
65 75
         '''</summary>
@@ -70,6 +80,16 @@ Namespace My.Resources
70 80
             End Get
71 81
         End Property
72 82
         
83
+        '''<summary>
84
+        '''  查詢類型 System.Drawing.Bitmap 的當地語系化資源。
85
+        '''</summary>
86
+        Friend ReadOnly Property _125425789654() As System.Drawing.Bitmap
87
+            Get
88
+                Dim obj As Object = ResourceManager.GetObject("125425789654", resourceCulture)
89
+                Return CType(obj,System.Drawing.Bitmap)
90
+            End Get
91
+        End Property
92
+        
73 93
         '''<summary>
74 94
         '''  查詢類型 System.Drawing.Bitmap 的當地語系化資源。
75 95
         '''</summary>
@@ -90,6 +110,36 @@ Namespace My.Resources
90 110
             End Get
91 111
         End Property
92 112
         
113
+        '''<summary>
114
+        '''  查詢類型 System.Drawing.Bitmap 的當地語系化資源。
115
+        '''</summary>
116
+        Friend ReadOnly Property _1631414926457() As System.Drawing.Bitmap
117
+            Get
118
+                Dim obj As Object = ResourceManager.GetObject("1631414926457", resourceCulture)
119
+                Return CType(obj,System.Drawing.Bitmap)
120
+            End Get
121
+        End Property
122
+        
123
+        '''<summary>
124
+        '''  查詢類型 System.Drawing.Bitmap 的當地語系化資源。
125
+        '''</summary>
126
+        Friend ReadOnly Property _47526ccfe6fd81c95524745ad12d1f7() As System.Drawing.Bitmap
127
+            Get
128
+                Dim obj As Object = ResourceManager.GetObject("47526ccfe6fd81c95524745ad12d1f7", resourceCulture)
129
+                Return CType(obj,System.Drawing.Bitmap)
130
+            End Get
131
+        End Property
132
+        
133
+        '''<summary>
134
+        '''  查詢類型 System.Drawing.Bitmap 的當地語系化資源。
135
+        '''</summary>
136
+        Friend ReadOnly Property _5bb63d4ef7f776f75809dfb810d8a16() As System.Drawing.Bitmap
137
+            Get
138
+                Dim obj As Object = ResourceManager.GetObject("5bb63d4ef7f776f75809dfb810d8a16", resourceCulture)
139
+                Return CType(obj,System.Drawing.Bitmap)
140
+            End Get
141
+        End Property
142
+        
93 143
         '''<summary>
94 144
         '''  查詢類型 System.Drawing.Bitmap 的當地語系化資源。
95 145
         '''</summary>

+ 24
- 9
GA-ERP-SYS/My Project/Resources.resx View File

@@ -121,9 +121,15 @@
121 121
   <data name="Personnel1" type="System.Resources.ResXFileRef, System.Windows.Forms">
122 122
     <value>..\圖片\Personnel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
123 123
   </data>
124
+  <data name="125425789654" type="System.Resources.ResXFileRef, System.Windows.Forms">
125
+    <value>..\圖片\125425789654.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
126
+  </data>
124 127
   <data name="Shipping51" type="System.Resources.ResXFileRef, System.Windows.Forms">
125 128
     <value>..\圖片\Shipping5.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
126 129
   </data>
130
+  <data name="0111121hh" type="System.Resources.ResXFileRef, System.Windows.Forms">
131
+    <value>..\圖片\0111121hh.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
132
+  </data>
127 133
   <data name="Delivery-Icon1" type="System.Resources.ResXFileRef, System.Windows.Forms">
128 134
     <value>..\圖片\Delivery-Icon.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
129 135
   </data>
@@ -133,6 +139,9 @@
133 139
   <data name="pen1" type="System.Resources.ResXFileRef, System.Windows.Forms">
134 140
     <value>..\圖片\pen.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
135 141
   </data>
142
+  <data name="Shipping5" type="System.Resources.ResXFileRef, System.Windows.Forms">
143
+    <value>..\圖片\Shipping5.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
144
+  </data>
136 145
   <data name="check-icon1" type="System.Resources.ResXFileRef, System.Windows.Forms">
137 146
     <value>..\圖片\check-icon.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
138 147
   </data>
@@ -160,15 +169,15 @@
160 169
   <data name="Sys-Command" type="System.Resources.ResXFileRef, System.Windows.Forms">
161 170
     <value>..\圖片\Sys-Command.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
162 171
   </data>
163
-  <data name="0111121hh" type="System.Resources.ResXFileRef, System.Windows.Forms">
164
-    <value>..\圖片\0111121hh.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
172
+  <data name="1631414926457" type="System.Resources.ResXFileRef, System.Windows.Forms">
173
+    <value>..\圖片\1631414926457.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
174
+  </data>
175
+  <data name="1627008239188" type="System.Resources.ResXFileRef, System.Windows.Forms">
176
+    <value>..\圖片\1627008239188.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
165 177
   </data>
166 178
   <data name="delivery" type="System.Resources.ResXFileRef, System.Windows.Forms">
167 179
     <value>..\圖片\delivery.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
168 180
   </data>
169
-  <data name="timg03" type="System.Resources.ResXFileRef, System.Windows.Forms">
170
-    <value>..\圖片\timg03.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
171
-  </data>
172 181
   <data name="depositphotos_189846782-stock-illustration-ga-g-a-letter-logo" type="System.Resources.ResXFileRef, System.Windows.Forms">
173 182
     <value>..\圖片\depositphotos_189846782-stock-illustration-ga-g-a-letter-logo.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
174 183
   </data>
@@ -184,6 +193,9 @@
184 193
   <data name="check" type="System.Resources.ResXFileRef, System.Windows.Forms">
185 194
     <value>..\圖片\check.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
186 195
   </data>
196
+  <data name="5bb63d4ef7f776f75809dfb810d8a16" type="System.Resources.ResXFileRef, System.Windows.Forms">
197
+    <value>..\圖片\5bb63d4ef7f776f75809dfb810d8a16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
198
+  </data>
187 199
   <data name="timg13" type="System.Resources.ResXFileRef, System.Windows.Forms">
188 200
     <value>..\圖片\timg13.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
189 201
   </data>
@@ -196,8 +208,8 @@
196 208
   <data name="check1" type="System.Resources.ResXFileRef, System.Windows.Forms">
197 209
     <value>..\圖片\check.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
198 210
   </data>
199
-  <data name="Shipping5" type="System.Resources.ResXFileRef, System.Windows.Forms">
200
-    <value>..\圖片\Shipping5.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
211
+  <data name="timg03" type="System.Resources.ResXFileRef, System.Windows.Forms">
212
+    <value>..\圖片\timg03.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
201 213
   </data>
202 214
   <data name="basket_back1" type="System.Resources.ResXFileRef, System.Windows.Forms">
203 215
     <value>..\圖片\basket_back.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
@@ -214,6 +226,9 @@
214 226
   <data name="check-icon" type="System.Resources.ResXFileRef, System.Windows.Forms">
215 227
     <value>..\圖片\check-icon.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
216 228
   </data>
229
+  <data name="47526ccfe6fd81c95524745ad12d1f7" type="System.Resources.ResXFileRef, System.Windows.Forms">
230
+    <value>..\圖片\47526ccfe6fd81c95524745ad12d1f7.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
231
+  </data>
217 232
   <data name="timg02" type="System.Resources.ResXFileRef, System.Windows.Forms">
218 233
     <value>..\圖片\timg02.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
219 234
   </data>
@@ -226,7 +241,7 @@
226 241
   <data name="business-info" type="System.Resources.ResXFileRef, System.Windows.Forms">
227 242
     <value>..\圖片\business-info.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
228 243
   </data>
229
-  <data name="1627008239188" type="System.Resources.ResXFileRef, System.Windows.Forms">
230
-    <value>..\圖片\1627008239188.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
244
+  <data name="00aa2ad767a242ddc3099a90a5c7edb" type="System.Resources.ResXFileRef, System.Windows.Forms">
245
+    <value>..\圖片\00aa2ad767a242ddc3099a90a5c7edb.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
231 246
   </data>
232 247
 </root>

+ 36
- 36
GA-ERP-SYS/My Project/Settings.Designer.vb View File

@@ -1,10 +1,10 @@
1 1
 '------------------------------------------------------------------------------
2 2
 ' <auto-generated>
3
-'     This code was generated by a tool.
4
-'     Runtime Version:4.0.30319.42000
3
+'     這段程式碼是由工具產生的。
4
+'     執行階段版本:4.0.30319.42000
5 5
 '
6
-'     Changes to this file may cause incorrect behavior and will be lost if
7
-'     the code is regenerated.
6
+'     對這個檔案所做的變更可能會造成錯誤的行為,而且如果重新產生程式碼,
7
+'     變更將會遺失。
8 8
 ' </auto-generated>
9 9
 '------------------------------------------------------------------------------
10 10
 
@@ -13,42 +13,42 @@ Option Explicit On
13 13
 
14 14
 
15 15
 Namespace My
16
-
17
-    <Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
18
-     Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0"), _
19
-     Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
16
+    
17
+    <Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(),  _
18
+     Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.5.0.0"),  _
19
+     Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)>  _
20 20
     Partial Friend NotInheritable Class MySettings
21 21
         Inherits Global.System.Configuration.ApplicationSettingsBase
22
-
23
-        Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings), MySettings)
24
-
25
-#Region "My.Settings Auto-Save Functionality"
22
+        
23
+        Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings()),MySettings)
24
+        
25
+#Region "My.Settings 自動儲存功能"
26 26
 #If _MyType = "WindowsForms" Then
27
-        Private Shared addedHandler As Boolean
27
+    Private Shared addedHandler As Boolean
28 28
 
29
-        Private Shared addedHandlerLockObject As New Object
29
+    Private Shared addedHandlerLockObject As New Object
30 30
 
31
-        <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
32
-        Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs)
33
-            If My.Application.SaveMySettingsOnExit Then
34
-                My.Settings.Save()
35
-            End If
36
-        End Sub
31
+    <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
32
+    Private Shared Sub AutoSaveSettings(sender As Global.System.Object, e As Global.System.EventArgs)
33
+        If My.Application.SaveMySettingsOnExit Then
34
+            My.Settings.Save()
35
+        End If
36
+    End Sub
37 37
 #End If
38 38
 #End Region
39
-
39
+        
40 40
         Public Shared ReadOnly Property [Default]() As MySettings
41 41
             Get
42
-
42
+                
43 43
 #If _MyType = "WindowsForms" Then
44
-                   If Not addedHandler Then
45
-                        SyncLock addedHandlerLockObject
46
-                            If Not addedHandler Then
47
-                                AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings
48
-                                addedHandler = True
49
-                            End If
50
-                        End SyncLock
51
-                    End If
44
+               If Not addedHandler Then
45
+                    SyncLock addedHandlerLockObject
46
+                        If Not addedHandler Then
47
+                            AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings
48
+                            addedHandler = True
49
+                        End If
50
+                    End SyncLock
51
+                End If
52 52
 #End If
53 53
                 Return defaultInstance
54 54
             End Get
@@ -57,13 +57,13 @@ Namespace My
57 57
 End Namespace
58 58
 
59 59
 Namespace My
60
-
61
-    <Global.Microsoft.VisualBasic.HideModuleNameAttribute(), _
62
-     Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
63
-     Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()> _
60
+    
61
+    <Global.Microsoft.VisualBasic.HideModuleNameAttribute(),  _
62
+     Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
63
+     Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()>  _
64 64
     Friend Module MySettingsProperty
65
-
66
-        <Global.System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")> _
65
+        
66
+        <Global.System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")>  _
67 67
         Friend ReadOnly Property Settings() As Global.GA_ERP_SYS.My.MySettings
68 68
             Get
69 69
                 Return Global.GA_ERP_SYS.My.MySettings.Default

BIN
GA-ERP-SYS/bin/Debug/Auto.exe View File


BIN
GA-ERP-SYS/bin/Debug/GA-ERP-SYS.exe View File


+ 3
- 3
GA-ERP-SYS/bin/Debug/GA-ERP-SYS.exe.config View File

@@ -1,6 +1,6 @@
1
-<?xml version="1.0" encoding="utf-8" ?>
1
+<?xml version="1.0" encoding="utf-8"?>
2 2
 <configuration>
3 3
     <startup>
4
-        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
4
+        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2"/>
5 5
     </startup>
6
-</configuration>
6
+</configuration>

BIN
GA-ERP-SYS/bin/Debug/GA-ERP-SYS.pdb View File


+ 25
- 0
GA-ERP-SYS/bin/Debug/GA-ERP-SYS.xml View File

@@ -22,11 +22,21 @@ GA-ERP-SYS
22 22
   使用這個強類型資源類別的資源查閱。
23 23
 </summary>
24 24
 </member>
25
+<member name="P:GA_ERP_SYS.My.Resources.Resources._00aa2ad767a242ddc3099a90a5c7edb">
26
+<summary>
27
+  查詢類型 System.Drawing.Bitmap 的當地語系化資源。
28
+</summary>
29
+</member>
25 30
 <member name="P:GA_ERP_SYS.My.Resources.Resources._0111121hh">
26 31
 <summary>
27 32
   查詢類型 System.Drawing.Bitmap 的當地語系化資源。
28 33
 </summary>
29 34
 </member>
35
+<member name="P:GA_ERP_SYS.My.Resources.Resources._125425789654">
36
+<summary>
37
+  查詢類型 System.Drawing.Bitmap 的當地語系化資源。
38
+</summary>
39
+</member>
30 40
 <member name="P:GA_ERP_SYS.My.Resources.Resources._1627008239187">
31 41
 <summary>
32 42
   查詢類型 System.Drawing.Bitmap 的當地語系化資源。
@@ -37,6 +47,21 @@ GA-ERP-SYS
37 47
   查詢類型 System.Drawing.Bitmap 的當地語系化資源。
38 48
 </summary>
39 49
 </member>
50
+<member name="P:GA_ERP_SYS.My.Resources.Resources._1631414926457">
51
+<summary>
52
+  查詢類型 System.Drawing.Bitmap 的當地語系化資源。
53
+</summary>
54
+</member>
55
+<member name="P:GA_ERP_SYS.My.Resources.Resources._47526ccfe6fd81c95524745ad12d1f7">
56
+<summary>
57
+  查詢類型 System.Drawing.Bitmap 的當地語系化資源。
58
+</summary>
59
+</member>
60
+<member name="P:GA_ERP_SYS.My.Resources.Resources._5bb63d4ef7f776f75809dfb810d8a16">
61
+<summary>
62
+  查詢類型 System.Drawing.Bitmap 的當地語系化資源。
63
+</summary>
64
+</member>
40 65
 <member name="P:GA_ERP_SYS.My.Resources.Resources.basket_back">
41 66
 <summary>
42 67
   查詢類型 System.Drawing.Bitmap 的當地語系化資源。

BIN
GA-ERP-SYS/bin/Debug/chromedriver.exe View File


BIN
GA-ERP-SYS/obj/Debug/DesignTimeResolveAssemblyReferences.cache View File


BIN
GA-ERP-SYS/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache View File


BIN
GA-ERP-SYS/obj/Debug/GA-ERP-SYS.exe View File


BIN
GA-ERP-SYS/obj/Debug/GA-ERP-SYS.pdb View File


+ 1
- 1
GA-ERP-SYS/obj/Debug/GA-ERP-SYS.vbproj.CoreCompileInputs.cache View File

@@ -1 +1 @@
1
-21f061c57a10f84251eafdb24fe43be1b961d696
1
+6526e6772923c5594ab2b4b0d5a97d2ed4a7694f

+ 1
- 0
GA-ERP-SYS/obj/Debug/GA-ERP-SYS.vbproj.FileListAbsolute.txt View File

@@ -119,3 +119,4 @@ D:\工巧明\GAME- Accounting-SYS\GA-ERP-SYS\GA-ERP-SYS\obj\Debug\GA_ERP_SYS.網
119 119
 D:\工巧明\GAME- Accounting-SYS\GA-ERP-SYS\GA-ERP-SYS\obj\Debug\GA_ERP_SYS.資料備份轉移.resources
120 120
 D:\工巧明\GAME- Accounting-SYS\GA-ERP-SYS\GA-ERP-SYS\obj\Debug\GA_ERP_SYS.帳務彙總計算表.resources
121 121
 D:\工巧明\GAME- Accounting-SYS\GA-ERP-SYS\GA-ERP-SYS\obj\Debug\GA_ERP_SYS.帳務明細查詢表.resources
122
+D:\工巧明\GAME- Accounting-SYS\GA-ERP-SYS\GA-ERP-SYS\obj\Debug\GA_ERP_SYS.錯誤排除手冊.resources

BIN
GA-ERP-SYS/obj/Debug/GA-ERP-SYS.vbproj.GenerateResource.cache View File


BIN
GA-ERP-SYS/obj/Debug/GA-ERP-SYS.vbprojAssemblyReference.cache View File


+ 25
- 0
GA-ERP-SYS/obj/Debug/GA-ERP-SYS.xml View File

@@ -22,11 +22,21 @@ GA-ERP-SYS
22 22
   使用這個強類型資源類別的資源查閱。
23 23
 </summary>
24 24
 </member>
25
+<member name="P:GA_ERP_SYS.My.Resources.Resources._00aa2ad767a242ddc3099a90a5c7edb">
26
+<summary>
27
+  查詢類型 System.Drawing.Bitmap 的當地語系化資源。
28
+</summary>
29
+</member>
25 30
 <member name="P:GA_ERP_SYS.My.Resources.Resources._0111121hh">
26 31
 <summary>
27 32
   查詢類型 System.Drawing.Bitmap 的當地語系化資源。
28 33
 </summary>
29 34
 </member>
35
+<member name="P:GA_ERP_SYS.My.Resources.Resources._125425789654">
36
+<summary>
37
+  查詢類型 System.Drawing.Bitmap 的當地語系化資源。
38
+</summary>
39
+</member>
30 40
 <member name="P:GA_ERP_SYS.My.Resources.Resources._1627008239187">
31 41
 <summary>
32 42
   查詢類型 System.Drawing.Bitmap 的當地語系化資源。
@@ -37,6 +47,21 @@ GA-ERP-SYS
37 47
   查詢類型 System.Drawing.Bitmap 的當地語系化資源。
38 48
 </summary>
39 49
 </member>
50
+<member name="P:GA_ERP_SYS.My.Resources.Resources._1631414926457">
51
+<summary>
52
+  查詢類型 System.Drawing.Bitmap 的當地語系化資源。
53
+</summary>
54
+</member>
55
+<member name="P:GA_ERP_SYS.My.Resources.Resources._47526ccfe6fd81c95524745ad12d1f7">
56
+<summary>
57
+  查詢類型 System.Drawing.Bitmap 的當地語系化資源。
58
+</summary>
59
+</member>
60
+<member name="P:GA_ERP_SYS.My.Resources.Resources._5bb63d4ef7f776f75809dfb810d8a16">
61
+<summary>
62
+  查詢類型 System.Drawing.Bitmap 的當地語系化資源。
63
+</summary>
64
+</member>
40 65
 <member name="P:GA_ERP_SYS.My.Resources.Resources.basket_back">
41 66
 <summary>
42 67
   查詢類型 System.Drawing.Bitmap 的當地語系化資源。

BIN
GA-ERP-SYS/obj/Debug/GA_ERP_SYS.Resources.resources View File


BIN
GA-ERP-SYS/obj/Debug/GA_ERP_SYS.錯誤排除手冊.resources View File


BIN
GA-ERP-SYS/obj/Debug/TempPE/My Project.Resources.Designer.vb.dll View File


BIN
GA-ERP-SYS/圖片/00aa2ad767a242ddc3099a90a5c7edb.png View File


BIN
GA-ERP-SYS/圖片/125425789654.png View File


BIN
GA-ERP-SYS/圖片/1631414926457.jpg View File


BIN
GA-ERP-SYS/圖片/47526ccfe6fd81c95524745ad12d1f7.png View File


BIN
GA-ERP-SYS/圖片/5bb63d4ef7f776f75809dfb810d8a16.png View File


+ 103
- 80
GA-ERP-SYS/基本資料管理/基本資料.Designer.vb View File

@@ -23,19 +23,19 @@ Partial Class 基本資料
23 23
     <System.Diagnostics.DebuggerStepThrough()> _
24 24
     Private Sub InitializeComponent()
25 25
         Me.components = New System.ComponentModel.Container()
26
-        Dim DataGridViewCellStyle40 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27
-        Dim DataGridViewCellStyle41 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
28
-        Dim DataGridViewCellStyle42 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
29
-        Dim DataGridViewCellStyle43 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
30
-        Dim DataGridViewCellStyle44 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
31
-        Dim DataGridViewCellStyle45 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
32
-        Dim DataGridViewCellStyle46 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
33
-        Dim DataGridViewCellStyle47 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
34
-        Dim DataGridViewCellStyle48 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
35
-        Dim DataGridViewCellStyle49 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
36
-        Dim DataGridViewCellStyle50 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
37
-        Dim DataGridViewCellStyle51 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
38
-        Dim DataGridViewCellStyle52 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26
+        Dim DataGridViewCellStyle1 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27
+        Dim DataGridViewCellStyle2 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
28
+        Dim DataGridViewCellStyle3 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
29
+        Dim DataGridViewCellStyle4 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
30
+        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
+        Dim DataGridViewCellStyle7 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
33
+        Dim DataGridViewCellStyle8 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
34
+        Dim DataGridViewCellStyle9 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
35
+        Dim DataGridViewCellStyle10 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
36
+        Dim DataGridViewCellStyle11 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
37
+        Dim DataGridViewCellStyle12 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
38
+        Dim DataGridViewCellStyle13 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
39 39
         Me.GroupBox1 = New System.Windows.Forms.GroupBox()
40 40
         Me.取消_bt = New System.Windows.Forms.Button()
41 41
         Me.存檔_bt = New System.Windows.Forms.Button()
@@ -155,6 +155,8 @@ Partial Class 基本資料
155 155
         Me.PictureBox1 = New System.Windows.Forms.PictureBox()
156 156
         Me.所得取消_bt = New System.Windows.Forms.Button()
157 157
         Me.所得全選_bt = New System.Windows.Forms.Button()
158
+        Me.所得指定_tb = New System.Windows.Forms.TextBox()
159
+        Me.Label28 = New System.Windows.Forms.Label()
158 160
         Me.GroupBox1.SuspendLayout()
159 161
         Me.GroupBox2.SuspendLayout()
160 162
         CType(Me.基數_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
@@ -235,8 +237,8 @@ Partial Class 基本資料
235 237
         '
236 238
         '基數_dgv
237 239
         '
238
-        DataGridViewCellStyle40.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(192, Byte), Integer))
239
-        Me.基數_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle40
240
+        DataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(192, Byte), Integer))
241
+        Me.基數_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle1
240 242
         Me.基數_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
241 243
             Or System.Windows.Forms.AnchorStyles.Left) _
242 244
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
@@ -261,8 +263,8 @@ Partial Class 基本資料
261 263
         '
262 264
         '資料_dgv
263 265
         '
264
-        DataGridViewCellStyle41.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
265
-        Me.資料_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle41
266
+        DataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
267
+        Me.資料_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle2
266 268
         Me.資料_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
267 269
             Or System.Windows.Forms.AnchorStyles.Left) _
268 270
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
@@ -365,8 +367,8 @@ Partial Class 基本資料
365 367
         '
366 368
         '商品_dgv
367 369
         '
368
-        DataGridViewCellStyle42.BackColor = System.Drawing.Color.LavenderBlush
369
-        Me.商品_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle42
370
+        DataGridViewCellStyle3.BackColor = System.Drawing.Color.LavenderBlush
371
+        Me.商品_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle3
370 372
         Me.商品_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
371 373
             Or System.Windows.Forms.AnchorStyles.Left) _
372 374
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
@@ -475,6 +477,8 @@ Partial Class 基本資料
475 477
         '
476 478
         Me.GroupBox5.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
477 479
             Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
480
+        Me.GroupBox5.Controls.Add(Me.所得指定_tb)
481
+        Me.GroupBox5.Controls.Add(Me.Label28)
478 482
         Me.GroupBox5.Controls.Add(Me.所得計算_ch)
479 483
         Me.GroupBox5.Controls.Add(Me.參與計算_ch)
480 484
         Me.GroupBox5.Controls.Add(Me.取消2_bt)
@@ -531,7 +535,7 @@ Partial Class 基本資料
531 535
         '取消2_bt
532 536
         '
533 537
         Me.取消2_bt.ForeColor = System.Drawing.Color.Black
534
-        Me.取消2_bt.Location = New System.Drawing.Point(389, 89)
538
+        Me.取消2_bt.Location = New System.Drawing.Point(389, 93)
535 539
         Me.取消2_bt.Name = "取消2_bt"
536 540
         Me.取消2_bt.Size = New System.Drawing.Size(76, 24)
537 541
         Me.取消2_bt.TabIndex = 1551
@@ -541,7 +545,7 @@ Partial Class 基本資料
541 545
         '存檔2_bt
542 546
         '
543 547
         Me.存檔2_bt.ForeColor = System.Drawing.Color.Green
544
-        Me.存檔2_bt.Location = New System.Drawing.Point(389, 64)
548
+        Me.存檔2_bt.Location = New System.Drawing.Point(389, 68)
545 549
         Me.存檔2_bt.Name = "存檔2_bt"
546 550
         Me.存檔2_bt.Size = New System.Drawing.Size(76, 24)
547 551
         Me.存檔2_bt.TabIndex = 1550
@@ -636,7 +640,7 @@ Partial Class 基本資料
636 640
         '
637 641
         Me.客戶下刪除_bt.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
638 642
         Me.客戶下刪除_bt.ForeColor = System.Drawing.Color.Red
639
-        Me.客戶下刪除_bt.Location = New System.Drawing.Point(389, 114)
643
+        Me.客戶下刪除_bt.Location = New System.Drawing.Point(389, 119)
640 644
         Me.客戶下刪除_bt.Name = "客戶下刪除_bt"
641 645
         Me.客戶下刪除_bt.Size = New System.Drawing.Size(76, 24)
642 646
         Me.客戶下刪除_bt.TabIndex = 1505
@@ -653,7 +657,7 @@ Partial Class 基本資料
653 657
         '客戶下修正_bt
654 658
         '
655 659
         Me.客戶下修正_bt.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
656
-        Me.客戶下修正_bt.Location = New System.Drawing.Point(389, 39)
660
+        Me.客戶下修正_bt.Location = New System.Drawing.Point(389, 43)
657 661
         Me.客戶下修正_bt.Name = "客戶下修正_bt"
658 662
         Me.客戶下修正_bt.Size = New System.Drawing.Size(76, 24)
659 663
         Me.客戶下修正_bt.TabIndex = 1504
@@ -675,7 +679,7 @@ Partial Class 基本資料
675 679
         Me.客戶下新增_bt.BackColor = System.Drawing.SystemColors.ControlLight
676 680
         Me.客戶下新增_bt.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
677 681
         Me.客戶下新增_bt.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
678
-        Me.客戶下新增_bt.Location = New System.Drawing.Point(389, 14)
682
+        Me.客戶下新增_bt.Location = New System.Drawing.Point(389, 17)
679 683
         Me.客戶下新增_bt.Name = "客戶下新增_bt"
680 684
         Me.客戶下新增_bt.Size = New System.Drawing.Size(76, 24)
681 685
         Me.客戶下新增_bt.TabIndex = 1503
@@ -684,8 +688,8 @@ Partial Class 基本資料
684 688
         '
685 689
         '客戶下_dgv
686 690
         '
687
-        DataGridViewCellStyle43.BackColor = System.Drawing.Color.Linen
688
-        Me.客戶下_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle43
691
+        DataGridViewCellStyle4.BackColor = System.Drawing.Color.Linen
692
+        Me.客戶下_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle4
689 693
         Me.客戶下_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
690 694
             Or System.Windows.Forms.AnchorStyles.Left) _
691 695
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
@@ -1173,8 +1177,8 @@ Partial Class 基本資料
1173 1177
         '
1174 1178
         '商客_dgv
1175 1179
         '
1176
-        DataGridViewCellStyle44.BackColor = System.Drawing.Color.LightCyan
1177
-        Me.商客_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle44
1180
+        DataGridViewCellStyle5.BackColor = System.Drawing.Color.LightCyan
1181
+        Me.商客_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle5
1178 1182
         Me.商客_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
1179 1183
             Or System.Windows.Forms.AnchorStyles.Left) _
1180 1184
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
@@ -1327,38 +1331,38 @@ Partial Class 基本資料
1327 1331
         '
1328 1332
         'LOG1_dgv
1329 1333
         '
1330
-        DataGridViewCellStyle45.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
1331
-        Me.LOG1_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle45
1334
+        DataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
1335
+        Me.LOG1_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle6
1332 1336
         Me.LOG1_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
1333 1337
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
1334
-        DataGridViewCellStyle46.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
1335
-        DataGridViewCellStyle46.BackColor = System.Drawing.SystemColors.Control
1336
-        DataGridViewCellStyle46.Font = New System.Drawing.Font("新細明體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1337
-        DataGridViewCellStyle46.ForeColor = System.Drawing.SystemColors.WindowText
1338
-        DataGridViewCellStyle46.SelectionBackColor = System.Drawing.SystemColors.Highlight
1339
-        DataGridViewCellStyle46.SelectionForeColor = System.Drawing.SystemColors.HighlightText
1340
-        DataGridViewCellStyle46.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
1341
-        Me.LOG1_dgv.ColumnHeadersDefaultCellStyle = DataGridViewCellStyle46
1338
+        DataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
1339
+        DataGridViewCellStyle7.BackColor = System.Drawing.SystemColors.Control
1340
+        DataGridViewCellStyle7.Font = New System.Drawing.Font("新細明體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1341
+        DataGridViewCellStyle7.ForeColor = System.Drawing.SystemColors.WindowText
1342
+        DataGridViewCellStyle7.SelectionBackColor = System.Drawing.SystemColors.Highlight
1343
+        DataGridViewCellStyle7.SelectionForeColor = System.Drawing.SystemColors.HighlightText
1344
+        DataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
1345
+        Me.LOG1_dgv.ColumnHeadersDefaultCellStyle = DataGridViewCellStyle7
1342 1346
         Me.LOG1_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
1343
-        DataGridViewCellStyle47.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
1344
-        DataGridViewCellStyle47.BackColor = System.Drawing.SystemColors.Window
1345
-        DataGridViewCellStyle47.Font = New System.Drawing.Font("新細明體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1346
-        DataGridViewCellStyle47.ForeColor = System.Drawing.SystemColors.ControlText
1347
-        DataGridViewCellStyle47.SelectionBackColor = System.Drawing.SystemColors.Highlight
1348
-        DataGridViewCellStyle47.SelectionForeColor = System.Drawing.SystemColors.HighlightText
1349
-        DataGridViewCellStyle47.WrapMode = System.Windows.Forms.DataGridViewTriState.[False]
1350
-        Me.LOG1_dgv.DefaultCellStyle = DataGridViewCellStyle47
1347
+        DataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
1348
+        DataGridViewCellStyle8.BackColor = System.Drawing.SystemColors.Window
1349
+        DataGridViewCellStyle8.Font = New System.Drawing.Font("新細明體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1350
+        DataGridViewCellStyle8.ForeColor = System.Drawing.SystemColors.ControlText
1351
+        DataGridViewCellStyle8.SelectionBackColor = System.Drawing.SystemColors.Highlight
1352
+        DataGridViewCellStyle8.SelectionForeColor = System.Drawing.SystemColors.HighlightText
1353
+        DataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.[False]
1354
+        Me.LOG1_dgv.DefaultCellStyle = DataGridViewCellStyle8
1351 1355
         Me.LOG1_dgv.Location = New System.Drawing.Point(6, 18)
1352 1356
         Me.LOG1_dgv.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
1353 1357
         Me.LOG1_dgv.Name = "LOG1_dgv"
1354
-        DataGridViewCellStyle48.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
1355
-        DataGridViewCellStyle48.BackColor = System.Drawing.SystemColors.Control
1356
-        DataGridViewCellStyle48.Font = New System.Drawing.Font("新細明體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1357
-        DataGridViewCellStyle48.ForeColor = System.Drawing.SystemColors.WindowText
1358
-        DataGridViewCellStyle48.SelectionBackColor = System.Drawing.SystemColors.Highlight
1359
-        DataGridViewCellStyle48.SelectionForeColor = System.Drawing.SystemColors.HighlightText
1360
-        DataGridViewCellStyle48.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
1361
-        Me.LOG1_dgv.RowHeadersDefaultCellStyle = DataGridViewCellStyle48
1358
+        DataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
1359
+        DataGridViewCellStyle9.BackColor = System.Drawing.SystemColors.Control
1360
+        DataGridViewCellStyle9.Font = New System.Drawing.Font("新細明體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1361
+        DataGridViewCellStyle9.ForeColor = System.Drawing.SystemColors.WindowText
1362
+        DataGridViewCellStyle9.SelectionBackColor = System.Drawing.SystemColors.Highlight
1363
+        DataGridViewCellStyle9.SelectionForeColor = System.Drawing.SystemColors.HighlightText
1364
+        DataGridViewCellStyle9.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
1365
+        Me.LOG1_dgv.RowHeadersDefaultCellStyle = DataGridViewCellStyle9
1362 1366
         Me.LOG1_dgv.RowHeadersWidth = 4
1363 1367
         Me.LOG1_dgv.RowTemplate.Height = 24
1364 1368
         Me.LOG1_dgv.Size = New System.Drawing.Size(296, 457)
@@ -1366,39 +1370,39 @@ Partial Class 基本資料
1366 1370
         '
1367 1371
         'LOG2_dgv
1368 1372
         '
1369
-        DataGridViewCellStyle49.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
1370
-        Me.LOG2_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle49
1373
+        DataGridViewCellStyle10.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
1374
+        Me.LOG2_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle10
1371 1375
         Me.LOG2_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
1372 1376
             Or System.Windows.Forms.AnchorStyles.Left) _
1373 1377
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
1374
-        DataGridViewCellStyle50.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
1375
-        DataGridViewCellStyle50.BackColor = System.Drawing.SystemColors.Control
1376
-        DataGridViewCellStyle50.Font = New System.Drawing.Font("新細明體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1377
-        DataGridViewCellStyle50.ForeColor = System.Drawing.SystemColors.WindowText
1378
-        DataGridViewCellStyle50.SelectionBackColor = System.Drawing.SystemColors.Highlight
1379
-        DataGridViewCellStyle50.SelectionForeColor = System.Drawing.SystemColors.HighlightText
1380
-        DataGridViewCellStyle50.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
1381
-        Me.LOG2_dgv.ColumnHeadersDefaultCellStyle = DataGridViewCellStyle50
1378
+        DataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
1379
+        DataGridViewCellStyle11.BackColor = System.Drawing.SystemColors.Control
1380
+        DataGridViewCellStyle11.Font = New System.Drawing.Font("新細明體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1381
+        DataGridViewCellStyle11.ForeColor = System.Drawing.SystemColors.WindowText
1382
+        DataGridViewCellStyle11.SelectionBackColor = System.Drawing.SystemColors.Highlight
1383
+        DataGridViewCellStyle11.SelectionForeColor = System.Drawing.SystemColors.HighlightText
1384
+        DataGridViewCellStyle11.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
1385
+        Me.LOG2_dgv.ColumnHeadersDefaultCellStyle = DataGridViewCellStyle11
1382 1386
         Me.LOG2_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
1383
-        DataGridViewCellStyle51.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
1384
-        DataGridViewCellStyle51.BackColor = System.Drawing.SystemColors.Window
1385
-        DataGridViewCellStyle51.Font = New System.Drawing.Font("新細明體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1386
-        DataGridViewCellStyle51.ForeColor = System.Drawing.SystemColors.ControlText
1387
-        DataGridViewCellStyle51.SelectionBackColor = System.Drawing.SystemColors.Highlight
1388
-        DataGridViewCellStyle51.SelectionForeColor = System.Drawing.SystemColors.HighlightText
1389
-        DataGridViewCellStyle51.WrapMode = System.Windows.Forms.DataGridViewTriState.[False]
1390
-        Me.LOG2_dgv.DefaultCellStyle = DataGridViewCellStyle51
1387
+        DataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
1388
+        DataGridViewCellStyle12.BackColor = System.Drawing.SystemColors.Window
1389
+        DataGridViewCellStyle12.Font = New System.Drawing.Font("新細明體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1390
+        DataGridViewCellStyle12.ForeColor = System.Drawing.SystemColors.ControlText
1391
+        DataGridViewCellStyle12.SelectionBackColor = System.Drawing.SystemColors.Highlight
1392
+        DataGridViewCellStyle12.SelectionForeColor = System.Drawing.SystemColors.HighlightText
1393
+        DataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.[False]
1394
+        Me.LOG2_dgv.DefaultCellStyle = DataGridViewCellStyle12
1391 1395
         Me.LOG2_dgv.Location = New System.Drawing.Point(6, 478)
1392 1396
         Me.LOG2_dgv.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
1393 1397
         Me.LOG2_dgv.Name = "LOG2_dgv"
1394
-        DataGridViewCellStyle52.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
1395
-        DataGridViewCellStyle52.BackColor = System.Drawing.SystemColors.Control
1396
-        DataGridViewCellStyle52.Font = New System.Drawing.Font("新細明體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1397
-        DataGridViewCellStyle52.ForeColor = System.Drawing.SystemColors.WindowText
1398
-        DataGridViewCellStyle52.SelectionBackColor = System.Drawing.SystemColors.Highlight
1399
-        DataGridViewCellStyle52.SelectionForeColor = System.Drawing.SystemColors.HighlightText
1400
-        DataGridViewCellStyle52.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
1401
-        Me.LOG2_dgv.RowHeadersDefaultCellStyle = DataGridViewCellStyle52
1398
+        DataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
1399
+        DataGridViewCellStyle13.BackColor = System.Drawing.SystemColors.Control
1400
+        DataGridViewCellStyle13.Font = New System.Drawing.Font("新細明體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1401
+        DataGridViewCellStyle13.ForeColor = System.Drawing.SystemColors.WindowText
1402
+        DataGridViewCellStyle13.SelectionBackColor = System.Drawing.SystemColors.Highlight
1403
+        DataGridViewCellStyle13.SelectionForeColor = System.Drawing.SystemColors.HighlightText
1404
+        DataGridViewCellStyle13.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
1405
+        Me.LOG2_dgv.RowHeadersDefaultCellStyle = DataGridViewCellStyle13
1402 1406
         Me.LOG2_dgv.RowHeadersWidth = 4
1403 1407
         Me.LOG2_dgv.RowTemplate.Height = 24
1404 1408
         Me.LOG2_dgv.Size = New System.Drawing.Size(296, 210)
@@ -1545,6 +1549,23 @@ Partial Class 基本資料
1545 1549
         Me.所得全選_bt.Text = "所得全選"
1546 1550
         Me.所得全選_bt.UseVisualStyleBackColor = False
1547 1551
         '
1552
+        '所得指定_tb
1553
+        '
1554
+        Me.所得指定_tb.Location = New System.Drawing.Point(253, 119)
1555
+        Me.所得指定_tb.Name = "所得指定_tb"
1556
+        Me.所得指定_tb.Size = New System.Drawing.Size(133, 23)
1557
+        Me.所得指定_tb.TabIndex = 1558
1558
+        '
1559
+        'Label28
1560
+        '
1561
+        Me.Label28.AutoSize = True
1562
+        Me.Label28.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1563
+        Me.Label28.Location = New System.Drawing.Point(197, 123)
1564
+        Me.Label28.Name = "Label28"
1565
+        Me.Label28.Size = New System.Drawing.Size(56, 16)
1566
+        Me.Label28.TabIndex = 1557
1567
+        Me.Label28.Text = "所得指定"
1568
+        '
1548 1569
         '基本資料
1549 1570
         '
1550 1571
         Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 12.0!)
@@ -1718,4 +1739,6 @@ Partial Class 基本資料
1718 1739
     Friend WithEvents Label27 As Label
1719 1740
     Friend WithEvents 所得取消_bt As Button
1720 1741
     Friend WithEvents 所得全選_bt As Button
1742
+    Friend WithEvents 所得指定_tb As TextBox
1743
+    Friend WithEvents Label28 As Label
1721 1744
 End Class

+ 12
- 8
GA-ERP-SYS/基本資料管理/基本資料.vb View File

@@ -132,7 +132,7 @@ Public Class 基本資料
132 132
         Me.MdiParent = GA_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True : GA_ERP_SYS.WindowState = 0
133 133
         商品_tb.Enabled = False : 網址2_tb.Enabled = False : 編號_tb.Enabled = False : 帳號_tb.Enabled = False : 密碼_tb.Enabled = False : 上繳源_tb.Enabled = False
134 134
         客戶下_tb.Enabled = False : 客戶名稱_tb.Enabled = False : L50.Visible = False : 參與計算_ch.Enabled = False : 上下同帳_ch.Enabled = False : 所得計算_ch.Enabled = False
135
-
135
+        所得指定_tb.Enabled = False
136 136
         PictureBox1.BringToFront()
137 137
         '-------------------------------------------------------------------------------------------------------
138 138
         SQL_下拉資料清單讀取()
@@ -262,11 +262,11 @@ Public Class 基本資料
262 262
     End Sub
263 263
     '----------------------------------------------下行客戶----------------------------------------------------------------
264 264
     Private Sub 客戶下新增_bt_Click(sender As Object, e As EventArgs) Handles 客戶下新增_bt.Click
265
-        客戶下新增_bt.Enabled = False : 客戶下_tb.Enabled = True : 客戶名稱_tb.Enabled = True
265
+        客戶下新增_bt.Enabled = False : 客戶下_tb.Enabled = True : 客戶名稱_tb.Enabled = True : 所得指定_tb.Enabled = True
266 266
         客戶下_tb.Text = "" : 客戶名稱_tb.Text = "" : 參與計算_ch.Checked = True : 上下同帳_ch.Checked = False : 所得計算_ch.Checked = True
267 267
     End Sub
268 268
     Private Sub 客戶下修正_bt_Click(sender As Object, e As EventArgs) Handles 客戶下修正_bt.Click
269
-        客戶下修正_bt.Enabled = False : 客戶下_tb.Enabled = True : 客戶名稱_tb.Enabled = True
269
+        客戶下修正_bt.Enabled = False : 客戶下_tb.Enabled = True : 客戶名稱_tb.Enabled = True : 所得指定_tb.Enabled = True
270 270
     End Sub
271 271
     Private Sub 存檔2_bt_Click(sender As Object, e As EventArgs) Handles 存檔2_bt.Click
272 272
         If 客戶下新增_bt.Enabled = False Then
@@ -288,22 +288,22 @@ Public Class 基本資料
288 288
                     ElseIf GP > 999999 Then : GPP = "GA" & GP : End If : PA10 = GPP
289 289
 
290 290
                     SQL_系統編碼規則_客戶下新增() : MsgBox("新增完成") : conn.Close() : dr.Close()
291
-                    客戶下新增_bt.Enabled = True : 客戶下_tb.Enabled = False : 客戶名稱_tb.Enabled = False
291
+                    客戶下新增_bt.Enabled = True : 客戶下_tb.Enabled = False : 客戶名稱_tb.Enabled = False : 所得指定_tb.Enabled = False
292 292
                 End If
293 293
             End If : PA = "" : Set_客戶下清單()
294 294
         ElseIf 客戶下修正_bt.Enabled = False Then
295 295
             If 客戶下_tb.Text = "" Or 網址3_tb.Text = "" Or 帳號3_tb.Text = "" Then
296 296
                 MsgBox("資料有缺或有誤,請重新檢查")
297 297
             Else
298
-                PA = 客戶下_tb.Text : PA1 = 網址3_tb.Text : PA2 = 帳號3_tb.Text : PA3 = 下行1_cb.Text : PA4 = 客戶名稱_tb.Text
298
+                PA = 客戶下_tb.Text : PA1 = 網址3_tb.Text : PA2 = 帳號3_tb.Text : PA3 = 下行1_cb.Text : PA4 = 客戶名稱_tb.Text : PA5 = 所得指定_tb.Text
299 299
                 SQL_系統編碼規則_客戶下修改() : MsgBox("修改完成") : conn.Close() : dr.Close()
300
-                客戶下修正_bt.Enabled = True : 客戶下_tb.Enabled = False : 客戶名稱_tb.Enabled = False
300
+                客戶下修正_bt.Enabled = True : 客戶下_tb.Enabled = False : 客戶名稱_tb.Enabled = False : 所得指定_tb.Enabled = False
301 301
             End If : PA = "" : Set_客戶下清單()
302 302
         End If
303 303
     End Sub
304 304
     Private Sub 取消2_bt_Click(sender As Object, e As EventArgs) Handles 取消2_bt.Click
305 305
         客戶下修正_bt.Enabled = True : 客戶下新增_bt.Enabled = True : 客戶下_tb.Enabled = False : 客戶名稱_tb.Enabled = False
306
-        參與計算_ch.Checked = False : 上下同帳_ch.Checked = False : 所得計算_ch.Checked = False
306
+        參與計算_ch.Checked = False : 上下同帳_ch.Checked = False : 所得計算_ch.Checked = False : 所得指定_tb.Enabled = False
307 307
     End Sub
308 308
     Private Sub 客戶下刪除_bt_Click(sender As Object, e As EventArgs) Handles 客戶下刪除_bt.Click
309 309
         Dim aa As MsgBoxResult = MsgBox("確定要刪除該筆資料?", MsgBoxStyle.OkCancel)
@@ -336,6 +336,7 @@ Public Class 基本資料
336 336
             For i As Integer = 0 To 客戶下_dgv.Rows.Count - 1
337 337
                 MyModule1.進度條()
338 338
                 PA = 客戶下_dgv("流水號", i).Value.ToString : BL1 = 客戶下_dgv("計算", i).Value : BL2 = 客戶下_dgv("同帳", i).Value : BL3 = 客戶下_dgv("所得", i).Value
339
+                PA1 = 客戶下_dgv("所得指定", i).Value.ToString
339 340
                 SQL_系統編碼規則_客戶下批改()
340 341
             Next : GA_ERP_SYS.ToolStripProgressBar1.Value = 0 : 最終數 = 0 : MsgBox("批量存檔完成!!!")
341 342
         End If : conn.Close() : PA = ""
@@ -533,7 +534,10 @@ Public Class 基本資料
533 534
         End If
534 535
     End Sub
535 536
     Private Sub 開網站_bt_Click(sender As Object, e As EventArgs) Handles 開網站_bt.Click
536
-        Shell("Rundll32.exe url.dll, FileProtocolHandler http://" & 網址2_tb.Text, vbNormalFocus)
537
+        Dim fileName As String = "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
538
+        Dim fullPath As String
539
+        fullPath = Path.GetFullPath(fileName)
540
+        Process.Start(fullPath, "--app= http://" & 網址2_tb.Text)
537 541
     End Sub
538 542
     Public Sub Delay(ByRef Interval As Double)  'Interval单位为毫秒
539 543
         Dim time As DateTime = DateTime.Now

+ 49
- 49
GA-ERP-SYS/報表系統管理/帳務彙總計算表.Designer.vb View File

@@ -23,21 +23,21 @@ Partial Class 帳務彙總計算表
23 23
     <System.Diagnostics.DebuggerStepThrough()>
24 24
     Private Sub InitializeComponent()
25 25
         Me.components = New System.ComponentModel.Container()
26
-        Dim DataGridViewCellStyle1 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27
-        Dim DataGridViewCellStyle2 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
28
-        Dim DataGridViewCellStyle3 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
29
-        Dim DataGridViewCellStyle4 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
30
-        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
-        Dim DataGridViewCellStyle7 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
33
-        Dim DataGridViewCellStyle8 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
34
-        Dim DataGridViewCellStyle9 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
35
-        Dim DataGridViewCellStyle10 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
36
-        Dim DataGridViewCellStyle11 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
37
-        Dim DataGridViewCellStyle12 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
38
-        Dim DataGridViewCellStyle13 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
39
-        Dim DataGridViewCellStyle14 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
40
-        Dim DataGridViewCellStyle15 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26
+        Dim DataGridViewCellStyle16 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27
+        Dim DataGridViewCellStyle17 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
28
+        Dim DataGridViewCellStyle18 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
29
+        Dim DataGridViewCellStyle19 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
30
+        Dim DataGridViewCellStyle20 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
31
+        Dim DataGridViewCellStyle21 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
32
+        Dim DataGridViewCellStyle22 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
33
+        Dim DataGridViewCellStyle23 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
34
+        Dim DataGridViewCellStyle24 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
35
+        Dim DataGridViewCellStyle25 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
36
+        Dim DataGridViewCellStyle26 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
37
+        Dim DataGridViewCellStyle27 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
38
+        Dim DataGridViewCellStyle28 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
39
+        Dim DataGridViewCellStyle29 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
40
+        Dim DataGridViewCellStyle30 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
41 41
         Me.流水帳_dgv = New System.Windows.Forms.DataGridView()
42 42
         Me.Label9 = New System.Windows.Forms.Label()
43 43
         Me.資料_cb = New System.Windows.Forms.ComboBox()
@@ -164,8 +164,8 @@ Partial Class 帳務彙總計算表
164 164
         '
165 165
         '流水帳_dgv
166 166
         '
167
-        DataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(CType(CType(224, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(224, Byte), Integer))
168
-        Me.流水帳_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle1
167
+        DataGridViewCellStyle16.BackColor = System.Drawing.Color.FromArgb(CType(CType(224, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(224, Byte), Integer))
168
+        Me.流水帳_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle16
169 169
         Me.流水帳_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
170 170
             Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
171 171
         Me.流水帳_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
@@ -242,8 +242,8 @@ Partial Class 帳務彙總計算表
242 242
         '
243 243
         '彙總_dgv
244 244
         '
245
-        DataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(CType(CType(224, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(224, Byte), Integer))
246
-        Me.彙總_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle2
245
+        DataGridViewCellStyle17.BackColor = System.Drawing.Color.FromArgb(CType(CType(224, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(224, Byte), Integer))
246
+        Me.彙總_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle17
247 247
         Me.彙總_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
248 248
             Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
249 249
         Me.彙總_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
@@ -251,8 +251,8 @@ Partial Class 帳務彙總計算表
251 251
         Me.彙總_dgv.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
252 252
         Me.彙總_dgv.Name = "彙總_dgv"
253 253
         Me.彙總_dgv.RowHeadersWidth = 4
254
-        DataGridViewCellStyle3.Font = New System.Drawing.Font("新細明體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
255
-        Me.彙總_dgv.RowsDefaultCellStyle = DataGridViewCellStyle3
254
+        DataGridViewCellStyle18.Font = New System.Drawing.Font("新細明體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
255
+        Me.彙總_dgv.RowsDefaultCellStyle = DataGridViewCellStyle18
256 256
         Me.彙總_dgv.RowTemplate.Height = 24
257 257
         Me.彙總_dgv.Size = New System.Drawing.Size(241, 961)
258 258
         Me.彙總_dgv.TabIndex = 1521
@@ -343,8 +343,8 @@ Partial Class 帳務彙總計算表
343 343
         '
344 344
         '彙總1_dgv
345 345
         '
346
-        DataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
347
-        Me.彙總1_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle4
346
+        DataGridViewCellStyle19.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
347
+        Me.彙總1_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle19
348 348
         Me.彙總1_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
349 349
             Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
350 350
         Me.彙總1_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
@@ -363,16 +363,16 @@ Partial Class 帳務彙總計算表
363 363
         Me.彙總2_dgv.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
364 364
         Me.彙總2_dgv.Name = "彙總2_dgv"
365 365
         Me.彙總2_dgv.RowHeadersWidth = 4
366
-        DataGridViewCellStyle5.Font = New System.Drawing.Font("新細明體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
367
-        Me.彙總2_dgv.RowsDefaultCellStyle = DataGridViewCellStyle5
366
+        DataGridViewCellStyle20.Font = New System.Drawing.Font("新細明體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
367
+        Me.彙總2_dgv.RowsDefaultCellStyle = DataGridViewCellStyle20
368 368
         Me.彙總2_dgv.RowTemplate.Height = 24
369 369
         Me.彙總2_dgv.Size = New System.Drawing.Size(512, 257)
370 370
         Me.彙總2_dgv.TabIndex = 1535
371 371
         '
372 372
         '客戶下_dgv
373 373
         '
374
-        DataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
375
-        Me.客戶下_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle6
374
+        DataGridViewCellStyle21.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
375
+        Me.客戶下_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle21
376 376
         Me.客戶下_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
377 377
             Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
378 378
         Me.客戶下_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
@@ -421,8 +421,8 @@ Partial Class 帳務彙總計算表
421 421
         '
422 422
         'LOG1_dgv
423 423
         '
424
-        DataGridViewCellStyle7.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
425
-        Me.LOG1_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle7
424
+        DataGridViewCellStyle22.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
425
+        Me.LOG1_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle22
426 426
         Me.LOG1_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
427 427
         Me.LOG1_dgv.Location = New System.Drawing.Point(6, 18)
428 428
         Me.LOG1_dgv.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
@@ -434,8 +434,8 @@ Partial Class 帳務彙總計算表
434 434
         '
435 435
         'LOG2_dgv
436 436
         '
437
-        DataGridViewCellStyle8.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
438
-        Me.LOG2_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle8
437
+        DataGridViewCellStyle23.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
438
+        Me.LOG2_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle23
439 439
         Me.LOG2_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
440 440
             Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
441 441
         Me.LOG2_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
@@ -503,8 +503,8 @@ Partial Class 帳務彙總計算表
503 503
         '
504 504
         '日期_dgv
505 505
         '
506
-        DataGridViewCellStyle9.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
507
-        Me.日期_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle9
506
+        DataGridViewCellStyle24.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
507
+        Me.日期_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle24
508 508
         Me.日期_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
509 509
             Or System.Windows.Forms.AnchorStyles.Left) _
510 510
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
@@ -796,8 +796,8 @@ Partial Class 帳務彙總計算表
796 796
         '
797 797
         '彙總3_dgv
798 798
         '
799
-        DataGridViewCellStyle10.BackColor = System.Drawing.Color.LightGoldenrodYellow
800
-        Me.彙總3_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle10
799
+        DataGridViewCellStyle25.BackColor = System.Drawing.Color.LightGoldenrodYellow
800
+        Me.彙總3_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle25
801 801
         Me.彙總3_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
802 802
             Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
803 803
         Me.彙總3_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
@@ -805,16 +805,16 @@ Partial Class 帳務彙總計算表
805 805
         Me.彙總3_dgv.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
806 806
         Me.彙總3_dgv.Name = "彙總3_dgv"
807 807
         Me.彙總3_dgv.RowHeadersWidth = 4
808
-        DataGridViewCellStyle11.Font = New System.Drawing.Font("新細明體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
809
-        Me.彙總3_dgv.RowsDefaultCellStyle = DataGridViewCellStyle11
808
+        DataGridViewCellStyle26.Font = New System.Drawing.Font("新細明體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
809
+        Me.彙總3_dgv.RowsDefaultCellStyle = DataGridViewCellStyle26
810 810
         Me.彙總3_dgv.RowTemplate.Height = 24
811 811
         Me.彙總3_dgv.Size = New System.Drawing.Size(512, 514)
812 812
         Me.彙總3_dgv.TabIndex = 1579
813 813
         '
814 814
         '彙總4_dgv
815 815
         '
816
-        DataGridViewCellStyle12.BackColor = System.Drawing.Color.LightGoldenrodYellow
817
-        Me.彙總4_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle12
816
+        DataGridViewCellStyle27.BackColor = System.Drawing.Color.LightGoldenrodYellow
817
+        Me.彙總4_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle27
818 818
         Me.彙總4_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
819 819
             Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
820 820
         Me.彙總4_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
@@ -917,16 +917,16 @@ Partial Class 帳務彙總計算表
917 917
         Me.客戶_dgv.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
918 918
         Me.客戶_dgv.Name = "客戶_dgv"
919 919
         Me.客戶_dgv.RowHeadersWidth = 4
920
-        DataGridViewCellStyle13.Font = New System.Drawing.Font("新細明體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
921
-        Me.客戶_dgv.RowsDefaultCellStyle = DataGridViewCellStyle13
920
+        DataGridViewCellStyle28.Font = New System.Drawing.Font("新細明體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
921
+        Me.客戶_dgv.RowsDefaultCellStyle = DataGridViewCellStyle28
922 922
         Me.客戶_dgv.RowTemplate.Height = 24
923 923
         Me.客戶_dgv.Size = New System.Drawing.Size(393, 257)
924 924
         Me.客戶_dgv.TabIndex = 1588
925 925
         '
926 926
         '彙總5_dgv
927 927
         '
928
-        DataGridViewCellStyle14.BackColor = System.Drawing.Color.LightCyan
929
-        Me.彙總5_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle14
928
+        DataGridViewCellStyle29.BackColor = System.Drawing.Color.LightCyan
929
+        Me.彙總5_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle29
930 930
         Me.彙總5_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
931 931
             Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
932 932
         Me.彙總5_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
@@ -934,8 +934,8 @@ Partial Class 帳務彙總計算表
934 934
         Me.彙總5_dgv.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
935 935
         Me.彙總5_dgv.Name = "彙總5_dgv"
936 936
         Me.彙總5_dgv.RowHeadersWidth = 4
937
-        DataGridViewCellStyle15.Font = New System.Drawing.Font("新細明體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
938
-        Me.彙總5_dgv.RowsDefaultCellStyle = DataGridViewCellStyle15
937
+        DataGridViewCellStyle30.Font = New System.Drawing.Font("新細明體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
938
+        Me.彙總5_dgv.RowsDefaultCellStyle = DataGridViewCellStyle30
939 939
         Me.彙總5_dgv.RowTemplate.Height = 24
940 940
         Me.彙總5_dgv.Size = New System.Drawing.Size(393, 514)
941 941
         Me.彙總5_dgv.TabIndex = 1589
@@ -966,7 +966,7 @@ Partial Class 帳務彙總計算表
966 966
         Me.L6.AutoSize = True
967 967
         Me.L6.Font = New System.Drawing.Font("微軟正黑體", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
968 968
         Me.L6.ForeColor = System.Drawing.Color.Green
969
-        Me.L6.Location = New System.Drawing.Point(880, 351)
969
+        Me.L6.Location = New System.Drawing.Point(1013, 351)
970 970
         Me.L6.Name = "L6"
971 971
         Me.L6.Size = New System.Drawing.Size(34, 17)
972 972
         Me.L6.TabIndex = 1593
@@ -975,7 +975,7 @@ Partial Class 帳務彙總計算表
975 975
         '合計_tb
976 976
         '
977 977
         Me.合計_tb.ForeColor = System.Drawing.Color.Green
978
-        Me.合計_tb.Location = New System.Drawing.Point(916, 348)
978
+        Me.合計_tb.Location = New System.Drawing.Point(1049, 348)
979 979
         Me.合計_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
980 980
         Me.合計_tb.Name = "合計_tb"
981 981
         Me.合計_tb.Size = New System.Drawing.Size(111, 23)
@@ -1285,7 +1285,7 @@ Partial Class 帳務彙總計算表
1285 1285
         '所得2_tb
1286 1286
         '
1287 1287
         Me.所得2_tb.ForeColor = System.Drawing.Color.Green
1288
-        Me.所得2_tb.Location = New System.Drawing.Point(1067, 348)
1288
+        Me.所得2_tb.Location = New System.Drawing.Point(915, 348)
1289 1289
         Me.所得2_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
1290 1290
         Me.所得2_tb.Name = "所得2_tb"
1291 1291
         Me.所得2_tb.Size = New System.Drawing.Size(95, 23)
@@ -1297,7 +1297,7 @@ Partial Class 帳務彙總計算表
1297 1297
         Me.Label7.AutoSize = True
1298 1298
         Me.Label7.Font = New System.Drawing.Font("微軟正黑體", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1299 1299
         Me.Label7.ForeColor = System.Drawing.Color.Green
1300
-        Me.Label7.Location = New System.Drawing.Point(1033, 351)
1300
+        Me.Label7.Location = New System.Drawing.Point(881, 351)
1301 1301
         Me.Label7.Name = "Label7"
1302 1302
         Me.Label7.Size = New System.Drawing.Size(34, 17)
1303 1303
         Me.Label7.TabIndex = 1626

+ 30
- 18
GA-ERP-SYS/報表系統管理/帳務彙總計算表.vb View File

@@ -48,7 +48,7 @@ Public Class 帳務彙總計算表
48 48
         流水帳_dgv.Columns(7).Visible = False : 流水帳_dgv.Columns(6).Visible = False : 流水帳_dgv.Columns("資料").Visible = False
49 49
         流水帳_dgv.Columns(0).Visible = False : 流水帳_dgv.Columns(1).Visible = False : 流水帳_dgv.Columns("同帳指定").Visible = False
50 50
         流水帳_dgv.Columns("網址").Visible = False : 流水帳_dgv.Columns("水差").Visible = False : 流水帳_dgv.Columns("所得另算").Visible = False
51
-
51
+        流水帳_dgv.Columns("總監").Visible = False
52 52
         流水帳_dgv.Columns("天帳").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
53 53
         流水帳_dgv.Columns("地帳").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
54 54
         流水帳_dgv.Columns("水差").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
@@ -175,7 +175,7 @@ Public Class 帳務彙總計算表
175 175
                     流水帳_dgv.Rows(i).Cells("個人所得1").Value = 流水帳_dgv.Rows(i).Cells("自已總輸贏").Value.ToString
176 176
                     流水帳_dgv.Rows(i).Cells("水差1").Value = 流水帳_dgv.Rows(i).Cells("水倍差").Value.ToString
177 177
                     If 流水帳_dgv.Rows(i).Cells("下行基數").Value.ToString = "總監" Then
178
-                        流水帳_dgv.Rows(i).Cells("地帳").Value = 流水帳_dgv.Rows(i).Cells("大股東").Value : 流水帳_dgv.Rows(i).Cells("地帳1").Value = 流水帳_dgv.Rows(i).Cells("大股東").Value
178
+                        流水帳_dgv.Rows(i).Cells("地帳").Value = 流水帳_dgv.Rows(i).Cells("總監").Value : 流水帳_dgv.Rows(i).Cells("地帳1").Value = 流水帳_dgv.Rows(i).Cells("總監").Value
179 179
                     ElseIf 流水帳_dgv.Rows(i).Cells("下行基數").Value.ToString = "大股東" Then
180 180
                         流水帳_dgv.Rows(i).Cells("地帳").Value = 流水帳_dgv.Rows(i).Cells("大股東").Value : 流水帳_dgv.Rows(i).Cells("地帳1").Value = 流水帳_dgv.Rows(i).Cells("大股東").Value
181 181
                     ElseIf 流水帳_dgv.Rows(i).Cells("下行基數").Value.ToString = "股東" Then
@@ -191,6 +191,8 @@ Public Class 帳務彙總計算表
191 191
                     End If
192 192
                     If 流水帳_dgv.Rows(i).Cells("上行基數").Value.ToString = "上缴金额" Then
193 193
                         流水帳_dgv.Rows(i).Cells("天帳").Value = 流水帳_dgv.Rows(i).Cells("上繳金額").Value : 流水帳_dgv.Rows(i).Cells("天帳1").Value = 流水帳_dgv.Rows(i).Cells("上繳金額").Value
194
+                    ElseIf 流水帳_dgv.Rows(i).Cells("上行基數").Value.ToString = "總監" Then
195
+                        流水帳_dgv.Rows(i).Cells("天帳").Value = 流水帳_dgv.Rows(i).Cells("總監").Value : 流水帳_dgv.Rows(i).Cells("天帳1").Value = 流水帳_dgv.Rows(i).Cells("總監").Value
194 196
                     ElseIf 流水帳_dgv.Rows(i).Cells("上行基數").Value.ToString = "大股東" Then
195 197
                         流水帳_dgv.Rows(i).Cells("天帳").Value = 流水帳_dgv.Rows(i).Cells("大股東").Value : 流水帳_dgv.Rows(i).Cells("天帳1").Value = 流水帳_dgv.Rows(i).Cells("大股東").Value
196 198
                     ElseIf 流水帳_dgv.Rows(i).Cells("上行基數").Value.ToString = "股東" Then
@@ -208,7 +210,7 @@ Public Class 帳務彙總計算表
208 210
                     流水帳_dgv.Rows(i).Cells("個人所得").Value = "0" : 流水帳_dgv.Rows(i).Cells("水差").Value = "0"
209 211
                     流水帳_dgv.Rows(i).Cells("個人所得1").Value = "0" : 流水帳_dgv.Rows(i).Cells("水差1").Value = "0"
210 212
                     If 流水帳_dgv.Rows(i).Cells("同帳指定").Value.ToString = "總監" Then
211
-                        流水帳_dgv.Rows(i).Cells("地帳").Value = 流水帳_dgv.Rows(i).Cells("大股東").Value : 流水帳_dgv.Rows(i).Cells("地帳1").Value = 流水帳_dgv.Rows(i).Cells("大股東").Value
213
+                        流水帳_dgv.Rows(i).Cells("地帳").Value = 流水帳_dgv.Rows(i).Cells("總監").Value : 流水帳_dgv.Rows(i).Cells("地帳1").Value = 流水帳_dgv.Rows(i).Cells("總監").Value
212 214
                     ElseIf 流水帳_dgv.Rows(i).Cells("同帳指定").Value.ToString = "大股東" Then
213 215
                         流水帳_dgv.Rows(i).Cells("地帳").Value = 流水帳_dgv.Rows(i).Cells("大股東").Value : 流水帳_dgv.Rows(i).Cells("地帳1").Value = 流水帳_dgv.Rows(i).Cells("大股東").Value
214 216
                     ElseIf 流水帳_dgv.Rows(i).Cells("同帳指定").Value.ToString = "股東" Then
@@ -224,6 +226,8 @@ Public Class 帳務彙總計算表
224 226
                     End If
225 227
                     If 流水帳_dgv.Rows(i).Cells("同帳指定").Value.ToString = "上缴金额" Then
226 228
                         流水帳_dgv.Rows(i).Cells("天帳").Value = 流水帳_dgv.Rows(i).Cells("上繳金額").Value : 流水帳_dgv.Rows(i).Cells("天帳1").Value = 流水帳_dgv.Rows(i).Cells("上繳金額").Value
229
+                    ElseIf 流水帳_dgv.Rows(i).Cells("同帳指定").Value.ToString = "總監" Then
230
+                        流水帳_dgv.Rows(i).Cells("天帳").Value = 流水帳_dgv.Rows(i).Cells("總監").Value : 流水帳_dgv.Rows(i).Cells("天帳1").Value = 流水帳_dgv.Rows(i).Cells("總監").Value
227 231
                     ElseIf 流水帳_dgv.Rows(i).Cells("同帳指定").Value.ToString = "大股東" Then
228 232
                         流水帳_dgv.Rows(i).Cells("天帳").Value = 流水帳_dgv.Rows(i).Cells("大股東").Value : 流水帳_dgv.Rows(i).Cells("天帳1").Value = 流水帳_dgv.Rows(i).Cells("大股東").Value
229 233
                     ElseIf 流水帳_dgv.Rows(i).Cells("同帳指定").Value.ToString = "股東" Then
@@ -522,22 +526,22 @@ Public Class 帳務彙總計算表
522 526
                        彙總5_dgv.Rows(i).Cells("客戶帳號").Value.ToString = 流水帳_dgv.Rows(ii).Cells("客帳").Value.ToString Then
523 527
                         If 彙總5_dgv.Rows(i).Cells("基數").Value.ToString = "總監" Then
524 528
                             If IsDBNull(流水帳_dgv.Rows(ii).Cells("總監小計s").Value) = True Then : 流水帳_dgv.Rows(ii).Cells("總監小計s").Value = "0" : End If
525
-                            彙總5_dgv.Rows(i).Cells("應收").Value = Val(彙總5_dgv.Rows(i).Cells("應收").Value) + Val(流水帳_dgv.Rows(ii).Cells("總監小計s").Value)
529
+                            彙總5_dgv.Rows(i).Cells("應收").Value = (Val(彙總5_dgv.Rows(i).Cells("應收").Value) + Val(流水帳_dgv.Rows(ii).Cells("總監小計s").Value)) * -1
526 530
                         ElseIf 彙總5_dgv.Rows(i).Cells("基數").Value.ToString = "大股東" Then
527 531
                             If IsDBNull(流水帳_dgv.Rows(ii).Cells("大股東小計s").Value) = True Then : 流水帳_dgv.Rows(ii).Cells("大股東小計s").Value = "0" : End If
528
-                            彙總5_dgv.Rows(i).Cells("應收").Value = Val(彙總5_dgv.Rows(i).Cells("應收").Value) + Val(流水帳_dgv.Rows(ii).Cells("大股東小計s").Value)
532
+                            彙總5_dgv.Rows(i).Cells("應收").Value = (Val(彙總5_dgv.Rows(i).Cells("應收").Value) + Val(流水帳_dgv.Rows(ii).Cells("大股東小計s").Value)) * -1
529 533
                         ElseIf 彙總5_dgv.Rows(i).Cells("基數").Value.ToString = "股東" Then
530 534
                             If IsDBNull(流水帳_dgv.Rows(ii).Cells("股東小計s").Value) = True Then : 流水帳_dgv.Rows(ii).Cells("股東小計s").Value = "0" : End If
531
-                            彙總5_dgv.Rows(i).Cells("應收").Value = Val(彙總5_dgv.Rows(i).Cells("應收").Value) + Val(流水帳_dgv.Rows(ii).Cells("股東小計s").Value)
535
+                            彙總5_dgv.Rows(i).Cells("應收").Value = (Val(彙總5_dgv.Rows(i).Cells("應收").Value) + Val(流水帳_dgv.Rows(ii).Cells("股東小計s").Value)) * -1
532 536
                         ElseIf 彙總5_dgv.Rows(i).Cells("基數").Value.ToString = "總代理" Then
533 537
                             If IsDBNull(流水帳_dgv.Rows(ii).Cells("總代理小計s").Value) = True Then : 流水帳_dgv.Rows(ii).Cells("總代理小計s").Value = "0" : End If
534
-                            彙總5_dgv.Rows(i).Cells("應收").Value = Val(彙總5_dgv.Rows(i).Cells("應收").Value) + Val(流水帳_dgv.Rows(ii).Cells("總代理小計s").Value)
538
+                            彙總5_dgv.Rows(i).Cells("應收").Value = (Val(彙總5_dgv.Rows(i).Cells("應收").Value) + Val(流水帳_dgv.Rows(ii).Cells("總代理小計s").Value)) * -1
535 539
                         ElseIf 彙總5_dgv.Rows(i).Cells("基數").Value.ToString = "代理" Then
536 540
                             If IsDBNull(流水帳_dgv.Rows(ii).Cells("代理小計s").Value) = True Then : 流水帳_dgv.Rows(ii).Cells("代理小計s").Value = "0" : End If
537
-                            彙總5_dgv.Rows(i).Cells("應收").Value = Val(彙總5_dgv.Rows(i).Cells("應收").Value) + Val(流水帳_dgv.Rows(ii).Cells("代理小計s").Value)
541
+                            彙總5_dgv.Rows(i).Cells("應收").Value = (Val(彙總5_dgv.Rows(i).Cells("應收").Value) + Val(流水帳_dgv.Rows(ii).Cells("代理小計s").Value)) * -1
538 542
                         ElseIf 彙總5_dgv.Rows(i).Cells("基數").Value.ToString = "會員" Then
539 543
                             If IsDBNull(流水帳_dgv.Rows(ii).Cells("客戶小計s").Value) = True Then : 流水帳_dgv.Rows(ii).Cells("客戶小計s").Value = "0" : End If
540
-                            彙總5_dgv.Rows(i).Cells("應收").Value = Val(彙總5_dgv.Rows(i).Cells("應收").Value) + Val(流水帳_dgv.Rows(ii).Cells("客戶小計s").Value)
544
+                            彙總5_dgv.Rows(i).Cells("應收").Value = (Val(彙總5_dgv.Rows(i).Cells("應收").Value) + Val(流水帳_dgv.Rows(ii).Cells("客戶小計s").Value)) * -1
541 545
                         End If
542 546
                         彙總5_dgv.Rows(i).Cells("個人所得").Value = Val(彙總5_dgv.Rows(i).Cells("個人所得").Value) + Val(流水帳_dgv.Rows(ii).Cells("所得另算").Value)
543 547
                     End If
@@ -547,22 +551,22 @@ Public Class 帳務彙總計算表
547 551
                        彙總5_dgv.Rows(i).Cells("客戶帳號").Value.ToString = 流水帳_dgv.Rows(ii).Cells("客帳").Value.ToString Then
548 552
                         If 彙總5_dgv.Rows(i).Cells("基數").Value.ToString = "總監" Then
549 553
                             If IsDBNull(流水帳_dgv.Rows(ii).Cells("總監").Value) = True Then : 流水帳_dgv.Rows(ii).Cells("總監").Value = "0" : End If
550
-                            彙總5_dgv.Rows(i).Cells("應收").Value = Val(彙總5_dgv.Rows(i).Cells("應收").Value) + Val(流水帳_dgv.Rows(ii).Cells("總監").Value)
554
+                            彙總5_dgv.Rows(i).Cells("應收").Value = (Val(彙總5_dgv.Rows(i).Cells("應收").Value) + Val(流水帳_dgv.Rows(ii).Cells("總監").Value)) * -1
551 555
                         ElseIf 彙總5_dgv.Rows(i).Cells("基數").Value.ToString = "大股東" Then
552 556
                             If IsDBNull(流水帳_dgv.Rows(ii).Cells("大股東").Value) = True Then : 流水帳_dgv.Rows(ii).Cells("大股東").Value = "0" : End If
553
-                            彙總5_dgv.Rows(i).Cells("應收").Value = Val(彙總5_dgv.Rows(i).Cells("應收").Value) + Val(流水帳_dgv.Rows(ii).Cells("大股東").Value)
557
+                            彙總5_dgv.Rows(i).Cells("應收").Value = (Val(彙總5_dgv.Rows(i).Cells("應收").Value) + Val(流水帳_dgv.Rows(ii).Cells("大股東").Value)) * -1
554 558
                         ElseIf 彙總5_dgv.Rows(i).Cells("基數").Value.ToString = "股東" Then
555 559
                             If IsDBNull(流水帳_dgv.Rows(ii).Cells("股東").Value) = True Then : 流水帳_dgv.Rows(ii).Cells("股東").Value = "0" : End If
556
-                            彙總5_dgv.Rows(i).Cells("應收").Value = Val(彙總5_dgv.Rows(i).Cells("應收").Value) + Val(流水帳_dgv.Rows(ii).Cells("股東").Value)
560
+                            彙總5_dgv.Rows(i).Cells("應收").Value = (Val(彙總5_dgv.Rows(i).Cells("應收").Value) + Val(流水帳_dgv.Rows(ii).Cells("股東").Value)) * -1
557 561
                         ElseIf 彙總5_dgv.Rows(i).Cells("基數").Value.ToString = "總代理" Then
558 562
                             If IsDBNull(流水帳_dgv.Rows(ii).Cells("總代理").Value) = True Then : 流水帳_dgv.Rows(ii).Cells("總代理").Value = "0" : End If
559
-                            彙總5_dgv.Rows(i).Cells("應收").Value = Val(彙總5_dgv.Rows(i).Cells("應收").Value) + Val(流水帳_dgv.Rows(ii).Cells("總代理").Value)
563
+                            彙總5_dgv.Rows(i).Cells("應收").Value = (Val(彙總5_dgv.Rows(i).Cells("應收").Value) + Val(流水帳_dgv.Rows(ii).Cells("總代理").Value)) * -1
560 564
                         ElseIf 彙總5_dgv.Rows(i).Cells("基數").Value.ToString = "代理" Then
561 565
                             If IsDBNull(流水帳_dgv.Rows(ii).Cells("代理").Value) = True Then : 流水帳_dgv.Rows(ii).Cells("代理").Value = "0" : End If
562
-                            彙總5_dgv.Rows(i).Cells("應收").Value = Val(彙總5_dgv.Rows(i).Cells("應收").Value) + Val(流水帳_dgv.Rows(ii).Cells("代理").Value)
566
+                            彙總5_dgv.Rows(i).Cells("應收").Value = (Val(彙總5_dgv.Rows(i).Cells("應收").Value) + Val(流水帳_dgv.Rows(ii).Cells("代理").Value)) * -1
563 567
                         ElseIf 彙總5_dgv.Rows(i).Cells("基數").Value.ToString = "會員" Then
564 568
                             If IsDBNull(流水帳_dgv.Rows(ii).Cells("會員").Value) = True Then : 流水帳_dgv.Rows(ii).Cells("會員").Value = "0" : End If
565
-                            彙總5_dgv.Rows(i).Cells("應收").Value = Val(彙總5_dgv.Rows(i).Cells("應收").Value) + Val(流水帳_dgv.Rows(ii).Cells("會員").Value)
569
+                            彙總5_dgv.Rows(i).Cells("應收").Value = (Val(彙總5_dgv.Rows(i).Cells("應收").Value) + Val(流水帳_dgv.Rows(ii).Cells("會員").Value)) * -1
566 570
                         End If
567 571
                         彙總5_dgv.Rows(i).Cells("個人所得").Value = Val(彙總5_dgv.Rows(i).Cells("個人所得").Value) + Val(流水帳_dgv.Rows(ii).Cells("所得另算").Value)
568 572
                     End If
@@ -667,7 +671,7 @@ Public Class 帳務彙總計算表
667 671
         End If
668 672
         MsgBox("讀取完成!!!")
669 673
     End Sub
670
-    Private Sub 流水帳查詢_Load(sender As Object, e As EventArgs) Handles MyBase.Load
674
+    Private Sub 帳務彙總計算表_Load(sender As Object, e As EventArgs) Handles MyBase.Load
671 675
         Me.MdiParent = GA_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True : GA_ERP_SYS.WindowState = 0
672 676
         天_ch.Checked = False : 周_ch.Checked = True : 月_ch.Checked = False : DA1_bt.Text = "上一週" : DA2_bt.Text = "本週" : DA3_bt.Text = "下一週"
673 677
         L50.Visible = False : 客戶下_dgv.Visible = False : L6.Visible = True : 流水帳_dgv.Visible = False : 彙總1_dgv.Visible = False
@@ -675,7 +679,7 @@ Public Class 帳務彙總計算表
675 679
         L1.Visible = True : L2.Visible = True : L3.Visible = True : L4.Visible = True : L5.Visible = True : 老闆_tb.Visible = True : 所得1_tb.Visible = True
676 680
         天帳1_tb.Visible = True : 地帳1_tb.Visible = True : 客戶_dgv.Visible = True : 彙總5_dgv.Visible = True : 客戶_tb.Visible = True : 合計_tb.Visible = True
677 681
     End Sub
678
-    Private Sub 流水帳查詢_Shown(sender As Object, e As EventArgs) Handles MyBase.Shown
682
+    Private Sub 帳務彙總計算表_Shown(sender As Object, e As EventArgs) Handles MyBase.Shown
679 683
         資料數 = 8
680 684
         If CC(8) = False Then : Delete_bT.Enabled = False : End If : MyModule1.進度條()
681 685
         If CC(19) = False Then : 進階控制_bt.Enabled = False : End If : MyModule1.進度條()
@@ -1170,7 +1174,10 @@ Public Class 帳務彙總計算表
1170 1174
     End Sub
1171 1175
     Private Sub 開網站_bt_Click(sender As Object, e As EventArgs) Handles 開網站_bt.Click
1172 1176
         If 網址_tb.Text <> "" Then
1173
-            Shell("Rundll32.exe url.dll, FileProtocolHandler http://" & 網址_tb.Text, vbNormalFocus)
1177
+            Dim fileName As String = "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
1178
+            Dim fullPath As String
1179
+            fullPath = Path.GetFullPath(fileName)
1180
+            Process.Start(fullPath, "--app= http://" & 網址_tb.Text)
1174 1181
             使用網址_ch.Checked = False : 網址_tb.Text = ""
1175 1182
         End If
1176 1183
     End Sub
@@ -1501,6 +1508,11 @@ Public Class 帳務彙總計算表
1501 1508
             End If
1502 1509
         End If
1503 1510
     End Sub
1511
+
1512
+    Private Sub 客戶_dgv_CellContentClick_1(sender As Object, e As DataGridViewCellEventArgs) Handles 客戶_dgv.CellContentClick
1513
+
1514
+    End Sub
1515
+
1504 1516
     Private Sub EXCEL位置1()
1505 1517
         If NN2 = 0 Then : 第一 = "H" : 第二 = "I" : ElseIf NN2 = 4 Then : 第一 = "L" : 第二 = "M" : ElseIf NN2 = 8 Then : 第一 = "P" : 第二 = "Q"
1506 1518
         ElseIf NN2 = 12 Then : 第一 = "T" : 第二 = "U" : ElseIf NN2 = 16 Then : 第一 = "X" : 第二 = "Y" : ElseIf NN2 = 20 Then : 第一 = "AB" : 第二 = "AC"

+ 106
- 14
GA-ERP-SYS/報表系統管理/帳務明細查詢表.Designer.vb View File

@@ -23,10 +23,11 @@ Partial Class 帳務明細查詢表
23 23
     <System.Diagnostics.DebuggerStepThrough()> _
24 24
     Private Sub InitializeComponent()
25 25
         Me.components = New System.ComponentModel.Container()
26
-        Dim DataGridViewCellStyle1 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27
-        Dim DataGridViewCellStyle2 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
28
-        Dim DataGridViewCellStyle3 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26
+        Dim DataGridViewCellStyle5 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27
+        Dim DataGridViewCellStyle6 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
28
+        Dim DataGridViewCellStyle7 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
29 29
         Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(帳務明細查詢表))
30
+        Dim DataGridViewCellStyle8 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
30 31
         Me.流水帳_dgv = New System.Windows.Forms.DataGridView()
31 32
         Me.客戶下_dgv = New System.Windows.Forms.DataGridView()
32 33
         Me.日期_dgv = New System.Windows.Forms.DataGridView()
@@ -75,20 +76,29 @@ Partial Class 帳務明細查詢表
75 76
         Me.批量存檔_bt = New System.Windows.Forms.Button()
76 77
         Me.開啟帳務彙總_bt = New System.Windows.Forms.Button()
77 78
         Me.列印_bt = New System.Windows.Forms.Button()
79
+        Me.Panel1 = New System.Windows.Forms.Panel()
80
+        Me.列印1_bt = New System.Windows.Forms.Button()
81
+        Me.所得彙總_dgv = New System.Windows.Forms.DataGridView()
82
+        Me.所得指定_cb = New System.Windows.Forms.ComboBox()
83
+        Me.Label10 = New System.Windows.Forms.Label()
84
+        Me.所得指定整合_bt = New System.Windows.Forms.Button()
78 85
         CType(Me.流水帳_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
79 86
         CType(Me.客戶下_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
80 87
         CType(Me.日期_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
81 88
         CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).BeginInit()
82 89
         CType(Me.字體_NUD, System.ComponentModel.ISupportInitialize).BeginInit()
90
+        Me.Panel1.SuspendLayout()
91
+        CType(Me.所得彙總_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
83 92
         Me.SuspendLayout()
84 93
         '
85 94
         '流水帳_dgv
86 95
         '
87
-        DataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(CType(CType(224, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(224, Byte), Integer))
88
-        Me.流水帳_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle1
96
+        DataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(CType(CType(224, Byte), Integer), CType(CType(224, Byte), Integer), CType(CType(224, Byte), Integer))
97
+        Me.流水帳_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle5
89 98
         Me.流水帳_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
90 99
             Or System.Windows.Forms.AnchorStyles.Left) _
91 100
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
101
+        Me.流水帳_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
92 102
         Me.流水帳_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
93 103
         Me.流水帳_dgv.Location = New System.Drawing.Point(4, 61)
94 104
         Me.流水帳_dgv.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
@@ -100,28 +110,28 @@ Partial Class 帳務明細查詢表
100 110
         '
101 111
         '客戶下_dgv
102 112
         '
103
-        DataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
104
-        Me.客戶下_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle2
113
+        DataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
114
+        Me.客戶下_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle6
105 115
         Me.客戶下_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
106
-        Me.客戶下_dgv.Location = New System.Drawing.Point(12, 538)
116
+        Me.客戶下_dgv.Location = New System.Drawing.Point(30, 75)
107 117
         Me.客戶下_dgv.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
108 118
         Me.客戶下_dgv.Name = "客戶下_dgv"
109 119
         Me.客戶下_dgv.RowHeadersWidth = 4
110 120
         Me.客戶下_dgv.RowTemplate.Height = 24
111
-        Me.客戶下_dgv.Size = New System.Drawing.Size(100, 100)
121
+        Me.客戶下_dgv.Size = New System.Drawing.Size(975, 406)
112 122
         Me.客戶下_dgv.TabIndex = 1537
113 123
         '
114 124
         '日期_dgv
115 125
         '
116
-        DataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
117
-        Me.日期_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle3
126
+        DataGridViewCellStyle7.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
127
+        Me.日期_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle7
118 128
         Me.日期_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
119
-        Me.日期_dgv.Location = New System.Drawing.Point(118, 538)
129
+        Me.日期_dgv.Location = New System.Drawing.Point(827, 514)
120 130
         Me.日期_dgv.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
121 131
         Me.日期_dgv.Name = "日期_dgv"
122 132
         Me.日期_dgv.RowHeadersWidth = 4
123 133
         Me.日期_dgv.RowTemplate.Height = 24
124
-        Me.日期_dgv.Size = New System.Drawing.Size(100, 100)
134
+        Me.日期_dgv.Size = New System.Drawing.Size(178, 100)
125 135
         Me.日期_dgv.TabIndex = 1550
126 136
         '
127 137
         'DA3_bt
@@ -593,11 +603,84 @@ Partial Class 帳務明細查詢表
593 603
         Me.列印_bt.Text = "列印資料"
594 604
         Me.列印_bt.UseVisualStyleBackColor = True
595 605
         '
606
+        'Panel1
607
+        '
608
+        Me.Panel1.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
609
+            Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
610
+        Me.Panel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
611
+        Me.Panel1.Controls.Add(Me.列印1_bt)
612
+        Me.Panel1.Controls.Add(Me.所得彙總_dgv)
613
+        Me.Panel1.Controls.Add(Me.所得指定_cb)
614
+        Me.Panel1.Controls.Add(Me.Label10)
615
+        Me.Panel1.Location = New System.Drawing.Point(415, 60)
616
+        Me.Panel1.Name = "Panel1"
617
+        Me.Panel1.Size = New System.Drawing.Size(241, 606)
618
+        Me.Panel1.TabIndex = 1653
619
+        '
620
+        '列印1_bt
621
+        '
622
+        Me.列印1_bt.ForeColor = System.Drawing.Color.Green
623
+        Me.列印1_bt.Location = New System.Drawing.Point(170, 3)
624
+        Me.列印1_bt.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
625
+        Me.列印1_bt.Name = "列印1_bt"
626
+        Me.列印1_bt.Size = New System.Drawing.Size(65, 26)
627
+        Me.列印1_bt.TabIndex = 1653
628
+        Me.列印1_bt.Text = "列印資料"
629
+        Me.列印1_bt.UseVisualStyleBackColor = True
630
+        '
631
+        '所得彙總_dgv
632
+        '
633
+        DataGridViewCellStyle8.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
634
+        Me.所得彙總_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle8
635
+        Me.所得彙總_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
636
+            Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
637
+        Me.所得彙總_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
638
+        Me.所得彙總_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
639
+        Me.所得彙總_dgv.Location = New System.Drawing.Point(3, 31)
640
+        Me.所得彙總_dgv.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
641
+        Me.所得彙總_dgv.Name = "所得彙總_dgv"
642
+        Me.所得彙總_dgv.RowHeadersWidth = 4
643
+        Me.所得彙總_dgv.RowTemplate.Height = 24
644
+        Me.所得彙總_dgv.Size = New System.Drawing.Size(231, 567)
645
+        Me.所得彙總_dgv.TabIndex = 1638
646
+        '
647
+        '所得指定_cb
648
+        '
649
+        Me.所得指定_cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
650
+        Me.所得指定_cb.FormattingEnabled = True
651
+        Me.所得指定_cb.Location = New System.Drawing.Point(61, 4)
652
+        Me.所得指定_cb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
653
+        Me.所得指定_cb.Name = "所得指定_cb"
654
+        Me.所得指定_cb.Size = New System.Drawing.Size(106, 24)
655
+        Me.所得指定_cb.TabIndex = 1636
656
+        '
657
+        'Label10
658
+        '
659
+        Me.Label10.AutoSize = True
660
+        Me.Label10.Location = New System.Drawing.Point(5, 8)
661
+        Me.Label10.Name = "Label10"
662
+        Me.Label10.Size = New System.Drawing.Size(56, 16)
663
+        Me.Label10.TabIndex = 1637
664
+        Me.Label10.Text = "所得指定"
665
+        '
666
+        '所得指定整合_bt
667
+        '
668
+        Me.所得指定整合_bt.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
669
+        Me.所得指定整合_bt.Location = New System.Drawing.Point(415, 33)
670
+        Me.所得指定整合_bt.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
671
+        Me.所得指定整合_bt.Name = "所得指定整合_bt"
672
+        Me.所得指定整合_bt.Size = New System.Drawing.Size(96, 26)
673
+        Me.所得指定整合_bt.TabIndex = 1654
674
+        Me.所得指定整合_bt.Text = "所得指定整合"
675
+        Me.所得指定整合_bt.UseVisualStyleBackColor = True
676
+        '
596 677
         '帳務明細查詢表
597 678
         '
598 679
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
599 680
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
600 681
         Me.ClientSize = New System.Drawing.Size(1181, 698)
682
+        Me.Controls.Add(Me.所得指定整合_bt)
683
+        Me.Controls.Add(Me.Panel1)
601 684
         Me.Controls.Add(Me.列印_bt)
602 685
         Me.Controls.Add(Me.開啟帳務彙總_bt)
603 686
         Me.Controls.Add(Me.批量存檔_bt)
@@ -635,7 +718,6 @@ Partial Class 帳務明細查詢表
635 718
         Me.Controls.Add(Me.天_ch)
636 719
         Me.Controls.Add(Me.資料_cb)
637 720
         Me.Controls.Add(Me.日期_dgv)
638
-        Me.Controls.Add(Me.客戶下_dgv)
639 721
         Me.Controls.Add(Me.PictureBox1)
640 722
         Me.Controls.Add(Me.Label1)
641 723
         Me.Controls.Add(Me.流水帳_dgv)
@@ -645,6 +727,7 @@ Partial Class 帳務明細查詢表
645 727
         Me.Controls.Add(Me.同帳_ch)
646 728
         Me.Controls.Add(Me.計算_ch)
647 729
         Me.Controls.Add(Me.Label9)
730
+        Me.Controls.Add(Me.客戶下_dgv)
648 731
         Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
649 732
         Me.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
650 733
         Me.Name = "帳務明細查詢表"
@@ -654,6 +737,9 @@ Partial Class 帳務明細查詢表
654 737
         CType(Me.日期_dgv, System.ComponentModel.ISupportInitialize).EndInit()
655 738
         CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).EndInit()
656 739
         CType(Me.字體_NUD, System.ComponentModel.ISupportInitialize).EndInit()
740
+        Me.Panel1.ResumeLayout(False)
741
+        Me.Panel1.PerformLayout()
742
+        CType(Me.所得彙總_dgv, System.ComponentModel.ISupportInitialize).EndInit()
657 743
         Me.ResumeLayout(False)
658 744
         Me.PerformLayout()
659 745
 
@@ -707,4 +793,10 @@ Partial Class 帳務明細查詢表
707 793
     Friend WithEvents 批量存檔_bt As Button
708 794
     Friend WithEvents 開啟帳務彙總_bt As Button
709 795
     Friend WithEvents 列印_bt As Button
796
+    Friend WithEvents Panel1 As Panel
797
+    Friend WithEvents 所得指定_cb As ComboBox
798
+    Friend WithEvents Label10 As Label
799
+    Friend WithEvents 所得彙總_dgv As DataGridView
800
+    Friend WithEvents 所得指定整合_bt As Button
801
+    Friend WithEvents 列印1_bt As Button
710 802
 End Class

+ 153
- 19
GA-ERP-SYS/報表系統管理/帳務明細查詢表.vb View File

@@ -10,11 +10,31 @@ Imports Microsoft.Office.Interop.Excel.XlThemeFont
10 10
 Imports Microsoft.Office.Interop.Excel.XlThemeColor
11 11
 Imports Microsoft.Office.Interop.Excel.XlWindowState
12 12
 Public Class 帳務明細查詢表
13
-    ReadOnly ds, ds4, ds7 As New DataSet : Private N1 As Integer
13
+    ReadOnly ds, ds1, ds4, ds7 As New DataSet : Private N1 As Integer : Private N2 As Integer
14 14
     Dim GP As Integer = 0 : Dim GPP As String : Dim 首次登入 As Boolean = True
15 15
     Dim xlApp As Microsoft.Office.Interop.Excel.Application
16 16
     Dim xlBook As Microsoft.Office.Interop.Excel.Workbook
17 17
     Dim xlSheet As Microsoft.Office.Interop.Excel.Worksheet
18
+    Private Sub Set_所得彙總()
19
+        所得彙總_dgv.DataSource = Nothing : ds1.Clear()
20
+        所得彙總_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
21
+        所得彙總_dgv.ColumnHeadersHeight = 25
22
+        所得彙總_dgv.AllowUserToAddRows = False
23
+        SQL_所得另算表()
24
+        da.Fill(ds1) : 所得彙總_dgv.DataSource = ds1.Tables(0) : conn.Close()
25
+        所得彙總_dgv.Columns("所得").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
26
+
27
+        For i As Integer = 0 To 所得彙總_dgv.Rows.Count - 1
28
+            所得彙總_dgv("所得", i).Value = "0"
29
+            For II As Integer = 0 To 流水帳_dgv.Rows.Count - 1
30
+                If 流水帳_dgv("所得指定", II).Value.ToString = 所得指定_cb.Text And 流水帳_dgv("所得", i).Value = True And
31
+                    流水帳_dgv("商品", II).Value.ToString = 所得彙總_dgv("商品", i).Value.ToString Then
32
+                    所得彙總_dgv("所得", i).Value = Val(所得彙總_dgv("所得", i).Value) + Val(流水帳_dgv("個人所得1", II).Value.ToString)
33
+                End If
34
+            Next
35
+            所得彙總_dgv.Rows(i).Cells("所得").Value = Strings.Format(Val(所得彙總_dgv.Rows(i).Cells("所得").Value), "#,##0")
36
+        Next
37
+    End Sub
18 38
     Private Sub Set_客戶下清單()
19 39
         客戶下_dgv.DataSource = Nothing : ds4.Clear()
20 40
         客戶下_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
@@ -68,12 +88,17 @@ Public Class 帳務明細查詢表
68 88
         流水帳_dgv.DataSource = Nothing : ds.Clear() : 流水帳_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
69 89
         流水帳_dgv.ColumnHeadersHeight = 25
70 90
         流水帳_dgv.AllowUserToAddRows = False
91
+        流水帳_dgv.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill
71 92
 
72
-        If 客戶_cb.Text = "" Then : PA32 = "%%" : Else : PA32 = 客戶_cb.Text : End If
93
+        If 客戶_cb.Text = "" Then
94
+            PA32 = " AND (流水帳.查看對帳s LIKE N'%%' OR 流水帳.查看對帳s IS NULL)"
95
+        Else
96
+            PA32 = " AND (流水帳.查看對帳s LIKE N'" & 客戶_cb.Text & "')"
97
+        End If
73 98
         SQL_帳務明細查詢表查詢()
74 99
         da.Fill(ds) : 流水帳_dgv.DataSource = ds.Tables(0) : conn.Close()
75 100
 
76
-        流水帳_dgv.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill
101
+        流水帳_dgv.EditMode = DataGridViewEditMode.EditOnEnter
77 102
         流水帳_dgv.Columns("客戶").FillWeight = 110 : 流水帳_dgv.Columns("商品").FillWeight = 70
78 103
         流水帳_dgv.Columns("老闆").FillWeight = 55 : 流水帳_dgv.Columns("帳戶").FillWeight = 70
79 104
         流水帳_dgv.Columns("計算").FillWeight = 50 : 流水帳_dgv.Columns("同帳").FillWeight = 50
@@ -83,7 +108,7 @@ Public Class 帳務明細查詢表
83 108
         流水帳_dgv.Columns(0).Visible = False : 流水帳_dgv.Columns(1).Visible = False : 流水帳_dgv.Columns("同帳指定").Visible = False
84 109
         流水帳_dgv.Columns("網址").Visible = False : 流水帳_dgv.Columns("所得另算").Visible = False : 流水帳_dgv.Columns("按鈕").Visible = False
85 110
         流水帳_dgv.Columns("index").Visible = False : 流水帳_dgv.Columns("下客流水").Visible = False
86
-
111
+        流水帳_dgv.Columns("總監").Visible = False
87 112
         For i As Integer = 0 To 67 : 流水帳_dgv.Columns(i).ReadOnly = True : Next
88 113
 
89 114
         流水帳_dgv.Columns("會員.").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
@@ -100,6 +125,7 @@ Public Class 帳務明細查詢表
100 125
             If IsDBNull(流水帳_dgv("同帳", i).Value) = True Then : 流水帳_dgv("同帳", i).Value = False : End If
101 126
             If IsDBNull(流水帳_dgv("計算", i).Value) = True Then : 流水帳_dgv("計算", i).Value = False : End If
102 127
             If IsDBNull(流水帳_dgv("所得", i).Value) = True Then : 流水帳_dgv("所得", i).Value = False : End If
128
+            流水帳_dgv("所得指定", i).Value = ""
103 129
         Next
104 130
         計算()
105 131
     End Sub
@@ -126,7 +152,9 @@ Public Class 帳務明細查詢表
126 152
                 If 流水帳_dgv("客戶帳號", i).Value.ToString = 客戶下_dgv("客戶帳號", ii).Value.ToString And 流水帳_dgv("網址", i).Value.ToString = 客戶下_dgv("網址", ii).Value.ToString Then
127 153
                     流水帳_dgv("客戶名稱", i).Value = 客戶下_dgv("客戶名稱", ii).Value.ToString : 流水帳_dgv("計算", i).Value = 客戶下_dgv("計算", ii).Value
128 154
                     流水帳_dgv("同帳", i).Value = 客戶下_dgv("同帳", ii).Value : 流水帳_dgv("同帳指定", i).Value = 客戶下_dgv("基數", ii).Value
129
-                    流水帳_dgv("所得", i).Value = 客戶下_dgv("所得", ii).Value : 流水帳_dgv("下客流水", i).Value = 客戶下_dgv("流水號", ii).Value : Exit For
155
+                    流水帳_dgv("所得", i).Value = 客戶下_dgv("所得", ii).Value : 流水帳_dgv("下客流水", i).Value = 客戶下_dgv("流水號", ii).Value
156
+                    流水帳_dgv("所得指定", i).Value = 客戶下_dgv("所得另算", ii).Value
157
+                    Exit For
130 158
                 Else
131 159
                     流水帳_dgv("客戶名稱", i).Value = "" : 流水帳_dgv("計算", i).Value = False : 流水帳_dgv("同帳", i).Value = False : 流水帳_dgv("所得", i).Value = False
132 160
                 End If
@@ -155,8 +183,8 @@ Public Class 帳務明細查詢表
155 183
                 Else : 流水帳_dgv.Rows(i).Cells("個人所得1").Value = 流水帳_dgv.Rows(i).Cells("自已總輸贏").Value.ToString : End If
156 184
                 If 流水帳_dgv.Rows(i).Cells("水倍差").Value.ToString = "" Then : 流水帳_dgv.Rows(i).Cells("水差1").Value = "0"
157 185
                 Else : 流水帳_dgv.Rows(i).Cells("水差1").Value = 流水帳_dgv.Rows(i).Cells("水倍差").Value.ToString : End If
158
-                If 流水帳_dgv.Rows(i).Cells("大股東").Value.ToString = "" Then : 流水帳_dgv.Rows(i).Cells("總監1").Value = "0"
159
-                Else : 流水帳_dgv.Rows(i).Cells("總監1").Value = 流水帳_dgv.Rows(i).Cells("大股東").Value.ToString : End If
186
+                If 流水帳_dgv.Rows(i).Cells("總監").Value.ToString = "" Then : 流水帳_dgv.Rows(i).Cells("總監1").Value = "0"
187
+                Else : 流水帳_dgv.Rows(i).Cells("總監1").Value = 流水帳_dgv.Rows(i).Cells("總監").Value.ToString : End If
160 188
                 If 流水帳_dgv.Rows(i).Cells("大股東").Value.ToString = "" Then : 流水帳_dgv.Rows(i).Cells("大股東1").Value = "0"
161 189
                 Else : 流水帳_dgv.Rows(i).Cells("大股東1").Value = 流水帳_dgv.Rows(i).Cells("大股東").Value.ToString : End If
162 190
                 If 流水帳_dgv.Rows(i).Cells("股東").Value.ToString = "" Then : 流水帳_dgv.Rows(i).Cells("股東1").Value = "0"
@@ -191,12 +219,13 @@ Public Class 帳務明細查詢表
191 219
                 流水帳_dgv.Rows(i).Cells("所得另算").Value = "0"
192 220
             End If
193 221
         Next
194
-        'Set_LOG1() : MyModule1.進度條() : Set_LOG2() : MyModule1.進度條() : Set_流水帳清單2() : MyModule1.進度條() : Set_流水帳清單3() : MyModule1.進度條() : Set_流水帳清單4() : MyModule1.進度條()
195
-        '首次顯示()
196 222
         GA_ERP_SYS.ToolStripProgressBar1.Value = 0 : 最終數 = 0
197 223
 
198 224
         資料數 = 流水帳_dgv.Rows.Count
199 225
         For i As Integer = 0 To 流水帳_dgv.Rows.Count - 1
226
+            If 流水帳_dgv("所得", i).Value = False Then
227
+                流水帳_dgv.Rows(i).Cells("個人所得").Value = "0"
228
+            End If
200 229
             If 流水帳_dgv("同帳", i).Value = True Then
201 230
                 If Strings.Left(流水帳_dgv.Rows(i).Cells("資料").Value, 2) = "短版" Or Strings.Left(流水帳_dgv.Rows(i).Cells("資料").Value, 2) = "短板" Then
202 231
                     If 流水帳_dgv.Rows(i).Cells("同帳指定").Value.ToString = "總監" Then
@@ -228,7 +257,7 @@ Public Class 帳務明細查詢表
228 257
                     If 流水帳_dgv.Rows(i).Cells("同帳指定").Value.ToString = "總監" Then
229 258
                         流水帳_dgv.Rows(i).Cells("會員.").Value = "0" : 流水帳_dgv.Rows(i).Cells("代理.").Value = "0" : 流水帳_dgv.Rows(i).Cells("總代理.").Value = "0"
230 259
                         流水帳_dgv.Rows(i).Cells("股東.").Value = "0" : 流水帳_dgv.Rows(i).Cells("大股東.").Value = "0"
231
-                        流水帳_dgv.Rows(i).Cells("總監.").Value = 流水帳_dgv.Rows(i).Cells("大股東").Value
260
+                        流水帳_dgv.Rows(i).Cells("總監.").Value = 流水帳_dgv.Rows(i).Cells("總監").Value
232 261
                     ElseIf 流水帳_dgv.Rows(i).Cells("同帳指定").Value.ToString = "大股東" Then
233 262
                         流水帳_dgv.Rows(i).Cells("會員.").Value = "0" : 流水帳_dgv.Rows(i).Cells("代理.").Value = "0" : 流水帳_dgv.Rows(i).Cells("總代理.").Value = "0"
234 263
                         流水帳_dgv.Rows(i).Cells("股東.").Value = "0" : 流水帳_dgv.Rows(i).Cells("大股東.").Value = 流水帳_dgv.Rows(i).Cells("大股東").Value
@@ -253,20 +282,22 @@ Public Class 帳務明細查詢表
253 282
                 End If
254 283
             End If
255 284
             MyModule1.進度條()
256
-            If IsDBNull(流水帳_dgv("查看對帳s", i).Value) = True Then
285
+            If IsDBNull(流水帳_dgv("查看對帳s", i).Value) = True Or IsDBNull(流水帳_dgv("下注明細s", i).Value) = True Then
257 286
                 PA38 = 流水帳_dgv("客戶名稱", i).Value : PA37 = 流水帳_dgv("index", i).Value : PA36 = 流水帳_dgv("開始日期", i).Value
258 287
                 PA35 = 流水帳_dgv("結束日期", i).Value : PA34 = 流水帳_dgv("網址", i).Value : PA33 = 流水帳_dgv("帳戶", i).Value
288
+                PA32 = 流水帳_dgv("所得指定", i).Value
259 289
                 SQL_帳務明細查詢表客戶寫入()
260
-            ElseIf 流水帳_dgv("查看對帳s", i).Value = "查看" Or 流水帳_dgv("查看對帳s", i).Value = "" Then
290
+            ElseIf 流水帳_dgv("查看對帳s", i).Value = "查看" Or 流水帳_dgv("查看對帳s", i).Value = "" Or 流水帳_dgv("下注明細s", i).Value = "查看" Or 流水帳_dgv("下注明細s", i).Value = "" Then
261 291
                 PA38 = 流水帳_dgv("客戶名稱", i).Value : PA37 = 流水帳_dgv("index", i).Value : PA36 = 流水帳_dgv("開始日期", i).Value
262 292
                 PA35 = 流水帳_dgv("結束日期", i).Value : PA34 = 流水帳_dgv("網址", i).Value : PA33 = 流水帳_dgv("帳戶", i).Value
293
+                PA32 = 流水帳_dgv("所得指定", i).Value
263 294
                 SQL_帳務明細查詢表客戶寫入()
264 295
             End If
265 296
         Next : GA_ERP_SYS.ToolStripProgressBar1.Value = 0 : 最終數 = 0
266 297
     End Sub
267 298
     Private Sub 帳務明細查詢表_Load(sender As Object, e As EventArgs) Handles MyBase.Load
268 299
         Me.MdiParent = GA_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True : GA_ERP_SYS.WindowState = 0
269
-        日期_dgv.Visible = False : 客戶下_dgv.Visible = False : PictureBox1.BringToFront()
300
+        日期_dgv.Visible = False : 客戶下_dgv.Visible = False : PictureBox1.BringToFront() : Panel1.Visible = False
270 301
         天_ch.Checked = False : 周_ch.Checked = True : 月_ch.Checked = False
271 302
         DA1_bt.Text = "上一週" : DA2_bt.Text = "本週" : DA3_bt.Text = "下一週"
272 303
     End Sub
@@ -277,6 +308,7 @@ Public Class 帳務明細查詢表
277 308
         SQL_流水帳上繳_明細用() : 老闆_cb.Items.Clear() : 老闆_cb.Items.Add("") : While (dr.Read()) : 老闆_cb.Items.Add(dr("上繳源")) : End While : conn.Close()
278 309
         If 老闆_cb.Text = "" Then : PA39 = "%%" : Else : PA39 = 老闆_cb.Text : End If
279 310
         SQL_流水帳客戶_明細用() : 客戶_cb.Items.Clear() : 客戶_cb.Items.Add("") : While (dr.Read()) : 客戶_cb.Items.Add(dr("客名")) : End While : conn.Close()
311
+        SQL_客戶下所得名稱清單() : 所得指定_cb.Items.Clear() : While (dr.Read()) : 所得指定_cb.Items.Add(dr("所得另算")) : End While : conn.Close()
280 312
         首次登入 = False
281 313
     End Sub
282 314
     Private Sub 帳務明細查詢表_SizeChanged(sender As Object, e As EventArgs) Handles MyBase.SizeChanged
@@ -309,6 +341,11 @@ Public Class 帳務明細查詢表
309 341
             e.CellStyle.ForeColor = Color.Red
310 342
         End If
311 343
     End Sub
344
+    Private Sub 所得彙總_dgv_CellFormatting(sender As Object, e As DataGridViewCellFormattingEventArgs) Handles 所得彙總_dgv.CellFormatting
345
+        If IsNumeric(Val(e.Value.ToString)) = True And Val(e.Value.ToString) < 0 Then
346
+            e.CellStyle.ForeColor = Color.Red
347
+        End If
348
+    End Sub
312 349
     Private Sub 流水帳_dgv_CellClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles 流水帳_dgv.CellMouseClick
313 350
         Dim YY As Integer
314 351
         If 流水帳_dgv.SelectedCells.Count = 1 Then
@@ -350,8 +387,8 @@ Public Class 帳務明細查詢表
350 387
                 Else : 流水帳_dgv.Rows(YY).Cells("個人所得1").Value = 流水帳_dgv.Rows(YY).Cells("自已總輸贏").Value.ToString : End If
351 388
                 If 流水帳_dgv.Rows(YY).Cells("水倍差").Value.ToString = "" Then : 流水帳_dgv.Rows(YY).Cells("水差1").Value = "0"
352 389
                 Else : 流水帳_dgv.Rows(YY).Cells("水差1").Value = 流水帳_dgv.Rows(YY).Cells("水倍差").Value.ToString : End If
353
-                If 流水帳_dgv.Rows(YY).Cells("大股東").Value.ToString = "" Then : 流水帳_dgv.Rows(YY).Cells("總監1").Value = "0"
354
-                Else : 流水帳_dgv.Rows(YY).Cells("總監1").Value = 流水帳_dgv.Rows(YY).Cells("大股東").Value.ToString : End If
390
+                If 流水帳_dgv.Rows(YY).Cells("總監").Value.ToString = "" Then : 流水帳_dgv.Rows(YY).Cells("總監1").Value = "0"
391
+                Else : 流水帳_dgv.Rows(YY).Cells("總監1").Value = 流水帳_dgv.Rows(YY).Cells("總監").Value.ToString : End If
355 392
                 If 流水帳_dgv.Rows(YY).Cells("大股東").Value.ToString = "" Then : 流水帳_dgv.Rows(YY).Cells("大股東1").Value = "0"
356 393
                 Else : 流水帳_dgv.Rows(YY).Cells("大股東1").Value = 流水帳_dgv.Rows(YY).Cells("大股東").Value.ToString : End If
357 394
                 If 流水帳_dgv.Rows(YY).Cells("股東").Value.ToString = "" Then : 流水帳_dgv.Rows(YY).Cells("股東1").Value = "0"
@@ -416,7 +453,7 @@ Public Class 帳務明細查詢表
416 453
                     If 流水帳_dgv.Rows(YY).Cells("同帳指定").Value.ToString = "總監" Then
417 454
                         流水帳_dgv.Rows(YY).Cells("會員.").Value = "0" : 流水帳_dgv.Rows(YY).Cells("代理.").Value = "0" : 流水帳_dgv.Rows(YY).Cells("總代理.").Value = "0"
418 455
                         流水帳_dgv.Rows(YY).Cells("股東.").Value = "0" : 流水帳_dgv.Rows(YY).Cells("大股東.").Value = "0"
419
-                        流水帳_dgv.Rows(YY).Cells("總監.").Value = 流水帳_dgv.Rows(YY).Cells("大股東").Value
456
+                        流水帳_dgv.Rows(YY).Cells("總監.").Value = 流水帳_dgv.Rows(YY).Cells("總監").Value
420 457
                     ElseIf 流水帳_dgv.Rows(YY).Cells("同帳指定").Value.ToString = "大股東" Then
421 458
                         流水帳_dgv.Rows(YY).Cells("會員.").Value = "0" : 流水帳_dgv.Rows(YY).Cells("代理.").Value = "0" : 流水帳_dgv.Rows(YY).Cells("總代理.").Value = "0"
422 459
                         流水帳_dgv.Rows(YY).Cells("股東.").Value = "0" : 流水帳_dgv.Rows(YY).Cells("大股東.").Value = 流水帳_dgv.Rows(YY).Cells("大股東").Value
@@ -751,8 +788,8 @@ Public Class 帳務明細查詢表
751 788
                 Else : 流水帳_dgv.Rows(i).Cells("個人所得1").Value = 流水帳_dgv.Rows(i).Cells("自已總輸贏").Value.ToString : End If
752 789
                 If 流水帳_dgv.Rows(i).Cells("水倍差").Value.ToString = "" Then : 流水帳_dgv.Rows(i).Cells("水差1").Value = "0"
753 790
                 Else : 流水帳_dgv.Rows(i).Cells("水差1").Value = 流水帳_dgv.Rows(i).Cells("水倍差").Value.ToString : End If
754
-                If 流水帳_dgv.Rows(i).Cells("大股東").Value.ToString = "" Then : 流水帳_dgv.Rows(i).Cells("總監1").Value = "0"
755
-                Else : 流水帳_dgv.Rows(i).Cells("總監1").Value = 流水帳_dgv.Rows(i).Cells("大股東").Value.ToString : End If
791
+                If 流水帳_dgv.Rows(i).Cells("總監").Value.ToString = "" Then : 流水帳_dgv.Rows(i).Cells("總監1").Value = "0"
792
+                Else : 流水帳_dgv.Rows(i).Cells("總監1").Value = 流水帳_dgv.Rows(i).Cells("總監").Value.ToString : End If
756 793
                 If 流水帳_dgv.Rows(i).Cells("大股東").Value.ToString = "" Then : 流水帳_dgv.Rows(i).Cells("大股東1").Value = "0"
757 794
                 Else : 流水帳_dgv.Rows(i).Cells("大股東1").Value = 流水帳_dgv.Rows(i).Cells("大股東").Value.ToString : End If
758 795
                 If 流水帳_dgv.Rows(i).Cells("股東").Value.ToString = "" Then : 流水帳_dgv.Rows(i).Cells("股東1").Value = "0"
@@ -817,7 +854,7 @@ Public Class 帳務明細查詢表
817 854
                     If 流水帳_dgv.Rows(i).Cells("同帳指定").Value.ToString = "總監" Then
818 855
                         流水帳_dgv.Rows(i).Cells("會員.").Value = "0" : 流水帳_dgv.Rows(i).Cells("代理.").Value = "0" : 流水帳_dgv.Rows(i).Cells("總代理.").Value = "0"
819 856
                         流水帳_dgv.Rows(i).Cells("股東.").Value = "0" : 流水帳_dgv.Rows(i).Cells("大股東.").Value = "0"
820
-                        流水帳_dgv.Rows(i).Cells("總監.").Value = 流水帳_dgv.Rows(i).Cells("大股東").Value
857
+                        流水帳_dgv.Rows(i).Cells("總監.").Value = 流水帳_dgv.Rows(i).Cells("總監").Value
821 858
                     ElseIf 流水帳_dgv.Rows(i).Cells("同帳指定").Value.ToString = "大股東" Then
822 859
                         流水帳_dgv.Rows(i).Cells("會員.").Value = "0" : 流水帳_dgv.Rows(i).Cells("代理.").Value = "0" : 流水帳_dgv.Rows(i).Cells("總代理.").Value = "0"
823 860
                         流水帳_dgv.Rows(i).Cells("股東.").Value = "0" : 流水帳_dgv.Rows(i).Cells("大股東.").Value = 流水帳_dgv.Rows(i).Cells("大股東").Value
@@ -904,10 +941,70 @@ Public Class 帳務明細查詢表
904 941
             For i As Integer = 0 To 流水帳_dgv.Rows.Count - 1
905 942
                 MyModule1.進度條()
906 943
                 PA = 流水帳_dgv("下客流水", i).Value.ToString : BL1 = 流水帳_dgv("計算", i).Value : BL2 = 流水帳_dgv("同帳", i).Value : BL3 = 流水帳_dgv("所得", i).Value
944
+                PA1 = 流水帳_dgv("所得指定", i).Value.ToString
907 945
                 SQL_系統編碼規則_客戶下批改()
908 946
             Next : GA_ERP_SYS.ToolStripProgressBar1.Value = 0 : 最終數 = 0 : MsgBox("批量存檔完成!!!")
947
+            SQL_客戶下所得名稱清單() : 所得指定_cb.Items.Clear() : While (dr.Read()) : 所得指定_cb.Items.Add(dr("所得另算")) : End While : conn.Close()
909 948
         End If : conn.Close() : PA = ""
910 949
     End Sub
950
+    Private Sub 所得指定整合_bt_Click(sender As Object, e As EventArgs) Handles 所得指定整合_bt.Click
951
+        If Panel1.Visible = False Then : Panel1.Visible = True : Else : Panel1.Visible = False : End If : Set_所得彙總()
952
+    End Sub
953
+    Private Sub 所得指定_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 所得指定_cb.SelectedIndexChanged
954
+        Set_所得彙總()
955
+    End Sub
956
+    Private Sub 列印1_bt_Click(sender As Object, e As EventArgs) Handles 列印1_bt.Click
957
+        xlApp = CType(CreateObject("Excel.Application"), Microsoft.Office.Interop.Excel.Application)
958
+        xlBook = xlApp.Workbooks.Add
959
+        xlApp.DisplayAlerts = True
960
+        xlApp.Visible = True
961
+        xlApp.Application.WindowState = xlMaximized
962
+        N1 = 0 : N2 = 0
963
+        If 所得指定_cb.Items.Count = 0 Then
964
+            Set_所得彙總()
965
+            xlSheet = NewMethod(xlBook)
966
+            If 所得指定_cb.Text = "" Then
967
+                xlApp.Sheets(1).Name = "未指定所得"
968
+            Else
969
+                xlApp.Sheets(1).Name = 所得指定_cb.Text
970
+            End If
971
+            xlBook.Activate() : xlSheet.Activate()
972
+            xlSheet.Cells(1, 1) = 所得指定_cb.Text
973
+            xlSheet.Cells(2, 1) = "商品" : xlSheet.Cells(2, 2) = "所得"
974
+            For II As Integer = 0 To 所得彙總_dgv.Rows.Count - 1
975
+                xlSheet.Cells(3 + II, 1) = 所得彙總_dgv.Rows(II).Cells("商品").Value : xlSheet.Cells(3 + II, 2) = 所得彙總_dgv.Rows(II).Cells("所得").Value
976
+                N1 = II
977
+            Next
978
+            N2 = 1
979
+            所得格式(xlApp, xlSheet)
980
+        Else
981
+            For i As Integer = 0 To 所得指定_cb.Items.Count - 1
982
+                所得指定_cb.SelectedIndex = i
983
+                xlSheet = NewMethod(xlBook)
984
+                If 所得指定_cb.Text = "" Then
985
+                    xlApp.Sheets(1).Name = "未指定所得"
986
+                Else
987
+                    xlApp.Sheets(1).Name = 所得指定_cb.Text
988
+                End If
989
+                xlBook.Activate() : xlSheet.Activate()
990
+                xlSheet.Cells(1, 1) = 所得指定_cb.Text
991
+                xlSheet.Cells(2, 1) = "商品" : xlSheet.Cells(2, 2) = "所得"
992
+                For II As Integer = 0 To 所得彙總_dgv.Rows.Count - 1
993
+                    xlSheet.Cells(3 + II, 1) = 所得彙總_dgv.Rows(II).Cells("商品").Value : xlSheet.Cells(3 + II, 2) = 所得彙總_dgv.Rows(II).Cells("所得").Value
994
+                    N1 = II
995
+                Next
996
+                N2 = i + 1
997
+                所得格式(xlApp, xlSheet)
998
+            Next
999
+        End If
1000
+
1001
+        xlApp.Sheets(N2 + 1).Delete
1002
+        xlSheet.PageSetup.PrintArea = ""
1003
+        xlApp.Cells.Select()
1004
+        xlSheet.Range("B1").Select()
1005
+        xlApp.Application.WindowState = xlMinimized
1006
+        MsgBox("列印完成")
1007
+    End Sub
911 1008
     Private Sub 列印_bt_Click(sender As Object, e As EventArgs) Handles 列印_bt.Click
912 1009
         xlApp = CType(CreateObject("Excel.Application"), Microsoft.Office.Interop.Excel.Application)
913 1010
         xlBook = xlApp.Workbooks.Add
@@ -986,4 +1083,41 @@ Public Class 帳務明細查詢表
986 1083
 
987 1084
         xlSheet.Rows("3:3").Select : myExcel.ActiveWindow.FreezePanes = True
988 1085
     End Sub
1086
+    Private Sub 所得格式(ByVal myExcel As Microsoft.Office.Interop.Excel.Application, ByVal xlSheet As Microsoft.Office.Interop.Excel.Worksheet)
1087
+        xlSheet.Cells.Select()
1088
+        With myExcel.Selection.Font : .Name = "微軟正黑體" : .Size = 12 : .Strikethrough = False : .Superscript = False : .Subscript = False : .OutlineFont = False
1089
+            .Shadow = False : .Underline = xlUnderlineStyleNone : .ThemeColor = xlThemeColorLight1 : .TintAndShade = 0 : .ThemeFont = xlThemeFontNone : End With
1090
+
1091
+        xlSheet.Columns("A:B").Select : myExcel.Columns("A:B").EntireColumn.AutoFit
1092
+
1093
+        xlSheet.Range("A1:B1").Select()
1094
+        With myExcel.Selection : .HorizontalAlignment = xlCenter : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False
1095
+            .IndentLevel = 0 : .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False : End With : myExcel.Selection.Merge
1096
+
1097
+        xlSheet.Range("A1:B" & N1 + 3).Select()
1098
+        myExcel.Selection.Borders(xlDiagonalDown).LineStyle = xlNone : myExcel.Selection.Borders(xlDiagonalUp).LineStyle = xlNone
1099
+        With myExcel.Selection.Borders(xlEdgeLeft) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
1100
+        With myExcel.Selection.Borders(xlEdgeTop) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
1101
+        With myExcel.Selection.Borders(xlEdgeBottom) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
1102
+        With myExcel.Selection.Borders(xlEdgeRight) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
1103
+        With myExcel.Selection.Borders(xlInsideVertical) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
1104
+        With myExcel.Selection.Borders(xlInsideHorizontal) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
1105
+
1106
+        xlSheet.Range("A1:B1").Select()
1107
+        With myExcel.Selection.Interior : .Pattern = xlSolid : .PatternColorIndex = xlAutomatic : .ThemeColor = xlThemeColorAccent2 : .TintAndShade = 0.399975585192419
1108
+            .PatternTintAndShade = 0 : End With
1109
+
1110
+        myExcel.ActiveWindow.DisplayGridlines = False
1111
+
1112
+        xlSheet.Columns("A:A").Select
1113
+        With myExcel.Selection : .HorizontalAlignment = xlCenter : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False
1114
+            .IndentLevel = 0 : .ShrinkToFit = False : .ReadingOrder = xlContext
1115
+        End With
1116
+        xlSheet.Columns("B:B").Select
1117
+        myExcel.Selection.NumberFormatLocal = "#,##0;[紅色]-#,##0"
1118
+        With myExcel.Selection : .HorizontalAlignment = xlRight : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False
1119
+            .IndentLevel = 0 : .ShrinkToFit = False : .ReadingOrder = xlContext
1120
+        End With
1121
+        xlSheet.Range("D1").Select()
1122
+    End Sub
989 1123
 End Class

+ 305
- 0
GA-ERP-SYS/特殊操作功能/錯誤排除手冊.Designer.vb View File

@@ -0,0 +1,305 @@
1
+<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
2
+Partial Class 錯誤排除手冊
3
+    Inherits System.Windows.Forms.Form
4
+
5
+    'Form 覆寫 Dispose 以清除元件清單。
6
+    <System.Diagnostics.DebuggerNonUserCode()> _
7
+    Protected Overrides Sub Dispose(ByVal disposing As Boolean)
8
+        Try
9
+            If disposing AndAlso components IsNot Nothing Then
10
+                components.Dispose()
11
+            End If
12
+        Finally
13
+            MyBase.Dispose(disposing)
14
+        End Try
15
+    End Sub
16
+
17
+    '為 Windows Form 設計工具的必要項
18
+    Private components As System.ComponentModel.IContainer
19
+
20
+    '注意: 以下為 Windows Form 設計工具所需的程序
21
+    '可以使用 Windows Form 設計工具進行修改。
22
+    '請勿使用程式碼編輯器進行修改。
23
+    <System.Diagnostics.DebuggerStepThrough()> _
24
+    Private Sub InitializeComponent()
25
+        Me.TabControl1 = New System.Windows.Forms.TabControl()
26
+        Me.TabPage1 = New System.Windows.Forms.TabPage()
27
+        Me.PictureBox5 = New System.Windows.Forms.PictureBox()
28
+        Me.PictureBox4 = New System.Windows.Forms.PictureBox()
29
+        Me.Label6 = New System.Windows.Forms.Label()
30
+        Me.Label5 = New System.Windows.Forms.Label()
31
+        Me.PictureBox3 = New System.Windows.Forms.PictureBox()
32
+        Me.Label3 = New System.Windows.Forms.Label()
33
+        Me.Button2 = New System.Windows.Forms.Button()
34
+        Me.TextBox2 = New System.Windows.Forms.TextBox()
35
+        Me.Label4 = New System.Windows.Forms.Label()
36
+        Me.PictureBox2 = New System.Windows.Forms.PictureBox()
37
+        Me.TextBox1 = New System.Windows.Forms.TextBox()
38
+        Me.Button1 = New System.Windows.Forms.Button()
39
+        Me.Label2 = New System.Windows.Forms.Label()
40
+        Me.PictureBox1 = New System.Windows.Forms.PictureBox()
41
+        Me.Label1 = New System.Windows.Forms.Label()
42
+        Me.TabPage2 = New System.Windows.Forms.TabPage()
43
+        Me.Panel1 = New System.Windows.Forms.Panel()
44
+        Me.TabControl1.SuspendLayout()
45
+        Me.TabPage1.SuspendLayout()
46
+        CType(Me.PictureBox5, System.ComponentModel.ISupportInitialize).BeginInit()
47
+        CType(Me.PictureBox4, System.ComponentModel.ISupportInitialize).BeginInit()
48
+        CType(Me.PictureBox3, System.ComponentModel.ISupportInitialize).BeginInit()
49
+        CType(Me.PictureBox2, System.ComponentModel.ISupportInitialize).BeginInit()
50
+        CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).BeginInit()
51
+        Me.TabPage2.SuspendLayout()
52
+        Me.SuspendLayout()
53
+        '
54
+        'TabControl1
55
+        '
56
+        Me.TabControl1.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
57
+            Or System.Windows.Forms.AnchorStyles.Left) _
58
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
59
+        Me.TabControl1.Controls.Add(Me.TabPage1)
60
+        Me.TabControl1.Controls.Add(Me.TabPage2)
61
+        Me.TabControl1.Location = New System.Drawing.Point(2, 2)
62
+        Me.TabControl1.Multiline = True
63
+        Me.TabControl1.Name = "TabControl1"
64
+        Me.TabControl1.SelectedIndex = 0
65
+        Me.TabControl1.Size = New System.Drawing.Size(1125, 596)
66
+        Me.TabControl1.TabIndex = 0
67
+        '
68
+        'TabPage1
69
+        '
70
+        Me.TabPage1.AutoScroll = True
71
+        Me.TabPage1.Controls.Add(Me.PictureBox5)
72
+        Me.TabPage1.Controls.Add(Me.PictureBox4)
73
+        Me.TabPage1.Controls.Add(Me.Label6)
74
+        Me.TabPage1.Controls.Add(Me.Label5)
75
+        Me.TabPage1.Controls.Add(Me.PictureBox3)
76
+        Me.TabPage1.Controls.Add(Me.Label3)
77
+        Me.TabPage1.Controls.Add(Me.Button2)
78
+        Me.TabPage1.Controls.Add(Me.TextBox2)
79
+        Me.TabPage1.Controls.Add(Me.Label4)
80
+        Me.TabPage1.Controls.Add(Me.PictureBox2)
81
+        Me.TabPage1.Controls.Add(Me.TextBox1)
82
+        Me.TabPage1.Controls.Add(Me.Button1)
83
+        Me.TabPage1.Controls.Add(Me.Label2)
84
+        Me.TabPage1.Controls.Add(Me.PictureBox1)
85
+        Me.TabPage1.Controls.Add(Me.Label1)
86
+        Me.TabPage1.Location = New System.Drawing.Point(4, 25)
87
+        Me.TabPage1.Name = "TabPage1"
88
+        Me.TabPage1.Padding = New System.Windows.Forms.Padding(3)
89
+        Me.TabPage1.Size = New System.Drawing.Size(1117, 567)
90
+        Me.TabPage1.TabIndex = 0
91
+        Me.TabPage1.Text = "網路DRIVER錯誤"
92
+        Me.TabPage1.UseVisualStyleBackColor = True
93
+        '
94
+        'PictureBox5
95
+        '
96
+        Me.PictureBox5.BackgroundImage = Global.GA_ERP_SYS.My.Resources.Resources._00aa2ad767a242ddc3099a90a5c7edb
97
+        Me.PictureBox5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom
98
+        Me.PictureBox5.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
99
+        Me.PictureBox5.Location = New System.Drawing.Point(502, 682)
100
+        Me.PictureBox5.Name = "PictureBox5"
101
+        Me.PictureBox5.Size = New System.Drawing.Size(476, 390)
102
+        Me.PictureBox5.TabIndex = 15
103
+        Me.PictureBox5.TabStop = False
104
+        '
105
+        'PictureBox4
106
+        '
107
+        Me.PictureBox4.BackgroundImage = Global.GA_ERP_SYS.My.Resources.Resources._125425789654
108
+        Me.PictureBox4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom
109
+        Me.PictureBox4.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
110
+        Me.PictureBox4.Location = New System.Drawing.Point(29, 682)
111
+        Me.PictureBox4.Name = "PictureBox4"
112
+        Me.PictureBox4.Size = New System.Drawing.Size(472, 390)
113
+        Me.PictureBox4.TabIndex = 14
114
+        Me.PictureBox4.TabStop = False
115
+        '
116
+        'Label6
117
+        '
118
+        Me.Label6.AutoSize = True
119
+        Me.Label6.ForeColor = System.Drawing.Color.Red
120
+        Me.Label6.Location = New System.Drawing.Point(26, 647)
121
+        Me.Label6.Name = "Label6"
122
+        Me.Label6.Size = New System.Drawing.Size(558, 32)
123
+        Me.Label6.TabIndex = 13
124
+        Me.Label6.Text = "3,下載解壓chromedriver,再將檔案複製貼到系統安裝目錄中,覆蓋掉之前的那個檔案即可完成更新。" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "       a、你可以在系統桌面的捷徑上按下滑鼠右鍵" &
125
+    ",開啟系統的安裝目錄。"
126
+        '
127
+        'Label5
128
+        '
129
+        Me.Label5.AutoSize = True
130
+        Me.Label5.ForeColor = System.Drawing.Color.Red
131
+        Me.Label5.Location = New System.Drawing.Point(44, 448)
132
+        Me.Label5.Name = "Label5"
133
+        Me.Label5.Size = New System.Drawing.Size(414, 16)
134
+        Me.Label5.TabIndex = 12
135
+        Me.Label5.Text = "列表裡的chromedriver主版本號都是與chrome版本的主版本號一一對應的。"
136
+        '
137
+        'PictureBox3
138
+        '
139
+        Me.PictureBox3.BackgroundImage = Global.GA_ERP_SYS.My.Resources.Resources._5bb63d4ef7f776f75809dfb810d8a16
140
+        Me.PictureBox3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom
141
+        Me.PictureBox3.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
142
+        Me.PictureBox3.Location = New System.Drawing.Point(29, 469)
143
+        Me.PictureBox3.Name = "PictureBox3"
144
+        Me.PictureBox3.Size = New System.Drawing.Size(949, 171)
145
+        Me.PictureBox3.TabIndex = 11
146
+        Me.PictureBox3.TabStop = False
147
+        '
148
+        'Label3
149
+        '
150
+        Me.Label3.AutoSize = True
151
+        Me.Label3.ForeColor = System.Drawing.Color.Red
152
+        Me.Label3.Location = New System.Drawing.Point(498, 223)
153
+        Me.Label3.Name = "Label3"
154
+        Me.Label3.Size = New System.Drawing.Size(269, 16)
155
+        Me.Label3.TabIndex = 10
156
+        Me.Label3.Text = "從Chrome瀏覽器中德茲你電腦中目前的版本號。"
157
+        '
158
+        'Button2
159
+        '
160
+        Me.Button2.Location = New System.Drawing.Point(758, 422)
161
+        Me.Button2.Name = "Button2"
162
+        Me.Button2.Size = New System.Drawing.Size(98, 23)
163
+        Me.Button2.TabIndex = 9
164
+        Me.Button2.Text = "打開瀏覽器"
165
+        Me.Button2.UseVisualStyleBackColor = True
166
+        '
167
+        'TextBox2
168
+        '
169
+        Me.TextBox2.Location = New System.Drawing.Point(419, 422)
170
+        Me.TextBox2.Name = "TextBox2"
171
+        Me.TextBox2.Size = New System.Drawing.Size(333, 23)
172
+        Me.TextBox2.TabIndex = 8
173
+        Me.TextBox2.Text = "https://chromedriver.storage.googleapis.com/index.html"
174
+        '
175
+        'Label4
176
+        '
177
+        Me.Label4.AutoSize = True
178
+        Me.Label4.ForeColor = System.Drawing.Color.Red
179
+        Me.Label4.Location = New System.Drawing.Point(26, 425)
180
+        Me.Label4.Name = "Label4"
181
+        Me.Label4.Size = New System.Drawing.Size(387, 16)
182
+        Me.Label4.TabIndex = 7
183
+        Me.Label4.Text = "2,訪問google的chromedriver官方下載站,找到對應的chromedriver"
184
+        '
185
+        'PictureBox2
186
+        '
187
+        Me.PictureBox2.BackgroundImage = Global.GA_ERP_SYS.My.Resources.Resources._47526ccfe6fd81c95524745ad12d1f7
188
+        Me.PictureBox2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom
189
+        Me.PictureBox2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
190
+        Me.PictureBox2.Location = New System.Drawing.Point(26, 246)
191
+        Me.PictureBox2.Name = "PictureBox2"
192
+        Me.PictureBox2.Size = New System.Drawing.Size(949, 171)
193
+        Me.PictureBox2.TabIndex = 6
194
+        Me.PictureBox2.TabStop = False
195
+        '
196
+        'TextBox1
197
+        '
198
+        Me.TextBox1.Location = New System.Drawing.Point(281, 220)
199
+        Me.TextBox1.Name = "TextBox1"
200
+        Me.TextBox1.Size = New System.Drawing.Size(109, 23)
201
+        Me.TextBox1.TabIndex = 5
202
+        Me.TextBox1.Text = "chrome://version"
203
+        '
204
+        'Button1
205
+        '
206
+        Me.Button1.Location = New System.Drawing.Point(393, 220)
207
+        Me.Button1.Name = "Button1"
208
+        Me.Button1.Size = New System.Drawing.Size(98, 23)
209
+        Me.Button1.TabIndex = 3
210
+        Me.Button1.Text = "打開瀏覽器"
211
+        Me.Button1.UseVisualStyleBackColor = True
212
+        '
213
+        'Label2
214
+        '
215
+        Me.Label2.AutoSize = True
216
+        Me.Label2.ForeColor = System.Drawing.Color.Red
217
+        Me.Label2.Location = New System.Drawing.Point(26, 223)
218
+        Me.Label2.Name = "Label2"
219
+        Me.Label2.Size = New System.Drawing.Size(254, 16)
220
+        Me.Label2.TabIndex = 2
221
+        Me.Label2.Text = "1,查看chrome版本 : 查看chrome版本,输入"
222
+        '
223
+        'PictureBox1
224
+        '
225
+        Me.PictureBox1.BackgroundImage = Global.GA_ERP_SYS.My.Resources.Resources._1631414926457
226
+        Me.PictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom
227
+        Me.PictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
228
+        Me.PictureBox1.Location = New System.Drawing.Point(26, 42)
229
+        Me.PictureBox1.Name = "PictureBox1"
230
+        Me.PictureBox1.Size = New System.Drawing.Size(949, 171)
231
+        Me.PictureBox1.TabIndex = 1
232
+        Me.PictureBox1.TabStop = False
233
+        '
234
+        'Label1
235
+        '
236
+        Me.Label1.AutoSize = True
237
+        Me.Label1.ForeColor = System.Drawing.Color.Red
238
+        Me.Label1.Location = New System.Drawing.Point(26, 25)
239
+        Me.Label1.Name = "Label1"
240
+        Me.Label1.Size = New System.Drawing.Size(356, 16)
241
+        Me.Label1.TabIndex = 0
242
+        Me.Label1.Text = "在執行資料導入時如果遇到下方描述的錯誤時請依照下方SOP除錯"
243
+        '
244
+        'TabPage2
245
+        '
246
+        Me.TabPage2.Controls.Add(Me.Panel1)
247
+        Me.TabPage2.Location = New System.Drawing.Point(4, 25)
248
+        Me.TabPage2.Name = "TabPage2"
249
+        Me.TabPage2.Padding = New System.Windows.Forms.Padding(3)
250
+        Me.TabPage2.Size = New System.Drawing.Size(1117, 567)
251
+        Me.TabPage2.TabIndex = 1
252
+        Me.TabPage2.Text = "[ ? ]"
253
+        Me.TabPage2.UseVisualStyleBackColor = True
254
+        '
255
+        'Panel1
256
+        '
257
+        Me.Panel1.Dock = System.Windows.Forms.DockStyle.Fill
258
+        Me.Panel1.Location = New System.Drawing.Point(3, 3)
259
+        Me.Panel1.Name = "Panel1"
260
+        Me.Panel1.Size = New System.Drawing.Size(1111, 561)
261
+        Me.Panel1.TabIndex = 8
262
+        '
263
+        '錯誤排除手冊
264
+        '
265
+        Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
266
+        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
267
+        Me.ClientSize = New System.Drawing.Size(1129, 600)
268
+        Me.Controls.Add(Me.TabControl1)
269
+        Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
270
+        Me.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
271
+        Me.Name = "錯誤排除手冊"
272
+        Me.Text = "錯誤排除手冊"
273
+        Me.TabControl1.ResumeLayout(False)
274
+        Me.TabPage1.ResumeLayout(False)
275
+        Me.TabPage1.PerformLayout()
276
+        CType(Me.PictureBox5, System.ComponentModel.ISupportInitialize).EndInit()
277
+        CType(Me.PictureBox4, System.ComponentModel.ISupportInitialize).EndInit()
278
+        CType(Me.PictureBox3, System.ComponentModel.ISupportInitialize).EndInit()
279
+        CType(Me.PictureBox2, System.ComponentModel.ISupportInitialize).EndInit()
280
+        CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).EndInit()
281
+        Me.TabPage2.ResumeLayout(False)
282
+        Me.ResumeLayout(False)
283
+
284
+    End Sub
285
+
286
+    Friend WithEvents TabControl1 As TabControl
287
+    Friend WithEvents TabPage1 As TabPage
288
+    Friend WithEvents Label1 As Label
289
+    Friend WithEvents TabPage2 As TabPage
290
+    Friend WithEvents PictureBox1 As PictureBox
291
+    Friend WithEvents TextBox1 As TextBox
292
+    Friend WithEvents Button1 As Button
293
+    Friend WithEvents Label2 As Label
294
+    Friend WithEvents PictureBox2 As PictureBox
295
+    Friend WithEvents Panel1 As Panel
296
+    Friend WithEvents TextBox2 As TextBox
297
+    Friend WithEvents Label4 As Label
298
+    Friend WithEvents Button2 As Button
299
+    Friend WithEvents Label5 As Label
300
+    Friend WithEvents PictureBox3 As PictureBox
301
+    Friend WithEvents Label3 As Label
302
+    Friend WithEvents Label6 As Label
303
+    Friend WithEvents PictureBox4 As PictureBox
304
+    Friend WithEvents PictureBox5 As PictureBox
305
+End Class

+ 120
- 0
GA-ERP-SYS/特殊操作功能/錯誤排除手冊.resx View File

@@ -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>

+ 19
- 0
GA-ERP-SYS/特殊操作功能/錯誤排除手冊.vb View File

@@ -0,0 +1,19 @@
1
+Imports System.IO
2
+Public Class 錯誤排除手冊
3
+
4
+    Private Sub 錯誤排除手冊_Load(sender As Object, e As EventArgs) Handles MyBase.Load
5
+        Me.MdiParent = GA_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True : GA_ERP_SYS.WindowState = 0
6
+    End Sub
7
+    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
8
+        Dim fileName As String = "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
9
+        Dim fullPath As String
10
+        fullPath = Path.GetFullPath(fileName)
11
+        Process.Start(fullPath, "--app=")
12
+    End Sub
13
+    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
14
+        Dim fileName As String = "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
15
+        Dim fullPath As String
16
+        fullPath = Path.GetFullPath(fileName)
17
+        Process.Start(fullPath, "--app=" & TextBox2.Text)
18
+    End Sub
19
+End Class

+ 89
- 29
GA-ERP-SYS/資料庫系統管理/系統使用者管理.Designer.vb View File

@@ -43,6 +43,7 @@ Partial Class 系統使用者管理
43 43
         Me.CheckBox2 = New System.Windows.Forms.CheckBox()
44 44
         Me.CheckBox1 = New System.Windows.Forms.CheckBox()
45 45
         Me.Panel1 = New System.Windows.Forms.Panel()
46
+        Me.CheckBox21 = New System.Windows.Forms.CheckBox()
46 47
         Me.CheckBox20 = New System.Windows.Forms.CheckBox()
47 48
         Me.CheckBox19 = New System.Windows.Forms.CheckBox()
48 49
         Me.CheckBox18 = New System.Windows.Forms.CheckBox()
@@ -68,7 +69,10 @@ Partial Class 系統使用者管理
68 69
         Me.Label5 = New System.Windows.Forms.Label()
69 70
         Me.Label7 = New System.Windows.Forms.Label()
70 71
         Me.到期日_dtp = New System.Windows.Forms.DateTimePicker()
71
-        Me.CheckBox21 = New System.Windows.Forms.CheckBox()
72
+        Me.CheckBox22 = New System.Windows.Forms.CheckBox()
73
+        Me.CheckBox23 = New System.Windows.Forms.CheckBox()
74
+        Me.CheckBox24 = New System.Windows.Forms.CheckBox()
75
+        Me.CheckBox25 = New System.Windows.Forms.CheckBox()
72 76
         CType(Me.字體_NUD, System.ComponentModel.ISupportInitialize).BeginInit()
73 77
         CType(Me.使用者清單_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
74 78
         Me.Panel1.SuspendLayout()
@@ -254,7 +258,7 @@ Partial Class 系統使用者管理
254 258
         '
255 259
         Me.CheckBox5.AutoSize = True
256 260
         Me.CheckBox5.ForeColor = System.Drawing.Color.Red
257
-        Me.CheckBox5.Location = New System.Drawing.Point(259, 286)
261
+        Me.CheckBox5.Location = New System.Drawing.Point(261, 260)
258 262
         Me.CheckBox5.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
259 263
         Me.CheckBox5.Name = "CheckBox5"
260 264
         Me.CheckBox5.Size = New System.Drawing.Size(142, 20)
@@ -266,7 +270,7 @@ Partial Class 系統使用者管理
266 270
         '
267 271
         Me.CheckBox4.AutoSize = True
268 272
         Me.CheckBox4.ForeColor = System.Drawing.Color.Red
269
-        Me.CheckBox4.Location = New System.Drawing.Point(259, 258)
273
+        Me.CheckBox4.Location = New System.Drawing.Point(261, 232)
270 274
         Me.CheckBox4.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
271 275
         Me.CheckBox4.Name = "CheckBox4"
272 276
         Me.CheckBox4.Size = New System.Drawing.Size(170, 20)
@@ -278,7 +282,7 @@ Partial Class 系統使用者管理
278 282
         '
279 283
         Me.CheckBox3.AutoSize = True
280 284
         Me.CheckBox3.ForeColor = System.Drawing.Color.Red
281
-        Me.CheckBox3.Location = New System.Drawing.Point(259, 230)
285
+        Me.CheckBox3.Location = New System.Drawing.Point(261, 204)
282 286
         Me.CheckBox3.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
283 287
         Me.CheckBox3.Name = "CheckBox3"
284 288
         Me.CheckBox3.Size = New System.Drawing.Size(134, 20)
@@ -290,7 +294,7 @@ Partial Class 系統使用者管理
290 294
         '
291 295
         Me.CheckBox2.AutoSize = True
292 296
         Me.CheckBox2.ForeColor = System.Drawing.Color.Red
293
-        Me.CheckBox2.Location = New System.Drawing.Point(259, 146)
297
+        Me.CheckBox2.Location = New System.Drawing.Point(261, 34)
294 298
         Me.CheckBox2.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
295 299
         Me.CheckBox2.Name = "CheckBox2"
296 300
         Me.CheckBox2.Size = New System.Drawing.Size(146, 20)
@@ -301,7 +305,7 @@ Partial Class 系統使用者管理
301 305
         'CheckBox1
302 306
         '
303 307
         Me.CheckBox1.AutoSize = True
304
-        Me.CheckBox1.Location = New System.Drawing.Point(239, 118)
308
+        Me.CheckBox1.Location = New System.Drawing.Point(236, 6)
305 309
         Me.CheckBox1.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
306 310
         Me.CheckBox1.Name = "CheckBox1"
307 311
         Me.CheckBox1.Size = New System.Drawing.Size(146, 20)
@@ -316,6 +320,10 @@ Partial Class 系統使用者管理
316 320
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
317 321
         Me.Panel1.AutoScroll = True
318 322
         Me.Panel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
323
+        Me.Panel1.Controls.Add(Me.CheckBox25)
324
+        Me.Panel1.Controls.Add(Me.CheckBox24)
325
+        Me.Panel1.Controls.Add(Me.CheckBox23)
326
+        Me.Panel1.Controls.Add(Me.CheckBox22)
319 327
         Me.Panel1.Controls.Add(Me.CheckBox21)
320 328
         Me.Panel1.Controls.Add(Me.CheckBox20)
321 329
         Me.Panel1.Controls.Add(Me.CheckBox19)
@@ -343,11 +351,23 @@ Partial Class 系統使用者管理
343 351
         Me.Panel1.Size = New System.Drawing.Size(1253, 910)
344 352
         Me.Panel1.TabIndex = 1513
345 353
         '
354
+        'CheckBox21
355
+        '
356
+        Me.CheckBox21.AutoSize = True
357
+        Me.CheckBox21.ForeColor = System.Drawing.Color.Red
358
+        Me.CheckBox21.Location = New System.Drawing.Point(33, 230)
359
+        Me.CheckBox21.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
360
+        Me.CheckBox21.Name = "CheckBox21"
361
+        Me.CheckBox21.Size = New System.Drawing.Size(146, 20)
362
+        Me.CheckBox21.TabIndex = 279
363
+        Me.CheckBox21.Text = "帳務彙總計算表-CC21"
364
+        Me.CheckBox21.UseVisualStyleBackColor = True
365
+        '
346 366
         'CheckBox20
347 367
         '
348 368
         Me.CheckBox20.AutoSize = True
349 369
         Me.CheckBox20.ForeColor = System.Drawing.Color.Red
350
-        Me.CheckBox20.Location = New System.Drawing.Point(281, 202)
370
+        Me.CheckBox20.Location = New System.Drawing.Point(285, 90)
351 371
         Me.CheckBox20.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
352 372
         Me.CheckBox20.Name = "CheckBox20"
353 373
         Me.CheckBox20.Size = New System.Drawing.Size(110, 20)
@@ -359,7 +379,7 @@ Partial Class 系統使用者管理
359 379
         '
360 380
         Me.CheckBox19.AutoSize = True
361 381
         Me.CheckBox19.ForeColor = System.Drawing.Color.Red
362
-        Me.CheckBox19.Location = New System.Drawing.Point(55, 174)
382
+        Me.CheckBox19.Location = New System.Drawing.Point(55, 146)
363 383
         Me.CheckBox19.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
364 384
         Me.CheckBox19.Name = "CheckBox19"
365 385
         Me.CheckBox19.Size = New System.Drawing.Size(110, 20)
@@ -371,7 +391,7 @@ Partial Class 系統使用者管理
371 391
         '
372 392
         Me.CheckBox18.AutoSize = True
373 393
         Me.CheckBox18.ForeColor = System.Drawing.Color.Red
374
-        Me.CheckBox18.Location = New System.Drawing.Point(33, 146)
394
+        Me.CheckBox18.Location = New System.Drawing.Point(33, 118)
375 395
         Me.CheckBox18.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
376 396
         Me.CheckBox18.Name = "CheckBox18"
377 397
         Me.CheckBox18.Size = New System.Drawing.Size(146, 20)
@@ -382,7 +402,7 @@ Partial Class 系統使用者管理
382 402
         'CheckBox17
383 403
         '
384 404
         Me.CheckBox17.AutoSize = True
385
-        Me.CheckBox17.Location = New System.Drawing.Point(13, 118)
405
+        Me.CheckBox17.Location = New System.Drawing.Point(13, 90)
386 406
         Me.CheckBox17.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
387 407
         Me.CheckBox17.Name = "CheckBox17"
388 408
         Me.CheckBox17.Size = New System.Drawing.Size(134, 20)
@@ -429,7 +449,7 @@ Partial Class 系統使用者管理
429 449
         '
430 450
         Me.CheckBox13.AutoSize = True
431 451
         Me.CheckBox13.ForeColor = System.Drawing.Color.Red
432
-        Me.CheckBox13.Location = New System.Drawing.Point(264, 89)
452
+        Me.CheckBox13.Location = New System.Drawing.Point(38, 372)
433 453
         Me.CheckBox13.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
434 454
         Me.CheckBox13.Name = "CheckBox13"
435 455
         Me.CheckBox13.Size = New System.Drawing.Size(134, 20)
@@ -441,7 +461,7 @@ Partial Class 系統使用者管理
441 461
         '
442 462
         Me.CheckBox12.AutoSize = True
443 463
         Me.CheckBox12.ForeColor = System.Drawing.Color.Red
444
-        Me.CheckBox12.Location = New System.Drawing.Point(264, 61)
464
+        Me.CheckBox12.Location = New System.Drawing.Point(38, 344)
445 465
         Me.CheckBox12.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
446 466
         Me.CheckBox12.Name = "CheckBox12"
447 467
         Me.CheckBox12.Size = New System.Drawing.Size(146, 20)
@@ -453,7 +473,7 @@ Partial Class 系統使用者管理
453 473
         '
454 474
         Me.CheckBox11.AutoSize = True
455 475
         Me.CheckBox11.ForeColor = System.Drawing.Color.Red
456
-        Me.CheckBox11.Location = New System.Drawing.Point(264, 33)
476
+        Me.CheckBox11.Location = New System.Drawing.Point(38, 316)
457 477
         Me.CheckBox11.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
458 478
         Me.CheckBox11.Name = "CheckBox11"
459 479
         Me.CheckBox11.Size = New System.Drawing.Size(146, 20)
@@ -464,7 +484,7 @@ Partial Class 系統使用者管理
464 484
         'CheckBox10
465 485
         '
466 486
         Me.CheckBox10.AutoSize = True
467
-        Me.CheckBox10.Location = New System.Drawing.Point(239, 5)
487
+        Me.CheckBox10.Location = New System.Drawing.Point(13, 288)
468 488
         Me.CheckBox10.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
469 489
         Me.CheckBox10.Name = "CheckBox10"
470 490
         Me.CheckBox10.Size = New System.Drawing.Size(134, 20)
@@ -476,7 +496,7 @@ Partial Class 系統使用者管理
476 496
         '
477 497
         Me.CheckBox9.AutoSize = True
478 498
         Me.CheckBox9.ForeColor = System.Drawing.Color.Red
479
-        Me.CheckBox9.Location = New System.Drawing.Point(55, 204)
499
+        Me.CheckBox9.Location = New System.Drawing.Point(55, 176)
480 500
         Me.CheckBox9.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
481 501
         Me.CheckBox9.Name = "CheckBox9"
482 502
         Me.CheckBox9.Size = New System.Drawing.Size(170, 20)
@@ -488,7 +508,7 @@ Partial Class 系統使用者管理
488 508
         '
489 509
         Me.CheckBox8.AutoSize = True
490 510
         Me.CheckBox8.ForeColor = System.Drawing.Color.Red
491
-        Me.CheckBox8.Location = New System.Drawing.Point(55, 232)
511
+        Me.CheckBox8.Location = New System.Drawing.Point(55, 204)
492 512
         Me.CheckBox8.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
493 513
         Me.CheckBox8.Name = "CheckBox8"
494 514
         Me.CheckBox8.Size = New System.Drawing.Size(146, 20)
@@ -500,7 +520,7 @@ Partial Class 系統使用者管理
500 520
         '
501 521
         Me.CheckBox7.AutoSize = True
502 522
         Me.CheckBox7.ForeColor = System.Drawing.Color.Red
503
-        Me.CheckBox7.Location = New System.Drawing.Point(281, 174)
523
+        Me.CheckBox7.Location = New System.Drawing.Point(285, 62)
504 524
         Me.CheckBox7.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
505 525
         Me.CheckBox7.Name = "CheckBox7"
506 526
         Me.CheckBox7.Size = New System.Drawing.Size(110, 20)
@@ -512,7 +532,7 @@ Partial Class 系統使用者管理
512 532
         '
513 533
         Me.CheckBox6.AutoSize = True
514 534
         Me.CheckBox6.ForeColor = System.Drawing.Color.Red
515
-        Me.CheckBox6.Location = New System.Drawing.Point(259, 314)
535
+        Me.CheckBox6.Location = New System.Drawing.Point(261, 120)
516 536
         Me.CheckBox6.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
517 537
         Me.CheckBox6.Name = "CheckBox6"
518 538
         Me.CheckBox6.Size = New System.Drawing.Size(182, 20)
@@ -627,17 +647,53 @@ Partial Class 系統使用者管理
627 647
         Me.到期日_dtp.Size = New System.Drawing.Size(88, 23)
628 648
         Me.到期日_dtp.TabIndex = 1526
629 649
         '
630
-        'CheckBox21
631
-        '
632
-        Me.CheckBox21.AutoSize = True
633
-        Me.CheckBox21.ForeColor = System.Drawing.Color.Red
634
-        Me.CheckBox21.Location = New System.Drawing.Point(33, 258)
635
-        Me.CheckBox21.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
636
-        Me.CheckBox21.Name = "CheckBox21"
637
-        Me.CheckBox21.Size = New System.Drawing.Size(146, 20)
638
-        Me.CheckBox21.TabIndex = 279
639
-        Me.CheckBox21.Text = "帳務彙總計算表-CC21"
640
-        Me.CheckBox21.UseVisualStyleBackColor = True
650
+        'CheckBox22
651
+        '
652
+        Me.CheckBox22.AutoSize = True
653
+        Me.CheckBox22.ForeColor = System.Drawing.Color.Red
654
+        Me.CheckBox22.Location = New System.Drawing.Point(33, 258)
655
+        Me.CheckBox22.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
656
+        Me.CheckBox22.Name = "CheckBox22"
657
+        Me.CheckBox22.Size = New System.Drawing.Size(134, 20)
658
+        Me.CheckBox22.TabIndex = 280
659
+        Me.CheckBox22.Text = "歷史資料查詢-CC22"
660
+        Me.CheckBox22.UseVisualStyleBackColor = True
661
+        '
662
+        'CheckBox23
663
+        '
664
+        Me.CheckBox23.AutoSize = True
665
+        Me.CheckBox23.ForeColor = System.Drawing.Color.Red
666
+        Me.CheckBox23.Location = New System.Drawing.Point(261, 148)
667
+        Me.CheckBox23.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
668
+        Me.CheckBox23.Name = "CheckBox23"
669
+        Me.CheckBox23.Size = New System.Drawing.Size(136, 20)
670
+        Me.CheckBox23.TabIndex = 281
671
+        Me.CheckBox23.Text = "USB KEY 指定-CC23" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10)
672
+        Me.CheckBox23.UseVisualStyleBackColor = True
673
+        '
674
+        'CheckBox24
675
+        '
676
+        Me.CheckBox24.AutoSize = True
677
+        Me.CheckBox24.ForeColor = System.Drawing.Color.Red
678
+        Me.CheckBox24.Location = New System.Drawing.Point(261, 176)
679
+        Me.CheckBox24.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
680
+        Me.CheckBox24.Name = "CheckBox24"
681
+        Me.CheckBox24.Size = New System.Drawing.Size(134, 20)
682
+        Me.CheckBox24.TabIndex = 282
683
+        Me.CheckBox24.Text = "資料備份轉移-CC24" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10)
684
+        Me.CheckBox24.UseVisualStyleBackColor = True
685
+        '
686
+        'CheckBox25
687
+        '
688
+        Me.CheckBox25.AutoSize = True
689
+        Me.CheckBox25.ForeColor = System.Drawing.Color.Red
690
+        Me.CheckBox25.Location = New System.Drawing.Point(261, 288)
691
+        Me.CheckBox25.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
692
+        Me.CheckBox25.Name = "CheckBox25"
693
+        Me.CheckBox25.Size = New System.Drawing.Size(161, 20)
694
+        Me.CheckBox25.TabIndex = 283
695
+        Me.CheckBox25.Text = "PY執行錯誤LOG檔-CC25" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10)
696
+        Me.CheckBox25.UseVisualStyleBackColor = True
641 697
         '
642 698
         '系統使用者管理
643 699
         '
@@ -726,4 +782,8 @@ Partial Class 系統使用者管理
726 782
     Friend WithEvents 到期日_dtp As DateTimePicker
727 783
     Friend WithEvents CheckBox20 As CheckBox
728 784
     Friend WithEvents CheckBox21 As CheckBox
785
+    Friend WithEvents CheckBox22 As CheckBox
786
+    Friend WithEvents CheckBox23 As CheckBox
787
+    Friend WithEvents CheckBox24 As CheckBox
788
+    Friend WithEvents CheckBox25 As CheckBox
729 789
 End Class

+ 30
- 30
GA-ERP-SYS/資料庫系統管理/資料備份轉移.Designer.vb View File

@@ -1,9 +1,9 @@
1
-<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
1
+<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()>
2 2
 Partial Class 資料備份轉移
3 3
     Inherits System.Windows.Forms.Form
4 4
 
5 5
     'Form 覆寫 Dispose 以清除元件清單。
6
-    <System.Diagnostics.DebuggerNonUserCode()> _
6
+    <System.Diagnostics.DebuggerNonUserCode()>
7 7
     Protected Overrides Sub Dispose(ByVal disposing As Boolean)
8 8
         Try
9 9
             If disposing AndAlso components IsNot Nothing Then
@@ -20,17 +20,17 @@ Partial Class 資料備份轉移
20 20
     '注意: 以下為 Windows Form 設計工具所需的程序
21 21
     '可以使用 Windows Form 設計工具進行修改。
22 22
     '請勿使用程式碼編輯器進行修改。
23
-    <System.Diagnostics.DebuggerStepThrough()> _
23
+    <System.Diagnostics.DebuggerStepThrough()>
24 24
     Private Sub InitializeComponent()
25
-        Dim DataGridViewCellStyle19 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26
-        Dim DataGridViewCellStyle20 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27
-        Dim DataGridViewCellStyle21 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
28
-        Dim DataGridViewCellStyle22 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
29
-        Dim DataGridViewCellStyle23 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
30
-        Dim DataGridViewCellStyle24 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
31
-        Dim DataGridViewCellStyle25 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
32
-        Dim DataGridViewCellStyle26 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
33
-        Dim DataGridViewCellStyle27 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
25
+        Dim DataGridViewCellStyle1 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26
+        Dim DataGridViewCellStyle2 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27
+        Dim DataGridViewCellStyle3 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
28
+        Dim DataGridViewCellStyle4 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
29
+        Dim DataGridViewCellStyle5 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
30
+        Dim DataGridViewCellStyle6 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
31
+        Dim DataGridViewCellStyle7 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
32
+        Dim DataGridViewCellStyle8 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
33
+        Dim DataGridViewCellStyle9 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
34 34
         Me.客戶資料表_dgv = New System.Windows.Forms.DataGridView()
35 35
         Me.商品資料表_dgv = New System.Windows.Forms.DataGridView()
36 36
         Me.商客基本資料表_dgv = New System.Windows.Forms.DataGridView()
@@ -64,8 +64,8 @@ Partial Class 資料備份轉移
64 64
         '
65 65
         '客戶資料表_dgv
66 66
         '
67
-        DataGridViewCellStyle19.BackColor = System.Drawing.Color.LavenderBlush
68
-        Me.客戶資料表_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle19
67
+        DataGridViewCellStyle1.BackColor = System.Drawing.Color.LavenderBlush
68
+        Me.客戶資料表_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle1
69 69
         Me.客戶資料表_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
70 70
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
71 71
         Me.客戶資料表_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
@@ -79,8 +79,8 @@ Partial Class 資料備份轉移
79 79
         '
80 80
         '商品資料表_dgv
81 81
         '
82
-        DataGridViewCellStyle20.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
83
-        Me.商品資料表_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle20
82
+        DataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
83
+        Me.商品資料表_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle2
84 84
         Me.商品資料表_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
85 85
             Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
86 86
         Me.商品資料表_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
@@ -94,8 +94,8 @@ Partial Class 資料備份轉移
94 94
         '
95 95
         '商客基本資料表_dgv
96 96
         '
97
-        DataGridViewCellStyle21.BackColor = System.Drawing.Color.Lavender
98
-        Me.商客基本資料表_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle21
97
+        DataGridViewCellStyle3.BackColor = System.Drawing.Color.Lavender
98
+        Me.商客基本資料表_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle3
99 99
         Me.商客基本資料表_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
100 100
             Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
101 101
         Me.商客基本資料表_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
@@ -109,8 +109,8 @@ Partial Class 資料備份轉移
109 109
         '
110 110
         '下行客戶_dgv
111 111
         '
112
-        DataGridViewCellStyle22.BackColor = System.Drawing.Color.Ivory
113
-        Me.下行客戶_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle22
112
+        DataGridViewCellStyle4.BackColor = System.Drawing.Color.Ivory
113
+        Me.下行客戶_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle4
114 114
         Me.下行客戶_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
115 115
             Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
116 116
         Me.下行客戶_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
@@ -124,8 +124,8 @@ Partial Class 資料備份轉移
124 124
         '
125 125
         '流水帳_dgv
126 126
         '
127
-        DataGridViewCellStyle23.BackColor = System.Drawing.Color.Gainsboro
128
-        Me.流水帳_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle23
127
+        DataGridViewCellStyle5.BackColor = System.Drawing.Color.Gainsboro
128
+        Me.流水帳_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle5
129 129
         Me.流水帳_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
130 130
             Or System.Windows.Forms.AnchorStyles.Left) _
131 131
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
@@ -213,8 +213,8 @@ Partial Class 資料備份轉移
213 213
         '
214 214
         '流水帳1_dgv
215 215
         '
216
-        DataGridViewCellStyle24.BackColor = System.Drawing.Color.Gainsboro
217
-        Me.流水帳1_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle24
216
+        DataGridViewCellStyle6.BackColor = System.Drawing.Color.Gainsboro
217
+        Me.流水帳1_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle6
218 218
         Me.流水帳1_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
219 219
             Or System.Windows.Forms.AnchorStyles.Left) _
220 220
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
@@ -229,8 +229,8 @@ Partial Class 資料備份轉移
229 229
         '
230 230
         '下行客戶1_dgv
231 231
         '
232
-        DataGridViewCellStyle25.BackColor = System.Drawing.Color.Ivory
233
-        Me.下行客戶1_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle25
232
+        DataGridViewCellStyle7.BackColor = System.Drawing.Color.Ivory
233
+        Me.下行客戶1_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle7
234 234
         Me.下行客戶1_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
235 235
             Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
236 236
         Me.下行客戶1_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
@@ -244,8 +244,8 @@ Partial Class 資料備份轉移
244 244
         '
245 245
         '商客基本資料表1_dgv
246 246
         '
247
-        DataGridViewCellStyle26.BackColor = System.Drawing.Color.Lavender
248
-        Me.商客基本資料表1_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle26
247
+        DataGridViewCellStyle8.BackColor = System.Drawing.Color.Lavender
248
+        Me.商客基本資料表1_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle8
249 249
         Me.商客基本資料表1_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
250 250
             Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
251 251
         Me.商客基本資料表1_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
@@ -259,8 +259,8 @@ Partial Class 資料備份轉移
259 259
         '
260 260
         '商品資料表1_dgv
261 261
         '
262
-        DataGridViewCellStyle27.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
263
-        Me.商品資料表1_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle27
262
+        DataGridViewCellStyle9.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
263
+        Me.商品資料表1_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle9
264 264
         Me.商品資料表1_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
265 265
             Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
266 266
         Me.商品資料表1_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize

+ 55
- 46
GA-ERP-SYS/資料庫系統管理/資料備份轉移.vb View File

@@ -93,52 +93,61 @@
93 93
         End If
94 94
     End Sub
95 95
     Private Sub 資料轉移_bt_Click(sender As Object, e As EventArgs) Handles 資料轉移_bt.Click
96
-        資料數1 = 客戶資料表_dgv.Rows.Count * 4
97
-        For i As Integer = 0 To 客戶資料表_dgv.Rows.Count - 1
98
-            SQL_資料庫轉換1_刪除() : 資料數 = 商品資料表_dgv.Rows.Count : 進度條1()
99
-            For ii As Integer = 0 To 商品資料表_dgv.Rows.Count - 1
100
-                MyModule1.進度條()
101
-                SQL1 = "SELECT 商品, 編號, 系統, 層級, 網址 FROM 商品資料表"
102
-                PA = 商品資料表_dgv("商品", ii).Value : PA1 = 商品資料表_dgv("編號", ii).Value : PA2 = 商品資料表_dgv("系統", ii).Value
103
-                PA3 = 商品資料表_dgv("層級", ii).Value : PA4 = 商品資料表_dgv("網址", ii).Value
104
-                SQL_資料庫轉換1_新增()
105
-            Next : GA_ERP_SYS.ToolStripProgressBar1.Value = 0 : 最終數 = 0
106
-            SQL_資料庫轉換2_刪除() : 資料數 = 商客基本資料表_dgv.Rows.Count : 進度條1()
107
-            For ii As Integer = 0 To 商客基本資料表_dgv.Rows.Count - 1
108
-                MyModule1.進度條()
109
-                PA = 商客基本資料表_dgv("網址", ii).Value : PA1 = 商客基本資料表_dgv("帳號", ii).Value : PA2 = 商客基本資料表_dgv("密碼", ii).Value
110
-                PA3 = 商客基本資料表_dgv("資料", ii).Value : PA4 = 商客基本資料表_dgv("上繳源", ii).Value : PA5 = 商客基本資料表_dgv("商品", ii).Value
111
-                PA6 = 商客基本資料表_dgv("上行基數", ii).Value : PA7 = 商客基本資料表_dgv("下行基數", ii).Value : PA8 = 商客基本資料表_dgv("驗證", ii).Value
112
-                SQL_資料庫轉換2_新增()
113
-            Next : GA_ERP_SYS.ToolStripProgressBar1.Value = 0 : 最終數 = 0
114
-            SQL_資料庫轉換3_刪除() : 資料數 = 下行客戶_dgv.Rows.Count : 進度條1()
115
-            For ii As Integer = 0 To 下行客戶_dgv.Rows.Count - 1
116
-                MyModule1.進度條()
117
-                PA = 下行客戶_dgv("客戶下", ii).Value : PA1 = 下行客戶_dgv("網址", ii).Value : PA2 = 下行客戶_dgv("帳號", ii).Value
118
-                PA3 = 下行客戶_dgv("基數", ii).Value : PA4 = 下行客戶_dgv("流水號", ii).Value : PA5 = 下行客戶_dgv("客名", ii).Value
119
-                PA6 = 下行客戶_dgv("計算", ii).Value : PA7 = 下行客戶_dgv("同帳", ii).Value : PA8 = 下行客戶_dgv("所得", ii).Value
120
-                SQL_資料庫轉換3_新增()
121
-            Next : GA_ERP_SYS.ToolStripProgressBar1.Value = 0 : 最終數 = 0
122
-            資料數 = 下行客戶_dgv.Rows.Count : 進度條1()
123
-            For ii As Integer = 0 To 流水帳_dgv.Rows.Count - 1
124
-                MyModule1.進度條()
125
-                PA = 流水帳_dgv("index", ii).Value : PA1 = 流水帳_dgv("開始日期", ii).Value : PA2 = 流水帳_dgv("結束日期", ii).Value
126
-                PA3 = 流水帳_dgv("網址", ii).Value : PA4 = 流水帳_dgv("帳戶", ii).Value : PA5 = 流水帳_dgv("隨機碼", ii).Value
127
-                PA6 = 流水帳_dgv("名稱", ii).Value.ToString : PA7 = 流水帳_dgv("總量", ii).Value.ToString : PA8 = 流水帳_dgv("退水", ii).Value.ToString
128
-                PA9 = 流水帳_dgv("中獎", ii).Value.ToString : PA10 = 流水帳_dgv("輸贏", ii).Value.ToString : PA11 = 流水帳_dgv("佔成輸贏", ii).Value.ToString
129
-                PA12 = 流水帳_dgv("水倍差", ii).Value.ToString : PA13 = 流水帳_dgv("上繳金額", ii).Value.ToString : PA14 = 流水帳_dgv("自已總輸贏", ii).Value.ToString
130
-                PA15 = 流水帳_dgv("上繳貢獻額", ii).Value.ToString : PA16 = 流水帳_dgv("貢獻額", ii).Value.ToString : PA17 = 流水帳_dgv("貢獻度", ii).Value.ToString
131
-                PA18 = 流水帳_dgv("下注明細", ii).Value.ToString : PA19 = 流水帳_dgv("玩法明細", ii).Value.ToString : PA20 = 流水帳_dgv("調盤退水", ii).Value.ToString
132
-                PA21 = 流水帳_dgv("調退實佔", ii).Value.ToString : PA22 = 流水帳_dgv("上繳", ii).Value.ToString : PA23 = 流水帳_dgv("會員", ii).Value.ToString
133
-                PA24 = 流水帳_dgv("代理", ii).Value.ToString : PA25 = 流水帳_dgv("總代理", ii).Value.ToString : PA26 = 流水帳_dgv("股東", ii).Value.ToString
134
-                PA27 = 流水帳_dgv("大股東", ii).Value.ToString : PA28 = 流水帳_dgv("客戶s", ii).Value.ToString : PA29 = 流水帳_dgv("總量s", ii).Value.ToString
135
-                PA30 = 流水帳_dgv("中獎s", ii).Value.ToString : PA31 = 流水帳_dgv("輸贏s", ii).Value.ToString : PA32 = 流水帳_dgv("客戶小計s", ii).Value.ToString
136
-                PA33 = 流水帳_dgv("代理小計s", ii).Value.ToString : PA34 = 流水帳_dgv("總代理小計s", ii).Value.ToString : PA35 = 流水帳_dgv("股東小計s", ii).Value.ToString
137
-                PA36 = 流水帳_dgv("大股東小計s", ii).Value.ToString : PA37 = 流水帳_dgv("總監小計s", ii).Value.ToString : PA38 = 流水帳_dgv("個人所得s", ii).Value.ToString
138
-                PA39 = 流水帳_dgv("水差s", ii).Value.ToString : PA40 = 流水帳_dgv("下注明細s", ii).Value.ToString : PA41 = 流水帳_dgv("查看對帳s", ii).Value.ToString
139
-                ConnOpen_備份1() : SQL_資料庫轉換4_刪除() : ConnOpen_備份2() : SQL_資料庫轉換4_刪除() : SQL_資料庫轉換4_新增()
140
-            Next : GA_ERP_SYS.ToolStripProgressBar1.Value = 0 : 最終數 = 0
141
-        Next : conn.Close() : ProgressBar1.Value = 0 : 最終數1 = 0
96
+        Dim aa As MsgBoxResult = MsgBox("即將啟動資料庫轉移?", MsgBoxStyle.OkCancel)
97
+        If aa = MsgBoxResult.Ok Then
98
+            Dim DT1, DT2 As DateTime
99
+            資料數1 = 客戶資料表_dgv.Rows.Count * 4
100
+            For i As Integer = 0 To 客戶資料表_dgv.Rows.Count - 1
101
+                SQL_資料庫轉換1_刪除() : 資料數 = 商品資料表_dgv.Rows.Count : 進度條1()
102
+                For ii As Integer = 0 To 商品資料表_dgv.Rows.Count - 1
103
+                    MyModule1.進度條()
104
+                    SQL1 = "SELECT 商品, 編號, 系統, 層級, 網址 FROM 商品資料表"
105
+                    PA = 商品資料表_dgv("商品", ii).Value : PA1 = 商品資料表_dgv("編號", ii).Value : PA2 = 商品資料表_dgv("系統", ii).Value
106
+                    PA3 = 商品資料表_dgv("層級", ii).Value : PA4 = 商品資料表_dgv("網址", ii).Value
107
+                    SQL_資料庫轉換1_新增()
108
+                Next : GA_ERP_SYS.ToolStripProgressBar1.Value = 0 : 最終數 = 0
109
+                SQL_資料庫轉換2_刪除() : 資料數 = 商客基本資料表_dgv.Rows.Count : 進度條1()
110
+                For ii As Integer = 0 To 商客基本資料表_dgv.Rows.Count - 1
111
+                    MyModule1.進度條()
112
+                    PA = 商客基本資料表_dgv("網址", ii).Value : PA1 = 商客基本資料表_dgv("帳號", ii).Value : PA2 = 商客基本資料表_dgv("密碼", ii).Value
113
+                    PA3 = 商客基本資料表_dgv("資料", ii).Value : PA4 = 商客基本資料表_dgv("上繳源", ii).Value : PA5 = 商客基本資料表_dgv("商品", ii).Value
114
+                    PA6 = 商客基本資料表_dgv("上行基數", ii).Value : PA7 = 商客基本資料表_dgv("下行基數", ii).Value : PA8 = 商客基本資料表_dgv("驗證", ii).Value
115
+                    SQL_資料庫轉換2_新增()
116
+                Next : GA_ERP_SYS.ToolStripProgressBar1.Value = 0 : 最終數 = 0
117
+                SQL_資料庫轉換3_刪除() : 資料數 = 下行客戶_dgv.Rows.Count : 進度條1()
118
+                For ii As Integer = 0 To 下行客戶_dgv.Rows.Count - 1
119
+                    MyModule1.進度條()
120
+                    PA = 下行客戶_dgv("客戶下", ii).Value : PA1 = 下行客戶_dgv("網址", ii).Value : PA2 = 下行客戶_dgv("帳號", ii).Value
121
+                    PA3 = 下行客戶_dgv("基數", ii).Value : PA4 = 下行客戶_dgv("流水號", ii).Value : PA5 = 下行客戶_dgv("客名", ii).Value
122
+                    PA6 = 下行客戶_dgv("計算", ii).Value : PA7 = 下行客戶_dgv("同帳", ii).Value : PA8 = 下行客戶_dgv("所得", ii).Value
123
+                    PA9 = 下行客戶_dgv("所得另算", ii).Value
124
+                    SQL_資料庫轉換3_新增()
125
+                Next : GA_ERP_SYS.ToolStripProgressBar1.Value = 0 : 最終數 = 0
126
+                資料數 = 下行客戶_dgv.Rows.Count : 進度條1()
127
+                For ii As Integer = 0 To 流水帳_dgv.Rows.Count - 1
128
+                    MyModule1.進度條()
129
+                    DT1 = 日期_dtp.Value : DT2 = 流水帳_dgv("結束日期", ii).Value
130
+                    If DT1 >= DT2 Then
131
+                        PA = 流水帳_dgv("index", ii).Value : PA1 = 流水帳_dgv("開始日期", ii).Value : PA2 = 流水帳_dgv("結束日期", ii).Value
132
+                        PA3 = 流水帳_dgv("網址", ii).Value : PA4 = 流水帳_dgv("帳戶", ii).Value : PA5 = 流水帳_dgv("隨機碼", ii).Value
133
+                        PA6 = 流水帳_dgv("名稱", ii).Value.ToString : PA7 = 流水帳_dgv("總量", ii).Value.ToString : PA8 = 流水帳_dgv("退水", ii).Value.ToString
134
+                        PA9 = 流水帳_dgv("中獎", ii).Value.ToString : PA10 = 流水帳_dgv("輸贏", ii).Value.ToString : PA11 = 流水帳_dgv("佔成輸贏", ii).Value.ToString
135
+                        PA12 = 流水帳_dgv("水倍差", ii).Value.ToString : PA13 = 流水帳_dgv("上繳金額", ii).Value.ToString : PA14 = 流水帳_dgv("自已總輸贏", ii).Value.ToString
136
+                        PA15 = 流水帳_dgv("上繳貢獻額", ii).Value.ToString : PA16 = 流水帳_dgv("貢獻額", ii).Value.ToString : PA17 = 流水帳_dgv("貢獻度", ii).Value.ToString
137
+                        PA18 = 流水帳_dgv("下注明細", ii).Value.ToString : PA19 = 流水帳_dgv("玩法明細", ii).Value.ToString : PA20 = 流水帳_dgv("調盤退水", ii).Value.ToString
138
+                        PA21 = 流水帳_dgv("調退實佔", ii).Value.ToString : PA22 = 流水帳_dgv("上繳", ii).Value.ToString : PA23 = 流水帳_dgv("會員", ii).Value.ToString
139
+                        PA24 = 流水帳_dgv("代理", ii).Value.ToString : PA25 = 流水帳_dgv("總代理", ii).Value.ToString : PA26 = 流水帳_dgv("股東", ii).Value.ToString
140
+                        PA27 = 流水帳_dgv("大股東", ii).Value.ToString : PA28 = 流水帳_dgv("客戶s", ii).Value.ToString : PA29 = 流水帳_dgv("總量s", ii).Value.ToString
141
+                        PA30 = 流水帳_dgv("中獎s", ii).Value.ToString : PA31 = 流水帳_dgv("輸贏s", ii).Value.ToString : PA32 = 流水帳_dgv("客戶小計s", ii).Value.ToString
142
+                        PA33 = 流水帳_dgv("代理小計s", ii).Value.ToString : PA34 = 流水帳_dgv("總代理小計s", ii).Value.ToString : PA35 = 流水帳_dgv("股東小計s", ii).Value.ToString
143
+                        PA36 = 流水帳_dgv("大股東小計s", ii).Value.ToString : PA37 = 流水帳_dgv("總監小計s", ii).Value.ToString : PA38 = 流水帳_dgv("個人所得s", ii).Value.ToString
144
+                        PA39 = 流水帳_dgv("水差s", ii).Value.ToString : PA40 = 流水帳_dgv("下注明細s", ii).Value.ToString : PA41 = 流水帳_dgv("查看對帳s", ii).Value.ToString
145
+                        PA42 = 流水帳_dgv("總監", ii).Value.ToString
146
+                        ConnOpen_備份1() : SQL_資料庫轉換4_刪除() : ConnOpen_備份2() : SQL_資料庫轉換4_刪除() : SQL_資料庫轉換4_新增()
147
+                    End If
148
+                Next : GA_ERP_SYS.ToolStripProgressBar1.Value = 0 : 最終數 = 0
149
+            Next : conn.Close() : ProgressBar1.Value = 0 : 最終數1 = 0 : MsgBox("資料庫轉移完成")
150
+        End If
142 151
     End Sub
143 152
     Private Sub 進度條1()
144 153
         平均數1 = 10000 / 資料數1

Loading…
Cancel
Save