Преглед на файлове

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

Signed-off-by: B70340 <b70340@gmail.com>
B70340 преди 5 години
родител
ревизия
1d45915718
променени са 32 файла, в които са добавени 1029 реда и са изтрити 215 реда
  1. Двоични данни
      .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. Двоични данни
      MaoOrange-Hongji/bin/Debug/MAOJI-ERP-SYS.exe
  8. Двоични данни
      MaoOrange-Hongji/bin/Debug/MAOJI-ERP-SYS.pdb
  9. Двоични данни
      MaoOrange-Hongji/obj/Debug/DesignTimeResolveAssemblyReferences.cache
  10. Двоични данни
      MaoOrange-Hongji/obj/Debug/MAOJI-ERP-SYS.exe
  11. Двоични данни
      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. Двоични данни
      MaoOrange-Hongji/obj/Debug/MAOJI-ERP-SYS.vbproj.GenerateResource.cache
  15. Двоични данни
      MaoOrange-Hongji/obj/Debug/MAOJI-ERP-SYS.vbproj.ResolveComReference.cache
  16. Двоични данни
      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. Двоични данни
      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

Двоични данни
.vs/MAOJI-ERP-SYS/v16/.suo Целия файл


+ 58
- 58
MaoOrange-Hongji/MAOJI-ERP-SYS.Designer.vb Целия файл

@@ -92,11 +92,11 @@ Partial Class MAOJI_ERP_SYS
92 92
         Me.營運費用支付單一覽表ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
93 93
         Me.營運成本收支單對帳表ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
94 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 98
         Me.業務佣金計算ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
96 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 100
         Me.ToolStripSeparator3 = New System.Windows.Forms.ToolStripSeparator()
101 101
         Me.營運成本收支決算表ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
102 102
         Me.營運狀態彙總檢視表ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
@@ -226,7 +226,7 @@ Partial Class MAOJI_ERP_SYS
226 226
         '
227 227
         Me.車輛保養紀錄表ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(128, Byte), Integer), CType(CType(64, Byte), Integer), CType(CType(0, Byte), Integer))
228 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 230
         Me.車輛保養紀錄表ToolStripMenuItem.Text = "車輛保養紀錄表"
231 231
         '
232 232
         '業務系統管理ToolStripMenuItem
@@ -241,116 +241,116 @@ Partial Class MAOJI_ERP_SYS
241 241
         '
242 242
         Me.銷售控制表ToolStripMenuItem.ForeColor = System.Drawing.Color.Olive
243 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 245
         Me.銷售控制表ToolStripMenuItem.Text = "銷售控制表"
246 246
         '
247 247
         'ToolStripSeparator6
248 248
         '
249 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 252
         '訂單管理控制表ToolStripMenuItem
253 253
         '
254 254
         Me.訂單管理控制表ToolStripMenuItem.ForeColor = System.Drawing.Color.Olive
255 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 257
         Me.訂單管理控制表ToolStripMenuItem.Text = "訂單管理控制表"
258 258
         '
259 259
         '訂單採購需求申請ToolStripMenuItem
260 260
         '
261 261
         Me.訂單採購需求申請ToolStripMenuItem.ForeColor = System.Drawing.Color.Olive
262 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 264
         Me.訂單採購需求申請ToolStripMenuItem.Text = "訂單採購需求申請"
265 265
         '
266 266
         '訂單出貨控制表ToolStripMenuItem
267 267
         '
268 268
         Me.訂單出貨控制表ToolStripMenuItem.ForeColor = System.Drawing.Color.Olive
269 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 271
         Me.訂單出貨控制表ToolStripMenuItem.Text = "訂單出貨控制表"
272 272
         '
273 273
         'ToolStripSeparator11
274 274
         '
275 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 278
         '出貨單申請ToolStripMenuItem
279 279
         '
280 280
         Me.出貨單申請ToolStripMenuItem.ForeColor = System.Drawing.Color.Olive
281 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 283
         Me.出貨單申請ToolStripMenuItem.Text = "出貨單申請"
284 284
         '
285 285
         '出貨確認ToolStripMenuItem
286 286
         '
287 287
         Me.出貨確認ToolStripMenuItem.ForeColor = System.Drawing.Color.Olive
288 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 290
         Me.出貨確認ToolStripMenuItem.Text = "出貨確認-倉儲出庫"
291 291
         '
292 292
         'ToolStripSeparator14
293 293
         '
294 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 297
         '維修單申請ToolStripMenuItem
298 298
         '
299 299
         Me.維修單申請ToolStripMenuItem.ForeColor = System.Drawing.Color.Olive
300 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 302
         Me.維修單申請ToolStripMenuItem.Text = "維修單申請"
303 303
         '
304 304
         '維修單出庫確認ToolStripMenuItem
305 305
         '
306 306
         Me.維修單出庫確認ToolStripMenuItem.ForeColor = System.Drawing.Color.Olive
307 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 309
         Me.維修單出庫確認ToolStripMenuItem.Text = "維修單出庫確認"
310 310
         '
311 311
         'ToolStripSeparator5
312 312
         '
313 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 316
         '銷售退貨清單ToolStripMenuItem
317 317
         '
318 318
         Me.銷售退貨清單ToolStripMenuItem.ForeColor = System.Drawing.Color.Olive
319 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 321
         Me.銷售退貨清單ToolStripMenuItem.Text = "銷售退貨清單"
322 322
         '
323 323
         '銷售退貨申請ToolStripMenuItem
324 324
         '
325 325
         Me.銷售退貨申請ToolStripMenuItem.ForeColor = System.Drawing.Color.Olive
326 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 328
         Me.銷售退貨申請ToolStripMenuItem.Text = "銷售退貨申請"
329 329
         '
330 330
         '銷售退貨確認ToolStripMenuItem
331 331
         '
332 332
         Me.銷售退貨確認ToolStripMenuItem.ForeColor = System.Drawing.Color.Olive
333 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 335
         Me.銷售退貨確認ToolStripMenuItem.Text = "銷售退貨確認"
336 336
         '
337 337
         'ToolStripSeparator17
338 338
         '
339 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 342
         '客戶資料管理ToolStripMenuItem
343 343
         '
344 344
         Me.客戶資料管理ToolStripMenuItem.ForeColor = System.Drawing.Color.Olive
345 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 347
         Me.客戶資料管理ToolStripMenuItem.Text = "客戶資料管理"
348 348
         '
349 349
         '零售客戶記錄表ToolStripMenuItem
350 350
         '
351 351
         Me.零售客戶記錄表ToolStripMenuItem.ForeColor = System.Drawing.Color.Olive
352 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 354
         Me.零售客戶記錄表ToolStripMenuItem.Text = "零售客戶記錄表"
355 355
         '
356 356
         '生產系統管理ToolStripMenuItem
@@ -365,26 +365,26 @@ Partial Class MAOJI_ERP_SYS
365 365
         '
366 366
         Me.生產控制表ToolStripMenuItem.ForeColor = System.Drawing.Color.Teal
367 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 369
         Me.生產控制表ToolStripMenuItem.Text = "生產控制表"
370 370
         '
371 371
         'ToolStripSeparator7
372 372
         '
373 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 376
         '生產確認ToolStripMenuItem
377 377
         '
378 378
         Me.生產確認ToolStripMenuItem.ForeColor = System.Drawing.Color.Teal
379 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 381
         Me.生產確認ToolStripMenuItem.Text = "生產確認-倉儲出庫"
382 382
         '
383 383
         '生產入庫ToolStripMenuItem
384 384
         '
385 385
         Me.生產入庫ToolStripMenuItem.ForeColor = System.Drawing.Color.Teal
386 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 388
         Me.生產入庫ToolStripMenuItem.Text = "生產入庫-倉儲入庫"
389 389
         '
390 390
         '採購系統管理ToolStripMenuItem
@@ -399,64 +399,64 @@ Partial Class MAOJI_ERP_SYS
399 399
         '
400 400
         Me.採購控制表ToolStripMenuItem.ForeColor = System.Drawing.Color.Green
401 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 403
         Me.採購控制表ToolStripMenuItem.Text = "採購控制表"
404 404
         '
405 405
         'ToolStripSeparator16
406 406
         '
407 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 410
         '採購單申請ToolStripMenuItem
411 411
         '
412 412
         Me.採購單申請ToolStripMenuItem.ForeColor = System.Drawing.Color.Green
413 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 415
         Me.採購單申請ToolStripMenuItem.Text = "採購單申請"
416 416
         '
417 417
         '訂單採購需求申請ToolStripMenuItem1
418 418
         '
419 419
         Me.訂單採購需求申請ToolStripMenuItem1.ForeColor = System.Drawing.Color.Green
420 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 422
         Me.訂單採購需求申請ToolStripMenuItem1.Text = "訂單採購需求申請"
423 423
         '
424 424
         'ToolStripSeparator8
425 425
         '
426 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 429
         '採購退貨清單ToolStripMenuItem
430 430
         '
431 431
         Me.採購退貨清單ToolStripMenuItem.ForeColor = System.Drawing.Color.Green
432 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 434
         Me.採購退貨清單ToolStripMenuItem.Text = "採購退貨清單"
435 435
         '
436 436
         '採購退貨申請ToolStripMenuItem
437 437
         '
438 438
         Me.採購退貨申請ToolStripMenuItem.ForeColor = System.Drawing.Color.Green
439 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 441
         Me.採購退貨申請ToolStripMenuItem.Text = "採購退貨申請"
442 442
         '
443 443
         '採購退貨確認ToolStripMenuItem
444 444
         '
445 445
         Me.採購退貨確認ToolStripMenuItem.ForeColor = System.Drawing.Color.Green
446 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 448
         Me.採購退貨確認ToolStripMenuItem.Text = "採購退貨確認"
449 449
         '
450 450
         'ToolStripSeparator2
451 451
         '
452 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 455
         '供應商資料管理ToolStripMenuItem
456 456
         '
457 457
         Me.供應商資料管理ToolStripMenuItem.ForeColor = System.Drawing.Color.Green
458 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 460
         Me.供應商資料管理ToolStripMenuItem.Text = "供應商資料管理"
461 461
         '
462 462
         '倉儲系統管理ToolStripMenuItem
@@ -528,7 +528,7 @@ Partial Class MAOJI_ERP_SYS
528 528
         '
529 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 532
         Me.財務系統管理ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
533 533
         Me.財務系統管理ToolStripMenuItem.Name = "財務系統管理ToolStripMenuItem"
534 534
         Me.財務系統管理ToolStripMenuItem.Size = New System.Drawing.Size(91, 20)
@@ -567,6 +567,25 @@ Partial Class MAOJI_ERP_SYS
567 567
         Me.ToolStripSeparator13.Name = "ToolStripSeparator13"
568 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 589
         '業務佣金計算ToolStripMenuItem
571 590
         '
572 591
         Me.業務佣金計算ToolStripMenuItem.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
@@ -581,25 +600,6 @@ Partial Class MAOJI_ERP_SYS
581 600
         Me.司機佣金計算ToolStripMenuItem.Size = New System.Drawing.Size(199, 22)
582 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 603
         'ToolStripSeparator3
604 604
         '
605 605
         Me.ToolStripSeparator3.Name = "ToolStripSeparator3"
@@ -829,8 +829,8 @@ Partial Class MAOJI_ERP_SYS
829 829
     Friend WithEvents 維修單申請ToolStripMenuItem As ToolStripMenuItem
830 830
     Friend WithEvents 維修單出庫確認ToolStripMenuItem As ToolStripMenuItem
831 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 834
     Friend WithEvents 採購退貨申請ToolStripMenuItem As ToolStripMenuItem
835 835
     Friend WithEvents ToolStripSeparator16 As ToolStripSeparator
836 836
     Friend WithEvents 採購退貨清單ToolStripMenuItem As ToolStripMenuItem

+ 5
- 5
MaoOrange-Hongji/MAOJI-ERP-SYS.vb Целия файл

@@ -88,7 +88,7 @@ Public Class MAOJI_ERP_SYS
88 88
         PA = "" : 系統使用者管理.Show() : 系統使用者管理.BringToFront()
89 89
     End Sub
90 90
     Private Sub 系統通用變數管理ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 系統通用變數管理ToolStripMenuItem.Click
91
-
91
+        PA = "" : 系統通用變數管理.Show() : 系統通用變數管理.BringToFront()
92 92
     End Sub
93 93
     Private Sub 系統編碼規則1ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 系統編碼規則1ToolStripMenuItem.Click
94 94
         PA = "" : 系統編碼規則_1.Show() : 系統編碼規則_1.BringToFront()
@@ -229,10 +229,10 @@ Public Class MAOJI_ERP_SYS
229 229
     Private Sub 銷售退貨確認ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 銷售退貨確認ToolStripMenuItem.Click
230 230
         PA = "" : 銷售退貨確認.Show() : 銷售退貨確認.BringToFront()
231 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 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 237
     End Sub
238 238
 End Class

+ 19
- 10
MaoOrange-Hongji/MAOJI-ERP-SYS.vbproj Целия файл

@@ -127,16 +127,22 @@
127 127
     <Compile Include="倉儲系統管理\倉儲入庫驗收.vb">
128 128
       <SubType>Form</SubType>
129 129
     </Compile>
130
-    <Compile Include="財務系統管理\應付賬款.Designer.vb">
131
-      <DependentUpon>應付賬款.vb</DependentUpon>
130
+    <Compile Include="資料庫系統管理\系統通用變數管理.Designer.vb">
131
+      <DependentUpon>系統通用變數管理.vb</DependentUpon>
132 132
     </Compile>
133
-    <Compile Include="財務系統管理\應付賬款.vb">
133
+    <Compile Include="資料庫系統管理\系統通用變數管理.vb">
134 134
       <SubType>Form</SubType>
135 135
     </Compile>
136
-    <Compile Include="財務系統管理\應收帳款.Designer.vb">
137
-      <DependentUpon>應收帳款.vb</DependentUpon>
136
+    <Compile Include="財務系統管理\應付賬款控制表.Designer.vb">
137
+      <DependentUpon>應付賬款控制表.vb</DependentUpon>
138 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 146
       <SubType>Form</SubType>
141 147
     </Compile>
142 148
     <Compile Include="資料庫系統管理\列印_產品標籤介面.Designer.vb">
@@ -451,11 +457,14 @@
451 457
     <EmbeddedResource Include="倉儲系統管理\倉儲入庫驗收.resx">
452 458
       <DependentUpon>倉儲入庫驗收.vb</DependentUpon>
453 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 465
     </EmbeddedResource>
457
-    <EmbeddedResource Include="財務系統管理\應收帳款.resx">
458
-      <DependentUpon>應收帳款.vb</DependentUpon>
466
+    <EmbeddedResource Include="財務系統管理\應收帳款控制表.resx">
467
+      <DependentUpon>應收帳款控制表.vb</DependentUpon>
459 468
     </EmbeddedResource>
460 469
     <EmbeddedResource Include="資料庫系統管理\列印_產品標籤介面.resx">
461 470
       <DependentUpon>列印_產品標籤介面.vb</DependentUpon>

+ 1
- 1
MaoOrange-Hongji/Module1/Module1.vb Целия файл

@@ -7,7 +7,7 @@
7 7
     Public 版本 As String = "2020052601"
8 8
     '----系統用全域變數-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
9 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 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 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 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 Целия файл

@@ -140,6 +140,9 @@ Module SQL_Module
140 140
     Friend Sub SQL_出貨單申請_零售客戶記錄表流水號最後一筆()
