Sfoglia il codice sorgente

營運成本收支_決算表修改完成

Signed-off-by: B70340 <b70340@gmail.com>
B70340 5 anni fa
parent
commit
1d45915718
32 ha cambiato i file con 1029 aggiunte e 215 eliminazioni
  1. BIN
      .vs/MAOJI-ERP-SYS/v16/.suo
  2. 58
    58
      MaoOrange-Hongji/MAOJI-ERP-SYS.Designer.vb
  3. 5
    5
      MaoOrange-Hongji/MAOJI-ERP-SYS.vb
  4. 19
    10
      MaoOrange-Hongji/MAOJI-ERP-SYS.vbproj
  5. 1
    1
      MaoOrange-Hongji/Module1/Module1.vb
  6. 31
    8
      MaoOrange-Hongji/Module1/SQL_Module.vb
  7. BIN
      MaoOrange-Hongji/bin/Debug/MAOJI-ERP-SYS.exe
  8. BIN
      MaoOrange-Hongji/bin/Debug/MAOJI-ERP-SYS.pdb
  9. BIN
      MaoOrange-Hongji/obj/Debug/DesignTimeResolveAssemblyReferences.cache
  10. BIN
      MaoOrange-Hongji/obj/Debug/MAOJI-ERP-SYS.exe
  11. BIN
      MaoOrange-Hongji/obj/Debug/MAOJI-ERP-SYS.pdb
  12. 1
    1
      MaoOrange-Hongji/obj/Debug/MAOJI-ERP-SYS.vbproj.CoreCompileInputs.cache
  13. 3
    2
      MaoOrange-Hongji/obj/Debug/MAOJI-ERP-SYS.vbproj.FileListAbsolute.txt
  14. BIN
      MaoOrange-Hongji/obj/Debug/MAOJI-ERP-SYS.vbproj.GenerateResource.cache
  15. BIN
      MaoOrange-Hongji/obj/Debug/MAOJI-ERP-SYS.vbproj.ResolveComReference.cache
  16. BIN
      MaoOrange-Hongji/obj/Debug/MAOJI-ERP-SYS.vbprojAssemblyReference.cache
  17. 0
    0
      MaoOrange-Hongji/obj/Debug/MaoOrange_Hongji.應付賬款控制表.resources
  18. 0
    0
      MaoOrange-Hongji/obj/Debug/MaoOrange_Hongji.應收帳款控制表.resources
  19. BIN
      MaoOrange-Hongji/obj/Debug/MaoOrange_Hongji.系統通用變數管理.resources
  20. 10
    10
      MaoOrange-Hongji/財務系統管理/應付賬款控制表.Designer.vb
  21. 0
    0
      MaoOrange-Hongji/財務系統管理/應付賬款控制表.resx
  22. 8
    4
      MaoOrange-Hongji/財務系統管理/應付賬款控制表.vb
  23. 4
    4
      MaoOrange-Hongji/財務系統管理/應收帳款控制表.Designer.vb
  24. 0
    0
      MaoOrange-Hongji/財務系統管理/應收帳款控制表.resx
  25. 1
    1
      MaoOrange-Hongji/財務系統管理/應收帳款控制表.vb
  26. 185
    81
      MaoOrange-Hongji/財務系統管理/營運成本收支_決算表.Designer.vb
  27. 285
    21
      MaoOrange-Hongji/財務系統管理/營運成本收支_決算表.vb
  28. 3
    3
      MaoOrange-Hongji/資料庫系統管理/列印_產品標籤介面.Designer.vb
  29. 12
    6
      MaoOrange-Hongji/資料庫系統管理/列印_產品標籤介面.vb
  30. 219
    0
      MaoOrange-Hongji/資料庫系統管理/系統通用變數管理.Designer.vb
  31. 120
    0
      MaoOrange-Hongji/資料庫系統管理/系統通用變數管理.resx
  32. 64
    0
      MaoOrange-Hongji/資料庫系統管理/系統通用變數管理.vb

BIN
.vs/MAOJI-ERP-SYS/v16/.suo Vedi File


+ 58
- 58
MaoOrange-Hongji/MAOJI-ERP-SYS.Designer.vb Vedi File

92
         Me.營運費用支付單一覽表ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
92
         Me.營運費用支付單一覽表ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
93
         Me.營運成本收支單對帳表ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
93
         Me.營運成本收支單對帳表ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
94
         Me.ToolStripSeparator13 = New System.Windows.Forms.ToolStripSeparator()
94
         Me.ToolStripSeparator13 = New System.Windows.Forms.ToolStripSeparator()
95
+        Me.應付賬款控制表ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
96
+        Me.應收帳款控制表ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
97
+        Me.ToolStripSeparator15 = New System.Windows.Forms.ToolStripSeparator()
95
         Me.業務佣金計算ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
98
         Me.業務佣金計算ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
96
         Me.司機佣金計算ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
99
         Me.司機佣金計算ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
97
-        Me.ToolStripSeparator15 = New System.Windows.Forms.ToolStripSeparator()
98
-        Me.應付賬款ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
99
-        Me.應收帳款ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
100
         Me.ToolStripSeparator3 = New System.Windows.Forms.ToolStripSeparator()
100
         Me.ToolStripSeparator3 = New System.Windows.Forms.ToolStripSeparator()
101
         Me.營運成本收支決算表ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
101
         Me.營運成本收支決算表ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
102
         Me.營運狀態彙總檢視表ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
102
         Me.營運狀態彙總檢視表ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
226
         '
226
         '
227
         Me.車輛保養紀錄表ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(128, Byte), Integer), CType(CType(64, Byte), Integer), CType(CType(0, Byte), Integer))
227
         Me.車輛保養紀錄表ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(128, Byte), Integer), CType(CType(64, Byte), Integer), CType(CType(0, Byte), Integer))
228
         Me.車輛保養紀錄表ToolStripMenuItem.Name = "車輛保養紀錄表ToolStripMenuItem"
228
         Me.車輛保養紀錄表ToolStripMenuItem.Name = "車輛保養紀錄表ToolStripMenuItem"
229
-        Me.車輛保養紀錄表ToolStripMenuItem.Size = New System.Drawing.Size(180, 22)
229
+        Me.車輛保養紀錄表ToolStripMenuItem.Size = New System.Drawing.Size(158, 22)
230
         Me.車輛保養紀錄表ToolStripMenuItem.Text = "車輛保養紀錄表"
230
         Me.車輛保養紀錄表ToolStripMenuItem.Text = "車輛保養紀錄表"
231
         '
231
         '
232
         '業務系統管理ToolStripMenuItem
232
         '業務系統管理ToolStripMenuItem
241
         '
241
         '
242
         Me.銷售控制表ToolStripMenuItem.ForeColor = System.Drawing.Color.Olive
242
         Me.銷售控制表ToolStripMenuItem.ForeColor = System.Drawing.Color.Olive
243
         Me.銷售控制表ToolStripMenuItem.Name = "銷售控制表ToolStripMenuItem"
243
         Me.銷售控制表ToolStripMenuItem.Name = "銷售控制表ToolStripMenuItem"
244
-        Me.銷售控制表ToolStripMenuItem.Size = New System.Drawing.Size(180, 22)
244
+        Me.銷售控制表ToolStripMenuItem.Size = New System.Drawing.Size(175, 22)
245
         Me.銷售控制表ToolStripMenuItem.Text = "銷售控制表"
245
         Me.銷售控制表ToolStripMenuItem.Text = "銷售控制表"
246
         '
246
         '
247
         'ToolStripSeparator6
247
         'ToolStripSeparator6
248
         '
248
         '
249
         Me.ToolStripSeparator6.Name = "ToolStripSeparator6"
249
         Me.ToolStripSeparator6.Name = "ToolStripSeparator6"
250
-        Me.ToolStripSeparator6.Size = New System.Drawing.Size(177, 6)
250
+        Me.ToolStripSeparator6.Size = New System.Drawing.Size(172, 6)
251
         '
251
         '
252
         '訂單管理控制表ToolStripMenuItem
252
         '訂單管理控制表ToolStripMenuItem
253
         '
253
         '
254
         Me.訂單管理控制表ToolStripMenuItem.ForeColor = System.Drawing.Color.Olive
254
         Me.訂單管理控制表ToolStripMenuItem.ForeColor = System.Drawing.Color.Olive
255
         Me.訂單管理控制表ToolStripMenuItem.Name = "訂單管理控制表ToolStripMenuItem"
255
         Me.訂單管理控制表ToolStripMenuItem.Name = "訂單管理控制表ToolStripMenuItem"
256
-        Me.訂單管理控制表ToolStripMenuItem.Size = New System.Drawing.Size(180, 22)
256
+        Me.訂單管理控制表ToolStripMenuItem.Size = New System.Drawing.Size(175, 22)
257
         Me.訂單管理控制表ToolStripMenuItem.Text = "訂單管理控制表"
257
         Me.訂單管理控制表ToolStripMenuItem.Text = "訂單管理控制表"
258
         '
258
         '
259
         '訂單採購需求申請ToolStripMenuItem
259
         '訂單採購需求申請ToolStripMenuItem
260
         '
260
         '
261
         Me.訂單採購需求申請ToolStripMenuItem.ForeColor = System.Drawing.Color.Olive
261
         Me.訂單採購需求申請ToolStripMenuItem.ForeColor = System.Drawing.Color.Olive
262
         Me.訂單採購需求申請ToolStripMenuItem.Name = "訂單採購需求申請ToolStripMenuItem"
262
         Me.訂單採購需求申請ToolStripMenuItem.Name = "訂單採購需求申請ToolStripMenuItem"
263
-        Me.訂單採購需求申請ToolStripMenuItem.Size = New System.Drawing.Size(180, 22)
263
+        Me.訂單採購需求申請ToolStripMenuItem.Size = New System.Drawing.Size(175, 22)
264
         Me.訂單採購需求申請ToolStripMenuItem.Text = "訂單採購需求申請"
264
         Me.訂單採購需求申請ToolStripMenuItem.Text = "訂單採購需求申請"
265
         '
265
         '
266
         '訂單出貨控制表ToolStripMenuItem
266
         '訂單出貨控制表ToolStripMenuItem
267
         '
267
         '
268
         Me.訂單出貨控制表ToolStripMenuItem.ForeColor = System.Drawing.Color.Olive
268
         Me.訂單出貨控制表ToolStripMenuItem.ForeColor = System.Drawing.Color.Olive
269
         Me.訂單出貨控制表ToolStripMenuItem.Name = "訂單出貨控制表ToolStripMenuItem"
269
         Me.訂單出貨控制表ToolStripMenuItem.Name = "訂單出貨控制表ToolStripMenuItem"
270
-        Me.訂單出貨控制表ToolStripMenuItem.Size = New System.Drawing.Size(180, 22)
270
+        Me.訂單出貨控制表ToolStripMenuItem.Size = New System.Drawing.Size(175, 22)
271
         Me.訂單出貨控制表ToolStripMenuItem.Text = "訂單出貨控制表"
271
         Me.訂單出貨控制表ToolStripMenuItem.Text = "訂單出貨控制表"
272
         '
272
         '
273
         'ToolStripSeparator11
273
         'ToolStripSeparator11
274
         '
274
         '
275
         Me.ToolStripSeparator11.Name = "ToolStripSeparator11"
275
         Me.ToolStripSeparator11.Name = "ToolStripSeparator11"
276
-        Me.ToolStripSeparator11.Size = New System.Drawing.Size(177, 6)
276
+        Me.ToolStripSeparator11.Size = New System.Drawing.Size(172, 6)
277
         '
277
         '
278
         '出貨單申請ToolStripMenuItem
278
         '出貨單申請ToolStripMenuItem
279
         '
279
         '
280
         Me.出貨單申請ToolStripMenuItem.ForeColor = System.Drawing.Color.Olive
280
         Me.出貨單申請ToolStripMenuItem.ForeColor = System.Drawing.Color.Olive
281
         Me.出貨單申請ToolStripMenuItem.Name = "出貨單申請ToolStripMenuItem"
281
         Me.出貨單申請ToolStripMenuItem.Name = "出貨單申請ToolStripMenuItem"
282
-        Me.出貨單申請ToolStripMenuItem.Size = New System.Drawing.Size(180, 22)
282
+        Me.出貨單申請ToolStripMenuItem.Size = New System.Drawing.Size(175, 22)
283
         Me.出貨單申請ToolStripMenuItem.Text = "出貨單申請"
283
         Me.出貨單申請ToolStripMenuItem.Text = "出貨單申請"
284
         '
284
         '
285
         '出貨確認ToolStripMenuItem
285
         '出貨確認ToolStripMenuItem
286
         '
286
         '
287
         Me.出貨確認ToolStripMenuItem.ForeColor = System.Drawing.Color.Olive
287
         Me.出貨確認ToolStripMenuItem.ForeColor = System.Drawing.Color.Olive
288
         Me.出貨確認ToolStripMenuItem.Name = "出貨確認ToolStripMenuItem"
288
         Me.出貨確認ToolStripMenuItem.Name = "出貨確認ToolStripMenuItem"
289
-        Me.出貨確認ToolStripMenuItem.Size = New System.Drawing.Size(180, 22)
289
+        Me.出貨確認ToolStripMenuItem.Size = New System.Drawing.Size(175, 22)
290
         Me.出貨確認ToolStripMenuItem.Text = "出貨確認-倉儲出庫"
290
         Me.出貨確認ToolStripMenuItem.Text = "出貨確認-倉儲出庫"
291
         '
291
         '
292
         'ToolStripSeparator14
292
         'ToolStripSeparator14
293
         '
293
         '
294
         Me.ToolStripSeparator14.Name = "ToolStripSeparator14"
294
         Me.ToolStripSeparator14.Name = "ToolStripSeparator14"
295
-        Me.ToolStripSeparator14.Size = New System.Drawing.Size(177, 6)
295
+        Me.ToolStripSeparator14.Size = New System.Drawing.Size(172, 6)
296
         '
296
         '
297
         '維修單申請ToolStripMenuItem
297
         '維修單申請ToolStripMenuItem
298
         '
298
         '
299
         Me.維修單申請ToolStripMenuItem.ForeColor = System.Drawing.Color.Olive
299
         Me.維修單申請ToolStripMenuItem.ForeColor = System.Drawing.Color.Olive
300
         Me.維修單申請ToolStripMenuItem.Name = "維修單申請ToolStripMenuItem"
300
         Me.維修單申請ToolStripMenuItem.Name = "維修單申請ToolStripMenuItem"
301
-        Me.維修單申請ToolStripMenuItem.Size = New System.Drawing.Size(180, 22)
301
+        Me.維修單申請ToolStripMenuItem.Size = New System.Drawing.Size(175, 22)
302
         Me.維修單申請ToolStripMenuItem.Text = "維修單申請"
302
         Me.維修單申請ToolStripMenuItem.Text = "維修單申請"
303
         '
303
         '
304
         '維修單出庫確認ToolStripMenuItem
304
         '維修單出庫確認ToolStripMenuItem
305
         '
305
         '
306
         Me.維修單出庫確認ToolStripMenuItem.ForeColor = System.Drawing.Color.Olive
306
         Me.維修單出庫確認ToolStripMenuItem.ForeColor = System.Drawing.Color.Olive
307
         Me.維修單出庫確認ToolStripMenuItem.Name = "維修單出庫確認ToolStripMenuItem"
307
         Me.維修單出庫確認ToolStripMenuItem.Name = "維修單出庫確認ToolStripMenuItem"
308
-        Me.維修單出庫確認ToolStripMenuItem.Size = New System.Drawing.Size(180, 22)
308
+        Me.維修單出庫確認ToolStripMenuItem.Size = New System.Drawing.Size(175, 22)
309
         Me.維修單出庫確認ToolStripMenuItem.Text = "維修單出庫確認"
309
         Me.維修單出庫確認ToolStripMenuItem.Text = "維修單出庫確認"
310
         '
310
         '
311
         'ToolStripSeparator5
311
         'ToolStripSeparator5
312
         '
312
         '
313
         Me.ToolStripSeparator5.Name = "ToolStripSeparator5"
313
         Me.ToolStripSeparator5.Name = "ToolStripSeparator5"
314
-        Me.ToolStripSeparator5.Size = New System.Drawing.Size(177, 6)
314
+        Me.ToolStripSeparator5.Size = New System.Drawing.Size(172, 6)
315
         '
315
         '
316
         '銷售退貨清單ToolStripMenuItem
316
         '銷售退貨清單ToolStripMenuItem
317
         '
317
         '
318
         Me.銷售退貨清單ToolStripMenuItem.ForeColor = System.Drawing.Color.Olive
318
         Me.銷售退貨清單ToolStripMenuItem.ForeColor = System.Drawing.Color.Olive
319
         Me.銷售退貨清單ToolStripMenuItem.Name = "銷售退貨清單ToolStripMenuItem"
319
         Me.銷售退貨清單ToolStripMenuItem.Name = "銷售退貨清單ToolStripMenuItem"
320
-        Me.銷售退貨清單ToolStripMenuItem.Size = New System.Drawing.Size(180, 22)
320
+        Me.銷售退貨清單ToolStripMenuItem.Size = New System.Drawing.Size(175, 22)
321
         Me.銷售退貨清單ToolStripMenuItem.Text = "銷售退貨清單"
321
         Me.銷售退貨清單ToolStripMenuItem.Text = "銷售退貨清單"
322
         '
322
         '
323
         '銷售退貨申請ToolStripMenuItem
323
         '銷售退貨申請ToolStripMenuItem
324
         '
324
         '
325
         Me.銷售退貨申請ToolStripMenuItem.ForeColor = System.Drawing.Color.Olive
325
         Me.銷售退貨申請ToolStripMenuItem.ForeColor = System.Drawing.Color.Olive
326
         Me.銷售退貨申請ToolStripMenuItem.Name = "銷售退貨申請ToolStripMenuItem"
326
         Me.銷售退貨申請ToolStripMenuItem.Name = "銷售退貨申請ToolStripMenuItem"
327
-        Me.銷售退貨申請ToolStripMenuItem.Size = New System.Drawing.Size(180, 22)
327
+        Me.銷售退貨申請ToolStripMenuItem.Size = New System.Drawing.Size(175, 22)
328
         Me.銷售退貨申請ToolStripMenuItem.Text = "銷售退貨申請"
328
         Me.銷售退貨申請ToolStripMenuItem.Text = "銷售退貨申請"
329
         '
329
         '
330
         '銷售退貨確認ToolStripMenuItem
330
         '銷售退貨確認ToolStripMenuItem
331
         '
331
         '
332
         Me.銷售退貨確認ToolStripMenuItem.ForeColor = System.Drawing.Color.Olive
332
         Me.銷售退貨確認ToolStripMenuItem.ForeColor = System.Drawing.Color.Olive
333
         Me.銷售退貨確認ToolStripMenuItem.Name = "銷售退貨確認ToolStripMenuItem"
333
         Me.銷售退貨確認ToolStripMenuItem.Name = "銷售退貨確認ToolStripMenuItem"
334
-        Me.銷售退貨確認ToolStripMenuItem.Size = New System.Drawing.Size(180, 22)
334
+        Me.銷售退貨確認ToolStripMenuItem.Size = New System.Drawing.Size(175, 22)
335
         Me.銷售退貨確認ToolStripMenuItem.Text = "銷售退貨確認"
335
         Me.銷售退貨確認ToolStripMenuItem.Text = "銷售退貨確認"
336
         '
336
         '
337
         'ToolStripSeparator17
337
         'ToolStripSeparator17
338
         '
338
         '
339
         Me.ToolStripSeparator17.Name = "ToolStripSeparator17"
339
         Me.ToolStripSeparator17.Name = "ToolStripSeparator17"
340
-        Me.ToolStripSeparator17.Size = New System.Drawing.Size(177, 6)
340
+        Me.ToolStripSeparator17.Size = New System.Drawing.Size(172, 6)
341
         '
341
         '
342
         '客戶資料管理ToolStripMenuItem
342
         '客戶資料管理ToolStripMenuItem
343
         '
343
         '
344
         Me.客戶資料管理ToolStripMenuItem.ForeColor = System.Drawing.Color.Olive
344
         Me.客戶資料管理ToolStripMenuItem.ForeColor = System.Drawing.Color.Olive
345
         Me.客戶資料管理ToolStripMenuItem.Name = "客戶資料管理ToolStripMenuItem"
345
         Me.客戶資料管理ToolStripMenuItem.Name = "客戶資料管理ToolStripMenuItem"
346
-        Me.客戶資料管理ToolStripMenuItem.Size = New System.Drawing.Size(180, 22)
346
+        Me.客戶資料管理ToolStripMenuItem.Size = New System.Drawing.Size(175, 22)
347
         Me.客戶資料管理ToolStripMenuItem.Text = "客戶資料管理"
347
         Me.客戶資料管理ToolStripMenuItem.Text = "客戶資料管理"
348
         '
348
         '
349
         '零售客戶記錄表ToolStripMenuItem
349
         '零售客戶記錄表ToolStripMenuItem
350
         '
350
         '
351
         Me.零售客戶記錄表ToolStripMenuItem.ForeColor = System.Drawing.Color.Olive
351
         Me.零售客戶記錄表ToolStripMenuItem.ForeColor = System.Drawing.Color.Olive
352
         Me.零售客戶記錄表ToolStripMenuItem.Name = "零售客戶記錄表ToolStripMenuItem"
352
         Me.零售客戶記錄表ToolStripMenuItem.Name = "零售客戶記錄表ToolStripMenuItem"
353
-        Me.零售客戶記錄表ToolStripMenuItem.Size = New System.Drawing.Size(180, 22)
353
+        Me.零售客戶記錄表ToolStripMenuItem.Size = New System.Drawing.Size(175, 22)
354
         Me.零售客戶記錄表ToolStripMenuItem.Text = "零售客戶記錄表"
354
         Me.零售客戶記錄表ToolStripMenuItem.Text = "零售客戶記錄表"
355
         '
355
         '
356
         '生產系統管理ToolStripMenuItem
356
         '生產系統管理ToolStripMenuItem
365
         '
365
         '
366
         Me.生產控制表ToolStripMenuItem.ForeColor = System.Drawing.Color.Teal
366
         Me.生產控制表ToolStripMenuItem.ForeColor = System.Drawing.Color.Teal
367
         Me.生產控制表ToolStripMenuItem.Name = "生產控制表ToolStripMenuItem"
367
         Me.生產控制表ToolStripMenuItem.Name = "生產控制表ToolStripMenuItem"
368
-        Me.生產控制表ToolStripMenuItem.Size = New System.Drawing.Size(180, 22)
368
+        Me.生產控制表ToolStripMenuItem.Size = New System.Drawing.Size(175, 22)
369
         Me.生產控制表ToolStripMenuItem.Text = "生產控制表"
369
         Me.生產控制表ToolStripMenuItem.Text = "生產控制表"
370
         '
370
         '
371
         'ToolStripSeparator7
371
         'ToolStripSeparator7
372
         '
372
         '
373
         Me.ToolStripSeparator7.Name = "ToolStripSeparator7"
373
         Me.ToolStripSeparator7.Name = "ToolStripSeparator7"
374
-        Me.ToolStripSeparator7.Size = New System.Drawing.Size(177, 6)
374
+        Me.ToolStripSeparator7.Size = New System.Drawing.Size(172, 6)
375
         '
375
         '
376
         '生產確認ToolStripMenuItem
376
         '生產確認ToolStripMenuItem
377
         '
377
         '
378
         Me.生產確認ToolStripMenuItem.ForeColor = System.Drawing.Color.Teal
378
         Me.生產確認ToolStripMenuItem.ForeColor = System.Drawing.Color.Teal
379
         Me.生產確認ToolStripMenuItem.Name = "生產確認ToolStripMenuItem"
379
         Me.生產確認ToolStripMenuItem.Name = "生產確認ToolStripMenuItem"
380
-        Me.生產確認ToolStripMenuItem.Size = New System.Drawing.Size(180, 22)
380
+        Me.生產確認ToolStripMenuItem.Size = New System.Drawing.Size(175, 22)
381
         Me.生產確認ToolStripMenuItem.Text = "生產確認-倉儲出庫"
381
         Me.生產確認ToolStripMenuItem.Text = "生產確認-倉儲出庫"
382
         '
382
         '
383
         '生產入庫ToolStripMenuItem
383
         '生產入庫ToolStripMenuItem
384
         '
384
         '
385
         Me.生產入庫ToolStripMenuItem.ForeColor = System.Drawing.Color.Teal
385
         Me.生產入庫ToolStripMenuItem.ForeColor = System.Drawing.Color.Teal
386
         Me.生產入庫ToolStripMenuItem.Name = "生產入庫ToolStripMenuItem"
386
         Me.生產入庫ToolStripMenuItem.Name = "生產入庫ToolStripMenuItem"
387
-        Me.生產入庫ToolStripMenuItem.Size = New System.Drawing.Size(180, 22)
387
+        Me.生產入庫ToolStripMenuItem.Size = New System.Drawing.Size(175, 22)
388
         Me.生產入庫ToolStripMenuItem.Text = "生產入庫-倉儲入庫"
388
         Me.生產入庫ToolStripMenuItem.Text = "生產入庫-倉儲入庫"
389
         '
389
         '
390
         '採購系統管理ToolStripMenuItem
390
         '採購系統管理ToolStripMenuItem
399
         '
399
         '
400
         Me.採購控制表ToolStripMenuItem.ForeColor = System.Drawing.Color.Green
400
         Me.採購控制表ToolStripMenuItem.ForeColor = System.Drawing.Color.Green
401
         Me.採購控制表ToolStripMenuItem.Name = "採購控制表ToolStripMenuItem"
401
         Me.採購控制表ToolStripMenuItem.Name = "採購控制表ToolStripMenuItem"
402
-        Me.採購控制表ToolStripMenuItem.Size = New System.Drawing.Size(180, 22)
402
+        Me.採購控制表ToolStripMenuItem.Size = New System.Drawing.Size(170, 22)
403
         Me.採購控制表ToolStripMenuItem.Text = "採購控制表"
403
         Me.採購控制表ToolStripMenuItem.Text = "採購控制表"
404
         '
404
         '
405
         'ToolStripSeparator16
405
         'ToolStripSeparator16
406
         '
406
         '
407
         Me.ToolStripSeparator16.Name = "ToolStripSeparator16"
407
         Me.ToolStripSeparator16.Name = "ToolStripSeparator16"
408
-        Me.ToolStripSeparator16.Size = New System.Drawing.Size(177, 6)
408
+        Me.ToolStripSeparator16.Size = New System.Drawing.Size(167, 6)
409
         '
409
         '
410
         '採購單申請ToolStripMenuItem
410
         '採購單申請ToolStripMenuItem
411
         '
411
         '
412
         Me.採購單申請ToolStripMenuItem.ForeColor = System.Drawing.Color.Green
412
         Me.採購單申請ToolStripMenuItem.ForeColor = System.Drawing.Color.Green
413
         Me.採購單申請ToolStripMenuItem.Name = "採購單申請ToolStripMenuItem"
413
         Me.採購單申請ToolStripMenuItem.Name = "採購單申請ToolStripMenuItem"
414
-        Me.採購單申請ToolStripMenuItem.Size = New System.Drawing.Size(180, 22)
414
+        Me.採購單申請ToolStripMenuItem.Size = New System.Drawing.Size(170, 22)
415
         Me.採購單申請ToolStripMenuItem.Text = "採購單申請"
415
         Me.採購單申請ToolStripMenuItem.Text = "採購單申請"
416
         '
416
         '
417
         '訂單採購需求申請ToolStripMenuItem1
417
         '訂單採購需求申請ToolStripMenuItem1
418
         '
418
         '
419
         Me.訂單採購需求申請ToolStripMenuItem1.ForeColor = System.Drawing.Color.Green
419
         Me.訂單採購需求申請ToolStripMenuItem1.ForeColor = System.Drawing.Color.Green
420
         Me.訂單採購需求申請ToolStripMenuItem1.Name = "訂單採購需求申請ToolStripMenuItem1"
420
         Me.訂單採購需求申請ToolStripMenuItem1.Name = "訂單採購需求申請ToolStripMenuItem1"
421
-        Me.訂單採購需求申請ToolStripMenuItem1.Size = New System.Drawing.Size(180, 22)
421
+        Me.訂單採購需求申請ToolStripMenuItem1.Size = New System.Drawing.Size(170, 22)
422
         Me.訂單採購需求申請ToolStripMenuItem1.Text = "訂單採購需求申請"
