Browse Source

應付帳款介面基本完成,剩下立帳與列印成excel功能未寫

Signed-off-by: B70340 <b70340@gmail.com>
B70340 5 years ago
parent
commit
7f4de626d4

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


+ 10
- 0
.vs/VSWorkspaceState.json View File

@@ -0,0 +1,10 @@
1
+{
2
+  "ExpandedNodes": [
3
+    "",
4
+    "\\MaoOrange-Hongji",
5
+    "\\MaoOrange-Hongji\\財務系統管理",
6
+    "\\packages"
7
+  ],
8
+  "SelectedNode": "\\MaoOrange-Hongji\\應收帳款.vb",
9
+  "PreviewInSolutionExplorer": false
10
+}

BIN
.vs/slnx.sqlite View File


+ 1
- 1
MaoOrange-Hongji/MAOJI-ERP-SYS.vb View File

@@ -230,7 +230,7 @@ Public Class MAOJI_ERP_SYS
230 230
         PA = "" : 銷售退貨確認.Show() : 銷售退貨確認.BringToFront()
231 231
     End Sub
232 232
     Private Sub 應付賬款ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 應付賬款ToolStripMenuItem.Click
233
-        PA = "" : 銷售退貨確認.Show() : 銷售退貨確認.BringToFront()
233
+        PA = "" : 應付賬款.Show() : 應付賬款.BringToFront()
234 234
     End Sub
235 235
     Private Sub 應收帳款ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 應收帳款ToolStripMenuItem.Click
236 236
         PA = "" : 應收帳款.Show() : 應收帳款.BringToFront()

+ 6
- 6
MaoOrange-Hongji/MAOJI-ERP-SYS.vbproj View File

@@ -127,16 +127,16 @@
127 127
     <Compile Include="倉儲系統管理\倉儲入庫驗收.vb">
128 128
       <SubType>Form</SubType>
129 129
     </Compile>
130
-    <Compile Include="應付賬款.Designer.vb">
130
+    <Compile Include="財務系統管理\應付賬款.Designer.vb">
131 131
       <DependentUpon>應付賬款.vb</DependentUpon>
132 132
     </Compile>
133
-    <Compile Include="應付賬款.vb">
133
+    <Compile Include="財務系統管理\應付賬款.vb">
134 134
       <SubType>Form</SubType>
135 135
     </Compile>
136
-    <Compile Include="應收帳款.Designer.vb">
136
+    <Compile Include="財務系統管理\應收帳款.Designer.vb">
137 137
       <DependentUpon>應收帳款.vb</DependentUpon>
138 138
     </Compile>
139
-    <Compile Include="應收帳款.vb">
139
+    <Compile Include="財務系統管理\應收帳款.vb">
140 140
       <SubType>Form</SubType>
141 141
     </Compile>
142 142
     <Compile Include="資料庫系統管理\列印_產品標籤介面.Designer.vb">
@@ -451,10 +451,10 @@
451 451
     <EmbeddedResource Include="倉儲系統管理\倉儲入庫驗收.resx">
452 452
       <DependentUpon>倉儲入庫驗收.vb</DependentUpon>
453 453
     </EmbeddedResource>
454
-    <EmbeddedResource Include="應付賬款.resx">
454
+    <EmbeddedResource Include="財務系統管理\應付賬款.resx">
455 455
       <DependentUpon>應付賬款.vb</DependentUpon>
456 456
     </EmbeddedResource>
457
-    <EmbeddedResource Include="應收帳款.resx">
457
+    <EmbeddedResource Include="財務系統管理\應收帳款.resx">
458 458
       <DependentUpon>應收帳款.vb</DependentUpon>
459 459
     </EmbeddedResource>
460 460
     <EmbeddedResource Include="資料庫系統管理\列印_產品標籤介面.resx">

+ 16
- 0
MaoOrange-Hongji/Module1/SQL_Module.vb View File

@@ -2066,4 +2066,20 @@ Module SQL_Module
2066 2066
                      ORDER BY 倉儲明細表.料號"
2067 2067
         CmdSet_For_DGV()
2068 2068
     End Sub
2069
+    '---------------------應付賬款-----------------------------------------------------------------------------------------------------------------
2070
+    Friend Sub SQL_應付賬款清單()
2071
+        ConnOpen()
2072
+        SQL1 = "SELECT      倉儲明細表.單據編號, 倉儲明細表.供應商編號, 供應商資料表.簡稱, 物料資料庫.料號, 
2073
+                            物料資料庫.頁碼, 物料資料庫.品名, 倉儲明細表.金額 AS 單價, 倉儲明細表.匯率, 
2074
+                            倉儲明細表.入庫, 倉儲明細表.金額 * 倉儲明細表.匯率 * 倉儲明細表.入庫 AS 金額, 
2075
+                            倉儲明細表.採購下單, 倉儲明細表.入庫日期, 倉儲明細表.備註, 倉儲明細表.應收立帳 AS 選擇, 
2076
+                            倉儲明細表.應付立帳, 倉儲明細表.資料流水號
2077
+                FROM        倉儲明細表 LEFT OUTER JOIN
2078
+                            供應商資料表 ON 倉儲明細表.供應商編號 = 供應商資料表.編號 LEFT OUTER JOIN
2079
+                            物料資料庫 ON 倉儲明細表.料號 = 物料資料庫.料號
2080
+                WHERE      (倉儲明細表.狀態 LIKE '採購入庫') AND (倉儲明細表.倉儲作業 NOT LIKE '') AND (倉儲明細表.公司編號 LIKE '%" & 公司編號 & "%') AND 
2081
+                           (倉儲明細表.倉儲作業 BETWEEN '" & Format(應付賬款.DateTimePicker1.Value, "yyyy/MM/dd") & "' AND '" & Format(應付賬款.DateTimePicker2.Value, "yyyy/MM/dd") & "')
2082
+                ORDER BY    倉儲明細表.單據編號, 倉儲明細表.入庫日期"
2083
+        CmdSet_For_DGV()
2084
+    End Sub
2069 2085
 End Module

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


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


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


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


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


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

@@ -1 +1 @@
1
-b2b29bdea51519baf7965dffcf2d3d3520e84e55
1
+84a65d51099e001819ad25f73750d6cf42c2d237

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


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


+ 0
- 158
MaoOrange-Hongji/應付賬款.Designer.vb View File

