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

📄 frminputhouse.frm

📁 针对农资系统的商品进销存管理系统软件
💻 FRM
字号:
VERSION 5.00
Object = "{F0D2F211-CCB0-11D0-A316-00AA00688B10}#1.0#0"; "MSDATLST.OCX"
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form frmInputHouse 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "请选择库房"
   ClientHeight    =   1215
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   3840
   Icon            =   "frmInputHouse.frx":0000
   KeyPreview      =   -1  'True
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1215
   ScaleWidth      =   3840
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  '屏幕中心
   Begin MSAdodcLib.Adodc adoHouse 
      Height          =   330
      Left            =   240
      Top             =   840
      Visible         =   0   'False
      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         =   ""
      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 cmdCancel 
      Caption         =   "放弃(&C)"
      Height          =   315
      Left            =   2640
      TabIndex        =   2
      Top             =   840
      Width           =   975
   End
   Begin VB.CommandButton cmdOK 
      Caption         =   "确定(&O)"
      Height          =   315
      Left            =   1560
      TabIndex        =   1
      Top             =   840
      Width           =   975
   End
   Begin VB.Frame Frame1 
      Height          =   735
      Left            =   120
      TabIndex        =   3
      Top             =   0
      Width           =   3615
      Begin MSDataListLib.DataCombo DACHouse 
         Height          =   330
         Left            =   720
         TabIndex        =   0
         Top             =   260
         Width           =   2775
         _ExtentX        =   4895
         _ExtentY        =   582
         _Version        =   393216
         Style           =   2
         Text            =   ""
      End
      Begin VB.Label lblHouse 
         AutoSize        =   -1  'True
         Caption         =   "库房"
         Height          =   180
         Left            =   240
         TabIndex        =   4
         Top             =   320
         Width           =   360
      End
   End
End
Attribute VB_Name = "frmInputHouse"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public m_sHouseId As String
Public m_nAttrib As Integer

Private Sub cmdOK_Click()
    If DACHouse.BoundText = "" Then
        Exit Sub
    End If
    
    With adoHouse.Recordset
        .Bookmark = DACHouse.SelectedItem
        m_sHouseId = ![FHouseCode]
        m_nAttrib = ![FHouseAttrib]
        Me.Hide
    End With
End Sub

Private Sub cmdCancel_Click()
    m_sHouseId = ""
    m_nAttrib = -1
    Me.Hide
End Sub

Private Sub Form_KeyPress(KeyAscii As Integer)
    If KeyAscii = 13 Then
        SendKeys "{Tab}"
    End If
End Sub

Private Sub Form_Load()
    SetForm Me, 9
    With adoHouse
        .ConnectionString = m_gsConnection
        .RecordSource = "Select FHouseCode, FHouseName, FHouseAttrib From Warehouse Order by FHouseCode"
        .Refresh
    End With
    
    With DACHouse
        Set .RowSource = adoHouse
        .ListField = "FHouseName"
        .BoundColumn = "FHouseCode"
    End With
    m_sHouseId = ""
    m_nAttrib = -1
End Sub

⌨️ 快捷键说明

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