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

📄 form4.frm

📁 路面结构设计系统的界面和部分功能,包括结构图的预览,路面结构模型的数据库管理
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form4 
   Caption         =   "设计参数输入"
   ClientHeight    =   7710
   ClientLeft      =   60
   ClientTop       =   390
   ClientWidth     =   13860
   LinkTopic       =   "Form4"
   Moveable        =   0   'False
   ScaleHeight     =   7710
   ScaleWidth      =   13860
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command8 
      Caption         =   "读取模型"
      Height          =   495
      Left            =   8040
      TabIndex        =   40
      Top             =   6960
      Width           =   1215
   End
   Begin VB.TextBox Text8 
      Height          =   375
      Left            =   5040
      TabIndex        =   39
      Text            =   "30"
      Top             =   6000
      Width           =   1215
   End
   Begin VB.TextBox Text7 
      Height          =   375
      Left            =   5040
      TabIndex        =   37
      Text            =   "8"
      Top             =   5400
      Width           =   1215
   End
   Begin VB.TextBox Text6 
      Height          =   375
      Left            =   1920
      TabIndex        =   33
      Text            =   "60"
      Top             =   6000
      Width           =   855
   End
   Begin VB.CommandButton Command7 
      Caption         =   "退出"
      Height          =   495
      Left            =   9840
      TabIndex        =   31
      Top             =   6960
      Width           =   1455
   End
   Begin VB.TextBox Text2 
      Height          =   375
      Left            =   5760
      TabIndex        =   30
      Text            =   "560"
      Top             =   3120
      Width           =   1335
   End
   Begin VB.TextBox Text1 
      Height          =   375
      Left            =   1800
      TabIndex        =   27
      Text            =   "60"
      Top             =   3480
      Width           =   615
   End
   Begin VB.ComboBox Combo4 
      Height          =   300
      Left            =   5040
      TabIndex        =   25
      Text            =   "1"
      Top             =   4920
      Width           =   1215
   End
   Begin VB.CommandButton Command2 
      Caption         =   "计算当量标准轴载次数"
      Height          =   495
      Left            =   4560
      TabIndex        =   12
      Top             =   3720
      Width           =   2055
   End
   Begin VB.TextBox Text5 
      Height          =   375
      Left            =   5760
      TabIndex        =   10
      Text            =   "600"
      Top             =   2640
      Width           =   1335
   End
   Begin VB.Frame Frame4 
      Caption         =   "交通参数"
      Height          =   2295
      Left            =   3960
      TabIndex        =   20
      Top             =   2040
      Width           =   3255
      Begin VB.Label Label11 
         Caption         =   "半刚性基层用:"
         Height          =   255
         Left            =   120
         TabIndex        =   29
         Top             =   1200
         Width           =   1215
      End
      Begin VB.Label Label10 
         Caption         =   "弯沉和沥青层用:"
         Height          =   375
         Left            =   120
         TabIndex        =   28
         Top             =   720
         Width           =   1455
      End
      Begin VB.Label Label1 
         Caption         =   "当量标准轴载次数"
         Height          =   255
         Left            =   480
         TabIndex        =   21
         Top             =   240
         Width           =   1695
      End
   End
   Begin VB.CommandButton Command3 
      Caption         =   "输入材料和几何参数"
      Height          =   735
      Left            =   7560
      TabIndex        =   1
      Top             =   480
      Width           =   5775
   End
   Begin VB.PictureBox Picture1 
      Height          =   5175
      Left            =   7440
      ScaleHeight     =   1000
      ScaleMode       =   0  'User
      ScaleWidth      =   800
      TabIndex        =   0
      Top             =   1440
      Width           =   6015
   End
   Begin VB.Frame Frame3 
      Caption         =   "路面结构参数"
      Height          =   6495
      Left            =   7320
      TabIndex        =   19
      Top             =   120
      Width           =   6255
   End
   Begin VB.Frame Frame2 
      Caption         =   "控制参数和设计内容"
      Height          =   2175
      Left            =   240
      TabIndex        =   18
      Top             =   4440
      Width           =   6975
      Begin VB.CheckBox Check2 
         Caption         =   "验算弯拉应力"
         Height          =   495
         Left            =   600
         TabIndex        =   35
         Top             =   960
         Width           =   1455
      End
      Begin VB.CheckBox Check1 
         Caption         =   "验算抗冻深度"
         Height          =   495
         Left            =   600
         TabIndex        =   34
         Top             =   480
         Width           =   1575
      End
      Begin VB.Label Label13 
         Caption         =   "最小设计厚度"
         Height          =   375
         Left            =   3240
         TabIndex        =   38
         Top             =   1560
         Width           =   1215
      End
      Begin VB.Label Label12 
         Caption         =   "最大设计厚度"
         Height          =   255
         Left            =   3240
         TabIndex        =   36
         Top             =   1080
         Width           =   1215
      End
      Begin VB.Label Label8 
         Caption         =   "最小防冻厚度"
         Height          =   255
         Left            =   360
         TabIndex        =   32
         Top             =   1680
         Width           =   1215
      End
      Begin VB.Label Label2 
         Caption         =   "设计控制层位:"
         Height          =   495
         Left            =   3240
         TabIndex        =   24
         Top             =   600
         Width           =   1215
      End
   End
   Begin VB.CommandButton Command1 
      Caption         =   "设计弯沉计算"
      Height          =   495
      Left            =   2280
      TabIndex        =   11
      Top             =   2520
      Width           =   1215
   End
   Begin VB.TextBox Text4 
      Height          =   375
      Left            =   1200
      TabIndex        =   9
      Text            =   "20"
      ToolTipText     =   "单位:mm"
      Top             =   2520
      Width           =   855
   End
   Begin VB.ComboBox Combo3 
      Height          =   300
      ItemData        =   "Form4.frx":0000
      Left            =   5040
      List            =   "Form4.frx":000A
      TabIndex        =   8
      Text            =   "新建公路"
      Top             =   600
      Width           =   1695
   End
   Begin VB.ComboBox Combo2 
      Height          =   300
      ItemData        =   "Form4.frx":0022
      Left            =   1920
      List            =   "Form4.frx":0035
      TabIndex        =   7
      Text            =   "高速公路"
      Top             =   1440
      Width           =   1575
   End
   Begin VB.ComboBox Combo1 
      Height          =   300
      ItemData        =   "Form4.frx":006B
      Left            =   5040
      List            =   "Form4.frx":0084
      TabIndex        =   6
      Text            =   "Ⅰ"
      Top             =   1440
      Width           =   1695
   End
   Begin VB.TextBox Text3 
      Height          =   375
      Left            =   1920
      TabIndex        =   5
      Text            =   "xxxx"
      Top             =   480
      Width           =   1575
   End
   Begin VB.CommandButton Command6 
      Caption         =   "保存模型"
      Height          =   495
      Left            =   6120
      TabIndex        =   4
      Top             =   6960
      Width           =   1335
   End
   Begin VB.CommandButton Command5 
      Caption         =   "绘图"
      Height          =   495
      Left            =   4080
      TabIndex        =   3
      Top             =   6960
      Width           =   1455
   End
   Begin VB.CommandButton Command4 
      Caption         =   "计算"
      Height          =   495
      Left            =   2040
      TabIndex        =   2
      Top             =   6960
      Width           =   1575
   End
   Begin VB.Frame Frame1 
      Caption         =   "工程属性"
      Height          =   1815
      Left            =   240
      TabIndex        =   13
      Top             =   120
      Width           =   6975
      Begin VB.Label Label4 
         Caption         =   "公路区划"
         Height          =   375
         Left            =   3600
         TabIndex        =   17
         Top             =   1320
         Width           =   855
      End
      Begin VB.Label Label6 
         Caption         =   "道路类型"
         Height          =   495
         Left            =   3600
         TabIndex        =   16
         Top             =   480
         Width           =   855
      End
      Begin VB.Label Label3 
         AutoSize        =   -1  'True
         Caption         =   "工程名称"
         ForeColor       =   &H8000000D&
         Height          =   180
         Left            =   360
         TabIndex        =   15
         Top             =   480
         Width           =   720
      End
      Begin VB.Label Label5 
         Caption         =   "道路等级"
         Height          =   255
         Left            =   360
         TabIndex        =   14
         Top             =   1320
         Width           =   975
      End
   End
   Begin VB.Frame Frame5 
      Caption         =   "设计参数"
      Height          =   2295
      Left            =   240
      TabIndex        =   22
      Top             =   2040
      Width           =   3615
      Begin VB.Label Label9 
         Caption         =   "土基回弹模量"
         Height          =   495
         Left            =   120
         TabIndex        =   26
         Top             =   1560
         Width           =   1215
      End
      Begin VB.Label Label7 
         Caption         =   "设计弯沉"
         Height          =   375
         Left            =   120
         TabIndex        =   23
         Top             =   360
         Width           =   1215
      End
   End
   Begin VB.Line Line1 
      X1              =   240
      X2              =   13680
      Y1              =   6840
      Y2              =   6840
   End
End
Attribute VB_Name = "Form4"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub Check1_Click()
If Check1.Value = 1 Then
Text6.Enabled = True
Else
Text6.Enabled = False
End If
End Sub

Private Sub Combo3_Change()
MsgBox Combo3.Text
End Sub

Public Sub Tomodal()
ASPHALTPAV.AP_CTROLY = Val(Combo4.Text)
ASPHALTPAV.AP_DESIGF = Val(Text4.Text)
ASPHALTPAV.AP_DSCRIB = " "
ASPHALTPAV.AP_LOADNUM1 = Val(Text5.Text)
ASPHALTPAV.AP_LOADNUM2 = Val(Text2.Text)
ASPHALTPAV.AP_AFTH = Val(Text6.Text)
'ASPHALTPAV.AP_LYS15MO
'ASPHALTPAV.AP_LYS20MO
'ASPHALTPAV.AP_LYSBH
'ASPHALTPAV.AP_LYSCHA
'ASPHALTPAV.AP_LYSNAME
'ASPHALTPAV.AP_LYSSTR
'ASPHALTPAV.AP_LYSTH
'ASPHALTPAV.AP_NATRUECONDITION
 ASPHALTPAV.AP_PAVGRA = Combo2.Text
 ASPHALTPAV.AP_PAVPRO = "公路沥青路面"
'ASPHALTPAV.AP_STRUNUM
'ASPHALTPAV.AP_PROID
 ASPHALTPAV.AP_PRONAME = Text3.Text
'ASPHALTPAV.AP_PROROCombo1.Text
End Sub

Private Sub Command3_Click()
Dialog2.Show
End Sub

Private Sub Command4_Click()
drawnm
End Sub

Private Sub Form_Load()
Check1.Value = 1
Check2.Value = 1

End Sub

Private Sub drawnm()
Dim sts(1 To 10) As String
Dim datath(1 To 10) As Double
Dim stsl(1 To 10) As Long
Dim i As Integer
'Picture1.Cls
i = 1
'ASPHALTPAV.GetInfo (Adodc1.Recordset.Fields(0))
Call strdata(ASPHALTPAV.AP_LYSTH, datath())
Call strstrs(ASPHALTPAV.AP_LYSNAME, sts())
Picture1.CurrentX = 20
Picture1.CurrentY = 10
Picture1.Print "工程名称:" & ASPHALTPAV.AP_PRONAME + "; 公路等级:" & ASPHALTPAV.AP_PAVGRA
Picture1.CurrentX = 360
Picture1.CurrentY = 60
Picture1.Print "路面结构模型"
'Picture1.Line (100, 60)-(700, 60), vbRed
For i = 1 To ASPHALTPAV.AP_STRUNUM - 1
Picture1.Line (100, 60 + 60 * i)-(700, 60 + 60 * i), vbRed
Picture1.CurrentY = 70 + i * 60
Picture1.CurrentX = 300 - 10 * Len(sts(i)) / 2
Picture1.Print sts(i) & "   厚度:" & Str(datath(i)) & "CM"
Next i
Picture1.Line (100, 60 + 60 * i)-(700, 60 + 60 * i), vbRed
i = i + 1
Picture1.CurrentY = 70 + i * 60
Picture1.CurrentX = 300 - 10 * Len(sts(i)) / 2
Picture1.Print sts(i)
Picture1.CurrentY = 90 + i * 60
Picture1.CurrentX = 20
Picture1.Print "该路面结构设计控制层位为第" & Str(ASPHALTPAV.AP_CTROLY) & "层。"

Picture1.CurrentY = 120 + i * 60
Picture1.CurrentX = 20
Picture1.Print "验算沥青面层用累计标准轴载次数:" & Str(ASPHALTPAV.AP_LOADNUM1) & "万次。"

Picture1.CurrentY = 150 + i * 60
Picture1.CurrentX = 20
Picture1.Print "验算半刚性基层用累计标准轴载次数:" & Str(ASPHALTPAV.AP_LOADNUM2) & "万次。"
End Sub

Private Sub Text3_Change()
drawnm
End Sub

⌨️ 快捷键说明

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