B70340 3 gadus atpakaļ
vecāks
revīzija
827fbeda79

Binārs
.vs/YD-ERP-SYS/v16/.suo Parādīt failu


+ 1
- 1
YD-ERP-SYS/Module/全域變數.vb Parādīt failu

4
     Public 版本號 As String : Public Target As String : Public Target1 As String : Public Target2 As String : Public FTP帳號 As String : Public FTP密碼 As String : Public FTP物理位置 As String
4
     Public 版本號 As String : Public Target As String : Public Target1 As String : Public Target2 As String : Public FTP帳號 As String : Public FTP密碼 As String : Public FTP物理位置 As String
5
     Public AA(99) As String : Public BB(99) As Boolean : Public CC(99) As Boolean : Public 登入判斷 As Boolean : Public 業務號碼 As String
5
     Public AA(99) As String : Public BB(99) As Boolean : Public CC(99) As Boolean : Public 登入判斷 As Boolean : Public 業務號碼 As String
6
     '----系統版本-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
6
     '----系統版本-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
7
-    Public 版本 As String = "2021082701"
7
+    Public 版本 As String = "2021083001"
8
     '----系統用全域變數-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
8
     '----系統用全域變數-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
9
     Public 列印用SQL As String = "" : Public 列印用SQL2 As String : Public 公司編號 As String : Public 公司電話 As String : Public 公司統編 As String : Public 公司地址 As String
9
     Public 列印用SQL As String = "" : Public 列印用SQL2 As String : Public 公司編號 As String : Public 公司電話 As String : Public 公司統編 As String : Public 公司地址 As String
10
     Public 關鍵字編號 As String
10
     Public 關鍵字編號 As String

Binārs
YD-ERP-SYS/bin/Debug/YD-ERP-SYS.exe Parādīt failu


Binārs
YD-ERP-SYS/bin/Debug/YD-ERP-SYS.pdb Parādīt failu


Binārs
YD-ERP-SYS/obj/Debug/YD-ERP-SYS.exe Parādīt failu


Binārs
YD-ERP-SYS/obj/Debug/YD-ERP-SYS.pdb Parādīt failu


Binārs
YD-ERP-SYS/obj/Debug/YD-ERP-SYS.vbproj.GenerateResource.cache Parādīt failu


Binārs
YD-ERP-SYS/obj/Debug/YD-ERP-SYS.vbprojAssemblyReference.cache Parādīt failu


+ 2
- 1
YD-ERP-SYS/業務系統管理/訂單控制表.vb Parādīt failu

204
             End If
204
             End If
205
             If Strings.Left(銷售明細_dgv("料號", i).Value.ToString, 1) = "1" Then
205
             If Strings.Left(銷售明細_dgv("料號", i).Value.ToString, 1) = "1" Then
206
                 其他成本_tb.Text = Val(其他成本_tb.Text) + (銷售明細_dgv("數量", i).Value * 銷售明細_dgv("成本", i).Value)
206
                 其他成本_tb.Text = Val(其他成本_tb.Text) + (銷售明細_dgv("數量", i).Value * 銷售明細_dgv("成本", i).Value)
207
+                '不含1類銷售小記 = 不含1類銷售小記 - 銷售明細_dgv("成本", i).Value
207
             End If
208
             End If
208
 
209
 
209
             If 銷售明細_dgv("含稅", i).Value = True Then
210
             If 銷售明細_dgv("含稅", i).Value = True Then
256
                 If (不含1類銷售小記 - Val(其他成本_tb.Text)) <= Val(最低售價_cb.Text) Then
257
                 If (不含1類銷售小記 - Val(其他成本_tb.Text)) <= Val(最低售價_cb.Text) Then
257
                     司機運費_tb.Text = 最低運費_cb.Text
258
                     司機運費_tb.Text = 最低運費_cb.Text
258
                 ElseIf (不含1類銷售小記 - Val(其他成本_tb.Text)) > Val(最低售價_cb.Text) Then
259
                 ElseIf (不含1類銷售小記 - Val(其他成本_tb.Text)) > Val(最低售價_cb.Text) Then
259
-                    司機運費_tb.Text = (不含1類銷售小記 - Val(稅金_tb.Text) - Val(刷卡傭金_tb.Text) - Val(其他成本_tb.Text)) / 100 * 3
260
+                    司機運費_tb.Text = (不含1類銷售小記 - Val(稅金_tb.Text) - Val(刷卡傭金_tb.Text)) / 100 * 3 ' - Val(其他成本_tb.Text)
260
                 End If
261
                 End If
261
             Else
262
             Else
262
                 司機運費_tb.Text = 運費
263
                 司機運費_tb.Text = 運費

+ 6
- 3
YD-ERP-SYS/業務系統管理/銷售單審核.vb Parādīt failu

324
             End If
324
             End If
325
             If Strings.Left(銷售明細_dgv("料號", i).Value.ToString, 1) = "1" Then
325
             If Strings.Left(銷售明細_dgv("料號", i).Value.ToString, 1) = "1" Then
326
                 其他成本_tb.Text = Val(其他成本_tb.Text) + (銷售明細_dgv("數量", i).Value * 銷售明細_dgv("成本", i).Value)
326
                 其他成本_tb.Text = Val(其他成本_tb.Text) + (銷售明細_dgv("數量", i).Value * 銷售明細_dgv("成本", i).Value)
327
+                '不含1類銷售小記 = 不含1類銷售小記 - 銷售明細_dgv("成本", i).Value
327
             End If
328
             End If
328
 
329
 
329
             If 銷售明細_dgv("含稅", i).Value = True Then
330
             If 銷售明細_dgv("含稅", i).Value = True Then
376
                 If (不含1類銷售小記 - Val(其他成本_tb.Text)) <= Val(最低售價_cb.Text) Then
377
                 If (不含1類銷售小記 - Val(其他成本_tb.Text)) <= Val(最低售價_cb.Text) Then
377
                     司機運費_tb.Text = 最低運費_cb.Text
378
                     司機運費_tb.Text = 最低運費_cb.Text
378
                 ElseIf (不含1類銷售小記 - Val(其他成本_tb.Text)) > Val(最低售價_cb.Text) Then
379
                 ElseIf (不含1類銷售小記 - Val(其他成本_tb.Text)) > Val(最低售價_cb.Text) Then
379
-                    司機運費_tb.Text = (不含1類銷售小記 - Val(稅金_tb.Text) - Val(刷卡傭金_tb.Text) - Val(其他成本_tb.Text)) / 100 * 3
380
+                    司機運費_tb.Text = (不含1類銷售小記 - Val(稅金_tb.Text) - Val(刷卡傭金_tb.Text)) / 100 * 3 ' - Val(其他成本_tb.Text)
380
                 End If
381
                 End If
381
             Else
382
             Else
382
                 司機運費_tb.Text = 運費
383
                 司機運費_tb.Text = 運費
1249
             End If
1250
             End If
1250
             If Strings.Left(銷售明細_dgv("料號", i).Value.ToString, 1) = "1" Then
1251
             If Strings.Left(銷售明細_dgv("料號", i).Value.ToString, 1) = "1" Then
1251
                 其他成本_tb.Text = Val(其他成本_tb.Text) + (銷售明細_dgv("數量", i).Value * 銷售明細_dgv("成本", i).Value)
1252
                 其他成本_tb.Text = Val(其他成本_tb.Text) + (銷售明細_dgv("數量", i).Value * 銷售明細_dgv("成本", i).Value)
1253
+                '不含1類銷售小記 = 不含1類銷售小記 - 銷售明細_dgv("成本", i).Value
1252
             End If
1254
             End If
1253
 
1255
 
1254
             If 銷售明細_dgv("含稅", i).Value = True Then
1256
             If 銷售明細_dgv("含稅", i).Value = True Then
1300
             If (不含1類銷售小記 - Val(其他成本_tb.Text)) <= Val(最低售價_cb.Text) Then
1302
             If (不含1類銷售小記 - Val(其他成本_tb.Text)) <= Val(最低售價_cb.Text) Then
1301
                 司機運費_tb.Text = 最低運費_cb.Text
1303
                 司機運費_tb.Text = 最低運費_cb.Text
1302
             ElseIf (不含1類銷售小記 - Val(其他成本_tb.Text)) > Val(最低售價_cb.Text) Then
1304
             ElseIf (不含1類銷售小記 - Val(其他成本_tb.Text)) > Val(最低售價_cb.Text) Then
1303
-                司機運費_tb.Text = (不含1類銷售小記 - Val(稅金_tb.Text) - Val(刷卡傭金_tb.Text) - Val(其他成本_tb.Text)) / 100 * 3
1305
+                司機運費_tb.Text = (不含1類銷售小記 - Val(稅金_tb.Text) - Val(刷卡傭金_tb.Text)) / 100 * 3 ' - Val(其他成本_tb.Text)
1304
             End If
1306
             End If
1305
         End If
1307
         End If
1306
         存檔1()
1308
         存檔1()
1360
             End If
1362
             End If
1361
             If Strings.Left(銷售明細_dgv("料號", i).Value.ToString, 1) = "1" Then
1363
             If Strings.Left(銷售明細_dgv("料號", i).Value.ToString, 1) = "1" Then
1362
                 其他成本_tb.Text = Val(其他成本_tb.Text) + (銷售明細_dgv("數量", i).Value * 銷售明細_dgv("成本", i).Value)
1364
                 其他成本_tb.Text = Val(其他成本_tb.Text) + (銷售明細_dgv("數量", i).Value * 銷售明細_dgv("成本", i).Value)
1365
+                '不含1類銷售小記 = 不含1類銷售小記 - 銷售明細_dgv("成本", i).Value
1363
             End If
1366
             End If
1364
 
1367
 
1365
             If 銷售明細_dgv("含稅", i).Value = True Then
1368
             If 銷售明細_dgv("含稅", i).Value = True Then
1405
                 If (不含1類銷售小記 - Val(其他成本_tb.Text)) <= Val(最低售價_cb.Text) Then
1408
                 If (不含1類銷售小記 - Val(其他成本_tb.Text)) <= Val(最低售價_cb.Text) Then
1406
                     司機運費_tb.Text = 最低運費_cb.Text
1409
                     司機運費_tb.Text = 最低運費_cb.Text
1407
                 ElseIf (不含1類銷售小記 - Val(其他成本_tb.Text)) > Val(最低售價_cb.Text) Then
1410
                 ElseIf (不含1類銷售小記 - Val(其他成本_tb.Text)) > Val(最低售價_cb.Text) Then
1408
-                    司機運費_tb.Text = (不含1類銷售小記 - Val(稅金_tb.Text) - Val(刷卡傭金_tb.Text) - Val(其他成本_tb.Text)) / 100 * 3
1411
+                    司機運費_tb.Text = (不含1類銷售小記 - Val(稅金_tb.Text) - Val(刷卡傭金_tb.Text)) / 100 * 3 ' - Val(其他成本_tb.Text)
1409
                 End If
1412
                 End If
1410
             Else
1413
             Else
1411
                 司機運費_tb.Text = 運費
1414
                 司機運費_tb.Text = 運費

+ 22
- 22
YD-ERP-SYS/業務系統管理/銷售單申請.Designer.vb Parādīt failu

30
         Dim DataGridViewCellStyle6 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()
31
         Dim DataGridViewCellStyle7 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
32
         Dim DataGridViewCellStyle8 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
32
         Dim DataGridViewCellStyle8 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
33
+        Dim DataGridViewCellStyle13 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
34
+        Dim DataGridViewCellStyle14 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
33
         Dim DataGridViewCellStyle9 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
35
         Dim DataGridViewCellStyle9 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
34
         Dim DataGridViewCellStyle10 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
36
         Dim DataGridViewCellStyle10 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
35
         Dim DataGridViewCellStyle11 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
37
         Dim DataGridViewCellStyle11 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
36
         Dim DataGridViewCellStyle12 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
38
         Dim DataGridViewCellStyle12 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
37
-        Dim DataGridViewCellStyle13 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
38
-        Dim DataGridViewCellStyle14 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
39
         Dim DataGridViewCellStyle15 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
39
         Dim DataGridViewCellStyle15 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
40
         Dim DataGridViewCellStyle16 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
40
         Dim DataGridViewCellStyle16 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
41
         Me.銷售單據_dgv = New System.Windows.Forms.DataGridView()