141 141
         ConnOpen() : SQL1 = "SELECT TOP (1) 零售流水號 FROM 零售客戶記錄表 ORDER BY 零售流水號 DESC" : CmdSet_For_dr()
142 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 148
     '---------------------LoginForm1-----------------------------------------------------------------------------------------------------------------
@@ -157,7 +160,7 @@ Module SQL_Module
157 160
     End Sub
158 161
     '---------------------MAOJI_ERP_SYS-----------------------------------------------------------------------------------------------------------------
159 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 164
     End Sub
162 165
     '---------------------車輛保養紀錄表-----------------------------------------------------------------------------------------------------------------
163 166
     Friend Sub SQL_車輛保養紀錄表()
@@ -830,7 +833,8 @@ Module SQL_Module
830 833
     '---------------------營運成本收支_決算表-----------------------------------------------------------------------------------------------------------------
831 834
     Friend Sub SQL_營運成本收支_決算表年清單()
832 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 838
                 FROM        會計科目 FULL OUTER JOIN
835 839
                                (SELECT 營運成本明細表_3.會計科目 AS 細項, SUM(營運成本明細表_3.零用金) + SUM(營運成本明細表_3.支票數) + SUM(營運成本明細表_3.收款) - 
836 840
                                        SUM(營運成本明細表_3.金額) AS 細項金額
@@ -859,7 +863,7 @@ Module SQL_Module
859 863
     Friend Sub SQL_營運成本收支_決算表月清單()
860 864
         ConnOpen()
861 865
         SQL1 = "SELECT      會計科目.層級, 會計科目.第一階, 會計科目.第二階, 會計科目.第一階 AS 主項, 會計科目.第二階 AS 子項, 會計科目.會計科目 AS 子細項, QQWW.主項金額, WWEE.子項金額, EERR.細項金額, 
862
-                            EERR.細項金額 AS [金額]
866
+                            EERR.細項金額 AS [金額], 會計科目.抵銷科目 AS 抵銷, EERR.細項金額 AS [彙總]
863 867
                 FROM        會計科目 FULL OUTER JOIN
864 868
                                (SELECT 營運成本明細表_3.會計科目 AS 細項, SUM(營運成本明細表_3.零用金) + SUM(營運成本明細表_3.支票數) + SUM(營運成本明細表_3.收款) - 
865 869
                                        SUM(營運成本明細表_3.金額) AS 細項金額
@@ -892,7 +896,10 @@ Module SQL_Module
892 896
         ConnOpen() : SQL1 = "UPDATE 財務決算表合計預設 SET  名稱 = N'" & PA1 & "', 年度合計 = N'" & 布林1 & "' WHERE (項次 LIKE '" & PA2 & "')" : CmdSet_For_dr()
893 897
     End Sub
894 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 903
     End Sub
897 904
     '---------------------營運成本收支單_對帳表-----------------------------------------------------------------------------------------------------------------
898 905
     Friend Sub SQL_營運成本收支_決算表_清單()
@@ -2068,12 +2075,12 @@ Module SQL_Module
2068 2075
     End Sub
2069 2076
     '---------------------應付賬款-----------------------------------------------------------------------------------------------------------------
2070 2077
     Friend Sub SQL_應付賬款清單()
2071
-        If 應付賬款.CheckBox3.Checked = False Then
2078
+        If 應付賬款控制表.CheckBox3.Checked = False Then
2072 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 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 2084
                             (倉儲明細表.應付立帳 IS NULL OR 倉儲明細表.應付立帳 = 0)"
2078 2085
         End If
2079 2086
         ConnOpen()
@@ -2091,4 +2098,20 @@ Module SQL_Module
2091 2098
     Friend Sub SQL_應付賬款_倉儲明細應付立帳修改()
2092 2099
         ConnOpen() : SQL1 = "UPDATE 倉儲明細表 SET 應付立帳 = 1 WHERE 資料流水號 LIKE '" & PA6 & "'" : CmdSet_For_dr()
2093 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 2117
 End Module

Двоични данни
MaoOrange-Hongji/bin/Debug/MAOJI-ERP-SYS.exe Целия файл


Двоични данни
MaoOrange-Hongji/bin/Debug/MAOJI-ERP-SYS.pdb Целия файл


Двоични данни
MaoOrange-Hongji/obj/Debug/DesignTimeResolveAssemblyReferences.cache Целия файл


Двоични данни
MaoOrange-Hongji/obj/Debug/MAOJI-ERP-SYS.exe Целия файл


Двоични данни
MaoOrange-Hongji/obj/Debug/MAOJI-ERP-SYS.pdb Целия файл


+ 1
- 1
MaoOrange-Hongji/obj/Debug/MAOJI-ERP-SYS.vbproj.CoreCompileInputs.cache Целия файл

@@ -1 +1 @@
1
-84a65d51099e001819ad25f73750d6cf42c2d237
1
+00cd1c6306df0c5d8944e0bca02266ab61e77410

+ 3
- 2
MaoOrange-Hongji/obj/Debug/MAOJI-ERP-SYS.vbproj.FileListAbsolute.txt Целия файл

@@ -194,5 +194,6 @@ G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.銷售退貨申請.
194 194
 G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.銷售退貨清單.resources
195 195
 G:\MAOJI-ERP-SYS\MaoOrange-Hongji\obj\Debug\MaoOrange_Hongji.銷售退貨確認.resources
196 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

Двоични данни
MaoOrange-Hongji/obj/Debug/MAOJI-ERP-SYS.vbproj.GenerateResource.cache Целия файл


Двоични данни
MaoOrange-Hongji/obj/Debug/MAOJI-ERP-SYS.vbproj.ResolveComReference.cache Целия файл


Двоични данни
MaoOrange-Hongji/obj/Debug/MAOJI-ERP-SYS.vbprojAssemblyReference.cache Целия файл


MaoOrange-Hongji/obj/Debug/MaoOrange_Hongji.應付賬款.resources → MaoOrange-Hongji/obj/Debug/MaoOrange_Hongji.應付賬款控制表.resources Целия файл


MaoOrange-Hongji/obj/Debug/MaoOrange_Hongji.應收帳款.resources → MaoOrange-Hongji/obj/Debug/MaoOrange_Hongji.應收帳款控制表.resources Целия файл


Двоични данни
MaoOrange-Hongji/obj/Debug/MaoOrange_Hongji.系統通用變數管理.resources Целия файл


MaoOrange-Hongji/財務系統管理/應付賬款.Designer.vb → MaoOrange-Hongji/財務系統管理/應付賬款控制表.Designer.vb Целия файл

@@ -1,5 +1,5 @@
1 1
 <Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
2
-Partial Class 應付賬款
2
+Partial Class 應付賬款控制表
3 3
     Inherits System.Windows.Forms.Form
4 4
 
5 5
     'Form 覆寫 Dispose 以清除元件清單。
@@ -22,8 +22,8 @@ Partial Class 應付賬款
22 22
     '請勿使用程式碼編輯器進行修改。
23 23
     <System.Diagnostics.DebuggerStepThrough()> _
24 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 27
         Me.Button1 = New System.Windows.Forms.Button()
28 28
         Me.一般月 = New System.Windows.Forms.CheckBox()
29 29
         Me.會計月 = New System.Windows.Forms.CheckBox()
@@ -139,8 +139,8 @@ Partial Class 應付賬款
139 139
         '
140 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 144
         Me.DataGridView1.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
145 145
             Or System.Windows.Forms.AnchorStyles.Left) _
146 146
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
@@ -150,8 +150,8 @@ Partial Class 應付賬款
150 150
         Me.DataGridView1.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
151 151
         Me.DataGridView1.Name = "DataGridView1"
152 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 155
         Me.DataGridView1.RowTemplate.Height = 24
156 156
         Me.DataGridView1.Size = New System.Drawing.Size(1225, 518)
157 157
         Me.DataGridView1.TabIndex = 1108
@@ -453,7 +453,7 @@ Partial Class 應付賬款
453 453
         Me.TextBox5.Size = New System.Drawing.Size(190, 23)
454 454
         Me.TextBox5.TabIndex = 1165
455 455
         '
456
-        '應付賬款
456
+        '應付賬款控制表
457 457
         '
458 458
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
459 459
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
@@ -498,8 +498,8 @@ Partial Class 應付賬款
498 498
         Me.Controls.Add(Me.DataGridView1)
499 499
         Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
500 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 503
         CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).EndInit()
504 504
         CType(Me.NumericUpDown1, System.ComponentModel.ISupportInitialize).EndInit()
505 505
         CType(Me.NumericUpDown2, System.ComponentModel.ISupportInitialize).EndInit()

MaoOrange-Hongji/財務系統管理/應付賬款.resx → MaoOrange-Hongji/財務系統管理/應付賬款控制表.resx Целия файл


MaoOrange-Hongji/財務系統管理/應付賬款.vb → MaoOrange-Hongji/財務系統管理/應付賬款控制表.vb Целия файл

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

MaoOrange-Hongji/財務系統管理/應收帳款.Designer.vb → MaoOrange-Hongji/財務系統管理/應收帳款控制表.Designer.vb Целия файл

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

MaoOrange-Hongji/財務系統管理/應收帳款.resx → MaoOrange-Hongji/財務系統管理/應收帳款控制表.resx Целия файл


MaoOrange-Hongji/財務系統管理/應收帳款.vb → MaoOrange-Hongji/財務系統管理/應收帳款控制表.vb Целия файл

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

+ 185
- 81
MaoOrange-Hongji/財務系統管理/營運成本收支_決算表.Designer.vb Целия файл

@@ -23,20 +23,20 @@ Partial Class 營運成本收支_決算表
23 23
     <System.Diagnostics.DebuggerStepThrough()> _
24 24
     Private Sub InitializeComponent()
25 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 40
         Me.ContextMenuStrip1 = New System.Windows.Forms.ContextMenuStrip(Me.components)
41 41
         Me.重新整理ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem()
42 42
         Me.Button2 = New System.Windows.Forms.Button()
@@ -197,6 +197,14 @@ Partial Class 營運成本收支_決算表
197 197
         Me.CheckBox7 = New System.Windows.Forms.CheckBox()
198 198
         Me.DataGridView14 = New System.Windows.Forms.DataGridView()
199 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 208
         Me.ContextMenuStrip1.SuspendLayout()
201 209
         CType(Me.DataGridView13, System.ComponentModel.ISupportInitialize).BeginInit()
202 210
         CType(Me.DataGridView12, System.ComponentModel.ISupportInitialize).BeginInit()
@@ -386,9 +394,9 @@ Partial Class 營運成本收支_決算表
386 394
         Me.DataGridView13.Location = New System.Drawing.Point(1780, 27)
387 395
         Me.DataGridView13.Name = "DataGridView13"
388 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 400
         Me.DataGridView13.RowTemplate.Height = 24
393 401
         Me.DataGridView13.ScrollBars = System.Windows.Forms.ScrollBars.None
394 402
         Me.DataGridView13.Size = New System.Drawing.Size(116, 740)
@@ -403,9 +411,9 @@ Partial Class 營運成本收支_決算表
403 411
         Me.DataGridView12.Location = New System.Drawing.Point(1662, 27)
404 412
         Me.DataGridView12.Name = "DataGridView12"
405 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 417
         Me.DataGridView12.RowTemplate.Height = 24
410 418
         Me.DataGridView12.ScrollBars = System.Windows.Forms.ScrollBars.None
411 419
         Me.DataGridView12.Size = New System.Drawing.Size(116, 740)
@@ -420,9 +428,9 @@ Partial Class 營運成本收支_決算表
420 428
         Me.DataGridView11.Location = New System.Drawing.Point(1544, 27)
421 429
         Me.DataGridView11.Name = "DataGridView11"
422 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 434
         Me.DataGridView11.RowTemplate.Height = 24
427 435
         Me.DataGridView11.ScrollBars = System.Windows.Forms.ScrollBars.None
428 436
         Me.DataGridView11.Size = New System.Drawing.Size(116, 740)
@@ -437,9 +445,9 @@ Partial Class 營運成本收支_決算表
437 445
         Me.DataGridView10.Location = New System.Drawing.Point(1426, 27)
438 446
         Me.DataGridView10.Name = "DataGridView10"
439 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 451
         Me.DataGridView10.RowTemplate.Height = 24
444 452
         Me.DataGridView10.ScrollBars = System.Windows.Forms.ScrollBars.None
445 453
         Me.DataGridView10.Size = New System.Drawing.Size(116, 740)
@@ -454,9 +462,9 @@ Partial Class 營運成本收支_決算表
454 462
         Me.DataGridView9.Location = New System.Drawing.Point(1308, 27)
455 463
         Me.DataGridView9.Name = "DataGridView9"
456 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 468
         Me.DataGridView9.RowTemplate.Height = 24
461 469
         Me.DataGridView9.ScrollBars = System.Windows.Forms.ScrollBars.None
462 470
         Me.DataGridView9.Size = New System.Drawing.Size(116, 740)
@@ -471,9 +479,9 @@ Partial Class 營運成本收支_決算表
471 479
         Me.DataGridView8.Location = New System.Drawing.Point(1190, 27)
472 480
         Me.DataGridView8.Name = "DataGridView8"
473 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 485
         Me.DataGridView8.RowTemplate.Height = 24
478 486
         Me.DataGridView8.ScrollBars = System.Windows.Forms.ScrollBars.None
479 487
         Me.DataGridView8.Size = New System.Drawing.Size(116, 740)
@@ -488,9 +496,9 @@ Partial Class 營運成本收支_決算表
488 496
         Me.DataGridView7.Location = New System.Drawing.Point(1072, 27)
489 497
         Me.DataGridView7.Name = "DataGridView7"
490 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 502
         Me.DataGridView7.RowTemplate.Height = 24
495 503
         Me.DataGridView7.ScrollBars = System.Windows.Forms.ScrollBars.None
496 504
         Me.DataGridView7.Size = New System.Drawing.Size(116, 740)
@@ -505,9 +513,9 @@ Partial Class 營運成本收支_決算表
505 513
         Me.DataGridView6.Location = New System.Drawing.Point(954, 27)
506 514
         Me.DataGridView6.Name = "DataGridView6"
507 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 519
         Me.DataGridView6.RowTemplate.Height = 24
512 520
         Me.DataGridView6.ScrollBars = System.Windows.Forms.ScrollBars.None
513 521
         Me.DataGridView6.Size = New System.Drawing.Size(116, 740)
@@ -522,9 +530,9 @@ Partial Class 營運成本收支_決算表
522 530
         Me.DataGridView5.Location = New System.Drawing.Point(836, 27)
523 531
         Me.DataGridView5.Name = "DataGridView5"
524 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 536
         Me.DataGridView5.RowTemplate.Height = 24
529 537
         Me.DataGridView5.ScrollBars = System.Windows.Forms.ScrollBars.None
530 538
         Me.DataGridView5.Size = New System.Drawing.Size(116, 740)
@@ -539,9 +547,9 @@ Partial Class 營運成本收支_決算表
539 547
         Me.DataGridView4.Location = New System.Drawing.Point(718, 27)
540 548
         Me.DataGridView4.Name = "DataGridView4"
541 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 553
         Me.DataGridView4.RowTemplate.Height = 24
546 554
         Me.DataGridView4.ScrollBars = System.Windows.Forms.ScrollBars.None
547 555
         Me.DataGridView4.Size = New System.Drawing.Size(116, 740)
@@ -556,9 +564,9 @@ Partial Class 營運成本收支_決算表
556 564
         Me.DataGridView3.Location = New System.Drawing.Point(600, 27)
557 565
         Me.DataGridView3.Name = "DataGridView3"