@@ -1,158 +0,0 @@
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
-        Dim DataGridViewCellStyle2 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27
-        Me.Button1 = New System.Windows.Forms.Button()
28
-        Me.一般月 = New System.Windows.Forms.CheckBox()
29
-        Me.會計月 = New System.Windows.Forms.CheckBox()
30
-        Me.Button2 = New System.Windows.Forms.Button()
31
-        Me.Label4 = New System.Windows.Forms.Label()
32
-        Me.DateTimePicker2 = New System.Windows.Forms.DateTimePicker()
33
-        Me.DateTimePicker1 = New System.Windows.Forms.DateTimePicker()
34
-        Me.DataGridView1 = New System.Windows.Forms.DataGridView()
35
-        CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).BeginInit()
36
-        Me.SuspendLayout()
37
-        '
38
-        'Button1
39
-        '
40
-        Me.Button1.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
41
-        Me.Button1.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
42
-        Me.Button1.Location = New System.Drawing.Point(333, 6)
43
-        Me.Button1.Name = "Button1"
44
-        Me.Button1.Size = New System.Drawing.Size(64, 23)
45
-        Me.Button1.TabIndex = 1112
46
-        Me.Button1.Text = "上個月"
47
-        Me.Button1.UseVisualStyleBackColor = True
48
-        '
49
-        '一般月
50
-        '
51
-        Me.一般月.AutoSize = True
52
-        Me.一般月.Location = New System.Drawing.Point(270, 8)
53
-        Me.一般月.Name = "一般月"
54
-        Me.一般月.Size = New System.Drawing.Size(63, 20)
55
-        Me.一般月.TabIndex = 1115
56
-        Me.一般月.Text = "一般月"
57
-        Me.一般月.UseVisualStyleBackColor = True
58
-        '
59
-        '會計月
60
-        '
61
-        Me.會計月.AutoSize = True
62
-        Me.會計月.Checked = True
63
-        Me.會計月.CheckState = System.Windows.Forms.CheckState.Checked
64
-        Me.會計月.Location = New System.Drawing.Point(211, 8)
65
-        Me.會計月.Name = "會計月"
66
-        Me.會計月.Size = New System.Drawing.Size(63, 20)
67
-        Me.會計月.TabIndex = 1114
68
-        Me.會計月.Text = "會計月"
69
-        Me.會計月.UseVisualStyleBackColor = True
70
-        '
71
-        'Button2
72
-        '
73
-        Me.Button2.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
74
-        Me.Button2.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
75
-        Me.Button2.Location = New System.Drawing.Point(398, 6)
76
-        Me.Button2.Name = "Button2"
77
-        Me.Button2.Size = New System.Drawing.Size(64, 23)
78
-        Me.Button2.TabIndex = 1113
79
-        Me.Button2.Text = "下個月"
80
-        Me.Button2.UseVisualStyleBackColor = True
81
-        '
82
-        'Label4
83
-        '
84
-        Me.Label4.AutoSize = True
85
-        Me.Label4.Location = New System.Drawing.Point(99, 10)
86
-        Me.Label4.Name = "Label4"
87
-        Me.Label4.Size = New System.Drawing.Size(20, 16)
88
-        Me.Label4.TabIndex = 1111
89
-        Me.Label4.Text = "到"
90
-        '
91
-        'DateTimePicker2
92
-        '
93
-        Me.DateTimePicker2.DropDownAlign = System.Windows.Forms.LeftRightAlignment.Right
94
-        Me.DateTimePicker2.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
95
-        Me.DateTimePicker2.Location = New System.Drawing.Point(121, 6)
96
-        Me.DateTimePicker2.Name = "DateTimePicker2"
97
-        Me.DateTimePicker2.Size = New System.Drawing.Size(87, 23)
98
-        Me.DateTimePicker2.TabIndex = 1110
99
-        '
100
-        'DateTimePicker1
101
-        '
102
-        Me.DateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
103
-        Me.DateTimePicker1.Location = New System.Drawing.Point(10, 6)
104
-        Me.DateTimePicker1.Name = "DateTimePicker1"
105
-        Me.DateTimePicker1.Size = New System.Drawing.Size(87, 23)
106
-        Me.DateTimePicker1.TabIndex = 1109
107
-        '
108
-        'DataGridView1
109
-        '
110
-        DataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer))
111
-        Me.DataGridView1.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle1
112
-        Me.DataGridView1.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
113
-            Or System.Windows.Forms.AnchorStyles.Left) _
114
-            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
115
-        Me.DataGridView1.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
116
-        Me.DataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
117
-        Me.DataGridView1.Location = New System.Drawing.Point(14, 59)
118
-        Me.DataGridView1.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
119
-        Me.DataGridView1.Name = "DataGridView1"
120
-        Me.DataGridView1.RowHeadersWidth = 5
121
-        DataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
122
-        Me.DataGridView1.RowsDefaultCellStyle = DataGridViewCellStyle2
123
-        Me.DataGridView1.RowTemplate.Height = 24
124
-        Me.DataGridView1.Size = New System.Drawing.Size(1225, 545)
125
-        Me.DataGridView1.TabIndex = 1108
126
-        '
127
-        '應付賬款
128
-        '
129
-        Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
130
-        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
131
-        Me.ClientSize = New System.Drawing.Size(1249, 611)
132
-        Me.Controls.Add(Me.Button1)
133
-        Me.Controls.Add(Me.一般月)
134
-        Me.Controls.Add(Me.會計月)
135
-        Me.Controls.Add(Me.Button2)
136
-        Me.Controls.Add(Me.Label4)
137
-        Me.Controls.Add(Me.DateTimePicker2)
138
-        Me.Controls.Add(Me.DateTimePicker1)
139
-        Me.Controls.Add(Me.DataGridView1)
140
-        Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
141
-        Me.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
142
-        Me.Name = "應付賬款"
143
-        Me.Text = "應付賬款"
144
-        CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).EndInit()
145
-        Me.ResumeLayout(False)
146
-        Me.PerformLayout()
147
-
148
-    End Sub
149
-
150
-    Friend WithEvents Button1 As Button
151
-    Friend WithEvents 一般月 As CheckBox
152
-    Friend WithEvents 會計月 As CheckBox
153
-    Friend WithEvents Button2 As Button
154
-    Friend WithEvents Label4 As Label
155
-    Friend WithEvents DateTimePicker2 As DateTimePicker
156
-    Friend WithEvents DateTimePicker1 As DateTimePicker
157
-    Friend WithEvents DataGridView1 As DataGridView
158
-End Class

+ 0
- 7
MaoOrange-Hongji/應付賬款.vb View File

@@ -1,7 +0,0 @@
1
-Option Strict Off
2
-Public Class 應付賬款
3
-    ReadOnly ds As New DataSet
4
-    Private Sub 應付賬款_Load(sender As Object, e As EventArgs) Handles MyBase.Load
5
-
6
-    End Sub
7
-End Class

+ 526
- 0
MaoOrange-Hongji/財務系統管理/應付賬款.Designer.vb View File

