📄 frm_zzrk_zkwpgl.frm
字号:
BeginProperty Column04
ColumnWidth = 2085.166
EndProperty
BeginProperty Column05
ColumnWidth = 2085.166
EndProperty
BeginProperty Column06
ColumnWidth = 2085.166
EndProperty
BeginProperty Column07
ColumnWidth = 2085.166
EndProperty
BeginProperty Column08
ColumnWidth = 2085.166
EndProperty
BeginProperty Column09
ColumnWidth = 2085.166
EndProperty
BeginProperty Column10
ColumnWidth = 2085.166
EndProperty
BeginProperty Column11
ColumnWidth = 2085.166
EndProperty
BeginProperty Column12
ColumnWidth = 2085.166
EndProperty
BeginProperty Column13
ColumnWidth = 2085.166
EndProperty
EndProperty
End
Begin MSAdodcLib.Adodc Adodc1
Height = 330
Left = 0
Top = 7920
Visible = 0 'False
Width = 3975
_ExtentX = 7011
_ExtentY = 582
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 1
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "Provider=MSDASQL.1;Persist Security Info=False;User ID=SA;Data Source=RKGL"
OLEDBString = "Provider=MSDASQL.1;Persist Security Info=False;User ID=SA;Data Source=RKGL"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from Table_ZZRK_ZKXX"
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 MSComctlLib.ImageList ImageList1
Left = 4080
Top = 4200
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 32
ImageHeight = 32
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 7
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frm_ZZRK_ZKWPGL.frx":0015
Key = ""
EndProperty
BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frm_ZZRK_ZKWPGL.frx":0469
Key = ""
EndProperty
BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frm_ZZRK_ZKWPGL.frx":08BD
Key = ""
EndProperty
BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frm_ZZRK_ZKWPGL.frx":0D11
Key = ""
EndProperty
BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frm_ZZRK_ZKWPGL.frx":15ED
Key = ""
EndProperty
BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frm_ZZRK_ZKWPGL.frx":1A41
Key = ""
EndProperty
BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frm_ZZRK_ZKWPGL.frx":231D
Key = ""
EndProperty
EndProperty
End
Begin MSComctlLib.Toolbar Toolbar1
Align = 1 'Align Top
Height = 660
Left = 0
TabIndex = 3
Top = 0
Width = 8415
_ExtentX = 14843
_ExtentY = 1164
ButtonWidth = 1984
ButtonHeight = 1005
Appearance = 1
TextAlignment = 1
ImageList = "ImageList1"
_Version = 393216
BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628}
NumButtons = 7
BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "增加 "
ImageIndex = 1
EndProperty
BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "删除 "
ImageIndex = 2
EndProperty
BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "修改 "
ImageIndex = 3
EndProperty
BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = " 查询 "
ImageIndex = 4
EndProperty
BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "刷新 "
ImageIndex = 5
EndProperty
BeginProperty Button6 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "打印 "
ImageIndex = 6
EndProperty
BeginProperty Button7 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "关闭 "
ImageIndex = 7
EndProperty
EndProperty
BorderStyle = 1
End
End
Attribute VB_Name = "frm_ZZRK_ZKWPGL"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub ADD_Click()
frm_ZZRK_ZKWP_ADD.Show
End Sub
Private Sub DEL_Click()
If Adodc1.Recordset.EOF = False Then
c = MsgBox("您确认要删除该记录吗?", 17, "人口信息管理系统")
If c = vbOK Then
Adodc1.Recordset.Delete
Adodc1.Refresh
Else
End If
Else
MsgBox "当前数据库中已经没有可删除的记录", 32, "人口信息管理系统"
End If
End Sub
Private Sub DYJSZ_Click()
CommonDialog1.ShowPrinter
End Sub
Private Sub DYYL_Click()
DataEnvironment1.rszkwp.Open "select * from Table_ZZRK_ZKXX "
If DataEnvironment1.rszkwp.RecordCount > 0 Then
DataRep_zkwp.Show
Else
MsgBox "当前数据库中没有常住人口的基本信息", 32, "人口信息管理系统"
DataEnvironment1.rszkwp.Close
End If
End Sub
Private Sub EDIT_Click()
frm_ZZRK_ZKWP_XGCX.Show
frm_ZZRK_ZKWP_XGCX.Caption = "暂扣物品修改"
End Sub
Private Sub EXIT_Click()
Unload Me
End Sub
Private Sub print_Click()
DataEnvironment1.rszkwp.Open "select * from Table_ZZRK_ZKXX "
If DataEnvironment1.rszkwp.RecordCount > 0 Then
DataRep_zkwp.Show
Else
MsgBox "当前数据库中没有常住人口的基本信息", 32, "人口信息管理系统"
DataEnvironment1.rszkwp.Close
End If
End Sub
Private Sub DataGrid7_Error(ByVal DataError As Integer, Response As Integer)
Response = 0
End Sub
Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
Select Case Button.Index
Case 1
frm_ZZRK_ZKWP_ADD.Show
Adodc1.RecordSource = "select * from Table_ZZRK_ZKXX where 暂扣证号 like '%" + Format(Date, "yyyymmdd") + "%' order by 暂扣证号"
Adodc1.Refresh
If Adodc1.Recordset.RecordCount > 0 Then
Adodc1.Recordset.MoveLast
frm_ZZRK_ZKWP_ADD.Text1.Text = Adodc1.Recordset.Fields("暂扣证号")
frm_ZZRK_ZKWP_ADD.Text1.Text = Val(frm_ZZRK_EDIT.Text1.Text) + 1
Else
frm_ZZRK_ZKWP_ADD.Text1.Text = Format(Date, "yyyymmdd") + "001"
End If
Case 2
If Adodc1.Recordset.EOF = False Then
c = MsgBox("您确认要删除该记录吗?", 17, "人口信息管理系统")
If c = vbOK Then
Adodc1.Recordset.Delete
Adodc1.Refresh
Else
End If
Else
MsgBox "当前数据库中已经没有可删除的记录", 32, "人口信息管理系统"
End If
Case 3
frm_ZZRK_ZKWP_XGCX.Show
frm_ZZRK_ZKWP_XGCX.Caption = "暂扣物品修改"
Case 4
frm_ZZRK_ZKWP_XGCX.Show
frm_ZZRK_ZKWP_XGCX.Caption = "暂扣物品查询"
Case 5
Adodc1.RecordSource = "select * from Table_ZZRK_ZKXX"
Adodc1.Refresh
Case 6
DataEnvironment1.rszkwp.Open "select * from Table_ZZRK_ZKXX "
If DataEnvironment1.rszkwp.RecordCount > 0 Then
DataRep_zkwp.Show
Else
MsgBox "当前数据库中没有常住人口的基本信息", 32, "人口信息管理系统"
DataEnvironment1.rszkwp.Close
End If
Case 7
Unload Me
End Select
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -