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

📄 frmwx.frm

📁 用sql和VB制作的小型通用汽车管理系统。该系统可实现了汽车管理的自动化技术。
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "msflxgrd.ocx"
Begin VB.Form frmWX 
   Caption         =   "维修单信息"
   ClientHeight    =   6516
   ClientLeft      =   48
   ClientTop       =   348
   ClientWidth     =   8160
   LinkTopic       =   "Form1"
   MDIChild        =   -1  'True
   ScaleHeight     =   6516
   ScaleWidth      =   8160
   WindowState     =   2  'Maximized
   Begin VB.TextBox txtJLDW 
      Height          =   372
      Left            =   7680
      TabIndex        =   24
      Top             =   6000
      Visible         =   0   'False
      Width           =   252
   End
   Begin VB.TextBox txtWZMC 
      Height          =   372
      Left            =   7200
      TabIndex        =   23
      Top             =   6000
      Visible         =   0   'False
      Width           =   252
   End
   Begin VB.TextBox txtWZDM 
      Height          =   372
      Left            =   360
      TabIndex        =   22
      Top             =   6480
      Visible         =   0   'False
      Width           =   252
   End
   Begin VB.TextBox txt_YWDM 
      Height          =   372
      Left            =   0
      TabIndex        =   21
      Top             =   6480
      Visible         =   0   'False
      Width           =   252
   End
   Begin VB.TextBox txtM_DATE 
      Height          =   372
      Left            =   480
      TabIndex        =   20
      Top             =   6000
      Visible         =   0   'False
      Width           =   252
   End
   Begin VB.TextBox txtM_NO 
      Height          =   372
      Left            =   0
      TabIndex        =   19
      Top             =   6000
      Visible         =   0   'False
      Width           =   252
   End
   Begin VB.Frame Frame2 
      Caption         =   "记录操作"
      Height          =   972
      Left            =   960
      TabIndex        =   15
      Top             =   5400
      Width           =   6000
      Begin VB.CommandButton cmdAdd 
         Caption         =   "添加配件"
         Height          =   375
         Left            =   240
         TabIndex        =   18
         Top             =   360
         Width           =   1700
      End
      Begin VB.CommandButton cmdModify 
         Caption         =   "修改配件"
         Height          =   375
         Left            =   2160
         TabIndex        =   17
         Top             =   360
         Width           =   1700
      End
      Begin VB.CommandButton cmdDelete 
         Caption         =   "删除配件"
         Height          =   375
         Left            =   4080
         TabIndex        =   16
         Top             =   360
         Width           =   1700
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "维修单基本信息:"
      Height          =   1920
      Index           =   0
      Left            =   120
      TabIndex        =   2
      Top             =   0
      Width           =   7932
      Begin VB.ComboBox Combo1 
         Height          =   288
         Index           =   2
         Left            =   3360
         Style           =   2  'Dropdown List
         TabIndex        =   34
         Top             =   1080
         Width           =   1812
      End
      Begin VB.TextBox txtItem 
         Height          =   270
         Index           =   6
         Left            =   6120
         MaxLength       =   20
         TabIndex        =   33
         Top             =   1080
         Width           =   1572
      End
      Begin VB.CommandButton cmdCANCEL 
         Caption         =   "取消维修单"
         Height          =   375
         Left            =   3720
         TabIndex        =   30
         Top             =   1440
         Width           =   1812
      End
      Begin VB.CommandButton cmdOK 
         Caption         =   "确定维修单"
         Height          =   375
         Left            =   1680
         TabIndex        =   29
         Top             =   1440
         Width           =   1692
      End
      Begin VB.TextBox txtItem 
         Height          =   270
         Index           =   5
         Left            =   960
         MaxLength       =   20
         TabIndex        =   27
         Top             =   1080
         Width           =   1572
      End
      Begin VB.TextBox txtItem 
         Height          =   270
         Index           =   4
         Left            =   6120
         MaxLength       =   20
         TabIndex        =   25
         Top             =   720
         Width           =   1572
      End
      Begin VB.ComboBox Combo1 
         Height          =   288
         Index           =   1
         Left            =   6120
         Style           =   2  'Dropdown List
         TabIndex        =   14
         Top             =   360
         Width           =   1572
      End
      Begin VB.TextBox txtItem 
         Height          =   270
         Index           =   3
         Left            =   3360
         MaxLength       =   20
         TabIndex        =   11
         Top             =   720
         Width           =   1812
      End
      Begin VB.TextBox txtItem 
         Height          =   270
         Index           =   2
         Left            =   960
         MaxLength       =   20
         TabIndex        =   7
         Top             =   720
         Width           =   1572
      End
      Begin VB.TextBox txtItem 
         Height          =   270
         Index           =   0
         Left            =   7920
         MaxLength       =   20
         TabIndex        =   5
         Top             =   1080
         Visible         =   0   'False
         Width           =   372
      End
      Begin VB.ComboBox Combo1 
         Height          =   288
         Index           =   0
         Left            =   3360
         Style           =   2  'Dropdown List
         TabIndex        =   4
         Top             =   360
         Width           =   1812
      End
      Begin VB.TextBox txtItem 
         Height          =   270
         Index           =   1
         Left            =   960
         MaxLength       =   20
         TabIndex        =   3
         Top             =   360
         Width           =   1572
      End
      Begin VB.Label Label2 
         Caption         =   "支付方式:"
         Height          =   252
         Index           =   14
         Left            =   2640
         TabIndex        =   32
         Top             =   1080
         Width           =   1092
      End
      Begin VB.Label Label2 
         Caption         =   "预付比例:"
         Height          =   252
         Index           =   13
         Left            =   5400
         TabIndex        =   31
         Top             =   1080
         Width           =   1092
      End
      Begin VB.Label Label2 
         Caption         =   "折扣比例:"
         Height          =   252
         Index           =   7
         Left            =   240
         TabIndex        =   28
         Top             =   1080
         Width           =   1092
      End
      Begin VB.Label Label2 
         Caption         =   "汽车类型:"
         Height          =   252
         Index           =   6
         Left            =   5400
         TabIndex        =   26
         Top             =   720
         Width           =   1092
      End
      Begin VB.Label Label2 
         Caption         =   "汽车型号:"
         Height          =   252
         Index           =   1
         Left            =   240
         TabIndex        =   13
         Top             =   720
         Width           =   1092
      End
      Begin VB.Label Label2 
         Caption         =   "车主姓名:"
         Height          =   252
         Index           =   4
         Left            =   2640
         TabIndex        =   12
         Top             =   720
         Width           =   1092
      End
      Begin VB.Label Label2 
         Caption         =   "业  务  员:"
         Height          =   252
         Index           =   3
         Left            =   2640
         TabIndex        =   9
         Top             =   360
         Width           =   1092
      End
      Begin VB.Label Label2 
         Caption         =   "车牌号码:"
         Height          =   252
         Index           =   2
         Left            =   5400
         TabIndex        =   8
         Top             =   360
         Width           =   1092
      End
      Begin VB.Label Label2 
         Caption         =   "日        期:"
         Height          =   252
         Index           =   5
         Left            =   240
         TabIndex        =   6
         Top             =   360
         Width           =   1092
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "配件信息"
      Height          =   3252
      Index           =   1
      Left            =   120
      TabIndex        =   0
      Top             =   2040
      Width           =   7932
      Begin MSFlexGridLib.MSFlexGrid msgList 
         Height          =   2892
         Left            =   120
         TabIndex        =   1
         Top             =   240
         Width           =   7692
         _ExtentX        =   13568
         _ExtentY        =   5101
         _Version        =   393216
         Cols            =   4
         FixedCols       =   2
         AllowUserResizing=   1
      End
   End
   Begin VB.Label lblTitle 
      Caption         =   "生  产  配  料  单  设  置  信  息  列  表"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H8000000D&
      Height          =   252
      Left            =   480
      TabIndex        =   10
      Top             =   240
      Visible         =   0   'False
      Width           =   5532
   End
End
Attribute VB_Name = "frmWX"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Public txtSQL As String
Dim mrc As ADODB.Recordset
Dim MsgText As String

Private Sub cmdAdd_Click()
    If gintPLLISTmode = 1 Then
        If Trim(txtItem(0)) <> "" And Trim(Combo1(1)) <> "" And Trim(Combo1(0)) <> "" Then
            txtSQL = "select * from outh where outh_no ='" & Trim(txtItem(0)) & "'"
            Set mrc = ExecuteSQL(txtSQL, MsgText)
            If mrc.EOF = False Then
                MsgBox "已经存在相同编号的维修单记录!", vbOKOnly + vbExclamation, "警告"
                txtItem(0).SetFocus
                mrc.Close
                Exit Sub
            End If
                    
                    
                    
                frmWX1.txtM_NO = Trim(txtItem(0))
                frmWX1.txtM_DATE = Trim(txtItem(1))
                frmWX1.txtKHDM = Trim(Combo1(1))
                frmWX1.txtLB = Trim(txtItem(4))
                frmWX1.txtREB = Trim(txtItem(5))
                frmWX1.txtYWDM = Trim(Combo1(0).ItemData(Combo1(0).ListIndex))
                gintPLmode = 1
                frmWX1.Show 1
        Else
            MsgBox "请设置配料单的所有选项!", vbOKOnly, "警告"
            Exit Sub
        End If
    ElseIf gintPLLISTmode = 2 Then
                frmWX1.txtM_NO = Trim(txtItem(0))
                frmWX1.txtM_DATE = Trim(txtItem(1))
                frmWX1.txtKHDM = Trim(Combo1(1))
                frmWX1.txtLB = Trim(txtItem(4))
                frmWX1.txtREB = Trim(txtItem(5))
                frmWX1.txtYWDM = Trim(Combo1(0).ItemData(Combo1(0).ListIndex))
                gintPLmode = 1

⌨️ 快捷键说明

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