41
         Me.銷售單據_dgv = New System.Windows.Forms.DataGridView()
1000
         Me.Panel1.Controls.Add(Me.新增衍生運費_bt)
1000
         Me.Panel1.Controls.Add(Me.新增衍生運費_bt)
1001
         Me.Panel1.Controls.Add(Me.項次4_tb)
1001
         Me.Panel1.Controls.Add(Me.項次4_tb)
1002
         Me.Panel1.Controls.Add(Me.Label49)
1002
         Me.Panel1.Controls.Add(Me.Label49)
1003
-        Me.Panel1.Controls.Add(Me.銷售衍生運費_dgv)
1004
         Me.Panel1.Controls.Add(Me.刷卡可刪除_ch)
1003
         Me.Panel1.Controls.Add(Me.刷卡可刪除_ch)
1005
         Me.Panel1.Controls.Add(Me.通知_lb)
1004
         Me.Panel1.Controls.Add(Me.通知_lb)
1006
         Me.Panel1.Controls.Add(Me.刷卡總和_tb)
1005
         Me.Panel1.Controls.Add(Me.刷卡總和_tb)
1056
         Me.Panel1.Controls.Add(Me.訂製編碼_cb)
1055
         Me.Panel1.Controls.Add(Me.訂製編碼_cb)
1057
         Me.Panel1.Controls.Add(Me.流水號_tb)
1056
         Me.Panel1.Controls.Add(Me.流水號_tb)
1058
         Me.Panel1.Controls.Add(Me.Label1)
1057
         Me.Panel1.Controls.Add(Me.Label1)
1059
-        Me.Panel1.Controls.Add(Me.銷售明細_dgv)
1060
         Me.Panel1.Controls.Add(Me.收款事項_dgv)
1058
         Me.Panel1.Controls.Add(Me.收款事項_dgv)
1061
         Me.Panel1.Controls.Add(Me.Label28)
1059
         Me.Panel1.Controls.Add(Me.Label28)
1062
         Me.Panel1.Controls.Add(Me.刪除單據上點選的資料_bt)
1060
         Me.Panel1.Controls.Add(Me.刪除單據上點選的資料_bt)
1063
         Me.Panel1.Controls.Add(Me.Label20)
1061
         Me.Panel1.Controls.Add(Me.Label20)
1064
         Me.Panel1.Controls.Add(Me.Label39)
1062
         Me.Panel1.Controls.Add(Me.Label39)
1065
         Me.Panel1.Controls.Add(Me.Label40)
1063
         Me.Panel1.Controls.Add(Me.Label40)
1066
-        Me.Panel1.Controls.Add(Me.銷售備註_dgv)
1067
         Me.Panel1.Controls.Add(Me.Label51)
1064
         Me.Panel1.Controls.Add(Me.Label51)
1065
+        Me.Panel1.Controls.Add(Me.銷售明細_dgv)
1066
+        Me.Panel1.Controls.Add(Me.銷售衍生運費_dgv)
1067
+        Me.Panel1.Controls.Add(Me.銷售備註_dgv)
1068
         Me.Panel1.Location = New System.Drawing.Point(1, 172)
1068
         Me.Panel1.Location = New System.Drawing.Point(1, 172)
1069
         Me.Panel1.Name = "Panel1"
1069
         Me.Panel1.Name = "Panel1"
1070
         Me.Panel1.Size = New System.Drawing.Size(924, 502)
1070
         Me.Panel1.Size = New System.Drawing.Size(924, 502)
1123
         '
1123
         '
1124
         '銷售衍生運費_dgv
1124
         '銷售衍生運費_dgv
1125
         '
1125
         '
1126
-        DataGridViewCellStyle9.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
1127
-        Me.銷售衍生運費_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle9
1126
+        DataGridViewCellStyle13.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
1127
+        Me.銷售衍生運費_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle13
1128
         Me.銷售衍生運費_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
1128
         Me.銷售衍生運費_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
1129
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
1129
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
1130
         Me.銷售衍生運費_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
1130
         Me.銷售衍生運費_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
1132
         Me.銷售衍生運費_dgv.Location = New System.Drawing.Point(3, 542)
1132
         Me.銷售衍生運費_dgv.Location = New System.Drawing.Point(3, 542)
