?? cw_hedui.frm
字號(hào):
VERSION 5.00
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form cw_hedui
BorderStyle = 1 'Fixed Single
Caption = "鐵東區(qū)婦幼保健院信息管理系統(tǒng)"
ClientHeight = 6975
ClientLeft = 60
ClientTop = 345
ClientWidth = 8280
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 6975
ScaleWidth = 8280
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Command2
Caption = "打 印"
Height = 375
Left = 6600
TabIndex = 8
Top = 720
Width = 1095
End
Begin VB.Frame Frame1
Caption = "詳細(xì)信息"
Height = 5415
Left = 120
TabIndex = 6
Top = 1200
Width = 7815
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = 1320
Top = 3360
Visible = 0 'False
Width = 1200
_ExtentX = 2117
_ExtentY = 661
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 MSDataGridLib.DataGrid DataGrid1
Height = 4935
Left = 240
TabIndex = 7
Top = 360
Width = 7455
_ExtentX = 13150
_ExtentY = 8705
_Version = 393216
HeadLines = 1
RowHeight = 15
BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
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
ColumnCount = 2
BeginProperty Column00
DataField = ""
Caption = ""
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column01
DataField = ""
Caption = ""
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
SplitCount = 1
BeginProperty Split0
BeginProperty Column00
EndProperty
BeginProperty Column01
EndProperty
EndProperty
End
End
Begin VB.CommandButton Command1
Caption = "核 對(duì)"
Height = 375
Left = 5280
TabIndex = 5
Top = 720
Width = 1095
End
Begin MSComCtl2.DTPicker sj
Height = 375
Left = 3600
TabIndex = 4
Top = 720
Width = 1335
_ExtentX = 2355
_ExtentY = 661
_Version = 393216
Format = 57475073
CurrentDate = 38070
End
Begin VB.ComboBox caozuo
Height = 300
Left = 1200
TabIndex = 1
Text = "選擇人名"
Top = 720
Width = 1455
End
Begin VB.Label Label5
AutoSize = -1 'True
Caption = "元"
Height = 180
Left = 6720
TabIndex = 11
Top = 6720
Width = 180
End
Begin VB.Label Label4
AutoSize = -1 'True
Caption = "總計(jì)"
Height = 180
Left = 5400
TabIndex = 10
Top = 6720
Width = 360
End
Begin VB.Label jine
AutoSize = -1 'True
Caption = "0"
Height = 180
Left = 5880
TabIndex = 9
Top = 6720
Width = 810
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "時(shí)間"
Height = 180
Left = 3000
TabIndex = 3
Top = 720
Width = 360
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "收款員"
Height = 180
Left = 360
TabIndex = 2
Top = 720
Width = 540
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "數(shù)據(jù)核對(duì)"
BeginProperty Font
Name = "黑體"
Size = 15
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 300
Left = 3000
TabIndex = 0
Top = 120
Width = 1260
End
End
Attribute VB_Name = "cw_hedui"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
type1 = "作廢"
Dim sql As String
sql = "select 姓名,金額,日期,操作員,類別 from 收費(fèi)表 where 操作員='" & Trim(caozuo.Text) & "' and 日期='" & CStr(sj.Value) & "' and 類別<>'" & Trim(type1) & "'"
Dim rs As New ADODB.Recordset
rs.Open sql, db
If Not rs.EOF Then
'總計(jì)1金額
Dim sql1 As String
sql1 = "select sum(金額) as 金額 from 收費(fèi)表 where 操作員='" & Trim(caozuo.Text) & "' and 日期='" & CStr(sj.Value) & "'and 類別<>'" & Trim(type1) & "' "
Dim rs1 As New ADODB.Recordset
rs1.Open sql1, db
jine.Caption = rs1("金額")
Set DataGrid1.DataSource = rs
Else
b1 = MsgBox("沒(méi)有找到指定記錄?", vbQuestion, "系統(tǒng)提示!")
Exit Sub
End If
Adodc1.CommandType = adCmdText
Adodc1.ConnectionString = db
Adodc1.RecordSource = sql
Set DataGrid1.DataSource = Adodc1
Adodc1.Refresh
End Sub
Private Sub Command2_Click()
Set 數(shù)據(jù)核對(duì)表.DataSource = Adodc1
數(shù)據(jù)核對(duì)表.Sections.Item("section4").Controls.Item("count").Caption = jine.Caption
數(shù)據(jù)核對(duì)表.Show
End Sub
Private Sub Form_Load()
sj.Value = Date
v_bumen1 = "收款"
Dim rs48 As New ADODB.Recordset
Dim sql48 As String
sql48 = "select distinct(姓名) from 人名 where 部門 = '" + v_bumen1 + "'"
rs48.Open sql48, db
While Not rs48.EOF
caozuo.AddItem IIf(IsNull(rs48!姓名), "", rs48!姓名)
rs48.MoveNext
Wend
End Sub
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -