Form_BakFile.frm
上传用户:zhpu1995
上传日期:2013-09-06
资源大小:61151k
文件大小:4k
源码类别:

企业管理

开发平台:

Visual Basic

  1. VERSION 5.00
  2. Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
  3. Begin VB.Form Frm_BakFile 
  4.    BorderStyle     =   1  'Fixed Single
  5.    Caption         =   "备份文件"
  6.    ClientHeight    =   4005
  7.    ClientLeft      =   3615
  8.    ClientTop       =   1830
  9.    ClientWidth     =   5115
  10.    Icon            =   "Form_BakFile.frx":0000
  11.    LinkTopic       =   "Form1"
  12.    LockControls    =   -1  'True
  13.    MaxButton       =   0   'False
  14.    MinButton       =   0   'False
  15.    ScaleHeight     =   4005
  16.    ScaleWidth      =   5115
  17.    StartUpPosition =   2  '屏幕中心
  18.    Begin VB.CommandButton Command1 
  19.       Caption         =   "取消&C"
  20.       Height          =   315
  21.       Index           =   1
  22.       Left            =   3870
  23.       TabIndex        =   3
  24.       Top             =   3570
  25.       Width           =   1185
  26.    End
  27.    Begin VB.CommandButton Command1 
  28.       Caption         =   "确定&D"
  29.       Height          =   315
  30.       Index           =   0
  31.       Left            =   2340
  32.       TabIndex        =   2
  33.       Top             =   3570
  34.       Width           =   1185
  35.    End
  36.    Begin VB.Frame Frame1 
  37.       Caption         =   "备份文件"
  38.       Height          =   3465
  39.       Left            =   60
  40.       TabIndex        =   0
  41.       Top             =   0
  42.       Width           =   4995
  43.       Begin MSComctlLib.ListView List_data 
  44.          Height          =   3225
  45.          Left            =   60
  46.          TabIndex        =   1
  47.          Top             =   180
  48.          Width           =   4875
  49.          _ExtentX        =   8599
  50.          _ExtentY        =   5689
  51.          View            =   3
  52.          LabelEdit       =   1
  53.          LabelWrap       =   -1  'True
  54.          HideSelection   =   -1  'True
  55.          FullRowSelect   =   -1  'True
  56.          _Version        =   393217
  57.          ForeColor       =   -2147483640
  58.          BackColor       =   -2147483643
  59.          BorderStyle     =   1
  60.          Appearance      =   1
  61.          BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  62.             Name            =   "宋体"
  63.             Size            =   9
  64.             Charset         =   134
  65.             Weight          =   400
  66.             Underline       =   0   'False
  67.             Italic          =   0   'False
  68.             Strikethrough   =   0   'False
  69.          EndProperty
  70.          NumItems        =   4
  71.          BeginProperty ColumnHeader(1) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
  72.             Text            =   "数据库名"
  73.             Object.Width           =   2540
  74.          EndProperty
  75.          BeginProperty ColumnHeader(2) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
  76.             SubItemIndex    =   1
  77.             Text            =   "备份文件名"
  78.             Object.Width           =   2540
  79.          EndProperty
  80.          BeginProperty ColumnHeader(3) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
  81.             SubItemIndex    =   2
  82.             Text            =   "备份时间"
  83.             Object.Width           =   3881
  84.          EndProperty
  85.          BeginProperty ColumnHeader(4) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
  86.             SubItemIndex    =   3
  87.             Text            =   "备份路径"
  88.             Object.Width           =   8819
  89.          EndProperty
  90.       End
  91.    End
  92. End
  93. Attribute VB_Name = "Frm_BakFile"
  94. Attribute VB_GlobalNameSpace = False
  95. Attribute VB_Creatable = False
  96. Attribute VB_PredeclaredId = True
  97. Attribute VB_Exposed = False
  98. Private Sub Command1_Click(Index As Integer)
  99.     If Index = 1 Then Unload Me: Exit Sub
  100.     If List_data.ListItems.Count <= 0 Then Exit Sub
  101.     
  102.     BakFile = List_data.SelectedItem.SubItems(1)
  103.     BakFilePath = List_data.SelectedItem.SubItems(3)
  104.     Unload Me
  105. End Sub
  106. Private Sub Form_Load()
  107.     Dim aDo_Bakdatabase As New Recordset
  108.     Set aDo_Bakdatabase = Conn_System.Execute("select * from HDSystem_BakDataBases")
  109.     With aDo_Bakdatabase
  110.     Do While Not .EOF
  111.         Set mitem = List_data.ListItems.Add()
  112.         mitem.Text = !DataBaseName
  113.         mitem.SubItems(1) = !BakName
  114.         mitem.SubItems(2) = !BakDate
  115.         mitem.SubItems(3) = !BakPath
  116.         mitem.Key = "T" & !Number
  117.        
  118.         .MoveNext
  119.     Loop
  120.     .Close
  121.     Set aDo_Bakdatabase = Nothing
  122.     End With
  123.     BakFile = "": BakFilePath = ""
  124. End Sub
  125. Private Sub List_data_DblClick()
  126.     Command1_Click 0
  127. End Sub