B70340 3 лет назад
Родитель
Сommit
925d5a4659

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


+ 10
- 0
GA-ERP-SYS/Module/SQL_子系統管理.vb Просмотреть файл

1237
     Friend Sub SQL_查詢9()
1237
     Friend Sub SQL_查詢9()
1238
         ConnOpen_子SQL() : SQL1 = "SELECT 所得戶 FROM 電板客戶_所得 WHERE (所得戶 LIKE N'" & 電板客戶名稱編輯器.客戶_tb.Text & "')" : CmdSet_For_DGV()
1238
         ConnOpen_子SQL() : SQL1 = "SELECT 所得戶 FROM 電板客戶_所得 WHERE (所得戶 LIKE N'" & 電板客戶名稱編輯器.客戶_tb.Text & "')" : CmdSet_For_DGV()
1239
     End Sub
1239
     End Sub
1240
+    '--------------------------流水帳備用網址修正---------------------------------------------------------------------------------------------------------------------------------------------------
1241
+    Friend Sub SQL_網址修正()
1242
+        ConnOpen_子SQL()
1243
+        SQL1 = "SELECT     流水帳.網址, 商客基本資料表.網址 AS 主網址  FROM  流水帳 INNER JOIN 商客基本資料表 ON 流水帳.網址 = 商客基本資料表.備用網址 AND 流水帳.網址 <> 商客基本資料表.網址
1244
+                GROUP BY   流水帳.網址, 商客基本資料表.網址"
1245
+        CmdSet_For_DGV()
1246
+    End Sub
1247
+    Friend Sub SQL_網址修正執行()
1248
+        ConnOpen_子SQL() : SQL1 = "UPDATE 流水帳 SET 網址 = N'" & PA2 & "' WHERE (網址 LIKE N'" & PA1 & "')" : CmdSet_For_dr()
1249
+    End Sub
1240
 End Module
1250
 End Module

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

7
     Public 版本號, Target, Target1, Target2, FTP帳號, FTP密碼, FTP物理位置, 登入客戶, 登入資料庫, 業務名稱, AA(99), QA1, QA2, QA3, QA4, 到期 As String
7
     Public 版本號, Target, Target1, Target2, FTP帳號, FTP密碼, FTP物理位置, 登入客戶, 登入資料庫, 業務名稱, AA(99), QA1, QA2, QA3, QA4, 到期 As String
8
     Public BB(99), CC(99), 登入判斷, IP印尼, IP台灣 As Boolean
8
     Public BB(99), CC(99), 登入判斷, IP印尼, IP台灣 As Boolean
9
     '----系統版本-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
9
     '----系統版本-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
10
-    Public 版本 As String = "2022050501"
10
+    Public 版本 As String = "2022052501"
11
     '----系統用全域變數-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
11
     '----系統用全域變數-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
12
     '----系統閒置-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
12
     '----系統閒置-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
13
     Public 判斷重登, 內外網, 重登確認, 主頁開啟, 無KEY登入 As Boolean
13
     Public 判斷重登, 內外網, 重登確認, 主頁開啟, 無KEY登入 As Boolean

+ 0
- 3
GA-ERP-SYS/bin/Debug/000.csv Просмотреть файл

1
-8888,
2
-KU08,
3
-9f681847806e653b120a5a8b6c4d997a0d27fe16d194f0fbc7d36356e6d5c1d88b4bc4831819c7f4e3f727a933dc15e2a98b7172700ee1410997caa35eef6ffc92db46a87e91a379eb9295985493e83bf8fe2da16e93e6bacd8910e5bd0a432aa40e1f6932499a55ff755cdcbc47bdf43f8b58cace48fe52d26811895c87d2e6781a187f2e03fb16f9956679472b9f0238b6b9f19e6eae5cbc4b40df3e0b559e1d058f139a55121e992c21fc957c41974ba32ca75abcbfae2bfc4b6c0e1f0660dede57c0250be4659630063ee5de1ebdc30749d94c93dee8685ada53c3d63b002a23a95aba5d4ef32b353ea2d1ddcbb681202ab3f526ffd0b9e8ddb36c0fbd807fd653857644a82319de20e2b16deaa4fcd489ad91ca53c0ca3a572c1e6530aefe8694877b299d14eb5884a6d3862800fa382a0b4ef996dd988be409ea75fc74fabc3b4b1fd07aa40805481c4d7f52db08d58463790a5e5071a428441b7648b7f05b4e9e702e1b4f765aca86d1b5d8d4c0f08e8513cea63a2c985108895e7407301e8c4a7b51d5da9076d4ee24ee2edb99789cfb5043d4dd4959484ae869be261de7bd220ce2e9de22d050eb5c303299522ddf85cbe4ab05ef5ca303858533b906d0ec4593324a960540d29097372b4cda04ecd613cdb9928e5d23b645d2e3f4eda09fc566753fd25589f479c50d9d8780304f510c0a80f3ecb2b63f9c417a79,

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


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


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


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


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


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


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


