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

📄 frmcheckedit.frm

📁 电脑销售管理系统是典型的信息管理系统(MIS)
💻 FRM
字号:
VERSION 5.00
Begin VB.Form FrmCheckEdit 
   Caption         =   "编辑盘点信息"
   ClientHeight    =   3195
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4485
   LinkTopic       =   "Form1"
   ScaleHeight     =   3195
   ScaleWidth      =   4485
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton Cmd_Cancel 
      Caption         =   "取消"
      Height          =   255
      Left            =   2400
      TabIndex        =   10
      Top             =   2760
      Width           =   1095
   End
   Begin VB.CommandButton Cmd_OK 
      Caption         =   "确定"
      Height          =   255
      Left            =   480
      TabIndex        =   9
      Top             =   2760
      Width           =   1095
   End
   Begin VB.Frame Frame1 
      Height          =   2295
      Left            =   240
      TabIndex        =   0
      Top             =   240
      Width           =   3975
      Begin VB.TextBox txtProNum 
         Height          =   270
         Left            =   1440
         TabIndex        =   8
         Text            =   "Text1"
         Top             =   1800
         Width           =   1575
      End
      Begin VB.Label lblProNum 
         AutoSize        =   -1  'True
         Caption         =   "Label7"
         Height          =   180
         Left            =   1440
         TabIndex        =   7
         Top             =   1320
         Width           =   540
      End
      Begin VB.Label lblProName 
         AutoSize        =   -1  'True
         Caption         =   "Label6"
         Height          =   180
         Left            =   1440
         TabIndex        =   6
         Top             =   840
         Width           =   540
      End
      Begin VB.Label lblStore 
         AutoSize        =   -1  'True
         Caption         =   "Label5"
         Height          =   180
         Left            =   1440
         TabIndex        =   5
         Top             =   360
         Width           =   540
      End
      Begin VB.Label Label4 
         AutoSize        =   -1  'True
         Caption         =   "产品名称"
         Height          =   180
         Left            =   240
         TabIndex        =   4
         Top             =   840
         Width           =   720
      End
      Begin VB.Label Label3 
         AutoSize        =   -1  'True
         Caption         =   "库存数量"
         Height          =   180
         Left            =   240
         TabIndex        =   3
         Top             =   1320
         Width           =   720
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         Caption         =   "盘点数量"
         Height          =   180
         Left            =   240
         TabIndex        =   2
         Top             =   1800
         Width           =   720
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "选择仓库"
         Height          =   180
         Left            =   240
         TabIndex        =   1
         Top             =   360
         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 + -