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

📄 frmstor.frm

📁 简单邮电信息管理
💻 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 frmStor 
   BackColor       =   &H80000001&
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "库存查询"
   ClientHeight    =   3780
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   10725
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   MinButton       =   0   'False
   ScaleHeight     =   3780
   ScaleWidth      =   10725
   ShowInTaskbar   =   0   'False
   Begin VB.Frame Frame2 
      BackColor       =   &H80000001&
      Caption         =   "库存查询"
      Height          =   3135
      Left            =   6600
      TabIndex        =   3
      Top             =   240
      Width           =   3855
      Begin VB.CommandButton Cmd_Search 
         Caption         =   "开始查询"
         Height          =   375
         Left            =   1440
         TabIndex        =   8
         Top             =   2400
         Width           =   1575
      End
      Begin VB.ComboBox Combo1 
         Appearance      =   0  'Flat
         Height          =   300
         ItemData        =   "frmStor.frx":0000
         Left            =   1440
         List            =   "frmStor.frx":000D
         TabIndex        =   7
         Top             =   1680
         Width           =   1575
      End
      Begin VB.TextBox Text1 
         Appearance      =   0  'Flat
         Height          =   270
         Left            =   1440
         TabIndex        =   5
         Top             =   840
         Width           =   1575
      End
      Begin VB.Label Label3 
         BackStyle       =   0  'Transparent
         Caption         =   "尺    码:"
         Height          =   255
         Left            =   480
         TabIndex        =   6
         Top             =   1680
         Width           =   1215
      End
      Begin VB.Label Label2 
         BackStyle       =   0  'Transparent
         Caption         =   "商品编号:"
         Height          =   255
         Left            =   480
         TabIndex        =   4
         Top             =   840
         Width           =   1215
      End
   End
   Begin MSAdodcLib.Adodc AdoStor 
      Height          =   270
      Left            =   2520
      Top             =   3360
      Width           =   2055
      _ExtentX        =   3625
      _ExtentY        =   476
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   2
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   0
      BackColor       =   -2147483647
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "Provider=SQLOLEDB.1;Password=624813;Persist Security Info=True;User ID=xt;Initial Catalog=xt;Data Source=xt"
      OLEDBString     =   "Provider=SQLOLEDB.1;Password=624813;Persist Security Info=True;User ID=xt;Initial Catalog=xt;Data Source=xt"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "Stor_Info"
      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.Frame Frame1 
      BackColor       =   &H80000001&
      Caption         =   "库存列表"
      Enabled         =   0   'False
      Height          =   3135
      Left            =   240
      TabIndex        =   0
      Top             =   240
      Width           =   6255
      Begin MSDataGridLib.DataGrid DataGrid1 
         Bindings        =   "frmStor.frx":001D
         Height          =   2655
         Left            =   120
         TabIndex        =   1
         Top             =   360
         Width           =   6015
         _ExtentX        =   10610
         _ExtentY        =   4683
         _Version        =   393216
         AllowUpdate     =   0   'False
         Appearance      =   0
         BackColor       =   -2147483647
         HeadLines       =   1
         RowHeight       =   15
         FormatLocked    =   -1  'True
         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     =   3
         BeginProperty Column00 
            DataField       =   "ID"
            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       =   "S_Size"
            Caption         =   "尺码"
            BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
               Type            =   0
               Format          =   ""
               HaveTrueFalseNull=   0
               FirstDayOfWeek  =   0
               FirstWeekOfYear =   0
               LCID            =   2052
               SubFormatType   =   0
            EndProperty
         EndProperty
         BeginProperty Column02 
            DataField       =   "Quantity"
            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 
            BeginProperty Column00 
            EndProperty
            BeginProperty Column01 
            EndProperty
            BeginProperty Column02 
            EndProperty
         EndProperty
      End
      Begin VB.Label Label1 
         Height          =   255
         Left            =   1200
         TabIndex        =   2
         Top             =   240
         Width           =   2655
      End
   End
End
Attribute VB_Name = "frmStor"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Cmd_Search_Click()
AdoStor.Recordset.MoveFirst
Cmd_Search.Enabled = False
Dim ID As String
Dim Size As String
ID = Trim(Text1.Text)
Size = Trim(Combo1.Text)

If ID = "" And Size = "" Then
    MsgBox "你没有输入任何查询条件", vbOKOnly + vbCritical, "错误"
ElseIf ID = "" Then
    AdoStor.Recordset.Find " S_Size='" & Size & "'"
ElseIf Size = "" Then
    AdoStor.Recordset.Find " ID='" & ID & "'"
Else
    AdoStor.Recordset.Find " ID='" & ID & "' OR S_Size='" & Size & "'"
End If

If AdoStor.Recordset.EOF Then
    MsgBox "没有找到此记录"
    AdoStor.Recordset.MoveFirst
End If
Text1.Text = ""
Combo1.Text = ""
Cmd_Search.Enabled = True
End Sub

Private Sub Form_Load()
AdoStor.Refresh
End Sub

⌨️ 快捷键说明

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