Sin descripción
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

零用金支付核准.vb 20KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. Option Strict Off
  2. Imports System.Data.SqlClient
  3. Imports System.IO
  4. Public Class 零用金支付核准
  5. ReadOnly conn As New SqlConnection
  6. ReadOnly da As New SqlDataAdapter
  7. ReadOnly cmd As New SqlCommand
  8. ReadOnly ds As New DataSet : ReadOnly ds1 As New DataSet : ReadOnly ds2 As New DataSet : ReadOnly ds3 As New DataSet : ReadOnly ds4 As New DataSet
  9. Dim dr As SqlDataReader
  10. Dim DTP As String : Dim DTP2 As String
  11. Private ReadOnly QQW(11) As String : Dim II As Integer
  12. Private Sub Set_DGV4載入前設定()
  13. DataGridView2.DataSource = Nothing : ds2.Clear()
  14. DataGridView2.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  15. DataGridView2.ColumnHeadersHeight = 25
  16. DataGridView2.AllowUserToAddRows = False
  17. If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
  18. End Sub
  19. Private Sub Set_DGV4載入後設定()
  20. cmd.Connection = conn : cmd.CommandText = SQL1 : da.SelectCommand = cmd : da.Fill(ds2) : DataGridView2.DataSource = ds2.Tables(0) : conn.Close() : Set_grid1()
  21. End Sub
  22. Private Sub Set_grid1()
  23. DataGridView2.Columns(0).Width = 173 : DataGridView2.Columns(1).Visible = False
  24. End Sub
  25. Private Sub 新驗證碼()
  26. TextBox14.Text = DataGridView2(0, 0).Value.ToString
  27. If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
  28. SQL1 = "SELECT 簽名檔圖片 FROM HX主管簽名檔管理 WHERE 圖片流水號 LIKE N'" & TextBox14.Text & "'"
  29. cmd.Connection = conn : cmd.CommandText = SQL1 : dr = cmd.ExecuteReader
  30. While dr.Read() = True
  31. Dim unused As Byte() = New Byte(-1) {}
  32. Dim bytes As Byte() = DirectCast(dr.Item("簽名檔圖片"), Byte())
  33. Dim oStream As New MemoryStream(bytes)
  34. PictureBox1.Image = Bitmap.FromStream(oStream)
  35. End While
  36. conn.Close()
  37. PictureBox1.SizeMode = 4
  38. For QAZ = 0 To 999
  39. QQW(0) = Strings.Right(DataGridView2(0, 0).Value.ToString, 2) : QQW(1) = Strings.Right(Year(Today), 2) : QQW(2) = Strings.Left(Year(Today), 2) : QQW(3) = Month(Today) + 9
  40. QQW(4) = Strings.Right(QQW(0), 1) : QQW(5) = Strings.Left(QQW(0), 1) : QQW(6) = Strings.Right(QQW(1), 1) : QQW(7) = Strings.Left(QQW(1), 1) : QQW(8) = Strings.Right(QQW(2), 1)
  41. QQW(9) = Strings.Left(QQW(2), 1) : QQW(10) = Strings.Right(QQW(3), 1) : QQW(11) = Strings.Left(QQW(3), 1)
  42. For RT = 4 To 11
  43. Delay(3)
  44. Dim ran = New Random(DateTime.Now.Millisecond) : Dim NUM1 As Integer = ran.Next(1, 4096)
  45. For I = 0 To 4096 : If NUM1 > 9 Then : NUM1 -= 9 : ElseIf NUM1 < 9 Then : I = 4096 : End If : Next
  46. If NUM1 = 1 Then : II = RT : 轉換() : ElseIf NUM1 = 2 Then : II = RT : 轉換() : ElseIf NUM1 = 3 Then : ElseIf NUM1 = 4 Then : II = RT : 轉換() : ElseIf NUM1 = 5 Then
  47. ElseIf NUM1 = 6 Then : II = RT : 轉換() : ElseIf NUM1 = 7 Then : ElseIf NUM1 = 8 Then : II = RT : 轉換() : ElseIf NUM1 = 9 Then : II = RT : 轉換() : End If
  48. Next
  49. Dim ran1 = New Random(DateTime.Now.Millisecond) : Dim NUM2 As Integer = ran1.Next(1, 4096)
  50. For I = 0 To 4096 : If NUM2 > 99 Then : NUM2 -= 49 : ElseIf NUM2 < 99 Then : I = 4096 : End If : Next
  51. TextBox13.Text = QQW(11) & "2" & QQW(9) & "7" & QQW(7) & "0" & QQW(5) & QQW(4) & "1" & QQW(6) & "3" & QQW(8) & "9" & QQW(10) & NUM2
  52. If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
  53. SQL1 = "SELECT 簽名編碼 FROM 零用金支付表 WHERE 簽名編碼 LIKE N'" & TextBox13.Text & "'"
  54. cmd.Connection = conn : cmd.CommandText = SQL1 : dr = cmd.ExecuteReader
  55. If dr.Read() = True Then : Else : QAZ = 999 : End If : conn.Close()
  56. Next
  57. End Sub
  58. Private Sub 轉換()
  59. If QQW(II) = "1" Then : QQW(II) = "A" : ElseIf QQW(II) = "2" Then : QQW(II) = "B" : ElseIf QQW(II) = "3" Then : QQW(II) = "C" : ElseIf QQW(II) = "4" Then : QQW(II) = "D"
  60. ElseIf QQW(II) = "5" Then : QQW(II) = "E" : ElseIf QQW(II) = "6" Then : QQW(II) = "F" : ElseIf QQW(II) = "7" Then : QQW(II) = "G" : ElseIf QQW(II) = "8" Then : QQW(II) = "H"
  61. ElseIf QQW(II) = "9" Then : QQW(II) = "I" : ElseIf QQW(II) = "0" Then : QQW(II) = "J"
  62. End If
  63. End Sub
  64. Public Sub Delay(ByRef Interval As Double) 'Interval单位为毫秒
  65. Dim time As DateTime = DateTime.Now : Dim Span As Double = Interval * 1234 : While ((DateTime.Now.Ticks - time.Ticks) < Span) : Application.DoEvents() : End While
  66. End Sub
  67. Private Sub Set_清單()
  68. Set_DGV4載入前設定()
  69. If gUserName = "李協叡" Then
  70. SQL1 = "SELECT 圖片流水號 AS 圖檔編碼, 簽名檔人名 FROM HX主管簽名檔管理 ORDER BY 圖片流水號 DESC"
  71. Else
  72. SQL1 = "SELECT 圖片流水號 AS 圖檔編碼, 簽名檔人名 FROM HX主管簽名檔管理 WHERE 簽名檔人名 LIKE N'" & gUserName & "' ORDER BY 圖片流水號 DESC"
  73. End If
  74. Set_DGV4載入後設定()
  75. End Sub
  76. Private Sub Set_清單3()
  77. DataGridView4.DataSource = Nothing : ds3.Clear()
  78. DataGridView4.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  79. DataGridView4.ColumnHeadersHeight = 50
  80. DataGridView4.AllowUserToAddRows = False
  81. If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
  82. SQL1 = "SELECT 流水號 AS [Nomor Seri], 部門 AS Departemen, 申請人 AS Pemohon, LEFT(申請日期, 10) AS [Tanggal Aplikasi], 審核人 AS Peninjau, LEFT(審核日期, 10) AS [Tanggal Peninjau],
  83. 核准人 AS Setuju, LEFT(核准日期, 10) AS [Tanggal Setuju] FROM 零用金支付表 WHERE (審核人 NOT LIKE N'作廢%') AND (審核人 NOT LIKE N'') AND (核准人 LIKE N'') ORDER BY 流水號 DESC"
  84. cmd.Connection = conn : cmd.CommandText = SQL1 : da.SelectCommand = cmd : da.Fill(ds3) : DataGridView4.DataSource = ds3.Tables(0) : conn.Close() : Set_grid3()
  85. End Sub
  86. Private Sub Set_grid3()
  87. DataGridView4.Columns(0).FillWeight = 120 : DataGridView4.Columns(1).FillWeight = 115 : DataGridView4.Columns(2).FillWeight = 100 : DataGridView4.Columns(3).FillWeight = 85
  88. DataGridView4.Columns(4).FillWeight = 100 : DataGridView4.Columns(5).FillWeight = 85 : DataGridView4.Columns(6).Visible = False : DataGridView4.Columns(7).Visible = False
  89. For i As Integer = 0 To DataGridView4.Rows.Count - 1
  90. DataGridView4.Columns(i).SortMode = DataGridViewColumnSortMode.NotSortable
  91. Next i
  92. End Sub
  93. Private Sub Set_清單4()
  94. DataGridView5.DataSource = Nothing : ds4.Clear()
  95. DataGridView5.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  96. DataGridView5.ColumnHeadersHeight = 50
  97. DataGridView5.AllowUserToAddRows = False
  98. If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
  99. SQL1 = "SELECT 流水號 AS [Nomor Seri], 部門 AS Departemen, 申請人 AS Pemohon, LEFT(申請日期, 10) AS [Tanggal Aplikasi], 審核人 AS Peninjau, LEFT(審核日期, 10) AS [Tanggal Peninjau],
  100. 核准人 AS Setuju, LEFT(核准日期, 10) AS [Tanggal Setuju] FROM 零用金支付表 WHERE (審核人 NOT LIKE N'作廢%') AND (審核人 NOT LIKE N'') AND (核准人 LIKE N'作廢%') ORDER BY 流水號 DESC"
  101. cmd.Connection = conn : cmd.CommandText = SQL1 : da.SelectCommand = cmd : da.Fill(ds4) : DataGridView5.DataSource = ds4.Tables(0) : conn.Close() : Set_grid4()
  102. End Sub
  103. Private Sub Set_grid4()
  104. DataGridView5.Columns(0).FillWeight = 120 : DataGridView5.Columns(1).FillWeight = 115 : DataGridView5.Columns(2).FillWeight = 100 : DataGridView5.Columns(3).FillWeight = 85
  105. DataGridView5.Columns(4).FillWeight = 100 : DataGridView5.Columns(5).FillWeight = 85 : DataGridView5.Columns(6).Visible = False : DataGridView5.Columns(7).Visible = False
  106. For i As Integer = 0 To DataGridView5.Rows.Count - 1
  107. DataGridView5.Columns(i).SortMode = DataGridViewColumnSortMode.NotSortable
  108. Next i
  109. End Sub
  110. Private Sub Set_支付單清單()
  111. DataGridView1.DataSource = Nothing : ds.Clear()
  112. DataGridView1.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing
  113. DataGridView1.ColumnHeadersHeight = 25
  114. DataGridView1.AllowUserToAddRows = False
  115. DataGridView1.RowTemplate.Height = 35
  116. If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
  117. SQL1 = "SELECT 流水號, 項次 AS Item, 用途 AS Konten, 金額 AS Jumlah, 備註 AS Komentar FROM 零用金支付明細 WHERE 流水號 LIKE N'" & TextBox1.Text & "' ORDER BY 項次"
  118. cmd.Connection = conn : cmd.CommandText = SQL1 : da.SelectCommand = cmd : da.Fill(ds) : DataGridView1.DataSource = ds.Tables(0) : conn.Close() : Set_grid()
  119. End Sub
  120. Private Sub Set_grid()
  121. DataGridView1.Columns(0).Visible = False : DataGridView1.Columns(1).FillWeight = 80 : DataGridView1.Columns(2).FillWeight = 538 : DataGridView1.Columns(3).FillWeight = 140
  122. DataGridView1.Columns(4).FillWeight = 537
  123. DataGridView1.Columns(3).DefaultCellStyle.Format = "#,##0"
  124. DataGridView1.Columns(3).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter
  125. DataGridView1.Columns(3).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
  126. DataGridView1.EditMode = DataGridViewEditMode.EditOnEnter
  127. TextBox5.Text = "0"
  128. For i As Integer = 0 To DataGridView1.Rows.Count - 1
  129. TextBox5.Text = Val(TextBox5.Text) + DataGridView1.Rows(i).Cells("Jumlah").Value
  130. Next i
  131. TextBox5.Text = Format(Val(TextBox5.Text), "#,##0")
  132. End Sub
  133. Private Sub Set_日期格式轉換()
  134. DTP = Format(Today(), "yyyy/MM/dd") & "-" & Format(TimeOfDay(), "HH:mm:ss") : DTP2 = Format(Today(), "yyyy/MM/dd")
  135. End Sub
  136. Private Sub 零用金支付核准_Load(sender As Object, e As EventArgs) Handles MyBase.Load
  137. Me.MdiParent = HX_PGS_ERP_SYS : Me.WindowState = 2 : Me.AutoScroll = True
  138. RadioButton1.Checked = True : RadioButton2.Checked = False : Label6.Visible = True : Label7.Visible = False : DataGridView4.Visible = True : DataGridView5.Visible = False
  139. TextBox1.Enabled = False : TextBox2.Enabled = False : TextBox3.Enabled = False : TextBox14.Enabled = False : TextBox13.Enabled = False : TextBox5.Enabled = False
  140. Set_清單() : Set_清單3() : Set_清單4() : 新驗證碼()
  141. End Sub
  142. Private Sub 登入閒置控制_MouseMove(sender As Object, e As EventArgs) Handles MyBase.MouseMove
  143. timeNow = 0
  144. HX_PGS_ERP_SYS.Timer1.Enabled = False
  145. HX_PGS_ERP_SYS.Timer1.Enabled = True
  146. End Sub
  147. Private Sub 登入閒置控制_KeyPress(sender As Object, e As EventArgs) Handles MyBase.KeyPress
  148. timeNow = 0
  149. HX_PGS_ERP_SYS.Timer1.Enabled = False
  150. HX_PGS_ERP_SYS.Timer1.Enabled = True
  151. End Sub
  152. Private Sub DataGridView2_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles DataGridView2.CellClick
  153. If e.RowIndex = -1 Then : Else
  154. TextBox14.Text = DataGridView2(0, e.RowIndex).Value.ToString
  155. If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
  156. SQL1 = "SELECT 簽名檔圖片 FROM HX主管簽名檔管理 WHERE 圖片流水號 LIKE N'" & TextBox14.Text & "'"
  157. cmd.Connection = conn : cmd.CommandText = SQL1 : dr = cmd.ExecuteReader
  158. While dr.Read() = True
  159. Dim unused As Byte() = New Byte(-1) {}
  160. Dim bytes As Byte() = DirectCast(dr.Item("簽名檔圖片"), Byte())
  161. Dim oStream As New MemoryStream(bytes)
  162. PictureBox1.Image = Bitmap.FromStream(oStream)
  163. End While
  164. conn.Close()
  165. PictureBox1.SizeMode = 4
  166. For QAZ = 0 To 999
  167. QQW(0) = Strings.Right(DataGridView2(0, e.RowIndex).Value.ToString, 2) : QQW(1) = Strings.Right(Year(Today), 2) : QQW(2) = Strings.Left(Year(Today), 2) : QQW(3) = Month(Today) + 9
  168. QQW(4) = Strings.Right(QQW(0), 1) : QQW(5) = Strings.Left(QQW(0), 1) : QQW(6) = Strings.Right(QQW(1), 1) : QQW(7) = Strings.Left(QQW(1), 1) : QQW(8) = Strings.Right(QQW(2), 1)
  169. QQW(9) = Strings.Left(QQW(2), 1) : QQW(10) = Strings.Right(QQW(3), 1) : QQW(11) = Strings.Left(QQW(3), 1)
  170. For RT = 4 To 11
  171. Delay(3)
  172. Dim ran = New Random(DateTime.Now.Millisecond) : Dim NUM1 As Integer = ran.Next(1, 4096)
  173. For I = 0 To 4096 : If NUM1 > 9 Then : NUM1 -= 9 : ElseIf NUM1 < 9 Then : I = 4096 : End If : Next
  174. If NUM1 = 1 Then : II = RT : 轉換() : ElseIf NUM1 = 2 Then : II = RT : 轉換() : ElseIf NUM1 = 3 Then : ElseIf NUM1 = 4 Then : II = RT : 轉換() : ElseIf NUM1 = 5 Then
  175. ElseIf NUM1 = 6 Then : II = RT : 轉換() : ElseIf NUM1 = 7 Then : ElseIf NUM1 = 8 Then : II = RT : 轉換() : ElseIf NUM1 = 9 Then : II = RT : 轉換() : End If
  176. Next
  177. Dim ran1 = New Random(DateTime.Now.Millisecond) : Dim NUM2 As Integer = ran1.Next(1, 4096)
  178. For I = 0 To 4096 : If NUM2 > 99 Then : NUM2 -= 49 : ElseIf NUM2 < 99 Then : I = 4096 : End If : Next
  179. TextBox13.Text = QQW(11) & "2" & QQW(9) & "7" & QQW(7) & "0" & QQW(5) & QQW(4) & "1" & QQW(6) & "3" & QQW(8) & "9" & QQW(10) & NUM2
  180. If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
  181. SQL1 = "SELECT 簽名編碼 FROM 零用金支付表 WHERE 簽名編碼 LIKE N'" & TextBox13.Text & "'"
  182. cmd.Connection = conn : cmd.CommandText = SQL1 : dr = cmd.ExecuteReader
  183. If dr.Read() = True Then : Else : QAZ = 999 : End If : conn.Close()
  184. Next
  185. End If
  186. End Sub
  187. Private Sub DataGridView4_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles DataGridView4.CellClick
  188. If e.RowIndex = -1 Then : Else
  189. PA = DataGridView4(0, e.RowIndex).Value.ToString : PA1 = DataGridView4(1, e.RowIndex).Value.ToString : PA2 = DataGridView4(2, e.RowIndex).Value.ToString
  190. TextBox1.Text = PA : TextBox2.Text = PA1 : TextBox3.Text = PA2 : Set_支付單清單() : 新驗證碼()
  191. End If
  192. End Sub
  193. Private Sub DataGridView5_CellClick(ByVal sender As System.Object, ByVal e As DataGridViewCellEventArgs) Handles DataGridView5.CellClick
  194. If e.RowIndex = -1 Then : Else
  195. PA = DataGridView5(0, e.RowIndex).Value.ToString : PA1 = DataGridView5(1, e.RowIndex).Value.ToString : PA2 = DataGridView5(2, e.RowIndex).Value.ToString
  196. TextBox1.Text = PA : TextBox2.Text = PA1 : TextBox3.Text = PA2 : Set_支付單清單()
  197. End If
  198. End Sub
  199. Private Sub RadioButton切換狀態1()
  200. DataGridView1.DataSource = Nothing : ds.Clear() : TextBox1.Text = "" : TextBox2.Text = "" : TextBox3.Text = "" : TextBox14.Text = "" : TextBox13.Text = "" : TextBox5.Text = ""
  201. Button1.Enabled = True : Button2.Enabled = True : 審核通過ToolStripMenuItem.Enabled = True : 單據作廢ToolStripMenuItem.Enabled = True
  202. End Sub
  203. Private Sub RadioButton切換狀態2()
  204. DataGridView1.DataSource = Nothing : ds.Clear() : TextBox1.Text = "" : TextBox2.Text = "" : TextBox3.Text = "" : TextBox14.Text = "" : TextBox13.Text = "" : TextBox5.Text = ""
  205. Button1.Enabled = False : Button2.Enabled = False : 審核通過ToolStripMenuItem.Enabled = False : 單據作廢ToolStripMenuItem.Enabled = False
  206. End Sub
  207. Private Sub RadioButton1_CheckedChanged(sender As Object, e As EventArgs) Handles RadioButton1.Click
  208. RadioButton1.Checked = True : RadioButton2.Checked = False
  209. Label6.Visible = True : Label7.Visible = False
  210. DataGridView4.Visible = True : DataGridView5.Visible = False
  211. RadioButton切換狀態2()
  212. End Sub
  213. Private Sub RadioButton2_CheckedChanged(sender As Object, e As EventArgs) Handles RadioButton2.Click
  214. RadioButton1.Checked = False : RadioButton2.Checked = True
  215. Label6.Visible = False : Label7.Visible = True
  216. DataGridView4.Visible = False : DataGridView5.Visible = True
  217. RadioButton切換狀態2()
  218. End Sub
  219. Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
  220. Set_日期格式轉換()
  221. If TextBox1.Text = "" Then
  222. MsgBox("沒有選擇零用金支付單。 No petty cash payment form selected.")
  223. Else
  224. If TextBox13.Text = "" Then
  225. MsgBox("沒有選擇簽名檔。 No signature file selected.")
  226. Else
  227. 新驗證碼()
  228. If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
  229. SQL1 = "UPDATE 零用金支付表 SET 核准人 = N'" & gUserName & "', 核准日期 = N'" & DTP & "', 核准圖檔 = N'" & TextBox14.Text & "', 簽名編碼 = N'" & TextBox13.Text & "' " &
  230. "WHERE (流水號 = N'" & TextBox1.Text & "')"
  231. cmd.Connection = conn : cmd.CommandText = SQL1 : cmd.ExecuteNonQuery() : conn.Close()
  232. MsgBox("單據 " & TextBox1.Text & " 核准完成。 Documents " & TextBox1.Text & " Approved completion.")
  233. TextBox1.Text = "" : TextBox2.Text = "" : TextBox3.Text = "" : TextBox13.Text = "" : TextBox14.Text = ""
  234. DataGridView1.DataSource = Nothing : ds.Clear()
  235. Set_清單3() : Set_清單4()
  236. End If
  237. End If
  238. End Sub
  239. Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
  240. Set_日期格式轉換()
  241. If TextBox1.Text = "" Then
  242. MsgBox("沒有選擇零用金支付單。 No petty cash payment form selected.")
  243. Else
  244. Dim aa As MsgBoxResult
  245. aa = MsgBox("確定要作廢該筆資料? Confirm to void the data?", MsgBoxStyle.OkCancel)
  246. If aa = MsgBoxResult.Ok Then
  247. If conn.State = ConnectionState.Closed Then : conn.ConnectionString = ConString : conn.Open() : End If
  248. SQL1 = "UPDATE 零用金支付表 SET 核准人 = N'作廢-" & gUserName & "', 核准日期 = N'" & DTP & "' WHERE (流水號 = N'" & TextBox1.Text & "')"
  249. cmd.Connection = conn : cmd.CommandText = SQL1 : cmd.ExecuteNonQuery() : conn.Close()
  250. MsgBox("單據 " & TextBox1.Text & " 已作廢。 Documents " & TextBox1.Text & " Invalid.")
  251. TextBox1.Text = "" : TextBox2.Text = "" : TextBox3.Text = "" : TextBox13.Text = "" : TextBox14.Text = ""
  252. DataGridView1.DataSource = Nothing : ds.Clear()
  253. End If
  254. Set_清單3() : Set_清單4()
  255. End If
  256. End Sub
  257. '----------------------滑鼠右鍵--------------------------------------------------------------------------------------------------------------------------------------------------------------------
  258. Private Sub 重新讀取ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 重新讀取ToolStripMenuItem.Click
  259. Set_清單3() : Set_清單4()
  260. End Sub
  261. Private Sub 審核通過ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 審核通過ToolStripMenuItem.Click
  262. Me.Button2.PerformClick()
  263. End Sub
  264. Private Sub 單據作廢ToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles 單據作廢ToolStripMenuItem.Click
  265. Me.Button1.PerformClick()
  266. End Sub
  267. End Class