Двоичные данные
GA-ERP-SYS/obj/Debug/GA_ERP_SYS.系統公告.resources Просмотреть файл


+ 3
- 3
GA-ERP-SYS/基本資料管理/電板基本資料.vb Просмотреть файл

586
             層級_cb.Items.Clear() : 層級_cb.Items.Add("管理/會員")
586
             層級_cb.Items.Clear() : 層級_cb.Items.Add("管理/會員")
587
             備用_cb.Items.Clear() : 備用_cb.Items.Add("wa") : 備用_cb.Items.Add("wb") : 備用_cb.Items.Add("wc")
587
             備用_cb.Items.Clear() : 備用_cb.Items.Add("wa") : 備用_cb.Items.Add("wb") : 備用_cb.Items.Add("wc")
588
         End If
588
         End If
589
-        層級_cb.SelectedIndex = 0 : 備用_cb.SelectedIndex = 0 : Set_商品清單()
589
+        層級_cb.SelectedIndex = 0 : 備用_cb.SelectedIndex = 0 : PA16 = "" : Set_商品清單()
590
     End Sub
590
     End Sub
591
     Private Sub 商品2_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 商品2_cb.SelectedIndexChanged
591
     Private Sub 商品2_cb_SelectedIndexChanged(sender As Object, e As EventArgs) Handles 商品2_cb.SelectedIndexChanged
592
         PA15 = 商品2_cb.Text : SQL_商客清單讀取1()
592
         PA15 = 商品2_cb.Text : SQL_商客清單讀取1()
672
                         If dr.Read() Then
672
                         If dr.Read() Then
673
                             MsgBox("網址不可重複,請重新確認!!!")
673
                             MsgBox("網址不可重複,請重新確認!!!")
674
                         Else
674
                         Else
675
-                            SQL_商品寫入() : PA1 = "" : PA = "" : Set_商品清單() : Set_商品下拉讀取() : Set_客戶下清單() : MsgBox("新增完成!!")
675
+                            SQL_商品寫入() : PA1 = "" : PA = "" : PA16 = "" : Set_商品清單() : Set_商品下拉讀取() : Set_客戶下清單() : MsgBox("新增完成!!")
676
                             新增1_bt.Enabled = True : 商品_tb.Enabled = False : 網址2_tb.Enabled = False : 編號_tb.Enabled = False : 商品_dgv.Enabled = True : 備用網址_tb.Enabled = False
676
                             新增1_bt.Enabled = True : 商品_tb.Enabled = False : 網址2_tb.Enabled = False : 編號_tb.Enabled = False : 商品_dgv.Enabled = True : 備用網址_tb.Enabled = False
677
                             系統_cb.Enabled = True
677
                             系統_cb.Enabled = True
678
                         End If
678
                         End If
680
                 End If
680
                 End If
681
             ElseIf 修正1_bt.Enabled = False Then
681
             ElseIf 修正1_bt.Enabled = False Then
682
                 SQL_商品修改() : SQL_同步修正網址1() : SQL_同步修正網址2() : SQL_同步修正網址3() : SQL_同步修正網址4()
682
                 SQL_商品修改() : SQL_同步修正網址1() : SQL_同步修正網址2() : SQL_同步修正網址3() : SQL_同步修正網址4()