422
         Me.訂單採購需求申請ToolStripMenuItem1.Text = "訂單採購需求申請"
423
         '
423
         '
424
         'ToolStripSeparator8
424
         'ToolStripSeparator8
425
         '
425
         '
426
         Me.ToolStripSeparator8.Name = "ToolStripSeparator8"
426
         Me.ToolStripSeparator8.Name = "ToolStripSeparator8"
427
-        Me.ToolStripSeparator8.Size = New System.Drawing.Size(177, 6)
427
+        Me.ToolStripSeparator8.Size = New System.Drawing.Size(167, 6)
428
         '
428
         '
429
         '採購退貨清單ToolStripMenuItem
429
         '採購退貨清單ToolStripMenuItem
430
         '
430
         '
431
         Me.採購退貨清單ToolStripMenuItem.ForeColor = System.Drawing.Color.Green
431
         Me.採購退貨清單ToolStripMenuItem.ForeColor = System.Drawing.Color.Green
432
         Me.採購退貨清單ToolStripMenuItem.Name = "採購退貨清單ToolStripMenuItem"
432
         Me.採購退貨清單ToolStripMenuItem.Name = "採購退貨清單ToolStripMenuItem"
433
-        Me.採購退貨清單ToolStripMenuItem.Size = New System.Drawing.Size(180, 22)
433
+        Me.採購退貨清單ToolStripMenuItem.Size = New System.Drawing.Size(170, 22)
434
         Me.採購退貨清單ToolStripMenuItem.Text = "採購退貨清單"
434
         Me.採購退貨清單ToolStripMenuItem.Text = "採購退貨清單"
435
         '
435
         '
436
         '採購退貨申請ToolStripMenuItem
436
         '採購退貨申請ToolStripMenuItem
437
         '
437
         '
438
         Me.採購退貨申請ToolStripMenuItem.ForeColor = System.Drawing.Color.Green
438
         Me.採購退貨申請ToolStripMenuItem.ForeColor = System.Drawing.Color.Green
439
         Me.採購退貨申請ToolStripMenuItem.Name = "採購退貨申請ToolStripMenuItem"
439
         Me.採購退貨申請ToolStripMenuItem.Name = "採購退貨申請ToolStripMenuItem"
440
-        Me.採購退貨申請ToolStripMenuItem.Size = New System.Drawing.Size(180, 22)
440
+        Me.採購退貨申請ToolStripMenuItem.Size = New System.Drawing.Size(170, 22)
441
         Me.採購退貨申請ToolStripMenuItem.Text = "採購退貨申請"
441
         Me.採購退貨申請ToolStripMenuItem.Text = "採購退貨申請"
442
         '
442
         '
443
         '採購退貨確認ToolStripMenuItem
443
         '採購退貨確認ToolStripMenuItem
444
         '
444
         '
445
         Me.採購退貨確認ToolStripMenuItem.ForeColor = System.Drawing.Color.Green
445
         Me.採購退貨確認ToolStripMenuItem.ForeColor = System.Drawing.Color.Green
446
         Me.採購退貨確認ToolStripMenuItem.Name = "採購退貨確認ToolStripMenuItem"
446
         Me.採購退貨確認ToolStripMenuItem.Name = "採購退貨確認ToolStripMenuItem"
447
-        Me.採購退貨確認ToolStripMenuItem.Size = New System.Drawing.Size(180, 22)
447
+        Me.採購退貨確認ToolStripMenuItem.Size = New System.Drawing.Size(170, 22)
448
         Me.採購退貨確認ToolStripMenuItem.Text = "採購退貨確認"
448
         Me.採購退貨確認ToolStripMenuItem.Text = "採購退貨確認"
449
         '
449
         '
450
         'ToolStripSeparator2
450
         'ToolStripSeparator2
451
         '
451
         '
452
         Me.ToolStripSeparator2.Name = "ToolStripSeparator2"
452
         Me.ToolStripSeparator2.Name = "ToolStripSeparator2"
453
-        Me.ToolStripSeparator2.Size = New System.Drawing.Size(177, 6)
453
+        Me.ToolStripSeparator2.Size = New System.Drawing.Size(167, 6)
454
         '
454
         '
455
         '供應商資料管理ToolStripMenuItem
455
         '供應商資料管理ToolStripMenuItem
456
         '
456
         '
457
         Me.供應商資料管理ToolStripMenuItem.ForeColor = System.Drawing.Color.Green
457
         Me.供應商資料管理ToolStripMenuItem.ForeColor = System.Drawing.Color.Green
458
         Me.供應商資料管理ToolStripMenuItem.Name = "供應商資料管理ToolStripMenuItem"
458
         Me.供應商資料管理ToolStripMenuItem.Name = "供應商資料管理ToolStripMenuItem"
459
-        Me.供應商資料管理ToolStripMenuItem.Size = New System.Drawing.Size(180, 22)
459
+        Me.供應商資料管理ToolStripMenuItem.Size = New System.Drawing.Size(170, 22)
460
         Me.供應商資料管理ToolStripMenuItem.Text = "供應商資料管理"
460
         Me.供應商資料管理ToolStripMenuItem.Text = "供應商資料管理"
461
         '
461
         '
462
         '倉儲系統管理ToolStripMenuItem
462
         '倉儲系統管理ToolStripMenuItem
528
         '
528
         '
529
         '財務系統管理ToolStripMenuItem
529
         '財務系統管理ToolStripMenuItem
530
         '
530
         '
531
-        Me.財務系統管理ToolStripMenuItem.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.營運費用支付申請ToolStripMenuItem, Me.營運費用支付審核ToolStripMenuItem, Me.營運費用支付單一覽表ToolStripMenuItem, Me.營運成本收支單對帳表ToolStripMenuItem, Me.ToolStripSeparator13, Me.應付賬款ToolStripMenuItem, Me.應收帳款ToolStripMenuItem, Me.ToolStripSeparator15, Me.業務佣金計算ToolStripMenuItem, Me.司機佣金計算ToolStripMenuItem, Me.ToolStripSeparator3, Me.營運成本收支決算表ToolStripMenuItem, Me.營運狀態彙總檢視表ToolStripMenuItem})
531
+        Me.財務系統管理ToolStripMenuItem.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.營運費用支付申請ToolStripMenuItem, Me.營運費用支付審核ToolStripMenuItem, Me.營運費用支付單一覽表ToolStripMenuItem, Me.營運成本收支單對帳表ToolStripMenuItem, Me.ToolStripSeparator13, Me.應付賬款控制表ToolStripMenuItem, Me.應收帳款控制表ToolStripMenuItem, Me.ToolStripSeparator15, Me.業務佣金計算ToolStripMenuItem, Me.司機佣金計算ToolStripMenuItem, Me.ToolStripSeparator3, Me.營運成本收支決算表ToolStripMenuItem, Me.營運狀態彙總檢視表ToolStripMenuItem})
532
         Me.財務系統管理ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
532
         Me.財務系統管理ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
533
         Me.財務系統管理ToolStripMenuItem.Name = "財務系統管理ToolStripMenuItem"
533
         Me.財務系統管理ToolStripMenuItem.Name = "財務系統管理ToolStripMenuItem"
534
         Me.財務系統管理ToolStripMenuItem.Size = New System.Drawing.Size(91, 20)
534
         Me.財務系統管理ToolStripMenuItem.Size = New System.Drawing.Size(91, 20)
567
         Me.ToolStripSeparator13.Name = "ToolStripSeparator13"
567
         Me.ToolStripSeparator13.Name = "ToolStripSeparator13"
568
         Me.ToolStripSeparator13.Size = New System.Drawing.Size(196, 6)
568
         Me.ToolStripSeparator13.Size = New System.Drawing.Size(196, 6)
569
         '
569
         '
570
+        '應付賬款控制表ToolStripMenuItem
571
+        '
572
+        Me.應付賬款控制表ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
573
+        Me.應付賬款控制表ToolStripMenuItem.Name = "應付賬款控制表ToolStripMenuItem"
574
+        Me.應付賬款控制表ToolStripMenuItem.Size = New System.Drawing.Size(199, 22)
575
+        Me.應付賬款控制表ToolStripMenuItem.Text = "應付賬款控制表"
576
+        '
577
+        '應收帳款控制表ToolStripMenuItem
578
+        '
579
+        Me.應收帳款控制表ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
580
+        Me.應收帳款控制表ToolStripMenuItem.Name = "應收帳款控制表ToolStripMenuItem"
581
+        Me.應收帳款控制表ToolStripMenuItem.Size = New System.Drawing.Size(199, 22)
582
+        Me.應收帳款控制表ToolStripMenuItem.Text = "應收帳款控制表"
583
+        '
584
+        'ToolStripSeparator15
585
+        '
586
+        Me.ToolStripSeparator15.Name = "ToolStripSeparator15"
587
+        Me.ToolStripSeparator15.Size = New System.Drawing.Size(196, 6)
588
+        '
570
         '業務佣金計算ToolStripMenuItem
589
         '業務佣金計算ToolStripMenuItem
571
         '
590
         '
572
         Me.業務佣金計算ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
591
         Me.業務佣金計算ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
581
         Me.司機佣金計算ToolStripMenuItem.Size = New System.Drawing.Size(199, 22)
600
         Me.司機佣金計算ToolStripMenuItem.Size = New System.Drawing.Size(199, 22)
582
         Me.司機佣金計算ToolStripMenuItem.Text = "司機佣金計算"
601
         Me.司機佣金計算ToolStripMenuItem.Text = "司機佣金計算"
583
         '
602
         '
584
-        'ToolStripSeparator15
585
-        '
586
-        Me.ToolStripSeparator15.Name = "ToolStripSeparator15"
587
-        Me.ToolStripSeparator15.Size = New System.Drawing.Size(196, 6)
588
-        '
589
-        '應付賬款ToolStripMenuItem
590
-        '
591
-        Me.應付賬款ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
592
-        Me.應付賬款ToolStripMenuItem.Name = "應付賬款ToolStripMenuItem"
593
-        Me.應付賬款ToolStripMenuItem.Size = New System.Drawing.Size(199, 22)
594
-        Me.應付賬款ToolStripMenuItem.Text = "應付賬款"
595
-        '
596
-        '應收帳款ToolStripMenuItem
597
-        '
598
-        Me.應收帳款ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
599
-        Me.應收帳款ToolStripMenuItem.Name = "應收帳款ToolStripMenuItem"
600
-        Me.應收帳款ToolStripMenuItem.Size = New System.Drawing.Size(199, 22)
601
-        Me.應收帳款ToolStripMenuItem.Text = "應收帳款"
602
-        '
603
         'ToolStripSeparator3
603
         'ToolStripSeparator3
604
         '
604
         '
605
         Me.ToolStripSeparator3.Name = "ToolStripSeparator3"
605
         Me.ToolStripSeparator3.Name = "ToolStripSeparator3"
829
     Friend WithEvents 維修單申請ToolStripMenuItem As ToolStripMenuItem
829
     Friend WithEvents 維修單申請ToolStripMenuItem As ToolStripMenuItem
830
     Friend WithEvents 維修單出庫確認ToolStripMenuItem As ToolStripMenuItem
830
     Friend WithEvents 維修單出庫確認ToolStripMenuItem As ToolStripMenuItem
831
     Friend WithEvents ToolStripSeparator15 As ToolStripSeparator
831
     Friend WithEvents ToolStripSeparator15 As ToolStripSeparator
832
-    Friend WithEvents 應付賬款ToolStripMenuItem As ToolStripMenuItem
833
-    Friend WithEvents 應收帳款ToolStripMenuItem As ToolStripMenuItem
832
+    Friend WithEvents 應付賬款控制表ToolStripMenuItem As ToolStripMenuItem
833
+    Friend WithEvents 應收帳款控制表ToolStripMenuItem As ToolStripMenuItem
834
     Friend WithEvents 採購退貨申請ToolStripMenuItem As ToolStripMenuItem
834
     Friend WithEvents 採購退貨申請ToolStripMenuItem As ToolStripMenuItem
835
     Friend WithEvents ToolStripSeparator16 As ToolStripSeparator
835
     Friend WithEvents ToolStripSeparator16 As ToolStripSeparator
836
     Friend WithEvents 採購退貨清單ToolStripMenuItem As ToolStripMenuItem
836
     Friend WithEvents 採購退貨清單ToolStripMenuItem As ToolStripMenuItem

+ 5
- 5
MaoOrange-Hongji/MAOJI-ERP-SYS.vb Vedi File

88
         PA = "" : 系統使用者管理.Show() : 系統使用者管理.BringToFront()
88
         PA = "" : 系統使用者管理.Show() : 系統使用者管理.BringToFront()
89
     End Sub
89
     End Sub
90
     Private Sub 系統通用變數管理ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 系統通用變數管理ToolStripMenuItem.Click
90
     Private Sub 系統通用變數管理ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 系統通用變數管理ToolStripMenuItem.Click
91
-
91
+        PA = "" : 系統通用變數管理.Show() : 系統通用變數管理.BringToFront()
92
     End Sub
92
     End Sub
93
     Private Sub 系統編碼規則1ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 系統編碼規則1ToolStripMenuItem.Click
93
     Private Sub 系統編碼規則1ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 系統編碼規則1ToolStripMenuItem.Click
94
         PA = "" : 系統編碼規則_1.Show() : 系統編碼規則_1.BringToFront()
94
         PA = "" : 系統編碼規則_1.Show() : 系統編碼規則_1.BringToFront()
229
     Private Sub 銷售退貨確認ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 銷售退貨確認ToolStripMenuItem.Click
229
     Private Sub 銷售退貨確認ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 銷售退貨確認ToolStripMenuItem.Click
230
         PA = "" : 銷售退貨確認.Show() : 銷售退貨確認.BringToFront()
230
         PA = "" : 銷售退貨確認.Show() : 銷售退貨確認.BringToFront()
231
     End Sub
231
     End Sub
232
-    Private Sub 應付賬款ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 應付賬款ToolStripMenuItem.Click
233
-        PA = "" : 應付賬款.Show() : 應付賬款.BringToFront()
232
+    Private Sub 應付賬款ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 應付賬款控制表ToolStripMenuItem.Click
233
+        PA = "" : 應付賬款控制表.Show() : 應付賬款控制表.BringToFront()
234
     End Sub
234
     End Sub
235
-    Private Sub 應收帳款ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 應收帳款ToolStripMenuItem.Click
236
-        PA = "" : 應收帳款.Show() : 應收帳款.BringToFront()
235
+    Private Sub 應收帳款ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 應收帳款控制表ToolStripMenuItem.Click
236
+        PA = "" : 應收帳款控制表.Show() : 應收帳款控制表.BringToFront()
237
     End Sub
237
     End Sub
238
 End Class
238
 End Class

+ 19
- 10
MaoOrange-Hongji/MAOJI-ERP-SYS.vbproj Vedi File

127
     <Compile Include="倉儲系統管理\倉儲入庫驗收.vb">
127
     <Compile Include="倉儲系統管理\倉儲入庫驗收.vb">
128
       <SubType>Form</SubType>
128
       <SubType>Form</SubType>
129
     </Compile>
129
     </Compile>
130
-    <Compile Include="財務系統管理\應付賬款.Designer.vb">
131
-      <DependentUpon>應付賬款.vb</DependentUpon>
130
+    <Compile Include="資料庫系統管理\系統通用變數管理.Designer.vb">
131
+      <DependentUpon>系統通用變數管理.vb</DependentUpon>
132
     </Compile>
132
     </Compile>
133
-    <Compile Include="財務系統管理\應付賬款.vb">
133
+    <Compile Include="資料庫系統管理\系統通用變數管理.vb">
134
       <SubType>Form</SubType>
134
       <SubType>Form</SubType>
135
     </Compile>
135
     </Compile>
136
-    <Compile Include="財務系統管理\應收帳款.Designer.vb">
137
-      <DependentUpon>應收帳款.vb</DependentUpon>
136
+    <Compile Include="財務系統管理\應付賬款控制表.Designer.vb">
137
+      <DependentUpon>應付賬款控制表.vb</DependentUpon>
138
     </Compile>
138
     </Compile>
139
-    <Compile Include="財務系統管理\應收帳款.vb">
139
+    <Compile Include="財務系統管理\應付賬款控制表.vb">
140
+      <SubType>Form</SubType>
141
+    </Compile>
142
+    <Compile Include="財務系統管理\應收帳款控制表.Designer.vb">
143
+      <DependentUpon>應收帳款控制表.vb</DependentUpon>
144
+    </Compile>
145
+    <Compile Include="財務系統管理\應收帳款控制表.vb">
140
       <SubType>Form</SubType>
146
       <SubType>Form</SubType>
141
     </Compile>
147
     </Compile>
142
     <Compile Include="資料庫系統管理\列印_產品標籤介面.Designer.vb">
148
     <Compile Include="資料庫系統管理\列印_產品標籤介面.Designer.vb">
451
     <EmbeddedResource Include="倉儲系統管理\倉儲入庫驗收.resx">
457
     <EmbeddedResource Include="倉儲系統管理\倉儲入庫驗收.resx">
452
       <DependentUpon>倉儲入庫驗收.vb</DependentUpon>
458
       <DependentUpon>倉儲入庫驗收.vb</DependentUpon>
453
     </EmbeddedResource>
459
     </EmbeddedResource>
454
-    <EmbeddedResource Include="財務系統管理\應付賬款.resx">
455
-      <DependentUpon>應付賬款.vb</DependentUpon>
460
+    <EmbeddedResource Include="資料庫系統管理\系統通用變數管理.resx">
461
+      <DependentUpon>系統通用變數管理.vb</DependentUpon>
462
+    </EmbeddedResource>
463
+    <EmbeddedResource Include="財務系統管理\應付賬款控制表.resx">
464
+      <DependentUpon>應付賬款控制表.vb</DependentUpon>
456
     </EmbeddedResource>
465
     </EmbeddedResource>
457
-    <EmbeddedResource Include="財務系統管理\應收帳款.resx">
458
-      <DependentUpon>應收帳款.vb</DependentUpon>
466
+    <EmbeddedResource Include="財務系統管理\應收帳款控制表.resx">
467
+      <DependentUpon>應收帳款控制表.vb</DependentUpon>
459
     </EmbeddedResource>
468
     </EmbeddedResource>
460
     <EmbeddedResource Include="資料庫系統管理\列印_產品標籤介面.resx">
469
     <EmbeddedResource Include="資料庫系統管理\列印_產品標籤介面.resx">
461
       <DependentUpon>列印_產品標籤介面.vb</DependentUpon>
470
       <DependentUpon>列印_產品標籤介面.vb</DependentUpon>

+ 1
- 1
MaoOrange-Hongji/Module1/Module1.vb Vedi File

7
     Public 版本 As String = "2020052601"
7
     Public 版本 As String = "2020052601"
8
     '----系統用全域變數-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
8
     '----系統用全域變數-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
9
     Public 列印用SQL As String = "" : Public 列印用SQL2 As String : Public 公司編號 As String : Public 公司電話 As String : Public 公司統編 As String : Public 公司地址 As String
9
     Public 列印用SQL As String = "" : Public 列印用SQL2 As String : Public 公司編號 As String : Public 公司電話 As String : Public 公司統編 As String : Public 公司地址 As String
10
-
10
+    Public 關鍵字編號 As String
11
     Public PA As String = "" : Public PA1 As String = "" : Public PA2 As String = "" : Public PA3 As String = "" : Public PA4 As String = "" : Public PA5 As String = "" : Public PA6 As String = ""
11
     Public PA As String = "" : Public PA1 As String = "" : Public PA2 As String = "" : Public PA3 As String = "" : Public PA4 As String = "" : Public PA5 As String = "" : Public PA6 As String = ""
12
     Public PA7 As String = "" : Public PA8 As String = "" : Public PA9 As String = "" : Public PA10 As String = "" : Public PA11 As String = "" : Public PA12 As String = "" : Public PA13 As String = ""
12
     Public PA7 As String = "" : Public PA8 As String = "" : Public PA9 As String = "" : Public PA10 As String = "" : Public PA11 As String = "" : Public PA12 As String = "" : Public PA13 As String = ""
13
     Public PA14 As String = "" : Public PA15 As String = "" : Public PA16 As String = "" : Public PA17 As String = "" : Public PA18 As String = "" : Public PA19 As String = ""
13
     Public PA14 As String = "" : Public PA15 As String = "" : Public PA16 As String = "" : Public PA17 As String = "" : Public PA18 As String = "" : Public PA19 As String = ""

+ 31
- 8
MaoOrange-Hongji/Module1/SQL_Module.vb Vedi File

140
     Friend Sub SQL_出貨單申請_零售客戶記錄表流水號最後一筆()
140
     Friend Sub SQL_出貨單申請_零售客戶記錄表流水號最後一筆()
141
         ConnOpen() : SQL1 = "SELECT TOP (1) 零售流水號 FROM 零售客戶記錄表 ORDER BY 零售流水號 DESC" : CmdSet_For_dr()
141
         ConnOpen() : SQL1 = "SELECT TOP (1) 零售流水號 FROM 零售客戶記錄表 ORDER BY 零售流水號 DESC" : CmdSet_For_dr()
142
     End Sub
142
     End Sub
143
+    Friend Sub SQL_通用預設值管理查詢()
144
+        ConnOpen() : SQL1 = "SELECT 預設值 FROM 通用預設值管理表一 WHERE ( 流水號 LIKE N'" & 關鍵字編號 & "')" : CmdSet_For_dr()
145
+    End Sub
143
 
146
 
144
 
147
 
145
     '---------------------LoginForm1-----------------------------------------------------------------------------------------------------------------
148
     '---------------------LoginForm1-----------------------------------------------------------------------------------------------------------------
157
     End Sub
160
     End Sub
158
     '---------------------MAOJI_ERP_SYS-----------------------------------------------------------------------------------------------------------------
161
     '---------------------MAOJI_ERP_SYS-----------------------------------------------------------------------------------------------------------------
159
     Friend Sub SQL_公司選擇清單()
162
     Friend Sub SQL_公司選擇清單()
160
-        ConnOpen() : SQL1 = "SELECT 公司編號, 公司名, 統編, 電話, 地址 FROM MJ公司基本資料 ORDER BY 公司" : CmdSet_For_dr()
163
+        ConnOpen() : SQL1 = "SELECT 公司編號, 公司名, 統編, 電話, 地址 FROM MJ公司基本資料 ORDER BY 公司編號" : CmdSet_For_dr()
161
     End Sub
164
     End Sub
162
     '---------------------車輛保養紀錄表-----------------------------------------------------------------------------------------------------------------
165
     '---------------------車輛保養紀錄表-----------------------------------------------------------------------------------------------------------------
163
     Friend Sub SQL_車輛保養紀錄表()
166
     Friend Sub SQL_車輛保養紀錄表()
830
     '---------------------營運成本收支_決算表-----------------------------------------------------------------------------------------------------------------
833
     '---------------------營運成本收支_決算表-----------------------------------------------------------------------------------------------------------------
831
     Friend Sub SQL_營運成本收支_決算表年清單()
834
     Friend Sub SQL_營運成本收支_決算表年清單()
832
         ConnOpen()
835
         ConnOpen()
833
-        SQL1 = "SELECT      會計科目.層級, 會計科目.第一階, 會計科目.第二階, 會計科目.第一階 AS 主項, 會計科目.第二階 AS 子項, 會計科目.會計科目 AS 子細項, QQWW.主項金額, WWEE.子項金額, EERR.細項金額
836
+        SQL1 = "SELECT      會計科目.層級, 會計科目.第一階, 會計科目.第二階, 會計科目.第一階 AS 主項, 會計科目.第二階 AS 子項, 會計科目.會計科目 AS 子細項, QQWW.主項金額, WWEE.子項金額, 
837
+                            EERR.細項金額, 會計科目.抵銷科目 AS 抵銷, QQWW.主項金額 AS 主項彙總, WWEE.子項金額 AS 子項彙總, EERR.細項金額 AS 細項彙總
834
                 FROM        會計科目 FULL OUTER JOIN
838
                 FROM        會計科目 FULL OUTER JOIN