1133
         Me.銷售衍生運費_dgv.Name = "銷售衍生運費_dgv"
1133
         Me.銷售衍生運費_dgv.Name = "銷售衍生運費_dgv"
1134
         Me.銷售衍生運費_dgv.RowHeadersWidth = 5
1134
         Me.銷售衍生運費_dgv.RowHeadersWidth = 5
1135
-        DataGridViewCellStyle10.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1136
-        DataGridViewCellStyle10.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
1137
-        Me.銷售衍生運費_dgv.RowsDefaultCellStyle = DataGridViewCellStyle10
1135
+        DataGridViewCellStyle14.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1136
+        DataGridViewCellStyle14.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
1137
+        Me.銷售衍生運費_dgv.RowsDefaultCellStyle = DataGridViewCellStyle14
1138
         Me.銷售衍生運費_dgv.RowTemplate.Height = 24
1138
         Me.銷售衍生運費_dgv.RowTemplate.Height = 24
1139
         Me.銷售衍生運費_dgv.Size = New System.Drawing.Size(725, 102)
1139
         Me.銷售衍生運費_dgv.Size = New System.Drawing.Size(725, 102)
1140
         Me.銷售衍生運費_dgv.TabIndex = 1334
1140
         Me.銷售衍生運費_dgv.TabIndex = 1334
1398
         '
1398
         '
1399
         Me.項次3_tb.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
1399
         Me.項次3_tb.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
1400
         Me.項次3_tb.Enabled = False
1400
         Me.項次3_tb.Enabled = False
1401
-        Me.項次3_tb.Location = New System.Drawing.Point(419, 391)
1401
+        Me.項次3_tb.Location = New System.Drawing.Point(419, 390)
1402
         Me.項次3_tb.Name = "項次3_tb"
1402
         Me.項次3_tb.Name = "項次3_tb"
1403
         Me.項次3_tb.Size = New System.Drawing.Size(32, 23)
1403
         Me.項次3_tb.Size = New System.Drawing.Size(32, 23)
1404
         Me.項次3_tb.TabIndex = 1290
1404
         Me.項次3_tb.TabIndex = 1290
1660
         '
1660
         '
1661
         '客戶資料_dgv
1661
         '客戶資料_dgv
1662
         '
1662
         '
1663
-        DataGridViewCellStyle11.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
1664
-        Me.客戶資料_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle11
1663
+        DataGridViewCellStyle9.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
1664
+        Me.客戶資料_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle9
1665
         Me.客戶資料_dgv.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1665
         Me.客戶資料_dgv.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1666
         Me.客戶資料_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
1666
         Me.客戶資料_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
1667
         Me.客戶資料_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
1667
         Me.客戶資料_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
1668
-        Me.客戶資料_dgv.Location = New System.Drawing.Point(17, 14052)
1668
+        Me.客戶資料_dgv.Location = New System.Drawing.Point(17, 14326)
1669
         Me.客戶資料_dgv.Name = "客戶資料_dgv"
1669
         Me.客戶資料_dgv.Name = "客戶資料_dgv"
1670
         Me.客戶資料_dgv.RowHeadersWidth = 5
1670
         Me.客戶資料_dgv.RowHeadersWidth = 5
1671
-        DataGridViewCellStyle12.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1672
-        DataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
1673
-        Me.客戶資料_dgv.RowsDefaultCellStyle = DataGridViewCellStyle12
1671
+        DataGridViewCellStyle10.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1672
+        DataGridViewCellStyle10.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
1673
+        Me.客戶資料_dgv.RowsDefaultCellStyle = DataGridViewCellStyle10
1674
         Me.客戶資料_dgv.RowTemplate.Height = 24
1674
         Me.客戶資料_dgv.RowTemplate.Height = 24
1675
         Me.客戶資料_dgv.Size = New System.Drawing.Size(191, 92)
1675
         Me.客戶資料_dgv.Size = New System.Drawing.Size(191, 92)
1676
         Me.客戶資料_dgv.TabIndex = 1254
1676
         Me.客戶資料_dgv.TabIndex = 1254
1678
         '
1678
         '
1679
         '收款事項_dgv
1679
         '收款事項_dgv
1680
         '
