B70340 2年前
コミット
14f61a3579

バイナリ
.vs/YD-ERP-SYS/FileContentIndex/02e21842-9a4b-452b-b1af-94381191a85e.vsidx → .vs/YD-ERP-SYS/FileContentIndex/d2c0a76c-1595-4360-9077-c38fe700ced6.vsidx ファイルの表示


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


+ 1
- 1
YD-ERP-SYS/Module/全域變數.vb ファイルの表示

@@ -3,7 +3,7 @@
3 3
     Public g_conn_type, gUserName, 登入人職稱, 登入人級別, 登入人組別, 登入人IP, 版本號, Target, Target1, Target2, FTP帳號, FTP密碼, FTP物理位置, 業務號碼, AA(99), 類別 As String
4 4
     Public BB(99), CC(99), 登入判斷 As Boolean
5 5
     '----系統版本-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
6
-    Public 版本 As String = "2023052901"
6
+    Public 版本 As String = "2023061101"
7 7
     '----系統用全域變數-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
8 8
     Public 列印用SQL, 列印用SQL2, 公司編號, 公司電話, 公司統編, 公司地址, 關鍵字編號, 進度條後墜 As String
9 9
     '----系統閒置-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

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


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


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


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


+ 39
- 36
YD-ERP-SYS/財務系統管理/業績獎金彙總表.vb ファイルの表示

@@ -570,40 +570,43 @@ Public Class 業績獎金彙總表
570 570
 
571 571
             If 獎金彙總_dgv.Visible = True Then
572 572
                 xlSheet.Cells(1, 1) = "雅邸家居" : xlSheet.Cells(2, 1) = "業績獎金彙總表" : xlSheet.Cells(3, 1) = "日期區間:" & 開始日期_dtp.Value & " ~ " & 結束日期_dtp.Value
573
-                xlSheet.Cells(4, 1) = "編號" : xlSheet.Cells(4, 2) = "業務姓名" : xlSheet.Cells(4, 3) = "銷貨總額" : xlSheet.Cells(4, 4) = "成本" : xlSheet.Cells(4, 5) = "運費"
574
-                xlSheet.Cells(4, 6) = "稅額(發票)" : xlSheet.Cells(4, 7) = "其他(傭金)" : xlSheet.Cells(4, 8) = "手續費(刷卡)" : xlSheet.Cells(4, 9) = "業績毛利"
575
-                xlSheet.Cells(4, 10) = "獎金"
573
+                xlSheet.Cells(4, 1) = "編號" : xlSheet.Cells(4, 2) = "業務姓名" : xlSheet.Cells(4, 3) = "銷貨總額" : xlSheet.Cells(4, 4) = "成本" : xlSheet.Cells(4, 6) = "運費"
574
+                xlSheet.Cells(4, 7) = "稅額(發票)" : xlSheet.Cells(4, 8) = "其他(傭金)" : xlSheet.Cells(4, 9) = "手續費(刷卡)" : xlSheet.Cells(4, 10) = "業績毛利"
575
+                xlSheet.Cells(4, 11) = "獎金" : xlSheet.Cells(4, 5) = "管銷"
576 576
                 For I As Integer = 0 To 獎金彙總_dgv.Rows.Count - 1
577 577
                     xlSheet.Cells(I + 5, 1) = 獎金彙總_dgv.Rows(I).Cells("編號").Value : xlSheet.Cells(I + 5, 2) = 獎金彙總_dgv.Rows(I).Cells("姓名").Value
578 578
                     xlSheet.Cells(I + 5, 3) = 獎金彙總_dgv.Rows(I).Cells("銷貨總額").Value : xlSheet.Cells(I + 5, 4) = 獎金彙總_dgv.Rows(I).Cells("成本").Value
579
-                    xlSheet.Cells(I + 5, 5) = 獎金彙總_dgv.Rows(I).Cells("運費").Value : xlSheet.Cells(I + 5, 6) = 獎金彙總_dgv.Rows(I).Cells("稅額(發票)").Value
580
-                    xlSheet.Cells(I + 5, 7) = 獎金彙總_dgv.Rows(I).Cells("其他(傭金)").Value : xlSheet.Cells(I + 5, 8) = 獎金彙總_dgv.Rows(I).Cells("手續費(刷卡)").Value
581
-                    xlSheet.Cells(I + 5, 9) = 獎金彙總_dgv.Rows(I).Cells("毛利").Value : xlSheet.Cells(I + 5, 10) = 獎金彙總_dgv.Rows(I).Cells("獎金").Value
579
+                    xlSheet.Cells(I + 5, 6) = 獎金彙總_dgv.Rows(I).Cells("運費").Value : xlSheet.Cells(I + 5, 7) = 獎金彙總_dgv.Rows(I).Cells("稅額(發票)").Value
580
+                    xlSheet.Cells(I + 5, 8) = 獎金彙總_dgv.Rows(I).Cells("其他(傭金)").Value : xlSheet.Cells(I + 5, 9) = 獎金彙總_dgv.Rows(I).Cells("手續費(刷卡)").Value
581
+                    xlSheet.Cells(I + 5, 10) = 獎金彙總_dgv.Rows(I).Cells("毛利").Value : xlSheet.Cells(I + 5, 11) = 獎金彙總_dgv.Rows(I).Cells("獎金").Value
582
+                    xlSheet.Cells(I + 5, 5) = 獎金彙總_dgv.Rows(I).Cells("管銷").Value
582 583
                     N1 = I
583 584
                 Next
584 585
             Else
585 586
                 xlSheet.Cells(1, 1) = "雅邸家居" : xlSheet.Cells(2, 1) = "業績明細表" : xlSheet.Cells(3, 1) = "日期區間:" & 開始日期_dtp.Value & " ~ " & 結束日期_dtp.Value
586
-                xlSheet.Cells(4, 1) = "編號" : xlSheet.Cells(4, 2) = "客戶姓名" : xlSheet.Cells(4, 3) = "銷貨總額" : xlSheet.Cells(4, 4) = "成本" : xlSheet.Cells(4, 5) = "運費"
587
-                xlSheet.Cells(4, 6) = "稅額(發票)" : xlSheet.Cells(4, 7) = "其他(傭金)" : xlSheet.Cells(4, 8) = "手續費(刷卡)" : xlSheet.Cells(4, 9) = "業績毛利"
588
-                xlSheet.Cells(4, 10) = "獎金基礎"
587
+                xlSheet.Cells(4, 1) = "編號" : xlSheet.Cells(4, 2) = "客戶姓名" : xlSheet.Cells(4, 3) = "銷貨總額" : xlSheet.Cells(4, 4) = "成本" : xlSheet.Cells(4, 6) = "運費"
588
+                xlSheet.Cells(4, 7) = "稅額(發票)" : xlSheet.Cells(4, 8) = "其他(傭金)" : xlSheet.Cells(4, 9) = "手續費(刷卡)" : xlSheet.Cells(4, 10) = "業績毛利"
589
+                xlSheet.Cells(4, 11) = "獎金" : xlSheet.Cells(4, 5) = "管銷"
589 590
                 For I As Integer = 0 To 獎金明細表_dgv.Rows.Count - 1
590 591
                     xlSheet.Cells(I + 5, 1) = 獎金明細表_dgv.Rows(I).Cells("編號").Value : xlSheet.Cells(I + 5, 2) = 獎金明細表_dgv.Rows(I).Cells("名稱").Value
591 592
                     xlSheet.Cells(I + 5, 3) = 獎金明細表_dgv.Rows(I).Cells("銷貨總額").Value : xlSheet.Cells(I + 5, 4) = 獎金明細表_dgv.Rows(I).Cells("成本").Value