835
                                (SELECT 營運成本明細表_3.會計科目 AS 細項, SUM(營運成本明細表_3.零用金) + SUM(營運成本明細表_3.支票數) + SUM(營運成本明細表_3.收款) - 
839
                                (SELECT 營運成本明細表_3.會計科目 AS 細項, SUM(營運成本明細表_3.零用金) + SUM(營運成本明細表_3.支票數) + SUM(營運成本明細表_3.收款) - 
836
                                        SUM(營運成本明細表_3.金額) AS 細項金額
840
                                        SUM(營運成本明細表_3.金額) AS 細項金額
859
     Friend Sub SQL_營運成本收支_決算表月清單()
863
     Friend Sub SQL_營運成本收支_決算表月清單()
860
         ConnOpen()
864
         ConnOpen()
861
         SQL1 = "SELECT      會計科目.層級, 會計科目.第一階, 會計科目.第二階, 會計科目.第一階 AS 主項, 會計科目.第二階 AS 子項, 會計科目.會計科目 AS 子細項, QQWW.主項金額, WWEE.子項金額, EERR.細項金額, 
865
         SQL1 = "SELECT      會計科目.層級, 會計科目.第一階, 會計科目.第二階, 會計科目.第一階 AS 主項, 會計科目.第二階 AS 子項, 會計科目.會計科目 AS 子細項, QQWW.主項金額, WWEE.子項金額, EERR.細項金額, 
862
-                            EERR.細項金額 AS [金額]
866
+                            EERR.細項金額 AS [金額], 會計科目.抵銷科目 AS 抵銷, EERR.細項金額 AS [彙總]
863
                 FROM        會計科目 FULL OUTER JOIN
867
                 FROM        會計科目 FULL OUTER JOIN
864
                                (SELECT 營運成本明細表_3.會計科目 AS 細項, SUM(營運成本明細表_3.零用金) + SUM(營運成本明細表_3.支票數) + SUM(營運成本明細表_3.收款) - 
868
                                (SELECT 營運成本明細表_3.會計科目 AS 細項, SUM(營運成本明細表_3.零用金) + SUM(營運成本明細表_3.支票數) + SUM(營運成本明細表_3.收款) - 
865
                                        SUM(營運成本明細表_3.金額) AS 細項金額
869
                                        SUM(營運成本明細表_3.金額) AS 細項金額
892
         ConnOpen() : SQL1 = "UPDATE 財務決算表合計預設 SET  名稱 = N'" & PA1 & "', 年度合計 = N'" & 布林1 & "' WHERE (項次 LIKE '" & PA2 & "')" : CmdSet_For_dr()
896
         ConnOpen() : SQL1 = "UPDATE 財務決算表合計預設 SET  名稱 = N'" & PA1 & "', 年度合計 = N'" & 布林1 & "' WHERE (項次 LIKE '" & PA2 & "')" : CmdSet_For_dr()
893
     End Sub
897
     End Sub
894
     Friend Sub SQL_營運成本收支_決算表_會計科目()
898
     Friend Sub SQL_營運成本收支_決算表_會計科目()
895
-        ConnOpen() : SQL1 = "SELECT 會計科目 FROM 會計科目 WHERE (層級 LIKE '1') ORDER BY  會計科目" : CmdSet_For_dr()
899
+        ConnOpen() : SQL1 = "SELECT 會計科目 FROM 會計科目 WHERE (層級 LIKE '1') AND (停用 IS NULL OR 停用 = 0) ORDER BY  會計科目" : CmdSet_For_dr()
900
+    End Sub
901
+    Friend Sub SQL_營運成本收支_決算表_彙總借貸()
902
+        ConnOpen() : SQL1 = "SELECT 抵銷科目 FROM dbo.會計科目 WHERE (層級 LIKE 1) AND (會計科目 LIKE '" & PA1 & "')" : CmdSet_For_dr()
896
     End Sub
903
     End Sub
897
     '---------------------營運成本收支單_對帳表-----------------------------------------------------------------------------------------------------------------
904
     '---------------------營運成本收支單_對帳表-----------------------------------------------------------------------------------------------------------------
898
     Friend Sub SQL_營運成本收支_決算表_清單()
905
     Friend Sub SQL_營運成本收支_決算表_清單()
2068
     End Sub
2075
     End Sub
2069
     '---------------------應付賬款-----------------------------------------------------------------------------------------------------------------
2076
     '---------------------應付賬款-----------------------------------------------------------------------------------------------------------------
2070
     Friend Sub SQL_應付賬款清單()
2077
     Friend Sub SQL_應付賬款清單()
2071
-        If 應付賬款.CheckBox3.Checked = False Then
2078
+        If 應付賬款控制表.CheckBox3.Checked = False Then
2072
             KKKJJ = " WHERE (倉儲明細表.狀態 LIKE '採購入庫') AND (倉儲明細表.倉儲作業 NOT LIKE '') AND (倉儲明細表.公司編號 LIKE '%" & 公司編號 & "%') AND 
2079
             KKKJJ = " WHERE (倉儲明細表.狀態 LIKE '採購入庫') AND (倉儲明細表.倉儲作業 NOT LIKE '') AND (倉儲明細表.公司編號 LIKE '%" & 公司編號 & "%') AND 
2073
-                            (倉儲明細表.倉儲作業 BETWEEN '" & Format(應付賬款.DateTimePicker1.Value, "yyyy/MM/dd") & "' AND '" & Format(應付賬款.DateTimePicker2.Value, "yyyy/MM/dd") & "') "
2074
-        ElseIf 應付賬款.CheckBox3.Checked = True Then
2080
+                            (倉儲明細表.倉儲作業 BETWEEN '" & Format(應付賬款控制表.DateTimePicker1.Value, "yyyy/MM/dd") & "' AND '" & Format(應付賬款控制表.DateTimePicker2.Value, "yyyy/MM/dd") & "') "
2081
+        ElseIf 應付賬款控制表.CheckBox3.Checked = True Then
2075
             KKKJJ = " WHERE (倉儲明細表.狀態 LIKE '採購入庫') AND (倉儲明細表.倉儲作業 NOT LIKE '') AND (倉儲明細表.公司編號 LIKE '%" & 公司編號 & "%') AND 
2082
             KKKJJ = " WHERE (倉儲明細表.狀態 LIKE '採購入庫') AND (倉儲明細表.倉儲作業 NOT LIKE '') AND (倉儲明細表.公司編號 LIKE '%" & 公司編號 & "%') AND 
2076
-                            (倉儲明細表.倉儲作業 BETWEEN '" & Format(應付賬款.DateTimePicker1.Value, "yyyy/MM/dd") & "' AND '" & Format(應付賬款.DateTimePicker2.Value, "yyyy/MM/dd") & "') AND 
2083
+                            (倉儲明細表.倉儲作業 BETWEEN '" & Format(應付賬款控制表.DateTimePicker1.Value, "yyyy/MM/dd") & "' AND '" & Format(應付賬款控制表.DateTimePicker2.Value, "yyyy/MM/dd") & "') AND 
2077
                             (倉儲明細表.應付立帳 IS NULL OR 倉儲明細表.應付立帳 = 0)"
2084
                             (倉儲明細表.應付立帳 IS NULL OR 倉儲明細表.應付立帳 = 0)"
2078
         End If
2085
         End If
2079
         ConnOpen()
2086
         ConnOpen()
2091
     Friend Sub SQL_應付賬款_倉儲明細應付立帳修改()
2098
     Friend Sub SQL_應付賬款_倉儲明細應付立帳修改()
2092
         ConnOpen() : SQL1 = "UPDATE 倉儲明細表 SET 應付立帳 = 1 WHERE 資料流水號 LIKE '" & PA6 & "'" : CmdSet_For_dr()
2099
         ConnOpen() : SQL1 = "UPDATE 倉儲明細表 SET 應付立帳 = 1 WHERE 資料流水號 LIKE '" & PA6 & "'" : CmdSet_For_dr()
2093
     End Sub
2100
     End Sub
2101
+    '---------------------系統通用變數管理-----------------------------------------------------------------------------------------------------------------
2102
+    Friend Sub SQL_通用預設值管理清單一()
2103
+        ConnOpen() : SQL1 = "SELECT 流水號, 使用介面, 說明, 預設值 FROM 通用預設值管理表一 ORDER BY 使用介面" : CmdSet_For_DGV()
2104
+    End Sub
2105
+    Friend Sub SQL_系統通用變數管理流水號查詢()
2106
+        ConnOpen() : SQL1 = "SELECT TOP (1) 流水號 FROM 通用預設值管理表一 ORDER BY 流水號 DESC" : CmdSet_For_dr()
2107
+    End Sub
2108
+    Friend Sub SQL_系統通用變數管理新增()
2109
+        SQL1 = "INSERT INTO 通用預設值管理表一 (流水號, 使用介面, 說明, 預設值) VALUES (N'" & PA1 & "', N'" & PA2 & "', N'" & PA3 & "', N'" & PA4 & "')"
2110
+    End Sub
2111
+    Friend Sub SQL_系統通用變數管理修改()
2112
+        SQL1 = "UPDATE 通用預設值管理表一 SET 使用介面 = N'" & PA2 & "', 說明 = N'" & PA3 & "', 預設值 = N'" & PA4 & "' WHERE 流水號 LIKE N'" & PA1 & "'"
2113
+    End Sub
2114
+    Friend Sub SQL_系統通用變數管理刪除()
2115
+        SQL1 = "DELETE FROM 通用預設值管理表一 WHERE (流水號 = N'" & PA1 & "')"
2116
+    End Sub
2094
 End Module
2117
 End Module

BIN
MaoOrange-Hongji/bin/Debug/MAOJI-ERP-SYS.exe Vedi File


BIN
MaoOrange-Hongji/bin/Debug/MAOJI-ERP-SYS.pdb Vedi File


BIN
MaoOrange-Hongji/obj/Debug/DesignTimeResolveAssemblyReferences.cache Vedi File


BIN
MaoOrange-Hongji/obj/Debug/MAOJI-ERP-SYS.exe Vedi File


BIN
MaoOrange-Hongji/obj/Debug/MAOJI-ERP-SYS.pdb Vedi File


+ 1
- 1
MaoOrange-Hongji/obj/Debug/MAOJI-ERP-SYS.vbproj.CoreCompileInputs.cache Vedi File

1
-84a65d51099e001819ad25f73750d6cf42c2d237
1
+00cd1c6306df0c5d8944e0bca02266ab61e77410

+ 3
- 2
MaoOrange-Hongji/obj/Debug/MAOJI-ERP-SYS.vbproj.FileListAbsolute.txt Vedi File

194
 G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.銷售退貨清單.resources
194
 G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.銷售退貨清單.resources
195
 G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.銷售退貨確認.resources
195
 G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.銷售退貨確認.resources
196
 G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.列印_產品標籤介面.resources
196
 G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.列印_產品標籤介面.resources
197
-G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.應付賬款.resources
198
-G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.應收帳款.resources
197
+G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.應付賬款控制表.resources
198
+G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.應收帳款控制表.resources
199
+G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.系統通用變數管理.resources

BIN
MaoOrange-Hongji/obj/Debug/MAOJI-ERP-SYS.vbproj.GenerateResource.cache Vedi File


BIN
MaoOrange-Hongji/obj/Debug/MAOJI-ERP-SYS.vbproj.ResolveComReference.cache Vedi File


BIN
MaoOrange-Hongji/obj/Debug/MAOJI-ERP-SYS.vbprojAssemblyReference.cache Vedi File


MaoOrange-Hongji/obj/Debug/MaoOrange_Hongji.應付賬款.resources → MaoOrange-Hongji/obj/Debug/MaoOrange_Hongji.應付賬款控制表.resources Vedi File


MaoOrange-Hongji/obj/Debug/MaoOrange_Hongji.應收帳款.resources → MaoOrange-Hongji/obj/Debug/MaoOrange_Hongji.應收帳款控制表.resources Vedi File


BIN
MaoOrange-Hongji/obj/Debug/MaoOrange_Hongji.系統通用變數管理.resources Vedi File


MaoOrange-Hongji/財務系統管理/應付賬款.Designer.vb → MaoOrange-Hongji/財務系統管理/應付賬款控制表.Designer.vb Vedi File

1
 <Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
1
 <Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
2
-Partial Class 應付賬款
2
+Partial Class 應付賬款控制表
3
     Inherits System.Windows.Forms.Form
3
     Inherits System.Windows.Forms.Form
4
 
4
 
5
     'Form 覆寫 Dispose 以清除元件清單。
5
     'Form 覆寫 Dispose 以清除元件清單。
22
     '請勿使用程式碼編輯器進行修改。
22
     '請勿使用程式碼編輯器進行修改。
23
     <System.Diagnostics.DebuggerStepThrough()> _
23
     <System.Diagnostics.DebuggerStepThrough()> _
24
     Private Sub InitializeComponent()
24
     Private Sub InitializeComponent()
25
-        Dim DataGridViewCellStyle3 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26
-        Dim DataGridViewCellStyle4 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
25
+        Dim DataGridViewCellStyle1 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26
+        Dim DataGridViewCellStyle2 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27
         Me.Button1 = New System.Windows.Forms.Button()
27
         Me.Button1 = New System.Windows.Forms.Button()
28
         Me.一般月 = New System.Windows.Forms.CheckBox()
28
         Me.一般月 = New System.Windows.Forms.CheckBox()
29
         Me.會計月 = New System.Windows.Forms.CheckBox()
29
         Me.會計月 = New System.Windows.Forms.CheckBox()
139
         '
139
         '
140
         'DataGridView1
140
         'DataGridView1
141
         '
141
         '
142
-        DataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer))
143
-        Me.DataGridView1.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle3
142
+        DataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer))
143
+        Me.DataGridView1.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle1
144
         Me.DataGridView1.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
144
         Me.DataGridView1.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
145
             Or System.Windows.Forms.AnchorStyles.Left) _
145
             Or System.Windows.Forms.AnchorStyles.Left) _
146
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
146
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
150
         Me.DataGridView1.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
150
         Me.DataGridView1.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
151
         Me.DataGridView1.Name = "DataGridView1"
151
         Me.DataGridView1.Name = "DataGridView1"
152
         Me.DataGridView1.RowHeadersWidth = 5
152
         Me.DataGridView1.RowHeadersWidth = 5
153
-        DataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
154
-        Me.DataGridView1.RowsDefaultCellStyle = DataGridViewCellStyle4
153
+        DataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
154
+        Me.DataGridView1.RowsDefaultCellStyle = DataGridViewCellStyle2
155
         Me.DataGridView1.RowTemplate.Height = 24
155
         Me.DataGridView1.RowTemplate.Height = 24
156
         Me.DataGridView1.Size = New System.Drawing.Size(1225, 518)
156
         Me.DataGridView1.Size = New System.Drawing.Size(1225, 518)
157
         Me.DataGridView1.TabIndex = 1108
157
         Me.DataGridView1.TabIndex = 1108
453
         Me.TextBox5.Size = New System.Drawing.Size(190, 23)
453
         Me.TextBox5.Size = New System.Drawing.Size(190, 23)
454
         Me.TextBox5.TabIndex = 1165
454
         Me.TextBox5.TabIndex = 1165
455
         '
455
         '
456
-        '應付賬款
456
+        '應付賬款控制表
457
         '
457
         '
458
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
458
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
459
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
459
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
498
         Me.Controls.Add(Me.DataGridView1)
498
         Me.Controls.Add(Me.DataGridView1)
499
         Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
499
         Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
500
         Me.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
500
         Me.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
501
-        Me.Name = "應付賬款"
502
-        Me.Text = "應付賬款"
501
+        Me.Name = "應付賬款控制表"
502
+        Me.Text = "應付賬款控制表"
503
         CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).EndInit()
503
         CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).EndInit()
504
         CType(Me.NumericUpDown1, System.ComponentModel.ISupportInitialize).EndInit()
504
         CType(Me.NumericUpDown1, System.ComponentModel.ISupportInitialize).EndInit()
505
         CType(Me.NumericUpDown2, System.ComponentModel.ISupportInitialize).EndInit()
505
         CType(Me.NumericUpDown2, System.ComponentModel.ISupportInitialize).EndInit()

MaoOrange-Hongji/財務系統管理/應付賬款.resx → MaoOrange-Hongji/財務系統管理/應付賬款控制表.resx Vedi File


MaoOrange-Hongji/財務系統管理/應付賬款.vb → MaoOrange-Hongji/財務系統管理/應付賬款控制表.vb Vedi File

8
 Imports Microsoft.Office.Interop.Excel.XlThemeColor
8
 Imports Microsoft.Office.Interop.Excel.XlThemeColor
9
 Imports Microsoft.Office.Interop.Excel.XlWindowState
9
 Imports Microsoft.Office.Interop.Excel.XlWindowState
10
 Imports Microsoft.Office.Interop.Excel
10
 Imports Microsoft.Office.Interop.Excel
11
-Public Class 應付賬款
11
+Public Class 應付賬款控制表
12
     ReadOnly ds As New DataSet
12
     ReadOnly ds As New DataSet
13
     Dim N1 As Integer : Dim 新項次 As String
13
     Dim N1 As Integer : Dim 新項次 As String
14
     Dim xlApp As Application : Dim xlBook As Workbook : Dim xlSheet As Worksheet
14
     Dim xlApp As Application : Dim xlBook As Workbook : Dim xlSheet As Worksheet
71
             DTP = Strings.Left(Strings.Format(DateTimePicker2.Value, "yyyy/MM/dd"), 8) & iDays : DateTimePicker2.Value = DTP
71
             DTP = Strings.Left(Strings.Format(DateTimePicker2.Value, "yyyy/MM/dd"), 8) & iDays : DateTimePicker2.Value = DTP
72
         End If
72
         End If
73
     End Sub
73
     End Sub
74
+    Private Sub 預設關鍵字()
75
+        關鍵字編號 = "DV002" : SQL_通用預設值管理查詢() : If dr.Read() Then : TextBox9.Text = dr("預設值") : End If
76
+    End Sub
74
     Private Sub 應付賬款_Load(sender As Object, e As EventArgs) Handles MyBase.Load
77
     Private Sub 應付賬款_Load(sender As Object, e As EventArgs) Handles MyBase.Load
75
         Me.MdiParent = MAOJI_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
78
         Me.MdiParent = MAOJI_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
76
         ComboBox6.Visible = False : TextBox1.Visible = False : TextBox4.Visible = False : TextBox5.Visible = False
79
         ComboBox6.Visible = False : TextBox1.Visible = False : TextBox4.Visible = False : TextBox5.Visible = False
77
         TextBox1.Text = "0" : TextBox2.Text = "0"
80
         TextBox1.Text = "0" : TextBox2.Text = "0"
78
         ComboBox1下拉表單資料載入() : ComboBox3下拉表單資料載入() : ComboBox6下拉表單資料載入() : 日期格式() : Set_賬款清單()
81
         ComboBox1下拉表單資料載入() : ComboBox3下拉表單資料載入() : ComboBox6下拉表單資料載入() : 日期格式() : Set_賬款清單()
82
+        預設關鍵字()
79
     End Sub
83
     End Sub
80
     Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
84
     Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
81
         DateTimePicker1.Value = DateTimePicker1.Value.AddMonths(-1) : DateTimePicker2.Value = DateTimePicker2.Value.AddMonths(-1) : Set_賬款清單()
85
         DateTimePicker1.Value = DateTimePicker1.Value.AddMonths(-1) : DateTimePicker2.Value = DateTimePicker2.Value.AddMonths(-1) : Set_賬款清單()
189
                 For i As Integer = 0 To DataGridView1.Rows.Count - 1
193
                 For i As Integer = 0 To DataGridView1.Rows.Count - 1
190
                     If DataGridView1.Rows(i).Cells("選擇").Value = True Then
194
                     If DataGridView1.Rows(i).Cells("選擇").Value = True Then
191
                         MsgBox("該採購單已經開立過傳票,如是之前開立有誤需要從新開立,請先點擊--依據單號取消立帳選擇--按鈕。如是因採購退貨需要開立收支單(傳票)請先勾選--已立帳資料隱藏--再行操作。")
195
                         MsgBox("該採購單已經開立過傳票,如是之前開立有誤需要從新開立,請先點擊--依據單號取消立帳選擇--按鈕。如是因採購退貨需要開立收支單(傳票)請先勾選--已立帳資料隱藏--再行操作。")
192
-                        確認 = True : Exit Sub
196
+                        Exit Sub
193
                     End If
197
                     End If
194
                 Next
198
                 Next
195
                 If 確認 = False Then : MsgBox("沒有選擇任何一筆要轉收支帳(傳票)的採購單號。")
199
                 If 確認 = False Then : MsgBox("沒有選擇任何一筆要轉收支帳(傳票)的採購單號。")
209
                     If dr.Read() Then : 新項次 = dr("項次") : Else : 新項次 = "00" : End If : conn.Close() : NUM1 = Double.Parse(新項次) + 1
213
                     If dr.Read() Then : 新項次 = dr("項次") : Else : 新項次 = "00" : End If : conn.Close() : NUM1 = Double.Parse(新項次) + 1
210
                     If NUM1 < 10 Then : 新項次 = "0" & NUM1
214
                     If NUM1 < 10 Then : 新項次 = "0" & NUM1
211
                     ElseIf NUM1 > 9 And NUM1 < 100 Then : 新項次 = NUM1 : End If
215
                     ElseIf NUM1 > 9 And NUM1 < 100 Then : 新項次 = NUM1 : End If
212
-
213
-                    PA1 = TextBox4.Text : PA2 = 新項次 : PA3 = "B-02-02-02" : PA4 = TextBox5.Text & " - " & DateTimePicker1.Value & " 到 " & DateTimePicker2.Value & " 應付帳款"
216
+                    關鍵字編號 = "DV001" : SQL_通用預設值管理查詢() : If dr.Read() Then : PA3 = dr("預設值") : End If
217
+                    PA1 = TextBox4.Text : PA2 = 新項次 : PA4 = TextBox5.Text & " - " & DateTimePicker1.Value & " 到 " & DateTimePicker2.Value & " 應付帳款"
214
                     NU1 = NumericUpDown1.Value : PA5 = "" : NU2 = 0 : NU3 = 0 : NU4 = 0
218
                     NU1 = NumericUpDown1.Value : PA5 = "" : NU2 = 0 : NU3 = 0 : NU4 = 0
215
                     SQL_營運成本明細表新增()
219
                     SQL_營運成本明細表新增()
216
 
220
 

MaoOrange-Hongji/財務系統管理/應收帳款.Designer.vb → MaoOrange-Hongji/財務系統管理/應收帳款控制表.Designer.vb Vedi File

1
 <Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
1
 <Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
2
-Partial Class 應收帳款
2
+Partial Class 應收帳款控制表
3
     Inherits System.Windows.Forms.Form
3
     Inherits System.Windows.Forms.Form
4
 
4
 
5
     'Form 覆寫 Dispose 以清除元件清單。
5
     'Form 覆寫 Dispose 以清除元件清單。
124
         Me.DataGridView1.Size = New System.Drawing.Size(1225, 545)
124
         Me.DataGridView1.Size = New System.Drawing.Size(1225, 545)
125
         Me.DataGridView1.TabIndex = 1116
125
         Me.DataGridView1.TabIndex = 1116
126
         '
126
         '
127
-        '應收帳款
127
+        '應收帳款控制表
128
         '
128
         '
129
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
129
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
130
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
130
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
139
         Me.Controls.Add(Me.DataGridView1)
139
         Me.Controls.Add(Me.DataGridView1)
140
         Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
140
         Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
141
         Me.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
141
         Me.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
142
-        Me.Name = "應收帳款"
143
-        Me.Text = "應收帳款"
142
+        Me.Name = "應收帳款控制表"
143
+        Me.Text = "應收帳款控制表"
144
         CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).EndInit()
144
         CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).EndInit()
145
         Me.ResumeLayout(False)
145
         Me.ResumeLayout(False)
146
         Me.PerformLayout()
146
         Me.PerformLayout()

MaoOrange-Hongji/財務系統管理/應收帳款.resx → MaoOrange-Hongji/財務系統管理/應收帳款控制表.resx Vedi File


MaoOrange-Hongji/財務系統管理/應收帳款.vb → MaoOrange-Hongji/財務系統管理/應收帳款控制表.vb Vedi File

1
 Option Strict Off
1
 Option Strict Off
2
-Public Class 應收帳款
2
+Public Class 應收帳款控制表
3
     Private Sub 應收帳款_Load(sender As Object, e As EventArgs) Handles MyBase.Load
3
     Private Sub 應收帳款_Load(sender As Object, e As EventArgs) Handles MyBase.Load
4
 
4
 
5
     End Sub
5
     End Sub

+ 185
- 81
MaoOrange-Hongji/財務系統管理/營運成本收支_決算表.Designer.vb Vedi File

23
     <System.Diagnostics.DebuggerStepThrough()> _
23
     <System.Diagnostics.DebuggerStepThrough()> _
24
     Private Sub InitializeComponent()
24
     Private Sub InitializeComponent()
25
         Me.components = New System.ComponentModel.Container()
25
         Me.components = New System.ComponentModel.Container()
26
-        Dim DataGridViewCellStyle29 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27
-        Dim DataGridViewCellStyle30 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
28
-        Dim DataGridViewCellStyle31 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
29
-        Dim DataGridViewCellStyle32 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
30
-        Dim DataGridViewCellStyle33 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
31
-        Dim DataGridViewCellStyle34 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
32
-        Dim DataGridViewCellStyle35 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
33
-        Dim DataGridViewCellStyle36 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
34
-        Dim DataGridViewCellStyle37 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
35
-        Dim DataGridViewCellStyle38 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
36
-        Dim DataGridViewCellStyle39 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
37
-        Dim DataGridViewCellStyle40 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
38
-        Dim DataGridViewCellStyle41 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
39
-        Dim DataGridViewCellStyle42 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26
+        Dim DataGridViewCellStyle1 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27
+        Dim DataGridViewCellStyle2 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
28
+        Dim DataGridViewCellStyle3 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
29
+        Dim DataGridViewCellStyle4 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
30
+        Dim DataGridViewCellStyle5 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
31
+        Dim DataGridViewCellStyle6 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
32
+        Dim DataGridViewCellStyle7 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
33
+        Dim DataGridViewCellStyle8 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
34
+        Dim DataGridViewCellStyle9 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
35
+        Dim DataGridViewCellStyle10 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
36
+        Dim DataGridViewCellStyle11 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
37
+        Dim DataGridViewCellStyle12 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
38
+        Dim DataGridViewCellStyle13 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
39
+        Dim DataGridViewCellStyle14 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
40
         Me.ContextMenuStrip1 = New System.Windows.Forms.ContextMenuStrip(Me.components)
40
         Me.ContextMenuStrip1 = New System.Windows.Forms.ContextMenuStrip(Me.components)
41
         Me.重新整理ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
41
         Me.重新整理ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
42
         Me.Button2 = New System.Windows.Forms.Button()
42
         Me.Button2 = New System.Windows.Forms.Button()
197
         Me.CheckBox7 = New System.Windows.Forms.CheckBox()
197
         Me.CheckBox7 = New System.Windows.Forms.CheckBox()
198
         Me.DataGridView14 = New System.Windows.Forms.DataGridView()
198
         Me.DataGridView14 = New System.Windows.Forms.DataGridView()
199
         Me.Button3 = New System.Windows.Forms.Button()
199
         Me.Button3 = New System.Windows.Forms.Button()
200
+        Me.Button4 = New System.Windows.Forms.Button()
201
+        Me.TextBox105 = New System.Windows.Forms.TextBox()
202
+        Me.TextBox106 = New System.Windows.Forms.TextBox()
203
+        Me.TextBox107 = New System.Windows.Forms.TextBox()
204
+        Me.TextBox108 = New System.Windows.Forms.TextBox()
205
+        Me.TextBox109 = New System.Windows.Forms.TextBox()
206
+        Me.TextBox110 = New System.Windows.Forms.TextBox()
207
+        Me.TextBox111 = New System.Windows.Forms.TextBox()
200
         Me.ContextMenuStrip1.SuspendLayout()
208
         Me.ContextMenuStrip1.SuspendLayout()
201
         CType(Me.DataGridView13, System.ComponentModel.ISupportInitialize).BeginInit()
209
         CType(Me.DataGridView13, System.ComponentModel.ISupportInitialize).BeginInit()
202
         CType(Me.DataGridView12, System.ComponentModel.ISupportInitialize).BeginInit()
210
         CType(Me.DataGridView12, System.ComponentModel.ISupportInitialize).BeginInit()
386
         Me.DataGridView13.Location = New System.Drawing.Point(1780, 27)
394
         Me.DataGridView13.Location = New System.Drawing.Point(1780, 27)
387
         Me.DataGridView13.Name = "DataGridView13"
395
         Me.DataGridView13.Name = "DataGridView13"
388
         Me.DataGridView13.RowHeadersWidth = 5
396
         Me.DataGridView13.RowHeadersWidth = 5
389
-        DataGridViewCellStyle29.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
390
-        DataGridViewCellStyle29.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
391
-        Me.DataGridView13.RowsDefaultCellStyle = DataGridViewCellStyle29
397
+        DataGridViewCellStyle1.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
398
+        DataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
399
+        Me.DataGridView13.RowsDefaultCellStyle = DataGridViewCellStyle1
392
         Me.DataGridView13.RowTemplate.Height = 24
400
         Me.DataGridView13.RowTemplate.Height = 24
393
         Me.DataGridView13.ScrollBars = System.Windows.Forms.ScrollBars.None
401
         Me.DataGridView13.ScrollBars = System.Windows.Forms.ScrollBars.None
394
         Me.DataGridView13.Size = New System.Drawing.Size(116, 740)
402
         Me.DataGridView13.Size = New System.Drawing.Size(116, 740)
403
         Me.DataGridView12.Location = New System.Drawing.Point(1662, 27)
411
         Me.DataGridView12.Location = New System.Drawing.Point(1662, 27)
404
         Me.DataGridView12.Name = "DataGridView12"
412
         Me.DataGridView12.Name = "DataGridView12"
405
         Me.DataGridView12.RowHeadersWidth = 5
413
         Me.DataGridView12.RowHeadersWidth = 5
406
-        DataGridViewCellStyle30.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
407
-        DataGridViewCellStyle30.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
408
-        Me.DataGridView12.RowsDefaultCellStyle = DataGridViewCellStyle30
414
+        DataGridViewCellStyle2.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
415
+        DataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
416
+        Me.DataGridView12.RowsDefaultCellStyle = DataGridViewCellStyle2
409
         Me.DataGridView12.RowTemplate.Height = 24
417
         Me.DataGridView12.RowTemplate.Height = 24
410
         Me.DataGridView12.ScrollBars = System.Windows.Forms.ScrollBars.None
418
         Me.DataGridView12.ScrollBars = System.Windows.Forms.ScrollBars.None
411
         Me.DataGridView12.Size = New System.Drawing.Size(116, 740)
419
         Me.DataGridView12.Size = New System.Drawing.Size(116, 740)
420
         Me.DataGridView11.Location = New System.Drawing.Point(1544, 27)
428
         Me.DataGridView11.Location = New System.Drawing.Point(1544, 27)
421
         Me.DataGridView11.Name = "DataGridView11"
429
         Me.DataGridView11.Name = "DataGridView11"
422
         Me.DataGridView11.RowHeadersWidth = 5
430
         Me.DataGridView11.RowHeadersWidth = 5
423
-        DataGridViewCellStyle31.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
424
-        DataGridViewCellStyle31.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
425
-        Me.DataGridView11.RowsDefaultCellStyle = DataGridViewCellStyle31
431
+        DataGridViewCellStyle3.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
432
+        DataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
433
+        Me.DataGridView11.RowsDefaultCellStyle = DataGridViewCellStyle3
426
         Me.DataGridView11.RowTemplate.Height = 24
434
         Me.DataGridView11.RowTemplate.Height = 24
427
         Me.DataGridView11.ScrollBars = System.Windows.Forms.ScrollBars.None
435
         Me.DataGridView11.ScrollBars = System.Windows.Forms.ScrollBars.None
428
         Me.DataGridView11.Size = New System.Drawing.Size(116, 740)
436
         Me.DataGridView11.Size = New System.Drawing.Size(116, 740)
437
         Me.DataGridView10.Location = New System.Drawing.Point(1426, 27)
445
         Me.DataGridView10.Location = New System.Drawing.Point(1426, 27)
438
         Me.DataGridView10.Name = "DataGridView10"
446
         Me.DataGridView10.Name = "DataGridView10"
439
         Me.DataGridView10.RowHeadersWidth = 5
447
         Me.DataGridView10.RowHeadersWidth = 5
440
-        DataGridViewCellStyle32.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
441
-        DataGridViewCellStyle32.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
442
-        Me.DataGridView10.RowsDefaultCellStyle = DataGridViewCellStyle32
448
+        DataGridViewCellStyle4.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
449
+        DataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
450
+        Me.DataGridView10.RowsDefaultCellStyle = DataGridViewCellStyle4
443
         Me.DataGridView10.RowTemplate.Height = 24
451
         Me.DataGridView10.RowTemplate.Height = 24
444
         Me.DataGridView10.ScrollBars = System.Windows.Forms.ScrollBars.None
452
         Me.DataGridView10.ScrollBars = System.Windows.Forms.ScrollBars.None
445
         Me.DataGridView10.Size = New System.Drawing.Size(116, 740)
453
         Me.DataGridView10.Size = New System.Drawing.Size(116, 740)
454
         Me.DataGridView9.Location = New System.Drawing.Point(1308, 27)
462
         Me.DataGridView9.Location = New System.Drawing.Point(1308, 27)
455
         Me.DataGridView9.Name = "DataGridView9"
463
         Me.DataGridView9.Name = "DataGridView9"
456
         Me.DataGridView9.RowHeadersWidth = 5
464
         Me.DataGridView9.RowHeadersWidth = 5
457
-        DataGridViewCellStyle33.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
458
-        DataGridViewCellStyle33.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
459
-        Me.DataGridView9.RowsDefaultCellStyle = DataGridViewCellStyle33
465
+        DataGridViewCellStyle5.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
466
+        DataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
467
+        Me.DataGridView9.RowsDefaultCellStyle = DataGridViewCellStyle5
460
         Me.DataGridView9.RowTemplate.Height = 24
468
         Me.DataGridView9.RowTemplate.Height = 24
461
         Me.DataGridView9.ScrollBars = System.Windows.Forms.ScrollBars.None
469
         Me.DataGridView9.ScrollBars = System.Windows.Forms.ScrollBars.None
462
         Me.DataGridView9.Size = New System.Drawing.Size(116, 740)
470
         Me.DataGridView9.Size = New System.Drawing.Size(116, 740)
471
         Me.DataGridView8.Location = New System.Drawing.Point(1190, 27)
479
         Me.DataGridView8.Location = New System.Drawing.Point(1190, 27)
472
         Me.DataGridView8.Name = "DataGridView8"
480
         Me.DataGridView8.Name = "DataGridView8"
473
         Me.DataGridView8.RowHeadersWidth = 5
481
         Me.DataGridView8.RowHeadersWidth = 5
474
-        DataGridViewCellStyle34.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
475
-        DataGridViewCellStyle34.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
476
-        Me.DataGridView8.RowsDefaultCellStyle = DataGridViewCellStyle34
482
+        DataGridViewCellStyle6.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
483
+        DataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
484
+        Me.DataGridView8.RowsDefaultCellStyle = DataGridViewCellStyle6
477
         Me.DataGridView8.RowTemplate.Height = 24
485
         Me.DataGridView8.RowTemplate.Height = 24
478
         Me.DataGridView8.ScrollBars = System.Windows.Forms.ScrollBars.None
486
         Me.DataGridView8.ScrollBars = System.Windows.Forms.ScrollBars.None
479
         Me.DataGridView8.Size = New System.Drawing.Size(116, 740)
487
         Me.DataGridView8.Size = New System.Drawing.Size(116, 740)
488
         Me.DataGridView7.Location = New System.Drawing.Point(1072, 27)
496
         Me.DataGridView7.Location = New System.Drawing.Point(1072, 27)
489
         Me.DataGridView7.Name = "DataGridView7"
497
         Me.DataGridView7.Name = "DataGridView7"
490
         Me.DataGridView7.RowHeadersWidth = 5
498
         Me.DataGridView7.RowHeadersWidth = 5
491
-        DataGridViewCellStyle35.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
492
-        DataGridViewCellStyle35.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
493
-        Me.DataGridView7.RowsDefaultCellStyle = DataGridViewCellStyle35
499
+        DataGridViewCellStyle7.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
500
+        DataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
501
+        Me.DataGridView7.RowsDefaultCellStyle = DataGridViewCellStyle7
494
         Me.DataGridView7.RowTemplate.Height = 24
502
         Me.DataGridView7.RowTemplate.Height = 24
495
         Me.DataGridView7.ScrollBars = System.Windows.Forms.ScrollBars.None
503
         Me.DataGridView7.ScrollBars = System.Windows.Forms.ScrollBars.None
496
         Me.DataGridView7.Size = New System.Drawing.Size(116, 740)
504
         Me.DataGridView7.Size = New System.Drawing.Size(116, 740)
505
         Me.DataGridView6.Location = New System.Drawing.Point(954, 27)
513
         Me.DataGridView6.Location = New System.Drawing.Point(954, 27)
506
         Me.DataGridView6.Name = "DataGridView6"
514
         Me.DataGridView6.Name = "DataGridView6"
507
         Me.DataGridView6.RowHeadersWidth = 5
515
         Me.DataGridView6.RowHeadersWidth = 5
508
-        DataGridViewCellStyle36.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
509
-        DataGridViewCellStyle36.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
510
-        Me.DataGridView6.RowsDefaultCellStyle = DataGridViewCellStyle36
516
+        DataGridViewCellStyle8.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
517
+        DataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
518
+        Me.DataGridView6.RowsDefaultCellStyle = DataGridViewCellStyle8
511
         Me.DataGridView6.RowTemplate.Height = 24
519
         Me.DataGridView6.RowTemplate.Height = 24
512
         Me.DataGridView6.ScrollBars = System.Windows.Forms.ScrollBars.None
520
         Me.DataGridView6.ScrollBars = System.Windows.Forms.ScrollBars.None
513
         Me.DataGridView6.Size = New System.Drawing.Size(116, 740)
521
         Me.DataGridView6.Size = New System.Drawing.Size(116, 740)
522
         Me.DataGridView5.Location = New System.Drawing.Point(836, 27)
530
         Me.DataGridView5.Location = New System.Drawing.Point(836, 27)
523
         Me.DataGridView5.Name = "DataGridView5"
531
         Me.DataGridView5.Name = "DataGridView5"
524
         Me.DataGridView5.RowHeadersWidth = 5
532
         Me.DataGridView5.RowHeadersWidth = 5
525
-        DataGridViewCellStyle37.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
526
-        DataGridViewCellStyle37.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
527
-        Me.DataGridView5.RowsDefaultCellStyle = DataGridViewCellStyle37
533
+        DataGridViewCellStyle9.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
534
+        DataGridViewCellStyle9.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
535
+        Me.DataGridView5.RowsDefaultCellStyle = DataGridViewCellStyle9
528
         Me.DataGridView5.RowTemplate.Height = 24
536
         Me.DataGridView5.RowTemplate.Height = 24
529
         Me.DataGridView5.ScrollBars = System.Windows.Forms.ScrollBars.None
537
         Me.DataGridView5.ScrollBars = System.Windows.Forms.ScrollBars.None
530
         Me.DataGridView5.Size = New System.Drawing.Size(116, 740)
538
         Me.DataGridView5.Size = New System.Drawing.Size(116, 740)
539
         Me.DataGridView4.Location = New System.Drawing.Point(718, 27)
547
         Me.DataGridView4.Location = New System.Drawing.Point(718, 27)
540
         Me.DataGridView4.Name = "DataGridView4"
548
         Me.DataGridView4.Name = "DataGridView4"
541
         Me.DataGridView4.RowHeadersWidth = 5
549
         Me.DataGridView4.RowHeadersWidth = 5
542
-        DataGridViewCellStyle38.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
543
-        DataGridViewCellStyle38.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
544
-        Me.DataGridView4.RowsDefaultCellStyle = DataGridViewCellStyle38
550
+        DataGridViewCellStyle10.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
551
+        DataGridViewCellStyle10.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
552
+        Me.DataGridView4.RowsDefaultCellStyle = DataGridViewCellStyle10
545
         Me.DataGridView4.RowTemplate.Height = 24
553
         Me.DataGridView4.RowTemplate.Height = 24
546
         Me.DataGridView4.ScrollBars = System.Windows.Forms.ScrollBars.None
554
         Me.DataGridView4.ScrollBars = System.Windows.Forms.ScrollBars.None
547
         Me.DataGridView4.Size = New System.Drawing.Size(116, 740)
555
         Me.DataGridView4.Size = New System.Drawing.Size(116, 740)
556
         Me.DataGridView3.Location = New System.Drawing.Point(600, 27)
564
         Me.DataGridView3.Location = New System.Drawing.Point(600, 27)
557
         Me.DataGridView3.Name = "DataGridView3"
565
         Me.DataGridView3.Name = "DataGridView3"
558
         Me.DataGridView3.RowHeadersWidth = 5
566
         Me.DataGridView3.RowHeadersWidth = 5
559
-        DataGridViewCellStyle39.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
560
-        DataGridViewCellStyle39.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
561
-        Me.DataGridView3.RowsDefaultCellStyle = DataGridViewCellStyle39
567
+        DataGridViewCellStyle11.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
568
+        DataGridViewCellStyle11.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
569
+        Me.DataGridView3.RowsDefaultCellStyle = DataGridViewCellStyle11
562
         Me.DataGridView3.RowTemplate.Height = 24
570
         Me.DataGridView3.RowTemplate.Height = 24
563
         Me.DataGridView3.ScrollBars = System.Windows.Forms.ScrollBars.None
571
         Me.DataGridView3.ScrollBars = System.Windows.Forms.ScrollBars.None
564
         Me.DataGridView3.Size = New System.Drawing.Size(116, 740)
572
         Me.DataGridView3.Size = New System.Drawing.Size(116, 740)
573
         Me.DataGridView1.Location = New System.Drawing.Point(482, 27)
581
         Me.DataGridView1.Location = New System.Drawing.Point(482, 27)
574
         Me.DataGridView1.Name = "DataGridView1"
582
         Me.DataGridView1.Name = "DataGridView1"
575
         Me.DataGridView1.RowHeadersWidth = 5
583
         Me.DataGridView1.RowHeadersWidth = 5
576
-        DataGridViewCellStyle40.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
577
-        DataGridViewCellStyle40.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
578
-        Me.DataGridView1.RowsDefaultCellStyle = DataGridViewCellStyle40
584
+        DataGridViewCellStyle12.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
585
+        DataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
586
+        Me.DataGridView1.RowsDefaultCellStyle = DataGridViewCellStyle12
579
         Me.DataGridView1.RowTemplate.Height = 24
587
         Me.DataGridView1.RowTemplate.Height = 24
580
         Me.DataGridView1.ScrollBars = System.Windows.Forms.ScrollBars.None
588
         Me.DataGridView1.ScrollBars = System.Windows.Forms.ScrollBars.None
581
         Me.DataGridView1.Size = New System.Drawing.Size(116, 740)
589
         Me.DataGridView1.Size = New System.Drawing.Size(116, 740)
611
         Me.DataGridView2.Location = New System.Drawing.Point(7, 27)
619
         Me.DataGridView2.Location = New System.Drawing.Point(7, 27)
612
         Me.DataGridView2.Name = "DataGridView2"
620
         Me.DataGridView2.Name = "DataGridView2"
613
         Me.DataGridView2.RowHeadersWidth = 5
621
         Me.DataGridView2.RowHeadersWidth = 5
614
-        DataGridViewCellStyle41.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
615
-        DataGridViewCellStyle41.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
616
-        Me.DataGridView2.RowsDefaultCellStyle = DataGridViewCellStyle41
622
+        DataGridViewCellStyle13.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
623
+        DataGridViewCellStyle13.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
624
+        Me.DataGridView2.RowsDefaultCellStyle = DataGridViewCellStyle13
617
         Me.DataGridView2.RowTemplate.Height = 24
625
         Me.DataGridView2.RowTemplate.Height = 24
618
         Me.DataGridView2.Size = New System.Drawing.Size(473, 740)
626
         Me.DataGridView2.Size = New System.Drawing.Size(473, 740)
619
         Me.DataGridView2.TabIndex = 1191
627
         Me.DataGridView2.TabIndex = 1191
623
         Me.Label19.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
631
         Me.Label19.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
624
         Me.Label19.AutoSize = True
632
         Me.Label19.AutoSize = True
