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

📄 frmevaluateother.frm

📁 FloodEvaluation-程序是gis方面的程序
💻 FRM
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form frmEvaluateOther 
   Caption         =   "单项洪灾损失评估"
   ClientHeight    =   3255
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   5400
   Icon            =   "frmEvaluateOther.frx":0000
   LinkTopic       =   "Form1"
   ScaleHeight     =   3255
   ScaleWidth      =   5400
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton cmdOK 
      Caption         =   "确认"
      Height          =   375
      Left            =   1800
      TabIndex        =   17
      Top             =   2760
      Width           =   735
   End
   Begin VB.CommandButton cmdCancel 
      Caption         =   "取消"
      Height          =   375
      Left            =   480
      TabIndex        =   16
      Top             =   2760
      Width           =   735
   End
   Begin VB.Frame Frame2 
      Caption         =   "评估参数"
      Height          =   1575
      Left            =   3120
      TabIndex        =   9
      Top             =   120
      Width           =   2175
      Begin VB.TextBox txtItemName 
         Alignment       =   1  'Right Justify
         Height          =   285
         Left            =   960
         TabIndex        =   13
         Text            =   "未命名"
         Top             =   240
         Width           =   975
      End
      Begin VB.TextBox txtItemPrice 
         Alignment       =   1  'Right Justify
         Height          =   285
         Left            =   960
         TabIndex        =   11
         Text            =   "2000"
         Top             =   720
         Width           =   975
      End
      Begin VB.CommandButton cmdLossRate 
         BackColor       =   &H000000FF&
         Caption         =   "洪水损率"
         Height          =   375
         Left            =   960
         MaskColor       =   &H00004000&
         TabIndex        =   10
         Top             =   1080
         Width           =   975
      End
      Begin VB.Label Label2 
         Caption         =   "设置"
         Height          =   255
         Left            =   240
         TabIndex        =   15
         Top             =   1200
         Width           =   495
      End
      Begin VB.Label Label1 
         Caption         =   "名称"
         Height          =   255
         Left            =   240
         TabIndex        =   14
         Top             =   240
         Width           =   495
      End
      Begin VB.Label Label23 
         Caption         =   "价格"
         Height          =   255
         Left            =   240
         TabIndex        =   12
         Top             =   720
         Width           =   495
      End
   End
   Begin VB.Frame Frame3 
      Caption         =   "将评估结果保存为"
      Height          =   735
      Left            =   120
      TabIndex        =   6
      Top             =   1800
      Width           =   2895
      Begin VB.CommandButton cmdResult 
         Caption         =   "..."
         Height          =   375
         Left            =   2400
         TabIndex        =   8
         Top             =   240
         Width           =   375
      End
      Begin VB.TextBox txtPathResult 
         Height          =   405
         Left            =   120
         TabIndex        =   7
         Top             =   240
         Width           =   2295
      End
   End
   Begin VB.Frame Frame4 
      Caption         =   "输入评估项目分布"
      Height          =   735
      Left            =   120
      TabIndex        =   3
      Top             =   960
      Width           =   2895
      Begin VB.CommandButton cmdItemDistribute 
         Caption         =   "..."
         Height          =   375
         Left            =   2400
         TabIndex        =   5
         Top             =   240
         Width           =   375
      End
      Begin VB.TextBox txtItemDistribute 
         Height          =   405
         Left            =   120
         TabIndex        =   4
         Top             =   240
         Width           =   2295
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "输入淹没深度分布"
      Height          =   735
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   2895
      Begin VB.TextBox txtWaterDepth 
         Height          =   405
         Left            =   120
         TabIndex        =   2
         Top             =   240
         Width           =   2295
      End
      Begin VB.CommandButton cmdWaterDepth 
         Caption         =   "..."
         Height          =   375
         Left            =   2400
         TabIndex        =   1
         Top             =   240
         Width           =   375
      End
   End
   Begin MSComDlg.CommonDialog CommonDlg 
      Left            =   120
      Top             =   1440
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
End
Attribute VB_Name = "frmEvaluateOther"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public flagOK As Boolean
Public flagResult As Boolean
Public pRasDepthLyr As IRasterLayer
Public pShpItemDistrLyr As IFeatureLayer

Private Sub form_load()
    flagOK = False
    flagResult = False
End Sub

Private Sub cmdCancel_Click()
    flagOK = False
    Me.Hide
End Sub

Private Sub cmdOK_Click()
    flagOK = True
    numItemPrice = CInt(txtItemPrice.Text)
    Me.Hide
End Sub

Private Sub cmdItemDistribute_Click()
    Dim sReturn As String
    Set pShpItemDistrLyr = BrowseToOpenLayer("poly", sReturn, "打开用于评估的财物分布")
    txtItemDistribute = sReturn
End Sub

Private Sub cmdWaterDepth_Click()
    Dim sReturn As String
    Set pRasDepthLyr = BrowseToOpenLayer("raster", sReturn, "打开用于评估的洪水深度分布")
    txtWaterDepth = sReturn
End Sub

Private Sub cmdResult_Click()
    CommonDlg.DialogTitle = "结果文件保存为"
    CommonDlg.FileName = "C:\Program Files\BeijiangTemp\floodSumOther.shp"
    CommonDlg.Filter = "Shape file(*.shp)|*.shp"
    CommonDlg.ShowSave
    txtPathResult = CommonDlg.FileName
End Sub


'Private Sub cmdLossRate_Click()
'
'    frmLossRateDetail.Left = (Screen.Width - frmLossRateDetail.Width) / 2
'    frmLossRateDetail.Top = (Screen.Height - frmLossRateDetail.Height) / 2
'    frmLossRateDetail.Show vbModal
'
'    If Not frmLossRateDetail.bOKFlag Then
'        Exit Sub
'    End If
'
'    Dim i As Integer
'    numItemRate = m_numRateLevel
'    For i = 0 To numItemRate - 1
'        depthItemBreak(i) = m_depthBreak(i)
'        rateItem(numItemRate) = m_lossRate(numItemRate)
'    Next i
'    rateItem(i) = m_lossRate(i)
'
'    'numItemPrice =
'
'    If frmLossRateDetail.bOKFlag And flagResult Then cmdOK.Enabled = True
'End Sub


⌨️ 快捷键说明

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