B70340 2 лет назад
Родитель
Сommit
db0aa691a2

Двоичные данные
.vs/YD-ERP-SYS/FileContentIndex/610fd93c-399f-432f-bfeb-9957443319af.vsidx Просмотреть файл


Двоичные данные
.vs/YD-ERP-SYS/FileContentIndex/75af0310-9ba2-4d18-a5a9-c99161794013.vsidx Просмотреть файл


Двоичные данные
.vs/YD-ERP-SYS/v17/.suo Просмотреть файл


+ 1
- 1
YD-ERP-SYS/Module/SQL_業務系統管理.vb Просмотреть файл

@@ -112,7 +112,7 @@
112 112
                             銷售控制表.含稅, 銷售控制表.單位主管, 銷售控制表.審核日期, 銷售收款事項.內容, 銷售收款事項.金額 AS 未收額額, 
113 113
                             銷售控制表.送貨地點, 銷售控制表.運費, 銷售控制表.客戶編號, 客戶資料表.電話1, 客戶資料表.電話2, 
114 114
                             客戶資料表.地址, 客戶資料表.公司名稱, 客戶資料表.統編, 銷售控制表.稅金, 銷售控制表.已出貨 AS 出貨, 
115
-                            銷售控制表.轉業績日期, 銷售控制表.已出貨 AS 已結單
115
+                            銷售控制表.轉業績日期, 銷售控制表.已出貨 AS 已結單, 銷售控制表.銷貨總額
116 116
                 FROM        銷售控制表 INNER JOIN
117 117
                             客戶資料表 ON 銷售控制表.客戶編號 = 客戶資料表.舊編 INNER JOIN
