📄 zmgl_f.frm
字号:
ConnectStringType= 1
Appearance = 0
BackColor = -2147483643
ForeColor = 255
Orientation = 0
Enabled = -1
Connect = "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=nccc.mdb"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=nccc.mdb"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = $"zmgl_f.frx":031F
Caption = "计算中心计费系统"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin VB.Label Label6
Alignment = 1 'Right Justify
Appearance = 0 'Flat
AutoSize = -1 'True
BackColor = &H80000005&
BackStyle = 0 'Transparent
BorderStyle = 1 'Fixed Single
Caption = "自费金额:"
BeginProperty Font
Name = "宋体"
Size = 15
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Height = 330
Left = 810
TabIndex = 8
Top = 7440
Width = 1470
End
Begin VB.Label Label5
Alignment = 1 'Right Justify
Appearance = 0 'Flat
AutoSize = -1 'True
BackColor = &H80000005&
BackStyle = 0 'Transparent
BorderStyle = 1 'Fixed Single
Caption = "0"
BeginProperty Font
Name = "宋体"
Size = 15
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Height = 330
Left = 3315
TabIndex = 7
Top = 7440
Width = 210
End
Begin VB.Label Label4
Alignment = 1 'Right Justify
Appearance = 0 'Flat
AutoSize = -1 'True
BackColor = &H80000005&
BackStyle = 0 'Transparent
BorderStyle = 1 'Fixed Single
Caption = "教学金额:"
BeginProperty Font
Name = "宋体"
Size = 15
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Height = 330
Left = 5280
TabIndex = 6
Top = 7440
Width = 1470
End
Begin VB.Label Label3
Alignment = 1 'Right Justify
Appearance = 0 'Flat
AutoSize = -1 'True
BackColor = &H80000005&
BackStyle = 0 'Transparent
BorderStyle = 1 'Fixed Single
Caption = "0"
BeginProperty Font
Name = "宋体"
Size = 15
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Height = 330
Left = 7650
TabIndex = 5
Top = 7440
Width = 210
End
Begin VB.Label Label2
Alignment = 1 'Right Justify
Appearance = 0 'Flat
AutoSize = -1 'True
BackColor = &H80000005&
BackStyle = 0 'Transparent
BorderStyle = 1 'Fixed Single
Caption = "总金额:"
BeginProperty Font
Name = "宋体"
Size = 15
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Height = 330
Left = 9090
TabIndex = 4
Top = 7440
Width = 1155
End
Begin VB.Label Label1
Alignment = 1 'Right Justify
Appearance = 0 'Flat
AutoSize = -1 'True
BackColor = &H80000005&
BackStyle = 0 'Transparent
BorderStyle = 1 'Fixed Single
Caption = "0"
BeginProperty Font
Name = "宋体"
Size = 15
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Height = 330
Left = 11355
TabIndex = 3
Top = 7440
Width = 210
End
End
Attribute VB_Name = "zmgl_f"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
drqs
End Sub
Private Sub Command2_Click()
zifei_q = 0
jiaoxue_q = 0
zz_q = 0
Label5.Caption = 0
Label3.Caption = 0
Label1.Caption = 0
sql = "select 账目明细.卡号,基本表.姓名,基本表.班级,基本表.所属系,基本表.所属院,账目明细.金额,账目明细.性质,账目明细.入账日期,账目明细.经手人 from 账目明细,基本表 where 账目明细.卡号=基本表.卡号 order by 账目明细.经手人"
Adodc1.RecordSource = sql
Adodc1.Refresh
If Adodc1.Recordset.EOF Or Adodc1.Recordset.BOF Then
Exit Sub
Else
Adodc1.Recordset.MoveFirst
Do While Not Adodc1.Recordset.EOF
zz_q = Val(zz_q) + Val(Adodc1.Recordset("金额"))
If Adodc1.Recordset("性质") = "自费" Then zifei_q = Val(zifei_q) + Val(Adodc1.Recordset("金额"))
If Adodc1.Recordset("性质") = "教学" Then jiaoxue_q = Val(jiaoxue_q) + Val(Adodc1.Recordset("金额"))
Adodc1.Recordset.MoveNext
Loop
End If
Adodc1.Refresh
Label5.Caption = zifei_q
Label3.Caption = jiaoxue_q
Label1.Caption = zz_q
End Sub
Private Sub Form_Load()
drqs
End Sub
Sub drqs()
zifei_q = 0
jiaoxue_q = 0
zz_q = 0
Label5.Caption = 0
Label3.Caption = 0
Label1.Caption = 0
sql = "select 账目明细.卡号,基本表.姓名,基本表.班级,基本表.所属系,基本表.所属院,账目明细.金额,账目明细.性质,账目明细.入账日期,账目明细.经手人 from 账目明细,基本表 where 账目明细.卡号=基本表.卡号 and 账目明细.入账日期='" & Date & "' order by 账目明细.经手人"
Adodc1.RecordSource = sql
Adodc1.Refresh
If Adodc1.Recordset.EOF Or Adodc1.Recordset.BOF Then
Exit Sub
Else
Adodc1.Recordset.MoveFirst
Do While Not Adodc1.Recordset.EOF
zz_q = Val(zz_q) + Val(Adodc1.Recordset("金额"))
If Adodc1.Recordset("性质") = "自费" Then zifei_q = Val(zifei_q) + Val(Adodc1.Recordset("金额"))
If Adodc1.Recordset("性质") = "教学" Then jiaoxue_q = Val(jiaoxue_q) + Val(Adodc1.Recordset("金额"))
Adodc1.Recordset.MoveNext
Loop
End If
Adodc1.Refresh
Label5.Caption = zifei_q
Label3.Caption = jiaoxue_q
Label1.Caption = zz_q
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -