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

📄 spxx.frm

📁 网吧库存管理系统 主要对商品网费等费用和数量管理
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{0ECD9B60-23AA-11D0-B351-00A0C9055D8E}#6.0#0"; "MSHFLXGD.OCX"
Object = "{D07CD9D2-ECE9-493F-86F2-186659945889}#1.0#0"; "Xpbutton.ocx"
Object = "{625E61B9-D59C-4612-89FC-D10614DC5873}#1.0#0"; "CoolBoySkin1.2(修正版).ocx"
Begin VB.Form spxx 
   Appearance      =   0  'Flat
   BackColor       =   &H00FFFFFF&
   BorderStyle     =   0  'None
   Caption         =   "神龙科技(网吧库管)"
   ClientHeight    =   9540
   ClientLeft      =   0
   ClientTop       =   0
   ClientWidth     =   7080
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   ScaleHeight     =   9540
   ScaleWidth      =   7080
   ShowInTaskbar   =   0   'False
   StartUpPosition =   3  '窗口缺省
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   330
      Left            =   4980
      Top             =   720
      Visible         =   0   'False
      Width           =   1245
      _ExtentX        =   2196
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   8
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   3
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "DSN=slwb"
      OLEDBString     =   ""
      OLEDBFile       =   ""
      DataSourceName  =   "slwb"
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   ""
      Caption         =   "Adodc1"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin 工程1.xpcmdbutton cmd2 
      Height          =   375
      Left            =   5865
      TabIndex        =   4
      Top             =   8985
      Width           =   795
      _ExtentX        =   1402
      _ExtentY        =   661
      Caption         =   "退出"
      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 工程1.xpcmdbutton cmd1 
      Height          =   390
      Left            =   4740
      TabIndex        =   3
      Top             =   9000
      Width           =   765
      _ExtentX        =   1349
      _ExtentY        =   688
      Caption         =   "打印"
      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.Frame Frame1 
      BackColor       =   &H80000001&
      Height          =   7800
      Left            =   345
      TabIndex        =   0
      Top             =   1095
      Width           =   6450
      Begin MSHierarchicalFlexGridLib.MSHFlexGrid MSH 
         Height          =   7650
         Left            =   45
         TabIndex        =   2
         Top             =   135
         Width           =   6390
         _ExtentX        =   11271
         _ExtentY        =   13494
         _Version        =   393216
         FixedCols       =   0
         BackColorFixed  =   14737632
         BackColorBkg    =   -2147483634
         AllowUserResizing=   3
         BorderStyle     =   0
         _NumberOfBands  =   1
         _Band(0).Cols   =   2
      End
   End
   Begin CoolBoySkinForVB6.CoolBoySkin CoolBoySkin1 
      Height          =   1845
      Left            =   -585
      TabIndex        =   5
      Top             =   -360
      Width           =   3405
      _ExtentX        =   6006
      _ExtentY        =   3254
      Caption         =   "神龙科技(网吧库管)"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "Arial"
         Size            =   9.75
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      MenuBackColor   =   16777215
   End
   Begin VB.Label Label1 
      Alignment       =   2  'Center
      BackStyle       =   0  'Transparent
      Caption         =   "现有商品信息"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   21.75
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   465
      Left            =   255
      TabIndex        =   1
      Top             =   570
      Width           =   6615
   End
   Begin VB.Shape Shape1 
      BackColor       =   &H80000001&
      BackStyle       =   1  'Opaque
      Height          =   9030
      Left            =   225
      Top             =   390
      Width           =   6690
   End
End
Attribute VB_Name = "spxx"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim mshrow As Integer
Public selectxx As Boolean
Dim oldx As Long
Dim oldy As Long
Dim mov As Boolean
Private Sub Label1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
tim = 0
If username = "" Then loginfrm.Show
oldx = X
oldy = Y
mov = True
End Sub

Private Sub Label1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
tim = 0
If username = "" Then loginfrm.Show

If mov Then
Me.Move Me.Left + (X - oldx), Me.Top + (Y - oldy)
End If
End Sub
Private Sub Label1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
mov = False
tim = 0
If username = "" Then loginfrm.Show

End Sub
Private Sub cmd2_Click()
Unload Me
tim = 0
If username = "" Then loginfrm.Show
End Sub

Private Sub Form_Load()
tim = 0
If username = "" Then loginfrm.Show
Me.Left = Screen.Width - Me.Width
Me.Top = 400
Dim zje As Double
Dim sl As Double
Adodc1.ConnectionString = connstr
Adodc1.CommandType = adCmdText
Adodc1.RecordSource = "select spname ,spsl,pvepice from spkc WHERE DWS='" & gsname & "' order by spname"
Adodc1.Refresh
With MSH
.Cols = 5
.Rows = 2
.ColWidth(0) = 500
.ColWidth(1) = 1500
.ColWidth(2) = 1000
.ColWidth(3) = 1000
.ColWidth(4) = 800
.TextMatrix(0, 0) = "序号"
.TextMatrix(0, 1) = "商品名称"
.TextMatrix(0, 2) = "库存数量"
.TextMatrix(0, 3) = "入库价格"
.TextMatrix(0, 4) = "备注"
Do While Not Adodc1.Recordset.EOF
i = i + 1
If i > .Rows - 1 Then .Rows = .Rows + 1
.TextMatrix(i, 0) = i
.TextMatrix(i, 1) = Adodc1.Recordset.Fields(0).Value
.TextMatrix(i, 2) = dw(Adodc1.Recordset.Fields(1).Value, Trim(Adodc1.Recordset.Fields(0).Value))
.TextMatrix(i, 3) = Adodc1.Recordset.Fields(2).Value
zje = zje + Val(Adodc1.Recordset.Fields(1).Value) * Val(Adodc1.Recordset.Fields(2).Value)
Adodc1.Recordset.MoveNext
Loop
If zje = 0 Then Exit Sub
.Rows = .Rows + 1
.TextMatrix(.Rows - 1, 3) = Format(zje, "#0.00")
End With

End Sub

Private Sub Form_Unload(Cancel As Integer)
tim = 0
If username = "" Then loginfrm.Show
selectxx = False
End Sub

Private Sub MSH_DblClick()
tim = 0
If username = "" Then loginfrm.Show
If selectxx Then
Frmck.Combo1.Text = Trim(MSH.TextMatrix(mshrow, 1))
Unload Me
End If
End Sub

Private Sub MSH_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
tim = 0
If username = "" Then loginfrm.Show
mshrow = MSH.Row
End Sub

Public Function dw(sl As Double, ss As String) As String
'On Error GoTo ext
Dim dv As Double
dw = ""
dv = 1
Dim dl As Double
If rs.State Then rs.Close
rs.Open "select spdw,mdwsl,splb from spxx WHERE DWS='" & gsname & "' and spname='" & Trim(ss) & "'", cn, 1, 1
If Not rs.EOF Then
dv = Val(rs.Fields(1).Value)
dl = sl \ dv
If dl > 0 Then dw = dl & Trim(rs.Fields(0).Value)
dw = dw & CStr(sl Mod dv) & Trim(rs.Fields(2).Value)
Else
dw = CStr(sl)
End If
Exit Function
ext:
dw = CStr(sl)

End Function

⌨️ 快捷键说明

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