592
-                    xlSheet.Cells(I + 5, 5) = 獎金明細表_dgv.Rows(I).Cells("運費").Value : xlSheet.Cells(I + 5, 6) = 獎金明細表_dgv.Rows(I).Cells("稅額(發票)").Value
593
-                    xlSheet.Cells(I + 5, 7) = 獎金明細表_dgv.Rows(I).Cells("其他(傭金)").Value : xlSheet.Cells(I + 5, 8) = 獎金明細表_dgv.Rows(I).Cells("手續費(刷卡)").Value
594
-                    xlSheet.Cells(I + 5, 9) = 獎金明細表_dgv.Rows(I).Cells("毛利").Value : xlSheet.Cells(I + 5, 10) = 獎金明細表_dgv.Rows(I).Cells("獎金基礎").Value
593
+                    xlSheet.Cells(I + 5, 6) = 獎金明細表_dgv.Rows(I).Cells("運費").Value : xlSheet.Cells(I + 5, 7) = 獎金明細表_dgv.Rows(I).Cells("稅額(發票)").Value
594
+                    xlSheet.Cells(I + 5, 8) = 獎金明細表_dgv.Rows(I).Cells("其他(傭金)").Value : xlSheet.Cells(I + 5, 9) = 獎金明細表_dgv.Rows(I).Cells("手續費(刷卡)").Value
595
+                    xlSheet.Cells(I + 5, 10) = 獎金明細表_dgv.Rows(I).Cells("毛利").Value : xlSheet.Cells(I + 5, 11) = 獎金明細表_dgv.Rows(I).Cells("獎金基礎").Value
596
+                    xlSheet.Cells(I + 5, 5) = 獎金明細表_dgv.Rows(I).Cells("管銷費用").Value
595 597
                     N1 = I
596 598
                 Next
597 599
             End If
598 600
             xlSheet.Cells(N1 + 6, 2) = "合計"
599 601
             xlSheet.Cells(N1 + 6, 3) = "=SUM(C5:C" & N1 + 5 & ")" : xlSheet.Cells(N1 + 6, 4) = "=SUM(D5:D" & N1 + 5 & ")"
600
-            xlSheet.Cells(N1 + 6, 5) = "=SUM(E5:E" & N1 + 5 & ")" : xlSheet.Cells(N1 + 6, 6) = "=SUM(F5:F" & N1 + 5 & ")"
601
-            xlSheet.Cells(N1 + 6, 7) = "=SUM(G5:G" & N1 + 5 & ")" : xlSheet.Cells(N1 + 6, 8) = "=SUM(H5:H" & N1 + 5 & ")"
602
-            xlSheet.Cells(N1 + 6, 9) = "=SUM(I5:I" & N1 + 5 & ")" : xlSheet.Cells(N1 + 6, 10) = "=SUM(J5:J" & N1 + 5 & ")"
603
-            xlSheet.Cells(N1 + 7, 3) = "扣運費(上月已結)" : xlSheet.Cells(N1 + 7, 5) = NUD2.Value
604
-            xlSheet.Cells(N1 + 8, 3) = "已出貨未扣款" : xlSheet.Cells(N1 + 8, 5) = NUD3.Value
605
-            xlSheet.Cells(N1 + 9, 3) = "代運費" : xlSheet.Cells(N1 + 9, 5) = NUD4.Value
606
-            xlSheet.Cells(N1 + 10, 3) = "共計" : xlSheet.Cells(N1 + 10, 5) = NUD5.Value
602
+            xlSheet.Cells(N1 + 6, 6) = "=SUM(F5:F" & N1 + 5 & ")" : xlSheet.Cells(N1 + 6, 7) = "=SUM(G5:G" & N1 + 5 & ")"
603
+            xlSheet.Cells(N1 + 6, 8) = "=SUM(H5:H" & N1 + 5 & ")" : xlSheet.Cells(N1 + 6, 9) = "=SUM(I5:I" & N1 + 5 & ")"
604
+            xlSheet.Cells(N1 + 6, 10) = "=SUM(J5:J" & N1 + 5 & ")" : xlSheet.Cells(N1 + 6, 11) = "=SUM(K5:K" & N1 + 5 & ")"
605
+            xlSheet.Cells(N1 + 6, 5) = "=SUM(E5:E" & N1 + 5 & ")"
606
+            xlSheet.Cells(N1 + 7, 3) = "扣運費(上月已結)" : xlSheet.Cells(N1 + 7, 6) = NUD2.Value
607
+            xlSheet.Cells(N1 + 8, 3) = "已出貨未扣款" : xlSheet.Cells(N1 + 8, 6) = NUD3.Value
608
+            xlSheet.Cells(N1 + 9, 3) = "代運費" : xlSheet.Cells(N1 + 9, 6) = NUD4.Value
609
+            xlSheet.Cells(N1 + 10, 3) = "共計" : xlSheet.Cells(N1 + 10, 6) = NUD5.Value
607 610
             BB(xlApp, xlSheet)
608 611
 
609 612
             xlSheet.PageSetup.PrintArea = ""