683
-                PA1 = "" : PA = "" : Set_商品清單() : Set_商品下拉讀取() : Set_客戶下清單() : Set_商客清單() : MsgBox("儲存完成!!")
683
+                PA1 = "" : PA = "" : PA16 = "" : Set_商品清單() : Set_商品下拉讀取() : Set_客戶下清單() : Set_商客清單() : MsgBox("儲存完成!!")
684
                 修正1_bt.Enabled = True : 商品_tb.Enabled = False : 網址2_tb.Enabled = False : 編號_tb.Enabled = False : 商品_dgv.Enabled = True : 備用網址_tb.Enabled = False
684
                 修正1_bt.Enabled = True : 商品_tb.Enabled = False : 網址2_tb.Enabled = False : 編號_tb.Enabled = False : 商品_dgv.Enabled = True : 備用網址_tb.Enabled = False
685
                 系統_cb.Enabled = True
685
                 系統_cb.Enabled = True
686
             Else
686
             Else

+ 23
- 0
GA-ERP-SYS/報表系統管理/帳務彙總計算表.Designer.vb Просмотреть файл

78
         Dim DataGridViewCellStyle53 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
78
         Dim DataGridViewCellStyle53 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
79
         Dim DataGridViewCellStyle54 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
79
         Dim DataGridViewCellStyle54 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
80
         Dim DataGridViewCellStyle55 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
80
         Dim DataGridViewCellStyle55 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
81
+        Dim DataGridViewCellStyle56 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
81
         Me.流水帳_dgv = New System.Windows.Forms.DataGridView()
82
         Me.流水帳_dgv = New System.Windows.Forms.DataGridView()
82
         Me.資料_cb = New System.Windows.Forms.ComboBox()
83
         Me.資料_cb = New System.Windows.Forms.ComboBox()
83
         Me.Label1 = New System.Windows.Forms.Label()
84
         Me.Label1 = New System.Windows.Forms.Label()
219
         Me.核帳0_tb = New System.Windows.Forms.TextBox()
220
         Me.核帳0_tb = New System.Windows.Forms.TextBox()
220
         Me.Label6 = New System.Windows.Forms.Label()
221
         Me.Label6 = New System.Windows.Forms.Label()
221
         Me.PictureBox1 = New System.Windows.Forms.PictureBox()
222
         Me.PictureBox1 = New System.Windows.Forms.PictureBox()
