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

📄 form2.frm

📁 用与大型超市的管理与运行;具有提高效率节省费用的优点
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form2 
   Caption         =   "Form2"
   ClientHeight    =   6585
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   10980
   LinkTopic       =   "Form2"
   ScaleHeight     =   6585
   ScaleWidth      =   10980
   StartUpPosition =   3  '窗口缺省
   Begin VB.PictureBox Picture1 
      BackColor       =   &H80000000&
      Height          =   7095
      Left            =   240
      ScaleHeight     =   7035
      ScaleWidth      =   14715
      TabIndex        =   1
      Top             =   1320
      Width           =   14775
      Begin VB.CommandButton Command1 
         Caption         =   "返回"
         Height          =   495
         Left            =   3720
         TabIndex        =   5
         Top             =   4440
         Width           =   2175
      End
   End
   Begin VB.Label Label7 
      Caption         =   "总价"
      Height          =   375
      Left            =   8760
      TabIndex        =   7
      Top             =   840
      Width           =   855
   End
   Begin VB.Label Label6 
      Caption         =   "数量"
      Height          =   255
      Left            =   6960
      TabIndex        =   6
      Top             =   840
      Width           =   1095
   End
   Begin VB.Label Label4 
      Caption         =   "单价"
      Height          =   255
      Left            =   4920
      TabIndex        =   4
      Top             =   840
      Width           =   1575
   End
   Begin VB.Label Label3 
      Caption         =   "商品名称"
      Height          =   255
      Left            =   2520
      TabIndex        =   3
      Top             =   840
      Width           =   1095
   End
   Begin VB.Label Label2 
      Caption         =   "ID"
      Height          =   255
      Left            =   600
      TabIndex        =   2
      Top             =   840
      Width           =   615
   End
   Begin VB.Label Label1 
      Caption         =   "     商品信息"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   15
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   3360
      TabIndex        =   0
      Top             =   0
      Width           =   3135
   End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False




Private Sub Command1_Click()
Unload Me
Form1.Show
Picture1.Refresh
Form1.Text8 = ""
Form1.Text9 = ""
Form1.Text10 = ""
End Sub

Private Sub Picture1_Click()
Dim i
Form1.Data2.Recordset.MoveLast
'Form1.Data2.Recordset.Move (cc)

For i = 1 To cc

Picture1.Print

Form1.Data2.Recordset.MovePrevious
Picture1.Print Spc(1); Form1.Text11;
Picture1.Print Spc(18); Form1.Text13;
Picture1.Print Spc(26); Form1.Text14;
Picture1.Print Spc(18); Form1.Text15; "                 "; Form1.Text16;

Next
Picture1.Print
Picture1.Print
Picture1.Print
Picture1.Print
Picture1.Print
Picture1.Print

Picture1.Print
Picture1.Print

Picture1.Print Spc(28); "商品总额:"; Form1.Text8;

Picture1.Print

Picture1.Print Spc(28); "付款总额:"; Form1.Text9;

Picture1.Print

Picture1.Print Spc(28); "找    零:"; Form1.Text10;

cc = 0

End Sub

⌨️ 快捷键说明

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