B70340 1年前
コミット
76895c0fe6
69個のファイルの変更10451行の追加930行の削除
  1. バイナリ
      .vs/Calculator-SYS/FileContentIndex/107a53e9-c6b8-4ab9-8b55-1e20e2a09c3b.vsidx
  2. バイナリ
      .vs/Calculator-SYS/FileContentIndex/13b8f7ee-d98c-4ede-9cc7-5e4747538a36.vsidx
  3. バイナリ
      .vs/Calculator-SYS/FileContentIndex/1a7cd5ec-33a8-4132-b138-2cbbc61f0725.vsidx
  4. バイナリ
      .vs/Calculator-SYS/FileContentIndex/231cc0fc-3894-4942-85fe-8eb56718b74e.vsidx
  5. バイナリ
      .vs/Calculator-SYS/FileContentIndex/4af42555-c94d-45bb-8f32-a652ca16e702.vsidx
  6. バイナリ
      .vs/Calculator-SYS/FileContentIndex/9c1b4bdf-d0b5-4038-969c-dbb18ba46a6a.vsidx
  7. バイナリ
      .vs/Calculator-SYS/FileContentIndex/9e45cdfe-bf81-4fe1-b524-ec00e253320d.vsidx
  8. バイナリ
      .vs/Calculator-SYS/v17/.suo
  9. 349
    349
      Calculator-SYS/05、人事考勤系統/人員薪資.Designer.vb
  10. 10
    4
      Calculator-SYS/05、人事考勤系統/人員薪資.vb
  11. 20
    18
      Calculator-SYS/06、財務系統管理/每月零用金設定.vb
  12. 630
    0
      Calculator-SYS/06、財務系統管理/財務報表1.Designer.vb
  13. 123
    0
      Calculator-SYS/06、財務系統管理/財務報表1.resx
  14. 276
    0
      Calculator-SYS/06、財務系統管理/財務報表1.vb
  15. 1082
    0
      Calculator-SYS/06、財務系統管理/財務報表2.Designer.vb
  16. 120
    0
      Calculator-SYS/06、財務系統管理/財務報表2.resx
  17. 777
    0
      Calculator-SYS/06、財務系統管理/財務報表2.vb
  18. 1016
    0
      Calculator-SYS/06、財務系統管理/財務報表3.Designer.vb
  19. 126
    0
      Calculator-SYS/06、財務系統管理/財務報表3.resx
  20. 896
    0
      Calculator-SYS/06、財務系統管理/財務報表3.vb
  21. 2058
    0
      Calculator-SYS/06、財務系統管理/財務報表4.Designer.vb
  22. 120
    0
      Calculator-SYS/06、財務系統管理/財務報表4.resx
  23. 1054
    0
      Calculator-SYS/06、財務系統管理/財務報表4.vb
  24. 4
    3
      Calculator-SYS/06、財務系統管理/財物支付單申請_傳票.vb
  25. 2
    2
      Calculator-SYS/07、採購系統管理/供應商商品單價設定.vb
  26. 2
    2
      Calculator-SYS/07、採購系統管理/供應商管理.vb
  27. 2
    2
      Calculator-SYS/07、採購系統管理/供應商類別管理.vb
  28. 1
    1
      Calculator-SYS/07、採購系統管理/採購單一級核准.vb
  29. 3
    3
      Calculator-SYS/07、採購系統管理/採購單歷史檔案.vb
  30. 2
    2
      Calculator-SYS/07、採購系統管理/請購單核准.vb
  31. 82
    0
      Calculator-SYS/0、MyModule/模組/DGV進度條.vb
  32. 16
    11
      Calculator-SYS/0、MyModule/模組/GcmProc.vb
  33. 1
    1
      Calculator-SYS/0、MyModule/模組/SQL_連線狀態模組3.vb
  34. 0
    419
      Calculator-SYS/0、MyModule/資料庫/SQL_人事系統管理.vb
  35. 1042
    0
      Calculator-SYS/0、MyModule/資料庫/SQL_語法_1.vb
  36. 1
    1
      Calculator-SYS/0、MyModule/資料庫/SQL_語法_2.vb
  37. 1
    1
      Calculator-SYS/10、背景程式與對話視窗/個人帳號管理.vb
  38. 1
    1
      Calculator-SYS/10、背景程式與對話視窗/桌面捷徑設定.vb
  39. 45
    2
      Calculator-SYS/Calculator-SYS.vbproj
  40. 253
    22
      Calculator-SYS/HX_PGS_ERP_SYS.Designer.vb
  41. 102
    25
      Calculator-SYS/HX_PGS_ERP_SYS.vb
  42. 1
    1
      Calculator-SYS/LoginForm1.vb
  43. 30
    0
      Calculator-SYS/My Project/Resources.Designer.vb
  44. 43
    34
      Calculator-SYS/My Project/Resources.resx
  45. 1
    0
      Calculator-SYS/My Project/licenses.licx
  46. 79
    0
      Calculator-SYS/app.manifest
  47. バイナリ
      Calculator-SYS/bin/Debug/Calculator-SYS.exe
  48. バイナリ
      Calculator-SYS/bin/Debug/Calculator-SYS.pdb
  49. 16
    7
      Calculator-SYS/bin/Debug/Calculator-SYS.xml
  50. 1
    1
      Calculator-SYS/bin/Debug/LANGUAGE.txt
  51. 33
    6
      Calculator-SYS/bin/Debug/LANGUAGE_FILE.csv
  52. 3
    0
      Calculator-SYS/bin/Debug/LIN HSING HAO.txt
  53. 3
    0
      Calculator-SYS/bin/Debug/李協叡.txt
  54. バイナリ
      Calculator-SYS/obj/Debug/Calculator-SYS.exe
  55. バイナリ
      Calculator-SYS/obj/Debug/Calculator-SYS.pdb
  56. 1
    1
      Calculator-SYS/obj/Debug/Calculator-SYS.vbproj.CoreCompileInputs.cache
  57. 4
    0
      Calculator-SYS/obj/Debug/Calculator-SYS.vbproj.FileListAbsolute.txt
  58. バイナリ
      Calculator-SYS/obj/Debug/Calculator-SYS.vbproj.GenerateResource.cache
  59. 16
    7
      Calculator-SYS/obj/Debug/Calculator-SYS.xml
  60. バイナリ
      Calculator-SYS/obj/Debug/Calculator_SYS.Resources.resources
  61. バイナリ
      Calculator-SYS/obj/Debug/Calculator_SYS.財務報表1.resources
  62. バイナリ
      Calculator-SYS/obj/Debug/Calculator_SYS.財務報表2.resources
  63. バイナリ
      Calculator-SYS/obj/Debug/Calculator_SYS.財務報表3.resources
  64. バイナリ
      Calculator-SYS/obj/Debug/Calculator_SYS.財務報表4.resources
  65. バイナリ
      Calculator-SYS/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
  66. バイナリ
      Calculator-SYS/obj/Debug/TempPE/My Project.Resources.Designer.vb.dll
  67. バイナリ
      Calculator-SYS/圖片/0hxlogo1.png
  68. バイナリ
      Calculator-SYS/圖片/visa_2.png
  69. 3
    4
      Calculator-SYS/計算機.vb

バイナリ
.vs/Calculator-SYS/FileContentIndex/107a53e9-c6b8-4ab9-8b55-1e20e2a09c3b.vsidx ファイルの表示


バイナリ
.vs/Calculator-SYS/FileContentIndex/13b8f7ee-d98c-4ede-9cc7-5e4747538a36.vsidx ファイルの表示


バイナリ
.vs/Calculator-SYS/FileContentIndex/1a7cd5ec-33a8-4132-b138-2cbbc61f0725.vsidx ファイルの表示


バイナリ
.vs/Calculator-SYS/FileContentIndex/231cc0fc-3894-4942-85fe-8eb56718b74e.vsidx ファイルの表示


バイナリ
.vs/Calculator-SYS/FileContentIndex/470fcc7b-45e1-45a3-b67f-3571a98e8863.vsidx → .vs/Calculator-SYS/FileContentIndex/4af42555-c94d-45bb-8f32-a652ca16e702.vsidx ファイルの表示


バイナリ
.vs/Calculator-SYS/FileContentIndex/9c1b4bdf-d0b5-4038-969c-dbb18ba46a6a.vsidx ファイルの表示


バイナリ
.vs/Calculator-SYS/FileContentIndex/9e45cdfe-bf81-4fe1-b524-ec00e253320d.vsidx ファイルの表示


バイナリ
.vs/Calculator-SYS/v17/.suo ファイルの表示


+ 349
- 349
Calculator-SYS/05、人事考勤系統/人員薪資.Designer.vb ファイルの表示

@@ -22,22 +22,13 @@ Partial Class 人員薪資
22 22
     '請勿使用程式碼編輯器進行修改。
23 23
     <System.Diagnostics.DebuggerStepThrough()>
24 24
     Private Sub InitializeComponent()
25
-        Dim DataGridViewCellStyle11 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26
-        Dim DataGridViewCellStyle12 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27
-        Dim DataGridViewCellStyle13 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
28
-        Dim DataGridViewCellStyle14 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
29
-        Dim DataGridViewCellStyle15 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
30
-        Me.Label4 = New System.Windows.Forms.Label()
31
-        Me.月份2_cb = New System.Windows.Forms.ComboBox()
32
-        Me.Label5 = New System.Windows.Forms.Label()
33
-        Me.年份2_cb = New System.Windows.Forms.ComboBox()
34
-        Me.地區_cb = New System.Windows.Forms.ComboBox()
35
-        Me.級別_cb = New System.Windows.Forms.ComboBox()
36
-        Me.工人_ch = New System.Windows.Forms.CheckBox()
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()
37 30
         Me.清單1_dgv = New System.Windows.Forms.DataGridView()
38 31
         Me.總清單_dgv = New System.Windows.Forms.DataGridView()
39
-        Me.部門_cb = New System.Windows.Forms.ComboBox()
40
-        Me.語轉扭_bt = New System.Windows.Forms.Button()
41 32
         Me.群組輸入_ch = New System.Windows.Forms.CheckBox()
42 33
         Me.群組選擇_ch = New System.Windows.Forms.CheckBox()
43 34
         Me.Label2 = New System.Windows.Forms.Label()
@@ -46,17 +37,6 @@ Partial Class 人員薪資
46 37
         Me.DA3_bt = New System.Windows.Forms.Button()
47 38
         Me.DA2_bt = New System.Windows.Forms.Button()
48 39
         Me.DA1_bt = New System.Windows.Forms.Button()
49
-        Me.Panel2 = New System.Windows.Forms.Panel()
50
-        Me.虛擬表_dgv = New System.Windows.Forms.DataGridView()
51
-        Me.休假天數_nud = New System.Windows.Forms.NumericUpDown()
52
-        Me.群組_cb = New System.Windows.Forms.ComboBox()
53
-        Me.Label10 = New System.Windows.Forms.Label()
54
-        Me.平均每天_nud = New System.Windows.Forms.NumericUpDown()
55
-        Me.休假比例_nud = New System.Windows.Forms.NumericUpDown()
56
-        Me.Label6 = New System.Windows.Forms.Label()
57
-        Me.Label9 = New System.Windows.Forms.Label()
58
-        Me.可沖天數_nud = New System.Windows.Forms.NumericUpDown()
59
-        Me.Label3 = New System.Windows.Forms.Label()
60 40
         Me.星7_bt = New System.Windows.Forms.TextBox()
61 41
         Me.星6_bt = New System.Windows.Forms.TextBox()
62 42
         Me.星5_bt = New System.Windows.Forms.TextBox()
@@ -69,8 +49,6 @@ Partial Class 人員薪資
69 49
         Me.群組1_cb = New System.Windows.Forms.ComboBox()
70 50
         Me.視窗3_pl = New System.Windows.Forms.Panel()
71 51
         Me.Panel4 = New System.Windows.Forms.Panel()
72
-        Me.虛擬存檔_bt = New System.Windows.Forms.Button()
73
-        Me.清除_bt = New System.Windows.Forms.Button()
74 52
         Me.沖帳金額_nud = New System.Windows.Forms.NumericUpDown()
75 53
         Me.Label8 = New System.Windows.Forms.Label()
76 54
         Me.加班_nud = New System.Windows.Forms.NumericUpDown()
@@ -81,101 +59,50 @@ Partial Class 人員薪資
81 59
         Me.CanceL3_bt = New System.Windows.Forms.Button()
82 60
         Me.合計_dgv = New System.Windows.Forms.DataGridView()
83 61
         Me.重新讀取_bt = New System.Windows.Forms.Button()
62
+        Me.虛擬存檔_bt = New System.Windows.Forms.Button()
63
+        Me.清除_bt = New System.Windows.Forms.Button()
84 64
         Me.考勤調整_bt = New System.Windows.Forms.Button()
85 65
         Me.縮放2_bt = New System.Windows.Forms.Button()
66
+        Me.Panel2 = New System.Windows.Forms.Panel()
67
+        Me.虛擬表_dgv = New System.Windows.Forms.DataGridView()
68
+        Me.休假天數_nud = New System.Windows.Forms.NumericUpDown()
69
+        Me.群組_cb = New System.Windows.Forms.ComboBox()
70
+        Me.Label10 = New System.Windows.Forms.Label()
71
+        Me.平均每天_nud = New System.Windows.Forms.NumericUpDown()
72
+        Me.休假比例_nud = New System.Windows.Forms.NumericUpDown()
73
+        Me.Label6 = New System.Windows.Forms.Label()
74
+        Me.Label9 = New System.Windows.Forms.Label()
86 75
         Me.設定_bt = New System.Windows.Forms.Button()
76
+        Me.可沖天數_nud = New System.Windows.Forms.NumericUpDown()
77
+        Me.Label3 = New System.Windows.Forms.Label()
78
+        Me.年份2_cb = New System.Windows.Forms.ComboBox()
79
+        Me.Label5 = New System.Windows.Forms.Label()
80
+        Me.月份2_cb = New System.Windows.Forms.ComboBox()
81
+        Me.部門_cb = New System.Windows.Forms.ComboBox()
82
+        Me.Label4 = New System.Windows.Forms.Label()
83
+        Me.語轉扭_bt = New System.Windows.Forms.Button()
84
+        Me.地區_cb = New System.Windows.Forms.ComboBox()
85
+        Me.級別_cb = New System.Windows.Forms.ComboBox()
86
+        Me.工人_ch = New System.Windows.Forms.CheckBox()
87 87
         Me.列印_bt = New System.Windows.Forms.Button()
88 88
         Me.存檔_bt = New System.Windows.Forms.Button()
89 89
         Me.系統說明_bt = New System.Windows.Forms.Button()
90 90
         CType(Me.清單1_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
91 91
         CType(Me.總清單_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
92
-        Me.Panel2.SuspendLayout()
93
-        CType(Me.虛擬表_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
94
-        CType(Me.休假天數_nud, System.ComponentModel.ISupportInitialize).BeginInit()
95
-        CType(Me.平均每天_nud, System.ComponentModel.ISupportInitialize).BeginInit()
96
-        CType(Me.休假比例_nud, System.ComponentModel.ISupportInitialize).BeginInit()
97
-        CType(Me.可沖天數_nud, System.ComponentModel.ISupportInitialize).BeginInit()
98 92
         Me.視窗3_pl.SuspendLayout()
99 93
         Me.Panel4.SuspendLayout()
100 94
         CType(Me.沖帳金額_nud, System.ComponentModel.ISupportInitialize).BeginInit()
101 95
         CType(Me.加班_nud, System.ComponentModel.ISupportInitialize).BeginInit()
102 96
         CType(Me.總數_nud, System.ComponentModel.ISupportInitialize).BeginInit()
103 97
         CType(Me.合計_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
98
+        Me.Panel2.SuspendLayout()
99
+        CType(Me.虛擬表_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
100
+        CType(Me.休假天數_nud, System.ComponentModel.ISupportInitialize).BeginInit()
101
+        CType(Me.平均每天_nud, System.ComponentModel.ISupportInitialize).BeginInit()
102
+        CType(Me.休假比例_nud, System.ComponentModel.ISupportInitialize).BeginInit()
103
+        CType(Me.可沖天數_nud, System.ComponentModel.ISupportInitialize).BeginInit()
104 104
         Me.SuspendLayout()
105 105
         '
106
-        'Label4
107
-        '
108
-        Me.Label4.AutoSize = True
109
-        Me.Label4.BackColor = System.Drawing.Color.Transparent
110
-        Me.Label4.Location = New System.Drawing.Point(107, 7)
111
-        Me.Label4.Name = "Label4"
112
-        Me.Label4.Size = New System.Drawing.Size(34, 16)
113
-        Me.Label4.TabIndex = 1931
114
-        Me.Label4.Text = "Mon"
115
-        '
116
-        '月份2_cb
117
-        '
118
-        Me.月份2_cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.Simple
119
-        Me.月份2_cb.FormattingEnabled = True
120
-        Me.月份2_cb.Items.AddRange(New Object() {"01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"})
121
-        Me.月份2_cb.Location = New System.Drawing.Point(141, 3)
122
-        Me.月份2_cb.Name = "月份2_cb"
123
-        Me.月份2_cb.Size = New System.Drawing.Size(46, 24)
124
-        Me.月份2_cb.TabIndex = 1933
125
-        '
126
-        'Label5
127
-        '
128
-        Me.Label5.AutoSize = True
129
-        Me.Label5.BackColor = System.Drawing.Color.Transparent
130
-        Me.Label5.Location = New System.Drawing.Point(12, 7)
131
-        Me.Label5.Name = "Label5"
132
-        Me.Label5.Size = New System.Drawing.Size(32, 16)
133
-        Me.Label5.TabIndex = 1930
134
-        Me.Label5.Text = "Year"
135
-        '
136
-        '年份2_cb
137
-        '
138
-        Me.年份2_cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.Simple
139
-        Me.年份2_cb.FormattingEnabled = True
140
-        Me.年份2_cb.Items.AddRange(New Object() {"2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026", "2027", "2028", "2029", "2030"})
141
-        Me.年份2_cb.Location = New System.Drawing.Point(44, 3)
142
-        Me.年份2_cb.Name = "年份2_cb"
143
-        Me.年份2_cb.Size = New System.Drawing.Size(61, 24)
144
-        Me.年份2_cb.TabIndex = 1932
145
-        '
146
-        '地區_cb
147
-        '
148
-        Me.地區_cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
149
-        Me.地區_cb.FormattingEnabled = True
150
-        Me.地區_cb.Items.AddRange(New Object() {"", "kantor", "Lokasi konstruksi"})
151
-        Me.地區_cb.Location = New System.Drawing.Point(58, 29)
152
-        Me.地區_cb.Name = "地區_cb"
153
-        Me.地區_cb.Size = New System.Drawing.Size(129, 24)
154
-        Me.地區_cb.TabIndex = 1926
155
-        '
156
-        '級別_cb
157
-        '
158
-        Me.級別_cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
159
-        Me.級別_cb.FormattingEnabled = True
160
-        Me.級別_cb.Items.AddRange(New Object() {"01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"})
161
-        Me.級別_cb.Location = New System.Drawing.Point(7, 29)
162
-        Me.級別_cb.Name = "級別_cb"
163
-        Me.級別_cb.Size = New System.Drawing.Size(46, 24)
164
-        Me.級別_cb.TabIndex = 1925
165
-        '
166
-        '工人_ch
167
-        '
168
-        Me.工人_ch.AutoSize = True
169
-        Me.工人_ch.BackColor = System.Drawing.Color.Transparent
170
-        Me.工人_ch.Checked = True
171
-        Me.工人_ch.CheckState = System.Windows.Forms.CheckState.Checked
172
-        Me.工人_ch.Location = New System.Drawing.Point(133, 176)
173
-        Me.工人_ch.Name = "工人_ch"
174
-        Me.工人_ch.Size = New System.Drawing.Size(131, 20)
175
-        Me.工人_ch.TabIndex = 1924
176
-        Me.工人_ch.Text = "Pekerja Sementara"
177
-        Me.工人_ch.UseVisualStyleBackColor = False
178
-        '
179 106
         '清單1_dgv
180 107
         '
181 108
         Me.清單1_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
@@ -188,8 +115,8 @@ Partial Class 人員薪資
188 115
         Me.清單1_dgv.Location = New System.Drawing.Point(3, 35)
189 116
         Me.清單1_dgv.Name = "清單1_dgv"
190 117
         Me.清單1_dgv.RowHeadersWidth = 5
191
-        DataGridViewCellStyle11.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
192
-        Me.清單1_dgv.RowsDefaultCellStyle = DataGridViewCellStyle11
118
+        DataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
119
+        Me.清單1_dgv.RowsDefaultCellStyle = DataGridViewCellStyle1
193 120
         Me.清單1_dgv.RowTemplate.Height = 24
194 121
         Me.清單1_dgv.Size = New System.Drawing.Size(1445, 637)
195 122
         Me.清單1_dgv.TabIndex = 1386
@@ -202,44 +129,23 @@ Partial Class 人員薪資
202 129
         Me.總清單_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
203 130
         Me.總清單_dgv.BackgroundColor = System.Drawing.Color.White
204 131
         Me.總清單_dgv.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
205
-        DataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
206
-        DataGridViewCellStyle12.BackColor = System.Drawing.SystemColors.Control
207
-        DataGridViewCellStyle12.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
208
-        DataGridViewCellStyle12.ForeColor = System.Drawing.SystemColors.WindowText
209
-        DataGridViewCellStyle12.SelectionBackColor = System.Drawing.SystemColors.Highlight
210
-        DataGridViewCellStyle12.SelectionForeColor = System.Drawing.SystemColors.HighlightText
211
-        Me.總清單_dgv.ColumnHeadersDefaultCellStyle = DataGridViewCellStyle12
132
+        DataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
133
+        DataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control
134
+        DataGridViewCellStyle2.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
135
+        DataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText
136
+        DataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight
137
+        DataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText
138
+        Me.總清單_dgv.ColumnHeadersDefaultCellStyle = DataGridViewCellStyle2
212 139
         Me.總清單_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
213 140
         Me.總清單_dgv.Location = New System.Drawing.Point(3, 35)
214 141
         Me.總清單_dgv.Name = "總清單_dgv"
215 142
         Me.總清單_dgv.RowHeadersWidth = 5
216
-        DataGridViewCellStyle13.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
217
-        Me.總清單_dgv.RowsDefaultCellStyle = DataGridViewCellStyle13
143
+        DataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
144
+        Me.總清單_dgv.RowsDefaultCellStyle = DataGridViewCellStyle3
218 145
         Me.總清單_dgv.RowTemplate.Height = 24
219 146
         Me.總清單_dgv.Size = New System.Drawing.Size(1445, 637)
220 147
         Me.總清單_dgv.TabIndex = 1922
221 148
         '
222
-        '部門_cb
223
-        '
224
-        Me.部門_cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
225
-        Me.部門_cb.FormattingEnabled = True
226
-        Me.部門_cb.Location = New System.Drawing.Point(30, 59)
227
-        Me.部門_cb.Name = "部門_cb"
228
-        Me.部門_cb.Size = New System.Drawing.Size(166, 24)
229
-        Me.部門_cb.TabIndex = 1921
230
-        '
231
-        '語轉扭_bt
232
-        '
233
-        Me.語轉扭_bt.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
234
-        Me.語轉扭_bt.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
235
-        Me.語轉扭_bt.ForeColor = System.Drawing.Color.Black
236
-        Me.語轉扭_bt.Location = New System.Drawing.Point(2, 59)
237
-        Me.語轉扭_bt.Name = "語轉扭_bt"
238
-        Me.語轉扭_bt.Size = New System.Drawing.Size(22, 22)
239
-        Me.語轉扭_bt.TabIndex = 1898
240
-        Me.語轉扭_bt.Text = "L"
241
-        Me.語轉扭_bt.UseVisualStyleBackColor = True
242
-        '
243 149
         '群組輸入_ch
244 150
         '
245 151
         Me.群組輸入_ch.AutoSize = True
@@ -324,192 +230,57 @@ Partial Class 人員薪資
324 230
         Me.DA1_bt.Text = "Minggu lalu"
325 231
         Me.DA1_bt.UseVisualStyleBackColor = True
326 232
         '
327
-        'Panel2
233
+        '星7_bt
328 234
         '
329
-        Me.Panel2.Controls.Add(Me.虛擬表_dgv)
330
-        Me.Panel2.Controls.Add(Me.休假天數_nud)
331
-        Me.Panel2.Controls.Add(Me.群組_cb)
332
-        Me.Panel2.Controls.Add(Me.Label10)
333
-        Me.Panel2.Controls.Add(Me.平均每天_nud)
334
-        Me.Panel2.Controls.Add(Me.休假比例_nud)
335
-        Me.Panel2.Controls.Add(Me.Label6)
336
-        Me.Panel2.Controls.Add(Me.Label9)
337
-        Me.Panel2.Controls.Add(Me.設定_bt)
338
-        Me.Panel2.Controls.Add(Me.可沖天數_nud)
339
-        Me.Panel2.Controls.Add(Me.Label3)
340
-        Me.Panel2.Controls.Add(Me.年份2_cb)
341
-        Me.Panel2.Controls.Add(Me.Label5)
342
-        Me.Panel2.Controls.Add(Me.月份2_cb)
343
-        Me.Panel2.Controls.Add(Me.部門_cb)
344
-        Me.Panel2.Controls.Add(Me.Label4)
345
-        Me.Panel2.Controls.Add(Me.語轉扭_bt)
346
-        Me.Panel2.Controls.Add(Me.地區_cb)
347
-        Me.Panel2.Controls.Add(Me.級別_cb)
348
-        Me.Panel2.Controls.Add(Me.工人_ch)
349
-        Me.Panel2.Location = New System.Drawing.Point(146, 128)
350
-        Me.Panel2.Name = "Panel2"
351
-        Me.Panel2.Size = New System.Drawing.Size(455, 236)
352
-        Me.Panel2.TabIndex = 1946
235
+        Me.星7_bt.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
236
+        Me.星7_bt.Location = New System.Drawing.Point(1075, 37)
237
+        Me.星7_bt.Multiline = True
238
+        Me.星7_bt.Name = "星7_bt"
239
+        Me.星7_bt.Size = New System.Drawing.Size(120, 22)
240
+        Me.星7_bt.TabIndex = 1940
241
+        Me.星7_bt.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
353 242
         '
354
-        '虛擬表_dgv
243
+        '星6_bt
355 244
         '
356
-        Me.虛擬表_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
357
-            Or System.Windows.Forms.AnchorStyles.Left) _
358
-            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
359
-        Me.虛擬表_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
360
-        Me.虛擬表_dgv.BackgroundColor = System.Drawing.Color.White
361
-        Me.虛擬表_dgv.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
362
-        Me.虛擬表_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
363
-        Me.虛擬表_dgv.Location = New System.Drawing.Point(270, 116)
364
-        Me.虛擬表_dgv.Name = "虛擬表_dgv"
365
-        Me.虛擬表_dgv.RowHeadersWidth = 5
366
-        DataGridViewCellStyle14.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
367
-        Me.虛擬表_dgv.RowsDefaultCellStyle = DataGridViewCellStyle14
368
-        Me.虛擬表_dgv.RowTemplate.Height = 24
369
-        Me.虛擬表_dgv.Size = New System.Drawing.Size(176, 103)
370
-        Me.虛擬表_dgv.TabIndex = 1954
245
+        Me.星6_bt.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
246
+        Me.星6_bt.Location = New System.Drawing.Point(949, 37)
247
+        Me.星6_bt.Multiline = True
248
+        Me.星6_bt.Name = "星6_bt"
249
+        Me.星6_bt.Size = New System.Drawing.Size(120, 22)
250
+        Me.星6_bt.TabIndex = 1939
251
+        Me.星6_bt.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
371 252
         '
372
-        '休假天數_nud
253
+        '星5_bt
373 254
         '
374
-        Me.休假天數_nud.Location = New System.Drawing.Point(325, 30)
375
-        Me.休假天數_nud.Maximum = New Decimal(New Integer() {10000000, 0, 0, 0})
376
-        Me.休假天數_nud.Name = "休假天數_nud"
377
-        Me.休假天數_nud.Size = New System.Drawing.Size(127, 23)
378
-        Me.休假天數_nud.TabIndex = 1943
379
-        Me.休假天數_nud.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
380
-        Me.休假天數_nud.ThousandsSeparator = True
255
+        Me.星5_bt.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
256
+        Me.星5_bt.Location = New System.Drawing.Point(823, 37)
257
+        Me.星5_bt.Multiline = True
258
+        Me.星5_bt.Name = "星5_bt"
259
+        Me.星5_bt.Size = New System.Drawing.Size(120, 22)
260
+        Me.星5_bt.TabIndex = 1938
261
+        Me.星5_bt.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
381 262
         '
382
-        '群組_cb
263
+        '星4_bt
383 264
         '
384
-        Me.群組_cb.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
385
-        Me.群組_cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.Simple
386
-        Me.群組_cb.FormattingEnabled = True
387
-        Me.群組_cb.Items.AddRange(New Object() {"01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"})
388
-        Me.群組_cb.Location = New System.Drawing.Point(42, 203)
389
-        Me.群組_cb.Name = "群組_cb"
390
-        Me.群組_cb.Size = New System.Drawing.Size(212, 24)
391
-        Me.群組_cb.TabIndex = 1951
265
+        Me.星4_bt.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
266
+        Me.星4_bt.Location = New System.Drawing.Point(697, 37)
267
+        Me.星4_bt.Multiline = True
268
+        Me.星4_bt.Name = "星4_bt"
269
+        Me.星4_bt.Size = New System.Drawing.Size(120, 22)
270
+        Me.星4_bt.TabIndex = 1937
271
+        Me.星4_bt.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
392 272
         '
393
-        'Label10
273
+        '星3_bt
394 274
         '
395
-        Me.Label10.AutoSize = True
396
-        Me.Label10.BackColor = System.Drawing.Color.Transparent
397
-        Me.Label10.Location = New System.Drawing.Point(264, 33)
398
-        Me.Label10.Name = "Label10"
399
-        Me.Label10.Size = New System.Drawing.Size(55, 16)
400
-        Me.Label10.TabIndex = 1944
401
-        Me.Label10.Text = "休假天數"
275
+        Me.星3_bt.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
276
+        Me.星3_bt.Location = New System.Drawing.Point(565, 37)
277
+        Me.星3_bt.Multiline = True
278
+        Me.星3_bt.Name = "星3_bt"
279
+        Me.星3_bt.Size = New System.Drawing.Size(120, 22)
280
+        Me.星3_bt.TabIndex = 1936
281
+        Me.星3_bt.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
402 282
         '
403
-        '平均每天_nud
404
-        '
405
-        Me.平均每天_nud.Location = New System.Drawing.Point(325, 85)
406
-        Me.平均每天_nud.Maximum = New Decimal(New Integer() {1410065408, 2, 0, 0})
407
-        Me.平均每天_nud.Name = "平均每天_nud"
408
-        Me.平均每天_nud.Size = New System.Drawing.Size(127, 23)
409
-        Me.平均每天_nud.TabIndex = 1935
410
-        Me.平均每天_nud.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
411
-        Me.平均每天_nud.ThousandsSeparator = True
412
-        '
413
-        '休假比例_nud
414
-        '
415
-        Me.休假比例_nud.Location = New System.Drawing.Point(325, 4)
416
-        Me.休假比例_nud.Name = "休假比例_nud"
417
-        Me.休假比例_nud.Size = New System.Drawing.Size(127, 23)
418
-        Me.休假比例_nud.TabIndex = 1941
419
-        Me.休假比例_nud.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
420
-        Me.休假比例_nud.ThousandsSeparator = True
421
-        '
422
-        'Label6
423
-        '
424
-        Me.Label6.AutoSize = True
425
-        Me.Label6.BackColor = System.Drawing.Color.Transparent
426
-        Me.Label6.Location = New System.Drawing.Point(264, 88)
427
-        Me.Label6.Name = "Label6"
428
-        Me.Label6.Size = New System.Drawing.Size(55, 16)
429
-        Me.Label6.TabIndex = 1936
430
-        Me.Label6.Text = "平均每天"
431
-        '
432
-        'Label9
433
-        '
434
-        Me.Label9.AutoSize = True
435
-        Me.Label9.BackColor = System.Drawing.Color.Transparent
436
-        Me.Label9.Location = New System.Drawing.Point(264, 7)
437
-        Me.Label9.Name = "Label9"
438
-        Me.Label9.Size = New System.Drawing.Size(55, 16)
439
-        Me.Label9.TabIndex = 1942
440
-        Me.Label9.Text = "休假比例"
441
-        '
442
-        '可沖天數_nud
443
-        '
444
-        Me.可沖天數_nud.Location = New System.Drawing.Point(325, 58)
445
-        Me.可沖天數_nud.Maximum = New Decimal(New Integer() {1410065408, 2, 0, 0})
446
-        Me.可沖天數_nud.Name = "可沖天數_nud"
447
-        Me.可沖天數_nud.Size = New System.Drawing.Size(127, 23)
448
-        Me.可沖天數_nud.TabIndex = 1933
449
-        Me.可沖天數_nud.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
450
-        Me.可沖天數_nud.ThousandsSeparator = True
451
-        '
452
-        'Label3
453
-        '
454
-        Me.Label3.AutoSize = True
455
-        Me.Label3.BackColor = System.Drawing.Color.Transparent
456
-        Me.Label3.Location = New System.Drawing.Point(264, 61)
457
-        Me.Label3.Name = "Label3"
458
-        Me.Label3.Size = New System.Drawing.Size(55, 16)
459
-        Me.Label3.TabIndex = 1934
460
-        Me.Label3.Text = "可沖天數"
461
-        '
462
-        '星7_bt
463
-        '
464
-        Me.星7_bt.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
465
-        Me.星7_bt.Location = New System.Drawing.Point(1075, 37)
466
-        Me.星7_bt.Multiline = True
467
-        Me.星7_bt.Name = "星7_bt"
468
-        Me.星7_bt.Size = New System.Drawing.Size(120, 22)
469
-        Me.星7_bt.TabIndex = 1940
470
-        Me.星7_bt.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
471
-        '
472
-        '星6_bt
473
-        '
474
-        Me.星6_bt.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
475
-        Me.星6_bt.Location = New System.Drawing.Point(949, 37)
476
-        Me.星6_bt.Multiline = True
477
-        Me.星6_bt.Name = "星6_bt"
478
-        Me.星6_bt.Size = New System.Drawing.Size(120, 22)
479
-        Me.星6_bt.TabIndex = 1939
480
-        Me.星6_bt.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
481
-        '
482
-        '星5_bt
483
-        '
484
-        Me.星5_bt.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
485
-        Me.星5_bt.Location = New System.Drawing.Point(823, 37)
486
-        Me.星5_bt.Multiline = True
487
-        Me.星5_bt.Name = "星5_bt"
488
-        Me.星5_bt.Size = New System.Drawing.Size(120, 22)
489
-        Me.星5_bt.TabIndex = 1938
490
-        Me.星5_bt.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
491
-        '
492
-        '星4_bt
493
-        '
494
-        Me.星4_bt.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
495
-        Me.星4_bt.Location = New System.Drawing.Point(697, 37)
496
-        Me.星4_bt.Multiline = True
497
-        Me.星4_bt.Name = "星4_bt"
498
-        Me.星4_bt.Size = New System.Drawing.Size(120, 22)
499
-        Me.星4_bt.TabIndex = 1937
500
-        Me.星4_bt.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
501
-        '
502
-        '星3_bt
503
-        '
504
-        Me.星3_bt.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
505
-        Me.星3_bt.Location = New System.Drawing.Point(565, 37)
506
-        Me.星3_bt.Multiline = True
507
-        Me.星3_bt.Name = "星3_bt"
508
-        Me.星3_bt.Size = New System.Drawing.Size(120, 22)
509
-        Me.星3_bt.TabIndex = 1936
510
-        Me.星3_bt.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
511
-        '
512
-        '星2_bt
283
+        '星2_bt
513 284
         '
514 285
         Me.星2_bt.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
515 286
         Me.星2_bt.Location = New System.Drawing.Point(439, 37)
@@ -596,32 +367,6 @@ Partial Class 人員薪資
596 367
         Me.Panel4.Size = New System.Drawing.Size(204, 131)
597 368
         Me.Panel4.TabIndex = 1367
598 369
         '
599
-        '虛擬存檔_bt
600
-        '
601
-        Me.虛擬存檔_bt.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
602
-        Me.虛擬存檔_bt.BackgroundImage = Global.Calculator_SYS.My.Resources.Resources.SAVER
603
-        Me.虛擬存檔_bt.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom
604
-        Me.虛擬存檔_bt.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
605
-        Me.虛擬存檔_bt.ForeColor = System.Drawing.Color.DarkGreen
606
-        Me.虛擬存檔_bt.Location = New System.Drawing.Point(155, 83)
607
-        Me.虛擬存檔_bt.Name = "虛擬存檔_bt"
608
-        Me.虛擬存檔_bt.Size = New System.Drawing.Size(40, 40)
609
-        Me.虛擬存檔_bt.TabIndex = 1942
610
-        Me.虛擬存檔_bt.UseVisualStyleBackColor = True
611
-        '
612
-        '清除_bt
613
-        '
614
-        Me.清除_bt.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
615
-        Me.清除_bt.BackgroundImage = Global.Calculator_SYS.My.Resources.Resources.Close
616
-        Me.清除_bt.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom
617
-        Me.清除_bt.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
618
-        Me.清除_bt.ForeColor = System.Drawing.Color.DarkGreen
619
-        Me.清除_bt.Location = New System.Drawing.Point(50, 83)
620
-        Me.清除_bt.Name = "清除_bt"
621
-        Me.清除_bt.Size = New System.Drawing.Size(40, 40)
622
-        Me.清除_bt.TabIndex = 1941
623
-        Me.清除_bt.UseVisualStyleBackColor = True
624
-        '
625 370
         '沖帳金額_nud
626 371
         '
627 372
         Me.沖帳金額_nud.Location = New System.Drawing.Point(87, 56)
@@ -717,8 +462,8 @@ Partial Class 人員薪資
717 462
         Me.合計_dgv.Location = New System.Drawing.Point(3, 671)
718 463
         Me.合計_dgv.Name = "合計_dgv"
719 464
         Me.合計_dgv.RowHeadersWidth = 5
720
-        DataGridViewCellStyle15.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
721
-        Me.合計_dgv.RowsDefaultCellStyle = DataGridViewCellStyle15
465
+        DataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
466
+        Me.合計_dgv.RowsDefaultCellStyle = DataGridViewCellStyle4
722 467
         Me.合計_dgv.RowTemplate.Height = 24
723 468
         Me.合計_dgv.Size = New System.Drawing.Size(1445, 34)
724 469
         Me.合計_dgv.TabIndex = 1955
@@ -735,6 +480,32 @@ Partial Class 人員薪資
735 480
         Me.重新讀取_bt.TabIndex = 1954
736 481
         Me.重新讀取_bt.UseVisualStyleBackColor = True
737 482
         '
483
+        '虛擬存檔_bt
484
+        '
485
+        Me.虛擬存檔_bt.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
486
+        Me.虛擬存檔_bt.BackgroundImage = Global.Calculator_SYS.My.Resources.Resources.SAVER
487
+        Me.虛擬存檔_bt.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom
488
+        Me.虛擬存檔_bt.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
489
+        Me.虛擬存檔_bt.ForeColor = System.Drawing.Color.DarkGreen
490
+        Me.虛擬存檔_bt.Location = New System.Drawing.Point(155, 83)
491
+        Me.虛擬存檔_bt.Name = "虛擬存檔_bt"
492
+        Me.虛擬存檔_bt.Size = New System.Drawing.Size(40, 40)
493
+        Me.虛擬存檔_bt.TabIndex = 1942
494
+        Me.虛擬存檔_bt.UseVisualStyleBackColor = True
495
+        '
496
+        '清除_bt
497
+        '
498
+        Me.清除_bt.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
499
+        Me.清除_bt.BackgroundImage = Global.Calculator_SYS.My.Resources.Resources.Close
500
+        Me.清除_bt.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom
501
+        Me.清除_bt.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
502
+        Me.清除_bt.ForeColor = System.Drawing.Color.DarkGreen
503
+        Me.清除_bt.Location = New System.Drawing.Point(50, 83)
504
+        Me.清除_bt.Name = "清除_bt"
505
+        Me.清除_bt.Size = New System.Drawing.Size(40, 40)
506
+        Me.清除_bt.TabIndex = 1941
507
+        Me.清除_bt.UseVisualStyleBackColor = True
508
+        '
738 509
         '考勤調整_bt
739 510
         '
740 511
         Me.考勤調整_bt.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
@@ -761,6 +532,121 @@ Partial Class 人員薪資
761 532
         Me.縮放2_bt.TabIndex = 1948
762 533
         Me.縮放2_bt.UseVisualStyleBackColor = True
763 534
         '
535
+        'Panel2
536
+        '
537
+        Me.Panel2.Controls.Add(Me.虛擬表_dgv)
538
+        Me.Panel2.Controls.Add(Me.休假天數_nud)
539
+        Me.Panel2.Controls.Add(Me.群組_cb)
540
+        Me.Panel2.Controls.Add(Me.Label10)
541
+        Me.Panel2.Controls.Add(Me.平均每天_nud)
542
+        Me.Panel2.Controls.Add(Me.休假比例_nud)
543
+        Me.Panel2.Controls.Add(Me.Label6)
544
+        Me.Panel2.Controls.Add(Me.Label9)
545
+        Me.Panel2.Controls.Add(Me.設定_bt)
546
+        Me.Panel2.Controls.Add(Me.可沖天數_nud)
547
+        Me.Panel2.Controls.Add(Me.Label3)
548
+        Me.Panel2.Controls.Add(Me.年份2_cb)
549
+        Me.Panel2.Controls.Add(Me.Label5)
550
+        Me.Panel2.Controls.Add(Me.月份2_cb)
551
+        Me.Panel2.Controls.Add(Me.部門_cb)
552
+        Me.Panel2.Controls.Add(Me.Label4)
553
+        Me.Panel2.Controls.Add(Me.語轉扭_bt)
554
+        Me.Panel2.Controls.Add(Me.地區_cb)
555
+        Me.Panel2.Controls.Add(Me.級別_cb)
556
+        Me.Panel2.Controls.Add(Me.工人_ch)
557
+        Me.Panel2.Location = New System.Drawing.Point(146, 128)
558
+        Me.Panel2.Name = "Panel2"
559
+        Me.Panel2.Size = New System.Drawing.Size(455, 236)
560
+        Me.Panel2.TabIndex = 1946
561
+        '
562
+        '虛擬表_dgv
563
+        '
564
+        Me.虛擬表_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
565
+            Or System.Windows.Forms.AnchorStyles.Left) _
566
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
567
+        Me.虛擬表_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
568
+        Me.虛擬表_dgv.BackgroundColor = System.Drawing.Color.White
569
+        Me.虛擬表_dgv.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
570
+        Me.虛擬表_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
571
+        Me.虛擬表_dgv.Location = New System.Drawing.Point(270, 116)
572
+        Me.虛擬表_dgv.Name = "虛擬表_dgv"
573
+        Me.虛擬表_dgv.RowHeadersWidth = 5
574
+        DataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
575
+        Me.虛擬表_dgv.RowsDefaultCellStyle = DataGridViewCellStyle5
576
+        Me.虛擬表_dgv.RowTemplate.Height = 24
577
+        Me.虛擬表_dgv.Size = New System.Drawing.Size(176, 103)
578
+        Me.虛擬表_dgv.TabIndex = 1954
579
+        '
580
+        '休假天數_nud
581
+        '
582
+        Me.休假天數_nud.Location = New System.Drawing.Point(325, 30)
583
+        Me.休假天數_nud.Maximum = New Decimal(New Integer() {10000000, 0, 0, 0})
584
+        Me.休假天數_nud.Name = "休假天數_nud"
585
+        Me.休假天數_nud.Size = New System.Drawing.Size(127, 23)
586
+        Me.休假天數_nud.TabIndex = 1943
587
+        Me.休假天數_nud.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
588
+        Me.休假天數_nud.ThousandsSeparator = True
589
+        '
590
+        '群組_cb
591
+        '
592
+        Me.群組_cb.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
593
+        Me.群組_cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.Simple
594
+        Me.群組_cb.FormattingEnabled = True
595
+        Me.群組_cb.Items.AddRange(New Object() {"01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"})
596
+        Me.群組_cb.Location = New System.Drawing.Point(42, 203)
597
+        Me.群組_cb.Name = "群組_cb"
598
+        Me.群組_cb.Size = New System.Drawing.Size(212, 24)
599
+        Me.群組_cb.TabIndex = 1951
600
+        '
601
+        'Label10
602
+        '
603
+        Me.Label10.AutoSize = True
604
+        Me.Label10.BackColor = System.Drawing.Color.Transparent
605
+        Me.Label10.Location = New System.Drawing.Point(264, 33)
606
+        Me.Label10.Name = "Label10"
607
+        Me.Label10.Size = New System.Drawing.Size(55, 16)
608
+        Me.Label10.TabIndex = 1944
609
+        Me.Label10.Text = "休假天數"
610
+        '
611
+        '平均每天_nud
612
+        '
613
+        Me.平均每天_nud.Location = New System.Drawing.Point(325, 85)
614
+        Me.平均每天_nud.Maximum = New Decimal(New Integer() {1410065408, 2, 0, 0})
615
+        Me.平均每天_nud.Name = "平均每天_nud"
616
+        Me.平均每天_nud.Size = New System.Drawing.Size(127, 23)
617
+        Me.平均每天_nud.TabIndex = 1935
618
+        Me.平均每天_nud.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
619
+        Me.平均每天_nud.ThousandsSeparator = True
620
+        '
621
+        '休假比例_nud
622
+        '
623
+        Me.休假比例_nud.Location = New System.Drawing.Point(325, 4)
624
+        Me.休假比例_nud.Name = "休假比例_nud"
625
+        Me.休假比例_nud.Size = New System.Drawing.Size(127, 23)
626
+        Me.休假比例_nud.TabIndex = 1941
627
+        Me.休假比例_nud.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
628
+        Me.休假比例_nud.ThousandsSeparator = True
629
+        '
630
+        'Label6
631
+        '
632
+        Me.Label6.AutoSize = True
633
+        Me.Label6.BackColor = System.Drawing.Color.Transparent
634
+        Me.Label6.Location = New System.Drawing.Point(264, 88)
635
+        Me.Label6.Name = "Label6"
636
+        Me.Label6.Size = New System.Drawing.Size(55, 16)
637
+        Me.Label6.TabIndex = 1936
638
+        Me.Label6.Text = "平均每天"
639
+        '
640
+        'Label9
641
+        '
642
+        Me.Label9.AutoSize = True
643
+        Me.Label9.BackColor = System.Drawing.Color.Transparent
644
+        Me.Label9.Location = New System.Drawing.Point(264, 7)
645
+        Me.Label9.Name = "Label9"
646
+        Me.Label9.Size = New System.Drawing.Size(55, 16)
647
+        Me.Label9.TabIndex = 1942
648
+        Me.Label9.Text = "休假比例"
649
+        '
764 650
         '設定_bt
765 651
         '
766 652
         Me.設定_bt.BackgroundImage = Global.Calculator_SYS.My.Resources.Resources.system
@@ -773,6 +659,120 @@ Partial Class 人員薪資
773 659
         Me.設定_bt.TabIndex = 1947
774 660
         Me.設定_bt.UseVisualStyleBackColor = True
775 661
         '
662
+        '可沖天數_nud
663
+        '
664
+        Me.可沖天數_nud.Location = New System.Drawing.Point(325, 58)
665
+        Me.可沖天數_nud.Maximum = New Decimal(New Integer() {1410065408, 2, 0, 0})
666
+        Me.可沖天數_nud.Name = "可沖天數_nud"
667
+        Me.可沖天數_nud.Size = New System.Drawing.Size(127, 23)
668
+        Me.可沖天數_nud.TabIndex = 1933
669
+        Me.可沖天數_nud.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
670
+        Me.可沖天數_nud.ThousandsSeparator = True
671
+        '
672
+        'Label3
673
+        '
674
+        Me.Label3.AutoSize = True
675
+        Me.Label3.BackColor = System.Drawing.Color.Transparent
676
+        Me.Label3.Location = New System.Drawing.Point(264, 61)
677
+        Me.Label3.Name = "Label3"
678
+        Me.Label3.Size = New System.Drawing.Size(55, 16)
679
+        Me.Label3.TabIndex = 1934
680
+        Me.Label3.Text = "可沖天數"
681
+        '
682
+        '年份2_cb
683
+        '
684
+        Me.年份2_cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.Simple
685
+        Me.年份2_cb.FormattingEnabled = True
686
+        Me.年份2_cb.Items.AddRange(New Object() {"2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026", "2027", "2028", "2029", "2030"})
687
+        Me.年份2_cb.Location = New System.Drawing.Point(44, 3)
688
+        Me.年份2_cb.Name = "年份2_cb"
689
+        Me.年份2_cb.Size = New System.Drawing.Size(61, 24)
690
+        Me.年份2_cb.TabIndex = 1932
691
+        '
692
+        'Label5
693
+        '
694
+        Me.Label5.AutoSize = True
695
+        Me.Label5.BackColor = System.Drawing.Color.Transparent
696
+        Me.Label5.Location = New System.Drawing.Point(12, 7)
697
+        Me.Label5.Name = "Label5"
698
+        Me.Label5.Size = New System.Drawing.Size(32, 16)
699
+        Me.Label5.TabIndex = 1930
700
+        Me.Label5.Text = "Year"
701
+        '
702
+        '月份2_cb
703
+        '
704
+        Me.月份2_cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.Simple
705
+        Me.月份2_cb.FormattingEnabled = True
706
+        Me.月份2_cb.Items.AddRange(New Object() {"01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"})
707
+        Me.月份2_cb.Location = New System.Drawing.Point(141, 3)
708
+        Me.月份2_cb.Name = "月份2_cb"
709
+        Me.月份2_cb.Size = New System.Drawing.Size(46, 24)
710
+        Me.月份2_cb.TabIndex = 1933
711
+        '
712
+        '部門_cb
713
+        '
714
+        Me.部門_cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
715
+        Me.部門_cb.FormattingEnabled = True
716
+        Me.部門_cb.Location = New System.Drawing.Point(30, 59)
717
+        Me.部門_cb.Name = "部門_cb"
718
+        Me.部門_cb.Size = New System.Drawing.Size(166, 24)
719
+        Me.部門_cb.TabIndex = 1921
720
+        '
721
+        'Label4
722
+        '
723
+        Me.Label4.AutoSize = True
724
+        Me.Label4.BackColor = System.Drawing.Color.Transparent
725
+        Me.Label4.Location = New System.Drawing.Point(107, 7)
726
+        Me.Label4.Name = "Label4"
727
+        Me.Label4.Size = New System.Drawing.Size(34, 16)
728
+        Me.Label4.TabIndex = 1931
729
+        Me.Label4.Text = "Mon"
730
+        '
731
+        '語轉扭_bt
732
+        '
733
+        Me.語轉扭_bt.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
734
+        Me.語轉扭_bt.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
735
+        Me.語轉扭_bt.ForeColor = System.Drawing.Color.Black
736
+        Me.語轉扭_bt.Location = New System.Drawing.Point(2, 59)
737
+        Me.語轉扭_bt.Name = "語轉扭_bt"
738
+        Me.語轉扭_bt.Size = New System.Drawing.Size(22, 22)
739
+        Me.語轉扭_bt.TabIndex = 1898
740
+        Me.語轉扭_bt.Text = "L"
741
+        Me.語轉扭_bt.UseVisualStyleBackColor = True
742
+        '
743
+        '地區_cb
744
+        '
745
+        Me.地區_cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
746
+        Me.地區_cb.FormattingEnabled = True
747
+        Me.地區_cb.Items.AddRange(New Object() {"", "kantor", "Lokasi konstruksi"})
748
+        Me.地區_cb.Location = New System.Drawing.Point(58, 29)
749
+        Me.地區_cb.Name = "地區_cb"
750
+        Me.地區_cb.Size = New System.Drawing.Size(129, 24)
751
+        Me.地區_cb.TabIndex = 1926
752
+        '
753
+        '級別_cb
754
+        '
755
+        Me.級別_cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
756
+        Me.級別_cb.FormattingEnabled = True
757
+        Me.級別_cb.Items.AddRange(New Object() {"01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"})
758
+        Me.級別_cb.Location = New System.Drawing.Point(7, 29)
759
+        Me.級別_cb.Name = "級別_cb"
760
+        Me.級別_cb.Size = New System.Drawing.Size(46, 24)
761
+        Me.級別_cb.TabIndex = 1925
762
+        '
763
+        '工人_ch
764
+        '
765
+        Me.工人_ch.AutoSize = True
766
+        Me.工人_ch.BackColor = System.Drawing.Color.Transparent
767
+        Me.工人_ch.Checked = True
768
+        Me.工人_ch.CheckState = System.Windows.Forms.CheckState.Checked
769
+        Me.工人_ch.Location = New System.Drawing.Point(133, 176)
770
+        Me.工人_ch.Name = "工人_ch"
771
+        Me.工人_ch.Size = New System.Drawing.Size(131, 20)
772
+        Me.工人_ch.TabIndex = 1924
773
+        Me.工人_ch.Text = "Pekerja Sementara"
774
+        Me.工人_ch.UseVisualStyleBackColor = False
775
+        '
776 776
         '列印_bt
777 777
         '
778 778
         Me.列印_bt.BackgroundImage = Global.Calculator_SYS.My.Resources.Resources.print
@@ -852,13 +852,6 @@ Partial Class 人員薪資
852 852
         Me.Text = "人員薪資"
853 853
         CType(Me.清單1_dgv, System.ComponentModel.ISupportInitialize).EndInit()
854 854
         CType(Me.總清單_dgv, System.ComponentModel.ISupportInitialize).EndInit()
855
-        Me.Panel2.ResumeLayout(False)
856
-        Me.Panel2.PerformLayout()
857
-        CType(Me.虛擬表_dgv, System.ComponentModel.ISupportInitialize).EndInit()
858
-        CType(Me.休假天數_nud, System.ComponentModel.ISupportInitialize).EndInit()
859
-        CType(Me.平均每天_nud, System.ComponentModel.ISupportInitialize).EndInit()
860
-        CType(Me.休假比例_nud, System.ComponentModel.ISupportInitialize).EndInit()
861
-        CType(Me.可沖天數_nud, System.ComponentModel.ISupportInitialize).EndInit()
862 855
         Me.視窗3_pl.ResumeLayout(False)
863 856
         Me.視窗3_pl.PerformLayout()
864 857
         Me.Panel4.ResumeLayout(False)
@@ -866,6 +859,13 @@ Partial Class 人員薪資
866 859
         CType(Me.加班_nud, System.ComponentModel.ISupportInitialize).EndInit()
867 860
         CType(Me.總數_nud, System.ComponentModel.ISupportInitialize).EndInit()
868 861
         CType(Me.合計_dgv, System.ComponentModel.ISupportInitialize).EndInit()
862
+        Me.Panel2.ResumeLayout(False)
863
+        Me.Panel2.PerformLayout()
864
+        CType(Me.虛擬表_dgv, System.ComponentModel.ISupportInitialize).EndInit()
865
+        CType(Me.休假天數_nud, System.ComponentModel.ISupportInitialize).EndInit()
866
+        CType(Me.平均每天_nud, System.ComponentModel.ISupportInitialize).EndInit()
867
+        CType(Me.休假比例_nud, System.ComponentModel.ISupportInitialize).EndInit()
868
+        CType(Me.可沖天數_nud, System.ComponentModel.ISupportInitialize).EndInit()
869 869
         Me.ResumeLayout(False)
870 870
         Me.PerformLayout()
871 871
 

+ 10
- 4
Calculator-SYS/05、人事考勤系統/人員薪資.vb ファイルの表示

@@ -12,10 +12,9 @@ Imports Microsoft.Office.Interop.Excel.XlPageOrientation
12 12
 Imports Microsoft.Office.Interop.Excel
13 13
 Imports PdfSharp.Pdf
14 14
 Imports PdfSharp.Pdf.IO
15
-
16 15
 Public Class 人員薪資
17 16
     Dim 對話框(17) As String
18
-    Dim 間隔1, 時長, 總時, VBN, CBN, GN1, 之前選擇 As Integer
17
+    Dim 間隔1, 時長, 總時, GN1, 之前選擇 As Integer
19 18
     Dim 時段(6), 計算(6), X1, AUTO時, AUTO舊1, AUTO舊2 As String
20 19
     Dim 本周周一 As Date
21 20
     Dim xlApp As Application
@@ -399,6 +398,13 @@ Public Class 人員薪資
399 398
                 End If
400 399
             Next
401 400
         Next : AUTO時段() : 表頭變形1()
401
+        If 群組1_cb.Text = "HARIAN GROUP" Or 群組1_cb.Text = "" Then
402
+            PA25 = 年份2_cb.Text : PA26 = 月份2_cb.Text : PA27 = Strings.Format(開始日期_dtp.Value, "yyyy/MM/dd")
403
+            If 群組1_cb.Text = "HARIAN GROUP" Then : PA30 = "1" : Else : PA30 = "0" : End If
404
+            PA28 = 合計_dgv.Rows(0).Cells(4).Value.ToString : PA29 = 合計_dgv.Rows(0).Cells(13).Value.ToString
405
+            SQL_工人薪資彙總報表_查詢()
406
+            If dr.Read Then : SQL_工人薪資彙總報表_修改() : Else : SQL_工人薪資彙總報表_新增() : End If
407
+        End If : PA25 = "" : PA26 = "" : PA27 = "" : PA28 = "" : PA29 = "" : PA30 = ""
402 408
     End Sub
403 409
     Private Sub 表頭變形1()
404 410
         Dim NNS, 位置(50), X軸1 As Integer
@@ -483,7 +489,7 @@ Public Class 人員薪資
483 489
             If 總清單_dgv.Rows(i).Cells("第三").Value.ToString <> "" Then : DFG(CV) = 總清單_dgv.Rows(i).Cells("第三").Value.ToString : CV += 1 : End If
484 490
             If 總清單_dgv.Rows(i).Cells("第四").Value.ToString <> "" Then : DFG(CV) = 總清單_dgv.Rows(i).Cells("第四").Value.ToString : CV += 1 : End If
485 491
             If 總清單_dgv.Rows(i).Cells("第五").Value.ToString <> "" Then : DFG(CV) = 總清單_dgv.Rows(i).Cells("第五").Value.ToString : CV += 1 : End If
486
-            If 總清單_dgv.Rows(i).Cells("第六").Value.ToString <> "" Then : DFG(CV) = 總清單_dgv.Rows(i).Cells("第六").Value.ToString : CV += 1 : End If
492
+            If 總清單_dgv.Rows(i).Cells("第六").Value.ToString <> "" Then : DFG(CV) = 總清單_dgv.Rows(i).Cells("第六").Value.ToString : End If
487 493
 
488 494
             時段(1) = DFG(1) : 時段(2) = DFG(2)
489 495
             時段(3) = DFG(3) : 時段(4) = DFG(4)
@@ -748,7 +754,7 @@ Public Class 人員薪資
748 754
     Private Sub 人員薪資_Load(sender As Object, e As EventArgs) Handles MyBase.Load
749 755
         HX_PGS_ERP_SYS.WindowState = 2 : Me.MdiParent = HX_PGS_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
750 756
         HX_PGS_ERP_SYS.MaximizeBox = False : HX_PGS_ERP_SYS.MinimizeBox = False : 之前選擇 = -1
751
-        H(611) = True : 介面 = "H611" : 語言轉換讀取() : 首次開啟 = True
757
+        H(611) = True : 介面 = "H611" : 語言轉換讀取() : 首次開啟 = True : 顯示說明(999, False)
752 758
 
753 759
         結束日期_dtp.Value = Today() : 開始日期_dtp.Value = 結束日期_dtp.Value
754 760
         Dim oldDate As Date : Dim oldWeekDay As Integer : oldDate = 結束日期_dtp.Value : oldWeekDay = Weekday(oldDate)

+ 20
- 18
Calculator-SYS/06、財務系統管理/每月零用金設定.vb ファイルの表示

@@ -1,8 +1,7 @@
1 1
 Imports System.Globalization
2 2
 Public Class 每月零用金設定
3
-    Dim 本周周一 As Date
4 3
     Dim 間隔1, Hours, Hours舊, Xours, Xours舊, Qours, Qours舊, HMD As Integer
5
-    Dim 時段(6), 計算(6), X1, AUTO時, AUTO舊1, AUTO舊2 As String : Dim 對話框(7) As String
4
+    Dim 計算(6), X1, AUTO時, AUTO舊1, AUTO舊2 As String : Private ReadOnly 對話框(7) As String
6 5
     Private Sub 語言轉換讀取()
7 6
         If 系統語言 = "繁體中文" Then : 語言 = "CH" : ElseIf 系統語言 = "English" Then : 語言 = "EN" : ElseIf 系統語言 = "Indonesian" Then : 語言 = "IN" : End If
8 7
         Me.Text = 系統語言字典("G000-238-" & 語言)
@@ -10,9 +9,9 @@ Public Class 每月零用金設定
10 9
         薪資計算_ch.Text = 系統語言字典("G000-240-" & 語言) : 採購計算_ch.Text = 系統語言字典("G000-241-" & 語言) : 物料採購_g.Text = 系統語言字典("G000-242-" & 語言)
11 10
         GroupBox3.Text = 系統語言字典("G000-242-" & 語言) : GroupBox2.Text = 系統語言字典("G000-243-" & 語言) : GroupBox1.Text = 系統語言字典("G000-243-" & 語言)
12 11
         DA1_bt.Text = 系統語言字典("H611-111-" & 語言) : DA2_bt.Text = 系統語言字典("H611-112-" & 語言) : DA3_bt.Text = 系統語言字典("H611-113-" & 語言)
13
-        考勤表_bt.Text = 系統語言字典("H611-116-" & 語言) : 薪資表_bt.Text = 系統語言字典("H611-117-" & 語言) : Label22.Text = 系統語言字典("H611-120-" & 語言)
12
+        考勤表_bt.Text = 系統語言字典("H611-116-" & 語言) : 薪資表_bt.Text = 系統語言字典("H611-117-" & 語言) : Label22.Text = 系統語言字典("H609-145-" & 語言)
14 13
         Label1.Text = 系統語言字典("H611-119-" & 語言) : Label12.Text = 系統語言字典("H611-119-" & 語言) : Label19.Text = 系統語言字典("H611-120-" & 語言)
15
-        Label7.Text = 系統語言字典("H609-124-" & 語言) : Label17.Text = 系統語言字典("H609-124-" & 語言) : Label8.Text = 系統語言字典("H611-120-" & 語言)
14
+        Label7.Text = 系統語言字典("H609-124-" & 語言) : Label17.Text = 系統語言字典("H609-144-" & 語言) : Label8.Text = 系統語言字典("H611-120-" & 語言)
16 15
         設定_g.Text = 系統語言字典("G000-244-" & 語言) : Label9.Text = 系統語言字典("G000-245-" & 語言) : Label10.Text = 系統語言字典("G000-246-" & 語言)
17 16
         Label3.Text = 系統語言字典("G000-247-" & 語言) : Label6.Text = 系統語言字典("G000-248-" & 語言) : Label15.Text = 系統語言字典("G000-249-" & 語言)
18 17
         Label16.Text = 系統語言字典("G000-250-" & 語言) : 對話框(0) = 系統語言字典("G000-251-" & 語言) : 對話框(1) = 系統語言字典("G000-252-" & 語言)
@@ -1186,10 +1185,13 @@ Public Class 每月零用金設定
1186 1185
                     總數_nud.Value += (清單6_dgv.Rows(i).Cells(12).Value + ((清單6_dgv.Rows(i).Cells(12).Value / 6) * 加班_nud.Value)) : 總次數 += 1 : End If
1187 1186
             End If
1188 1187
         Next
1189
-        可沖天數_nud.Value = 總次數 : 平均每天_nud.Value = 總數_nud.Value / 可沖天數_nud.Value
1190
-        沖帳金額_nud.Maximum = 總數_nud.Value : 沖帳金額_nud.Minimum = 可沖天數_nud.Value : 沖帳金額_nud.Value = 平均每天_nud.Value * 7
1191
-        休假比例_nud.Value = 100 - (沖帳金額_nud.Value / 總數_nud.Value * 100)
1192
-        休假天數_nud.Value = 可沖天數_nud.Value - (沖帳金額_nud.Value / 平均每天_nud.Value)
1188
+        If 總次數 = 0 Then : Else : 可沖天數_nud.Value = 總次數 : End If
1189
+        If 可沖天數_nud.Value = 0 Then : Else
1190
+            平均每天_nud.Value = 總數_nud.Value / 可沖天數_nud.Value
1191
+            沖帳金額_nud.Maximum = 總數_nud.Value : 沖帳金額_nud.Minimum = 0 : 沖帳金額_nud.Value = 平均每天_nud.Value * 7
1192
+            休假比例_nud.Value = 100 - (沖帳金額_nud.Value / 總數_nud.Value * 100)
1193
+            休假天數_nud.Value = 可沖天數_nud.Value - (沖帳金額_nud.Value / 平均每天_nud.Value)
1194
+        End If
1193 1195
     End Sub
1194 1196
     Private Sub 採購單極限數量()
1195 1197
         總數1_nud.Value = (上班日_nud.Value * 每日單量_nud.Value * 每單最高_nud.Value) / 100 * 折數_nud.Value
@@ -1215,7 +1217,7 @@ Public Class 每月零用金設定
1215 1217
             縮放1_bt.Visible = False : 縮放2_bt.Visible = False
1216 1218
         End If
1217 1219
 
1218
-        H(610) = True : 介面 = "H610" : 語言轉換讀取() : 首次開啟 = True
1220
+        H(612) = True : 介面 = "H612" : 語言轉換讀取() : 首次開啟 = True
1219 1221
         Panel2.BringToFront() : Panel3.BringToFront() : 取得總數_nud.Value = 0
1220 1222
 
1221 1223
         SQL_零用金基本設定()
@@ -1230,7 +1232,7 @@ Public Class 每月零用金設定
1230 1232
         ElseIf oldWeekDay = 3 Then : 結束日期_dtp.Value = 結束日期_dtp.Value.AddDays(5)
1231 1233
         ElseIf oldWeekDay = 2 Then : 結束日期_dtp.Value = 結束日期_dtp.Value.AddDays(6)
1232 1234
         End If : 開始日期_dtp.Value = 結束日期_dtp.Value.AddDays(-6) : 結束日期_dtp.Value = 開始日期_dtp.Value.AddDays(+6)
1233
-        本周周一 = 開始日期_dtp.Value : 星期設定()
1235
+        星期設定()
1234 1236
 
1235 1237
         For i As Integer = 1 To 7
1236 1238
             If Strings.Right(Strings.Format(開始日期_dtp.Value, "yyyy/MM/dd"), 2) = "01" Then : Exit For : End If
@@ -1243,7 +1245,7 @@ Public Class 每月零用金設定
1243 1245
         Dim daysInMonth As Integer = DateTime.DaysInMonth(selectedDate.Year, selectedDate.Month)
1244 1246
         Dim x1 As Integer = 0 : Dim x2 As Integer = 0 ' 週一到週五的天數 週六和週日的天數
1245 1247
         For day As Integer = 1 To daysInMonth
1246
-            Dim currentDate As Date = New Date(selectedDate.Year, selectedDate.Month, day) : Dim dayOfWeek As DayOfWeek = currentDate.DayOfWeek
1248
+            Dim currentDate As New Date(selectedDate.Year, selectedDate.Month, day) : Dim dayOfWeek As DayOfWeek = currentDate.DayOfWeek
1247 1249
             If dayOfWeek >= DayOfWeek.Monday AndAlso dayOfWeek <= DayOfWeek.Friday Then : x1 += 1
1248 1250
             ElseIf dayOfWeek = DayOfWeek.Saturday OrElse dayOfWeek = DayOfWeek.Sunday Then : x2 += 1 : End If
1249 1251
         Next : 上班日_nud.Value = x1 : 放假日_nud.Value = x2 : 採購單極限數量()
@@ -2774,7 +2776,7 @@ Public Class 每月零用金設定
2774 2776
                     上班日(NS) = Strings.Format(currentDate, "yyyy/MM/dd") : NS += 1
2775 2777
                 End If
2776 2778
             Next
2777
-            Dim ND As Integer = 0 : Dim NUM1, 明細第幾個, 物料第幾個, 物料O, 物料數量, 物料數O, 驗證, 合約第幾個, 合約O As Integer
2779
+            Dim ND As Integer = 0 : Dim NUM1, 明細第幾個, 物料第幾個, 物料O, 物料數量, 物料數O, 驗證, 合約第幾個 As Integer
2778 2780
             For i As Integer = 0 To NS : 資料數 = NS : MyMod.進度條()
2779 2781
                 日期數量() : Hours舊 = Hours
2780 2782
                 For ii As Integer = 0 To Hours
@@ -2950,8 +2952,8 @@ Public Class 每月零用金設定
2950 2952
         If 訊息回應 = verificationCode Then
2951 2953
             currentTime = DateTime.Now
2952 2954
             elapsedTime = currentTime - verificationStartTime
2953
-            If elapsedTime.TotalMinutes <= 30 Then
2954
-                PA25 = 星1_bt.Text : Set_虛擬表() : Dim DDF As Integer = 0
2955
+            If elapsedTime.TotalMinutes <= 0.5 Then
2956
+                PA25 = 星1_bt.Text : Set_虛擬表() : Dim DDF As Integer
2955 2957
                 '-------------------------虛擬考勤--------------------------------------------------------------------------------------------------------------------
2956 2958
                 For i As Integer = 0 To 清單1_dgv.Rows.Count - 1
2957 2959
                     For ii As Integer = 0 To 虛擬表_dgv.Rows.Count - 1
@@ -3169,7 +3171,7 @@ Public Class 每月零用金設定
3169 3171
         If 薪資計算_ch.Checked = False And 採購計算_ch.Checked = False Then : MGB(對話框(0), 1) : 虛擬存檔() : 首次開啟 = False : Exit Sub : End If
3170 3172
         If 薪資計算_ch.Checked = True Then
3171 3173
             If 群組1_cb.Text <> "HARIAN GROUP" Then : MGB(系統語言字典("H611-110-" & 語言), 1) : 首次開啟 = False : Else
3172
-                PA25 = 星1_bt.Text : Set_虛擬表() : Dim DDF As Integer = 0
3174
+                PA25 = 星1_bt.Text : Set_虛擬表() : Dim DDF As Integer
3173 3175
                 '-------------------------虛擬考勤--------------------------------------------------------------------------------------------------------------------
3174 3176
                 For i As Integer = 0 To 清單1_dgv.Rows.Count - 1
3175 3177
                     For ii As Integer = 0 To 虛擬表_dgv.Rows.Count - 1
@@ -3348,13 +3350,13 @@ Public Class 每月零用金設定
3348 3350
                         End If : If DDF = -1 Then : ElseIf DDF = 0 Then : SQL2 = AAS : Else : SQL2 = SQL2 & "," & AAS : End If
3349 3351
                     Next
3350 3352
                     SQL_虛擬考勤明細表新增()
3351
-                End If : 可以存檔 = False
3353
+                End If
3352 3354
                 Dim HGF As Integer = 沖帳金額_nud.Value
3353 3355
                 Set_使用者清單() : 沖帳金額_nud.Value = HGF
3354 3356
             End If
3355 3357
         End If
3356 3358
         If 採購計算_ch.Checked = True Then
3357
-            Dim AAS As String = "" : Dim DDF As Integer = -1
3359
+            Dim AAS As String : Dim DDF As Integer : DDF = -1
3358 3360
             For i As Integer = 0 To 控制表_dgv.Rows.Count - 1
3359 3361
                 If 控制表_dgv.Rows(i).Cells(0).Value.ToString <> "" Then : DDF += 1
3360 3362
                     AAS = "(N'" & 控制表_dgv.Rows(i).Cells(0).Value.ToString & "', N'" & 控制表_dgv.Rows(i).Cells(1).Value.ToString & "', N'" & 控制表_dgv.Rows(i).Cells(2).Value.ToString & "', 
@@ -3369,7 +3371,7 @@ Public Class 每月零用金設定
3369 3371
                     If DDF = -1 Then : ElseIf DDF = 0 Then : SQL2 = AAS : Else : SQL2 = SQL2 & "," & AAS : End If
3370 3372
                 End If
3371 3373
             Next : SQL_虛擬採購控制表新增()
3372
-            AAS = "" : DDF = -1
3374
+            DDF = -1
3373 3375
             For i As Integer = 0 To 明細表_dgv.Rows.Count - 1
3374 3376
                 If 明細表_dgv.Rows(i).Cells(0).Value.ToString <> "" Then : DDF += 1
3375 3377
                     AAS = "(N'" & 明細表_dgv.Rows(i).Cells(0).Value.ToString & "', N'" & 明細表_dgv.Rows(i).Cells(1).Value.ToString & "', N'" & 明細表_dgv.Rows(i).Cells(2).Value.ToString & "', 

+ 630
- 0
Calculator-SYS/06、財務系統管理/財務報表1.Designer.vb ファイルの表示

@@ -0,0 +1,630 @@
1
+<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
2
+Partial Class 財務報表1
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
+        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 resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(財務報表1))
30
+        Dim ChartArea1 As System.Windows.Forms.DataVisualization.Charting.ChartArea = New System.Windows.Forms.DataVisualization.Charting.ChartArea()
31
+        Dim Legend1 As System.Windows.Forms.DataVisualization.Charting.Legend = New System.Windows.Forms.DataVisualization.Charting.Legend()
32
+        Dim Series1 As System.Windows.Forms.DataVisualization.Charting.Series = New System.Windows.Forms.DataVisualization.Charting.Series()
33
+        Dim ChartArea2 As System.Windows.Forms.DataVisualization.Charting.ChartArea = New System.Windows.Forms.DataVisualization.Charting.ChartArea()
34
+        Dim Legend2 As System.Windows.Forms.DataVisualization.Charting.Legend = New System.Windows.Forms.DataVisualization.Charting.Legend()
35
+        Dim Series2 As System.Windows.Forms.DataVisualization.Charting.Series = New System.Windows.Forms.DataVisualization.Charting.Series()
36
+        Dim DataGridViewCellStyle5 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
37
+        Dim DataGridViewCellStyle6 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
38
+        Me.Panel1 = New System.Windows.Forms.Panel()
39
+        Me.重新讀取_bt = New System.Windows.Forms.Button()
40
+        Me.比例6_tb = New System.Windows.Forms.TextBox()
41
+        Me.合計6_tb = New System.Windows.Forms.TextBox()
42
+        Me.Label10 = New System.Windows.Forms.Label()
43
+        Me.比例4_tb = New System.Windows.Forms.TextBox()
44
+        Me.比例5_tb = New System.Windows.Forms.TextBox()
45
+        Me.合計4_tb = New System.Windows.Forms.TextBox()
46
+        Me.合計5_tb = New System.Windows.Forms.TextBox()
47
+        Me.Label11 = New System.Windows.Forms.Label()
48
+        Me.Label12 = New System.Windows.Forms.Label()
49
+        Me.Label8 = New System.Windows.Forms.Label()
50
+        Me.Label9 = New System.Windows.Forms.Label()
51
+        Me.沖帳採購_dgv = New System.Windows.Forms.DataGridView()
52
+        Me.實際採購_dgv = New System.Windows.Forms.DataGridView()
53
+        Me.比例3_tb = New System.Windows.Forms.TextBox()
54
+        Me.合計3_tb = New System.Windows.Forms.TextBox()
55
+        Me.Label7 = New System.Windows.Forms.Label()
56
+        Me.比例1_tb = New System.Windows.Forms.TextBox()
57
+        Me.比例2_tb = New System.Windows.Forms.TextBox()
58
+        Me.合計1_tb = New System.Windows.Forms.TextBox()
59
+        Me.合計2_tb = New System.Windows.Forms.TextBox()
60
+        Me.年份2_cb = New System.Windows.Forms.ComboBox()
61
+        Me.Label5 = New System.Windows.Forms.Label()
62
+        Me.Label2 = New System.Windows.Forms.Label()
63
+        Me.Label1 = New System.Windows.Forms.Label()
64
+        Me.沖帳工資_dgv = New System.Windows.Forms.DataGridView()
65
+        Me.實際工資_dgv = New System.Windows.Forms.DataGridView()
66
+        Me.縮放1_bt = New System.Windows.Forms.Button()
67
+        Me.Label3 = New System.Windows.Forms.Label()
68
+        Me.Label4 = New System.Windows.Forms.Label()
69
+        Me.Label6 = New System.Windows.Forms.Label()
70
+        Me.Chart1 = New System.Windows.Forms.DataVisualization.Charting.Chart()
71
+        Me.Chart2 = New System.Windows.Forms.DataVisualization.Charting.Chart()
72
+        Me.Panel2 = New System.Windows.Forms.Panel()
73
+        Me.虛擬人工_dgv = New System.Windows.Forms.DataGridView()
74
+        Me.實際人工_dgv = New System.Windows.Forms.DataGridView()
75
+        Me.縮放2_bt = New System.Windows.Forms.Button()
76
+        Me.Panel1.SuspendLayout()
77
+        CType(Me.沖帳採購_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
78
+        CType(Me.實際採購_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
79
+        CType(Me.沖帳工資_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
80
+        CType(Me.實際工資_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
81
+        CType(Me.Chart1, System.ComponentModel.ISupportInitialize).BeginInit()
82
+        CType(Me.Chart2, System.ComponentModel.ISupportInitialize).BeginInit()
83
+        Me.Panel2.SuspendLayout()
84
+        CType(Me.虛擬人工_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
85
+        CType(Me.實際人工_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
86
+        Me.SuspendLayout()
87
+        '
88
+        'Panel1
89
+        '
90
+        Me.Panel1.Controls.Add(Me.重新讀取_bt)
91
+        Me.Panel1.Controls.Add(Me.比例6_tb)
92
+        Me.Panel1.Controls.Add(Me.合計6_tb)
93
+        Me.Panel1.Controls.Add(Me.Label10)
94
+        Me.Panel1.Controls.Add(Me.比例4_tb)
95
+        Me.Panel1.Controls.Add(Me.比例5_tb)
96
+        Me.Panel1.Controls.Add(Me.合計4_tb)
97
+        Me.Panel1.Controls.Add(Me.合計5_tb)
98
+        Me.Panel1.Controls.Add(Me.Label11)
99
+        Me.Panel1.Controls.Add(Me.Label12)
100
+        Me.Panel1.Controls.Add(Me.Label8)
101
+        Me.Panel1.Controls.Add(Me.Label9)
102
+        Me.Panel1.Controls.Add(Me.沖帳採購_dgv)
103
+        Me.Panel1.Controls.Add(Me.實際採購_dgv)
104
+        Me.Panel1.Controls.Add(Me.比例3_tb)
105
+        Me.Panel1.Controls.Add(Me.合計3_tb)
106
+        Me.Panel1.Controls.Add(Me.Label7)
107
+        Me.Panel1.Controls.Add(Me.比例1_tb)
108
+        Me.Panel1.Controls.Add(Me.比例2_tb)
109
+        Me.Panel1.Controls.Add(Me.合計1_tb)
110
+        Me.Panel1.Controls.Add(Me.合計2_tb)
111
+        Me.Panel1.Controls.Add(Me.年份2_cb)
112
+        Me.Panel1.Controls.Add(Me.Label5)
113
+        Me.Panel1.Controls.Add(Me.Label2)
114
+        Me.Panel1.Controls.Add(Me.Label1)
115
+        Me.Panel1.Controls.Add(Me.沖帳工資_dgv)
116
+        Me.Panel1.Controls.Add(Me.實際工資_dgv)
117
+        Me.Panel1.Controls.Add(Me.縮放1_bt)
118
+        Me.Panel1.Controls.Add(Me.Label3)
119
+        Me.Panel1.Controls.Add(Me.Label4)
120
+        Me.Panel1.Controls.Add(Me.Label6)
121
+        Me.Panel1.Controls.Add(Me.Chart1)
122
+        Me.Panel1.Controls.Add(Me.Chart2)
123
+        Me.Panel1.Dock = System.Windows.Forms.DockStyle.Fill
124
+        Me.Panel1.Location = New System.Drawing.Point(0, 0)
125
+        Me.Panel1.Name = "Panel1"
126
+        Me.Panel1.Size = New System.Drawing.Size(1344, 600)
127
+        Me.Panel1.TabIndex = 0
128
+        '
129
+        '重新讀取_bt
130
+        '
131
+        Me.重新讀取_bt.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
132
+        Me.重新讀取_bt.BackgroundImage = Global.Calculator_SYS.My.Resources.Resources.下載
133
+        Me.重新讀取_bt.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom
134
+        Me.重新讀取_bt.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
135
+        Me.重新讀取_bt.ForeColor = System.Drawing.Color.Blue
136
+        Me.重新讀取_bt.Location = New System.Drawing.Point(1291, 2)
137
+        Me.重新讀取_bt.Name = "重新讀取_bt"
138
+        Me.重新讀取_bt.Size = New System.Drawing.Size(25, 25)
139
+        Me.重新讀取_bt.TabIndex = 1987
140
+        Me.重新讀取_bt.UseVisualStyleBackColor = True
141
+        '
142
+        '比例6_tb
143
+        '
144
+        Me.比例6_tb.Location = New System.Drawing.Point(1274, 379)
145
+        Me.比例6_tb.Name = "比例6_tb"
146
+        Me.比例6_tb.Size = New System.Drawing.Size(63, 23)
147
+        Me.比例6_tb.TabIndex = 1984
148
+        Me.比例6_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
149
+        '
150
+        '合計6_tb
151
+        '
152
+        Me.合計6_tb.Location = New System.Drawing.Point(1174, 379)
153
+        Me.合計6_tb.Name = "合計6_tb"
154
+        Me.合計6_tb.Size = New System.Drawing.Size(100, 23)
155
+        Me.合計6_tb.TabIndex = 1983
156
+        Me.合計6_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
157
+        '
158
+        'Label10
159
+        '
160
+        Me.Label10.AutoSize = True
161
+        Me.Label10.Location = New System.Drawing.Point(1088, 382)
162
+        Me.Label10.Name = "Label10"
163
+        Me.Label10.Size = New System.Drawing.Size(85, 16)
164
+        Me.Label10.TabIndex = 1985
165
+        Me.Label10.Text = "採購金額總計 :"
166
+        '
167
+        '比例4_tb
168
+        '
169
+        Me.比例4_tb.Location = New System.Drawing.Point(941, 356)
170
+        Me.比例4_tb.Name = "比例4_tb"
171
+        Me.比例4_tb.Size = New System.Drawing.Size(63, 23)
172
+        Me.比例4_tb.TabIndex = 1980
173
+        Me.比例4_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
174
+        '
175
+        '比例5_tb
176
+        '
177
+        Me.比例5_tb.Location = New System.Drawing.Point(1274, 356)
178
+        Me.比例5_tb.Name = "比例5_tb"
179
+        Me.比例5_tb.Size = New System.Drawing.Size(63, 23)
180
+        Me.比例5_tb.TabIndex = 1979
181
+        Me.比例5_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
182
+        '
183
+        '合計4_tb
184
+        '
185
+        Me.合計4_tb.Location = New System.Drawing.Point(841, 356)
186
+        Me.合計4_tb.Name = "合計4_tb"
187
+        Me.合計4_tb.Size = New System.Drawing.Size(100, 23)
188
+        Me.合計4_tb.TabIndex = 1978
189
+        Me.合計4_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
190
+        '
191
+        '合計5_tb
192
+        '
193
+        Me.合計5_tb.Location = New System.Drawing.Point(1174, 356)
194
+        Me.合計5_tb.Name = "合計5_tb"
195
+        Me.合計5_tb.Size = New System.Drawing.Size(100, 23)
196
+        Me.合計5_tb.TabIndex = 1977
197
+        Me.合計5_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
198
+        '
199
+        'Label11
200
+        '
201
+        Me.Label11.AutoSize = True
202
+        Me.Label11.Location = New System.Drawing.Point(755, 359)
203
+        Me.Label11.Name = "Label11"
204
+        Me.Label11.Size = New System.Drawing.Size(85, 16)
205
+        Me.Label11.TabIndex = 1981
206
+        Me.Label11.Text = "實際採購合計 :"
207
+        '
208
+        'Label12
209
+        '
210
+        Me.Label12.AutoSize = True
211
+        Me.Label12.Location = New System.Drawing.Point(1088, 359)
212
+        Me.Label12.Name = "Label12"
213
+        Me.Label12.Size = New System.Drawing.Size(85, 16)
214
+        Me.Label12.TabIndex = 1982
215
+        Me.Label12.Text = "沖帳採購合計 :"
216
+        '
217
+        'Label8
218
+        '
219
+        Me.Label8.AutoSize = True
220
+        Me.Label8.Location = New System.Drawing.Point(1008, 7)
221
+        Me.Label8.Name = "Label8"
222
+        Me.Label8.Size = New System.Drawing.Size(55, 16)
223
+        Me.Label8.TabIndex = 1976
224
+        Me.Label8.Text = "沖帳採購"
225
+        '
226
+        'Label9
227
+        '
228
+        Me.Label9.AutoSize = True
229
+        Me.Label9.Location = New System.Drawing.Point(675, 7)
230
+        Me.Label9.Name = "Label9"
231
+        Me.Label9.Size = New System.Drawing.Size(55, 16)
232
+        Me.Label9.TabIndex = 1975
233
+        Me.Label9.Text = "實際採購"
234
+        '
235
+        '沖帳採購_dgv
236
+        '
237
+        Me.沖帳採購_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
238
+        Me.沖帳採購_dgv.BackgroundColor = System.Drawing.Color.White
239
+        Me.沖帳採購_dgv.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
240
+        Me.沖帳採購_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
241
+        Me.沖帳採購_dgv.Location = New System.Drawing.Point(1005, 28)
242
+        Me.沖帳採購_dgv.Name = "沖帳採購_dgv"
243
+        Me.沖帳採購_dgv.RowHeadersWidth = 5
244
+        DataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
245
+        Me.沖帳採購_dgv.RowsDefaultCellStyle = DataGridViewCellStyle1
246
+        Me.沖帳採購_dgv.RowTemplate.Height = 24
247
+        Me.沖帳採購_dgv.Size = New System.Drawing.Size(332, 327)
248
+        Me.沖帳採購_dgv.TabIndex = 1974
249
+        '
250
+        '實際採購_dgv
251
+        '
252
+        Me.實際採購_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
253
+        Me.實際採購_dgv.BackgroundColor = System.Drawing.Color.White
254
+        Me.實際採購_dgv.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
255
+        Me.實際採購_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
256
+        Me.實際採購_dgv.Location = New System.Drawing.Point(672, 28)
257
+        Me.實際採購_dgv.Name = "實際採購_dgv"
258
+        Me.實際採購_dgv.RowHeadersWidth = 5
259
+        DataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
260
+        Me.實際採購_dgv.RowsDefaultCellStyle = DataGridViewCellStyle2
261
+        Me.實際採購_dgv.RowTemplate.Height = 24
262
+        Me.實際採購_dgv.Size = New System.Drawing.Size(332, 327)
263
+        Me.實際採購_dgv.TabIndex = 1973
264
+        '
265
+        '比例3_tb
266
+        '
267
+        Me.比例3_tb.Location = New System.Drawing.Point(605, 379)
268
+        Me.比例3_tb.Name = "比例3_tb"
269
+        Me.比例3_tb.Size = New System.Drawing.Size(63, 23)
270
+        Me.比例3_tb.TabIndex = 1970
271
+        Me.比例3_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
272
+        '
273
+        '合計3_tb
274
+        '
275
+        Me.合計3_tb.Location = New System.Drawing.Point(505, 379)
276
+        Me.合計3_tb.Name = "合計3_tb"
277
+        Me.合計3_tb.Size = New System.Drawing.Size(100, 23)
278
+        Me.合計3_tb.TabIndex = 1969
279
+        Me.合計3_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
280
+        '
281
+        'Label7
282
+        '
283
+        Me.Label7.AutoSize = True
284
+        Me.Label7.Location = New System.Drawing.Point(419, 382)
285
+        Me.Label7.Name = "Label7"
286
+        Me.Label7.Size = New System.Drawing.Size(85, 16)
287
+        Me.Label7.TabIndex = 1971
288
+        Me.Label7.Text = "工人薪資總計 :"
289
+        '
290
+        '比例1_tb
291
+        '
292
+        Me.比例1_tb.Location = New System.Drawing.Point(272, 356)
293
+        Me.比例1_tb.Name = "比例1_tb"
294
+        Me.比例1_tb.Size = New System.Drawing.Size(63, 23)
295
+        Me.比例1_tb.TabIndex = 1965
296
+        Me.比例1_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
297
+        '
298
+        '比例2_tb
299
+        '
300
+        Me.比例2_tb.Location = New System.Drawing.Point(605, 356)
301
+        Me.比例2_tb.Name = "比例2_tb"
302
+        Me.比例2_tb.Size = New System.Drawing.Size(63, 23)
303
+        Me.比例2_tb.TabIndex = 1964
304
+        Me.比例2_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
305
+        '
306
+        '合計1_tb
307
+        '
308
+        Me.合計1_tb.Location = New System.Drawing.Point(172, 356)
309
+        Me.合計1_tb.Name = "合計1_tb"
310
+        Me.合計1_tb.Size = New System.Drawing.Size(100, 23)
311
+        Me.合計1_tb.TabIndex = 1963
312
+        Me.合計1_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
313
+        '
314
+        '合計2_tb
315
+        '
316
+        Me.合計2_tb.Location = New System.Drawing.Point(505, 356)
317
+        Me.合計2_tb.Name = "合計2_tb"
318
+        Me.合計2_tb.Size = New System.Drawing.Size(100, 23)
319
+        Me.合計2_tb.TabIndex = 1962
320
+        Me.合計2_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
321
+        '
322
+        '年份2_cb
323
+        '
324
+        Me.年份2_cb.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
325
+        Me.年份2_cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.Simple
326
+        Me.年份2_cb.FormattingEnabled = True
327
+        Me.年份2_cb.Items.AddRange(New Object() {"2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026", "2027", "2028", "2029", "2030"})
328
+        Me.年份2_cb.Location = New System.Drawing.Point(217, 3)
329
+        Me.年份2_cb.Name = "年份2_cb"
330
+        Me.年份2_cb.Size = New System.Drawing.Size(61, 24)
331
+        Me.年份2_cb.TabIndex = 1961
332
+        '
333
+        'Label5
334
+        '
335
+        Me.Label5.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
336
+        Me.Label5.AutoSize = True
337
+        Me.Label5.BackColor = System.Drawing.Color.Transparent
338
+        Me.Label5.Location = New System.Drawing.Point(185, 7)
339
+        Me.Label5.Name = "Label5"
340
+        Me.Label5.Size = New System.Drawing.Size(32, 16)
341
+        Me.Label5.TabIndex = 1960
342
+        Me.Label5.Text = "Year"
343
+        '
344
+        'Label2
345
+        '
346
+        Me.Label2.AutoSize = True
347
+        Me.Label2.Location = New System.Drawing.Point(339, 7)
348
+        Me.Label2.Name = "Label2"
349
+        Me.Label2.Size = New System.Drawing.Size(55, 16)
350
+        Me.Label2.TabIndex = 1959
351
+        Me.Label2.Text = "沖帳工資"
352
+        '
353
+        'Label1
354
+        '
355
+        Me.Label1.AutoSize = True
356
+        Me.Label1.Location = New System.Drawing.Point(101, 7)
357
+        Me.Label1.Name = "Label1"
358
+        Me.Label1.Size = New System.Drawing.Size(55, 16)
359
+        Me.Label1.TabIndex = 1958
360
+        Me.Label1.Text = "實際工資"
361
+        '
362
+        '沖帳工資_dgv
363
+        '
364
+        Me.沖帳工資_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
365
+        Me.沖帳工資_dgv.BackgroundColor = System.Drawing.Color.White
366
+        Me.沖帳工資_dgv.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
367
+        Me.沖帳工資_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
368
+        Me.沖帳工資_dgv.Location = New System.Drawing.Point(336, 28)
369
+        Me.沖帳工資_dgv.Name = "沖帳工資_dgv"
370
+        Me.沖帳工資_dgv.RowHeadersWidth = 5
371
+        DataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
372
+        Me.沖帳工資_dgv.RowsDefaultCellStyle = DataGridViewCellStyle3
373
+        Me.沖帳工資_dgv.RowTemplate.Height = 24
374
+        Me.沖帳工資_dgv.Size = New System.Drawing.Size(332, 327)
375
+        Me.沖帳工資_dgv.TabIndex = 1957
376
+        '
377
+        '實際工資_dgv
378
+        '
379
+        Me.實際工資_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
380
+        Me.實際工資_dgv.BackgroundColor = System.Drawing.Color.White
381
+        Me.實際工資_dgv.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
382
+        Me.實際工資_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
383
+        Me.實際工資_dgv.Location = New System.Drawing.Point(3, 28)
384
+        Me.實際工資_dgv.Name = "實際工資_dgv"
385
+        Me.實際工資_dgv.RowHeadersWidth = 5
386
+        DataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
387
+        Me.實際工資_dgv.RowsDefaultCellStyle = DataGridViewCellStyle4
388
+        Me.實際工資_dgv.RowTemplate.Height = 24
389
+        Me.實際工資_dgv.Size = New System.Drawing.Size(332, 327)
390
+        Me.實際工資_dgv.TabIndex = 1956
391
+        '
392
+        '縮放1_bt
393
+        '
394
+        Me.縮放1_bt.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
395
+        Me.縮放1_bt.BackgroundImage = Global.Calculator_SYS.My.Resources.Resources.list_bullets
396
+        Me.縮放1_bt.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom
397
+        Me.縮放1_bt.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
398
+        Me.縮放1_bt.ForeColor = System.Drawing.Color.Blue
399
+        Me.縮放1_bt.Location = New System.Drawing.Point(1317, 1)
400
+        Me.縮放1_bt.Name = "縮放1_bt"
401
+        Me.縮放1_bt.Size = New System.Drawing.Size(25, 25)
402
+        Me.縮放1_bt.TabIndex = 1949
403
+        Me.縮放1_bt.UseVisualStyleBackColor = True
404
+        '
405
+        'Label3
406
+        '
407
+        Me.Label3.AutoSize = True
408
+        Me.Label3.Location = New System.Drawing.Point(86, 359)
409
+        Me.Label3.Name = "Label3"
410
+        Me.Label3.Size = New System.Drawing.Size(85, 16)
411
+        Me.Label3.TabIndex = 1966
412
+        Me.Label3.Text = "實際工資合計 :"
413
+        '
414
+        'Label4
415
+        '
416
+        Me.Label4.AutoSize = True
417
+        Me.Label4.Location = New System.Drawing.Point(419, 359)
418
+        Me.Label4.Name = "Label4"
419
+        Me.Label4.Size = New System.Drawing.Size(85, 16)
420
+        Me.Label4.TabIndex = 1967
421
+        Me.Label4.Text = "沖帳工資合計 :"
422
+        '
423
+        'Label6
424
+        '
425
+        Me.Label6.AutoSize = True
426
+        Me.Label6.Location = New System.Drawing.Point(-2, 390)
427
+        Me.Label6.Name = "Label6"
428
+        Me.Label6.Size = New System.Drawing.Size(1347, 16)
429
+        Me.Label6.TabIndex = 1968
430
+        Me.Label6.Text = resources.GetString("Label6.Text")
431
+        '
432
+        'Chart1
433
+        '
434
+        Me.Chart1.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
435
+            Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
436
+        Me.Chart1.BackColor = System.Drawing.Color.Transparent
437
+        ChartArea1.AlignmentOrientation = CType((System.Windows.Forms.DataVisualization.Charting.AreaAlignmentOrientations.Vertical Or System.Windows.Forms.DataVisualization.Charting.AreaAlignmentOrientations.Horizontal), System.Windows.Forms.DataVisualization.Charting.AreaAlignmentOrientations)
438
+        ChartArea1.AxisX.IntervalAutoMode = System.Windows.Forms.DataVisualization.Charting.IntervalAutoMode.VariableCount
439
+        ChartArea1.AxisX.IsLabelAutoFit = False
440
+        ChartArea1.AxisX.LabelAutoFitStyle = CType((((((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.IncreaseFont Or System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.DecreaseFont) _
441
+            Or System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.StaggeredLabels) _
442
+            Or System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.LabelsAngleStep30) _
443
+            Or System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.LabelsAngleStep45) _
444
+            Or System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.WordWrap), System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles)
445
+        ChartArea1.AxisX.LabelStyle.IsStaggered = True
446
+        ChartArea1.AxisX.MaximumAutoSize = 100.0!
447
+        ChartArea1.AxisX.TitleFont = New System.Drawing.Font("微軟正黑體", 6.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
448
+        ChartArea1.AxisX2.IntervalAutoMode = System.Windows.Forms.DataVisualization.Charting.IntervalAutoMode.VariableCount
449
+        ChartArea1.AxisX2.MaximumAutoSize = 100.0!
450
+        ChartArea1.AxisY.MaximumAutoSize = 100.0!
451
+        ChartArea1.AxisY2.MaximumAutoSize = 100.0!
452
+        ChartArea1.Name = "ChartArea1"
453
+        Me.Chart1.ChartAreas.Add(ChartArea1)
454
+        Legend1.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
455
+        Legend1.IsTextAutoFit = False
456
+        Legend1.Name = "Legend1"
457
+        Me.Chart1.Legends.Add(Legend1)
458
+        Me.Chart1.Location = New System.Drawing.Point(-11, 401)
459
+        Me.Chart1.Name = "Chart1"
460
+        Series1.ChartArea = "ChartArea1"
461
+        Series1.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.StackedColumn
462
+        Series1.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
463
+        Series1.Legend = "Legend1"
464
+        Series1.Name = "Series1"
465
+        Me.Chart1.Series.Add(Series1)
466
+        Me.Chart1.Size = New System.Drawing.Size(690, 199)
467
+        Me.Chart1.TabIndex = 1972
468
+        Me.Chart1.Text = "Chart1"
469
+        '
470
+        'Chart2
471
+        '
472
+        Me.Chart2.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
473
+            Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
474
+        Me.Chart2.BackColor = System.Drawing.Color.Transparent
475
+        ChartArea2.AlignmentOrientation = CType((System.Windows.Forms.DataVisualization.Charting.AreaAlignmentOrientations.Vertical Or System.Windows.Forms.DataVisualization.Charting.AreaAlignmentOrientations.Horizontal), System.Windows.Forms.DataVisualization.Charting.AreaAlignmentOrientations)
476
+        ChartArea2.AxisX.IntervalAutoMode = System.Windows.Forms.DataVisualization.Charting.IntervalAutoMode.VariableCount
477
+        ChartArea2.AxisX.IsLabelAutoFit = False
478
+        ChartArea2.AxisX.LabelAutoFitStyle = CType((((((System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.IncreaseFont Or System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.DecreaseFont) _
479
+            Or System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.StaggeredLabels) _
480
+            Or System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.LabelsAngleStep30) _
481
+            Or System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.LabelsAngleStep45) _
482
+            Or System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles.WordWrap), System.Windows.Forms.DataVisualization.Charting.LabelAutoFitStyles)
483
+        ChartArea2.AxisX.LabelStyle.IsStaggered = True
484
+        ChartArea2.AxisX.MaximumAutoSize = 100.0!
485
+        ChartArea2.AxisX.TitleFont = New System.Drawing.Font("微軟正黑體", 6.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
486
+        ChartArea2.AxisX2.IntervalAutoMode = System.Windows.Forms.DataVisualization.Charting.IntervalAutoMode.VariableCount
487
+        ChartArea2.AxisX2.MaximumAutoSize = 100.0!
488
+        ChartArea2.AxisY.MaximumAutoSize = 100.0!
489
+        ChartArea2.AxisY2.MaximumAutoSize = 100.0!
490
+        ChartArea2.Name = "ChartArea1"
491
+        Me.Chart2.ChartAreas.Add(ChartArea2)
492
+        Legend2.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
493
+        Legend2.IsTextAutoFit = False
494
+        Legend2.Name = "Legend1"
495
+        Me.Chart2.Legends.Add(Legend2)
496
+        Me.Chart2.Location = New System.Drawing.Point(658, 401)
497
+        Me.Chart2.Name = "Chart2"
498
+        Series2.ChartArea = "ChartArea1"
499
+        Series2.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.StackedColumn
500
+        Series2.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
501
+        Series2.Legend = "Legend1"
502
+        Series2.Name = "Series1"
503
+        Me.Chart2.Series.Add(Series2)
504
+        Me.Chart2.Size = New System.Drawing.Size(690, 199)
505
+        Me.Chart2.TabIndex = 1986
506
+        Me.Chart2.Text = "Chart2"
507
+        '
508
+        'Panel2
509
+        '
510
+        Me.Panel2.Controls.Add(Me.虛擬人工_dgv)
511
+        Me.Panel2.Controls.Add(Me.實際人工_dgv)
512
+        Me.Panel2.Controls.Add(Me.縮放2_bt)
513
+        Me.Panel2.Dock = System.Windows.Forms.DockStyle.Fill
514
+        Me.Panel2.Location = New System.Drawing.Point(0, 0)
515
+        Me.Panel2.Name = "Panel2"
516
+        Me.Panel2.Size = New System.Drawing.Size(1344, 600)
517
+        Me.Panel2.TabIndex = 1
518
+        '
519
+        '虛擬人工_dgv
520
+        '
521
+        Me.虛擬人工_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
522
+            Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
523
+        Me.虛擬人工_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
524
+        Me.虛擬人工_dgv.BackgroundColor = System.Drawing.Color.White
525
+        Me.虛擬人工_dgv.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
526
+        Me.虛擬人工_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
527
+        Me.虛擬人工_dgv.Location = New System.Drawing.Point(348, 3)
528
+        Me.虛擬人工_dgv.Name = "虛擬人工_dgv"
529
+        Me.虛擬人工_dgv.RowHeadersWidth = 5
530
+        DataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
531
+        Me.虛擬人工_dgv.RowsDefaultCellStyle = DataGridViewCellStyle5
532
+        Me.虛擬人工_dgv.RowTemplate.Height = 24
533
+        Me.虛擬人工_dgv.Size = New System.Drawing.Size(344, 594)
534
+        Me.虛擬人工_dgv.TabIndex = 1956
535
+        '
536
+        '實際人工_dgv
537
+        '
538
+        Me.實際人工_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
539
+            Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
540
+        Me.實際人工_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
541
+        Me.實際人工_dgv.BackgroundColor = System.Drawing.Color.White
542
+        Me.實際人工_dgv.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
543
+        Me.實際人工_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
544
+        Me.實際人工_dgv.Location = New System.Drawing.Point(3, 3)
545
+        Me.實際人工_dgv.Name = "實際人工_dgv"
546
+        Me.實際人工_dgv.RowHeadersWidth = 5
547
+        DataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
548
+        Me.實際人工_dgv.RowsDefaultCellStyle = DataGridViewCellStyle6
549
+        Me.實際人工_dgv.RowTemplate.Height = 24
550
+        Me.實際人工_dgv.Size = New System.Drawing.Size(344, 594)
551
+        Me.實際人工_dgv.TabIndex = 1955
552
+        '
553
+        '縮放2_bt
554
+        '
555
+        Me.縮放2_bt.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
556
+        Me.縮放2_bt.BackgroundImage = Global.Calculator_SYS.My.Resources.Resources.list_bullets
557
+        Me.縮放2_bt.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom
558
+        Me.縮放2_bt.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
559
+        Me.縮放2_bt.ForeColor = System.Drawing.Color.Blue
560
+        Me.縮放2_bt.Location = New System.Drawing.Point(1306, 3)
561
+        Me.縮放2_bt.Name = "縮放2_bt"
562
+        Me.縮放2_bt.Size = New System.Drawing.Size(35, 35)
563
+        Me.縮放2_bt.TabIndex = 1949
564
+        Me.縮放2_bt.UseVisualStyleBackColor = True
565
+        '
566
+        '財務報表1
567
+        '
568
+        Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
569
+        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
570
+        Me.ClientSize = New System.Drawing.Size(1344, 600)
571
+        Me.Controls.Add(Me.Panel1)
572
+        Me.Controls.Add(Me.Panel2)
573
+        Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
574
+        Me.Margin = New System.Windows.Forms.Padding(4)
575
+        Me.Name = "財務報表1"
576
+        Me.Text = "財務報表1"
577
+        Me.Panel1.ResumeLayout(False)
578
+        Me.Panel1.PerformLayout()
579
+        CType(Me.沖帳採購_dgv, System.ComponentModel.ISupportInitialize).EndInit()
580
+        CType(Me.實際採購_dgv, System.ComponentModel.ISupportInitialize).EndInit()
581
+        CType(Me.沖帳工資_dgv, System.ComponentModel.ISupportInitialize).EndInit()
582
+        CType(Me.實際工資_dgv, System.ComponentModel.ISupportInitialize).EndInit()
583
+        CType(Me.Chart1, System.ComponentModel.ISupportInitialize).EndInit()
584
+        CType(Me.Chart2, System.ComponentModel.ISupportInitialize).EndInit()
585
+        Me.Panel2.ResumeLayout(False)
586
+        CType(Me.虛擬人工_dgv, System.ComponentModel.ISupportInitialize).EndInit()
587
+        CType(Me.實際人工_dgv, System.ComponentModel.ISupportInitialize).EndInit()
588
+        Me.ResumeLayout(False)
589
+
590
+    End Sub
591
+
592
+    Friend WithEvents Panel1 As Panel
593
+    Friend WithEvents Panel2 As Panel
594
+    Friend WithEvents 縮放1_bt As Button
595
+    Friend WithEvents 縮放2_bt As Button
596
+    Friend WithEvents 虛擬人工_dgv As DataGridView
597
+    Friend WithEvents 實際人工_dgv As DataGridView
598
+    Friend WithEvents Label2 As Label
599
+    Friend WithEvents Label1 As Label
600
+    Friend WithEvents 沖帳工資_dgv As DataGridView
601
+    Friend WithEvents 實際工資_dgv As DataGridView
602
+    Friend WithEvents 合計1_tb As TextBox
603
+    Friend WithEvents 合計2_tb As TextBox
604
+    Friend WithEvents 年份2_cb As ComboBox
605
+    Friend WithEvents Label5 As Label
606
+    Friend WithEvents 比例1_tb As TextBox
607
+    Friend WithEvents 比例2_tb As TextBox
608
+    Friend WithEvents Label3 As Label
609
+    Friend WithEvents Label4 As Label
610
+    Friend WithEvents 比例3_tb As TextBox
611
+    Friend WithEvents 合計3_tb As TextBox
612
+    Friend WithEvents Label7 As Label
613
+    Friend WithEvents Label6 As Label
614
+    Friend WithEvents Chart1 As DataVisualization.Charting.Chart
615
+    Friend WithEvents 比例6_tb As TextBox
616
+    Friend WithEvents 合計6_tb As TextBox
617
+    Friend WithEvents Label10 As Label
618
+    Friend WithEvents 比例4_tb As TextBox
619
+    Friend WithEvents 比例5_tb As TextBox
620
+    Friend WithEvents 合計4_tb As TextBox
621
+    Friend WithEvents 合計5_tb As TextBox
622
+    Friend WithEvents Label11 As Label
623
+    Friend WithEvents Label12 As Label
624
+    Friend WithEvents Label8 As Label
625
+    Friend WithEvents Label9 As Label
626
+    Friend WithEvents 沖帳採購_dgv As DataGridView
627
+    Friend WithEvents 實際採購_dgv As DataGridView
628
+    Friend WithEvents Chart2 As DataVisualization.Charting.Chart
629
+    Friend WithEvents 重新讀取_bt As Button
630
+End Class

+ 123
- 0
Calculator-SYS/06、財務系統管理/財務報表1.resx ファイルの表示

@@ -0,0 +1,123 @@
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
+  <data name="Label6.Text" xml:space="preserve">
121
+    <value>____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________</value>
122
+  </data>
123
+</root>

+ 276
- 0
Calculator-SYS/06、財務系統管理/財務報表1.vb ファイルの表示

@@ -0,0 +1,276 @@
1
+Imports System.Windows.Forms.DataVisualization.Charting
2
+
3
+Public Class 財務報表1
4
+    Private Sub Set_實際人工()
5
+        Dim ds1 As New DataSet
6
+        實際人工_dgv.DataSource = Nothing : ds1.Clear()
7
+        實際人工_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
8
+        實際人工_dgv.ColumnHeadersHeight = 25 : 實際人工_dgv.AllowUserToAddRows = False : 實際人工_dgv.RowTemplate.Height = 25
9
+        PA30 = "0" : SQL_工人薪資彙總報表_查詢1()
10
+        da.Fill(ds1) : 實際人工_dgv.DataSource = ds1.Tables(0) : conn.Close()
11
+        For i As Integer = 0 To 實際人工_dgv.Rows.Count - 1 : 實際人工_dgv.Rows(i).Cells(0).Value = "1" : Next
12
+    End Sub
13
+    Private Sub Set_虛擬人工()
14
+        Dim ds1 As New DataSet
15
+        虛擬人工_dgv.DataSource = Nothing : ds1.Clear()
16
+        虛擬人工_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
17
+        虛擬人工_dgv.ColumnHeadersHeight = 25 : 虛擬人工_dgv.AllowUserToAddRows = False : 虛擬人工_dgv.RowTemplate.Height = 25
18
+        PA30 = "1" : SQL_工人薪資彙總報表_查詢1()
19
+        da.Fill(ds1) : 虛擬人工_dgv.DataSource = ds1.Tables(0) : conn.Close()
20
+        For i As Integer = 0 To 虛擬人工_dgv.Rows.Count - 1 : 虛擬人工_dgv.Rows(i).Cells(0).Value = "1" : Next
21
+    End Sub
22
+    Private Sub Set_實際工資()
23
+        Dim ds1 As New DataSet
24
+        實際工資_dgv.DataSource = Nothing : ds1.Clear()
25
+        實際工資_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
26
+        實際工資_dgv.ColumnHeadersHeight = 25 : 實際工資_dgv.AllowUserToAddRows = False : 實際工資_dgv.RowTemplate.Height = 25
27
+        PA30 = "0" : SQL_工人薪資彙總報表_查詢2()
28
+        da.Fill(ds1) : 實際工資_dgv.DataSource = ds1.Tables(0) : conn.Close()
29
+        Dim 週數, 人數 As Integer : 週數 = 0 : 人數 = 0
30
+        For i As Integer = 0 To 實際工資_dgv.Rows.Count - 1
31
+            If IsDBNull(實際工資_dgv.Rows(i).Cells(2).Value) Then
32
+                實際工資_dgv.Rows(i).Cells(2).Value = 0 : 實際工資_dgv.Rows(i).Cells(3).Value = 0
33
+                實際工資_dgv.Rows(i).Cells(4).Value = 0 : 實際工資_dgv.Rows(i).Cells(5).Value = 0
34
+            End If
35
+            For II As Integer = 0 To 實際人工_dgv.Rows.Count - 1
36
+                If 實際人工_dgv.Rows(II).Cells(2).Value.ToString = 實際工資_dgv.Rows(i).Cells(1).Value.ToString Then
37
+                    週數 += CInt(實際人工_dgv.Rows(II).Cells(0).Value.ToString) : 人數 += CInt(實際人工_dgv.Rows(II).Cells(4).Value.ToString)
38
+                End If
39
+            Next : 實際工資_dgv.Rows(i).Cells(2).Value = Strings.Format(人數 / 週數, "#,##0")
40
+        Next
41
+        實際工資_dgv.Columns(3).FillWeight = 140 : 實際工資_dgv.Columns(4).Visible = False : 實際工資_dgv.Columns(5).Visible = False
42
+        實際工資_dgv.Columns(3).DefaultCellStyle.Format = "#,##0"
43
+        實際工資_dgv.Columns(3).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
44
+    End Sub
45
+    Private Sub Set_虛擬工資()
46
+        Dim ds1 As New DataSet
47
+        沖帳工資_dgv.DataSource = Nothing : ds1.Clear()
48
+        沖帳工資_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
49
+        沖帳工資_dgv.ColumnHeadersHeight = 25 : 沖帳工資_dgv.AllowUserToAddRows = False : 沖帳工資_dgv.RowTemplate.Height = 25
50
+        PA30 = "1" : SQL_工人薪資彙總報表_查詢2()
51
+        da.Fill(ds1) : 沖帳工資_dgv.DataSource = ds1.Tables(0) : conn.Close()
52
+        Dim 週數, 人數 As Integer : 週數 = 0 : 人數 = 0
53
+        For i As Integer = 0 To 沖帳工資_dgv.Rows.Count - 1
54
+            If IsDBNull(虛擬人工_dgv.Rows(i).Cells(2).Value) Then
55
+                虛擬人工_dgv.Rows(i).Cells(2).Value = 0 : 虛擬人工_dgv.Rows(i).Cells(3).Value = 0
56
+                虛擬人工_dgv.Rows(i).Cells(4).Value = 0 : 虛擬人工_dgv.Rows(i).Cells(5).Value = 0
57
+            End If
58
+            For II As Integer = 0 To 虛擬人工_dgv.Rows.Count - 1
59
+                If 虛擬人工_dgv.Rows(II).Cells(2).Value.ToString = 沖帳工資_dgv.Rows(i).Cells(1).Value.ToString Then
60
+                    週數 += CInt(虛擬人工_dgv.Rows(II).Cells(0).Value.ToString) : 人數 += CInt(虛擬人工_dgv.Rows(II).Cells(4).Value.ToString)
61
+                End If
62
+            Next : 沖帳工資_dgv.Rows(i).Cells(2).Value = Strings.Format(人數 / 週數, "#,##0")
63
+        Next
64
+        沖帳工資_dgv.Columns(3).FillWeight = 140 : 沖帳工資_dgv.Columns(4).Visible = False : 沖帳工資_dgv.Columns(5).Visible = False
65
+        沖帳工資_dgv.Columns(3).DefaultCellStyle.Format = "#,##0"
66
+        沖帳工資_dgv.Columns(3).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
67
+    End Sub
68
+    Private Sub Set_實際採購()
69
+        Dim ds1 As New DataSet
70
+        實際採購_dgv.DataSource = Nothing : ds1.Clear()
71
+        實際採購_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
72
+        實際採購_dgv.ColumnHeadersHeight = 25 : 實際採購_dgv.AllowUserToAddRows = False : 實際採購_dgv.RowTemplate.Height = 25
73
+        SQL_採購總額彙總報表_查詢1()
74
+        da.Fill(ds1) : 實際採購_dgv.DataSource = ds1.Tables(0) : conn.Close()
75
+        For i As Integer = 0 To 實際採購_dgv.Rows.Count - 1
76
+            If IsDBNull(實際採購_dgv.Rows(i).Cells(2).Value) Then
77
+                實際採購_dgv.Rows(i).Cells(2).Value = 0 : 實際採購_dgv.Rows(i).Cells(3).Value = 0
78
+                實際採購_dgv.Rows(i).Cells(4).Value = 0 : 實際採購_dgv.Rows(i).Cells(5).Value = 0
79
+            End If
80
+        Next
81
+        實際採購_dgv.Columns(3).FillWeight = 140 : 實際採購_dgv.Columns(4).Visible = False : 實際採購_dgv.Columns(5).Visible = False
82
+        實際採購_dgv.Columns(3).DefaultCellStyle.Format = "#,##0"
83
+        實際採購_dgv.Columns(3).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
84
+    End Sub
85
+    Private Sub Set_沖帳採購()
86
+        Dim ds1 As New DataSet
87
+        沖帳採購_dgv.DataSource = Nothing : ds1.Clear()
88
+        沖帳採購_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
89
+        沖帳採購_dgv.ColumnHeadersHeight = 25 : 沖帳採購_dgv.AllowUserToAddRows = False : 沖帳採購_dgv.RowTemplate.Height = 25
90
+        SQL_採購總額彙總報表_查詢2()
91
+        da.Fill(ds1) : 沖帳採購_dgv.DataSource = ds1.Tables(0) : conn.Close()
92
+        For i As Integer = 0 To 沖帳採購_dgv.Rows.Count - 1
93
+            If IsDBNull(沖帳採購_dgv.Rows(i).Cells(2).Value) Then
94
+                沖帳採購_dgv.Rows(i).Cells(2).Value = 0 : 沖帳採購_dgv.Rows(i).Cells(3).Value = 0
95
+                沖帳採購_dgv.Rows(i).Cells(4).Value = 0 : 沖帳採購_dgv.Rows(i).Cells(5).Value = 0
96
+            End If
97
+        Next
98
+        沖帳採購_dgv.Columns(3).FillWeight = 140 : 沖帳採購_dgv.Columns(4).Visible = False : 沖帳採購_dgv.Columns(5).Visible = False
99
+        沖帳採購_dgv.Columns(3).DefaultCellStyle.Format = "#,##0"
100
+        沖帳採購_dgv.Columns(3).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
101
+    End Sub
102
+    Private Sub Set_計算()
103
+        Set_實際工資() : Set_虛擬工資() : Set_實際採購() : Set_沖帳採購() : 合計1_tb.Text = "0" : 合計2_tb.Text = "0" : 合計4_tb.Text = "0" : 合計5_tb.Text = "0"
104
+        For i As Integer = 0 To 實際工資_dgv.Rows.Count - 1 : 實際工資_dgv.Rows(i).Cells(5).Value = 0
105
+            合計1_tb.Text = CLng(合計1_tb.Text) + 實際工資_dgv.Rows(i).Cells(3).Value
106
+            For II As Integer = 0 To 沖帳工資_dgv.Rows.Count - 1
107
+                If 沖帳工資_dgv.Rows(II).Cells(1).Value.ToString = 實際工資_dgv.Rows(i).Cells(1).Value.ToString Then
108
+                    實際工資_dgv.Rows(i).Cells(4).Value = 實際工資_dgv.Rows(i).Cells(3).Value + 沖帳工資_dgv.Rows(i).Cells(3).Value
109
+                    If 實際工資_dgv.Rows(i).Cells(4).Value > 0 Then
110
+                        實際工資_dgv.Rows(i).Cells(5).Value = CInt((實際工資_dgv.Rows(i).Cells(3).Value / 實際工資_dgv.Rows(i).Cells(4).Value) * 100)
111
+                    End If
112
+                End If
113
+            Next
114
+        Next
115
+        For i As Integer = 0 To 沖帳工資_dgv.Rows.Count - 1 : 沖帳工資_dgv.Rows(i).Cells(5).Value = 0
116
+            合計2_tb.Text = CLng(合計2_tb.Text) + 沖帳工資_dgv.Rows(i).Cells(3).Value
117
+            For II As Integer = 0 To 實際工資_dgv.Rows.Count - 1
118
+                If 實際工資_dgv.Rows(II).Cells(1).Value.ToString = 沖帳工資_dgv.Rows(i).Cells(1).Value.ToString Then
119
+                    沖帳工資_dgv.Rows(i).Cells(4).Value = 沖帳工資_dgv.Rows(i).Cells(3).Value + 實際工資_dgv.Rows(i).Cells(3).Value
120
+                    If 沖帳工資_dgv.Rows(i).Cells(4).Value > 0 Then
121
+                        沖帳工資_dgv.Rows(i).Cells(5).Value = CInt((沖帳工資_dgv.Rows(i).Cells(3).Value / 沖帳工資_dgv.Rows(i).Cells(4).Value) * 100)
122
+                    End If
123
+                End If
124
+            Next
125
+        Next
126
+        For i As Integer = 0 To 實際採購_dgv.Rows.Count - 1
127
+            合計4_tb.Text = CLng(合計4_tb.Text) + 實際採購_dgv.Rows(i).Cells(3).Value
128
+            For II As Integer = 0 To 沖帳採購_dgv.Rows.Count - 1
129
+                If 沖帳採購_dgv.Rows(II).Cells(1).Value.ToString = 實際採購_dgv.Rows(i).Cells(1).Value.ToString Then
130
+                    實際採購_dgv.Rows(i).Cells(4).Value = 實際採購_dgv.Rows(i).Cells(3).Value + 沖帳採購_dgv.Rows(i).Cells(3).Value
131
+                    If 實際採購_dgv.Rows(i).Cells(4).Value > 0 Then
132
+                        實際採購_dgv.Rows(i).Cells(5).Value = CInt((實際採購_dgv.Rows(i).Cells(3).Value / 實際採購_dgv.Rows(i).Cells(4).Value) * 100)
133
+                    End If
134
+                End If
135
+            Next
136
+        Next
137
+        For i As Integer = 0 To 沖帳採購_dgv.Rows.Count - 1
138
+            合計5_tb.Text = CLng(合計5_tb.Text) + 沖帳採購_dgv.Rows(i).Cells(3).Value
139
+            For II As Integer = 0 To 實際採購_dgv.Rows.Count - 1
140
+                If 實際採購_dgv.Rows(II).Cells(1).Value.ToString = 沖帳採購_dgv.Rows(i).Cells(1).Value.ToString Then
141
+                    沖帳採購_dgv.Rows(i).Cells(4).Value = 沖帳採購_dgv.Rows(i).Cells(3).Value + 實際採購_dgv.Rows(i).Cells(3).Value
142
+                    If 沖帳採購_dgv.Rows(i).Cells(4).Value > 0 Then
143
+                        沖帳採購_dgv.Rows(i).Cells(5).Value = CInt((沖帳採購_dgv.Rows(i).Cells(3).Value / 沖帳採購_dgv.Rows(i).Cells(4).Value) * 100)
144
+                    End If
145
+                End If
146
+            Next
147
+        Next
148
+        Set_進度條顯示1() : Set_進度條顯示2() : Set_進度條顯示3() : Set_進度條顯示4()
149
+        比例1_tb.Text = CLng(合計1_tb.Text) / (CLng(合計1_tb.Text) + CLng(合計2_tb.Text)) * 100
150
+        比例2_tb.Text = CLng(合計2_tb.Text) / (CLng(合計1_tb.Text) + CLng(合計2_tb.Text)) * 100
151
+        比例4_tb.Text = CLng(合計4_tb.Text) / (CLng(合計4_tb.Text) + CLng(合計5_tb.Text)) * 100
152
+        比例5_tb.Text = CLng(合計5_tb.Text) / (CLng(合計4_tb.Text) + CLng(合計5_tb.Text)) * 100
153
+        比例3_tb.Text = CLng(比例1_tb.Text) + CLng(比例2_tb.Text) : 合計3_tb.Text = CLng(合計1_tb.Text) + CLng(合計2_tb.Text)
154
+        比例6_tb.Text = CLng(比例4_tb.Text) + CLng(比例5_tb.Text) : 合計6_tb.Text = CLng(合計4_tb.Text) + CLng(合計5_tb.Text)
155
+        比例1_tb.Text = Strings.Format(CLng(比例1_tb.Text), "#,##0.00") & " %" : 比例2_tb.Text = Strings.Format(CLng(比例2_tb.Text), "#,##0.00") & " %"
156
+        比例3_tb.Text = Strings.Format(CLng(比例3_tb.Text), "#,##0.00") & " %" : 比例4_tb.Text = Strings.Format(CLng(比例4_tb.Text), "#,##0.00") & " %"
157
+        比例5_tb.Text = Strings.Format(CLng(比例5_tb.Text), "#,##0.00") & " %" : 比例6_tb.Text = Strings.Format(CLng(比例6_tb.Text), "#,##0.00") & " %"
158
+        合計1_tb.Text = Strings.Format(CLng(合計1_tb.Text), "#,##0") : 合計2_tb.Text = Strings.Format(CLng(合計2_tb.Text), "#,##0")
159
+        合計3_tb.Text = Strings.Format(CLng(合計3_tb.Text), "#,##0") : 合計4_tb.Text = Strings.Format(CLng(合計4_tb.Text), "#,##0")
160
+        合計5_tb.Text = Strings.Format(CLng(合計5_tb.Text), "#,##0") : 合計6_tb.Text = Strings.Format(CLng(合計6_tb.Text), "#,##0")
161
+        彙總()
162
+    End Sub
163
+    Private Sub Set_進度條顯示1()
164
+        Dim Col As New DataGridViewProgressColumn With {
165
+            .Width = 30,
166
+            .DataPropertyName = "比例"
167
+        }
168
+        Col.HeaderText = "Percent (%)" : Col.Name = "容量" : Col.DataPropertyName = "比例" : 實際工資_dgv.Columns.Insert(5, Col)
169
+    End Sub
170
+    Private Sub Set_進度條顯示2()
171
+        Dim Col As New DataGridViewProgressColumn With {
172
+            .Width = 30,
173
+            .DataPropertyName = "比例"
174
+        }
175
+        Col.HeaderText = "Percent (%)" : Col.Name = "容量" : Col.DataPropertyName = "比例" : 沖帳工資_dgv.Columns.Insert(5, Col)
176
+    End Sub
177
+    Private Sub Set_進度條顯示3()
178
+        Dim Col As New DataGridViewProgressColumn With {
179
+            .Width = 30,
180
+            .DataPropertyName = "比例"
181
+        }
182
+        Col.HeaderText = "Percent (%)" : Col.Name = "容量" : Col.DataPropertyName = "比例" : 實際採購_dgv.Columns.Insert(5, Col)
183
+    End Sub
184
+    Private Sub Set_進度條顯示4()
185
+        Dim Col As New DataGridViewProgressColumn With {
186
+            .Width = 30,
187
+            .DataPropertyName = "比例"
188
+        }
189
+        Col.HeaderText = "Percent (%)" : Col.Name = "容量" : Col.DataPropertyName = "比例" : 沖帳採購_dgv.Columns.Insert(5, Col)
190
+    End Sub
191
+    Private Sub 年分清單()
192
+        SQL_年分清單() : 年份2_cb.Items.Clear()
193
+        While (dr.Read()) : 年份2_cb.Items.Add(dr("日期")) : End While : conn.Close()
194
+    End Sub
195
+    Private Sub 財務報表1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
196
+        Me.MdiParent = HX_PGS_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
197
+        H(316) = True : 介面 = "H316" : 顯示說明(999, False)
198
+        分母 = 100 : 分段1 = 0.35 : 分段2 = 0.34 : 分段3 = 0.65 : 分段4 = 0.64 : 進度條後墜 = " %"
199
+        Panel2.SendToBack()
200
+    End Sub
201
+    Private Sub 財務報表1_Shown(sender As Object, e As EventArgs) Handles MyBase.Shown
202
+        年分清單() : 年份2_cb.Text = Year(Today) : 重新讀取_bt.PerformClick()
203
+    End Sub
204
+    Private Sub 財務報表1_SizeChanged(sender As Object, e As EventArgs) Handles MyBase.SizeChanged
205
+        MyMod.清單字體大小調整()
206
+        實際人工_dgv.RowsDefaultCellStyle.Font = New System.Drawing.Font("微軟正黑體", HX_PGS_ERP_SYS.字體_NUD.Value)
207
+        虛擬人工_dgv.RowsDefaultCellStyle.Font = New System.Drawing.Font("微軟正黑體", HX_PGS_ERP_SYS.字體_NUD.Value)
208
+        實際採購_dgv.RowsDefaultCellStyle.Font = New System.Drawing.Font("微軟正黑體", HX_PGS_ERP_SYS.字體_NUD.Value)
209
+        沖帳採購_dgv.RowsDefaultCellStyle.Font = New System.Drawing.Font("微軟正黑體", HX_PGS_ERP_SYS.字體_NUD.Value)
210
+        實際工資_dgv.RowsDefaultCellStyle.Font = New System.Drawing.Font("微軟正黑體", HX_PGS_ERP_SYS.字體_NUD.Value)
211
+        沖帳工資_dgv.RowsDefaultCellStyle.Font = New System.Drawing.Font("微軟正黑體", HX_PGS_ERP_SYS.字體_NUD.Value)
212
+    End Sub
213
+    Private Sub 財務報表1_Closed(sender As Object, e As EventArgs) Handles MyBase.Closed
214
+        HX_PGS_ERP_SYS.WindowState = 0 : HX_PGS_ERP_SYS.MaximizeBox = True : HX_PGS_ERP_SYS.MinimizeBox = True
215
+        H(611) = False : MyMod.虛擬桌面開啟()
216
+    End Sub
217
+    Private Sub 登入閒置控制_MouseMove(sender As Object, e As EventArgs) Handles MyBase.MouseMove
218
+        timeNow = 0 : HX_PGS_ERP_SYS.Timer1.Enabled = False : HX_PGS_ERP_SYS.Timer1.Enabled = True
219
+    End Sub
220
+    Private Sub 登入閒置控制_KeyPress(sender As Object, e As EventArgs) Handles MyBase.KeyPress
221
+        timeNow = 0 : HX_PGS_ERP_SYS.Timer1.Enabled = False : HX_PGS_ERP_SYS.Timer1.Enabled = True
222
+    End Sub
223
+    Private Sub 縮放1_bt_Click(sender As Object, e As EventArgs) Handles 縮放1_bt.Click
224
+        Panel2.BringToFront() : Panel1.SendToBack()
225
+    End Sub
226
+    Private Sub 縮放2_bt_Click(sender As Object, e As EventArgs) Handles 縮放2_bt.Click
227
+        Panel2.SendToBack() : Panel1.BringToFront()
228
+    End Sub
229
+    Private Sub 彙總()
230
+        Chart1.ChartAreas.Clear() : Chart1.ChartAreas.Add(0) : Chart1.Series.Clear()
231
+        Chart1.ChartAreas(0).AxisX.Minimum = 0
232
+        Chart1.ChartAreas(0).AxisX.CustomLabels.Clear() ' 清除现有的自定义标签
233
+        For i As Integer = 0 To 12        ' 添加自定义标签
234
+            Dim label As New CustomLabel(i - 0.5, i + 0.5, i.ToString("D2"), 0, LabelMarkStyle.None)
235
+            Chart1.ChartAreas(0).AxisX.CustomLabels.Add(label)
236
+        Next
237
+        Chart1.ChartAreas(0).AxisY.LabelStyle.Font = New Font("Arial", 8) : Chart1.ChartAreas(0).AxisY.LabelStyle.Format = "#,##0" & " M"
238
+
239
+        Chart1.Series.Add("實際工資") : Chart1.Series("實際工資").ChartType = SeriesChartType.Line
240
+        Chart1.Series.Add("沖帳工資") : Chart1.Series("沖帳工資").ChartType = SeriesChartType.Line
241
+        Chart1.Series.Add("實際工資.") : Chart1.Series("實際工資.").ChartType = SeriesChartType.Column
242
+        Chart1.Series.Add("沖帳工資.") : Chart1.Series("沖帳工資.").ChartType = SeriesChartType.Column
243
+        For i As Integer = 0 To 實際工資_dgv.Rows.Count - 1
244
+            Chart1.Series("實際工資.").Points.AddXY(實際工資_dgv.Rows(i).Cells("月").Value.ToString, CLng(實際工資_dgv.Rows(i).Cells("總金額").Value.ToString) / 1000000)
245
+            Chart1.Series("沖帳工資.").Points.AddXY(沖帳工資_dgv.Rows(i).Cells("月").Value.ToString, CLng(沖帳工資_dgv.Rows(i).Cells("總金額").Value.ToString) / 1000000)
246
+            Chart1.Series("實際工資").Points.AddXY(實際工資_dgv.Rows(i).Cells("月").Value.ToString, CLng(實際工資_dgv.Rows(i).Cells("總金額").Value.ToString) / 1000000)
247
+            Chart1.Series("沖帳工資").Points.AddXY(沖帳工資_dgv.Rows(i).Cells("月").Value.ToString, CLng(沖帳工資_dgv.Rows(i).Cells("總金額").Value.ToString) / 1000000)
248
+        Next
249
+
250
+        Chart2.ChartAreas.Clear() : Chart2.ChartAreas.Add(0) : Chart2.Series.Clear()
251
+        Chart2.ChartAreas(0).AxisX.Minimum = 0
252
+        Chart2.ChartAreas(0).AxisX.CustomLabels.Clear() ' 清除现有的自定义标签
253
+        For i As Integer = 0 To 12        ' 添加自定义标签
254
+            Dim label As New CustomLabel(i - 0.5, i + 0.5, i.ToString("D2"), 0, LabelMarkStyle.None)
255
+            Chart2.ChartAreas(0).AxisX.CustomLabels.Add(label)
256
+        Next
257
+        Chart2.ChartAreas(0).AxisY.LabelStyle.Font = New Font("Arial", 8) : Chart2.ChartAreas(0).AxisY.LabelStyle.Format = "#,##0" & " M"
258
+
259
+        Chart2.Series.Add("實際採購") : Chart2.Series("實際採購").ChartType = SeriesChartType.Line
260
+        Chart2.Series.Add("沖帳採購") : Chart2.Series("沖帳採購").ChartType = SeriesChartType.Line
261
+        Chart2.Series.Add("實際採購.") : Chart2.Series("實際採購.").ChartType = SeriesChartType.Column
262
+        Chart2.Series.Add("沖帳採購.") : Chart2.Series("沖帳採購.").ChartType = SeriesChartType.Column
263
+        For i As Integer = 0 To 實際採購_dgv.Rows.Count - 1
264
+            Chart2.Series("實際採購.").Points.AddXY(實際採購_dgv.Rows(i).Cells("月").Value.ToString, CLng(實際採購_dgv.Rows(i).Cells("總金額").Value.ToString) / 1000000)
265
+            Chart2.Series("沖帳採購.").Points.AddXY(沖帳採購_dgv.Rows(i).Cells("月").Value.ToString, CLng(沖帳採購_dgv.Rows(i).Cells("總金額").Value.ToString) / 1000000)
266
+            Chart2.Series("實際採購").Points.AddXY(實際採購_dgv.Rows(i).Cells("月").Value.ToString, CLng(實際採購_dgv.Rows(i).Cells("總金額").Value.ToString) / 1000000)
267
+            Chart2.Series("沖帳採購").Points.AddXY(沖帳採購_dgv.Rows(i).Cells("月").Value.ToString, CLng(沖帳採購_dgv.Rows(i).Cells("總金額").Value.ToString) / 1000000)
268
+        Next
269
+    End Sub
270
+    Private Sub 重新讀取_bt_Click(sender As Object, e As EventArgs) Handles 重新讀取_bt.Click
271
+        PA25 = 年份2_cb.Text : Set_實際人工() : Set_虛擬人工() : Set_計算()
272
+    End Sub
273
+    Private Sub 年份2_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 年份2_cb.SelectedIndexChanged
274
+        CB選擇清單(年份2_cb, 年份2_cb.Text) : 重新讀取_bt.PerformClick()
275
+    End Sub
276
+End Class

+ 1082
- 0
Calculator-SYS/06、財務系統管理/財務報表2.Designer.vb
ファイル差分が大きすぎるため省略します
ファイルの表示


+ 120
- 0
Calculator-SYS/06、財務系統管理/財務報表2.resx ファイルの表示

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

+ 777
- 0
Calculator-SYS/06、財務系統管理/財務報表2.vb ファイルの表示

@@ -0,0 +1,777 @@
1
+Imports System.Windows.Forms.DataVisualization.Charting
2
+Public Class 財務報表2
3
+    Dim 已付款 As Boolean
4
+    Dim 新項次, 合約號, 物料規格, 新流水1 As String
5
+    Dim NUM1, II As Integer
6
+    Dim 對話框(1) As String
7
+    Private Function IsVerticalScrollBarVisible(dgv As DataGridView) As Boolean
8
+        Return dgv.FirstDisplayedScrollingRowIndex > 0 OrElse dgv.DisplayedRowCount(False) < dgv.Rows.Count
9
+    End Function
10
+    Private Sub 語言轉換讀取()
11
+        If 系統語言 = "繁體中文" Then : 語言 = "CH" : ElseIf 系統語言 = "English" Then : 語言 = "EN" : ElseIf 系統語言 = "Indonesian" Then : 語言 = "IN" : End If
12
+        表頭(11) = 系統語言字典("H206-112-" & 語言) : 表頭(12) = 系統語言字典("H206-106-" & 語言) : 表頭(15) = 系統語言字典("H206-114-" & 語言)
13
+        表頭(134) = 系統語言字典("H206-104-" & 語言) : 表頭(13) = 系統語言字典("H206-108-" & 語言) : 表頭(14) = 系統語言字典("H206-109-" & 語言)
14
+        表頭(16) = 系統語言字典("H206-110-" & 語言) : 表頭(26) = 系統語言字典("H206-111-" & 語言) : 表頭(27) = 系統語言字典("H206-105-" & 語言)
15
+        表頭(19) = 系統語言字典("H206-103-" & 語言) : 表頭(10) = 系統語言字典("H213-101-" & 語言) : 表頭(17) = 系統語言字典("H299-109-" & 語言)
16
+        表頭(18) = 系統語言字典("H206-107-" & 語言) : 表頭(20) = 系統語言字典("H311-100-" & 語言) : 表頭(21) = 系統語言字典("H311-101-" & 語言)
17
+        表頭(22) = 系統語言字典("H311-102-" & 語言) : 表頭(23) = 系統語言字典("H204-116-" & 語言) : 表頭(24) = 系統語言字典("H201-124-" & 語言)
18
+        表頭(25) = 系統語言字典("H311-103-" & 語言) : 表頭(28) = 系統語言字典("H311-104-" & 語言) : Label16.Text = 系統語言字典("H311-107-" & 語言)
19
+        表頭(29) = 系統語言字典("H311-105-" & 語言) : 對話框(0) = 系統語言字典("H312-100-" & 語言) : 對話框(1) = 系統語言字典("H312-101-" & 語言)
20
+        表頭(30) = 系統語言字典("H204-120-" & 語言) : 表頭(31) = 系統語言字典("H312-102-" & 語言) : 表頭(32) = 系統語言字典("H312-103-" & 語言)
21
+        表頭(33) = 系統語言字典("H312-104-" & 語言) : 表頭(34) = 系統語言字典("H312-105-" & 語言) : 表頭(35) = 系統語言字典("H312-106-" & 語言)
22
+        表頭(36) = 系統語言字典("H311-106-" & 語言)
23
+    End Sub
24
+    Private Sub Set_清單1()
25
+        Dim ds1, ds2, ds3, ds4 As New DataSet
26
+        清單_dgv.DataSource = Nothing : ds1.Clear() : 清單1_dgv.DataSource = Nothing : ds2.Clear()
27
+        彙總1_dgv.DataSource = Nothing : ds3.Clear() : 合計1_dgv.DataSource = Nothing : ds4.Clear()
28
+
29
+        清單_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
30
+        清單_dgv.ColumnHeadersHeight = 50 : 清單_dgv.AllowUserToAddRows = False : 清單_dgv.RowTemplate.Height = 25
31
+        清單1_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
32
+        清單1_dgv.ColumnHeadersHeight = 50 : 清單1_dgv.AllowUserToAddRows = False : 清單1_dgv.RowTemplate.Height = 25
33
+        彙總1_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
34
+        彙總1_dgv.ColumnHeadersHeight = 50 : 彙總1_dgv.AllowUserToAddRows = False : 彙總1_dgv.RowTemplate.Height = 25
35
+        合計1_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
36
+        合計1_dgv.ColumnHeadersHeight = 50 : 合計1_dgv.AllowUserToAddRows = False : 合計1_dgv.RowTemplate.Height = 25
37
+        合計1_dgv.ScrollBars = ScrollBars.None : 合計1_dgv.ColumnHeadersVisible = False
38
+
39
+        SQL2 = "(採購單控制表.已出納 IS NULL OR 採購單控制表.已出納 = 0)"
40
+        SQL_採購未付款清單1() : da.Fill(ds1) : 清單_dgv.DataSource = ds1.Tables(0) : conn.Close()
41
+        SQL2 = "(採購單控制表.已出納 = 1)"
42
+        SQL_採購未付款清單1() : da.Fill(ds2) : 清單1_dgv.DataSource = ds2.Tables(0) : conn.Close()
43
+        SQL_採購付款彙總1() : da.Fill(ds3) : 彙總1_dgv.DataSource = ds3.Tables(0) : conn.Close()
44
+        SQL_採購付款彙總0() : da.Fill(ds4) : 合計1_dgv.DataSource = ds4.Tables(0) : conn.Close()
45
+
46
+        清單_dgv.Columns(0).FillWeight = 150 : 清單_dgv.Columns(1).FillWeight = 200 : 清單_dgv.Columns(2).FillWeight = 50 : 清單_dgv.Columns(3).FillWeight = 50
47
+        清單_dgv.Columns(4).FillWeight = 130 : 清單_dgv.Columns(表頭(28)).FillWeight = 50
48
+        清單1_dgv.Columns(0).FillWeight = 150 : 清單1_dgv.Columns(1).FillWeight = 200 : 清單1_dgv.Columns(2).FillWeight = 50 : 清單1_dgv.Columns(3).FillWeight = 50
49
+        清單1_dgv.Columns(4).FillWeight = 130 : 清單1_dgv.Columns(表頭(28)).FillWeight = 50
50
+        彙總1_dgv.Columns("比例1").Visible = False
51
+        彙總1_dgv.Columns(1).DefaultCellStyle.Format = "#,##0"
52
+        彙總1_dgv.Columns(1).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
53
+        彙總1_dgv.Columns(1).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
54
+        合計1_dgv.Columns("比例1").Visible = False
55
+        合計1_dgv.Columns(1).DefaultCellStyle.Format = "#,##0"
56
+        合計1_dgv.Columns(1).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
57
+        合計1_dgv.Columns(1).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
58
+
59
+        Dim indexArray() As Integer = {2, 3, 5, 6, 7}
60
+        For Each index As Integer In indexArray
61
+            清單_dgv.Columns(index).DefaultCellStyle.Format = "#,##0"
62
+            清單_dgv.Columns(index).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
63
+            清單_dgv.Columns(index).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
64
+            清單1_dgv.Columns(index).DefaultCellStyle.Format = "#,##0"
65
+            清單1_dgv.Columns(index).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
66
+            清單1_dgv.Columns(index).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
67
+        Next
68
+        Dim 總和 As Long
69
+        For i As Integer = 0 To 清單_dgv.Rows.Count - 1
70
+            If Strings.Left(清單_dgv.Rows(i).Cells("合約號").Value.ToString, 1) = "H" Or Strings.Left(清單_dgv.Rows(i).Cells("合約號").Value.ToString, 1) = "P" Then : Else
71
+                清單_dgv.Rows(i).Cells("合約號").Value = ""
72
+            End If
73
+            清單_dgv.Rows(i).Cells(表頭(21)).Value = 清單_dgv.Rows(i).Cells(表頭(20)).Value / 100 * 清單_dgv.Rows(i).Cells("DISC").Value
74
+            清單_dgv.Rows(i).Cells(表頭(22)).Value = (清單_dgv.Rows(i).Cells(表頭(20)).Value - 清單_dgv.Rows(i).Cells(表頭(21)).Value) * 清單_dgv.Rows(i).Cells("PPN").Value / 100
75
+            總和 += 清單_dgv.Rows(i).Cells(表頭(20)).Value - 清單_dgv.Rows(i).Cells(表頭(21)).Value + 清單_dgv.Rows(i).Cells(表頭(22)).Value
76
+        Next
77
+        For i As Integer = 0 To 清單1_dgv.Rows.Count - 1
78
+            清單1_dgv.Rows(i).Cells(表頭(21)).Value = 清單1_dgv.Rows(i).Cells(表頭(20)).Value / 100 * 清單1_dgv.Rows(i).Cells("DISC").Value
79
+            清單1_dgv.Rows(i).Cells(表頭(22)).Value = (清單1_dgv.Rows(i).Cells(表頭(20)).Value - 清單1_dgv.Rows(i).Cells(表頭(21)).Value) * 清單_dgv.Rows(i).Cells("PPN").Value / 100
80
+        Next
81
+
82
+        合計1_dgv.Rows(0).Cells(0).Value = 對話框(0) : 合計1_dgv.Rows(0).Cells(表頭(29)).Value = "0" : 合計1_dgv.Rows(0).Cells("比例1").Value = "0"
83
+        For i As Integer = 0 To 彙總1_dgv.Rows.Count - 1 : 彙總1_dgv.Rows(i).Cells(表頭(29)).Value = "0" : 彙總1_dgv.Rows(i).Cells("比例1").Value = "0"
84
+            For ii As Integer = 0 To 清單_dgv.Rows.Count - 1
85
+                If 彙總1_dgv.Rows(i).Cells(0).Value.ToString = 清單_dgv.Rows(ii).Cells(0).Value.ToString Then
86
+                    彙總1_dgv.Rows(i).Cells(表頭(29)).Value += 清單_dgv.Rows(ii).Cells(表頭(20)).Value - 清單_dgv.Rows(ii).Cells(表頭(21)).Value + 清單_dgv.Rows(ii).Cells(表頭(22)).Value
87
+                End If
88
+            Next
89
+            彙總1_dgv.Rows(i).Cells("比例1").Value = 彙總1_dgv.Rows(i).Cells(表頭(29)).Value / 總和 * 100
90
+            合計1_dgv.Rows(0).Cells(表頭(29)).Value += 彙總1_dgv.Rows(i).Cells(表頭(29)).Value
91
+            合計1_dgv.Rows(0).Cells("比例1").Value += 彙總1_dgv.Rows(i).Cells("比例1").Value
92
+        Next
93
+        Set_進度條顯示1() : 彙總1_dgv.Columns(3).FillWeight = 60 : 彙總1_dgv.Columns(0).FillWeight = 150
94
+        Set_進度條顯示0() : 合計1_dgv.Columns(3).FillWeight = 60 : 合計1_dgv.Columns(0).FillWeight = 150
95
+        Dim mycol1 As DataGridViewImageColumn = 清單_dgv.Columns(表頭(28)) : mycol1.ImageLayout = DataGridViewImageCellLayout.Zoom
96
+        Dim mycol2 As DataGridViewImageColumn = 清單1_dgv.Columns(表頭(28)) : mycol2.ImageLayout = DataGridViewImageCellLayout.Zoom
97
+        For I As Integer = 0 To 清單_dgv.Rows.Count - 1 : 清單_dgv.Rows(I).Cells(表頭(28)).Value = My.Resources.visa_2 : Next
98
+        For I As Integer = 0 To 清單1_dgv.Rows.Count - 1 : 清單1_dgv.Rows(I).Cells(表頭(28)).Value = My.Resources.Close : Next
99
+        彙總1_dgv.Sort(彙總1_dgv.Columns(1), System.ComponentModel.ListSortDirection.Descending)
100
+        PA10 = "" : Set_清單2() : Set_清單3()
101
+        '-------------------------合計DGV變形----------------------------------------------------------------------------------------------------------------------
102
+        If IsVerticalScrollBarVisible(彙總1_dgv) Then : 合計1_dgv.Size = New Size(彙總1_dgv.Size.Width - 17, 合計1_dgv.Size.Height)
103
+        Else : 合計1_dgv.Size = New Size(彙總1_dgv.Size.Width, 合計1_dgv.Size.Height) : End If
104
+    End Sub
105
+    Private Sub Set_進度條顯示0()
106
+        Dim Col As New DataGridViewProgressColumn With {
107
+            .Width = 30,
108
+            .DataPropertyName = "請款比例"
109
+        }
110
+        Col.HeaderText = "Percent (%)" : Col.Name = "容量" : Col.DataPropertyName = "比例1" : 合計1_dgv.Columns.Insert(3, Col)
111
+    End Sub
112
+    Private Sub Set_進度條顯示1()
113
+        Dim Col As New DataGridViewProgressColumn With {
114
+            .Width = 30,
115
+            .DataPropertyName = "請款比例"
116
+        }
117
+        Col.HeaderText = "Percent (%)" : Col.Name = "容量" : Col.DataPropertyName = "比例1" : 彙總1_dgv.Columns.Insert(3, Col)
118
+    End Sub
119
+    Private Sub Set_清單2()
120
+        Dim ds1, ds2 As New DataSet : 彙總2_dgv.DataSource = Nothing : ds1.Clear() : 合計2_dgv.DataSource = Nothing : ds2.Clear()
121
+        彙總2_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
122
+        彙總2_dgv.ColumnHeadersHeight = 50 : 彙總2_dgv.AllowUserToAddRows = False : 彙總2_dgv.RowTemplate.Height = 25
123
+        合計2_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
124
+        合計2_dgv.ColumnHeadersHeight = 50 : 合計2_dgv.AllowUserToAddRows = False : 合計2_dgv.RowTemplate.Height = 25
125
+        合計2_dgv.ScrollBars = ScrollBars.None : 合計2_dgv.ColumnHeadersVisible = False
126
+
127
+        SQL_採購付款彙總2() : da.Fill(ds1) : 彙總2_dgv.DataSource = ds1.Tables(0) : conn.Close()
128
+        SQL_採購付款彙總3() : da.Fill(ds2) : 合計2_dgv.DataSource = ds2.Tables(0) : conn.Close()
129
+
130
+        彙總2_dgv.Columns("比例1").Visible = False
131
+        彙總2_dgv.Columns(1).DefaultCellStyle.Format = "#,##0"
132
+        彙總2_dgv.Columns(1).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
133
+        彙總2_dgv.Columns(1).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
134
+
135
+        合計2_dgv.Columns("比例1").Visible = False
136
+        合計2_dgv.Columns(1).DefaultCellStyle.Format = "#,##0"
137
+        合計2_dgv.Columns(1).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
138
+        合計2_dgv.Columns(1).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
139
+
140
+        Dim 總和 As Long
141
+        合計2_dgv.Rows(0).Cells(0).Value = 對話框(0) : 合計2_dgv.Rows(0).Cells(表頭(29)).Value = "0" : 合計2_dgv.Rows(0).Cells("比例1").Value = "0"
142
+        For i As Integer = 0 To 彙總2_dgv.Rows.Count - 1 : 彙總2_dgv.Rows(i).Cells(表頭(29)).Value = "0" : 彙總2_dgv.Rows(i).Cells("比例1").Value = "0"
143
+            For ii As Integer = 0 To 清單_dgv.Rows.Count - 1
144
+                If 彙總2_dgv.Rows(i).Cells(0).Value.ToString = 清單_dgv.Rows(ii).Cells(1).Value.ToString Then
145
+                    彙總2_dgv.Rows(i).Cells(表頭(29)).Value += 清單_dgv.Rows(ii).Cells(表頭(20)).Value - 清單_dgv.Rows(ii).Cells(表頭(21)).Value + 清單_dgv.Rows(ii).Cells(表頭(22)).Value
146
+                End If
147
+            Next
148
+            總和 += 彙總2_dgv.Rows(i).Cells(表頭(29)).Value
149
+        Next
150
+        For i As Integer = 0 To 彙總2_dgv.Rows.Count - 1
151
+            If 總和 = 0 Then : 彙總2_dgv.Rows(i).Cells("比例1").Value = "0" : Else
152
+                彙總2_dgv.Rows(i).Cells("比例1").Value = 彙總2_dgv.Rows(i).Cells(表頭(29)).Value / 總和 * 100
153
+            End If
154
+            合計2_dgv.Rows(0).Cells(表頭(29)).Value += 彙總2_dgv.Rows(i).Cells(表頭(29)).Value
155
+            合計2_dgv.Rows(0).Cells("比例1").Value += 彙總2_dgv.Rows(i).Cells("比例1").Value
156
+        Next
157
+        Set_進度條顯示2() : 彙總2_dgv.Columns(3).FillWeight = 60 : 彙總2_dgv.Columns(0).FillWeight = 180
158
+        Set_進度條顯示3() : 合計2_dgv.Columns(3).FillWeight = 60 : 合計2_dgv.Columns(0).FillWeight = 180
159
+        彙總2_dgv.Sort(彙總2_dgv.Columns(1), System.ComponentModel.ListSortDirection.Descending)
160
+        '-------------------------合計DGV變形----------------------------------------------------------------------------------------------------------------------
161
+        If IsVerticalScrollBarVisible(彙總2_dgv) Then : 合計2_dgv.Size = New Size(彙總2_dgv.Size.Width - 17, 合計2_dgv.Size.Height)
162
+        Else : 合計2_dgv.Size = New Size(彙總2_dgv.Size.Width, 合計2_dgv.Size.Height) : End If
163
+    End Sub
164
+    Private Sub Set_進度條顯示2()
165
+        Dim Col As New DataGridViewProgressColumn With {
166
+            .Width = 30,
167
+            .DataPropertyName = "請款比例"
168
+        }
169
+        Col.HeaderText = "Percent (%)" : Col.Name = "容量" : Col.DataPropertyName = "比例1" : 彙總2_dgv.Columns.Insert(3, Col)
170
+    End Sub
171
+    Private Sub Set_進度條顯示3()
172
+        Dim Col As New DataGridViewProgressColumn With {
173
+            .Width = 30,
174
+            .DataPropertyName = "請款比例"
175
+        }
176
+        Col.HeaderText = "Percent (%)" : Col.Name = "容量" : Col.DataPropertyName = "比例1" : 合計2_dgv.Columns.Insert(3, Col)
177
+    End Sub
178
+    Private Sub Set_清單3()
179
+        Dim ds1, ds2, ds3 As New DataSet : 彙總3_dgv.DataSource = Nothing : ds1.Clear() : 彙總4_dgv.DataSource = Nothing : ds1.Clear() : 合計3_dgv.DataSource = Nothing : ds2.Clear()
180
+        彙總3_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
181
+        彙總3_dgv.ColumnHeadersHeight = 50 : 彙總3_dgv.AllowUserToAddRows = False : 彙總3_dgv.RowTemplate.Height = 25
182
+        彙總4_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
183
+        彙總4_dgv.ColumnHeadersHeight = 50 : 彙總4_dgv.AllowUserToAddRows = False : 彙總4_dgv.RowTemplate.Height = 25
184
+        彙總4_dgv.ScrollBars = ScrollBars.None : 彙總4_dgv.ColumnHeadersVisible = False
185
+        合計3_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
186
+        合計3_dgv.ColumnHeadersHeight = 50 : 合計3_dgv.AllowUserToAddRows = False : 合計3_dgv.RowTemplate.Height = 25
187
+        合計3_dgv.ScrollBars = ScrollBars.None : 合計3_dgv.ColumnHeadersVisible = False
188
+
189
+        Dim SSA(19) As String
190
+        Dim checkBoxes() As CheckBox = {A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20}
191
+        For i As Integer = 0 To SSA.Length - 1
192
+            If checkBoxes(i).Checked Then : SSA(i) = " 約號甲方 LIKE N'" & checkBoxes(i).Text & "'" : Else : SSA(i) = "" : End If
193
+        Next
194
+        If SSA.All(Function(s) String.IsNullOrEmpty(s)) Then : SQL2 = "" : Else
195
+            Dim selectedSSA = SSA.Where(Function(s) Not String.IsNullOrEmpty(s)).ToArray()
196
+            SQL2 = "AND (" & String.Join(" OR ", selectedSSA) & ")"
197
+        End If
198
+        SQL_採購付款彙總4() : da.Fill(ds1) : 彙總3_dgv.DataSource = ds1.Tables(0) : conn.Close()
199
+        SQL_採購付款彙總5() : da.Fill(ds2) : 彙總4_dgv.DataSource = ds2.Tables(0) : conn.Close()
200
+        SQL_採購付款彙總5() : da.Fill(ds3) : 合計3_dgv.DataSource = ds3.Tables(0) : conn.Close()
201
+
202
+        彙總3_dgv.Columns(0).FillWeight = 150 : 彙總3_dgv.Columns("比例1").Visible = False : 彙總3_dgv.Columns("比例2").Visible = False
203
+        彙總4_dgv.Columns(0).FillWeight = 150 : 彙總4_dgv.Columns("比例1").Visible = False : 彙總4_dgv.Columns("比例2").Visible = False
204
+        合計3_dgv.Columns(0).FillWeight = 150 : 合計3_dgv.Columns("比例1").Visible = False : 合計3_dgv.Columns("比例2").Visible = False
205
+        彙總3_dgv.Columns(1).Visible = False : 彙總3_dgv.Columns(2).Visible = False : 彙總3_dgv.Columns(3).Visible = False : 彙總3_dgv.Columns(4).Visible = False
206
+        彙總4_dgv.Columns(1).Visible = False : 彙總4_dgv.Columns(2).Visible = False : 彙總4_dgv.Columns(3).Visible = False : 彙總4_dgv.Columns(4).Visible = False
207
+        合計3_dgv.Columns(1).Visible = False : 合計3_dgv.Columns(2).Visible = False : 合計3_dgv.Columns(3).Visible = False : 合計3_dgv.Columns(4).Visible = False
208
+
209
+        Dim indexArray() As Integer = {4, 5, 6, 7, 8, 9, 10}
210
+
211
+        For Each index As Integer In indexArray
212
+            彙總3_dgv.Columns(index).DefaultCellStyle.Format = "#,##0" : 彙總4_dgv.Columns(index).DefaultCellStyle.Format = "#,##0" : 合計3_dgv.Columns(index).DefaultCellStyle.Format = "#,##0"
213
+            彙總3_dgv.Columns(index).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
214
+            彙總3_dgv.Columns(index).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
215
+            彙總4_dgv.Columns(index).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
216
+            彙總4_dgv.Columns(index).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
217
+            合計3_dgv.Columns(index).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
218
+            合計3_dgv.Columns(index).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
219
+        Next
220
+
221
+        彙總4_dgv.Rows(0).Cells(0).Value = 對話框(1) : 彙總4_dgv.Rows(0).Cells(4).Value = "0" : 彙總4_dgv.Rows(0).Cells(5).Value = "0" : 彙總4_dgv.Rows(0).Cells(6).Value = "0"
222
+        彙總4_dgv.Rows(0).Cells(7).Value = "0" : 彙總4_dgv.Rows(0).Cells(8).Value = "0" : 彙總4_dgv.Rows(0).Cells(9).Value = "0" : 彙總4_dgv.Rows(0).Cells(10).Value = "0"
223
+        合計3_dgv.Rows(0).Cells(0).Value = 對話框(0) : 合計3_dgv.Rows(0).Cells(4).Value = "0" : 合計3_dgv.Rows(0).Cells(5).Value = "0" : 合計3_dgv.Rows(0).Cells(6).Value = "0"
224
+        合計3_dgv.Rows(0).Cells(7).Value = "0" : 合計3_dgv.Rows(0).Cells(8).Value = "0" : 合計3_dgv.Rows(0).Cells(9).Value = "0" : 合計3_dgv.Rows(0).Cells(10).Value = "0"
225
+        For i As Integer = 0 To 彙總3_dgv.Rows.Count - 1
226
+            彙總3_dgv.Rows(i).Cells(6).Value = "0" : 彙總3_dgv.Rows(i).Cells(9).Value = "0" : 彙總3_dgv.Rows(i).Cells(10).Value = "0"
227
+            For ii As Integer = 0 To 清單_dgv.Rows.Count - 1
228
+                If 彙總3_dgv.Rows(i).Cells(0).Value.ToString = 清單_dgv.Rows(ii).Cells("合約號").Value.ToString Then
229
+                    彙總3_dgv.Rows(i).Cells(6).Value += 清單_dgv.Rows(ii).Cells(表頭(20)).Value - 清單_dgv.Rows(ii).Cells(表頭(21)).Value + 清單_dgv.Rows(ii).Cells(表頭(22)).Value
230
+                    彙總3_dgv.Rows(i).Cells(9).Value += 清單_dgv.Rows(ii).Cells(表頭(20)).Value - 清單_dgv.Rows(ii).Cells(表頭(21)).Value + 清單_dgv.Rows(ii).Cells(表頭(22)).Value
231
+                End If
232
+            Next
233
+        Next
234
+        If SSA.All(Function(s) String.IsNullOrEmpty(s)) Then
235
+            For ii As Integer = 0 To 清單_dgv.Rows.Count - 1
236
+                If 清單_dgv.Rows(ii).Cells("合約號").Value.ToString = "" Then
237
+                    彙總4_dgv.Rows(0).Cells(5).Value += 清單_dgv.Rows(ii).Cells(表頭(20)).Value - 清單_dgv.Rows(ii).Cells(表頭(21)).Value + 清單_dgv.Rows(ii).Cells(表頭(22)).Value
238
+                    彙總4_dgv.Rows(0).Cells(6).Value += 清單_dgv.Rows(ii).Cells(表頭(20)).Value - 清單_dgv.Rows(ii).Cells(表頭(21)).Value + 清單_dgv.Rows(ii).Cells(表頭(22)).Value
239
+                    彙總4_dgv.Rows(0).Cells(9).Value += 清單_dgv.Rows(ii).Cells(表頭(20)).Value - 清單_dgv.Rows(ii).Cells(表頭(21)).Value + 清單_dgv.Rows(ii).Cells(表頭(22)).Value
240
+                End If
241
+            Next
242
+        Else : End If
243
+        For i As Integer = 0 To 彙總3_dgv.Rows.Count - 1
244
+            For ii As Integer = 0 To 清單1_dgv.Rows.Count - 1
245
+                If 彙總3_dgv.Rows(i).Cells(0).Value.ToString = 清單1_dgv.Rows(ii).Cells("合約號").Value.ToString Then
246
+                    彙總3_dgv.Rows(i).Cells(6).Value += 清單1_dgv.Rows(ii).Cells(表頭(20)).Value - 清單1_dgv.Rows(ii).Cells(表頭(21)).Value + 清單1_dgv.Rows(ii).Cells(表頭(22)).Value
247
+                    彙總3_dgv.Rows(i).Cells(10).Value += 清單1_dgv.Rows(ii).Cells(表頭(20)).Value - 清單1_dgv.Rows(ii).Cells(表頭(21)).Value + 清單1_dgv.Rows(ii).Cells(表頭(22)).Value
248
+                End If
249
+            Next
250
+        Next
251
+        If SSA.All(Function(s) String.IsNullOrEmpty(s)) Then
252
+            For ii As Integer = 0 To 清單1_dgv.Rows.Count - 1
253
+                If 清單1_dgv.Rows(ii).Cells("合約號").Value.ToString = "" Then
254
+                    彙總4_dgv.Rows(0).Cells(5).Value += 清單1_dgv.Rows(ii).Cells(表頭(20)).Value - 清單1_dgv.Rows(ii).Cells(表頭(21)).Value + 清單1_dgv.Rows(ii).Cells(表頭(22)).Value
255
+                    彙總4_dgv.Rows(0).Cells(6).Value += 清單1_dgv.Rows(ii).Cells(表頭(20)).Value - 清單1_dgv.Rows(ii).Cells(表頭(21)).Value + 清單1_dgv.Rows(ii).Cells(表頭(22)).Value
256
+                    彙總4_dgv.Rows(0).Cells(10).Value += 清單1_dgv.Rows(ii).Cells(表頭(20)).Value - 清單1_dgv.Rows(ii).Cells(表頭(21)).Value + 清單1_dgv.Rows(ii).Cells(表頭(22)).Value
257
+                End If
258
+            Next
259
+        Else : End If
260
+        For i As Integer = 0 To 彙總3_dgv.Rows.Count - 1
261
+            彙總3_dgv.Rows(i).Cells(7).Value = 彙總3_dgv.Rows(i).Cells(5).Value - 彙總3_dgv.Rows(i).Cells(6).Value
262
+            If 彙總3_dgv.Rows(i).Cells(7).Value < 0 Then : 彙總3_dgv.Rows(i).Cells(7).Value = 彙總3_dgv.Rows(i).Cells(7).Value * -1
263
+            Else : 彙總3_dgv.Rows(i).Cells(7).Value = 0 : End If
264
+            If 彙總3_dgv.Rows(i).Cells(5).Value = 0 Then : 彙總3_dgv.Rows(i).Cells("比例1").Value = "0" : Else
265
+                彙總3_dgv.Rows(i).Cells("比例1").Value = 彙總3_dgv.Rows(i).Cells(6).Value / 彙總3_dgv.Rows(i).Cells(5).Value * 100
266
+            End If
267
+            If 彙總3_dgv.Rows(i).Cells(9).Value = 0 And 彙總3_dgv.Rows(i).Cells(10).Value > 0 Then : 彙總3_dgv.Rows(i).Cells("比例2").Value = 100
268
+            ElseIf 彙總3_dgv.Rows(i).Cells(9).Value = 0 And 彙總3_dgv.Rows(i).Cells(10).Value = 0 Then : 彙總3_dgv.Rows(i).Cells("比例2").Value = 0
269
+            Else : 彙總3_dgv.Rows(i).Cells("比例2").Value = 彙總3_dgv.Rows(i).Cells(10).Value / 彙總3_dgv.Rows(i).Cells(9).Value * 100 : End If
270
+            合計3_dgv.Rows(0).Cells(4).Value = 合計3_dgv.Rows(0).Cells(4).Value + 彙總3_dgv.Rows(i).Cells(4).Value
271
+            合計3_dgv.Rows(0).Cells(5).Value = 合計3_dgv.Rows(0).Cells(5).Value + 彙總3_dgv.Rows(i).Cells(5).Value
272
+            合計3_dgv.Rows(0).Cells(6).Value = 合計3_dgv.Rows(0).Cells(6).Value + 彙總3_dgv.Rows(i).Cells(6).Value
273
+            合計3_dgv.Rows(0).Cells(7).Value = 合計3_dgv.Rows(0).Cells(7).Value + 彙總3_dgv.Rows(i).Cells(7).Value
274
+            合計3_dgv.Rows(0).Cells(9).Value = 合計3_dgv.Rows(0).Cells(9).Value + 彙總3_dgv.Rows(i).Cells(9).Value
275
+            合計3_dgv.Rows(0).Cells(10).Value = 合計3_dgv.Rows(0).Cells(10).Value + 彙總3_dgv.Rows(i).Cells(10).Value
276
+        Next
277
+        合計3_dgv.Rows(0).Cells(4).Value = 合計3_dgv.Rows(0).Cells(4).Value + 彙總4_dgv.Rows(0).Cells(4).Value
278
+        合計3_dgv.Rows(0).Cells(5).Value = 合計3_dgv.Rows(0).Cells(5).Value + 彙總4_dgv.Rows(0).Cells(5).Value
279
+        合計3_dgv.Rows(0).Cells(6).Value = 合計3_dgv.Rows(0).Cells(6).Value + 彙總4_dgv.Rows(0).Cells(6).Value
280
+        合計3_dgv.Rows(0).Cells(7).Value = 合計3_dgv.Rows(0).Cells(7).Value + 彙總4_dgv.Rows(0).Cells(7).Value
281
+        合計3_dgv.Rows(0).Cells(9).Value = 合計3_dgv.Rows(0).Cells(9).Value + 彙總4_dgv.Rows(0).Cells(9).Value
282
+        合計3_dgv.Rows(0).Cells(10).Value = 合計3_dgv.Rows(0).Cells(10).Value + 彙總4_dgv.Rows(0).Cells(10).Value
283
+        If 彙總4_dgv.Rows(0).Cells(5).Value = 0 Then : 彙總4_dgv.Rows(0).Cells("比例1").Value = "0" : Else
284
+            彙總4_dgv.Rows(0).Cells("比例1").Value = 彙總4_dgv.Rows(0).Cells(6).Value / 彙總4_dgv.Rows(0).Cells(5).Value * 100
285
+        End If
286
+        合計3_dgv.Rows(0).Cells("比例1").Value = 合計3_dgv.Rows(0).Cells(6).Value / 合計3_dgv.Rows(0).Cells(5).Value * 100
287
+        If 彙總4_dgv.Rows(0).Cells(9).Value = 0 And 彙總4_dgv.Rows(0).Cells(10).Value = 0 Then : 彙總4_dgv.Rows(0).Cells("比例2").Value = 0
288
+        ElseIf 彙總4_dgv.Rows(0).Cells(9).Value = 0 And 彙總4_dgv.Rows(0).Cells(10).Value > 0 Then : 彙總4_dgv.Rows(0).Cells("比例2").Value = 100
289
+        Else : 彙總4_dgv.Rows(0).Cells("比例2").Value = 彙總4_dgv.Rows(0).Cells(10).Value / 彙總4_dgv.Rows(0).Cells(9).Value * 100
290
+        End If
291
+        If 合計3_dgv.Rows(0).Cells(9).Value = 0 And 合計3_dgv.Rows(0).Cells(10).Value = 0 Then : 合計3_dgv.Rows(0).Cells("比例2").Value = 0
292
+        ElseIf 合計3_dgv.Rows(0).Cells(9).Value = 0 And 合計3_dgv.Rows(0).Cells(10).Value > 0 Then : 合計3_dgv.Rows(0).Cells("比例2").Value = 100
293
+        Else : 合計3_dgv.Rows(0).Cells("比例2").Value = 合計3_dgv.Rows(0).Cells(10).Value / 合計3_dgv.Rows(0).Cells(9).Value * 100
294
+        End If : RadTrackBar1.Maximum = 彙總3_dgv.Rows.Count : RadTrackBar1.Value = 1
295
+        If 彙總3_dgv.Rows.Count > 10 Then : RadTrackBar1.Visible = True : Else : RadTrackBar1.Visible = False : End If
296
+        Set_進度條顯示4() : Set_進度條顯示5() : Set_進度條顯示6() : Set_進度條顯示7() : Set_進度條顯示8() : Set_進度條顯示9() : 彙總()
297
+        '-------------------------合計DGV變形----------------------------------------------------------------------------------------------------------------------
298
+        If IsVerticalScrollBarVisible(彙總3_dgv) Then
299
+            合計3_dgv.Size = New Size(彙總3_dgv.Size.Width - 17, 合計3_dgv.Size.Height) : 彙總4_dgv.Size = New Size(彙總3_dgv.Size.Width - 17, 彙總4_dgv.Size.Height)
300
+        Else : 合計3_dgv.Size = New Size(彙總3_dgv.Size.Width, 合計3_dgv.Size.Height) : 彙總4_dgv.Size = New Size(彙總3_dgv.Size.Width, 彙總4_dgv.Size.Height) : End If
301
+    End Sub
302
+    Private Sub Set_進度條顯示4()
303
+        Dim Col As New DataGridViewProgressColumn With {
304
+            .Width = 30,
305
+            .DataPropertyName = "請款比例"
306
+        }
307
+        Col.HeaderText = 表頭(32) : Col.Name = "容量" : Col.DataPropertyName = "比例1" : 彙總3_dgv.Columns.Insert(7, Col)
308
+    End Sub
309
+    Private Sub Set_進度條顯示5()
310
+        Dim Col As New DataGridViewProgressColumn With {
311
+            .Width = 30,
312
+            .DataPropertyName = "請款比例"
313
+        }
314
+        Col.HeaderText = 表頭(32) : Col.Name = "容量" : Col.DataPropertyName = "比例1" : 合計3_dgv.Columns.Insert(7, Col)
315
+    End Sub
316
+    Private Sub Set_進度條顯示6()
317
+        Dim Col As New DataGridViewProgressColumn With {
318
+            .Width = 30,
319
+            .DataPropertyName = "請款比例"
320
+        }
321
+        Col.HeaderText = 表頭(33) : Col.Name = "容量" : Col.DataPropertyName = "比例2" : 彙總3_dgv.Columns.Insert(12, Col)
322
+    End Sub
323
+    Private Sub Set_進度條顯示7()
324
+        Dim Col As New DataGridViewProgressColumn With {
325
+            .Width = 30,
326
+            .DataPropertyName = "請款比例"
327
+        }
328
+        Col.HeaderText = 表頭(33) : Col.Name = "容量" : Col.DataPropertyName = "比例2" : 合計3_dgv.Columns.Insert(12, Col)
329
+    End Sub
330
+    Private Sub Set_進度條顯示8()
331
+        Dim Col As New DataGridViewProgressColumn With {
332
+            .Width = 30,
333
+            .DataPropertyName = "請款比例"
334
+        }
335
+        Col.HeaderText = 表頭(32) : Col.Name = "容量" : Col.DataPropertyName = "比例1" : 彙總4_dgv.Columns.Insert(7, Col)
336
+    End Sub
337
+    Private Sub Set_進度條顯示9()
338
+        Dim Col As New DataGridViewProgressColumn With {
339
+            .Width = 30,
340
+            .DataPropertyName = "請款比例"
341
+        }
342
+        Col.HeaderText = 表頭(33) : Col.Name = "容量" : Col.DataPropertyName = "比例2" : 彙總4_dgv.Columns.Insert(12, Col)
343
+    End Sub
344
+    Private Sub RadTrackBar1_ValueChanged(sender As Object, e As EventArgs) Handles RadTrackBar1.RangeValueChanged
345
+        If 首次開啟 = True Then : Else
346
+            If RadTrackBar1.Maximum >= 10 Then : If RadTrackBar1.Value > RadTrackBar1.Maximum - 9 Then : RadTrackBar1.Value = RadTrackBar1.Maximum - 9 : End If : 彙總() : Else : 彙總() : End If
347
+        End If
348
+    End Sub
349
+    Private Sub 彙總()
350
+        Chart1.Series.Clear() : Chart1.ChartAreas.Clear() : Chart1.ChartAreas.Add(0)
351
+        Chart1.ChartAreas(0).AxisX.Minimum = 0 ' 设置X轴的最小值
352
+        Chart1.ChartAreas(0).AxisX.Maximum = 10 ' 设置X轴的最大值
353
+        Chart1.Series.Add(表頭(31)) : Chart1.Series(表頭(31)).ChartType = SeriesChartType.FastLine
354
+        Chart1.Series.Add(表頭(34)) : Chart1.Series(表頭(34)).ChartType = SeriesChartType.Column
355
+        Chart1.Series.Add(表頭(29)) : Chart1.Series(表頭(29)).ChartType = SeriesChartType.Column
356
+        Chart1.Series.Add(表頭(36)) : Chart1.Series(表頭(36)).ChartType = SeriesChartType.Column
357
+        Chart1.ChartAreas(0).BackColor = Color.Transparent : Chart1.Legends(0).BackColor = Color.Transparent
358
+        Chart1.ChartAreas(0).AxisY.LabelStyle.Font = New Font("Arial", 8) : Chart1.ChartAreas(0).AxisY.LabelStyle.Format = "#,##0" & " M"
359
+        Dim 位置1, 位置2 As Integer
360
+        If RadTrackBar1.Maximum <= 10 Then : 位置1 = 1 : 位置2 = RadTrackBar1.Maximum
361
+        Else : 位置1 = RadTrackBar1.Value : 位置2 = RadTrackBar1.Value + 9 : End If
362
+        For i As Integer = 位置1 - 1 To 位置2 - 1
363
+            Chart1.Series(表頭(31)).Points.AddXY(彙總3_dgv.Rows(i).Cells(0).Value.ToString, CLng(彙總3_dgv.Rows(i).Cells(表頭(31)).Value.ToString) / 1000000)
364
+            Chart1.Series(表頭(34)).Points.AddXY(彙總3_dgv.Rows(i).Cells(0).Value.ToString, CLng(彙總3_dgv.Rows(i).Cells(表頭(34)).Value.ToString) / 1000000)
365
+            Chart1.Series(表頭(29)).Points.AddXY(彙總3_dgv.Rows(i).Cells(0).Value.ToString, CLng(彙總3_dgv.Rows(i).Cells(表頭(29)).Value.ToString) / 1000000)
366
+            Chart1.Series(表頭(36)).Points.AddXY(彙總3_dgv.Rows(i).Cells(0).Value.ToString, CLng(彙總3_dgv.Rows(i).Cells(表頭(36)).Value.ToString) / 1000000)
367
+        Next
368
+        If 深色風格 = False Then
369
+            Chart1.Series(表頭(31)).LabelForeColor = Color.Blue : Chart1.Series(表頭(34)).LabelForeColor = Color.Blue
370
+            Chart1.Series(表頭(29)).LabelForeColor = Color.Blue : Chart1.Series(表頭(36)).LabelForeColor = Color.Blue
371
+            Chart1.Legends(0).ForeColor = Color.Black
372
+            Chart1.ChartAreas(0).AxisX.MajorGrid.LineColor = Color.Black : Chart1.ChartAreas(0).AxisY.MajorGrid.LineColor = Color.Black
373
+            Chart1.ChartAreas(0).AxisX.LineColor = Color.Black : Chart1.ChartAreas(0).AxisY.LineColor = Color.Black
374
+            Chart1.ChartAreas(0).AxisX.LabelStyle.ForeColor = Color.Black : Chart1.ChartAreas(0).AxisY.LabelStyle.ForeColor = Color.Black
375
+        Else
376
+            Chart1.Series(表頭(31)).LabelForeColor = Color.White : Chart1.Series(表頭(34)).LabelForeColor = Color.White
377
+            Chart1.Series(表頭(29)).LabelForeColor = Color.White : Chart1.Series(表頭(36)).LabelForeColor = Color.White
378
+            Chart1.Legends(0).ForeColor = Color.White
379
+            Chart1.ChartAreas(0).AxisX.MajorGrid.LineColor = Color.White : Chart1.ChartAreas(0).AxisY.MajorGrid.LineColor = Color.White
380
+            Chart1.ChartAreas(0).AxisX.LineColor = Color.White : Chart1.ChartAreas(0).AxisY.LineColor = Color.White
381
+            Chart1.ChartAreas(0).AxisX.LabelStyle.ForeColor = Color.White : Chart1.ChartAreas(0).AxisY.LabelStyle.ForeColor = Color.White
382
+        End If
383
+    End Sub
384
+    Private Sub Set_採購單清單()
385
+        Dim ds As New DataSet : 明細_dgv.DataSource = Nothing : ds.Clear()
386
+        明細_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
387
+        明細_dgv.ColumnHeadersHeight = 40
388
+        明細_dgv.AllowUserToAddRows = False
389
+        If 小間距_ch.Checked = False And 中間距_ch.Checked = False And 大間距_ch.Checked = True Then : 明細_dgv.RowTemplate.Height = 65
390
+        ElseIf 小間距_ch.Checked = False And 中間距_ch.Checked = True And 大間距_ch.Checked = False Then : 明細_dgv.RowTemplate.Height = 45
391
+        ElseIf 小間距_ch.Checked = True And 中間距_ch.Checked = False And 大間距_ch.Checked = False Then : 明細_dgv.RowTemplate.Height = 25 : End If
392
+
393
+        SQL_採購單明細表1()
394
+        da.Fill(ds) : 明細_dgv.DataSource = ds.Tables(0) : conn.Close()
395
+
396
+        明細_dgv.Columns(0).Visible = False : 明細_dgv.Columns(1).FillWeight = 50 : 明細_dgv.Columns(3).FillWeight = 250 : 明細_dgv.Columns(4).FillWeight = 250
397
+        明細_dgv.Columns(5).FillWeight = 150 : 明細_dgv.Columns(6).FillWeight = 80 : 明細_dgv.Columns(7).FillWeight = 80 : 明細_dgv.Columns(8).FillWeight = 80
398
+        明細_dgv.Columns(9).FillWeight = 80 : 明細_dgv.Columns(10).Visible = False : 明細_dgv.Columns(11).Visible = False : 明細_dgv.Columns(12).Visible = False
399
+        明細_dgv.Columns(13).Visible = False : 明細_dgv.Columns(14).Visible = False : 明細_dgv.Columns(15).Visible = False : 明細_dgv.Columns(16).Visible = False
400
+        明細_dgv.Columns(17).Visible = False : 明細_dgv.Columns(18).Visible = False : 明細_dgv.Columns(19).Visible = False : 明細_dgv.Columns(20).Visible = False
401
+        明細_dgv.Columns(21).Visible = False : 明細_dgv.Columns(22).Visible = False : 明細_dgv.Columns(23).Visible = False : 明細_dgv.Columns(24).FillWeight = 90
402
+        明細_dgv.Columns(25).FillWeight = 80 : 明細_dgv.Columns("KEY").Visible = False : 明細_dgv.Columns("OUP").FillWeight = 80 : 明細_dgv.Columns(2).FillWeight = 80
403
+        明細_dgv.Columns(26).FillWeight = 80 : 明細_dgv.Columns("SP%").FillWeight = 80
404
+        明細_dgv.Columns(6).DefaultCellStyle.Format = "#,##0" : 明細_dgv.Columns(8).DefaultCellStyle.Format = "#,##0" : 明細_dgv.Columns(9).DefaultCellStyle.Format = "#,##0"
405
+        明細_dgv.Columns("OUP").DefaultCellStyle.Format = "#,##0" : 明細_dgv.Columns(15).DefaultCellStyle.Format = "#,##0"
406
+        明細_dgv.Columns(8).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : 明細_dgv.Columns(6).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter
407
+        明細_dgv.Columns(9).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : 明細_dgv.Columns(9).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
408
+        明細_dgv.Columns(8).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter : 明細_dgv.Columns(6).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
409
+        明細_dgv.Columns("OUP").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : 明細_dgv.Columns("OUP").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
410
+
411
+        明細_dgv.EditMode = DataGridViewEditMode.EditOnEnter
412
+        明細_dgv.Columns(1).ReadOnly = True : 明細_dgv.Columns(2).ReadOnly = True : 明細_dgv.Columns(3).ReadOnly = True : 明細_dgv.Columns(4).ReadOnly = True
413
+        明細_dgv.Columns(表頭(16)).ReadOnly = True : 明細_dgv.Columns(表頭(27)).ReadOnly = True : 明細_dgv.Columns("OUP").ReadOnly = True : 明細_dgv.Columns("SP%").ReadOnly = True
414
+
415
+        If 低網速模式 = False Then
416
+            明細_dgv.Columns(28).FillWeight = 80 : 明細_dgv.Columns("Image").Visible = True
417
+            Dim mycol As DataGridViewImageColumn = 明細_dgv.Columns("Image")
418
+            mycol.ImageLayout = DataGridViewImageCellLayout.Zoom
419
+        Else
420
+            If 明細_dgv.Columns.Count = 29 Then
421
+                明細_dgv.Columns("Image").Visible = False
422
+            End If
423
+        End If
424
+        新項次 = "00"
425
+        For i As Integer = 0 To 明細_dgv.Rows.Count - 1
426
+            明細_dgv.Columns("OUP").DefaultCellStyle.Format = "#,0"
427
+            NUM1 = Double.Parse(新項次) + 1
428
+            If NUM1 < 10 Then : 新項次 = "0" & NUM1
429
+            ElseIf NUM1 > 9 And NUM1 < 100 Then : 新項次 = NUM1
430
+            End If
431
+            明細_dgv.Rows(i).Cells(表頭(11)).Value = 新項次
432
+
433
+            '-------------------------規格合併呈現----------------------------------------------------------------------------------------------------------------------------------------
434
+            If i = 0 Then
435
+                AAA1 = "" : AAA2 = "" : AAA3 = "" : AAA4 = "" : AAA5 = "" : AAA6 = "" : AAA7 = "" : AAA8 = ""
436
+                PA3 = 明細_dgv.Rows(i).Cells("規格庫抬頭指定").Value
437
+                SQL_規格庫抬頭讀取()
438
+                If dr.Read() Then
439
+                    AAA1 = dr("A1") : AAA2 = dr("A2") : AAA3 = dr("A3") : AAA4 = dr("A4") : AAA5 = dr("A5") : AAA6 = dr("A6") : AAA7 = dr("A7") : AAA8 = dr("A8")
440
+                End If
441
+                conn.Close()
442
+            Else
443
+                If 明細_dgv.Rows(i).Cells("規格庫抬頭指定").Value.ToString <> 明細_dgv.Rows(i - 1).Cells("規格庫抬頭指定").Value.ToString Then
444
+                    AAA1 = "" : AAA2 = "" : AAA3 = "" : AAA4 = "" : AAA5 = "" : AAA6 = "" : AAA7 = "" : AAA8 = ""
445
+                    PA3 = 明細_dgv.Rows(i).Cells("規格庫抬頭指定").Value
446
+                    SQL_規格庫抬頭讀取()
447
+                    If dr.Read() Then
448
+                        AAA1 = dr("A1") : AAA2 = dr("A2") : AAA3 = dr("A3") : AAA4 = dr("A4") : AAA5 = dr("A5") : AAA6 = dr("A6") : AAA7 = dr("A7") : AAA8 = dr("A8")
449
+                    End If
450
+                    conn.Close()
451
+                End If
452
+            End If
453
+            Dim ZA1, ZA2, ZA3, ZA4, ZA5, ZA6, ZA7, ZA8 As String : 物料規格 = ""
454
+            If 詳細資料2_ch.Checked = True Then
455
+                If 明細_dgv.Rows(i).Cells(表頭(13)).Value.ToString <> "" Then
456
+                    ZA1 = AAA1 & "=" & 明細_dgv.Rows(i).Cells(表頭(13)).Value.ToString : 物料規格 = ZA1 : End If
457
+                If 明細_dgv.Rows(i).Cells("A2").Value.ToString <> "" Then : ZA2 = AAA2 & "=" & 明細_dgv.Rows(i).Cells("A2").Value
458
+                    If 物料規格 = "" Then : 物料規格 = ZA2 : Else : 物料規格 = 物料規格 + "、" + ZA2 : End If : End If
459
+                If 明細_dgv.Rows(i).Cells("A3").Value.ToString <> "" Then : ZA3 = AAA3 & "=" & 明細_dgv.Rows(i).Cells("A3").Value
460
+                    If 物料規格 = "" Then : 物料規格 = ZA3 : Else : 物料規格 = 物料規格 + "、" + ZA3 : End If : End If
461
+                If 明細_dgv.Rows(i).Cells("A4").Value.ToString <> "" Then : ZA4 = AAA4 & "=" & 明細_dgv.Rows(i).Cells("A4").Value
462
+                    If 物料規格 = "" Then : 物料規格 = ZA4 : Else : 物料規格 = 物料規格 + "、" + ZA4 : End If : End If
463
+                If 明細_dgv.Rows(i).Cells("A5").Value.ToString <> "" Then : ZA5 = AAA5 & "=" & 明細_dgv.Rows(i).Cells("A5").Value
464
+                    If 物料規格 = "" Then : 物料規格 = ZA5 : Else : 物料規格 = 物料規格 + "、" + ZA5 : End If : End If
465
+                If 明細_dgv.Rows(i).Cells("A6").Value.ToString <> "" Then : ZA6 = AAA6 & "=" & 明細_dgv.Rows(i).Cells("A6").Value
466
+                    If 物料規格 = "" Then : 物料規格 = ZA6 : Else : 物料規格 = 物料規格 + "、" + ZA6 : End If : End If
467
+                If 明細_dgv.Rows(i).Cells("A7").Value.ToString <> "" Then : ZA7 = AAA7 & "=" & 明細_dgv.Rows(i).Cells("A7").Value
468
+                    If 物料規格 = "" Then : 物料規格 = ZA7 : Else : 物料規格 = 物料規格 + "、" + ZA7 : End If : End If
469
+                If 明細_dgv.Rows(i).Cells("A8").Value.ToString <> "" Then : ZA8 = AAA8 & "=" & 明細_dgv.Rows(i).Cells("A8").Value
470
+                    If 物料規格 = "" Then : 物料規格 = ZA8 : Else : 物料規格 = 物料規格 + "、" + ZA8 : End If : End If
471
+            Else
472
+                If 明細_dgv.Rows(i).Cells(表頭(13)).Value.ToString <> "" Then : ZA1 = 明細_dgv.Rows(i).Cells(表頭(13)).Value.ToString : 物料規格 = ZA1 : End If
473
+                If 明細_dgv.Rows(i).Cells("A2").Value.ToString <> "" Then
474
+                    ZA2 = 明細_dgv.Rows(i).Cells("A2").Value : If 物料規格 = "" Then : 物料規格 = ZA2 : Else : 物料規格 = 物料規格 + "、" + ZA2 : End If : End If
475
+                If 明細_dgv.Rows(i).Cells("A3").Value.ToString <> "" Then
476
+                    ZA3 = 明細_dgv.Rows(i).Cells("A3").Value : If 物料規格 = "" Then : 物料規格 = ZA3 : Else : 物料規格 = 物料規格 + "、" + ZA3 : End If : End If
477
+                If 明細_dgv.Rows(i).Cells("A4").Value.ToString <> "" Then
478
+                    ZA4 = 明細_dgv.Rows(i).Cells("A4").Value : If 物料規格 = "" Then : 物料規格 = ZA4 : Else : 物料規格 = 物料規格 + "、" + ZA4 : End If : End If
479
+                If 明細_dgv.Rows(i).Cells("A5").Value.ToString <> "" Then
480
+                    ZA5 = 明細_dgv.Rows(i).Cells("A5").Value : If 物料規格 = "" Then : 物料規格 = ZA5 : Else : 物料規格 = 物料規格 + "、" + ZA5 : End If : End If
481
+                If 明細_dgv.Rows(i).Cells("A6").Value.ToString <> "" Then
482
+                    ZA6 = 明細_dgv.Rows(i).Cells("A6").Value : If 物料規格 = "" Then : 物料規格 = ZA6 : Else : 物料規格 = 物料規格 + "、" + ZA6 : End If : End If
483
+                If 明細_dgv.Rows(i).Cells("A7").Value.ToString <> "" Then
484
+                    ZA7 = 明細_dgv.Rows(i).Cells("A7").Value : If 物料規格 = "" Then : 物料規格 = ZA7 : Else : 物料規格 = 物料規格 + "、" + ZA7 : End If : End If
485
+                If 明細_dgv.Rows(i).Cells("A8").Value.ToString <> "" Then
486
+                    ZA8 = 明細_dgv.Rows(i).Cells("A8").Value : If 物料規格 = "" Then : 物料規格 = ZA8 : Else : 物料規格 = 物料規格 + "、" + ZA8 : End If : End If
487
+            End If
488
+            明細_dgv.Rows(i).Cells(表頭(13)).Value = 物料規格
489
+            '--------------取得歷史單價------------------------------------------------------------------------------------------
490
+            PA = 明細_dgv.Rows(i).Cells("料號").Value
491
+            Set_單價()
492
+            If 價錢_dgv.Rows.Count = 0 Then
493
+                明細_dgv.Rows(i).Cells("OUP").Value = 0
494
+            Else
495
+                明細_dgv.Rows(i).Cells("OUP").Value = 價錢_dgv.Rows(0).Cells("單價").Value
496
+            End If
497
+        Next i
498
+        價格() ': 總金額計算()
499
+    End Sub
500
+    Private Sub Set_單價()
501
+        Dim ds6 As New DataSet : 價錢_dgv.DataSource = Nothing : ds6.Clear()
502
+        價錢_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
503
+        價錢_dgv.ColumnHeadersHeight = 25
504
+        價錢_dgv.AllowUserToAddRows = False
505
+
506
+        If 日期_rb.Checked = False And 單價_rb.Checked = True Then : SQL_加權平均()
507
+        ElseIf 日期_rb.Checked = True And 單價_rb.Checked = False Then : SQL_最近日期() : End If
508
+        da.Fill(ds6) : 價錢_dgv.DataSource = ds6.Tables(0) : conn.Close()
509
+    End Sub
510
+    Private Sub 價格()
511
+        Dim 差異, 比對 As Double
512
+        For i As Integer = 0 To 明細_dgv.Rows.Count - 1
513
+            If 明細_dgv.Rows(i).Cells("OUP").Value = 0 And 明細_dgv.Rows(i).Cells(表頭(26)).Value = 0 Then
514
+                If 深色風格 = False Then
515
+                    明細_dgv.Rows(i).DefaultCellStyle.BackColor = Color.Lavender
516
+                Else
517
+                    明細_dgv.Rows(i).DefaultCellStyle.BackColor = Color.Navy
518
+                End If
519
+                明細_dgv.Rows(i).Cells("SP%").Value = "0 % →"
520
+            ElseIf 明細_dgv.Rows(i).Cells(表頭(26)).Value = 0 And 明細_dgv.Rows(i).Cells("OUP").Value <> 0 Then
521
+                If 深色風格 = False Then
522
+                    明細_dgv.Rows(i).DefaultCellStyle.BackColor = Color.Lavender
523
+                Else
524
+                    明細_dgv.Rows(i).DefaultCellStyle.BackColor = Color.Navy
525
+                End If
526
+                明細_dgv.Rows(i).Cells("SP%").Value = "0 % →"
527
+            ElseIf 明細_dgv.Rows(i).Cells("OUP").Value <> 0 And 明細_dgv.Rows(i).Cells(表頭(26)).Value <> 0 Then
528
+                差異 = 明細_dgv.Rows(i).Cells(表頭(26)).Value - 明細_dgv.Rows(i).Cells("OUP").Value : 比對 = 差異 / 明細_dgv.Rows(i).Cells(表頭(26)).Value * 100
529
+                If 比對 > 0 Then : 明細_dgv.Rows(i).Cells("SP%").Value = CInt(比對) & " % ↗" : 比對 *= 1
530
+                ElseIf 比對 < 0 Then : 明細_dgv.Rows(i).Cells("SP%").Value = CInt(比對) & " % ↘" : 比對 *= -1
531
+                ElseIf 比對 = 0 Then : 明細_dgv.Rows(i).Cells("SP%").Value = CInt(比對) & " % →" : End If
532
+                If 深色風格 = False Then
533
+                    If 比對 < 比例1 Then : 明細_dgv.Rows(i).DefaultCellStyle.BackColor = Color.White
534
+                    ElseIf 比對 > 比例1 And 比對 < 比例2 Then : 明細_dgv.Rows(i).DefaultCellStyle.BackColor = Color.LightGreen
535
+                    ElseIf 比對 > 比例2 And 比對 < 比例3 Then : 明細_dgv.Rows(i).DefaultCellStyle.BackColor = Color.LightBlue
536
+                    ElseIf 比對 >= 比例3 Then : 明細_dgv.Rows(i).DefaultCellStyle.BackColor = Color.LightPink : End If
537
+                Else
538
+                    If 比對 < 比例1 Then : 明細_dgv.Rows(i).DefaultCellStyle.BackColor = Color.DimGray
539
+                    ElseIf 比對 > 比例1 And 比對 < 比例2 Then : 明細_dgv.Rows(i).DefaultCellStyle.BackColor = Color.DarkGreen
540
+                    ElseIf 比對 > 比例2 And 比對 < 比例3 Then : 明細_dgv.Rows(i).DefaultCellStyle.BackColor = Color.DarkBlue
541
+                    ElseIf 比對 >= 比例3 Then : 明細_dgv.Rows(i).DefaultCellStyle.BackColor = Color.Purple : End If
542
+                End If
543
+            End If
544
+        Next
545
+    End Sub
546
+    Private Sub Set_合約甲方()
547
+        Dim ds1 As New DataSet : 甲方_dgv.DataSource = Nothing : ds1.Clear()
548
+        甲方_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
549
+        甲方_dgv.ColumnHeadersHeight = 25 : 甲方_dgv.AllowUserToAddRows = False
550
+        SQL_合約甲方() : da.Fill(ds1) : 甲方_dgv.DataSource = ds1.Tables(0) : conn.Close()
551
+        If 甲方_dgv.Rows.Count > 19 Then : MGB(系統語言字典("H312-100-" & 語言), 1) : Me.Close() : End If
552
+        For i As Integer = 1 To 20
553
+            Dim 選擇 As CheckBox = CType(Me.Controls.Find("A" & i, True)(0), CheckBox) : 選擇.Visible = False
554
+        Next
555
+        For i As Integer = 0 To 甲方_dgv.Rows.Count - 1
556
+            Dim 選擇 As CheckBox = CType(Me.Controls.Find("A" & i + 1, True)(0), CheckBox) : 選擇.Text = 甲方_dgv.Rows(i).Cells(0).Value.ToString : 選擇.Visible = True
557
+        Next
558
+    End Sub
559
+    Private Sub 採購付款狀態報表_Load(sender As Object, e As EventArgs) Handles MyBase.Load
560
+        Me.MdiParent = HX_PGS_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
561
+        分母 = 100 : 分段1 = 0.35 : 分段2 = 0.34 : 分段3 = 0.65 : 分段4 = 0.64 : 進度條後墜 = " %"
562
+        風格() : H(312) = True : 介面 = "H312" : 語言轉換讀取() : 顯示說明(999, False)
563
+        Panel2.SendToBack() : 視窗2_pl.Visible = False : 單價_rb.Checked = True : Panel5.BringToFront() : RadTrackBar1.Visible = False : 首次開啟 = True
564
+        If 登入人級別 = "00" Then
565
+            縮放1_bt.Visible = True
566
+        Else
567
+            縮放1_bt.Visible = False
568
+        End If
569
+
570
+        MyMod.清單字體大小調整()
571
+        明細_dgv.RowsDefaultCellStyle.Font = New System.Drawing.Font("微軟正黑體", HX_PGS_ERP_SYS.字體_NUD.Value)
572
+        清單_dgv.RowsDefaultCellStyle.Font = New System.Drawing.Font("微軟正黑體", HX_PGS_ERP_SYS.字體_NUD.Value)
573
+        清單1_dgv.RowsDefaultCellStyle.Font = New System.Drawing.Font("微軟正黑體", HX_PGS_ERP_SYS.字體_NUD.Value)
574
+        彙總1_dgv.RowsDefaultCellStyle.Font = New System.Drawing.Font("微軟正黑體", HX_PGS_ERP_SYS.字體_NUD.Value)
575
+        彙總2_dgv.RowsDefaultCellStyle.Font = New System.Drawing.Font("微軟正黑體", HX_PGS_ERP_SYS.字體_NUD.Value)
576
+        彙總3_dgv.RowsDefaultCellStyle.Font = New System.Drawing.Font("微軟正黑體", HX_PGS_ERP_SYS.字體_NUD.Value)
577
+        彙總4_dgv.RowsDefaultCellStyle.Font = New System.Drawing.Font("微軟正黑體", HX_PGS_ERP_SYS.字體_NUD.Value)
578
+        合計1_dgv.RowsDefaultCellStyle.Font = New System.Drawing.Font("微軟正黑體", HX_PGS_ERP_SYS.字體_NUD.Value)
579
+        合計2_dgv.RowsDefaultCellStyle.Font = New System.Drawing.Font("微軟正黑體", HX_PGS_ERP_SYS.字體_NUD.Value)
580
+        合計3_dgv.RowsDefaultCellStyle.Font = New System.Drawing.Font("微軟正黑體", HX_PGS_ERP_SYS.字體_NUD.Value)
581
+    End Sub
582
+    Private Sub 採購付款狀態報表_Shown(sender As Object, e As EventArgs) Handles MyBase.Shown
583
+        Set_合約甲方() : Set_清單1() : 首次開啟 = False
584
+    End Sub
585
+    Private Sub 語轉扭_bt_Click(sender As Object, e As EventArgs) Handles 語轉扭_bt.Click
586
+        H(312) = True : 介面 = "H312" : 語言轉換讀取() : Set_清單1()
587
+    End Sub
588
+    Private Sub 採購付款狀態報表_Closed(sender As Object, e As EventArgs) Handles MyBase.Closed
589
+        H(312) = False : MyMod.虛擬桌面開啟()
590
+    End Sub
591
+    Private Sub 系統說明_bt_Click(sender As Object, e As EventArgs) Handles 系統說明_bt.Click
592
+        介面 = "H312"
593
+    End Sub
594
+    Private Sub 登入閒置控制_MouseMove(sender As Object, e As EventArgs) Handles MyBase.MouseMove
595
+        timeNow = 0 : HX_PGS_ERP_SYS.Timer1.Enabled = False : HX_PGS_ERP_SYS.Timer1.Enabled = True
596
+    End Sub
597
+    Private Sub 登入閒置控制_KeyPress(sender As Object, e As EventArgs) Handles MyBase.KeyPress
598
+        timeNow = 0 : HX_PGS_ERP_SYS.Timer1.Enabled = False : HX_PGS_ERP_SYS.Timer1.Enabled = True
599
+    End Sub
600
+    Private Sub 回首頁_bt_Click(sender As Object, e As EventArgs) Handles 回首頁_bt.Click
601
+        Set_清單1()
602
+    End Sub
603
+    Private Sub 縮放2_bt_Click(sender As Object, e As EventArgs) Handles 縮放2_bt.Click
604
+        Panel5.BringToFront() : Panel1.SendToBack()
605
+    End Sub
606
+    Private Sub 縮放1_bt_Click(sender As Object, e As EventArgs) Handles 縮放1_bt.Click
607
+        Panel5.SendToBack() : Panel1.BringToFront()
608
+    End Sub
609
+    Private Sub 彙總3_dgv_Sorted(ByVal sender As Object, ByVal e As EventArgs) Handles 彙總3_dgv.Sorted
610
+        彙總()
611
+    End Sub
612
+    Private Sub 彙總3_dgv_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles 彙總3_dgv.MouseUp
613
+        'If 彙總3_dgv.SelectedCells.Count = 1 Then : MsgBox(彙總3_dgv.SelectedCells(0).ColumnIndex & "  " & 彙總3_dgv.SelectedCells(0).RowIndex) : End If
614
+        If 彙總3_dgv.SelectedCells.Count > 0 Then
615
+            If 彙總3_dgv.SelectedCells(0).ColumnIndex > -1 Then
616
+                Dim X1, Y1, X2, Y2, X3, Y3 As Integer : X1 = Me.Size.Width : Y1 = Me.Size.Height : X2 = 視窗2_pl.Size.Width : Y2 = 視窗2_pl.Size.Height
617
+                Y3 = (Y1 - Y2) / 2 : X3 = (X1 - X2) / 2
618
+                視窗2_pl.Location = New System.Drawing.Point(X3, Y3) : 視窗2_pl.Visible = True : 視窗2_pl.BringToFront()
619
+                PA10 = 彙總3_dgv.Rows(彙總3_dgv.SelectedCells(0).RowIndex).Cells(0).Value.ToString : Set_採購單清單()
620
+            End If
621
+        End If
622
+    End Sub
623
+    Private Sub 彙總1_dgv_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles 彙總1_dgv.MouseUp
624
+        'If 彙總1_dgv.SelectedCells.Count = 1 Then : MsgBox(彙總1_dgv.SelectedCells(0).ColumnIndex & "  " & 彙總1_dgv.SelectedCells(0).RowIndex) : End If
625
+        If 彙總1_dgv.SelectedCells.Count > 0 Then
626
+            If 彙總1_dgv.SelectedCells(0).ColumnIndex > -1 Then
627
+                PA10 = 彙總1_dgv.Rows(彙總1_dgv.SelectedCells(0).RowIndex).Cells(0).Value.ToString : Set_清單2()
628
+            End If
629
+        End If
630
+    End Sub
631
+    Private Sub A1_CheckedChanged(sender As Object, e As EventArgs) Handles A1.Click
632
+        Set_清單3()
633
+    End Sub
634
+    Private Sub A2_CheckedChanged(sender As Object, e As EventArgs) Handles A2.Click
635
+        Set_清單3()
636
+    End Sub
637
+    Private Sub A3_CheckedChanged(sender As Object, e As EventArgs) Handles A3.Click
638
+        Set_清單3()
639
+    End Sub
640
+    Private Sub A4_CheckedChanged(sender As Object, e As EventArgs) Handles A4.Click
641
+        Set_清單3()
642
+    End Sub
643
+    Private Sub A5_CheckedChanged(sender As Object, e As EventArgs) Handles A5.Click
644
+        Set_清單3()
645
+    End Sub
646
+    Private Sub A6_CheckedChanged(sender As Object, e As EventArgs) Handles A6.Click
647
+        Set_清單3()
648
+    End Sub
649
+    Private Sub A7_CheckedChanged(sender As Object, e As EventArgs) Handles A7.Click
650
+        Set_清單3()
651
+    End Sub
652
+    Private Sub A8_CheckedChanged(sender As Object, e As EventArgs) Handles A8.Click
653
+        Set_清單3()
654
+    End Sub
655
+    Private Sub A9_CheckedChanged(sender As Object, e As EventArgs) Handles A9.Click
656
+        Set_清單3()
657
+    End Sub
658
+    Private Sub A10_CheckedChanged(sender As Object, e As EventArgs) Handles A10.Click
659
+        Set_清單3()
660
+    End Sub
661
+    Private Sub A11_CheckedChanged(sender As Object, e As EventArgs) Handles A11.Click
662
+        Set_清單3()
663
+    End Sub
664
+    Private Sub A12_CheckedChanged(sender As Object, e As EventArgs) Handles A12.Click
665
+        Set_清單3()
666
+    End Sub
667
+    Private Sub A13_CheckedChanged(sender As Object, e As EventArgs) Handles A13.Click
668
+        Set_清單3()
669
+    End Sub
670
+    Private Sub A14_CheckedChanged(sender As Object, e As EventArgs) Handles A14.Click
671
+        Set_清單3()
672
+    End Sub
673
+    Private Sub A15_CheckedChanged(sender As Object, e As EventArgs) Handles A15.Click
674
+        Set_清單3()
675
+    End Sub
676
+    Private Sub A16_CheckedChanged(sender As Object, e As EventArgs) Handles A16.Click
677
+        Set_清單3()
678
+    End Sub
679
+    Private Sub A17_CheckedChanged(sender As Object, e As EventArgs) Handles A17.Click
680
+        Set_清單3()
681
+    End Sub
682
+    Private Sub A18_CheckedChanged(sender As Object, e As EventArgs) Handles A18.Click
683
+        Set_清單3()
684
+    End Sub
685
+    Private Sub A19_CheckedChanged(sender As Object, e As EventArgs) Handles A19.Click
686
+        Set_清單3()
687
+    End Sub
688
+    Private Sub A20_CheckedChanged(sender As Object, e As EventArgs) Handles A20.Click
689
+        Set_清單3()
690
+    End Sub
691
+    '----------------------自創視窗滑鼠拖曳功能---------------------------------------------------------------------------------------------------------
692
+    Dim OldX, OldY As Long : Dim drag As Boolean
693
+    Private Sub CanceL2_bt_Click(sender As Object, e As EventArgs) Handles CanceL2_bt.Click
694
+        If 視窗2_pl.Visible = False Then : 視窗2_pl.Visible = True : 視窗2_pl.BringToFront() : Else
695
+            視窗2_pl.Visible = False : End If
696
+    End Sub
697
+    Private Sub 視窗2_pl_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles 視窗2_pl.MouseDown
698
+        If e.Button = MouseButtons.Left Then : OldX = e.X : OldY = e.Y : drag = True : End If
699
+    End Sub
700
+    Private Sub 視窗2_pl_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles 視窗2_pl.MouseMove
701
+        If drag Then : 視窗2_pl.Left = 視窗2_pl.Left + e.X - OldX : 視窗2_pl.Top = 視窗2_pl.Top + e.Y - OldY : End If
702
+    End Sub
703
+    Private Sub 視窗2_pl_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles 視窗2_pl.MouseUp
704
+        drag = False
705
+    End Sub
706
+    Private Sub 風格()
707
+        If 深色風格 = False Then
708
+            Me.BackColor = SystemColors.Control : 視窗2_pl.BackColor = SystemColors.Control : Panel3.BackColor = Color.White
709
+            '----------------黑-------------------------------------------
710
+            回首頁_bt.BackColor = Color.White
711
+            語轉扭_bt.BackColor = Color.White : 語轉扭_bt.ForeColor = Color.Black
712
+            For i As Integer = 1 To 20 : Dim 選擇 As CheckBox = CType(Me.Controls.Find("A" & i, True)(0), CheckBox) : 選擇.ForeColor = Color.Black : Next
713
+
714
+            清單_dgv.EnableHeadersVisualStyles = True : 清單_dgv.BackgroundColor = Color.White : 清單_dgv.ColumnHeadersDefaultCellStyle.ForeColor = Color.Black
715
+            清單_dgv.DefaultCellStyle.BackColor = Color.White : 清單_dgv.DefaultCellStyle.ForeColor = Color.Black
716
+            明細_dgv.EnableHeadersVisualStyles = True : 明細_dgv.BackgroundColor = Color.White : 明細_dgv.ColumnHeadersDefaultCellStyle.ForeColor = Color.Black
717
+            明細_dgv.DefaultCellStyle.BackColor = Color.White : 明細_dgv.DefaultCellStyle.ForeColor = Color.Black
718
+            清單1_dgv.EnableHeadersVisualStyles = True : 清單1_dgv.BackgroundColor = Color.White : 清單1_dgv.ColumnHeadersDefaultCellStyle.ForeColor = Color.Black
719
+            清單1_dgv.DefaultCellStyle.BackColor = Color.White : 清單1_dgv.DefaultCellStyle.ForeColor = Color.Black
720
+            彙總1_dgv.EnableHeadersVisualStyles = True : 彙總1_dgv.BackgroundColor = Color.White : 彙總1_dgv.ColumnHeadersDefaultCellStyle.ForeColor = Color.Black
721
+            彙總1_dgv.DefaultCellStyle.BackColor = Color.White : 彙總1_dgv.DefaultCellStyle.ForeColor = Color.Black : 彙總1_dgv.DefaultCellStyle.SelectionBackColor = Color.White
722
+            彙總1_dgv.DefaultCellStyle.SelectionForeColor = Color.Black
723
+            彙總2_dgv.EnableHeadersVisualStyles = True : 彙總2_dgv.BackgroundColor = Color.White : 彙總2_dgv.ColumnHeadersDefaultCellStyle.ForeColor = Color.Black
724
+            彙總2_dgv.DefaultCellStyle.BackColor = Color.White : 彙總2_dgv.DefaultCellStyle.ForeColor = Color.Black : 彙總2_dgv.DefaultCellStyle.SelectionBackColor = Color.White
725
+            彙總2_dgv.DefaultCellStyle.SelectionForeColor = Color.Black
726
+            彙總3_dgv.EnableHeadersVisualStyles = True : 彙總3_dgv.BackgroundColor = Color.White : 彙總3_dgv.ColumnHeadersDefaultCellStyle.ForeColor = Color.Black
727
+            彙總3_dgv.DefaultCellStyle.BackColor = Color.White : 彙總3_dgv.DefaultCellStyle.ForeColor = Color.Black : 彙總3_dgv.DefaultCellStyle.SelectionBackColor = Color.White
728
+            彙總3_dgv.DefaultCellStyle.SelectionForeColor = Color.Black
729
+            彙總4_dgv.EnableHeadersVisualStyles = True : 彙總4_dgv.BackgroundColor = Color.White : 彙總4_dgv.ColumnHeadersDefaultCellStyle.ForeColor = Color.Black
730
+            彙總4_dgv.DefaultCellStyle.BackColor = Color.White : 彙總4_dgv.DefaultCellStyle.ForeColor = Color.Black : 彙總4_dgv.DefaultCellStyle.SelectionBackColor = Color.White
731
+            彙總4_dgv.DefaultCellStyle.SelectionForeColor = Color.Black
732
+            合計1_dgv.EnableHeadersVisualStyles = True : 合計1_dgv.BackgroundColor = Color.White : 合計1_dgv.ColumnHeadersDefaultCellStyle.ForeColor = Color.Black
733
+            合計1_dgv.DefaultCellStyle.BackColor = Color.White : 合計1_dgv.DefaultCellStyle.ForeColor = Color.Black : 合計1_dgv.DefaultCellStyle.SelectionBackColor = Color.White
734
+            合計1_dgv.DefaultCellStyle.SelectionForeColor = Color.Black
735
+            合計2_dgv.EnableHeadersVisualStyles = True : 合計2_dgv.BackgroundColor = Color.White : 合計2_dgv.ColumnHeadersDefaultCellStyle.ForeColor = Color.Black
736
+            合計2_dgv.DefaultCellStyle.BackColor = Color.White : 合計2_dgv.DefaultCellStyle.ForeColor = Color.Black : 合計2_dgv.DefaultCellStyle.SelectionBackColor = Color.White
737
+            合計2_dgv.DefaultCellStyle.SelectionForeColor = Color.Black
738
+            合計3_dgv.EnableHeadersVisualStyles = True : 合計3_dgv.BackgroundColor = Color.White : 合計3_dgv.ColumnHeadersDefaultCellStyle.ForeColor = Color.Black
739
+            合計3_dgv.DefaultCellStyle.BackColor = Color.White : 合計3_dgv.DefaultCellStyle.ForeColor = Color.Black : 合計3_dgv.DefaultCellStyle.SelectionBackColor = Color.White
740
+            合計3_dgv.DefaultCellStyle.SelectionForeColor = Color.Black
741
+        Else
742
+            Me.BackColor = Color.Black : 視窗2_pl.BackColor = Color.White : Panel3.BackColor = Color.Black
743
+            '----------------黑-------------------------------------------
744
+            回首頁_bt.BackColor = Color.DimGray
745
+            語轉扭_bt.BackColor = Color.DimGray : 語轉扭_bt.ForeColor = Color.White
746
+            For i As Integer = 1 To 20 : Dim 選擇 As CheckBox = CType(Me.Controls.Find("A" & i, True)(0), CheckBox) : 選擇.ForeColor = Color.White : Next
747
+
748
+            清單_dgv.EnableHeadersVisualStyles = False : 清單_dgv.BackgroundColor = Color.DimGray : 清單_dgv.ColumnHeadersDefaultCellStyle.ForeColor = Color.White
749
+            清單_dgv.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : 清單_dgv.DefaultCellStyle.BackColor = Color.Black : 清單_dgv.DefaultCellStyle.ForeColor = Color.White
750
+            明細_dgv.EnableHeadersVisualStyles = False : 明細_dgv.BackgroundColor = Color.DimGray : 明細_dgv.ColumnHeadersDefaultCellStyle.ForeColor = Color.White
751
+            明細_dgv.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : 明細_dgv.DefaultCellStyle.BackColor = Color.Black : 明細_dgv.DefaultCellStyle.ForeColor = Color.White
752
+            清單1_dgv.EnableHeadersVisualStyles = False : 清單1_dgv.BackgroundColor = Color.DimGray : 清單1_dgv.ColumnHeadersDefaultCellStyle.ForeColor = Color.White
753
+            清單1_dgv.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : 清單1_dgv.DefaultCellStyle.BackColor = Color.Black : 清單1_dgv.DefaultCellStyle.ForeColor = Color.White
754
+            彙總1_dgv.EnableHeadersVisualStyles = False : 彙總1_dgv.BackgroundColor = Color.DimGray : 彙總1_dgv.ColumnHeadersDefaultCellStyle.ForeColor = Color.White
755
+            彙總1_dgv.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : 彙總1_dgv.DefaultCellStyle.BackColor = Color.Black : 彙總1_dgv.DefaultCellStyle.ForeColor = Color.White
756
+            彙總1_dgv.DefaultCellStyle.SelectionBackColor = Color.Black
757
+            彙總2_dgv.EnableHeadersVisualStyles = False : 彙總2_dgv.BackgroundColor = Color.DimGray : 彙總2_dgv.ColumnHeadersDefaultCellStyle.ForeColor = Color.White
758
+            彙總2_dgv.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : 彙總2_dgv.DefaultCellStyle.BackColor = Color.Black : 彙總2_dgv.DefaultCellStyle.ForeColor = Color.White
759
+            彙總2_dgv.DefaultCellStyle.SelectionBackColor = Color.Black
760
+            彙總3_dgv.EnableHeadersVisualStyles = False : 彙總3_dgv.BackgroundColor = Color.DimGray : 彙總3_dgv.ColumnHeadersDefaultCellStyle.ForeColor = Color.White
761
+            彙總3_dgv.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : 彙總3_dgv.DefaultCellStyle.BackColor = Color.Black : 彙總3_dgv.DefaultCellStyle.ForeColor = Color.White
762
+            彙總3_dgv.DefaultCellStyle.SelectionBackColor = Color.Black
763
+            彙總4_dgv.EnableHeadersVisualStyles = False : 彙總4_dgv.BackgroundColor = Color.DimGray : 彙總4_dgv.ColumnHeadersDefaultCellStyle.ForeColor = Color.White
764
+            彙總4_dgv.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : 彙總4_dgv.DefaultCellStyle.BackColor = Color.Black : 彙總4_dgv.DefaultCellStyle.ForeColor = Color.White
765
+            彙總4_dgv.DefaultCellStyle.SelectionBackColor = Color.Black
766
+            合計1_dgv.EnableHeadersVisualStyles = False : 合計1_dgv.BackgroundColor = Color.DimGray : 合計1_dgv.ColumnHeadersDefaultCellStyle.ForeColor = Color.White
767
+            合計1_dgv.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : 合計1_dgv.DefaultCellStyle.BackColor = Color.Black : 合計1_dgv.DefaultCellStyle.ForeColor = Color.White
768
+            合計1_dgv.DefaultCellStyle.SelectionBackColor = Color.Black
769
+            合計2_dgv.EnableHeadersVisualStyles = False : 合計2_dgv.BackgroundColor = Color.DimGray : 合計2_dgv.ColumnHeadersDefaultCellStyle.ForeColor = Color.White
770
+            合計2_dgv.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : 合計2_dgv.DefaultCellStyle.BackColor = Color.Black : 合計2_dgv.DefaultCellStyle.ForeColor = Color.White
771
+            合計2_dgv.DefaultCellStyle.SelectionBackColor = Color.Black
772
+            合計3_dgv.EnableHeadersVisualStyles = False : 合計3_dgv.BackgroundColor = Color.DimGray : 合計3_dgv.ColumnHeadersDefaultCellStyle.ForeColor = Color.White
773
+            合計3_dgv.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : 合計3_dgv.DefaultCellStyle.BackColor = Color.Black : 合計3_dgv.DefaultCellStyle.ForeColor = Color.White
774
+            合計3_dgv.DefaultCellStyle.SelectionBackColor = Color.Black
775
+        End If
776
+    End Sub
777
+End Class

+ 1016
- 0
Calculator-SYS/06、財務系統管理/財務報表3.Designer.vb
ファイル差分が大きすぎるため省略します
ファイルの表示


+ 126
- 0
Calculator-SYS/06、財務系統管理/財務報表3.resx ファイルの表示

@@ -0,0 +1,126 @@
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
+  <metadata name="ToolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
121
+    <value>17, 17</value>
122
+  </metadata>
123
+  <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
124
+    <value>37</value>
125
+  </metadata>
126
+</root>

+ 896
- 0
Calculator-SYS/06、財務系統管理/財務報表3.vb ファイルの表示

@@ -0,0 +1,896 @@
1
+Option Strict Off
2
+Imports System.Windows.Forms.DataVisualization.Charting
3
+Public Class 財務報表3
4
+    Dim 選款項 As Boolean
5
+    Private Sub 語言轉換讀取()
6
+        If 系統語言 = "繁體中文" Then : 語言 = "CH" : ElseIf 系統語言 = "English" Then : 語言 = "EN" : ElseIf 系統語言 = "Indonesian" Then : 語言 = "IN" : End If
7
+        Me.Text = 系統語言字典("H001-209-" & 語言) : 表頭(11) = 系統語言字典("H110-118-" & 語言) : 表頭(12) = 系統語言字典(介面 & "-103-" & 語言)
8
+        表頭(14) = 系統語言字典(介面 & "-105-" & 語言) : 表頭(15) = 系統語言字典(介面 & "-106-" & 語言) : 表頭(16) = 系統語言字典(介面 & "-107-" & 語言)
9
+        表頭(17) = 系統語言字典(介面 & "-108-" & 語言) : 表頭(18) = 系統語言字典(介面 & "-109-" & 語言) : 表頭(19) = 系統語言字典(介面 & "-110-" & 語言)
10
+        表頭(20) = 系統語言字典(介面 & "-111-" & 語言) : 表頭(21) = 系統語言字典(介面 & "-112-" & 語言) : 表頭(13) = 系統語言字典(介面 & "-104-" & 語言)
11
+        款項_bt.Text = 系統語言字典("H309-100-" & 語言) : B1.Text = 系統語言字典(介面 & "-105-" & 語言) : B2.Text = 系統語言字典(介面 & "-106-" & 語言)
12
+        稅額_bt.Text = 系統語言字典("H309-101-" & 語言) : B3.Text = 系統語言字典(介面 & "-107-" & 語言) : B4.Text = 系統語言字典(介面 & "-108-" & 語言)
13
+    End Sub
14
+    Private Sub Set_請款清單()
15
+        Dim ds1 As New DataSet : 請款清單_dgv.DataSource = Nothing : ds1.Clear()
16
+        請款清單_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
17
+        請款清單_dgv.ColumnHeadersHeight = 25 : 請款清單_dgv.AllowUserToAddRows = False
18
+        SQL_請款清單() : da.Fill(ds1) : 請款清單_dgv.DataSource = ds1.Tables(0) : conn.Close()
19
+        請款清單_dgv.Columns("期數").FillWeight = 40 : 請款清單_dgv.Columns("稅金").FillWeight = 40
20
+        請款清單_dgv.Columns("本收").FillWeight = 40 : 請款清單_dgv.Columns("稅收").FillWeight = 40
21
+
22
+        Dim formatColumns() As Integer = {3, 5, 4, 6}
23
+        For Each colIndex As Integer In formatColumns
24
+            請款清單_dgv.Columns(colIndex).DefaultCellStyle.Format = "#,##0"
25
+            請款清單_dgv.Columns(colIndex).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
26
+            請款清單_dgv.Columns(colIndex).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
27
+        Next
28
+        For II As Integer = 0 To 請款清單_dgv.Rows.Count - 1
29
+            If IsDBNull(請款清單_dgv.Rows(II).Cells("本收").Value) = True Then : 請款清單_dgv.Rows(II).Cells("本收").Value = False : End If
30
+            If IsDBNull(請款清單_dgv.Rows(II).Cells("稅收").Value) = True Then : 請款清單_dgv.Rows(II).Cells("稅收").Value = False : End If
31
+        Next
32
+    End Sub
33
+    Private Sub Set_合約清單()
34
+        Set_請款清單() : Set_合約報表計算() : Set_合約報表計算1()
35
+        Dim ds5 As New DataSet : 彙總_dgv.DataSource = Nothing
36
+        彙總_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
37
+        彙總_dgv.ColumnHeadersHeight = 25 : 彙總_dgv.AllowUserToAddRows = False
38
+        表頭(9) = "合約號" : 表頭(10) = "合約2%" : SQL_合約彙總()
39
+        da.Fill(ds5) : 彙總_dgv.DataSource = ds5.Tables(0)
40
+        彙總_dgv.Columns("甲方").FillWeight = 40 : 彙總_dgv.Columns("計數").FillWeight = 40
41
+
42
+        Dim formatColumns() As Integer = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}
43
+        For Each colIndex As Integer In formatColumns
44
+            彙總_dgv.Columns(colIndex).DefaultCellStyle.Format = "#,##0"
45
+            彙總_dgv.Columns(colIndex).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
46
+            彙總_dgv.Columns(colIndex).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
47
+        Next
48
+        '---------------------------基本計算----------------------------------------------------------------------------------------------------------------------------------------------
49
+        For i As Integer = 0 To 彙總_dgv.Rows.Count - 1
50
+            If 彙總_dgv.Rows(i).Cells("總報價").Value.ToString = "" Then : 彙總_dgv.Rows(i).Cells("總報價").Value = "0" : End If
51
+            彙總_dgv.Rows(i).Cells("已請款").Value = "0" : 彙總_dgv.Rows(i).Cells("未請款").Value = "0" : 彙總_dgv.Rows(i).Cells("已請稅").Value = "0"
52
+            彙總_dgv.Rows(i).Cells("未請稅").Value = "0" : 彙總_dgv.Rows(i).Cells("已收款").Value = "0" : 彙總_dgv.Rows(i).Cells("已請未收款").Value = "0"
53
+            彙總_dgv.Rows(i).Cells("已收稅").Value = "0" : 彙總_dgv.Rows(i).Cells("已請未收稅").Value = "0" : 彙總_dgv.Rows(i).Cells("計數").Value = "1"
54
+            彙總_dgv.Rows(i).Cells("稅金").Value = CLng(彙總_dgv.Rows(i).Cells("工程總價").Value.ToString) - CLng(彙總_dgv.Rows(i).Cells("總報價").Value.ToString)
55
+            For ii As Integer = 0 To 請款清單_dgv.Rows.Count - 1
56
+                If 彙總_dgv.Rows(i).Cells(0).Value.ToString = 請款清單_dgv.Rows(ii).Cells(0).Value.ToString Then
57
+                    彙總_dgv.Rows(i).Cells("已請款").Value = CLng(彙總_dgv.Rows(i).Cells("已請款").Value.ToString) + CLng(請款清單_dgv.Rows(ii).Cells("請款金額").Value.ToString)
58
+                    彙總_dgv.Rows(i).Cells("已請稅").Value = CLng(彙總_dgv.Rows(i).Cells("已請稅").Value.ToString) + CLng(請款清單_dgv.Rows(ii).Cells("稅額").Value.ToString)
59
+                End If
60
+                If 彙總_dgv.Rows(i).Cells(0).Value.ToString = 請款清單_dgv.Rows(ii).Cells(0).Value.ToString And 請款清單_dgv.Rows(ii).Cells("本收").Value = True Then
61
+                    彙總_dgv.Rows(i).Cells("已收款").Value = CLng(彙總_dgv.Rows(i).Cells("已收款").Value.ToString) + CLng(請款清單_dgv.Rows(ii).Cells("請款金額").Value.ToString)
62
+                End If
63
+                If 彙總_dgv.Rows(i).Cells(0).Value.ToString = 請款清單_dgv.Rows(ii).Cells(0).Value.ToString And 請款清單_dgv.Rows(ii).Cells("稅收").Value = True Then
64
+                    彙總_dgv.Rows(i).Cells("已收稅").Value = CLng(彙總_dgv.Rows(i).Cells("已收稅").Value.ToString) + CLng(請款清單_dgv.Rows(ii).Cells("稅額").Value.ToString)
65
+                End If
66
+            Next
67
+            彙總_dgv.Rows(i).Cells("未請款").Value = CLng(彙總_dgv.Rows(i).Cells("總報價").Value) - (彙總_dgv.Rows(i).Cells("已請款").Value)
68
+            彙總_dgv.Rows(i).Cells("未請稅").Value = CLng(彙總_dgv.Rows(i).Cells("稅金").Value) - (彙總_dgv.Rows(i).Cells("已請稅").Value)
69
+            彙總_dgv.Rows(i).Cells("已請未收款").Value = CLng(彙總_dgv.Rows(i).Cells("已請款").Value) - (彙總_dgv.Rows(i).Cells("已收款").Value)
70
+            彙總_dgv.Rows(i).Cells("已請未收稅").Value = CLng(彙總_dgv.Rows(i).Cells("已請稅").Value) - (彙總_dgv.Rows(i).Cells("已收稅").Value)
71
+            If CLng(彙總_dgv.Rows(i).Cells("未請款").Value) < 0 Then : 彙總_dgv.Rows(i).Cells("未請款").Value = "0" : End If
72
+            If CLng(彙總_dgv.Rows(i).Cells("未請稅").Value) < 0 Then : 彙總_dgv.Rows(i).Cells("未請稅").Value = "0" : End If
73
+        Next
74
+        '---------------------------彙總計算----------------------------------------------------------------------------------------------------------------------------------------------
75
+        合計1_dgv.Rows(0).Cells(1).Value = "0" : 合計2_dgv.Rows(0).Cells("工程總價").Value = "0" : 合計2_dgv.Rows(0).Cells("總報價").Value = "0"
76
+        合計2_dgv.Rows(0).Cells("稅金").Value = "0" : 合計2_dgv.Rows(0).Cells("已請款").Value = "0" : 合計2_dgv.Rows(0).Cells("未請款").Value = "0"
77
+        合計2_dgv.Rows(0).Cells("已請稅").Value = "0" : 合計2_dgv.Rows(0).Cells("未請稅").Value = "0" : 合計2_dgv.Rows(0).Cells("已收款").Value = "0"
78
+        合計2_dgv.Rows(0).Cells("已請未收款").Value = "0" : 合計2_dgv.Rows(0).Cells("已收稅").Value = "0" : 合計2_dgv.Rows(0).Cells("已請未收稅").Value = "0"
79
+        For i As Integer = 0 To 計算_dgv.Rows.Count - 1
80
+            計算_dgv.Rows(i).Cells(表頭(12)).Value = "0" : 計算_dgv.Rows(i).Cells(表頭(13)).Value = "0" : 計算_dgv.Rows(i).Cells("總報價").Value = "0"
81
+            計算_dgv.Rows(i).Cells("稅金").Value = "0" : 計算_dgv.Rows(i).Cells(表頭(14)).Value = "0" : 計算_dgv.Rows(i).Cells(表頭(15)).Value = "0"
82
+            計算_dgv.Rows(i).Cells(表頭(18)).Value = "0" : 計算_dgv.Rows(i).Cells(表頭(19)).Value = "0" : 計算_dgv.Rows(i).Cells(表頭(16)).Value = "0"
83
+            計算_dgv.Rows(i).Cells(表頭(17)).Value = "0" : 計算_dgv.Rows(i).Cells(表頭(20)).Value = "0" : 計算_dgv.Rows(i).Cells(表頭(21)).Value = "0"
84
+            計算1_dgv.Rows(i).Cells(表頭(12)).Value = "0"
85
+            計算2_dgv.Rows(i).Cells(表頭(12)).Value = "0" : 計算2_dgv.Rows(i).Cells(表頭(13)).Value = "0" : 計算2_dgv.Rows(i).Cells("總報價").Value = "0"
86
+            計算2_dgv.Rows(i).Cells("稅金").Value = "0" : 計算2_dgv.Rows(i).Cells(表頭(14)).Value = "0" : 計算2_dgv.Rows(i).Cells(表頭(15)).Value = "0"
87
+            計算2_dgv.Rows(i).Cells(表頭(18)).Value = "0" : 計算2_dgv.Rows(i).Cells(表頭(19)).Value = "0" : 計算2_dgv.Rows(i).Cells(表頭(16)).Value = "0"
88
+            計算2_dgv.Rows(i).Cells(表頭(17)).Value = "0" : 計算2_dgv.Rows(i).Cells(表頭(20)).Value = "0" : 計算2_dgv.Rows(i).Cells(表頭(21)).Value = "0"
89
+            For ii As Integer = 0 To 彙總_dgv.Rows.Count - 1
90
+                If 計算_dgv.Rows(i).Cells(0).Value.ToString = 彙總_dgv.Rows(ii).Cells("甲方").Value.ToString Then
91
+                    計算_dgv.Rows(i).Cells(表頭(12)).Value = CLng(計算_dgv.Rows(i).Cells(表頭(12)).Value.ToString) + CLng(彙總_dgv.Rows(ii).Cells("計數").Value.ToString)
92
+                    計算1_dgv.Rows(i).Cells(表頭(12)).Value = CLng(計算1_dgv.Rows(i).Cells(表頭(12)).Value.ToString) + CLng(彙總_dgv.Rows(ii).Cells("計數").Value.ToString)
93
+                    計算_dgv.Rows(i).Cells(表頭(13)).Value = CLng(計算_dgv.Rows(i).Cells(表頭(13)).Value.ToString) + CLng(彙總_dgv.Rows(ii).Cells("工程總價").Value.ToString)
94
+                    計算_dgv.Rows(i).Cells("總報價").Value = CLng(計算_dgv.Rows(i).Cells("總報價").Value.ToString) + CLng(彙總_dgv.Rows(ii).Cells("總報價").Value.ToString)
95
+                    計算_dgv.Rows(i).Cells("稅金").Value = CLng(計算_dgv.Rows(i).Cells("稅金").Value.ToString) + CLng(彙總_dgv.Rows(ii).Cells("稅金").Value.ToString)
96
+                    計算_dgv.Rows(i).Cells(表頭(14)).Value = CLng(計算_dgv.Rows(i).Cells(表頭(14)).Value.ToString) + CLng(彙總_dgv.Rows(ii).Cells("已請款").Value.ToString)
97
+                    計算_dgv.Rows(i).Cells(表頭(15)).Value = CLng(計算_dgv.Rows(i).Cells(表頭(15)).Value.ToString) + CLng(彙總_dgv.Rows(ii).Cells("未請款").Value.ToString)
98
+                    計算_dgv.Rows(i).Cells(表頭(18)).Value = CLng(計算_dgv.Rows(i).Cells(表頭(18)).Value.ToString) + CLng(彙總_dgv.Rows(ii).Cells("已請稅").Value.ToString)
99
+                    計算_dgv.Rows(i).Cells(表頭(19)).Value = CLng(計算_dgv.Rows(i).Cells(表頭(19)).Value.ToString) + CLng(彙總_dgv.Rows(ii).Cells("未請稅").Value.ToString)
100
+                    計算_dgv.Rows(i).Cells(表頭(16)).Value = CLng(計算_dgv.Rows(i).Cells(表頭(16)).Value.ToString) + CLng(彙總_dgv.Rows(ii).Cells("已收款").Value.ToString)
101
+                    計算_dgv.Rows(i).Cells(表頭(17)).Value = CLng(計算_dgv.Rows(i).Cells(表頭(17)).Value.ToString) + CLng(彙總_dgv.Rows(ii).Cells("已請未收款").Value.ToString)
102
+                    計算_dgv.Rows(i).Cells(表頭(20)).Value = CLng(計算_dgv.Rows(i).Cells(表頭(20)).Value.ToString) + CLng(彙總_dgv.Rows(ii).Cells("已收稅").Value.ToString)
103
+                    計算_dgv.Rows(i).Cells(表頭(21)).Value = CLng(計算_dgv.Rows(i).Cells(表頭(21)).Value.ToString) + CLng(彙總_dgv.Rows(ii).Cells("已請未收稅").Value.ToString)
104
+
105
+                    計算2_dgv.Rows(i).Cells(表頭(13)).Value = CLng(計算2_dgv.Rows(i).Cells(表頭(13)).Value.ToString) + CLng(彙總_dgv.Rows(ii).Cells("工程總價").Value.ToString)
106
+                    計算2_dgv.Rows(i).Cells("總報價").Value = CLng(計算2_dgv.Rows(i).Cells("總報價").Value.ToString) + CLng(彙總_dgv.Rows(ii).Cells("總報價").Value.ToString)
107
+                    計算2_dgv.Rows(i).Cells("稅金").Value = CLng(計算2_dgv.Rows(i).Cells("稅金").Value.ToString) + CLng(彙總_dgv.Rows(ii).Cells("稅金").Value.ToString)
108
+                    計算2_dgv.Rows(i).Cells(表頭(14)).Value = CLng(計算2_dgv.Rows(i).Cells(表頭(14)).Value.ToString) + CLng(彙總_dgv.Rows(ii).Cells("已請款").Value.ToString)
109
+                    計算2_dgv.Rows(i).Cells(表頭(15)).Value = CLng(計算2_dgv.Rows(i).Cells(表頭(15)).Value.ToString) + CLng(彙總_dgv.Rows(ii).Cells("未請款").Value.ToString)
110
+                    計算2_dgv.Rows(i).Cells(表頭(18)).Value = CLng(計算2_dgv.Rows(i).Cells(表頭(18)).Value.ToString) + CLng(彙總_dgv.Rows(ii).Cells("已請稅").Value.ToString)
111
+                    計算2_dgv.Rows(i).Cells(表頭(19)).Value = CLng(計算2_dgv.Rows(i).Cells(表頭(19)).Value.ToString) + CLng(彙總_dgv.Rows(ii).Cells("未請稅").Value.ToString)
112
+                    計算2_dgv.Rows(i).Cells(表頭(16)).Value = CLng(計算2_dgv.Rows(i).Cells(表頭(16)).Value.ToString) + CLng(彙總_dgv.Rows(ii).Cells("已收款").Value.ToString)
113
+                    計算2_dgv.Rows(i).Cells(表頭(17)).Value = CLng(計算2_dgv.Rows(i).Cells(表頭(17)).Value.ToString) + CLng(彙總_dgv.Rows(ii).Cells("已請未收款").Value.ToString)
114
+                    計算2_dgv.Rows(i).Cells(表頭(20)).Value = CLng(計算2_dgv.Rows(i).Cells(表頭(20)).Value.ToString) + CLng(彙總_dgv.Rows(ii).Cells("已收稅").Value.ToString)
115
+                    計算2_dgv.Rows(i).Cells(表頭(21)).Value = CLng(計算2_dgv.Rows(i).Cells(表頭(21)).Value.ToString) + CLng(彙總_dgv.Rows(ii).Cells("已請未收稅").Value.ToString)
116
+                End If
117
+            Next
118
+            If CLng(計算2_dgv.Rows(i).Cells("總報價").Value.ToString) = 0 Then : 計算2_dgv.Rows(i).Cells("比例1").Value = "0" : Else
119
+                計算2_dgv.Rows(i).Cells("比例1").Value = CLng(計算2_dgv.Rows(i).Cells(表頭(14)).Value.ToString) / CLng(計算2_dgv.Rows(i).Cells("總報價").Value.ToString) * 100
120
+            End If
121
+            If CLng(計算2_dgv.Rows(i).Cells(表頭(14)).Value.ToString) = 0 Then : 計算2_dgv.Rows(i).Cells("比例2").Value = "0" : Else
122
+                計算2_dgv.Rows(i).Cells("比例2").Value = CLng(計算2_dgv.Rows(i).Cells(表頭(16)).Value.ToString) / CLng(計算2_dgv.Rows(i).Cells(表頭(14)).Value.ToString) * 100
123
+            End If
124
+            If CLng(計算2_dgv.Rows(i).Cells("稅金").Value.ToString) = 0 Then : 計算2_dgv.Rows(i).Cells("比例3").Value = "0" : Else
125
+                計算2_dgv.Rows(i).Cells("比例3").Value = CLng(計算2_dgv.Rows(i).Cells(表頭(18)).Value.ToString) / CLng(計算2_dgv.Rows(i).Cells("稅金").Value.ToString) * 100
126
+            End If
127
+            If CLng(計算2_dgv.Rows(i).Cells(表頭(18)).Value.ToString) = 0 Then : 計算2_dgv.Rows(i).Cells("比例4").Value = "0" : Else
128
+                計算2_dgv.Rows(i).Cells("比例4").Value = CLng(計算2_dgv.Rows(i).Cells(表頭(20)).Value.ToString) / CLng(計算2_dgv.Rows(i).Cells(表頭(18)).Value.ToString) * 100
129
+            End If
130
+            合計1_dgv.Rows(0).Cells(1).Value = CLng(合計1_dgv.Rows(0).Cells(1).Value.ToString) + CLng(計算1_dgv.Rows(i).Cells(表頭(12)).Value.ToString)
131
+            合計2_dgv.Rows(0).Cells("工程總價").Value = CLng(合計2_dgv.Rows(0).Cells("工程總價").Value.ToString) + CLng(計算2_dgv.Rows(i).Cells(表頭(13)).Value.ToString)
132
+            合計2_dgv.Rows(0).Cells("總報價").Value = CLng(合計2_dgv.Rows(0).Cells("總報價").Value.ToString) + CLng(計算2_dgv.Rows(i).Cells("總報價").Value.ToString)
133
+            合計2_dgv.Rows(0).Cells("稅金").Value = CLng(合計2_dgv.Rows(0).Cells("稅金").Value.ToString) + CLng(計算2_dgv.Rows(i).Cells("稅金").Value.ToString)
134
+            合計2_dgv.Rows(0).Cells("已請款").Value = CLng(合計2_dgv.Rows(0).Cells("已請款").Value.ToString) + CLng(計算2_dgv.Rows(i).Cells(表頭(14)).Value.ToString)
135
+            合計2_dgv.Rows(0).Cells("未請款").Value = CLng(合計2_dgv.Rows(0).Cells("未請款").Value.ToString) + CLng(計算2_dgv.Rows(i).Cells(表頭(15)).Value.ToString)
136
+            合計2_dgv.Rows(0).Cells("已請稅").Value = CLng(合計2_dgv.Rows(0).Cells("已請稅").Value.ToString) + CLng(計算2_dgv.Rows(i).Cells(表頭(18)).Value.ToString)
137
+            合計2_dgv.Rows(0).Cells("未請稅").Value = CLng(合計2_dgv.Rows(0).Cells("未請稅").Value.ToString) + CLng(計算2_dgv.Rows(i).Cells(表頭(19)).Value.ToString)
138
+            合計2_dgv.Rows(0).Cells("已收款").Value = CLng(合計2_dgv.Rows(0).Cells("已收款").Value.ToString) + CLng(計算2_dgv.Rows(i).Cells(表頭(16)).Value.ToString)
139
+            合計2_dgv.Rows(0).Cells("已請未收款").Value = CLng(合計2_dgv.Rows(0).Cells("已請未收款").Value.ToString) + CLng(計算2_dgv.Rows(i).Cells(表頭(17)).Value.ToString)
140
+            合計2_dgv.Rows(0).Cells("已收稅").Value = CLng(合計2_dgv.Rows(0).Cells("已收稅").Value.ToString) + CLng(計算2_dgv.Rows(i).Cells(表頭(20)).Value.ToString)
141
+            合計2_dgv.Rows(0).Cells("已請未收稅").Value = CLng(合計2_dgv.Rows(0).Cells("已請未收稅").Value.ToString) + CLng(計算2_dgv.Rows(i).Cells(表頭(21)).Value.ToString)
142
+        Next
143
+        合計1_dgv.Rows(0).Cells(0).Value = 系統語言字典(介面 & "-101-" & 語言) : 合計2_dgv.Rows(0).Cells(0).Value = 系統語言字典(介面 & "-102-" & 語言)
144
+        If CLng(合計2_dgv.Rows(0).Cells("總報價").Value.ToString) = 0 Then : 合計2_dgv.Rows(0).Cells("比例1").Value = "0" : Else
145
+            合計2_dgv.Rows(0).Cells("比例1").Value = CLng(合計2_dgv.Rows(0).Cells("已請款").Value.ToString) / CLng(合計2_dgv.Rows(0).Cells("總報價").Value.ToString) * 100
146
+            If CLng(合計2_dgv.Rows(0).Cells("比例1").Value) > 100 Then : 合計2_dgv.Rows(0).Cells("比例1").Value = "100" : End If
147
+        End If
148
+        If CLng(合計2_dgv.Rows(0).Cells("已請款").Value.ToString) = 0 Then : 合計2_dgv.Rows(0).Cells("比例2").Value = "0" : Else
149
+            合計2_dgv.Rows(0).Cells("比例2").Value = CLng(合計2_dgv.Rows(0).Cells("已收款").Value.ToString) / CLng(合計2_dgv.Rows(0).Cells("已請款").Value.ToString) * 100
150
+            If CLng(合計2_dgv.Rows(0).Cells("比例2").Value) > 100 Then : 合計2_dgv.Rows(0).Cells("比例2").Value = "100" : End If
151
+        End If
152
+        If CLng(合計2_dgv.Rows(0).Cells("稅金").Value.ToString) = 0 Then : 合計2_dgv.Rows(0).Cells("比例3").Value = "0" : Else
153
+            合計2_dgv.Rows(0).Cells("比例3").Value = CLng(合計2_dgv.Rows(0).Cells("已請稅").Value.ToString) / CLng(合計2_dgv.Rows(0).Cells("稅金").Value.ToString) * 100
154
+            If CLng(合計2_dgv.Rows(0).Cells("比例3").Value) > 100 Then : 合計2_dgv.Rows(0).Cells("比例3").Value = "100" : End If
155
+        End If
156
+        If CLng(合計2_dgv.Rows(0).Cells("已請稅").Value.ToString) = 0 Then : 合計2_dgv.Rows(0).Cells("比例4").Value = "0" : Else
157
+            合計2_dgv.Rows(0).Cells("比例4").Value = CLng(合計2_dgv.Rows(0).Cells("已收稅").Value.ToString) / CLng(合計2_dgv.Rows(0).Cells("已請稅").Value.ToString) * 100
158
+            If CLng(合計2_dgv.Rows(0).Cells("比例4").Value) > 100 Then : 合計2_dgv.Rows(0).Cells("比例4").Value = "100" : End If
159
+        End If
160
+
161
+        計算_dgv.Sort(計算_dgv.Columns(表頭(13)), System.ComponentModel.ListSortDirection.Descending)
162
+        計算1_dgv.Sort(計算1_dgv.Columns(表頭(12)), System.ComponentModel.ListSortDirection.Descending)
163
+        計算2_dgv.Sort(計算2_dgv.Columns(表頭(13)), System.ComponentModel.ListSortDirection.Descending)
164
+        彙總()
165
+    End Sub
166
+    Private Sub Set_合約甲方()
167
+        Dim ds1 As New DataSet : 甲方_dgv.DataSource = Nothing : ds1.Clear()
168
+        甲方_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
169
+        甲方_dgv.ColumnHeadersHeight = 25 : 甲方_dgv.AllowUserToAddRows = False
170
+        SQL_合約甲方() : da.Fill(ds1) : 甲方_dgv.DataSource = ds1.Tables(0) : conn.Close()
171
+        If 甲方_dgv.Rows.Count > 19 Then : MGB(系統語言字典(介面 & "-100-" & 語言), 1) : Me.Close() : End If
172
+        For i As Integer = 1 To 20
173
+            Dim 選擇 As CheckBox = CType(Me.Controls.Find("A" & i, True)(0), CheckBox) : 選擇.Visible = False
174
+        Next
175
+        For i As Integer = 0 To 甲方_dgv.Rows.Count - 1
176
+            Dim 選擇 As CheckBox = CType(Me.Controls.Find("A" & i + 1, True)(0), CheckBox) : 選擇.Text = 甲方_dgv.Rows(i).Cells(0).Value.ToString : 選擇.Visible = True
177
+        Next
178
+    End Sub
179
+    Private Sub Set_合約報表計算()
180
+        Dim ds1, ds2, ds3 As New DataSet
181
+        計算_dgv.DataSource = Nothing : 計算1_dgv.DataSource = Nothing : 合計1_dgv.DataSource = Nothing : ds1.Clear() : ds2.Clear() : ds3.Clear()
182
+        計算_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
183
+        計算_dgv.ColumnHeadersHeight = 25 : 計算_dgv.AllowUserToAddRows = False
184
+        計算1_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
185
+        計算1_dgv.ColumnHeadersHeight = 25 : 計算1_dgv.AllowUserToAddRows = False
186
+        合計1_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
187
+        合計1_dgv.ColumnHeadersHeight = 25 : 合計1_dgv.AllowUserToAddRows = False
188
+        合計1_dgv.ColumnHeadersVisible = False
189
+        Dim SSA(19) As String
190
+        Dim checkBoxes() As CheckBox = {A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20}
191
+        For i As Integer = 0 To SSA.Length - 1
192
+            If checkBoxes(i).Checked Then : SSA(i) = " 約號甲方 LIKE N'" & checkBoxes(i).Text & "'" : Else : SSA(i) = "" : End If
193
+        Next
194
+        If SSA.All(Function(s) String.IsNullOrEmpty(s)) Then : SQL2 = "" : Else
195
+            Dim selectedSSA = SSA.Where(Function(s) Not String.IsNullOrEmpty(s)).ToArray()
196
+            SQL2 = "AND (" & String.Join(" OR ", selectedSSA) & ")"
197
+        End If
198
+        SQL_合約報表計算1() : da.Fill(ds1) : da.Fill(ds2) : SQL_合約報表計算2() : da.Fill(ds3)
199
+        計算_dgv.DataSource = ds1.Tables(0) : 計算1_dgv.DataSource = ds2.Tables(0) : 合計1_dgv.DataSource = ds3.Tables(0) : conn.Close()
200
+        計算_dgv.Columns("比例1").Visible = False : 計算_dgv.Columns("比例2").Visible = False
201
+        計算_dgv.Columns("比例3").Visible = False : 計算_dgv.Columns("比例4").Visible = False
202
+        For j As Integer = 2 To 16 : 計算1_dgv.Columns(j).Visible = False : 合計1_dgv.Columns(j).Visible = False : Next
203
+        合計1_dgv.Columns(1).DefaultCellStyle.Format = "#,##0"
204
+        計算1_dgv.Columns(1).DefaultCellStyle.Format = "#,##0" : 計算_dgv.Columns(3).DefaultCellStyle.Format = "#,##0"
205
+        計算_dgv.Columns(1).DefaultCellStyle.Format = "#,##0" : 計算_dgv.Columns(2).DefaultCellStyle.Format = "#,##0"
206
+        Dim formatColumns() As Integer = {4, 5, 6, 7, 8, 9, 10, 11, 12}
207
+        For Each colIndex As Integer In formatColumns : 計算_dgv.Columns(colIndex).DefaultCellStyle.Format = "#,##0" : Next
208
+        Dim alignmentColumns() As Integer = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16}
209
+        For Each colIndex As Integer In alignmentColumns
210
+            計算_dgv.Columns(colIndex).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
211
+            計算1_dgv.Columns(1).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
212
+            合計1_dgv.Columns(1).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
213
+            計算_dgv.Columns(colIndex).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
214
+            計算1_dgv.Columns(1).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
215
+            合計1_dgv.Columns(1).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
216
+        Next
217
+        '-------------------------合計DGV變形----------------------------------------------------------------------------------------------------------------------
218
+        If IsVerticalScrollBarVisible(計算1_dgv) Then : 合計1_dgv.Size = New Size(計算1_dgv.Size.Width - 17, 合計1_dgv.Size.Height)
219
+        Else : 合計1_dgv.Size = New Size(計算1_dgv.Size.Width, 合計1_dgv.Size.Height) : End If
220
+    End Sub
221
+    Private Function IsVerticalScrollBarVisible(dgv As DataGridView) As Boolean
222
+        Return dgv.FirstDisplayedScrollingRowIndex > 0 OrElse dgv.DisplayedRowCount(False) < dgv.Rows.Count
223
+    End Function
224
+    Private Sub Set_合約報表計算1()
225
+        Dim ds2, ds3 As New DataSet : 計算2_dgv.DataSource = Nothing : 合計2_dgv.DataSource = Nothing : ds2.Clear() : ds3.Clear()
226
+        計算2_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
227
+        計算2_dgv.ColumnHeadersHeight = 25 : 計算2_dgv.AllowUserToAddRows = False
228
+        合計2_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
229
+        合計2_dgv.ColumnHeadersHeight = 25 : 合計2_dgv.AllowUserToAddRows = False
230
+        合計2_dgv.ColumnHeadersVisible = False
231
+        合計2_dgv.ScrollBars = ScrollBars.None
232
+        Dim SSA(19) As String
233
+        Dim checkBoxes() As CheckBox = {A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20}
234
+        For i As Integer = 0 To SSA.Length - 1
235
+            If checkBoxes(i).Checked Then : SSA(i) = " 約號甲方 LIKE N'" & checkBoxes(i).Text & "'" : Else : SSA(i) = "" : End If
236
+        Next
237
+        If SSA.All(Function(s) String.IsNullOrEmpty(s)) Then : SQL2 = "" : Else
238
+            Dim selectedSSA = SSA.Where(Function(s) Not String.IsNullOrEmpty(s)).ToArray()
239
+            SQL2 = "AND (" & String.Join(" OR ", selectedSSA) & ")"
240
+        End If
241
+        SQL_合約報表計算1() : da.Fill(ds3) : SQL_合約報表計算2() : da.Fill(ds2)
242
+        計算2_dgv.DataSource = ds3.Tables(0) : 合計2_dgv.DataSource = ds2.Tables(0) : conn.Close()
243
+        For i As Integer = 0 To 計算2_dgv.Rows.Count - 1
244
+            計算2_dgv.Rows(i).Cells("比例1").Value = "0" : 計算2_dgv.Rows(i).Cells("比例2").Value = "0"
245
+            計算2_dgv.Rows(i).Cells("比例3").Value = "0" : 計算2_dgv.Rows(i).Cells("比例4").Value = "0"
246
+        Next
247
+        合計2_dgv.Rows(0).Cells("比例1").Value = "0" : 合計2_dgv.Rows(0).Cells("比例2").Value = "0"
248
+        合計2_dgv.Rows(0).Cells("比例3").Value = "0" : 合計2_dgv.Rows(0).Cells("比例4").Value = "0"
249
+        Set_進度條顯示1() : Set_進度條顯示2() : Set_進度條顯示3() : Set_進度條顯示4()
250
+        Set_進度條顯示5() : Set_進度條顯示6() : Set_進度條顯示7() : Set_進度條顯示8()
251
+        計算2_dgv.Columns(1).Visible = False
252
+        計算2_dgv.Columns(3).Visible = False : 計算2_dgv.Columns(4).Visible = False
253
+        計算2_dgv.Columns("比例1").Visible = False : 計算2_dgv.Columns("比例2").Visible = False
254
+        計算2_dgv.Columns("比例3").Visible = False : 計算2_dgv.Columns("比例4").Visible = False
255
+        計算2_dgv.Columns(2).DefaultCellStyle.Format = "#,##0"
256
+
257
+        合計2_dgv.Columns(1).Visible = False
258
+        合計2_dgv.Columns(3).Visible = False : 合計2_dgv.Columns(4).Visible = False
259
+        合計2_dgv.Columns("比例1").Visible = False : 合計2_dgv.Columns("比例2").Visible = False
260
+        合計2_dgv.Columns("比例3").Visible = False : 合計2_dgv.Columns("比例4").Visible = False
261
+        合計2_dgv.Columns(2).DefaultCellStyle.Format = "#,##0"
262
+
263
+        Dim formatColumns() As Integer = {1, 2, 3, 4, 5, 6, 9, 10, 13, 14, 17, 18}
264
+        For Each colIndex As Integer In formatColumns
265
+            計算2_dgv.Columns(colIndex).DefaultCellStyle.Format = "#,##0"
266
+            計算2_dgv.Columns(colIndex).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
267
+            計算2_dgv.Columns(colIndex).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
268
+
269
+            合計2_dgv.Columns(colIndex).DefaultCellStyle.Format = "#,##0"
270
+            合計2_dgv.Columns(colIndex).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
271
+            合計2_dgv.Columns(colIndex).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
272
+        Next
273
+        If 深色風格 = False Then
274
+            計算2_dgv.Columns(表頭(14)).DefaultCellStyle.ForeColor = Color.Red : 計算2_dgv.Columns(表頭(15)).DefaultCellStyle.ForeColor = Color.Red
275
+            計算2_dgv.Columns(表頭(16)).DefaultCellStyle.ForeColor = Color.Blue : 計算2_dgv.Columns(表頭(17)).DefaultCellStyle.ForeColor = Color.Blue
276
+            計算2_dgv.Columns(表頭(18)).DefaultCellStyle.ForeColor = Color.Green : 計算2_dgv.Columns(表頭(19)).DefaultCellStyle.ForeColor = Color.Green
277
+            計算2_dgv.Columns(表頭(20)).DefaultCellStyle.ForeColor = Color.Coral : 計算2_dgv.Columns(表頭(21)).DefaultCellStyle.ForeColor = Color.Coral
278
+
279
+            合計2_dgv.Columns("已請款").DefaultCellStyle.ForeColor = Color.Red : 合計2_dgv.Columns("未請款").DefaultCellStyle.ForeColor = Color.Red
280
+            合計2_dgv.Columns("已收款").DefaultCellStyle.ForeColor = Color.Blue : 合計2_dgv.Columns("已請未收款").DefaultCellStyle.ForeColor = Color.Blue
281
+            合計2_dgv.Columns("已請稅").DefaultCellStyle.ForeColor = Color.Green : 合計2_dgv.Columns("未請稅").DefaultCellStyle.ForeColor = Color.Green
282
+            合計2_dgv.Columns("已收稅").DefaultCellStyle.ForeColor = Color.Coral : 合計2_dgv.Columns("已請未收稅").DefaultCellStyle.ForeColor = Color.Coral
283
+        Else
284
+            計算2_dgv.Columns(表頭(14)).DefaultCellStyle.ForeColor = Color.LightPink : 計算2_dgv.Columns(表頭(15)).DefaultCellStyle.ForeColor = Color.LightPink
285
+            計算2_dgv.Columns(表頭(16)).DefaultCellStyle.ForeColor = Color.LightBlue : 計算2_dgv.Columns(表頭(17)).DefaultCellStyle.ForeColor = Color.LightBlue
286
+            計算2_dgv.Columns(表頭(18)).DefaultCellStyle.ForeColor = Color.LightGreen : 計算2_dgv.Columns(表頭(19)).DefaultCellStyle.ForeColor = Color.LightGreen
287
+            計算2_dgv.Columns(表頭(20)).DefaultCellStyle.ForeColor = Color.LightCoral : 計算2_dgv.Columns(表頭(21)).DefaultCellStyle.ForeColor = Color.LightCoral
288
+
289
+            合計2_dgv.Columns("已請款").DefaultCellStyle.ForeColor = Color.LightPink : 合計2_dgv.Columns("未請款").DefaultCellStyle.ForeColor = Color.LightPink
290
+            合計2_dgv.Columns("已收款").DefaultCellStyle.ForeColor = Color.LightBlue : 合計2_dgv.Columns("已請未收款").DefaultCellStyle.ForeColor = Color.LightBlue
291
+            合計2_dgv.Columns("已請稅").DefaultCellStyle.ForeColor = Color.LightGreen : 合計2_dgv.Columns("未請稅").DefaultCellStyle.ForeColor = Color.LightGreen
292
+            合計2_dgv.Columns("已收稅").DefaultCellStyle.ForeColor = Color.LightCoral : 合計2_dgv.Columns("已請未收稅").DefaultCellStyle.ForeColor = Color.LightCoral
293
+        End If
294
+        '-------------------------合計DGV變形----------------------------------------------------------------------------------------------------------------------
295
+        If IsVerticalScrollBarVisible(計算2_dgv) Then : 合計2_dgv.Size = New Size(計算2_dgv.Size.Width - 17, 合計2_dgv.Size.Height)
296
+        Else : 合計2_dgv.Size = New Size(計算2_dgv.Size.Width, 合計2_dgv.Size.Height) : End If
297
+    End Sub
298
+    Private Sub Set_合約報表計算2()
299
+        Dim ds2, ds3 As New DataSet : 計算3_dgv.DataSource = Nothing : ds3.Clear()
300
+        計算3_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
301
+        計算3_dgv.ColumnHeadersHeight = 25 : 計算3_dgv.AllowUserToAddRows = False
302
+        SQL_合約報表計算3() : da.Fill(ds3)
303
+        計算3_dgv.DataSource = ds3.Tables(0) : conn.Close()
304
+        For i As Integer = 0 To 計算3_dgv.Rows.Count - 1
305
+            計算3_dgv.Rows(i).Cells("比例1").Value = "0" : 計算3_dgv.Rows(i).Cells("比例2").Value = "0"
306
+            計算3_dgv.Rows(i).Cells("比例3").Value = "0" : 計算3_dgv.Rows(i).Cells("比例4").Value = "0"
307
+        Next
308
+        Set_進度條顯示9() : Set_進度條顯示10() : Set_進度條顯示11() : Set_進度條顯示12()
309
+
310
+        計算3_dgv.Columns(1).Visible = False
311
+        計算3_dgv.Columns(3).Visible = False : 計算3_dgv.Columns(4).Visible = False
312
+        計算3_dgv.Columns("比例1").Visible = False : 計算3_dgv.Columns("比例2").Visible = False
313
+        計算3_dgv.Columns("比例3").Visible = False : 計算3_dgv.Columns("比例4").Visible = False
314
+        計算3_dgv.Columns(2).DefaultCellStyle.Format = "#,##0"
315
+
316
+        Dim formatColumns() As Integer = {1, 2, 3, 4, 5, 6, 9, 10, 13, 14, 17, 18}
317
+        For Each colIndex As Integer In formatColumns
318
+            計算3_dgv.Columns(colIndex).DefaultCellStyle.Format = "#,##0"
319
+            計算3_dgv.Columns(colIndex).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
320
+            計算3_dgv.Columns(colIndex).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
321
+        Next
322
+        If 深色風格 = False Then
323
+            計算3_dgv.Columns(表頭(14)).DefaultCellStyle.ForeColor = Color.Red : 計算3_dgv.Columns(表頭(15)).DefaultCellStyle.ForeColor = Color.Red
324
+            計算3_dgv.Columns(表頭(16)).DefaultCellStyle.ForeColor = Color.Blue : 計算3_dgv.Columns(表頭(17)).DefaultCellStyle.ForeColor = Color.Blue
325
+            計算3_dgv.Columns(表頭(18)).DefaultCellStyle.ForeColor = Color.Green : 計算3_dgv.Columns(表頭(19)).DefaultCellStyle.ForeColor = Color.Green
326
+            計算3_dgv.Columns(表頭(20)).DefaultCellStyle.ForeColor = Color.Coral : 計算3_dgv.Columns(表頭(21)).DefaultCellStyle.ForeColor = Color.Coral
327
+        Else
328
+            計算3_dgv.Columns(表頭(14)).DefaultCellStyle.ForeColor = Color.LightPink : 計算3_dgv.Columns(表頭(15)).DefaultCellStyle.ForeColor = Color.LightPink
329
+            計算3_dgv.Columns(表頭(16)).DefaultCellStyle.ForeColor = Color.LightBlue : 計算3_dgv.Columns(表頭(17)).DefaultCellStyle.ForeColor = Color.LightBlue
330
+            計算3_dgv.Columns(表頭(18)).DefaultCellStyle.ForeColor = Color.LightGreen : 計算3_dgv.Columns(表頭(19)).DefaultCellStyle.ForeColor = Color.LightGreen
331
+            計算3_dgv.Columns(表頭(20)).DefaultCellStyle.ForeColor = Color.LightCoral : 計算3_dgv.Columns(表頭(21)).DefaultCellStyle.ForeColor = Color.LightCoral
332
+        End If
333
+        '---------------------------基本計算----------------------------------------------------------------------------------------------------------------------------------------------
334
+        For i As Integer = 0 To 計算3_dgv.Rows.Count - 1
335
+            計算3_dgv.Rows(i).Cells(表頭(14)).Value = "0" : 計算3_dgv.Rows(i).Cells(表頭(15)).Value = "0" : 計算3_dgv.Rows(i).Cells(表頭(18)).Value = "0"
336
+            計算3_dgv.Rows(i).Cells(表頭(19)).Value = "0" : 計算3_dgv.Rows(i).Cells(表頭(16)).Value = "0" : 計算3_dgv.Rows(i).Cells(表頭(17)).Value = "0"
337
+            計算3_dgv.Rows(i).Cells(表頭(20)).Value = "0" : 計算3_dgv.Rows(i).Cells(表頭(21)).Value = "0"
338
+            For ii As Integer = 0 To 彙總_dgv.Rows.Count - 1
339
+                If 計算3_dgv.Rows(i).Cells(0).Value.ToString = 彙總_dgv.Rows(ii).Cells(0).Value.ToString Then
340
+                    計算3_dgv.Rows(i).Cells("工程總價").Value = CLng(彙總_dgv.Rows(ii).Cells("工程總價").Value.ToString)
341
+                    計算3_dgv.Rows(i).Cells("總報價").Value = CLng(彙總_dgv.Rows(ii).Cells("總報價").Value.ToString)
342
+                End If
343
+            Next
344
+            計算3_dgv.Rows(i).Cells("稅金").Value = CLng(計算3_dgv.Rows(i).Cells("工程總價").Value.ToString) - CLng(計算3_dgv.Rows(i).Cells("總報價").Value.ToString)
345
+
346
+            For ii As Integer = 0 To 請款清單_dgv.Rows.Count - 1
347
+                If 計算3_dgv.Rows(i).Cells(0).Value.ToString = 請款清單_dgv.Rows(ii).Cells(0).Value.ToString Then
348
+                    計算3_dgv.Rows(i).Cells(表頭(14)).Value = CLng(計算3_dgv.Rows(i).Cells(表頭(14)).Value.ToString) + CLng(請款清單_dgv.Rows(ii).Cells("請款金額").Value.ToString)
349
+                    計算3_dgv.Rows(i).Cells(表頭(18)).Value = CLng(計算3_dgv.Rows(i).Cells(表頭(18)).Value.ToString) + CLng(請款清單_dgv.Rows(ii).Cells("稅額").Value.ToString)
350
+                End If
351
+                If 計算3_dgv.Rows(i).Cells(0).Value.ToString = 請款清單_dgv.Rows(ii).Cells(0).Value.ToString And 請款清單_dgv.Rows(ii).Cells("本收").Value = True Then
352
+                    計算3_dgv.Rows(i).Cells(表頭(16)).Value = CLng(計算3_dgv.Rows(i).Cells(表頭(16)).Value.ToString) + CLng(請款清單_dgv.Rows(ii).Cells("請款金額").Value.ToString)
353
+                End If
354
+                If 計算3_dgv.Rows(i).Cells(0).Value.ToString = 請款清單_dgv.Rows(ii).Cells(0).Value.ToString And 請款清單_dgv.Rows(ii).Cells("稅收").Value = True Then
355
+                    計算3_dgv.Rows(i).Cells(表頭(20)).Value = CLng(計算3_dgv.Rows(i).Cells(表頭(20)).Value.ToString) + CLng(請款清單_dgv.Rows(ii).Cells("稅額").Value.ToString)
356
+                End If
357
+            Next
358
+            計算3_dgv.Rows(i).Cells(表頭(15)).Value = CLng(計算3_dgv.Rows(i).Cells("總報價").Value) - (計算3_dgv.Rows(i).Cells(表頭(14)).Value)
359
+            計算3_dgv.Rows(i).Cells(表頭(19)).Value = CLng(計算3_dgv.Rows(i).Cells("稅金").Value) - (計算3_dgv.Rows(i).Cells(表頭(18)).Value)
360
+            計算3_dgv.Rows(i).Cells(表頭(17)).Value = CLng(計算3_dgv.Rows(i).Cells(表頭(14)).Value) - (計算3_dgv.Rows(i).Cells(表頭(16)).Value)
361
+            計算3_dgv.Rows(i).Cells(表頭(21)).Value = CLng(計算3_dgv.Rows(i).Cells(表頭(18)).Value) - (計算3_dgv.Rows(i).Cells(表頭(20)).Value)
362
+            If CLng(計算3_dgv.Rows(i).Cells(表頭(15)).Value) < 0 Then : 計算3_dgv.Rows(i).Cells(表頭(15)).Value = "0" : End If
363
+            If CLng(計算3_dgv.Rows(i).Cells(表頭(19)).Value) < 0 Then : 計算3_dgv.Rows(i).Cells(表頭(19)).Value = "0" : End If
364
+            If CLng(計算3_dgv.Rows(i).Cells("總報價").Value.ToString) = 0 Then : 計算3_dgv.Rows(i).Cells("比例1").Value = "0" : Else
365
+                計算3_dgv.Rows(i).Cells("比例1").Value = CLng(計算3_dgv.Rows(i).Cells(表頭(14)).Value.ToString) / CLng(計算3_dgv.Rows(i).Cells("總報價").Value.ToString) * 100
366
+                If CLng(計算3_dgv.Rows(i).Cells("比例1").Value) > 100 Then : 計算3_dgv.Rows(i).Cells("比例1").Value = "100" : End If
367
+            End If
368
+            If CLng(計算3_dgv.Rows(i).Cells(表頭(14)).Value.ToString) = 0 Then : 計算3_dgv.Rows(i).Cells("比例2").Value = "0" : Else
369
+                計算3_dgv.Rows(i).Cells("比例2").Value = CLng(計算3_dgv.Rows(i).Cells(表頭(16)).Value.ToString) / CLng(計算3_dgv.Rows(i).Cells(表頭(14)).Value.ToString) * 100
370
+                If CLng(計算3_dgv.Rows(i).Cells("比例2").Value) > 100 Then : 計算3_dgv.Rows(i).Cells("比例2").Value = "100" : End If
371
+            End If
372
+            If CLng(計算3_dgv.Rows(i).Cells("稅金").Value.ToString) = 0 Then : 計算3_dgv.Rows(i).Cells("比例3").Value = "0" : Else
373
+                計算3_dgv.Rows(i).Cells("比例3").Value = CLng(計算3_dgv.Rows(i).Cells(表頭(18)).Value.ToString) / CLng(計算3_dgv.Rows(i).Cells("稅金").Value.ToString) * 100
374
+                If CLng(計算3_dgv.Rows(i).Cells("比例3").Value) > 100 Then : 計算3_dgv.Rows(i).Cells("比例3").Value = "100" : End If
375
+            End If
376
+            If CLng(計算3_dgv.Rows(i).Cells(表頭(18)).Value.ToString) = 0 Then : 計算3_dgv.Rows(i).Cells("比例4").Value = "0" : Else
377
+                計算3_dgv.Rows(i).Cells("比例4").Value = CLng(計算3_dgv.Rows(i).Cells(表頭(20)).Value.ToString) / CLng(計算3_dgv.Rows(i).Cells(表頭(18)).Value.ToString) * 100
378
+                If CLng(計算3_dgv.Rows(i).Cells("比例4").Value) > 100 Then : 計算3_dgv.Rows(i).Cells("比例4").Value = "100" : End If
379
+            End If : RadTrackBar1.Maximum = 計算3_dgv.Rows.Count : RadTrackBar1.Value = 1
380
+            If 計算3_dgv.Rows.Count > 10 Then : RadTrackBar1.Visible = True : Else : RadTrackBar1.Visible = False : End If
381
+        Next
382
+        '-------------------------合計DGV變形----------------------------------------------------------------------------------------------------------------------
383
+        If IsVerticalScrollBarVisible(計算3_dgv) Then : 合計2_dgv.Size = New Size(計算3_dgv.Size.Width - 17, 合計2_dgv.Size.Height)
384
+        Else : 合計2_dgv.Size = New Size(計算3_dgv.Size.Width, 合計2_dgv.Size.Height) : End If
385
+    End Sub
386
+    Private Sub Set_進度條顯示1()
387
+        Dim Col As New DataGridViewProgressColumn With {
388
+            .Width = 30,
389
+            .DataPropertyName = "請款比例"
390
+        }
391
+        Col.HeaderText = "Percent (%)" : Col.Name = "容量" : Col.DataPropertyName = "比例1" : 計算2_dgv.Columns.Insert(8, Col)
392
+    End Sub
393
+    Private Sub Set_進度條顯示2()
394
+        Dim Col As New DataGridViewProgressColumn With {
395
+            .Width = 30,
396
+            .DataPropertyName = "請款比例"
397
+        }
398
+        Col.HeaderText = "Percent (%)" : Col.Name = "容量" : Col.DataPropertyName = "比例2" : 計算2_dgv.Columns.Insert(12, Col)
399
+    End Sub
400
+    Private Sub Set_進度條顯示3()
401
+        Dim Col As New DataGridViewProgressColumn With {
402
+            .Width = 30,
403
+            .DataPropertyName = "請款比例"
404
+        }
405
+        Col.HeaderText = "Percent (%)" : Col.Name = "容量" : Col.DataPropertyName = "比例3" : 計算2_dgv.Columns.Insert(16, Col)
406
+    End Sub
407
+    Private Sub Set_進度條顯示4()
408
+        Dim Col As New DataGridViewProgressColumn With {
409
+            .Width = 30,
410
+            .DataPropertyName = "請款比例"
411
+        }
412
+        Col.HeaderText = "Percent (%)" : Col.Name = "容量" : Col.DataPropertyName = "比例4" : 計算2_dgv.Columns.Insert(20, Col)
413
+    End Sub
414
+    Private Sub Set_進度條顯示5()
415
+        Dim Col As New DataGridViewProgressColumn With {
416
+            .Width = 30,
417
+            .DataPropertyName = "請款比例"
418
+        }
419
+        Col.HeaderText = "Percent (%)" : Col.Name = "容量" : Col.DataPropertyName = "比例1" : 合計2_dgv.Columns.Insert(8, Col)
420
+    End Sub
421
+    Private Sub Set_進度條顯示6()
422
+        Dim Col As New DataGridViewProgressColumn With {
423
+            .Width = 30,
424
+            .DataPropertyName = "請款比例"
425
+        }
426
+        Col.HeaderText = "Percent (%)" : Col.Name = "容量" : Col.DataPropertyName = "比例2" : 合計2_dgv.Columns.Insert(12, Col)
427
+    End Sub
428
+    Private Sub Set_進度條顯示7()
429
+        Dim Col As New DataGridViewProgressColumn With {
430
+            .Width = 30,
431
+            .DataPropertyName = "請款比例"
432
+        }
433
+        Col.HeaderText = "Percent (%)" : Col.Name = "容量" : Col.DataPropertyName = "比例3" : 合計2_dgv.Columns.Insert(16, Col)
434
+    End Sub
435
+    Private Sub Set_進度條顯示8()
436
+        Dim Col As New DataGridViewProgressColumn With {
437
+            .Width = 30,
438
+            .DataPropertyName = "請款比例"
439
+        }
440
+        Col.HeaderText = "Percent (%)" : Col.Name = "容量" : Col.DataPropertyName = "比例4" : 合計2_dgv.Columns.Insert(20, Col)
441
+    End Sub
442
+    Private Sub Set_進度條顯示9()
443
+        Dim Col As New DataGridViewProgressColumn With {
444
+            .Width = 30,
445
+            .DataPropertyName = "請款比例"
446
+        }
447
+        Col.HeaderText = "Percent (%)" : Col.Name = "容量" : Col.DataPropertyName = "比例1" : 計算3_dgv.Columns.Insert(8, Col)
448
+    End Sub
449
+    Private Sub Set_進度條顯示10()
450
+        Dim Col As New DataGridViewProgressColumn With {
451
+            .Width = 30,
452
+            .DataPropertyName = "請款比例"
453
+        }
454
+        Col.HeaderText = "Percent (%)" : Col.Name = "容量" : Col.DataPropertyName = "比例2" : 計算3_dgv.Columns.Insert(12, Col)
455
+    End Sub
456
+    Private Sub Set_進度條顯示11()
457
+        Dim Col As New DataGridViewProgressColumn With {
458
+            .Width = 30,
459
+            .DataPropertyName = "請款比例"
460
+        }
461
+        Col.HeaderText = "Percent (%)" : Col.Name = "容量" : Col.DataPropertyName = "比例3" : 計算3_dgv.Columns.Insert(16, Col)
462
+    End Sub
463
+    Private Sub Set_進度條顯示12()
464
+        Dim Col As New DataGridViewProgressColumn With {
465
+            .Width = 30,
466
+            .DataPropertyName = "請款比例"
467
+        }
468
+        Col.HeaderText = "Percent (%)" : Col.Name = "容量" : Col.DataPropertyName = "比例4" : 計算3_dgv.Columns.Insert(20, Col)
469
+    End Sub
470
+    Private Sub 彙總()
471
+        Chart3.Series.Clear() : Chart1.ChartAreas.Clear() : Chart1.ChartAreas.Add(0)
472
+        Chart3.Series.Add(表頭(12)) : Chart3.Series(表頭(12)).ChartType = SeriesChartType.Pie
473
+        Chart3.Series(表頭(12)).IsValueShownAsLabel = True : Chart3.Series(表頭(12)).IsVisibleInLegend = True : Chart3.Series(表頭(12)).IsXValueIndexed = True
474
+        Chart3.ChartAreas(0).BackColor = Color.Transparent : Chart3.Legends(0).BackColor = Color.Transparent
475
+        For i As Integer = 0 To 計算1_dgv.Rows.Count - 1
476
+            Chart3.Series(表頭(12)).Points.AddXY(計算1_dgv.Rows(i).Cells(0).Value.ToString, Format(計算1_dgv.Rows(i).Cells(表頭(12)).Value, "#,##0"))
477
+        Next
478
+
479
+        Chart1.Series.Clear()
480
+        If 選款項 = True Then
481
+            If B1.Checked = True Then : Chart1.Series.Add(表頭(14)) : Chart1.Series(表頭(14)).ChartType = SeriesChartType.Column : End If
482
+            If B2.Checked = True Then : Chart1.Series.Add(表頭(15)) : Chart1.Series(表頭(15)).ChartType = SeriesChartType.Column : End If
483
+            If B3.Checked = True Then : Chart1.Series.Add(表頭(16)) : Chart1.Series(表頭(16)).ChartType = SeriesChartType.Column : End If
484
+            If B4.Checked = True Then : Chart1.Series.Add(表頭(17)) : Chart1.Series(表頭(17)).ChartType = SeriesChartType.Column : End If
485
+        Else
486
+            If B1.Checked = True Then : Chart1.Series.Add(表頭(18)) : Chart1.Series(表頭(18)).ChartType = SeriesChartType.Column : End If
487
+            If B2.Checked = True Then : Chart1.Series.Add(表頭(19)) : Chart1.Series(表頭(19)).ChartType = SeriesChartType.Column : End If
488
+            If B3.Checked = True Then : Chart1.Series.Add(表頭(20)) : Chart1.Series(表頭(20)).ChartType = SeriesChartType.Column : End If
489
+            If B4.Checked = True Then : Chart1.Series.Add(表頭(21)) : Chart1.Series(表頭(21)).ChartType = SeriesChartType.Column : End If
490
+        End If
491
+        Chart1.ChartAreas(0).BackColor = Color.Transparent : Chart1.Legends(0).BackColor = Color.Transparent
492
+        Chart1.ChartAreas(0).AxisY.LabelStyle.Font = New Font("Arial", 8) : Chart1.ChartAreas(0).AxisY.LabelStyle.Format = "#,##0" & " M"
493
+        For i As Integer = 0 To 計算2_dgv.Rows.Count - 1
494
+            If 選款項 = True Then
495
+                If B1.Checked = True Then : Chart1.Series(表頭(14)).Points.AddXY(計算2_dgv.Rows(i).Cells(0).Value.ToString, CLng(計算2_dgv.Rows(i).Cells(表頭(14)).Value.ToString) / 1000000) : End If
496
+                If B2.Checked = True Then : Chart1.Series(表頭(15)).Points.AddXY(計算2_dgv.Rows(i).Cells(0).Value.ToString, CLng(計算2_dgv.Rows(i).Cells(表頭(15)).Value.ToString) / 1000000) : End If
497
+                If B3.Checked = True Then : Chart1.Series(表頭(16)).Points.AddXY(計算2_dgv.Rows(i).Cells(0).Value.ToString, CLng(計算2_dgv.Rows(i).Cells(表頭(16)).Value.ToString) / 1000000) : End If
498
+                If B4.Checked = True Then : Chart1.Series(表頭(17)).Points.AddXY(計算2_dgv.Rows(i).Cells(0).Value.ToString, CLng(計算2_dgv.Rows(i).Cells(表頭(17)).Value.ToString) / 1000000) : End If
499
+            Else
500
+                If B1.Checked = True Then : Chart1.Series(表頭(18)).Points.AddXY(計算2_dgv.Rows(i).Cells(0).Value.ToString, CLng(計算2_dgv.Rows(i).Cells(表頭(18)).Value.ToString) / 1000000) : End If
501
+                If B2.Checked = True Then : Chart1.Series(表頭(19)).Points.AddXY(計算2_dgv.Rows(i).Cells(0).Value.ToString, CLng(計算2_dgv.Rows(i).Cells(表頭(19)).Value.ToString) / 1000000) : End If
502
+                If B3.Checked = True Then : Chart1.Series(表頭(20)).Points.AddXY(計算2_dgv.Rows(i).Cells(0).Value.ToString, CLng(計算2_dgv.Rows(i).Cells(表頭(20)).Value.ToString) / 1000000) : End If
503
+                If B4.Checked = True Then : Chart1.Series(表頭(21)).Points.AddXY(計算2_dgv.Rows(i).Cells(0).Value.ToString, CLng(計算2_dgv.Rows(i).Cells(表頭(21)).Value.ToString) / 1000000) : End If
504
+            End If
505
+        Next
506
+
507
+        If 深色風格 = False Then
508
+            Chart3.Series(表頭(12)).LabelForeColor = Color.Blue
509
+            If 選款項 = True Then
510
+                If B1.Checked = True Then : Chart1.Series(表頭(14)).LabelForeColor = Color.Blue : End If
511
+                If B2.Checked = True Then : Chart1.Series(表頭(15)).LabelForeColor = Color.Blue : End If
512
+                If B3.Checked = True Then : Chart1.Series(表頭(16)).LabelForeColor = Color.Blue : End If
513
+                If B4.Checked = True Then : Chart1.Series(表頭(17)).LabelForeColor = Color.Blue : End If
514
+            Else
515
+                If B1.Checked = True Then : Chart1.Series(表頭(18)).LabelForeColor = Color.Blue : End If
516
+                If B2.Checked = True Then : Chart1.Series(表頭(19)).LabelForeColor = Color.Blue : End If
517
+                If B3.Checked = True Then : Chart1.Series(表頭(20)).LabelForeColor = Color.Blue : End If
518
+                If B4.Checked = True Then : Chart1.Series(表頭(21)).LabelForeColor = Color.Blue : End If
519
+            End If
520
+            Chart3.Legends(0).ForeColor = Color.Black : Chart1.Legends(0).ForeColor = Color.Black
521
+            Chart1.ChartAreas(0).AxisX.MajorGrid.LineColor = Color.Black : Chart1.ChartAreas(0).AxisY.MajorGrid.LineColor = Color.Black
522
+            Chart1.ChartAreas(0).AxisX.LineColor = Color.Black : Chart1.ChartAreas(0).AxisY.LineColor = Color.Black
523
+            Chart1.ChartAreas(0).AxisX.LabelStyle.ForeColor = Color.Black : Chart1.ChartAreas(0).AxisY.LabelStyle.ForeColor = Color.Black
524
+        Else
525
+            Chart3.Series(表頭(12)).LabelForeColor = Color.White
526
+            If 選款項 = True Then
527
+                If B1.Checked = True Then : Chart1.Series(表頭(14)).LabelForeColor = Color.White : End If
528
+                If B2.Checked = True Then : Chart1.Series(表頭(15)).LabelForeColor = Color.White : End If
529
+                If B3.Checked = True Then : Chart1.Series(表頭(16)).LabelForeColor = Color.White : End If
530
+                If B4.Checked = True Then : Chart1.Series(表頭(17)).LabelForeColor = Color.White : End If
531
+            Else
532
+                If B1.Checked = True Then : Chart1.Series(表頭(18)).LabelForeColor = Color.White : End If
533
+                If B2.Checked = True Then : Chart1.Series(表頭(19)).LabelForeColor = Color.White : End If
534
+                If B3.Checked = True Then : Chart1.Series(表頭(20)).LabelForeColor = Color.White : End If
535
+                If B4.Checked = True Then : Chart1.Series(表頭(21)).LabelForeColor = Color.White : End If
536
+            End If
537
+            Chart3.Legends(0).ForeColor = Color.White : Chart1.Legends(0).ForeColor = Color.White
538
+            Chart1.ChartAreas(0).AxisX.MajorGrid.LineColor = Color.White : Chart1.ChartAreas(0).AxisY.MajorGrid.LineColor = Color.White
539
+            Chart1.ChartAreas(0).AxisX.LineColor = Color.White : Chart1.ChartAreas(0).AxisY.LineColor = Color.White
540
+            Chart1.ChartAreas(0).AxisX.LabelStyle.ForeColor = Color.White : Chart1.ChartAreas(0).AxisY.LabelStyle.ForeColor = Color.White
541
+        End If
542
+    End Sub
543
+    Private Sub RadTrackBar1_ValueChanged(sender As Object, e As EventArgs) Handles RadTrackBar1.RangeValueChanged
544
+        If 首次開啟 = True Then : Else
545
+            If RadTrackBar1.Maximum >= 10 Then : If RadTrackBar1.Value > RadTrackBar1.Maximum - 9 Then : RadTrackBar1.Value = RadTrackBar1.Maximum - 9 : End If : 彙總1() : Else : 彙總1() : End If
546
+        End If
547
+    End Sub
548
+    Private Sub 彙總1()
549
+        Chart1.Series.Clear() : Chart1.ChartAreas.Clear() : Chart1.ChartAreas.Add(0)
550
+        If 選款項 = True Then
551
+            If B1.Checked = True Then : Chart1.Series.Add(表頭(14)) : Chart1.Series(表頭(14)).ChartType = SeriesChartType.Column : End If
552
+            If B2.Checked = True Then : Chart1.Series.Add(表頭(15)) : Chart1.Series(表頭(15)).ChartType = SeriesChartType.Column : End If
553
+            If B3.Checked = True Then : Chart1.Series.Add(表頭(16)) : Chart1.Series(表頭(16)).ChartType = SeriesChartType.Column : End If
554
+            If B4.Checked = True Then : Chart1.Series.Add(表頭(17)) : Chart1.Series(表頭(17)).ChartType = SeriesChartType.Column : End If
555
+        Else
556
+            If B1.Checked = True Then : Chart1.Series.Add(表頭(18)) : Chart1.Series(表頭(18)).ChartType = SeriesChartType.Column : End If
557
+            If B2.Checked = True Then : Chart1.Series.Add(表頭(19)) : Chart1.Series(表頭(19)).ChartType = SeriesChartType.Column : End If
558
+            If B3.Checked = True Then : Chart1.Series.Add(表頭(20)) : Chart1.Series(表頭(20)).ChartType = SeriesChartType.Column : End If
559
+            If B4.Checked = True Then : Chart1.Series.Add(表頭(21)) : Chart1.Series(表頭(21)).ChartType = SeriesChartType.Column : End If
560
+        End If
561
+        Chart1.ChartAreas(0).BackColor = Color.Transparent : Chart1.Legends(0).BackColor = Color.Transparent
562
+        Chart1.ChartAreas(0).AxisY.LabelStyle.Font = New Font("Arial", 8) : Chart1.ChartAreas(0).AxisY.LabelStyle.Format = "#,##0" & " M"
563
+
564
+        Dim 位置1, 位置2 As Integer
565
+        If RadTrackBar1.Maximum <= 10 Then : 位置1 = 1 : 位置2 = RadTrackBar1.Maximum
566
+        Else : 位置1 = RadTrackBar1.Value : 位置2 = RadTrackBar1.Value + 9 : End If
567
+        For i As Integer = 位置1 - 1 To 位置2 - 1
568
+            If 選款項 = True Then
569
+                If B1.Checked = True Then : Chart1.Series(表頭(14)).Points.AddXY(計算3_dgv.Rows(i).Cells(0).Value.ToString, CLng(計算3_dgv.Rows(i).Cells(表頭(14)).Value.ToString) / 1000000) : End If
570
+                If B2.Checked = True Then : Chart1.Series(表頭(15)).Points.AddXY(計算3_dgv.Rows(i).Cells(0).Value.ToString, CLng(計算3_dgv.Rows(i).Cells(表頭(15)).Value.ToString) / 1000000) : End If
571
+                If B3.Checked = True Then : Chart1.Series(表頭(16)).Points.AddXY(計算3_dgv.Rows(i).Cells(0).Value.ToString, CLng(計算3_dgv.Rows(i).Cells(表頭(16)).Value.ToString) / 1000000) : End If
572
+                If B4.Checked = True Then : Chart1.Series(表頭(17)).Points.AddXY(計算3_dgv.Rows(i).Cells(0).Value.ToString, CLng(計算3_dgv.Rows(i).Cells(表頭(17)).Value.ToString) / 1000000) : End If
573
+            Else
574
+                If B1.Checked = True Then : Chart1.Series(表頭(18)).Points.AddXY(計算3_dgv.Rows(i).Cells(0).Value.ToString, CLng(計算3_dgv.Rows(i).Cells(表頭(18)).Value.ToString) / 1000000) : End If
575
+                If B2.Checked = True Then : Chart1.Series(表頭(19)).Points.AddXY(計算3_dgv.Rows(i).Cells(0).Value.ToString, CLng(計算3_dgv.Rows(i).Cells(表頭(19)).Value.ToString) / 1000000) : End If
576
+                If B3.Checked = True Then : Chart1.Series(表頭(20)).Points.AddXY(計算3_dgv.Rows(i).Cells(0).Value.ToString, CLng(計算3_dgv.Rows(i).Cells(表頭(20)).Value.ToString) / 1000000) : End If
577
+                If B4.Checked = True Then : Chart1.Series(表頭(21)).Points.AddXY(計算3_dgv.Rows(i).Cells(0).Value.ToString, CLng(計算3_dgv.Rows(i).Cells(表頭(21)).Value.ToString) / 1000000) : End If
578
+            End If
579
+        Next
580
+
581
+        If 深色風格 = False Then
582
+            Chart3.Series(表頭(12)).LabelForeColor = Color.Blue
583
+            If 選款項 = True Then
584
+                If B1.Checked = True Then : Chart1.Series(表頭(14)).LabelForeColor = Color.Blue : End If
585
+                If B2.Checked = True Then : Chart1.Series(表頭(15)).LabelForeColor = Color.Blue : End If
586
+                If B3.Checked = True Then : Chart1.Series(表頭(16)).LabelForeColor = Color.Blue : End If
587
+                If B4.Checked = True Then : Chart1.Series(表頭(17)).LabelForeColor = Color.Blue : End If
588
+            Else
589
+                If B1.Checked = True Then : Chart1.Series(表頭(18)).LabelForeColor = Color.Blue : End If
590
+                If B2.Checked = True Then : Chart1.Series(表頭(19)).LabelForeColor = Color.Blue : End If
591
+                If B3.Checked = True Then : Chart1.Series(表頭(20)).LabelForeColor = Color.Blue : End If
592
+                If B4.Checked = True Then : Chart1.Series(表頭(21)).LabelForeColor = Color.Blue : End If
593
+            End If
594
+            Chart3.Legends(0).ForeColor = Color.Black : Chart1.Legends(0).ForeColor = Color.Black
595
+            Chart1.ChartAreas(0).AxisX.MajorGrid.LineColor = Color.Black : Chart1.ChartAreas(0).AxisY.MajorGrid.LineColor = Color.Black
596
+            Chart1.ChartAreas(0).AxisX.LineColor = Color.Black : Chart1.ChartAreas(0).AxisY.LineColor = Color.Black
597
+            Chart1.ChartAreas(0).AxisX.LabelStyle.ForeColor = Color.Black : Chart1.ChartAreas(0).AxisY.LabelStyle.ForeColor = Color.Black
598
+        Else
599
+            Chart3.Series(表頭(12)).LabelForeColor = Color.White
600
+            If 選款項 = True Then
601
+                If B1.Checked = True Then : Chart1.Series(表頭(14)).LabelForeColor = Color.White : End If
602
+                If B2.Checked = True Then : Chart1.Series(表頭(15)).LabelForeColor = Color.White : End If
603
+                If B3.Checked = True Then : Chart1.Series(表頭(16)).LabelForeColor = Color.White : End If
604
+                If B4.Checked = True Then : Chart1.Series(表頭(17)).LabelForeColor = Color.White : End If
605
+            Else
606
+                If B1.Checked = True Then : Chart1.Series(表頭(18)).LabelForeColor = Color.White : End If
607
+                If B2.Checked = True Then : Chart1.Series(表頭(19)).LabelForeColor = Color.White : End If
608
+                If B3.Checked = True Then : Chart1.Series(表頭(20)).LabelForeColor = Color.White : End If
609
+                If B4.Checked = True Then : Chart1.Series(表頭(21)).LabelForeColor = Color.White : End If
610
+            End If
611
+            Chart3.Legends(0).ForeColor = Color.White : Chart1.Legends(0).ForeColor = Color.White
612
+            Chart1.ChartAreas(0).AxisX.MajorGrid.LineColor = Color.White : Chart1.ChartAreas(0).AxisY.MajorGrid.LineColor = Color.White
613
+            Chart1.ChartAreas(0).AxisX.LineColor = Color.White : Chart1.ChartAreas(0).AxisY.LineColor = Color.White
614
+            Chart1.ChartAreas(0).AxisX.LabelStyle.ForeColor = Color.White : Chart1.ChartAreas(0).AxisY.LabelStyle.ForeColor = Color.White
615
+        End If
616
+    End Sub
617
+    Private Sub 收款狀態報表_Load(sender As Object, e As EventArgs) Handles MyBase.Load
618
+        HX_PGS_ERP_SYS.WindowState = 2 : Me.MdiParent = HX_PGS_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True : 首次開啟 = True
619
+        HX_PGS_ERP_SYS.MaximizeBox = False : HX_PGS_ERP_SYS.MinimizeBox = False
620
+        分母 = 100 : 分段1 = 0.35 : 分段2 = 0.34 : 分段3 = 0.65 : 分段4 = 0.64 : 進度條後墜 = " %"
621
+        風格() : H(310) = True : 介面 = "H310" : 語言轉換讀取() : 顯示說明(999, False)
622
+        Panel1.SendToBack() : Panel2.BringToFront() : Panel4.BringToFront() : 計算2_dgv.Visible = True : 計算3_dgv.Visible = False
623
+        RadTrackBar1.Visible = False
624
+        If 登入人級別 = "00" Then
625
+            縮放2_bt.Visible = True : 清單_bt.Visible = True : 圖表_bt.Visible = True
626
+        Else
627
+            縮放2_bt.Visible = False : 清單_bt.Visible = False : 圖表_bt.Visible = False
628
+        End If
629
+        MyMod.清單字體大小調整()
630
+        合計1_dgv.RowsDefaultCellStyle.Font = New System.Drawing.Font("微軟正黑體", HX_PGS_ERP_SYS.字體_NUD.Value)
631
+        合計2_dgv.RowsDefaultCellStyle.Font = New System.Drawing.Font("微軟正黑體", HX_PGS_ERP_SYS.字體_NUD.Value)
632
+        計算3_dgv.RowsDefaultCellStyle.Font = New System.Drawing.Font("微軟正黑體", HX_PGS_ERP_SYS.字體_NUD.Value)
633
+        計算2_dgv.RowsDefaultCellStyle.Font = New System.Drawing.Font("微軟正黑體", HX_PGS_ERP_SYS.字體_NUD.Value)
634
+        計算1_dgv.RowsDefaultCellStyle.Font = New System.Drawing.Font("微軟正黑體", HX_PGS_ERP_SYS.字體_NUD.Value)
635
+        計算_dgv.RowsDefaultCellStyle.Font = New System.Drawing.Font("微軟正黑體", HX_PGS_ERP_SYS.字體_NUD.Value)
636
+        甲方_dgv.RowsDefaultCellStyle.Font = New System.Drawing.Font("微軟正黑體", HX_PGS_ERP_SYS.字體_NUD.Value)
637
+        彙總_dgv.RowsDefaultCellStyle.Font = New System.Drawing.Font("微軟正黑體", HX_PGS_ERP_SYS.字體_NUD.Value)
638
+        請款清單_dgv.RowsDefaultCellStyle.Font = New System.Drawing.Font("微軟正黑體", HX_PGS_ERP_SYS.字體_NUD.Value)
639
+    End Sub
640
+    Private Sub 收款狀態報表_Shown(sender As Object, e As EventArgs) Handles MyBase.Shown
641
+        Set_合約甲方() : 選款項 = True : Set_合約清單() : 首次開啟 = False
642
+    End Sub
643
+    Private Sub 收款確認表_Closed(sender As Object, e As EventArgs) Handles MyBase.Closed
644
+        HX_PGS_ERP_SYS.WindowState = 0 : HX_PGS_ERP_SYS.MaximizeBox = True : HX_PGS_ERP_SYS.MinimizeBox = True
645
+        HX_PGS_ERP_SYS.WindowState = 0 : H(310) = False : MyMod.虛擬桌面開啟()
646
+    End Sub
647
+    Private Sub 系統說明_bt_Click(sender As Object, e As EventArgs) Handles 系統說明_bt.Click
648
+        介面 = "H310"
649
+    End Sub
650
+    Private Sub 語轉扭_bt_Click(sender As Object, e As EventArgs) Handles 語轉扭_bt.Click
651
+        H(310) = True : 介面 = "H310" : 語言轉換讀取()
652
+    End Sub
653
+    Private Sub 登入閒置控制_MouseMove(sender As Object, e As EventArgs) Handles MyBase.MouseMove
654
+        timeNow = 0 : HX_PGS_ERP_SYS.Timer1.Enabled = False : HX_PGS_ERP_SYS.Timer1.Enabled = True
655
+    End Sub
656
+    Private Sub 登入閒置控制_KeyPress(sender As Object, e As EventArgs) Handles MyBase.KeyPress
657
+        timeNow = 0 : HX_PGS_ERP_SYS.Timer1.Enabled = False : HX_PGS_ERP_SYS.Timer1.Enabled = True
658
+    End Sub
659
+    Private Sub 彙總_dgv_CellFormatting(sender As Object, e As DataGridViewCellFormattingEventArgs) Handles 彙總_dgv.CellFormatting
660
+        If e.Value IsNot Nothing Then
661
+            If IsNumeric(Val(e.Value.ToString)) = True And Val(e.Value.ToString) < 0 Then
662
+                If 深色風格 = False Then : e.CellStyle.ForeColor = Color.Red : Else : e.CellStyle.ForeColor = Color.LightPink : End If
663
+            End If
664
+        End If
665
+    End Sub
666
+    Private Sub 計算2_dgv_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles 計算2_dgv.MouseUp
667
+        'If 清單_dgv.SelectedCells.Count = 1 Then : MsgBox(清單_dgv.SelectedCells(0).ColumnIndex & "  " & 清單_dgv.SelectedCells(0).RowIndex) : End If
668
+        If 計算2_dgv.SelectedCells.Count > 0 Then
669
+            If 計算2_dgv.SelectedCells(0).ColumnIndex = 0 Then
670
+                PA = 計算2_dgv.Rows(計算2_dgv.SelectedCells(0).RowIndex).Cells(0).Value.ToString : Set_合約報表計算2()
671
+                計算2_dgv.Visible = False : 計算3_dgv.Visible = True
672
+                合計2_dgv.Rows(0).Cells("工程總價").Value = CLng(計算2_dgv.Rows(計算2_dgv.SelectedCells(0).RowIndex).Cells(表頭(13)).Value.ToString)
673
+                合計2_dgv.Rows(0).Cells("總報價").Value = CLng(計算2_dgv.Rows(計算2_dgv.SelectedCells(0).RowIndex).Cells("總報價").Value.ToString)
674
+                合計2_dgv.Rows(0).Cells("稅金").Value = CLng(計算2_dgv.Rows(計算2_dgv.SelectedCells(0).RowIndex).Cells("稅金").Value.ToString)
675
+                合計2_dgv.Rows(0).Cells("已請款").Value = CLng(計算2_dgv.Rows(計算2_dgv.SelectedCells(0).RowIndex).Cells(表頭(14)).Value.ToString)
676
+                合計2_dgv.Rows(0).Cells("未請款").Value = CLng(計算2_dgv.Rows(計算2_dgv.SelectedCells(0).RowIndex).Cells(表頭(15)).Value.ToString)
677
+                合計2_dgv.Rows(0).Cells("已請稅").Value = CLng(計算2_dgv.Rows(計算2_dgv.SelectedCells(0).RowIndex).Cells(表頭(18)).Value.ToString)
678
+                合計2_dgv.Rows(0).Cells("未請稅").Value = CLng(計算2_dgv.Rows(計算2_dgv.SelectedCells(0).RowIndex).Cells(表頭(19)).Value.ToString)
679
+                合計2_dgv.Rows(0).Cells("已收款").Value = CLng(計算2_dgv.Rows(計算2_dgv.SelectedCells(0).RowIndex).Cells(表頭(16)).Value.ToString)
680
+                合計2_dgv.Rows(0).Cells("已請未收款").Value = CLng(計算2_dgv.Rows(計算2_dgv.SelectedCells(0).RowIndex).Cells(表頭(17)).Value.ToString)
681
+                合計2_dgv.Rows(0).Cells("已收稅").Value = CLng(計算2_dgv.Rows(計算2_dgv.SelectedCells(0).RowIndex).Cells(表頭(20)).Value.ToString)
682
+                合計2_dgv.Rows(0).Cells("已請未收稅").Value = CLng(計算2_dgv.Rows(計算2_dgv.SelectedCells(0).RowIndex).Cells(表頭(21)).Value.ToString)
683
+                合計2_dgv.Rows(0).Cells("比例1").Value = CLng(計算2_dgv.Rows(計算2_dgv.SelectedCells(0).RowIndex).Cells("比例1").Value.ToString)
684
+                合計2_dgv.Rows(0).Cells("比例2").Value = CLng(計算2_dgv.Rows(計算2_dgv.SelectedCells(0).RowIndex).Cells("比例2").Value.ToString)
685
+                合計2_dgv.Rows(0).Cells("比例3").Value = CLng(計算2_dgv.Rows(計算2_dgv.SelectedCells(0).RowIndex).Cells("比例3").Value.ToString)
686
+                合計2_dgv.Rows(0).Cells("比例4").Value = CLng(計算2_dgv.Rows(計算2_dgv.SelectedCells(0).RowIndex).Cells("比例4").Value.ToString)
687
+                彙總1()
688
+                A1.Enabled = False : A2.Enabled = False : A3.Enabled = False : A4.Enabled = False : A5.Enabled = False : A6.Enabled = False : A7.Enabled = False : A8.Enabled = False
689
+                A9.Enabled = False : A10.Enabled = False : A11.Enabled = False : A12.Enabled = False : A13.Enabled = False : A14.Enabled = False : A15.Enabled = False : A16.Enabled = False
690
+                A17.Enabled = False : A18.Enabled = False : A19.Enabled = False : A20.Enabled = False
691
+            End If
692
+        End If
693
+    End Sub
694
+    Private Sub 回首頁_bt_Click(sender As Object, e As EventArgs) Handles 回首頁_bt.Click
695
+        計算2_dgv.Visible = True : 計算3_dgv.Visible = False
696
+        合計2_dgv.Rows(0).Cells("工程總價").Value = "0" : 合計2_dgv.Rows(0).Cells("總報價").Value = "0"
697
+        合計2_dgv.Rows(0).Cells("稅金").Value = "0" : 合計2_dgv.Rows(0).Cells("已請款").Value = "0" : 合計2_dgv.Rows(0).Cells("未請款").Value = "0"
698
+        合計2_dgv.Rows(0).Cells("已請稅").Value = "0" : 合計2_dgv.Rows(0).Cells("未請稅").Value = "0" : 合計2_dgv.Rows(0).Cells("已收款").Value = "0"
699
+        合計2_dgv.Rows(0).Cells("已請未收款").Value = "0" : 合計2_dgv.Rows(0).Cells("已收稅").Value = "0" : 合計2_dgv.Rows(0).Cells("已請未收稅").Value = "0"
700
+        For i As Integer = 0 To 計算_dgv.Rows.Count - 1
701
+            合計2_dgv.Rows(0).Cells("工程總價").Value = CLng(合計2_dgv.Rows(0).Cells("工程總價").Value.ToString) + CLng(計算2_dgv.Rows(i).Cells(表頭(13)).Value.ToString)
702
+            合計2_dgv.Rows(0).Cells("總報價").Value = CLng(合計2_dgv.Rows(0).Cells("總報價").Value.ToString) + CLng(計算2_dgv.Rows(i).Cells("總報價").Value.ToString)
703
+            合計2_dgv.Rows(0).Cells("稅金").Value = CLng(合計2_dgv.Rows(0).Cells("稅金").Value.ToString) + CLng(計算2_dgv.Rows(i).Cells("稅金").Value.ToString)
704
+            合計2_dgv.Rows(0).Cells("已請款").Value = CLng(合計2_dgv.Rows(0).Cells("已請款").Value.ToString) + CLng(計算2_dgv.Rows(i).Cells(表頭(14)).Value.ToString)
705
+            合計2_dgv.Rows(0).Cells("未請款").Value = CLng(合計2_dgv.Rows(0).Cells("未請款").Value.ToString) + CLng(計算2_dgv.Rows(i).Cells(表頭(15)).Value.ToString)
706
+            合計2_dgv.Rows(0).Cells("已請稅").Value = CLng(合計2_dgv.Rows(0).Cells("已請稅").Value.ToString) + CLng(計算2_dgv.Rows(i).Cells(表頭(18)).Value.ToString)
707
+            合計2_dgv.Rows(0).Cells("未請稅").Value = CLng(合計2_dgv.Rows(0).Cells("未請稅").Value.ToString) + CLng(計算2_dgv.Rows(i).Cells(表頭(19)).Value.ToString)
708
+            合計2_dgv.Rows(0).Cells("已收款").Value = CLng(合計2_dgv.Rows(0).Cells("已收款").Value.ToString) + CLng(計算2_dgv.Rows(i).Cells(表頭(16)).Value.ToString)
709
+            合計2_dgv.Rows(0).Cells("已請未收款").Value = CLng(合計2_dgv.Rows(0).Cells("已請未收款").Value.ToString) + CLng(計算2_dgv.Rows(i).Cells(表頭(17)).Value.ToString)
710
+            合計2_dgv.Rows(0).Cells("已收稅").Value = CLng(合計2_dgv.Rows(0).Cells("已收稅").Value.ToString) + CLng(計算2_dgv.Rows(i).Cells(表頭(20)).Value.ToString)
711
+            合計2_dgv.Rows(0).Cells("已請未收稅").Value = CLng(合計2_dgv.Rows(0).Cells("已請未收稅").Value.ToString) + CLng(計算2_dgv.Rows(i).Cells(表頭(21)).Value.ToString)
712
+        Next
713
+        If CLng(合計2_dgv.Rows(0).Cells("總報價").Value.ToString) = 0 Then : 合計2_dgv.Rows(0).Cells("比例1").Value = "0" : Else
714
+            合計2_dgv.Rows(0).Cells("比例1").Value = CLng(合計2_dgv.Rows(0).Cells("已請款").Value.ToString) / CLng(合計2_dgv.Rows(0).Cells("總報價").Value.ToString) * 100
715
+            If CLng(合計2_dgv.Rows(0).Cells("比例1").Value) > 100 Then : 合計2_dgv.Rows(0).Cells("比例1").Value = "100" : End If
716
+        End If
717
+        If CLng(合計2_dgv.Rows(0).Cells("已請款").Value.ToString) = 0 Then : 合計2_dgv.Rows(0).Cells("比例2").Value = "0" : Else
718
+            合計2_dgv.Rows(0).Cells("比例2").Value = CLng(合計2_dgv.Rows(0).Cells("已收款").Value.ToString) / CLng(合計2_dgv.Rows(0).Cells("已請款").Value.ToString) * 100
719
+            If CLng(合計2_dgv.Rows(0).Cells("比例2").Value) > 100 Then : 合計2_dgv.Rows(0).Cells("比例2").Value = "100" : End If
720
+        End If
721
+        If CLng(合計2_dgv.Rows(0).Cells("稅金").Value.ToString) = 0 Then : 合計2_dgv.Rows(0).Cells("比例3").Value = "0" : Else
722
+            合計2_dgv.Rows(0).Cells("比例3").Value = CLng(合計2_dgv.Rows(0).Cells("已請稅").Value.ToString) / CLng(合計2_dgv.Rows(0).Cells("稅金").Value.ToString) * 100
723
+            If CLng(合計2_dgv.Rows(0).Cells("比例3").Value) > 100 Then : 合計2_dgv.Rows(0).Cells("比例3").Value = "100" : End If
724
+        End If
725
+        If CLng(合計2_dgv.Rows(0).Cells("已請稅").Value.ToString) = 0 Then : 合計2_dgv.Rows(0).Cells("比例4").Value = "0" : Else
726
+            合計2_dgv.Rows(0).Cells("比例4").Value = CLng(合計2_dgv.Rows(0).Cells("已收稅").Value.ToString) / CLng(合計2_dgv.Rows(0).Cells("已請稅").Value.ToString) * 100
727
+            If CLng(合計2_dgv.Rows(0).Cells("比例4").Value) > 100 Then : 合計2_dgv.Rows(0).Cells("比例4").Value = "100" : End If
728
+        End If : 彙總() : RadTrackBar1.Visible = False
729
+        A1.Enabled = True : A2.Enabled = True : A3.Enabled = True : A4.Enabled = True : A5.Enabled = True : A6.Enabled = True : A7.Enabled = True : A8.Enabled = True
730
+        A9.Enabled = True : A10.Enabled = True : A11.Enabled = True : A12.Enabled = True : A13.Enabled = True : A14.Enabled = True : A15.Enabled = True : A16.Enabled = True
731
+        A17.Enabled = True : A18.Enabled = True : A19.Enabled = True : A20.Enabled = True
732
+        '-------------------------合計DGV變形----------------------------------------------------------------------------------------------------------------------
733
+        If IsVerticalScrollBarVisible(計算2_dgv) Then : 合計2_dgv.Size = New Size(計算2_dgv.Size.Width - 17, 合計2_dgv.Size.Height)
734
+        Else : 合計2_dgv.Size = New Size(計算2_dgv.Size.Width, 合計2_dgv.Size.Height) : End If
735
+    End Sub
736
+    Private Sub 款項_bt_Click(sender As Object, e As EventArgs) Handles 款項_bt.Click
737
+        If 計算2_dgv.Visible = True And 計算3_dgv.Visible = False Then : 選款項 = True : 彙總() : Else : 選款項 = True : 彙總1() : End If
738
+    End Sub
739
+    Private Sub 稅額_bt_Click(sender As Object, e As EventArgs) Handles 稅額_bt.Click
740
+        If 計算2_dgv.Visible = True And 計算3_dgv.Visible = False Then : 選款項 = False : 彙總() : Else : 選款項 = False : 彙總1() : End If
741
+    End Sub
742
+    Private Sub 縮放2_bt_Click(sender As Object, e As EventArgs) Handles 縮放2_bt.Click
743
+        Panel2.SendToBack() : Panel3.BringToFront() : Panel2.Visible = False : Panel3.Visible = True
744
+    End Sub
745
+    Private Sub 縮放1_bt_Click(sender As Object, e As EventArgs) Handles 縮放1_bt.Click
746
+        Panel2.BringToFront() : Panel3.SendToBack() : Panel2.Visible = True : Panel3.Visible = False
747
+    End Sub
748
+    Private Sub 圖表_bt_Click(sender As Object, e As EventArgs) Handles 圖表_bt.Click
749
+        Panel4.BringToFront() : 計算_dgv.SendToBack()
750
+    End Sub
751
+    Private Sub 清單_bt_Click(sender As Object, e As EventArgs) Handles 清單_bt.Click
752
+        Panel4.SendToBack() : 計算_dgv.BringToFront()
753
+    End Sub
754
+    Private Sub B1_CheckedChanged(sender As Object, e As EventArgs) Handles B1.Click
755
+        If 計算2_dgv.Visible = True And 計算3_dgv.Visible = False Then : 彙總() : Else : 彙總1() : End If
756
+    End Sub
757
+    Private Sub B2_CheckedChanged(sender As Object, e As EventArgs) Handles B2.Click
758
+        If 計算2_dgv.Visible = True And 計算3_dgv.Visible = False Then : 彙總() : Else : 彙總1() : End If
759
+    End Sub
760
+    Private Sub B3_CheckedChanged(sender As Object, e As EventArgs) Handles B3.Click
761
+        If 計算2_dgv.Visible = True And 計算3_dgv.Visible = False Then : 彙總() : Else : 彙總1() : End If
762
+    End Sub
763
+    Private Sub B4_CheckedChanged(sender As Object, e As EventArgs) Handles B4.Click
764
+        If 計算2_dgv.Visible = True And 計算3_dgv.Visible = False Then : 彙總() : Else : 彙總1() : End If
765
+    End Sub
766
+    Private Sub A1_CheckedChanged(sender As Object, e As EventArgs) Handles A1.Click
767
+        Set_合約清單()
768
+    End Sub
769
+    Private Sub A2_CheckedChanged(sender As Object, e As EventArgs) Handles A2.Click
770
+        Set_合約清單()
771
+    End Sub
772
+    Private Sub A3_CheckedChanged(sender As Object, e As EventArgs) Handles A3.Click
773
+        Set_合約清單()
774
+    End Sub
775
+    Private Sub A4_CheckedChanged(sender As Object, e As EventArgs) Handles A4.Click
776
+        Set_合約清單()
777
+    End Sub
778
+    Private Sub A5_CheckedChanged(sender As Object, e As EventArgs) Handles A5.Click
779
+        Set_合約清單()
780
+    End Sub
781
+    Private Sub A6_CheckedChanged(sender As Object, e As EventArgs) Handles A6.Click
782
+        Set_合約清單()
783
+    End Sub
784
+    Private Sub A7_CheckedChanged(sender As Object, e As EventArgs) Handles A7.Click
785
+        Set_合約清單()
786
+    End Sub
787
+    Private Sub A8_CheckedChanged(sender As Object, e As EventArgs) Handles A8.Click
788
+        Set_合約清單()
789
+    End Sub
790
+    Private Sub A9_CheckedChanged(sender As Object, e As EventArgs) Handles A9.Click
791
+        Set_合約清單()
792
+    End Sub
793
+    Private Sub A10_CheckedChanged(sender As Object, e As EventArgs) Handles A10.Click
794
+        Set_合約清單()
795
+    End Sub
796
+    Private Sub A11_CheckedChanged(sender As Object, e As EventArgs) Handles A11.Click
797
+        Set_合約清單()
798
+    End Sub
799
+    Private Sub A12_CheckedChanged(sender As Object, e As EventArgs) Handles A12.Click
800
+        Set_合約清單()
801
+    End Sub
802
+    Private Sub A13_CheckedChanged(sender As Object, e As EventArgs) Handles A13.Click
803
+        Set_合約清單()
804
+    End Sub
805
+    Private Sub A14_CheckedChanged(sender As Object, e As EventArgs) Handles A14.Click
806
+        Set_合約清單()
807
+    End Sub
808
+    Private Sub A15_CheckedChanged(sender As Object, e As EventArgs) Handles A15.Click
809
+        Set_合約清單()
810
+    End Sub
811
+    Private Sub A16_CheckedChanged(sender As Object, e As EventArgs) Handles A16.Click
812
+        Set_合約清單()
813
+    End Sub
814
+    Private Sub A17_CheckedChanged(sender As Object, e As EventArgs) Handles A17.Click
815
+        Set_合約清單()
816
+    End Sub
817
+    Private Sub A18_CheckedChanged(sender As Object, e As EventArgs) Handles A18.Click
818
+        Set_合約清單()
819
+    End Sub
820
+    Private Sub A19_CheckedChanged(sender As Object, e As EventArgs) Handles A19.Click
821
+        Set_合約清單()
822
+    End Sub
823
+    Private Sub A20_CheckedChanged(sender As Object, e As EventArgs) Handles A20.Click
824
+        Set_合約清單()
825
+    End Sub
826
+
827
+    Private Sub 風格()
828
+        If 深色風格 = False Then
829
+            Me.BackColor = SystemColors.Control
830
+            '----------------黑-------------------------------------------
831
+            語轉扭_bt.BackColor = Color.White
832
+            系統說明_bt.BackColor = Color.White : 縮放1_bt.BackColor = Color.White : 縮放2_bt.BackColor = Color.White : 圖表_bt.BackColor = Color.White
833
+            清單_bt.BackColor = Color.White : 回首頁_bt.BackColor = Color.Black
834
+            For i As Integer = 1 To 20 : Dim 選擇 As CheckBox = CType(Me.Controls.Find("A" & i, True)(0), CheckBox) : 選擇.ForeColor = Color.Black : Next
835
+            For i As Integer = 1 To 4 : Dim 選擇 As CheckBox = CType(Me.Controls.Find("B" & i, True)(0), CheckBox) : 選擇.ForeColor = Color.Black : Next
836
+            款項_bt.BackColor = Color.White : 款項_bt.ForeColor = Color.Black : 稅額_bt.BackColor = Color.White : 稅額_bt.ForeColor = Color.Black
837
+
838
+            計算3_dgv.EnableHeadersVisualStyles = True : 計算3_dgv.BackgroundColor = Color.White : 計算3_dgv.ColumnHeadersDefaultCellStyle.ForeColor = Color.Black
839
+            計算3_dgv.DefaultCellStyle.BackColor = Color.White : 計算3_dgv.DefaultCellStyle.ForeColor = Color.Black : 計算3_dgv.DefaultCellStyle.SelectionBackColor = Color.White
840
+            計算3_dgv.DefaultCellStyle.SelectionForeColor = Color.Black
841
+            合計1_dgv.EnableHeadersVisualStyles = True : 合計1_dgv.BackgroundColor = Color.White : 合計1_dgv.ColumnHeadersDefaultCellStyle.ForeColor = Color.Black
842
+            合計1_dgv.DefaultCellStyle.BackColor = Color.White : 合計1_dgv.DefaultCellStyle.ForeColor = Color.Black : 合計1_dgv.DefaultCellStyle.SelectionBackColor = Color.White
843
+            合計1_dgv.DefaultCellStyle.SelectionForeColor = Color.Black
844
+            合計2_dgv.EnableHeadersVisualStyles = True : 合計2_dgv.BackgroundColor = Color.White : 合計2_dgv.ColumnHeadersDefaultCellStyle.ForeColor = Color.Black
845
+            合計2_dgv.DefaultCellStyle.BackColor = Color.White : 合計2_dgv.DefaultCellStyle.ForeColor = Color.Black : 合計2_dgv.DefaultCellStyle.SelectionBackColor = Color.White
846
+            合計2_dgv.DefaultCellStyle.SelectionForeColor = Color.Black
847
+            計算2_dgv.EnableHeadersVisualStyles = True : 計算2_dgv.BackgroundColor = Color.White : 計算2_dgv.ColumnHeadersDefaultCellStyle.ForeColor = Color.Black
848
+            計算2_dgv.DefaultCellStyle.BackColor = Color.White : 計算2_dgv.DefaultCellStyle.ForeColor = Color.Black : 計算2_dgv.DefaultCellStyle.SelectionBackColor = Color.White
849
+            計算2_dgv.DefaultCellStyle.SelectionForeColor = Color.Black
850
+            計算1_dgv.EnableHeadersVisualStyles = True : 計算1_dgv.BackgroundColor = Color.White : 計算1_dgv.ColumnHeadersDefaultCellStyle.ForeColor = Color.Black
851
+            計算1_dgv.DefaultCellStyle.BackColor = Color.White : 計算1_dgv.DefaultCellStyle.ForeColor = Color.Black : 計算1_dgv.DefaultCellStyle.SelectionBackColor = Color.White
852
+            計算1_dgv.DefaultCellStyle.SelectionForeColor = Color.Black
853
+            計算_dgv.EnableHeadersVisualStyles = True : 計算_dgv.BackgroundColor = Color.White : 計算_dgv.ColumnHeadersDefaultCellStyle.ForeColor = Color.Black
854
+            計算_dgv.DefaultCellStyle.BackColor = Color.White : 計算_dgv.DefaultCellStyle.ForeColor = Color.Black
855
+            甲方_dgv.EnableHeadersVisualStyles = True : 甲方_dgv.BackgroundColor = Color.White : 甲方_dgv.ColumnHeadersDefaultCellStyle.ForeColor = Color.Black
856
+            甲方_dgv.DefaultCellStyle.BackColor = Color.White : 甲方_dgv.DefaultCellStyle.ForeColor = Color.Black
857
+            請款清單_dgv.EnableHeadersVisualStyles = True : 請款清單_dgv.BackgroundColor = Color.White : 請款清單_dgv.ColumnHeadersDefaultCellStyle.ForeColor = Color.Black
858
+            請款清單_dgv.DefaultCellStyle.BackColor = Color.White : 請款清單_dgv.DefaultCellStyle.ForeColor = Color.Black
859
+            彙總_dgv.EnableHeadersVisualStyles = True : 彙總_dgv.BackgroundColor = Color.White : 彙總_dgv.ColumnHeadersDefaultCellStyle.ForeColor = Color.Black
860
+            彙總_dgv.DefaultCellStyle.BackColor = Color.White : 彙總_dgv.DefaultCellStyle.ForeColor = Color.Black
861
+        Else
862
+            Me.BackColor = Color.Black
863
+            '----------------黑-------------------------------------------
864
+            語轉扭_bt.BackColor = Color.DimGray
865
+            系統說明_bt.BackColor = Color.DimGray : 縮放1_bt.BackColor = Color.DimGray : 縮放2_bt.BackColor = Color.DimGray : 圖表_bt.BackColor = Color.DimGray
866
+            清單_bt.BackColor = Color.DimGray : 回首頁_bt.BackColor = Color.DimGray
867
+            For i As Integer = 1 To 20 : Dim 選擇 As CheckBox = CType(Me.Controls.Find("A" & i, True)(0), CheckBox) : 選擇.ForeColor = Color.White : Next
868
+            For i As Integer = 1 To 4 : Dim 選擇 As CheckBox = CType(Me.Controls.Find("B" & i, True)(0), CheckBox) : 選擇.ForeColor = Color.White : Next
869
+            款項_bt.BackColor = Color.DimGray : 款項_bt.ForeColor = Color.White : 稅額_bt.BackColor = Color.DimGray : 稅額_bt.ForeColor = Color.White
870
+
871
+            計算3_dgv.EnableHeadersVisualStyles = False : 計算3_dgv.BackgroundColor = Color.DimGray : 計算3_dgv.ColumnHeadersDefaultCellStyle.ForeColor = Color.White
872
+            計算3_dgv.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : 計算3_dgv.DefaultCellStyle.BackColor = Color.Black : 計算3_dgv.DefaultCellStyle.ForeColor = Color.White
873
+            計算3_dgv.DefaultCellStyle.SelectionBackColor = Color.Black
874
+            合計1_dgv.EnableHeadersVisualStyles = False : 合計1_dgv.BackgroundColor = Color.DimGray : 合計1_dgv.ColumnHeadersDefaultCellStyle.ForeColor = Color.White
875
+            合計1_dgv.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : 合計1_dgv.DefaultCellStyle.BackColor = Color.Black : 合計1_dgv.DefaultCellStyle.ForeColor = Color.White
876
+            合計1_dgv.DefaultCellStyle.SelectionBackColor = Color.Black
877
+            合計2_dgv.EnableHeadersVisualStyles = False : 合計2_dgv.BackgroundColor = Color.DimGray : 合計2_dgv.ColumnHeadersDefaultCellStyle.ForeColor = Color.White
878
+            合計2_dgv.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : 合計2_dgv.DefaultCellStyle.BackColor = Color.Black : 合計2_dgv.DefaultCellStyle.ForeColor = Color.White
879
+            合計2_dgv.DefaultCellStyle.SelectionBackColor = Color.Black
880
+            計算2_dgv.EnableHeadersVisualStyles = False : 計算2_dgv.BackgroundColor = Color.DimGray : 計算2_dgv.ColumnHeadersDefaultCellStyle.ForeColor = Color.White
881
+            計算2_dgv.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : 計算2_dgv.DefaultCellStyle.BackColor = Color.Black : 計算2_dgv.DefaultCellStyle.ForeColor = Color.White
882
+            計算2_dgv.DefaultCellStyle.SelectionBackColor = Color.Black
883
+            計算1_dgv.EnableHeadersVisualStyles = False : 計算1_dgv.BackgroundColor = Color.DimGray : 計算1_dgv.ColumnHeadersDefaultCellStyle.ForeColor = Color.White
884
+            計算1_dgv.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : 計算1_dgv.DefaultCellStyle.BackColor = Color.Black : 計算1_dgv.DefaultCellStyle.ForeColor = Color.White
885
+            計算1_dgv.DefaultCellStyle.SelectionBackColor = Color.Black
886
+            計算_dgv.EnableHeadersVisualStyles = False : 計算_dgv.BackgroundColor = Color.DimGray : 計算_dgv.ColumnHeadersDefaultCellStyle.ForeColor = Color.White
887
+            計算_dgv.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : 計算_dgv.DefaultCellStyle.BackColor = Color.Black : 計算_dgv.DefaultCellStyle.ForeColor = Color.White
888
+            甲方_dgv.EnableHeadersVisualStyles = False : 甲方_dgv.BackgroundColor = Color.DimGray : 甲方_dgv.ColumnHeadersDefaultCellStyle.ForeColor = Color.White
889
+            甲方_dgv.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : 甲方_dgv.DefaultCellStyle.BackColor = Color.Black : 甲方_dgv.DefaultCellStyle.ForeColor = Color.White
890
+            請款清單_dgv.EnableHeadersVisualStyles = False : 請款清單_dgv.BackgroundColor = Color.DimGray : 請款清單_dgv.ColumnHeadersDefaultCellStyle.ForeColor = Color.White
891
+            請款清單_dgv.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : 請款清單_dgv.DefaultCellStyle.BackColor = Color.Black : 請款清單_dgv.DefaultCellStyle.ForeColor = Color.White
892
+            彙總_dgv.EnableHeadersVisualStyles = False : 彙總_dgv.BackgroundColor = Color.DimGray : 彙總_dgv.ColumnHeadersDefaultCellStyle.ForeColor = Color.White
893
+            彙總_dgv.ColumnHeadersDefaultCellStyle.BackColor = Color.Black : 彙總_dgv.DefaultCellStyle.BackColor = Color.Black : 彙總_dgv.DefaultCellStyle.ForeColor = Color.White
894
+        End If
895
+    End Sub
896
+End Class

+ 2058
- 0
Calculator-SYS/06、財務系統管理/財務報表4.Designer.vb
ファイル差分が大きすぎるため省略します
ファイルの表示


+ 120
- 0
Calculator-SYS/06、財務系統管理/財務報表4.resx ファイルの表示

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

+ 1054
- 0
Calculator-SYS/06、財務系統管理/財務報表4.vb
ファイル差分が大きすぎるため省略します
ファイルの表示


+ 4
- 3
Calculator-SYS/06、財務系統管理/財物支付單申請_傳票.vb ファイルの表示

@@ -10,8 +10,8 @@ Imports Microsoft.Office.Interop.Excel.XlWindowState
10 10
 Imports Microsoft.Office.Interop.Excel
11 11
 Public Class 財物支付單申請_傳票
12 12
     Dim SK1, SK2 As String : Dim 不可編輯x As Boolean
13
-    Dim 新項次 As String : Dim 新流水1 As String : Dim 新流水2 As String
14
-    Dim NUM1 As Integer : Dim 匯率1 As Double : Dim 對話框(15) As String
13
+    Dim 新項次 As String : Dim 新流水1 As String
14
+    Dim 匯率1 As Double : Private ReadOnly 對話框(15) As String
15 15
     Dim xlApp As Application
16 16
     Dim xlBook As Workbook
17 17
     Dim xlSheet As Worksheet
@@ -79,7 +79,7 @@ Public Class 財物支付單申請_傳票
79 79
         If 跨部門開啟 = False Then : Me.AutoScroll = True : 首次開啟 = True : 申請_p.Visible = True : 審核_p.Visible = False
80 80
         ElseIf 跨部門開啟 = True Then : Me.MdiParent = HX_PGS_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True : 首次開啟 = True : 申請_p.Visible = False : 審核_p.Visible = True : End If
81 81
         年份2_cb.Text = Year(Today) : 月份2_cb.SelectedIndex = Month(Today) - 1 : Panel1.SendToBack() : 第一層下拉表單資料載入()
82
-        H(314) = True : 介面 = "H314" : 語言轉換讀取()
82
+        H(314) = True : 介面 = "H314" : 語言轉換讀取() : 顯示說明(999, False)
83 83
 
84 84
         MyMod.清單字體大小調整()
85 85
         財務收支單_dgv.RowsDefaultCellStyle.Font = New System.Drawing.Font("微軟正黑體", HX_PGS_ERP_SYS.字體_NUD.Value)
@@ -319,6 +319,7 @@ Public Class 財物支付單申請_傳票
319 319
     End Sub
320 320
     Private Sub 大寫轉換()
321 321
         Dim 個位(20), 十位(9), 百位(1), 千位(1), 百萬, 十億, 零, 拾, 百, 仟, 萬, 億, 兆, 答案 As String : Dim 數長 As Integer
322
+        答案 = "" : 零 = "" : 拾 = "" : 百 = "" : 仟 = "" : 萬 = "" : 百萬 = "" : 億 = "" : 十億 = "" : 兆 = ""
322 323
         If 系統語言 = "繁體中文" Then
323 324
             個位(0) = "零" : 個位(1) = "壹" : 個位(2) = "貳" : 個位(3) = "參" : 個位(4) = "肆" : 個位(5) = "伍" : 個位(6) = "陸" : 個位(7) = "柒" : 個位(8) = "捌" : 個位(9) = "玖"
324 325
             零 = "零" : 拾 = "拾" : 百 = "百" : 仟 = "仟" : 萬 = "萬" : 億 = "億" : 兆 = "兆"

+ 2
- 2
Calculator-SYS/07、採購系統管理/供應商商品單價設定.vb ファイルの表示

@@ -6,7 +6,7 @@ Public Class 供應商商品單價設定
6 6
     Dim Str As String = Application.StartupPath
7 7
     Dim 物料規格, KKK2, 頁面 As String
8 8
     Dim NB1 As Integer
9
-    Dim 對話框(25) As String
9
+    Private ReadOnly 對話框(25) As String
10 10
     ReadOnly 群組碼(21) As String
11 11
     Private Sub Set_群組清單()
12 12
         Dim ds1 As New DataSet : 群組分類_dgv.DataSource = Nothing : ds1.Clear()
@@ -261,7 +261,7 @@ Public Class 供應商商品單價設定
261 261
     End Sub
262 262
     Private Sub 供應商商品清單_Load(sender As Object, e As EventArgs) Handles MyBase.Load
263 263
         Me.MdiParent = HX_PGS_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
264
-        H(212) = True : 介面 = "H212" : 語言轉換讀取()
264
+        H(212) = True : 介面 = "H212" : 語言轉換讀取() : 顯示說明(999, False)
265 265
 
266 266
         中間距_ch.Checked = True : 中間距1_ch.Checked = True : 首次開啟 = False : Panel1.SendToBack() : 主頁_p.BringToFront()
267 267
         切換_ts.Checked = True : Panel3.Visible = True : Panel2.Visible = False

+ 2
- 2
Calculator-SYS/07、採購系統管理/供應商管理.vb ファイルの表示

@@ -4,7 +4,7 @@ Public Class 供應商管理
4 4
     Dim RI As Integer = -1
5 5
     Dim SK As String = "要查找的 KEY"
6 6
     Dim Str As String = Application.StartupPath
7
-    DIM 對話框(11) As String
7
+    Private ReadOnly 對話框(11) As String
8 8
     Private Sub 讀取供應商料表()
9 9
         Dim ds As New DataSet : 廠商清單_dgv.DataSource = Nothing : ds.Clear()
10 10
         廠商清單_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
@@ -143,7 +143,7 @@ Public Class 供應商管理
143 143
     End Sub
144 144
     Private Sub 供應商管理_Load(sender As Object, e As EventArgs) Handles MyBase.Load
145 145
         Me.MdiParent = HX_PGS_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
146
-        風格() : H(299) = True : 介面 = "H299" : 語言轉換讀取() : PA = "" : Panel1.SendToBack()
146
+        風格() : H(299) = True : 介面 = "H299" : 顯示說明(999, False) : 語言轉換讀取() : PA = "" : Panel1.SendToBack()
147 147
         If CC(12) = False Then : 新增_bt.Enabled = False : 修改_bt.Enabled = False : End If
148 148
         If CC(13) = False Then : 刪除_bt.Enabled = False : End If
149 149
         清單字體大小調整()

+ 2
- 2
Calculator-SYS/07、採購系統管理/供應商類別管理.vb ファイルの表示

@@ -5,7 +5,7 @@ Public Class 供應商類別管理
5 5
     Dim RI As Integer = -1
6 6
     Dim SK As String = "要查找的 KEY"
7 7
     Dim Str As String = Application.StartupPath
8
-    Dim 對話框(8) As String
8
+    Private ReadOnly 對話框(8) As String
9 9
     Private Sub 清單1()
10 10
         類別清單_dgv.DataSource = Nothing : ds.Clear()
11 11
         類別清單_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
@@ -88,7 +88,7 @@ Public Class 供應商類別管理
88 88
     Private Sub PnlTitleBar_Paint(sender As Object, e As PaintEventArgs) Handles PnlTitleBar.Paint
89 89
     End Sub
90 90
     Private Sub 供應商類別管理_Load(sender As Object, e As EventArgs) Handles MyBase.Load
91
-        語言_dgv.SendToBack() : H(213) = True : 介面 = "H213" : 語言轉換讀取() : 清單1()
91
+        語言_dgv.SendToBack() : H(213) = True : 介面 = "H213" : 語言轉換讀取() : 顯示說明(999, False) : 清單1()
92 92
     End Sub
93 93
     Private Sub Cancel_bt_Click(sender As Object, e As EventArgs) Handles Cancel_bt.Click
94 94
         Me.Close()

+ 1
- 1
Calculator-SYS/07、採購系統管理/採購單一級核准.vb ファイルの表示

@@ -309,7 +309,7 @@ Public Class 採購單一級核准
309 309
     End Sub
310 310
     Private Sub 採購單一級核准_Load(sender As Object, e As EventArgs) Handles MyBase.Load
311 311
         Me.MdiParent = HX_PGS_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
312
-        H(206) = True : 介面 = "H206" : 語言轉換讀取()
312
+        H(206) = True : 介面 = "H206" : 語言轉換讀取() : 顯示說明(999, False)
313 313
         單價_rb.Checked = True : 小間距_ch.Checked = False : 中間距_ch.Checked = True : 大間距_ch.Checked = False
314 314
         Panel3.SendToBack()
315 315
         供應商_cb_下拉表單資料載入() : Set_清單2() : Set_清單()

+ 3
- 3
Calculator-SYS/07、採購系統管理/採購單歷史檔案.vb ファイルの表示

@@ -11,7 +11,7 @@ Imports Microsoft.Office.Interop.Excel.XlWindowState
11 11
 Imports Microsoft.Office.Interop.Excel
12 12
 Public Class 採購單歷史檔案
13 13
     ReadOnly ds8 As New DataSet : Dim xlApp As Application : Dim xlBook As Workbook : Dim xlSheet As Worksheet
14
-    Dim N1, N2 As Integer : Dim 新項次 As String : Dim NUM1 As Integer : Dim 對話框(7) As String : Dim 物料規格 As String
14
+    Dim N1, N2 As Integer : Dim 新項次 As String : Dim NUM1 As Integer : Private ReadOnly 對話框(7) As String : Dim 物料規格 As String
15 15
     'ReadOnly QRCODE As DotNetBarcode = New DotNetBarcode
16 16
     Private Sub Set_清單()
17 17
         Dim ds As New DataSet : 明細_dgv.DataSource = Nothing : ds.Clear()
@@ -302,7 +302,7 @@ Public Class 採購單歷史檔案
302 302
     End Sub
303 303
     Private Sub 採購單歷史檔案_Load(sender As Object, e As EventArgs) Handles MyBase.Load
304 304
         Me.MdiParent = HX_PGS_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
305
-        風格() : H(208) = True : 介面 = "H208" : 語言轉換讀取() : Panel1.SendToBack()
305
+        風格() : H(208) = True : 介面 = "H208" : 語言轉換讀取() : 顯示說明(999, False) : Panel1.SendToBack()
306 306
         核對員_tb.Visible = False : 核對日期_tb.Visible = False : 詢價員_tb.Visible = False : 尋價日期_tb.Visible = False
307 307
         驗證碼1_tb.Visible = False : 供應商編碼_tb.Visible = False : 系統語言_cb.Text = "Indonesian"
308 308
 
@@ -361,7 +361,7 @@ Public Class 採購單歷史檔案
361 361
                     MGB(對話框(7) & vbCrLf & PA21 & PA22 & PA23 & PA24 & PA25 & PA26, 2) : 首次開啟 = False
362 362
                     If 訊息回應 = "YES" Then
363 363
                         財物支付單申請_傳票.開立收支單1_bt.PerformClick()
364
-                        Dim XS As Integer = 0 : Dim SRTG As String
364
+                        Dim XS As Integer = 0 : Dim SRTG As String = ""
365 365
                         Dim currentTime As DateTime = DateTime.Now
366 366
                         For i As Integer = 0 To 已核准_dgv.Rows.Count - 1
367 367
                             If 已核准_dgv.Rows(i).Cells(22).Value <> 0 Then

+ 2
- 2
Calculator-SYS/07、採購系統管理/請購單核准.vb ファイルの表示

@@ -12,7 +12,7 @@ Imports Microsoft.Office.Interop.Excel
12 12
 Public Class 請購單核准
13 13
     ReadOnly ds8 As New DataSet
14 14
     Dim xlApp As Application : Dim xlBook As Workbook : Dim xlSheet As Worksheet : Dim N1 As Integer
15
-    Dim 新項次 As String : Dim 對話框(13) As String : Dim 物料規格 As String
15
+    Dim 新項次 As String : Private ReadOnly 對話框(13) As String : Dim 物料規格 As String
16 16
     Private Sub Set_請購單清單()
17 17
         Dim ds As New DataSet : 請購明細_dgv.DataSource = Nothing : ds.Clear()
18 18
         請購明細_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
@@ -270,7 +270,7 @@ Public Class 請購單核准
270 270
     End Sub
271 271
     Private Sub 請購單核准_Load(sender As Object, e As EventArgs) Handles MyBase.Load
272 272
         Me.MdiParent = HX_PGS_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
273
-        H(202) = True : 介面 = "H202" : 語言轉換讀取() : 顯示說明(999)
273
+        H(202) = True : 介面 = "H202" : 語言轉換讀取() : 顯示說明(999, False)
274 274
 
275 275
         Panel1.SendToBack() : 申請日期_dtp.Enabled = False : 確認列印_bt.Enabled = False
276 276
 

+ 82
- 0
Calculator-SYS/0、MyModule/模組/DGV進度條.vb ファイルの表示

@@ -0,0 +1,82 @@
1
+Imports System.ComponentModel
2
+Module DGV進度條
3
+    Public Class DataGridViewProgressColumn
4
+        Inherits DataGridViewImageColumn
5
+        Public Sub New()
6
+            Me.CellTemplate = New DataGridViewProgressCell
7
+        End Sub
8
+    End Class
9
+    Public Class DataGridViewProgressCell
10
+        Inherits DataGridViewImageCell
11
+        Sub New()
12
+            ValueType = Type.GetType("Integer")
13
+        End Sub
14
+        ' 使進度單元與默認圖像單元一致所需的方法。
15
+        ' 默認圖像單元將圖像作為值,儘管進度單元的值是整數。
16
+        Protected Overrides Function GetFormattedValue(
17
+            ByVal value As Object,
18
+            ByVal rowIndex As Integer,
19
+            ByRef cellStyle As DataGridViewCellStyle,
20
+            ByVal valueTypeConverter As TypeConverter,
21
+            ByVal formattedValueTypeConverter As TypeConverter,
22
+            ByVal context As DataGridViewDataErrorContexts) As Object
23
+            Static emptyImage As New Bitmap(1, 1, System.Drawing.Imaging.PixelFormat.Format32bppArgb)
24
+            GetFormattedValue = emptyImage
25
+        End Function
26
+        Protected Overrides Sub Paint(ByVal g As System.Drawing.Graphics, ByVal clipBounds As System.Drawing.Rectangle,
27
+                                      ByVal cellBounds As System.Drawing.Rectangle,
28
+                                      ByVal rowIndex As Integer, ByVal cellState As System.Windows.Forms.DataGridViewElementStates,
29
+                                      ByVal value As Object, ByVal formattedValue As Object, ByVal errorText As String,
30
+                                      ByVal cellStyle As System.Windows.Forms.DataGridViewCellStyle,
31
+                                      ByVal advancedBorderStyle As System.Windows.Forms.DataGridViewAdvancedBorderStyle,
32
+                                      ByVal paintParts As System.Windows.Forms.DataGridViewPaintParts)
33
+            Dim progressVal As Double = CType(value, Double)
34
+            Dim percentage As Single = CType(progressVal / 分母, Single)
35
+            Dim backBrush As Brush = New SolidBrush(cellStyle.BackColor)
36
+            Dim foreBrush As Brush = New SolidBrush(cellStyle.ForeColor)
37
+            ' 調用基類方法來繪製默認單元格外觀。
38
+            MyBase.Paint(g, clipBounds, cellBounds, rowIndex, cellState,
39
+                value, formattedValue, errorText, cellStyle,
40
+                advancedBorderStyle, paintParts)
41
+            If 深色風格 = False Then
42
+                If percentage > 0.0 And percentage < 分段1 Then
43
+                    ' 繪製進度條和文字
44
+                    g.FillRectangle(New SolidBrush(Color.LightBlue), cellBounds.X + 2, cellBounds.Y + 2, Convert.ToInt32((percentage * cellBounds.Width - 8)), cellBounds.Height - 8)
45
+                    g.DrawString(Strings.Format(progressVal, "#,##0.00") & 進度條後墜, cellStyle.Font, foreBrush, cellBounds.X + 6, cellBounds.Y + 2)
46
+                ElseIf percentage > 分段2 And percentage < 分段3 Then
47
+                    ' 繪製進度條和文字
48
+                    g.FillRectangle(New SolidBrush(Color.LightGreen), cellBounds.X + 2, cellBounds.Y + 2, Convert.ToInt32((percentage * cellBounds.Width - 8)), cellBounds.Height - 8)
49
+                    g.DrawString(Strings.Format(progressVal, "#,##0.00") & 進度條後墜, cellStyle.Font, foreBrush, cellBounds.X + 6, cellBounds.Y + 2)
50
+                ElseIf percentage > 分段4 Then
51
+                    ' 繪製進度條和文字
52
+                    g.FillRectangle(New SolidBrush(Color.LightPink), cellBounds.X + 2, cellBounds.Y + 2, Convert.ToInt32((percentage * cellBounds.Width - 8)), cellBounds.Height - 8)
53
+                    g.DrawString(Strings.Format(progressVal, "#,##0.00") & 進度條後墜, cellStyle.Font, foreBrush, cellBounds.X + 6, cellBounds.Y + 2)
54
+                Else
55
+                    '繪製文本
56
+                    If DataGridView.CurrentCell IsNot Nothing AndAlso Me.DataGridView.CurrentCell.RowIndex = rowIndex Then
57
+                        g.DrawString(Strings.Format(progressVal, "#,##0.00") & 進度條後墜, cellStyle.Font, New SolidBrush(cellStyle.SelectionForeColor), cellBounds.X + 6, cellBounds.Y + 2)
58
+                    Else : g.DrawString(Strings.Format(progressVal, "#,##0.00") & 進度條後墜, cellStyle.Font, foreBrush, cellBounds.X + 6, cellBounds.Y + 2) : End If
59
+                End If
60
+            Else
61
+                If percentage > 0.0 And percentage < 分段1 Then
62
+                    ' 繪製進度條和文字
63
+                    g.FillRectangle(New SolidBrush(Color.DarkBlue), cellBounds.X + 2, cellBounds.Y + 2, Convert.ToInt32((percentage * cellBounds.Width - 8)), cellBounds.Height - 8)
64
+                    g.DrawString(Strings.Format(progressVal, "#,##0.00") & 進度條後墜, cellStyle.Font, foreBrush, cellBounds.X + 6, cellBounds.Y + 2)
65
+                ElseIf percentage > 分段2 And percentage < 分段3 Then
66
+                    ' 繪製進度條和文字
67
+                    g.FillRectangle(New SolidBrush(Color.DarkGreen), cellBounds.X + 2, cellBounds.Y + 2, Convert.ToInt32((percentage * cellBounds.Width - 8)), cellBounds.Height - 8)
68
+                    g.DrawString(Strings.Format(progressVal, "#,##0.00") & 進度條後墜, cellStyle.Font, foreBrush, cellBounds.X + 6, cellBounds.Y + 2)
69
+                ElseIf percentage > 分段4 Then
70
+                    ' 繪製進度條和文字
71
+                    g.FillRectangle(New SolidBrush(Color.DarkRed), cellBounds.X + 2, cellBounds.Y + 2, Convert.ToInt32((percentage * cellBounds.Width - 8)), cellBounds.Height - 8)
72
+                    g.DrawString(Strings.Format(progressVal, "#,##0.00") & 進度條後墜, cellStyle.Font, foreBrush, cellBounds.X + 6, cellBounds.Y + 2)
73
+                Else
74
+                    '繪製文本
75
+                    If DataGridView.CurrentCell IsNot Nothing AndAlso Me.DataGridView.CurrentCell.RowIndex = rowIndex Then
76
+                        g.DrawString(Strings.Format(progressVal, "#,##0.00") & 進度條後墜, cellStyle.Font, New SolidBrush(cellStyle.SelectionForeColor), cellBounds.X + 6, cellBounds.Y + 2)
77
+                    Else : g.DrawString(Strings.Format(progressVal, "#,##0.00") & 進度條後墜, cellStyle.Font, foreBrush, cellBounds.X + 6, cellBounds.Y + 2) : End If
78
+                End If
79
+            End If
80
+        End Sub
81
+    End Class
82
+End Module

+ 16
- 11
Calculator-SYS/0、MyModule/模組/GcmProc.vb ファイルの表示

@@ -19,17 +19,6 @@
19 19
     ''' 開公告 輸入的是要顯示公告的次數。
20 20
     ''' 如果要在輸入視窗的輸入控件上先帶入文字即可設定第二個變數,沒有設定就是空白。
21 21
     ''' </summary>
22
-    Public Sub 顯示說明(ByVal 開公告 As Integer)
23
-        'Dim 開啟, 公告 As Integer : Dim 是否新增 As Boolean = False
24
-        'SQL_說明顯示查詢()
25
-        'If dr.Read Then : 開啟 = dr("開啟次數") : 公告 = dr("公告次數") : Else : 開啟 = 0 : 公告 = 0 : 是否新增 = True : End If
26
-        'If 開公告 > 公告 Then : WEB說明頁面.Show() : ElseIf 登入人級別 = "00" Then : WEB說明頁面.Show() : End If : PA47 = 開啟 + 1 : PA48 = 公告 + 1
27
-        'If 是否新增 = True Then : SQL_說明顯示新增() : Else : SQL_說明顯示修改() : End If
28
-    End Sub
29
-    ''' <summary>
30
-    ''' 使用代號之前,請先到LINE使用者管理去進行設定
31
-    ''' 對象  請在LINE使用者管理中去複製字串出來。
32
-    ''' </summary>
33 22
     Public Sub LIN訊息通知(ByVal 代號 As String, ByVal 對象 As String, Optional ByVal 變數X As String = "", Optional ByVal 變數Y As String = "")
34 23
         LINE_權限代號 = 代號 : 發送對象 = 對象 : 通知變數X = 變數X : 通知變數Y = 變數Y : LINE_通知模塊()
35 24
     End Sub
@@ -51,4 +40,20 @@
51 40
         If 輸入cb.Items.Count < 23 Then : 下拉清單_2.ShowDialog() : Else : 下拉清單_1.ShowDialog() : End If
52 41
         輸入cb.Text = PPAA
53 42
     End Sub
43
+    Public Sub 顯示說明(ByVal 開公告 As Integer, ByVal 公告顯示 As Boolean)
44
+        Dim 開啟, 公告 As Integer : Dim 是否新增 As Boolean = False : Dim inputDate As Date : Dim yearValue As Integer
45
+        Dim monthValue As Integer : Dim formattedMonth As String
46
+        inputDate = Date.Now        ' 假設您有一個日期,這裡我們使用當前日期作為示例
47
+        yearValue = Year(inputDate)        ' 從日期中提取年份和月份
48
+        monthValue = Month(inputDate)        ' 從日期中提取年份和月份
49
+        If monthValue < 10 Then : formattedMonth = "0" & monthValue.ToString() : Else : formattedMonth = monthValue.ToString() : End If        ' 格式化月份以確保兩位數
50
+        PA45 = yearValue.ToString() : PA46 = formattedMonth        ' 將年份和月份數值存入變數X和Y中
51
+        SQL_說明顯示查詢()
52
+        If dr.Read Then : 開啟 = dr("開啟次數") : 公告 = dr("公告次數") : Else : 開啟 = 0 : 公告 = 0 : 是否新增 = True : End If
53
+        If 公告顯示 = True Then
54
+            If 開公告 > 公告 Then : PA48 = 公告 + 1 : ElseIf 登入人級別 = "00" Then : PA48 = 公告 + 1 : End If
55
+        End If
56
+        PA47 = 開啟 + 1
57
+        If 是否新增 = True Then : SQL_說明顯示新增() : Else : SQL_說明顯示修改() : End If
58
+    End Sub
54 59
 End Module

+ 1
- 1
Calculator-SYS/0、MyModule/模組/SQL_連線狀態模組3.vb ファイルの表示

@@ -2,7 +2,7 @@
2 2
 
3 3
 #Region "——连接测试:避免等待时间过长——"
4 4
     Dim bConnect As Boolean
5
-    Dim BgWorker3 As New System.ComponentModel.BackgroundWorker
5
+    Dim BgWorker3 As New ComponentModel.BackgroundWorker
6 6
     Dim ServerIP As String
7 7
     ''' <summary>
8 8
     ''' 测试连接:True-连接成功,False-连接失败

+ 0
- 419
Calculator-SYS/0、MyModule/資料庫/SQL_人事系統管理.vb ファイルの表示

@@ -1,419 +0,0 @@
1
-Module SQL_人事系統管理
2
-    Friend Sub SQL_人員薪資表1()
3
-        If PA25 = "-1" Or PA25 = "0" Or PA25 = "" Or 工人 = True Then : SQL3 = "" & SQL5
4
-        ElseIf PA25 = "1" Then : SQL3 = " AND 使用者權限管理表.部門 NOT LIKE '3%' " & SQL5
5
-        ElseIf PA25 = "2" Then : SQL3 = " AND 使用者權限管理表.部門 LIKE '3%' " & SQL5 : End If
6
-        If BL = False Then
7
-            ConnOpen()
8
-            If 在職 = True Then
9
-                If 工人 = False Then : SQL2 = " WHERE (使用者權限管理表.CC63 = 0) AND 使用者權限管理表.部門 NOT LIKE N'9%' AND 使用者權限管理表.級別 LIKE N'%" & PA14 & "%' 
10
-                                                       AND [HX-PGS-MSN].dbo.人員資料表.部門名稱 LIKE '%" & PA19 & "%'" & SQL3
11
-                Else
12
-                    SQL2 = " WHERE (使用者權限管理表.CC63 = 0) AND 使用者權限管理表.部門 LIKE N'9%' AND 使用者權限管理表.姓名 NOT LIKE '未啟用%' AND 
13
-                                    使用者權限管理表.級別 LIKE N'%" & PA14 & "%' AND [HX-PGS-MSN].dbo.人員資料表.部門名稱 LIKE '%" & PA19 & "%'" & SQL3
14
-                End If
15
-            Else
16
-                If 工人 = False Then : SQL2 = " WHERE (使用者權限管理表.CC63 = 1) AND 使用者權限管理表.部門 NOT LIKE N'9%' AND 使用者權限管理表.級別 LIKE N'%" & PA14 & "%'" & SQL3
17
-                Else
18
-                    SQL2 = " WHERE (使用者權限管理表.CC63 = 1) AND 使用者權限管理表.部門 LIKE N'9%' AND 使用者權限管理表.姓名 NOT LIKE '未啟用%' AND 
19
-                                    姓名 NOT LIKE 'TEST%' AND 使用者權限管理表.級別 LIKE N'%" & PA14 & "%' AND [HX-PGS-MSN].dbo.人員資料表.部門名稱 LIKE '%" & PA19 & "%'" & SQL3
20
-                End If
21
-            End If
22
-            SQL1 = "SELECT       [HX-PGS-MSN].dbo.人員資料表.部門名稱 AS [" & 表頭(25) & "],使用者權限管理表.姓名 AS [" & 表頭(0) & "], 使用者權限管理表.部門 AS [" & 表頭(19) & "], 
23
-                                  使用者權限管理表.ID卡號, [HX-PGS-MSN].dbo.人員資料表.員工代碼 AS [STT], [HX-PGS-MSN].dbo.人員資料表.員工崗位 AS [" & 表頭(24) & "],  
24
-                                 [HX-PGS-MSN].dbo.人員資料表.入職日 AS [" & 表頭(22) & "], 
25
-                                  使用者權限管理表.級別 AS [" & 表頭(1) & "], 使用者權限管理表.級別 AS [" & 表頭(20) & "], 使用者權限管理表.級別 AS [" & 表頭(21) & "], 
26
-                                 [HX-PGS-MSN].dbo.人員資料表.群組 AS [" & 表頭(30) & "], [HX-PGS-MSN].dbo.人員資料表.薪資狀態 AS [" & 表頭(26) & "], 
27
-                                 [HX-PGS-MSN].dbo.人員資料表.薪資 AS [" & 表頭(27) & "], [HX-PGS-MSN].dbo.人員資料表.薪資 AS [" & 表頭(28) & "], 
28
-                                 [HX-PGS-MSN].dbo.人員資料表.薪資 AS [總數], 使用者權限管理表.級別 AS [" & 表頭(64) & "], 使用者權限管理表.級別 AS [" & 表頭(31) & "], 
29
-                                  使用者權限管理表.級別 AS [" & 表頭(32) & "], 使用者權限管理表.級別 AS [" & 表頭(33) & "], 使用者權限管理表.級別 AS [" & 表頭(34) & "], 
30
-                                  使用者權限管理表.級別 AS [" & 表頭(35) & "], 使用者權限管理表.級別 AS [" & 表頭(36) & "], 使用者權限管理表.級別 AS [" & 表頭(37) & "], 
31
-                                  使用者權限管理表.級別 AS [" & 表頭(38) & "], 使用者權限管理表.級別 AS [" & 表頭(39) & "], 使用者權限管理表.級別 AS [" & 表頭(40) & "], 
32
-                                  使用者權限管理表.級別 AS [" & 表頭(41) & "], 使用者權限管理表.級別 AS [" & 表頭(42) & "], 使用者權限管理表.級別 AS [" & 表頭(43) & "], 
33
-                                  使用者權限管理表.級別 AS [" & 表頭(58) & "], 使用者權限管理表.級別 AS [" & 表頭(59) & "], 使用者權限管理表.級別 AS [" & 表頭(60) & "], 
34
-                                  使用者權限管理表.級別 AS [" & 表頭(61) & "], 使用者權限管理表.級別 AS [" & 表頭(62) & "], 使用者權限管理表.級別 AS [" & 表頭(63) & "], 
35
-                                  使用者權限管理表.級別 AS [" & 表頭(44) & "], 使用者權限管理表.級別 AS [" & 表頭(45) & "], 使用者權限管理表.級別 AS [" & 表頭(46) & "], 
36
-                                  使用者權限管理表.級別 AS [" & 表頭(47) & "], 使用者權限管理表.級別 AS [" & 表頭(48) & "], 使用者權限管理表.級別 AS [" & 表頭(49) & "], 
37
-                                  使用者權限管理表.級別 AS [" & 表頭(50) & "], 使用者權限管理表.級別 AS [" & 表頭(51) & "], 使用者權限管理表.級別 AS [" & 表頭(52) & "], 
38
-                                  使用者權限管理表.級別 AS [" & 表頭(53) & "], 使用者權限管理表.級別 AS [" & 表頭(54) & "], 使用者權限管理表.級別 AS [" & 表頭(55) & "], 
39
-                                  使用者權限管理表.級別 AS [" & 表頭(56) & "], 使用者權限管理表.級別 AS [" & 表頭(57) & "], HX空白圖片.圖片 AS [Save.], 使用者權限管理表.帳號
40
-                    FROM          使用者權限管理表 LEFT OUTER JOIN
41
-                                  HX空白圖片 ON 使用者權限管理表.姓名 = HX空白圖片.選擇 LEFT OUTER JOIN
42
-                                 [HX-PGS-MSN].dbo.人員資料表 ON 使用者權限管理表.帳號 = [HX-PGS-MSN].dbo.人員資料表.帳號 " & SQL2 & "
43
-                    ORDER BY     " & SQL4
44
-            CmdSet_For_DGV()
45
-        Else
46
-            ConnOpen()
47
-            If 在職 = True Then
48
-                If 工人 = False Then : SQL2 = " AND (使用者權限管理表.CC63 = 0) AND (使用者權限管理表.部門 NOT LIKE '9%') AND 使用者權限管理表.級別 LIKE N'%" & PA14 & "%'
49
-                                                AND [HX-PGS-MSN].dbo.人員資料表.部門名稱 LIKE '%" & PA19 & "%'" & SQL3
50
-                Else : SQL2 = " AND (使用者權限管理表.CC63 = 0) AND (使用者權限管理表.部門 LIKE '9%') AND 使用者權限管理表.級別 LIKE N'%" & PA14 & "%'
51
-                                AND [HX-PGS-MSN].dbo.人員資料表.部門名稱 LIKE '%" & PA19 & "%'" & SQL3 : End If
52
-            Else
53
-                If 工人 = False Then : SQL2 = " AND (使用者權限管理表.CC63 = 1) AND 使用者權限管理表.部門 NOT LIKE N'9%' AND 使用者權限管理表.級別 LIKE N'%" & PA14 & "%'
54
-                                                AND [HX-PGS-MSN].dbo.人員資料表.部門名稱 LIKE '%" & PA19 & "%'" & SQL3
55
-                Else
56
-                    SQL2 = " AND (使用者權限管理表.CC63 = 1) AND 使用者權限管理表.部門 LIKE N'9%' AND 使用者權限管理表.姓名 NOT LIKE '未啟用%' AND 
57
-                                  使用者權限管理表.級別 LIKE N'%" & PA14 & "%' AND [HX-PGS-MSN].dbo.人員資料表.部門名稱 LIKE '%" & PA19 & "%'" & SQL3
58
-                End If
59
-            End If
60
-            SQL1 = "SELECT     [HX-PGS-MSN].dbo.人員資料表.部門名稱 AS [" & 表頭(25) & "], 使用者權限管理表.姓名 AS [" & 表頭(0) & "], 使用者權限管理表.部門 AS [" & 表頭(19) & "], 
61
-                                使用者權限管理表.ID卡號, [HX-PGS-MSN].dbo.人員資料表.員工代碼 AS [STT], [HX-PGS-MSN].dbo.人員資料表.員工崗位 AS [" & 表頭(24) & "], 
62
-                               [HX-PGS-MSN].dbo.人員資料表.入職日 AS [" & 表頭(22) & "], 
63
-                                使用者權限管理表.級別 AS [" & 表頭(1) & "], 使用者權限管理表.級別 AS [" & 表頭(20) & "], 使用者權限管理表.級別 AS [" & 表頭(21) & "], 
64
-                               [HX-PGS-MSN].dbo.人員資料表.群組 AS [" & 表頭(30) & "], [HX-PGS-MSN].dbo.人員資料表.薪資狀態 AS [" & 表頭(26) & "], 
65
-                               [HX-PGS-MSN].dbo.人員資料表.薪資 AS [" & 表頭(27) & "], [HX-PGS-MSN].dbo.人員資料表.薪資 AS [" & 表頭(28) & "], 
66
-                               [HX-PGS-MSN].dbo.人員資料表.薪資 AS [總數], 使用者權限管理表.級別 AS [" & 表頭(64) & "], 使用者權限管理表.級別 AS [" & 表頭(31) & "], 
67
-                                使用者權限管理表.級別 AS [" & 表頭(32) & "], 使用者權限管理表.級別 AS [" & 表頭(33) & "], 使用者權限管理表.級別 AS [" & 表頭(34) & "], 
68
-                                使用者權限管理表.級別 AS [" & 表頭(35) & "], 使用者權限管理表.級別 AS [" & 表頭(36) & "], 使用者權限管理表.級別 AS [" & 表頭(37) & "], 
69
-                                使用者權限管理表.級別 AS [" & 表頭(38) & "], 使用者權限管理表.級別 AS [" & 表頭(39) & "], 使用者權限管理表.級別 AS [" & 表頭(40) & "], 
70
-                                使用者權限管理表.級別 AS [" & 表頭(41) & "], 使用者權限管理表.級別 AS [" & 表頭(42) & "], 使用者權限管理表.級別 AS [" & 表頭(43) & "], 
71
-                                使用者權限管理表.級別 AS [" & 表頭(58) & "], 使用者權限管理表.級別 AS [" & 表頭(59) & "], 使用者權限管理表.級別 AS [" & 表頭(60) & "], 
72
-                                使用者權限管理表.級別 AS [" & 表頭(61) & "], 使用者權限管理表.級別 AS [" & 表頭(62) & "], 使用者權限管理表.級別 AS [" & 表頭(63) & "], 
73
-                                使用者權限管理表.級別 AS [" & 表頭(44) & "], 使用者權限管理表.級別 AS [" & 表頭(45) & "], 使用者權限管理表.級別 AS [" & 表頭(46) & "], 
74
-                                使用者權限管理表.級別 AS [" & 表頭(47) & "], 使用者權限管理表.級別 AS [" & 表頭(48) & "], 使用者權限管理表.級別 AS [" & 表頭(49) & "], 
75
-                                使用者權限管理表.級別 AS [" & 表頭(50) & "], 使用者權限管理表.級別 AS [" & 表頭(51) & "], 使用者權限管理表.級別 AS [" & 表頭(52) & "], 
76
-                                使用者權限管理表.級別 AS [" & 表頭(53) & "], 使用者權限管理表.級別 AS [" & 表頭(54) & "], 使用者權限管理表.級別 AS [" & 表頭(55) & "], 
77
-                                使用者權限管理表.級別 AS [" & 表頭(56) & "], 使用者權限管理表.級別 AS [" & 表頭(57) & "], HX空白圖片.圖片 AS [Save.], 使用者權限管理表.帳號
78
-                    FROM        使用者權限管理表 LEFT OUTER JOIN
79
-                                HX空白圖片 ON 使用者權限管理表.姓名 = HX空白圖片.選擇 LEFT OUTER JOIN
80
-                                [HX-PGS-MSN].dbo.人員資料表 ON 使用者權限管理表.帳號 = [HX-PGS-MSN].dbo.人員資料表.帳號
81
-                    WHERE      (使用者權限管理表.級別 LIKE '05' OR 使用者權限管理表.級別 LIKE '06' OR 使用者權限管理表.級別 LIKE '07' OR 使用者權限管理表.級別 LIKE '08' OR 
82
-                                使用者權限管理表.級別 LIKE '09') " & SQL2 & " 
83
-                    ORDER BY     " & SQL4
84
-            CmdSet_For_DGV()
85
-        End If
86
-    End Sub
87
-    Friend Sub SQL_人員薪資表2()
88
-        If PA25 = "-1" Or PA25 = "0" Or 工人 = True Then : SQL3 = "" & SQL5
89
-        ElseIf PA25 = "1" Then : SQL3 = " AND 使用者權限管理表.部門 NOT LIKE '3%' " & SQL5
90
-        ElseIf PA25 = "2" Then : SQL3 = " AND 使用者權限管理表.部門 LIKE '3%' " & SQL5 : End If
91
-        If BL = False Then
92
-            ConnOpen()
93
-            If 在職 = True Then
94
-                If 工人 = False Then : SQL2 = " WHERE (使用者權限管理表.CC63 = 0) AND 使用者權限管理表.部門 NOT LIKE N'9%' AND 使用者權限管理表.級別 LIKE N'%" & PA14 & "%' 
95
-                                                       AND [HX-PGS-MSN].dbo.人員資料表.部門名稱 LIKE '%" & PA19 & "%'" & SQL3
96
-                Else
97
-                    SQL2 = " WHERE (使用者權限管理表.CC63 = 0) AND 使用者權限管理表.部門 LIKE N'9%' AND 使用者權限管理表.姓名 NOT LIKE '未啟用%' AND 
98
-                                    使用者權限管理表.級別 LIKE N'%" & PA14 & "%' AND [HX-PGS-MSN].dbo.人員資料表.部門名稱 LIKE '%" & PA19 & "%'" & SQL3
99
-                End If
100
-            Else
101
-                If 工人 = False Then : SQL2 = " WHERE (使用者權限管理表.CC63 = 1) AND 使用者權限管理表.部門 NOT LIKE N'9%' AND 使用者權限管理表.級別 LIKE N'%" & PA14 & "%'" & SQL3
102
-                Else
103
-                    SQL2 = " WHERE (使用者權限管理表.CC63 = 1) AND 使用者權限管理表.部門 LIKE N'9%' AND 使用者權限管理表.姓名 NOT LIKE '未啟用%' AND 
104
-                                    姓名 NOT LIKE 'TEST%' AND 使用者權限管理表.級別 LIKE N'%" & PA14 & "%' AND [HX-PGS-MSN].dbo.人員資料表.部門名稱 LIKE '%" & PA19 & "%'" & SQL3
105
-                End If
106
-            End If
107
-            SQL1 = "SELECT  TOP(1) [HX-PGS-MSN].dbo.人員資料表.部門名稱 AS [" & 表頭(25) & "],使用者權限管理表.姓名 AS [" & 表頭(0) & "], 使用者權限管理表.部門 AS [" & 表頭(19) & "], 
108
-                                    使用者權限管理表.ID卡號, [HX-PGS-MSN].dbo.人員資料表.員工代碼 AS [STT], [HX-PGS-MSN].dbo.人員資料表.員工崗位 AS [" & 表頭(24) & "],  
109
-                                   [HX-PGS-MSN].dbo.人員資料表.入職日 AS [" & 表頭(22) & "], 
110
-                                    使用者權限管理表.級別 AS [" & 表頭(1) & "], 使用者權限管理表.級別 AS [" & 表頭(20) & "], 使用者權限管理表.級別 AS [" & 表頭(21) & "], 
111
-                                   [HX-PGS-MSN].dbo.人員資料表.群組 AS [" & 表頭(30) & "], [HX-PGS-MSN].dbo.人員資料表.薪資狀態 AS [" & 表頭(26) & "], 
112
-                                   [HX-PGS-MSN].dbo.人員資料表.薪資 AS [" & 表頭(27) & "], [HX-PGS-MSN].dbo.人員資料表.薪資 AS [" & 表頭(28) & "], 
113
-                                   [HX-PGS-MSN].dbo.人員資料表.薪資 AS [總數], 使用者權限管理表.級別 AS [" & 表頭(64) & "], 使用者權限管理表.級別 AS [" & 表頭(31) & "], 
114
-                                    使用者權限管理表.級別 AS [" & 表頭(32) & "], 使用者權限管理表.級別 AS [" & 表頭(33) & "], 使用者權限管理表.級別 AS [" & 表頭(34) & "], 
115
-                                    使用者權限管理表.級別 AS [" & 表頭(35) & "], 使用者權限管理表.級別 AS [" & 表頭(36) & "], 使用者權限管理表.級別 AS [" & 表頭(37) & "], 
116
-                                    使用者權限管理表.級別 AS [" & 表頭(38) & "], 使用者權限管理表.級別 AS [" & 表頭(39) & "], 使用者權限管理表.級別 AS [" & 表頭(40) & "], 
117
-                                    使用者權限管理表.級別 AS [" & 表頭(41) & "], 使用者權限管理表.級別 AS [" & 表頭(42) & "], 使用者權限管理表.級別 AS [" & 表頭(43) & "], 
118
-                                    使用者權限管理表.級別 AS [" & 表頭(58) & "], 使用者權限管理表.級別 AS [" & 表頭(59) & "], 使用者權限管理表.級別 AS [" & 表頭(60) & "], 
119
-                                    使用者權限管理表.級別 AS [" & 表頭(61) & "], 使用者權限管理表.級別 AS [" & 表頭(62) & "], 使用者權限管理表.級別 AS [" & 表頭(63) & "], 
120
-                                    使用者權限管理表.級別 AS [" & 表頭(44) & "], 使用者權限管理表.級別 AS [" & 表頭(45) & "], 使用者權限管理表.級別 AS [" & 表頭(46) & "], 
121
-                                    使用者權限管理表.級別 AS [" & 表頭(47) & "], 使用者權限管理表.級別 AS [" & 表頭(48) & "], 使用者權限管理表.級別 AS [" & 表頭(49) & "], 
122
-                                    使用者權限管理表.級別 AS [" & 表頭(50) & "], 使用者權限管理表.級別 AS [" & 表頭(51) & "], 使用者權限管理表.級別 AS [" & 表頭(52) & "], 
123
-                                    使用者權限管理表.級別 AS [" & 表頭(53) & "], 使用者權限管理表.級別 AS [" & 表頭(54) & "], 使用者權限管理表.級別 AS [" & 表頭(55) & "], 
124
-                                    使用者權限管理表.級別 AS [" & 表頭(56) & "], 使用者權限管理表.級別 AS [" & 表頭(57) & "], HX空白圖片.圖片 AS [Save.], 使用者權限管理表.帳號
125
-                    FROM            使用者權限管理表 LEFT OUTER JOIN
126
-                                    HX空白圖片 ON 使用者權限管理表.姓名 = HX空白圖片.選擇 LEFT OUTER JOIN
127
-                                   [HX-PGS-MSN].dbo.人員資料表 ON 使用者權限管理表.帳號 = [HX-PGS-MSN].dbo.人員資料表.帳號 " & SQL2 & "
128
-                    ORDER BY       " & SQL4
129
-            CmdSet_For_DGV()
130
-        Else
131
-            ConnOpen()
132
-            If 在職 = True Then
133
-                If 工人 = False Then : SQL2 = " AND (使用者權限管理表.CC63 = 0) AND (使用者權限管理表.部門 NOT LIKE '9%') AND 使用者權限管理表.級別 LIKE N'%" & PA14 & "%'
134
-                                                AND [HX-PGS-MSN].dbo.人員資料表.部門名稱 LIKE '%" & PA19 & "%'" & SQL3
135
-                Else : SQL2 = " AND (使用者權限管理表.CC63 = 0) AND (使用者權限管理表.部門 LIKE '9%') AND 使用者權限管理表.級別 LIKE N'%" & PA14 & "%'
136
-                                AND [HX-PGS-MSN].dbo.人員資料表.部門名稱 LIKE '%" & PA19 & "%'" & SQL3 : End If
137
-            Else
138
-                If 工人 = False Then : SQL2 = " AND (使用者權限管理表.CC63 = 1) AND 使用者權限管理表.部門 NOT LIKE N'9%' AND 使用者權限管理表.級別 LIKE N'%" & PA14 & "%'
139
-                                                AND [HX-PGS-MSN].dbo.人員資料表.部門名稱 LIKE '%" & PA19 & "%'" & SQL3
140
-                Else
141
-                    SQL2 = " AND (使用者權限管理表.CC63 = 1) AND 使用者權限管理表.部門 LIKE N'9%' AND 使用者權限管理表.姓名 NOT LIKE '未啟用%' AND 
142
-                                  使用者權限管理表.級別 LIKE N'%" & PA14 & "%' AND [HX-PGS-MSN].dbo.人員資料表.部門名稱 LIKE '%" & PA19 & "%'" & SQL3
143
-                End If
144
-            End If
145
-            SQL1 = "SELECT  TOP(1) [HX-PGS-MSN].dbo.人員資料表.部門名稱 AS [" & 表頭(25) & "], 使用者權限管理表.姓名 AS [" & 表頭(0) & "], 使用者權限管理表.部門 AS [" & 表頭(19) & "], 
146
-                                    使用者權限管理表.ID卡號, [HX-PGS-MSN].dbo.人員資料表.員工代碼 AS [STT], [HX-PGS-MSN].dbo.人員資料表.員工崗位 AS [" & 表頭(24) & "], 
147
-                                   [HX-PGS-MSN].dbo.人員資料表.入職日 AS [" & 表頭(22) & "], 
148
-                                    使用者權限管理表.級別 AS [" & 表頭(1) & "], 使用者權限管理表.級別 AS [" & 表頭(20) & "], 使用者權限管理表.級別 AS [" & 表頭(21) & "], 
149
-                                   [HX-PGS-MSN].dbo.人員資料表.群組 AS [" & 表頭(30) & "], [HX-PGS-MSN].dbo.人員資料表.薪資狀態 AS [" & 表頭(26) & "], 
150
-                                   [HX-PGS-MSN].dbo.人員資料表.薪資 AS [" & 表頭(27) & "], [HX-PGS-MSN].dbo.人員資料表.薪資 AS [" & 表頭(28) & "], 
151
-                                   [HX-PGS-MSN].dbo.人員資料表.薪資 AS [總數], 使用者權限管理表.級別 AS [" & 表頭(64) & "], 使用者權限管理表.級別 AS [" & 表頭(31) & "], 
152
-                                    使用者權限管理表.級別 AS [" & 表頭(32) & "], 使用者權限管理表.級別 AS [" & 表頭(33) & "], 使用者權限管理表.級別 AS [" & 表頭(34) & "], 
153
-                                    使用者權限管理表.級別 AS [" & 表頭(35) & "], 使用者權限管理表.級別 AS [" & 表頭(36) & "], 使用者權限管理表.級別 AS [" & 表頭(37) & "], 
154
-                                    使用者權限管理表.級別 AS [" & 表頭(38) & "], 使用者權限管理表.級別 AS [" & 表頭(39) & "], 使用者權限管理表.級別 AS [" & 表頭(40) & "], 
155
-                                    使用者權限管理表.級別 AS [" & 表頭(41) & "], 使用者權限管理表.級別 AS [" & 表頭(42) & "], 使用者權限管理表.級別 AS [" & 表頭(43) & "], 
156
-                                    使用者權限管理表.級別 AS [" & 表頭(58) & "], 使用者權限管理表.級別 AS [" & 表頭(59) & "], 使用者權限管理表.級別 AS [" & 表頭(60) & "], 
157
-                                    使用者權限管理表.級別 AS [" & 表頭(61) & "], 使用者權限管理表.級別 AS [" & 表頭(62) & "], 使用者權限管理表.級別 AS [" & 表頭(63) & "], 
158
-                                    使用者權限管理表.級別 AS [" & 表頭(44) & "], 使用者權限管理表.級別 AS [" & 表頭(45) & "], 使用者權限管理表.級別 AS [" & 表頭(46) & "], 
159
-                                    使用者權限管理表.級別 AS [" & 表頭(47) & "], 使用者權限管理表.級別 AS [" & 表頭(48) & "], 使用者權限管理表.級別 AS [" & 表頭(49) & "], 
160
-                                    使用者權限管理表.級別 AS [" & 表頭(50) & "], 使用者權限管理表.級別 AS [" & 表頭(51) & "], 使用者權限管理表.級別 AS [" & 表頭(52) & "], 
161
-                                    使用者權限管理表.級別 AS [" & 表頭(53) & "], 使用者權限管理表.級別 AS [" & 表頭(54) & "], 使用者權限管理表.級別 AS [" & 表頭(55) & "], 
162
-                                    使用者權限管理表.級別 AS [" & 表頭(56) & "], 使用者權限管理表.級別 AS [" & 表頭(57) & "], HX空白圖片.圖片 AS [Save.], 使用者權限管理表.帳號
163
-                    FROM            使用者權限管理表 LEFT OUTER JOIN
164
-                                    HX空白圖片 ON 使用者權限管理表.姓名 = HX空白圖片.選擇 LEFT OUTER JOIN
165
-                                    [HX-PGS-MSN].dbo.人員資料表 ON 使用者權限管理表.帳號 = [HX-PGS-MSN].dbo.人員資料表.帳號
166
-                    WHERE          (使用者權限管理表.級別 LIKE '05' OR 使用者權限管理表.級別 LIKE '06' OR 使用者權限管理表.級別 LIKE '07' OR 使用者權限管理表.級別 LIKE '08' OR 
167
-                                    使用者權限管理表.級別 LIKE '09') " & SQL2 & " 
168
-                    ORDER BY        " & SQL4
169
-            CmdSet_For_DGV()
170
-        End If
171
-    End Sub
172
-    Friend Sub SQL_考勤虛擬表()
173
-        ConnOpen_管理SQL()
174
-        SQL1 = "SELECT  帳號, 一上, 一下, 二上, 二下, 三上, 三下, 四上, 四下, 五上, 五下, 六上, 六下, 日上, 日下, 日期
175
-                FROM    虛擬考勤明細表  WHERE  (日期 LIKE '" & PA25 & "')"
176
-        CmdSet_For_DGV()
177
-    End Sub
178
-    Friend Sub SQL_特殊供應商()
179
-        ConnOpen() : SQL1 = "SELECT  供應商編碼, 公司名  FROM  供應商資料表  WHERE  (特殊 = 1)" : CmdSet_For_DGV()
180
-    End Sub
181
-    Friend Sub SQL_使用地點()
182
-        ConnOpen() : SQL1 = "SELECT  使用地點  FROM  採購單控制表  GROUP BY 使用地點" : CmdSet_For_DGV()
183
-    End Sub
184
-    Friend Sub SQL_詢價人員()
185
-        ConnOpen() : SQL1 = "SELECT  詢價員  FROM  採購單控制表  GROUP BY 詢價員" : CmdSet_For_DGV()
186
-    End Sub
187
-    Friend Sub SQL_可用物料()
188
-        ConnOpen()
189
-        SQL1 = "SELECT    QQ.供應商編碼, QQ.單價, 物料規格表.料號, 物料編碼庫轉語言.品名, 物料規格表.A1, 物料規格表.A2, 物料規格表.A3, 
190
-                          物料規格表.A4, 物料規格表.A5, 物料規格表.A6, 物料規格表.A7, 物料規格表.A8, 物料編碼庫.單位, 物料規格表.群組碼, 
191
-                          物料規格表.料號原則
192
-                FROM      物料規格表 INNER JOIN 物料編碼庫轉語言 ON 物料規格表.料號原則 = 物料編碼庫轉語言.料號原則 INNER JOIN
193
-                          物料編碼庫 ON 物料規格表.料號原則 = 物料編碼庫.料號原則 INNER JOIN
194
-                         (SELECT    供應商產品清單.供應商編碼, 供應商產品清單.料號, 供應商產品清單.單價
195
-                          FROM      供應商產品清單 INNER JOIN  供應商資料表 ON 供應商產品清單.供應商編碼 = 供應商資料表.供應商編碼
196
-                          WHERE    (供應商資料表.特殊 = 1)
197
-                          GROUP BY  供應商產品清單.供應商編碼, 供應商產品清單.料號, 供應商產品清單.單價) AS QQ ON 
198
-                          物料規格表.料號 = QQ.料號
199
-                WHERE    (物料規格表.特殊 = 1) AND (物料編碼庫轉語言.語言 LIKE '" & 系統語言 & "')
200
-                ORDER BY  QQ.供應商編碼, 物料規格表.料號"
201
-        CmdSet_For_DGV()
202
-    End Sub
203
-    Friend Sub SQL_申請人()
204
-        ConnOpen() : SQL1 = "SELECT  申請人  FROM  採購單明細表  WHERE  (申請人 IS NOT NULL)  GROUP BY  申請人" : CmdSet_For_DGV()
205
-    End Sub
206
-    Friend Sub SQL_合約號()
207
-        ConnOpen() : SQL1 = "SELECT  合約號  FROM  採購單明細表  WHERE  (合約號 NOT LIKE 'P%') AND (合約號 NOT LIKE 'H%') AND (合約號 NOT LIKE '')  GROUP BY  合約號" : CmdSet_For_DGV()
208
-    End Sub
209
-    Friend Sub SQL_該月單號()
210
-        ConnOpen()
211
-        SQL1 = "SELECT  採購單號  FROM  採購單控制表  WHERE  (採購單號 LIKE '%" & 每月零用金設定.年份2_cb.Text & 每月零用金設定.月份2_cb.Text & "%')  ORDER BY  採購單號"
212
-        CmdSet_For_DGV()
213
-    End Sub
214
-    Friend Sub SQL_採購控制表1()
215
-        ConnOpen()
216
-        SQL1 = "SELECT * FROM  採購單控制表 WHERE  (採購單號 LIKE '%" & 每月零用金設定.年份2_cb.Text & 每月零用金設定.月份2_cb.Text & "%') AND  特殊 = 1 ORDER BY 採購單號"
217
-        CmdSet_For_DGV()
218
-    End Sub
219
-    Friend Sub SQL_採購明細表1()
220
-        ConnOpen() : SQL1 = "SELECT * FROM  採購單明細表 " & SQL2 & " ORDER BY 採購單號" : CmdSet_For_DGV()
221
-    End Sub
222
-    Friend Sub SQL_採購控制表()
223
-        ConnOpen() : SQL1 = "SELECT  TOP (" & CInt(每月零用金設定.開單數_nud.Value) & ") * FROM  採購單控制表" : CmdSet_For_DGV()
224
-    End Sub
225
-    Friend Sub SQL_採購明細表()
226
-        ConnOpen() : SQL1 = "SELECT  TOP (" & CInt(每月零用金設定.開單數_nud.Value) * 7 & ") * FROM  採購單明細表" : CmdSet_For_DGV()
227
-    End Sub
228
-    Friend Sub SQL_考勤總明細()
229
-        ConnOpen_管理SQL()
230
-        SQL1 = "SELECT    QQ.ID卡號, 萬年曆.星期 AS MGB, 萬年曆.星期 AS [" & 表頭(2) & "], 萬年曆.日期 AS [" & 表頭(3) & "], QQ.第一, QQ.第二, QQ.第三, QQ.第四, QQ.第五, QQ.第六, 
231
-                          QQ.第一 AS [" & 表頭(4) & "], QQ.第一 AS [" & 表頭(5) & "], QQ.第一 AS [" & 表頭(6) & "], QQ.第一 AS [" & 表頭(7) & "], QQ.第一 AS [" & 表頭(8) & "],
232
-                          QQ.第一 AS [" & 表頭(9) & "], QQ.第一 AS [" & 表頭(10) & "], QQ.第一 AS [" & 表頭(11) & "], QQ.第一 AS [" & 表頭(12) & "], QQ.第一 AS [" & 表頭(13) & "],
233
-                          QQ.第一 AS [" & 表頭(14) & "], QQ.第一 AS [" & 表頭(15) & "], QQ.第一 AS [" & 表頭(16) & "], QQ.加班 AS [" & 表頭(17) & "], 萬年曆.假日 AS [" & 表頭(18) & "]
234
-                FROM      萬年曆 LEFT OUTER JOIN  (SELECT  ID卡號, 日期, 第一, 第二, 第三, 第四, 第五, 第六, 加班
235
-                          FROM    人事考勤明細表) AS QQ ON 萬年曆.日期 = QQ.日期
236
-                WHERE    (LEFT(萬年曆.日期, 7) LIKE '" & PA2 & "/" & PA3 & "')
237
-                ORDER BY  LEFT(萬年曆.日期, 7), 萬年曆.日期"
238
-        CmdSet_For_DGV()
239
-    End Sub
240
-    Friend Sub SQL_考勤級別讀取()
241
-        ConnOpen() : SQL1 = "SELECT 級別 FROM 使用者權限管理表 WHERE (姓名 LIKE N'" & PA47 & "')" : CmdSet_For_dr()
242
-        If BL = False Then
243
-            ConnOpen()
244
-            If PA = "" Then
245
-                If 在職 = True Then : SQL2 = " WHERE (CC63 = 0)" : Else : SQL2 = " WHERE (CC63 = 1)" : End If
246
-                SQL1 = "SELECT  級別 FROM 使用者權限管理表 " & SQL2 & " GROUP BY 級別 ORDER BY 級別"
247
-            Else
248
-                If 登入人級別 = "00" Then : SQL2 = "" : Else : If 在職 = True Then : SQL2 = " AND (CC63 = 0)" : Else : SQL2 = " AND (CC63 = 1)" : End If : End If
249
-                SQL1 = "SELECT    級別 FROM 使用者權限管理表 
250
-                        WHERE   ((姓名 LIKE N'%" & PA & "%') OR (帳號 LIKE N'%" & PA & "%') OR (密碼 LIKE N'%" & PA & "%') OR 
251
-                                 (部門 LIKE N'%" & PA & "%') OR (職稱 LIKE N'%" & PA & "%')) " & SQL2 & "
252
-                        GROUP BY 級別  ORDER BY  級別"
253
-            End If
254
-            CmdSet_For_dr()
255
-        Else
256
-            ConnOpen()
257
-            If PA = "" Then
258
-                If 在職 = True Then : SQL2 = " AND (CC63 = 0)" : Else : SQL2 = " AND (CC63 = 1)" : End If
259
-                SQL1 = "SELECT  級別 FROM 使用者權限管理表 
260
-                        WHERE  (級別 LIKE '05' OR 級別 LIKE '06' OR 級別 LIKE '07' OR 級別 LIKE '08' OR 級別 LIKE '09') " & SQL2 & "  GROUP BY 級別  ORDER BY 級別"
261
-            Else
262
-                SQL1 = "SELECT    級別 FROM 使用者權限管理表 
263
-                        WHERE   ((姓名 LIKE N'%" & PA & "%') OR (帳號 LIKE N'%" & PA & "%') OR (密碼 LIKE N'%" & PA & "%') OR (部門 LIKE N'%" & PA & "%') OR (職稱 LIKE N'%" & PA & "%') AND
264
-                                 (級別 LIKE '05' OR 級別 LIKE '06' OR 級別 LIKE '07' OR 級別 LIKE '08' OR 級別 LIKE '09')) " & SQL2 & "
265
-                        GROUP BY 級別  ORDER BY  級別"
266
-            End If
267
-            CmdSet_For_dr()
268
-        End If
269
-    End Sub
270
-    Friend Sub SQL_年分清單()
271
-        ConnOpen_管理SQL() : SQL1 = "SELECT  LEFT(日期, 4) AS 日期  FROM  人事考勤明細表  GROUP BY   LEFT(日期, 4)  ORDER BY  日期 DESC" : CmdSet_For_dr()
272
-    End Sub
273
-    Friend Sub SQL_人員薪資表_群組()
274
-        ConnOpen_管理SQL() : SQL1 = "SELECT 部門名稱 FROM 人員資料表 WHERE 部門名稱 IS NOT NULL AND 部門名稱 NOT LIKE '' GROUP BY 部門名稱 ORDER BY 部門名稱" : CmdSet_For_dr()
275
-    End Sub
276
-    Friend Sub SQL_人員薪資表_修改()
277
-        ConnOpen_管理SQL()
278
-        SQL1 = "UPDATE 人員資料表 SET 部門名稱 = N'" & PA30 & "', 群組 = N'" & PA31 & "', 薪資 = N'" & PA32 & "' WHERE 帳號 LIKE N'" & PA33 & "'"
279
-        CmdSet_For_dr()
280
-    End Sub
281
-    Friend Sub SQL_虛擬考勤明細表新增()
282
-        ConnOpen_管理SQL()
283
-        SQL1 = "INSERT INTO 虛擬考勤明細表 (帳號, 一上, 一下, 二上, 二下, 三上, 三下, 四上, 四下, 五上, 五下, 六上, 六下, 日上, 日下, 日期) VALUES " & SQL2
284
-        CmdSet_For_dr()
285
-    End Sub
286
-    Friend Sub SQL_虛擬考勤明細表刪除()
287
-        ConnOpen_管理SQL()
288
-        SQL1 = "DELETE 虛擬考勤明細表 WHERE 日期 LIKE '" & PA45 & "'"
289
-        CmdSet_For_dr()
290
-    End Sub
291
-    Friend Sub SQL_財務零用金紀錄_查詢()
292
-        ConnOpen() : SQL1 = "SELECT 金額 FROM 財務零用金紀錄 WHERE (時間 LIKE '" & PA & "')" : CmdSet_For_dr()
293
-    End Sub
294
-    Friend Sub SQL_財務零用金紀錄_新增()
295
-        ConnOpen() : SQL1 = "INSERT INTO 財務零用金紀錄 (時間, 金額) VALUES ('" & PA & "', '" & PA1 & "')" : CmdSet_For_dr()
296
-    End Sub
297
-    Friend Sub SQL_財務零用金紀錄_修改()
298
-        ConnOpen() : SQL1 = "UPDATE 財務零用金紀錄 SET 金額 = '" & PA1 & "' WHERE (時間 LIKE '" & PA & "')" : CmdSet_For_dr()
299
-    End Sub
300
-    Friend Sub SQL_虛擬採購控制表新增()
301
-        ConnOpen()
302
-        SQL1 = "INSERT INTO 採購單控制表 (採購單號, 供應商編號, 需求日期, 使用地點, 核對員, 核對日期, 詢價員, 尋價日期, 核准, 核准日期, 
303
-                            簽名檔編號, 驗證碼, 請購單號, DISC, 稅, PPN, 採購員, 採購日期, 已會計, 已出納, 現金, 備用金, 公帳, 一級核准, 
304
-                            一級核准核准日期, 一級核准簽名檔編號, 特殊) VALUES " & SQL2
305
-        CmdSet_For_dr()
306
-    End Sub
307
-    Friend Sub SQL_虛擬採購明細表新增()
308
-        ConnOpen()
309
-        SQL1 = "INSERT INTO 採購單明細表 (採購單號, 品名, 規格, 備註, 數量, 單位, 單價, 項次, 已收貨, 群組碼, 料號原則, 料號, 已入庫, 已申請入庫, 
310
-                            請購單號, 合約號, 申請人) VALUES " & SQL2
311
-        CmdSet_For_dr()
312
-    End Sub
313
-    Friend Sub SQL_財物支付單申請_查詢財務收支控制表()
314
-        ConnOpen()
315
-        SQL1 = "SELECT    財務收支明細表.流水號 AS [" & 表頭(107) & "], 財務收支控制表.申請日期 AS [" & 表頭(20) & "], 財務收支控制表.申請人  AS [" & 表頭(1) & "], 
316
-                          財務收支控制表.支付單號, 財務收支明細表.銀行, 財務收支明細表.類別, 財務收支明細表.支出, 財務收支明細表.明細, 財務收支明細表.大寫, 
317
-                          財務收支明細表.支付對象, 財務收支控制表.審核人, 財務收支明細表.公帳 AS [" & 表頭(2) & "], 財務收支明細表.備用金 AS [" & 表頭(3) & "], 
318
-                          財務收支明細表.公司, 財務收支明細表.付款銀行, 財務收支明細表.銀行支行
319
-                FROM      財務收支明細表 INNER JOIN
320
-                          財務收支控制表 ON 財務收支明細表.支付單號 = 財務收支控制表.支付單號
321
-                WHERE    (財務收支明細表.流水號 LIKE '%" & PA25 & "')
322
-                ORDER BY  財務收支明細表.流水號 DESC"
323
-        CmdSet_For_DGV()
324
-    End Sub
325
-    Friend Sub SQL_財物支付單申請_查詢財務收支控制表1()
326
-        ConnOpen()
327
-        SQL1 = "SELECT    財務收支明細表.流水號 AS [" & 表頭(107) & "], 財務收支控制表.申請日期 AS [" & 表頭(20) & "], 財務收支控制表.申請人  AS [" & 表頭(1) & "], 
328
-                          財務收支控制表.支付單號, 財務收支明細表.銀行, 財務收支明細表.類別, 財務收支明細表.支出, 財務收支明細表.明細, 財務收支明細表.大寫, 
329
-                          財務收支明細表.支付對象, 財務收支控制表.審核人, 財務收支明細表.公帳 AS [" & 表頭(2) & "], 財務收支明細表.備用金 AS [" & 表頭(3) & "], 
330
-                          財務收支明細表.公司, 財務收支明細表.付款銀行, 財務收支明細表.銀行支行
331
-                FROM      財務收支明細表 INNER JOIN
332
-                          財務收支控制表 ON 財務收支明細表.支付單號 = 財務收支控制表.支付單號
333
-                WHERE    (財務收支明細表.流水號 NOT LIKE 'B%')
334
-                ORDER BY  財務收支控制表.申請日期 DESC"
335
-        CmdSet_For_DGV()
336
-    End Sub
337
-    Friend Sub SQL_部門選單()
338
-        ConnOpen() : SQL1 = "SELECT  部門  FROM  財務部門  ORDER BY  部門" : CmdSet_For_dr()
339
-    End Sub
340
-    Friend Sub SQL_營運成本收支單申請_查詢第一筆公帳支付單號()
341
-        ConnOpen() : SQL1 = "SELECT TOP (1)  支付單號 FROM 財務收支控制表 WHERE ( 支付單號 LIKE N'" & PA & "')" : CmdSet_For_dr()
342
-    End Sub
343
-    Friend Sub SQL_營運成本收支單申請_新增一筆財務收支控制表()
344
-        ConnOpen()
345
-        SQL1 = "INSERT INTO 財務收支控制表 (支付單號, 申請人, 申請日期, 審核人, 審核日期, 會計, 作帳日期, 出納, 出納日期, 備註, 公司編號, 特殊) " &
346
-               "VALUES (N'" & PA & "', N'" & gUserName & "', N'" & DTP & "', N'', N'', N'', N'', N'', N'', N'', N'', '1')"
347
-        CmdSet_For_dr()
348
-    End Sub
349
-    Friend Sub SQL_財物支付單申請_查詢最後一筆公帳支付單號()
350
-        ConnOpen() : SQL1 = "SELECT TOP(1) 流水號 FROM 財務收支明細表  WHERE  (財務收支明細表.流水號 LIKE '%" & PA25 & "') ORDER BY  財務收支明細表.流水號 DESC" : CmdSet_For_dr()
351
-    End Sub
352
-    Friend Sub SQL_新增財物支付單明細表資料()
353
-        ConnOpen()
354
-        SQL1 = "INSERT INTO 財務收支明細表 (流水號, 銀行, 日期, 類別, 收入, 支出, 明細, 人員, 支付單號, 項次, 會計, 出納, 現金, 備用金, 公帳, 支票, 出納日期, 零用金, 支票數, 
355
-                                            匯率, 備註, 大寫, 支付對象, 公司, 付款銀行, 銀行支行) 
356
-                VALUES (N'" & PA19 & "', N'IDR', N'" & DTP & "', N'" & 指定會科 & "', N'" & PA13 & "', N'" & PA14 & "', N'" & PA12 & "', N'" & gUserName & "', N'" & PA15 & "', 
357
-                        N'" & PA11 & "', N'0', N'0', N'0', N'0', N'0', N'0', N'" & DTP & "', N'0', N'0', N'1', N'" & PA37 & "', N'" & PA38 & "', N'" & PA39 & "', N'" & PA40 & "', 
358
-                        N'" & PA41 & "', N'" & PA42 & "')"
359
-        CmdSet_For_dr()
360
-    End Sub
361
-    Friend Sub SQL_營運成本收支單申請_刪除財務收支控制表()
362
-        ConnOpen()
363
-        SQL1 = "DELETE FROM 財務收支控制表 WHERE (支付單號 LIKE N'" & PA45 & "')"
364
-        CmdSet_For_dr()
365
-    End Sub
366
-    Friend Sub SQL_營運成本收支單申請_刪除財務收支明細表()
367
-        ConnOpen()
368
-        SQL1 = "DELETE FROM 財務收支明細表 WHERE (支付單號 LIKE N'" & PA45 & "')"
369
-        CmdSet_For_dr()
370
-    End Sub
371
-    Friend Sub SQL_營運成本收支單審核_審核人3()
372
-        ConnOpen()
373
-        SQL1 = "UPDATE 財務收支控制表 SET 審核人 = N'作廢-" & gUserName & "', 審核日期 = N'" & DTP & "', 備註 = N'" & PA & "' WHERE (支付單號 = N'" & PA42 & "')"
374
-        CmdSet_For_dr()
375
-    End Sub
376
-    Friend Sub SQL_營運成本收支單審核_修改財務收支控制表()
377
-        ConnOpen()
378
-        SQL1 = "UPDATE 財務收支控制表 SET 審核人 = N'" & gUserName & "', 審核日期 = N'" & DTP & "', 核准圖檔 = N'" & PA27 & "', 簽名編碼 = N'" & PA28 & "', 出納 = '" & gUserName & "', 
379
-                       出納日期 = N'" & DTP & "'
380
-                WHERE (支付單號 = N'" & PA29 & "')"
381
-        CmdSet_For_dr()
382
-    End Sub
383
-    Friend Sub SQL_營運成本收支單審核_修改財務收支明細表()
384
-        ConnOpen() : SQL1 = "UPDATE 財務收支明細表 SET 出納 = '1', 出納日期 = N'" & DTP & "' WHERE (支付單號 LIKE N'" & PA29 & "')" : CmdSet_For_dr()
385
-    End Sub
386
-    Friend Sub SQL_營運成本收支單審核_修改財務收支明細表備用金()
387
-        ConnOpen()
388
-        SQL1 = "UPDATE 財務收支明細表 SET  備用金 = N'1' WHERE (支付單號 LIKE N'" & PA29 & "' AND 項次 LIKE N'" & PA1 & "')"
389
-        CmdSet_For_dr()
390
-    End Sub
391
-    Friend Sub SQL_營運成本收支單審核_修改財務收支明細表現金()
392
-        ConnOpen()
393
-        SQL1 = "UPDATE 財務收支明細表 SET  現金 = N'1' WHERE (支付單號 LIKE N'" & PA29 & "' AND 項次 LIKE N'" & PA1 & "')"
394
-        CmdSet_For_dr()
395
-    End Sub
396
-    Friend Sub SQL_營運成本收支單審核_修改財務收支明細表支出()
397
-        ConnOpen()
398
-        SQL1 = "UPDATE 財務收支明細表 SET  公帳 = N'1' WHERE (支付單號 LIKE N'" & PA29 & "' AND 項次 LIKE N'" & PA1 & "')"
399
-        CmdSet_For_dr()
400
-    End Sub
401
-    Friend Sub SQL_財務採購關聯表_反改查詢()
402
-        ConnOpen() : SQL1 = "SELECT 採購單號, 轉財務金額, 流水號 FROM 財務採購關聯表 WHERE (財務單號 LIKE '" & PA20 & "')" : CmdSet_For_DGV()
403
-    End Sub
404
-    Friend Sub SQL_財務採購關聯表_反改()
405
-        ConnOpen() : SQL1 = "DELETE 財務採購關聯表 WHERE (財務單號 LIKE '" & PA20 & "')" : CmdSet_For_dr()
406
-    End Sub
407
-    Friend Sub SQL_採購單控制表_反改查詢()
408
-        ConnOpen() : SQL1 = "SELECT 轉財務金額 FROM 採購單控制表 WHERE (採購單號 LIKE '" & PA21 & "')" : CmdSet_For_dr()
409
-    End Sub
410
-    Friend Sub SQL_採購單控制表_反改()
411
-        ConnOpen() : SQL1 = "UPDATE 採購單控制表 SET 轉財務金額 = '" & PA22 & "' WHERE (採購單號 LIKE '" & PA21 & "')" : CmdSet_For_dr()
412
-    End Sub
413
-    Friend Sub SQL_採購單詢價_控制刪除()
414
-        ConnOpen() : SQL1 = "DELETE FROM 採購單控制表 WHERE (採購單號 LIKE N'" & PA & "')" : CmdSet_For_dr()
415
-    End Sub
416
-    Friend Sub SQL_採購單詢價_明細刪除()
417
-        ConnOpen() : SQL1 = "DELETE FROM 採購單明細表 WHERE (採購單號 LIKE N'" & PA & "')" : CmdSet_For_dr()
418
-    End Sub
419
-End Module

+ 1042
- 0
Calculator-SYS/0、MyModule/資料庫/SQL_語法_1.vb
ファイル差分が大きすぎるため省略します
ファイルの表示


Calculator-SYS/0、MyModule/資料庫/SQL_請採購系統管理.vb → Calculator-SYS/0、MyModule/資料庫/SQL_語法_2.vb ファイルの表示

@@ -1,4 +1,4 @@
1
-Module SQL_請採購系統管理
1
+Module SQL_語法_2
2 2
     Friend Sub SQL_建築物料請購單核准_請購單清單()
3 3
         ConnOpen()
4 4
         If 低網速模式 = False Then : 低網 = ", 物料圖庫.圖檔" : Else : 低網 = "" : End If

+ 1
- 1
Calculator-SYS/10、背景程式與對話視窗/個人帳號管理.vb ファイルの表示

@@ -6,7 +6,7 @@ Public Class 個人帳號管理
6 6
     Dim RI As Integer = -1
7 7
     Dim SK As String = "要查找的 KEY"
8 8
     Dim Str As String = Application.StartupPath
9
-    DIM 對話框(2) As String
9
+    Private ReadOnly 對話框(2) As String
10 10
     Private Sub Set_使用者資料()
11 11
         SQL_使用者資料()
12 12
         If dr.Read() Then : 姓名_rtb.Text = dr("姓名").ToString : 帳號_rtb.Text = dr("帳號").ToString : 密碼_rtb.Text = dr("密碼").ToString

+ 1
- 1
Calculator-SYS/10、背景程式與對話視窗/桌面捷徑設定.vb ファイルの表示

@@ -4,7 +4,7 @@ Public Class 桌面捷徑設定
4 4
     Dim RI As Integer = -1
5 5
     Dim SK As String = "要查找的 KEY"
6 6
     Dim Str As String = Application.StartupPath
7
-    DIM 對話框(9) As String
7
+    Private ReadOnly 對話框(9) As String
8 8
     Private Sub Set_語言()
9 9
         語言_dgv.DataSource = Nothing
10 10
         語言_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing

+ 45
- 2
Calculator-SYS/Calculator-SYS.vbproj ファイルの表示

@@ -50,6 +50,9 @@
50 50
   <PropertyGroup>
51 51
     <ApplicationIcon>ayo9y-pohlq-001.ico</ApplicationIcon>
52 52
   </PropertyGroup>
53
+  <PropertyGroup>
54
+    <ApplicationManifest>app.manifest</ApplicationManifest>
55
+  </PropertyGroup>
53 56
   <ItemGroup>
54 57
     <Reference Include="Microsoft.CSharp" />
55 58
     <Reference Include="Microsoft.Office.Interop.Excel, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
@@ -104,12 +107,36 @@
104 107
     <Compile Include="05、人事考勤系統\選擇考勤月份.vb">
105 108
       <SubType>Form</SubType>
106 109
     </Compile>
110
+    <Compile Include="06、財務系統管理\財務報表3.Designer.vb">
111
+      <DependentUpon>財務報表3.vb</DependentUpon>
112
+    </Compile>
113
+    <Compile Include="06、財務系統管理\財務報表3.vb">
114
+      <SubType>Form</SubType>
115
+    </Compile>
116
+    <Compile Include="06、財務系統管理\財務報表2.Designer.vb">
117
+      <DependentUpon>財務報表2.vb</DependentUpon>
118
+    </Compile>
119
+    <Compile Include="06、財務系統管理\財務報表2.vb">
120
+      <SubType>Form</SubType>
121
+    </Compile>
107 122
     <Compile Include="06、財務系統管理\每月零用金設定.Designer.vb">
108 123
       <DependentUpon>每月零用金設定.vb</DependentUpon>
109 124
     </Compile>
110 125
     <Compile Include="06、財務系統管理\每月零用金設定.vb">
111 126
       <SubType>Form</SubType>
112 127
     </Compile>
128
+    <Compile Include="06、財務系統管理\財務報表1.Designer.vb">
129
+      <DependentUpon>財務報表1.vb</DependentUpon>
130
+    </Compile>
131
+    <Compile Include="06、財務系統管理\財務報表1.vb">
132
+      <SubType>Form</SubType>
133
+    </Compile>
134
+    <Compile Include="06、財務系統管理\財務報表4.Designer.vb">
135
+      <DependentUpon>財務報表4.vb</DependentUpon>
136
+    </Compile>
137
+    <Compile Include="06、財務系統管理\財務報表4.vb">
138
+      <SubType>Form</SubType>
139
+    </Compile>
113 140
     <Compile Include="06、財務系統管理\財物支付單申請_傳票.Designer.vb">
114 141
       <DependentUpon>財物支付單申請_傳票.vb</DependentUpon>
115 142
     </Compile>
@@ -158,6 +185,7 @@
158 185
     <Compile Include="08、資料庫系統管理\系統執行檔版本管理.vb">
159 186
       <SubType>Form</SubType>
160 187
     </Compile>
188
+    <Compile Include="0、MyModule\模組\DGV進度條.vb" />
161 189
     <Compile Include="0、MyModule\模組\GcmProc.vb" />
162 190
     <Compile Include="0、MyModule\模組\SQL_Module.vb" />
163 191
     <Compile Include="0、MyModule\模組\SQL_連線字串.vb" />
@@ -166,9 +194,9 @@
166 194
     <Compile Include="0、MyModule\模組\SQL_連線狀態模組3.vb" />
167 195
     <Compile Include="0、MyModule\模組\全域變數.vb" />
168 196
     <Compile Include="0、MyModule\資料庫\SQL_LINE.vb" />
169
-    <Compile Include="0、MyModule\資料庫\SQL_人事系統管理.vb" />
197
+    <Compile Include="0、MyModule\資料庫\SQL_語法_1.vb" />
170 198
     <Compile Include="0、MyModule\資料庫\SQL_登入與主程式.vb" />
171
-    <Compile Include="0、MyModule\資料庫\SQL_請採購系統管理.vb" />
199
+    <Compile Include="0、MyModule\資料庫\SQL_語法_2.vb" />
172 200
     <Compile Include="10、背景程式與對話視窗\下拉清單_1.Designer.vb">
173 201
       <DependentUpon>下拉清單_1.vb</DependentUpon>
174 202
     </Compile>
@@ -278,9 +306,21 @@
278 306
     <EmbeddedResource Include="05、人事考勤系統\選擇考勤月份.resx">
279 307
       <DependentUpon>選擇考勤月份.vb</DependentUpon>
280 308
     </EmbeddedResource>
309
+    <EmbeddedResource Include="06、財務系統管理\財務報表3.resx">
310
+      <DependentUpon>財務報表3.vb</DependentUpon>
311
+    </EmbeddedResource>
312
+    <EmbeddedResource Include="06、財務系統管理\財務報表2.resx">
313
+      <DependentUpon>財務報表2.vb</DependentUpon>
314
+    </EmbeddedResource>
281 315
     <EmbeddedResource Include="06、財務系統管理\每月零用金設定.resx">
282 316
       <DependentUpon>每月零用金設定.vb</DependentUpon>
283 317
     </EmbeddedResource>
318
+    <EmbeddedResource Include="06、財務系統管理\財務報表1.resx">
319
+      <DependentUpon>財務報表1.vb</DependentUpon>
320
+    </EmbeddedResource>
321
+    <EmbeddedResource Include="06、財務系統管理\財務報表4.resx">
322
+      <DependentUpon>財務報表4.vb</DependentUpon>
323
+    </EmbeddedResource>
284 324
     <EmbeddedResource Include="06、財務系統管理\財物支付單申請_傳票.resx">
285 325
       <DependentUpon>財物支付單申請_傳票.vb</DependentUpon>
286 326
     </EmbeddedResource>
@@ -356,6 +396,7 @@
356 396
     </EmbeddedResource>
357 397
   </ItemGroup>
358 398
   <ItemGroup>
399
+    <None Include="app.manifest" />
359 400
     <None Include="My Project\Application.myapp">
360 401
       <Generator>MyApplicationCodeGenerator</Generator>
361 402
       <LastGenOutput>Application.Designer.vb</LastGenOutput>
@@ -369,6 +410,8 @@
369 410
   </ItemGroup>
370 411
   <ItemGroup>
371 412
     <Content Include="ayo9y-pohlq-001.ico" />
413
+    <None Include="圖片\0hxlogo1.png" />
414
+    <None Include="圖片\visa_2.png" />
372 415
     <None Include="圖片\Report.ico" />
373 416
     <None Include="圖片\ZOOM01.png" />
374 417
     <None Include="圖片\arrow-right.png" />

+ 253
- 22
Calculator-SYS/HX_PGS_ERP_SYS.Designer.vb ファイルの表示

@@ -49,6 +49,8 @@ Partial Class HX_PGS_ERP_SYS
49 49
         Me.採購系統管理_tsm = New System.Windows.Forms.ToolStripMenuItem()
50 50
         Me.請購單核準_tsm = New System.Windows.Forms.ToolStripMenuItem()
51 51
         Me.採購單一級核准_tsm = New System.Windows.Forms.ToolStripMenuItem()
52
+        Me.採購單一覽表_tsm = New System.Windows.Forms.ToolStripMenuItem()
53
+        Me.ToolStripSeparator1 = New System.Windows.Forms.ToolStripSeparator()
52 54
         Me.供應商管理_tsm = New System.Windows.Forms.ToolStripMenuItem()
53 55
         Me.供應商商品單價設定_tsm = New System.Windows.Forms.ToolStripMenuItem()
54 56
         Me.人事系統管理_tsm = New System.Windows.Forms.ToolStripMenuItem()
@@ -56,12 +58,28 @@ Partial Class HX_PGS_ERP_SYS
56 58
         Me.資料庫系統管理_tsm = New System.Windows.Forms.ToolStripMenuItem()
57 59
         Me.財務支付申請_tsm = New System.Windows.Forms.ToolStripMenuItem()
58 60
         Me.財務支付審核_tsm = New System.Windows.Forms.ToolStripMenuItem()
61
+        Me.財務報表1_tsm = New System.Windows.Forms.ToolStripMenuItem()
62
+        Me.財務報表2_tsm = New System.Windows.Forms.ToolStripMenuItem()
63
+        Me.財務報表3_tsm = New System.Windows.Forms.ToolStripMenuItem()
64
+        Me.ToolStripSeparator2 = New System.Windows.Forms.ToolStripSeparator()
59 65
         Me.每月零用金設定_tsm = New System.Windows.Forms.ToolStripMenuItem()
60 66
         Me.系統執行檔版本管理_tsm = New System.Windows.Forms.ToolStripMenuItem()
61 67
         Me.延遲1 = New System.Windows.Forms.Timer(Me.components)
62 68
         Me.Timer1 = New System.Windows.Forms.Timer(Me.components)
63 69
         Me.Timer2 = New System.Windows.Forms.Timer(Me.components)
64 70
         Me.虛擬桌_pl = New System.Windows.Forms.Panel()
71
+        Me.財務報表4_p = New System.Windows.Forms.Panel()
72
+        Me.財務報表4_lb = New System.Windows.Forms.Label()
73
+        Me.財務報表4_pb = New System.Windows.Forms.PictureBox()
74
+        Me.財務報表3_p = New System.Windows.Forms.Panel()
75
+        Me.財務報表3_lb = New System.Windows.Forms.Label()
76
+        Me.財務報表3_pb = New System.Windows.Forms.PictureBox()
77
+        Me.財務報表2_p = New System.Windows.Forms.Panel()
78
+        Me.財務報表2_lb = New System.Windows.Forms.Label()
79
+        Me.財務報表2_pb = New System.Windows.Forms.PictureBox()
80
+        Me.財務報表1_p = New System.Windows.Forms.Panel()
81
+        Me.財務報表1_lb = New System.Windows.Forms.Label()
82
+        Me.財務報表1_pb = New System.Windows.Forms.PictureBox()
65 83
         Me.採購單一覽表_p = New System.Windows.Forms.Panel()
66 84
         Me.採購單一覽表_lb = New System.Windows.Forms.Label()
67 85
         Me.採購單一覽表_pb = New System.Windows.Forms.PictureBox()
@@ -92,12 +110,19 @@ Partial Class HX_PGS_ERP_SYS
92 110
         Me.系統執行檔版本管理_p = New System.Windows.Forms.Panel()
93 111
         Me.系統執行檔版本管理_lb = New System.Windows.Forms.Label()
94 112
         Me.系統執行檔版本管理_pb = New System.Windows.Forms.PictureBox()
95
-        Me.採購單一覽表_tsm = New System.Windows.Forms.ToolStripMenuItem()
96
-        Me.ToolStripSeparator1 = New System.Windows.Forms.ToolStripSeparator()
113
+        Me.財務報表4_tsm = New System.Windows.Forms.ToolStripMenuItem()
97 114
         Me.StatusStrip.SuspendLayout()
98 115
         CType(Me.字體_NUD, System.ComponentModel.ISupportInitialize).BeginInit()
99 116
         Me.MenuStrip.SuspendLayout()
100 117
         Me.虛擬桌_pl.SuspendLayout()
118
+        Me.財務報表4_p.SuspendLayout()
119
+        CType(Me.財務報表4_pb, System.ComponentModel.ISupportInitialize).BeginInit()
120
+        Me.財務報表3_p.SuspendLayout()
121
+        CType(Me.財務報表3_pb, System.ComponentModel.ISupportInitialize).BeginInit()
122
+        Me.財務報表2_p.SuspendLayout()
123
+        CType(Me.財務報表2_pb, System.ComponentModel.ISupportInitialize).BeginInit()
124
+        Me.財務報表1_p.SuspendLayout()
125
+        CType(Me.財務報表1_pb, System.ComponentModel.ISupportInitialize).BeginInit()
101 126
         Me.採購單一覽表_p.SuspendLayout()
102 127
         CType(Me.採購單一覽表_pb, System.ComponentModel.ISupportInitialize).BeginInit()
103 128
         Me.財務支付審核_p.SuspendLayout()
@@ -281,28 +306,40 @@ Partial Class HX_PGS_ERP_SYS
281 306
         '
282 307
         Me.請購單核準_tsm.Image = Global.Calculator_SYS.My.Resources.Resources.check
283 308
         Me.請購單核準_tsm.Name = "請購單核準_tsm"
284
-        Me.請購單核準_tsm.Size = New System.Drawing.Size(180, 22)
309
+        Me.請購單核準_tsm.Size = New System.Drawing.Size(173, 22)
285 310
         Me.請購單核準_tsm.Text = "請購單核準"
286 311
         '
287 312
         '採購單一級核准_tsm
288 313
         '
289 314
         Me.採購單一級核准_tsm.Image = Global.Calculator_SYS.My.Resources.Resources.check
290 315
         Me.採購單一級核准_tsm.Name = "採購單一級核准_tsm"
291
-        Me.採購單一級核准_tsm.Size = New System.Drawing.Size(180, 22)
316
+        Me.採購單一級核准_tsm.Size = New System.Drawing.Size(173, 22)
292 317
         Me.採購單一級核准_tsm.Text = "採購單一級核准"
293 318
         '
319
+        '採購單一覽表_tsm
320
+        '
321
+        Me.採購單一覽表_tsm.Image = Global.Calculator_SYS.My.Resources.Resources.Report
322
+        Me.採購單一覽表_tsm.Name = "採購單一覽表_tsm"
323
+        Me.採購單一覽表_tsm.Size = New System.Drawing.Size(173, 22)
324
+        Me.採購單一覽表_tsm.Text = "採購單一覽表"
325
+        '
326
+        'ToolStripSeparator1
327
+        '
328
+        Me.ToolStripSeparator1.Name = "ToolStripSeparator1"
329
+        Me.ToolStripSeparator1.Size = New System.Drawing.Size(170, 6)
330
+        '
294 331
         '供應商管理_tsm
295 332
         '
296 333
         Me.供應商管理_tsm.Image = Global.Calculator_SYS.My.Resources.Resources.system
297 334
         Me.供應商管理_tsm.Name = "供應商管理_tsm"
298
-        Me.供應商管理_tsm.Size = New System.Drawing.Size(180, 22)
335
+        Me.供應商管理_tsm.Size = New System.Drawing.Size(173, 22)
299 336
         Me.供應商管理_tsm.Text = "供應商管理"
300 337
         '
301 338
         '供應商商品單價設定_tsm
302 339
         '
303 340
         Me.供應商商品單價設定_tsm.Image = Global.Calculator_SYS.My.Resources.Resources.Money2
304 341
         Me.供應商商品單價設定_tsm.Name = "供應商商品單價設定_tsm"
305
-        Me.供應商商品單價設定_tsm.Size = New System.Drawing.Size(180, 22)
342
+        Me.供應商商品單價設定_tsm.Size = New System.Drawing.Size(173, 22)
306 343
         Me.供應商商品單價設定_tsm.Text = "供應商商品單價設定"
307 344
         '
308 345
         '人事系統管理_tsm
@@ -317,12 +354,12 @@ Partial Class HX_PGS_ERP_SYS
317 354
         '
318 355
         Me.人員薪資_tsm.Image = Global.Calculator_SYS.My.Resources.Resources.Money2
319 356
         Me.人員薪資_tsm.Name = "人員薪資_tsm"
320
-        Me.人員薪資_tsm.Size = New System.Drawing.Size(180, 22)
357
+        Me.人員薪資_tsm.Size = New System.Drawing.Size(118, 22)
321 358
         Me.人員薪資_tsm.Text = "人員薪資"
322 359
         '
323 360
         '資料庫系統管理_tsm
324 361
         '
325
-        Me.資料庫系統管理_tsm.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.財務支付申請_tsm, Me.財務支付審核_tsm, Me.每月零用金設定_tsm, Me.系統執行檔版本管理_tsm})
362
+        Me.資料庫系統管理_tsm.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.財務支付申請_tsm, Me.財務支付審核_tsm, Me.財務報表1_tsm, Me.財務報表2_tsm, Me.財務報表3_tsm, Me.財務報表4_tsm, Me.ToolStripSeparator2, Me.每月零用金設定_tsm, Me.系統執行檔版本管理_tsm})
326 363
         Me.資料庫系統管理_tsm.ForeColor = System.Drawing.Color.Black
327 364
         Me.資料庫系統管理_tsm.Image = CType(resources.GetObject("資料庫系統管理_tsm.Image"), System.Drawing.Image)
328 365
         Me.資料庫系統管理_tsm.Name = "資料庫系統管理_tsm"
@@ -333,21 +370,47 @@ Partial Class HX_PGS_ERP_SYS
333 370
         '
334 371
         Me.財務支付申請_tsm.Image = Global.Calculator_SYS.My.Resources.Resources.pen
335 372
         Me.財務支付申請_tsm.Name = "財務支付申請_tsm"
336
-        Me.財務支付申請_tsm.Size = New System.Drawing.Size(173, 22)
373
+        Me.財務支付申請_tsm.Size = New System.Drawing.Size(180, 22)
337 374
         Me.財務支付申請_tsm.Text = "財務支付申請"
338 375
         '
339 376
         '財務支付審核_tsm
340 377
         '
341 378
         Me.財務支付審核_tsm.Image = Global.Calculator_SYS.My.Resources.Resources.check1
342 379
         Me.財務支付審核_tsm.Name = "財務支付審核_tsm"
343
-        Me.財務支付審核_tsm.Size = New System.Drawing.Size(173, 22)
380
+        Me.財務支付審核_tsm.Size = New System.Drawing.Size(180, 22)
344 381
         Me.財務支付審核_tsm.Text = "財務支付審核"
345 382
         '
383
+        '財務報表1_tsm
384
+        '
385
+        Me.財務報表1_tsm.Image = Global.Calculator_SYS.My.Resources.Resources.Report
386
+        Me.財務報表1_tsm.Name = "財務報表1_tsm"
387
+        Me.財務報表1_tsm.Size = New System.Drawing.Size(180, 22)
388
+        Me.財務報表1_tsm.Text = "財務報表-1"
389
+        '
390
+        '財務報表2_tsm
391
+        '
392
+        Me.財務報表2_tsm.Image = Global.Calculator_SYS.My.Resources.Resources.Report
393
+        Me.財務報表2_tsm.Name = "財務報表2_tsm"
394
+        Me.財務報表2_tsm.Size = New System.Drawing.Size(180, 22)
395
+        Me.財務報表2_tsm.Text = "財務報表-2"
396
+        '
397
+        '財務報表3_tsm
398
+        '
399
+        Me.財務報表3_tsm.Image = Global.Calculator_SYS.My.Resources.Resources.Report
400
+        Me.財務報表3_tsm.Name = "財務報表3_tsm"
401
+        Me.財務報表3_tsm.Size = New System.Drawing.Size(180, 22)
402
+        Me.財務報表3_tsm.Text = "財務報表-3"
403
+        '
404
+        'ToolStripSeparator2
405
+        '
406
+        Me.ToolStripSeparator2.Name = "ToolStripSeparator2"
407
+        Me.ToolStripSeparator2.Size = New System.Drawing.Size(177, 6)
408
+        '
346 409
         '每月零用金設定_tsm
347 410
         '
348 411
         Me.每月零用金設定_tsm.Image = Global.Calculator_SYS.My.Resources.Resources.system
349 412
         Me.每月零用金設定_tsm.Name = "每月零用金設定_tsm"
350
-        Me.每月零用金設定_tsm.Size = New System.Drawing.Size(173, 22)
413
+        Me.每月零用金設定_tsm.Size = New System.Drawing.Size(180, 22)
351 414
         Me.每月零用金設定_tsm.Text = "每月零用金設定"
352 415
         '
353 416
         '系統執行檔版本管理_tsm
@@ -355,7 +418,7 @@ Partial Class HX_PGS_ERP_SYS
355 418
         Me.系統執行檔版本管理_tsm.ForeColor = System.Drawing.Color.Black
356 419
         Me.系統執行檔版本管理_tsm.Image = CType(resources.GetObject("系統執行檔版本管理_tsm.Image"), System.Drawing.Image)
357 420
         Me.系統執行檔版本管理_tsm.Name = "系統執行檔版本管理_tsm"
358
-        Me.系統執行檔版本管理_tsm.Size = New System.Drawing.Size(173, 22)
421
+        Me.系統執行檔版本管理_tsm.Size = New System.Drawing.Size(180, 22)
359 422
         Me.系統執行檔版本管理_tsm.Text = "系統執行檔版本管理"
360 423
         '
361 424
         'Timer1
@@ -373,6 +436,10 @@ Partial Class HX_PGS_ERP_SYS
373 436
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
374 437
         Me.虛擬桌_pl.BackgroundImage = Global.Calculator_SYS.My.Resources.Resources._62951168976601486
375 438
         Me.虛擬桌_pl.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch
439
+        Me.虛擬桌_pl.Controls.Add(Me.財務報表4_p)
440
+        Me.虛擬桌_pl.Controls.Add(Me.財務報表3_p)
441
+        Me.虛擬桌_pl.Controls.Add(Me.財務報表2_p)
442
+        Me.虛擬桌_pl.Controls.Add(Me.財務報表1_p)
376 443
         Me.虛擬桌_pl.Controls.Add(Me.採購單一覽表_p)
377 444
         Me.虛擬桌_pl.Controls.Add(Me.財務支付審核_p)
378 445
         Me.虛擬桌_pl.Controls.Add(Me.財務支付申請_p)
@@ -388,6 +455,150 @@ Partial Class HX_PGS_ERP_SYS
388 455
         Me.虛擬桌_pl.Size = New System.Drawing.Size(1350, 682)
389 456
         Me.虛擬桌_pl.TabIndex = 11
390 457
         '
458
+        '財務報表4_p
459
+        '
460
+        Me.財務報表4_p.BackColor = System.Drawing.Color.Transparent
461
+        Me.財務報表4_p.Controls.Add(Me.財務報表4_lb)
462
+        Me.財務報表4_p.Controls.Add(Me.財務報表4_pb)
463
+        Me.財務報表4_p.Location = New System.Drawing.Point(128, 497)
464
+        Me.財務報表4_p.Name = "財務報表4_p"
465
+        Me.財務報表4_p.Size = New System.Drawing.Size(125, 83)
466
+        Me.財務報表4_p.TabIndex = 1770
467
+        '
468
+        '財務報表4_lb
469
+        '
470
+        Me.財務報表4_lb.AutoEllipsis = True
471
+        Me.財務報表4_lb.Cursor = System.Windows.Forms.Cursors.Hand
472
+        Me.財務報表4_lb.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
473
+        Me.財務報表4_lb.ForeColor = System.Drawing.Color.Purple
474
+        Me.財務報表4_lb.Location = New System.Drawing.Point(1, 50)
475
+        Me.財務報表4_lb.Name = "財務報表4_lb"
476
+        Me.財務報表4_lb.Size = New System.Drawing.Size(123, 30)
477
+        Me.財務報表4_lb.TabIndex = 1
478
+        Me.財務報表4_lb.Text = "財務報表-4"
479
+        Me.財務報表4_lb.TextAlign = System.Drawing.ContentAlignment.TopCenter
480
+        '
481
+        '財務報表4_pb
482
+        '
483
+        Me.財務報表4_pb.BackgroundImage = Global.Calculator_SYS.My.Resources.Resources.CC5
484
+        Me.財務報表4_pb.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch
485
+        Me.財務報表4_pb.Cursor = System.Windows.Forms.Cursors.Hand
486
+        Me.財務報表4_pb.Image = Global.Calculator_SYS.My.Resources.Resources.Report
487
+        Me.財務報表4_pb.Location = New System.Drawing.Point(11, 4)
488
+        Me.財務報表4_pb.Name = "財務報表4_pb"
489
+        Me.財務報表4_pb.Size = New System.Drawing.Size(101, 45)
490
+        Me.財務報表4_pb.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom
491
+        Me.財務報表4_pb.TabIndex = 0
492
+        Me.財務報表4_pb.TabStop = False
493
+        '
494
+        '財務報表3_p
495
+        '
496
+        Me.財務報表3_p.BackColor = System.Drawing.Color.Transparent
497
+        Me.財務報表3_p.Controls.Add(Me.財務報表3_lb)
498
+        Me.財務報表3_p.Controls.Add(Me.財務報表3_pb)
499
+        Me.財務報表3_p.Location = New System.Drawing.Point(4, 497)
500
+        Me.財務報表3_p.Name = "財務報表3_p"
501
+        Me.財務報表3_p.Size = New System.Drawing.Size(125, 83)
502
+        Me.財務報表3_p.TabIndex = 1769
503
+        '
504
+        '財務報表3_lb
505
+        '
506
+        Me.財務報表3_lb.AutoEllipsis = True
507
+        Me.財務報表3_lb.Cursor = System.Windows.Forms.Cursors.Hand
508
+        Me.財務報表3_lb.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
509
+        Me.財務報表3_lb.ForeColor = System.Drawing.Color.Purple
510
+        Me.財務報表3_lb.Location = New System.Drawing.Point(1, 50)
511
+        Me.財務報表3_lb.Name = "財務報表3_lb"
512
+        Me.財務報表3_lb.Size = New System.Drawing.Size(123, 30)
513
+        Me.財務報表3_lb.TabIndex = 1
514
+        Me.財務報表3_lb.Text = "財務報表-3"
515
+        Me.財務報表3_lb.TextAlign = System.Drawing.ContentAlignment.TopCenter
516
+        '
517
+        '財務報表3_pb
518
+        '
519
+        Me.財務報表3_pb.BackgroundImage = Global.Calculator_SYS.My.Resources.Resources.CC5
520
+        Me.財務報表3_pb.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch
521
+        Me.財務報表3_pb.Cursor = System.Windows.Forms.Cursors.Hand
522
+        Me.財務報表3_pb.Image = Global.Calculator_SYS.My.Resources.Resources.Report
523
+        Me.財務報表3_pb.Location = New System.Drawing.Point(11, 4)
524
+        Me.財務報表3_pb.Name = "財務報表3_pb"
525
+        Me.財務報表3_pb.Size = New System.Drawing.Size(101, 45)
526
+        Me.財務報表3_pb.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom
527
+        Me.財務報表3_pb.TabIndex = 0
528
+        Me.財務報表3_pb.TabStop = False
529
+        '
530
+        '財務報表2_p
531
+        '
532
+        Me.財務報表2_p.BackColor = System.Drawing.Color.Transparent
533
+        Me.財務報表2_p.Controls.Add(Me.財務報表2_lb)
534
+        Me.財務報表2_p.Controls.Add(Me.財務報表2_pb)
535
+        Me.財務報表2_p.Location = New System.Drawing.Point(128, 415)
536
+        Me.財務報表2_p.Name = "財務報表2_p"
537
+        Me.財務報表2_p.Size = New System.Drawing.Size(125, 83)
538
+        Me.財務報表2_p.TabIndex = 1768
539
+        '
540
+        '財務報表2_lb
541
+        '
542
+        Me.財務報表2_lb.AutoEllipsis = True
543
+        Me.財務報表2_lb.Cursor = System.Windows.Forms.Cursors.Hand
544
+        Me.財務報表2_lb.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
545
+        Me.財務報表2_lb.ForeColor = System.Drawing.Color.Purple
546
+        Me.財務報表2_lb.Location = New System.Drawing.Point(1, 50)
547
+        Me.財務報表2_lb.Name = "財務報表2_lb"
548
+        Me.財務報表2_lb.Size = New System.Drawing.Size(123, 30)
549
+        Me.財務報表2_lb.TabIndex = 1
550
+        Me.財務報表2_lb.Text = "財務報表-2"
551
+        Me.財務報表2_lb.TextAlign = System.Drawing.ContentAlignment.TopCenter
552
+        '
553
+        '財務報表2_pb
554
+        '
555
+        Me.財務報表2_pb.BackgroundImage = Global.Calculator_SYS.My.Resources.Resources.CC5
556
+        Me.財務報表2_pb.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch
557
+        Me.財務報表2_pb.Cursor = System.Windows.Forms.Cursors.Hand
558
+        Me.財務報表2_pb.Image = Global.Calculator_SYS.My.Resources.Resources.Report
559
+        Me.財務報表2_pb.Location = New System.Drawing.Point(11, 4)
560
+        Me.財務報表2_pb.Name = "財務報表2_pb"
561
+        Me.財務報表2_pb.Size = New System.Drawing.Size(101, 45)
562
+        Me.財務報表2_pb.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom
563
+        Me.財務報表2_pb.TabIndex = 0
564
+        Me.財務報表2_pb.TabStop = False
565
+        '
566
+        '財務報表1_p
567
+        '
568
+        Me.財務報表1_p.BackColor = System.Drawing.Color.Transparent
569
+        Me.財務報表1_p.Controls.Add(Me.財務報表1_lb)
570
+        Me.財務報表1_p.Controls.Add(Me.財務報表1_pb)
571
+        Me.財務報表1_p.Location = New System.Drawing.Point(128, 333)
572
+        Me.財務報表1_p.Name = "財務報表1_p"
573
+        Me.財務報表1_p.Size = New System.Drawing.Size(125, 83)
574
+        Me.財務報表1_p.TabIndex = 1767
575
+        '
576
+        '財務報表1_lb
577
+        '
578
+        Me.財務報表1_lb.AutoEllipsis = True
579
+        Me.財務報表1_lb.Cursor = System.Windows.Forms.Cursors.Hand
580
+        Me.財務報表1_lb.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
581
+        Me.財務報表1_lb.ForeColor = System.Drawing.Color.Purple
582
+        Me.財務報表1_lb.Location = New System.Drawing.Point(1, 50)
583
+        Me.財務報表1_lb.Name = "財務報表1_lb"
584
+        Me.財務報表1_lb.Size = New System.Drawing.Size(123, 30)
585
+        Me.財務報表1_lb.TabIndex = 1
586
+        Me.財務報表1_lb.Text = "財務報表-1"
587
+        Me.財務報表1_lb.TextAlign = System.Drawing.ContentAlignment.TopCenter
588
+        '
589
+        '財務報表1_pb
590
+        '
591
+        Me.財務報表1_pb.BackgroundImage = Global.Calculator_SYS.My.Resources.Resources.CC5
592
+        Me.財務報表1_pb.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch
593
+        Me.財務報表1_pb.Cursor = System.Windows.Forms.Cursors.Hand
594
+        Me.財務報表1_pb.Image = Global.Calculator_SYS.My.Resources.Resources.Report
595
+        Me.財務報表1_pb.Location = New System.Drawing.Point(11, 4)
596
+        Me.財務報表1_pb.Name = "財務報表1_pb"
597
+        Me.財務報表1_pb.Size = New System.Drawing.Size(101, 45)
598
+        Me.財務報表1_pb.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom
599
+        Me.財務報表1_pb.TabIndex = 0
600
+        Me.財務報表1_pb.TabStop = False
601
+        '
391 602
         '採購單一覽表_p
392 603
         '
393 604
         Me.採購單一覽表_p.BackColor = System.Drawing.Color.Transparent
@@ -748,17 +959,12 @@ Partial Class HX_PGS_ERP_SYS
748 959
         Me.系統執行檔版本管理_pb.TabIndex = 0
749 960
         Me.系統執行檔版本管理_pb.TabStop = False
750 961
         '
751
-        '採購單一覽表_tsm
962
+        '財務報表4_tsm
752 963
         '
753
-        Me.採購單一覽表_tsm.Image = Global.Calculator_SYS.My.Resources.Resources.Report
754
-        Me.採購單一覽表_tsm.Name = "採購單一覽表_tsm"
755
-        Me.採購單一覽表_tsm.Size = New System.Drawing.Size(180, 22)
756
-        Me.採購單一覽表_tsm.Text = "採購單一覽表"
757
-        '
758
-        'ToolStripSeparator1
759
-        '
760
-        Me.ToolStripSeparator1.Name = "ToolStripSeparator1"
761
-        Me.ToolStripSeparator1.Size = New System.Drawing.Size(177, 6)
964
+        Me.財務報表4_tsm.Image = Global.Calculator_SYS.My.Resources.Resources.Report
965
+        Me.財務報表4_tsm.Name = "財務報表4_tsm"
966
+        Me.財務報表4_tsm.Size = New System.Drawing.Size(180, 22)
967
+        Me.財務報表4_tsm.Text = "財務報表-4"
762 968
         '
763 969
         'HX_PGS_ERP_SYS
764 970
         '
@@ -781,6 +987,14 @@ Partial Class HX_PGS_ERP_SYS
781 987
         Me.MenuStrip.ResumeLayout(False)
782 988
         Me.MenuStrip.PerformLayout()
783 989
         Me.虛擬桌_pl.ResumeLayout(False)
990
+        Me.財務報表4_p.ResumeLayout(False)
991
+        CType(Me.財務報表4_pb, System.ComponentModel.ISupportInitialize).EndInit()
992
+        Me.財務報表3_p.ResumeLayout(False)
993
+        CType(Me.財務報表3_pb, System.ComponentModel.ISupportInitialize).EndInit()
994
+        Me.財務報表2_p.ResumeLayout(False)
995
+        CType(Me.財務報表2_pb, System.ComponentModel.ISupportInitialize).EndInit()
996
+        Me.財務報表1_p.ResumeLayout(False)
997
+        CType(Me.財務報表1_pb, System.ComponentModel.ISupportInitialize).EndInit()
784 998
         Me.採購單一覽表_p.ResumeLayout(False)
785 999
         CType(Me.採購單一覽表_pb, System.ComponentModel.ISupportInitialize).EndInit()
786 1000
         Me.財務支付審核_p.ResumeLayout(False)
@@ -874,4 +1088,21 @@ Partial Class HX_PGS_ERP_SYS
874 1088
     Friend WithEvents 採購單一覽表_pb As PictureBox
875 1089
     Friend WithEvents 採購單一覽表_tsm As ToolStripMenuItem
876 1090
     Friend WithEvents ToolStripSeparator1 As ToolStripSeparator
1091
+    Friend WithEvents 財務報表1_tsm As ToolStripMenuItem
1092
+    Friend WithEvents ToolStripSeparator2 As ToolStripSeparator
1093
+    Friend WithEvents 財務報表1_p As Panel
1094
+    Friend WithEvents 財務報表1_lb As Label
1095
+    Friend WithEvents 財務報表1_pb As PictureBox
1096
+    Friend WithEvents 財務報表2_p As Panel
1097
+    Friend WithEvents 財務報表2_lb As Label
1098
+    Friend WithEvents 財務報表2_pb As PictureBox
1099
+    Friend WithEvents 財務報表2_tsm As ToolStripMenuItem
1100
+    Friend WithEvents 財務報表3_tsm As ToolStripMenuItem
1101
+    Friend WithEvents 財務報表3_p As Panel
1102
+    Friend WithEvents 財務報表3_lb As Label
1103
+    Friend WithEvents 財務報表3_pb As PictureBox
1104
+    Friend WithEvents 財務報表4_p As Panel
1105
+    Friend WithEvents 財務報表4_lb As Label
1106
+    Friend WithEvents 財務報表4_pb As PictureBox
1107
+    Friend WithEvents 財務報表4_tsm As ToolStripMenuItem
877 1108
 End Class

+ 102
- 25
Calculator-SYS/HX_PGS_ERP_SYS.vb ファイルの表示

@@ -3,13 +3,10 @@ Imports System.IO
3 3
 Imports System.Text
4 4
 Public Class HX_PGS_ERP_SYS
5 5
     Private m_ChildFormNumber As Integer
6
-    Dim 對話框(30), 已選捷徑(100) As String
6
+    Private ReadOnly 對話框(30), 已選捷徑(100) As String
7 7
     Dim sysnud As String
8 8
     Dim 系統關閉, 捷徑關閉, 無設定 As Boolean
9 9
     Dim NSD As Integer = 0
10
-    Dim RI As Integer = -1
11
-    Dim SK As String = "要查找的 KEY"
12
-    Dim Str As String = Application.StartupPath
13 10
     Private Sub ShowNewForm(ByVal sender As Object, ByVal e As EventArgs) Handles 開新視窗_tsm.Click
14 11
         ' 建立子表單的新執行個體。
15 12
         ' 將它變成這個 MDI 表單的子表單,然後才顯示。
@@ -51,17 +48,21 @@ Public Class HX_PGS_ERP_SYS
51 48
         '------------------------人事管理系統-------------------------------------------------------------------------------------------------------------------------------------------------
52 49
         人事系統管理_tsm.Text = 系統語言字典("H001-101-" & 語言)
53 50
         人員薪資_tsm.Text = 系統語言字典("H001-272-" & 語言) : 人員薪資_lb.Text = 系統語言字典("H001-272-" & 語言)
51
+        '------------------------財務管理系統-------------------------------------------------------------------------------------------------------------------------------------------------
52
+        系統執行檔版本管理_tsm.Text = 系統語言字典("H001-149-" & 語言) : 系統執行檔版本管理_lb.Text = 系統語言字典("H001-149-" & 語言)
53
+        每月零用金設定_tsm.Text = 系統語言字典("G000-238-" & 語言) : 每月零用金設定_lb.Text = 系統語言字典("G000-238-" & 語言)
54
+        財務支付申請_tsm.Text = 系統語言字典("H001-112-" & 語言) : 財務支付申請_lb.Text = 系統語言字典("H001-112-" & 語言)
55
+        財務支付審核_tsm.Text = 系統語言字典("H001-114-" & 語言) : 財務支付審核_lb.Text = 系統語言字典("H001-114-" & 語言)
56
+        財務報表1_tsm.Text = 系統語言字典("G000-254-" & 語言) : 財務報表1_lb.Text = 系統語言字典("G000-254-" & 語言)
57
+        財務報表2_tsm.Text = 系統語言字典("G000-255-" & 語言) : 財務報表2_lb.Text = 系統語言字典("G000-255-" & 語言)
58
+        財務報表3_tsm.Text = 系統語言字典("G000-256-" & 語言) : 財務報表3_lb.Text = 系統語言字典("G000-256-" & 語言)
59
+        財務報表4_tsm.Text = 系統語言字典("G000-257-" & 語言) : 財務報表4_lb.Text = 系統語言字典("G000-257-" & 語言)
54 60
         '------------------------系統-------------------------------------------------------------------------------------------------------------------------------------------------------
55 61
         桌面捷徑設定_tsm.Text = 系統語言字典("H001-145-" & 語言) : 水平並排_tsm.Text = 系統語言字典("H001-117-" & 語言) : 全部關閉_tsm.Text = 系統語言字典("H001-118-" & 語言)
56 62
         垂直並排_tsm.Text = 系統語言字典("H001-164-" & 語言) : 重疊顯示_tsm.Text = 系統語言字典("H001-177-" & 語言) : 排列圖示_tsm.Text = 系統語言字典("H001-191-" & 語言)
57 63
         結束_tsm.Text = 系統語言字典("H001-197-" & 語言) : 著作權_tss.Text = 系統語言字典("H001-198-" & 語言) : 視窗_tsm.Text = 系統語言字典("H001-199-" & 語言)
58 64
         開新視窗_tsm.Text = 系統語言字典("H001-200-" & 語言) : 檔案_tsm.Text = 系統語言字典("H001-217-" & 語言)
59 65
         資料庫系統管理_tsm.Text = 系統語言字典("H001-205-" & 語言) : sysnud = 系統語言字典("G000-102-" & 語言)
60
-
61
-        系統執行檔版本管理_tsm.Text = 系統語言字典("H001-149-" & 語言) : 系統執行檔版本管理_lb.Text = 系統語言字典("H001-149-" & 語言)
62
-        每月零用金設定_tsm.Text = 系統語言字典("G000-238-" & 語言) : 每月零用金設定_lb.Text = 系統語言字典("G000-238-" & 語言)
63
-        財務支付申請_tsm.Text = 系統語言字典("H001-112-" & 語言) : 財務支付申請_lb.Text = 系統語言字典("H001-112-" & 語言)
64
-        財務支付審核_tsm.Text = 系統語言字典("H001-114-" & 語言) : 財務支付審核_lb.Text = 系統語言字典("H001-114-" & 語言)
65 66
     End Sub
66 67
     Private Sub HX_PGS_ERP_SYS_Load(sender As Object, e As EventArgs) Handles MyBase.Load
67 68
         Me.Size = New Point(1366, 768) : MyMod.清單字體大小調整() : 語言轉換讀取()
@@ -73,7 +74,6 @@ Public Class HX_PGS_ERP_SYS
73 74
 
74 75
         '------------------------系統登入時宣告-------------------------------------------------------------------------------------------------------------------------------------------------
75 76
         系統語言1_cb.Items.Clear() : 系統語言1_cb.Items.Add("繁體中文") : 系統語言1_cb.Items.Add("English") : 系統語言1_cb.Items.Add("Indonesian")
76
-
77 77
         '------------------------採購管理系統-------------------------------------------------------------------------------------------------------------------------------------------------
78 78
         請購單核準_tsm.Visible = CC(34) : 請購單核準_p.Visible = CC(34)
79 79
         If CC(34) = True Then : 捷徑名稱(捷徑數量) = "BC02" : 顯示名稱(捷徑數量) = 請購單核準_tsm.Text : 捷徑類別(捷徑數量) = "採購" : 捷徑數量 += 1 : End If
@@ -88,15 +88,24 @@ Public Class HX_PGS_ERP_SYS
88 88
         '------------------------人事管理系統-------------------------------------------------------------------------------------------------------------------------------------------------
89 89
         人員薪資_tsm.Visible = CC(81) : 人員薪資_p.Visible = CC(81)
90 90
         If CC(81) = True Then : 捷徑名稱(捷徑數量) = "FC08" : 顯示名稱(捷徑數量) = 人員薪資_tsm.Text : 捷徑類別(捷徑數量) = "人事" : 捷徑數量 += 1 : End If
91
-        '------------------------資料庫管理系統-------------------------------------------------------------------------------------------------------------------------------------------------
92
-        系統執行檔版本管理_tsm.Visible = CC(4) : 系統執行檔版本管理_p.Visible = CC(4)
93
-        If CC(4) = True Then : 捷徑名稱(捷徑數量) = "GC01" : 顯示名稱(捷徑數量) = 系統執行檔版本管理_tsm.Text : 捷徑類別(捷徑數量) = "其他" : 捷徑數量 += 1 : End If
91
+        '------------------------財務管理系統-------------------------------------------------------------------------------------------------------------------------------------------------
94 92
         每月零用金設定_tsm.Visible = CC(18) : 每月零用金設定_p.Visible = CC(18)
95
-        If CC(18) = True Then : 捷徑名稱(捷徑數量) = "GC02" : 顯示名稱(捷徑數量) = 每月零用金設定_tsm.Text : 捷徑類別(捷徑數量) = "其他" : 捷徑數量 += 1 : End If
93
+        If CC(18) = True Then : 捷徑名稱(捷徑數量) = "GC01" : 顯示名稱(捷徑數量) = 每月零用金設定_tsm.Text : 捷徑類別(捷徑數量) = "其他" : 捷徑數量 += 1 : End If
94
+        財務報表1_tsm.Visible = CC(18) : 財務報表1_p.Visible = CC(18)
95
+        If CC(18) = True Then : 捷徑名稱(捷徑數量) = "GC02" : 顯示名稱(捷徑數量) = 財務報表1_tsm.Text : 捷徑類別(捷徑數量) = "其他" : 捷徑數量 += 1 : End If
96
+        財務報表2_tsm.Visible = CC(18) : 財務報表2_p.Visible = CC(18)
97
+        If CC(18) = True Then : 捷徑名稱(捷徑數量) = "GC03" : 顯示名稱(捷徑數量) = 財務報表2_tsm.Text : 捷徑類別(捷徑數量) = "其他" : 捷徑數量 += 1 : End If
98
+        財務報表3_tsm.Visible = CC(18) : 財務報表3_p.Visible = CC(18)
99
+        If CC(18) = True Then : 捷徑名稱(捷徑數量) = "GC04" : 顯示名稱(捷徑數量) = 財務報表3_tsm.Text : 捷徑類別(捷徑數量) = "其他" : 捷徑數量 += 1 : End If
100
+        財務報表4_tsm.Visible = CC(18) : 財務報表4_p.Visible = CC(18)
101
+        If CC(18) = True Then : 捷徑名稱(捷徑數量) = "GC05" : 顯示名稱(捷徑數量) = 財務報表4_tsm.Text : 捷徑類別(捷徑數量) = "其他" : 捷徑數量 += 1 : End If
96 102
         財務支付申請_tsm.Visible = CC(76) : 財務支付申請_p.Visible = CC(76)
97 103
         If CC(66) = True Then : 捷徑名稱(捷徑數量) = "EC12" : 顯示名稱(捷徑數量) = 財務支付申請_tsm.Text : 捷徑類別(捷徑數量) = "財務" : 捷徑數量 += 1 : End If
98 104
         財務支付審核_tsm.Visible = CC(77) : 財務支付審核_p.Visible = CC(77)
99 105
         If CC(77) = True Then : 捷徑名稱(捷徑數量) = "EC13" : 顯示名稱(捷徑數量) = 財務支付審核_tsm.Text : 捷徑類別(捷徑數量) = "財務" : 捷徑數量 += 1 : End If
106
+        '------------------------資料庫管理系統-------------------------------------------------------------------------------------------------------------------------------------------------
107
+        系統執行檔版本管理_tsm.Visible = CC(4) : 系統執行檔版本管理_p.Visible = CC(4)
108
+        If CC(4) = True Then : 捷徑名稱(捷徑數量) = "GC01" : 顯示名稱(捷徑數量) = 系統執行檔版本管理_tsm.Text : 捷徑類別(捷徑數量) = "其他" : 捷徑數量 += 1 : End If
100 109
 
101 110
         採購系統管理_tsm.Visible = CC(6) : 人事系統管理_tsm.Visible = CC(22)
102 111
     End Sub
@@ -124,8 +133,6 @@ Public Class HX_PGS_ERP_SYS
124 133
         If 登入人IP = "106.1.48.106,4567" Or 登入人IP = "111.95.41.244,2433" Or 登入人IP = "192.168.0.112,2433" Then
125 134
             MGB(對話框(25), 1)
126 135
         End If
127
-        '-----------------------更新系統公告------------------------------------------------------------------------------------------------------------
128
-        'If 不用WEB = False Then : If File.Exists(Str + "\OPUPDATE.txt") Then : 介面 = "H001" : WEB說明頁面.Show() : File.Delete(Str & "\OPUPDATE.txt") : Else : End If : End If
129 136
     End Sub
130 137
     Private Sub HXGPSERPSYS_Unload(sender As Object, e As EventArgs) Handles MyBase.Closing
131 138
         系統關閉 = True : If 判斷重登 = True Then : 判斷重登 = False : Else : 判斷重登 = False : 計算機.Close() : End If
@@ -234,7 +241,7 @@ Public Class HX_PGS_ERP_SYS
234 241
             If 已經放置 = 0 Then : 人員薪資_p.Location = New Point(0, 0) : X已放 = 0 : Y已放 = 1 : 已經放置 += 1
235 242
             Else : 人員薪資_p.Location = New Point(X已放 * 位置X, Y已放 * 位置Y) : Y已放 += 1 : 已經放置 += 1 : If Y已放 >= Y可放 Then : X已放 += 1 : Y已放 = 0 : End If : End If
236 243
         End If
237
-        '---------其他---------------------------------------------------------------------------------------------------------------
244
+        '---------財務---------------------------------------------------------------------------------------------------------------
238 245
         If 登入人級別 = "00" Then : If 無設定 = True Then : 財務支付申請_p.Visible = False
239 246
             Else : PA20 = "EC12" : 捷徑關閉 = True : 捷徑設定()
240 247
                 If 捷徑關閉 = True Then : 財務支付申請_p.Visible = False : Else : 財務支付申請_p.Visible = True : End If : End If : End If
@@ -252,13 +259,45 @@ Public Class HX_PGS_ERP_SYS
252 259
         End If
253 260
 
254 261
         If 無設定 = True Then : 每月零用金設定_p.Visible = False
255
-        Else : PA20 = "GC02" : 捷徑關閉 = True : 捷徑設定()
262
+        Else : PA20 = "GC01" : 捷徑關閉 = True : 捷徑設定()
256 263
             If 捷徑關閉 = True Then : 每月零用金設定_p.Visible = False : Else : 每月零用金設定_p.Visible = True : End If : End If
257 264
         If 每月零用金設定_p.Visible = True Then : 每月零用金設定_p.Size = New Point(位置X, 位置Y1)
258 265
             If 已經放置 = 0 Then : 每月零用金設定_p.Location = New Point(0, 0) : X已放 = 0 : Y已放 = 1 : 已經放置 += 1
259 266
             Else : 每月零用金設定_p.Location = New Point(X已放 * 位置X, Y已放 * 位置Y) : Y已放 += 1 : 已經放置 += 1 : If Y已放 >= Y可放 Then : X已放 += 1 : Y已放 = 0 : End If : End If
260 267
         End If
261 268
 
269
+        If 無設定 = True Then : 財務報表1_p.Visible = False
270
+            Else : PA20 = "GC02" : 捷徑關閉 = True : 捷徑設定()
271
+            If 捷徑關閉 = True Then : 財務報表1_p.Visible = False : Else : 財務報表1_p.Visible = True : End If : End If
272
+        If 財務報表1_p.Visible = True Then : 財務報表1_p.Size = New Point(位置X, 位置Y1)
273
+            If 已經放置 = 0 Then : 財務報表1_p.Location = New Point(0, 0) : X已放 = 0 : Y已放 = 1 : 已經放置 += 1
274
+            Else : 財務報表1_p.Location = New Point(X已放 * 位置X, Y已放 * 位置Y) : Y已放 += 1 : 已經放置 += 1 : If Y已放 >= Y可放 Then : X已放 += 1 : Y已放 = 0 : End If : End If
275
+        End If
276
+
277
+            If 無設定 = True Then : 財務報表2_p.Visible = False
278
+            Else : PA20 = "GC03" : 捷徑關閉 = True : 捷徑設定()
279
+                If 捷徑關閉 = True Then : 財務報表2_p.Visible = False : Else : 財務報表2_p.Visible = True : End If : End If
280
+        If 財務報表2_p.Visible = True Then : 財務報表2_p.Size = New Point(位置X, 位置Y1)
281
+            If 已經放置 = 0 Then : 財務報表2_p.Location = New Point(0, 0) : X已放 = 0 : Y已放 = 1 : 已經放置 += 1
282
+            Else : 財務報表2_p.Location = New Point(X已放 * 位置X, Y已放 * 位置Y) : Y已放 += 1 : 已經放置 += 1 : If Y已放 >= Y可放 Then : X已放 += 1 : Y已放 = 0 : End If : End If
283
+        End If
284
+
285
+        If 無設定 = True Then : 財務報表3_p.Visible = False
286
+        Else : PA20 = "GC04" : 捷徑關閉 = True : 捷徑設定()
287
+            If 捷徑關閉 = True Then : 財務報表3_p.Visible = False : Else : 財務報表3_p.Visible = True : End If : End If
288
+        If 財務報表3_p.Visible = True Then : 財務報表3_p.Size = New Point(位置X, 位置Y1)
289
+            If 已經放置 = 0 Then : 財務報表3_p.Location = New Point(0, 0) : X已放 = 0 : Y已放 = 1 : 已經放置 += 1
290
+            Else : 財務報表3_p.Location = New Point(X已放 * 位置X, Y已放 * 位置Y) : Y已放 += 1 : 已經放置 += 1 : If Y已放 >= Y可放 Then : X已放 += 1 : Y已放 = 0 : End If : End If
291
+        End If
292
+
293
+        If 無設定 = True Then : 財務報表4_p.Visible = False
294
+        Else : PA20 = "GC05" : 捷徑關閉 = True : 捷徑設定()
295
+            If 捷徑關閉 = True Then : 財務報表4_p.Visible = False : Else : 財務報表4_p.Visible = True : End If : End If
296
+        If 財務報表4_p.Visible = True Then : 財務報表4_p.Size = New Point(位置X, 位置Y1)
297
+            If 已經放置 = 0 Then : 財務報表4_p.Location = New Point(0, 0) : X已放 = 0 : Y已放 = 1 : 已經放置 += 1
298
+            Else : 財務報表4_p.Location = New Point(X已放 * 位置X, Y已放 * 位置Y) : Y已放 += 1 : 已經放置 += 1 : If Y已放 >= Y可放 Then : X已放 += 1 : Y已放 = 0 : End If : End If
299
+        End If
300
+        '---------其他---------------------------------------------------------------------------------------------------------------
262 301
         If 無設定 = True Then : 系統執行檔版本管理_p.Visible = False
263 302
         Else : PA20 = "GC01" : 捷徑關閉 = True : 捷徑設定()
264 303
             If 捷徑關閉 = True Then : 系統執行檔版本管理_p.Visible = False : Else : 系統執行檔版本管理_p.Visible = True : End If : End If
@@ -275,8 +314,9 @@ Public Class HX_PGS_ERP_SYS
275 314
     Private Sub 系統語言1_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 系統語言1_cb.SelectedIndexChanged
276 315
         SYS_SET_tsm.Text = 系統語言1_cb.Text : 系統語言 = 系統語言1_cb.Text : 介面 = "H001" : 語言轉換讀取()
277 316
         '-------------------------------H0系列-系統---------------------------------------------------------------------------------------------------------------------------------------
278
-        If H(3) = True Then : 介面 = "H003" : 桌面捷徑設定.語轉扭_bt.PerformClick() : End If : If H(314) = True Then : 介面 = "H314" : 財物支付單申請_傳票.語轉扭_bt.PerformClick() : End If
279
-        If H(610) = True Then : 介面 = "H610" : 每月零用金設定.語轉扭_bt.PerformClick() : End If
317
+        If H(3) = True Then : 介面 = "H003" : 桌面捷徑設定.語轉扭_bt.PerformClick() : End If
318
+        '-------------------------------H0系列-財務---------------------------------------------------------------------------------------------------------------------------------------
319
+        If H(314) = True Then : 介面 = "H314" : 財物支付單申請_傳票.語轉扭_bt.PerformClick() : End If : If H(612) = True Then : 介面 = "H612" : 每月零用金設定.語轉扭_bt.PerformClick() : End If
280 320
         '-------------------------------H2系列-採購---------------------------------------------------------------------------------------------------------------------------------------
281 321
         If H(202) = True Then : 介面 = "H202" : 請購單核准.語轉扭_bt.PerformClick() : End If : If H(206) = True Then : 介面 = "H206" : 採購單一級核准.語轉扭_bt.PerformClick() : End If
282 322
         '-------------------------------H6系列-人事---------------------------------------------------------------------------------------------------------------------------------------
@@ -369,8 +409,8 @@ Public Class HX_PGS_ERP_SYS
369 409
         人員薪資_tsm.PerformClick()
370 410
     End Sub
371 411
     Private Sub 財務支付審核_tsm_Click(sender As Object, e As EventArgs) Handles 財務支付審核_tsm.Click
372
-        'For Each ChildForm As Form In Me.MdiChildren : ChildForm.Close() : Next 
373
-        '虛擬桌面隱藏() : 重登計時() : 重置()
412
+        For Each ChildForm As Form In Me.MdiChildren : ChildForm.Close() : Next
413
+        虛擬桌面隱藏() : 重登計時() : 重置()
374 414
         跨部門開啟 = True : 財物支付單申請_傳票.Show() : 財物支付單申請_傳票.BringToFront()
375 415
     End Sub
376 416
     Private Sub 財務支付審核_pb_Click(sender As Object, e As EventArgs) Handles 財務支付審核_pb.Click
@@ -380,8 +420,6 @@ Public Class HX_PGS_ERP_SYS
380 420
         財務支付審核_tsm.PerformClick()
381 421
     End Sub
382 422
     Private Sub 財務支付申請_tsm_Click(sender As Object, e As EventArgs) Handles 財務支付申請_tsm.Click
383
-        'For Each ChildForm As Form In Me.MdiChildren : ChildForm.Close() : Next
384
-        '虛擬桌面隱藏() : 重登計時() : 重置()
385 423
         跨部門開啟 = False : 財物支付單申請_傳票.Show() : 財物支付單申請_傳票.BringToFront()
386 424
     End Sub
387 425
     Private Sub 財務支付申請_pb_Click(sender As Object, e As EventArgs) Handles 財務支付申請_pb.Click
@@ -404,7 +442,46 @@ Public Class HX_PGS_ERP_SYS
404 442
     Private Sub 每月零用金設定_lb_Click(sender As Object, e As EventArgs) Handles 每月零用金設定_lb.Click
405 443
         每月零用金設定_tsm.PerformClick()
406 444
     End Sub
407
-
445
+    Private Sub 財務報表1_tsm_Click(sender As Object, e As EventArgs) Handles 財務報表1_tsm.Click
446
+        For Each ChildForm As Form In Me.MdiChildren : ChildForm.Close() : Next
447
+        虛擬桌面隱藏() : 重登計時() : 重置() : 財務報表1.Show() : 財務報表1.BringToFront()
448
+    End Sub
449
+    Private Sub 財務報表1_pb_Click(sender As Object, e As EventArgs) Handles 財務報表1_pb.Click
450
+        財務報表1_tsm.PerformClick()
451
+    End Sub
452
+    Private Sub 財務報表1_lb_Click(sender As Object, e As EventArgs) Handles 財務報表1_lb.Click
453
+        財務報表1_tsm.PerformClick()
454
+    End Sub
455
+    Private Sub 財務報表2_tsm_Click(sender As Object, e As EventArgs) Handles 財務報表2_tsm.Click
456
+        For Each ChildForm As Form In Me.MdiChildren : ChildForm.Close() : Next
457
+        虛擬桌面隱藏() : 重登計時() : 重置() : 財務報表2.Show() : 財務報表2.BringToFront()
458
+    End Sub
459
+    Private Sub 財務報表2_pb_Click(sender As Object, e As EventArgs) Handles 財務報表2_pb.Click
460
+        財務報表2_tsm.PerformClick()
461
+    End Sub
462
+    Private Sub 財務報表2_lb_Click(sender As Object, e As EventArgs) Handles 財務報表2_lb.Click
463
+        財務報表2_tsm.PerformClick()
464
+    End Sub
465
+    Private Sub 財務報表3_tsm_Click(sender As Object, e As EventArgs) Handles 財務報表3_tsm.Click
466
+        For Each ChildForm As Form In Me.MdiChildren : ChildForm.Close() : Next
467
+        虛擬桌面隱藏() : 重登計時() : 重置() : 財務報表3.Show() : 財務報表3.BringToFront()
468
+    End Sub
469
+    Private Sub 財務報表3_pb_Click(sender As Object, e As EventArgs) Handles 財務報表3_pb.Click
470
+        財務報表3_tsm.PerformClick()
471
+    End Sub
472
+    Private Sub 財務報表3_lb_Click(sender As Object, e As EventArgs) Handles 財務報表3_lb.Click
473
+        財務報表3_tsm.PerformClick()
474
+    End Sub
475
+    Private Sub 財務報表4_tsm_Click(sender As Object, e As EventArgs) Handles 財務報表4_tsm.Click
476
+        For Each ChildForm As Form In Me.MdiChildren : ChildForm.Close() : Next
477
+        虛擬桌面隱藏() : 重登計時() : 重置() : 財務報表4.Show() : 財務報表4.BringToFront()
478
+    End Sub
479
+    Private Sub 財務報表4_pb_Click(sender As Object, e As EventArgs) Handles 財務報表4_pb.Click
480
+        財務報表4_tsm.PerformClick()
481
+    End Sub
482
+    Private Sub 財務報表4_lb_Click(sender As Object, e As EventArgs) Handles 財務報表4_lb.Click
483
+        財務報表4_tsm.PerformClick()
484
+    End Sub
408 485
     Private Sub 系統執行檔版本管理_tsm_Click(sender As Object, e As EventArgs) Handles 系統執行檔版本管理_tsm.Click
409 486
         For Each ChildForm As Form In Me.MdiChildren : ChildForm.Close() : Next
410 487
         虛擬桌面隱藏() : 重登計時() : 重置() : 系統執行檔版本管理.Show() : 系統執行檔版本管理.BringToFront()

+ 1
- 1
Calculator-SYS/LoginForm1.vb ファイルの表示

@@ -17,7 +17,7 @@ Public Class LoginForm1
17 17
     Dim diskId As String '數字ID
18 18
     Dim diskSerialNumber As String '硬碟序列
19 19
     Dim diskModel As String '磁盘型態
20
-    Dim 對話框(15) As String : Dim FFGG As Integer : Dim GGHH As Integer
20
+    Private ReadOnly 對話框(15) As String : Dim FFGG As Integer : Dim GGHH As Integer
21 21
     Dim Str As String = Application.StartupPath
22 22
     Private Sub 語言轉換讀取()
23 23
         If 系統語言 = "繁體中文" Then : 語言 = "CH" : ElseIf 系統語言 = "English" Then : 語言 = "EN" : ElseIf 系統語言 = "Indonesian" Then : 語言 = "IN" : End If

+ 30
- 0
Calculator-SYS/My Project/Resources.Designer.vb ファイルの表示

@@ -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 _0hxlogo1() As System.Drawing.Bitmap
67
+            Get
68
+                Dim obj As Object = ResourceManager.GetObject("0hxlogo1", 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>
@@ -330,6 +340,16 @@ Namespace My.Resources
330 340
             End Get
331 341
         End Property
332 342
         
343
+        '''<summary>
344
+        '''  查詢類型 System.Drawing.Bitmap 的當地語系化資源。
345
+        '''</summary>
346
+        Friend ReadOnly Property NULL11() As System.Drawing.Bitmap
347
+            Get
348
+                Dim obj As Object = ResourceManager.GetObject("NULL11", resourceCulture)
349
+                Return CType(obj,System.Drawing.Bitmap)
350
+            End Get
351
+        End Property
352
+        
333 353
         '''<summary>
334 354
         '''  查詢類型 System.Drawing.Bitmap 的當地語系化資源。
335 355
         '''</summary>
@@ -500,6 +520,16 @@ Namespace My.Resources
500 520
             End Get
501 521
         End Property
502 522
         
523
+        '''<summary>
524
+        '''  查詢類型 System.Drawing.Bitmap 的當地語系化資源。
525
+        '''</summary>
526
+        Friend ReadOnly Property visa_2() As System.Drawing.Bitmap
527
+            Get
528
+                Dim obj As Object = ResourceManager.GetObject("visa_2", resourceCulture)
529
+                Return CType(obj,System.Drawing.Bitmap)
530
+            End Get
531
+        End Property
532
+        
503 533
         '''<summary>
504 534
         '''  查詢類型 System.Drawing.Bitmap 的當地語系化資源。
505 535
         '''</summary>

+ 43
- 34
Calculator-SYS/My Project/Resources.resx ファイルの表示

@@ -130,24 +130,24 @@
130 130
   <data name="SAVER2" type="System.Resources.ResXFileRef, System.Windows.Forms">
131 131
     <value>..\圖片\SAVER2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
132 132
   </data>
133
-  <data name="ZOOM01" type="System.Resources.ResXFileRef, System.Windows.Forms">
134
-    <value>..\圖片\ZOOM01.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
133
+  <data name="工具" type="System.Resources.ResXFileRef, System.Windows.Forms">
134
+    <value>..\圖片\工具.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
135 135
   </data>
136
-  <data name="pen" type="System.Resources.ResXFileRef, System.Windows.Forms">
137
-    <value>..\圖片\pen.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
136
+  <data name="check1" type="System.Resources.ResXFileRef, System.Windows.Forms">
137
+    <value>..\圖片\check.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
138 138
   </data>
139 139
   <data name="62951168976601486" type="System.Resources.ResXFileRef, System.Windows.Forms">
140 140
     <value>..\圖片\62951168976601486.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
141 141
   </data>
142
-  <data name="User Clients-01" type="System.Resources.ResXFileRef, System.Windows.Forms">
143
-    <value>..\圖片\User Clients-01.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
142
+  <data name="CC5" type="System.Resources.ResXFileRef, System.Windows.Forms">
143
+    <value>..\圖片\CC5.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
144
+  </data>
145
+  <data name="其他" type="System.Resources.ResXFileRef, System.Windows.Forms">
146
+    <value>..\圖片\其他.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
144 147
   </data>
145 148
   <data name="管材" type="System.Resources.ResXFileRef, System.Windows.Forms">
146 149
     <value>..\圖片\管材.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
147 150
   </data>
148
-  <data name="R180" type="System.Resources.ResXFileRef, System.Windows.Forms">
149
-    <value>..\圖片\R180.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
150
-  </data>
151 151
   <data name="Shipping4" type="System.Resources.ResXFileRef, System.Windows.Forms">
152 152
     <value>..\圖片\Shipping4.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
153 153
   </data>
@@ -163,8 +163,8 @@
163 163
   <data name="CC2" type="System.Resources.ResXFileRef, System.Windows.Forms">
164 164
     <value>..\圖片\CC2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
165 165
   </data>
166
-  <data name="renew" type="System.Resources.ResXFileRef, System.Windows.Forms">
167
-    <value>..\圖片\renew.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
166
+  <data name="check" type="System.Resources.ResXFileRef, System.Windows.Forms">
167
+    <value>..\圖片\check.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
168 168
   </data>
169 169
   <data name="approve1" type="System.Resources.ResXFileRef, System.Windows.Forms">
170 170
     <value>..\圖片\approve1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
@@ -178,6 +178,9 @@
178 178
   <data name="buy1" type="System.Resources.ResXFileRef, System.Windows.Forms">
179 179
     <value>..\圖片\buy1.ico;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
180 180
   </data>
181
+  <data name="visa_2" type="System.Resources.ResXFileRef, System.Windows.Forms">
182
+    <value>..\圖片\visa_2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
183
+  </data>
181 184
   <data name="Bar Chart" type="System.Resources.ResXFileRef, System.Windows.Forms">
182 185
     <value>..\圖片\Bar Chart.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
183 186
   </data>
@@ -199,6 +202,9 @@
199 202
   <data name="Fire" type="System.Resources.ResXFileRef, System.Windows.Forms">
200 203
     <value>..\圖片\Fire.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
201 204
   </data>
205
+  <data name="NULL11" type="System.Resources.ResXFileRef, System.Windows.Forms">
206
+    <value>..\圖片\NULL1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
207
+  </data>
202 208
   <data name="電料" type="System.Resources.ResXFileRef, System.Windows.Forms">
203 209
     <value>..\圖片\電料.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
204 210
   </data>
@@ -217,11 +223,8 @@
217 223
   <data name="1_103" type="System.Resources.ResXFileRef, System.Windows.Forms">
218 224
     <value>..\圖片\1_103.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
219 225
   </data>
220
-  <data name="Select" type="System.Resources.ResXFileRef, System.Windows.Forms">
221
-    <value>..\圖片\Select.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
222
-  </data>
223
-  <data name="Money2" type="System.Resources.ResXFileRef, System.Windows.Forms">
224
-    <value>..\圖片\Money2.ico;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
226
+  <data name="Report" type="System.Resources.ResXFileRef, System.Windows.Forms">
227
+    <value>..\圖片\Report.ico;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
225 228
   </data>
226 229
   <data name="GarbageEmpty" type="System.Resources.ResXFileRef, System.Windows.Forms">
227 230
     <value>..\圖片\GarbageEmpty.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
@@ -229,11 +232,14 @@
229 232
   <data name="HXLOGO01" type="System.Resources.ResXFileRef, System.Windows.Forms">
230 233
     <value>..\圖片\HXLOGO01.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
231 234
   </data>
232
-  <data name="check" type="System.Resources.ResXFileRef, System.Windows.Forms">
233
-    <value>..\圖片\check.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
235
+  <data name="renew" type="System.Resources.ResXFileRef, System.Windows.Forms">
236
+    <value>..\圖片\renew.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
234 237
   </data>
235
-  <data name="arrow-right" type="System.Resources.ResXFileRef, System.Windows.Forms">
236
-    <value>..\圖片\arrow-right.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
238
+  <data name="R180" type="System.Resources.ResXFileRef, System.Windows.Forms">
239
+    <value>..\圖片\R180.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
240
+  </data>
241
+  <data name="Select" type="System.Resources.ResXFileRef, System.Windows.Forms">
242
+    <value>..\圖片\Select.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
237 243
   </data>
238 244
   <data name="approve2" type="System.Resources.ResXFileRef, System.Windows.Forms">
239 245
     <value>..\圖片\approve2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
@@ -241,8 +247,8 @@
241 247
   <data name="L180" type="System.Resources.ResXFileRef, System.Windows.Forms">
242 248
     <value>..\圖片\L180.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
243 249
   </data>
244
-  <data name="print" type="System.Resources.ResXFileRef, System.Windows.Forms">
245
-    <value>..\圖片\print.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
250
+  <data name="User Clients-01" type="System.Resources.ResXFileRef, System.Windows.Forms">
251
+    <value>..\圖片\User Clients-01.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
246 252
   </data>
247 253
   <data name="question-mark" type="System.Resources.ResXFileRef, System.Windows.Forms">
248 254
     <value>..\圖片\question-mark.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
@@ -250,26 +256,29 @@
250 256
   <data name="Close" type="System.Resources.ResXFileRef, System.Windows.Forms">
251 257
     <value>..\圖片\Close.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
252 258
   </data>
253
-  <data name="CC1" type="System.Resources.ResXFileRef, System.Windows.Forms">
254
-    <value>..\圖片\CC1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
259
+  <data name="arrow-right" type="System.Resources.ResXFileRef, System.Windows.Forms">
260
+    <value>..\圖片\arrow-right.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
255 261
   </data>
256
-  <data name="其他" type="System.Resources.ResXFileRef, System.Windows.Forms">
257
-    <value>..\圖片\其他.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
262
+  <data name="ZOOM01" type="System.Resources.ResXFileRef, System.Windows.Forms">
263
+    <value>..\圖片\ZOOM01.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
258 264
   </data>
259 265
   <data name="設備" type="System.Resources.ResXFileRef, System.Windows.Forms">
260 266
     <value>..\圖片\設備.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
261 267
   </data>
262
-  <data name="check1" type="System.Resources.ResXFileRef, System.Windows.Forms">
263
-    <value>..\圖片\check.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
268
+  <data name="Money2" type="System.Resources.ResXFileRef, System.Windows.Forms">
269
+    <value>..\圖片\Money2.ico;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
264 270
   </data>
265 271
   <data name="Search" type="System.Resources.ResXFileRef, System.Windows.Forms">
266 272
     <value>..\圖片\Search.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
267 273
   </data>
274
+  <data name="print" type="System.Resources.ResXFileRef, System.Windows.Forms">
275
+    <value>..\圖片\print.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
276
+  </data>
268 277
   <data name="cancel-button" type="System.Resources.ResXFileRef, System.Windows.Forms">
269 278
     <value>..\圖片\cancel-button.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
270 279
   </data>
271
-  <data name="工具" type="System.Resources.ResXFileRef, System.Windows.Forms">
272
-    <value>..\圖片\工具.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
280
+  <data name="CC1" type="System.Resources.ResXFileRef, System.Windows.Forms">
281
+    <value>..\圖片\CC1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
273 282
   </data>
274 283
   <data name="R90" type="System.Resources.ResXFileRef, System.Windows.Forms">
275 284
     <value>..\圖片\R90.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
@@ -280,13 +289,13 @@
280 289
   <data name="槽架" type="System.Resources.ResXFileRef, System.Windows.Forms">
281 290
     <value>..\圖片\槽架.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
282 291
   </data>
283
-  <data name="CC5" type="System.Resources.ResXFileRef, System.Windows.Forms">
284
-    <value>..\圖片\CC5.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
292
+  <data name="pen" type="System.Resources.ResXFileRef, System.Windows.Forms">
293
+    <value>..\圖片\pen.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
285 294
   </data>
286 295
   <data name="pen2" type="System.Resources.ResXFileRef, System.Windows.Forms">
287 296
     <value>..\圖片\pen2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
288 297
   </data>
289
-  <data name="Report" type="System.Resources.ResXFileRef, System.Windows.Forms">
290
-    <value>..\圖片\Report.ico;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
298
+  <data name="0hxlogo1" type="System.Resources.ResXFileRef, System.Windows.Forms">
299
+    <value>..\圖片\0hxlogo1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
291 300
   </data>
292 301
 </root>

+ 1
- 0
Calculator-SYS/My Project/licenses.licx ファイルの表示

@@ -1 +1,2 @@
1 1
 Telerik.WinControls.UI.Barcode.RadBarcodeView, Telerik.WinControls.UI, Version=2023.1.314.48, Culture=neutral, PublicKeyToken=5bb2a467cbec794e
2
+Telerik.WinControls.UI.RadTrackBar, Telerik.WinControls.UI, Version=2023.1.314.48, Culture=neutral, PublicKeyToken=5bb2a467cbec794e

+ 79
- 0
Calculator-SYS/app.manifest ファイルの表示

@@ -0,0 +1,79 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
3
+  <assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
4
+  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
5
+    <security>
6
+      <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
7
+        <!-- UAC 資訊清單選項
8
+             如果要變更 Windows 使用者帳戶控制層級,請將 
9
+             requestedExecutionLevel 節點以下列其中之一取代。
10
+
11
+        <requestedExecutionLevel  level="asInvoker" uiAccess="false" />
12
+        <requestedExecutionLevel  level="requireAdministrator" uiAccess="false" />
13
+        <requestedExecutionLevel  level="highestAvailable" uiAccess="false" />
14
+
15
+            指定 requestedExecutionLevel 項目會停用檔案及登錄虛擬化。
16
+            如果您的應用程式需要針對回溯相容性進行這項虛擬化,請移除這個
17
+            項目。
18
+        -->
19
+        <requestedExecutionLevel level="highestAvailable" uiAccess="false" />
20
+      </requestedPrivileges>
21
+    </security>
22
+  </trustInfo>
23
+
24
+  <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
25
+    <application>
26
+      <!-- 此應用程式已通過測試,並設計要搭配使用的
27
+           應用程式版本清單。請取消註解適當元素,
28
+           Windows 就會自動選取最相容的環境。 -->
29
+
30
+      <!-- Windows Vista -->
31
+      <!--<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}" />-->
32
+
33
+      <!-- Windows 7 -->
34
+      <!--<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}" />-->
35
+
36
+      <!-- Windows 8 -->
37
+      <!--<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}" />-->
38
+
39
+      <!-- Windows 8.1 -->
40
+      <!--<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}" />-->
41
+
42
+      <!-- Windows 10 -->
43
+      <!--<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />-->
44
+
45
+    </application>
46
+  </compatibility>
47
+
48
+  <!-- 表示應用程式為 DPI 感知,Windows 不會在 DPI 變高時自動
49
+       縮放。Windows Presentation Foundation (WPF) 應用程式會自動感知 DPI,因此不需要
50
+       加入。以 .NET Framework 4.6 為目標的 Windows Form 應用程式若加入這項設定,也
51
+       應該在其 app.config 中將 'EnableWindowsFormsHighDpiAutoResizing' 設定為 'true'。
52
+       
53
+       將應用程式設定為感知長路徑。請參閱 https://docs.microsoft.com/windows/win32/fileio/maximum-file-path-limitation-->
54
+  <!--
55
+  <application xmlns="urn:schemas-microsoft-com:asm.v3">
56
+    <windowsSettings>
57
+      <dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
58
+      <longPathAware xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">true</longPathAware>
59
+    </windowsSettings>
60
+  </application>
61
+  -->
62
+
63
+  <!-- 啟用 Windows 通用控制項和對話方塊的佈景主題 (Windows XP 以後版本) -->
64
+  <!--
65
+  <dependency>
66
+    <dependentAssembly>
67
+      <assemblyIdentity
68
+          type="win32"
69
+          name="Microsoft.Windows.Common-Controls"
70
+          version="6.0.0.0"
71
+          processorArchitecture="*"
72
+          publicKeyToken="6595b64144ccf1df"
73
+          language="*"
74
+        />
75
+    </dependentAssembly>
76
+  </dependency>
77
+  -->
78
+
79
+</assembly>

バイナリ
Calculator-SYS/bin/Debug/Calculator-SYS.exe ファイルの表示


バイナリ
Calculator-SYS/bin/Debug/Calculator-SYS.pdb ファイルの表示


+ 16
- 7
Calculator-SYS/bin/Debug/Calculator-SYS.xml ファイルの表示

@@ -22,6 +22,11 @@ Calculator-SYS
22 22
   使用這個強類型資源類別的資源查閱。
23 23
 </summary>
24 24
 </member>
25
+<member name="P:Calculator_SYS.My.Resources.Resources._0hxlogo1">
26
+<summary>
27
+  查詢類型 System.Drawing.Bitmap 的當地語系化資源。
28
+</summary>
29
+</member>
25 30
 <member name="P:Calculator_SYS.My.Resources.Resources._1_103">
26 31
 <summary>
27 32
   查詢類型 System.Drawing.Bitmap 的當地語系化資源。
@@ -157,6 +162,11 @@ Calculator-SYS
157 162
   查詢類型 System.Drawing.Bitmap 的當地語系化資源。
158 163
 </summary>
159 164
 </member>
165
+<member name="P:Calculator_SYS.My.Resources.Resources.NULL11">
166
+<summary>
167
+  查詢類型 System.Drawing.Bitmap 的當地語系化資源。
168
+</summary>
169
+</member>
160 170
 <member name="P:Calculator_SYS.My.Resources.Resources.pen">
161 171
 <summary>
162 172
   查詢類型 System.Drawing.Bitmap 的當地語系化資源。
@@ -242,6 +252,11 @@ Calculator-SYS
242 252
   查詢類型 System.Drawing.Bitmap 的當地語系化資源。
243 253
 </summary>
244 254
 </member>
255
+<member name="P:Calculator_SYS.My.Resources.Resources.visa_2">
256
+<summary>
257
+  查詢類型 System.Drawing.Bitmap 的當地語系化資源。
258
+</summary>
259
+</member>
245 260
 <member name="P:Calculator_SYS.My.Resources.Resources.ZOOM01">
246 261
 <summary>
247 262
   查詢類型 System.Drawing.Bitmap 的當地語系化資源。
@@ -320,19 +335,13 @@ Calculator-SYS
320 335
  如果要在輸入視窗的輸入控件上先帶入文字即可設定第二個變數,沒有設定就是空白。
321 336
  </summary>
322 337
 </member>
323
-<member name="M:Calculator_SYS.GcmProc.顯示說明(System.Int32)">
338
+<member name="M:Calculator_SYS.GcmProc.LIN訊息通知(System.String,System.String,System.String,System.String)">
324 339
  <summary>
325 340
  顯示說明 之前必須要宣告 [介面]
326 341
  開公告 輸入的是要顯示公告的次數。
327 342
  如果要在輸入視窗的輸入控件上先帶入文字即可設定第二個變數,沒有設定就是空白。
328 343
  </summary>
329 344
 </member>
330
-<member name="M:Calculator_SYS.GcmProc.LIN訊息通知(System.String,System.String,System.String,System.String)">
331
- <summary>
332
- 使用代號之前,請先到LINE使用者管理去進行設定
333
- 對象  請在LINE使用者管理中去複製字串出來。
334
- </summary>
335
-</member>
336 345
 <member name="M:Calculator_SYS.GcmProc.CB選擇清單(System.Windows.Forms.ComboBox,System.String)">
337 346
  <summary>
338 347
  輸入cb 用來載入Combox的清單

+ 1
- 1
Calculator-SYS/bin/Debug/LANGUAGE.txt ファイルの表示

@@ -1 +1 @@
1
-CHER
1
+Engl

+ 33
- 6
Calculator-SYS/bin/Debug/LANGUAGE_FILE.csv ファイルの表示

@@ -461,6 +461,21 @@ G000-252-CH-該月份已經有安排虛擬單據,是否要追加?,
461 461
 G000-253-EN-Enter Verification Code!!,
462 462
 G000-253-IN-Masukkan Kode Verifikasi!!,
463 463
 G000-253-CH-輸入驗證碼!!,
464
+G000-254-EN-Financial Report-1,
465
+G000-254-IN-Laporan Keuangan-1,
466
+G000-254-CH-財務報表-採購與工人工資,
467
+G000-255-EN-Financial Report-2,
468
+G000-255-IN-Laporan Keuangan-2,
469
+G000-255-CH-財務報表-採購付款狀態,
470
+G000-256-EN-Financial Report-3,
471
+G000-256-IN-Laporan Keuangan-3,
472
+G000-256-CH-財務報表-合約收款狀態,
473
+G000-257-EN-Financial Report-4,
474
+G000-257-IN-Laporan Keuangan-4,
475
+G000-257-CH-財務報表-決算表,
476
+G000-258-EN-Financial Report-5,
477
+G000-258-IN-Laporan Keuangan-5,
478
+G000-258-CH-財務報表-5,
464 479
 H000-100-EN-Co. Line,
465 480
 H000-100-IN-Lini Perusahaan,
466 481
 H000-100-CH-公司線路,
@@ -571,7 +586,7 @@ H001-113-IN-Konfirmasi Pembayaran Pesanan Pembelian,
571 586
 H001-113-CH-採購單付款確認,
572 587
 H001-114-EN-Payment Approval,
573 588
 H001-114-IN-Persetujuan Pembayaran,
574
-H001-114-CH-財務支付審核,
589
+H001-114-CH-財務支付確認,
575 590
 H001-115-EN-Purchase Payment Status Report,
576 591
 H001-115-IN-Laporan Status Pembayaran Pembelian,
577 592
 H001-115-CH-採購付款狀態報表,
@@ -1055,6 +1070,9 @@ H001-274-CH-電信費追加---申請,
1055 1070
 H001-275-EN-Increasing Phone Bill --- Execute,
1056 1071
 H001-275-IN-Peningkatan Tagihan Telepon --- Melaksanakan,
1057 1072
 H001-275-CH-電信費追加---執行,
1073
+H001-276-EN-Special Expense Review,
1074
+H001-276-IN-Peninjauan Biaya Khusus,
1075
+H001-276-CH-特支費審核,
1058 1076
 H002-100-EN-Show Password,
1059 1077
 H002-100-IN-Tampilkan Kata Sandi,
1060 1078
 H002-100-CH-顯示密碼,
@@ -1952,6 +1970,15 @@ H609-142-CH-工地,
1952 1970
 H609-143-EN-Single Print,
1953 1971
 H609-143-IN-Cetak Tunggal,
1954 1972
 H609-143-CH-單一列印,
1973
+H609-144-EN-Discount,
1974
+H609-144-IN-Diskon,
1975
+H609-144-CH-折數,
1976
+H609-145-EN-A.R.T.,
1977
+H609-145-IN-T.R.A.,
1978
+H609-145-CH-沖帳總額,
1979
+H609-146-EN-Actual Total,
1980
+H609-146-IN-Total Aktual.,
1981
+H609-146-CH-實際總額,
1955 1982
 H610-100-EN-Temporary Card Activation and Inquiry,
1956 1983
 H610-100-IN-Aktivasi dan Permintaan Kartu Sementara,
1957 1984
 H610-100-CH-臨時卡激活與查詢,
@@ -3519,7 +3546,7 @@ H310-108-EN-P.A.C.,
3519 3546
 H310-108-IN-D.P.B.,
3520 3547
 H310-108-CH-已請未收款,
3521 3548
 H310-109-EN-Applied Tax,
3522
-H310-109-IN-Pajak Diterapkan,
3549
+H310-109-IN-Pajak Diterapkan, silakan hubungi administrator sistem!!
3523 3550
 H310-109-CH-已請稅,
3524 3551
 H310-110-EN-Pending Tax,
3525 3552
 H310-110-IN-Pajak Tertunda,
@@ -3546,7 +3573,7 @@ H311-104-EN-Payment,
3546 3573
 H311-104-IN-Pembayaran,
3547 3574
 H311-104-CH-付款.,
3548 3575
 H311-105-EN-Unpaid,
3549
-H311-105-IN-Belum Dibayar, silakan hubungi administrator sistem!!
3576
+H311-105-IN-Belum Dibayar,
3550 3577
 H311-105-CH-未付款,
3551 3578
 H311-106-EN-Paid,
3552 3579
 H311-106-IN-Telah Dibayar,
@@ -3633,7 +3660,7 @@ H908-118-EN-Enter Ampacity,
3633 3660
 H908-118-IN-Kawat Berinsulasi - Kapasitas,
3634 3661
 H908-118-CH-反向計算(輸入安培容量),
3635 3662
 H908-119-EN-Insulated Wire - Ampacity,
3636
-H908-119-IN-Masukkan Kapasitas,
3663
+H908-119-IN-Masukkan Kapasitas, silakan hubungi administrator sistem!!
3637 3664
 H908-119-CH-絕緣電線 -安培容量,
3638 3665
 H908-120-EN-Estimated Ampacity,
3639 3666
 H908-120-IN-Perkiraan Kapasitas,
@@ -3660,7 +3687,7 @@ H206-106-EN-Product Name,
3660 3687
 H206-106-IN-Nama Produk,
3661 3688
 H206-106-CH-品名.,
3662 3689
 H206-107-EN-Purchase Order No,
3663
-H206-107-IN-Pesanan Pembelian Nomor, silakan hubungi administrator sistem!!
3690
+H206-107-IN-Pesanan Pembelian Nomor,
3664 3691
 H206-107-CH-採購單號,
3665 3692
 H206-108-EN-Format,
3666 3693
 H206-108-IN-Format,
@@ -4072,7 +4099,7 @@ H611-118-IN-Pengaturan Rekonsiliasi,
4072 4099
 H611-118-CH-沖帳設定,
4073 4100
 H611-119-EN-Maximum,
4074 4101
 H611-119-IN-Maksimum,
4075
-H611-119-CH-極限金額,
4102
+H611-119-CH-最大金額,
4076 4103
 H611-120-EN-Reconciliation,
4077 4104
 H611-120-IN-Rekonsiliasi,
4078 4105
 H611-120-CH-沖帳金額,

+ 3
- 0
Calculator-SYS/bin/Debug/LIN HSING HAO.txt ファイルの表示

@@ -1,2 +1,5 @@
1 1
 ******************
2
+BC06
3
+BC08
2 4
 GC02
5
+EC13

+ 3
- 0
Calculator-SYS/bin/Debug/李協叡.txt ファイルの表示

@@ -7,5 +7,8 @@ BC08
7 7
 FC08
8 8
 GC01
9 9
 GC02
10
+GC03
11
+GC04
12
+GC05
10 13
 EC12
11 14
 EC13

バイナリ
Calculator-SYS/obj/Debug/Calculator-SYS.exe ファイルの表示


バイナリ
Calculator-SYS/obj/Debug/Calculator-SYS.pdb ファイルの表示


+ 1
- 1
Calculator-SYS/obj/Debug/Calculator-SYS.vbproj.CoreCompileInputs.cache ファイルの表示

@@ -1 +1 @@
1
-0f81a507a9d5a470eda2906fd39a53b29c58c907
1
+d6011f04af47be48bbeb8c87cb6e7545df0662ad

+ 4
- 0
Calculator-SYS/obj/Debug/Calculator-SYS.vbproj.FileListAbsolute.txt ファイルの表示

@@ -48,3 +48,7 @@ D:\工巧明\HX-PGS\Calculator-SYS\Calculator-SYS\bin\Debug\TelerikCommon.dll
48 48
 D:\工巧明\HX-PGS\Calculator-SYS\Calculator-SYS\bin\Debug\Telerik.WinControls.xml
49 49
 D:\工巧明\HX-PGS\Calculator-SYS\Calculator-SYS\bin\Debug\Telerik.WinControls.UI.xml
50 50
 D:\工巧明\HX-PGS\Calculator-SYS\Calculator-SYS\obj\Debug\Calculator-SYS.exe.licenses
51
+D:\工巧明\HX-PGS\Calculator-SYS\Calculator-SYS\obj\Debug\Calculator_SYS.財務報表1.resources
52
+D:\工巧明\HX-PGS\Calculator-SYS\Calculator-SYS\obj\Debug\Calculator_SYS.財務報表2.resources
53
+D:\工巧明\HX-PGS\Calculator-SYS\Calculator-SYS\obj\Debug\Calculator_SYS.財務報表3.resources
54
+D:\工巧明\HX-PGS\Calculator-SYS\Calculator-SYS\obj\Debug\Calculator_SYS.財務報表4.resources

バイナリ
Calculator-SYS/obj/Debug/Calculator-SYS.vbproj.GenerateResource.cache ファイルの表示


+ 16
- 7
Calculator-SYS/obj/Debug/Calculator-SYS.xml ファイルの表示

@@ -22,6 +22,11 @@ Calculator-SYS
22 22
   使用這個強類型資源類別的資源查閱。
23 23
 </summary>
24 24
 </member>
25
+<member name="P:Calculator_SYS.My.Resources.Resources._0hxlogo1">
26
+<summary>
27
+  查詢類型 System.Drawing.Bitmap 的當地語系化資源。
28
+</summary>
29
+</member>
25 30
 <member name="P:Calculator_SYS.My.Resources.Resources._1_103">
26 31
 <summary>
27 32
   查詢類型 System.Drawing.Bitmap 的當地語系化資源。
@@ -157,6 +162,11 @@ Calculator-SYS
157 162
   查詢類型 System.Drawing.Bitmap 的當地語系化資源。
158 163
 </summary>
159 164
 </member>
165
+<member name="P:Calculator_SYS.My.Resources.Resources.NULL11">
166
+<summary>
167
+  查詢類型 System.Drawing.Bitmap 的當地語系化資源。
168
+</summary>
169
+</member>
160 170
 <member name="P:Calculator_SYS.My.Resources.Resources.pen">
161 171
 <summary>
162 172
   查詢類型 System.Drawing.Bitmap 的當地語系化資源。
@@ -242,6 +252,11 @@ Calculator-SYS
242 252
   查詢類型 System.Drawing.Bitmap 的當地語系化資源。
243 253
 </summary>
244 254
 </member>
255
+<member name="P:Calculator_SYS.My.Resources.Resources.visa_2">
256
+<summary>
257
+  查詢類型 System.Drawing.Bitmap 的當地語系化資源。
258
+</summary>
259
+</member>
245 260
 <member name="P:Calculator_SYS.My.Resources.Resources.ZOOM01">
246 261
 <summary>
247 262
   查詢類型 System.Drawing.Bitmap 的當地語系化資源。
@@ -320,19 +335,13 @@ Calculator-SYS
320 335
  如果要在輸入視窗的輸入控件上先帶入文字即可設定第二個變數,沒有設定就是空白。
321 336
  </summary>
322 337
 </member>
323
-<member name="M:Calculator_SYS.GcmProc.顯示說明(System.Int32)">
338
+<member name="M:Calculator_SYS.GcmProc.LIN訊息通知(System.String,System.String,System.String,System.String)">
324 339
  <summary>
325 340
  顯示說明 之前必須要宣告 [介面]
326 341
  開公告 輸入的是要顯示公告的次數。
327 342
  如果要在輸入視窗的輸入控件上先帶入文字即可設定第二個變數,沒有設定就是空白。
328 343
  </summary>
329 344
 </member>
330
-<member name="M:Calculator_SYS.GcmProc.LIN訊息通知(System.String,System.String,System.String,System.String)">
331
- <summary>
332
- 使用代號之前,請先到LINE使用者管理去進行設定
333
- 對象  請在LINE使用者管理中去複製字串出來。
334
- </summary>
335
-</member>
336 345
 <member name="M:Calculator_SYS.GcmProc.CB選擇清單(System.Windows.Forms.ComboBox,System.String)">
337 346
  <summary>
338 347
  輸入cb 用來載入Combox的清單

バイナリ
Calculator-SYS/obj/Debug/Calculator_SYS.Resources.resources ファイルの表示


バイナリ
Calculator-SYS/obj/Debug/Calculator_SYS.財務報表1.resources ファイルの表示


バイナリ
Calculator-SYS/obj/Debug/Calculator_SYS.財務報表2.resources ファイルの表示


バイナリ
Calculator-SYS/obj/Debug/Calculator_SYS.財務報表3.resources ファイルの表示


バイナリ
Calculator-SYS/obj/Debug/Calculator_SYS.財務報表4.resources ファイルの表示


バイナリ
Calculator-SYS/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache ファイルの表示


バイナリ
Calculator-SYS/obj/Debug/TempPE/My Project.Resources.Designer.vb.dll ファイルの表示


バイナリ
Calculator-SYS/圖片/0hxlogo1.png ファイルの表示


バイナリ
Calculator-SYS/圖片/visa_2.png ファイルの表示


+ 3
- 4
Calculator-SYS/計算機.vb ファイルの表示

@@ -5,9 +5,8 @@ Public Class 計算機
5 5
     Dim diskId As String '數字ID
6 6
     Dim diskSerialNumber As String '硬碟序列
7 7
     Dim diskModel As String '磁盘型態
8
-    Dim IP公, IP測1, IP測2, 印尼測試內網網段, 內網線路, 可登入 As Boolean
9
-    Dim Str As String = Application.StartupPath
10
-    Dim 對話框(15) As String
8
+    Dim IP公, IP測1, IP測2, 內網線路, 可登入 As Boolean
9
+    Private ReadOnly 對話框(15) As String
11 10
     Private Sub 初始化系統語言()
12 11
         If File.Exists(Application.StartupPath + "\LANGUAGE_FILE.csv") Then
13 12
             Dim filereader = My.Computer.FileSystem.OpenTextFileReader(Application.StartupPath + "\LANGUAGE_FILE.csv", System.Text.Encoding.Default)
@@ -282,7 +281,7 @@ Public Class 計算機
282 281
             If verificationCode = "" Then : 計算() : Else
283 282
                 currentTime = DateTime.Now
284 283
                 elapsedTime = currentTime - verificationStartTime
285
-                If elapsedTime.TotalMinutes <= 30 Then
284
+                If elapsedTime.TotalMinutes <= 0.5 Then
286 285
                     If 呈現_tb.Text = verificationCode Then : Me.Hide() : LoginForm1.Show() : verificationCode = "" : Else : 計算() : End If
287 286
                 Else : 計算() : End If
288 287
             End If

読み込み中…
キャンセル
保存