558 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 570
         Me.DataGridView3.RowTemplate.Height = 24
563 571
         Me.DataGridView3.ScrollBars = System.Windows.Forms.ScrollBars.None
564 572
         Me.DataGridView3.Size = New System.Drawing.Size(116, 740)
@@ -573,9 +581,9 @@ Partial Class 營運成本收支_決算表
573 581
         Me.DataGridView1.Location = New System.Drawing.Point(482, 27)
574 582
         Me.DataGridView1.Name = "DataGridView1"
575 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 587
         Me.DataGridView1.RowTemplate.Height = 24
580 588
         Me.DataGridView1.ScrollBars = System.Windows.Forms.ScrollBars.None
581 589
         Me.DataGridView1.Size = New System.Drawing.Size(116, 740)
@@ -611,9 +619,9 @@ Partial Class 營運成本收支_決算表
611 619
         Me.DataGridView2.Location = New System.Drawing.Point(7, 27)
612 620
         Me.DataGridView2.Name = "DataGridView2"
613 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 625
         Me.DataGridView2.RowTemplate.Height = 24
618 626
         Me.DataGridView2.Size = New System.Drawing.Size(473, 740)
619 627
         Me.DataGridView2.TabIndex = 1191
@@ -623,7 +631,7 @@ Partial Class 營運成本收支_決算表
623 631
         Me.Label19.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
624 632
         Me.Label19.AutoSize = True
625 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 635
         Me.Label19.Name = "Label19"
628 636
         Me.Label19.Size = New System.Drawing.Size(91, 19)
629 637
         Me.Label19.TabIndex = 1301
@@ -633,7 +641,7 @@ Partial Class 營運成本收支_決算表
633 641
         '
634 642
         Me.TextBox64.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
635 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 645
         Me.TextBox64.Name = "TextBox64"
638 646
         Me.TextBox64.Size = New System.Drawing.Size(116, 23)
639 647
         Me.TextBox64.TabIndex = 1300
@@ -763,7 +771,7 @@ Partial Class 營運成本收支_決算表
763 771
         '
764 772
         Me.TextBox63.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
765 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 775
         Me.TextBox63.Name = "TextBox63"
768 776
         Me.TextBox63.Size = New System.Drawing.Size(116, 23)
769 777
         Me.TextBox63.TabIndex = 1287
@@ -773,7 +781,7 @@ Partial Class 營運成本收支_決算表
773 781
         '
774 782
         Me.TextBox62.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
775 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 785
         Me.TextBox62.Name = "TextBox62"
778 786
         Me.TextBox62.Size = New System.Drawing.Size(116, 23)
779 787
         Me.TextBox62.TabIndex = 1286
@@ -783,7 +791,7 @@ Partial Class 營運成本收支_決算表
783 791
         '
784 792
         Me.TextBox61.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
785 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 795
         Me.TextBox61.Name = "TextBox61"
788 796
         Me.TextBox61.Size = New System.Drawing.Size(116, 23)
789 797
         Me.TextBox61.TabIndex = 1285
@@ -1093,7 +1101,7 @@ Partial Class 營運成本收支_決算表
1093 1101
         '
1094 1102
         Me.Label18.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1095 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 1105
         Me.Label18.Name = "Label18"
1098 1106
         Me.Label18.Size = New System.Drawing.Size(27, 16)
1099 1107
         Me.Label18.TabIndex = 1254
@@ -1373,7 +1381,7 @@ Partial Class 營運成本收支_決算表
1373 1381
         '
1374 1382
         Me.Label17.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1375 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 1385
         Me.Label17.Name = "Label17"
1378 1386
         Me.Label17.Size = New System.Drawing.Size(27, 16)
1379 1387
         Me.Label17.TabIndex = 1226
@@ -1393,7 +1401,7 @@ Partial Class 營運成本收支_決算表
1393 1401
         '
1394 1402
         Me.Label16.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1395 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 1405
         Me.Label16.Name = "Label16"
1398 1406
         Me.Label16.Size = New System.Drawing.Size(27, 16)
1399 1407
         Me.Label16.TabIndex = 1224
@@ -1413,7 +1421,7 @@ Partial Class 營運成本收支_決算表
1413 1421
         '
1414 1422
         Me.Label15.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1415 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 1425
         Me.Label15.Name = "Label15"
1418 1426
         Me.Label15.Size = New System.Drawing.Size(27, 16)
1419 1427
         Me.Label15.TabIndex = 1222
@@ -1433,7 +1441,7 @@ Partial Class 營運成本收支_決算表
1433 1441
         '
1434 1442
         Me.Label14.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1435 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 1445
         Me.Label14.Name = "Label14"
1438 1446
         Me.Label14.Size = New System.Drawing.Size(27, 16)
1439 1447
         Me.Label14.TabIndex = 1220
@@ -1445,7 +1453,7 @@ Partial Class 營運成本收支_決算表
1445 1453
         Me.ComboBox2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
1446 1454
         Me.ComboBox2.FormattingEnabled = True
1447 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 1457
         Me.ComboBox2.Name = "ComboBox2"
1450 1458
         Me.ComboBox2.Size = New System.Drawing.Size(128, 24)
1451 1459
         Me.ComboBox2.TabIndex = 1302
@@ -1456,7 +1464,7 @@ Partial Class 營運成本收支_決算表
1456 1464
         Me.ComboBox3.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
1457 1465
         Me.ComboBox3.FormattingEnabled = True
1458 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 1468
         Me.ComboBox3.Name = "ComboBox3"
1461 1469
         Me.ComboBox3.Size = New System.Drawing.Size(128, 24)
1462 1470
         Me.ComboBox3.TabIndex = 1303
@@ -1467,7 +1475,7 @@ Partial Class 營運成本收支_決算表
1467 1475
         Me.ComboBox4.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
1468 1476
         Me.ComboBox4.FormattingEnabled = True
1469 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 1479
         Me.ComboBox4.Name = "ComboBox4"
1472 1480
         Me.ComboBox4.Size = New System.Drawing.Size(128, 24)
1473 1481
         Me.ComboBox4.TabIndex = 1304
@@ -1478,7 +1486,7 @@ Partial Class 營運成本收支_決算表
1478 1486
         Me.ComboBox5.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
1479 1487
         Me.ComboBox5.FormattingEnabled = True
1480 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 1490
         Me.ComboBox5.Name = "ComboBox5"
1483 1491
         Me.ComboBox5.Size = New System.Drawing.Size(128, 24)
1484 1492
         Me.ComboBox5.TabIndex = 1305
@@ -1487,7 +1495,7 @@ Partial Class 營運成本收支_決算表
1487 1495
         '
1488 1496
         Me.TextBox77.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1489 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 1499
         Me.TextBox77.Name = "TextBox77"
1492 1500
         Me.TextBox77.Size = New System.Drawing.Size(116, 23)
1493 1501
         Me.TextBox77.TabIndex = 1306
@@ -1499,7 +1507,7 @@ Partial Class 營運成本收支_決算表
1499 1507
         Me.ComboBox6.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
1500 1508
         Me.ComboBox6.FormattingEnabled = True
1501 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 1511
         Me.ComboBox6.Name = "ComboBox6"
1504 1512
         Me.ComboBox6.Size = New System.Drawing.Size(128, 24)
1505 1513
         Me.ComboBox6.TabIndex = 1307
@@ -1508,7 +1516,7 @@ Partial Class 營運成本收支_決算表
1508 1516
         '
1509 1517
         Me.TextBox78.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1510 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 1520
         Me.TextBox78.Name = "TextBox78"
1513 1521
         Me.TextBox78.Size = New System.Drawing.Size(116, 23)
1514 1522
         Me.TextBox78.TabIndex = 1320
@@ -1638,7 +1646,7 @@ Partial Class 營運成本收支_決算表
1638 1646
         '
1639 1647
         Me.TextBox91.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1640 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 1650
         Me.TextBox91.Name = "TextBox91"
