?? frmjb.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()
On Error GoTo errp
Dim xsrq As Date
Dim money As Currency
Dim i As Integer
frmjb.Top = (frmmain.Height - frmjb.Height) / 2 - 500
frmjb.Left = (frmmain.Width - frmjb.Width) / 2
money = 0
Adodc1.ConnectionString = frmlogin.conn
Adodc1.RecordSource = "select 住院證號,患者姓名,科室類別,收費日期,費用合計 from fyjl 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 & "元"
Exit Sub
errp:
MsgBox "數據庫連接失敗!"
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 + -