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

📄 form1.frm

📁 这个商品销售管理系统实现了几乎所有的功能,并通过验收
💻 FRM
📖 第 1 页 / 共 4 页
字号:
         Width           =   735
      End
      Begin VB.Label Label15 
         Caption         =   "单  位"
         Height          =   255
         Left            =   -74880
         TabIndex        =   32
         Top             =   4200
         Width           =   735
      End
      Begin VB.Label Label14 
         Caption         =   "销售日期"
         Height          =   375
         Index           =   0
         Left            =   -74880
         TabIndex        =   30
         Top             =   3600
         Width           =   735
      End
      Begin VB.Label Label13 
         Caption         =   "客户编号"
         Height          =   255
         Left            =   -68640
         TabIndex        =   28
         Top             =   3120
         Width           =   735
      End
      Begin VB.Label Label12 
         Caption         =   "商品编号"
         Height          =   255
         Left            =   -71760
         TabIndex        =   27
         Top             =   3120
         Width           =   735
      End
      Begin VB.Label Label11 
         Caption         =   "收银员编号"
         Height          =   255
         Index           =   0
         Left            =   -74880
         TabIndex        =   26
         Top             =   3120
         Width           =   975
      End
      Begin VB.Label Label10 
         BackColor       =   &H00E0E0E0&
         BackStyle       =   0  'Transparent
         Caption         =   "销     售    信    息"
         BeginProperty Font 
            Name            =   "黑体"
            Size            =   21.75
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00FF00FF&
         Height          =   495
         Left            =   -72720
         TabIndex        =   24
         Top             =   480
         Width           =   4935
      End
      Begin VB.Label Label3 
         Caption         =   "商品名称"
         Height          =   255
         Left            =   -74280
         TabIndex        =   17
         Top             =   3240
         Width           =   855
      End
      Begin VB.Label Label4 
         Caption         =   "商品简称"
         Height          =   255
         Left            =   -74280
         TabIndex        =   16
         Top             =   3720
         Width           =   855
      End
      Begin VB.Label Label5 
         Caption         =   "规  格"
         Height          =   255
         Left            =   -74280
         TabIndex        =   15
         Top             =   4200
         Width           =   855
      End
      Begin VB.Label Label6 
         Caption         =   "产  地"
         Height          =   255
         Left            =   -70680
         TabIndex        =   14
         Top             =   2760
         Width           =   855
      End
      Begin VB.Label Label7 
         Caption         =   "单  位"
         Height          =   255
         Left            =   -70680
         TabIndex        =   13
         Top             =   3240
         Width           =   855
      End
      Begin VB.Label Label8 
         Caption         =   "单  价"
         Height          =   255
         Left            =   -70680
         TabIndex        =   12
         Top             =   3720
         Width           =   855
      End
      Begin VB.Label Label9 
         Caption         =   "库存数量"
         Height          =   255
         Left            =   -70680
         TabIndex        =   11
         Top             =   4200
         Width           =   855
      End
      Begin VB.Label Label2 
         Caption         =   "商品编号"
         Height          =   255
         Left            =   -74280
         TabIndex        =   2
         Top             =   2760
         Width           =   855
      End
      Begin VB.Label Label1 
         BackColor       =   &H00E0E0E0&
         BackStyle       =   0  'Transparent
         Caption         =   "商     品    信    息"
         BeginProperty Font 
            Name            =   "黑体"
            Size            =   21.75
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00FF00FF&
         Height          =   495
         Left            =   -73320
         TabIndex        =   1
         Top             =   360
         Width           =   4935
      End
   End
   Begin MSComctlLib.StatusBar StatusBar1 
      Align           =   2  'Align Bottom
      Height          =   495
      Left            =   0
      TabIndex        =   23
      Top             =   5895
      Width           =   9675
      _ExtentX        =   17066
      _ExtentY        =   873
      _Version        =   393216
      BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628} 
         NumPanels       =   4
         BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Object.Width           =   5080
            MinWidth        =   5080
         EndProperty
         BeginProperty Panel2 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Object.Width           =   3528
            MinWidth        =   3528
         EndProperty
         BeginProperty Panel3 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Object.Width           =   5080
            MinWidth        =   5080
            Text            =   "武汉工业学院 计科(陈文) 制作"
            TextSave        =   "武汉工业学院 计科(陈文) 制作"
         EndProperty
         BeginProperty Panel4 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Picture         =   "Form1.frx":00A8
         EndProperty
      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
      OLEDropMode     =   1
   End
End
Attribute VB_Name = "sale"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
test11.Show
End Sub

Private Sub Command10_Click()
Adodc2.RecordSource = "select * from 销售信息表"
Adodc2.Refresh
Adodc2.Recordset.Update
DataCombo1.Enabled = True
Text2.Text = Adodc2.Recordset.Fields("销售日期")
Text3.Text = Adodc2.Recordset.Fields("销售时间")
Text4.Text = Adodc2.Recordset.Fields("商品名称")
Text5.Text = Adodc2.Recordset.Fields("数量")
Text6.Text = Adodc2.Recordset.Fields("单位")
Text13.Text = Adodc2.Recordset.Fields("单价")
Text7.Text = Adodc2.Recordset.Fields("金额小计")
Text8.Text = Adodc2.Recordset.Fields("收款合计")
Text9.Text = Adodc2.Recordset.Fields("累计余额")
Text10.Text = Adodc2.Recordset.Fields("客户全称")
Text11.Text = Adodc2.Recordset.Fields("票号")
Text12.Text = Adodc2.Recordset.Fields("备注")
Text14.Text = Adodc2.Recordset.Fields("商品编号")
Text15.Text = Adodc2.Recordset.Fields("客户编号")
End Sub

Private Sub Command11_Click()
test31.Show
test31.Text16(0).Text = sale.Text16(0).Text
test31.Text17.Text = sale.Text17.Text
test31.Text18.Text = sale.Text18.Text
test31.Text19.Text = sale.Text19.Text
test31.Text20.Text = sale.Text20.Text
test31.Text21.Text = sale.Text21.Text
test31.Text22.Text = sale.Text22.Text
test31.Text23.Text = sale.Text23.Text
test31.Text24.Text = sale.Text24.Text
test31.Text25.Text = sale.Text25.Text

End Sub

Private Sub Command12_Click()
test32.Show
End Sub

Private Sub Command13_Click()
test33.Show
End Sub

Private Sub Command14_Click()
MainForm2.Show
sale.Hide
End Sub

Private Sub Command2_Click()
test12.Show
End Sub
Private Sub Command3_Click()
test13.Show
End Sub
Private Sub Command4_Click()
MainForm2.Show
sale.Hide
End Sub

Private Sub Command5_Click()
test21.Show
test21.Text1(0).Text = sale.DataCombo1.BoundText
test21.Text1(1).Text = sale.Text14.Text
test21.Text1(2).Text = sale.Text15.Text
test21.Text1(3).Text = sale.Text2.Text
test21.Text1(4).Text = sale.Text3.Text
test21.Text1(5).Text = sale.Text4.Text
test21.Text1(6).Text = sale.Text5.Text
test21.Text1(7).Text = sale.Text6.Text
test21.Text1(8).Text = sale.Text13.Text
test21.Text1(9).Text = sale.Text7.Text
test21.Text1(10).Text = sale.Text8.Text
test21.Text1(11).Text = sale.Text9.Text
test21.Text1(12).Text = sale.Text10.Text
test21.Text1(13).Text = sale.Text11.Text
test21.Text1(14).Text = sale.Text12.Text

End Sub

Private Sub Command6_Click()
test22.Show
End Sub

Private Sub Command7_Click()
test23.Show
test23.Text1(0).Text = sale.DataCombo1.BoundText
test23.Text1(1).Text = sale.Text14.Text
test23.Text1(2).Text = sale.Text15.Text
test23.Text1(3).Text = sale.Text2.Text
test23.Text1(4).Text = sale.Text3.Text
test23.Text1(5).Text = sale.Text4.Text
test23.Text1(6).Text = sale.Text5.Text
test23.Text1(7).Text = sale.Text6.Text
test23.Text1(8).Text = sale.Text13.Text
test23.Text1(9).Text = sale.Text7.Text
test23.Text1(10).Text = sale.Text8.Text
test23.Text1(11).Text = sale.Text9.Text
test23.Text1(12).Text = sale.Text10.Text
test23.Text1(13).Text = sale.Text11.Text
test23.Text1(14).Text = sale.Text12.Text
End Sub

Private Sub Command8_Click()
'MsgBox "确认要退出该系统吗?"
'sale.Visible = False
MainForm2.Show
sale.Hide
End Sub

Private Sub Command9_Click()

Adodc2.RecordSource = "select * from 销售信息表 where 收银员编号=" + DataCombo1.BoundText + ""
Adodc2.Refresh
Text2.Text = Adodc2.Recordset.Fields("销售日期")
Text3.Text = Adodc2.Recordset.Fields("销售时间")
Text4.Text = Adodc2.Recordset.Fields("商品名称")
Text5.Text = Adodc2.Recordset.Fields("数量")
Text6.Text = Adodc2.Recordset.Fields("单位")
Text13.Text = Adodc2.Recordset.Fields("单价")
Text7.Text = Adodc2.Recordset.Fields("金额小计")
Text8.Text = Adodc2.Recordset.Fields("收款合计")
Text9.Text = Adodc2.Recordset.Fields("累计余额")
Text10.Text = Adodc2.Recordset.Fields("客户全称")
Text11.Text = Adodc2.Recordset.Fields("票号")
Text12.Text = Adodc2.Recordset.Fields("备注")
Text14.Text = Adodc2.Recordset.Fields("商品编号")
Text15.Text = Adodc2.Recordset.Fields("客户编号")
DataCombo1.Enabled = False

End Sub






Private Sub DataGrid1_Click()
Text1(0).Text = Adodc1.Recordset.Fields("商品编号")
Text1(1).Text = Adodc1.Recordset.Fields("商品名称")
Text1(2).Text = Adodc1.Recordset.Fields("商品简称")
Text1(3).Text = Adodc1.Recordset.Fields("规格")
Text1(4).Text = Adodc1.Recordset.Fields("产地")
Text1(5).Text = Adodc1.Recordset.Fields("单位")
Text1(6).Text = Adodc1.Recordset.Fields("单价")
Text1(7).Text = Adodc1.Recordset.Fields("库存数量")
End Sub

Private Sub DataGrid2_Click()
Text16(0).Text = Adodc3.Recordset.Fields("客户编号")
Text17.Text = Adodc3.Recordset.Fields("客户全称")
Text18.Text = Adodc3.Recordset.Fields("简称")
Text19.Text = Adodc3.Recordset.Fields("地址")
Text20.Text = Adodc3.Recordset.Fields("电话")
Text21.Text = Adodc3.Recordset.Fields("联系人")
Text22.Text = Adodc3.Recordset.Fields("联系人电话")
Text23.Text = Adodc3.Recordset.Fields("应收金额")
Text24.Text = Adodc3.Recordset.Fields("实际欠款")
Text25.Text = Adodc3.Recordset.Fields("网址邮箱")

End Sub

Private Sub Form_Unload(Cancel As Integer)
Unload Me
MainForm2.Show

End Sub

Private Sub Timer1_Timer()
StatusBar1.Panels.Item(1).Text = Format(Now, "yyyy年mm月dd日 hh点mm分ss秒")
End Sub

⌨️ 快捷键说明

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