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

📄 frmquantly.frm

📁 一套好的餐饮行业管理软件
💻 FRM
字号:
VERSION 5.00
Object = "{0BA686C6-F7D3-101A-993E-0000C0EF6F5E}#1.0#0"; "THREED32.OCX"
Begin VB.Form frmQuantly 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "物品数量"
   ClientHeight    =   1395
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   4605
   Icon            =   "frmQuantly.frx":0000
   KeyPreview      =   -1  'True
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1395
   ScaleWidth      =   4605
   ShowInTaskbar   =   0   'False
   StartUpPosition =   1  '所有者中心
   Begin Threed.SSPanel SSPanel1 
      Height          =   1200
      Left            =   45
      TabIndex        =   2
      Top             =   120
      Width           =   4500
      _Version        =   65536
      _ExtentX        =   7937
      _ExtentY        =   2117
      _StockProps     =   15
      BackColor       =   12632256
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      BevelOuter      =   1
      Begin Threed.SSCommand cmdSure 
         Height          =   480
         Left            =   90
         TabIndex        =   1
         Top             =   90
         Width           =   4305
         _Version        =   65536
         _ExtentX        =   7594
         _ExtentY        =   847
         _StockProps     =   78
         Caption         =   "----  请 输 入 所 购 物 品 数 量 ----"
         BevelWidth      =   1
      End
      Begin Threed.SSPanel sLabel 
         Height          =   375
         Left            =   1095
         TabIndex        =   3
         Top             =   675
         Width           =   3300
         _Version        =   65536
         _ExtentX        =   5821
         _ExtentY        =   661
         _StockProps     =   15
         Caption         =   "开心果"
         ForeColor       =   255
         BackColor       =   16777215
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
      End
      Begin VB.TextBox txtSl 
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   18
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H000000FF&
         Height          =   480
         Left            =   90
         MaxLength       =   5
         TabIndex        =   0
         Text            =   "1"
         Top             =   585
         Width           =   4320
      End
   End
End
Attribute VB_Name = "frmQuantly"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdSure_Click()

   If Val(txtSL.Text) > 0 Then
      SureQuantly = True
      sSL = Val(txtSL.Text)
      Unload Me
    Else
      MsgBox "请输入购买数量?   ", vbInformation
      txtSL.SetFocus
  End If
 
End Sub

Private Sub Form_KeyPress(KeyAscii As Integer)

 If KeyAscii = 27 Then
    Unload Me
 End If
 
End Sub

Private Sub Form_Load()

  SureQuantly = False
  If sSL = 0 Then
     txtSL = 1
    Else
     txtSL.Text = sSL
  End If
  sLabel.Caption = frmCustomerForm.Grid1.Text
  
End Sub

Private Sub txtSl_Change()
       
   sSL = Val(txtSL.Text)

End Sub

Private Sub txtSl_GotFocus()

  SetItFocus txtSL
  
End Sub

Private Sub txtSl_KeyPress(KeyAscii As Integer)

  If KeyAscii = 13 And Val(txtSL.Text) > 0 Then
     SureQuantly = True
     sSL = Val(txtSL.Text)
     ' 保存记录
       Unload Me
     Exit Sub
  End If
  If KeyAscii = 8 Then '退格键
     Exit Sub
  End If
  
  If KeyAscii < 48 Or KeyAscii > 57 Then  '只允许0-9输入
     KeyAscii = 0
  End If
  
End Sub

⌨️ 快捷键说明

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