1680
         '
1681
-        DataGridViewCellStyle13.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
1682
-        Me.收款事項_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle13
1681
+        DataGridViewCellStyle11.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
1682
+        Me.收款事項_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle11
1683
         Me.收款事項_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
1683
         Me.收款事項_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
1684
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
1684
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
1685
         Me.收款事項_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
1685
         Me.收款事項_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
1687
         Me.收款事項_dgv.Location = New System.Drawing.Point(3, 669)
1687
         Me.收款事項_dgv.Location = New System.Drawing.Point(3, 669)
1688
         Me.收款事項_dgv.Name = "收款事項_dgv"
1688
         Me.收款事項_dgv.Name = "收款事項_dgv"
1689
         Me.收款事項_dgv.RowHeadersWidth = 5
1689
         Me.收款事項_dgv.RowHeadersWidth = 5
1690
-        DataGridViewCellStyle14.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1691
-        DataGridViewCellStyle14.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
1692
-        Me.收款事項_dgv.RowsDefaultCellStyle = DataGridViewCellStyle14
1690
+        DataGridViewCellStyle12.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
1691
+        DataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.[True]
1692
+        Me.收款事項_dgv.RowsDefaultCellStyle = DataGridViewCellStyle12
1693
         Me.收款事項_dgv.RowTemplate.Height = 24
1693
         Me.收款事項_dgv.RowTemplate.Height = 24
1694
         Me.收款事項_dgv.Size = New System.Drawing.Size(725, 102)
1694
         Me.收款事項_dgv.Size = New System.Drawing.Size(725, 102)
1695
         Me.收款事項_dgv.TabIndex = 1282
1695
         Me.收款事項_dgv.TabIndex = 1282

+ 6
- 3
YD-ERP-SYS/業務系統管理/銷售單申請.vb Parādīt failu

324
             End If
324
             End If
325
             If Strings.Left(銷售明細_dgv("料號", i).Value.ToString, 1) = "1" Then
325
             If Strings.Left(銷售明細_dgv("料號", i).Value.ToString, 1) = "1" Then
326
                 其他成本_tb.Text = Val(其他成本_tb.Text) + (銷售明細_dgv("數量", i).Value * 銷售明細_dgv("成本", i).Value)
326
                 其他成本_tb.Text = Val(其他成本_tb.Text) + (銷售明細_dgv("數量", i).Value * 銷售明細_dgv("成本", i).Value)
327
+                '不含1類銷售小記 = 不含1類銷售小記 - 銷售明細_dgv("成本", i).Value
327
             End If
328
             End If
328
 
329
 
329
             If 銷售明細_dgv("含稅", i).Value = True Then
330
             If 銷售明細_dgv("含稅", i).Value = True Then
376
                 If (不含1類銷售小記 - Val(其他成本_tb.Text)) <= Val(最低售價_cb.Text) Then
377
                 If (不含1類銷售小記 - Val(其他成本_tb.Text)) <= Val(最低售價_cb.Text) Then
377
                     司機運費_tb.Text = 最低運費_cb.Text
378
                     司機運費_tb.Text = 最低運費_cb.Text
378
                 ElseIf (不含1類銷售小記 - Val(其他成本_tb.Text)) > Val(最低售價_cb.Text) Then
379
                 ElseIf (不含1類銷售小記 - Val(其他成本_tb.Text)) > Val(最低售價_cb.Text) Then
379
-                    司機運費_tb.Text = (不含1類銷售小記 - Val(稅金_tb.Text) - Val(刷卡傭金_tb.Text) - Val(其他成本_tb.Text)) / 100 * 3
380
+                    司機運費_tb.Text = (不含1類銷售小記 - Val(稅金_tb.Text) - Val(刷卡傭金_tb.Text)) / 100 * 3 ' - Val(其他成本_tb.Text)
380
                 End If
381
                 End If
381
             Else
382
             Else
382
                 司機運費_tb.Text = 運費
383
                 司機運費_tb.Text = 運費
1327
             End If
1328
             End If
1328
             If Strings.Left(銷售明細_dgv("料號", i).Value.ToString, 1) = "1" Then
1329
             If Strings.Left(銷售明細_dgv("料號", i).Value.ToString, 1) = "1" Then
