⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frmats.frm

📁 学生宿舍管理系统vb源码
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "Comdlg32.ocx"
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form frmATS 
   BorderStyle     =   4  'Fixed ToolWindow
   Caption         =   "数据上传"
   ClientHeight    =   4335
   ClientLeft      =   45
   ClientTop       =   315
   ClientWidth     =   4110
   LinkTopic       =   "Form2"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   4335
   ScaleWidth      =   4110
   ShowInTaskbar   =   0   'False
   Begin VB.TextBox txtDwgNo 
      Height          =   375
      Left            =   960
      TabIndex        =   10
      Top             =   480
      Width           =   2175
   End
   Begin VB.Frame Frame1 
      Caption         =   "数据库文件列表"
      Height          =   2415
      Left            =   120
      TabIndex        =   7
      Top             =   1800
      Width           =   3855
      Begin MSComctlLib.ListView ListView1 
         Height          =   1935
         Left            =   120
         TabIndex        =   8
         Top             =   360
         Width           =   3615
         _ExtentX        =   6376
         _ExtentY        =   3413
         LabelWrap       =   -1  'True
         HideSelection   =   -1  'True
         GridLines       =   -1  'True
         _Version        =   393217
         ForeColor       =   -2147483640
         BackColor       =   -2147483643
         BorderStyle     =   1
         Appearance      =   1
         NumItems        =   0
      End
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   330
      Left            =   1320
      Top             =   1440
      Visible         =   0   'False
      Width           =   2055
      _ExtentX        =   3625
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   8
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   ""
      OLEDBString     =   ""
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   ""
      Caption         =   "Adodc1"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin VB.CommandButton cmdCancle 
      Caption         =   "取消"
      Height          =   375
      Left            =   3120
      TabIndex        =   5
      Top             =   840
      Width           =   735
   End
   Begin VB.CommandButton cmdUp 
      Caption         =   "上传"
      Height          =   375
      Left            =   3120
      TabIndex        =   4
      Top             =   480
      Width           =   735
   End
   Begin MSComctlLib.ProgressBar procBar 
      Height          =   375
      Left            =   0
      TabIndex        =   3
      Top             =   1320
      Width           =   3855
      _ExtentX        =   6800
      _ExtentY        =   661
      _Version        =   393216
      Appearance      =   1
   End
   Begin VB.CommandButton cmdView 
      Caption         =   "浏览"
      Height          =   375
      Left            =   3120
      TabIndex        =   2
      Top             =   120
      Width           =   735
   End
   Begin VB.TextBox txtFile 
      Height          =   375
      Left            =   960
      TabIndex        =   1
      Top             =   120
      Width           =   2175
   End
   Begin MSComDlg.CommonDialog comDLG 
      Left            =   3600
      Top             =   1080
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
   Begin VB.Label Label2 
      Caption         =   "库中图号:"
      Height          =   255
      Left            =   120
      TabIndex        =   9
      Top             =   600
      Width           =   975
   End
   Begin VB.Label lblResult 
      Height          =   255
      Left            =   120
      TabIndex        =   6
      Top             =   960
      Width           =   3015
   End
   Begin VB.Label Label1 
      Caption         =   "文件:"
      Height          =   255
      Left            =   120
      TabIndex        =   0
      Top             =   240
      Width           =   615
   End
End
Attribute VB_Name = "frmATS"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim conSQL As New cxConnectSQL.Connect
Dim TempStr As String
Dim ServerName As String
Dim DwgNo As Integer
Private IsTable(1 To 20) As Boolean
Private Sub cmdCancle_Click()
    Unload Me
End Sub

Private Sub cmdUp_Click()
    'On Error Resume Next
    
    Dim pTable As String
    Dim lTable As String
    Dim dbStr As String
    Dim i As Integer
    Dim count As Integer
    
    If Trim(txtDwgNo) = "" Then
        MsgBox "请输入库中图号!", vbOKOnly + vbExclamation, "提示"
        Exit Sub
    End If
    DwgNo = LTrim(RTrim(txtDwgNo))
'    TempStr = TableName(Trim(comType))
    pTable = "Jpoint"
    lTable = "Jline"
    dbStr = "select * from Jpoint"
    
    procBar.Value = 0
    lblResult.Caption = "当前状态: 正在读取点表数据,请稍候!"
    With Adodc1
        .ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source='" & txtFile & "';Persist Security Info=False"
        .RecordSource = dbStr
        .Refresh
        count = .Recordset.RecordCount
        If count > 0 Then
            ReDim PointInfo(count) As PointStruct
            .Recordset.MoveFirst
            For i = 1 To count
                If Not IsNull(.Recordset.Fields("EXP_NO").Value) Then PointInfo(i).EXP_NO = .Recordset.Fields("EXP_NO").Value
                If Not IsNull(.Recordset.Fields("MAP_NO").Value) Then PointInfo(i).MAP_NO = .Recordset.Fields("MAP_NO").Value
                If Not IsNull(.Recordset.Fields("S_CODE").Value) Then PointInfo(i).S_CODE = .Recordset.Fields("S_CODE").Value
                If Not IsNull(.Recordset.Fields("X").Value) Then PointInfo(i).X = .Recordset.Fields("X").Value
                If Not IsNull(.Recordset.Fields("Y").Value) Then PointInfo(i).Y = .Recordset.Fields("Y").Value
                If Not IsNull(.Recordset.Fields("SURF_H").Value) Then PointInfo(i).SURF_H = .Recordset.Fields("SURF_H").Value
                If Not IsNull(.Recordset.Fields("M_Date").Value) Then PointInfo(i).M_DATE = .Recordset.Fields("M_Date").Value
                If Not IsNull(.Recordset.Fields("B_CODE").Value) Then PointInfo(i).B_CODE = .Recordset.Fields("B_CODE").Value
                If Not IsNull(.Recordset.Fields("Street_No").Value) Then PointInfo(i).STREET = .Recordset.Fields("Street_No").Value
                If Not IsNull(.Recordset.Fields("Remark").Value) Then PointInfo(i).Remark = .Recordset.Fields("Remark").Value
                .Recordset.MoveNext

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -