Form_BakFile.frm
资源名称:ERPSYS.zip [点击查看]
上传用户:zhpu1995
上传日期:2013-09-06
资源大小:61151k
文件大小:4k
源码类别:
企业管理
开发平台:
Visual Basic
- VERSION 5.00
- Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
- Begin VB.Form Frm_BakFile
- BorderStyle = 1 'Fixed Single
- Caption = "备份文件"
- ClientHeight = 4005
- ClientLeft = 3615
- ClientTop = 1830
- ClientWidth = 5115
- Icon = "Form_BakFile.frx":0000
- LinkTopic = "Form1"
- LockControls = -1 'True
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 4005
- ScaleWidth = 5115
- StartUpPosition = 2 '屏幕中心
- Begin VB.CommandButton Command1
- Caption = "取消&C"
- Height = 315
- Index = 1
- Left = 3870
- TabIndex = 3
- Top = 3570
- Width = 1185
- End
- Begin VB.CommandButton Command1
- Caption = "确定&D"
- Height = 315
- Index = 0
- Left = 2340
- TabIndex = 2
- Top = 3570
- Width = 1185
- End
- Begin VB.Frame Frame1
- Caption = "备份文件"
- Height = 3465
- Left = 60
- TabIndex = 0
- Top = 0
- Width = 4995
- Begin MSComctlLib.ListView List_data
- Height = 3225
- Left = 60
- TabIndex = 1
- Top = 180
- Width = 4875
- _ExtentX = 8599
- _ExtentY = 5689
- View = 3
- LabelEdit = 1
- LabelWrap = -1 'True
- HideSelection = -1 'True
- FullRowSelect = -1 'True
- _Version = 393217
- ForeColor = -2147483640
- BackColor = -2147483643
- BorderStyle = 1
- Appearance = 1
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "宋体"
- Size = 9
- Charset = 134
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- NumItems = 4
- BeginProperty ColumnHeader(1) {BDD1F052-858B-11D1-B16A-00C0F0283628}
- Text = "数据库名"
- Object.Width = 2540
- EndProperty
- BeginProperty ColumnHeader(2) {BDD1F052-858B-11D1-B16A-00C0F0283628}
- SubItemIndex = 1
- Text = "备份文件名"
- Object.Width = 2540
- EndProperty
- BeginProperty ColumnHeader(3) {BDD1F052-858B-11D1-B16A-00C0F0283628}
- SubItemIndex = 2
- Text = "备份时间"
- Object.Width = 3881
- EndProperty
- BeginProperty ColumnHeader(4) {BDD1F052-858B-11D1-B16A-00C0F0283628}
- SubItemIndex = 3
- Text = "备份路径"
- Object.Width = 8819
- EndProperty
- End
- End
- End
- Attribute VB_Name = "Frm_BakFile"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub Command1_Click(Index As Integer)
- If Index = 1 Then Unload Me: Exit Sub
- If List_data.ListItems.Count <= 0 Then Exit Sub
- BakFile = List_data.SelectedItem.SubItems(1)
- BakFilePath = List_data.SelectedItem.SubItems(3)
- Unload Me
- End Sub
- Private Sub Form_Load()
- Dim aDo_Bakdatabase As New Recordset
- Set aDo_Bakdatabase = Conn_System.Execute("select * from HDSystem_BakDataBases")
- With aDo_Bakdatabase
- Do While Not .EOF
- Set mitem = List_data.ListItems.Add()
- mitem.Text = !DataBaseName
- mitem.SubItems(1) = !BakName
- mitem.SubItems(2) = !BakDate
- mitem.SubItems(3) = !BakPath
- mitem.Key = "T" & !Number
- .MoveNext
- Loop
- .Close
- Set aDo_Bakdatabase = Nothing
- End With
- BakFile = "": BakFilePath = ""
- End Sub
- Private Sub List_data_DblClick()
- Command1_Click 0
- End Sub