@@ -0,0 +1,526 @@
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 DataGridViewCellStyle7 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26
+        Dim DataGridViewCellStyle8 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27
+        Me.Button1 = New System.Windows.Forms.Button()
28
+        Me.一般月 = New System.Windows.Forms.CheckBox()
29
+        Me.會計月 = New System.Windows.Forms.CheckBox()
30
+        Me.Button2 = New System.Windows.Forms.Button()
31
+        Me.Label4 = New System.Windows.Forms.Label()
32
+        Me.DateTimePicker2 = New System.Windows.Forms.DateTimePicker()
33
+        Me.DateTimePicker1 = New System.Windows.Forms.DateTimePicker()
34
+        Me.DataGridView1 = New System.Windows.Forms.DataGridView()
35
+        Me.TextBox3 = New System.Windows.Forms.TextBox()
36
+        Me.Label3 = New System.Windows.Forms.Label()
37
+        Me.Button6 = New System.Windows.Forms.Button()
38
+        Me.TextBox2 = New System.Windows.Forms.TextBox()
39
+        Me.CheckBox1 = New System.Windows.Forms.CheckBox()
40
+        Me.Label6 = New System.Windows.Forms.Label()
41
+        Me.DateTimePicker3 = New System.Windows.Forms.DateTimePicker()
42
+        Me.Button5 = New System.Windows.Forms.Button()
43
+        Me.Button4 = New System.Windows.Forms.Button()
44
+        Me.ComboBox7 = New System.Windows.Forms.ComboBox()
45
+        Me.TextBox9 = New System.Windows.Forms.TextBox()
46
+        Me.ComboBox4 = New System.Windows.Forms.ComboBox()
47
+        Me.ComboBox3 = New System.Windows.Forms.ComboBox()
48
+        Me.ComboBox1 = New System.Windows.Forms.ComboBox()
49
+        Me.ComboBox5 = New System.Windows.Forms.ComboBox()
50
+        Me.ComboBox6 = New System.Windows.Forms.ComboBox()
51
+        Me.Label5 = New System.Windows.Forms.Label()
52
+        Me.Button12 = New System.Windows.Forms.Button()
53
+        Me.Button13 = New System.Windows.Forms.Button()
54
+        Me.Label1 = New System.Windows.Forms.Label()
55
+        Me.NumericUpDown1 = New System.Windows.Forms.NumericUpDown()
56
+        Me.Label2 = New System.Windows.Forms.Label()
57
+        Me.Label7 = New System.Windows.Forms.Label()
58
+        Me.NumericUpDown2 = New System.Windows.Forms.NumericUpDown()
59
+        Me.TextBox1 = New System.Windows.Forms.TextBox()
60
+        Me.Button3 = New System.Windows.Forms.Button()
61
+        Me.Label8 = New System.Windows.Forms.Label()
62
+        Me.CheckBox2 = New System.Windows.Forms.CheckBox()
63
+        CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).BeginInit()
64
+        CType(Me.NumericUpDown1, System.ComponentModel.ISupportInitialize).BeginInit()
65
+        CType(Me.NumericUpDown2, System.ComponentModel.ISupportInitialize).BeginInit()
66
+        Me.SuspendLayout()
67
+        '
68
+        'Button1
69
+        '
70
+        Me.Button1.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
71
+        Me.Button1.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
72
+        Me.Button1.Location = New System.Drawing.Point(7, 55)
73
+        Me.Button1.Name = "Button1"
74
+        Me.Button1.Size = New System.Drawing.Size(87, 23)
75
+        Me.Button1.TabIndex = 1112
76
+        Me.Button1.Text = "上個月"
77
+        Me.Button1.UseVisualStyleBackColor = True
78
+        '
79
+        '一般月
80
+        '
81
+        Me.一般月.AutoSize = True
82
+        Me.一般月.Location = New System.Drawing.Point(130, 32)
83
+        Me.一般月.Name = "一般月"
84
+        Me.一般月.Size = New System.Drawing.Size(63, 20)
85
+        Me.一般月.TabIndex = 1115
86
+        Me.一般月.Text = "一般月"
87
+        Me.一般月.UseVisualStyleBackColor = True
88
+        '
89
+        '會計月
90
+        '
91
+        Me.會計月.AutoSize = True
92
+        Me.會計月.Checked = True
93
+        Me.會計月.CheckState = System.Windows.Forms.CheckState.Checked
94
+        Me.會計月.Location = New System.Drawing.Point(20, 32)
95
+        Me.會計月.Name = "會計月"
96
+        Me.會計月.Size = New System.Drawing.Size(63, 20)
97
+        Me.會計月.TabIndex = 1114
98
+        Me.會計月.Text = "會計月"
99
+        Me.會計月.UseVisualStyleBackColor = True
100
+        '
101
+        'Button2
102
+        '
103
+        Me.Button2.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
104
+        Me.Button2.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
105
+        Me.Button2.Location = New System.Drawing.Point(117, 56)
106
+        Me.Button2.Name = "Button2"
107
+        Me.Button2.Size = New System.Drawing.Size(87, 23)
108
+        Me.Button2.TabIndex = 1113
109
+        Me.Button2.Text = "下個月"
110
+        Me.Button2.UseVisualStyleBackColor = True
111
+        '
112
+        'Label4
113
+        '
114
+        Me.Label4.AutoSize = True
115
+        Me.Label4.Location = New System.Drawing.Point(96, 9)
116
+        Me.Label4.Name = "Label4"
117
+        Me.Label4.Size = New System.Drawing.Size(20, 16)
118
+        Me.Label4.TabIndex = 1111
119
+        Me.Label4.Text = "到"
120
+        '
121
+        'DateTimePicker2
122
+        '
123
+        Me.DateTimePicker2.DropDownAlign = System.Windows.Forms.LeftRightAlignment.Right
124
+        Me.DateTimePicker2.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
125
+        Me.DateTimePicker2.Location = New System.Drawing.Point(117, 5)
126
+        Me.DateTimePicker2.Name = "DateTimePicker2"
127
+        Me.DateTimePicker2.Size = New System.Drawing.Size(87, 23)
128
+        Me.DateTimePicker2.TabIndex = 1110
129
+        '
130
+        'DateTimePicker1
131
+        '
132
+        Me.DateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
133
+        Me.DateTimePicker1.Location = New System.Drawing.Point(7, 5)
134
+        Me.DateTimePicker1.Name = "DateTimePicker1"
135
+        Me.DateTimePicker1.Size = New System.Drawing.Size(87, 23)
136
+        Me.DateTimePicker1.TabIndex = 1109
137
+        '
138
+        'DataGridView1
139
+        '
140
+        DataGridViewCellStyle7.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer))
141
+        Me.DataGridView1.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle7
142
+        Me.DataGridView1.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
143
+            Or System.Windows.Forms.AnchorStyles.Left) _
144
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
145
+        Me.DataGridView1.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
146
+        Me.DataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
147
+        Me.DataGridView1.Location = New System.Drawing.Point(14, 83)
148
+        Me.DataGridView1.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
149
+        Me.DataGridView1.Name = "DataGridView1"
150
+        Me.DataGridView1.RowHeadersWidth = 5
151
+        DataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
152
+        Me.DataGridView1.RowsDefaultCellStyle = DataGridViewCellStyle8
153
+        Me.DataGridView1.RowTemplate.Height = 24
154
+        Me.DataGridView1.Size = New System.Drawing.Size(1225, 518)
155
+        Me.DataGridView1.TabIndex = 1108
156
+        '
157
+        'TextBox3
158
+        '
159
+        Me.TextBox3.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
160
+        Me.TextBox3.Location = New System.Drawing.Point(262, 6)
161
+        Me.TextBox3.Name = "TextBox3"
162
+        Me.TextBox3.Size = New System.Drawing.Size(126, 23)
163
+        Me.TextBox3.TabIndex = 1117
164
+        '
165
+        'Label3
166
+        '
167
+        Me.Label3.AutoSize = True
168
+        Me.Label3.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
169
+        Me.Label3.Location = New System.Drawing.Point(206, 9)
170
+        Me.Label3.Name = "Label3"
171
+        Me.Label3.Size = New System.Drawing.Size(56, 16)
172
+        Me.Label3.TabIndex = 1118
173
+        Me.Label3.Text = "單據號碼"
174
+        '
175
+        'Button6
176
+        '
177
+        Me.Button6.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
178
+        Me.Button6.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
179
+        Me.Button6.ForeColor = System.Drawing.Color.Olive
180
+        Me.Button6.Location = New System.Drawing.Point(1001, 3)
181
+        Me.Button6.Name = "Button6"
182
+        Me.Button6.Size = New System.Drawing.Size(86, 47)
183
+        Me.Button6.TabIndex = 1149
184
+        Me.Button6.Text = "依據單號取消立帳選擇"
185
+        Me.Button6.UseVisualStyleBackColor = True
186
+        '
187
+        'TextBox2
188
+        '
189
+        Me.TextBox2.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
190
+        Me.TextBox2.Location = New System.Drawing.Point(446, 5)
191
+        Me.TextBox2.Name = "TextBox2"
192
+        Me.TextBox2.Size = New System.Drawing.Size(100, 23)
193
+        Me.TextBox2.TabIndex = 1148
194
+        '
195
+        'CheckBox1
196
+        '
197
+        Me.CheckBox1.AutoSize = True
198
+        Me.CheckBox1.Checked = True
199
+        Me.CheckBox1.CheckState = System.Windows.Forms.CheckState.Checked
200
+        Me.CheckBox1.Location = New System.Drawing.Point(351, 33)
201
+        Me.CheckBox1.Name = "CheckBox1"
202
+        Me.CheckBox1.Size = New System.Drawing.Size(39, 20)
203
+        Me.CheckBox1.TabIndex = 1147
204
+        Me.CheckBox1.Text = "補"
205
+        Me.CheckBox1.UseVisualStyleBackColor = True
206
+        '
207
+        'Label6
208
+        '
209
+        Me.Label6.AutoSize = True
210
+        Me.Label6.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
211
+        Me.Label6.Location = New System.Drawing.Point(207, 35)
212
+        Me.Label6.Name = "Label6"
213
+        Me.Label6.Size = New System.Drawing.Size(56, 16)
214
+        Me.Label6.TabIndex = 1146
215
+        Me.Label6.Text = "立帳日期"
216
+        '
217
+        'DateTimePicker3
218
+        '
219
+        Me.DateTimePicker3.Format = System.Windows.Forms.DateTimePickerFormat.[Short]
220
+        Me.DateTimePicker3.Location = New System.Drawing.Point(262, 32)
221
+        Me.DateTimePicker3.Name = "DateTimePicker3"
222
+        Me.DateTimePicker3.Size = New System.Drawing.Size(85, 23)
223
+        Me.DateTimePicker3.TabIndex = 1145
224
+        '
225
+        'Button5
226
+        '
227
+        Me.Button5.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
228
+        Me.Button5.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
229
+        Me.Button5.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
230
+        Me.Button5.Location = New System.Drawing.Point(849, 3)
231
+        Me.Button5.Name = "Button5"
232
+        Me.Button5.Size = New System.Drawing.Size(75, 47)
233
+        Me.Button5.TabIndex = 1144
234
+        Me.Button5.Text = "列印帳款清單"
235
+        Me.Button5.UseVisualStyleBackColor = True
236
+        '
237
+        'Button4
238
+        '
239
+        Me.Button4.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
240
+        Me.Button4.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
241
+        Me.Button4.Location = New System.Drawing.Point(209, 57)
242
+        Me.Button4.Name = "Button4"
243
+        Me.Button4.Size = New System.Drawing.Size(181, 23)
244
+        Me.Button4.TabIndex = 1143
245
+        Me.Button4.Text = "開立收支單(傳票)"
246
+        Me.Button4.UseVisualStyleBackColor = True
247
+        '
248
+        'ComboBox7
249
+        '
250
+        Me.ComboBox7.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
251
+        Me.ComboBox7.FormattingEnabled = True
252
+        Me.ComboBox7.Location = New System.Drawing.Point(657, 56)
253
+        Me.ComboBox7.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
254
+        Me.ComboBox7.Name = "ComboBox7"
255
+        Me.ComboBox7.Size = New System.Drawing.Size(190, 24)
256
+        Me.ComboBox7.TabIndex = 1142
257
+        '
258
+        'TextBox9
259
+        '
260
+        Me.TextBox9.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
261
+        Me.TextBox9.Location = New System.Drawing.Point(549, 56)
262
+        Me.TextBox9.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
263
+        Me.TextBox9.Name = "TextBox9"
264
+        Me.TextBox9.Size = New System.Drawing.Size(105, 23)
265
+        Me.TextBox9.TabIndex = 1141
266
+        Me.TextBox9.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
267
+        '
268
+        'ComboBox4
269
+        '
270
+        Me.ComboBox4.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
271
+        Me.ComboBox4.FormattingEnabled = True
272
+        Me.ComboBox4.Location = New System.Drawing.Point(769, 30)
273
+        Me.ComboBox4.Name = "ComboBox4"
274
+        Me.ComboBox4.Size = New System.Drawing.Size(78, 24)
275
+        Me.ComboBox4.TabIndex = 1140
276
+        '
277
+        'ComboBox3
278
+        '
279
+        Me.ComboBox3.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
280
+        Me.ComboBox3.FormattingEnabled = True
281
+        Me.ComboBox3.Location = New System.Drawing.Point(657, 30)
282
+        Me.ComboBox3.Name = "ComboBox3"
283
+        Me.ComboBox3.Size = New System.Drawing.Size(109, 24)
284
+        Me.ComboBox3.TabIndex = 1139
285
+        '
286
+        'ComboBox1
287
+        '
288
+        Me.ComboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
289
+        Me.ComboBox1.FormattingEnabled = True
290
+        Me.ComboBox1.Location = New System.Drawing.Point(769, 4)
291
+        Me.ComboBox1.Name = "ComboBox1"
292
+        Me.ComboBox1.Size = New System.Drawing.Size(78, 24)
293
+        Me.ComboBox1.TabIndex = 1138
294
+        '
295
+        'ComboBox5
296
+        '
297
+        Me.ComboBox5.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
298
+        Me.ComboBox5.FormattingEnabled = True
299
+        Me.ComboBox5.Location = New System.Drawing.Point(657, 4)
300
+        Me.ComboBox5.Name = "ComboBox5"
301
+        Me.ComboBox5.Size = New System.Drawing.Size(109, 24)
302
+        Me.ComboBox5.TabIndex = 1137
303
+        '
304
+        'ComboBox6
305
+        '
306
+        Me.ComboBox6.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
307
+        Me.ComboBox6.FormattingEnabled = True
308
+        Me.ComboBox6.Location = New System.Drawing.Point(657, 88)
309
+        Me.ComboBox6.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
310
+        Me.ComboBox6.Name = "ComboBox6"
311
+        Me.ComboBox6.Size = New System.Drawing.Size(190, 24)
312
+        Me.ComboBox6.TabIndex = 1135
313
+        '
314
+        'Label5
315
+        '
316
+        Me.Label5.AutoSize = True
317
+        Me.Label5.Location = New System.Drawing.Point(550, 8)
318
+        Me.Label5.Name = "Label5"
319
+        Me.Label5.Size = New System.Drawing.Size(104, 48)
320
+        Me.Label5.TabIndex = 1136
321
+        Me.Label5.Text = "未附餘額不為零時" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "需要選擇未付餘額" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "立帳的會計科目"
322
+        '
323
+        'Button12
324
+        '
325
+        Me.Button12.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
326
+        Me.Button12.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
327
+        Me.Button12.ForeColor = System.Drawing.Color.Olive
328
+        Me.Button12.Location = New System.Drawing.Point(1165, 27)
329
+        Me.Button12.Name = "Button12"
330
+        Me.Button12.Size = New System.Drawing.Size(74, 23)
331
+        Me.Button12.TabIndex = 1133
332
+        Me.Button12.Text = "全部取消"
333
+        Me.Button12.UseVisualStyleBackColor = True
334
+        '
335
+        'Button13
336
+        '
337
+        Me.Button13.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
338
+        Me.Button13.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
339
+        Me.Button13.ForeColor = System.Drawing.Color.Olive
340
+        Me.Button13.Location = New System.Drawing.Point(1165, 3)
341
+        Me.Button13.Name = "Button13"
342
+        Me.Button13.Size = New System.Drawing.Size(74, 23)
343
+        Me.Button13.TabIndex = 1132
344
+        Me.Button13.Text = "全部選擇"
345
+        Me.Button13.UseVisualStyleBackColor = True
346
+        '
347
+        'Label1
348
+        '
349
+        Me.Label1.AutoSize = True
350
+        Me.Label1.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
351
+        Me.Label1.Location = New System.Drawing.Point(390, 8)
352
+        Me.Label1.Name = "Label1"
353
+        Me.Label1.Size = New System.Drawing.Size(56, 16)
354
+        Me.Label1.TabIndex = 1150
355
+        Me.Label1.Text = "應付金額"
356
+        '
357
+        'NumericUpDown1
358
+        '
359
+        Me.NumericUpDown1.Location = New System.Drawing.Point(446, 30)
360
+        Me.NumericUpDown1.Maximum = New Decimal(New Integer() {1000000, 0, 0, 0})
361
+        Me.NumericUpDown1.Name = "NumericUpDown1"
362
+        Me.NumericUpDown1.Size = New System.Drawing.Size(100, 23)
363
+        Me.NumericUpDown1.TabIndex = 1151
364
+        Me.NumericUpDown1.ThousandsSeparator = True
365
+        '
366
+        'Label2
367
+        '
368
+        Me.Label2.AutoSize = True
369
+        Me.Label2.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
370
+        Me.Label2.Location = New System.Drawing.Point(390, 32)
371
+        Me.Label2.Name = "Label2"
372
+        Me.Label2.Size = New System.Drawing.Size(56, 16)
373
+        Me.Label2.TabIndex = 1152
374
+        Me.Label2.Text = "實付金額"
375
+        '
376
+        'Label7
377
+        '
378
+        Me.Label7.AutoSize = True
379
+        Me.Label7.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
380
+        Me.Label7.Location = New System.Drawing.Point(390, 58)
381
+        Me.Label7.Name = "Label7"
382
+        Me.Label7.Size = New System.Drawing.Size(56, 16)
383
+        Me.Label7.TabIndex = 1154
384
+        Me.Label7.Text = "未付餘額"
385
+        '
386
+        'NumericUpDown2
387
+        '
388
+        Me.NumericUpDown2.Location = New System.Drawing.Point(446, 56)
389
+        Me.NumericUpDown2.Maximum = New Decimal(New Integer() {1000000, 0, 0, 0})
390
+        Me.NumericUpDown2.Name = "NumericUpDown2"
391
+        Me.NumericUpDown2.Size = New System.Drawing.Size(100, 23)
392
+        Me.NumericUpDown2.TabIndex = 1153
393
+        Me.NumericUpDown2.ThousandsSeparator = True
394
+        '
395
+        'TextBox1
396
+        '
397
+        Me.TextBox1.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
398
+        Me.TextBox1.Location = New System.Drawing.Point(657, 119)
399
+        Me.TextBox1.Name = "TextBox1"
400
+        Me.TextBox1.Size = New System.Drawing.Size(100, 23)
401
+        Me.TextBox1.TabIndex = 1155
402
+        '
403
+        'Button3
404
+        '
405
+        Me.Button3.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
406
+        Me.Button3.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
407
+        Me.Button3.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
408
+        Me.Button3.Location = New System.Drawing.Point(925, 3)
409
+        Me.Button3.Name = "Button3"
410
+        Me.Button3.Size = New System.Drawing.Size(75, 47)
411
+        Me.Button3.TabIndex = 1156
412
+        Me.Button3.Text = "列印帳款對帳單"
413
+        Me.Button3.UseVisualStyleBackColor = True
414
+        '
415
+        'Label8
416
+        '
417
+        Me.Label8.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
418
+        Me.Label8.AutoSize = True
419
+        Me.Label8.ForeColor = System.Drawing.Color.Red
420
+        Me.Label8.Location = New System.Drawing.Point(852, 49)
421
+        Me.Label8.Name = "Label8"
422
+        Me.Label8.Size = New System.Drawing.Size(385, 32)
423
+        Me.Label8.TabIndex = 1157
424
+        Me.Label8.Text = "選擇採購單號執行開立傳票時實付金額會自動已會計科目-應付帳款立帳" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "未付餘額如果不為零則需要手動選擇會計科目。推薦使用-應付賬款折讓" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10)
425
+        '
426
+        'CheckBox2
427
+        '
428
+        Me.CheckBox2.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
429
+        Me.CheckBox2.AutoSize = True
430
+        Me.CheckBox2.Location = New System.Drawing.Point(1093, 5)
431
+        Me.CheckBox2.Name = "CheckBox2"
432
+        Me.CheckBox2.Size = New System.Drawing.Size(75, 20)
433
+        Me.CheckBox2.TabIndex = 1158
434
+        Me.CheckBox2.Text = "多重選擇"
435
+        Me.CheckBox2.UseVisualStyleBackColor = True
436
+        '
437
+        '應付賬款
438
+        '
439
+        Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
440
+        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
441
+        Me.ClientSize = New System.Drawing.Size(1249, 611)
442
+        Me.Controls.Add(Me.Label8)
443
+        Me.Controls.Add(Me.Button3)
444
+        Me.Controls.Add(Me.TextBox1)
445
+        Me.Controls.Add(Me.Label7)
446
+        Me.Controls.Add(Me.NumericUpDown2)
447
+        Me.Controls.Add(Me.Label2)
448
+        Me.Controls.Add(Me.NumericUpDown1)
449
+        Me.Controls.Add(Me.Label1)
450
+        Me.Controls.Add(Me.Button6)
451
+        Me.Controls.Add(Me.TextBox2)
452
+        Me.Controls.Add(Me.CheckBox1)
453
+        Me.Controls.Add(Me.DateTimePicker3)
454
+        Me.Controls.Add(Me.Button5)
455
+        Me.Controls.Add(Me.Button4)
456
+        Me.Controls.Add(Me.ComboBox7)
457
+        Me.Controls.Add(Me.TextBox9)
458
+        Me.Controls.Add(Me.ComboBox4)
459
+        Me.Controls.Add(Me.ComboBox3)
460
+        Me.Controls.Add(Me.ComboBox1)
461
+        Me.Controls.Add(Me.ComboBox5)
462
+        Me.Controls.Add(Me.ComboBox6)
463
+        Me.Controls.Add(Me.Label5)
464
+        Me.Controls.Add(Me.Button12)
465
+        Me.Controls.Add(Me.Button13)
466
+        Me.Controls.Add(Me.TextBox3)
467
+        Me.Controls.Add(Me.Label3)
468
+        Me.Controls.Add(Me.Button1)
469
+        Me.Controls.Add(Me.一般月)
470
+        Me.Controls.Add(Me.會計月)
471
+        Me.Controls.Add(Me.Button2)
472
+        Me.Controls.Add(Me.Label4)
473
+        Me.Controls.Add(Me.DateTimePicker2)
474
+        Me.Controls.Add(Me.DateTimePicker1)
475
+        Me.Controls.Add(Me.DataGridView1)
476
+        Me.Controls.Add(Me.Label6)
477
+        Me.Controls.Add(Me.CheckBox2)
478
+        Me.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
479
+        Me.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
480
+        Me.Name = "應付賬款"
481
+        Me.Text = "應付賬款"
482
+        CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).EndInit()
483
+        CType(Me.NumericUpDown1, System.ComponentModel.ISupportInitialize).EndInit()
484
+        CType(Me.NumericUpDown2, System.ComponentModel.ISupportInitialize).EndInit()
485
+        Me.ResumeLayout(False)
486
+        Me.PerformLayout()
487
+
488
+    End Sub
489
+
490
+    Friend WithEvents Button1 As Button
491
+    Friend WithEvents 一般月 As CheckBox
492
+    Friend WithEvents 會計月 As CheckBox
493
+    Friend WithEvents Button2 As Button
494
+    Friend WithEvents Label4 As Label
495
+    Friend WithEvents DateTimePicker2 As DateTimePicker
496
+    Friend WithEvents DateTimePicker1 As DateTimePicker
497
+    Friend WithEvents DataGridView1 As DataGridView
498
+    Friend WithEvents TextBox3 As TextBox
499
+    Friend WithEvents Label3 As Label
500
+    Friend WithEvents Button6 As Button
501
+    Friend WithEvents TextBox2 As TextBox
502
+    Friend WithEvents CheckBox1 As CheckBox
503
+    Friend WithEvents Label6 As Label
504
+    Friend WithEvents DateTimePicker3 As DateTimePicker
505
+    Friend WithEvents Button5 As Button
506
+    Friend WithEvents Button4 As Button
507
+    Friend WithEvents ComboBox7 As ComboBox
508
+    Friend WithEvents TextBox9 As TextBox
509
+    Friend WithEvents ComboBox4 As ComboBox
510
+    Friend WithEvents ComboBox3 As ComboBox
511
+    Friend WithEvents ComboBox1 As ComboBox
512
+    Friend WithEvents ComboBox5 As ComboBox
513
+    Friend WithEvents ComboBox6 As ComboBox
514
+    Friend WithEvents Label5 As Label
515
+    Friend WithEvents Button12 As Button
516
+    Friend WithEvents Button13 As Button
517
+    Friend WithEvents Label1 As Label
518
+    Friend WithEvents NumericUpDown1 As NumericUpDown
519
+    Friend WithEvents Label2 As Label
520
+    Friend WithEvents Label7 As Label
521
+    Friend WithEvents NumericUpDown2 As NumericUpDown
522
+    Friend WithEvents TextBox1 As TextBox
523
+    Friend WithEvents Button3 As Button
524
+    Friend WithEvents Label8 As Label
525
+    Friend WithEvents CheckBox2 As CheckBox
526
+End Class

