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

📄 管理人才信息查询.frm

📁 人才管理系统
💻 FRM
📖 第 1 页 / 共 2 页
字号:
      Height          =   210
      Left            =   8460
      TabIndex        =   20
      Top             =   2100
      Width           =   210
   End
   Begin VB.Label Label32 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "街(路)"
      Height          =   210
      Left            =   6270
      TabIndex        =   18
      Top             =   2100
      Width           =   840
   End
   Begin VB.Label Label31 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "区(镇)"
      Height          =   210
      Left            =   4260
      TabIndex        =   16
      Top             =   2100
      Width           =   840
   End
   Begin VB.Label Label30 
      BackStyle       =   0  'Transparent
      Caption         =   "市(县)"
      Height          =   375
      Left            =   2400
      TabIndex        =   14
      Top             =   2100
      Width           =   855
   End
   Begin VB.Label Label7 
      BackStyle       =   0  'Transparent
      Caption         =   "出生年月"
      Height          =   375
      Left            =   5040
      TabIndex        =   13
      Top             =   720
      Width           =   1035
   End
   Begin VB.Label lable25 
      BackStyle       =   0  'Transparent
      Caption         =   "年"
      Height          =   375
      Left            =   7500
      TabIndex        =   12
      Top             =   720
      Width           =   375
   End
   Begin VB.Label Label25 
      BackStyle       =   0  'Transparent
      Caption         =   "月"
      Height          =   375
      Left            =   8700
      TabIndex        =   11
      Top             =   720
      Width           =   255
   End
   Begin VB.Label Label26 
      BackStyle       =   0  'Transparent
      Caption         =   "日"
      Height          =   375
      Left            =   9720
      TabIndex        =   10
      Top             =   720
      Width           =   375
   End
   Begin VB.Line Line1 
      BorderColor     =   &H00FFFFFF&
      BorderWidth     =   2
      X1              =   3.968
      X2              =   1026.997
      Y1              =   35.936
      Y2              =   35.936
   End
   Begin VB.Label Label8 
      BackStyle       =   0  'Transparent
      Caption         =   "政治面貌"
      Height          =   375
      Left            =   3540
      TabIndex        =   4
      Top             =   1320
      Width           =   1215
   End
   Begin VB.Label Label6 
      BackStyle       =   0  'Transparent
      Caption         =   "技术职称"
      Height          =   375
      Left            =   7380
      TabIndex        =   3
      Top             =   1320
      Width           =   1035
   End
   Begin VB.Label Label5 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "通讯地址:"
      Height          =   210
      Left            =   120
      TabIndex        =   2
      Top             =   2100
      Width           =   1050
   End
   Begin VB.Label Label4 
      BackStyle       =   0  'Transparent
      Caption         =   "文化程度"
      Height          =   375
      Left            =   120
      TabIndex        =   1
      Top             =   1320
      Width           =   975
   End
   Begin VB.Label Label2 
      BackStyle       =   0  'Transparent
      Caption         =   "性别"
      Height          =   375
      Left            =   2340
      TabIndex        =   0
      Top             =   720
      Width           =   615
   End
End
Attribute VB_Name = "管理人才信息查询"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim Tx As String
Dim Nn As String
Dim Result As Integer
Private Sub Command1_Click()
Call Prn1
       Result = MsgBox("是否查找其他记录 ?", vbOKCancel + vbQuestion)
        If Result = 1 Then
          Frame1.Visible = False
          Text11.Visible = False
          Text17.Visible = True
          Text17.Text = Nn
          Text17.SetFocus
          Else
        Unload Me
        管理人才主菜单.Show
        End If
End Sub
Private Sub Command3_Click()
Unload Me
管理人才主菜单.Show
End Sub
Private Sub Command2_Click()
Dim S As String
Dim Result As Integer
  With Data1.Recordset
    S = .Bookmark
    Nn = Text17.Text
    Tx = "[姓名] like"
    .FindFirst Tx + "'" + Text17.Text + "'"
    If Text17.Text = "" Then
       Result = MsgBox(" 输入错误 ,请重新输入 !", vbExclamation)
          Text17.Text = ""
          Text17.SetFocus
    GoTo W1
    End If
    If .NoMatch Then
       Result = MsgBox("查无此人,是否查找其他记录 ?", vbOKCancel + vbQuestion)
          If Result = 1 Then
          Frame1.Visible = False
          Text11.Visible = False
          Text17.Visible = True
          Text17.Text = ""
          Text17.SetFocus
          GoTo W1
          Else
            Data1.Recordset.Close
            Unload Me
            管理人才主菜单.Show
         End If
'        .Bookmark = s
    End If
          Frame1.Visible = True
          Text11.Visible = True
          Text17.Visible = False
   
  End With
W1:
  Exit Sub
End Sub
Private Sub Command4_Click()
Dim S As String
Dim Result As Integer
          Frame1.Visible = True
          Text11.Visible = True
          Text17.Visible = False
  With Data1.Recordset
    S = .Bookmark
