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

📄 frmcheckedit.frm

📁 音像店(CD刻录)进销存管理系统
💻 FRM
字号:
VERSION 5.00
Begin VB.Form FrmCheckEdit 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "编辑盘点信息"
   ClientHeight    =   2790
   ClientLeft      =   45
   ClientTop       =   345
   ClientWidth     =   3615
   Icon            =   "FrmCheckEdit.frx":0000
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2790
   ScaleWidth      =   3615
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton Cmd_Cancel 
      Cancel          =   -1  'True
      Caption         =   "取 消"
      Height          =   400
      Left            =   1937
      MouseIcon       =   "FrmCheckEdit.frx":0CCA
      MousePointer    =   99  'Custom
      Style           =   1  'Graphical
      TabIndex        =   10
      Top             =   2160
      Width           =   1300
   End
   Begin VB.CommandButton Cmd_OK 
      Caption         =   "确 定"
      Height          =   400
      Left            =   377
      MouseIcon       =   "FrmCheckEdit.frx":0FD4
      MousePointer    =   99  'Custom
      Style           =   1  'Graphical
      TabIndex        =   9
      Top             =   2160
      Width           =   1300
   End
   Begin VB.Frame Frame3 
      Height          =   1815
      Left            =   240
      TabIndex        =   0
      Top             =   120
      Width           =   3135
      Begin VB.TextBox txtProNum 
         Alignment       =   1  'Right Justify
         Height          =   270
         Left            =   1320
         MaxLength       =   20
         TabIndex        =   1
         Top             =   1395
         Width           =   1455
      End
      Begin VB.Label lblProNum 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "lblProNum"
         Height          =   180
         Left            =   1320
         TabIndex        =   8
         Top             =   1065
         Width           =   810
      End
      Begin VB.Label Label9 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "盘点数量"
         Height          =   180
         Left            =   240
         TabIndex        =   7
         Top             =   1440
         Width           =   720
      End
      Begin VB.Label Label24 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "选择仓库"
         Height          =   180
         Left            =   240
         TabIndex        =   6
         Top             =   300
         Width           =   720
      End
      Begin VB.Label lblStore 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "lblStore"
         Height          =   180
         Left            =   1320
         TabIndex        =   5
         Top             =   300
         Width           =   720
      End
      Begin VB.Label Label20 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "产品名称"
         Height          =   180
         Left            =   240
         TabIndex        =   4
         Top             =   675
         Width           =   720
      End
      Begin VB.Label lblProName 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "lblProName"
         Height          =   180
         Left            =   1320
         TabIndex        =   3
         Top             =   675
         Width           =   900
      End
      Begin VB.Label Label25 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "库存数量"
         Height          =   180
         Left            =   240
         TabIndex        =   2
         Top             =   1065
         Width           =   720
      End
   End
End
Attribute VB_Name = "FrmCheckEdit"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public OriId As Long

Private Function Check() As Boolean
  If Trim(txtProNum) <= 0 Then
    MsgBox "盘点数量应大于0"
    txtProNum.SetFocus
    txtProNum.SelStart = 0
    txtProNum.SelLength = Len(txtProNum)
    Check = False
    Exit Function
  End If
  
  Check = True
End Function

Private Sub Cmd_OK_Click()
  If Check = False Then
    Exit Sub
  End If
  
  If MsgBox("是否确定要修改当前产品的数量?", vbYesNo, "请确认") = vbNo Then
    Exit Sub
  End If
  
  With MyProInStore
  .ProNum = Val(txtProNum)
  .Update (OriId)
  MsgBox "盘点数量保存成功"
  End With
  Unload Me
End Sub

Private Sub Cmd_Cancel_Click()
  Unload Me
End Sub

Private Sub txtProNum_KeyPress(KeyAscii As Integer)
  EnterTAB (KeyAscii)
  If In_Int(KeyAscii) = False Then
    KeyAscii = 0
  End If
End Sub

⌨️ 快捷键说明

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