Professional Documents
Culture Documents
وهذه جميع اجرائيات الحفظ والتعديل والعرض وفتح الملفات
وهذه جميع اجرائيات الحفظ والتعديل والعرض وفتح الملفات
Cmd.Parameters.AddRange(Paramter)
OpenConnection()
Cmd.ExecuteNonQuery()
CloseConnection()
End Function
xx.FileCode.Text = DT.Rows(0).Item("FileCode").ToString
GetParentNode(xx.FolderParent.Nodes,
CStr(DT.Rows(0).Item("FolderParent")), xx.FolderParent)
xx.FileName.Text = DT.Rows(0).Item("FileName").ToString
xx.RefrenceNum.Text = DT.Rows(0).Item("RefrenceNum").ToString
xx.FileDescription.Text =
DT.Rows(0).Item("FileDescription").ToString
xx.FileExtenssion.Text =
DT.Rows(0).Item("FileExtenssion").ToString
xx.FileSize.Text = DT.Rows(0).Item("FileSize").ToString
xx.FileSize.Tag = DT.Rows(0).Item("SavedIn")
xx.FileType.SelectedIndex = DT.Rows(0).Item("FileType")
xx.FileSecret.Checked = CBool(DT.Rows(0).Item("FileSecret"))
xx.FilePassword.Text = DT.Rows(0).Item("FilePassword").ToString
xx.FileId.Text = DT.Rows(0).Item("FileId").ToString
xx.AddUser.Text = DT.Rows(0).Item("AddUser").ToString
xx.AddDate.Text = DT.Rows(0).Item("AddDate").ToString
xx.EditUser.Text = DT.Rows(0).Item("EditUser").ToString
If IsDBNull(DT.Rows(0).Item("EditDate")) = False Then
xx.EditDate.Text = DT.Rows(0).Item("EditDate") Else xx.EditDate.Clear()
Cmd.Parameters.AddRange(Paramter)
OpenConnection()
Cmd.ExecuteNonQuery()
CloseConnection()
Return Paramter(2).Value
End Function
If dt.Rows(0).Item("xx") = 0 Then
FilePath = dt.Rows(0).Item("FileFullPath")
Else
Dim FileData() As Byte = CType(dt.Rows(0).Item("FileData"),
Byte())
Dim FileStream As New FileStream(dt.Rows(0).Item("FullName"),
FileMode.OpenOrCreate, FileAccess.Write)
FileStream.Write(FileData, 0, FileData.Length)
FileStream.Close()
FilePath = dt.Rows(0).Item("FullName")
End If