⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frm_xtdl.frm

📁 人口信息管理系统 人口信息管理 查询 修改 删除
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form frm_XTDL 
   Caption         =   "人口信息管理系统"
   ClientHeight    =   3300
   ClientLeft      =   4260
   ClientTop       =   3345
   ClientWidth     =   5505
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3300
   ScaleWidth      =   5505
   Begin VB.PictureBox Picture1 
      FillStyle       =   0  'Solid
      Height          =   1815
      Left            =   120
      Picture         =   "frm_XTDL.frx":0000
      ScaleHeight     =   1755
      ScaleWidth      =   5235
      TabIndex        =   9
      Top             =   120
      Width           =   5295
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   375
      Left            =   1320
      Top             =   4200
      Width           =   2175
      _ExtentX        =   3836
      _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         =   "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_xxwhb"
      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.TextBox Text4 
      DataField       =   "密码"
      DataSource      =   "Adodc1"
      Height          =   375
      Left            =   3840
      TabIndex        =   8
      Text            =   "Text4"
      Top             =   4200
      Width           =   1215
   End
   Begin VB.Frame Frame1 
      Caption         =   "系统登录"
      Height          =   735
      Left            =   120
      TabIndex        =   2
      Top             =   2040
      Width           =   5295
      Begin VB.CommandButton Command3 
         Caption         =   "<<"
         Height          =   310
         Left            =   2640
         TabIndex        =   7
         Top             =   240
         Width           =   350
      End
      Begin VB.TextBox Text2 
         Height          =   300
         Left            =   1200
         TabIndex        =   6
         Text            =   "administrator"
         Top             =   240
         Width           =   1455
      End
      Begin VB.TextBox Text1 
         Height          =   300
         IMEMode         =   3  'DISABLE
         Left            =   3600
         PasswordChar    =   "*"
         TabIndex        =   3
         Top             =   240
         Width           =   1455
      End
      Begin VB.Label Label2 
         Caption         =   "口令"
         Height          =   255
         Left            =   3120
         TabIndex        =   5
         Top             =   360
         Width           =   615
      End
      Begin VB.Label Label1 
         Caption         =   "用户名"
         Height          =   255
         Left            =   240
         TabIndex        =   4
         Top             =   360
         Width           =   735
      End
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确定"
      Height          =   350
      Left            =   3360
      TabIndex        =   1
      Top             =   2880
      Width           =   975
   End
   Begin VB.CommandButton Command2 
      Caption         =   "取消"
      Height          =   345
      Left            =   4440
      TabIndex        =   0
      Top             =   2880
      Width           =   975
   End
End
Attribute VB_Name = "frm_XTDL"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False


Private Sub Command1_Click()
If Text2.Text = "administrator" And Text1.Text = "ljm2004" Then
frm_main.Text1.Text = "administrator"
frm_main.Check1.Value = 1
frm_main.Check2.Value = 1
frm_main.Check3.Value = 1
frm_main.Check4.Value = 1
frm_main.Check5.Value = 1
frm_main.Check6.Value = 1
frm_main.Check7.Value = 1
frm_main.Check8.Value = 1
frm_main.Check9.Value = 1
frm_main.Check10.Value = 1
frm_main.Check11.Value = 1
frm_main.Check12.Value = 1
frm_main.Check13.Value = 1
frm_main.Check14.Value = 1
frm_main.Check15.Value = 1
frm_main.Check16.Value = 1
frm_main.Show
Unload Me
Else
 Adodc1.RecordSource = "select * from Table_xxwhb where 用户名 ='" & Text2.Text & "'"
 Adodc1.Refresh
  If Adodc1.Recordset.RecordCount > 0 Then
      If Trim(Text1.Text) = Trim(Text4.Text) Then
      frm_main.Text1.Text = Adodc1.Recordset.Fields("用户名")
      frm_main.Check1.Value = Adodc1.Recordset.Fields("户口簿")
      frm_main.Check2.Value = Adodc1.Recordset.Fields("通讯录")
      frm_main.Check3.Value = Adodc1.Recordset.Fields("低保人员")
      frm_main.Check4.Value = Adodc1.Recordset.Fields("失业人员")
      frm_main.Check5.Value = Adodc1.Recordset.Fields("优抚人员")
      frm_main.Check6.Value = Adodc1.Recordset.Fields("两劳人员")
      frm_main.Check7.Value = Adodc1.Recordset.Fields("工作对象")
      frm_main.Check8.Value = Adodc1.Recordset.Fields("老年人")
      frm_main.Check9.Value = Adodc1.Recordset.Fields("残疾人")
      frm_main.Check10.Value = Adodc1.Recordset.Fields("暂住人口")
      frm_main.Check11.Value = Adodc1.Recordset.Fields("出租房")
      frm_main.Check12.Value = Adodc1.Recordset.Fields("出租房车辆")
      frm_main.Check13.Value = Adodc1.Recordset.Fields("暂扣物品")
      frm_main.Check14.Value = Adodc1.Recordset.Fields("育妇管理")
      frm_main.Check15.Value = Adodc1.Recordset.Fields("计生信息")
      frm_main.Check16.Value = Adodc1.Recordset.Fields("操作员设置")
      frm_main.Show
      Unload Me
      Else
      MsgBox "密码不正确,请您确认后重新输入"
      Text1.Text = ""
      Text1.SetFocus
      End If
  Else
  MsgBox "对不起 没有此用户的信息"
  Text2.Text = ""
  Text1.Text = ""
  End If
  End If
'MDI_main.StatusBar1.Panels.Item(2).Text = "当前操作员: " + frm_RYXS.ListView1.SelectedItem.Text
End Sub

Private Sub Command2_Click()
End
'If frm_XTDL.Caption = "房地产销售管理系统" Then
'End
'ElseIf frm_XTDL.Caption = "数据清理权限管理" Then
'Unload Me
'Else
'End If
End Sub


Private Sub Command3_Click()
'frm_XTDL.Hide
Unload Me
frm_RYXS.Show
frm_RYXS.Caption = "操作员选择"
End Sub

Private Sub Image1_Click()

End Sub

Private Sub Form_Load()
Me.Left = (Screen.Width - Me.Width) / 2
Me.Top = (Screen.Height - Me.Height) / 2
End Sub

Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Call Command1_Click
Else
End If
'MDI_main.StatusBar1.Panels.Item(2).Text = "当前操作员: " + frm_RYXS.ListView1.SelectedItem.Text
End Sub

Private Sub Text2_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Text1.SetFocus
Else
End If
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -