B70340 2 年前
父节点
当前提交
b4015c561f
共有 33 个文件被更改,包括 1330 次插入348 次删除
  1. 二进制
      .vs/GA-ERP-SYS/FileContentIndex/18391721-e119-4006-9d55-af548b0d6350.vsidx
  2. 二进制
      .vs/GA-ERP-SYS/FileContentIndex/26756946-0132-4b3c-8a80-b4f9304ff710.vsidx
  3. 二进制
      .vs/GA-ERP-SYS/FileContentIndex/583218ca-d2a0-4e33-b3d0-1999e5c8e381.vsidx
  4. 二进制
      .vs/GA-ERP-SYS/FileContentIndex/8a1e7ec1-718d-417d-a688-be40087e6b88.vsidx
  5. 二进制
      .vs/GA-ERP-SYS/FileContentIndex/8b078d50-90bb-491c-b941-0361daeda354.vsidx
  6. 二进制
      .vs/GA-ERP-SYS/FileContentIndex/98405e39-d0c4-4404-920e-c1604d12386d.vsidx
  7. 二进制
      .vs/GA-ERP-SYS/FileContentIndex/a92b408a-743a-4714-8dd5-61d359530777.vsidx
  8. 二进制
      .vs/GA-ERP-SYS/FileContentIndex/d0ba8e2c-845e-447d-a444-b80bd1532db8.vsidx
  9. 二进制
      .vs/GA-ERP-SYS/v17/.suo
  10. 1
    0
      GA-ERP-SYS/GA-ERP-SYS.vb
  11. 9
    0
      GA-ERP-SYS/GA-ERP-SYS.vbproj
  12. 10
    0
      GA-ERP-SYS/Module/SQL_子系統管理.vb
  13. 3
    3
      GA-ERP-SYS/Module/全域變數.vb
  14. 二进制
      GA-ERP-SYS/bin/Debug/GA-ERP-SYS.exe
  15. 二进制
      GA-ERP-SYS/bin/Debug/GA-ERP-SYS.pdb
  16. 二进制
      GA-ERP-SYS/obj/Debug/DesignTimeResolveAssemblyReferences.cache
  17. 二进制
      GA-ERP-SYS/obj/Debug/GA-ERP-SYS.exe
  18. 二进制
      GA-ERP-SYS/obj/Debug/GA-ERP-SYS.pdb
  19. 1
    1
      GA-ERP-SYS/obj/Debug/GA-ERP-SYS.vbproj.CoreCompileInputs.cache
  20. 1
    0
      GA-ERP-SYS/obj/Debug/GA-ERP-SYS.vbproj.FileListAbsolute.txt
  21. 二进制
      GA-ERP-SYS/obj/Debug/GA-ERP-SYS.vbproj.GenerateResource.cache
  22. 二进制
      GA-ERP-SYS/obj/Debug/GA_ERP_SYS.彙總報表預覽.resources
  23. 二进制
      GA-ERP-SYS/obj/Debug/GA_ERP_SYS.系統公告.resources
  24. 164
    0
      GA-ERP-SYS/報表系統管理/前台/彙總報表預覽.Designer.vb
  25. 135
    0
      GA-ERP-SYS/報表系統管理/前台/彙總報表預覽.resx
  26. 57
    0
      GA-ERP-SYS/報表系統管理/前台/彙總報表預覽.vb
  27. 146
    65
      GA-ERP-SYS/報表系統管理/前台/電板帳務彙總計算表.Designer.vb
  28. 204
    4
      GA-ERP-SYS/報表系統管理/前台/電板帳務彙總計算表.vb
  29. 297
    133
      GA-ERP-SYS/報表系統管理/後台/後台帳務彙總結算表.Designer.vb
  30. 293
    124
      GA-ERP-SYS/報表系統管理/後台/後台帳務彙總結算表.vb
  31. 0
    14
      GA-ERP-SYS/報表系統管理/後台/後台帳務明細查詢表.vb
  32. 4
    3
      GA-ERP-SYS/特殊操作功能/系統公告.Designer.vb
  33. 5
    1
      GA-ERP-SYS/特殊操作功能/系統公告.resx

二进制
.vs/GA-ERP-SYS/FileContentIndex/18391721-e119-4006-9d55-af548b0d6350.vsidx 查看文件


二进制
.vs/GA-ERP-SYS/FileContentIndex/26756946-0132-4b3c-8a80-b4f9304ff710.vsidx 查看文件


二进制
.vs/GA-ERP-SYS/FileContentIndex/583218ca-d2a0-4e33-b3d0-1999e5c8e381.vsidx 查看文件


二进制
.vs/GA-ERP-SYS/FileContentIndex/8a1e7ec1-718d-417d-a688-be40087e6b88.vsidx 查看文件


二进制
.vs/GA-ERP-SYS/FileContentIndex/8b078d50-90bb-491c-b941-0361daeda354.vsidx 查看文件


二进制
.vs/GA-ERP-SYS/FileContentIndex/98405e39-d0c4-4404-920e-c1604d12386d.vsidx 查看文件


二进制
.vs/GA-ERP-SYS/FileContentIndex/a92b408a-743a-4714-8dd5-61d359530777.vsidx 查看文件


二进制
.vs/GA-ERP-SYS/FileContentIndex/d0ba8e2c-845e-447d-a444-b80bd1532db8.vsidx 查看文件


二进制
.vs/GA-ERP-SYS/v17/.suo 查看文件


+ 1
- 0
GA-ERP-SYS/GA-ERP-SYS.vb 查看文件

@@ -413,6 +413,7 @@ Public Class GA_ERP_SYS
413 413
         MyModule1.驗證單一登入() : PA = "" : 後台股東紅利設定.Show() : 後台股東紅利設定.BringToFront()
414 414
     End Sub
415 415
     Private Sub 後台帳務彙總計算表_tsm_Click(sender As Object, e As EventArgs) Handles 後台帳務彙總計算表_tsm.Click
416
+        後台帳務彙總結算表.Size = New Size(1133, Screen.PrimaryScreen.Bounds.Height - 60)
416 417
         MyModule1.驗證單一登入() : PA = "" : 後台帳務彙總結算表.Show() : 後台帳務彙總結算表.BringToFront()
417 418
     End Sub
418 419
     Private Sub 後台帳務明細查詢表_tsm_Click(sender As Object, e As EventArgs) Handles 後台帳務明細查詢表_tsm.Click

+ 9
- 0
GA-ERP-SYS/GA-ERP-SYS.vbproj 查看文件

@@ -154,6 +154,12 @@
154 154
     <Compile Include="報表系統管理\列印選擇.vb">
155 155
       <SubType>Form</SubType>
156 156
     </Compile>
157
+    <Compile Include="報表系統管理\前台\彙總報表預覽.Designer.vb">
158
+      <DependentUpon>彙總報表預覽.vb</DependentUpon>
159
+    </Compile>
160
+    <Compile Include="報表系統管理\前台\彙總報表預覽.vb">
161
+      <SubType>Form</SubType>
162
+    </Compile>
157 163
     <Compile Include="報表系統管理\前台\電板客戶資料.Designer.vb">
158 164
       <DependentUpon>電板客戶資料.vb</DependentUpon>
159 165
     </Compile>
@@ -471,6 +477,9 @@
471 477
     <EmbeddedResource Include="報表系統管理\列印選擇.resx">
472 478
       <DependentUpon>列印選擇.vb</DependentUpon>
473 479
     </EmbeddedResource>
480
+    <EmbeddedResource Include="報表系統管理\前台\彙總報表預覽.resx">
481
+      <DependentUpon>彙總報表預覽.vb</DependentUpon>
482
+    </EmbeddedResource>
474 483
     <EmbeddedResource Include="報表系統管理\前台\電板客戶資料.resx">
475 484
       <DependentUpon>電板客戶資料.vb</DependentUpon>
476 485
     </EmbeddedResource>

+ 10
- 0
GA-ERP-SYS/Module/SQL_子系統管理.vb 查看文件

@@ -37,6 +37,15 @@ FROM 流水帳"
37 37
         CmdSet_For_dr()
38 38
     End Sub
39 39
     '--------------------------基本資料管理---------------------------------------------------------------------------------------------------------------------------------------------------
40
+    Friend Sub SQL_自動正負反()
41
+        ConnOpen_子SQL() : SQL1 = "SELECT 自動, 依電板, 依球板 FROM 自動導入判斷" : CmdSet_For_dr()
42
+    End Sub
43
+    Friend Sub SQL_自動正負反存檔()
44
+        ConnOpen_子SQL()
45
+        SQL1 = "UPDATE 自動導入判斷 SET 自動 = '" & 電板帳務彙總計算表.自動正負反_ch.Checked & "', 依電板 = '" & 電板帳務彙總計算表.依電板習慣_ch.Checked & "', 
46
+                                    依球板 = '" & 電板帳務彙總計算表.依球版習慣_ch.Checked & "'"
47
+        CmdSet_For_dr()
48
+    End Sub
40 49
     Friend Sub SQL_客戶下層全部關閉()
41 50
         ConnOpen_子SQL() : SQL1 = "UPDATE 下行客戶 SET 下層 = '0'" : CmdSet_For_dr()
42 51
     End Sub
@@ -1849,6 +1858,7 @@ FROM 流水帳"
1849 1858
         SQL1 = "SELECT      後台彙總存檔.商品 AS 項次, 後台彙總存檔.商品, 後台彙總存檔.系統, SUM(CAST(後台彙總存檔.排序 AS money)) 
1850 1859
                             AS [貢獻度-日], SUM(CAST(後台彙總存檔.排序 AS money)) AS [結果-日], SUM(CAST(後台彙總存檔.排序 AS money)) 
1851 1860
                             AS [貢獻度-周], SUM(CAST(後台彙總存檔.排序 AS money)) AS [結果-周], SUM(CAST(後台彙總存檔.排序 AS money)) 
1861
+                            AS [貢獻度-月], SUM(CAST(後台彙總存檔.排序 AS money)) AS [結果-月], SUM(CAST(後台彙總存檔.排序 AS money)) 
1852 1862
                             AS [結果-年]
1853 1863
                 FROM        後台彙總存檔 LEFT OUTER JOIN
1854 1864
                             後台商客基本資料表 ON 後台彙總存檔.帳號 = 後台商客基本資料表.帳號 AND 

+ 3
- 3
GA-ERP-SYS/Module/全域變數.vb 查看文件

@@ -7,18 +7,18 @@
7 7
     Public 版本號, Target, Target1, Target2, FTP帳號, FTP密碼, FTP物理位置, 登入客戶, 登入資料庫, 業務名稱, AA(99), QA1, QA2, QA3, QA4, 到期 As String
8 8
     Public BB(99), CC(99), 登入判斷, IP印尼, IP台灣 As Boolean
9 9
     '----系統版本-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
10
-    Public 版本 As String = "2022120101"
10
+    Public 版本 As String = "2022120501"
11 11
     '----系統用全域變數-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
12 12
     '----系統閒置-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
13 13
     Public 判斷重登, 內外網, 重登確認, 主頁開啟, 無KEY登入, 內網區域, 關閉系統, 內網確認 As Boolean
14 14
     Public timeExit, timeExit2, timeNow, timeNow2 As Integer : Public 密碼時限 As Integer = 30 : Public 剩餘天數 As Integer
15 15
     '----全域字串變數-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
16 16
     Public 設定異常表0, 設定異常表1, 設定異常表2, 進度條後墜, 網址01, 主帳號01, 天周月, 開始D, 結束D As String
17
-    Public 異常表0, 異常表1, 異常表2, 計算累加, 分母, NN1, NN2, NN3, NN4, NN5, NN6, NN7, NN8, NN9 As Integer
17
+    Public 異常表0, 異常表1, 異常表2, 計算累加, 分母, NN1, NN2, NN3, NN4, NN5, NN6, NN7, NN8, NN9, NN10 As Integer
18 18
     Public PPAA, PA, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13, PA14, PA15, PA16, PA17, PA18, PA19, PA20, PA21 As String
19 19
     Public PA22, PA23, PA24, PA25, PA26, PA27, PA28, PA29, PA30, PA31, PA32, PA33, PA34, PA35, PA36, PA37, PA38, PA39, PA40, PA41 As String
20 20
     Public PA42, PA43, PA44, PA45, PA46, PA47, PA48, PA49 As String
21
-    Public PB1(300), PB2(300), PB3(300), PB4(300), PB5(300), PB6(300), PB7(300), PB8(300), PPBB(3000) As String
21
+    Public PB1(300), PB2(300), PB3(300), PB4(300), PB5(300), PB6(300), PB7(300), PB8(300), PPBB(3000), A(1000), B(1000), C(1000), D(1000), F(1000) As String
22 22
     '----全域數字變數-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
23 23
     Public NU1, NU2, NU3, NU4, NU5, 分段1, 分段2, 分段3, 分段4 As Double
24 24
     '----全域布林含數-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

二进制
GA-ERP-SYS/bin/Debug/GA-ERP-SYS.exe 查看文件


二进制
GA-ERP-SYS/bin/Debug/GA-ERP-SYS.pdb 查看文件


二进制
GA-ERP-SYS/obj/Debug/DesignTimeResolveAssemblyReferences.cache 查看文件


二进制
GA-ERP-SYS/obj/Debug/GA-ERP-SYS.exe 查看文件


二进制
GA-ERP-SYS/obj/Debug/GA-ERP-SYS.pdb 查看文件


+ 1
- 1
GA-ERP-SYS/obj/Debug/GA-ERP-SYS.vbproj.CoreCompileInputs.cache 查看文件

@@ -1 +1 @@
1
-01c5d6174df0e8ec26559c80514c5774c73c6eb5
1
+b1ab95c996c19da589d1cff242720f15ad5454f5

+ 1
- 0
GA-ERP-SYS/obj/Debug/GA-ERP-SYS.vbproj.FileListAbsolute.txt 查看文件

@@ -376,3 +376,4 @@ D:\工巧明\GA帳務通用ERP\GA-ERP-SYS\GA-ERP-SYS\obj\Debug\GA_ERP_SYS.電板
376 376
 D:\工巧明\GA帳務通用ERP\GA-ERP-SYS\GA-ERP-SYS\obj\Debug\GA_ERP_SYS.電板帳務彙總計算表.resources
377 377
 D:\工巧明\GA帳務通用ERP\GA-ERP-SYS\GA-ERP-SYS\obj\Debug\GA_ERP_SYS.後台帳務彙總結算表.resources
378 378
 D:\工巧明\GA帳務通用ERP\GA-ERP-SYS\GA-ERP-SYS\obj\Debug\GA_ERP_SYS.內網選擇.resources
379
+D:\工巧明\GA帳務通用ERP\GA-ERP-SYS\GA-ERP-SYS\obj\Debug\GA_ERP_SYS.彙總報表預覽.resources

二进制
GA-ERP-SYS/obj/Debug/GA-ERP-SYS.vbproj.GenerateResource.cache 查看文件


二进制
GA-ERP-SYS/obj/Debug/GA_ERP_SYS.彙總報表預覽.resources 查看文件


二进制
GA-ERP-SYS/obj/Debug/GA_ERP_SYS.系統公告.resources 查看文件


+ 164
- 0
GA-ERP-SYS/報表系統管理/前台/彙總報表預覽.Designer.vb 查看文件

@@ -0,0 +1,164 @@
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.合帳_dgv = New System.Windows.Forms.DataGridView()
27
+        Me.項次 = New System.Windows.Forms.DataGridViewTextBoxColumn()
28
+        Me.商品 = New System.Windows.Forms.DataGridViewTextBoxColumn()
29
+        Me.帳號 = New System.Windows.Forms.DataGridViewTextBoxColumn()
30
+        Me.階級 = New System.Windows.Forms.DataGridViewTextBoxColumn()
31
+        Me.交收金額 = New System.Windows.Forms.DataGridViewTextBoxColumn()
32
+        Me.信息_lb = New System.Windows.Forms.Label()
33
+        Me.彙總_lb = New System.Windows.Forms.Label()
34
+        Me.截圖_bt = New System.Windows.Forms.Button()
35
+        Me.Panel1 = New System.Windows.Forms.Panel()
36
+        CType(Me.合帳_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
37
+        Me.Panel1.SuspendLayout()
38
+        Me.SuspendLayout()
39
+        '
40
+        '合帳_dgv
41
+        '
42
+        Me.合帳_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
43
+            Or System.Windows.Forms.AnchorStyles.Left) _
44
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
45
+        Me.合帳_dgv.BackgroundColor = System.Drawing.Color.White
46
+        Me.合帳_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
47
+        Me.合帳_dgv.Columns.AddRange(New System.Windows.Forms.DataGridViewColumn() {Me.項次, Me.商品, Me.帳號, Me.階級, Me.交收金額})
48
+        Me.合帳_dgv.Location = New System.Drawing.Point(2, 25)
49
+        Me.合帳_dgv.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
50
+        Me.合帳_dgv.Name = "合帳_dgv"
51
+        Me.合帳_dgv.RowHeadersWidth = 4
52
+        DataGridViewCellStyle1.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
53
+        Me.合帳_dgv.RowsDefaultCellStyle = DataGridViewCellStyle1
54
+        Me.合帳_dgv.RowTemplate.Height = 24
55
+        Me.合帳_dgv.Size = New System.Drawing.Size(428, 257)
56
+        Me.合帳_dgv.TabIndex = 1677
57
+        '
58
+        '項次
59
+        '
60
+        Me.項次.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill
61
+        Me.項次.FillWeight = 60.0!
62
+        Me.項次.HeaderText = "項次"
63
+        Me.項次.Name = "項次"
64
+        '
65
+        '商品
66
+        '
67
+        Me.商品.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill
68
+        Me.商品.HeaderText = "商品"
69
+        Me.商品.Name = "商品"
70
+        '
71
+        '帳號
72
+        '
73
+        Me.帳號.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill
74
+        Me.帳號.HeaderText = "帳號"
75
+        Me.帳號.Name = "帳號"
76
+        '
77
+        '階級
78
+        '
79
+        Me.階級.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill
80
+        Me.階級.FillWeight = 60.0!
81
+        Me.階級.HeaderText = "階級"
82
+        Me.階級.Name = "階級"
83
+        '
84
+        '交收金額
85
+        '
86
+        Me.交收金額.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill
87
+        Me.交收金額.FillWeight = 150.0!
88
+        Me.交收金額.HeaderText = "交收金額"
89
+        Me.交收金額.Name = "交收金額"
90
+        '
91
+        '信息_lb
92
+        '
93
+        Me.信息_lb.AutoSize = True
94
+        Me.信息_lb.Location = New System.Drawing.Point(6, 5)
95
+        Me.信息_lb.Name = "信息_lb"
96
+        Me.信息_lb.Size = New System.Drawing.Size(40, 16)
97
+        Me.信息_lb.TabIndex = 1678
98
+        Me.信息_lb.Text = "..........."
99
+        '
100
+        '彙總_lb
101
+        '
102
+        Me.彙總_lb.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
103
+        Me.彙總_lb.AutoSize = True
104
+        Me.彙總_lb.Location = New System.Drawing.Point(293, 285)
105
+        Me.彙總_lb.Name = "彙總_lb"
106
+        Me.彙總_lb.Size = New System.Drawing.Size(134, 16)
107
+        Me.彙總_lb.TabIndex = 1679
108
+        Me.彙總_lb.Text = "交收總額 : XX,XXX,XXX"
109
+        '
110
+        '截圖_bt
111
+        '
112
+        Me.截圖_bt.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
113
+        Me.截圖_bt.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
114
+        Me.截圖_bt.Location = New System.Drawing.Point(388, 1)
115
+        Me.截圖_bt.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
116
+        Me.截圖_bt.Name = "截圖_bt"
117
+        Me.截圖_bt.Size = New System.Drawing.Size(42, 24)
118
+        Me.截圖_bt.TabIndex = 1680
119
+        Me.截圖_bt.Text = "截圖"
120
+        Me.截圖_bt.UseVisualStyleBackColor = True
121
+        '
122
+        'Panel1
123
+        '
124
+        Me.Panel1.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
125
+            Or System.Windows.Forms.AnchorStyles.Left) _
126
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
127
+        Me.Panel1.Controls.Add(Me.截圖_bt)
128
+        Me.Panel1.Controls.Add(Me.信息_lb)
129
+        Me.Panel1.Controls.Add(Me.彙總_lb)
130
+        Me.Panel1.Controls.Add(Me.合帳_dgv)
131
+        Me.Panel1.Location = New System.Drawing.Point(-1, -1)
132
+        Me.Panel1.Name = "Panel1"
133
+        Me.Panel1.Size = New System.Drawing.Size(434, 305)
134
+        Me.Panel1.TabIndex = 1681
135
+        '
136
+        '彙總報表預覽
137
+        '
138
+        Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
139
+        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
140
+        Me.ClientSize = New System.Drawing.Size(432, 303)
141
+        Me.Controls.Add(Me.Panel1)
142
+        Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
143
+        Me.Margin = New System.Windows.Forms.Padding(4)
144
+        Me.Name = "彙總報表預覽"
145
+        Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
146
+        Me.Text = "彙總報表預覽"
147
+        CType(Me.合帳_dgv, System.ComponentModel.ISupportInitialize).EndInit()
148
+        Me.Panel1.ResumeLayout(False)
149
+        Me.Panel1.PerformLayout()
150
+        Me.ResumeLayout(False)
151
+
152
+    End Sub
153
+
154
+    Friend WithEvents 合帳_dgv As DataGridView
155
+    Friend WithEvents 信息_lb As Label
156
+    Friend WithEvents 項次 As DataGridViewTextBoxColumn
157
+    Friend WithEvents 商品 As DataGridViewTextBoxColumn
158
+    Friend WithEvents 帳號 As DataGridViewTextBoxColumn
159
+    Friend WithEvents 階級 As DataGridViewTextBoxColumn
160
+    Friend WithEvents 交收金額 As DataGridViewTextBoxColumn
161
+    Friend WithEvents 彙總_lb As Label
162
+    Friend WithEvents 截圖_bt As Button
163
+    Friend WithEvents Panel1 As Panel
164
+End Class

+ 135
- 0
GA-ERP-SYS/報表系統管理/前台/彙總報表預覽.resx 查看文件

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

+ 57
- 0
GA-ERP-SYS/報表系統管理/前台/彙總報表預覽.vb 查看文件

@@ -0,0 +1,57 @@
1
+Public Class 彙總報表預覽
2
+    Dim 不計算 As Boolean = False : Dim NS1 As Integer
3
+    Private Sub 彙總報表預覽_Load(sender As Object, e As EventArgs) Handles MyBase.Load
4
+        合帳_dgv.RowsDefaultCellStyle.Font = New System.Drawing.Font("微軟正黑體", 7.6)
5
+    End Sub
6
+    Private Sub 彙總報表預覽_Shown(sender As Object, e As EventArgs) Handles MyBase.Shown
7
+        合帳_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
8
+        合帳_dgv.ColumnHeadersHeight = 25 : 合帳_dgv.AllowUserToAddRows = False
9
+        合帳_dgv.Columns(4).DefaultCellStyle.Format = "#,##0"
10
+        合帳_dgv.Columns(4).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
11
+        合帳_dgv.RowTemplate.Height = 19
12
+        For i As Integer = 0 To 合帳_dgv.Rows.Count - 1 : 合帳_dgv.Rows.RemoveAt(0) : Next
13
+        For i As Integer = 0 To NN10 : 合帳_dgv.Rows.Insert(0) : Next
14
+        信息_lb.Text = PA49 : NS1 = 0
15
+        For i As Integer = 0 To NN10 - 1
16
+            合帳_dgv.Rows(i).Cells(0).Value = i + 1 : 合帳_dgv.Rows(i).Cells(1).Value = B(i) : 合帳_dgv.Rows(i).Cells(2).Value = C(i)
17
+            合帳_dgv.Rows(i).Cells(3).Value = D(i) : 合帳_dgv.Rows(i).Cells(4).Value = F(i)
18
+            If 合帳_dgv.Rows(i).Cells(4).Value.ToString <> "" Then
19
+                NS1 += CInt(合帳_dgv.Rows(i).Cells(4).Value)
20
+            End If
21
+        Next : 不計算 = True
22
+        彙總_lb.Text = "交收總額 : " & Strings.Format(NS1, "#,##0")
23
+    End Sub
24
+    Private Sub 合帳_dgv_CellFormatting(sender As Object, e As DataGridViewCellFormattingEventArgs) Handles 合帳_dgv.CellFormatting
25
+        If 不計算 = True Then
26
+            If e.Value <> Nothing Then
27
+                If IsNumeric(e.Value.ToString) = True Then
28
+                    If CInt(e.Value.ToString) < 0 Then : e.CellStyle.ForeColor = Color.Red
29
+                    ElseIf CInt(e.Value.ToString) >= 0 Then : e.CellStyle.ForeColor = Color.Blue : End If
30
+                End If
31
+            End If
32
+        End If
33
+    End Sub
34
+    'Private Sub 合帳_dgv_RowPostPaint(ByVal sender As Object, ByVal e As DataGridViewRowPostPaintEventArgs) Handles 合帳_dgv.RowPostPaint
35
+    '    If 不計算 = True Then
36
+    '        Dim linePen As New Pen(Color.Blue, 2)
37
+    '        If e.RowIndex = 合帳_dgv.Rows.Count - 1 Then
38
+    '            Exit Sub
39
+    '        Else
40
+    '            If 合帳_dgv(3, e.RowIndex + 1).Value <> Nothing Then
41
+    '                If 合帳_dgv(3, e.RowIndex).Value.ToString.ToLower() <> 合帳_dgv(3, e.RowIndex + 1).Value.ToString.ToLower() Then
42
+    '                    Dim startX As Integer = IIf(合帳_dgv.RowHeadersVisible, 合帳_dgv.RowHeadersWidth, 0)
43
+    '                    Dim startY As Integer = e.RowBounds.Top + e.RowBounds.Height - 1
44
+    '                    Dim endX As Integer = startX + 合帳_dgv.Columns.GetColumnsWidth(DataGridViewElementStates.Visible) - 合帳_dgv.HorizontalScrollingOffset
45
+    '                    e.Graphics.DrawLine(linePen, startX, startY, endX, startY)
46
+    '                    Exit Sub
47
+    '                End If
48
+    '            End If
49
+    '        End If
50
+    '    End If
51
+    'End Sub
52
+    Private Sub 截圖_bt_Click(sender As Object, e As EventArgs) Handles 截圖_bt.Click
53
+        Dim bm = New Bitmap(Panel1.Width, Panel1.Height)
54
+        Panel1.DrawToBitmap(bm, Panel1.ClientRectangle)
55
+        My.Computer.Clipboard.SetImage(bm)
56
+    End Sub
57
+End Class

+ 146
- 65
GA-ERP-SYS/報表系統管理/前台/電板帳務彙總計算表.Designer.vb 查看文件

@@ -54,7 +54,6 @@ Partial Class 電板帳務彙總計算表
54 54
         Dim DataGridViewCellStyle29 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
55 55
         Dim DataGridViewCellStyle30 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
56 56
         Dim DataGridViewCellStyle31 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
57
-        Dim DataGridViewCellStyle50 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
58 57
         Dim DataGridViewCellStyle32 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
59 58
         Dim DataGridViewCellStyle33 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
60 59
         Dim DataGridViewCellStyle34 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
@@ -73,6 +72,7 @@ Partial Class 電板帳務彙總計算表
73 72
         Dim DataGridViewCellStyle47 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
74 73
         Dim DataGridViewCellStyle48 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
75 74
         Dim DataGridViewCellStyle49 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
75
+        Dim DataGridViewCellStyle50 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
76 76
         Dim DataGridViewCellStyle51 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
77 77
         Dim DataGridViewCellStyle52 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
78 78
         Dim DataGridViewCellStyle53 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
@@ -175,11 +175,11 @@ Partial Class 電板帳務彙總計算表
175 175
         Me.紅利總表_dgv = New System.Windows.Forms.DataGridView()
176 176
         Me.上下所水分流表_bt = New System.Windows.Forms.Button()
177 177
         Me.Panel2 = New System.Windows.Forms.Panel()
178
+        Me.報表_bt = New System.Windows.Forms.Button()
178 179
         Me.SplitContainer3 = New System.Windows.Forms.SplitContainer()
179 180
         Me.地帳2_tb = New System.Windows.Forms.TextBox()
180
-        Me.水差合帳2_dgv = New System.Windows.Forms.DataGridView()
181
-        Me.水差合帳1_dgv = New System.Windows.Forms.DataGridView()
182 181
         Me.水差2_tb = New System.Windows.Forms.TextBox()
182
+        Me.水差合帳2_dgv = New System.Windows.Forms.DataGridView()
183 183
         Me.SplitContainer2 = New System.Windows.Forms.SplitContainer()
184 184
         Me.天帳2_tb = New System.Windows.Forms.TextBox()
185 185
         Me.所得合帳2_dgv = New System.Windows.Forms.DataGridView()
@@ -195,6 +195,7 @@ Partial Class 電板帳務彙總計算表
195 195
         Me.手工帳務存檔_bt = New System.Windows.Forms.Button()
196 196
         Me.紙帳非前期_dgv = New System.Windows.Forms.DataGridView()
197 197
         Me.截圖_bt = New System.Windows.Forms.Button()
198
+        Me.水差合帳1_dgv = New System.Windows.Forms.DataGridView()
198 199
         Me.Panel3 = New System.Windows.Forms.Panel()
199 200
         Me.開始日期2_dtp = New System.Windows.Forms.DateTimePicker()
200 201
         Me.結束日期2_dtp = New System.Windows.Forms.DateTimePicker()
@@ -209,7 +210,6 @@ Partial Class 電板帳務彙總計算表
209 210
         Me.紙帳導入_dgv = New System.Windows.Forms.DataGridView()
210 211
         Me.電板所得_dgv = New System.Windows.Forms.DataGridView()
211 212
         Me.通知1_lb = New System.Windows.Forms.Label()
212
-        Me.PictureBox1 = New System.Windows.Forms.PictureBox()
213 213
         Me.網址修正_dgv = New System.Windows.Forms.DataGridView()
214 214
         Me.Label9 = New System.Windows.Forms.Label()
215 215
         Me.Label10 = New System.Windows.Forms.Label()
@@ -226,6 +226,10 @@ Partial Class 電板帳務彙總計算表
226 226
         Me.Label56 = New System.Windows.Forms.Label()
227 227
         Me.CanceL4_bt = New System.Windows.Forms.Button()
228 228
         Me.Panel4 = New System.Windows.Forms.Panel()
229
+        Me.自動調整存檔_bt = New System.Windows.Forms.Button()
230
+        Me.依球版習慣_ch = New System.Windows.Forms.CheckBox()
231
+        Me.依電板習慣_ch = New System.Windows.Forms.CheckBox()
232
+        Me.自動正負反_ch = New System.Windows.Forms.CheckBox()
229 233
         Me.合帳_bt = New System.Windows.Forms.Button()
230 234
         Me.Label6 = New System.Windows.Forms.Label()
231 235
         Me.列印1_bt = New System.Windows.Forms.Button()
@@ -240,6 +244,8 @@ Partial Class 電板帳務彙總計算表
240 244
         Me.核帳0_tb = New System.Windows.Forms.TextBox()
241 245
         Me.SplitContainer4 = New System.Windows.Forms.SplitContainer()
242 246
         Me.其他操作功能_bt = New System.Windows.Forms.Button()
247
+        Me.PictureBox1 = New System.Windows.Forms.PictureBox()
248
+        Me.Label20 = New System.Windows.Forms.Label()
243 249
         CType(Me.流水帳_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
244 250
         CType(Me.彙總_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
245 251
         CType(Me.彙總1_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
@@ -270,7 +276,6 @@ Partial Class 電板帳務彙總計算表
270 276
         Me.SplitContainer3.Panel2.SuspendLayout()
271 277
         Me.SplitContainer3.SuspendLayout()
272 278
         CType(Me.水差合帳2_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
273
-        CType(Me.水差合帳1_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
274 279
         CType(Me.SplitContainer2, System.ComponentModel.ISupportInitialize).BeginInit()
275 280
         Me.SplitContainer2.Panel1.SuspendLayout()
276 281
         Me.SplitContainer2.Panel2.SuspendLayout()
@@ -286,13 +291,13 @@ Partial Class 電板帳務彙總計算表
286 291
         CType(Me.紅利支出_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
287 292
         CType(Me.紙帳前期_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
288 293
         CType(Me.紙帳非前期_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
294
+        CType(Me.水差合帳1_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
289 295
         Me.Panel3.SuspendLayout()
290 296
         CType(Me.電板客戶_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
291 297
         CType(Me.電板紙帳1_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
292 298
         CType(Me.紙帳流水1_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
293 299
         CType(Me.紙帳導入_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
294 300
         CType(Me.電板所得_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
295
-        CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).BeginInit()
296 301
         CType(Me.網址修正_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
297 302
         CType(Me.自定帳務_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
298 303
         Me.視窗4_pl.SuspendLayout()
@@ -301,6 +306,7 @@ Partial Class 電板帳務彙總計算表
301 306
         Me.SplitContainer4.Panel1.SuspendLayout()
302 307
         Me.SplitContainer4.Panel2.SuspendLayout()
303 308
         Me.SplitContainer4.SuspendLayout()
309
+        CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).BeginInit()
304 310
         Me.SuspendLayout()
305 311
         '
306 312
         '流水帳_dgv
@@ -372,7 +378,7 @@ Partial Class 電板帳務彙總計算表
372 378
         '
373 379
         Me.彙總_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
374 380
             Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
375
-        Me.彙總_dgv.BackgroundColor = System.Drawing.Color.White
381
+        Me.彙總_dgv.BackgroundColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer))
376 382
         DataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft
377 383
         DataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control
378 384
         DataGridViewCellStyle2.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
@@ -1484,6 +1490,7 @@ Partial Class 電板帳務彙總計算表
1484 1490
         '
1485 1491
         Me.Panel2.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
1486 1492
             Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1493
+        Me.Panel2.Controls.Add(Me.報表_bt)
1487 1494
         Me.Panel2.Controls.Add(Me.SplitContainer3)
1488 1495
         Me.Panel2.Controls.Add(Me.SplitContainer2)
1489 1496
         Me.Panel2.Controls.Add(Me.SplitContainer1)
@@ -1502,6 +1509,17 @@ Partial Class 電板帳務彙總計算表
1502 1509
         Me.Panel2.Size = New System.Drawing.Size(737, 913)
1503 1510
         Me.Panel2.TabIndex = 1683
1504 1511
         '
1512
+        '報表_bt
1513
+        '
1514
+        Me.報表_bt.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
1515
+        Me.報表_bt.Location = New System.Drawing.Point(602, 2)
1516
+        Me.報表_bt.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
1517
+        Me.報表_bt.Name = "報表_bt"
1518
+        Me.報表_bt.Size = New System.Drawing.Size(42, 24)
1519
+        Me.報表_bt.TabIndex = 1703
1520
+        Me.報表_bt.Text = "預覽"
1521
+        Me.報表_bt.UseVisualStyleBackColor = True
1522
+        '
1505 1523
         'SplitContainer3
1506 1524
         '
1507 1525
         Me.SplitContainer3.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
@@ -1540,6 +1558,18 @@ Partial Class 電板帳務彙總計算表
1540 1558
         Me.地帳2_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
1541 1559
         Me.地帳2_tb.Visible = False
1542 1560
         '
1561
+        '水差2_tb
1562
+        '
1563
+        Me.水差2_tb.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1564
+        Me.水差2_tb.ForeColor = System.Drawing.Color.Green
1565
+        Me.水差2_tb.Location = New System.Drawing.Point(1, 353)
1566
+        Me.水差2_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
1567
+        Me.水差2_tb.Name = "水差2_tb"
1568
+        Me.水差2_tb.Size = New System.Drawing.Size(57, 23)
1569
+        Me.水差2_tb.TabIndex = 1692
1570
+        Me.水差2_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
1571
+        Me.水差2_tb.Visible = False
1572
+        '
1543 1573
         '水差合帳2_dgv
1544 1574
         '
1545 1575
         Me.水差合帳2_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
@@ -1573,35 +1603,6 @@ Partial Class 電板帳務彙總計算表
1573 1603
         Me.水差合帳2_dgv.Size = New System.Drawing.Size(280, 353)
1574 1604
         Me.水差合帳2_dgv.TabIndex = 1699
1575 1605
         '
1576
-        '水差合帳1_dgv
1577
-        '
1578
-        Me.水差合帳1_dgv.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1579
-        Me.水差合帳1_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
1580
-        Me.水差合帳1_dgv.BackgroundColor = System.Drawing.Color.White
1581
-        Me.水差合帳1_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
1582
-        Me.水差合帳1_dgv.Location = New System.Drawing.Point(35, 540)
1583
-        Me.水差合帳1_dgv.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
1584
-        Me.水差合帳1_dgv.Name = "水差合帳1_dgv"
1585
-        Me.水差合帳1_dgv.RowHeadersWidth = 4
1586
-        DataGridViewCellStyle50.Font = New System.Drawing.Font("新細明體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1587
-        Me.水差合帳1_dgv.RowsDefaultCellStyle = DataGridViewCellStyle50
1588
-        Me.水差合帳1_dgv.RowTemplate.Height = 24
1589
-        Me.水差合帳1_dgv.Size = New System.Drawing.Size(280, 110)
1590
-        Me.水差合帳1_dgv.TabIndex = 1698
1591
-        Me.水差合帳1_dgv.Visible = False
1592
-        '
1593
-        '水差2_tb
1594
-        '
1595
-        Me.水差2_tb.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1596
-        Me.水差2_tb.ForeColor = System.Drawing.Color.Green
1597
-        Me.水差2_tb.Location = New System.Drawing.Point(1, 353)
1598
-        Me.水差2_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
1599
-        Me.水差2_tb.Name = "水差2_tb"
1600
-        Me.水差2_tb.Size = New System.Drawing.Size(57, 23)
1601
-        Me.水差2_tb.TabIndex = 1692
1602
-        Me.水差2_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
1603
-        Me.水差2_tb.Visible = False
1604
-        '
1605 1606
         'SplitContainer2
1606 1607
         '
1607 1608
         Me.SplitContainer2.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
@@ -1928,14 +1929,31 @@ Partial Class 電板帳務彙總計算表
1928 1929
         '截圖_bt
1929 1930
         '
1930 1931
         Me.截圖_bt.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
1931
-        Me.截圖_bt.Location = New System.Drawing.Point(566, 2)
1932
+        Me.截圖_bt.Location = New System.Drawing.Point(558, 2)
1932 1933
         Me.截圖_bt.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
1933 1934
         Me.截圖_bt.Name = "截圖_bt"
1934
-        Me.截圖_bt.Size = New System.Drawing.Size(80, 24)
1935
+        Me.截圖_bt.Size = New System.Drawing.Size(42, 24)
1935 1936
         Me.截圖_bt.TabIndex = 1628
1936 1937
         Me.截圖_bt.Text = "截圖"
1937 1938
         Me.截圖_bt.UseVisualStyleBackColor = True
1938 1939
         '
1940
+        '水差合帳1_dgv
1941
+        '
1942
+        Me.水差合帳1_dgv.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1943
+        Me.水差合帳1_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
1944
+        Me.水差合帳1_dgv.BackgroundColor = System.Drawing.Color.White
1945
+        Me.水差合帳1_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
1946
+        Me.水差合帳1_dgv.Location = New System.Drawing.Point(35, 540)
1947
+        Me.水差合帳1_dgv.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
1948
+        Me.水差合帳1_dgv.Name = "水差合帳1_dgv"
1949
+        Me.水差合帳1_dgv.RowHeadersWidth = 4
1950
+        DataGridViewCellStyle50.Font = New System.Drawing.Font("新細明體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1951
+        Me.水差合帳1_dgv.RowsDefaultCellStyle = DataGridViewCellStyle50
1952
+        Me.水差合帳1_dgv.RowTemplate.Height = 24
1953
+        Me.水差合帳1_dgv.Size = New System.Drawing.Size(280, 110)
1954
+        Me.水差合帳1_dgv.TabIndex = 1698
1955
+        Me.水差合帳1_dgv.Visible = False
1956
+        '
1939 1957
         'Panel3
1940 1958
         '
1941 1959
         Me.Panel3.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
@@ -2139,17 +2157,6 @@ Partial Class 電板帳務彙總計算表
2139 2157
         Me.通知1_lb.TabIndex = 1697
2140 2158
         Me.通知1_lb.Text = "所得股份自動分配功能未開啟"
2141 2159
         '
2142
-        'PictureBox1
2143
-        '
2144
-        Me.PictureBox1.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
2145
-        Me.PictureBox1.BackgroundImage = Global.GA_ERP_SYS.My.Resources.Resources._1627008239190
2146
-        Me.PictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch
2147
-        Me.PictureBox1.Location = New System.Drawing.Point(949, 944)
2148
-        Me.PictureBox1.Name = "PictureBox1"
2149
-        Me.PictureBox1.Size = New System.Drawing.Size(385, 25)
2150
-        Me.PictureBox1.TabIndex = 1619
2151
-        Me.PictureBox1.TabStop = False
2152
-        '
2153 2160
         '網址修正_dgv
2154 2161
         '
2155 2162
         DataGridViewCellStyle56.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
@@ -2307,9 +2314,9 @@ Partial Class 電板帳務彙總計算表
2307 2314
         Me.視窗4_pl.Controls.Add(Me.Label56)
2308 2315
         Me.視窗4_pl.Controls.Add(Me.CanceL4_bt)
2309 2316
         Me.視窗4_pl.Controls.Add(Me.Panel4)
2310
-        Me.視窗4_pl.Location = New System.Drawing.Point(190, 246)
2317
+        Me.視窗4_pl.Location = New System.Drawing.Point(190, 214)
2311 2318
         Me.視窗4_pl.Name = "視窗4_pl"
2312
-        Me.視窗4_pl.Size = New System.Drawing.Size(376, 118)
2319
+        Me.視窗4_pl.Size = New System.Drawing.Size(396, 159)
2313 2320
         Me.視窗4_pl.TabIndex = 1715
2314 2321
         '
2315 2322
         'Label56
@@ -2327,7 +2334,7 @@ Partial Class 電板帳務彙總計算表
2327 2334
         Me.CanceL4_bt.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(128, Byte), Integer), CType(CType(128, Byte), Integer))
2328 2335
         Me.CanceL4_bt.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
2329 2336
         Me.CanceL4_bt.ForeColor = System.Drawing.Color.Black
2330
-        Me.CanceL4_bt.Location = New System.Drawing.Point(344, 1)
2337
+        Me.CanceL4_bt.Location = New System.Drawing.Point(364, 1)
2331 2338
         Me.CanceL4_bt.Name = "CanceL4_bt"
2332 2339
         Me.CanceL4_bt.Size = New System.Drawing.Size(26, 26)
2333 2340
         Me.CanceL4_bt.TabIndex = 1374
@@ -2340,6 +2347,10 @@ Partial Class 電板帳務彙總計算表
2340 2347
             Or System.Windows.Forms.AnchorStyles.Left) _
2341 2348
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
2342 2349
         Me.Panel4.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
2350
+        Me.Panel4.Controls.Add(Me.自動調整存檔_bt)
2351
+        Me.Panel4.Controls.Add(Me.依球版習慣_ch)
2352
+        Me.Panel4.Controls.Add(Me.依電板習慣_ch)
2353
+        Me.Panel4.Controls.Add(Me.自動正負反_ch)
2343 2354
         Me.Panel4.Controls.Add(Me.合帳_bt)
2344 2355
         Me.Panel4.Controls.Add(Me.Label6)
2345 2356
         Me.Panel4.Controls.Add(Me.列印1_bt)
@@ -2352,11 +2363,53 @@ Partial Class 電板帳務彙總計算表
2352 2363
         Me.Panel4.Controls.Add(Me.正負調整存檔_bt)
2353 2364
         Me.Panel4.Controls.Add(Me.股東紅利設定_bt)
2354 2365
         Me.Panel4.Controls.Add(Me.核帳0_tb)
2366
+        Me.Panel4.Controls.Add(Me.Label20)
2355 2367
         Me.Panel4.Location = New System.Drawing.Point(3, 27)
2356 2368
         Me.Panel4.Name = "Panel4"
2357
-        Me.Panel4.Size = New System.Drawing.Size(368, 87)
2369
+        Me.Panel4.Size = New System.Drawing.Size(388, 128)
2358 2370
         Me.Panel4.TabIndex = 1713
2359 2371
         '
2372
+        '自動調整存檔_bt
2373
+        '
2374
+        Me.自動調整存檔_bt.ForeColor = System.Drawing.Color.Teal
2375
+        Me.自動調整存檔_bt.Location = New System.Drawing.Point(85, 79)
2376
+        Me.自動調整存檔_bt.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
2377
+        Me.自動調整存檔_bt.Name = "自動調整存檔_bt"
2378
+        Me.自動調整存檔_bt.Size = New System.Drawing.Size(90, 26)
2379
+        Me.自動調整存檔_bt.TabIndex = 1703
2380
+        Me.自動調整存檔_bt.Text = "自動調整存檔"
2381
+        Me.自動調整存檔_bt.UseVisualStyleBackColor = True
2382
+        '
2383
+        '依球版習慣_ch
2384
+        '
2385
+        Me.依球版習慣_ch.AutoSize = True
2386
+        Me.依球版習慣_ch.Location = New System.Drawing.Point(87, 57)
2387
+        Me.依球版習慣_ch.Name = "依球版習慣_ch"
2388
+        Me.依球版習慣_ch.Size = New System.Drawing.Size(86, 20)
2389
+        Me.依球版習慣_ch.TabIndex = 1702
2390
+        Me.依球版習慣_ch.Text = "依球版習慣"
2391
+        Me.依球版習慣_ch.UseVisualStyleBackColor = True
2392
+        '
2393
+        '依電板習慣_ch
2394
+        '
2395
+        Me.依電板習慣_ch.AutoSize = True
2396
+        Me.依電板習慣_ch.Location = New System.Drawing.Point(87, 31)
2397
+        Me.依電板習慣_ch.Name = "依電板習慣_ch"
2398
+        Me.依電板習慣_ch.Size = New System.Drawing.Size(86, 20)
2399
+        Me.依電板習慣_ch.TabIndex = 1701
2400
+        Me.依電板習慣_ch.Text = "依電板習慣"
2401
+        Me.依電板習慣_ch.UseVisualStyleBackColor = True
2402
+        '
2403
+        '自動正負反_ch
2404
+        '
2405
+        Me.自動正負反_ch.AutoSize = True
2406
+        Me.自動正負反_ch.Location = New System.Drawing.Point(87, 5)
2407
+        Me.自動正負反_ch.Name = "自動正負反_ch"
2408
+        Me.自動正負反_ch.Size = New System.Drawing.Size(86, 20)
2409
+        Me.自動正負反_ch.TabIndex = 1700
2410
+        Me.自動正負反_ch.Text = "自動正負反"
2411
+        Me.自動正負反_ch.UseVisualStyleBackColor = True
2412
+        '
2360 2413
         '合帳_bt
2361 2414
         '
2362 2415
         Me.合帳_bt.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
@@ -2373,7 +2426,7 @@ Partial Class 電板帳務彙總計算表
2373 2426
         Me.Label6.AutoSize = True
2374 2427
         Me.Label6.Font = New System.Drawing.Font("微軟正黑體", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
2375 2428
         Me.Label6.ForeColor = System.Drawing.Color.Purple
2376
-        Me.Label6.Location = New System.Drawing.Point(82, 59)
2429
+        Me.Label6.Location = New System.Drawing.Point(282, 85)
2377 2430
         Me.Label6.Name = "Label6"
2378 2431
         Me.Label6.Size = New System.Drawing.Size(34, 17)
2379 2432
         Me.Label6.TabIndex = 1699
@@ -2382,10 +2435,10 @@ Partial Class 電板帳務彙總計算表
2382 2435
         '列印1_bt
2383 2436
         '
2384 2437
         Me.列印1_bt.ForeColor = System.Drawing.Color.Green
2385
-        Me.列印1_bt.Location = New System.Drawing.Point(82, 2)
2438
+        Me.列印1_bt.Location = New System.Drawing.Point(176, 2)
2386 2439
         Me.列印1_bt.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
2387 2440
         Me.列印1_bt.Name = "列印1_bt"
2388
-        Me.列印1_bt.Size = New System.Drawing.Size(80, 26)
2441
+        Me.列印1_bt.Size = New System.Drawing.Size(99, 26)
2389 2442
         Me.列印1_bt.TabIndex = 1609
2390 2443
         Me.列印1_bt.Text = "列印成Excel"
2391 2444
         Me.列印1_bt.UseVisualStyleBackColor = True
@@ -2404,7 +2457,7 @@ Partial Class 電板帳務彙總計算表
2404 2457
         '合帳_商品_bt
2405 2458
         '
2406 2459
         Me.合帳_商品_bt.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
2407
-        Me.合帳_商品_bt.Location = New System.Drawing.Point(263, 2)
2460
+        Me.合帳_商品_bt.Location = New System.Drawing.Point(278, 2)
2408 2461
         Me.合帳_商品_bt.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
2409 2462
         Me.合帳_商品_bt.Name = "合帳_商品_bt"
2410 2463
         Me.合帳_商品_bt.Size = New System.Drawing.Size(100, 26)
@@ -2426,7 +2479,7 @@ Partial Class 電板帳務彙總計算表
2426 2479
         '異常設定_bt
2427 2480
         '
2428 2481
         Me.異常設定_bt.ForeColor = System.Drawing.Color.Red
2429
-        Me.異常設定_bt.Location = New System.Drawing.Point(163, 54)
2482
+        Me.異常設定_bt.Location = New System.Drawing.Point(176, 80)
2430 2483
         Me.異常設定_bt.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
2431 2484
         Me.異常設定_bt.Name = "異常設定_bt"
2432 2485
         Me.異常設定_bt.Size = New System.Drawing.Size(100, 26)
@@ -2437,7 +2490,7 @@ Partial Class 電板帳務彙總計算表
2437 2490
         '合帳_帳號_tb
2438 2491
         '
2439 2492
         Me.合帳_帳號_tb.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
2440
-        Me.合帳_帳號_tb.Location = New System.Drawing.Point(263, 28)
2493
+        Me.合帳_帳號_tb.Location = New System.Drawing.Point(278, 28)
2441 2494
         Me.合帳_帳號_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
2442 2495
         Me.合帳_帳號_tb.Name = "合帳_帳號_tb"
2443 2496
         Me.合帳_帳號_tb.Size = New System.Drawing.Size(100, 26)
@@ -2448,7 +2501,7 @@ Partial Class 電板帳務彙總計算表
2448 2501
         '合帳_子帳號_tb
2449 2502
         '
2450 2503
         Me.合帳_子帳號_tb.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
2451
-        Me.合帳_子帳號_tb.Location = New System.Drawing.Point(263, 54)
2504
+        Me.合帳_子帳號_tb.Location = New System.Drawing.Point(278, 54)
2452 2505
         Me.合帳_子帳號_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
2453 2506
         Me.合帳_子帳號_tb.Name = "合帳_子帳號_tb"
2454 2507
         Me.合帳_子帳號_tb.Size = New System.Drawing.Size(100, 26)
@@ -2459,7 +2512,7 @@ Partial Class 電板帳務彙總計算表
2459 2512
         '正負調整存檔_bt
2460 2513
         '
2461 2514
         Me.正負調整存檔_bt.ForeColor = System.Drawing.Color.Teal
2462
-        Me.正負調整存檔_bt.Location = New System.Drawing.Point(163, 2)
2515
+        Me.正負調整存檔_bt.Location = New System.Drawing.Point(176, 28)
2463 2516
         Me.正負調整存檔_bt.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
2464 2517
         Me.正負調整存檔_bt.Name = "正負調整存檔_bt"
2465 2518
         Me.正負調整存檔_bt.Size = New System.Drawing.Size(100, 26)
@@ -2470,7 +2523,7 @@ Partial Class 電板帳務彙總計算表
2470 2523
         '股東紅利設定_bt
2471 2524
         '
2472 2525
         Me.股東紅利設定_bt.ForeColor = System.Drawing.Color.Teal
2473
-        Me.股東紅利設定_bt.Location = New System.Drawing.Point(163, 28)
2526
+        Me.股東紅利設定_bt.Location = New System.Drawing.Point(176, 54)
2474 2527
         Me.股東紅利設定_bt.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
2475 2528
         Me.股東紅利設定_bt.Name = "股東紅利設定_bt"
2476 2529
         Me.股東紅利設定_bt.Size = New System.Drawing.Size(100, 26)
@@ -2481,7 +2534,7 @@ Partial Class 電板帳務彙總計算表
2481 2534
         '核帳0_tb
2482 2535
         '
2483 2536
         Me.核帳0_tb.ForeColor = System.Drawing.Color.Purple
2484
-        Me.核帳0_tb.Location = New System.Drawing.Point(113, 56)
2537
+        Me.核帳0_tb.Location = New System.Drawing.Point(325, 82)
2485 2538
         Me.核帳0_tb.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
2486 2539
         Me.核帳0_tb.Name = "核帳0_tb"
2487 2540
         Me.核帳0_tb.Size = New System.Drawing.Size(47, 23)
@@ -2533,6 +2586,28 @@ Partial Class 電板帳務彙總計算表
2533 2586
         Me.其他操作功能_bt.Text = "其他操作功能"
2534 2587
         Me.其他操作功能_bt.UseVisualStyleBackColor = True
2535 2588
         '
2589
+        'PictureBox1
2590
+        '
2591
+        Me.PictureBox1.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
2592
+        Me.PictureBox1.BackgroundImage = Global.GA_ERP_SYS.My.Resources.Resources._1627008239190
2593
+        Me.PictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch
2594
+        Me.PictureBox1.Location = New System.Drawing.Point(949, 944)
2595
+        Me.PictureBox1.Name = "PictureBox1"
2596
+        Me.PictureBox1.Size = New System.Drawing.Size(385, 25)
2597
+        Me.PictureBox1.TabIndex = 1619
2598
+        Me.PictureBox1.TabStop = False
2599
+        '
2600
+        'Label20
2601
+        '
2602
+        Me.Label20.AutoSize = True
2603
+        Me.Label20.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
2604
+        Me.Label20.ForeColor = System.Drawing.Color.Red
2605
+        Me.Label20.Location = New System.Drawing.Point(11, 106)
2606
+        Me.Label20.Name = "Label20"
2607
+        Me.Label20.Size = New System.Drawing.Size(359, 15)
2608
+        Me.Label20.TabIndex = 1704
2609
+        Me.Label20.Text = "請注意,自動判斷正負反的功能不一定適合使用者的習慣,請斟酌使用。"
2610
+        '
2536 2611
         '電板帳務彙總計算表
2537 2612
         '
2538 2613
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
@@ -2614,7 +2689,6 @@ Partial Class 電板帳務彙總計算表
2614 2689
         CType(Me.SplitContainer3, System.ComponentModel.ISupportInitialize).EndInit()
2615 2690
         Me.SplitContainer3.ResumeLayout(False)
2616 2691
         CType(Me.水差合帳2_dgv, System.ComponentModel.ISupportInitialize).EndInit()
2617
-        CType(Me.水差合帳1_dgv, System.ComponentModel.ISupportInitialize).EndInit()
2618 2692
         Me.SplitContainer2.Panel1.ResumeLayout(False)
2619 2693
         Me.SplitContainer2.Panel1.PerformLayout()
2620 2694
         Me.SplitContainer2.Panel2.ResumeLayout(False)
@@ -2632,6 +2706,7 @@ Partial Class 電板帳務彙總計算表
2632 2706
         CType(Me.紅利支出_dgv, System.ComponentModel.ISupportInitialize).EndInit()
2633 2707
         CType(Me.紙帳前期_dgv, System.ComponentModel.ISupportInitialize).EndInit()
2634 2708
         CType(Me.紙帳非前期_dgv, System.ComponentModel.ISupportInitialize).EndInit()
2709
+        CType(Me.水差合帳1_dgv, System.ComponentModel.ISupportInitialize).EndInit()
2635 2710
         Me.Panel3.ResumeLayout(False)
2636 2711
         Me.Panel3.PerformLayout()
2637 2712
         CType(Me.電板客戶_dgv, System.ComponentModel.ISupportInitialize).EndInit()
@@ -2639,7 +2714,6 @@ Partial Class 電板帳務彙總計算表
2639 2714
         CType(Me.紙帳流水1_dgv, System.ComponentModel.ISupportInitialize).EndInit()
2640 2715
         CType(Me.紙帳導入_dgv, System.ComponentModel.ISupportInitialize).EndInit()
2641 2716
         CType(Me.電板所得_dgv, System.ComponentModel.ISupportInitialize).EndInit()
2642
-        CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).EndInit()
2643 2717
         CType(Me.網址修正_dgv, System.ComponentModel.ISupportInitialize).EndInit()
2644 2718
         CType(Me.自定帳務_dgv, System.ComponentModel.ISupportInitialize).EndInit()
2645 2719
         Me.視窗4_pl.ResumeLayout(False)
@@ -2652,6 +2726,7 @@ Partial Class 電板帳務彙總計算表
2652 2726
         Me.SplitContainer4.Panel2.PerformLayout()
2653 2727
         CType(Me.SplitContainer4, System.ComponentModel.ISupportInitialize).EndInit()
2654 2728
         Me.SplitContainer4.ResumeLayout(False)
2729
+        CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).EndInit()
2655 2730
         Me.ResumeLayout(False)
2656 2731
         Me.PerformLayout()
2657 2732
 
@@ -2816,4 +2891,10 @@ Partial Class 電板帳務彙總計算表
2816 2891
     Friend WithEvents 核帳0_tb As TextBox
2817 2892
     Friend WithEvents SplitContainer4 As SplitContainer
2818 2893
     Friend WithEvents 其他操作功能_bt As Button
2894
+    Friend WithEvents 報表_bt As Button
2895
+    Friend WithEvents 自動調整存檔_bt As Button
2896
+    Friend WithEvents 依球版習慣_ch As CheckBox
2897
+    Friend WithEvents 依電板習慣_ch As CheckBox
2898
+    Friend WithEvents 自動正負反_ch As CheckBox
2899
+    Friend WithEvents Label20 As Label
2819 2900
 End Class

+ 204
- 4
GA-ERP-SYS/報表系統管理/前台/電板帳務彙總計算表.vb 查看文件

@@ -10,7 +10,7 @@ Imports Microsoft.Office.Interop.Excel.XlThemeFont
10 10
 Imports Microsoft.Office.Interop.Excel.XlThemeColor
11 11
 Imports Microsoft.Office.Interop.Excel.XlWindowState
12 12
 Public Class 電板帳務彙總計算表
13
-    ReadOnly ds, ds1, ds2, ds3, ds4, ds5, ds6, ds7, ds8, ds10, ds15, ds16, ds17, ds18, ds19, ds20 As New DataSet
13
+    ReadOnly ds, ds1, ds2, ds3, ds4, ds5, ds6, ds7, ds8, ds9, ds10, ds15, ds16, ds17, ds18, ds19, ds20 As New DataSet
14 14
     Dim GP As Integer = 0 : Dim NH1, 批次, 選擇記憶 As Integer
15 15
     Dim GPP As String : Dim 本周周一 As Date
16 16
     Dim 暫不計算, 是否明細, 是否子明細, 上繳反轉, 紙帳存檔, 其他控制 As Boolean
@@ -1589,7 +1589,13 @@ Public Class 電板帳務彙總計算表
1589 1589
         End If
1590 1590
     End Sub
1591 1591
     Private Sub 帳務彙總計算表_Shown(sender As Object, e As EventArgs) Handles MyBase.Shown
1592
-        資料數 = 8 : SQL_客戶下層全部關閉()
1592
+        資料數 = 8 : SQL_客戶下層全部關閉() : SQL_自動正負反()
1593
+        If dr.Read Then
1594
+            If IsDBNull(dr("自動")) = False Then
1595
+                自動正負反_ch.Checked = dr("自動") : 依電板習慣_ch.Checked = dr("依電板") : 依球版習慣_ch.Checked = dr("依球板")
1596
+            End If
1597
+        End If
1598
+
1593 1599
         If CC(8) = False Then : Delete_bT.Enabled = False : End If : MyModule1.進度條()
1594 1600
         If CC(19) = False Then : 進階控制_bt.Enabled = False : End If : MyModule1.進度條()
1595 1601
 
@@ -2874,6 +2880,128 @@ Public Class 電板帳務彙總計算表
2874 2880
                     合帳_dgv.Rows(I).Cells("應收1").Value = Val(合帳_dgv.Rows(I).Cells("應收1").Value) * -1
2875 2881
                 End If
2876 2882
             Next
2883
+            '-----------------自動帳務再算一次--------------------------------------------------------------------------------------------------------------
2884
+            If 自動正負反_ch.Checked = True Then
2885
+                If 依電板習慣_ch.Checked = True Then
2886
+                    For I As Integer = 0 To 合帳_dgv.Rows.Count - 1
2887
+                        If CInt(合帳_dgv.Rows(I).Cells("應付").Value) = 0 And CInt(合帳_dgv.Rows(I).Cells("應收").Value) = 0 Then
2888
+                            合帳_dgv("付反", I).Value = False : 合帳_dgv("收反", I).Value = False
2889
+                        ElseIf CInt(合帳_dgv.Rows(I).Cells("應付").Value) <> 0 And CInt(合帳_dgv.Rows(I).Cells("應收").Value) = 0 Then
2890
+                            合帳_dgv("付反", I).Value = True : 合帳_dgv("收反", I).Value = False
2891
+                        ElseIf CInt(合帳_dgv.Rows(I).Cells("應付").Value) <> 0 And CInt(合帳_dgv.Rows(I).Cells("應收").Value) <> 0 Then
2892
+                            合帳_dgv("付反", I).Value = False : 合帳_dgv("收反", I).Value = False
2893
+                        ElseIf CInt(合帳_dgv.Rows(I).Cells("應付").Value) = 0 And CInt(合帳_dgv.Rows(I).Cells("應收").Value) <> 0 Then
2894
+                            合帳_dgv("付反", I).Value = False : 合帳_dgv("收反", I).Value = False
2895
+                        End If
2896
+                    Next
2897
+                ElseIf 依電板習慣_ch.Checked = False Then
2898
+                    For I As Integer = 0 To 合帳_dgv.Rows.Count - 1
2899
+                        If CInt(合帳_dgv.Rows(I).Cells("應付").Value) = 0 And CInt(合帳_dgv.Rows(I).Cells("應收").Value) = 0 Then
2900
+                            合帳_dgv("付反", I).Value = False : 合帳_dgv("收反", I).Value = False
2901
+                        ElseIf CInt(合帳_dgv.Rows(I).Cells("應付").Value) <> 0 And CInt(合帳_dgv.Rows(I).Cells("應收").Value) = 0 Then
2902
+                            合帳_dgv("付反", I).Value = False : 合帳_dgv("收反", I).Value = False
2903
+                        ElseIf CInt(合帳_dgv.Rows(I).Cells("應付").Value) <> 0 And CInt(合帳_dgv.Rows(I).Cells("應收").Value) <> 0 Then
2904
+                            合帳_dgv("付反", I).Value = True : 合帳_dgv("收反", I).Value = True
2905
+                        ElseIf CInt(合帳_dgv.Rows(I).Cells("應付").Value) = 0 And CInt(合帳_dgv.Rows(I).Cells("應收").Value) <> 0 Then
2906
+                            合帳_dgv("付反", I).Value = False : 合帳_dgv("收反", I).Value = True
2907
+                        End If
2908
+                    Next
2909
+                End If
2910
+                For I As Integer = 0 To 合帳_dgv.Rows.Count - 1
2911
+                    For II As Integer = 0 To 上繳名_dgv.Rows.Count - 1
2912
+                        If 合帳_dgv("客戶", I).Value.ToString = 上繳名_dgv("上繳", II).Value.ToString Then
2913
+                            If 合帳_dgv("付反", I).Value = False Then
2914
+                                合帳_dgv("應付", I).Value = 上繳名_dgv("交割金額", II).Value.ToString : 合帳_dgv("應付1", I).Value = 上繳名_dgv("交割金額", II).Value.ToString
2915
+                            Else
2916
+                                合帳_dgv("應付", I).Value = Val(上繳名_dgv("交割金額", II).Value.ToString) * -1 : 合帳_dgv("應付1", I).Value = Val(上繳名_dgv("交割金額", II).Value.ToString) * -1
2917
+                            End If
2918
+                        End If
2919
+                    Next
2920
+                    For II As Integer = 0 To 下收名_dgv.Rows.Count - 1
2921
+                        If 合帳_dgv("客戶", I).Value.ToString = 下收名_dgv("下收", II).Value.ToString Then
2922
+                            If 合帳_dgv("收反", I).Value = False Then
2923
+                                合帳_dgv("應收", I).Value = 下收名_dgv("交割金額", II).Value.ToString : 合帳_dgv("應收1", I).Value = 下收名_dgv("交割金額", II).Value.ToString
2924
+                            Else
2925
+                                合帳_dgv("應收", I).Value = Val(下收名_dgv("交割金額", II).Value.ToString) * -1 : 合帳_dgv("應收1", I).Value = Val(下收名_dgv("交割金額", II).Value.ToString) * -1
2926
+                            End If
2927
+                        End If
2928
+                    Next
2929
+                    '----------------所得三重奏----------------------------------------------------------------------------------------------------------------------------------------------------------
2930
+                    合帳_dgv("個人所得", I).Value = "0" : 合帳_dgv("個人所得1", I).Value = "0"
2931
+                    For II As Integer = 0 To 所得名_dgv.Rows.Count - 1
2932
+                        If 合帳_dgv("客戶", I).Value.ToString = 所得名_dgv("所得", II).Value.ToString Then
2933
+                            If 合帳_dgv("所反", I).Value = False Then
2934
+                                合帳_dgv("個人所得", I).Value = 所得名_dgv("交割金額", II).Value.ToString
2935
+                                合帳_dgv("個人所得1", I).Value = 所得名_dgv("交割金額", II).Value.ToString
2936
+                            Else
2937
+                                合帳_dgv("個人所得", I).Value = Val(所得名_dgv("交割金額", II).Value.ToString) * -1
2938
+                                合帳_dgv("個人所得1", I).Value = Val(所得名_dgv("交割金額", II).Value.ToString) * -1
2939
+                            End If
2940
+                        End If
2941
+                    Next
2942
+                    For II As Integer = 0 To 所得名1_dgv.Rows.Count - 1
2943
+                        If 合帳_dgv("客戶", I).Value.ToString = 所得名1_dgv("所得", II).Value.ToString Then
2944
+                            If 合帳_dgv("所反", I).Value = False Then
2945
+                                合帳_dgv("個人所得", I).Value = Val(合帳_dgv("個人所得", I).Value) + 所得名1_dgv("交割金額", II).Value.ToString
2946
+                                合帳_dgv("個人所得1", I).Value = Val(合帳_dgv("個人所得1", I).Value) + 所得名1_dgv("交割金額", II).Value.ToString
2947
+                            Else
2948
+                                合帳_dgv("個人所得", I).Value = Val(合帳_dgv("個人所得", I).Value) + Val(所得名1_dgv("交割金額", II).Value.ToString) * -1
2949
+                                合帳_dgv("個人所得1", I).Value = Val(合帳_dgv("個人所得1", I).Value) + Val(所得名1_dgv("交割金額", II).Value.ToString) * -1
2950
+                            End If
2951
+                        End If
2952
+                    Next
2953
+                    For II As Integer = 0 To 紅利分表_dgv.Rows.Count - 1
2954
+                        If 合帳_dgv("客戶", I).Value.ToString = 紅利分表_dgv("所得戶", II).Value.ToString Then
2955
+                            If Val(紅利分表_dgv.Rows(II).Cells("股份").Value) < 0 Then
2956
+                                合帳_dgv("個人所得", I).Value = Val(合帳_dgv("個人所得", I).Value) + 紅利分表_dgv("紅利", II).Value
2957
+                                合帳_dgv("個人所得1", I).Value = Val(合帳_dgv("個人所得1", I).Value) + 紅利分表_dgv("紅利", II).Value
2958
+                            Else
2959
+                                合帳_dgv("個人所得", I).Value = Val(合帳_dgv("個人所得", I).Value) + 紅利分表_dgv("紅利", II).Value * -1
2960
+                                合帳_dgv("個人所得1", I).Value = Val(合帳_dgv("個人所得1", I).Value) + 紅利分表_dgv("紅利", II).Value * -1
2961
+                            End If
2962
+                        End If
2963
+                        If 合帳_dgv("客戶", I).Value.ToString = 紅利分表_dgv("股東", II).Value.ToString Then
2964
+                            If 合帳_dgv("紅反", I).Value = False Then
2965
+                                合帳_dgv("個人所得", I).Value = Val(合帳_dgv("個人所得", I).Value) + 紅利分表_dgv("紅利", II).Value
2966
+                                合帳_dgv("個人所得1", I).Value = Val(合帳_dgv("個人所得1", I).Value) + 紅利分表_dgv("紅利", II).Value
2967
+                            Else
2968
+                                合帳_dgv("個人所得", I).Value = Val(合帳_dgv("個人所得", I).Value) + 紅利分表_dgv("紅利", II).Value * -1
2969
+                                合帳_dgv("個人所得1", I).Value = Val(合帳_dgv("個人所得1", I).Value) + 紅利分表_dgv("紅利", II).Value * -1
2970
+                            End If
2971
+                        End If
2972
+                    Next
2973
+
2974
+                    For II As Integer = 0 To 水差名_dgv.Rows.Count - 1
2975
+                        If 合帳_dgv("客戶", I).Value.ToString = 水差名_dgv("水差", II).Value.ToString Then
2976
+                            If 合帳_dgv("所反", I).Value = False Then
2977
+                                合帳_dgv("水差", I).Value = 水差名_dgv("交割金額", II).Value.ToString : 合帳_dgv("水差1", I).Value = 水差名_dgv("交割金額", II).Value.ToString
2978
+                            Else
2979
+                                合帳_dgv("水差", I).Value = Val(水差名_dgv("交割金額", II).Value.ToString) * -1 : 合帳_dgv("水差1", I).Value = Val(水差名_dgv("交割金額", II).Value.ToString) * -1
2980
+                            End If
2981
+                        End If
2982
+                    Next
2983
+                    For II As Integer = 0 To 水差名1_dgv.Rows.Count - 1
2984
+                        If 合帳_dgv("客戶", I).Value.ToString = 水差名1_dgv("水差", II).Value.ToString Then
2985
+                            If 合帳_dgv("所反", I).Value = False Then
2986
+                                合帳_dgv("水差", I).Value = 水差名1_dgv("交割金額", II).Value.ToString : 合帳_dgv("水差1", I).Value = 水差名1_dgv("交割金額", II).Value.ToString
2987
+                            Else
2988
+                                合帳_dgv("水差", I).Value = Val(水差名1_dgv("交割金額", II).Value.ToString) * -1 : 合帳_dgv("水差1", I).Value = Val(水差名1_dgv("交割金額", II).Value.ToString) * -1
2989
+                            End If
2990
+                        End If
2991
+                    Next
2992
+                    '----------只有下收不要反帳-----------------------------------------------------------------------------------------------------------------
2993
+                    If Val(合帳_dgv.Rows(I).Cells("應收1").Value) <> 0 And Val(合帳_dgv.Rows(I).Cells("應付1").Value) <> 0 Then
2994
+                        合帳_dgv.Rows(I).Cells("應收").Value = Val(合帳_dgv.Rows(I).Cells("應收").Value) * -1
2995
+                        合帳_dgv.Rows(I).Cells("應收1").Value = Val(合帳_dgv.Rows(I).Cells("應收1").Value) * -1
2996
+                        合帳_dgv.Rows(I).Cells("應付").Value = Val(合帳_dgv.Rows(I).Cells("應付").Value) * -1
2997
+                        合帳_dgv.Rows(I).Cells("應付1").Value = Val(合帳_dgv.Rows(I).Cells("應付1").Value) * -1
2998
+                    ElseIf Val(合帳_dgv.Rows(I).Cells("應收1").Value) <> 0 And Val(合帳_dgv.Rows(I).Cells("應付1").Value) = 0 Then
2999
+                        合帳_dgv.Rows(I).Cells("應收").Value = Val(合帳_dgv.Rows(I).Cells("應收").Value) * -1
3000
+                        合帳_dgv.Rows(I).Cells("應收1").Value = Val(合帳_dgv.Rows(I).Cells("應收1").Value) * -1
3001
+                    End If
3002
+                Next
3003
+            End If
3004
+
2877 3005
             If 合帳_dgv.Rows.Count > 0 Then
2878 3006
                 合帳_dgv.Sort(合帳_dgv.Columns("客戶"), System.ComponentModel.ListSortDirection.Descending)
2879 3007
 
@@ -2908,13 +3036,31 @@ Public Class 電板帳務彙總計算表
2908 3036
             End If
2909 3037
             合帳1_tb.Text = Strings.Format(Val(合帳1_tb.Text), "#,##0")
2910 3038
             手工帳資料自動判斷()
3039
+
3040
+
2911 3041
         End If
2912 3042
     End Sub
2913
-
2914 3043
     Private Sub Button1_Click(sender As Object, e As EventArgs) Handles 其他操作功能_bt.Click
2915 3044
         If 其他控制 = False Then : 視窗4_pl.Location = New System.Drawing.Point(150, 300) : 視窗4_pl.BringToFront() : 其他控制 = True : Else : 視窗4_pl.SendToBack() : 其他控制 = False : End If
2916 3045
     End Sub
2917
-
3046
+    Private Sub 自動正負反_ch_CheckedChanged(sender As Object, e As EventArgs) Handles 自動正負反_ch.Click
3047
+        If 自動正負反_ch.Checked = True Then
3048
+            MsgBox("啟動系統自動判斷正負反之後,計算量會增加,資料讀取變慢屬正常現象!!")
3049
+            自動正負反_ch.Checked = True : 依電板習慣_ch.Checked = True : 依球版習慣_ch.Checked = False
3050
+        Else
3051
+            MsgBox("去除自動判斷之後系統只會依照就有的正負反紀錄計算!!")
3052
+            自動正負反_ch.Checked = False : 依電板習慣_ch.Checked = False : 依球版習慣_ch.Checked = False
3053
+        End If
3054
+    End Sub
3055
+    Private Sub 依電板習慣_ch_CheckedChanged(sender As Object, e As EventArgs) Handles 依電板習慣_ch.Click
3056
+        依電板習慣_ch.Checked = True : 依球版習慣_ch.Checked = False
3057
+    End Sub
3058
+    Private Sub 依球版習慣_ch_CheckedChanged(sender As Object, e As EventArgs) Handles 依球版習慣_ch.Click
3059
+        依電板習慣_ch.Checked = False : 依球版習慣_ch.Checked = True
3060
+    End Sub
3061
+    Private Sub 自動調整存檔_bt_Click_1(sender As Object, e As EventArgs) Handles 自動調整存檔_bt.Click
3062
+        SQL_自動正負反存檔() : 合帳_bt.PerformClick()
3063
+    End Sub
2918 3064
     Private Sub 手工帳務存檔_bt_Click(sender As Object, e As EventArgs) Handles 手工帳務存檔_bt.Click
2919 3065
         For I As Integer = 0 To 紙帳非前期_dgv.Rows.Count - 1
2920 3066
             PA8 = 紙帳非前期_dgv.Rows(I).Cells("商品").Value : NN8 = 紙帳非前期_dgv.Rows(I).Cells("交收金額").Value.ToString : SQL_紙帳流水修改()
@@ -3021,6 +3167,60 @@ Public Class 電板帳務彙總計算表
3021 3167
         Next
3022 3168
         MsgBox("存檔完成!!")
3023 3169
     End Sub
3170
+    Private Sub 報表_bt_Click(sender As Object, e As EventArgs) Handles 報表_bt.Click
3171
+        If 客戶_tb.Text = "" Then
3172
+            MsgBox("沒有選擇客戶資料!!")
3173
+        Else
3174
+            PA49 = "客戶 : " & 客戶_tb.Text & "  " & 開始日期_dtp.Text & " 到 " & 結束日期_dtp.Text
3175
+            For i As Integer = 0 To 1000 : A(i) = "" : B(i) = "" : C(i) = "" : D(i) = "" : F(i) = "" : Next : NN10 = 0
3176
+            For I As Integer = 0 To 上繳合帳_dgv.Rows.Count - 1
3177
+                NN10 += 1 : A(NN10 - 1) = 上繳合帳_dgv.Rows(I).Cells("項次").Value : B(NN10 - 1) = 上繳合帳_dgv.Rows(I).Cells("商品").Value
3178
+                If 上繳合帳_dgv.Columns.Count = 4 Then : C(NN10 - 1) = ""
3179
+                ElseIf 上繳合帳_dgv.Columns.Count = 5 Then : C(NN10 - 1) = 上繳合帳_dgv.Rows(I).Cells("帳號").Value : End If
3180
+                D(NN10 - 1) = "上繳" : F(NN10 - 1) = 上繳合帳_dgv.Rows(I).Cells("應付.").Value
3181
+            Next
3182
+            For I As Integer = 0 To 下收合帳_dgv.Rows.Count - 1
3183
+                NN10 += 1 : A(NN10 - 1) = 下收合帳_dgv.Rows(I).Cells("項次").Value : B(NN10 - 1) = 下收合帳_dgv.Rows(I).Cells("商品").Value
3184
+                If 下收合帳_dgv.Columns.Count = 4 Then : C(NN10 - 1) = ""
3185
+                ElseIf 下收合帳_dgv.Columns.Count = 5 Then : C(NN10 - 1) = 下收合帳_dgv.Rows(I).Cells("帳號").Value
3186
+                ElseIf 下收合帳_dgv.Columns.Count = 6 Then : C(NN10 - 1) = 下收合帳_dgv.Rows(I).Cells("客戶").Value : End If
3187
+                D(NN10 - 1) = "下收" : F(NN10 - 1) = 下收合帳_dgv.Rows(I).Cells("應收.").Value
3188
+            Next
3189
+            For I As Integer = 0 To 所得合帳2_dgv.Rows.Count - 1
3190
+                NN10 += 1 : A(NN10 - 1) = 所得合帳2_dgv.Rows(I).Cells("項次").Value : B(NN10 - 1) = 所得合帳2_dgv.Rows(I).Cells("商品").Value
3191
+                If 所得合帳2_dgv.Columns.Count = 4 Then : C(NN10 - 1) = ""
3192
+                ElseIf 所得合帳2_dgv.Columns.Count = 5 Then : C(NN10 - 1) = 所得合帳2_dgv.Rows(I).Cells("帳號").Value
3193
+                ElseIf 所得合帳2_dgv.Columns.Count = 6 Then : C(NN10 - 1) = 所得合帳2_dgv.Rows(I).Cells("客戶").Value : End If
3194
+                D(NN10 - 1) = "所得" : F(NN10 - 1) = 所得合帳2_dgv.Rows(I).Cells("所得.").Value
3195
+            Next
3196
+            For I As Integer = 0 To 水差合帳_dgv.Rows.Count - 1
3197
+                NN10 += 1 : A(NN10 - 1) = 水差合帳_dgv.Rows(I).Cells("項次").Value : B(NN10 - 1) = 水差合帳_dgv.Rows(I).Cells("商品").Value
3198
+                If 水差合帳_dgv.Columns.Count = 4 Then : C(NN10 - 1) = ""
3199
+                ElseIf 水差合帳_dgv.Columns.Count = 5 Then : C(NN10 - 1) = 水差合帳_dgv.Rows(I).Cells("帳號").Value
3200
+                ElseIf 水差合帳_dgv.Columns.Count = 6 Then : C(NN10 - 1) = 水差合帳_dgv.Rows(I).Cells("客戶").Value : End If
3201
+                D(NN10 - 1) = "水差" : F(NN10 - 1) = 水差合帳_dgv.Rows(I).Cells("水差.").Value
3202
+            Next
3203
+            For I As Integer = 0 To 紅利整合_dgv.Rows.Count - 1
3204
+                NN10 += 1 : A(NN10 - 1) = I + 1 : B(NN10 - 1) = 紅利整合_dgv.Rows(I).Cells("所得/股東").Value : C(NN10 - 1) = ""
3205
+                D(NN10 - 1) = "紅利計算" : F(NN10 - 1) = 紅利整合_dgv.Rows(I).Cells("紅利收支").Value
3206
+            Next
3207
+            For I As Integer = 0 To 紙帳非前期_dgv.Rows.Count - 1
3208
+                NN10 += 1 : A(NN10 - 1) = I + 1 : B(NN10 - 1) = 紙帳非前期_dgv.Rows(I).Cells("商品").Value : C(NN10 - 1) = ""
3209
+                D(NN10 - 1) = "紙帳" : F(NN10 - 1) = 紙帳非前期_dgv.Rows(I).Cells("交收金額").Value
3210
+            Next
3211
+            If 紙帳前期_dgv.Rows.Count > 0 Then
3212
+                NN10 += 1 : A(NN10 - 1) = "" : B(NN10 - 1) = 紙帳前期_dgv.Rows(0).Cells("商品").Value : C(NN10 - 1) = ""
3213
+                D(NN10 - 1) = "前期" : F(NN10 - 1) = 紙帳前期_dgv.Rows(0).Cells("交收金額").Value
3214
+            End If
3215
+        End If
3216
+        Dim NH As Integer = 140 + (NN10 * 19)
3217
+        If NH > Screen.PrimaryScreen.Bounds.Height - 60 Then
3218
+            彙總報表預覽.Size = New Size(448, Screen.PrimaryScreen.Bounds.Height - 60) : 彙總報表預覽.Show()
3219
+        Else
3220
+            彙總報表預覽.Size = New Size(448, NH) : 彙總報表預覽.Show()
3221
+        End If
3222
+
3223
+    End Sub
3024 3224
     Private Sub 列印_bt_Click(sender As Object, e As EventArgs) Handles 列印_bt.Click
3025 3225
         列印選擇.ShowDialog()
3026 3226
         If 是否PDF = False Then

+ 297
- 133
GA-ERP-SYS/報表系統管理/後台/後台帳務彙總結算表.Designer.vb 查看文件

@@ -27,6 +27,8 @@ Partial Class 後台帳務彙總結算表
27 27
         Dim DataGridViewCellStyle3 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
28 28
         Dim DataGridViewCellStyle4 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
29 29
         Dim DataGridViewCellStyle5 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
30
+        Dim DataGridViewCellStyle6 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
31
+        Dim DataGridViewCellStyle7 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
30 32
         Me.日期清單_dgv = New System.Windows.Forms.DataGridView()
31 33
         Me.彙總1_dgv = New System.Windows.Forms.DataGridView()
32 34
         Me.PictureBox2 = New System.Windows.Forms.PictureBox()
@@ -40,18 +42,26 @@ Partial Class 後台帳務彙總結算表
40 42
         Me.結果_tb = New System.Windows.Forms.TextBox()
41 43
         Me.Label26 = New System.Windows.Forms.Label()
42 44
         Me.Panel1 = New System.Windows.Forms.Panel()
43
-        Me.彙總5_dgv = New System.Windows.Forms.DataGridView()
44
-        Me.結果2_tb = New System.Windows.Forms.TextBox()
45
+        Me.A4_P = New System.Windows.Forms.Panel()
45 46
         Me.Label18 = New System.Windows.Forms.Label()
46
-        Me.結果1_tb = New System.Windows.Forms.TextBox()
47
-        Me.本周周一_dtp = New System.Windows.Forms.DateTimePicker()
47
+        Me.結果2_tb = New System.Windows.Forms.TextBox()
48
+        Me.年初_dtp = New System.Windows.Forms.DateTimePicker()
49
+        Me.Label15 = New System.Windows.Forms.Label()
50
+        Me.A3_P = New System.Windows.Forms.Panel()
51
+        Me.Label3 = New System.Windows.Forms.Label()
52
+        Me.Label5 = New System.Windows.Forms.Label()
53
+        Me.月初_dtp = New System.Windows.Forms.DateTimePicker()
54
+        Me.結果3_tb = New System.Windows.Forms.TextBox()
55
+        Me.A2_P = New System.Windows.Forms.Panel()
48 56
         Me.Label4 = New System.Windows.Forms.Label()
49 57
         Me.Label14 = New System.Windows.Forms.Label()
58
+        Me.本周周一_dtp = New System.Windows.Forms.DateTimePicker()
59
+        Me.結果1_tb = New System.Windows.Forms.TextBox()
60
+        Me.A1_P = New System.Windows.Forms.Panel()
61
+        Me.彙總5_dgv = New System.Windows.Forms.DataGridView()
50 62
         Me.彙總3_dgv = New System.Windows.Forms.DataGridView()
51 63
         Me.周1_ch = New System.Windows.Forms.CheckBox()
52 64
         Me.月1_ch = New System.Windows.Forms.CheckBox()
53
-        Me.月初_dtp = New System.Windows.Forms.DateTimePicker()
54
-        Me.Label5 = New System.Windows.Forms.Label()
55 65
         Me.彙總4_dgv = New System.Windows.Forms.DataGridView()
56 66
         Me.大1_tb = New System.Windows.Forms.TextBox()
57 67
         Me.六1_tb = New System.Windows.Forms.TextBox()
@@ -70,24 +80,33 @@ Partial Class 後台帳務彙總結算表
70 80
         Me.Label7 = New System.Windows.Forms.Label()
71 81
         Me.Label6 = New System.Windows.Forms.Label()
72 82
         Me.彙總2_dgv = New System.Windows.Forms.DataGridView()
73
-        Me.調退實佔_tb = New System.Windows.Forms.TextBox()
74
-        Me.Label3 = New System.Windows.Forms.Label()
75 83
         Me.截圖_bt = New System.Windows.Forms.Button()
76 84
         Me.整合_ch = New System.Windows.Forms.CheckBox()
77 85
         Me.重新計算_bt = New System.Windows.Forms.Button()
78 86
         Me.Panel2 = New System.Windows.Forms.Panel()
79
-        Me.年初_dtp = New System.Windows.Forms.DateTimePicker()
87
+        Me.彙總7_dgv = New System.Windows.Forms.DataGridView()
88
+        Me.彙總6_dgv = New System.Windows.Forms.DataGridView()
80 89
         Me.結束日期1_dtp = New System.Windows.Forms.DateTimePicker()
81 90
         Me.股東帳_Ch = New System.Windows.Forms.CheckBox()
91
+        Me.顯日_ch = New System.Windows.Forms.CheckBox()
92
+        Me.顯周_ch = New System.Windows.Forms.CheckBox()
93
+        Me.顯月_ch = New System.Windows.Forms.CheckBox()
94
+        Me.顯年_ch = New System.Windows.Forms.CheckBox()
82 95
         CType(Me.日期清單_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
83 96
         CType(Me.彙總1_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
84 97
         CType(Me.PictureBox2, System.ComponentModel.ISupportInitialize).BeginInit()
85 98
         Me.Panel1.SuspendLayout()
99
+        Me.A4_P.SuspendLayout()
100
+        Me.A3_P.SuspendLayout()
101
+        Me.A2_P.SuspendLayout()
102
+        Me.A1_P.SuspendLayout()
86 103
         CType(Me.彙總5_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
87 104
         CType(Me.彙總3_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
88 105
         CType(Me.彙總4_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
89 106
         CType(Me.彙總2_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
90 107
         Me.Panel2.SuspendLayout()
108
+        CType(Me.彙總7_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
109
+        CType(Me.彙總6_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
91 110
         Me.SuspendLayout()
92 111
         '
93 112
         '日期清單_dgv
@@ -97,12 +116,12 @@ Partial Class 後台帳務彙總結算表
97 116
         Me.日期清單_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
98 117
         Me.日期清單_dgv.BackgroundColor = System.Drawing.Color.White
99 118
         Me.日期清單_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
100
-        Me.日期清單_dgv.Location = New System.Drawing.Point(4, 26)
119
+        Me.日期清單_dgv.Location = New System.Drawing.Point(4, 55)
101 120
         Me.日期清單_dgv.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
102 121
         Me.日期清單_dgv.Name = "日期清單_dgv"
103 122
         Me.日期清單_dgv.RowHeadersWidth = 4
104 123
         Me.日期清單_dgv.RowTemplate.Height = 24
105
-        Me.日期清單_dgv.Size = New System.Drawing.Size(194, 969)
124
+        Me.日期清單_dgv.Size = New System.Drawing.Size(194, 590)
106 125
         Me.日期清單_dgv.TabIndex = 1767
107 126
         '
108 127
         '彙總1_dgv
@@ -133,7 +152,7 @@ Partial Class 後台帳務彙總結算表
133 152
         '結束日期_dtp
134 153
         '
135 154
         Me.結束日期_dtp.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
136
-        Me.結束日期_dtp.Location = New System.Drawing.Point(224, 4)
155
+        Me.結束日期_dtp.Location = New System.Drawing.Point(49, 2)
137 156
         Me.結束日期_dtp.Name = "結束日期_dtp"
138 157
         Me.結束日期_dtp.Size = New System.Drawing.Size(100, 23)
139 158
         Me.結束日期_dtp.TabIndex = 1771
@@ -149,7 +168,7 @@ Partial Class 後台帳務彙總結算表
149 168
         'Label1
150 169
         '
151 170
         Me.Label1.AutoSize = True
152
-        Me.Label1.Location = New System.Drawing.Point(183, 7)
171
+        Me.Label1.Location = New System.Drawing.Point(8, 5)
153 172
         Me.Label1.Name = "Label1"
154 173
         Me.Label1.Size = New System.Drawing.Size(31, 16)
155 174
         Me.Label1.TabIndex = 1772
@@ -197,7 +216,7 @@ Partial Class 後台帳務彙總結算表
197 216
         '結果_tb
198 217
         '
199 218
         Me.結果_tb.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
200
-        Me.結果_tb.Location = New System.Drawing.Point(224, 29)
219
+        Me.結果_tb.Location = New System.Drawing.Point(49, 27)
201 220
         Me.結果_tb.Name = "結果_tb"
202 221
         Me.結果_tb.Size = New System.Drawing.Size(100, 23)
203 222
         Me.結果_tb.TabIndex = 1782
@@ -206,7 +225,7 @@ Partial Class 後台帳務彙總結算表
206 225
         'Label26
207 226
         '
208 227
         Me.Label26.AutoSize = True
209
-        Me.Label26.Location = New System.Drawing.Point(178, 33)
228
+        Me.Label26.Location = New System.Drawing.Point(3, 31)
210 229
         Me.Label26.Name = "Label26"
211 230
         Me.Label26.Size = New System.Drawing.Size(43, 16)
212 231
         Me.Label26.TabIndex = 1781
@@ -217,80 +236,124 @@ Partial Class 後台帳務彙總結算表
217 236
         Me.Panel1.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
218 237
             Or System.Windows.Forms.AnchorStyles.Left) _
219 238
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
239
+        Me.Panel1.Controls.Add(Me.A4_P)
240
+        Me.Panel1.Controls.Add(Me.A3_P)
241
+        Me.Panel1.Controls.Add(Me.A2_P)
242
+        Me.Panel1.Controls.Add(Me.A1_P)
220 243
         Me.Panel1.Controls.Add(Me.彙總5_dgv)
221
-        Me.Panel1.Controls.Add(Me.結果2_tb)
222
-        Me.Panel1.Controls.Add(Me.Label18)
223
-        Me.Panel1.Controls.Add(Me.結果1_tb)
224 244
         Me.Panel1.Controls.Add(Me.PictureBox2)
225
-        Me.Panel1.Controls.Add(Me.結果_tb)
226
-        Me.Panel1.Controls.Add(Me.結束日期_dtp)
227
-        Me.Panel1.Controls.Add(Me.本周周一_dtp)
228
-        Me.Panel1.Controls.Add(Me.Label4)
229
-        Me.Panel1.Controls.Add(Me.Label1)
230
-        Me.Panel1.Controls.Add(Me.Label14)
231
-        Me.Panel1.Controls.Add(Me.Label26)
232 245
         Me.Panel1.Location = New System.Drawing.Point(198, 0)
233 246
         Me.Panel1.Name = "Panel1"
234
-        Me.Panel1.Size = New System.Drawing.Size(754, 1001)
247
+        Me.Panel1.Size = New System.Drawing.Size(918, 651)
235 248
         Me.Panel1.TabIndex = 1783
236 249
         '
237
-        '彙總5_dgv
250
+        'A4_P
238 251
         '
239
-        Me.彙總5_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
240
-            Or System.Windows.Forms.AnchorStyles.Left) _
241
-            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
242
-        Me.彙總5_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
243
-        Me.彙總5_dgv.BackgroundColor = System.Drawing.Color.White
244
-        Me.彙總5_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
245
-        Me.彙總5_dgv.Location = New System.Drawing.Point(3, 55)
246
-        Me.彙總5_dgv.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
247
-        Me.彙總5_dgv.Name = "彙總5_dgv"
248
-        Me.彙總5_dgv.RowHeadersWidth = 4
249
-        DataGridViewCellStyle2.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
250
-        Me.彙總5_dgv.RowsDefaultCellStyle = DataGridViewCellStyle2
251
-        Me.彙總5_dgv.RowTemplate.Height = 24
252
-        Me.彙總5_dgv.Size = New System.Drawing.Size(747, 940)
253
-        Me.彙總5_dgv.TabIndex = 1813
252
+        Me.A4_P.Controls.Add(Me.Label18)
253
+        Me.A4_P.Controls.Add(Me.結果2_tb)
254
+        Me.A4_P.Controls.Add(Me.年初_dtp)
255
+        Me.A4_P.Controls.Add(Me.Label15)
256
+        Me.A4_P.Location = New System.Drawing.Point(761, 2)
257
+        Me.A4_P.Name = "A4_P"
258
+        Me.A4_P.Size = New System.Drawing.Size(153, 52)
259
+        Me.A4_P.TabIndex = 1822
260
+        '
261
+        'Label18
262
+        '
263
+        Me.Label18.AutoSize = True
264
+        Me.Label18.Location = New System.Drawing.Point(3, 31)
265
+        Me.Label18.Name = "Label18"
266
+        Me.Label18.Size = New System.Drawing.Size(43, 16)
267
+        Me.Label18.TabIndex = 1815
268
+        Me.Label18.Text = "年總結"
254 269
         '
255 270
         '結果2_tb
256 271
         '
257 272
         Me.結果2_tb.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
258
-        Me.結果2_tb.Location = New System.Drawing.Point(650, 29)
273
+        Me.結果2_tb.Location = New System.Drawing.Point(48, 27)
259 274
         Me.結果2_tb.Name = "結果2_tb"
260 275
         Me.結果2_tb.Size = New System.Drawing.Size(100, 23)
261 276
         Me.結果2_tb.TabIndex = 1816
262 277
         Me.結果2_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
263 278
         '
264
-        'Label18
279
+        '年初_dtp
265 280
         '
266
-        Me.Label18.AutoSize = True
267
-        Me.Label18.Location = New System.Drawing.Point(647, 11)
268
-        Me.Label18.Name = "Label18"
269
-        Me.Label18.Size = New System.Drawing.Size(43, 16)
270
-        Me.Label18.TabIndex = 1815
271
-        Me.Label18.Text = "年結果"
281
+        Me.年初_dtp.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
282
+        Me.年初_dtp.Location = New System.Drawing.Point(48, 2)
283
+        Me.年初_dtp.Name = "年初_dtp"
284
+        Me.年初_dtp.Size = New System.Drawing.Size(100, 23)
285
+        Me.年初_dtp.TabIndex = 1817
272 286
         '
273
-        '結果1_tb
287
+        'Label15
274 288
         '
275
-        Me.結果1_tb.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
276
-        Me.結果1_tb.Location = New System.Drawing.Point(432, 29)
277
-        Me.結果1_tb.Name = "結果1_tb"
278
-        Me.結果1_tb.Size = New System.Drawing.Size(100, 23)
279
-        Me.結果1_tb.TabIndex = 1812
280
-        Me.結果1_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
289
+        Me.Label15.AutoSize = True
290
+        Me.Label15.Location = New System.Drawing.Point(7, 5)
291
+        Me.Label15.Name = "Label15"
292
+        Me.Label15.Size = New System.Drawing.Size(31, 16)
293
+        Me.Label15.TabIndex = 1818
294
+        Me.Label15.Text = "本年"
281 295
         '
282
-        '本周周一_dtp
296
+        'A3_P
283 297
         '
284
-        Me.本周周一_dtp.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
285
-        Me.本周周一_dtp.Location = New System.Drawing.Point(432, 4)
286
-        Me.本周周一_dtp.Name = "本周周一_dtp"
287
-        Me.本周周一_dtp.Size = New System.Drawing.Size(100, 23)
288
-        Me.本周周一_dtp.TabIndex = 1783
298
+        Me.A3_P.Controls.Add(Me.Label3)
299
+        Me.A3_P.Controls.Add(Me.Label5)
300
+        Me.A3_P.Controls.Add(Me.月初_dtp)
301
+        Me.A3_P.Controls.Add(Me.結果3_tb)
302
+        Me.A3_P.Location = New System.Drawing.Point(579, 2)
303
+        Me.A3_P.Name = "A3_P"
304
+        Me.A3_P.Size = New System.Drawing.Size(153, 52)
305
+        Me.A3_P.TabIndex = 1821
306
+        '
307
+        'Label3
308
+        '
309
+        Me.Label3.AutoSize = True
310
+        Me.Label3.Location = New System.Drawing.Point(3, 30)
311
+        Me.Label3.Name = "Label3"
312
+        Me.Label3.Size = New System.Drawing.Size(43, 16)
313
+        Me.Label3.TabIndex = 1783
314
+        Me.Label3.Text = "月總結"
315
+        '
316
+        'Label5
317
+        '
318
+        Me.Label5.AutoSize = True
319
+        Me.Label5.Location = New System.Drawing.Point(8, 5)
320
+        Me.Label5.Name = "Label5"
321
+        Me.Label5.Size = New System.Drawing.Size(31, 16)
322
+        Me.Label5.TabIndex = 1787
323
+        Me.Label5.Text = "本月"
324
+        '
325
+        '月初_dtp
326
+        '
327
+        Me.月初_dtp.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
328
+        Me.月初_dtp.Location = New System.Drawing.Point(47, 2)
329
+        Me.月初_dtp.Name = "月初_dtp"
330
+        Me.月初_dtp.Size = New System.Drawing.Size(100, 23)
331
+        Me.月初_dtp.TabIndex = 1786
332
+        '
333
+        '結果3_tb
334
+        '
335
+        Me.結果3_tb.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
336
+        Me.結果3_tb.Location = New System.Drawing.Point(47, 27)
337
+        Me.結果3_tb.Name = "結果3_tb"
338
+        Me.結果3_tb.Size = New System.Drawing.Size(100, 23)
339
+        Me.結果3_tb.TabIndex = 1784
340
+        Me.結果3_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
341
+        '
342
+        'A2_P
343
+        '
344
+        Me.A2_P.Controls.Add(Me.Label4)
345
+        Me.A2_P.Controls.Add(Me.Label14)
346
+        Me.A2_P.Controls.Add(Me.本周周一_dtp)
347
+        Me.A2_P.Controls.Add(Me.結果1_tb)
348
+        Me.A2_P.Location = New System.Drawing.Point(397, 2)
349
+        Me.A2_P.Name = "A2_P"
350
+        Me.A2_P.Size = New System.Drawing.Size(153, 52)
351
+        Me.A2_P.TabIndex = 1820
289 352
         '
290 353
         'Label4
291 354
         '
292 355
         Me.Label4.AutoSize = True
293
-        Me.Label4.Location = New System.Drawing.Point(392, 7)
356
+        Me.Label4.Location = New System.Drawing.Point(7, 5)
294 357
         Me.Label4.Name = "Label4"
295 358
         Me.Label4.Size = New System.Drawing.Size(31, 16)
296 359
         Me.Label4.TabIndex = 1784
@@ -299,12 +362,58 @@ Partial Class 後台帳務彙總結算表
299 362
         'Label14
300 363
         '
301 364
         Me.Label14.AutoSize = True
302
-        Me.Label14.Location = New System.Drawing.Point(387, 33)
365
+        Me.Label14.Location = New System.Drawing.Point(3, 32)
303 366
         Me.Label14.Name = "Label14"
304 367
         Me.Label14.Size = New System.Drawing.Size(43, 16)
305 368
         Me.Label14.TabIndex = 1811
306 369
         Me.Label14.Text = "周總結"
307 370
         '
371
+        '本周周一_dtp
372
+        '
373
+        Me.本周周一_dtp.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
374
+        Me.本周周一_dtp.Location = New System.Drawing.Point(47, 2)
375
+        Me.本周周一_dtp.Name = "本周周一_dtp"
376
+        Me.本周周一_dtp.Size = New System.Drawing.Size(100, 23)
377
+        Me.本周周一_dtp.TabIndex = 1783
378
+        '
379
+        '結果1_tb
380
+        '
381
+        Me.結果1_tb.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
382
+        Me.結果1_tb.Location = New System.Drawing.Point(48, 27)
383
+        Me.結果1_tb.Name = "結果1_tb"
384
+        Me.結果1_tb.Size = New System.Drawing.Size(100, 23)
385
+        Me.結果1_tb.TabIndex = 1812
386
+        Me.結果1_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
387
+        '
388
+        'A1_P
389
+        '
390
+        Me.A1_P.Controls.Add(Me.Label1)
391
+        Me.A1_P.Controls.Add(Me.Label26)
392
+        Me.A1_P.Controls.Add(Me.結束日期_dtp)
393
+        Me.A1_P.Controls.Add(Me.結果_tb)
394
+        Me.A1_P.Location = New System.Drawing.Point(215, 2)
395
+        Me.A1_P.Name = "A1_P"
396
+        Me.A1_P.Size = New System.Drawing.Size(153, 52)
397
+        Me.A1_P.TabIndex = 1819
398
+        '
399
+        '彙總5_dgv
400
+        '
401
+        Me.彙總5_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
402
+            Or System.Windows.Forms.AnchorStyles.Left) _
403
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
404
+        Me.彙總5_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
405
+        Me.彙總5_dgv.BackgroundColor = System.Drawing.Color.White
406
+        Me.彙總5_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
407
+        Me.彙總5_dgv.Location = New System.Drawing.Point(3, 55)
408
+        Me.彙總5_dgv.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
409
+        Me.彙總5_dgv.Name = "彙總5_dgv"
410
+        Me.彙總5_dgv.RowHeadersWidth = 4
411
+        DataGridViewCellStyle2.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
412
+        Me.彙總5_dgv.RowsDefaultCellStyle = DataGridViewCellStyle2
413
+        Me.彙總5_dgv.RowTemplate.Height = 24
414
+        Me.彙總5_dgv.Size = New System.Drawing.Size(911, 590)
415
+        Me.彙總5_dgv.TabIndex = 1813
416
+        '
308 417
         '彙總3_dgv
309 418
         '
310 419
         Me.彙總3_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
@@ -327,7 +436,7 @@ Partial Class 後台帳務彙總結算表
327 436
         Me.周1_ch.AutoSize = True
328 437
         Me.周1_ch.Checked = True
329 438
         Me.周1_ch.CheckState = System.Windows.Forms.CheckState.Checked
330
-        Me.周1_ch.Location = New System.Drawing.Point(72, 450)
439
+        Me.周1_ch.Location = New System.Drawing.Point(72, 503)
331 440
         Me.周1_ch.Name = "周1_ch"
332 441
         Me.周1_ch.Size = New System.Drawing.Size(38, 20)
333 442
         Me.周1_ch.TabIndex = 1788
@@ -337,30 +446,13 @@ Partial Class 後台帳務彙總結算表
337 446
         '月1_ch
338 447
         '
339 448
         Me.月1_ch.AutoSize = True
340
-        Me.月1_ch.Location = New System.Drawing.Point(116, 450)
449
+        Me.月1_ch.Location = New System.Drawing.Point(116, 503)
341 450
         Me.月1_ch.Name = "月1_ch"
342 451
         Me.月1_ch.Size = New System.Drawing.Size(38, 20)
343 452
         Me.月1_ch.TabIndex = 1789
344 453
         Me.月1_ch.Text = "月"
345 454
         Me.月1_ch.UseVisualStyleBackColor = True
346 455
         '
347
-        '月初_dtp
348
-        '
349
-        Me.月初_dtp.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
350
-        Me.月初_dtp.Location = New System.Drawing.Point(55, 476)
351
-        Me.月初_dtp.Name = "月初_dtp"
352
-        Me.月初_dtp.Size = New System.Drawing.Size(100, 23)
353
-        Me.月初_dtp.TabIndex = 1786
354
-        '
355
-        'Label5
356
-        '
357
-        Me.Label5.AutoSize = True
358
-        Me.Label5.Location = New System.Drawing.Point(18, 481)
359
-        Me.Label5.Name = "Label5"
360
-        Me.Label5.Size = New System.Drawing.Size(31, 16)
361
-        Me.Label5.TabIndex = 1787
362
-        Me.Label5.Text = "月初"
363
-        '
364 456
         '彙總4_dgv
365 457
         '
366 458
         Me.彙總4_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
@@ -381,7 +473,7 @@ Partial Class 後台帳務彙總結算表
381 473
         '大1_tb
382 474
         '
383 475
         Me.大1_tb.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
384
-        Me.大1_tb.Location = New System.Drawing.Point(54, 305)
476
+        Me.大1_tb.Location = New System.Drawing.Point(54, 397)
385 477
         Me.大1_tb.Name = "大1_tb"
386 478
         Me.大1_tb.Size = New System.Drawing.Size(100, 23)
387 479
         Me.大1_tb.TabIndex = 1820
@@ -390,7 +482,7 @@ Partial Class 後台帳務彙總結算表
390 482
         '六1_tb
391 483
         '
392 484
         Me.六1_tb.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
393
-        Me.六1_tb.Location = New System.Drawing.Point(54, 334)
485
+        Me.六1_tb.Location = New System.Drawing.Point(54, 426)
394 486
         Me.六1_tb.Name = "六1_tb"
395 487
         Me.六1_tb.Size = New System.Drawing.Size(100, 23)
396 488
         Me.六1_tb.TabIndex = 1818
@@ -399,7 +491,7 @@ Partial Class 後台帳務彙總結算表
399 491
         '加1_tb
400 492
         '
401 493
         Me.加1_tb.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
402
-        Me.加1_tb.Location = New System.Drawing.Point(54, 363)
494
+        Me.加1_tb.Location = New System.Drawing.Point(54, 455)
403 495
         Me.加1_tb.Name = "加1_tb"
404 496
         Me.加1_tb.Size = New System.Drawing.Size(100, 23)
405 497
         Me.加1_tb.TabIndex = 1816
@@ -408,7 +500,7 @@ Partial Class 後台帳務彙總結算表
408 500
         '五1_tb
409 501
         '
410 502
         Me.五1_tb.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
411
-        Me.五1_tb.Location = New System.Drawing.Point(54, 392)
503
+        Me.五1_tb.Location = New System.Drawing.Point(54, 479)
412 504
         Me.五1_tb.Name = "五1_tb"
413 505
         Me.五1_tb.Size = New System.Drawing.Size(100, 23)
414 506
         Me.五1_tb.TabIndex = 1814
@@ -416,7 +508,7 @@ Partial Class 後台帳務彙總結算表
416 508
         '
417 509
         '大_tb
418 510
         '
419
-        Me.大_tb.Location = New System.Drawing.Point(55, 200)
511
+        Me.大_tb.Location = New System.Drawing.Point(55, 292)
420 512
         Me.大_tb.Name = "大_tb"
421 513
         Me.大_tb.Size = New System.Drawing.Size(100, 23)
422 514
         Me.大_tb.TabIndex = 1798
@@ -424,7 +516,7 @@ Partial Class 後台帳務彙總結算表
424 516
         '
425 517
         '六_tb
426 518
         '
427
-        Me.六_tb.Location = New System.Drawing.Point(54, 226)
519
+        Me.六_tb.Location = New System.Drawing.Point(54, 318)
428 520
         Me.六_tb.Name = "六_tb"
429 521
         Me.六_tb.Size = New System.Drawing.Size(100, 23)
430 522
         Me.六_tb.TabIndex = 1796
@@ -432,7 +524,7 @@ Partial Class 後台帳務彙總結算表
432 524
         '
433 525
         '加_tb
434 526
         '
435
-        Me.加_tb.Location = New System.Drawing.Point(54, 251)
527
+        Me.加_tb.Location = New System.Drawing.Point(54, 343)
436 528
         Me.加_tb.Name = "加_tb"
437 529
         Me.加_tb.Size = New System.Drawing.Size(100, 23)
438 530
         Me.加_tb.TabIndex = 1794
@@ -440,7 +532,7 @@ Partial Class 後台帳務彙總結算表
440 532
         '
441 533
         '五_tb
442 534
         '
443
-        Me.五_tb.Location = New System.Drawing.Point(54, 276)
535
+        Me.五_tb.Location = New System.Drawing.Point(54, 368)
444 536
         Me.五_tb.Name = "五_tb"
445 537
         Me.五_tb.Size = New System.Drawing.Size(100, 23)
446 538
         Me.五_tb.TabIndex = 1792
@@ -450,7 +542,7 @@ Partial Class 後台帳務彙總結算表
450 542
         '
451 543
         Me.Label10.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
452 544
         Me.Label10.AutoSize = True
453
-        Me.Label10.Location = New System.Drawing.Point(10, 308)
545
+        Me.Label10.Location = New System.Drawing.Point(10, 400)
454 546
         Me.Label10.Name = "Label10"
455 547
         Me.Label10.Size = New System.Drawing.Size(43, 16)
456 548
         Me.Label10.TabIndex = 1819
@@ -460,7 +552,7 @@ Partial Class 後台帳務彙總結算表
460 552
         '
461 553
         Me.Label11.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
462 554
         Me.Label11.AutoSize = True
463
-        Me.Label11.Location = New System.Drawing.Point(11, 337)
555
+        Me.Label11.Location = New System.Drawing.Point(11, 429)
464 556
         Me.Label11.Name = "Label11"
465 557
         Me.Label11.Size = New System.Drawing.Size(43, 16)
466 558
         Me.Label11.TabIndex = 1817
@@ -470,7 +562,7 @@ Partial Class 後台帳務彙總結算表
470 562
         '
471 563
         Me.Label12.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
472 564
         Me.Label12.AutoSize = True
473
-        Me.Label12.Location = New System.Drawing.Point(10, 366)
565
+        Me.Label12.Location = New System.Drawing.Point(10, 458)
474 566
         Me.Label12.Name = "Label12"
475 567
         Me.Label12.Size = New System.Drawing.Size(43, 16)
476 568
         Me.Label12.TabIndex = 1815
@@ -480,7 +572,7 @@ Partial Class 後台帳務彙總結算表
480 572
         '
481 573
         Me.Label13.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
482 574
         Me.Label13.AutoSize = True
483
-        Me.Label13.Location = New System.Drawing.Point(25, 395)
575
+        Me.Label13.Location = New System.Drawing.Point(25, 482)
484 576
         Me.Label13.Name = "Label13"
485 577
         Me.Label13.Size = New System.Drawing.Size(28, 16)
486 578
         Me.Label13.TabIndex = 1813
@@ -489,7 +581,7 @@ Partial Class 後台帳務彙總結算表
489 581
         'Label9
490 582
         '
491 583
         Me.Label9.AutoSize = True
492
-        Me.Label9.Location = New System.Drawing.Point(11, 203)
584
+        Me.Label9.Location = New System.Drawing.Point(11, 295)
493 585
         Me.Label9.Name = "Label9"
494 586
         Me.Label9.Size = New System.Drawing.Size(43, 16)
495 587
         Me.Label9.TabIndex = 1797
@@ -498,7 +590,7 @@ Partial Class 後台帳務彙總結算表
498 590
         'Label8
499 591
         '
500 592
         Me.Label8.AutoSize = True
501
-        Me.Label8.Location = New System.Drawing.Point(11, 229)
593
+        Me.Label8.Location = New System.Drawing.Point(11, 321)
502 594
         Me.Label8.Name = "Label8"
503 595
         Me.Label8.Size = New System.Drawing.Size(43, 16)
504 596
         Me.Label8.TabIndex = 1795
@@ -507,7 +599,7 @@ Partial Class 後台帳務彙總結算表
507 599
         'Label7
508 600
         '
509 601
         Me.Label7.AutoSize = True
510
-        Me.Label7.Location = New System.Drawing.Point(10, 254)
602
+        Me.Label7.Location = New System.Drawing.Point(10, 346)
511 603
         Me.Label7.Name = "Label7"
512 604
         Me.Label7.Size = New System.Drawing.Size(43, 16)
513 605
         Me.Label7.TabIndex = 1793
@@ -516,7 +608,7 @@ Partial Class 後台帳務彙總結算表
516 608
         'Label6
517 609
         '
518 610
         Me.Label6.AutoSize = True
519
-        Me.Label6.Location = New System.Drawing.Point(25, 279)
611
+        Me.Label6.Location = New System.Drawing.Point(25, 371)
520 612
         Me.Label6.Name = "Label6"
521 613
         Me.Label6.Size = New System.Drawing.Size(28, 16)
522 614
         Me.Label6.TabIndex = 1791
@@ -537,25 +629,6 @@ Partial Class 後台帳務彙總結算表
537 629
         Me.彙總2_dgv.Size = New System.Drawing.Size(78, 61)
538 630
         Me.彙總2_dgv.TabIndex = 1785
539 631
         '
540
-        '調退實佔_tb
541
-        '
542
-        Me.調退實佔_tb.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
543
-        Me.調退實佔_tb.Location = New System.Drawing.Point(66, 507)
544
-        Me.調退實佔_tb.Name = "調退實佔_tb"
545
-        Me.調退實佔_tb.Size = New System.Drawing.Size(100, 23)
546
-        Me.調退實佔_tb.TabIndex = 1784
547
-        Me.調退實佔_tb.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
548
-        '
549
-        'Label3
550
-        '
551
-        Me.Label3.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
552
-        Me.Label3.AutoSize = True
553
-        Me.Label3.Location = New System.Drawing.Point(9, 510)
554
-        Me.Label3.Name = "Label3"
555
-        Me.Label3.Size = New System.Drawing.Size(55, 16)
556
-        Me.Label3.TabIndex = 1783
557
-        Me.Label3.Text = "調退實佔"
558
-        '
559 632
         '截圖_bt
560 633
         '
561 634
         Me.截圖_bt.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
@@ -593,8 +666,9 @@ Partial Class 後台帳務彙總結算表
593 666
         'Panel2
594 667
         '
595 668
         Me.Panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
669
+        Me.Panel2.Controls.Add(Me.彙總7_dgv)
670
+        Me.Panel2.Controls.Add(Me.彙總6_dgv)
596 671
         Me.Panel2.Controls.Add(Me.彙總2_dgv)
597
-        Me.Panel2.Controls.Add(Me.年初_dtp)
598 672
         Me.Panel2.Controls.Add(Me.Label13)
599 673
         Me.Panel2.Controls.Add(Me.加1_tb)
600 674
         Me.Panel2.Controls.Add(Me.彙總3_dgv)
@@ -605,13 +679,9 @@ Partial Class 後台帳務彙總結算表
605 679
         Me.Panel2.Controls.Add(Me.周1_ch)
606 680
         Me.Panel2.Controls.Add(Me.結束日期1_dtp)
607 681
         Me.Panel2.Controls.Add(Me.月1_ch)
608
-        Me.Panel2.Controls.Add(Me.月初_dtp)
609 682
         Me.Panel2.Controls.Add(Me.彙總1_dgv)
610 683
         Me.Panel2.Controls.Add(Me.Label11)
611 684
         Me.Panel2.Controls.Add(Me.彙總4_dgv)
612
-        Me.Panel2.Controls.Add(Me.Label5)
613
-        Me.Panel2.Controls.Add(Me.調退實佔_tb)
614
-        Me.Panel2.Controls.Add(Me.Label3)
615 685
         Me.Panel2.Controls.Add(Me.整合_ch)
616 686
         Me.Panel2.Controls.Add(Me.Label10)
617 687
         Me.Panel2.Controls.Add(Me.天_ch)
@@ -633,13 +703,39 @@ Partial Class 後台帳務彙總結算表
633 703
         Me.Panel2.TabIndex = 1786
634 704
         Me.Panel2.Visible = False
635 705
         '
636
-        '年初_dtp
706
+        '彙總7_dgv
637 707
         '
638
-        Me.年初_dtp.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
639
-        Me.年初_dtp.Location = New System.Drawing.Point(54, 421)
640
-        Me.年初_dtp.Name = "年初_dtp"
641
-        Me.年初_dtp.Size = New System.Drawing.Size(100, 23)
642
-        Me.年初_dtp.TabIndex = 1817
708
+        Me.彙總7_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
709
+            Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
710
+        Me.彙總7_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
711
+        Me.彙總7_dgv.BackgroundColor = System.Drawing.Color.White
712
+        Me.彙總7_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
713
+        Me.彙總7_dgv.Location = New System.Drawing.Point(83, 200)
714
+        Me.彙總7_dgv.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
715
+        Me.彙總7_dgv.Name = "彙總7_dgv"
716
+        Me.彙總7_dgv.RowHeadersWidth = 4
717
+        DataGridViewCellStyle6.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
718
+        Me.彙總7_dgv.RowsDefaultCellStyle = DataGridViewCellStyle6
719
+        Me.彙總7_dgv.RowTemplate.Height = 24
720
+        Me.彙總7_dgv.Size = New System.Drawing.Size(78, 61)
721
+        Me.彙總7_dgv.TabIndex = 1822
722
+        '
723
+        '彙總6_dgv
724
+        '
725
+        Me.彙總6_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
726
+            Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
727
+        Me.彙總6_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
728
+        Me.彙總6_dgv.BackgroundColor = System.Drawing.Color.White
729
+        Me.彙總6_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
730
+        Me.彙總6_dgv.Location = New System.Drawing.Point(3, 200)
731
+        Me.彙總6_dgv.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
732
+        Me.彙總6_dgv.Name = "彙總6_dgv"
733
+        Me.彙總6_dgv.RowHeadersWidth = 4
734
+        DataGridViewCellStyle7.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
735
+        Me.彙總6_dgv.RowsDefaultCellStyle = DataGridViewCellStyle7
736
+        Me.彙總6_dgv.RowTemplate.Height = 24
737
+        Me.彙總6_dgv.Size = New System.Drawing.Size(78, 61)
738
+        Me.彙總6_dgv.TabIndex = 1821
643 739
         '
644 740
         '結束日期1_dtp
645 741
         '
@@ -659,11 +755,59 @@ Partial Class 後台帳務彙總結算表
659 755
         Me.股東帳_Ch.Text = "股東帳"
660 756
         Me.股東帳_Ch.UseVisualStyleBackColor = True
661 757
         '
758
+        '顯日_ch
759
+        '
760
+        Me.顯日_ch.AutoSize = True
761
+        Me.顯日_ch.Checked = True
762
+        Me.顯日_ch.CheckState = System.Windows.Forms.CheckState.Checked
763
+        Me.顯日_ch.Location = New System.Drawing.Point(10, 29)
764
+        Me.顯日_ch.Name = "顯日_ch"
765
+        Me.顯日_ch.Size = New System.Drawing.Size(38, 20)
766
+        Me.顯日_ch.TabIndex = 1788
767
+        Me.顯日_ch.Text = "日"
768
+        Me.顯日_ch.UseVisualStyleBackColor = True
769
+        '
770
+        '顯周_ch
771
+        '
772
+        Me.顯周_ch.AutoSize = True
773
+        Me.顯周_ch.Checked = True
774
+        Me.顯周_ch.CheckState = System.Windows.Forms.CheckState.Checked
775
+        Me.顯周_ch.Location = New System.Drawing.Point(57, 29)
776
+        Me.顯周_ch.Name = "顯周_ch"
777
+        Me.顯周_ch.Size = New System.Drawing.Size(38, 20)
778
+        Me.顯周_ch.TabIndex = 1789
779
+        Me.顯周_ch.Text = "周"
780
+        Me.顯周_ch.UseVisualStyleBackColor = True
781
+        '
782
+        '顯月_ch
783
+        '
784
+        Me.顯月_ch.AutoSize = True
785
+        Me.顯月_ch.Location = New System.Drawing.Point(104, 29)
786
+        Me.顯月_ch.Name = "顯月_ch"
787
+        Me.顯月_ch.Size = New System.Drawing.Size(38, 20)
788
+        Me.顯月_ch.TabIndex = 1790
789
+        Me.顯月_ch.Text = "月"
790
+        Me.顯月_ch.UseVisualStyleBackColor = True
791
+        '
792
+        '顯年_ch
793
+        '
794
+        Me.顯年_ch.AutoSize = True
795
+        Me.顯年_ch.Location = New System.Drawing.Point(151, 29)
796
+        Me.顯年_ch.Name = "顯年_ch"
797
+        Me.顯年_ch.Size = New System.Drawing.Size(38, 20)
798
+        Me.顯年_ch.TabIndex = 1791
799
+        Me.顯年_ch.Text = "年"
800
+        Me.顯年_ch.UseVisualStyleBackColor = True
801
+        '
662 802
         '後台帳務彙總結算表
663 803
         '
664 804
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
665 805
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
666
-        Me.ClientSize = New System.Drawing.Size(953, 1001)
806
+        Me.ClientSize = New System.Drawing.Size(1117, 651)
807
+        Me.Controls.Add(Me.顯年_ch)
808
+        Me.Controls.Add(Me.顯日_ch)
809
+        Me.Controls.Add(Me.顯周_ch)
810
+        Me.Controls.Add(Me.顯月_ch)
667 811
         Me.Controls.Add(Me.股東帳_Ch)
668 812
         Me.Controls.Add(Me.Panel2)
669 813
         Me.Controls.Add(Me.重新計算_bt)
@@ -679,13 +823,22 @@ Partial Class 後台帳務彙總結算表
679 823
         CType(Me.彙總1_dgv, System.ComponentModel.ISupportInitialize).EndInit()
680 824
         CType(Me.PictureBox2, System.ComponentModel.ISupportInitialize).EndInit()
681 825
         Me.Panel1.ResumeLayout(False)
682
-        Me.Panel1.PerformLayout()
826
+        Me.A4_P.ResumeLayout(False)
827
+        Me.A4_P.PerformLayout()
828
+        Me.A3_P.ResumeLayout(False)
829
+        Me.A3_P.PerformLayout()
830
+        Me.A2_P.ResumeLayout(False)
831
+        Me.A2_P.PerformLayout()
832
+        Me.A1_P.ResumeLayout(False)
833
+        Me.A1_P.PerformLayout()
683 834
         CType(Me.彙總5_dgv, System.ComponentModel.ISupportInitialize).EndInit()
684 835
         CType(Me.彙總3_dgv, System.ComponentModel.ISupportInitialize).EndInit()
685 836
         CType(Me.彙總4_dgv, System.ComponentModel.ISupportInitialize).EndInit()
686 837
         CType(Me.彙總2_dgv, System.ComponentModel.ISupportInitialize).EndInit()
687 838
         Me.Panel2.ResumeLayout(False)
688 839
         Me.Panel2.PerformLayout()
840
+        CType(Me.彙總7_dgv, System.ComponentModel.ISupportInitialize).EndInit()
841
+        CType(Me.彙總6_dgv, System.ComponentModel.ISupportInitialize).EndInit()
689 842
         Me.ResumeLayout(False)
690 843
         Me.PerformLayout()
691 844
 
@@ -705,7 +858,7 @@ Partial Class 後台帳務彙總結算表
705 858
     Friend WithEvents Label26 As Label
706 859
     Friend WithEvents 截圖_bt As Button
707 860
     Friend WithEvents 整合_ch As CheckBox
708
-    Friend WithEvents 調退實佔_tb As TextBox
861
+    Friend WithEvents 結果3_tb As TextBox
709 862
     Friend WithEvents Label3 As Label
710 863
     Friend WithEvents 重新計算_bt As Button
711 864
     Friend WithEvents 股東帳_Ch As CheckBox
@@ -743,4 +896,15 @@ Partial Class 後台帳務彙總結算表
743 896
     Friend WithEvents Label18 As Label
744 897
     Friend WithEvents Panel2 As Panel
745 898
     Friend WithEvents 年初_dtp As DateTimePicker
899
+    Friend WithEvents 顯日_ch As CheckBox
900
+    Friend WithEvents 顯周_ch As CheckBox
901
+    Friend WithEvents 顯月_ch As CheckBox
902
+    Friend WithEvents 顯年_ch As CheckBox
903
+    Friend WithEvents A4_P As Panel
904
+    Friend WithEvents Label15 As Label
905
+    Friend WithEvents A3_P As Panel
906
+    Friend WithEvents A2_P As Panel
907
+    Friend WithEvents A1_P As Panel
908
+    Friend WithEvents 彙總6_dgv As DataGridView
909
+    Friend WithEvents 彙總7_dgv As DataGridView
746 910
 End Class

+ 293
- 124
GA-ERP-SYS/報表系統管理/後台/後台帳務彙總結算表.vb 查看文件

@@ -11,6 +11,7 @@
11 11
         For i As Integer = 0 To 日期清單_dgv.Rows.Count - 1 : 日期清單_dgv("資料", i).Value = 數量 : 數量 -= 1 : Next
12 12
     End Sub
13 13
     Private Sub Set_流水帳清單3()
14
+        '--------日--------------------------------------------------------------------------------------------------------------------------------------------------------------------
14 15
         Dim ds5 As New DataSet
15 16
         彙總1_dgv.DataSource = Nothing : ds5.Clear() : 彙總1_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
16 17
         彙總1_dgv.ColumnHeadersHeight = 25 : 彙總1_dgv.AllowUserToAddRows = False
@@ -42,11 +43,11 @@
42 43
             彙總1_dgv.Rows(i).Cells("項次").Value = i + 1
43 44
         Next
44 45
 
46
+        '--------周--------------------------------------------------------------------------------------------------------------------------------------------------------------------
45 47
         Dim ds6 As New DataSet
46 48
         彙總2_dgv.DataSource = Nothing : ds6.Clear() : 彙總2_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
47 49
         彙總2_dgv.ColumnHeadersHeight = 25 : 彙總2_dgv.AllowUserToAddRows = False
48
-        If 周1_ch.Checked = True Then : PA16 = Strings.Format(本周周一_dtp.Value, "yyyy-MM-dd") : PA17 = Strings.Format(結束日期_dtp.Value, "yyyy-MM-dd")
49
-        Else : PA16 = Strings.Format(月初_dtp.Value, "yyyy-MM-dd") : PA17 = Strings.Format(結束日期_dtp.Value, "yyyy-MM-dd") : End If
50
+        PA16 = Strings.Format(本周周一_dtp.Value, "yyyy-MM-dd") : PA17 = Strings.Format(結束日期_dtp.Value, "yyyy-MM-dd")
50 51
         If 股東帳_Ch.Checked = True Then : SQL2 = " And (後台商客基本資料表.自訂 = 1)" : Else : SQL2 = "" : End If
51 52
         SQL_後台彙總讀取2()
52 53
 
@@ -74,6 +75,39 @@
74 75
             彙總2_dgv.Rows(i).Cells("項次").Value = i + 1
75 76
         Next
76 77
 
78
+        '--------月--------------------------------------------------------------------------------------------------------------------------------------------------------------------
79
+        Dim ds10 As New DataSet
80
+        彙總6_dgv.DataSource = Nothing : ds10.Clear() : 彙總6_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
81
+        彙總6_dgv.ColumnHeadersHeight = 25 : 彙總6_dgv.AllowUserToAddRows = False
82
+        PA16 = Strings.Format(月初_dtp.Value, "yyyy-MM-dd") : PA17 = Strings.Format(結束日期_dtp.Value, "yyyy-MM-dd")
83
+        If 股東帳_Ch.Checked = True Then : SQL2 = " And (後台商客基本資料表.自訂 = 1)" : Else : SQL2 = "" : End If
84
+        SQL_後台彙總讀取2()
85
+
86
+        da.Fill(ds10) : 彙總6_dgv.DataSource = ds10.Tables(0) : conn.Close()
87
+        彙總6_dgv.Columns("網址").Visible = False : 彙總6_dgv.Columns("排序").Visible = False : 彙總6_dgv.Columns("帳號").Visible = False : 彙總6_dgv.Columns("項次").FillWeight = 40
88
+        彙總6_dgv.Columns("商品").FillWeight = 80 : 彙總6_dgv.Columns("系統").FillWeight = 40 : 彙總6_dgv.Columns("虛量").Visible = False : 彙總6_dgv.Columns("實量").FillWeight = 90
89
+        彙總6_dgv.Columns("貢獻額").Visible = False : 彙總6_dgv.Columns("中獎").Visible = False : 彙總6_dgv.Columns("輸贏").Visible = False : 彙總6_dgv.Columns("退水").Visible = False
90
+        彙總6_dgv.Columns("結果").FillWeight = 90 : 彙總6_dgv.Columns("移轉").Visible = False : 彙總6_dgv.Columns("調退實佔").Visible = False
91
+
92
+        彙總6_dgv.Columns("虛量").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight : 彙總6_dgv.Columns("實量").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
93
+        彙總6_dgv.Columns("退水").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight : 彙總6_dgv.Columns("中獎").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
94
+        彙總6_dgv.Columns("輸贏").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight : 彙總6_dgv.Columns("貢獻額").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
95
+        彙總6_dgv.Columns("結果").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight : 彙總6_dgv.Columns("移轉").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
96
+        彙總6_dgv.Columns("調退實佔").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
97
+
98
+        彙總6_dgv.Columns("虛量").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : 彙總6_dgv.Columns("實量").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
99
+        彙總6_dgv.Columns("退水").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : 彙總6_dgv.Columns("中獎").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
100
+        彙總6_dgv.Columns("輸贏").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : 彙總6_dgv.Columns("貢獻額").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
101
+        彙總6_dgv.Columns("結果").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight : 彙總6_dgv.Columns("移轉").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
102
+        彙總6_dgv.Columns("調退實佔").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
103
+
104
+        For i As Integer = 0 To 彙總6_dgv.Rows.Count - 1
105
+            If 彙總6_dgv.Rows(i).Cells("調退實佔").Value.ToString = "" Then : 彙總6_dgv.Rows(i).Cells("調退實佔").Value = "0" : End If
106
+            彙總6_dgv.Rows(i).Cells("結果").Value = Strings.Format(CLng(彙總6_dgv.Rows(i).Cells("排序").Value.ToString), "#,##0")
107
+            彙總6_dgv.Rows(i).Cells("項次").Value = i + 1
108
+        Next
109
+
110
+        '--------日--------------------------------------------------------------------------------------------------------------------------------------------------------------------
77 111
         Dim ds7 As New DataSet
78 112
         彙總3_dgv.DataSource = Nothing : ds7.Clear() : 彙總3_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
79 113
         彙總3_dgv.ColumnHeadersHeight = 25 : 彙總3_dgv.AllowUserToAddRows = False
@@ -146,128 +180,70 @@
146 180
         If CLng(六_tb.Text) <= 0 Then : 六_tb.ForeColor = Color.Red : Else : 六_tb.ForeColor = Color.Blue : End If : 六_tb.Text = Strings.Format(CLng(六_tb.Text), "#,##0")
147 181
         If CLng(大_tb.Text) <= 0 Then : 大_tb.ForeColor = Color.Red : Else : 大_tb.ForeColor = Color.Blue : End If : 大_tb.Text = Strings.Format(CLng(大_tb.Text), "#,##0")
148 182
 
183
+        '--------周--------------------------------------------------------------------------------------------------------------------------------------------------------------------
149 184
         Dim ds8 As New DataSet
150 185
         彙總4_dgv.DataSource = Nothing : ds8.Clear() : 彙總4_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
151 186
         彙總4_dgv.ColumnHeadersHeight = 25 : 彙總4_dgv.AllowUserToAddRows = False
152
-        If 周1_ch.Checked = True Then : PA16 = Strings.Format(本周周一_dtp.Value, "yyyy-MM-dd") : PA17 = Strings.Format(結束日期_dtp.Value, "yyyy-MM-dd")
153
-        Else : PA16 = Strings.Format(月初_dtp.Value, "yyyy-MM-dd") : PA17 = Strings.Format(結束日期_dtp.Value, "yyyy-MM-dd") : End If
187
+        PA16 = Strings.Format(本周周一_dtp.Value, "yyyy-MM-dd") : PA17 = Strings.Format(結束日期_dtp.Value, "yyyy-MM-dd")
154 188
         If 股東帳_Ch.Checked = True Then : SQL2 = " And (後台商客基本資料表.自訂 = 1)" : Else : SQL2 = "" : End If
155
-        If 周1_ch.Checked = True Then : SQL_後台彙總讀取3() : Else : SQL_後台彙總讀取4() : End If
189
+        SQL_後台彙總讀取3()
156 190
 
157 191
         da.Fill(ds8) : 彙總4_dgv.DataSource = ds8.Tables(0) : conn.Close()
158 192
         彙總4_dgv.Columns("排序").Visible = False
159 193
         彙總4_dgv.Columns("項次").FillWeight = 40 : 彙總4_dgv.Columns("商品").FillWeight = 80 : 彙總4_dgv.Columns("系統").FillWeight = 40
160
-        If 周1_ch.Checked = True Then
161
-            彙總4_dgv.Columns("總量-周").FillWeight = 80 : 彙總4_dgv.Columns("結果-周").FillWeight = 80 : 彙總4_dgv.Columns("539-周").Visible = False
162
-            彙總4_dgv.Columns("加州彩-周").Visible = False : 彙總4_dgv.Columns("六合彩-周").Visible = False : 彙總4_dgv.Columns("大樂透-周").Visible = False
163
-        Else
164
-            彙總4_dgv.Columns("總量-月").FillWeight = 80 : 彙總4_dgv.Columns("結果-月").FillWeight = 80 : 彙總4_dgv.Columns("539-月").Visible = False
165
-            彙總4_dgv.Columns("加州彩-月").Visible = False : 彙總4_dgv.Columns("六合彩-月").Visible = False : 彙總4_dgv.Columns("大樂透-月").Visible = False
166
-        End If
194
+        彙總4_dgv.Columns("總量-周").FillWeight = 80 : 彙總4_dgv.Columns("結果-周").FillWeight = 80 : 彙總4_dgv.Columns("539-周").Visible = False
195
+        彙總4_dgv.Columns("加州彩-周").Visible = False : 彙總4_dgv.Columns("六合彩-周").Visible = False : 彙總4_dgv.Columns("大樂透-周").Visible = False
167 196
 
168
-        If 周1_ch.Checked = True Then
169
-            彙總4_dgv.Columns("總量-周").DefaultCellStyle.Format = "#,##0" : 彙總4_dgv.Columns("結果-周").DefaultCellStyle.Format = "#,##0"
170
-            彙總4_dgv.Columns("539-周").DefaultCellStyle.Format = "#,##0" : 彙總4_dgv.Columns("加州彩-周").DefaultCellStyle.Format = "#,##0"
171
-            彙總4_dgv.Columns("六合彩-周").DefaultCellStyle.Format = "#,##0" : 彙總4_dgv.Columns("大樂透-周").DefaultCellStyle.Format = "#,##0"
172
-
173
-            彙總4_dgv.Columns("總量-周").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
174
-            彙總4_dgv.Columns("結果-周").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
175
-            彙總4_dgv.Columns("539-周").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
176
-            彙總4_dgv.Columns("加州彩-周").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
177
-            彙總4_dgv.Columns("六合彩-周").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
178
-            彙總4_dgv.Columns("大樂透-周").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
179
-
180
-            彙總4_dgv.Columns("總量-周").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
181
-            彙總4_dgv.Columns("結果-周").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
182
-            彙總4_dgv.Columns("539-周").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
183
-            彙總4_dgv.Columns("加州彩-周").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
184
-            彙總4_dgv.Columns("六合彩-周").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
185
-            彙總4_dgv.Columns("大樂透-周").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
186
-        Else
187
-            彙總4_dgv.Columns("總量-月").DefaultCellStyle.Format = "#,##0" : 彙總4_dgv.Columns("結果-月").DefaultCellStyle.Format = "#,##0"
188
-            彙總4_dgv.Columns("539-月").DefaultCellStyle.Format = "#,##0" : 彙總4_dgv.Columns("加州彩-月").DefaultCellStyle.Format = "#,##0"
189
-            彙總4_dgv.Columns("六合彩-月").DefaultCellStyle.Format = "#,##0" : 彙總4_dgv.Columns("大樂透-月").DefaultCellStyle.Format = "#,##0"
190
-
191
-            彙總4_dgv.Columns("總量-月").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
192
-            彙總4_dgv.Columns("結果-月").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
193
-            彙總4_dgv.Columns("539-月").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
194
-            彙總4_dgv.Columns("加州彩-月").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
195
-            彙總4_dgv.Columns("六合彩-月").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
196
-            彙總4_dgv.Columns("大樂透-月").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
197
-
198
-            彙總4_dgv.Columns("總量-月").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
199
-            彙總4_dgv.Columns("結果-月").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
200
-            彙總4_dgv.Columns("539-月").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
201
-            彙總4_dgv.Columns("加州彩-月").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
202
-            彙總4_dgv.Columns("六合彩-月").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
203
-            彙總4_dgv.Columns("大樂透-月").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
204
-        End If
197
+        彙總4_dgv.Columns("總量-周").DefaultCellStyle.Format = "#,##0" : 彙總4_dgv.Columns("結果-周").DefaultCellStyle.Format = "#,##0"
198
+        彙總4_dgv.Columns("539-周").DefaultCellStyle.Format = "#,##0" : 彙總4_dgv.Columns("加州彩-周").DefaultCellStyle.Format = "#,##0"
199
+        彙總4_dgv.Columns("六合彩-周").DefaultCellStyle.Format = "#,##0" : 彙總4_dgv.Columns("大樂透-周").DefaultCellStyle.Format = "#,##0"
200
+
201
+        彙總4_dgv.Columns("總量-周").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
202
+        彙總4_dgv.Columns("結果-周").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
203
+        彙總4_dgv.Columns("539-周").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
204
+        彙總4_dgv.Columns("加州彩-周").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
205
+        彙總4_dgv.Columns("六合彩-周").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
206
+        彙總4_dgv.Columns("大樂透-周").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
207
+
208
+        彙總4_dgv.Columns("總量-周").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
209
+        彙總4_dgv.Columns("結果-周").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
210
+        彙總4_dgv.Columns("539-周").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
211
+        彙總4_dgv.Columns("加州彩-周").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
212
+        彙總4_dgv.Columns("六合彩-周").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
213
+        彙總4_dgv.Columns("大樂透-周").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
205 214
 
206 215
         結果1_tb.Text = "0" : 五1_tb.Text = "0" : 加1_tb.Text = "0" : 六1_tb.Text = "0" : 大1_tb.Text = "0"
207 216
         For i As Integer = 0 To 彙總4_dgv.Rows.Count - 1
208
-            If 周1_ch.Checked = True Then
209
-                彙總4_dgv.Rows(i).Cells("總量-周").Value = 0 : 彙總4_dgv.Rows(i).Cells("結果-周").Value = 0 : 彙總4_dgv.Rows(i).Cells("539-周").Value = 0
210
-                彙總4_dgv.Rows(i).Cells("加州彩-周").Value = 0 : 彙總4_dgv.Rows(i).Cells("六合彩-周").Value = 0 : 彙總4_dgv.Rows(i).Cells("大樂透-周").Value = 0
211
-                For ii As Integer = 0 To 彙總2_dgv.Rows.Count - 1
212
-                    If 彙總4_dgv.Rows(i).Cells("商品").Value.ToString.ToLower() = 彙總2_dgv.Rows(ii).Cells("商品").Value.ToString.ToLower() And
217
+            彙總4_dgv.Rows(i).Cells("總量-周").Value = 0 : 彙總4_dgv.Rows(i).Cells("結果-周").Value = 0 : 彙總4_dgv.Rows(i).Cells("539-周").Value = 0
218
+            彙總4_dgv.Rows(i).Cells("加州彩-周").Value = 0 : 彙總4_dgv.Rows(i).Cells("六合彩-周").Value = 0 : 彙總4_dgv.Rows(i).Cells("大樂透-周").Value = 0
219
+            For ii As Integer = 0 To 彙總2_dgv.Rows.Count - 1
220
+                If 彙總4_dgv.Rows(i).Cells("商品").Value.ToString.ToLower() = 彙總2_dgv.Rows(ii).Cells("商品").Value.ToString.ToLower() And
213 221
                        彙總2_dgv.Rows(ii).Cells("類別").Value.ToString = "全" Then
214
-                        彙總4_dgv.Rows(i).Cells("總量-周").Value = CDbl(彙總2_dgv.Rows(ii).Cells("貢獻額").Value)
215
-                        彙總4_dgv.Rows(i).Cells("結果-周").Value = CDbl(彙總2_dgv.Rows(ii).Cells("結果").Value)
216
-                    End If
217
-                    If 彙總4_dgv.Rows(i).Cells("商品").Value.ToString.ToLower() = 彙總2_dgv.Rows(ii).Cells("商品").Value.ToString.ToLower() And
218
-                       彙總2_dgv.Rows(ii).Cells("類別").Value.ToString = "五" Then
219
-                        彙總4_dgv.Rows(i).Cells("539-周").Value = CDbl(彙總2_dgv.Rows(ii).Cells("結果").Value)
220
-                    End If
221
-                    If 彙總4_dgv.Rows(i).Cells("商品").Value.ToString.ToLower() = 彙總2_dgv.Rows(ii).Cells("商品").Value.ToString.ToLower() And
222
-                       彙總2_dgv.Rows(ii).Cells("類別").Value.ToString = "加" Then
223
-                        彙總4_dgv.Rows(i).Cells("加州彩-周").Value = CDbl(彙總2_dgv.Rows(ii).Cells("結果").Value)
224
-                    End If
225
-                    If 彙總4_dgv.Rows(i).Cells("商品").Value.ToString.ToLower() = 彙總2_dgv.Rows(ii).Cells("商品").Value.ToString.ToLower() And
226
-                       彙總2_dgv.Rows(ii).Cells("類別").Value.ToString = "六" Then
227
-                        彙總4_dgv.Rows(i).Cells("六合彩-周").Value = CDbl(彙總2_dgv.Rows(ii).Cells("結果").Value)
228
-                    End If
229
-                    If 彙總4_dgv.Rows(i).Cells("商品").Value.ToString.ToLower() = 彙總2_dgv.Rows(ii).Cells("商品").Value.ToString.ToLower() And
230
-                       彙總2_dgv.Rows(ii).Cells("類別").Value.ToString = "大" Then
231
-                        彙總4_dgv.Rows(i).Cells("大樂透-周").Value = CDbl(彙總2_dgv.Rows(ii).Cells("結果").Value)
232
-                    End If
233
-                Next
234
-                結果1_tb.Text = CLng(結果1_tb.Text) + CLng(彙總4_dgv.Rows(i).Cells("結果-周").Value.ToString)
235
-                五1_tb.Text = CLng(五1_tb.Text) + CLng(彙總4_dgv.Rows(i).Cells("539-周").Value.ToString)
236
-                加1_tb.Text = CLng(加1_tb.Text) + CLng(彙總4_dgv.Rows(i).Cells("加州彩-周").Value.ToString)
237
-                六1_tb.Text = CLng(六1_tb.Text) + CLng(彙總4_dgv.Rows(i).Cells("六合彩-周").Value.ToString)
238
-                大1_tb.Text = CLng(大1_tb.Text) + CLng(彙總4_dgv.Rows(i).Cells("大樂透-周").Value.ToString)
239
-            Else
240
-                彙總4_dgv.Rows(i).Cells("總量-月").Value = 0 : 彙總4_dgv.Rows(i).Cells("結果-月").Value = 0 : 彙總4_dgv.Rows(i).Cells("539-月").Value = 0
241
-                彙總4_dgv.Rows(i).Cells("加州彩-月").Value = 0 : 彙總4_dgv.Rows(i).Cells("六合彩-月").Value = 0 : 彙總4_dgv.Rows(i).Cells("大樂透-月").Value = 0
242
-                For ii As Integer = 0 To 彙總2_dgv.Rows.Count - 1
243
-                    If 彙總4_dgv.Rows(i).Cells("商品").Value.ToString.ToLower() = 彙總2_dgv.Rows(ii).Cells("商品").Value.ToString.ToLower() And
244
-                       彙總2_dgv.Rows(ii).Cells("類別").Value.ToString = "全" Then
245
-                        彙總4_dgv.Rows(i).Cells("總量-月").Value = CDbl(彙總2_dgv.Rows(ii).Cells("貢獻額").Value)
246
-                        彙總4_dgv.Rows(i).Cells("結果-月").Value = CDbl(彙總2_dgv.Rows(ii).Cells("結果").Value)
247
-                    End If
248
-                    If 彙總4_dgv.Rows(i).Cells("商品").Value.ToString.ToLower() = 彙總2_dgv.Rows(ii).Cells("商品").Value.ToString.ToLower() And
222
+                    彙總4_dgv.Rows(i).Cells("總量-周").Value = CDbl(彙總2_dgv.Rows(ii).Cells("貢獻額").Value)
223
+                    彙總4_dgv.Rows(i).Cells("結果-周").Value = CDbl(彙總2_dgv.Rows(ii).Cells("結果").Value)
224
+                End If
225
+                If 彙總4_dgv.Rows(i).Cells("商品").Value.ToString.ToLower() = 彙總2_dgv.Rows(ii).Cells("商品").Value.ToString.ToLower() And
249 226
                        彙總2_dgv.Rows(ii).Cells("類別").Value.ToString = "五" Then
250
-                        彙總4_dgv.Rows(i).Cells("539-月").Value = CDbl(彙總2_dgv.Rows(ii).Cells("結果").Value)
251
-                    End If
252
-                    If 彙總4_dgv.Rows(i).Cells("商品").Value.ToString.ToLower() = 彙總2_dgv.Rows(ii).Cells("商品").Value.ToString.ToLower() And
227
+                    彙總4_dgv.Rows(i).Cells("539-周").Value = CDbl(彙總2_dgv.Rows(ii).Cells("結果").Value)
228
+                End If
229
+                If 彙總4_dgv.Rows(i).Cells("商品").Value.ToString.ToLower() = 彙總2_dgv.Rows(ii).Cells("商品").Value.ToString.ToLower() And
253 230
                        彙總2_dgv.Rows(ii).Cells("類別").Value.ToString = "加" Then
254
-                        彙總4_dgv.Rows(i).Cells("加州彩-月").Value = CDbl(彙總2_dgv.Rows(ii).Cells("結果").Value)
255
-                    End If
256
-                    If 彙總4_dgv.Rows(i).Cells("商品").Value.ToString.ToLower() = 彙總2_dgv.Rows(ii).Cells("商品").Value.ToString.ToLower() And
231
+                    彙總4_dgv.Rows(i).Cells("加州彩-周").Value = CDbl(彙總2_dgv.Rows(ii).Cells("結果").Value)
232
+                End If
233
+                If 彙總4_dgv.Rows(i).Cells("商品").Value.ToString.ToLower() = 彙總2_dgv.Rows(ii).Cells("商品").Value.ToString.ToLower() And
257 234
                        彙總2_dgv.Rows(ii).Cells("類別").Value.ToString = "六" Then
258
-                        彙總4_dgv.Rows(i).Cells("六合彩-月").Value = CDbl(彙總2_dgv.Rows(ii).Cells("結果").Value)
259
-                    End If
260
-                    If 彙總4_dgv.Rows(i).Cells("商品").Value.ToString.ToLower() = 彙總2_dgv.Rows(ii).Cells("商品").Value.ToString.ToLower() And
235
+                    彙總4_dgv.Rows(i).Cells("六合彩-周").Value = CDbl(彙總2_dgv.Rows(ii).Cells("結果").Value)
236
+                End If
237
+                If 彙總4_dgv.Rows(i).Cells("商品").Value.ToString.ToLower() = 彙總2_dgv.Rows(ii).Cells("商品").Value.ToString.ToLower() And
261 238
                        彙總2_dgv.Rows(ii).Cells("類別").Value.ToString = "大" Then
262
-                        彙總4_dgv.Rows(i).Cells("大樂透-月").Value = CDbl(彙總2_dgv.Rows(ii).Cells("結果").Value)
263
-                    End If
264
-                Next
265
-                結果1_tb.Text = CLng(結果1_tb.Text) + CLng(彙總4_dgv.Rows(i).Cells("結果-月").Value.ToString)
266
-                五1_tb.Text = CLng(五1_tb.Text) + CLng(彙總4_dgv.Rows(i).Cells("539-月").Value.ToString)
267
-                加1_tb.Text = CLng(加1_tb.Text) + CLng(彙總4_dgv.Rows(i).Cells("加州彩-月").Value.ToString)
268
-                六1_tb.Text = CLng(六1_tb.Text) + CLng(彙總4_dgv.Rows(i).Cells("六合彩-月").Value.ToString)
269
-                大1_tb.Text = CLng(大1_tb.Text) + CLng(彙總4_dgv.Rows(i).Cells("大樂透-月").Value.ToString)
270
-            End If
239
+                    彙總4_dgv.Rows(i).Cells("大樂透-周").Value = CDbl(彙總2_dgv.Rows(ii).Cells("結果").Value)
240
+                End If
241
+            Next
242
+            結果1_tb.Text = CLng(結果1_tb.Text) + CLng(彙總4_dgv.Rows(i).Cells("結果-周").Value.ToString)
243
+            五1_tb.Text = CLng(五1_tb.Text) + CLng(彙總4_dgv.Rows(i).Cells("539-周").Value.ToString)
244
+            加1_tb.Text = CLng(加1_tb.Text) + CLng(彙總4_dgv.Rows(i).Cells("加州彩-周").Value.ToString)
245
+            六1_tb.Text = CLng(六1_tb.Text) + CLng(彙總4_dgv.Rows(i).Cells("六合彩-周").Value.ToString)
246
+            大1_tb.Text = CLng(大1_tb.Text) + CLng(彙總4_dgv.Rows(i).Cells("大樂透-周").Value.ToString)
271 247
         Next
272 248
 
273 249
         If CLng(結果1_tb.Text) <= 0 Then : 結果1_tb.ForeColor = Color.Red : Else : 結果1_tb.ForeColor = Color.Blue : End If : 結果1_tb.Text = Strings.Format(CLng(結果1_tb.Text), "#,##0")
@@ -276,10 +252,85 @@
276 252
         If CLng(六1_tb.Text) <= 0 Then : 六1_tb.ForeColor = Color.Red : Else : 六1_tb.ForeColor = Color.Blue : End If : 六1_tb.Text = Strings.Format(CLng(六1_tb.Text), "#,##0")
277 253
         If CLng(大1_tb.Text) <= 0 Then : 大1_tb.ForeColor = Color.Red : Else : 大1_tb.ForeColor = Color.Blue : End If : 大1_tb.Text = Strings.Format(CLng(大1_tb.Text), "#,##0")
278 254
 
279
-        If 周1_ch.Checked = True Then : 彙總4_dgv.Sort(彙總4_dgv.Columns("結果-周"), System.ComponentModel.ListSortDirection.Descending)
280
-        Else : 彙總4_dgv.Sort(彙總4_dgv.Columns("結果-月"), System.ComponentModel.ListSortDirection.Descending) : End If
255
+        彙總4_dgv.Sort(彙總4_dgv.Columns("結果-周"), System.ComponentModel.ListSortDirection.Descending)
281 256
         For i As Integer = 0 To 彙總4_dgv.Rows.Count - 1 : 彙總4_dgv.Rows(i).Cells("項次").Value = i + 1 : Next
282 257
 
258
+        '--------月--------------------------------------------------------------------------------------------------------------------------------------------------------------------
259
+        Dim ds11 As New DataSet
260
+        彙總7_dgv.DataSource = Nothing : ds11.Clear() : 彙總7_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
261
+        彙總7_dgv.ColumnHeadersHeight = 25 : 彙總7_dgv.AllowUserToAddRows = False
262
+        PA16 = Strings.Format(月初_dtp.Value, "yyyy-MM-dd") : PA17 = Strings.Format(結束日期_dtp.Value, "yyyy-MM-dd")
263
+        If 股東帳_Ch.Checked = True Then : SQL2 = " And (後台商客基本資料表.自訂 = 1)" : Else : SQL2 = "" : End If
264
+        SQL_後台彙總讀取4()
265
+
266
+        da.Fill(ds11) : 彙總7_dgv.DataSource = ds11.Tables(0) : conn.Close()
267
+        彙總7_dgv.Columns("排序").Visible = False
268
+        彙總7_dgv.Columns("項次").FillWeight = 40 : 彙總7_dgv.Columns("商品").FillWeight = 80 : 彙總7_dgv.Columns("系統").FillWeight = 40
269
+        彙總7_dgv.Columns("總量-月").FillWeight = 80 : 彙總7_dgv.Columns("結果-月").FillWeight = 80 : 彙總7_dgv.Columns("539-月").Visible = False
270
+        彙總7_dgv.Columns("加州彩-月").Visible = False : 彙總7_dgv.Columns("六合彩-月").Visible = False : 彙總7_dgv.Columns("大樂透-月").Visible = False
271
+
272
+        彙總7_dgv.Columns("總量-月").DefaultCellStyle.Format = "#,##0" : 彙總7_dgv.Columns("結果-月").DefaultCellStyle.Format = "#,##0"
273
+        彙總7_dgv.Columns("539-月").DefaultCellStyle.Format = "#,##0" : 彙總7_dgv.Columns("加州彩-月").DefaultCellStyle.Format = "#,##0"
274
+        彙總7_dgv.Columns("六合彩-月").DefaultCellStyle.Format = "#,##0" : 彙總7_dgv.Columns("大樂透-月").DefaultCellStyle.Format = "#,##0"
275
+
276
+        彙總7_dgv.Columns("總量-月").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
277
+        彙總7_dgv.Columns("結果-月").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
278
+        彙總7_dgv.Columns("539-月").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
279
+        彙總7_dgv.Columns("加州彩-月").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
280
+        彙總7_dgv.Columns("六合彩-月").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
281
+        彙總7_dgv.Columns("大樂透-月").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
282
+
283
+        彙總7_dgv.Columns("總量-月").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
284
+        彙總7_dgv.Columns("結果-月").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
285
+        彙總7_dgv.Columns("539-月").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
286
+        彙總7_dgv.Columns("加州彩-月").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
287
+        彙總7_dgv.Columns("六合彩-月").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
288
+        彙總7_dgv.Columns("大樂透-月").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
289
+
290
+        結果3_tb.Text = "0" : 五1_tb.Text = "0" : 加1_tb.Text = "0" : 六1_tb.Text = "0" : 大1_tb.Text = "0"
291
+        For i As Integer = 0 To 彙總7_dgv.Rows.Count - 1
292
+            彙總7_dgv.Rows(i).Cells("總量-月").Value = 0 : 彙總7_dgv.Rows(i).Cells("結果-月").Value = 0 : 彙總7_dgv.Rows(i).Cells("539-月").Value = 0
293
+            彙總7_dgv.Rows(i).Cells("加州彩-月").Value = 0 : 彙總7_dgv.Rows(i).Cells("六合彩-月").Value = 0 : 彙總7_dgv.Rows(i).Cells("大樂透-月").Value = 0
294
+            For ii As Integer = 0 To 彙總6_dgv.Rows.Count - 1
295
+                If 彙總7_dgv.Rows(i).Cells("商品").Value.ToString.ToLower() = 彙總6_dgv.Rows(ii).Cells("商品").Value.ToString.ToLower() And
296
+                   彙總6_dgv.Rows(ii).Cells("類別").Value.ToString = "全" Then
297
+                    彙總7_dgv.Rows(i).Cells("總量-月").Value = CDbl(彙總6_dgv.Rows(ii).Cells("貢獻額").Value)
298
+                    彙總7_dgv.Rows(i).Cells("結果-月").Value = CDbl(彙總6_dgv.Rows(ii).Cells("結果").Value)
299
+                End If
300
+                If 彙總7_dgv.Rows(i).Cells("商品").Value.ToString.ToLower() = 彙總6_dgv.Rows(ii).Cells("商品").Value.ToString.ToLower() And
301
+                   彙總6_dgv.Rows(ii).Cells("類別").Value.ToString = "五" Then
302
+                    彙總7_dgv.Rows(i).Cells("539-月").Value = CDbl(彙總6_dgv.Rows(ii).Cells("結果").Value)
303
+                End If
304
+                If 彙總7_dgv.Rows(i).Cells("商品").Value.ToString.ToLower() = 彙總6_dgv.Rows(ii).Cells("商品").Value.ToString.ToLower() And
305
+                   彙總6_dgv.Rows(ii).Cells("類別").Value.ToString = "加" Then
306
+                    彙總7_dgv.Rows(i).Cells("加州彩-月").Value = CDbl(彙總6_dgv.Rows(ii).Cells("結果").Value)
307
+                End If
308
+                If 彙總7_dgv.Rows(i).Cells("商品").Value.ToString.ToLower() = 彙總6_dgv.Rows(ii).Cells("商品").Value.ToString.ToLower() And
309
+                   彙總6_dgv.Rows(ii).Cells("類別").Value.ToString = "六" Then
310
+                    彙總7_dgv.Rows(i).Cells("六合彩-月").Value = CDbl(彙總6_dgv.Rows(ii).Cells("結果").Value)
311
+                End If
312
+                If 彙總7_dgv.Rows(i).Cells("商品").Value.ToString.ToLower() = 彙總6_dgv.Rows(ii).Cells("商品").Value.ToString.ToLower() And
313
+                   彙總6_dgv.Rows(ii).Cells("類別").Value.ToString = "大" Then
314
+                    彙總7_dgv.Rows(i).Cells("大樂透-月").Value = CDbl(彙總6_dgv.Rows(ii).Cells("結果").Value)
315
+                End If
316
+            Next
317
+            結果3_tb.Text = CLng(結果3_tb.Text) + CLng(彙總7_dgv.Rows(i).Cells("結果-月").Value.ToString)
318
+            五1_tb.Text = CLng(五1_tb.Text) + CLng(彙總7_dgv.Rows(i).Cells("539-月").Value.ToString)
319
+            加1_tb.Text = CLng(加1_tb.Text) + CLng(彙總7_dgv.Rows(i).Cells("加州彩-月").Value.ToString)
320
+            六1_tb.Text = CLng(六1_tb.Text) + CLng(彙總7_dgv.Rows(i).Cells("六合彩-月").Value.ToString)
321
+            大1_tb.Text = CLng(大1_tb.Text) + CLng(彙總7_dgv.Rows(i).Cells("大樂透-月").Value.ToString)
322
+        Next
323
+
324
+        If CLng(結果3_tb.Text) <= 0 Then : 結果3_tb.ForeColor = Color.Red : Else : 結果3_tb.ForeColor = Color.Blue : End If : 結果3_tb.Text = Strings.Format(CLng(結果3_tb.Text), "#,##0")
325
+        If CLng(五1_tb.Text) <= 0 Then : 五1_tb.ForeColor = Color.Red : Else : 五1_tb.ForeColor = Color.Blue : End If : 五1_tb.Text = Strings.Format(CLng(五1_tb.Text), "#,##0")
326
+        If CLng(加1_tb.Text) <= 0 Then : 加1_tb.ForeColor = Color.Red : Else : 加1_tb.ForeColor = Color.Blue : End If : 加1_tb.Text = Strings.Format(CLng(加1_tb.Text), "#,##0")
327
+        If CLng(六1_tb.Text) <= 0 Then : 六1_tb.ForeColor = Color.Red : Else : 六1_tb.ForeColor = Color.Blue : End If : 六1_tb.Text = Strings.Format(CLng(六1_tb.Text), "#,##0")
328
+        If CLng(大1_tb.Text) <= 0 Then : 大1_tb.ForeColor = Color.Red : Else : 大1_tb.ForeColor = Color.Blue : End If : 大1_tb.Text = Strings.Format(CLng(大1_tb.Text), "#,##0")
329
+
330
+        彙總7_dgv.Sort(彙總7_dgv.Columns("結果-月"), System.ComponentModel.ListSortDirection.Descending)
331
+        For i As Integer = 0 To 彙總7_dgv.Rows.Count - 1 : 彙總7_dgv.Rows(i).Cells("項次").Value = i + 1 : Next
332
+
333
+        '--------總--------------------------------------------------------------------------------------------------------------------------------------------------------------------
283 334
         Dim ds9 As New DataSet
284 335
         彙總5_dgv.DataSource = Nothing : ds9.Clear() : 彙總5_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
285 336
         彙總5_dgv.ColumnHeadersHeight = 25 : 彙總5_dgv.AllowUserToAddRows = False : 彙總5_dgv.RowTemplate.Height = 22
@@ -290,10 +341,14 @@
290 341
         da.Fill(ds9) : 彙總5_dgv.DataSource = ds9.Tables(0) : conn.Close()
291 342
         彙總5_dgv.Columns("項次").FillWeight = 40 : 彙總5_dgv.Columns("商品").FillWeight = 80 : 彙總5_dgv.Columns("系統").FillWeight = 40
292 343
         彙總5_dgv.Columns("貢獻度-日").FillWeight = 80 : 彙總5_dgv.Columns("結果-日").FillWeight = 80 : 彙總5_dgv.Columns("貢獻度-周").FillWeight = 80
293
-        彙總5_dgv.Columns("結果-周").FillWeight = 80 : 彙總5_dgv.Columns("結果-年").FillWeight = 80
344
+        彙總5_dgv.Columns("結果-周").FillWeight = 80 : 彙總5_dgv.Columns("貢獻度-月").FillWeight = 80 : 彙總5_dgv.Columns("結果-月").FillWeight = 80
345
+        彙總5_dgv.Columns("結果-年").FillWeight = 160
346
+
294 347
         彙總5_dgv.Columns("貢獻度-日").DefaultCellStyle.Format = "#,##0" : 彙總5_dgv.Columns("結果-日").DefaultCellStyle.Format = "#,##0"
295 348
         彙總5_dgv.Columns("貢獻度-周").DefaultCellStyle.Format = "#,##0" : 彙總5_dgv.Columns("結果-周").DefaultCellStyle.Format = "#,##0"
349
+        彙總5_dgv.Columns("貢獻度-月").DefaultCellStyle.Format = "#,##0" : 彙總5_dgv.Columns("結果-月").DefaultCellStyle.Format = "#,##0"
296 350
         彙總5_dgv.Columns("結果-年").DefaultCellStyle.Format = "#,##0"
351
+
297 352
         彙總5_dgv.Columns("結果-年").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
298 353
         彙總5_dgv.Columns("結果-年").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
299 354
         彙總5_dgv.Columns("貢獻度-日").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
@@ -304,17 +359,16 @@
304 359
         彙總5_dgv.Columns("結果-周").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
305 360
         彙總5_dgv.Columns("貢獻度-周").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
306 361
         彙總5_dgv.Columns("結果-周").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
307
-
308
-        '彙總5_dgv.Columns("結果-周").DefaultCellStyle.BackColor = Color.LightYellow
309
-        '彙總5_dgv.Columns("結果-年").DefaultCellStyle.BackColor = Color.LightYellow
310
-        '彙總5_dgv.Columns("結果-日").DefaultCellStyle.BackColor = Color.LightYellow
311
-        '彙總5_dgv.Columns("貢獻度-周").DefaultCellStyle.BackColor = Color.LightYellow
312
-        '彙總5_dgv.Columns("貢獻度-日").DefaultCellStyle.BackColor = Color.LightYellow
362
+        彙總5_dgv.Columns("貢獻度-月").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
363
+        彙總5_dgv.Columns("結果-月").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleRight
364
+        彙總5_dgv.Columns("貢獻度-月").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
365
+        彙總5_dgv.Columns("結果-月").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight
313 366
 
314 367
         結果2_tb.Text = "0"
315 368
         For i As Integer = 0 To 彙總5_dgv.Rows.Count - 1
316 369
             彙總5_dgv.Rows(i).Cells("貢獻度-日").Value = "0" : 彙總5_dgv.Rows(i).Cells("結果-日").Value = "0"
317 370
             彙總5_dgv.Rows(i).Cells("貢獻度-周").Value = "0" : 彙總5_dgv.Rows(i).Cells("結果-周").Value = "0"
371
+            彙總5_dgv.Rows(i).Cells("貢獻度-月").Value = "0" : 彙總5_dgv.Rows(i).Cells("結果-月").Value = "0"
318 372
             For ii As Integer = 0 To 彙總3_dgv.Rows.Count - 1
319 373
                 If 彙總5_dgv.Rows(i).Cells("商品").Value.ToString.ToLower() = 彙總3_dgv.Rows(ii).Cells("商品").Value.ToString.ToLower() Then
320 374
                     彙總5_dgv.Rows(i).Cells("貢獻度-日").Value = CDbl(彙總3_dgv.Rows(ii).Cells("總量-日").Value)
@@ -327,14 +381,21 @@
327 381
                     彙總5_dgv.Rows(i).Cells("結果-周").Value = CDbl(彙總4_dgv.Rows(ii).Cells("結果-周").Value)
328 382
                 End If
329 383
             Next
384
+            For ii As Integer = 0 To 彙總7_dgv.Rows.Count - 1
385
+                If 彙總5_dgv.Rows(i).Cells("商品").Value.ToString.ToLower() = 彙總7_dgv.Rows(ii).Cells("商品").Value.ToString.ToLower() Then
386
+                    彙總5_dgv.Rows(i).Cells("貢獻度-月").Value = CDbl(彙總7_dgv.Rows(ii).Cells("總量-月").Value)
387
+                    彙總5_dgv.Rows(i).Cells("結果-月").Value = CDbl(彙總7_dgv.Rows(ii).Cells("結果-月").Value)
388
+                End If
389
+            Next
330 390
             結果2_tb.Text = CLng(結果2_tb.Text) + CLng(彙總5_dgv.Rows(i).Cells("結果-年").Value.ToString)
331 391
             If CInt(彙總5_dgv.Rows(i).Cells("結果-日").Value.ToString) > 0 Then : 彙總5_dgv.Columns("結果-日").DefaultCellStyle.ForeColor = Color.Blue : End If
332 392
             If CInt(彙總5_dgv.Rows(i).Cells("結果-周").Value.ToString) > 0 Then : 彙總5_dgv.Columns("結果-周").DefaultCellStyle.ForeColor = Color.Blue : End If
393
+            If CInt(彙總5_dgv.Rows(i).Cells("結果-月").Value.ToString) > 0 Then : 彙總5_dgv.Columns("結果-月").DefaultCellStyle.ForeColor = Color.Blue : End If
333 394
             If CInt(彙總5_dgv.Rows(i).Cells("結果-年").Value.ToString) > 0 Then : 彙總5_dgv.Columns("結果-年").DefaultCellStyle.ForeColor = Color.Blue : End If
334 395
         Next
335 396
         If CLng(結果2_tb.Text) <= 0 Then : 結果2_tb.ForeColor = Color.Red : Else : 結果2_tb.ForeColor = Color.Blue : End If : 結果2_tb.Text = Strings.Format(CLng(結果2_tb.Text), "#,##0")
336 397
         彙總5_dgv.Sort(彙總5_dgv.Columns("結果-日"), System.ComponentModel.ListSortDirection.Descending)
337
-        For i As Integer = 0 To 彙總5_dgv.Rows.Count - 1 : 彙總5_dgv.Rows(i).Cells("項次").Value = i + 1 : Next
398
+        For i As Integer = 0 To 彙總5_dgv.Rows.Count - 1 : 彙總5_dgv.Rows(i).Cells("項次").Value = i + 1 : Next : 顯示()
338 399
     End Sub
339 400
 
340 401
     Private Sub 後台帳務彙總結算表_Load(sender As Object, e As EventArgs) Handles MyBase.Load
@@ -351,7 +412,9 @@
351 412
         日期清單_dgv.RowsDefaultCellStyle.Font = New System.Drawing.Font("微軟正黑體", 7.6)
352 413
     End Sub
353 414
     Private Sub 後台帳務彙總結算表_Shown(sender As Object, e As EventArgs) Handles MyBase.Shown
354
-        周1_ch.Checked = True : Label4.Visible = True : Label5.Visible = False : 本周周一_dtp.Visible = True : 月初_dtp.Visible = False
415
+        Me.Size = New Size(769, Screen.PrimaryScreen.Bounds.Height - 60) : A1_P.Visible = True : A2_P.Visible = True : A3_P.Visible = False : A4_P.Visible = False
416
+        A1_P.Location = New Point(215, 2) : A2_P.Location = New Point(397, 2)
417
+        周1_ch.Checked = True
355 418
         結束日期1_dtp.Value = Today() : 月初_dtp.Value = Today() : 月初_dtp.Value = Strings.Left(Strings.Format(Today(), "yyyy/MM/dd"), 8) & "01"
356 419
         Dim oldDate As Date : Dim oldWeekDay As Integer : oldDate = 結束日期1_dtp.Value : oldWeekDay = Weekday(oldDate)
357 420
         If oldWeekDay = 7 Then : 結束日期1_dtp.Value = 結束日期1_dtp.Value.AddDays(1) : ElseIf oldWeekDay = 6 Then : 結束日期1_dtp.Value = 結束日期1_dtp.Value.AddDays(2)
@@ -378,6 +441,7 @@
378 441
         If e.RowIndex = -1 Then : Else
379 442
             開始日期_dtp.Value = 日期清單_dgv("開始日期", e.RowIndex).Value.ToString : 結束日期_dtp.Value = 日期清單_dgv("結束日期", e.RowIndex).Value.ToString
380 443
             結束日期1_dtp.Value = 日期清單_dgv("結束日期", e.RowIndex).Value.ToString : 本周周一_dtp.Value = 日期清單_dgv("開始日期", e.RowIndex).Value.ToString
444
+            月初_dtp.Value = Strings.Left(日期清單_dgv("開始日期", e.RowIndex).Value.ToString, 8) & "01"
381 445
             PA15 = 天周月 : Set_流水帳清單3()
382 446
         End If
383 447
     End Sub
@@ -420,12 +484,117 @@
420 484
         ElseIf oldWeekDay = 3 Then : 結束日期1_dtp.Value = 結束日期1_dtp.Value.AddDays(5) : ElseIf oldWeekDay = 2 Then : 結束日期1_dtp.Value = 結束日期1_dtp.Value.AddDays(6)
421 485
         End If : 本周周一_dtp.Value = 結束日期1_dtp.Value.AddDays(-6) : 結束日期1_dtp.Value = Today()
422 486
     End Sub
423
-    Private Sub 周1_ch_CheckedChanged(sender As Object, e As EventArgs) Handles 周1_ch.Click
424
-        Label4.Visible = True : Label5.Visible = False : 本周周一_dtp.Visible = True : 月初_dtp.Visible = False
425
-        周1_ch.Checked = True : 月1_ch.Checked = False : Set_流水帳清單3() : MsgBox("計算完成!!")
487
+    Private Sub 顯示()
488
+        If 顯日_ch.Checked = True And 顯周_ch.Checked = False And 顯月_ch.Checked = False And 顯年_ch.Checked = False Then
489
+            Me.Size = New Size(587, Screen.PrimaryScreen.Bounds.Height - 60) : A1_P.Visible = True : A2_P.Visible = False : A3_P.Visible = False : A4_P.Visible = False
490
+            A1_P.Location = New Point(215, 2)
491
+            彙總5_dgv.Columns("貢獻度-日").Visible = True : 彙總5_dgv.Columns("結果-日").Visible = True : 彙總5_dgv.Columns("貢獻度-周").Visible = False
492
+            彙總5_dgv.Columns("結果-周").Visible = False : 彙總5_dgv.Columns("貢獻度-月").Visible = False : 彙總5_dgv.Columns("結果-月").Visible = False
493
+            彙總5_dgv.Columns("結果-年").Visible = False
494
+        ElseIf 顯日_ch.Checked = False And 顯周_ch.Checked = True And 顯月_ch.Checked = False And 顯年_ch.Checked = False Then
495
+            Me.Size = New Size(587, Screen.PrimaryScreen.Bounds.Height - 60) : A1_P.Visible = False : A2_P.Visible = True : A3_P.Visible = False : A4_P.Visible = False
496
+            A2_P.Location = New Point(215, 2)
497
+            彙總5_dgv.Columns("貢獻度-日").Visible = False : 彙總5_dgv.Columns("結果-日").Visible = False : 彙總5_dgv.Columns("貢獻度-周").Visible = True
498
+            彙總5_dgv.Columns("結果-周").Visible = True : 彙總5_dgv.Columns("貢獻度-月").Visible = False : 彙總5_dgv.Columns("結果-月").Visible = False
499
+            彙總5_dgv.Columns("結果-年").Visible = False
500
+        ElseIf 顯日_ch.Checked = False And 顯周_ch.Checked = False And 顯月_ch.Checked = True And 顯年_ch.Checked = False Then
501
+            Me.Size = New Size(587, Screen.PrimaryScreen.Bounds.Height - 60) : A1_P.Visible = False : A2_P.Visible = False : A3_P.Visible = True : A4_P.Visible = False
502
+            A3_P.Location = New Point(215, 2)
503
+            彙總5_dgv.Columns("貢獻度-日").Visible = False : 彙總5_dgv.Columns("結果-日").Visible = False : 彙總5_dgv.Columns("貢獻度-周").Visible = False
504
+            彙總5_dgv.Columns("結果-周").Visible = False : 彙總5_dgv.Columns("貢獻度-月").Visible = True : 彙總5_dgv.Columns("結果-月").Visible = True
505
+            彙總5_dgv.Columns("結果-年").Visible = False
506
+        ElseIf 顯日_ch.Checked = False And 顯周_ch.Checked = False And 顯月_ch.Checked = False And 顯年_ch.Checked = True Then
507
+            Me.Size = New Size(587, Screen.PrimaryScreen.Bounds.Height - 60) : A1_P.Visible = False : A2_P.Visible = False : A3_P.Visible = False : A4_P.Visible = True
508
+            A4_P.Location = New Point(215, 2)
509
+            彙總5_dgv.Columns("貢獻度-日").Visible = False : 彙總5_dgv.Columns("結果-日").Visible = False : 彙總5_dgv.Columns("貢獻度-周").Visible = False
510
+            彙總5_dgv.Columns("結果-周").Visible = False : 彙總5_dgv.Columns("貢獻度-月").Visible = False : 彙總5_dgv.Columns("結果-月").Visible = False
511
+            彙總5_dgv.Columns("結果-年").Visible = True
512
+        ElseIf 顯日_ch.Checked = True And 顯周_ch.Checked = True And 顯月_ch.Checked = False And 顯年_ch.Checked = False Then
513
+            Me.Size = New Size(769, Screen.PrimaryScreen.Bounds.Height - 60) : A1_P.Visible = True : A2_P.Visible = True : A3_P.Visible = False : A4_P.Visible = False
514
+            A1_P.Location = New Point(215, 2) : A2_P.Location = New Point(397, 2)
515
+            彙總5_dgv.Columns("貢獻度-日").Visible = True : 彙總5_dgv.Columns("結果-日").Visible = True : 彙總5_dgv.Columns("貢獻度-周").Visible = True
516
+            彙總5_dgv.Columns("結果-周").Visible = True : 彙總5_dgv.Columns("貢獻度-月").Visible = False : 彙總5_dgv.Columns("結果-月").Visible = False
517
+            彙總5_dgv.Columns("結果-年").Visible = False
518
+        ElseIf 顯日_ch.Checked = True And 顯周_ch.Checked = False And 顯月_ch.Checked = True And 顯年_ch.Checked = False Then
519
+            Me.Size = New Size(769, Screen.PrimaryScreen.Bounds.Height - 60) : A1_P.Visible = True : A2_P.Visible = False : A3_P.Visible = True : A4_P.Visible = False
520
+            A1_P.Location = New Point(215, 2) : A3_P.Location = New Point(397, 2)
521
+            彙總5_dgv.Columns("貢獻度-日").Visible = True : 彙總5_dgv.Columns("結果-日").Visible = True : 彙總5_dgv.Columns("貢獻度-周").Visible = False
522
+            彙總5_dgv.Columns("結果-周").Visible = False : 彙總5_dgv.Columns("貢獻度-月").Visible = True : 彙總5_dgv.Columns("結果-月").Visible = True
523
+            彙總5_dgv.Columns("結果-年").Visible = False
524
+        ElseIf 顯日_ch.Checked = True And 顯周_ch.Checked = False And 顯月_ch.Checked = False And 顯年_ch.Checked = True Then
525
+            Me.Size = New Size(769, Screen.PrimaryScreen.Bounds.Height - 60) : A1_P.Visible = True : A2_P.Visible = False : A3_P.Visible = False : A4_P.Visible = True
526
+            A1_P.Location = New Point(215, 2) : A4_P.Location = New Point(397, 2)
527
+            彙總5_dgv.Columns("貢獻度-日").Visible = True : 彙總5_dgv.Columns("結果-日").Visible = True : 彙總5_dgv.Columns("貢獻度-周").Visible = False
528
+            彙總5_dgv.Columns("結果-周").Visible = False : 彙總5_dgv.Columns("貢獻度-月").Visible = False : 彙總5_dgv.Columns("結果-月").Visible = False
529
+            彙總5_dgv.Columns("結果-年").Visible = True
530
+        ElseIf 顯日_ch.Checked = False And 顯周_ch.Checked = True And 顯月_ch.Checked = True And 顯年_ch.Checked = False Then
531
+            Me.Size = New Size(769, Screen.PrimaryScreen.Bounds.Height - 60) : A1_P.Visible = False : A2_P.Visible = True : A3_P.Visible = True : A4_P.Visible = False
532
+            A2_P.Location = New Point(215, 2) : A3_P.Location = New Point(397, 2)
533
+            彙總5_dgv.Columns("貢獻度-日").Visible = False : 彙總5_dgv.Columns("結果-日").Visible = False : 彙總5_dgv.Columns("貢獻度-周").Visible = True
534
+            彙總5_dgv.Columns("結果-周").Visible = True : 彙總5_dgv.Columns("貢獻度-月").Visible = True : 彙總5_dgv.Columns("結果-月").Visible = True
535
+            彙總5_dgv.Columns("結果-年").Visible = False
536
+        ElseIf 顯日_ch.Checked = False And 顯周_ch.Checked = True And 顯月_ch.Checked = False And 顯年_ch.Checked = True Then
537
+            Me.Size = New Size(769, Screen.PrimaryScreen.Bounds.Height - 60) : A1_P.Visible = False : A2_P.Visible = True : A3_P.Visible = False : A4_P.Visible = True
538
+            A2_P.Location = New Point(215, 2) : A4_P.Location = New Point(397, 2)
539
+            彙總5_dgv.Columns("貢獻度-日").Visible = False : 彙總5_dgv.Columns("結果-日").Visible = False : 彙總5_dgv.Columns("貢獻度-周").Visible = True
540
+            彙總5_dgv.Columns("結果-周").Visible = True : 彙總5_dgv.Columns("貢獻度-月").Visible = False : 彙總5_dgv.Columns("結果-月").Visible = False
541
+            彙總5_dgv.Columns("結果-年").Visible = True
542
+        ElseIf 顯日_ch.Checked = False And 顯周_ch.Checked = False And 顯月_ch.Checked = True And 顯年_ch.Checked = True Then
543
+            Me.Size = New Size(769, Screen.PrimaryScreen.Bounds.Height - 60) : A1_P.Visible = False : A2_P.Visible = False : A3_P.Visible = True : A4_P.Visible = True
544
+            A3_P.Location = New Point(215, 2) : A4_P.Location = New Point(397, 2)
545
+            彙總5_dgv.Columns("貢獻度-日").Visible = False : 彙總5_dgv.Columns("結果-日").Visible = False : 彙總5_dgv.Columns("貢獻度-周").Visible = False
546
+            彙總5_dgv.Columns("結果-周").Visible = False : 彙總5_dgv.Columns("貢獻度-月").Visible = True : 彙總5_dgv.Columns("結果-月").Visible = True
547
+            彙總5_dgv.Columns("結果-年").Visible = True
548
+        ElseIf 顯日_ch.Checked = True And 顯周_ch.Checked = True And 顯月_ch.Checked = True And 顯年_ch.Checked = False Then
549
+            Me.Size = New Size(951, Screen.PrimaryScreen.Bounds.Height - 60) : A1_P.Visible = True : A2_P.Visible = True : A3_P.Visible = True : A4_P.Visible = False
550
+            A1_P.Location = New Point(215, 2) : A2_P.Location = New Point(397, 2) : A3_P.Location = New Point(579, 2)
551
+            彙總5_dgv.Columns("貢獻度-日").Visible = True : 彙總5_dgv.Columns("結果-日").Visible = True : 彙總5_dgv.Columns("貢獻度-周").Visible = True
552
+            彙總5_dgv.Columns("結果-周").Visible = True : 彙總5_dgv.Columns("貢獻度-月").Visible = True : 彙總5_dgv.Columns("結果-月").Visible = True
553
+            彙總5_dgv.Columns("結果-年").Visible = False
554
+        ElseIf 顯日_ch.Checked = True And 顯周_ch.Checked = True And 顯月_ch.Checked = False And 顯年_ch.Checked = True Then
555
+            Me.Size = New Size(951, Screen.PrimaryScreen.Bounds.Height - 60) : A1_P.Visible = True : A2_P.Visible = True : A3_P.Visible = False : A4_P.Visible = True
556
+            A1_P.Location = New Point(215, 2) : A2_P.Location = New Point(397, 2) : A4_P.Location = New Point(579, 2)
557
+            彙總5_dgv.Columns("貢獻度-日").Visible = True : 彙總5_dgv.Columns("結果-日").Visible = True : 彙總5_dgv.Columns("貢獻度-周").Visible = True
558
+            彙總5_dgv.Columns("結果-周").Visible = True : 彙總5_dgv.Columns("貢獻度-月").Visible = False : 彙總5_dgv.Columns("結果-月").Visible = False
559
+            彙總5_dgv.Columns("結果-年").Visible = True
560
+        ElseIf 顯日_ch.Checked = True And 顯周_ch.Checked = False And 顯月_ch.Checked = True And 顯年_ch.Checked = True Then
561
+            Me.Size = New Size(951, Screen.PrimaryScreen.Bounds.Height - 60) : A1_P.Visible = True : A2_P.Visible = False : A3_P.Visible = True : A4_P.Visible = True
562
+            A1_P.Location = New Point(215, 2) : A3_P.Location = New Point(397, 2) : A4_P.Location = New Point(579, 2)
563
+            彙總5_dgv.Columns("貢獻度-日").Visible = True : 彙總5_dgv.Columns("結果-日").Visible = True : 彙總5_dgv.Columns("貢獻度-周").Visible = False
564
+            彙總5_dgv.Columns("結果-周").Visible = False : 彙總5_dgv.Columns("貢獻度-月").Visible = True : 彙總5_dgv.Columns("結果-月").Visible = True
565
+            彙總5_dgv.Columns("結果-年").Visible = True
566
+        ElseIf 顯日_ch.Checked = False And 顯周_ch.Checked = True And 顯月_ch.Checked = True And 顯年_ch.Checked = True Then
567
+            Me.Size = New Size(951, Screen.PrimaryScreen.Bounds.Height - 60) : A1_P.Visible = False : A2_P.Visible = True : A3_P.Visible = True : A4_P.Visible = True
568
+            A2_P.Location = New Point(215, 2) : A3_P.Location = New Point(397, 2) : A4_P.Location = New Point(579, 2)
569
+            彙總5_dgv.Columns("貢獻度-日").Visible = False : 彙總5_dgv.Columns("結果-日").Visible = False : 彙總5_dgv.Columns("貢獻度-周").Visible = True
570
+            彙總5_dgv.Columns("結果-周").Visible = True : 彙總5_dgv.Columns("貢獻度-月").Visible = True : 彙總5_dgv.Columns("結果-月").Visible = True
571
+            彙總5_dgv.Columns("結果-年").Visible = True
572
+        ElseIf 顯日_ch.Checked = True And 顯周_ch.Checked = True And 顯月_ch.Checked = True And 顯年_ch.Checked = True Then
573
+            Me.Size = New Size(1133, Screen.PrimaryScreen.Bounds.Height - 60) : A1_P.Visible = True : A2_P.Visible = True : A3_P.Visible = True : A4_P.Visible = True
574
+            A1_P.Location = New Point(215, 2) : A2_P.Location = New Point(397, 2) : A3_P.Location = New Point(579, 2) : A4_P.Location = New Point(761, 2)
575
+            彙總5_dgv.Columns("貢獻度-日").Visible = True : 彙總5_dgv.Columns("結果-日").Visible = True : 彙總5_dgv.Columns("貢獻度-周").Visible = True
576
+            彙總5_dgv.Columns("結果-周").Visible = True : 彙總5_dgv.Columns("貢獻度-月").Visible = True : 彙總5_dgv.Columns("結果-月").Visible = True
577
+            彙總5_dgv.Columns("結果-年").Visible = True
578
+        End If
579
+    End Sub
580
+    Private Sub 顯日_ch_CheckedChanged(sender As Object, e As EventArgs) Handles 顯日_ch.Click
581
+        If 顯周_ch.Checked = False And 顯月_ch.Checked = False And 顯年_ch.Checked = False Then
582
+            顯日_ch.Checked = True
583
+        End If : 顯示()
584
+    End Sub
585
+    Private Sub 顯周_ch_CheckedChanged(sender As Object, e As EventArgs) Handles 顯周_ch.Click
586
+        If 顯日_ch.Checked = False And 顯月_ch.Checked = False And 顯年_ch.Checked = False Then
587
+            顯周_ch.Checked = True
588
+        End If : 顯示()
589
+    End Sub
590
+    Private Sub 顯月_ch_CheckedChanged(sender As Object, e As EventArgs) Handles 顯月_ch.Click
591
+        If 顯日_ch.Checked = False And 顯周_ch.Checked = False And 顯年_ch.Checked = False Then
592
+            顯月_ch.Checked = True
593
+        End If : 顯示()
426 594
     End Sub
427
-    Private Sub 月1_ch_CheckedChanged(sender As Object, e As EventArgs) Handles 月1_ch.Click
428
-        Label4.Visible = False : Label5.Visible = True : 本周周一_dtp.Visible = False : 月初_dtp.Visible = True
429
-        周1_ch.Checked = False : 月1_ch.Checked = True : Set_流水帳清單3() : MsgBox("計算完成!!")
595
+    Private Sub 顯年_ch_CheckedChanged(sender As Object, e As EventArgs) Handles 顯年_ch.Click
596
+        If 顯日_ch.Checked = False And 顯周_ch.Checked = False And 顯月_ch.Checked = False Then
597
+            顯年_ch.Checked = True
598
+        End If : 顯示()
430 599
     End Sub
431 600
 End Class

+ 0
- 14
GA-ERP-SYS/報表系統管理/後台/後台帳務明細查詢表.vb 查看文件

@@ -611,20 +611,6 @@ Public Class 後台帳務明細查詢表
611 611
             End If
612 612
         End If
613 613
     End Sub
614
-    'Private Sub 彙總1_dgv_RowPostPaint(ByVal sender As Object, ByVal e As DataGridViewRowPostPaintEventArgs) Handles 彙總1_dgv.RowPostPaint
615
-    '    Dim linePen As New Pen(Color.Blue, 2)
616
-    '    If e.RowIndex = 彙總1_dgv.Rows.Count - 1 Then
617
-    '        Exit Sub
618
-    '    Else
619
-    '        If 彙總1_dgv(2, e.RowIndex).Value.ToString.ToLower() <> 彙總1_dgv(2, e.RowIndex + 1).Value.ToString.ToLower() Then
620
-    '            Dim startX As Integer = IIf(彙總1_dgv.RowHeadersVisible, 彙總1_dgv.RowHeadersWidth, 0)
621
-    '            Dim startY As Integer = e.RowBounds.Top + e.RowBounds.Height - 1
622
-    '            Dim endX As Integer = startX + 彙總1_dgv.Columns.GetColumnsWidth(DataGridViewElementStates.Visible) - 彙總1_dgv.HorizontalScrollingOffset
623
-    '            e.Graphics.DrawLine(linePen, startX, startY, endX, startY)
624
-    '            Exit Sub
625
-    '        End If
626
-    '    End If
627
-    'End Sub
628 614
     Private Sub 日期清單_dgv_CellContentClick(sender As Object, e As DataGridViewCellEventArgs) Handles 日期清單_dgv.CellClick
629 615
         If e.RowIndex = -1 Then : Else
630 616
             Dim ddd1 As String = Strings.Format(開始日期_dtp.Value, "yyyy-MM-dd") : Dim ddd2 As String = 日期清單_dgv("開始日期", e.RowIndex).Value.ToString

+ 4
- 3
GA-ERP-SYS/特殊操作功能/系統公告.Designer.vb 查看文件

@@ -39,7 +39,7 @@ Partial Class 系統公告
39 39
             Or System.Windows.Forms.AnchorStyles.Left) _
40 40
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
41 41
         Me.TextBox1.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
42
-        Me.TextBox1.Location = New System.Drawing.Point(2, 401)
42
+        Me.TextBox1.Location = New System.Drawing.Point(2, 425)
43 43
         Me.TextBox1.Multiline = True
44 44
         Me.TextBox1.Name = "TextBox1"
45 45
         Me.TextBox1.ScrollBars = System.Windows.Forms.ScrollBars.Vertical
@@ -65,7 +65,8 @@ Partial Class 系統公告
65 65
         Me.TextBox3.Name = "TextBox3"
66 66
         Me.TextBox3.Size = New System.Drawing.Size(680, 514)
67 67
         Me.TextBox3.TabIndex = 2
68
-        Me.TextBox3.Text = "版本號 : 2022120101" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "更新內容如下 :" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "1、優化連線線路。" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10)
68
+        Me.TextBox3.Text = "版本號 : 2022120501" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "更新內容如下 :" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "1、電板彙總表新增報表預覽,(解決對帳表太長的問題)。" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "2、後台彙總表新增日、周、月、年,四種帳務可以自" &
69
+    "由配合顯示。" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10)
69 70
         '
70 71
         'TextBox4
71 72
         '
@@ -86,7 +87,7 @@ Partial Class 系統公告
86 87
         Me.PictureBox1.BackgroundImage = Global.GA_ERP_SYS.My.Resources.Resources.ed5f904392cf941341dc53da46cf6fb
87 88
         Me.PictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom
88 89
         Me.PictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
89
-        Me.PictureBox1.Location = New System.Drawing.Point(2, 83)
90
+        Me.PictureBox1.Location = New System.Drawing.Point(2, 110)
90 91
         Me.PictureBox1.Name = "PictureBox1"
91 92
         Me.PictureBox1.Size = New System.Drawing.Size(680, 325)
92 93
         Me.PictureBox1.TabIndex = 4

+ 5
- 1
GA-ERP-SYS/特殊操作功能/系統公告.resx 查看文件

@@ -118,7 +118,11 @@
118 118
     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119 119
   </resheader>
120 120
   <data name="TextBox1.Text" xml:space="preserve">
121
-    <value>版本號 : 2022112301
121
+    <value>版本號 : 2022120101
122
+更新內容如下 :
123
+1、優化連線線路。
124
+
125
+版本號 : 2022112301
122 126
 更新內容如下 :
123 127
 1、修正自動更新線路上的BUG。
124 128
 

正在加载...
取消
保存