223
+        Me.網址修正_dgv = New System.Windows.Forms.DataGridView()
222
         CType(Me.流水帳_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
224
         CType(Me.流水帳_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
223
         CType(Me.彙總_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
225
         CType(Me.彙總_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
224
         CType(Me.彙總1_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
226
         CType(Me.彙總1_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
272
         CType(Me.紙帳導入_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
274
         CType(Me.紙帳導入_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
273
         CType(Me.電板所得_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
275
         CType(Me.電板所得_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
274
         CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).BeginInit()
276
         CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).BeginInit()
277
+        CType(Me.網址修正_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
275
         Me.SuspendLayout()
278
         Me.SuspendLayout()
276
         '
279
         '
277
         '流水帳_dgv
280
         '流水帳_dgv
2259
         Me.PictureBox1.TabIndex = 1619
2262
         Me.PictureBox1.TabIndex = 1619
2260
         Me.PictureBox1.TabStop = False
2263
         Me.PictureBox1.TabStop = False
2261
         '
2264
         '
2265
+        '網址修正_dgv
2266
+        '
2267
+        DataGridViewCellStyle56.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
2268
+        Me.網址修正_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle56
2269
+        Me.網址修正_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
2270
+            Or System.Windows.Forms.AnchorStyles.Left) _
2271
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
2272
+        Me.網址修正_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
2273
+        Me.網址修正_dgv.Location = New System.Drawing.Point(155, 124)
2274
+        Me.網址修正_dgv.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
2275
+        Me.網址修正_dgv.Name = "網址修正_dgv"
2276
+        Me.網址修正_dgv.RowHeadersWidth = 4
2277
+        Me.網址修正_dgv.RowTemplate.Height = 24
2278
+        Me.網址修正_dgv.Size = New System.Drawing.Size(111, 70)
2279
+        Me.網址修正_dgv.TabIndex = 1700
2280
+        Me.網址修正_dgv.Visible = False
2281
+        '
2262
         '帳務彙總計算表
2282
         '帳務彙總計算表
2263
         '
2283
         '
2264
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
2284
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
2265
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
2285
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
2266
         Me.ClientSize = New System.Drawing.Size(1924, 971)
2286
         Me.ClientSize = New System.Drawing.Size(1924, 971)
2287
+        Me.Controls.Add(Me.網址修正_dgv)
2267
         Me.Controls.Add(Me.核帳0_tb)
2288
         Me.Controls.Add(Me.核帳0_tb)
2268
         Me.Controls.Add(Me.Label6)
2289
         Me.Controls.Add(Me.Label6)
2269
         Me.Controls.Add(Me.通知1_lb)
2290
         Me.Controls.Add(Me.通知1_lb)
2377
         CType(Me.紙帳導入_dgv, System.ComponentModel.ISupportInitialize).EndInit()
2398
         CType(Me.紙帳導入_dgv, System.ComponentModel.ISupportInitialize).EndInit()
2378
         CType(Me.電板所得_dgv, System.ComponentModel.ISupportInitialize).EndInit()
2399
         CType(Me.電板所得_dgv, System.ComponentModel.ISupportInitialize).EndInit()
2379
         CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).EndInit()
2400
         CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).EndInit()
2401
+        CType(Me.網址修正_dgv, System.ComponentModel.ISupportInitialize).EndInit()
2380
         Me.ResumeLayout(False)
2402
         Me.ResumeLayout(False)
2381
         Me.PerformLayout()
2403
         Me.PerformLayout()
2382
 
2404
 
2523
     Friend WithEvents SplitContainer3 As SplitContainer
2545
     Friend WithEvents SplitContainer3 As SplitContainer
2524
     Friend WithEvents SplitContainer2 As SplitContainer
2546
     Friend WithEvents SplitContainer2 As SplitContainer
2525
     Friend WithEvents 紙帳非前期_dgv As DataGridView
2547
     Friend WithEvents 紙帳非前期_dgv As DataGridView
2548
+    Friend WithEvents 網址修正_dgv As DataGridView
2526
 End Class
2549
 End Class

+ 18
- 2
GA-ERP-SYS/報表系統管理/帳務彙總計算表.vb Просмотреть файл

17
     Dim xlApp As Microsoft.Office.Interop.Excel.Application
17
     Dim xlApp As Microsoft.Office.Interop.Excel.Application
18
     Dim xlBook As Microsoft.Office.Interop.Excel.Workbook
18
     Dim xlBook As Microsoft.Office.Interop.Excel.Workbook
19
     Dim xlSheet As Microsoft.Office.Interop.Excel.Worksheet
19
     Dim xlSheet As Microsoft.Office.Interop.Excel.Worksheet
20
+    Private Sub Set_網址修正()
21
+        Try
22
+            網址修正_dgv.DataSource = Nothing : ds15.Clear()
23
+            網址修正_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
24
+            網址修正_dgv.ColumnHeadersHeight = 25
25
+            網址修正_dgv.AllowUserToAddRows = False
26
+            SQL_網址修正()
27
+            da.Fill(ds15) : 網址修正_dgv.DataSource = ds15.Tables(0) : conn.Close()
28
+            For II As Integer = 0 To 網址修正_dgv.Rows.Count - 1
29
+                PA1 = 網址修正_dgv.Rows(II).Cells("網址").Value.ToString : PA2 = 網址修正_dgv.Rows(II).Cells("主網址").Value.ToString : SQL_網址修正執行()
30
+            Next : PA1 = "" : PA2 = ""
31
+        Catch ex As Exception
32
+            MsgBox(ex.Message) '錯誤訊息
33
+        End Try
34
+    End Sub
20
     Private Sub Set_上繳名()
35
     Private Sub Set_上繳名()
21
         Try
36
         Try
22
             上繳名_dgv.DataSource = Nothing : ds15.Clear()
37
             上繳名_dgv.DataSource = Nothing : ds15.Clear()
939
         Next
954
         Next
940
         For I As Integer = 0 To 所得合帳1_dgv.Rows.Count - 1
955
         For I As Integer = 0 To 所得合帳1_dgv.Rows.Count - 1
941
             If Val(所得合帳1_dgv.Rows(I).Cells("所得").Value.ToString) <> 0 Then
956
             If Val(所得合帳1_dgv.Rows(I).Cells("所得").Value.ToString) <> 0 Then
942
-                If 所得合帳_dgv.Rows.Count > 0 Then : MN1 += 1 : End If
957
+                If 所得合帳_dgv.Rows.Count > 0 Then ': MN1 += 1
958
+                End If
943
                 商品(MN1) = 所得合帳1_dgv.Rows(I).Cells("商品").Value.ToString : 帳號(MN1) = 所得合帳1_dgv.Rows(I).Cells("帳號").Value.ToString
959
                 商品(MN1) = 所得合帳1_dgv.Rows(I).Cells("商品").Value.ToString : 帳號(MN1) = 所得合帳1_dgv.Rows(I).Cells("帳號").Value.ToString
944
                 客戶(MN1) = 所得合帳1_dgv.Rows(I).Cells("客戶").Value.ToString : 所得(MN1) = 所得合帳1_dgv.Rows(I).Cells("所得").Value.ToString
960
                 客戶(MN1) = 所得合帳1_dgv.Rows(I).Cells("客戶").Value.ToString : 所得(MN1) = 所得合帳1_dgv.Rows(I).Cells("所得").Value.ToString
945
                 If 所得合帳_dgv.Rows.Count = 0 Then : MN1 += 1 : End If : NN6 += 1
961
                 If 所得合帳_dgv.Rows.Count = 0 Then : MN1 += 1 : End If : NN6 += 1
1464
         資料_cb.Items.Add("")
1480
         資料_cb.Items.Add("")
1465
     End Sub
1481
     End Sub
1466
     Private Sub 帳務彙總計算表_Load(sender As Object, e As EventArgs) Handles MyBase.Load
1482
     Private Sub 帳務彙總計算表_Load(sender As Object, e As EventArgs) Handles MyBase.Load
1467
-        Me.MdiParent = GA_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True : GA_ERP_SYS.WindowState = 0
1483
+        Me.MdiParent = GA_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True : GA_ERP_SYS.WindowState = 0 : Set_網址修正()
1468
         天_ch.Checked = False : 周_ch.Checked = True : 月_ch.Checked = False : DA1_bt.Text = "上一週" : DA2_bt.Text = "本週" : DA3_bt.Text = "下一週"
1484
         天_ch.Checked = False : 周_ch.Checked = True : 月_ch.Checked = False : DA1_bt.Text = "上一週" : DA2_bt.Text = "本週" : DA3_bt.Text = "下一週"
1469
         L50.Visible = False : 客戶下_dgv.Visible = False : 流水帳_dgv.Visible = False : 彙總_dgv.Visible = False : 彙總1_dgv.Visible = False
1485
         L50.Visible = False : 客戶下_dgv.Visible = False : 流水帳_dgv.Visible = False : 彙總_dgv.Visible = False : 彙總1_dgv.Visible = False
1470
         上繳合帳_dgv.Visible = True : 所得合帳_dgv.Visible = True : PictureBox1.Visible = True : PictureBox1.BringToFront() : Panel1.Visible = False
1486
         上繳合帳_dgv.Visible = True : 所得合帳_dgv.Visible = True : PictureBox1.Visible = True : PictureBox1.BringToFront() : Panel1.Visible = False

+ 23
- 0
GA-ERP-SYS/報表系統管理/帳務明細查詢表.Designer.vb Просмотреть файл

28
         Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(帳務明細查詢表))
28
         Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(帳務明細查詢表))
29
         Dim DataGridViewCellStyle3 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
29
         Dim DataGridViewCellStyle3 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
30
         Dim DataGridViewCellStyle4 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
30
         Dim DataGridViewCellStyle4 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
31
+        Dim DataGridViewCellStyle5 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
31
         Me.流水帳_dgv = New System.Windows.Forms.DataGridView()
32
         Me.流水帳_dgv = New System.Windows.Forms.DataGridView()
32
         Me.客戶下_dgv = New System.Windows.Forms.DataGridView()
33
         Me.客戶下_dgv = New System.Windows.Forms.DataGridView()
33
         Me.日期_dgv = New System.Windows.Forms.DataGridView()
34
         Me.日期_dgv = New System.Windows.Forms.DataGridView()
124
         Me.LOG檔開啟_bt = New System.Windows.Forms.Button()
125
         Me.LOG檔開啟_bt = New System.Windows.Forms.Button()
125
         Me.Label19 = New System.Windows.Forms.Label()
126
         Me.Label19 = New System.Windows.Forms.Label()
126
         Me.Label24 = New System.Windows.Forms.Label()
127
         Me.Label24 = New System.Windows.Forms.Label()
128
+        Me.網址修正_dgv = New System.Windows.Forms.DataGridView()
127
         CType(Me.流水帳_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
129
         CType(Me.流水帳_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
128
         CType(Me.客戶下_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
130
         CType(Me.客戶下_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
129
         CType(Me.日期_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
131
         CType(Me.日期_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
137
         CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).BeginInit()
139
         CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).BeginInit()
138
         Me.Panel3.SuspendLayout()
140
         Me.Panel3.SuspendLayout()
139
         Me.Panel4.SuspendLayout()
141
         Me.Panel4.SuspendLayout()
142
+        CType(Me.網址修正_dgv, System.ComponentModel.ISupportInitialize).BeginInit()
140
         Me.SuspendLayout()
143
         Me.SuspendLayout()
141
         '
144
         '
142
         '流水帳_dgv
145
         '流水帳_dgv
1158
         Me.Label24.TabIndex = 1638
1161
         Me.Label24.TabIndex = 1638
1159
         Me.Label24.Text = "查詢條件 :"
1162
         Me.Label24.Text = "查詢條件 :"
1160
         '
1163
         '
1164
+        '網址修正_dgv
1165
+        '
1166
+        DataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(CType(CType(192, Byte), Integer), CType(CType(192, Byte), Integer), CType(CType(255, Byte), Integer))
1167
+        Me.網址修正_dgv.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle5
1168
+        Me.網址修正_dgv.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
1169
+            Or System.Windows.Forms.AnchorStyles.Left) _
1170
+            Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
1171
+        Me.網址修正_dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
1172
+        Me.網址修正_dgv.Location = New System.Drawing.Point(732, 118)
1173
+        Me.網址修正_dgv.Margin = New System.Windows.Forms.Padding(3, 4, 3, 4)
1174
+        Me.網址修正_dgv.Name = "網址修正_dgv"
1175
+        Me.網址修正_dgv.RowHeadersWidth = 4
1176
+        Me.網址修正_dgv.RowTemplate.Height = 24
1177
+        Me.網址修正_dgv.Size = New System.Drawing.Size(111, 70)
1178
+        Me.網址修正_dgv.TabIndex = 1701
1179
+        Me.網址修正_dgv.Visible = False
1180
+        '
1161
         '帳務明細查詢表
1181
         '帳務明細查詢表
1162
         '
1182
         '
1163
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
1183
         Me.AutoScaleDimensions = New System.Drawing.SizeF(7.0!, 16.0!)
1164
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
1184
         Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
1165
         Me.ClientSize = New System.Drawing.Size(1350, 701)
1185
         Me.ClientSize = New System.Drawing.Size(1350, 701)
1186
+        Me.Controls.Add(Me.網址修正_dgv)
1166
         Me.Controls.Add(Me.LOG檔開啟_bt)
1187
         Me.Controls.Add(Me.LOG檔開啟_bt)
1167
         Me.Controls.Add(Me.下拉3_bt)
1188
         Me.Controls.Add(Me.下拉3_bt)
1168
         Me.Controls.Add(Me.下拉2_bt)
1189
         Me.Controls.Add(Me.下拉2_bt)
1244
         Me.Panel3.ResumeLayout(False)
1265
         Me.Panel3.ResumeLayout(False)
1245
         Me.Panel4.ResumeLayout(False)
1266
         Me.Panel4.ResumeLayout(False)
1246
         Me.Panel4.PerformLayout()
1267
         Me.Panel4.PerformLayout()
1268
+        CType(Me.網址修正_dgv, System.ComponentModel.ISupportInitialize).EndInit()
1247
         Me.ResumeLayout(False)
1269
         Me.ResumeLayout(False)
1248
         Me.PerformLayout()
1270
         Me.PerformLayout()
1249
 
1271
 
1345
     Friend WithEvents LOG檔開啟_bt As Button
1367
     Friend WithEvents LOG檔開啟_bt As Button
1346
     Friend WithEvents Label19 As Label
1368
     Friend WithEvents Label19 As Label
1347
     Friend WithEvents Label24 As Label
1369
     Friend WithEvents Label24 As Label
1370
+    Friend WithEvents 網址修正_dgv As DataGridView
1348
 End Class
1371
 End Class

+ 17
- 2
GA-ERP-SYS/報表系統管理/帳務明細查詢表.vb Просмотреть файл

10
 Imports Microsoft.Office.Interop.Excel.XlThemeColor
10
 Imports Microsoft.Office.Interop.Excel.XlThemeColor
11
 Imports Microsoft.Office.Interop.Excel.XlWindowState
11
 Imports Microsoft.Office.Interop.Excel.XlWindowState
12
 Public Class 帳務明細查詢表
12
 Public Class 帳務明細查詢表
13
-    ReadOnly ds, ds1, ds2, ds3, ds4, ds5, ds7 As New DataSet
13
+    ReadOnly ds, ds1, ds2, ds3, ds4, ds5, ds7, ds15 As New DataSet
14
     Private N1, N2, YY, 選擇記憶 As Integer
14
     Private N1, N2, YY, 選擇記憶 As Integer
15
     Dim GP As Integer = 0 : Dim GPP As String
15
     Dim GP As Integer = 0 : Dim GPP As String
16
     Dim 首次登入 As Boolean = True : Dim 修改客戶, 可否開啟, 是否重算, 暫不計算, 暫不計算1, 再讀一次, 再讀一次1, 減輕計算 As Boolean
16
     Dim 首次登入 As Boolean = True : Dim 修改客戶, 可否開啟, 是否重算, 暫不計算, 暫不計算1, 再讀一次, 再讀一次1, 減輕計算 As Boolean
18
     Dim xlBook As Microsoft.Office.Interop.Excel.Workbook
18
     Dim xlBook As Microsoft.Office.Interop.Excel.Workbook
19
     Dim xlSheet As Microsoft.Office.Interop.Excel.Worksheet
19
     Dim xlSheet As Microsoft.Office.Interop.Excel.Worksheet
20
     Dim 本周周一 As Date
20
     Dim 本周周一 As Date
21
+    Private Sub Set_網址修正()
22
+        Try
23
+            網址修正_dgv.DataSource = Nothing : ds15.Clear()
24
+            網址修正_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
25
+            網址修正_dgv.ColumnHeadersHeight = 25
26
+            網址修正_dgv.AllowUserToAddRows = False
27
+            SQL_網址修正()
28
+            da.Fill(ds15) : 網址修正_dgv.DataSource = ds15.Tables(0) : conn.Close()
29
+            For II As Integer = 0 To 網址修正_dgv.Rows.Count - 1
30
+                PA1 = 網址修正_dgv.Rows(II).Cells("網址").Value.ToString : PA2 = 網址修正_dgv.Rows(II).Cells("主網址").Value.ToString : SQL_網址修正執行()
31
+            Next : PA1 = "" : PA2 = ""
32
+        Catch ex As Exception
33
+            MsgBox(ex.Message) '錯誤訊息
34
+        End Try
35
+    End Sub
21
     Private Sub Set_所得彙總()
36
     Private Sub Set_所得彙總()
22
         所得彙總_dgv.DataSource = Nothing : ds1.Clear()
37
         所得彙總_dgv.DataSource = Nothing : ds1.Clear()
23
         所得彙總_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
38
         所得彙總_dgv.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
814
         所得_tb.Text = Strings.Format(Val(所得_tb.Text), "#,##0") : 核帳_tb.Text = Strings.Format(Val(核帳_tb.Text), "#,##0")
829
         所得_tb.Text = Strings.Format(Val(所得_tb.Text), "#,##0") : 核帳_tb.Text = Strings.Format(Val(核帳_tb.Text), "#,##0")
815
     End Sub
830
     End Sub
816
     Private Sub 帳務明細查詢表_Load(sender As Object, e As EventArgs) Handles MyBase.Load
831
     Private Sub 帳務明細查詢表_Load(sender As Object, e As EventArgs) Handles MyBase.Load
817
-        Me.Width = 1366 : Me.Height = 768
832
+        Me.Width = 1366 : Me.Height = 768 : Set_網址修正()
818
         日期_dgv.Visible = False : 客戶下_dgv.Visible = False : PictureBox1.BringToFront() : Panel1.Visible = False : Panel2.Visible = False
833
         日期_dgv.Visible = False : 客戶下_dgv.Visible = False : PictureBox1.BringToFront() : Panel1.Visible = False : Panel2.Visible = False
819
         天_ch.Checked = False : 周_ch.Checked = True : 月_ch.Checked = False : 選取1_ch.Checked = True : 暫不計算 = True
834
         天_ch.Checked = False : 周_ch.Checked = True : 月_ch.Checked = False : 選取1_ch.Checked = True : 暫不計算 = True
820
         '商品_cb.Enabled = False : 老闆_cb.Enabled = False : 客戶_cb.Enabled = False
835
         '商品_cb.Enabled = False : 老闆_cb.Enabled = False : 客戶_cb.Enabled = False

+ 4
- 3
GA-ERP-SYS/特殊操作功能/系統公告.Designer.vb Просмотреть файл

35
             Or System.Windows.Forms.AnchorStyles.Left) _
35
             Or System.Windows.Forms.AnchorStyles.Left) _
36
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
36
             Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
37
         Me.TextBox1.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
37
         Me.TextBox1.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
38
-        Me.TextBox1.Location = New System.Drawing.Point(2, 155)
38
+        Me.TextBox1.Location = New System.Drawing.Point(2, 140)
39
         Me.TextBox1.Multiline = True
39
         Me.TextBox1.Multiline = True
40
         Me.TextBox1.Name = "TextBox1"
40
         Me.TextBox1.Name = "TextBox1"
41
         Me.TextBox1.ScrollBars = System.Windows.Forms.ScrollBars.Vertical
41
         Me.TextBox1.ScrollBars = System.Windows.Forms.ScrollBars.Vertical
42
-        Me.TextBox1.Size = New System.Drawing.Size(680, 389)
42
+        Me.TextBox1.Size = New System.Drawing.Size(680, 404)
43
         Me.TextBox1.TabIndex = 0
43
         Me.TextBox1.TabIndex = 0
44
         Me.TextBox1.Text = resources.GetString("TextBox1.Text")
44
         Me.TextBox1.Text = resources.GetString("TextBox1.Text")
45
         '
45
         '
61
         Me.TextBox3.Name = "TextBox3"
61
         Me.TextBox3.Name = "TextBox3"
62
         Me.TextBox3.Size = New System.Drawing.Size(680, 479)
62
         Me.TextBox3.Size = New System.Drawing.Size(680, 479)
63
         Me.TextBox3.TabIndex = 2
63
         Me.TextBox3.TabIndex = 2
64
-        Me.TextBox3.Text = "版本號 : 2022050501" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "更新內容如下 :" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "1、更新365系統,風雲、豐田網站更換SSL加密憑證,帳務抓不下來的問題。" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10)
64
+        Me.TextBox3.Text = "版本號 : 2022052501" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "更新內容如下 :" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "1、修正基本資料設定過程網址清單會消失的BUG。" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10) & "2、修正帳務匯總表部分設定會使個人帳務計算時產生BUG" &
65
+    "的問題。" & Global.Microsoft.VisualBasic.ChrW(13) & Global.Microsoft.VisualBasic.ChrW(10)
65
         '
66
         '
66
         'TextBox4
67
         'TextBox4
67
         '
68
         '

+ 9
- 1
GA-ERP-SYS/特殊操作功能/系統公告.resx Просмотреть файл

118
     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
118
     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119
   </resheader>
119
   </resheader>
120
   <data name="TextBox1.Text" xml:space="preserve">
120
   <data name="TextBox1.Text" xml:space="preserve">
121
-    <value>版本號 : 2022043001
121
+    <value>版本號 : 2022052301
122
+更新內容如下 :
123
+1、因應網站更新,修正備用網址抓帳後計算問題。
124
+
125
+版本號 : 2022050501
126
+更新內容如下 :
127
+1、更新365系統,風雲、豐田網站更換SSL加密憑證,帳務抓不下來的問題。
128
+
129
+版本號 : 2022043001
122
 更新內容如下 :
130
 更新內容如下 :
123
 1、修正101系統新增威力彩商品後帳務少抓的問題。
131
 1、修正101系統新增威力彩商品後帳務少抓的問題。
124
 
132
 

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