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

📄 jkws.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"; "CoolBoySkin.ocx"
Begin VB.Form jkws 
   BackColor       =   &H00FFFF80&
   BorderStyle     =   0  'None
   ClientHeight    =   7740
   ClientLeft      =   0
   ClientTop       =   0
   ClientWidth     =   9435
   LinkTopic       =   "Form1"
   ScaleHeight     =   7740
   ScaleWidth      =   9435
   ShowInTaskbar   =   0   'False
   StartUpPosition =   3  '窗口缺省
   Begin 工程1.xpcmdbutton xpcmdbutton3 
      Height          =   285
      Left            =   240
      TabIndex        =   5
      Top             =   7170
      Width           =   1080
      _ExtentX        =   1905
      _ExtentY        =   503
      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 xpcmdbutton2 
      Height          =   270
      Left            =   8145
      TabIndex        =   4
      Top             =   7170
      Width           =   975
      _ExtentX        =   1720
      _ExtentY        =   476
      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 xpcmdbutton1 
      Height          =   315
      Left            =   6900
      TabIndex        =   3
      Top             =   7155
      Width           =   1050
      _ExtentX        =   1852
      _ExtentY        =   556
      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 CoolBoySkinForVB6.CoolBoySkin CoolBoySkin1 
      Height          =   1845
      Left            =   5595
      TabIndex        =   2
      Top             =   435
      Width           =   3405
      _ExtentX        =   6006
      _ExtentY        =   3254
      Caption         =   ""
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "黑体"
         Size            =   9.75
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      MenuBackColor   =   16777215
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   360
      Left            =   6465
      Top             =   645
      Visible         =   0   'False
      Width           =   2325
      _ExtentX        =   4101
      _ExtentY        =   635
      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=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   ""
      OLEDBString     =   ""
      OLEDBFile       =   ""
      DataSourceName  =   ""
      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 VB.TextBox Text1 
      Alignment       =   2  'Center
      Appearance      =   0  'Flat
      BackColor       =   &H00FFFFC0&
      Height          =   285
      Left            =   195
      TabIndex        =   1
      Top             =   690
      Visible         =   0   'False
      Width           =   1215
   End
   Begin MSHierarchicalFlexGridLib.MSHFlexGrid MSH 
      Height          =   6615
      Left            =   315
      TabIndex        =   0
      Top             =   420
      Width           =   8850
      _ExtentX        =   15610
      _ExtentY        =   11668
      _Version        =   393216
      FixedCols       =   0
      BackColorFixed  =   16777152
      BackColorBkg    =   12632256
      AllowUserResizing=   3
      Appearance      =   0
      _NumberOfBands  =   1
      _Band(0).Cols   =   2
   End
End
Attribute VB_Name = "jkws"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public newusername As String
Public newdh As String
Public flagn As Integer
Dim rr As Integer
Dim cc As Integer
Private Sub Form_Load()
Me.Top = mme.Top + mme.Height
Me.Left = Screen.Width - Me.Width - 100
Me.Show
Adodc1.ConnectionString = connstr
Adodc1.CommandType = adCmdText
Adodc1.CommandTimeout = 20
CoolBoySkin1.Caption = "交班单号:" & newdh & " 交班人:" & newusername
loadmsh

End Sub

Public Sub loadmsh()
With MSH
.Clear
.Cols = 5
.Rows = .Height \ .RowHeight(0)
.TextMatrix(0, 0) = "项目"
.TextMatrix(0, 1) = "收款金额"
.TextMatrix(0, 2) = "付款金额"
.TextMatrix(0, 3) = "小计"
.TextMatrix(0, 4) = "备注"
For i = 0 To 4
.ColAlignment(i) = 4
.ColAlignmentFixed(i) = 4
Next
.ColWidth(0) = (.Width - 300) \ 3
.ColWidth(1) = (.Width - 300) \ 9
.ColWidth(2) = (.Width - 300) \ 9
.ColWidth(3) = (.Width - 300) \ 9
.ColWidth(4) = (.Width - 300) \ 3
Adodc1.RecordSource = "select DISTINCT xm from yye where flags=0 and dws='" & gsname & "'"
Adodc1.Refresh
i = 0
Do While Not Adodc1.Recordset.EOF
i = i + 1
If .Rows < i + 1 Then .Rows = i + 1
.TextMatrix(i, 0) = Trim(Adodc1.Recordset.Fields(0))
Adodc1.Recordset.MoveNext
Loop
End With
End Sub

Private Sub MSH_GotFocus()
If Text1.Visible = False Then MSH_RowColChange
End Sub

Private Sub MSH_RowColChange()
rr = MSH.Row
cc = MSH.Col

Text1.Visible = False
If rr = 0 Then Exit Sub

With Text1
.Move MSH.Left + MSH.ColPos(cc), MSH.RowPos(rr) + MSH.Top, MSH.ColWidth(cc) + 10, MSH.RowHeight(rr)
.Text = MSH.TextMatrix(rr, cc)
.Visible = True
.SetFocus
End With
End Sub

Private Sub Text1_Change()
Dim vv As Double
If cc = 2 Or cc = 1 Then
If Not IsNumeric(Text1.Text) Then Text1.Text = ""
End If
MSH.TextMatrix(rr, cc) = Trim(Text1.Text)

End Sub

Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
vv = Val(MSH.TextMatrix(rr, 1)) - Val(MSH.TextMatrix(rr, 2))
MSH.TextMatrix(rr, 3) = Format(vv, "#0.00")

If cc < MSH.Cols - 1 Then
cc = cc + 1
Else
 cc = 0
 If rr < MSH.Rows - 1 Then
 rr = rr + 1
 ElseIf rr + 1 = MSH.Rows Then
 MSH.Rows = rr + 2
 End If
End If
Text1.Visible = False

End If
MSH.Row = rr
If cc = 3 Then cc = 4
MSH.Col = cc
MSH_RowColChange
End Sub

Private Sub xpcmdbutton1_Click()
If MsgBox("确定提交数据吗?", vbYesNo + vbQuestion, "保存") = vbNo Then Exit Sub
On Error Resume Next
Adodc1.RecordSource = "select * from yye where dh = '" & newdh & "' and dws='" & gsname & "'"
Adodc1.Refresh
For i = 1 To MSH.Rows - 1
If Val(MSH.TextMatrix(i, 1)) + Val(MSH.TextMatrix(i, 2)) = 0 Then GoTo ext
With Adodc1.Recordset
.addnew
.Fields("xm") = Trim(MSH.TextMatrix(i, 0))
.Fields("jk") = Format(Val(MSH.TextMatrix(i, 1)), "#0.00")
.Fields("fk") = Format(Val(MSH.TextMatrix(i, 2)), "#0.00")
.Fields("je") = Format(Val(MSH.TextMatrix(i, 3)), "#0.00")
.Fields("beizhu") = Trim(MSH.TextMatrix(i, 4))
.Fields("sdate") = Now
.Fields("dh") = newdh
.Fields("jbr") = username
.Fields("jbs") = newusername
.Fields("flags") = 0
.Fields("dws") = gsname
.Update
End With
ext:
Next
DoEvents
Unload Me
Unload jbdjs
loginfrm.Show
End Sub

Private Sub xpcmdbutton2_Click()
Unload Me
Unload jbdjs
End Sub

Private Sub xpcmdbutton3_Click()
frmbb.Show

End Sub

⌨️ 快捷键说明

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