1329
                 其他成本_tb.Text = Val(其他成本_tb.Text) + (銷售明細_dgv("數量", i).Value * 銷售明細_dgv("成本", i).Value)
1330
                 其他成本_tb.Text = Val(其他成本_tb.Text) + (銷售明細_dgv("數量", i).Value * 銷售明細_dgv("成本", i).Value)
1331
+                '不含1類銷售小記 = 不含1類銷售小記 - 銷售明細_dgv("成本", i).Value
1330
             End If
1332
             End If
1331
 
1333
 
1332
             If 銷售明細_dgv("含稅", i).Value = True Then
1334
             If 銷售明細_dgv("含稅", i).Value = True Then
1378
             If (不含1類銷售小記 - Val(其他成本_tb.Text)) <= Val(最低售價_cb.Text) Then
1380
             If (不含1類銷售小記 - Val(其他成本_tb.Text)) <= Val(最低售價_cb.Text) Then
1379
                 司機運費_tb.Text = 最低運費_cb.Text
1381
                 司機運費_tb.Text = 最低運費_cb.Text
1380
             ElseIf (不含1類銷售小記 - Val(其他成本_tb.Text)) > Val(最低售價_cb.Text) Then
1382
             ElseIf (不含1類銷售小記 - Val(其他成本_tb.Text)) > Val(最低售價_cb.Text) Then
1381
-                司機運費_tb.Text = (不含1類銷售小記 - Val(稅金_tb.Text) - Val(刷卡傭金_tb.Text) - Val(其他成本_tb.Text)) / 100 * 3
1383
+                司機運費_tb.Text = (不含1類銷售小記 - Val(稅金_tb.Text) - Val(刷卡傭金_tb.Text)) / 100 * 3 ' - Val(其他成本_tb.Text)
1382
             End If
1384
             End If
1383
         End If
1385
         End If
1384
         存檔1()
1386
         存檔1()
1432
             End If
1434
             End If
1433
             If Strings.Left(銷售明細_dgv("料號", i).Value.ToString, 1) = "1" Then
1435
             If Strings.Left(銷售明細_dgv("料號", i).Value.ToString, 1) = "1" Then
1434
                 其他成本_tb.Text = Val(其他成本_tb.Text) + (銷售明細_dgv("數量", i).Value * 銷售明細_dgv("成本", i).Value)
1436
                 其他成本_tb.Text = Val(其他成本_tb.Text) + (銷售明細_dgv("數量", i).Value * 銷售明細_dgv("成本", i).Value)
1437
+                '不含1類銷售小記 = 不含1類銷售小記 - 銷售明細_dgv("成本", i).Value
1435
             End If
1438
             End If
1436
 
1439
 
1437
             If 銷售明細_dgv("含稅", i).Value = True Then
1440
             If 銷售明細_dgv("含稅", i).Value = True Then
1477
                 If (不含1類銷售小記 - Val(其他成本_tb.Text)) <= Val(最低售價_cb.Text) Then
1480
                 If (不含1類銷售小記 - Val(其他成本_tb.Text)) <= Val(最低售價_cb.Text) Then
1478
                     司機運費_tb.Text = 最低運費_cb.Text
1481
                     司機運費_tb.Text = 最低運費_cb.Text
1479
                 ElseIf (不含1類銷售小記 - Val(其他成本_tb.Text)) > Val(最低售價_cb.Text) Then
1482
                 ElseIf (不含1類銷售小記 - Val(其他成本_tb.Text)) > Val(最低售價_cb.Text) Then
1480
-                    司機運費_tb.Text = (不含1類銷售小記 - Val(稅金_tb.Text) - Val(刷卡傭金_tb.Text) - Val(其他成本_tb.Text)) / 100 * 3
1483
+                    司機運費_tb.Text = (不含1類銷售小記 - Val(稅金_tb.Text) - Val(刷卡傭金_tb.Text)) / 100 * 3 ' - Val(其他成本_tb.Text)
1481
                 End If
1484
                 End If
1482
             Else
1485
             Else
1483
                 司機運費_tb.Text = 運費
1486
                 司機運費_tb.Text = 運費

Notiek ielāde…
Atcelt
Saglabāt