'    .FindNext Tx + "'" + Text17.Text + "'"
    If Text17.Text = "" Then
         Frame1.Visible = False
          Text11.Visible = False
          Text17.Visible = True
       Result = MsgBox(" 输入错误 ,请重新输入 !", vbExclamation)
          Text17.Text = ""
          Text17.SetFocus
     GoTo W1
    End If
       .FindNext Tx + "'" + Text17.Text + "'"
    If .NoMatch Then
       Result = MsgBox("查询完毕,是否查找其他记录 ?", vbOKCancel + vbQuestion)
          If Result = 1 Then
          Frame1.Visible = False
          Text11.Visible = False
          Text17.Visible = True
          Text17.Text = ""
          Text17.SetFocus
          Else
        Data1.Recordset.Close
        Unload Me
        管理人才主菜单.Show
       End If
    End If
  End With
  Exit Sub
W1:
  Exit Sub
End Sub
Private Sub Form_Load()
On Error GoTo A1
    A = Me.hwnd
    B = 0
    Disabled A, B
Data1.DatabaseName = App.Path + "\" + "人才库.mdb"
Data1.Refresh
Data1.Recordset.MoveFirst
Frame1.Visible = False
Text17.Visible = True
Exit Sub
A1:
 Exit Sub
End Sub
Private Sub Prn1()
Dim S() As String, X, I As Integer
X = Len(Text11.Text)
X = Int(X / 26) + 1
ReDim S(X + 1) As String
For I = 0 To X
S(I + 1) = Mid(Text11.Text, I * 26 + 1, 26)
Next I
Printer.ScaleMode = 6
Printer.CurrentX = 45: Printer.CurrentY = 17
Printer.FontSize = 20: Printer.FontName = "华文行楷"
Printer.Print "    管理人才登记表"
Printer.Line (10, 28)-(166, 188), , B
Printer.Line (10, 37)-(166, 37)
Printer.Line (10, 46)-(166, 46)
Printer.Line (10, 55)-(166, 55)
Printer.Line (10, 64)-(166, 64)
Printer.Line (33, 28)-(33, 46)
Printer.Line (61, 28)-(61, 46)
Printer.Line (53, 46)-(53, 64)
Printer.Line (85, 28)-(85, 46)
Printer.Line (191, 28)-(191, 46)
Printer.Line (126, 28)-(126, 46)
Printer.Line (28, 64)-(28, 188)
Printer.FontSize = 14: Printer.FontName = "仿宋_GB2312"
Printer.CurrentX = 12: Printer.CurrentY = 30: Printer.Print "姓    名"
Printer.CurrentX = 35: Printer.CurrentY = 30: Printer.Print Text1.Text
Printer.CurrentX = 63: Printer.CurrentY = 30: Printer.Print "性    别"
Printer.CurrentX = 87: Printer.CurrentY = 30: Printer.Print Text12.Text
Printer.CurrentX = 103: Printer.CurrentY = 30: Printer.Print "出生年月"
Printer.CurrentX = 128: Printer.CurrentY = 30: Printer.Print Text2.Text; "年" + Text3.Text + "月" + Text4.Text + "日"
Printer.CurrentX = 12: Printer.CurrentY = 39: Printer.Print "文化程度"
Printer.CurrentX = 35: Printer.CurrentY = 39: Printer.Print Text13.Text
Printer.CurrentX = 63: Printer.CurrentY = 39: Printer.Print "政治面貌"
Printer.CurrentX = 87: Printer.CurrentY = 39: Printer.Print Text14.Text
Printer.CurrentX = 103: Printer.CurrentY = 39: Printer.Print "技术职称"
Printer.CurrentX = 128: Printer.CurrentY = 39: Printer.Print Text15.Text
Printer.CurrentX = 12: Printer.CurrentY = 48: Printer.Print "通  讯  地  址"
Printer.CurrentX = 56: Printer.CurrentY = 48: Printer.Print Text5.Text
Printer.CurrentX = 70: Printer.CurrentY = 48: Printer.Print "县(市)"
Printer.CurrentX = 90: Printer.CurrentY = 48: Printer.Print Text6.Text
Printer.CurrentX = 100: Printer.CurrentY = 48: Printer.Print "区"
Printer.CurrentX = 121: Printer.CurrentY = 48: Printer.Print Text7.Text
Printer.CurrentX = 133: Printer.CurrentY = 48: Printer.Print "街(路)"
Printer.CurrentX = 141: Printer.CurrentY = 48: Printer.Print Text8.Text
Printer.CurrentX = 156: Printer.CurrentY = 48: Printer.Print "号"
Printer.CurrentX = 12: Printer.CurrentY = 57: Printer.Print "类          别"
Printer.CurrentX = 56: Printer.CurrentY = 57: Printer.Print Text9.Text
Printer.CurrentX = 17: Printer.CurrentY = 84: Printer.Print "简"
Printer.CurrentX = 17: Printer.CurrentY = 94: Printer.Print "要"
Printer.CurrentX = 17: Printer.CurrentY = 104: Printer.Print "经"
Printer.CurrentX = 17: Printer.CurrentY = 114: Printer.Print "历"
X = Len(Text11.Text)
X = Int(X / 26) + 1
ReDim S(X + 1) As String
For J = 0 To X
S(J + 1) = Mid(Text11.Text, J * 26 + 1, 26)
Next J
For J = 0 To X
Printer.CurrentX = 32: Printer.CurrentY = 10 * (6.8 + J): Printer.Print S(J + 1)
Next J
Printer.EndDoc
Printer.KillDoc
End Sub


⌨️ 快捷键说明

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