@@ -628,45 +631,45 @@ Public Class 業績獎金彙總表
628 631
         With myExcel.Selection : .HorizontalAlignment = xlCenter : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0
629 632
             .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False : End With
630 633
 
631
-        xlSheet.Range("C4:J4").Select()
634
+        xlSheet.Range("C4:K4").Select()
632 635
         With myExcel.Selection : .HorizontalAlignment = xlCenter : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0
633 636
             .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False : End With
634 637
 
635 638
         xlSheet.Columns("A:A").Select : myExcel.Selection.ColumnWidth = 5
636
-        xlSheet.Range("C5:J" & N1 + 6 & "").Select() : myExcel.Selection.Style = "Comma" : myExcel.Selection.NumberFormatLocal = "_-* #,##0_-;-* #,##0_-;_-* ""-""??_-;_-@_-"
637
-        xlSheet.Range("E" & N1 + 7 & ":E" & N1 + 10 & "").Select() : myExcel.Selection.Style = "Comma" : myExcel.Selection.NumberFormatLocal = "_-* #,##0_-;-* #,##0_-;_-* ""-""??_-;_-@_-"
638
-        xlSheet.Columns("C:J").EntireColumn.AutoFit
639
+        xlSheet.Range("C5:K" & N1 + 6 & "").Select() : myExcel.Selection.Style = "Comma" : myExcel.Selection.NumberFormatLocal = "_-* #,##0_-;-* #,##0_-;_-* ""-""??_-;_-@_-"
640
+        xlSheet.Range("F" & N1 + 7 & ":F" & N1 + 10 & "").Select() : myExcel.Selection.Style = "Comma" : myExcel.Selection.NumberFormatLocal = "_-* #,##0_-;-* #,##0_-;_-* ""-""??_-;_-@_-"
641
+        xlSheet.Columns("C:K").EntireColumn.AutoFit
639 642
 
640
-        xlSheet.Range("B" & N1 + 7 & ":D" & N1 + 7 & "").Select()
643
+        xlSheet.Range("B" & N1 + 7 & ":E" & N1 + 7 & "").Select()
641 644
         With myExcel.Selection : .HorizontalAlignment = xlCenter : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0
642 645
             .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False : End With : myExcel.Selection.Merge
643
-        xlSheet.Range("B" & N1 + 8 & ":D" & N1 + 8 & "").Select()
646
+        xlSheet.Range("B" & N1 + 8 & ":E" & N1 + 8 & "").Select()
644 647
         With myExcel.Selection : .HorizontalAlignment = xlCenter : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0
645 648
             .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False : End With : myExcel.Selection.Merge
646
-        xlSheet.Range("B" & N1 + 9 & ":D" & N1 + 9 & "").Select()
649
+        xlSheet.Range("B" & N1 + 9 & ":E" & N1 + 9 & "").Select()
647 650
         With myExcel.Selection : .HorizontalAlignment = xlCenter : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0
648 651
             .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False : End With : myExcel.Selection.Merge
649
-        xlSheet.Range("B" & N1 + 10 & ":D" & N1 + 10 & "").Select()
652
+        xlSheet.Range("B" & N1 + 10 & ":E" & N1 + 10 & "").Select()
650 653
         With myExcel.Selection : .HorizontalAlignment = xlCenter : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0
651 654
             .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False : End With : myExcel.Selection.Merge
652 655
 
653
-        xlSheet.Range("B" & N1 + 7 & ":D" & N1 + 10 & "").Select()
656
+        xlSheet.Range("B" & N1 + 7 & ":E" & N1 + 10 & "").Select()
654 657
         With myExcel.Selection : .HorizontalAlignment = xlRight : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0
655 658
             .ShrinkToFit = False : .ReadingOrder = xlContext : End With
656
-        xlSheet.Range("A1:J1").Select()
659
+        xlSheet.Range("A1:K1").Select()
657 660
         With myExcel.Selection : .HorizontalAlignment = xlCenter : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0
658 661
             .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False : End With : myExcel.Selection.Merge
659
-        xlSheet.Range("A2:J2").Select()
662
+        xlSheet.Range("A2:K2").Select()
660 663
         With myExcel.Selection : .HorizontalAlignment = xlCenter : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0
661 664
             .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False : End With : myExcel.Selection.Merge