1643 1651
         Me.TextBox91.Size = New System.Drawing.Size(116, 23)
1644 1652
         Me.TextBox91.TabIndex = 1323
@@ -1650,7 +1658,7 @@ Partial Class 營運成本收支_決算表
1650 1658
         Me.ComboBox7.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
1651 1659
         Me.ComboBox7.FormattingEnabled = True
1652 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 1662
         Me.ComboBox7.Name = "ComboBox7"
1655 1663
         Me.ComboBox7.Size = New System.Drawing.Size(128, 24)
1656 1664
         Me.ComboBox7.TabIndex = 1322
@@ -1659,7 +1667,7 @@ Partial Class 營運成本收支_決算表
1659 1667
         '
1660 1668
         Me.Label20.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1661 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 1671
         Me.Label20.Name = "Label20"
1664 1672
         Me.Label20.Size = New System.Drawing.Size(27, 16)
1665 1673
         Me.Label20.TabIndex = 1321
@@ -1789,7 +1797,7 @@ Partial Class 營運成本收支_決算表
1789 1797
         '
1790 1798
         Me.TextBox104.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1791 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 1801
         Me.TextBox104.Name = "TextBox104"
1794 1802
         Me.TextBox104.Size = New System.Drawing.Size(116, 23)
1795 1803
         Me.TextBox104.TabIndex = 1338
@@ -1801,7 +1809,7 @@ Partial Class 營運成本收支_決算表
1801 1809
         Me.ComboBox8.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
1802 1810
         Me.ComboBox8.FormattingEnabled = True
1803 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 1813
         Me.ComboBox8.Name = "ComboBox8"
1806 1814
         Me.ComboBox8.Size = New System.Drawing.Size(128, 24)
1807 1815
         Me.ComboBox8.TabIndex = 1337
@@ -1810,7 +1818,7 @@ Partial Class 營運成本收支_決算表
1810 1818
         '
1811 1819
         Me.Label21.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1812 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 1822
         Me.Label21.Name = "Label21"
1815 1823
         Me.Label21.Size = New System.Drawing.Size(27, 16)
1816 1824
         Me.Label21.TabIndex = 1336
@@ -1820,7 +1828,7 @@ Partial Class 營運成本收支_決算表
1820 1828
         '
1821 1829
         Me.Label22.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1822 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 1832
         Me.Label22.Name = "Label22"
1825 1833
         Me.Label22.Size = New System.Drawing.Size(27, 16)
1826 1834
         Me.Label22.TabIndex = 1339
@@ -1910,9 +1918,9 @@ Partial Class 營運成本收支_決算表
1910 1918
         Me.DataGridView14.Location = New System.Drawing.Point(37, 583)
1911 1919
         Me.DataGridView14.Name = "DataGridView14"
1912 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 1924
         Me.DataGridView14.RowTemplate.Height = 24
1917 1925
         Me.DataGridView14.ScrollBars = System.Windows.Forms.ScrollBars.None
1918 1926
         Me.DataGridView14.Size = New System.Drawing.Size(253, 162)
@@ -1928,12 +1936,100 @@ Partial Class 營運成本收支_決算表
1928 1936
         Me.Button3.Text = "預設合計存檔"
1929 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 2021
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
1934 2022
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
1935 2023
         Me.ClientSize = New System.Drawing.Size(1914, 981)
1936 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 2033
         Me.Controls.Add(Me.Button3)
1938 2034
         Me.Controls.Add(Me.DataGridView14)
1939 2035
         Me.Controls.Add(Me.CheckBox7)
@@ -2095,7 +2191,7 @@ Partial Class 營運成本收支_決算表
2095 2191
         Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
2096 2192
         Me.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
2097 2193
         Me.Name = "營運成本收支_決算表"
2098
-        Me.Text = "營運表"
2194
+        Me.Text = "營運成本收支_決算表"
2099 2195
         Me.ContextMenuStrip1.ResumeLayout(False)
2100 2196
         CType(Me.DataGridView13, System.ComponentModel.ISupportInitialize).EndInit()
2101 2197
         CType(Me.DataGridView12, System.ComponentModel.ISupportInitialize).EndInit()
@@ -2275,4 +2371,12 @@ Partial Class 營運成本收支_決算表
2275 2371
     Friend WithEvents CheckBox7 As CheckBox
2276 2372
     Friend WithEvents DataGridView14 As DataGridView
2277 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 2382
 End Class

+ 285
- 21
MaoOrange-Hongji/財務系統管理/營運成本收支_決算表.vb Целия файл

@@ -16,6 +16,18 @@ Public Class 營運成本收支_決算表
16 16
             If DataGridView2.Rows(i).Cells("主項金額").Value.ToString = "" Then : DataGridView2.Rows(i).Cells("主項金額").Value = 0 : End If
17 17
             If DataGridView2.Rows(i).Cells("子項金額").Value.ToString = "" Then : DataGridView2.Rows(i).Cells("子項金額").Value = 0 : End If
18 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 31
             If DataGridView2.Rows(i).Cells("層級").Value.ToString <> "1" Then : DataGridView2.Rows(i).Cells("主項金額").Value = 0 : End If
20 32
             If DataGridView2.Rows(i).Cells("層級").Value.ToString <> "2" Then : DataGridView2.Rows(i).Cells("子項金額").Value = 0 : End If
21 33
             If DataGridView2.Rows(i).Cells("層級").Value.ToString <> "2" Then : DataGridView2.Rows(i).Cells("子項").Value = "" : End If
@@ -58,6 +70,10 @@ Public Class 營運成本收支_決算表
58 70
             ElseIf DataGridView1.Rows(i).Cells("子項金額").Value.ToString <> "0" Then : DataGridView1.Rows(i).Cells("金額").Value = DataGridView1.Rows(i).Cells("子項金額").Value
59 71
             ElseIf DataGridView1.Rows(i).Cells("細項金額").Value.ToString <> "0" Then : DataGridView1.Rows(i).Cells("金額").Value = DataGridView1.Rows(i).Cells("細項金額").Value
60 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 77
             If ComboBox2.Text = "" Then : Else
62 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 79
             If ComboBox3.Text = "" Then : Else
@@ -92,6 +108,10 @@ Public Class 營運成本收支_決算表
92 108
             ElseIf DataGridView3.Rows(i).Cells("子項金額").Value.ToString <> "0" Then : DataGridView3.Rows(i).Cells("金額").Value = DataGridView3.Rows(i).Cells("子項金額").Value
93 109
             ElseIf DataGridView3.Rows(i).Cells("細項金額").Value.ToString <> "0" Then : DataGridView3.Rows(i).Cells("金額").Value = DataGridView3.Rows(i).Cells("細項金額").Value
94 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 115
             If ComboBox2.Text = "" Then : Else
96 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 117
             If ComboBox3.Text = "" Then : Else
@@ -126,6 +146,10 @@ Public Class 營運成本收支_決算表
126 146
             ElseIf DataGridView4.Rows(i).Cells("子項金額").Value.ToString <> "0" Then : DataGridView4.Rows(i).Cells("金額").Value = DataGridView4.Rows(i).Cells("子項金額").Value
127 147
             ElseIf DataGridView4.Rows(i).Cells("細項金額").Value.ToString <> "0" Then : DataGridView4.Rows(i).Cells("金額").Value = DataGridView4.Rows(i).Cells("細項金額").Value
128 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 153
             If ComboBox2.Text = "" Then : Else
130 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 155
             If ComboBox3.Text = "" Then : Else
@@ -160,6 +184,10 @@ Public Class 營運成本收支_決算表
160 184
             ElseIf DataGridView5.Rows(i).Cells("子項金額").Value.ToString <> "0" Then : DataGridView5.Rows(i).Cells("金額").Value = DataGridView5.Rows(i).Cells("子項金額").Value
161 185
             ElseIf DataGridView5.Rows(i).Cells("細項金額").Value.ToString <> "0" Then : DataGridView5.Rows(i).Cells("金額").Value = DataGridView5.Rows(i).Cells("細項金額").Value
162 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 191
             If ComboBox2.Text = "" Then : Else
164 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 193
             If ComboBox3.Text = "" Then : Else
@@ -194,6 +222,10 @@ Public Class 營運成本收支_決算表
194 222
             ElseIf DataGridView6.Rows(i).Cells("子項金額").Value.ToString <> "0" Then : DataGridView6.Rows(i).Cells("金額").Value = DataGridView6.Rows(i).Cells("子項金額").Value
195 223
             ElseIf DataGridView6.Rows(i).Cells("細項金額").Value.ToString <> "0" Then : DataGridView6.Rows(i).Cells("金額").Value = DataGridView6.Rows(i).Cells("細項金額").Value
196 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 229
             If ComboBox2.Text = "" Then : Else
198 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 231
             If ComboBox3.Text = "" Then : Else
@@ -228,6 +260,10 @@ Public Class 營運成本收支_決算表
228 260
             ElseIf DataGridView7.Rows(i).Cells("子項金額").Value.ToString <> "0" Then : DataGridView7.Rows(i).Cells("金額").Value = DataGridView7.Rows(i).Cells("子項金額").Value
229 261
             ElseIf DataGridView7.Rows(i).Cells("細項金額").Value.ToString <> "0" Then : DataGridView7.Rows(i).Cells("金額").Value = DataGridView7.Rows(i).Cells("細項金額").Value
230 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 267
             If ComboBox2.Text = "" Then : Else
232 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 269
             If ComboBox3.Text = "" Then : Else
@@ -262,6 +298,10 @@ Public Class 營運成本收支_決算表
262 298
             ElseIf DataGridView8.Rows(i).Cells("子項金額").Value.ToString <> "0" Then : DataGridView8.Rows(i).Cells("金額").Value = DataGridView8.Rows(i).Cells("子項金額").Value
263 299
             ElseIf DataGridView8.Rows(i).Cells("細項金額").Value.ToString <> "0" Then : DataGridView8.Rows(i).Cells("金額").Value = DataGridView8.Rows(i).Cells("細項金額").Value
264 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 305
             If ComboBox2.Text = "" Then : Else
266 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 307
             If ComboBox3.Text = "" Then : Else
@@ -296,6 +336,10 @@ Public Class 營運成本收支_決算表
296 336
             ElseIf DataGridView9.Rows(i).Cells("子項金額").Value.ToString <> "0" Then : DataGridView9.Rows(i).Cells("金額").Value = DataGridView9.Rows(i).Cells("子項金額").Value
297 337
             ElseIf DataGridView9.Rows(i).Cells("細項金額").Value.ToString <> "0" Then : DataGridView9.Rows(i).Cells("金額").Value = DataGridView9.Rows(i).Cells("細項金額").Value
298 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 343
             If ComboBox2.Text = "" Then : Else
300 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 345
             If ComboBox3.Text = "" Then : Else
@@ -330,6 +374,10 @@ Public Class 營運成本收支_決算表
330 374
             ElseIf DataGridView10.Rows(i).Cells("子項金額").Value.ToString <> "0" Then : DataGridView10.Rows(i).Cells("金額").Value = DataGridView10.Rows(i).Cells("子項金額").Value
331 375
             ElseIf DataGridView10.Rows(i).Cells("細項金額").Value.ToString <> "0" Then : DataGridView10.Rows(i).Cells("金額").Value = DataGridView10.Rows(i).Cells("細項金額").Value
332 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 381
             If ComboBox2.Text = "" Then : Else
334 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 383
             If ComboBox3.Text = "" Then : Else
@@ -364,6 +412,10 @@ Public Class 營運成本收支_決算表
364 412
             ElseIf DataGridView11.Rows(i).Cells("子項金額").Value.ToString <> "0" Then : DataGridView11.Rows(i).Cells("金額").Value = DataGridView11.Rows(i).Cells("子項金額").Value
365 413
             ElseIf DataGridView11.Rows(i).Cells("細項金額").Value.ToString <> "0" Then : DataGridView11.Rows(i).Cells("金額").Value = DataGridView11.Rows(i).Cells("細項金額").Value
366 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 419
             If ComboBox2.Text = "" Then : Else
368 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 421
             If ComboBox3.Text = "" Then : Else
@@ -398,6 +450,10 @@ Public Class 營運成本收支_決算表
398 450
             ElseIf DataGridView12.Rows(i).Cells("子項金額").Value.ToString <> "0" Then : DataGridView12.Rows(i).Cells("金額").Value = DataGridView12.Rows(i).Cells("子項金額").Value
399 451
             ElseIf DataGridView12.Rows(i).Cells("細項金額").Value.ToString <> "0" Then : DataGridView12.Rows(i).Cells("金額").Value = DataGridView12.Rows(i).Cells("細項金額").Value
400 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 457
             If ComboBox2.Text = "" Then : Else
402 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 459
             If ComboBox3.Text = "" Then : Else
@@ -432,6 +488,10 @@ Public Class 營運成本收支_決算表
432 488
             ElseIf DataGridView13.Rows(i).Cells("子項金額").Value.ToString <> "0" Then : DataGridView13.Rows(i).Cells("金額").Value = DataGridView13.Rows(i).Cells("子項金額").Value
433 489
             ElseIf DataGridView13.Rows(i).Cells("細項金額").Value.ToString <> "0" Then : DataGridView13.Rows(i).Cells("金額").Value = DataGridView13.Rows(i).Cells("細項金額").Value
434 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 495
             If ComboBox2.Text = "" Then : Else
436 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 497
             If ComboBox3.Text = "" Then : Else
@@ -472,33 +532,180 @@ Public Class 營運成本收支_決算表
472 532
             Dim DataGridViewOO As DataGridView = CType(Me.Controls.Find("DataGridView" + i.ToString(), True)(0), DataGridView)
473 533
             If i = 2 Then
474 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 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 549
             Else
489 550
                 DataGridViewOO.Columns(0).FillWeight = 20 : DataGridViewOO.Columns(1).Visible = False : DataGridViewOO.Columns(2).Visible = False : DataGridViewOO.Columns(3).Visible = False
490 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 557
             End If
497 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 707
         For no As Integer = 1 To 104
500 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 709
             TextBoxOO.Text = Format(Val(TextBoxOO.Text), "#,##0 ")
503 710
         Next
504 711
     End Sub
@@ -513,6 +720,9 @@ Public Class 營運成本收支_決算表
513 720
         Me.MdiParent = MAOJI_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
514 721
         DataGridView14.Visible = False : ComboBox2下拉表單資料載入() : 合計預設值() : ComboBox1下拉表單資料載入() : ComboBox1.Text = Year(Today)
515 722
     End Sub
723
+    Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click
724
+        ComboBox2下拉表單資料載入()
725
+    End Sub
516 726
     Private Sub ComboBox1_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox1.SelectedIndexChanged
517 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,6 +747,8 @@ Public Class 營運成本收支_決算表
537 747
             For i As Integer = 0 To DataGridView2.Rows.Count - 1
538 748
                 If DataGridView2("層級", i).Value = 1 Then : DataGridView2.Rows(i).DefaultCellStyle.BackColor = Color.LightPink
539 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 752
             Next
541 753
         End If
542 754
     End Sub
@@ -556,6 +768,8 @@ Public Class 營運成本收支_決算表
556 768
             For i As Integer = 0 To DataGridView1.Rows.Count - 1
557 769
                 If DataGridView1("層級", i).Value = 1 Then : DataGridView1.Rows(i).DefaultCellStyle.BackColor = Color.LightPink
558 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 773
             Next
560 774
         End If
561 775
     End Sub
@@ -575,6 +789,8 @@ Public Class 營運成本收支_決算表
575 789
             For i As Integer = 0 To DataGridView3.Rows.Count - 1
