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

📄 frmwizard1.frm

📁 一个交通专用的gis-T系统
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "comdlg32.ocx"
Begin VB.Form Frmwizard 
   Caption         =   "数据导入向导"
   ClientHeight    =   3210
   ClientLeft      =   4560
   ClientTop       =   4530
   ClientWidth     =   5415
   Icon            =   "Frmwizard1.frx":0000
   LinkTopic       =   "Form2"
   ScaleHeight     =   3210
   ScaleWidth      =   5415
   StartUpPosition =   2  '屏幕中心
   Begin VB.Frame Frame2 
      Caption         =   "新建项目:"
      Height          =   2295
      Left            =   1560
      TabIndex        =   13
      Top             =   120
      Width           =   3735
      Begin VB.TextBox txtname 
         Height          =   285
         Left            =   1080
         TabIndex        =   1
         Text            =   "NewProject"
         Top             =   840
         Width           =   2055
      End
      Begin VB.TextBox txtdir 
         Height          =   285
         Left            =   1080
         TabIndex        =   2
         Top             =   1200
         Width           =   2055
      End
      Begin VB.CommandButton cmdbrow 
         Caption         =   "..."
         Height          =   255
         Left            =   3240
         TabIndex        =   3
         Top             =   1200
         Width           =   375
      End
      Begin VB.Label Label1 
         Caption         =   "请输入项目名称及保存目录:"
         Height          =   255
         Left            =   120
         TabIndex        =   17
         Top             =   360
         Width           =   3495
      End
      Begin VB.Label Label2 
         Caption         =   "项目名称:"
         Height          =   255
         Left            =   120
         TabIndex        =   16
         Top             =   840
         Width           =   975
      End
      Begin VB.Label Label3 
         Caption         =   "保存位置:"
         Height          =   255
         Left            =   120
         TabIndex        =   15
         Top             =   1200
         Width           =   1095
      End
      Begin VB.Label Label4 
         Caption         =   "警告:原目录中若有同名项目文件,系统将自动覆盖!"
         Height          =   375
         Left            =   120
         TabIndex        =   14
         Top             =   1680
         Width           =   3495
      End
   End
   Begin VB.CommandButton cmdnext 
      Caption         =   "下一步(&N)"
      Default         =   -1  'True
      Height          =   375
      Left            =   3120
      TabIndex        =   4
      Top             =   2760
      Width           =   1095
   End
   Begin VB.PictureBox Picture2 
      Height          =   3015
      Left            =   120
      Picture         =   "Frmwizard1.frx":014A
      ScaleHeight     =   2955
      ScaleWidth      =   1275
      TabIndex        =   12
      Top             =   120
      Width           =   1335
   End
   Begin VB.CommandButton cmdprev 
      Caption         =   "上一步(&P)"
      Height          =   375
      Left            =   1680
      TabIndex        =   6
      Top             =   2760
      Width           =   975
   End
   Begin VB.Frame Frame1 
      Caption         =   "导入路段数据:"
      Height          =   1095
      Left            =   1560
      TabIndex        =   10
      Top             =   1320
      Width           =   3735
      Begin VB.CommandButton Command2 
         Caption         =   "路段数据"
         Height          =   735
         Left            =   120
         Picture         =   "Frmwizard1.frx":10B2E
         Style           =   1  'Graphical
         TabIndex        =   11
         Top             =   240
         Width           =   855
      End
      Begin VB.Label lblshow 
         Height          =   495
         Index           =   1
         Left            =   1200
         TabIndex        =   19
         Top             =   360
         Width           =   2295
      End
   End
   Begin VB.CommandButton cmddraw 
      Caption         =   "完成(&F)"
      Height          =   375
      Left            =   3360
      TabIndex        =   7
      Top             =   2760
      Width           =   975
   End
   Begin VB.CommandButton Cancel 
      Caption         =   "取消(&C)"
      Height          =   375
      Left            =   4440
      TabIndex        =   5
      Top             =   2760
      Width           =   855
   End
   Begin VB.Frame Wizard 
      Caption         =   "导入节点数据:"
      Height          =   1095
      Left            =   1560
      TabIndex        =   8
      Top             =   120
      Width           =   3735
      Begin VB.CommandButton Command1 
         Caption         =   "节点数据"
         Height          =   735
         Left            =   120
         Picture         =   "Frmwizard1.frx":110F8
         Style           =   1  'Graphical
         TabIndex        =   9
         Top             =   240
         Width           =   855
      End
      Begin VB.Label lblshow 
         Height          =   495
         Index           =   0
         Left            =   1200
         TabIndex        =   18
         Top             =   360
         Width           =   2295
      End
   End
   Begin VB.PictureBox Picture1 
      Height          =   3015
      Left            =   120
      Picture         =   "Frmwizard1.frx":11763
      ScaleHeight     =   2955
      ScaleWidth      =   1275
      TabIndex        =   0
      Top             =   120
      Width           =   1335
   End
   Begin MSComDlg.CommonDialog dlgCommonDialog 
      Left            =   1560
      Top             =   2640
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
End
Attribute VB_Name = "Frmwizard"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'*********************************************************************
'*
'*                本源码完全免费,共交通同仁学习参考                 *
'*                      www.tranbbs.com                              *
'*                   Developed by Yang Ming                          *
'*       Nanjing Institute of City Transportation Planning           *
'*                 请保留本版权信息,谢谢合作                        *
'*                      中国交通技术论坛                             *
'*                                                                   *
'*                                                                   *
'*********************************************************************
Const NameNotInCollection = 3265
Private Sub Cancel_Click()

Unload Frmwizard

End Sub

Private Sub cmdsetup_Click()

Load frmnetworksetup
frmnetworksetup.Show

End Sub

Private Sub cmdbrow_Click()
    Dim tt
    Newpath = BrowseForFolder(Frmwizard.hWnd, "Please select a directory for saving data:")
    If Trim(Newpath) <> "" Then
       tt = ReadIndex("Rec")
       WriteIndex "P" + Trim(tt), Newpath
       WriteIndex "Rec", Str(Val(tt) + 1)
       txtdir.Text = Newpath
       If Right(txtdir.Text, 1) <> "\" Then
            txtdir.Text = txtdir.Text & "\"
       End If
    End If
End Sub

Private Sub cmddraw_Click()

    Unload Frmwizard
    Load FrmProgress
    FrmProgress.Show
    On Error Resume Next
        
    '格式化数据库

    NodeRadius = 2
    NodeColor = 255
    LinkWidth = 1
    LinkColor = miColorBlue

    Dim RsTable As TableDef
    Dim Fd As Field

    Set RsTable = mDbBiblio.TableDefs("Links")
    Dim TestField As String
    Dim ExistsTableQuery As Boolean
    
    '如果没有linkid字段则创建
    TestField = RsTable("LinkId").Name
    If Err = NameNotInCollection Then
        ExistsTableQuery = True
        Set Fd = RsTable.CreateField("LinkId", dbLong)
        RsTable.Fields.Append Fd
        Err = 0
    End If
    '如果没有linkType字段则创建
    TestField = RsTable("LinkType").Name
    If Err = NameNotInCollection Then
        ExistsTableQuery = True
        Set Fd = RsTable.CreateField("LinkType", dbText)
        RsTable.Fields.Append Fd
        Err = 0
    End If
    '如果没有Length字段则创建
    TestField = RsTable("Length").Name
    If Err = NameNotInCollection Then
        ExistsTableQuery = True
        Set Fd = RsTable.CreateField("Length", dbLong)
        RsTable.Fields.Append Fd
        Err = 0
    End If

⌨️ 快捷键说明

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