MaoOrange-Hongji/應付賬款.resx → MaoOrange-Hongji/財務系統管理/應付賬款.resx View File


+ 151
- 0
MaoOrange-Hongji/財務系統管理/應付賬款.vb View File

@@ -0,0 +1,151 @@
1
+Option Strict Off
2
+Public Class 應付賬款
3
+    ReadOnly ds As New DataSet
4
+    Private Sub Set_賬款清單()
5
+        DataGridView1.DataSource = Nothing : ds.Clear() : DataGridView1.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing : DataGridView1.ColumnHeadersHeight = 40
6
+        DataGridView1.AllowUserToAddRows = False : DataGridView1.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText : DataGridView1.MultiSelect = True
7
+        SQL_應付賬款清單()
8
+        da.Fill(ds) : DataGridView1.DataSource = ds.Tables(0) : conn.Close()
9
+
10
+        DataGridView1.Columns(0).FillWeight = 150 : DataGridView1.Columns(1).Visible = False : DataGridView1.Columns(2).FillWeight = 100 : DataGridView1.Columns(3).Visible = False
11
+        DataGridView1.Columns(4).FillWeight = 80 : DataGridView1.Columns(5).FillWeight = 300 : DataGridView1.Columns(6).FillWeight = 80 : DataGridView1.Columns(7).FillWeight = 80
12
+        DataGridView1.Columns(8).FillWeight = 80 : DataGridView1.Columns(9).FillWeight = 80 : DataGridView1.Columns(10).FillWeight = 100 : DataGridView1.Columns(11).FillWeight = 100
13
+        DataGridView1.Columns(12).FillWeight = 150 : DataGridView1.Columns(13).FillWeight = 60 : DataGridView1.Columns(14).FillWeight = 50 : DataGridView1.Columns(15).Visible = False
14
+
15
+        DataGridView1.Columns(6).DefaultCellStyle.Format = "#,##0" : DataGridView1.Columns(7).DefaultCellStyle.Format = "#,##0.000"
16
+        DataGridView1.Columns(8).DefaultCellStyle.Format = "#,##0" : DataGridView1.Columns(9).DefaultCellStyle.Format = "#,##0"
17
+        DataGridView1.Columns(0).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView1.Columns(0).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
18
+        DataGridView1.Columns(2).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView1.Columns(2).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
19
+        DataGridView1.Columns(4).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView1.Columns(4).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
20
+        DataGridView1.Columns(6).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView1.Columns(6).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
21
+        DataGridView1.Columns(7).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView1.Columns(7).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
22
+        DataGridView1.Columns(8).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView1.Columns(8).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
23
+        DataGridView1.Columns(9).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView1.Columns(9).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
24
+        DataGridView1.Columns(10).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView1.Columns(10).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
25
+        DataGridView1.Columns(11).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter : DataGridView1.Columns(11).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
26
+
27
+        For I As Integer = 0 To 12 : DataGridView1.Columns(I).ReadOnly = True : Next : DataGridView1.Columns(14).ReadOnly = True
28
+        For I As Integer = 0 To DataGridView1.Rows.Count - 1
29
+            If DataGridView1.Rows(I).Cells("應付立帳").Value.ToString = "" Then : DataGridView1.Rows(I).Cells("應付立帳").Value = False : End If
30
+            DataGridView1.Rows(I).Cells("選擇").Value = False
31
+        Next
32
+    End Sub
33
+    Private Sub ComboBox1下拉表單資料載入()
34
+        SQL_會計科目_第一階()
35
+        ComboBox5.Items.Clear() : ComboBox1.Items.Clear() : While (dr.Read()) : ComboBox5.Items.Add(dr("第一階")) : ComboBox1.Items.Add(dr("編號")) : End While : conn.Close()
36
+    End Sub
37
+    Private Sub ComboBox3下拉表單資料載入()
38
+        PA = ComboBox1.Text : SQL_會計科目_第二階()
39
+        ComboBox3.Items.Clear() : ComboBox4.Items.Clear() : While (dr.Read()) : ComboBox3.Items.Add(dr("第二階")) : ComboBox4.Items.Add(dr("編號")) : End While : conn.Close() : PA = ""
40
+    End Sub
41
+    Private Sub ComboBox6下拉表單資料載入()
42
+        PA = ComboBox4.Text : SQL_會計科目_第三階()
43
+        ComboBox7.Items.Clear() : ComboBox6.Items.Clear() : While (dr.Read()) : ComboBox7.Items.Add(dr("會計科目")) : ComboBox6.Items.Add(dr("編號")) : End While : conn.Close()
44
+        If ComboBox7.Items.Count <> 0 Then : ComboBox7.SelectedIndex = 0 : End If
45
+    End Sub
46
+    Private Sub 日期格式()
47
+        If 會計月.Checked = True Then
48
+            '-------------日期一----------------------------------------------------------------------------------------
49
+            DTP = Strings.Left(Strings.Format(DateTimePicker1.Value, "yyyy/MM/dd"), 8) & "01" : DateTimePicker1.Value = DTP
50
+            DateTimePicker1.Value = DateTimePicker1.Value.AddMonths(-1)
51
+            DTP = Strings.Left(Strings.Format(DateTimePicker1.Value, "yyyy/MM/dd"), 8) & "26" : DateTimePicker1.Value = DTP
52
+            '-------------日期二----------------------------------------------------------------------------------------
53
+            DTP = Strings.Left(Strings.Format(DateTimePicker2.Value, "yyyy/MM/dd"), 8) & "25" : DateTimePicker2.Value = DTP
54
+        Else
55
+            '-------------日期一----------------------------------------------------------------------------------------
56
+            DateTimePicker1.Value = DateTimePicker1.Value.AddMonths(1)
57
+            DTP = Strings.Left(Strings.Format(DateTimePicker1.Value, "yyyy/MM/dd"), 8) & "01" : DateTimePicker1.Value = DTP
58
+            '-------------日期二----------------------------------------------------------------------------------------
59
+            Dim iDays As Integer = DateTime.DaysInMonth(Strings.Left(Strings.Format(DateTimePicker2.Value, "yyyy/MM/dd"), 4), Strings.Mid(Strings.Format(DateTimePicker2.Value, "yyyy/MM/dd"), 6, 2))
60
+            DTP = Strings.Left(Strings.Format(DateTimePicker2.Value, "yyyy/MM/dd"), 8) & iDays : DateTimePicker2.Value = DTP
61
+        End If
62
+    End Sub
63
+    Private Sub 應付賬款_Load(sender As Object, e As EventArgs) Handles MyBase.Load
64
+        Me.MdiParent = MAOJI_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
65
+        ComboBox6.Visible = False : TextBox1.Visible = False
66
+        ComboBox1下拉表單資料載入() : ComboBox3下拉表單資料載入() : ComboBox6下拉表單資料載入() : 日期格式() : Set_賬款清單()
67
+    End Sub
68
+    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
69
+        DateTimePicker1.Value = DateTimePicker1.Value.AddMonths(-1) : DateTimePicker2.Value = DateTimePicker2.Value.AddMonths(-1) : Set_賬款清單()
70
+    End Sub
71
+    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
72
+        DateTimePicker1.Value = DateTimePicker1.Value.AddMonths(1) : DateTimePicker2.Value = DateTimePicker2.Value.AddMonths(1) : Set_賬款清單()
73
+    End Sub
74
+    Private Sub 會計月_CheckedChanged(sender As Object, e As EventArgs) Handles 會計月.Click
75
+        會計月.Checked = True : 一般月.Checked = False : 日期格式() : Set_賬款清單()
76
+    End Sub
77
+    Private Sub 一般月_CheckedChanged(sender As Object, e As EventArgs) Handles 一般月.Click
78
+        會計月.Checked = False : 一般月.Checked = True : 日期格式() : Set_賬款清單()
79
+    End Sub
80
+    Private Sub ComboBox5_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox5.TextChanged
81
+        ComboBox1.SelectedIndex = ComboBox5.SelectedIndex : TextBox9.Text = "" : ComboBox3下拉表單資料載入() : ComboBox6下拉表單資料載入()
82
+    End Sub
83
+    Private Sub ComboBox1_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox1.TextChanged
84
+        ComboBox5.SelectedIndex = ComboBox1.SelectedIndex : ComboBox3下拉表單資料載入() : ComboBox6下拉表單資料載入()
85
+    End Sub
86
+    Private Sub ComboBox3_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox3.TextChanged
87
+        ComboBox4.SelectedIndex = ComboBox3.SelectedIndex : ComboBox6下拉表單資料載入()
88
+    End Sub
89
+    Private Sub ComboBox4_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox4.TextChanged
90
+        ComboBox3.SelectedIndex = ComboBox4.SelectedIndex : ComboBox6下拉表單資料載入()
91
+    End Sub
92
+    Private Sub ComboBox7_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox7.SelectedIndexChanged
93
+        ComboBox6.SelectedIndex = ComboBox7.SelectedIndex
94
+    End Sub
95
+    Private Sub ComboBox6_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox6.SelectedIndexChanged
96
+        ComboBox7.SelectedIndex = ComboBox6.SelectedIndex
97
+    End Sub
98
+    Private Sub TextBox9_TextChanged(sender As Object, e As EventArgs) Handles TextBox9.TextChanged
99
+        PA = TextBox9.Text : SQL_會計科目_關鍵字()
100
+        ComboBox7.Items.Clear() : ComboBox6.Items.Clear() : While (dr.Read()) : ComboBox7.Items.Add(dr("會計科目")) : ComboBox6.Items.Add(dr("編號")) : End While : conn.Close()
101
+        If ComboBox7.Items.Count <> 0 Then : ComboBox7.SelectedIndex = 0 : End If : PA = ""
102
+    End Sub
103
+    Private Sub DataGridView1_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles DataGridView1.CellClick
104
+        If e.RowIndex = -1 Then : Else
105
+            TextBox3.Text = DataGridView1.Rows(e.RowIndex).Cells("單據編號").Value
106
+            TextBox2.Text = "0" : TextBox1.Text = "0"
107
+            For I As Integer = 0 To DataGridView1.Rows.Count - 1
108
+                If CheckBox2.Checked = False Then
109
+                    DataGridView1.Rows(I).Cells("選擇").Value = False
110
+                End If
111
+
112
+                If DataGridView1.Rows(I).Cells("應付立帳").Value = False Then
113
+                    If TextBox3.Text = DataGridView1.Rows(I).Cells("單據編號").Value Then
114
+                        DataGridView1.Rows(I).Cells("選擇").Value = True
115
+                        TextBox1.Text = Val(TextBox1.Text) + DataGridView1.Rows(I).Cells("金額").Value
116
+                        TextBox2.Text = Val(TextBox2.Text) + DataGridView1.Rows(I).Cells("金額").Value
117
+                    End If
118
+                End If
119
+            Next
120
+            TextBox2.Text = Strings.Format(Val(TextBox2.Text), "#,##0")
121
+        End If
122
+    End Sub
123
+    Private Sub DataGridView1_RowPostPaint(ByVal sender As Object, ByVal e As DataGridViewRowPostPaintEventArgs) Handles DataGridView1.RowPostPaint
124
+        Dim linePen As New Pen(Color.Blue, 2)
125
+        If e.RowIndex = DataGridView1.Rows.Count - 1 Then : Exit Sub
126
+        Else
127
+            If DataGridView1(0, e.RowIndex).Value.ToString <> DataGridView1(0, e.RowIndex + 1).Value.ToString Then
128
+                Dim startX As Integer = IIf(DataGridView1.RowHeadersVisible, DataGridView1.RowHeadersWidth, 0)
129
+                Dim startY As Integer = e.RowBounds.Top + e.RowBounds.Height - 1
130
+                Dim endX As Integer = startX + DataGridView1.Columns.GetColumnsWidth(DataGridViewElementStates.Visible) - DataGridView1.HorizontalScrollingOffset
131
+                e.Graphics.DrawLine(linePen, startX, startY, endX, startY) : Exit Sub
132
+            End If
133
+        End If
134
+    End Sub
135
+    Private Sub Button13_Click(sender As Object, e As EventArgs) Handles Button13.Click
136
+        For i As Integer = 0 To DataGridView1.Rows.Count - 1 : DataGridView1.Rows(i).Cells("選擇").Value = True : Next i
137
+    End Sub
138
+    Private Sub Button12_Click(sender As Object, e As EventArgs) Handles Button12.Click
139
+        For i As Integer = 0 To DataGridView1.Rows.Count - 1 : DataGridView1.Rows(i).Cells("選擇").Value = False : Next i
140
+    End Sub
141
+    Private Sub Button6_Click(sender As Object, e As EventArgs) Handles Button6.Click
142
+        For i As Integer = 0 To DataGridView1.Rows.Count - 1
143
+            If TextBox3.Text = DataGridView1.Rows(i).Cells("單據編號").Value.ToString Then
144
+                DataGridView1.Rows(i).Cells("應付立帳").Value = False
145
+            End If
146
+        Next i
147
+    End Sub
148
+    Private Sub NumericUpDown1_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown1.ValueChanged
149
+        NumericUpDown2.Value = Val(TextBox1.Text) - NumericUpDown1.Value
150
+    End Sub
151
+End Class

MaoOrange-Hongji/應收帳款.Designer.vb → MaoOrange-Hongji/財務系統管理/應收帳款.Designer.vb View File


MaoOrange-Hongji/應收帳款.resx → MaoOrange-Hongji/財務系統管理/應收帳款.resx View File


MaoOrange-Hongji/應收帳款.vb → MaoOrange-Hongji/財務系統管理/應收帳款.vb View File


Loading…
Cancel
Save