576 790
                 If DataGridView3("層級", i).Value = 1 Then : DataGridView3.Rows(i).DefaultCellStyle.BackColor = Color.LightPink
577 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 794
             Next
579 795
         End If
580 796
     End Sub
@@ -594,6 +810,8 @@ Public Class 營運成本收支_決算表
594 810
             For i As Integer = 0 To DataGridView4.Rows.Count - 1
595 811
                 If DataGridView4("層級", i).Value = 1 Then : DataGridView4.Rows(i).DefaultCellStyle.BackColor = Color.LightPink
596 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 815
             Next
598 816
         End If
599 817
     End Sub
@@ -613,6 +831,8 @@ Public Class 營運成本收支_決算表
613 831
             For i As Integer = 0 To DataGridView5.Rows.Count - 1
614 832
                 If DataGridView5("層級", i).Value = 1 Then : DataGridView5.Rows(i).DefaultCellStyle.BackColor = Color.LightPink
615 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 836
             Next
617 837
         End If
618 838
     End Sub
@@ -632,6 +852,8 @@ Public Class 營運成本收支_決算表
632 852
             For i As Integer = 0 To DataGridView6.Rows.Count - 1
633 853
                 If DataGridView6("層級", i).Value = 1 Then : DataGridView6.Rows(i).DefaultCellStyle.BackColor = Color.LightPink
634 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 857
             Next
636 858
         End If
637 859
     End Sub
@@ -651,6 +873,8 @@ Public Class 營運成本收支_決算表
651 873
             For i As Integer = 0 To DataGridView7.Rows.Count - 1
652 874
                 If DataGridView7("層級", i).Value = 1 Then : DataGridView7.Rows(i).DefaultCellStyle.BackColor = Color.LightPink
653 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 878
             Next
655 879
         End If
656 880
     End Sub
@@ -670,6 +894,8 @@ Public Class 營運成本收支_決算表
670 894
             For i As Integer = 0 To DataGridView8.Rows.Count - 1
671 895
                 If DataGridView8("層級", i).Value = 1 Then : DataGridView8.Rows(i).DefaultCellStyle.BackColor = Color.LightPink
672 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 899
             Next
674 900
         End If
675 901
     End Sub
@@ -689,6 +915,8 @@ Public Class 營運成本收支_決算表
689 915
             For i As Integer = 0 To DataGridView9.Rows.Count - 1
690 916
                 If DataGridView9("層級", i).Value = 1 Then : DataGridView9.Rows(i).DefaultCellStyle.BackColor = Color.LightPink
691 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 920
             Next
693 921
         End If
694 922
     End Sub
@@ -708,6 +936,8 @@ Public Class 營運成本收支_決算表
708 936
             For i As Integer = 0 To DataGridView10.Rows.Count - 1
709 937
                 If DataGridView10("層級", i).Value = 1 Then : DataGridView10.Rows(i).DefaultCellStyle.BackColor = Color.LightPink
710 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 941
             Next
712 942
         End If
713 943
     End Sub
@@ -727,6 +957,8 @@ Public Class 營運成本收支_決算表
727 957
             For i As Integer = 0 To DataGridView11.Rows.Count - 1
728 958
                 If DataGridView11("層級", i).Value = 1 Then : DataGridView11.Rows(i).DefaultCellStyle.BackColor = Color.LightPink
729 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 962
             Next
731 963
         End If
732 964
     End Sub
@@ -746,6 +978,8 @@ Public Class 營運成本收支_決算表
746 978
             For i As Integer = 0 To DataGridView12.Rows.Count - 1
747 979
                 If DataGridView12("層級", i).Value = 1 Then : DataGridView12.Rows(i).DefaultCellStyle.BackColor = Color.LightPink
748 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 983
             Next
750 984
         End If
751 985
     End Sub
@@ -765,6 +999,8 @@ Public Class 營運成本收支_決算表
765 999
             For i As Integer = 0 To DataGridView13.Rows.Count - 1
766 1000
                 If DataGridView13("層級", i).Value = 1 Then : DataGridView13.Rows(i).DefaultCellStyle.BackColor = Color.LightPink
767 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 1004
             Next
769 1005
         End If
770 1006
     End Sub
@@ -776,10 +1012,33 @@ Public Class 營運成本收支_決算表
776 1012
         DataGridView10.FirstDisplayedScrollingRowIndex = DataGridView2.FirstDisplayedScrollingRowIndex : DataGridView11.FirstDisplayedScrollingRowIndex = DataGridView2.FirstDisplayedScrollingRowIndex
777 1013
         DataGridView12.FirstDisplayedScrollingRowIndex = DataGridView2.FirstDisplayedScrollingRowIndex : DataGridView13.FirstDisplayedScrollingRowIndex = DataGridView2.FirstDisplayedScrollingRowIndex
778 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 1042
     End Sub
784 1043
     Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
785 1044
         For i As Integer = 0 To DataGridView14.Rows.Count - 1
@@ -788,4 +1047,9 @@ Public Class 營運成本收支_決算表
788 1047
             PA1 = ComboBoxOO.Text : 布林1 = CheckBoxOO.Checked : PA2 = (i + 1) : SQL_財務決算表合計預設修改() : conn.Close()
789 1048
         Next : MsgBox("存檔完畢。") : Me.重新整理ToolStripMenuItem.PerformClick()
790 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 1055
 End Class

+ 3
- 3
MaoOrange-Hongji/資料庫系統管理/列印_產品標籤介面.Designer.vb Целия файл

@@ -22,7 +22,7 @@ Partial Class 列印_產品標籤介面
22 22
     '請勿使用程式碼編輯器進行修改。
23 23
     <System.Diagnostics.DebuggerStepThrough()> _
24 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 26
         Me.DataGridView1 = New System.Windows.Forms.DataGridView()
27 27
         Me.Button1 = New System.Windows.Forms.Button()
28 28
         Me.Button11 = New System.Windows.Forms.Button()
@@ -39,8 +39,8 @@ Partial Class 列印_產品標籤介面
39 39
         Me.DataGridView1.Location = New System.Drawing.Point(12, 111)
40 40
         Me.DataGridView1.Name = "DataGridView1"
41 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 44
         Me.DataGridView1.RowTemplate.Height = 24
45 45
         Me.DataGridView1.Size = New System.Drawing.Size(570, 237)
46 46
         Me.DataGridView1.TabIndex = 1155

+ 12
- 6
MaoOrange-Hongji/資料庫系統管理/列印_產品標籤介面.vb Целия файл

@@ -58,17 +58,17 @@ Public Class 列印_產品標籤介面
58 58
                     xlSheet.Cells(4 + N1, 1) = "系統料號 : " : xlSheet.Cells(4 + N1, 2) = DataGridView1.Rows(I).Cells("料號").Value : xlSheet.Cells(4 + N1, 3) = TextBox1.Text
59 59
                     xlSheet.Cells(5 + N1, 1) = "產品頁碼 : " : xlSheet.Cells(5 + N1, 2) = DataGridView1.Rows(I).Cells("頁碼").Value
60 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 62
                     BB(xlApp, xlSheet)
63 63
                     N1 += 8
64 64
                 Next
65 65
             Else
66 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 72
                 BB(xlApp, xlSheet)
73 73
             End If
74 74
             CC(xlApp, xlSheet)
@@ -167,4 +167,10 @@ Public Class 列印_產品標籤介面
167 167
         End With
168 168
         myExcel.Application.PrintCommunication = True
169 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 176
 End Class

+ 219
- 0
MaoOrange-Hongji/資料庫系統管理/系統通用變數管理.Designer.vb Целия файл

@@ -0,0 +1,219 @@
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 Целия файл

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

+ 64
- 0
MaoOrange-Hongji/資料庫系統管理/系統通用變數管理.vb Целия файл

@@ -0,0 +1,64 @@
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…
Отказ
Запис