📄 form11.frm
字号:
VERSION 5.00
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Begin VB.Form Form11
Caption = "Form11"
ClientHeight = 9450
ClientLeft = 60
ClientTop = 345
ClientWidth = 13125
ControlBox = 0 'False
Icon = "Form11.frx":0000
LinkTopic = "Form11"
MDIChild = -1 'True
ScaleHeight = 9450
ScaleWidth = 13125
WindowState = 2 'Maximized
Begin VB.CommandButton Command2
Caption = "关闭"
Height = 375
Left = 12120
TabIndex = 17
Top = 840
Width = 615
End
Begin VB.Frame Frame2
Caption = "内容"
Height = 7935
Left = 120
TabIndex = 1
Top = 1440
Width = 12855
End
Begin VB.Frame Frame1
Height = 1335
Left = 120
TabIndex = 0
Top = 0
Width = 12735
Begin VB.Frame Frame4
Caption = "查询"
Height = 975
Left = 120
TabIndex = 7
Top = 240
Width = 7935
Begin VB.CommandButton Command1
Height = 345
Left = 7200
Picture = "Form11.frx":030A
Style = 1 'Graphical
TabIndex = 12
Top = 360
Width = 495
End
Begin VB.ComboBox Combo1
Height = 300
Left = 1080
TabIndex = 9
Text = "Combo1"
Top = 360
Width = 1455
End
Begin VB.TextBox Text1
Alignment = 1 'Right Justify
Height = 270
Left = 3240
TabIndex = 15
Text = "0"
Top = 360
Width = 2775
End
Begin VB.ComboBox Combo2
Height = 300
Left = 3240
TabIndex = 16
Top = 360
Width = 2895
End
Begin MSComCtl2.DTPicker DTPicker2
Height = 255
Left = 5160
TabIndex = 11
Top = 360
Width = 1695
_ExtentX = 2990
_ExtentY = 450
_Version = 393216
Format = 25559041
CurrentDate = 37860
End
Begin MSComCtl2.DTPicker DTPicker1
Height = 255
Left = 3120
TabIndex = 10
Top = 360
Width = 1695
_ExtentX = 2990
_ExtentY = 450
_Version = 393216
Format = 25559041
CurrentDate = 240
End
Begin VB.Label Label6
Caption = "到"
Height = 255
Left = 4920
TabIndex = 14
Top = 360
Width = 255
End
Begin VB.Label Label5
Caption = "从"
Height = 255
Left = 2880
TabIndex = 13
Top = 360
Width = 375
End
Begin VB.Label Label1
Caption = "分类查询"
Height = 375
Left = 120
TabIndex = 8
Top = 360
Width = 1095
End
End
Begin VB.Frame Frame3
Caption = "统计"
Height = 975
Left = 8160
TabIndex = 3
Top = 240
Width = 3495
Begin VB.Label Label4
Caption = "人"
ForeColor = &H00FF0000&
Height = 255
Left = 2160
TabIndex = 6
Top = 360
Width = 375
End
Begin VB.Label Label3
Alignment = 1 'Right Justify
Caption = "0"
ForeColor = &H000000FF&
Height = 255
Left = 1560
TabIndex = 5
Top = 360
Width = 495
End
Begin VB.Label Label2
Caption = "合计:"
ForeColor = &H00FF0000&
Height = 255
Left = 840
TabIndex = 4
Top = 360
Width = 735
End
End
End
Begin VB.Data Data1
Caption = "Data1"
Connect = "Access"
DatabaseName = ""
DefaultCursorType= 0 '缺省游标
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 495
Left = 9240
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = ""
Top = 480
Visible = 0 'False
Width = 1815
End
End
Attribute VB_Name = "Form11"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'****************************************************************************
'人人为我,我为人人
'枕善居汉化收藏整理
'发布日期:2007/05/02
'描 述:小型企业进销存源代码
'网 站:http://www.Mndsoft.com/ (VB6源码博客)
'网 站:http://www.VbDnet.com/ (VB.NET源码博客,主要基于.NET2005)
'e-mail :Mndsoft@163.com
'e-mail :Mndsoft@126.com
'OICQ :88382850
' 如果您有新的好的代码别忘记给枕善居哦!
'****************************************************************************
Private Sub Combo1_Click()
Dim count As Integer
Dim Name As Long
Dim i As Integer, n As Integer
If Combo1.Text = "出生年月" Then
DTPicker1.Visible = True
DTPicker2.Visible = True
Label5.Visible = True
Label6.Visible = True
Text1.Visible = False
Combo2.Visible = False
ElseIf Combo1.Text = "学历" Then
Combo2.Clear
count = GetPrivateProfileInt("文化程度", "类型数", 0, App.Path + "\数据\部门.ini")
For i = 1 To count
Combo2.AddItem GetPrivateStringValue("文化程度", "b" & i, App.Path + "\数据\部门.ini")
Next i
Combo2.Text = GetPrivateStringValue("文化程度", "b1", App.Path + "\数据\部门.ini")
'加入文化程度选框
Text1.Visible = False
DTPicker1.Visible = False
DTPicker2.Visible = False
Label5.Visible = False
Label6.Visible = False
Combo2.Visible = True
ElseIf Combo1.Text = "性别" Then
Combo2.Clear
Combo2.AddItem "男"
Combo2.AddItem "女"
Combo2.Text = "女"
Text1.Visible = False
DTPicker1.Visible = False
DTPicker2.Visible = False
Label5.Visible = False
Label6.Visible = False
Combo2.Visible = True
ElseIf Combo1.Text = "政治面貌" Then
Combo2.Clear
count = GetPrivateProfileInt("政治面貌", "类型数", 0, App.Path + "\数据\部门.ini")
For i = 1 To count
Combo2.AddItem GetPrivateStringValue("政治面貌", "b" & i, App.Path + "\数据\部门.ini")
Next i
Combo2.Text = GetPrivateStringValue("政治面貌", "b1", App.Path + "\数据\部门.ini")
'加入政治面貌选框
Text1.Visible = False
DTPicker1.Visible = False
DTPicker2.Visible = False
Label5.Visible = False
Label6.Visible = False
Combo2.Visible = True
ElseIf Combo1.Text = "本厂工龄" Then
Text1.Visible = True
Combo2.Visible = False
DTPicker1.Visible = False
DTPicker2.Visible = False
Label5.Visible = False
Label6.Visible = False
ElseIf Combo1.Text = "籍贯" Then
Text1.Text = "湖北"
Text1.Visible = True
DTPicker1.Visible = False
DTPicker2.Visible = False
Label5.Visible = False
Label6.Visible = False
Combo2.Visible = False
ElseIf Combo1.Text = "婚姻状况" Then
Combo2.Clear
Combo2.AddItem "未婚"
Combo2.AddItem "已婚"
Combo2.AddItem "再婚"
Combo2.AddItem "离异"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -