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

📄 f_clxx.frm

📁 易通汽车维修信息管理系统初期开发版本
💻 FRM
字号:
VERSION 5.00
Object = "{3A6644DE-3402-11D9-9DE7-C33FAA87690A}#1.0#0"; "WinXPCEngine.ocx"
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "msadodc.ocx"
Begin VB.Form F_CLXX 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "建立维修车辆档案"
   ClientHeight    =   3750
   ClientLeft      =   45
   ClientTop       =   435
   ClientWidth     =   4935
   ControlBox      =   0   'False
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3750
   ScaleMode       =   0  'User
   ScaleWidth      =   3660
   ShowInTaskbar   =   0   'False
   StartUpPosition =   1  '所有者中心
   Begin VB.TextBox Text5 
      Alignment       =   2  'Center
      BackColor       =   &H00C0E0FF&
      ForeColor       =   &H00C00000&
      Height          =   270
      Left            =   720
      Locked          =   -1  'True
      MaxLength       =   8
      TabIndex        =   16
      Top             =   1680
      Visible         =   0   'False
      Width           =   1455
   End
   Begin VB.PictureBox Picture1 
      Appearance      =   0  'Flat
      BackColor       =   &H80000005&
      BorderStyle     =   0  'None
      ForeColor       =   &H80000008&
      Height          =   855
      Left            =   0
      ScaleHeight     =   855
      ScaleWidth      =   4935
      TabIndex        =   14
      Top             =   0
      Width           =   4935
      Begin VB.Image Image1 
         Height          =   750
         Left            =   240
         Picture         =   "F_CLXX.frx":0000
         Top             =   60
         Width           =   750
      End
      Begin VB.Label Label9 
         BackStyle       =   0  'Transparent
         Caption         =   $"F_CLXX.frx":1DF2
         Height          =   735
         Left            =   1320
         TabIndex        =   15
         Top             =   120
         Width           =   3375
      End
   End
   Begin VB.TextBox Text4 
      Alignment       =   2  'Center
      BackColor       =   &H00C0E0FF&
      ForeColor       =   &H00C00000&
      Height          =   270
      Left            =   3240
      Locked          =   -1  'True
      MaxLength       =   7
      TabIndex        =   13
      Top             =   1680
      Width           =   1455
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   330
      Left            =   240
      Top             =   4080
      Width           =   1200
      _ExtentX        =   2117
      _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.TextBox Text3 
      Alignment       =   2  'Center
      Height          =   270
      Left            =   3240
      TabIndex        =   2
      Top             =   2640
      Width           =   1455
   End
   Begin VB.TextBox Text1 
      BackColor       =   &H00C0FFC0&
      Height          =   270
      Left            =   1080
      TabIndex        =   0
      Top             =   2160
      Width           =   3615
   End
   Begin VB.TextBox Text2 
      Alignment       =   2  'Center
      Height          =   270
      IMEMode         =   3  'DISABLE
      Left            =   1080
      TabIndex        =   1
      Top             =   2640
      Width           =   1455
   End
   Begin VB.CommandButton Command2 
      Caption         =   "取消"
      Height          =   375
      Left            =   3360
      TabIndex        =   5
      Top             =   3240
      Width           =   1335
   End
   Begin VB.CommandButton Command1 
      Caption         =   "保存"
      Height          =   375
      Left            =   1920
      TabIndex        =   3
      Top             =   3240
      Width           =   1335
   End
   Begin WinXPC_Engine.WindowsXPC WindowsXPC1 
      Left            =   240
      Top             =   4440
      _ExtentX        =   6588
      _ExtentY        =   1085
      ColorScheme     =   2
      Common_Dialog   =   0   'False
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "档案编号:"
      Height          =   180
      Left            =   240
      TabIndex        =   12
      Top             =   1120
      Width           =   900
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "单位名称"
      Height          =   180
      Left            =   240
      TabIndex        =   8
      Top             =   2200
      Width           =   720
   End
   Begin VB.Line Line2 
      BorderColor     =   &H80000009&
      X1              =   88.997
      X2              =   3559.878
      Y1              =   1455
      Y2              =   1455
   End
   Begin VB.Line Line1 
      BorderColor     =   &H80000001&
      X1              =   88.997
      X2              =   3559.878
      Y1              =   1440
      Y2              =   1440
   End
   Begin VB.Line Line4 
      BorderColor     =   &H80000009&
      X1              =   88.997
      X2              =   3559.878
      Y1              =   3135
      Y2              =   3135
   End
   Begin VB.Line Line3 
      BorderColor     =   &H80000001&
      X1              =   88.997
      X2              =   3559.878
      Y1              =   3120
      Y2              =   3120
   End
   Begin VB.Label Label6 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "牌照号码"
      Height          =   180
      Left            =   2400
      TabIndex        =   11
      Top             =   1725
      Width           =   720
   End
   Begin VB.Label Label5 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "    车型"
      Height          =   180
      Left            =   2400
      TabIndex        =   10
      Top             =   2680
      Width           =   720
   End
   Begin VB.Label Label4 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "联系电话"
      Height          =   180
      Left            =   240
      TabIndex        =   9
      Top             =   2680
      Width           =   720
   End
   Begin VB.Label L_JDRQ 
      Alignment       =   2  'Center
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Height          =   180
      Left            =   4245
      TabIndex        =   7
      Top             =   1125
      Width           =   90
   End
   Begin VB.Label L_DABH 
      Alignment       =   2  'Center
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      ForeColor       =   &H000000C0&
      Height          =   180
      Left            =   1725
      TabIndex        =   6
      Top             =   1125
      Width           =   90
   End
   Begin VB.Label Label7 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "建档日期:"
      Height          =   180
      Left            =   2880
      TabIndex        =   4
      Top             =   1120
      Width           =   900
   End
