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

📄 frmjb.frm

📁 一个比较简单的由VB+Access开发的系统,请慢看
💻 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"
Begin VB.Form frmjb 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "交班结算"
   ClientHeight    =   2790
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   7905
   Icon            =   "frmjb.frx":0000
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   MinButton       =   0   'False
   Picture         =   "frmjb.frx":030A
   ScaleHeight     =   2790
   ScaleWidth      =   7905
   ShowInTaskbar   =   0   'False
   Begin VB.TextBox Text2 
      Alignment       =   2  'Center
      Height          =   300
      Left            =   6360
      Locked          =   -1  'True
      TabIndex        =   5
      Top             =   600
      Width           =   1400
   End
   Begin VB.TextBox Text1 
      Height          =   300
      Left            =   6360
      Locked          =   -1  'True
      TabIndex        =   4
      Top             =   240
      Width           =   1400
   End
   Begin VB.CommandButton Command2 
      Caption         =   "关闭&(C)"
      Height          =   300
      Left            =   6840
      TabIndex        =   3
      Top             =   2400
      Width           =   1000
   End
   Begin VB.TextBox Text3 
      Alignment       =   1  'Right Justify
      Height          =   300
      Left            =   6360
      Locked          =   -1  'True
      TabIndex        =   2
      Top             =   960
      Width           =   1400
   End
   Begin MSHierarchicalFlexGridLib.MSHFlexGrid MSHFlexGrid1 
      Bindings        =   "frmjb.frx":59F9
      Height          =   2535
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   5440
      _ExtentX        =   9604
      _ExtentY        =   4471
      _Version        =   393216
      BackColor       =   16777215
      FixedCols       =   0
      BackColorFixed  =   16432043
      BackColorSel    =   65535
      BackColorBkg    =   -2147483628
      _NumberOfBands  =   1
      _Band(0).Cols   =   2
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   330
      Left            =   5640
      Top             =   2400
      Visible         =   0   'False
      Width           =   1215
      _ExtentX        =   2143
      _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=   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.Label Label4 
      BackStyle       =   0  'Transparent
      Caption         =   "    注意:如果您是跨夜交班,您当班期间的销售总额应包括前一日您的销售额。"
      Height          =   800
      Left            =   5760
      TabIndex        =   8
      Top             =   1500
      Width           =   2000
   End
   Begin VB.Label Label3 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "销售额"
      Height          =   180
      Left            =   5760
      TabIndex        =   7
      Top             =   1035
      Width           =   540
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "日  期"
      Height          =   180
      Left            =   5760
      TabIndex        =   6
      Top             =   675
      Width           =   540
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "值班人"
      Height          =   180
      Left            =   5760
      TabIndex        =   1
      Top             =   285
      Width           =   540
   End
End
Attribute VB_Name = "frmjb"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub Command2_Click()
Unload Me
End Sub

Private Sub Form_Load()
frmjb.Top = (frmmain.Height - frmjb.Height) / 2 - 500
frmjb.Left = (frmmain.Width - frmjb.Width) / 2
Dim xsrq As Date
Dim money As Currency
Dim i As Integer
money = 0
Adodc1.ConnectionString = frmlogin.conn
Adodc1.RecordSource = "select 序号,科室类别,患者姓名,就诊日期,费用合计 from mzsf where 收费员='" & frmlogin.username & "' and 就诊日期=Date()"
Adodc1.Refresh
xsrq = Date
For i = 1 To Adodc1.Recordset.RecordCount
money = money + CCur(Adodc1.Recordset.Fields("费用合计"))
Adodc1.Recordset.MoveNext
Next
Text1.Text = frmlogin.username
Text2.Text = Year(CDate(xsrq)) & "年" & Month(CDate(xsrq)) & "月" & Day(CDate(xsrq)) & "日"
Text3.Text = money & "元"
End Sub
Private Sub Form_Unload(Cancel As Integer)
frmmain.StatusBar1.Panels(2) = "目前没有窗口被激活"
End Sub
Private Sub Form_Activate()
frmmain.StatusBar1.Panels(2) = "活动窗口:" & frmjb.Caption
End Sub

⌨️ 快捷键说明

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