625
         Me.Label19.Font = New System.Drawing.Font("微軟正黑體", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
633
         Me.Label19.Font = New System.Drawing.Font("微軟正黑體", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
626
-        Me.Label19.Location = New System.Drawing.Point(213, 946)
634
+        Me.Label19.Location = New System.Drawing.Point(217, 946)
627
         Me.Label19.Name = "Label19"
635
         Me.Label19.Name = "Label19"
628
         Me.Label19.Size = New System.Drawing.Size(91, 19)
636
         Me.Label19.Size = New System.Drawing.Size(91, 19)
629
         Me.Label19.TabIndex = 1301
637
         Me.Label19.TabIndex = 1301
633
         '
641
         '
634
         Me.TextBox64.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
642
         Me.TextBox64.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
635
         Me.TextBox64.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
643
         Me.TextBox64.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
636
-        Me.TextBox64.Location = New System.Drawing.Point(335, 945)
644
+        Me.TextBox64.Location = New System.Drawing.Point(339, 945)
637
         Me.TextBox64.Name = "TextBox64"
645
         Me.TextBox64.Name = "TextBox64"
638
         Me.TextBox64.Size = New System.Drawing.Size(116, 23)
646
         Me.TextBox64.Size = New System.Drawing.Size(116, 23)
639
         Me.TextBox64.TabIndex = 1300
647
         Me.TextBox64.TabIndex = 1300
763
         '
771
         '
764
         Me.TextBox63.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
772
         Me.TextBox63.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
765
         Me.TextBox63.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
773
         Me.TextBox63.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
766
-        Me.TextBox63.Location = New System.Drawing.Point(335, 820)
774
+        Me.TextBox63.Location = New System.Drawing.Point(339, 820)
767
         Me.TextBox63.Name = "TextBox63"
775
         Me.TextBox63.Name = "TextBox63"
768
         Me.TextBox63.Size = New System.Drawing.Size(116, 23)
776
         Me.TextBox63.Size = New System.Drawing.Size(116, 23)
769
         Me.TextBox63.TabIndex = 1287
777
         Me.TextBox63.TabIndex = 1287
773
         '
781
         '
774
         Me.TextBox62.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
782
         Me.TextBox62.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
775
         Me.TextBox62.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
783
         Me.TextBox62.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
776
-        Me.TextBox62.Location = New System.Drawing.Point(335, 795)
784
+        Me.TextBox62.Location = New System.Drawing.Point(339, 795)
777
         Me.TextBox62.Name = "TextBox62"
785
         Me.TextBox62.Name = "TextBox62"
778
         Me.TextBox62.Size = New System.Drawing.Size(116, 23)
786
         Me.TextBox62.Size = New System.Drawing.Size(116, 23)
779
         Me.TextBox62.TabIndex = 1286
787
         Me.TextBox62.TabIndex = 1286
783
         '
791
         '
784
         Me.TextBox61.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
792
         Me.TextBox61.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
785
         Me.TextBox61.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
793
         Me.TextBox61.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
786
-        Me.TextBox61.Location = New System.Drawing.Point(335, 770)
794
+        Me.TextBox61.Location = New System.Drawing.Point(339, 770)
787
         Me.TextBox61.Name = "TextBox61"
795
         Me.TextBox61.Name = "TextBox61"
788
         Me.TextBox61.Size = New System.Drawing.Size(116, 23)
796
         Me.TextBox61.Size = New System.Drawing.Size(116, 23)
789
         Me.TextBox61.TabIndex = 1285
797
         Me.TextBox61.TabIndex = 1285
1093
         '
1101
         '
1094
         Me.Label18.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1102
         Me.Label18.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1095
         Me.Label18.AutoSize = True
1103
         Me.Label18.AutoSize = True
1096
-        Me.Label18.Location = New System.Drawing.Point(172, 873)
1104
+        Me.Label18.Location = New System.Drawing.Point(176, 873)
1097
         Me.Label18.Name = "Label18"
1105
         Me.Label18.Name = "Label18"
1098
         Me.Label18.Size = New System.Drawing.Size(27, 16)
1106
         Me.Label18.Size = New System.Drawing.Size(27, 16)
1099
         Me.Label18.TabIndex = 1254
1107
         Me.Label18.TabIndex = 1254
1373
         '
1381
         '
1374
         Me.Label17.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1382
         Me.Label17.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1375
         Me.Label17.AutoSize = True
1383
         Me.Label17.AutoSize = True
1376
-        Me.Label17.Location = New System.Drawing.Point(172, 848)
1384
+        Me.Label17.Location = New System.Drawing.Point(176, 848)
1377
         Me.Label17.Name = "Label17"
1385
         Me.Label17.Name = "Label17"
1378
         Me.Label17.Size = New System.Drawing.Size(27, 16)
1386
         Me.Label17.Size = New System.Drawing.Size(27, 16)
1379
         Me.Label17.TabIndex = 1226
1387
         Me.Label17.TabIndex = 1226
1393
         '
1401
         '
1394
         Me.Label16.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1402
         Me.Label16.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1395
         Me.Label16.AutoSize = True
1403
         Me.Label16.AutoSize = True
1396
-        Me.Label16.Location = New System.Drawing.Point(172, 823)
1404
+        Me.Label16.Location = New System.Drawing.Point(176, 823)
1397
         Me.Label16.Name = "Label16"
1405
         Me.Label16.Name = "Label16"
1398
         Me.Label16.Size = New System.Drawing.Size(27, 16)
1406
         Me.Label16.Size = New System.Drawing.Size(27, 16)
1399
         Me.Label16.TabIndex = 1224
1407
         Me.Label16.TabIndex = 1224
1413
         '
1421
         '
1414
         Me.Label15.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1422
         Me.Label15.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1415
         Me.Label15.AutoSize = True
1423
         Me.Label15.AutoSize = True
1416
-        Me.Label15.Location = New System.Drawing.Point(172, 798)
1424
+        Me.Label15.Location = New System.Drawing.Point(176, 798)
1417
         Me.Label15.Name = "Label15"
1425
         Me.Label15.Name = "Label15"
1418
         Me.Label15.Size = New System.Drawing.Size(27, 16)
1426
         Me.Label15.Size = New System.Drawing.Size(27, 16)
1419
         Me.Label15.TabIndex = 1222
1427
         Me.Label15.TabIndex = 1222
1433
         '
1441
         '
1434
         Me.Label14.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1442
         Me.Label14.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1435
         Me.Label14.AutoSize = True
1443
         Me.Label14.AutoSize = True
1436
-        Me.Label14.Location = New System.Drawing.Point(172, 773)
1444
+        Me.Label14.Location = New System.Drawing.Point(176, 773)
1437
         Me.Label14.Name = "Label14"
1445
         Me.Label14.Name = "Label14"
1438
         Me.Label14.Size = New System.Drawing.Size(27, 16)
1446
         Me.Label14.Size = New System.Drawing.Size(27, 16)
1439
         Me.Label14.TabIndex = 1220
1447
         Me.Label14.TabIndex = 1220
1445
         Me.ComboBox2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
1453
         Me.ComboBox2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
1446
         Me.ComboBox2.FormattingEnabled = True
1454
         Me.ComboBox2.FormattingEnabled = True
1447
         Me.ComboBox2.Items.AddRange(New Object() {"2019"})
1455
         Me.ComboBox2.Items.AddRange(New Object() {"2019"})
1448
-        Me.ComboBox2.Location = New System.Drawing.Point(201, 770)
1456
+        Me.ComboBox2.Location = New System.Drawing.Point(205, 770)
1449
         Me.ComboBox2.Name = "ComboBox2"
1457
         Me.ComboBox2.Name = "ComboBox2"
1450
         Me.ComboBox2.Size = New System.Drawing.Size(128, 24)
1458
         Me.ComboBox2.Size = New System.Drawing.Size(128, 24)
1451
         Me.ComboBox2.TabIndex = 1302
1459
         Me.ComboBox2.TabIndex = 1302
1456
         Me.ComboBox3.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
1464
         Me.ComboBox3.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
1457
         Me.ComboBox3.FormattingEnabled = True
1465
         Me.ComboBox3.FormattingEnabled = True
1458
         Me.ComboBox3.Items.AddRange(New Object() {"2019"})
1466
         Me.ComboBox3.Items.AddRange(New Object() {"2019"})
1459
-        Me.ComboBox3.Location = New System.Drawing.Point(201, 795)
1467
+        Me.ComboBox3.Location = New System.Drawing.Point(205, 795)
1460
         Me.ComboBox3.Name = "ComboBox3"
1468
         Me.ComboBox3.Name = "ComboBox3"
1461
         Me.ComboBox3.Size = New System.Drawing.Size(128, 24)
1469
         Me.ComboBox3.Size = New System.Drawing.Size(128, 24)
1462
         Me.ComboBox3.TabIndex = 1303
1470
         Me.ComboBox3.TabIndex = 1303
1467
         Me.ComboBox4.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
1475
         Me.ComboBox4.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
1468
         Me.ComboBox4.FormattingEnabled = True
1476
         Me.ComboBox4.FormattingEnabled = True
1469
         Me.ComboBox4.Items.AddRange(New Object() {"2019"})
1477
         Me.ComboBox4.Items.AddRange(New Object() {"2019"})
1470
-        Me.ComboBox4.Location = New System.Drawing.Point(201, 820)
1478
+        Me.ComboBox4.Location = New System.Drawing.Point(205, 820)
1471
         Me.ComboBox4.Name = "ComboBox4"
1479
         Me.ComboBox4.Name = "ComboBox4"
1472
         Me.ComboBox4.Size = New System.Drawing.Size(128, 24)
1480
         Me.ComboBox4.Size = New System.Drawing.Size(128, 24)
1473
         Me.ComboBox4.TabIndex = 1304
1481
         Me.ComboBox4.TabIndex = 1304
1478
         Me.ComboBox5.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
1486
         Me.ComboBox5.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
1479
         Me.ComboBox5.FormattingEnabled = True
1487
         Me.ComboBox5.FormattingEnabled = True
1480
         Me.ComboBox5.Items.AddRange(New Object() {"2019"})
1488
         Me.ComboBox5.Items.AddRange(New Object() {"2019"})
1481
-        Me.ComboBox5.Location = New System.Drawing.Point(201, 845)
1489
+        Me.ComboBox5.Location = New System.Drawing.Point(205, 845)
1482
         Me.ComboBox5.Name = "ComboBox5"
1490
         Me.ComboBox5.Name = "ComboBox5"
1483
         Me.ComboBox5.Size = New System.Drawing.Size(128, 24)
1491
         Me.ComboBox5.Size = New System.Drawing.Size(128, 24)
1484
         Me.ComboBox5.TabIndex = 1305
1492
         Me.ComboBox5.TabIndex = 1305
1487
         '
1495
         '
1488
         Me.TextBox77.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1496
         Me.TextBox77.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1489
         Me.TextBox77.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1497
         Me.TextBox77.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1490
-        Me.TextBox77.Location = New System.Drawing.Point(335, 845)
1498
+        Me.TextBox77.Location = New System.Drawing.Point(339, 845)
1491
         Me.TextBox77.Name = "TextBox77"
1499
         Me.TextBox77.Name = "TextBox77"
1492
         Me.TextBox77.Size = New System.Drawing.Size(116, 23)
1500
         Me.TextBox77.Size = New System.Drawing.Size(116, 23)
1493
         Me.TextBox77.TabIndex = 1306
1501
         Me.TextBox77.TabIndex = 1306
1499
         Me.ComboBox6.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
1507
         Me.ComboBox6.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
1500
         Me.ComboBox6.FormattingEnabled = True
1508
         Me.ComboBox6.FormattingEnabled = True
1501
         Me.ComboBox6.Items.AddRange(New Object() {"2019"})
1509
         Me.ComboBox6.Items.AddRange(New Object() {"2019"})
1502
-        Me.ComboBox6.Location = New System.Drawing.Point(201, 870)
1510
+        Me.ComboBox6.Location = New System.Drawing.Point(205, 870)
1503
         Me.ComboBox6.Name = "ComboBox6"
1511
         Me.ComboBox6.Name = "ComboBox6"
1504
         Me.ComboBox6.Size = New System.Drawing.Size(128, 24)
1512
         Me.ComboBox6.Size = New System.Drawing.Size(128, 24)
1505
         Me.ComboBox6.TabIndex = 1307
1513
         Me.ComboBox6.TabIndex = 1307
1508
         '
1516
         '
1509
         Me.TextBox78.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1517
         Me.TextBox78.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1510
         Me.TextBox78.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1518
         Me.TextBox78.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1511
-        Me.TextBox78.Location = New System.Drawing.Point(335, 870)
1519
+        Me.TextBox78.Location = New System.Drawing.Point(339, 870)
1512
         Me.TextBox78.Name = "TextBox78"
1520
         Me.TextBox78.Name = "TextBox78"
1513
         Me.TextBox78.Size = New System.Drawing.Size(116, 23)
1521
         Me.TextBox78.Size = New System.Drawing.Size(116, 23)
1514
         Me.TextBox78.TabIndex = 1320
1522
         Me.TextBox78.TabIndex = 1320
1638
         '
1646
         '
1639
         Me.TextBox91.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1647
         Me.TextBox91.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1640
         Me.TextBox91.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1648
         Me.TextBox91.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1641
-        Me.TextBox91.Location = New System.Drawing.Point(335, 895)
1649
+        Me.TextBox91.Location = New System.Drawing.Point(339, 895)
1642
         Me.TextBox91.Name = "TextBox91"
1650
         Me.TextBox91.Name = "TextBox91"
1643
         Me.TextBox91.Size = New System.Drawing.Size(116, 23)
1651
         Me.TextBox91.Size = New System.Drawing.Size(116, 23)
1644
         Me.TextBox91.TabIndex = 1323
1652
         Me.TextBox91.TabIndex = 1323
1650
         Me.ComboBox7.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
1658
         Me.ComboBox7.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
1651
         Me.ComboBox7.FormattingEnabled = True
1659
         Me.ComboBox7.FormattingEnabled = True
1652
         Me.ComboBox7.Items.AddRange(New Object() {"2019"})
1660
         Me.ComboBox7.Items.AddRange(New Object() {"2019"})
1653
-        Me.ComboBox7.Location = New System.Drawing.Point(201, 895)
1661
+        Me.ComboBox7.Location = New System.Drawing.Point(205, 895)
1654
         Me.ComboBox7.Name = "ComboBox7"
1662
         Me.ComboBox7.Name = "ComboBox7"
1655
         Me.ComboBox7.Size = New System.Drawing.Size(128, 24)
1663
         Me.ComboBox7.Size = New System.Drawing.Size(128, 24)
1656
         Me.ComboBox7.TabIndex = 1322
1664
         Me.ComboBox7.TabIndex = 1322
1659
         '
1667
         '
1660
         Me.Label20.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1668
         Me.Label20.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1661
         Me.Label20.AutoSize = True
1669
         Me.Label20.AutoSize = True
1662
-        Me.Label20.Location = New System.Drawing.Point(172, 898)
1670
+        Me.Label20.Location = New System.Drawing.Point(176, 898)
1663
         Me.Label20.Name = "Label20"
1671
         Me.Label20.Name = "Label20"
1664
         Me.Label20.Size = New System.Drawing.Size(27, 16)
1672
         Me.Label20.Size = New System.Drawing.Size(27, 16)
1665
         Me.Label20.TabIndex = 1321
1673
         Me.Label20.TabIndex = 1321
1789
         '
1797
         '
1790
         Me.TextBox104.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1798
         Me.TextBox104.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1791
         Me.TextBox104.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1799
         Me.TextBox104.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1792
-        Me.TextBox104.Location = New System.Drawing.Point(335, 920)
1800
+        Me.TextBox104.Location = New System.Drawing.Point(339, 920)
1793
         Me.TextBox104.Name = "TextBox104"
1801
         Me.TextBox104.Name = "TextBox104"
1794
         Me.TextBox104.Size = New System.Drawing.Size(116, 23)
1802
         Me.TextBox104.Size = New System.Drawing.Size(116, 23)
1795
         Me.TextBox104.TabIndex = 1338
1803
         Me.TextBox104.TabIndex = 1338
1801
         Me.ComboBox8.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
1809
         Me.ComboBox8.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
1802
         Me.ComboBox8.FormattingEnabled = True
1810
         Me.ComboBox8.FormattingEnabled = True
1803
         Me.ComboBox8.Items.AddRange(New Object() {"2019"})
1811
         Me.ComboBox8.Items.AddRange(New Object() {"2019"})
1804
-        Me.ComboBox8.Location = New System.Drawing.Point(201, 920)
1812
+        Me.ComboBox8.Location = New System.Drawing.Point(205, 920)
1805
         Me.ComboBox8.Name = "ComboBox8"
1813
         Me.ComboBox8.Name = "ComboBox8"
1806
         Me.ComboBox8.Size = New System.Drawing.Size(128, 24)
1814
         Me.ComboBox8.Size = New System.Drawing.Size(128, 24)
1807
         Me.ComboBox8.TabIndex = 1337
1815
         Me.ComboBox8.TabIndex = 1337
1810
         '
1818
         '
1811
         Me.Label21.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1819
         Me.Label21.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1812
         Me.Label21.AutoSize = True
1820
         Me.Label21.AutoSize = True
1813
-        Me.Label21.Location = New System.Drawing.Point(172, 923)
1821
+        Me.Label21.Location = New System.Drawing.Point(176, 923)
1814
         Me.Label21.Name = "Label21"
1822
         Me.Label21.Name = "Label21"
1815
         Me.Label21.Size = New System.Drawing.Size(27, 16)
1823
         Me.Label21.Size = New System.Drawing.Size(27, 16)
1816
         Me.Label21.TabIndex = 1336
1824
         Me.Label21.TabIndex = 1336
1820
         '
1828
         '
1821
         Me.Label22.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1829
         Me.Label22.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1822
         Me.Label22.AutoSize = True
1830
         Me.Label22.AutoSize = True
1823
-        Me.Label22.Location = New System.Drawing.Point(172, 948)
1831
+        Me.Label22.Location = New System.Drawing.Point(176, 948)
1824
         Me.Label22.Name = "Label22"
1832
         Me.Label22.Name = "Label22"
1825
         Me.Label22.Size = New System.Drawing.Size(27, 16)
1833
         Me.Label22.Size = New System.Drawing.Size(27, 16)
1826
         Me.Label22.TabIndex = 1339
1834
         Me.Label22.TabIndex = 1339
1910
         Me.DataGridView14.Location = New System.Drawing.Point(37, 583)
1918
         Me.DataGridView14.Location = New System.Drawing.Point(37, 583)
1911
         Me.DataGridView14.Name = "DataGridView14"
1919
         Me.DataGridView14.Name = "DataGridView14"
1912
         Me.DataGridView14.RowHeadersWidth = 5
1920
         Me.DataGridView14.RowHeadersWidth = 5
1913
-        DataGridViewCellStyle42.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1914
-        DataGridViewCellStyle42.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
1915
-        Me.DataGridView14.RowsDefaultCellStyle = DataGridViewCellStyle42
1921
+        DataGridViewCellStyle14.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1922
+        DataGridViewCellStyle14.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
1923
+        Me.DataGridView14.RowsDefaultCellStyle = DataGridViewCellStyle14
1916
         Me.DataGridView14.RowTemplate.Height = 24
1924
         Me.DataGridView14.RowTemplate.Height = 24
1917
         Me.DataGridView14.ScrollBars = System.Windows.Forms.ScrollBars.None
1925
         Me.DataGridView14.ScrollBars = System.Windows.Forms.ScrollBars.None
1918
         Me.DataGridView14.Size = New System.Drawing.Size(253, 162)
1926
         Me.DataGridView14.Size = New System.Drawing.Size(253, 162)
1928
         Me.Button3.Text = "預設合計存檔"
1936
         Me.Button3.Text = "預設合計存檔"
1929
         Me.Button3.UseVisualStyleBackColor = True
1937
         Me.Button3.UseVisualStyleBackColor = True
1930
         '
1938
         '
1939
+        'Button4
1940
+        '
1941
+        Me.Button4.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1942
+        Me.Button4.Location = New System.Drawing.Point(111, 944)
1943
+        Me.Button4.Name = "Button4"
1944
+        Me.Button4.Size = New System.Drawing.Size(52, 25)
1945
+        Me.Button4.TabIndex = 1349
1946
+        Me.Button4.Text = "清空"
1947
+        Me.Button4.UseVisualStyleBackColor = True
1948
+        '
1949
+        'TextBox105
1950
+        '
1951
+        Me.TextBox105.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1952
+        Me.TextBox105.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1953
+        Me.TextBox105.Location = New System.Drawing.Point(113, 920)
1954
+        Me.TextBox105.Name = "TextBox105"
1955
+        Me.TextBox105.Size = New System.Drawing.Size(48, 23)
1956
+        Me.TextBox105.TabIndex = 1356
1957
+        Me.TextBox105.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
1958
+        '
1959
+        'TextBox106
1960
+        '
1961
+        Me.TextBox106.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1962
+        Me.TextBox106.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1963
+        Me.TextBox106.Location = New System.Drawing.Point(113, 895)
1964
+        Me.TextBox106.Name = "TextBox106"
1965
+        Me.TextBox106.Size = New System.Drawing.Size(48, 23)
1966
+        Me.TextBox106.TabIndex = 1355
1967
+        Me.TextBox106.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
1968
+        '
1969
+        'TextBox107
1970
+        '
1971
+        Me.TextBox107.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1972
+        Me.TextBox107.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1973
+        Me.TextBox107.Location = New System.Drawing.Point(113, 870)
1974
+        Me.TextBox107.Name = "TextBox107"
1975
+        Me.TextBox107.Size = New System.Drawing.Size(48, 23)
1976
+        Me.TextBox107.TabIndex = 1354
1977
+        Me.TextBox107.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
1978
+        '
1979
+        'TextBox108
1980
+        '
1981
+        Me.TextBox108.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1982
+        Me.TextBox108.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1983
+        Me.TextBox108.Location = New System.Drawing.Point(113, 845)
1984
+        Me.TextBox108.Name = "TextBox108"
1985
+        Me.TextBox108.Size = New System.Drawing.Size(48, 23)
1986
+        Me.TextBox108.TabIndex = 1353
1987
+        Me.TextBox108.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
1988
+        '
1989
+        'TextBox109
1990
+        '
1991
+        Me.TextBox109.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1992
+        Me.TextBox109.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1993
+        Me.TextBox109.Location = New System.Drawing.Point(113, 820)
1994
+        Me.TextBox109.Name = "TextBox109"
1995
+        Me.TextBox109.Size = New System.Drawing.Size(48, 23)
1996
+        Me.TextBox109.TabIndex = 1352
1997
+        Me.TextBox109.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
1998
+        '
1999
+        'TextBox110
2000
+        '
2001
+        Me.TextBox110.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
2002
+        Me.TextBox110.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
2003
+        Me.TextBox110.Location = New System.Drawing.Point(113, 795)
2004
+        Me.TextBox110.Name = "TextBox110"
2005
+        Me.TextBox110.Size = New System.Drawing.Size(48, 23)
2006
+        Me.TextBox110.TabIndex = 1351
2007
+        Me.TextBox110.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
2008
+        '
2009
+        'TextBox111
2010
+        '
2011
+        Me.TextBox111.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
2012
+        Me.TextBox111.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
2013
+        Me.TextBox111.Location = New System.Drawing.Point(113, 770)
2014
+        Me.TextBox111.Name = "TextBox111"
2015
+        Me.TextBox111.Size = New System.Drawing.Size(48, 23)
2016
+        Me.TextBox111.TabIndex = 1350
2017
+        Me.TextBox111.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
2018
+        '
1931
         '營運成本收支_決算表
2019
         '營運成本收支_決算表
1932
         '
2020
         '
1933
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
2021
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
1934
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
2022
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
1935
         Me.ClientSize = New System.Drawing.Size(1914, 981)
2023
         Me.ClientSize = New System.Drawing.Size(1914, 981)
1936
         Me.ContextMenuStrip = Me.ContextMenuStrip1
2024
         Me.ContextMenuStrip = Me.ContextMenuStrip1
2025
+        Me.Controls.Add(Me.TextBox105)
2026
+        Me.Controls.Add(Me.TextBox106)
2027
+        Me.Controls.Add(Me.TextBox107)
2028
+        Me.Controls.Add(Me.TextBox108)
2029
+        Me.Controls.Add(Me.TextBox109)
2030
+        Me.Controls.Add(Me.TextBox110)
2031
+        Me.Controls.Add(Me.TextBox111)
2032
+        Me.Controls.Add(Me.Button4)
1937
         Me.Controls.Add(Me.Button3)
2033
         Me.Controls.Add(Me.Button3)
1938
         Me.Controls.Add(Me.DataGridView14)
2034
         Me.Controls.Add(Me.DataGridView14)
1939
         Me.Controls.Add(Me.CheckBox7)
2035
         Me.Controls.Add(Me.CheckBox7)
2095
         Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
2191
         Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
2096
         Me.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
2192
         Me.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
2097
         Me.Name = "營運成本收支_決算表"
2193
         Me.Name = "營運成本收支_決算表"
2098
-        Me.Text = "營運表"
2194
+        Me.Text = "營運成本收支_決算表"
2099
         Me.ContextMenuStrip1.ResumeLayout(False)
2195
         Me.ContextMenuStrip1.ResumeLayout(False)
2100
         CType(Me.DataGridView13, System.ComponentModel.ISupportInitialize).EndInit()
2196
         CType(Me.DataGridView13, System.ComponentModel.ISupportInitialize).EndInit()
2101
         CType(Me.DataGridView12, System.ComponentModel.ISupportInitialize).EndInit()
2197
         CType(Me.DataGridView12, System.ComponentModel.ISupportInitialize).EndInit()
2275
     Friend WithEvents CheckBox7 As CheckBox
2371
     Friend WithEvents CheckBox7 As CheckBox
2276
     Friend WithEvents DataGridView14 As DataGridView
2372
     Friend WithEvents DataGridView14 As DataGridView
2277
     Friend WithEvents Button3 As Button
2373
     Friend WithEvents Button3 As Button
2374
+    Friend WithEvents Button4 As Button
2375
+    Friend WithEvents TextBox105 As TextBox
2376
+    Friend WithEvents TextBox106 As TextBox
2377
+    Friend WithEvents TextBox107 As TextBox
2378
+    Friend WithEvents TextBox108 As TextBox
2379
+    Friend WithEvents TextBox109 As TextBox
2380
+    Friend WithEvents TextBox110 As TextBox
2381
+    Friend WithEvents TextBox111 As TextBox
2278
 End Class
2382
 End Class

+ 285
- 21
MaoOrange-Hongji/財務系統管理/營運成本收支_決算表.vb Vedi File

16
             If DataGridView2.Rows(i).Cells("主項金額").Value.ToString = "" Then : DataGridView2.Rows(i).Cells("主項金額").Value = 0 : End If
16
             If DataGridView2.Rows(i).Cells("主項金額").Value.ToString = "" Then : DataGridView2.Rows(i).Cells("主項金額").Value = 0 : End If
17
             If DataGridView2.Rows(i).Cells("子項金額").Value.ToString = "" Then : DataGridView2.Rows(i).Cells("子項金額").Value = 0 : End If
17
             If DataGridView2.Rows(i).Cells("子項金額").Value.ToString = "" Then : DataGridView2.Rows(i).Cells("子項金額").Value = 0 : End If
18
             If DataGridView2.Rows(i).Cells("細項金額").Value.ToString = "" Then : DataGridView2.Rows(i).Cells("細項金額").Value = 0 : End If
18
             If DataGridView2.Rows(i).Cells("細項金額").Value.ToString = "" Then : DataGridView2.Rows(i).Cells("細項金額").Value = 0 : End If
19
+
20
+            If DataGridView2.Rows(i).Cells("主項彙總").Value.ToString = "" Then : DataGridView2.Rows(i).Cells("主項彙總").Value = 0 : End If
21
+            If DataGridView2.Rows(i).Cells("子項彙總").Value.ToString = "" Then : DataGridView2.Rows(i).Cells("子項彙總").Value = 0 : End If
22
+            If DataGridView2.Rows(i).Cells("細項彙總").Value.ToString = "" Then : DataGridView2.Rows(i).Cells("細項彙總").Value = 0 : End If
23
+            If DataGridView2.Rows(i).Cells("抵銷").Value = True Then
24
+                DataGridView2.Rows(i).Cells("主項彙總").Value = DataGridView2.Rows(i).Cells("主項彙總").Value * -1
25
+                DataGridView2.Rows(i).Cells("子項彙總").Value = DataGridView2.Rows(i).Cells("子項彙總").Value * -1
26
+                DataGridView2.Rows(i).Cells("細項彙總").Value = DataGridView2.Rows(i).Cells("細項彙總").Value * -1
27
+            End If
28
+            If DataGridView2.Rows(i).Cells("層級").Value.ToString <> "1" Then : DataGridView2.Rows(i).Cells("主項彙總").Value = 0 : End If
29
+            If DataGridView2.Rows(i).Cells("層級").Value.ToString <> "2" Then : DataGridView2.Rows(i).Cells("子項彙總").Value = 0 : End If
30
+
19
             If DataGridView2.Rows(i).Cells("層級").Value.ToString <> "1" Then : DataGridView2.Rows(i).Cells("主項金額").Value = 0 : End If
31
             If DataGridView2.Rows(i).Cells("層級").Value.ToString <> "1" Then : DataGridView2.Rows(i).Cells("主項金額").Value = 0 : End If
20
             If DataGridView2.Rows(i).Cells("層級").Value.ToString <> "2" Then : DataGridView2.Rows(i).Cells("子項金額").Value = 0 : End If
32
             If DataGridView2.Rows(i).Cells("層級").Value.ToString <> "2" Then : DataGridView2.Rows(i).Cells("子項金額").Value = 0 : End If
21
             If DataGridView2.Rows(i).Cells("層級").Value.ToString <> "2" Then : DataGridView2.Rows(i).Cells("子項").Value = "" : End If
33
             If DataGridView2.Rows(i).Cells("層級").Value.ToString <> "2" Then : DataGridView2.Rows(i).Cells("子項").Value = "" : End If
58
             ElseIf DataGridView1.Rows(i).Cells("子項金額").Value.ToString <> "0" Then : DataGridView1.Rows(i).Cells("金額").Value = DataGridView1.Rows(i).Cells("子項金額").Value
70
             ElseIf DataGridView1.Rows(i).Cells("子項金額").Value.ToString <> "0" Then : DataGridView1.Rows(i).Cells("金額").Value = DataGridView1.Rows(i).Cells("子項金額").Value
59
             ElseIf DataGridView1.Rows(i).Cells("細項金額").Value.ToString <> "0" Then : DataGridView1.Rows(i).Cells("金額").Value = DataGridView1.Rows(i).Cells("細項金額").Value
71
             ElseIf DataGridView1.Rows(i).Cells("細項金額").Value.ToString <> "0" Then : DataGridView1.Rows(i).Cells("金額").Value = DataGridView1.Rows(i).Cells("細項金額").Value
60
             Else : DataGridView1.Rows(i).Cells("金額").Value = 0 : End If
72
             Else : DataGridView1.Rows(i).Cells("金額").Value = 0 : End If
73
+
74
+            DataGridView1.Rows(i).Cells("彙總").Value = DataGridView1.Rows(i).Cells("金額").Value
75
+            If DataGridView1.Rows(i).Cells("抵銷").Value = True Then : DataGridView1.Rows(i).Cells("彙總").Value = DataGridView1.Rows(i).Cells("彙總").Value * -1 : End If
76
+
61
             If ComboBox2.Text = "" Then : Else
77
             If ComboBox2.Text = "" Then : Else
62
                 If DataGridView1.Rows(i).Cells("第一階").Value.ToString = ComboBox2.Text Then : TextBox1.Text = Val(TextBox1.Text) + DataGridView1.Rows(i).Cells("主項金額").Value : End If : End If
78
                 If DataGridView1.Rows(i).Cells("第一階").Value.ToString = ComboBox2.Text Then : TextBox1.Text = Val(TextBox1.Text) + DataGridView1.Rows(i).Cells("主項金額").Value : End If : End If
63
             If ComboBox3.Text = "" Then : Else
79
             If ComboBox3.Text = "" Then : Else
92
             ElseIf DataGridView3.Rows(i).Cells("子項金額").Value.ToString <> "0" Then : DataGridView3.Rows(i).Cells("金額").Value = DataGridView3.Rows(i).Cells("子項金額").Value
108
             ElseIf DataGridView3.Rows(i).Cells("子項金額").Value.ToString <> "0" Then : DataGridView3.Rows(i).Cells("金額").Value = DataGridView3.Rows(i).Cells("子項金額").Value
93
             ElseIf DataGridView3.Rows(i).Cells("細項金額").Value.ToString <> "0" Then : DataGridView3.Rows(i).Cells("金額").Value = DataGridView3.Rows(i).Cells("細項金額").Value
109
             ElseIf DataGridView3.Rows(i).Cells("細項金額").Value.ToString <> "0" Then : DataGridView3.Rows(i).Cells("金額").Value = DataGridView3.Rows(i).Cells("細項金額").Value
94
             Else : DataGridView3.Rows(i).Cells("金額").Value = 0 : End If
110
             Else : DataGridView3.Rows(i).Cells("金額").Value = 0 : End If
111
+
112
+            DataGridView3.Rows(i).Cells("彙總").Value = DataGridView3.Rows(i).Cells("金額").Value
113
+            If DataGridView3.Rows(i).Cells("抵銷").Value = True Then : DataGridView3.Rows(i).Cells("彙總").Value = DataGridView3.Rows(i).Cells("彙總").Value * -1 : End If
114
+
95
             If ComboBox2.Text = "" Then : Else
115
             If ComboBox2.Text = "" Then : Else
96
                 If DataGridView3.Rows(i).Cells("第一階").Value.ToString = ComboBox2.Text Then : TextBox5.Text = Val(TextBox5.Text) + DataGridView3.Rows(i).Cells("主項金額").Value : End If : End If
116
                 If DataGridView3.Rows(i).Cells("第一階").Value.ToString = ComboBox2.Text Then : TextBox5.Text = Val(TextBox5.Text) + DataGridView3.Rows(i).Cells("主項金額").Value : End If : End If
97
             If ComboBox3.Text = "" Then : Else
117
             If ComboBox3.Text = "" Then : Else
126
             ElseIf DataGridView4.Rows(i).Cells("子項金額").Value.ToString <> "0" Then : DataGridView4.Rows(i).Cells("金額").Value = DataGridView4.Rows(i).Cells("子項金額").Value
146
             ElseIf DataGridView4.Rows(i).Cells("子項金額").Value.ToString <> "0" Then : DataGridView4.Rows(i).Cells("金額").Value = DataGridView4.Rows(i).Cells("子項金額").Value
127
             ElseIf DataGridView4.Rows(i).Cells("細項金額").Value.ToString <> "0" Then : DataGridView4.Rows(i).Cells("金額").Value = DataGridView4.Rows(i).Cells("細項金額").Value
147
             ElseIf DataGridView4.Rows(i).Cells("細項金額").Value.ToString <> "0" Then : DataGridView4.Rows(i).Cells("金額").Value = DataGridView4.Rows(i).Cells("細項金額").Value
128
             Else : DataGridView4.Rows(i).Cells("金額").Value = 0 : End If
148
             Else : DataGridView4.Rows(i).Cells("金額").Value = 0 : End If
149
+
150
+            DataGridView4.Rows(i).Cells("彙總").Value = DataGridView4.Rows(i).Cells("金額").Value
151
+            If DataGridView4.Rows(i).Cells("抵銷").Value = True Then : DataGridView4.Rows(i).Cells("彙總").Value = DataGridView4.Rows(i).Cells("彙總").Value * -1 : End If
152
+
129
             If ComboBox2.Text = "" Then : Else
153
             If ComboBox2.Text = "" Then : Else
130
                 If DataGridView4.Rows(i).Cells("第一階").Value.ToString = ComboBox2.Text Then : TextBox9.Text = Val(TextBox9.Text) + DataGridView4.Rows(i).Cells("主項金額").Value : End If : End If
154
                 If DataGridView4.Rows(i).Cells("第一階").Value.ToString = ComboBox2.Text Then : TextBox9.Text = Val(TextBox9.Text) + DataGridView4.Rows(i).Cells("主項金額").Value : End If : End If
131
             If ComboBox3.Text = "" Then : Else
155
             If ComboBox3.Text = "" Then : Else
160
             ElseIf DataGridView5.Rows(i).Cells("子項金額").Value.ToString <> "0" Then : DataGridView5.Rows(i).Cells("金額").Value = DataGridView5.Rows(i).Cells("子項金額").Value
184
             ElseIf DataGridView5.Rows(i).Cells("子項金額").Value.ToString <> "0" Then : DataGridView5.Rows(i).Cells("金額").Value = DataGridView5.Rows(i).Cells("子項金額").Value
161
             ElseIf DataGridView5.Rows(i).Cells("細項金額").Value.ToString <> "0" Then : DataGridView5.Rows(i).Cells("金額").Value = DataGridView5.Rows(i).Cells("細項金額").Value
185
             ElseIf DataGridView5.Rows(i).Cells("細項金額").Value.ToString <> "0" Then : DataGridView5.Rows(i).Cells("金額").Value = DataGridView5.Rows(i).Cells("細項金額").Value
162
             Else : DataGridView5.Rows(i).Cells("金額").Value = 0 : End If
186
             Else : DataGridView5.Rows(i).Cells("金額").Value = 0 : End If
187
+
188
+            DataGridView5.Rows(i).Cells("彙總").Value = DataGridView5.Rows(i).Cells("金額").Value
189
+            If DataGridView5.Rows(i).Cells("抵銷").Value = True Then : DataGridView5.Rows(i).Cells("彙總").Value = DataGridView5.Rows(i).Cells("彙總").Value * -1 : End If
190
+
163
             If ComboBox2.Text = "" Then : Else
191
             If ComboBox2.Text = "" Then : Else
164
                 If DataGridView5.Rows(i).Cells("第一階").Value.ToString = ComboBox2.Text Then : TextBox13.Text = Val(TextBox13.Text) + DataGridView5.Rows(i).Cells("主項金額").Value : End If : End If
192
                 If DataGridView5.Rows(i).Cells("第一階").Value.ToString = ComboBox2.Text Then : TextBox13.Text = Val(TextBox13.Text) + DataGridView5.Rows(i).Cells("主項金額").Value : End If : End If
165
             If ComboBox3.Text = "" Then : Else
193
             If ComboBox3.Text = "" Then : Else
194
             ElseIf DataGridView6.Rows(i).Cells("子項金額").Value.ToString <> "0" Then : DataGridView6.Rows(i).Cells("金額").Value = DataGridView6.Rows(i).Cells("子項金額").Value
222
             ElseIf DataGridView6.Rows(i).Cells("子項金額").Value.ToString <> "0" Then : DataGridView6.Rows(i).Cells("金額").Value = DataGridView6.Rows(i).Cells("子項金額").Value
195
             ElseIf DataGridView6.Rows(i).Cells("細項金額").Value.ToString <> "0" Then : DataGridView6.Rows(i).Cells("金額").Value = DataGridView6.Rows(i).Cells("細項金額").Value
223
             ElseIf DataGridView6.Rows(i).Cells("細項金額").Value.ToString <> "0" Then : DataGridView6.Rows(i).Cells("金額").Value = DataGridView6.Rows(i).Cells("細項金額").Value
196
             Else : DataGridView6.Rows(i).Cells("金額").Value = 0 : End If
224
             Else : DataGridView6.Rows(i).Cells("金額").Value = 0 : End If
225
+
226
+            DataGridView6.Rows(i).Cells("彙總").Value = DataGridView6.Rows(i).Cells("金額").Value
227
+            If DataGridView6.Rows(i).Cells("抵銷").Value = True Then : DataGridView6.Rows(i).Cells("彙總").Value = DataGridView6.Rows(i).Cells("彙總").Value * -1 : End If
228
+
197
             If ComboBox2.Text = "" Then : Else
229
             If ComboBox2.Text = "" Then : Else
198
                 If DataGridView6.Rows(i).Cells("第一階").Value.ToString = ComboBox2.Text Then : TextBox17.Text = Val(TextBox17.Text) + DataGridView6.Rows(i).Cells("主項金額").Value : End If : End If
230
                 If DataGridView6.Rows(i).Cells("第一階").Value.ToString = ComboBox2.Text Then : TextBox17.Text = Val(TextBox17.Text) + DataGridView6.Rows(i).Cells("主項金額").Value : End If : End If
199
             If ComboBox3.Text = "" Then : Else
231
             If ComboBox3.Text = "" Then : Else
228
             ElseIf DataGridView7.Rows(i).Cells("子項金額").Value.ToString <> "0" Then : DataGridView7.Rows(i).Cells("金額").Value = DataGridView7.Rows(i).Cells("子項金額").Value
260
             ElseIf DataGridView7.Rows(i).Cells("子項金額").Value.ToString <> "0" Then : DataGridView7.Rows(i).Cells("金額").Value = DataGridView7.Rows(i).Cells("子項金額").Value
229
             ElseIf DataGridView7.Rows(i).Cells("細項金額").Value.ToString <> "0" Then : DataGridView7.Rows(i).Cells("金額").Value = DataGridView7.Rows(i).Cells("細項金額").Value
261
             ElseIf DataGridView7.Rows(i).Cells("細項金額").Value.ToString <> "0" Then : DataGridView7.Rows(i).Cells("金額").Value = DataGridView7.Rows(i).Cells("細項金額").Value
230
             Else : DataGridView7.Rows(i).Cells("金額").Value = 0 : End If
262
             Else : DataGridView7.Rows(i).Cells("金額").Value = 0 : End If
263
+
264
+            DataGridView7.Rows(i).Cells("彙總").Value = DataGridView7.Rows(i).Cells("金額").Value
265
+            If DataGridView7.Rows(i).Cells("抵銷").Value = True Then : DataGridView7.Rows(i).Cells("彙總").Value = DataGridView7.Rows(i).Cells("彙總").Value * -1 : End If
266
+
231
             If ComboBox2.Text = "" Then : Else
267
             If ComboBox2.Text = "" Then : Else
232
                 If DataGridView7.Rows(i).Cells("第一階").Value.ToString = ComboBox2.Text Then : TextBox21.Text = Val(TextBox21.Text) + DataGridView7.Rows(i).Cells("主項金額").Value : End If : End If
268
                 If DataGridView7.Rows(i).Cells("第一階").Value.ToString = ComboBox2.Text Then : TextBox21.Text = Val(TextBox21.Text) + DataGridView7.Rows(i).Cells("主項金額").Value : End If : End If
233
             If ComboBox3.Text = "" Then : Else
269
             If ComboBox3.Text = "" Then : Else
262
             ElseIf DataGridView8.Rows(i).Cells("子項金額").Value.ToString <> "0" Then : DataGridView8.Rows(i).Cells("金額").Value = DataGridView8.Rows(i).Cells("子項金額").Value
298
             ElseIf DataGridView8.Rows(i).Cells("子項金額").Value.ToString <> "0" Then : DataGridView8.Rows(i).Cells("金額").Value = DataGridView8.Rows(i).Cells("子項金額").Value
263
             ElseIf DataGridView8.Rows(i).Cells("細項金額").Value.ToString <> "0" Then : DataGridView8.Rows(i).Cells("金額").Value = DataGridView8.Rows(i).Cells("細項金額").Value
299
             ElseIf DataGridView8.Rows(i).Cells("細項金額").Value.ToString <> "0" Then : DataGridView8.Rows(i).Cells("金額").Value = DataGridView8.Rows(i).Cells("細項金額").Value
264
             Else : DataGridView8.Rows(i).Cells("金額").Value = 0 : End If
300
             Else : DataGridView8.Rows(i).Cells("金額").Value = 0 : End If
301
+
302
+            DataGridView8.Rows(i).Cells("彙總").Value = DataGridView8.Rows(i).Cells("金額").Value
303
+            If DataGridView8.Rows(i).Cells("抵銷").Value = True Then : DataGridView8.Rows(i).Cells("彙總").Value = DataGridView8.Rows(i).Cells("彙總").Value * -1 : End If
304
+
265
             If ComboBox2.Text = "" Then : Else
305
             If ComboBox2.Text = "" Then : Else
266
                 If DataGridView8.Rows(i).Cells("第一階").Value.ToString = ComboBox2.Text Then : TextBox35.Text = Val(TextBox35.Text) + DataGridView8.Rows(i).Cells("主項金額").Value : End If : End If
306
                 If DataGridView8.Rows(i).Cells("第一階").Value.ToString = ComboBox2.Text Then : TextBox35.Text = Val(TextBox35.Text) + DataGridView8.Rows(i).Cells("主項金額").Value : End If : End If
267
             If ComboBox3.Text = "" Then : Else
307
             If ComboBox3.Text = "" Then : Else
296
             ElseIf DataGridView9.Rows(i).Cells("子項金額").Value.ToString <> "0" Then : DataGridView9.Rows(i).Cells("金額").Value = DataGridView9.Rows(i).Cells("子項金額").Value
336
             ElseIf DataGridView9.Rows(i).Cells("子項金額").Value.ToString <> "0" Then : DataGridView9.Rows(i).Cells("金額").Value = DataGridView9.Rows(i).Cells("子項金額").Value
297
             ElseIf DataGridView9.Rows(i).Cells("細項金額").Value.ToString <> "0" Then : DataGridView9.Rows(i).Cells("金額").Value = DataGridView9.Rows(i).Cells("細項金額").Value
337
             ElseIf DataGridView9.Rows(i).Cells("細項金額").Value.ToString <> "0" Then : DataGridView9.Rows(i).Cells("金額").Value = DataGridView9.Rows(i).Cells("細項金額").Value
298
             Else : DataGridView9.Rows(i).Cells("金額").Value = 0 : End If
338
             Else : DataGridView9.Rows(i).Cells("金額").Value = 0 : End If
339
+
340
+            DataGridView9.Rows(i).Cells("彙總").Value = DataGridView9.Rows(i).Cells("金額").Value
341
+            If DataGridView9.Rows(i).Cells("抵銷").Value = True Then : DataGridView9.Rows(i).Cells("彙總").Value = DataGridView9.Rows(i).Cells("彙總").Value * -1 : End If
342
+
299
             If ComboBox2.Text = "" Then : Else
343
             If ComboBox2.Text = "" Then : Else
300
                 If DataGridView9.Rows(i).Cells("第一階").Value.ToString = ComboBox2.Text Then : TextBox40.Text = Val(TextBox40.Text) + DataGridView9.Rows(i).Cells("主項金額").Value : End If : End If
344
                 If DataGridView9.Rows(i).Cells("第一階").Value.ToString = ComboBox2.Text Then : TextBox40.Text = Val(TextBox40.Text) + DataGridView9.Rows(i).Cells("主項金額").Value : End If : End If
301
             If ComboBox3.Text = "" Then : Else
345
             If ComboBox3.Text = "" Then : Else
330
             ElseIf DataGridView10.Rows(i).Cells("子項金額").Value.ToString <> "0" Then : DataGridView10.Rows(i).Cells("金額").Value = DataGridView10.Rows(i).Cells("子項金額").Value
374
             ElseIf DataGridView10.Rows(i).Cells("子項金額").Value.ToString <> "0" Then : DataGridView10.Rows(i).Cells("金額").Value = DataGridView10.Rows(i).Cells("子項金額").Value
331
             ElseIf DataGridView10.Rows(i).Cells("細項金額").Value.ToString <> "0" Then : DataGridView10.Rows(i).Cells("金額").Value = DataGridView10.Rows(i).Cells("細項金額").Value
375
             ElseIf DataGridView10.Rows(i).Cells("細項金額").Value.ToString <> "0" Then : DataGridView10.Rows(i).Cells("金額").Value = DataGridView10.Rows(i).Cells("細項金額").Value
332
             Else : DataGridView10.Rows(i).Cells("金額").Value = 0 : End If
376
             Else : DataGridView10.Rows(i).Cells("金額").Value = 0 : End If
377
+
378
+            DataGridView10.Rows(i).Cells("彙總").Value = DataGridView10.Rows(i).Cells("金額").Value
379
+            If DataGridView10.Rows(i).Cells("抵銷").Value = True Then : DataGridView10.Rows(i).Cells("彙總").Value = DataGridView10.Rows(i).Cells("彙總").Value * -1 : End If
380
+
333
             If ComboBox2.Text = "" Then : Else
381
             If ComboBox2.Text = "" Then : Else
334
                 If DataGridView10.Rows(i).Cells("第一階").Value.ToString = ComboBox2.Text Then : TextBox45.Text = Val(TextBox45.Text) + DataGridView10.Rows(i).Cells("主項金額").Value : End If : End If
382
                 If DataGridView10.Rows(i).Cells("第一階").Value.ToString = ComboBox2.Text Then : TextBox45.Text = Val(TextBox45.Text) + DataGridView10.Rows(i).Cells("主項金額").Value : End If : End If
335
             If ComboBox3.Text = "" Then : Else
383
             If ComboBox3.Text = "" Then : Else
364
             ElseIf DataGridView11.Rows(i).Cells("子項金額").Value.ToString <> "0" Then : DataGridView11.Rows(i).Cells("金額").Value = DataGridView11.Rows(i).Cells("子項金額").Value
412
             ElseIf DataGridView11.Rows(i).Cells("子項金額").Value.ToString <> "0" Then : DataGridView11.Rows(i).Cells("金額").Value = DataGridView11.Rows(i).Cells("子項金額").Value
365
             ElseIf DataGridView11.Rows(i).Cells("細項金額").Value.ToString <> "0" Then : DataGridView11.Rows(i).Cells("金額").Value = DataGridView11.Rows(i).Cells("細項金額").Value
413
             ElseIf DataGridView11.Rows(i).Cells("細項金額").Value.ToString <> "0" Then : DataGridView11.Rows(i).Cells("金額").Value = DataGridView11.Rows(i).Cells("細項金額").Value
366
             Else : DataGridView11.Rows(i).Cells("金額").Value = 0 : End If
414
             Else : DataGridView11.Rows(i).Cells("金額").Value = 0 : End If
415
+
416
+            DataGridView11.Rows(i).Cells("彙總").Value = DataGridView11.Rows(i).Cells("金額").Value
417
+            If DataGridView11.Rows(i).Cells("抵銷").Value = True Then : DataGridView11.Rows(i).Cells("彙總").Value = DataGridView11.Rows(i).Cells("彙總").Value * -1 : End If
418
+
367
             If ComboBox2.Text = "" Then : Else
419
             If ComboBox2.Text = "" Then : Else
368
                 If DataGridView11.Rows(i).Cells("第一階").Value.ToString = ComboBox2.Text Then : TextBox50.Text = Val(TextBox50.Text) + DataGridView11.Rows(i).Cells("主項金額").Value : End If : End If
420
                 If DataGridView11.Rows(i).Cells("第一階").Value.ToString = ComboBox2.Text Then : TextBox50.Text = Val(TextBox50.Text) + DataGridView11.Rows(i).Cells("主項金額").Value : End If : End If
369
             If ComboBox3.Text = "" Then : Else
421
             If ComboBox3.Text = "" Then : Else
398
             ElseIf DataGridView12.Rows(i).Cells("子項金額").Value.ToString <> "0" Then : DataGridView12.Rows(i).Cells("金額").Value = DataGridView12.Rows(i).Cells("子項金額").Value
450
             ElseIf DataGridView12.Rows(i).Cells("子項金額").Value.ToString <> "0" Then : DataGridView12.Rows(i).Cells("金額").Value = DataGridView12.Rows(i).Cells("子項金額").Value
399
             ElseIf DataGridView12.Rows(i).Cells("細項金額").Value.ToString <> "0" Then : DataGridView12.Rows(i).Cells("金額").Value = DataGridView12.Rows(i).Cells("細項金額").Value
451
             ElseIf DataGridView12.Rows(i).Cells("細項金額").Value.ToString <> "0" Then : DataGridView12.Rows(i).Cells("金額").Value = DataGridView12.Rows(i).Cells("細項金額").Value
400
             Else : DataGridView12.Rows(i).Cells("金額").Value = 0 : End If
452
             Else : DataGridView12.Rows(i).Cells("金額").Value = 0 : End If
453
+
454
+            DataGridView12.Rows(i).Cells("彙總").Value = DataGridView12.Rows(i).Cells("金額").Value
455
+            If DataGridView12.Rows(i).Cells("抵銷").Value = True Then : DataGridView12.Rows(i).Cells("彙總").Value = DataGridView12.Rows(i).Cells("彙總").Value * -1 : End If
456
+
401
             If ComboBox2.Text = "" Then : Else
457
             If ComboBox2.Text = "" Then : Else
402
                 If DataGridView12.Rows(i).Cells("第一階").Value.ToString = ComboBox2.Text Then : TextBox55.Text = Val(TextBox55.Text) + DataGridView12.Rows(i).Cells("主項金額").Value : End If : End If
458
                 If DataGridView12.Rows(i).Cells("第一階").Value.ToString = ComboBox2.Text Then : TextBox55.Text = Val(TextBox55.Text) + DataGridView12.Rows(i).Cells("主項金額").Value : End If : End If
403
             If ComboBox3.Text = "" Then : Else
459
             If ComboBox3.Text = "" Then : Else
432
             ElseIf DataGridView13.Rows(i).Cells("子項金額").Value.ToString <> "0" Then : DataGridView13.Rows(i).Cells("金額").Value = DataGridView13.Rows(i).Cells("子項金額").Value
488
             ElseIf DataGridView13.Rows(i).Cells("子項金額").Value.ToString <> "0" Then : DataGridView13.Rows(i).Cells("金額").Value = DataGridView13.Rows(i).Cells("子項金額").Value
433
             ElseIf DataGridView13.Rows(i).Cells("細項金額").Value.ToString <> "0" Then : DataGridView13.Rows(i).Cells("金額").Value = DataGridView13.Rows(i).Cells("細項金額").Value
489
             ElseIf DataGridView13.Rows(i).Cells("細項金額").Value.ToString <> "0" Then : DataGridView13.Rows(i).Cells("金額").Value = DataGridView13.Rows(i).Cells("細項金額").Value
434
             Else : DataGridView13.Rows(i).Cells("金額").Value = 0 : End If
490
             Else : DataGridView13.Rows(i).Cells("金額").Value = 0 : End If
491
+
492
+            DataGridView13.Rows(i).Cells("彙總").Value = DataGridView13.Rows(i).Cells("金額").Value
493
+            If DataGridView13.Rows(i).Cells("抵銷").Value = True Then : DataGridView13.Rows(i).Cells("彙總").Value = DataGridView13.Rows(i).Cells("彙總").Value * -1 : End If
494
+
435
             If ComboBox2.Text = "" Then : Else
495
             If ComboBox2.Text = "" Then : Else
436
                 If DataGridView13.Rows(i).Cells("第一階").Value.ToString = ComboBox2.Text Then : TextBox60.Text = Val(TextBox60.Text) + DataGridView13.Rows(i).Cells("主項金額").Value : End If : End If
496
                 If DataGridView13.Rows(i).Cells("第一階").Value.ToString = ComboBox2.Text Then : TextBox60.Text = Val(TextBox60.Text) + DataGridView13.Rows(i).Cells("主項金額").Value : End If : End If
437
             If ComboBox3.Text = "" Then : Else
497
             If ComboBox3.Text = "" Then : Else
472
             Dim DataGridViewOO As DataGridView = CType(Me.Controls.Find("DataGridView" + i.ToString(), True)(0), DataGridView)
532
             Dim DataGridViewOO As DataGridView = CType(Me.Controls.Find("DataGridView" + i.ToString(), True)(0), DataGridView)
473
             If i = 2 Then
533
             If i = 2 Then
474
                 DataGridViewOO.Columns(0).FillWeight = 50 : DataGridViewOO.Columns(1).Visible = False : DataGridViewOO.Columns(2).Visible = False : DataGridViewOO.Columns(3).FillWeight = 90
534
                 DataGridViewOO.Columns(0).FillWeight = 50 : DataGridViewOO.Columns(1).Visible = False : DataGridViewOO.Columns(2).Visible = False : DataGridViewOO.Columns(3).FillWeight = 90
475
-                DataGridViewOO.Columns(4).FillWeight = 90 : DataGridViewOO.Columns(5).FillWeight = 120 : DataGridViewOO.Columns(6).FillWeight = 80 : DataGridViewOO.Columns(7).FillWeight = 80
476
-                DataGridViewOO.Columns(8).FillWeight = 80
477
-                DataGridViewOO.Columns(6).DefaultCellStyle.Format = "#,##0" : DataGridViewOO.Columns(7).DefaultCellStyle.Format = "#,##0" : DataGridViewOO.Columns(8).DefaultCellStyle.Format = "#,##0"
478
-                DataGridViewOO.Columns(6).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
479
-                DataGridViewOO.Columns(6).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
480
-                DataGridViewOO.Columns(7).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
481
-                DataGridViewOO.Columns(7).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
482
-                DataGridViewOO.Columns(8).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
483
-                DataGridViewOO.Columns(8).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
535
+                DataGridViewOO.Columns(4).FillWeight = 90 : DataGridViewOO.Columns(5).FillWeight = 120 : DataGridViewOO.Columns(6).Visible = False : DataGridViewOO.Columns(7).Visible = False
536
+                DataGridViewOO.Columns(8).Visible = False : DataGridViewOO.Columns(9).Visible = False : DataGridViewOO.Columns(10).FillWeight = 80 : DataGridViewOO.Columns(11).FillWeight = 80
537
+                DataGridViewOO.Columns(12).FillWeight = 80
538
+                DataGridViewOO.Columns(10).DefaultCellStyle.Format = "#,##0" : DataGridViewOO.Columns(11).DefaultCellStyle.Format = "#,##0" : DataGridViewOO.Columns(12).DefaultCellStyle.Format = "#,##0"
539
+                DataGridViewOO.Columns(10).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
540
+                DataGridViewOO.Columns(10).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
541
+                DataGridViewOO.Columns(11).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
542
+                DataGridViewOO.Columns(11).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
543
+                DataGridViewOO.Columns(12).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
544
+                DataGridViewOO.Columns(12).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
484
 
545
 
485
                 DataGridViewOO.Columns(0).ReadOnly = True : DataGridViewOO.Columns(1).ReadOnly = True : DataGridViewOO.Columns(2).ReadOnly = True : DataGridViewOO.Columns(3).ReadOnly = True
546
                 DataGridViewOO.Columns(0).ReadOnly = True : DataGridViewOO.Columns(1).ReadOnly = True : DataGridViewOO.Columns(2).ReadOnly = True : DataGridViewOO.Columns(3).ReadOnly = True
486
-                DataGridViewOO.Columns(4).ReadOnly = True : DataGridViewOO.Columns(5).ReadOnly = True : DataGridViewOO.Columns(6).ReadOnly = True : DataGridViewOO.Columns(7).ReadOnly = True
487
-                DataGridViewOO.Columns(8).ReadOnly = True
547
+                DataGridViewOO.Columns(4).ReadOnly = True : DataGridViewOO.Columns(5).ReadOnly = True : DataGridViewOO.Columns(10).ReadOnly = True : DataGridViewOO.Columns(11).ReadOnly = True
548
+                DataGridViewOO.Columns(12).ReadOnly = True
488
             Else
549
             Else
489
                 DataGridViewOO.Columns(0).FillWeight = 20 : DataGridViewOO.Columns(1).Visible = False : DataGridViewOO.Columns(2).Visible = False : DataGridViewOO.Columns(3).Visible = False
550
                 DataGridViewOO.Columns(0).FillWeight = 20 : DataGridViewOO.Columns(1).Visible = False : DataGridViewOO.Columns(2).Visible = False : DataGridViewOO.Columns(3).Visible = False
490
                 DataGridViewOO.Columns(4).Visible = False : DataGridViewOO.Columns(5).Visible = False : DataGridViewOO.Columns(6).Visible = False : DataGridViewOO.Columns(7).Visible = False
551
                 DataGridViewOO.Columns(4).Visible = False : DataGridViewOO.Columns(5).Visible = False : DataGridViewOO.Columns(6).Visible = False : DataGridViewOO.Columns(7).Visible = False
491
-                DataGridViewOO.Columns(9).FillWeight = 75 : DataGridViewOO.Columns(8).Visible = False
492
-                DataGridViewOO.Columns(9).DefaultCellStyle.Format = "#,##0"
493
-                DataGridViewOO.Columns(9).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
494
-                DataGridViewOO.Columns(9).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
495
-                DataGridViewOO.Columns(9).ReadOnly = True
552
+                DataGridViewOO.Columns(9).Visible = False : DataGridViewOO.Columns(8).Visible = False : DataGridViewOO.Columns(10).Visible = False : DataGridViewOO.Columns(11).FillWeight = 75
553
+                DataGridViewOO.Columns(11).DefaultCellStyle.Format = "#,##0"
554
+                DataGridViewOO.Columns(11).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
555
+                DataGridViewOO.Columns(11).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
556
+                DataGridViewOO.Columns(11).ReadOnly = True
496
             End If
557
             End If
497
         Next
558
         Next
498
 
559
 
560
+        If TextBox111.Text = "貸" Then
561
+            TextBox61.Text = Val(TextBox61.Text) * -1 : TextBox1.Text = Val(TextBox1.Text) * -1 : TextBox5.Text = Val(TextBox5.Text) * -1 : TextBox9.Text = Val(TextBox9.Text) * -1
562
+            TextBox13.Text = Val(TextBox13.Text) * -1 : TextBox17.Text = Val(TextBox17.Text) * -1 : TextBox21.Text = Val(TextBox21.Text) * -1 : TextBox35.Text = Val(TextBox35.Text) * -1
563
+            TextBox40.Text = Val(TextBox40.Text) * -1 : TextBox45.Text = Val(TextBox45.Text) * -1 : TextBox50.Text = Val(TextBox50.Text) * -1 : TextBox55.Text = Val(TextBox55.Text) * -1
564
+            TextBox60.Text = Val(TextBox60.Text) * -1
565
+
566
+            TextBox61.ForeColor = Color.Red : TextBox1.ForeColor = Color.Red : TextBox5.ForeColor = Color.Red : TextBox9.ForeColor = Color.Red : TextBox13.ForeColor = Color.Red
567
+            TextBox17.ForeColor = Color.Red : TextBox21.ForeColor = Color.Red : TextBox35.ForeColor = Color.Red : TextBox40.ForeColor = Color.Red : TextBox45.ForeColor = Color.Red
568
+            TextBox50.ForeColor = Color.Red : TextBox55.ForeColor = Color.Red : TextBox60.ForeColor = Color.Red
569
+        ElseIf TextBox111.Text = "借" Then
570
+            TextBox61.ForeColor = Color.Blue : TextBox1.ForeColor = Color.Blue : TextBox5.ForeColor = Color.Blue : TextBox9.ForeColor = Color.Blue : TextBox13.ForeColor = Color.Blue
571
+            TextBox17.ForeColor = Color.Blue : TextBox21.ForeColor = Color.Blue : TextBox35.ForeColor = Color.Blue : TextBox40.ForeColor = Color.Blue : TextBox45.ForeColor = Color.Blue
572
+            TextBox50.ForeColor = Color.Blue : TextBox55.ForeColor = Color.Blue : TextBox60.ForeColor = Color.Blue
573
+        ElseIf TextBox111.Text = "" Then
574
+            TextBox61.ForeColor = Color.Black : TextBox1.ForeColor = Color.Black : TextBox5.ForeColor = Color.Black : TextBox9.ForeColor = Color.Black : TextBox13.ForeColor = Color.Black
575
+            TextBox17.ForeColor = Color.Black : TextBox21.ForeColor = Color.Black : TextBox35.ForeColor = Color.Black : TextBox40.ForeColor = Color.Black : TextBox45.ForeColor = Color.Black
576
+            TextBox50.ForeColor = Color.Black : TextBox55.ForeColor = Color.Black : TextBox60.ForeColor = Color.Black
577
+        End If
578
+
579
+        If TextBox110.Text = "貸" Then
580
+            TextBox62.Text = Val(TextBox62.Text) * -1 : TextBox2.Text = Val(TextBox2.Text) * -1 : TextBox6.Text = Val(TextBox6.Text) * -1 : TextBox10.Text = Val(TextBox10.Text) * -1
581
+            TextBox14.Text = Val(TextBox14.Text) * -1 : TextBox18.Text = Val(TextBox18.Text) * -1 : TextBox22.Text = Val(TextBox22.Text) * -1 : TextBox34.Text = Val(TextBox34.Text) * -1
582
+            TextBox39.Text = Val(TextBox39.Text) * -1 : TextBox44.Text = Val(TextBox44.Text) * -1 : TextBox49.Text = Val(TextBox49.Text) * -1 : TextBox54.Text = Val(TextBox54.Text) * -1
583
+            TextBox59.Text = Val(TextBox59.Text) * -1
584
+
585
+            TextBox62.ForeColor = Color.Red : TextBox2.ForeColor = Color.Red : TextBox6.ForeColor = Color.Red : TextBox10.ForeColor = Color.Red : TextBox14.ForeColor = Color.Red
586
+            TextBox18.ForeColor = Color.Red : TextBox22.ForeColor = Color.Red : TextBox34.ForeColor = Color.Red : TextBox39.ForeColor = Color.Red : TextBox44.ForeColor = Color.Red
587
+            TextBox49.ForeColor = Color.Red : TextBox54.ForeColor = Color.Red : TextBox59.ForeColor = Color.Red
588
+        ElseIf TextBox110.Text = "借" Then
589
+            TextBox62.ForeColor = Color.Blue : TextBox2.ForeColor = Color.Blue : TextBox6.ForeColor = Color.Blue : TextBox10.ForeColor = Color.Blue : TextBox14.ForeColor = Color.Blue
590
+            TextBox18.ForeColor = Color.Blue : TextBox22.ForeColor = Color.Blue : TextBox34.ForeColor = Color.Blue : TextBox39.ForeColor = Color.Blue : TextBox44.ForeColor = Color.Blue
591
+            TextBox49.ForeColor = Color.Blue : TextBox54.ForeColor = Color.Blue : TextBox59.ForeColor = Color.Blue
592
+        ElseIf TextBox110.Text = "" Then
593
+            TextBox62.ForeColor = Color.Black : TextBox2.ForeColor = Color.Black : TextBox6.ForeColor = Color.Black : TextBox10.ForeColor = Color.Black : TextBox14.ForeColor = Color.Black
594
+            TextBox18.ForeColor = Color.Black : TextBox22.ForeColor = Color.Black : TextBox34.ForeColor = Color.Black : TextBox39.ForeColor = Color.Black : TextBox44.ForeColor = Color.Black
595
+            TextBox49.ForeColor = Color.Black : TextBox54.ForeColor = Color.Black : TextBox59.ForeColor = Color.Black
596
+        End If
597
+
598
+        If TextBox109.Text = "貸" Then
599
+            TextBox63.Text = Val(TextBox63.Text) * -1 : TextBox3.Text = Val(TextBox3.Text) * -1 : TextBox7.Text = Val(TextBox7.Text) * -1 : TextBox11.Text = Val(TextBox11.Text) * -1
600
+            TextBox15.Text = Val(TextBox15.Text) * -1 : TextBox19.Text = Val(TextBox19.Text) * -1 : TextBox23.Text = Val(TextBox23.Text) * -1 : TextBox33.Text = Val(TextBox33.Text) * -1
601
+            TextBox38.Text = Val(TextBox38.Text) * -1 : TextBox43.Text = Val(TextBox43.Text) * -1 : TextBox48.Text = Val(TextBox48.Text) * -1 : TextBox53.Text = Val(TextBox53.Text) * -1
602
+            TextBox58.Text = Val(TextBox58.Text) * -1
603
+
604
+            TextBox63.ForeColor = Color.Red : TextBox3.ForeColor = Color.Red : TextBox7.ForeColor = Color.Red : TextBox11.ForeColor = Color.Red : TextBox15.ForeColor = Color.Red
605
+            TextBox19.ForeColor = Color.Red : TextBox23.ForeColor = Color.Red : TextBox33.ForeColor = Color.Red : TextBox38.ForeColor = Color.Red : TextBox43.ForeColor = Color.Red
606
+            TextBox48.ForeColor = Color.Red : TextBox53.ForeColor = Color.Red : TextBox58.ForeColor = Color.Red
607
+        ElseIf TextBox109.Text = "借" Then
608
+            TextBox63.ForeColor = Color.Blue : TextBox3.ForeColor = Color.Blue : TextBox7.ForeColor = Color.Blue : TextBox11.ForeColor = Color.Blue : TextBox15.ForeColor = Color.Blue
609
+            TextBox19.ForeColor = Color.Blue : TextBox23.ForeColor = Color.Blue : TextBox33.ForeColor = Color.Blue : TextBox38.ForeColor = Color.Blue : TextBox43.ForeColor = Color.Blue
610
+            TextBox48.ForeColor = Color.Blue : TextBox53.ForeColor = Color.Blue : TextBox58.ForeColor = Color.Blue
611
+        ElseIf TextBox109.Text = "" Then
612
+            TextBox63.ForeColor = Color.Black : TextBox3.ForeColor = Color.Black : TextBox7.ForeColor = Color.Black : TextBox11.ForeColor = Color.Black : TextBox15.ForeColor = Color.Black
613
+            TextBox19.ForeColor = Color.Black : TextBox23.ForeColor = Color.Black : TextBox33.ForeColor = Color.Black : TextBox38.ForeColor = Color.Black : TextBox43.ForeColor = Color.Black
614
+            TextBox48.ForeColor = Color.Black : TextBox53.ForeColor = Color.Black : TextBox58.ForeColor = Color.Black
615
+        End If
616
+
617
+        If TextBox108.Text = "貸" Then
618
+            TextBox77.Text = Val(TextBox77.Text) * -1 : TextBox76.Text = Val(TextBox76.Text) * -1 : TextBox75.Text = Val(TextBox75.Text) * -1 : TextBox74.Text = Val(TextBox74.Text) * -1
619
+            TextBox73.Text = Val(TextBox73.Text) * -1 : TextBox72.Text = Val(TextBox72.Text) * -1 : TextBox71.Text = Val(TextBox71.Text) * -1 : TextBox70.Text = Val(TextBox70.Text) * -1
620
+            TextBox69.Text = Val(TextBox69.Text) * -1 : TextBox68.Text = Val(TextBox68.Text) * -1 : TextBox67.Text = Val(TextBox67.Text) * -1 : TextBox66.Text = Val(TextBox66.Text) * -1
621
+            TextBox65.Text = Val(TextBox65.Text) * -1
622
+
623
+            TextBox77.ForeColor = Color.Red : TextBox76.ForeColor = Color.Red : TextBox75.ForeColor = Color.Red : TextBox74.ForeColor = Color.Red : TextBox73.ForeColor = Color.Red
624
+            TextBox72.ForeColor = Color.Red : TextBox71.ForeColor = Color.Red : TextBox70.ForeColor = Color.Red : TextBox69.ForeColor = Color.Red : TextBox68.ForeColor = Color.Red
625
+            TextBox67.ForeColor = Color.Red : TextBox66.ForeColor = Color.Red : TextBox65.ForeColor = Color.Red
626
+        ElseIf TextBox108.Text = "借" Then
627
+            TextBox77.ForeColor = Color.Blue : TextBox76.ForeColor = Color.Blue : TextBox75.ForeColor = Color.Blue : TextBox74.ForeColor = Color.Blue : TextBox73.ForeColor = Color.Blue
628
+            TextBox72.ForeColor = Color.Blue : TextBox71.ForeColor = Color.Blue : TextBox70.ForeColor = Color.Blue : TextBox69.ForeColor = Color.Blue : TextBox68.ForeColor = Color.Blue
629
+            TextBox67.ForeColor = Color.Blue : TextBox66.ForeColor = Color.Blue : TextBox65.ForeColor = Color.Blue
630
+        ElseIf TextBox108.Text = "" Then
631
+            TextBox77.ForeColor = Color.Black : TextBox76.ForeColor = Color.Black : TextBox75.ForeColor = Color.Black : TextBox74.ForeColor = Color.Black : TextBox73.ForeColor = Color.Black
632
+            TextBox72.ForeColor = Color.Black : TextBox71.ForeColor = Color.Black : TextBox70.ForeColor = Color.Black : TextBox69.ForeColor = Color.Black : TextBox68.ForeColor = Color.Black
633
+            TextBox67.ForeColor = Color.Black : TextBox66.ForeColor = Color.Black : TextBox65.ForeColor = Color.Black
634
+        End If
635
+
636
+        If TextBox107.Text = "貸" Then
637
+            TextBox78.Text = Val(TextBox78.Text) * -1 : TextBox90.Text = Val(TextBox90.Text) * -1 : TextBox89.Text = Val(TextBox89.Text) * -1 : TextBox88.Text = Val(TextBox88.Text) * -1
638
+            TextBox87.Text = Val(TextBox87.Text) * -1 : TextBox86.Text = Val(TextBox86.Text) * -1 : TextBox85.Text = Val(TextBox85.Text) * -1 : TextBox84.Text = Val(TextBox84.Text) * -1
639
+            TextBox83.Text = Val(TextBox83.Text) * -1 : TextBox82.Text = Val(TextBox82.Text) * -1 : TextBox81.Text = Val(TextBox81.Text) * -1 : TextBox80.Text = Val(TextBox80.Text) * -1
640
+            TextBox79.Text = Val(TextBox79.Text) * -1
641
+
642
+            TextBox78.ForeColor = Color.Red : TextBox90.ForeColor = Color.Red : TextBox89.ForeColor = Color.Red : TextBox88.ForeColor = Color.Red : TextBox87.ForeColor = Color.Red
643
+            TextBox86.ForeColor = Color.Red : TextBox85.ForeColor = Color.Red : TextBox84.ForeColor = Color.Red : TextBox83.ForeColor = Color.Red : TextBox82.ForeColor = Color.Red
644
+            TextBox81.ForeColor = Color.Red : TextBox80.ForeColor = Color.Red : TextBox79.ForeColor = Color.Red
645
+        ElseIf TextBox107.Text = "借" Then
646
+            TextBox78.ForeColor = Color.Blue : TextBox90.ForeColor = Color.Blue : TextBox89.ForeColor = Color.Blue : TextBox88.ForeColor = Color.Blue : TextBox87.ForeColor = Color.Blue
647
+            TextBox86.ForeColor = Color.Blue : TextBox85.ForeColor = Color.Blue : TextBox84.ForeColor = Color.Blue : TextBox83.ForeColor = Color.Blue : TextBox82.ForeColor = Color.Blue
648
+            TextBox81.ForeColor = Color.Blue : TextBox80.ForeColor = Color.Blue : TextBox79.ForeColor = Color.Blue
649
+        ElseIf TextBox107.Text = "" Then
650
+            TextBox78.ForeColor = Color.Black : TextBox90.ForeColor = Color.Black : TextBox89.ForeColor = Color.Black : TextBox88.ForeColor = Color.Black : TextBox87.ForeColor = Color.Black
651
+            TextBox86.ForeColor = Color.Black : TextBox85.ForeColor = Color.Black : TextBox84.ForeColor = Color.Black : TextBox83.ForeColor = Color.Black : TextBox82.ForeColor = Color.Black
652
+            TextBox81.ForeColor = Color.Black : TextBox80.ForeColor = Color.Black : TextBox79.ForeColor = Color.Black
653
+        End If
654
+
655
+        If TextBox106.Text = "貸" Then
656
+            TextBox91.Text = Val(TextBox91.Text) * -1 : TextBox103.Text = Val(TextBox103.Text) * -1 : TextBox102.Text = Val(TextBox102.Text) * -1 : TextBox101.Text = Val(TextBox101.Text) * -1
657
+            TextBox100.Text = Val(TextBox100.Text) * -1 : TextBox99.Text = Val(TextBox99.Text) * -1 : TextBox98.Text = Val(TextBox98.Text) * -1 : TextBox97.Text = Val(TextBox97.Text) * -1
658
+            TextBox96.Text = Val(TextBox96.Text) * -1 : TextBox95.Text = Val(TextBox95.Text) * -1 : TextBox94.Text = Val(TextBox94.Text) * -1 : TextBox93.Text = Val(TextBox93.Text) * -1
659
+            TextBox92.Text = Val(TextBox92.Text) * -1
660
+
661
+            TextBox91.ForeColor = Color.Red : TextBox103.ForeColor = Color.Red : TextBox102.ForeColor = Color.Red : TextBox101.ForeColor = Color.Red : TextBox100.ForeColor = Color.Red
662
+            TextBox99.ForeColor = Color.Red : TextBox98.ForeColor = Color.Red : TextBox97.ForeColor = Color.Red : TextBox96.ForeColor = Color.Red : TextBox95.ForeColor = Color.Red
663
+            TextBox94.ForeColor = Color.Red : TextBox93.ForeColor = Color.Red : TextBox92.ForeColor = Color.Red
664
+        ElseIf TextBox106.Text = "借" Then
665
+            TextBox91.ForeColor = Color.Blue : TextBox103.ForeColor = Color.Blue : TextBox102.ForeColor = Color.Blue : TextBox101.ForeColor = Color.Blue : TextBox100.ForeColor = Color.Blue
666
+            TextBox99.ForeColor = Color.Blue : TextBox98.ForeColor = Color.Blue : TextBox97.ForeColor = Color.Blue : TextBox96.ForeColor = Color.Blue : TextBox95.ForeColor = Color.Blue
667
+            TextBox94.ForeColor = Color.Blue : TextBox93.ForeColor = Color.Blue : TextBox92.ForeColor = Color.Blue
668
+        ElseIf TextBox106.Text = "" Then
669
+            TextBox91.ForeColor = Color.Black : TextBox103.ForeColor = Color.Black : TextBox102.ForeColor = Color.Black : TextBox101.ForeColor = Color.Black : TextBox100.ForeColor = Color.Black
670
+            TextBox99.ForeColor = Color.Black : TextBox98.ForeColor = Color.Black : TextBox97.ForeColor = Color.Black : TextBox96.ForeColor = Color.Black : TextBox95.ForeColor = Color.Black
671
+            TextBox94.ForeColor = Color.Black : TextBox93.ForeColor = Color.Black : TextBox92.ForeColor = Color.Black
672
+        End If
673
+
674
+        If TextBox105.Text = "貸" Then
675
+            TextBox104.Text = Val(TextBox104.Text) * -1 : TextBox30.Text = Val(TextBox30.Text) * -1 : TextBox29.Text = Val(TextBox29.Text) * -1 : TextBox28.Text = Val(TextBox28.Text) * -1
676
+            TextBox27.Text = Val(TextBox27.Text) * -1 : TextBox26.Text = Val(TextBox26.Text) * -1 : TextBox25.Text = Val(TextBox25.Text) * -1 : TextBox31.Text = Val(TextBox31.Text) * -1
677
+            TextBox36.Text = Val(TextBox36.Text) * -1 : TextBox41.Text = Val(TextBox41.Text) * -1 : TextBox46.Text = Val(TextBox46.Text) * -1 : TextBox51.Text = Val(TextBox51.Text) * -1
678
+            TextBox56.Text = Val(TextBox56.Text) * -1
679
+
680
+            TextBox104.ForeColor = Color.Red : TextBox30.ForeColor = Color.Red : TextBox29.ForeColor = Color.Red : TextBox28.ForeColor = Color.Red : TextBox27.ForeColor = Color.Red
681
+            TextBox26.ForeColor = Color.Red : TextBox25.ForeColor = Color.Red : TextBox31.ForeColor = Color.Red : TextBox36.ForeColor = Color.Red : TextBox41.ForeColor = Color.Red
682
+            TextBox46.ForeColor = Color.Red : TextBox51.ForeColor = Color.Red : TextBox56.ForeColor = Color.Red
683
+        ElseIf TextBox105.Text = "借" Then
684
+            TextBox104.ForeColor = Color.Blue : TextBox30.ForeColor = Color.Blue : TextBox29.ForeColor = Color.Blue : TextBox28.ForeColor = Color.Blue : TextBox27.ForeColor = Color.Blue
685
+            TextBox26.ForeColor = Color.Blue : TextBox25.ForeColor = Color.Blue : TextBox31.ForeColor = Color.Blue : TextBox36.ForeColor = Color.Blue : TextBox41.ForeColor = Color.Blue
686
+            TextBox46.ForeColor = Color.Blue : TextBox51.ForeColor = Color.Blue : TextBox56.ForeColor = Color.Blue
687
+        ElseIf TextBox105.Text = "" Then
688
+            TextBox104.ForeColor = Color.Black : TextBox30.ForeColor = Color.Black : TextBox29.ForeColor = Color.Black : TextBox28.ForeColor = Color.Black : TextBox27.ForeColor = Color.Black
689
+            TextBox26.ForeColor = Color.Black : TextBox25.ForeColor = Color.Black : TextBox31.ForeColor = Color.Black : TextBox36.ForeColor = Color.Black : TextBox41.ForeColor = Color.Black
690
+            TextBox46.ForeColor = Color.Black : TextBox51.ForeColor = Color.Black : TextBox56.ForeColor = Color.Black
691
+        End If
692
+
693
+        If Val(TextBox64.Text) < 0 Then : TextBox64.ForeColor = Color.Red : Else : TextBox64.ForeColor = Color.Blue : End If
694
+        If Val(TextBox4.Text) < 0 Then : TextBox4.ForeColor = Color.Red : Else : TextBox4.ForeColor = Color.Blue : End If
695
+        If Val(TextBox8.Text) < 0 Then : TextBox8.ForeColor = Color.Red : Else : TextBox8.ForeColor = Color.Blue : End If
696
+        If Val(TextBox12.Text) < 0 Then : TextBox12.ForeColor = Color.Red : Else : TextBox12.ForeColor = Color.Blue : End If
697
+        If Val(TextBox16.Text) < 0 Then : TextBox16.ForeColor = Color.Red : Else : TextBox16.ForeColor = Color.Blue : End If
698
+        If Val(TextBox20.Text) < 0 Then : TextBox20.ForeColor = Color.Red : Else : TextBox20.ForeColor = Color.Blue : End If
699
+        If Val(TextBox24.Text) < 0 Then : TextBox24.ForeColor = Color.Red : Else : TextBox24.ForeColor = Color.Blue : End If
700
+        If Val(TextBox32.Text) < 0 Then : TextBox32.ForeColor = Color.Red : Else : TextBox32.ForeColor = Color.Blue : End If
701
+        If Val(TextBox37.Text) < 0 Then : TextBox37.ForeColor = Color.Red : Else : TextBox37.ForeColor = Color.Blue : End If
702
+        If Val(TextBox42.Text) < 0 Then : TextBox42.ForeColor = Color.Red : Else : TextBox42.ForeColor = Color.Blue : End If
703
+        If Val(TextBox47.Text) < 0 Then : TextBox47.ForeColor = Color.Red : Else : TextBox47.ForeColor = Color.Blue : End If
704
+        If Val(TextBox52.Text) < 0 Then : TextBox52.ForeColor = Color.Red : Else : TextBox52.ForeColor = Color.Blue : End If
705
+        If Val(TextBox57.Text) < 0 Then : TextBox57.ForeColor = Color.Red : Else : TextBox57.ForeColor = Color.Blue : End If
706
+
499
         For no As Integer = 1 To 104
707
         For no As Integer = 1 To 104
500
             Dim TextBoxOO As TextBox = CType(Me.Controls.Find("TextBox" + no.ToString(), True)(0), TextBox)
708
             Dim TextBoxOO As TextBox = CType(Me.Controls.Find("TextBox" + no.ToString(), True)(0), TextBox)
501
-            If Val(TextBoxOO.Text) > 1 Then : TextBoxOO.ForeColor = Color.Blue : ElseIf Val(TextBoxOO.Text) < 1 Then : TextBoxOO.ForeColor = Color.Red : End If
502
             TextBoxOO.Text = Format(Val(TextBoxOO.Text), "#,##0 ")
709
             TextBoxOO.Text = Format(Val(TextBoxOO.Text), "#,##0 ")
503
         Next
710
         Next
504
     End Sub
711
     End Sub
513
         Me.MdiParent = MAOJI_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
720
         Me.MdiParent = MAOJI_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
514
         DataGridView14.Visible = False : ComboBox2下拉表單資料載入() : 合計預設值() : ComboBox1下拉表單資料載入() : ComboBox1.Text = Year(Today)
721
         DataGridView14.Visible = False : ComboBox2下拉表單資料載入() : 合計預設值() : ComboBox1下拉表單資料載入() : ComboBox1.Text = Year(Today)
515
     End Sub
722
     End Sub
723
+    Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click
724
+        ComboBox2下拉表單資料載入()
725
+    End Sub
516
     Private Sub ComboBox1_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox1.SelectedIndexChanged
726
     Private Sub ComboBox1_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox1.SelectedIndexChanged
517
         Set_清單() : Set_清單1() : Set_清單2() : Set_清單3() : Set_清單4() : Set_清單5() : Set_清單6() : Set_清單7() : Set_清單8() : Set_清單9() : Set_清單10() : Set_清單11() : Set_清單12()
727
         Set_清單() : Set_清單1() : Set_清單2() : Set_清單3() : Set_清單4() : Set_清單5() : Set_清單6() : Set_清單7() : Set_清單8() : Set_清單9() : Set_清單10() : Set_清單11() : Set_清單12()
518
         格式設定()
728
         格式設定()
537
             For i As Integer = 0 To DataGridView2.Rows.Count - 1
747
             For i As Integer = 0 To DataGridView2.Rows.Count - 1
538
                 If DataGridView2("層級", i).Value = 1 Then : DataGridView2.Rows(i).DefaultCellStyle.BackColor = Color.LightPink
748
                 If DataGridView2("層級", i).Value = 1 Then : DataGridView2.Rows(i).DefaultCellStyle.BackColor = Color.LightPink
539
                 ElseIf DataGridView2("層級", i).Value = 2 Then : DataGridView2.Rows(i).DefaultCellStyle.BackColor = Color.LightGoldenrodYellow : End If
749
                 ElseIf DataGridView2("層級", i).Value = 2 Then : DataGridView2.Rows(i).DefaultCellStyle.BackColor = Color.LightGoldenrodYellow : End If
750
+                If DataGridView2("抵銷", i).Value = True Then : DataGridView2.Rows(i).DefaultCellStyle.ForeColor = Color.Red
751
+                ElseIf DataGridView2("抵銷", i).Value = False Then : DataGridView2.Rows(i).DefaultCellStyle.ForeColor = Color.Blue : End If
540
             Next
752
             Next
541
         End If
753
         End If
542
     End Sub
754
     End Sub
556
             For i As Integer = 0 To DataGridView1.Rows.Count - 1
768
             For i As Integer = 0 To DataGridView1.Rows.Count - 1
557
                 If DataGridView1("層級", i).Value = 1 Then : DataGridView1.Rows(i).DefaultCellStyle.BackColor = Color.LightPink
769
                 If DataGridView1("層級", i).Value = 1 Then : DataGridView1.Rows(i).DefaultCellStyle.BackColor = Color.LightPink
558
                 ElseIf DataGridView1("層級", i).Value = 2 Then : DataGridView1.Rows(i).DefaultCellStyle.BackColor = Color.LightGoldenrodYellow : End If
770
                 ElseIf DataGridView1("層級", i).Value = 2 Then : DataGridView1.Rows(i).DefaultCellStyle.BackColor = Color.LightGoldenrodYellow : End If
771
+                If DataGridView1("抵銷", i).Value = True Then : DataGridView1.Rows(i).DefaultCellStyle.ForeColor = Color.Red
772
+                ElseIf DataGridView1("抵銷", i).Value = False Then : DataGridView1.Rows(i).DefaultCellStyle.ForeColor = Color.Blue : End If
559
             Next
773
             Next
560
         End If
774
         End If
561
     End Sub
775
     End Sub
575
             For i As Integer = 0 To DataGridView3.Rows.Count - 1
789
             For i As Integer = 0 To DataGridView3.Rows.Count - 1
576
                 If DataGridView3("層級", i).Value = 1 Then : DataGridView3.Rows(i).DefaultCellStyle.BackColor = Color.LightPink
790
                 If DataGridView3("層級", i).Value = 1 Then : DataGridView3.Rows(i).DefaultCellStyle.BackColor = Color.LightPink
577
                 ElseIf DataGridView3("層級", i).Value = 2 Then : DataGridView3.Rows(i).DefaultCellStyle.BackColor = Color.LightGoldenrodYellow : End If
791
                 ElseIf DataGridView3("層級", i).Value = 2 Then : DataGridView3.Rows(i).DefaultCellStyle.BackColor = Color.LightGoldenrodYellow : End If
792
+                If DataGridView3("抵銷", i).Value = True Then : DataGridView3.Rows(i).DefaultCellStyle.ForeColor = Color.Red
793
+                ElseIf DataGridView3("抵銷", i).Value = False Then : DataGridView3.Rows(i).DefaultCellStyle.ForeColor = Color.Blue : End If
578
             Next
794
             Next
579
         End If
795
         End If
580
     End Sub
796
     End Sub
594
             For i As Integer = 0 To DataGridView4.Rows.Count - 1
810
             For i As Integer = 0 To DataGridView4.Rows.Count - 1
595
                 If DataGridView4("層級", i).Value = 1 Then : DataGridView4.Rows(i).DefaultCellStyle.BackColor = Color.LightPink
811
                 If DataGridView4("層級", i).Value = 1 Then : DataGridView4.Rows(i).DefaultCellStyle.BackColor = Color.LightPink
596
                 ElseIf DataGridView4("層級", i).Value = 2 Then : DataGridView4.Rows(i).DefaultCellStyle.BackColor = Color.LightGoldenrodYellow : End If
812
                 ElseIf DataGridView4("層級", i).Value = 2 Then : DataGridView4.Rows(i).DefaultCellStyle.BackColor = Color.LightGoldenrodYellow : End If
813
+                If DataGridView4("抵銷", i).Value = True Then : DataGridView4.Rows(i).DefaultCellStyle.ForeColor = Color.Red
814
+                ElseIf DataGridView4("抵銷", i).Value = False Then : DataGridView4.Rows(i).DefaultCellStyle.ForeColor = Color.Blue : End If
597
             Next
815
             Next
598
         End If
816
         End If
599
     End Sub
817
     End Sub
613
             For i As Integer = 0 To DataGridView5.Rows.Count - 1
831
             For i As Integer = 0 To DataGridView5.Rows.Count - 1
614
                 If DataGridView5("層級", i).Value = 1 Then : DataGridView5.Rows(i).DefaultCellStyle.BackColor = Color.LightPink
832
                 If DataGridView5("層級", i).Value = 1 Then : DataGridView5.Rows(i).DefaultCellStyle.BackColor = Color.LightPink
615
                 ElseIf DataGridView5("層級", i).Value = 2 Then : DataGridView5.Rows(i).DefaultCellStyle.BackColor = Color.LightGoldenrodYellow : End If
833
                 ElseIf DataGridView5("層級", i).Value = 2 Then : DataGridView5.Rows(i).DefaultCellStyle.BackColor = Color.LightGoldenrodYellow : End If
834
+                If DataGridView5("抵銷", i).Value = True Then : DataGridView5.Rows(i).DefaultCellStyle.ForeColor = Color.Red
835
+                ElseIf DataGridView5("抵銷", i).Value = False Then : DataGridView5.Rows(i).DefaultCellStyle.ForeColor = Color.Blue : End If
616
             Next
836
             Next
617
         End If
837
         End If
618
     End Sub
838
     End Sub
632
             For i As Integer = 0 To DataGridView6.Rows.Count - 1
852
             For i As Integer = 0 To DataGridView6.Rows.Count - 1
633
                 If DataGridView6("層級", i).Value = 1 Then : DataGridView6.Rows(i).DefaultCellStyle.BackColor = Color.LightPink
853
                 If DataGridView6("層級", i).Value = 1 Then : DataGridView6.Rows(i).DefaultCellStyle.BackColor = Color.LightPink
634
                 ElseIf DataGridView6("層級", i).Value = 2 Then : DataGridView6.Rows(i).DefaultCellStyle.BackColor = Color.LightGoldenrodYellow : End If
854
                 ElseIf DataGridView6("層級", i).Value = 2 Then : DataGridView6.Rows(i).DefaultCellStyle.BackColor = Color.LightGoldenrodYellow : End If
855
+                If DataGridView6("抵銷", i).Value = True Then : DataGridView6.Rows(i).DefaultCellStyle.ForeColor = Color.Red
856
+                ElseIf DataGridView6("抵銷", i).Value = False Then : DataGridView6.Rows(i).DefaultCellStyle.ForeColor = Color.Blue : End If
635
             Next
857
             Next
636
         End If
858
         End If
637
     End Sub
859
     End Sub
651
             For i As Integer = 0 To DataGridView7.Rows.Count - 1
873
             For i As Integer = 0 To DataGridView7.Rows.Count - 1
652
                 If DataGridView7("層級", i).Value = 1 Then : DataGridView7.Rows(i).DefaultCellStyle.BackColor = Color.LightPink
874
                 If DataGridView7("層級", i).Value = 1 Then : DataGridView7.Rows(i).DefaultCellStyle.BackColor = Color.LightPink
653
                 ElseIf DataGridView7("層級", i).Value = 2 Then : DataGridView7.Rows(i).DefaultCellStyle.BackColor = Color.LightGoldenrodYellow : End If
875
                 ElseIf DataGridView7("層級", i).Value = 2 Then : DataGridView7.Rows(i).DefaultCellStyle.BackColor = Color.LightGoldenrodYellow : End If
876
+                If DataGridView7("抵銷", i).Value = True Then : DataGridView7.Rows(i).DefaultCellStyle.ForeColor = Color.Red
877
+                ElseIf DataGridView7("抵銷", i).Value = False Then : DataGridView7.Rows(i).DefaultCellStyle.ForeColor = Color.Blue : End If
654
             Next
878
             Next
655
         End If
879
         End If
656
     End Sub
880
     End Sub
670
             For i As Integer = 0 To DataGridView8.Rows.Count - 1
894
             For i As Integer = 0 To DataGridView8.Rows.Count - 1
671
                 If DataGridView8("層級", i).Value = 1 Then : DataGridView8.Rows(i).DefaultCellStyle.BackColor = Color.LightPink
895
                 If DataGridView8("層級", i).Value = 1 Then : DataGridView8.Rows(i).DefaultCellStyle.BackColor = Color.LightPink
672
                 ElseIf DataGridView8("層級", i).Value = 2 Then : DataGridView8.Rows(i).DefaultCellStyle.BackColor = Color.LightGoldenrodYellow : End If
896
                 ElseIf DataGridView8("層級", i).Value = 2 Then : DataGridView8.Rows(i).DefaultCellStyle.BackColor = Color.LightGoldenrodYellow : End If
897
+                If DataGridView8("抵銷", i).Value = True Then : DataGridView8.Rows(i).DefaultCellStyle.ForeColor = Color.Red
898
+                ElseIf DataGridView8("抵銷", i).Value = False Then : DataGridView8.Rows(i).DefaultCellStyle.ForeColor = Color.Blue : End If
673
             Next
899
             Next
674
         End If
900
         End If
675
     End Sub
901
     End Sub
689
             For i As Integer = 0 To DataGridView9.Rows.Count - 1
915
             For i As Integer = 0 To DataGridView9.Rows.Count - 1
690
                 If DataGridView9("層級", i).Value = 1 Then : DataGridView9.Rows(i).DefaultCellStyle.BackColor = Color.LightPink
916
                 If DataGridView9("層級", i).Value = 1 Then : DataGridView9.Rows(i).DefaultCellStyle.BackColor = Color.LightPink
691
                 ElseIf DataGridView9("層級", i).Value = 2 Then : DataGridView9.Rows(i).DefaultCellStyle.BackColor = Color.LightGoldenrodYellow : End If
917
                 ElseIf DataGridView9("層級", i).Value = 2 Then : DataGridView9.Rows(i).DefaultCellStyle.BackColor = Color.LightGoldenrodYellow : End If
918
+                If DataGridView9("抵銷", i).Value = True Then : DataGridView9.Rows(i).DefaultCellStyle.ForeColor = Color.Red
919
+                ElseIf DataGridView9("抵銷", i).Value = False Then : DataGridView9.Rows(i).DefaultCellStyle.ForeColor = Color.Blue : End If
692
             Next
920
             Next
693
         End If
921
         End If
694
     End Sub
922
     End Sub
708
             For i As Integer = 0 To DataGridView10.Rows.Count - 1
936
             For i As Integer = 0 To DataGridView10.Rows.Count - 1
709
                 If DataGridView10("層級", i).Value = 1 Then : DataGridView10.Rows(i).DefaultCellStyle.BackColor = Color.LightPink
937
                 If DataGridView10("層級", i).Value = 1 Then : DataGridView10.Rows(i).DefaultCellStyle.BackColor = Color.LightPink
710
                 ElseIf DataGridView10("層級", i).Value = 2 Then : DataGridView10.Rows(i).DefaultCellStyle.BackColor = Color.LightGoldenrodYellow : End If
938
                 ElseIf DataGridView10("層級", i).Value = 2 Then : DataGridView10.Rows(i).DefaultCellStyle.BackColor = Color.LightGoldenrodYellow : End If
939
+                If DataGridView10("抵銷", i).Value = True Then : DataGridView10.Rows(i).DefaultCellStyle.ForeColor = Color.Red
940
+                ElseIf DataGridView10("抵銷", i).Value = False Then : DataGridView10.Rows(i).DefaultCellStyle.ForeColor = Color.Blue : End If
711
             Next
941
             Next
712
         End If
942
         End If
713
     End Sub
943
     End Sub
727
             For i As Integer = 0 To DataGridView11.Rows.Count - 1
957
             For i As Integer = 0 To DataGridView11.Rows.Count - 1
728
                 If DataGridView11("層級", i).Value = 1 Then : DataGridView11.Rows(i).DefaultCellStyle.BackColor = Color.LightPink
958
                 If DataGridView11("層級", i).Value = 1 Then : DataGridView11.Rows(i).DefaultCellStyle.BackColor = Color.LightPink
729
                 ElseIf DataGridView11("層級", i).Value = 2 Then : DataGridView11.Rows(i).DefaultCellStyle.BackColor = Color.LightGoldenrodYellow : End If
959
                 ElseIf DataGridView11("層級", i).Value = 2 Then : DataGridView11.Rows(i).DefaultCellStyle.BackColor = Color.LightGoldenrodYellow : End If
960
+                If DataGridView11("抵銷", i).Value = True Then : DataGridView11.Rows(i).DefaultCellStyle.ForeColor = Color.Red
961
+                ElseIf DataGridView11("抵銷", i).Value = False Then : DataGridView11.Rows(i).DefaultCellStyle.ForeColor = Color.Blue : End If
730
             Next
962
             Next
731
         End If
963
         End If
732
     End Sub
964
     End Sub
746
             For i As Integer = 0 To DataGridView12.Rows.Count - 1
978
             For i As Integer = 0 To DataGridView12.Rows.Count - 1
747
                 If DataGridView12("層級", i).Value = 1 Then : DataGridView12.Rows(i).DefaultCellStyle.BackColor = Color.LightPink
979
                 If DataGridView12("層級", i).Value = 1 Then : DataGridView12.Rows(i).DefaultCellStyle.BackColor = Color.LightPink
748
                 ElseIf DataGridView12("層級", i).Value = 2 Then : DataGridView12.Rows(i).DefaultCellStyle.BackColor = Color.LightGoldenrodYellow : End If
980
                 ElseIf DataGridView12("層級", i).Value = 2 Then : DataGridView12.Rows(i).DefaultCellStyle.BackColor = Color.LightGoldenrodYellow : End If
981
+                If DataGridView12("抵銷", i).Value = True Then : DataGridView12.Rows(i).DefaultCellStyle.ForeColor = Color.Red
982
+                ElseIf DataGridView12("抵銷", i).Value = False Then : DataGridView12.Rows(i).DefaultCellStyle.ForeColor = Color.Blue : End If
749
             Next
983
             Next
750
         End If
984
         End If
751
     End Sub
985
     End Sub
765
             For i As Integer = 0 To DataGridView13.Rows.Count - 1
999
             For i As Integer = 0 To DataGridView13.Rows.Count - 1
766
                 If DataGridView13("層級", i).Value = 1 Then : DataGridView13.Rows(i).DefaultCellStyle.BackColor = Color.LightPink
1000
                 If DataGridView13("層級", i).Value = 1 Then : DataGridView13.Rows(i).DefaultCellStyle.BackColor = Color.LightPink
767
                 ElseIf DataGridView13("層級", i).Value = 2 Then : DataGridView13.Rows(i).DefaultCellStyle.BackColor = Color.LightGoldenrodYellow : End If
1001
                 ElseIf DataGridView13("層級", i).Value = 2 Then : DataGridView13.Rows(i).DefaultCellStyle.BackColor = Color.LightGoldenrodYellow : End If
1002
+                If DataGridView13("抵銷", i).Value = True Then : DataGridView13.Rows(i).DefaultCellStyle.ForeColor = Color.Red
1003
+                ElseIf DataGridView13("抵銷", i).Value = False Then : DataGridView13.Rows(i).DefaultCellStyle.ForeColor = Color.Blue : End If
768
             Next
1004
             Next
769
         End If
1005
         End If
770
     End Sub
1006
     End Sub
776
         DataGridView10.FirstDisplayedScrollingRowIndex = DataGridView2.FirstDisplayedScrollingRowIndex : DataGridView11.FirstDisplayedScrollingRowIndex = DataGridView2.FirstDisplayedScrollingRowIndex
1012
         DataGridView10.FirstDisplayedScrollingRowIndex = DataGridView2.FirstDisplayedScrollingRowIndex : DataGridView11.FirstDisplayedScrollingRowIndex = DataGridView2.FirstDisplayedScrollingRowIndex
777
         DataGridView12.FirstDisplayedScrollingRowIndex = DataGridView2.FirstDisplayedScrollingRowIndex : DataGridView13.FirstDisplayedScrollingRowIndex = DataGridView2.FirstDisplayedScrollingRowIndex
1013
         DataGridView12.FirstDisplayedScrollingRowIndex = DataGridView2.FirstDisplayedScrollingRowIndex : DataGridView13.FirstDisplayedScrollingRowIndex = DataGridView2.FirstDisplayedScrollingRowIndex
778
     End Sub
1014
     End Sub
779
-    '-----------------------------滑鼠右鍵------------------------------------------------------------------------------------------------------------------------------------------
780
-    Private Sub 重新整理ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 重新整理ToolStripMenuItem.Click
781
-        合計預設值() : Set_清單() : Set_清單1() : Set_清單2() : Set_清單3() : Set_清單4() : Set_清單5() : Set_清單6() : Set_清單7()
782
-        Set_清單8() : Set_清單9() : Set_清單10() : Set_清單11() : Set_清單12() : 格式設定()
1015
+    Private Sub ComboBox2_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox2.SelectedIndexChanged
1016
+        PA1 = ComboBox2.Text : SQL_營運成本收支_決算表_彙總借貸()
1017
+        If dr.Read() Then : If dr("抵銷科目") = True Then : TextBox111.Text = "貸" : ElseIf dr("抵銷科目") = False Then : TextBox111.Text = "借" : End If : Else : TextBox111.Text = "" : End If
1018
+    End Sub
1019
+    Private Sub ComboBox3_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox3.SelectedIndexChanged
1020
+        PA1 = ComboBox3.Text : SQL_營運成本收支_決算表_彙總借貸()
1021
+        If dr.Read() Then : If dr("抵銷科目") = True Then : TextBox110.Text = "貸" : ElseIf dr("抵銷科目") = False Then : TextBox110.Text = "借" : End If : Else : TextBox110.Text = "" : End If
1022
+    End Sub
1023
+    Private Sub ComboBox4_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox4.SelectedIndexChanged
1024
+        PA1 = ComboBox4.Text : SQL_營運成本收支_決算表_彙總借貸()
1025
+        If dr.Read() Then : If dr("抵銷科目") = True Then : TextBox109.Text = "貸" : ElseIf dr("抵銷科目") = False Then : TextBox109.Text = "借" : End If : Else : TextBox109.Text = "" : End If
1026
+    End Sub
1027
+    Private Sub ComboBox5_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox5.SelectedIndexChanged
1028
+        PA1 = ComboBox5.Text : SQL_營運成本收支_決算表_彙總借貸()
1029
+        If dr.Read() Then : If dr("抵銷科目") = True Then : TextBox108.Text = "貸" : ElseIf dr("抵銷科目") = False Then : TextBox108.Text = "借" : End If : Else : TextBox108.Text = "" : End If
1030
+    End Sub
1031
+    Private Sub ComboBox6_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox6.SelectedIndexChanged
1032
+        PA1 = ComboBox6.Text : SQL_營運成本收支_決算表_彙總借貸()
1033
+        If dr.Read() Then : If dr("抵銷科目") = True Then : TextBox107.Text = "貸" : ElseIf dr("抵銷科目") = False Then : TextBox107.Text = "借" : End If : Else : TextBox107.Text = "" : End If
1034
+    End Sub
1035
+    Private Sub ComboBox7_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox7.SelectedIndexChanged
1036
+        PA1 = ComboBox7.Text : SQL_營運成本收支_決算表_彙總借貸()
1037
+        If dr.Read() Then : If dr("抵銷科目") = True Then : TextBox106.Text = "貸" : ElseIf dr("抵銷科目") = False Then : TextBox106.Text = "借" : End If : Else : TextBox106.Text = "" : End If
1038
+    End Sub
1039
+    Private Sub ComboBox8_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox8.SelectedIndexChanged
1040
+        PA1 = ComboBox8.Text : SQL_營運成本收支_決算表_彙總借貸()
1041
+        If dr.Read() Then : If dr("抵銷科目") = True Then : TextBox105.Text = "貸" : ElseIf dr("抵銷科目") = False Then : TextBox105.Text = "借" : End If : Else : TextBox105.Text = "" : End If
783
     End Sub
1042
     End Sub
784
     Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
1043
     Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
785
         For i As Integer = 0 To DataGridView14.Rows.Count - 1
1044
         For i As Integer = 0 To DataGridView14.Rows.Count - 1
788
             PA1 = ComboBoxOO.Text : 布林1 = CheckBoxOO.Checked : PA2 = (i + 1) : SQL_財務決算表合計預設修改() : conn.Close()
1047
             PA1 = ComboBoxOO.Text : 布林1 = CheckBoxOO.Checked : PA2 = (i + 1) : SQL_財務決算表合計預設修改() : conn.Close()
789
         Next : MsgBox("存檔完畢。") : Me.重新整理ToolStripMenuItem.PerformClick()
1048
         Next : MsgBox("存檔完畢。") : Me.重新整理ToolStripMenuItem.PerformClick()
790
     End Sub
1049
     End Sub
1050
+    '-----------------------------滑鼠右鍵------------------------------------------------------------------------------------------------------------------------------------------
1051
+    Private Sub 重新整理ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 重新整理ToolStripMenuItem.Click
1052
+        合計預設值() : Set_清單() : Set_清單1() : Set_清單2() : Set_清單3() : Set_清單4() : Set_清單5() : Set_清單6() : Set_清單7()
1053
+        Set_清單8() : Set_清單9() : Set_清單10() : Set_清單11() : Set_清單12() : 格式設定()
1054
+    End Sub
791
 End Class
1055
 End Class

+ 3
- 3
MaoOrange-Hongji/資料庫系統管理/列印_產品標籤介面.Designer.vb Vedi File

22
     '請勿使用程式碼編輯器進行修改。
22
     '請勿使用程式碼編輯器進行修改。
23
     <System.Diagnostics.DebuggerStepThrough()> _
23
     <System.Diagnostics.DebuggerStepThrough()> _
24
     Private Sub InitializeComponent()
24
     Private Sub InitializeComponent()
25
-        Dim DataGridViewCellStyle1 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
25
+        Dim DataGridViewCellStyle2 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26
         Me.DataGridView1 = New System.Windows.Forms.DataGridView()
26
         Me.DataGridView1 = New System.Windows.Forms.DataGridView()
27
         Me.Button1 = New System.Windows.Forms.Button()
27
         Me.Button1 = New System.Windows.Forms.Button()
28
         Me.Button11 = New System.Windows.Forms.Button()
28
         Me.Button11 = New System.Windows.Forms.Button()
39
         Me.DataGridView1.Location = New System.Drawing.Point(12, 111)
39
         Me.DataGridView1.Location = New System.Drawing.Point(12, 111)
40
         Me.DataGridView1.Name = "DataGridView1"
40
         Me.DataGridView1.Name = "DataGridView1"
41
         Me.DataGridView1.RowHeadersWidth = 5
41
         Me.DataGridView1.RowHeadersWidth = 5
42
-        DataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
43
-        Me.DataGridView1.RowsDefaultCellStyle = DataGridViewCellStyle1
42
+        DataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
43
+        Me.DataGridView1.RowsDefaultCellStyle = DataGridViewCellStyle2
44
         Me.DataGridView1.RowTemplate.Height = 24
44
         Me.DataGridView1.RowTemplate.Height = 24
45
         Me.DataGridView1.Size = New System.Drawing.Size(570, 237)
45
         Me.DataGridView1.Size = New System.Drawing.Size(570, 237)
46
         Me.DataGridView1.TabIndex = 1155
46
         Me.DataGridView1.TabIndex = 1155

+ 12
- 6
MaoOrange-Hongji/資料庫系統管理/列印_產品標籤介面.vb Vedi File

58
                     xlSheet.Cells(4 + N1, 1) = "系統料號 : " : xlSheet.Cells(4 + N1, 2) = DataGridView1.Rows(I).Cells("料號").Value : xlSheet.Cells(4 + N1, 3) = TextBox1.Text
58
                     xlSheet.Cells(4 + N1, 1) = "系統料號 : " : xlSheet.Cells(4 + N1, 2) = DataGridView1.Rows(I).Cells("料號").Value : xlSheet.Cells(4 + N1, 3) = TextBox1.Text
59
                     xlSheet.Cells(5 + N1, 1) = "產品頁碼 : " : xlSheet.Cells(5 + N1, 2) = DataGridView1.Rows(I).Cells("頁碼").Value
59
                     xlSheet.Cells(5 + N1, 1) = "產品頁碼 : " : xlSheet.Cells(5 + N1, 2) = DataGridView1.Rows(I).Cells("頁碼").Value
60
                     xlSheet.Cells(6 + N1, 1) = "產品名稱 : " : xlSheet.Cells(6 + N1, 2) = DataGridView1.Rows(I).Cells("品名").Value
60
                     xlSheet.Cells(6 + N1, 1) = "產品名稱 : " : xlSheet.Cells(6 + N1, 2) = DataGridView1.Rows(I).Cells("品名").Value
61
-                    xlSheet.Cells(7 + N1, 1) = "產品件數 : 共 (                    )"
61
+                    xlSheet.Cells(7 + N1, 1) = "產品件數 : 共 (                              )"
62
                     BB(xlApp, xlSheet)
62
                     BB(xlApp, xlSheet)
63
                     N1 += 8
63
                     N1 += 8
64
                 Next
64
                 Next
65
             Else
65
             Else
66
                 xlSheet.Cells(1, 1) = MAOJI_ERP_SYS.ComboBox2.Text : xlSheet.Cells(2, 1) = PA1
66
                 xlSheet.Cells(1, 1) = MAOJI_ERP_SYS.ComboBox2.Text : xlSheet.Cells(2, 1) = PA1
67
-                xlSheet.Cells(3, 1) = "系統單號 : " : xlSheet.Cells(3, 2) = DataGridView1.Rows(I).Cells("項次").Value : xlSheet.Cells(6, 3) = "單據數量"
68
-                xlSheet.Cells(4, 1) = "系統料號 : " : xlSheet.Cells(4, 2) = DataGridView1.Rows(I).Cells("項次").Value : xlSheet.Cells(4, 3) = TextBox1.Text
69
-                xlSheet.Cells(5, 1) = "產品頁碼 : " : xlSheet.Cells(5, 2) = DataGridView1.Rows(I).Cells("項次").Value
70
-                xlSheet.Cells(6, 1) = "產品名稱 : " : xlSheet.Cells(6, 2) = DataGridView1.Rows(I).Cells("項次").Value
71
-                xlSheet.Cells(7, 1) = "產品件數 : 共 (                    )"
67
+                xlSheet.Cells(3, 1) = "系統單號 : " : xlSheet.Cells(3, 2) = DataGridView1.Rows(I).Cells("單據編號").Value : xlSheet.Cells(3, 3) = "單據數量"
68
+                xlSheet.Cells(4, 1) = "系統料號 : " : xlSheet.Cells(4, 2) = DataGridView1.Rows(I).Cells("料號").Value : xlSheet.Cells(4, 3) = TextBox1.Text
69
+                xlSheet.Cells(5, 1) = "產品頁碼 : " : xlSheet.Cells(5, 2) = DataGridView1.Rows(I).Cells("頁碼").Value
70
+                xlSheet.Cells(6, 1) = "產品名稱 : " : xlSheet.Cells(6, 2) = DataGridView1.Rows(I).Cells("品名").Value
71
+                xlSheet.Cells(7, 1) = "產品件數 : 共 (                              )"
72
                 BB(xlApp, xlSheet)
72
                 BB(xlApp, xlSheet)
73
             End If
73
             End If
74
             CC(xlApp, xlSheet)
74
             CC(xlApp, xlSheet)
167
         End With
167
         End With
168
         myExcel.Application.PrintCommunication = True
168
         myExcel.Application.PrintCommunication = True
169
     End Sub
169
     End Sub
170
+    Private Sub CheckBox1_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox1.Click
171
+        CheckBox1.Checked = True : CheckBox2.Checked = False
172
+    End Sub
173
+    Private Sub CheckBox2_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox2.Click
174
+        CheckBox1.Checked = False : CheckBox2.Checked = True
175
+    End Sub
170
 End Class
176
 End Class

+ 219
- 0
MaoOrange-Hongji/資料庫系統管理/系統通用變數管理.Designer.vb Vedi File

1
+<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
2
+Partial Class 系統通用變數管理
3
+    Inherits System.Windows.Forms.Form
4
+
5
+    'Form 覆寫 Dispose 以清除元件清單。
6
+    <System.Diagnostics.DebuggerNonUserCode()> _
7
+    Protected Overrides Sub Dispose(ByVal disposing As Boolean)
8
+        Try
9
+            If disposing AndAlso components IsNot Nothing Then
10
+                components.Dispose()
11
+            End If
12
+        Finally
13
+            MyBase.Dispose(disposing)
14
+        End Try
15
+    End Sub
16
+
17
+    '為 Windows Form 設計工具的必要項
18
+    Private components As System.ComponentModel.IContainer
19
+
20
+    '注意: 以下為 Windows Form 設計工具所需的程序
21
+    '可以使用 Windows Form 設計工具進行修改。
22
+    '請勿使用程式碼編輯器進行修改。
23
+    <System.Diagnostics.DebuggerStepThrough()> _
24
+    Private Sub InitializeComponent()
25
+        Dim DataGridViewCellStyle1 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26
+        Me.Label3 = New System.Windows.Forms.Label()
27
+        Me.GroupBox1 = New System.Windows.Forms.GroupBox()
28
+        Me.TextBox4 = New System.Windows.Forms.TextBox()
29
+        Me.Label5 = New System.Windows.Forms.Label()
30
+        Me.TextBox3 = New System.Windows.Forms.TextBox()
31
+        Me.Label4 = New System.Windows.Forms.Label()
32
+        Me.TextBox2 = New System.Windows.Forms.TextBox()
33
+        Me.Label2 = New System.Windows.Forms.Label()
34
+        Me.TextBox1 = New System.Windows.Forms.TextBox()
35
+        Me.Label1 = New System.Windows.Forms.Label()
36
+        Me.Button1 = New System.Windows.Forms.Button()
37
+        Me.Button2 = New System.Windows.Forms.Button()
38
+        Me.Button3 = New System.Windows.Forms.Button()
39
+        Me.DataGridView1 = New System.Windows.Forms.DataGridView()
40
+        Me.GroupBox1.SuspendLayout()
41
+        CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).BeginInit()
42
+        Me.SuspendLayout()
43
+        '
44
+        'Label3
45
+        '
46
+        Me.Label3.AutoSize = True
47
+        Me.Label3.Font = New System.Drawing.Font("微軟正黑體", 15.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
48
+        Me.Label3.ForeColor = System.Drawing.Color.Red
49
+        Me.Label3.Location = New System.Drawing.Point(3, -1)
50
+        Me.Label3.Name = "Label3"
51
+        Me.Label3.Size = New System.Drawing.Size(766, 27)
52
+        Me.Label3.TabIndex = 242
53
+        Me.Label3.Text = "*  編碼原則對於系統非常重要,如有更動需求請與系統開發商進行討論後再行修改"
54
+        '
55
+        'GroupBox1
56
+        '
57
+        Me.GroupBox1.Controls.Add(Me.TextBox4)
58
+        Me.GroupBox1.Controls.Add(Me.Label5)
59
+        Me.GroupBox1.Controls.Add(Me.TextBox3)
60
+        Me.GroupBox1.Controls.Add(Me.Label4)
61
+        Me.GroupBox1.Controls.Add(Me.TextBox2)
62
+        Me.GroupBox1.Controls.Add(Me.Label2)
63
+        Me.GroupBox1.Controls.Add(Me.TextBox1)
64
+        Me.GroupBox1.Controls.Add(Me.Label1)
65
+        Me.GroupBox1.Controls.Add(Me.Button1)
66
+        Me.GroupBox1.Controls.Add(Me.Button2)
67
+        Me.GroupBox1.Controls.Add(Me.Button3)
68
+        Me.GroupBox1.Controls.Add(Me.DataGridView1)
69
+        Me.GroupBox1.Location = New System.Drawing.Point(8, 29)
70
+        Me.GroupBox1.Name = "GroupBox1"
71
+        Me.GroupBox1.Size = New System.Drawing.Size(761, 467)
72
+        Me.GroupBox1.TabIndex = 253
73
+        Me.GroupBox1.TabStop = False
74
+        Me.GroupBox1.Text = "付款方式"
75
+        '
76
+        'TextBox4
77
+        '
78
+        Me.TextBox4.Location = New System.Drawing.Point(54, 67)
79
+        Me.TextBox4.Name = "TextBox4"
80
+        Me.TextBox4.Size = New System.Drawing.Size(398, 23)
81
+        Me.TextBox4.TabIndex = 681
82
+        '
83
+        'Label5
84
+        '
85
+        Me.Label5.AutoSize = True
86
+        Me.Label5.Location = New System.Drawing.Point(9, 70)
87
+        Me.Label5.Name = "Label5"
88
+        Me.Label5.Size = New System.Drawing.Size(44, 16)
89
+        Me.Label5.TabIndex = 680
90
+        Me.Label5.Text = "預設值"
91
+        '
92
+        'TextBox3
93
+        '
94
+        Me.TextBox3.Location = New System.Drawing.Point(54, 42)
95
+        Me.TextBox3.Name = "TextBox3"
96
+        Me.TextBox3.Size = New System.Drawing.Size(398, 23)
97
+        Me.TextBox3.TabIndex = 679
98
+        '
99
+        'Label4
100
+        '
101
+        Me.Label4.AutoSize = True
102
+        Me.Label4.Location = New System.Drawing.Point(9, 45)
103
+        Me.Label4.Name = "Label4"
104
+        Me.Label4.Size = New System.Drawing.Size(32, 16)
105
+        Me.Label4.TabIndex = 678
106
+        Me.Label4.Text = "說明"
107
+        '
108
+        'TextBox2
109
+        '
110
+        Me.TextBox2.Location = New System.Drawing.Point(281, 17)
111
+        Me.TextBox2.Name = "TextBox2"
112
+        Me.TextBox2.Size = New System.Drawing.Size(171, 23)
113
+        Me.TextBox2.TabIndex = 677
114
+        '
115
+        'Label2
116
+        '
117
+        Me.Label2.AutoSize = True
118
+        Me.Label2.Location = New System.Drawing.Point(225, 21)
119
+        Me.Label2.Name = "Label2"
120
+        Me.Label2.Size = New System.Drawing.Size(56, 16)
121
+        Me.Label2.TabIndex = 676
122
+        Me.Label2.Text = "運用介面"
123
+        '
124
+        'TextBox1
125
+        '
126
+        Me.TextBox1.Location = New System.Drawing.Point(54, 17)
127
+        Me.TextBox1.Name = "TextBox1"
128
+        Me.TextBox1.Size = New System.Drawing.Size(165, 23)
129
+        Me.TextBox1.TabIndex = 675
130
+        '
131
+        'Label1
132
+        '
133
+        Me.Label1.AutoSize = True
134
+        Me.Label1.Location = New System.Drawing.Point(9, 20)
135
+        Me.Label1.Name = "Label1"
136
+        Me.Label1.Size = New System.Drawing.Size(44, 16)
137
+        Me.Label1.TabIndex = 674
138
+        Me.Label1.Text = "流水號"
139
+        '
140
+        'Button1
141
+        '
142
+        Me.Button1.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
143
+        Me.Button1.ForeColor = System.Drawing.Color.Red
144
+        Me.Button1.Location = New System.Drawing.Point(660, 16)
145
+        Me.Button1.Name = "Button1"
146
+        Me.Button1.Size = New System.Drawing.Size(95, 74)
147
+        Me.Button1.TabIndex = 673
148
+        Me.Button1.Text = "刪除"
149
+        Me.Button1.UseVisualStyleBackColor = True
150
+        '
151
+        'Button2
152
+        '
153
+        Me.Button2.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
154
+        Me.Button2.ForeColor = System.Drawing.Color.Blue
155
+        Me.Button2.Location = New System.Drawing.Point(458, 16)
156
+        Me.Button2.Name = "Button2"
157
+        Me.Button2.Size = New System.Drawing.Size(95, 74)
158
+        Me.Button2.TabIndex = 671
159
+        Me.Button2.Text = "新增"
160
+        Me.Button2.UseVisualStyleBackColor = True
161
+        '
162
+        'Button3
163
+        '
164
+        Me.Button3.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
165
+        Me.Button3.ForeColor = System.Drawing.Color.DarkGreen
166
+        Me.Button3.Location = New System.Drawing.Point(559, 16)
167
+        Me.Button3.Name = "Button3"
168
+        Me.Button3.Size = New System.Drawing.Size(95, 74)
169
+        Me.Button3.TabIndex = 672
170
+        Me.Button3.Text = "修改"
171
+        Me.Button3.UseVisualStyleBackColor = True
172
+        '
173
+        'DataGridView1
174
+        '
175
+        DataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer))
176
+        Me.DataGridView1.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle1
177
+        Me.DataGridView1.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
178
+        Me.DataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
179
+        Me.DataGridView1.Location = New System.Drawing.Point(6, 93)
180
+        Me.DataGridView1.Name = "DataGridView1"
181
+        Me.DataGridView1.RowHeadersWidth = 5
182
+        Me.DataGridView1.RowTemplate.Height = 24
183
+        Me.DataGridView1.Size = New System.Drawing.Size(749, 365)
184
+        Me.DataGridView1.TabIndex = 663
185
+        '
186
+        '系統通用變數管理
187
+        '
188
+        Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
189
+        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
190
+        Me.ClientSize = New System.Drawing.Size(1914, 971)
191
+        Me.Controls.Add(Me.GroupBox1)
192
+        Me.Controls.Add(Me.Label3)
193
+        Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
194
+        Me.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
195
+        Me.Name = "系統通用變數管理"
196
+        Me.Text = "系統通用變數管理"
197
+        Me.GroupBox1.ResumeLayout(False)
198
+        Me.GroupBox1.PerformLayout()
199
+        CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).EndInit()
200
+        Me.ResumeLayout(False)
201
+        Me.PerformLayout()
202
+
203
+    End Sub
204
+
205
+    Friend WithEvents Label3 As Label
206
+    Friend WithEvents GroupBox1 As GroupBox
207
+    Friend WithEvents TextBox4 As TextBox
208
+    Friend WithEvents Label5 As Label
209
+    Friend WithEvents TextBox3 As TextBox
210
+    Friend WithEvents Label4 As Label
211
+    Friend WithEvents TextBox2 As TextBox
212
+    Friend WithEvents Label2 As Label
213
+    Friend WithEvents TextBox1 As TextBox
214
+    Friend WithEvents Label1 As Label
215
+    Friend WithEvents Button1 As Button
216
+    Friend WithEvents Button2 As Button
217
+    Friend WithEvents Button3 As Button
218
+    Friend WithEvents DataGridView1 As DataGridView
219
+End Class

