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

📄 frm_t_khxx.frm

📁 VB物流管理系统毕业设计带源码源码+论文 vB+sql的毕业设计
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Begin VB.Form frm_T_Khxx 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "客户信息检索"
   ClientHeight    =   2400
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   4545
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2400
   ScaleWidth      =   4545
   StartUpPosition =   3  '窗口缺省
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   345
      Left            =   270
      Top             =   4335
      Width           =   1860
      _ExtentX        =   3281
      _ExtentY        =   609
      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.CommandButton Cmd_Cancel 
      Caption         =   "取消"
      Height          =   300
      Left            =   3780
      TabIndex        =   2
      Top             =   2055
      Width           =   735
   End
   Begin VB.TextBox Text1 
      Height          =   300
      Left            =   2400
      TabIndex        =   1
      Top             =   2055
      Width           =   1305
   End
   Begin MSDataGridLib.DataGrid DataGrid1 
      Bindings        =   "frm_T_Khxx.frx":0000
      Height          =   1995
      Left            =   30
      TabIndex        =   0
      Top             =   15
      Width           =   4485
      _ExtentX        =   7911
      _ExtentY        =   3519
      _Version        =   393216
      AllowUpdate     =   0   'False
      HeadLines       =   1
      RowHeight       =   15
      BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ColumnCount     =   2
      BeginProperty Column00 
         DataField       =   ""
         Caption         =   ""
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column01 
         DataField       =   ""
         Caption         =   ""
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      SplitCount      =   1
      BeginProperty Split0 
         MarqueeStyle    =   3
         BeginProperty Column00 
         EndProperty
         BeginProperty Column01 
         EndProperty
      EndProperty
   End
   Begin VB.Label Label1 
      Caption         =   "检索"
      Height          =   240
      Left            =   1830
      TabIndex        =   3
      Top             =   2130
      Width           =   450
   End
End
Attribute VB_Name = "frm_T_Khxx"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Cmd_Cancel_Click()
  Unload Me
End Sub
Private Sub DataGrid1_KeyDown(KeyCode As Integer, Shift As Integer)
      '将相应的数据信息赋值到相应窗体中相对应的文本框当中
   On Error Resume Next
   If KeyCode = 13 Then
     If StrNums = 0 Then           '将信息赋值给货品出库窗体中的文本框
         Frm_Tysq.Text1(1).Text = Adodc1.Recordset.Fields("khxx_id")
         Frm_Tysq.Text1(2).Text = Adodc1.Recordset.Fields("khxx_mc")
         Unload Me
         Frm_Tysq.DT1.SetFocus
     End If
   End If
End Sub
Private Sub Form_Load()
'    rtn = SetWindowPos(Me.hWnd, -1, 0, 0, 0, 0, 3)    '运用API函数SetWindowPos,来实现使窗体置前的功能
Adodc1.ConnectionString = PublicStr
Adodc1.RecordSource = "select * from View_khxx"
Adodc1.Refresh

DataGrid1.Columns(0).Caption = "客户编号"
DataGrid1.Columns(1).Caption = "客户名称"
End Sub
Private Sub Text1_Change()                            '实现模糊查询
  On Error Resume Next
  Adodc1.RecordSource = "select * from view_khxx where khxx_mc like '%" + Text1.Text + "%'"
  Adodc1.Refresh
End Sub

⌨️ 快捷键说明

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