118 118
                                 (SELECT          銷售明細表.單號

+ 3
- 0
YD-ERP-SYS/Module/SQL_跨介面共用.vb Просмотреть файл

@@ -251,6 +251,9 @@
251 251
                 WHERE 流水號 LIKE '" & PA1 & "%'"
252 252
         CmdSet_For_dr()
253 253
     End Sub
254
+    Friend Sub SQL_銷貨總額_修改()
255
+        ConnOpen() : SQL1 = "UPDATE 銷售控制表 SET 銷貨總額 = N'" & NU5 & "' WHERE 流水號 LIKE '" & PA1 & "%'" : CmdSet_For_dr()
256
+    End Sub
254 257
     Friend Sub SQL_銷售單申請_銷售明細表_新增()
255 258
         ConnOpen()
256 259
         SQL1 = "INSERT INTO 銷售明細表 (資料流水號, 單號, 料號, 物料狀態, 訂製狀態, 備註, 數量, 成本, 售價, 狀態, 含稅, 倉儲狀態, 排序, 不含管銷) 

+ 1
- 1
YD-ERP-SYS/Module/全域變數.vb Просмотреть файл

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

Двоичные данные
YD-ERP-SYS/bin/Debug/YD-ERP-SYS.exe Просмотреть файл


Двоичные данные
YD-ERP-SYS/bin/Debug/YD-ERP-SYS.pdb Просмотреть файл


Двоичные данные
YD-ERP-SYS/obj/Debug/YD-ERP-SYS.exe Просмотреть файл


Двоичные данные
YD-ERP-SYS/obj/Debug/YD-ERP-SYS.pdb Просмотреть файл


Двоичные данные
YD-ERP-SYS/obj/Debug/YD-ERP-SYS.vbproj.GenerateResource.cache Просмотреть файл


+ 60
- 48
YD-ERP-SYS/業務系統管理/訂單控制表.Designer.vb Просмотреть файл

@@ -146,6 +146,7 @@ Partial Class 訂單控制表
146 146
         Me.字體_NUD = New System.Windows.Forms.NumericUpDown()
147 147
         Me.顯示_bt = New System.Windows.Forms.Button()
148 148
         Me.隱藏_bt = New System.Windows.Forms.Button()
149
+        Me.批量刷銷售_bt = New System.Windows.Forms.Button()
149 150
         CType(Me.銷售單據_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
150 151
         Me.Panel1.SuspendLayout()
151 152
         CType(Me.銷售衍生運費_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
@@ -193,7 +194,7 @@ Partial Class 訂單控制表
193 194
         Me.未審核_lb.AutoSize = True
194 195
         Me.未審核_lb.Location = New System.Drawing.Point(0, 5)
195 196
         Me.未審核_lb.Name = "未審核_lb"
196
-        Me.未審核_lb.Size = New System.Drawing.Size(68, 16)
197
+        Me.未審核_lb.Size = New System.Drawing.Size(67, 16)
197 198
         Me.未審核_lb.TabIndex = 1257
198 199
         Me.未審核_lb.Text = "業務銷售單"
199 200
         '
@@ -202,7 +203,7 @@ Partial Class 訂單控制表
202 203
         Me.含稅_ch.AutoSize = True
203 204
         Me.含稅_ch.Location = New System.Drawing.Point(43, 104)
204 205
         Me.含稅_ch.Name = "含稅_ch"
205
-        Me.含稅_ch.Size = New System.Drawing.Size(51, 20)
206
+        Me.含稅_ch.Size = New System.Drawing.Size(50, 20)
206 207
         Me.含稅_ch.TabIndex = 1277
207 208
         Me.含稅_ch.Text = "含稅"
208 209
         Me.含稅_ch.UseVisualStyleBackColor = True
@@ -222,7 +223,7 @@ Partial Class 訂單控制表
222 223
         Me.Label9.ImeMode = System.Windows.Forms.ImeMode.NoControl
223 224
         Me.Label9.Location = New System.Drawing.Point(167, 30)
224 225
         Me.Label9.Name = "Label9"
225
-        Me.Label9.Size = New System.Drawing.Size(56, 16)
226
+        Me.Label9.Size = New System.Drawing.Size(55, 16)
226 227
         Me.Label9.TabIndex = 1275
227 228
         Me.Label9.Text = "交貨日期"
228 229
         '
@@ -241,7 +242,7 @@ Partial Class 訂單控制表
241 242
         Me.Label4.ImeMode = System.Windows.Forms.ImeMode.NoControl
242 243
         Me.Label4.Location = New System.Drawing.Point(167, 5)
243 244
         Me.Label4.Name = "Label4"
244
-        Me.Label4.Size = New System.Drawing.Size(56, 16)
245
+        Me.Label4.Size = New System.Drawing.Size(55, 16)
245 246
         Me.Label4.TabIndex = 1273
246 247
         Me.Label4.Text = "開單日期"
247 248
         '
@@ -252,7 +253,7 @@ Partial Class 訂單控制表
252 253
         Me.Label11.ImeMode = System.Windows.Forms.ImeMode.NoControl
253 254
         Me.Label11.Location = New System.Drawing.Point(172, 105)
254 255
         Me.Label11.Name = "Label11"
255
-        Me.Label11.Size = New System.Drawing.Size(56, 16)
256
+        Me.Label11.Size = New System.Drawing.Size(55, 16)
256 257
         Me.Label11.TabIndex = 1272
257 258
         Me.Label11.Text = "統一編號"
258 259
         '
@@ -277,7 +278,7 @@ Partial Class 訂單控制表
277 278
         Me.Label10.ImeMode = System.Windows.Forms.ImeMode.NoControl
278 279
         Me.Label10.Location = New System.Drawing.Point(3, 55)
279 280
         Me.Label10.Name = "Label10"
280
-        Me.Label10.Size = New System.Drawing.Size(32, 16)
281
+        Me.Label10.Size = New System.Drawing.Size(31, 16)
281 282
         Me.Label10.TabIndex = 1269
282 283
         Me.Label10.Text = "公司"
283 284
         '
@@ -315,7 +316,7 @@ Partial Class 訂單控制表
315 316
         Me.Label8.ImeMode = System.Windows.Forms.ImeMode.NoControl
316 317
         Me.Label8.Location = New System.Drawing.Point(191, 80)
317 318
         Me.Label8.Name = "Label8"
318
-        Me.Label8.Size = New System.Drawing.Size(39, 16)
319
+        Me.Label8.Size = New System.Drawing.Size(38, 16)
319 320
         Me.Label8.TabIndex = 1264
320 321
         Me.Label8.Text = "電話2"
321 322
         '
@@ -326,7 +327,7 @@ Partial Class 訂單控制表
326 327
         Me.Label7.ImeMode = System.Windows.Forms.ImeMode.NoControl
327 328
         Me.Label7.Location = New System.Drawing.Point(3, 80)
328 329
         Me.Label7.Name = "Label7"
329
-        Me.Label7.Size = New System.Drawing.Size(39, 16)
330
+        Me.Label7.Size = New System.Drawing.Size(38, 16)
330 331
         Me.Label7.TabIndex = 1263
331 332
         Me.Label7.Text = "電話1"
332 333
         '
@@ -337,7 +338,7 @@ Partial Class 訂單控制表
337 338
         Me.Label6.ImeMode = System.Windows.Forms.ImeMode.NoControl
338 339
         Me.Label6.Location = New System.Drawing.Point(3, 130)
339 340
         Me.Label6.Name = "Label6"
340
-        Me.Label6.Size = New System.Drawing.Size(32, 16)
341
+        Me.Label6.Size = New System.Drawing.Size(31, 16)
341 342
         Me.Label6.TabIndex = 1262
342 343
         Me.Label6.Text = "住址"
343 344
         '
@@ -348,7 +349,7 @@ Partial Class 訂單控制表
348 349
         Me.Label3.ImeMode = System.Windows.Forms.ImeMode.NoControl
349 350
         Me.Label3.Location = New System.Drawing.Point(3, 32)
350 351
         Me.Label3.Name = "Label3"
351
-        Me.Label3.Size = New System.Drawing.Size(32, 16)
352
+        Me.Label3.Size = New System.Drawing.Size(31, 16)
352 353
         Me.Label3.TabIndex = 1261
353 354
         Me.Label3.Text = "客戶"
354 355
         '
@@ -358,7 +359,7 @@ Partial Class 訂單控制表
358 359
         Me.Label2.ForeColor = System.Drawing.Color.Red
359 360
         Me.Label2.Location = New System.Drawing.Point(3, 5)
360 361
         Me.Label2.Name = "Label2"
361
-        Me.Label2.Size = New System.Drawing.Size(32, 16)
362
+        Me.Label2.Size = New System.Drawing.Size(31, 16)
362 363
         Me.Label2.TabIndex = 1260
363 364
         Me.Label2.Text = "單號"
364 365
         '
@@ -455,7 +456,7 @@ Partial Class 訂單控制表
455 456
         Me.Label49.AutoSize = True
456 457
         Me.Label49.Location = New System.Drawing.Point(4, 518)
457 458
         Me.Label49.Name = "Label49"
458
-        Me.Label49.Size = New System.Drawing.Size(32, 16)
459
+        Me.Label49.Size = New System.Drawing.Size(31, 16)
459 460
         Me.Label49.TabIndex = 1352
460 461
         Me.Label49.Text = "項次"
461 462
         '
@@ -517,7 +518,7 @@ Partial Class 訂單控制表
517 518
         Me.Label46.ForeColor = System.Drawing.Color.FromArgb(CType(CType(128, Byte), Integer), CType(CType(64, Byte), Integer), CType(CType(0, Byte), Integer))
518 519
         Me.Label46.Location = New System.Drawing.Point(583, 413)
519 520
         Me.Label46.Name = "Label46"
520
-        Me.Label46.Size = New System.Drawing.Size(83, 16)
521
+        Me.Label46.Size = New System.Drawing.Size(82, 16)
521 522
         Me.Label46.TabIndex = 1347
522 523
         Me.Label46.Text = "刷   卡   稅   金"
523 524
         '
@@ -528,7 +529,7 @@ Partial Class 訂單控制表
528 529
         Me.Label47.ForeColor = System.Drawing.Color.FromArgb(CType(CType(128, Byte), Integer), CType(CType(64, Byte), Integer), CType(CType(0, Byte), Integer))
529 530
         Me.Label47.Location = New System.Drawing.Point(583, 389)
530 531
         Me.Label47.Name = "Label47"
531
-        Me.Label47.Size = New System.Drawing.Size(83, 16)
532
+        Me.Label47.Size = New System.Drawing.Size(82, 16)
532 533
         Me.Label47.TabIndex = 1345
533 534
         Me.Label47.Text = "刷   卡   總   和"
534 535
         '
@@ -550,7 +551,7 @@ Partial Class 訂單控制表
550 551
         Me.Label48.ForeColor = System.Drawing.Color.FromArgb(CType(CType(128, Byte), Integer), CType(CType(64, Byte), Integer), CType(CType(0, Byte), Integer))
551 552
         Me.Label48.Location = New System.Drawing.Point(582, 439)
552 553
         Me.Label48.Name = "Label48"
553
-        Me.Label48.Size = New System.Drawing.Size(83, 16)
554
+        Me.Label48.Size = New System.Drawing.Size(82, 16)
554 555
         Me.Label48.TabIndex = 1343
555 556
         Me.Label48.Text = "刷   卡   傭   金"
556 557
         '
@@ -572,7 +573,7 @@ Partial Class 訂單控制表
572 573
         Me.Label45.ForeColor = System.Drawing.Color.Green
573 574
         Me.Label45.Location = New System.Drawing.Point(583, 701)
574 575
         Me.Label45.Name = "Label45"
575
-        Me.Label45.Size = New System.Drawing.Size(83, 16)
576
+        Me.Label45.Size = New System.Drawing.Size(82, 16)
576 577
         Me.Label45.TabIndex = 1336
577 578
         Me.Label45.Text = "其   他   成   本"
578 579
         '
@@ -594,7 +595,7 @@ Partial Class 訂單控制表
594 595
         Me.Label43.ForeColor = System.Drawing.Color.Green
595 596
         Me.Label43.Location = New System.Drawing.Point(583, 676)
596 597
         Me.Label43.Name = "Label43"
597
-        Me.Label43.Size = New System.Drawing.Size(83, 16)
598
+        Me.Label43.Size = New System.Drawing.Size(82, 16)
598 599
         Me.Label43.TabIndex = 1317
599 600
         Me.Label43.Text = "物   料   成   本"
600 601
         '
@@ -616,7 +617,7 @@ Partial Class 訂單控制表
616 617
         Me.Label42.ForeColor = System.Drawing.Color.Green
617 618
         Me.Label42.Location = New System.Drawing.Point(584, 751)
618 619
         Me.Label42.Name = "Label42"
619
-        Me.Label42.Size = New System.Drawing.Size(83, 16)
620
+        Me.Label42.Size = New System.Drawing.Size(82, 16)
620 621
         Me.Label42.TabIndex = 1315
621 622
         Me.Label42.Text = "預   估   利   潤"
622 623
         '
@@ -638,7 +639,7 @@ Partial Class 訂單控制表
638 639
         Me.Label41.ForeColor = System.Drawing.Color.Green
639 640
         Me.Label41.Location = New System.Drawing.Point(584, 726)
640 641
         Me.Label41.Name = "Label41"
641
-        Me.Label41.Size = New System.Drawing.Size(83, 16)
642
+        Me.Label41.Size = New System.Drawing.Size(82, 16)
642 643
         Me.Label41.TabIndex = 1313
643 644
         Me.Label41.Text = "管   銷   費   用"
644 645
         '
@@ -660,7 +661,7 @@ Partial Class 訂單控制表
660 661
         Me.Label38.ForeColor = System.Drawing.Color.Black
661 662
         Me.Label38.Location = New System.Drawing.Point(580, 571)
662 663
         Me.Label38.Name = "Label38"
663
-        Me.Label38.Size = New System.Drawing.Size(83, 16)
664
+        Me.Label38.Size = New System.Drawing.Size(82, 16)
664 665
         Me.Label38.TabIndex = 1305
665 666
         Me.Label38.Text = "司   機   運   費"
666 667
         '
@@ -682,7 +683,7 @@ Partial Class 訂單控制表
682 683
         Me.Label39.AutoSize = True
683 684
         Me.Label39.Location = New System.Drawing.Point(577, 545)
684 685
         Me.Label39.Name = "Label39"
685
-        Me.Label39.Size = New System.Drawing.Size(56, 16)
686
+        Me.Label39.Size = New System.Drawing.Size(55, 16)
686 687
         Me.Label39.TabIndex = 1304
687 688
         Me.Label39.Text = "送貨地點"
688 689
         '
@@ -709,7 +710,7 @@ Partial Class 訂單控制表
709 710
         Me.Label36.AutoSize = True
710 711
         Me.Label36.Location = New System.Drawing.Point(2, 646)
711 712
         Me.Label36.Name = "Label36"
712
-        Me.Label36.Size = New System.Drawing.Size(32, 16)
713
+        Me.Label36.Size = New System.Drawing.Size(31, 16)
713 714
         Me.Label36.TabIndex = 1285
714 715
         Me.Label36.Text = "項次"
715 716
         '
@@ -731,7 +732,7 @@ Partial Class 訂單控制表
731 732
         Me.Label35.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
732 733
         Me.Label35.Location = New System.Drawing.Point(580, 648)
733 734
         Me.Label35.Name = "Label35"
734
-        Me.Label35.Size = New System.Drawing.Size(86, 16)
735
+        Me.Label35.Size = New System.Drawing.Size(85, 16)
735 736
         Me.Label35.TabIndex = 1280
736 737
         Me.Label35.Text = "額    外   收   支"
737 738
         '
@@ -753,7 +754,7 @@ Partial Class 訂單控制表
753 754
         Me.Label34.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
754 755
         Me.Label34.Location = New System.Drawing.Point(580, 516)
755 756
         Me.Label34.Name = "Label34"
756
-        Me.Label34.Size = New System.Drawing.Size(86, 16)
757
+        Me.Label34.Size = New System.Drawing.Size(85, 16)
757 758
         Me.Label34.TabIndex = 1278
758 759
         Me.Label34.Text = "銷    售   合   計"
759 760
         '
@@ -775,7 +776,7 @@ Partial Class 訂單控制表
775 776
         Me.Label33.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
776 777
         Me.Label33.Location = New System.Drawing.Point(580, 491)
777 778
         Me.Label33.Name = "Label33"
778
-        Me.Label33.Size = New System.Drawing.Size(85, 16)
779
+        Me.Label33.Size = New System.Drawing.Size(84, 16)
779 780
         Me.Label33.TabIndex = 1276
780 781
         Me.Label33.Text = "明細-稅        金"
781 782
         '
@@ -797,7 +798,7 @@ Partial Class 訂單控制表
797 798
         Me.Label32.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
798 799
         Me.Label32.Location = New System.Drawing.Point(581, 623)
799 800
         Me.Label32.Name = "Label32"
800
-        Me.Label32.Size = New System.Drawing.Size(85, 16)
801
+        Me.Label32.Size = New System.Drawing.Size(84, 16)
801 802
         Me.Label32.TabIndex = 1274
802 803
         Me.Label32.Text = "備註-支出小計"
803 804
         '
@@ -819,7 +820,7 @@ Partial Class 訂單控制表
819 820
         Me.Label31.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
820 821
         Me.Label31.Location = New System.Drawing.Point(579, 598)
821 822
         Me.Label31.Name = "Label31"
822
-        Me.Label31.Size = New System.Drawing.Size(85, 16)
823
+        Me.Label31.Size = New System.Drawing.Size(84, 16)
823 824
         Me.Label31.TabIndex = 1272
824 825
         Me.Label31.Text = "備註-收入小計"
825 826
         '
@@ -841,7 +842,7 @@ Partial Class 訂單控制表
841 842
         Me.Label30.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
842 843
         Me.Label30.Location = New System.Drawing.Point(580, 467)
843 844
         Me.Label30.Name = "Label30"
844
-        Me.Label30.Size = New System.Drawing.Size(85, 16)
845
+        Me.Label30.Size = New System.Drawing.Size(84, 16)
845 846
         Me.Label30.TabIndex = 1270
846 847
         Me.Label30.Text = "明細-售價小計"
847 848
         '
@@ -858,7 +859,7 @@ Partial Class 訂單控制表
858 859
         Me.Label26.AutoSize = True
859 860
         Me.Label26.Location = New System.Drawing.Point(4, 389)
860 861
         Me.Label26.Name = "Label26"
861
-        Me.Label26.Size = New System.Drawing.Size(32, 16)
862
+        Me.Label26.Size = New System.Drawing.Size(31, 16)
862 863
         Me.Label26.TabIndex = 1265
863 864
         Me.Label26.Text = "項次"
864 865
         '
@@ -875,7 +876,7 @@ Partial Class 訂單控制表
875 876
         Me.Label25.AutoSize = True
876 877
         Me.Label25.Location = New System.Drawing.Point(3, 6)
877 878
         Me.Label25.Name = "Label25"
878
-        Me.Label25.Size = New System.Drawing.Size(32, 16)
879
+        Me.Label25.Size = New System.Drawing.Size(31, 16)
879 880
         Me.Label25.TabIndex = 1263
880 881
         Me.Label25.Text = "項次"
881 882
         '
@@ -893,7 +894,7 @@ Partial Class 訂單控制表
893 894
         Me.倉儲單號_lb.AutoSize = True
894 895
         Me.倉儲單號_lb.Location = New System.Drawing.Point(296, 253)
895 896
         Me.倉儲單號_lb.Name = "倉儲單號_lb"
896
-        Me.倉儲單號_lb.Size = New System.Drawing.Size(56, 16)
897
+        Me.倉儲單號_lb.Size = New System.Drawing.Size(55, 16)
897 898
         Me.倉儲單號_lb.TabIndex = 1256
898 899
         Me.倉儲單號_lb.Text = "倉儲單號"
899 900
         Me.倉儲單號_lb.Visible = False
@@ -913,7 +914,7 @@ Partial Class 訂單控制表
913 914
         Me.客戶資料_dgv.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
914 915
         Me.客戶資料_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
915 916
         Me.客戶資料_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
916
-        Me.客戶資料_dgv.Location = New System.Drawing.Point(17, 12065)
917
+        Me.客戶資料_dgv.Location = New System.Drawing.Point(17, 12298)
917 918
         Me.客戶資料_dgv.Name = "客戶資料_dgv"
918 919
         Me.客戶資料_dgv.RowHeadersWidth = 5
919 920
         DataGridViewCellStyle6.Font = New System.Drawing.Font("微軟正黑體", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
@@ -989,7 +990,7 @@ Partial Class 訂單控制表
989 990
         Me.Label1.AutoSize = True
990 991
         Me.Label1.Location = New System.Drawing.Point(41, 193)
991 992
         Me.Label1.Name = "Label1"
992
-        Me.Label1.Size = New System.Drawing.Size(44, 16)
993
+        Me.Label1.Size = New System.Drawing.Size(43, 16)
993 994
         Me.Label1.TabIndex = 1173
994 995
         Me.Label1.Text = "流水號"
995 996
         Me.Label1.Visible = False
@@ -1001,7 +1002,7 @@ Partial Class 訂單控制表
1001 1002
         Me.Label5.ImeMode = System.Windows.Forms.ImeMode.NoControl
1002 1003
         Me.Label5.Location = New System.Drawing.Point(37, 218)
1003 1004
         Me.Label5.Name = "Label5"
1004
-        Me.Label5.Size = New System.Drawing.Size(56, 16)
1005
+        Me.Label5.Size = New System.Drawing.Size(55, 16)
1005 1006
         Me.Label5.TabIndex = 1178
1006 1007
         Me.Label5.Text = "編號客戶"
1007 1008
         Me.Label5.Visible = False
@@ -1048,7 +1049,7 @@ Partial Class 訂單控制表
1048 1049
         Me.Label28.AutoSize = True
1049 1050
         Me.Label28.Location = New System.Drawing.Point(579, 530)
1050 1051
         Me.Label28.Name = "Label28"
1051
-        Me.Label28.Size = New System.Drawing.Size(168, 16)
1052
+        Me.Label28.Size = New System.Drawing.Size(167, 16)
1052 1053
         Me.Label28.TabIndex = 1283
1053 1054
         Me.Label28.Text = "--------------------------------"
1054 1055
         '
@@ -1058,7 +1059,7 @@ Partial Class 訂單控制表
1058 1059
         Me.Label40.AutoSize = True
1059 1060
         Me.Label40.Location = New System.Drawing.Point(582, 662)
1060 1061
         Me.Label40.Name = "Label40"
1061
-        Me.Label40.Size = New System.Drawing.Size(168, 16)
1062
+        Me.Label40.Size = New System.Drawing.Size(167, 16)
1062 1063
         Me.Label40.TabIndex = 1312
1063 1064
         Me.Label40.Text = "--------------------------------"
1064 1065
         '
@@ -1068,7 +1069,7 @@ Partial Class 訂單控制表
1068 1069
         Me.Label20.AutoSize = True
1069 1070
         Me.Label20.Location = New System.Drawing.Point(578, 584)
1070 1071
         Me.Label20.Name = "Label20"
1071
-        Me.Label20.Size = New System.Drawing.Size(168, 16)
1072
+        Me.Label20.Size = New System.Drawing.Size(167, 16)
1072 1073
         Me.Label20.TabIndex = 1302
1073 1074
         Me.Label20.Text = "--------------------------------"
1074 1075
         '
@@ -1096,7 +1097,7 @@ Partial Class 訂單控制表
1096 1097
         Me.Label14.AutoSize = True
1097 1098
         Me.Label14.Location = New System.Drawing.Point(579, 452)
1098 1099
         Me.Label14.Name = "Label14"
1099
-        Me.Label14.Size = New System.Drawing.Size(168, 16)
1100
+        Me.Label14.Size = New System.Drawing.Size(167, 16)
1100 1101
         Me.Label14.TabIndex = 1353
1101 1102
         Me.Label14.Text = "--------------------------------"
1102 1103
         '
@@ -1116,7 +1117,7 @@ Partial Class 訂單控制表
1116 1117
         Me.Label37.AutoSize = True
1117 1118
         Me.Label37.Location = New System.Drawing.Point(582, 294)
1118 1119
         Me.Label37.Name = "Label37"
1119
-        Me.Label37.Size = New System.Drawing.Size(92, 16)
1120
+        Me.Label37.Size = New System.Drawing.Size(91, 16)
1120 1121
         Me.Label37.TabIndex = 1289
1121 1122
         Me.Label37.Text = "銷售收款流水號"
1122 1123
         Me.Label37.Visible = False
@@ -1147,7 +1148,7 @@ Partial Class 訂單控制表
1147 1148
         Me.Label24.AutoSize = True
1148 1149
         Me.Label24.Location = New System.Drawing.Point(582, 216)
1149 1150
         Me.Label24.Name = "Label24"
1150
-        Me.Label24.Size = New System.Drawing.Size(92, 16)
1151
+        Me.Label24.Size = New System.Drawing.Size(91, 16)
1151 1152
         Me.Label24.TabIndex = 1260
1152 1153
         Me.Label24.Text = "倉儲資料流水號"
1153 1154
         Me.Label24.Visible = False
@@ -1168,7 +1169,7 @@ Partial Class 訂單控制表
1168 1169
         Me.Label27.AutoSize = True
1169 1170
         Me.Label27.Location = New System.Drawing.Point(582, 256)
1170 1171
         Me.Label27.Name = "Label27"
1171
-        Me.Label27.Size = New System.Drawing.Size(92, 16)
1172
+        Me.Label27.Size = New System.Drawing.Size(91, 16)
1172 1173
         Me.Label27.TabIndex = 1267
1173 1174
         Me.Label27.Text = "銷售備註流水號"
1174 1175
         Me.Label27.Visible = False
@@ -1178,7 +1179,7 @@ Partial Class 訂單控制表
1178 1179
         Me.Label23.AutoSize = True
1179 1180
         Me.Label23.Location = New System.Drawing.Point(226, 178)
1180 1181
         Me.Label23.Name = "Label23"
1181
-        Me.Label23.Size = New System.Drawing.Size(92, 16)
1182
+        Me.Label23.Size = New System.Drawing.Size(91, 16)
1182 1183
         Me.Label23.TabIndex = 1258
1183 1184
         Me.Label23.Text = "銷售資料流水號"
1184 1185
         Me.Label23.Visible = False
@@ -1234,7 +1235,7 @@ Partial Class 訂單控制表
1234 1235
         Me.Label12.ImeMode = System.Windows.Forms.ImeMode.NoControl
1235 1236
         Me.Label12.Location = New System.Drawing.Point(111, 6)
1236 1237
         Me.Label12.Name = "Label12"
1237
-        Me.Label12.Size = New System.Drawing.Size(56, 16)
1238
+        Me.Label12.Size = New System.Drawing.Size(55, 16)
1238 1239
         Me.Label12.TabIndex = 1306
1239 1240
         Me.Label12.Text = "客戶資料"
1240 1241
         '
@@ -1243,7 +1244,7 @@ Partial Class 訂單控制表
1243 1244
         Me.大間距_ch.AutoSize = True
1244 1245
         Me.大間距_ch.Location = New System.Drawing.Point(287, 152)
1245 1246
         Me.大間距_ch.Name = "大間距_ch"
1246
-        Me.大間距_ch.Size = New System.Drawing.Size(63, 20)
1247
+        Me.大間距_ch.Size = New System.Drawing.Size(62, 20)
1247 1248
         Me.大間距_ch.TabIndex = 1337
1248 1249
         Me.大間距_ch.Text = "大間距"
1249 1250
         Me.大間距_ch.UseVisualStyleBackColor = True
@@ -1253,7 +1254,7 @@ Partial Class 訂單控制表
1253 1254
         Me.中間距_ch.AutoSize = True
1254 1255
         Me.中間距_ch.Location = New System.Drawing.Point(218, 152)
1255 1256
         Me.中間距_ch.Name = "中間距_ch"
1256
-        Me.中間距_ch.Size = New System.Drawing.Size(63, 20)
1257
+        Me.中間距_ch.Size = New System.Drawing.Size(62, 20)
1257 1258
         Me.中間距_ch.TabIndex = 1336
1258 1259
         Me.中間距_ch.Text = "中間距"
1259 1260
         Me.中間距_ch.UseVisualStyleBackColor = True
@@ -1263,7 +1264,7 @@ Partial Class 訂單控制表
1263 1264
         Me.小間距_ch.AutoSize = True
1264 1265
         Me.小間距_ch.Location = New System.Drawing.Point(149, 152)
1265 1266
         Me.小間距_ch.Name = "小間距_ch"
1266
-        Me.小間距_ch.Size = New System.Drawing.Size(63, 20)
1267
+        Me.小間距_ch.Size = New System.Drawing.Size(62, 20)
1267 1268
         Me.小間距_ch.TabIndex = 1335
1268 1269
         Me.小間距_ch.Text = "小間距"
1269 1270
         Me.小間距_ch.UseVisualStyleBackColor = True
@@ -1296,6 +1297,7 @@ Partial Class 訂單控制表
1296 1297
         Me.Panel2.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
1297 1298
             Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
1298 1299
         Me.Panel2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
1300
+        Me.Panel2.Controls.Add(Me.批量刷銷售_bt)
1299 1301
         Me.Panel2.Controls.Add(Me.查詢_bt)
1300 1302
         Me.Panel2.Controls.Add(Me.物料關鍵字_tb)
1301 1303
         Me.Panel2.Controls.Add(Me.Label15)
@@ -1344,7 +1346,7 @@ Partial Class 訂單控制表
1344 1346
         Me.Label15.ImeMode = System.Windows.Forms.ImeMode.NoControl
1345 1347
         Me.Label15.Location = New System.Drawing.Point(0, 31)
1346 1348
         Me.Label15.Name = "Label15"
1347
-        Me.Label15.Size = New System.Drawing.Size(68, 16)
1349
+        Me.Label15.Size = New System.Drawing.Size(67, 16)
1348 1350
         Me.Label15.TabIndex = 1339
1349 1351
         Me.Label15.Text = "物料關鍵字"
1350 1352
         '
@@ -1393,7 +1395,7 @@ Partial Class 訂單控制表
1393 1395
         Me.字體大小調整_lb.ForeColor = System.Drawing.Color.Red
1394 1396
         Me.字體大小調整_lb.Location = New System.Drawing.Point(653, 127)
1395 1397
         Me.字體大小調整_lb.Name = "字體大小調整_lb"
1396
-        Me.字體大小調整_lb.Size = New System.Drawing.Size(56, 16)
1398
+        Me.字體大小調整_lb.Size = New System.Drawing.Size(55, 16)
1397 1399
         Me.字體大小調整_lb.TabIndex = 1341
1398 1400
         Me.字體大小調整_lb.Text = "字體調整"
1399 1401
         '
@@ -1429,6 +1431,15 @@ Partial Class 訂單控制表
1429 1431
         Me.隱藏_bt.Text = "隱藏" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "控件"
1430 1432
         Me.隱藏_bt.UseVisualStyleBackColor = True
1431 1433
         '
1434
+        '批量刷銷售_bt
1435
+        '
1436
+        Me.批量刷銷售_bt.Location = New System.Drawing.Point(473, 26)
1437
+        Me.批量刷銷售_bt.Name = "批量刷銷售_bt"
1438
+        Me.批量刷銷售_bt.Size = New System.Drawing.Size(81, 25)
1439
+        Me.批量刷銷售_bt.TabIndex = 1342
1440
+        Me.批量刷銷售_bt.Text = "批量刷銷售"
1441
+        Me.批量刷銷售_bt.UseVisualStyleBackColor = True
1442
+        '
1432 1443
         '訂單控制表
1433 1444
         '
1434 1445
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
@@ -1570,4 +1581,5 @@ Partial Class 訂單控制表
1570 1581
     Friend WithEvents 物料關鍵字_tb As TextBox
1571 1582
     Friend WithEvents Label15 As Label
1572 1583
     Friend WithEvents 查詢_bt As Button
1584
+    Friend WithEvents 批量刷銷售_bt As Button
1573 1585
 End Class

+ 26
- 2
YD-ERP-SYS/業務系統管理/訂單控制表.vb Просмотреть файл

@@ -19,11 +19,15 @@ Public Class 訂單控制表
19 19
             銷售單據_dgv.Columns(8).Visible = False : 銷售單據_dgv.Columns(9).FillWeight = 100 : 銷售單據_dgv.Columns(10).Visible = False : 銷售單據_dgv.Columns(11).Visible = False
20 20
             銷售單據_dgv.Columns(12).Visible = False : 銷售單據_dgv.Columns(13).Visible = False : 銷售單據_dgv.Columns(14).Visible = False : 銷售單據_dgv.Columns(15).Visible = False
21 21
             銷售單據_dgv.Columns(16).Visible = False : 銷售單據_dgv.Columns(17).Visible = False : 銷售單據_dgv.Columns(18).Visible = False : 銷售單據_dgv.Columns(19).FillWeight = 65
22
-            銷售單據_dgv.Columns(20).Visible = False : 銷售單據_dgv.Columns(21).FillWeight = 65
22
+            銷售單據_dgv.Columns(20).Visible = False : 銷售單據_dgv.Columns(21).FillWeight = 65 : 銷售單據_dgv.Columns("銷貨總額").FillWeight = 80
23 23
             銷售單據_dgv.Columns("未收額額").DefaultCellStyle.Format = "#,##0"
24 24
             銷售單據_dgv.Columns("未收額額").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter
25 25
             銷售單據_dgv.Columns("未收額額").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
26
+            銷售單據_dgv.Columns("銷貨總額").DefaultCellStyle.Format = "#,##0"
27
+            銷售單據_dgv.Columns("銷貨總額").DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter
28
+            銷售單據_dgv.Columns("銷貨總額").HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
26 29
             For i As Integer = 0 To 銷售單據_dgv.Rows.Count - 1
30
+                If IsDBNull(銷售單據_dgv("銷貨總額", i).Value) = True Then : 銷售單據_dgv("銷貨總額", i).Value = "0" : End If
27 31
                 If IsDBNull(銷售單據_dgv("轉業績日期", i).Value) Then : 銷售單據_dgv("轉業績日期", i).Value = "" : End If
28 32
                 If IsDBNull(銷售單據_dgv("已結單", i).Value) Then : 銷售單據_dgv("已結單", i).Value = False : Else : 銷售單據_dgv("已結單", i).Value = False : End If
29 33
                 If 銷售單據_dgv("轉業績日期", i).Value.ToString <> "" Then : 銷售單據_dgv("已結單", i).Value = True : End If
@@ -356,7 +360,7 @@ Public Class 訂單控制表
356 360
         Try
357 361
             If 銷售單據_dgv.SelectedCells.Count = 1 Then : 已超出 = False : End If
358 362
             If 銷售單據_dgv.SelectedCells.Count > 0 Then
359
-                If 銷售單據_dgv.SelectedCells(0).ColumnIndex = 9 Then
363
+                If 銷售單據_dgv.SelectedCells(0).ColumnIndex = 9 Or 銷售單據_dgv.SelectedCells(0).ColumnIndex = 22 Then
360 364
                     If 已超出 = False Then
361 365
                         Dim x As Double = 0
362 366
                         For i As Integer = 0 To 銷售單據_dgv.SelectedCells.Count - 1
@@ -537,11 +541,31 @@ Public Class 訂單控制表
537 541
                 Set_清單6() : Set_清單7()
538 542
                 PA = 單號_tb.Text : SQL_銷售單號串聯倉儲表取得倉儲單號()
539 543
                 If dr.Read() Then : 調庫單號_tb.Text = dr("執行單號") : Else : 調庫單號_tb.Text = "" : End If
544
+                PA1 = 流水號_tb.Text : NU5 = 銷售合計_tb.Text
545
+                SQL_銷貨總額_修改()
540 546
             End If
541 547
         Catch ex As Exception
542 548
             MsgBox(ex.Message)
543 549
         End Try
544 550
     End Sub
551
+    Private Sub 批量刷銷售_bt_Click(sender As Object, e As EventArgs) Handles 批量刷銷售_bt.Click
552
+        資料數 = 銷售單據_dgv.Rows.Count : MyModule1.進度條()
553
+        For I As Integer = 0 To 銷售單據_dgv.Rows.Count - 1 : MyModule1.進度條()
554
+            稅金存檔 = 銷售單據_dgv.Rows(I).Cells("稅金").Value
555
+            流水號_tb.Text = 銷售單據_dgv.Rows(I).Cells("流水號").Value : 單號_tb.Text = 銷售單據_dgv.Rows(I).Cells("單號").Value
556
+            開單日期_dtp.Value = 銷售單據_dgv.Rows(I).Cells("開單日期").Value : 客戶編號_tb.Text = 銷售單據_dgv.Rows(I).Cells("客戶編號").Value
557
+            交貨日期_dtp.Value = 銷售單據_dgv.Rows(I).Cells("交貨日期").Value : 含稅_ch.Checked = 銷售單據_dgv.Rows(I).Cells("含稅").Value
558
+            送貨地點_cb_下拉表單資料載入() : 送貨地點_cb.Text = 銷售單據_dgv.Rows(I).Cells("送貨地點").Value.ToString
559
+            運費 = 銷售單據_dgv.Rows(I).Cells("運費").Value
560
+            '業務_cb.Text = Strings.Left(銷售單據_dgv.Rows(e.RowIndex).Cells("單號").Value, 1)
561
+            Set_清單4() : Set_清單5()
562
+            Set_清單6() : Set_清單7()
563
+            PA = 單號_tb.Text : SQL_銷售單號串聯倉儲表取得倉儲單號()
564
+            If dr.Read() Then : 調庫單號_tb.Text = dr("執行單號") : Else : 調庫單號_tb.Text = "" : End If
565
+            PA1 = 流水號_tb.Text : NU5 = 銷售合計_tb.Text
566
+            SQL_銷貨總額_修改()
567
+        Next : YD_ERP_SYS.ToolStripProgressBar1.Value = 0 : 最終數 = 0
568
+    End Sub
545 569
     Private Sub 窄間距_ch_CheckedChanged(sender As Object, e As EventArgs) Handles 小間距_ch.Click
546 570
         小間距_ch.Checked = True : 中間距_ch.Checked = False : 大間距_ch.Checked = False
547 571
         Set_清單4()

+ 64
- 50
YD-ERP-SYS/財務系統管理/業績獎金彙總表.Designer.vb Просмотреть файл

@@ -22,15 +22,15 @@ Partial Class 業績獎金彙總表
22 22
     '請勿使用程式碼編輯器進行修改。
23 23
     <System.Diagnostics.DebuggerStepThrough()> _
24 24
     Private Sub InitializeComponent()
25
-        Dim DataGridViewCellStyle10 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26
-        Dim DataGridViewCellStyle11 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27
-        Dim DataGridViewCellStyle12 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
28
-        Dim DataGridViewCellStyle13 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
29
-        Dim DataGridViewCellStyle14 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
30
-        Dim DataGridViewCellStyle15 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
31
-        Dim DataGridViewCellStyle16 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
32
-        Dim DataGridViewCellStyle17 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
33
-        Dim DataGridViewCellStyle18 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
25
+        Dim DataGridViewCellStyle1 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
26
+        Dim DataGridViewCellStyle2 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
27
+        Dim DataGridViewCellStyle3 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
28
+        Dim DataGridViewCellStyle4 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
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()
32
+        Dim DataGridViewCellStyle8 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
33
+        Dim DataGridViewCellStyle9 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
34 34
         Me.彙總1_dgv = New System.Windows.Forms.DataGridView()
35 35
         Me.字體大小調整_lb = New System.Windows.Forms.Label()
36 36
         Me.字體_NUD = New System.Windows.Forms.NumericUpDown()
@@ -64,6 +64,7 @@ Partial Class 業績獎金彙總表
64 64
         Me.列印成EXCEL_bt = New System.Windows.Forms.Button()
65 65
         Me.未審核_lb = New System.Windows.Forms.Label()
66 66
         Me.業務_cb = New System.Windows.Forms.ComboBox()
67
+        Me.重新計算_bt = New System.Windows.Forms.Button()
67 68
         CType(Me.彙總1_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
68 69
         CType(Me.字體_NUD, System.ComponentModel.ISupportInitialize).BeginInit()
69 70
         CType(Me.衍生運費_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
@@ -83,8 +84,8 @@ Partial Class 業績獎金彙總表
83 84
         '
84 85
         '彙總1_dgv
85 86
         '
86
-        DataGridViewCellStyle10.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
87
-        Me.彙總1_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle10
87
+        DataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
88
+        Me.彙總1_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle1
88 89
         Me.彙總1_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
89 90
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
90 91
         Me.彙總1_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
@@ -106,7 +107,7 @@ Partial Class 業績獎金彙總表
106 107
         Me.字體大小調整_lb.ImeMode = System.Windows.Forms.ImeMode.NoControl
107 108
         Me.字體大小調整_lb.Location = New System.Drawing.Point(1225, 7)
108 109
         Me.字體大小調整_lb.Name = "字體大小調整_lb"
109
-        Me.字體大小調整_lb.Size = New System.Drawing.Size(56, 16)
110
+        Me.字體大小調整_lb.Size = New System.Drawing.Size(55, 16)
110 111
         Me.字體大小調整_lb.TabIndex = 1501
111 112
         Me.字體大小調整_lb.Text = "字體調整"
112 113
         '
@@ -125,8 +126,8 @@ Partial Class 業績獎金彙總表
125 126
         '
126 127
         '衍生運費_dgv
127 128
         '
128
-        DataGridViewCellStyle11.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
129
-        Me.衍生運費_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle11
129
+        DataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
130
+        Me.衍生運費_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle2
130 131
         Me.衍生運費_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
131 132
         Me.衍生運費_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
132 133
         Me.衍生運費_dgv.Location = New System.Drawing.Point(470, 33)
@@ -140,8 +141,8 @@ Partial Class 業績獎金彙總表
140 141
         '
141 142
         '其他_dgv
142 143
         '
143
-        DataGridViewCellStyle12.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
144
-        Me.其他_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle12
144
+        DataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
145
+        Me.其他_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle3
145 146
         Me.其他_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
146 147
         Me.其他_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
147 148
         Me.其他_dgv.Location = New System.Drawing.Point(1177, 33)
@@ -155,8 +156,8 @@ Partial Class 業績獎金彙總表
155 156
         '
156 157
         '外車車資_dgv
157 158
         '
158
-        DataGridViewCellStyle13.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
159
-        Me.外車車資_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle13
159
+        DataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
160
+        Me.外車車資_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle4
160 161
         Me.外車車資_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
161 162
         Me.外車車資_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
162 163
         Me.外車車資_dgv.Location = New System.Drawing.Point(627, 33)
@@ -170,8 +171,8 @@ Partial Class 業績獎金彙總表
170 171
         '
171 172
         '料號一_dgv
172 173
         '
173
-        DataGridViewCellStyle14.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
174
-        Me.料號一_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle14
174
+        DataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
175
+        Me.料號一_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle5
175 176
         Me.料號一_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
176 177
         Me.料號一_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
177 178
         Me.料號一_dgv.Location = New System.Drawing.Point(992, 33)
@@ -185,8 +186,8 @@ Partial Class 業績獎金彙總表
185 186
         '
186 187
         '備註運費_dgv
187 188
         '
188
-        DataGridViewCellStyle15.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
189
-        Me.備註運費_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle15
189
+        DataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
190
+        Me.備註運費_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle6
190 191
         Me.備註運費_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
191 192
         Me.備註運費_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
192 193
         Me.備註運費_dgv.Location = New System.Drawing.Point(835, 33)
@@ -253,14 +254,14 @@ Partial Class 業績獎金彙總表
253 254
         Me.Label1.AutoSize = True
254 255
         Me.Label1.Location = New System.Drawing.Point(99, 7)
255 256
         Me.Label1.Name = "Label1"
256
-        Me.Label1.Size = New System.Drawing.Size(20, 16)
257
+        Me.Label1.Size = New System.Drawing.Size(19, 16)
257 258
         Me.Label1.TabIndex = 1512
258 259
         Me.Label1.Text = "到"
259 260
         '
260 261
         '獎金彙總_dgv
261 262
         '
262
-        DataGridViewCellStyle16.BackColor = System.Drawing.Color.Lavender
263
-        Me.獎金彙總_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle16
263
+        DataGridViewCellStyle7.BackColor = System.Drawing.Color.Lavender
264
+        Me.獎金彙總_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle7
264 265
         Me.獎金彙總_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
265 266
             Or System.Windows.Forms.AnchorStyles.Left) _
266 267
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
@@ -278,7 +279,7 @@ Partial Class 業績獎金彙總表
278 279
         '
279 280
         Me.彙總表_bt.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
280 281
         Me.彙總表_bt.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
281
-        Me.彙總表_bt.Location = New System.Drawing.Point(341, 4)
282
+        Me.彙總表_bt.Location = New System.Drawing.Point(446, 4)
282 283
         Me.彙總表_bt.Name = "彙總表_bt"
283 284
         Me.彙總表_bt.Size = New System.Drawing.Size(57, 23)
284 285
         Me.彙總表_bt.TabIndex = 1514
@@ -289,7 +290,7 @@ Partial Class 業績獎金彙總表
289 290
         '
290 291
         Me.明細表_bt.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
291 292
         Me.明細表_bt.ForeColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
292
-        Me.明細表_bt.Location = New System.Drawing.Point(400, 4)
293
+        Me.明細表_bt.Location = New System.Drawing.Point(505, 4)
293 294
         Me.明細表_bt.Name = "明細表_bt"
294 295
         Me.明細表_bt.Size = New System.Drawing.Size(57, 23)
295 296
         Me.明細表_bt.TabIndex = 1515
@@ -298,8 +299,8 @@ Partial Class 業績獎金彙總表
298 299
         '
299 300
         '獎金明細表_dgv
300 301
         '
301
-        DataGridViewCellStyle17.BackColor = System.Drawing.Color.LavenderBlush
302
-        Me.獎金明細表_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle17
302
+        DataGridViewCellStyle8.BackColor = System.Drawing.Color.LavenderBlush
303
+        Me.獎金明細表_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle8
303 304
         Me.獎金明細表_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
304 305
             Or System.Windows.Forms.AnchorStyles.Left) _
305 306
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
@@ -315,8 +316,8 @@ Partial Class 業績獎金彙總表
315 316
         '
316 317
         '過度表_dgv
317 318
         '
318
-        DataGridViewCellStyle18.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
319
-        Me.過度表_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle18
319
+        DataGridViewCellStyle9.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer), CType(CType(192, Byte), Integer))
320
+        Me.過度表_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle9
320 321
         Me.過度表_dgv.Anchor = CType(((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _
321 322
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
322 323
         Me.過度表_dgv.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
@@ -335,7 +336,7 @@ Partial Class 業績獎金彙總表
335 336
         Me.Label2.AutoSize = True
336 337
         Me.Label2.Location = New System.Drawing.Point(194, 578)
337 338
         Me.Label2.Name = "Label2"
338
-        Me.Label2.Size = New System.Drawing.Size(112, 16)
339
+        Me.Label2.Size = New System.Drawing.Size(111, 16)
339 340
         Me.Label2.TabIndex = 1518
340 341
         Me.Label2.Text = "扣運費(上個月已結)"
341 342
         '
@@ -345,7 +346,7 @@ Partial Class 業績獎金彙總表
345 346
         Me.Label3.AutoSize = True
346 347
         Me.Label3.Location = New System.Drawing.Point(414, 578)
347 348
         Me.Label3.Name = "Label3"
348
-        Me.Label3.Size = New System.Drawing.Size(80, 16)
349
+        Me.Label3.Size = New System.Drawing.Size(79, 16)
349 350
         Me.Label3.TabIndex = 1520
350 351
         Me.Label3.Text = "已出貨未收款"
351 352
         '
@@ -355,7 +356,7 @@ Partial Class 業績獎金彙總表
355 356
         Me.Label4.AutoSize = True
356 357
         Me.Label4.Location = New System.Drawing.Point(601, 578)
357 358
         Me.Label4.Name = "Label4"
358
-        Me.Label4.Size = New System.Drawing.Size(44, 16)
359
+        Me.Label4.Size = New System.Drawing.Size(43, 16)
359 360
         Me.Label4.TabIndex = 1522
360 361
         Me.Label4.Text = "代運費"
361 362
         '
@@ -365,7 +366,7 @@ Partial Class 業績獎金彙總表
365 366
         Me.Label5.AutoSize = True
366 367
         Me.Label5.Location = New System.Drawing.Point(7, 578)
367 368
         Me.Label5.Name = "Label5"
368
-        Me.Label5.Size = New System.Drawing.Size(80, 16)
369
+        Me.Label5.Size = New System.Drawing.Size(79, 16)
369 370
         Me.Label5.TabIndex = 1524
370 371
         Me.Label5.Text = "獎金合計運費"
371 372
         '
@@ -373,8 +374,8 @@ Partial Class 業績獎金彙總表
373 374
         '
374 375
         Me.NUD1.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
375 376
         Me.NUD1.Location = New System.Drawing.Point(88, 575)
376
-        Me.NUD1.Maximum = New Decimal(New Integer() {1000000, 0, 0, 0})
377
-        Me.NUD1.Minimum = New Decimal(New Integer() {1000000, 0, 0, -2147483648})
377
+        Me.NUD1.Maximum = New Decimal(New Integer() {100000000, 0, 0, 0})
378
+        Me.NUD1.Minimum = New Decimal(New Integer() {100000000, 0, 0, -2147483648})
378 379
         Me.NUD1.Name = "NUD1"
379 380
         Me.NUD1.Size = New System.Drawing.Size(100, 23)
380 381
         Me.NUD1.TabIndex = 1526
@@ -384,8 +385,8 @@ Partial Class 業績獎金彙總表
384 385
         '
385 386
         Me.NUD2.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
386 387
         Me.NUD2.Location = New System.Drawing.Point(306, 575)
387
-        Me.NUD2.Maximum = New Decimal(New Integer() {1000000, 0, 0, 0})
388
-        Me.NUD2.Minimum = New Decimal(New Integer() {1000000, 0, 0, -2147483648})
388
+        Me.NUD2.Maximum = New Decimal(New Integer() {100000000, 0, 0, 0})
389
+        Me.NUD2.Minimum = New Decimal(New Integer() {100000000, 0, 0, -2147483648})
389 390
         Me.NUD2.Name = "NUD2"
390 391
         Me.NUD2.Size = New System.Drawing.Size(100, 23)
391 392
         Me.NUD2.TabIndex = 1527
@@ -395,8 +396,8 @@ Partial Class 業績獎金彙總表
395 396
         '
396 397
         Me.NUD3.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
397 398
         Me.NUD3.Location = New System.Drawing.Point(495, 575)
398
-        Me.NUD3.Maximum = New Decimal(New Integer() {1000000, 0, 0, 0})
399
-        Me.NUD3.Minimum = New Decimal(New Integer() {1000000, 0, 0, -2147483648})
399
+        Me.NUD3.Maximum = New Decimal(New Integer() {100000000, 0, 0, 0})
400
+        Me.NUD3.Minimum = New Decimal(New Integer() {100000000, 0, 0, -2147483648})
400 401
         Me.NUD3.Name = "NUD3"
401 402
         Me.NUD3.Size = New System.Drawing.Size(100, 23)
402 403
         Me.NUD3.TabIndex = 1528
@@ -406,8 +407,8 @@ Partial Class 業績獎金彙總表
406 407
         '
407 408
         Me.NUD4.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
408 409
         Me.NUD4.Location = New System.Drawing.Point(651, 575)
409
-        Me.NUD4.Maximum = New Decimal(New Integer() {1000000, 0, 0, 0})
410
-        Me.NUD4.Minimum = New Decimal(New Integer() {1000000, 0, 0, -2147483648})
410
+        Me.NUD4.Maximum = New Decimal(New Integer() {100000000, 0, 0, 0})
411
+        Me.NUD4.Minimum = New Decimal(New Integer() {100000000, 0, 0, -2147483648})
411 412
         Me.NUD4.Name = "NUD4"
412 413
         Me.NUD4.Size = New System.Drawing.Size(100, 23)
413 414
         Me.NUD4.TabIndex = 1529
@@ -417,8 +418,8 @@ Partial Class 業績獎金彙總表
417 418
         '
418 419
         Me.NUD5.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
419 420
         Me.NUD5.Location = New System.Drawing.Point(814, 574)
420
-        Me.NUD5.Maximum = New Decimal(New Integer() {1000000, 0, 0, 0})
421
-        Me.NUD5.Minimum = New Decimal(New Integer() {1000000, 0, 0, -2147483648})
421
+        Me.NUD5.Maximum = New Decimal(New Integer() {100000000, 0, 0, 0})
422
+        Me.NUD5.Minimum = New Decimal(New Integer() {100000000, 0, 0, -2147483648})
422 423
         Me.NUD5.Name = "NUD5"
423 424
         Me.NUD5.Size = New System.Drawing.Size(100, 23)
424 425
         Me.NUD5.TabIndex = 1531
@@ -430,7 +431,7 @@ Partial Class 業績獎金彙總表
430 431
         Me.Label6.AutoSize = True
431 432
         Me.Label6.Location = New System.Drawing.Point(757, 577)
432 433
         Me.Label6.Name = "Label6"
433
-        Me.Label6.Size = New System.Drawing.Size(56, 16)
434
+        Me.Label6.Size = New System.Drawing.Size(55, 16)
434 435
         Me.Label6.TabIndex = 1530
435 436
         Me.Label6.Text = "運費總計"
436 437
         '
@@ -450,7 +451,7 @@ Partial Class 業績獎金彙總表
450 451
         '
451 452
         Me.列印成EXCEL_bt.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
452 453
         Me.列印成EXCEL_bt.ForeColor = System.Drawing.Color.Green
453
-        Me.列印成EXCEL_bt.Location = New System.Drawing.Point(466, 4)
454
+        Me.列印成EXCEL_bt.Location = New System.Drawing.Point(571, 4)
454 455
         Me.列印成EXCEL_bt.Name = "列印成EXCEL_bt"
455 456
         Me.列印成EXCEL_bt.Size = New System.Drawing.Size(107, 23)
456 457
         Me.列印成EXCEL_bt.TabIndex = 1533
@@ -460,9 +461,9 @@ Partial Class 業績獎金彙總表
460 461
         '未審核_lb
461 462
         '
462 463
         Me.未審核_lb.AutoSize = True
463
-        Me.未審核_lb.Location = New System.Drawing.Point(579, 7)
464
+        Me.未審核_lb.Location = New System.Drawing.Point(684, 7)
464 465
         Me.未審核_lb.Name = "未審核_lb"
465
-        Me.未審核_lb.Size = New System.Drawing.Size(56, 16)
466
+        Me.未審核_lb.Size = New System.Drawing.Size(55, 16)
466 467
         Me.未審核_lb.TabIndex = 1534
467 468
         Me.未審核_lb.Text = "業務編號"
468 469
         '
@@ -471,16 +472,28 @@ Partial Class 業績獎金彙總表
471 472
         Me.業務_cb.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
472 473
         Me.業務_cb.FormattingEnabled = True
473 474
         Me.業務_cb.Items.AddRange(New Object() {"", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "B", "Y"})
474
-        Me.業務_cb.Location = New System.Drawing.Point(635, 2)
475
+        Me.業務_cb.Location = New System.Drawing.Point(740, 2)
475 476
         Me.業務_cb.Name = "業務_cb"
476 477
         Me.業務_cb.Size = New System.Drawing.Size(46, 24)
477 478
         Me.業務_cb.TabIndex = 1535
478 479
         '
480
+        '重新計算_bt
481
+        '
482
+        Me.重新計算_bt.Font = New System.Drawing.Font("微軟正黑體", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(136, Byte))
483
+        Me.重新計算_bt.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
484
+        Me.重新計算_bt.Location = New System.Drawing.Point(333, 4)
485
+        Me.重新計算_bt.Name = "重新計算_bt"
486
+        Me.重新計算_bt.Size = New System.Drawing.Size(65, 23)
487
+        Me.重新計算_bt.TabIndex = 1536
488
+        Me.重新計算_bt.Text = "重新計算"
489
+        Me.重新計算_bt.UseVisualStyleBackColor = True
490
+        '
479 491
         '業績獎金彙總表
480 492
         '
481 493
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
482 494
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
483 495
         Me.ClientSize = New System.Drawing.Size(1338, 603)
496
+        Me.Controls.Add(Me.重新計算_bt)
484 497
         Me.Controls.Add(Me.未審核_lb)
485 498
         Me.Controls.Add(Me.業務_cb)
486 499
         Me.Controls.Add(Me.列印成EXCEL_bt)
@@ -571,4 +584,5 @@ Partial Class 業績獎金彙總表
571 584
     Friend WithEvents 列印成EXCEL_bt As Button
572 585
     Friend WithEvents 未審核_lb As Label
573 586
     Friend WithEvents 業務_cb As ComboBox
587
+    Friend WithEvents 重新計算_bt As Button
574 588
 End Class

+ 3
- 0
YD-ERP-SYS/財務系統管理/業績獎金彙總表.vb Просмотреть файл

@@ -526,6 +526,9 @@ Public Class 業績獎金彙總表
526 526
     Private Sub 業務_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 業務_cb.SelectedIndexChanged
527 527
         計算()
528 528
     End Sub
529
+    Private Sub 重新計算_bt_Click(sender As Object, e As EventArgs) Handles 重新計算_bt.Click
530
+        日期格式() : 計算()
531
+    End Sub
529 532
     Private Sub 上個月_bt_Click(sender As Object, e As EventArgs) Handles 上個月_bt.Click
530 533
         中間日期_dtp.Value = 中間日期_dtp.Value.AddMonths(-1)
531 534
         開始日期_dtp.Value = 中間日期_dtp.Value

Загрузка…
Отмена
Сохранить