+ 120
- 0
MaoOrange-Hongji/資料庫系統管理/系統通用變數管理.resx Vedi File

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>

+ 64
- 0
MaoOrange-Hongji/資料庫系統管理/系統通用變數管理.vb Vedi File

1
+Option Strict Off
2
+Public Class 系統通用變數管理
3
+    ReadOnly ds As New DataSet
4
+    Dim EDR As Integer = 0 : Dim ESTR As String
5
+    Private Sub Set_通用預設值一()
6
+        DataGridView1.DataSource = Nothing : ds.Clear() : DataGridView1.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
7
+        DataGridView1.ColumnHeadersHeight = 25 : DataGridView1.AllowUserToAddRows = False
8
+        SQL_通用預設值管理清單一()
9
+        da.Fill(ds) : DataGridView1.DataSource = ds.Tables(0) : conn.Close()
10
+        DataGridView1.Columns(0).FillWeight = 60 : DataGridView1.Columns(1).FillWeight = 100 : DataGridView1.Columns(2).FillWeight = 300 : DataGridView1.Columns(3).FillWeight = 100
11
+    End Sub
12
+    Private Sub 系統通用變數管理_Load(sender As Object, e As EventArgs) Handles MyBase.Load
13
+        Me.MdiParent = MAOJI_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
14
+        Set_通用預設值一()
15
+    End Sub
16
+    Private Sub DataGridView1_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles DataGridView1.CellClick
17
+        If e.RowIndex = -1 Then : Else
18
+            TextBox1.Text = DataGridView1(0, e.RowIndex).Value.ToString : TextBox2.Text = DataGridView1(1, e.RowIndex).Value.ToString
19
+            TextBox3.Text = DataGridView1(2, e.RowIndex).Value.ToString : TextBox4.Text = DataGridView1(3, e.RowIndex).Value.ToString
20
+        End If
21
+    End Sub
22
+    Private Sub SET_新增按鈕程式共用2()
23
+        CmdSet_For_dr() : Dim unused = MsgBox("新增完成") : conn.Close() : dr.Close()
24
+    End Sub
25
+    Private Sub SET_修改按鈕程式共用1()
26
+        CmdSet_For_dr() : Dim unused = MsgBox("修改完成") : conn.Close()
27
+    End Sub
28
+    Private Sub SET_刪除按鈕程式共用1()
29
+        Dim aa As MsgBoxResult = MsgBox("確定要刪除該筆資料?", MsgBoxStyle.OkCancel)
30
+        If aa = MsgBoxResult.Ok Then : ConnOpen() : CmdSet_For_dr() : MsgBox("刪除完成") : End If : conn.Close() : 式共用1()
31
+    End Sub
32
+    Private Sub 式共用1()
33
+        Set_通用預設值一() : PA = ""
34
+    End Sub
35
+    Private Sub 式共用2()
36
+        dr.Close() : ConnOpen()
37
+    End Sub
38
+    Private Sub 式共用3()
39
+        ConnOpen()
40
+    End Sub
41
+    '------------------------------------------------------------------------------------------------------------------------------------
42
+    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
43
+        If TextBox2.Text = "" Or TextBox3.Text = "" Or TextBox4.Text = "" Then : MsgBox("資料缺失,不可有空白")
44
+        Else
45
+            '----------------------自动生成流水号-------------------------------------------------------------------------
46
+            SQL_系統通用變數管理流水號查詢()
47
+            If dr.Read() Then : EDR = Double.Parse(Strings.Right(dr("流水號").ToString, 3)) : Else : EDR = 0 : End If : conn.Close() : EDR += 1
48
+            If EDR < 10 Then : ESTR = "DV" & "00" & EDR
49
+            ElseIf EDR > 9 And EDR < 100 Then : ESTR = "DV" & "0" & EDR
50
+            ElseIf EDR > 99 Then : ESTR = "DV" & EDR : End If : PA1 = ESTR : PA2 = TextBox2.Text : PA3 = TextBox3.Text : PA4 = TextBox4.Text
51
+            式共用2() : SQL_系統通用變數管理新增() : SET_新增按鈕程式共用2()
52
+        End If : 式共用1()
53
+    End Sub
54
+    Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
55
+        If TextBox1.Text = "" Or TextBox3.Text = "" Or TextBox2.Text = "" Or TextBox4.Text = "" Then : MsgBox("資料有缺或有誤,請重新檢查")
56
+        Else
57
+            PA1 = TextBox1.Text : PA2 = TextBox2.Text : PA3 = TextBox3.Text : PA4 = TextBox4.Text
58
+            式共用3() : SQL_系統通用變數管理修改() : SET_修改按鈕程式共用1()
59
+        End If : 式共用1()
60
+    End Sub
61
+    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
62
+        PA1 = TextBox1.Text : SQL_系統通用變數管理刪除() : SET_刪除按鈕程式共用1()
63
+    End Sub
64
+End Class

Loading…
Annulla
Salva