End
Attribute VB_Name = "F_CLXX"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub Command1_Click()
    Wxda = MsgBox("牌照号 " & Text4.Text & " 的下列信息是否正确?" & vbCrLf & _
    vbCrLf & "单位名称:" & Text1.Text & vbCrLf & "联系电话:" & Text2.Text & vbCrLf & _
    "    车型:" & Text3.Text, vbYesNo + vbQuestion)
        If Wxda = vbYes Then
            With Adodc1
                .Recordset.AddNew
                .Recordset("档案编号") = L_DABH.Caption
                .Recordset("建档日期") = L_JDRQ.Caption
                .Recordset("送修单位") = Text1.Text
                .Recordset("联系电话") = Text2.Text
                .Recordset("车型") = Text3.Text
                .Recordset("牌照号码") = Text4.Text
                .Recordset("拼音码") = Text5.Text
                .Recordset("操作员代码") = F_LONG.UserCode
                .Recordset.Update
            End With
        Else
            With Text1
                .SetFocus
                .SelStart = 0
                .SelLength = Len(Text1.Text)
            End With
            Exit Sub
        End If
        
        MsgBox "维修车辆档案登记完成;" & vbCrLf & "请进行维修登记。", vbOKOnly + vbInformation
        F_WXDJ.Show 1
        Unload Me
End Sub

Private Sub Command2_Click()
    Unload Me
End Sub

Private Sub Form_Load()
    L_DABH.Caption = UDate & F_PZH.Pzh
    L_JDRQ.Caption = UDate
    Text4.Text = F_QRPZ.Label1.Caption
    
    With Adodc1
        .ConnectionString = Conn
        .RecordSource = "SELECT * FROM [维修车辆档案表] WHERE ID=0"
        .Refresh
    End With
End Sub

Private Sub Text1_Change()
    Text5.Text = ""
    Dim A As Integer
    A = Len(Text1.Text)
    For I = 1 To A
    Text5.Text = Text5.Text & PY(Mid(Text1.Text, I, 1))
    Next I
End Sub

Private Sub Text1_GotFocus()
    Text1.BackColor = &HC0FFC0
    Text2.BackColor = &HFFFFFF
    Text3.BackColor = &HFFFFFF
End Sub

Private Sub Text1_KeyPress(KeyAscii As Integer)
    If KeyAscii = Asc(vbCr) Then Text2.SetFocus
End Sub

Private Sub Text2_KeyPress(KeyAscii As Integer)
    If KeyAscii = Asc(vbCr) Then Text3.SetFocus
End Sub

Private Sub Text3_KeyPress(KeyAscii As Integer)
    If KeyAscii = Asc(vbCr) Then Command1.SetFocus
End Sub

Private Sub Text2_GotFocus()
    Text2.BackColor = &HC0FFC0
    Text1.BackColor = &HFFFFFF
    Text3.BackColor = &HFFFFFF
End Sub

Private Sub Text3_GotFocus()
    Text3.BackColor = &HC0FFC0
    Text2.BackColor = &HFFFFFF
    Text1.BackColor = &HFFFFFF
End Sub

Private Sub Command1_GotFocus()
    Text1.BackColor = &HFFFFFF
    Text2.BackColor = &HFFFFFF
    Text3.BackColor = &HFFFFFF
End Sub

⌨️ 快捷键说明

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