662
-        xlSheet.Range("A3:J3").Select()
665
+        xlSheet.Range("A3:K3").Select()
663 666
         With myExcel.Selection : .HorizontalAlignment = xlLeft : .VerticalAlignment = xlCenter : .WrapText = False : .Orientation = 0 : .AddIndent = False : .IndentLevel = 0
664 667
             .ShrinkToFit = False : .ReadingOrder = xlContext : .MergeCells = False : End With : myExcel.Selection.Merge
665
-        xlSheet.Range("A1:J1").Select()
668
+        xlSheet.Range("A1:K1").Select()
666 669
         With myExcel.Selection.Font : .Name = "新細明體" : .Size = 24 : .Strikethrough = False : .Superscript = False : .Subscript = False : .OutlineFont = False : .Shadow = False
667 670
             .Underline = xlUnderlineStyleNone : .ThemeColor = xlThemeColorLight1 : .TintAndShade = 0 : .ThemeFont = xlThemeFontMinor : End With
668 671
 
669
-        xlSheet.Range("A4:J4").Select()
672
+        xlSheet.Range("A4:K4").Select()
670 673
         myExcel.Selection.Borders(xlDiagonalDown).LineStyle = xlNone : myExcel.Selection.Borders(xlDiagonalUp).LineStyle = xlNone
671 674
         myExcel.Selection.Borders(xlEdgeLeft).LineStyle = xlNone
672 675
         With myExcel.Selection.Borders(xlEdgeTop) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlThin : End With
@@ -674,21 +677,21 @@ Public Class 業績獎金彙總表
674 677
         myExcel.Selection.Borders(xlEdgeRight).LineStyle = xlNone : myExcel.Selection.Borders(xlInsideVertical).LineStyle = xlNone
675 678
         myExcel.Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
676 679
 
677
-        xlSheet.Range("A3:J3").Select()
680
+        xlSheet.Range("A3:K3").Select()
678 681
         myExcel.Selection.Borders(xlDiagonalDown).LineStyle = xlNone : myExcel.Selection.Borders(xlDiagonalUp).LineStyle = xlNone
679 682
         myExcel.Selection.Borders(xlEdgeLeft).LineStyle = xlNone : myExcel.Selection.Borders(xlEdgeTop).LineStyle = xlNone
680 683
         With myExcel.Selection.Borders(xlEdgeBottom) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlMedium : End With
681 684
         myExcel.Selection.Borders(xlEdgeRight).LineStyle = xlNone : myExcel.Selection.Borders(xlInsideVertical).LineStyle = xlNone
682 685
         myExcel.Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
683 686
 
684
-        xlSheet.Range("A" & N1 + 5 & ":J" & N1 + 5 & "").Select()
687
+        xlSheet.Range("A" & N1 + 5 & ":K" & N1 + 5 & "").Select()
685 688
         myExcel.Selection.Borders(xlDiagonalDown).LineStyle = xlNone : myExcel.Selection.Borders(xlDiagonalUp).LineStyle = xlNone
686 689
         myExcel.Selection.Borders(xlEdgeLeft).LineStyle = xlNone : myExcel.Selection.Borders(xlEdgeTop).LineStyle = xlNone
687 690
         With myExcel.Selection.Borders(xlEdgeBottom) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlMedium : End With
688 691
         myExcel.Selection.Borders(xlEdgeRight).LineStyle = xlNone : myExcel.Selection.Borders(xlInsideVertical).LineStyle = xlNone
689 692
         myExcel.Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
690 693
 
691
-        xlSheet.Range("A" & N1 + 9 & ":E" & N1 + 9 & "").Select()
694
+        xlSheet.Range("A" & N1 + 9 & ":F" & N1 + 9 & "").Select()
692 695
         myExcel.Selection.Borders(xlDiagonalDown).LineStyle = xlNone : myExcel.Selection.Borders(xlDiagonalUp).LineStyle = xlNone
693 696
         myExcel.Selection.Borders(xlEdgeLeft).LineStyle = xlNone : myExcel.Selection.Borders(xlEdgeTop).LineStyle = xlNone
694 697
         With myExcel.Selection.Borders(xlEdgeBottom) : .LineStyle = xlContinuous : .ColorIndex = 0 : .TintAndShade = 0 : .Weight = xlMedium : End With

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