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

📄

📁 VB开发的ERP系统
💻
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Begin VB.Form Qr_RsArCndFrm 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "档案信息查询条件"
   ClientHeight    =   2580
   ClientLeft      =   2760
   ClientTop       =   3750
   ClientWidth     =   4245
   Icon            =   "查询_人事档案查询.frx":0000
   KeyPreview      =   -1  'True
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2580
   ScaleWidth      =   4245
   ShowInTaskbar   =   0   'False
   StartUpPosition =   1  '所有者中心
   Begin VB.CommandButton Cmd_OK 
      Caption         =   "确定(&O)"
      Height          =   300
      Left            =   1860
      TabIndex        =   3
      Top             =   2220
      Width           =   1120
   End
   Begin VB.CommandButton Cmd_Cancel 
      Cancel          =   -1  'True
      Caption         =   "取消(&C)"
      Height          =   300
      Left            =   3045
      TabIndex        =   4
      Top             =   2220
      Width           =   1120
   End
   Begin VB.Frame Frame1 
      Height          =   2115
      Left            =   75
      TabIndex        =   6
      Top             =   30
      Width           =   4095
      Begin VB.Frame Frame2 
         Caption         =   "人员范围"
         Height          =   630
         Left            =   120
         TabIndex        =   10
         Top             =   1380
         Width           =   3840
         Begin VB.OptionButton Opt_SelectNow 
            Caption         =   "现有人员"
            Height          =   180
            Left            =   135
            TabIndex        =   13
            Top             =   270
            Value           =   -1  'True
            Width           =   1185
         End
         Begin VB.OptionButton Opt_SelectOld 
            Caption         =   "历史人员"
            Height          =   180
            Left            =   1305
            TabIndex        =   12
            Top             =   270
            Width           =   1185
         End
         Begin VB.OptionButton Opt_SelectAll 
            Caption         =   "所有人员"
            Height          =   180
            Left            =   2520
            TabIndex        =   11
            Top             =   270
            Width           =   1185
         End
      End
      Begin VB.CommandButton Ydcommand1 
         Height          =   300
         Index           =   2
         Left            =   3645
         Picture         =   "查询_人事档案查询.frx":1042
         Style           =   1  'Graphical
         TabIndex        =   5
         TabStop         =   0   'False
         Top             =   960
         Visible         =   0   'False
         Width           =   300
      End
      Begin VB.TextBox LrText 
         Height          =   300
         Index           =   2
         Left            =   960
         TabIndex        =   2
         Text            =   "2"
         Top             =   960
         Width           =   2685
      End
      Begin VB.TextBox LrText 
         Height          =   300
         Index           =   0
         Left            =   960
         TabIndex        =   0
         Text            =   "0"
         Top             =   210
         Width           =   3000
      End
      Begin VB.TextBox LrText 
         Height          =   300
         Index           =   1
         Left            =   960
         TabIndex        =   1
         Text            =   "1"
         Top             =   585
         Width           =   3000
      End
      Begin VB.Label Lab_Note 
         AutoSize        =   -1  'True
         Caption         =   "工号:"
         Height          =   180
         Index           =   0
         Left            =   135
         TabIndex        =   9
         Top             =   270
         Width           =   450
      End
      Begin VB.Label Lab_Note 
         AutoSize        =   -1  'True
         Caption         =   "姓名:"
         Height          =   180
         Index           =   1
         Left            =   135
         TabIndex        =   8
         Top             =   630
         Width           =   450
      End
      Begin VB.Label Lab_Note 
         AutoSize        =   -1  'True
         Caption         =   "档案类别:"
         Height          =   180
         Index           =   2
         Left            =   135
         TabIndex        =   7
         Tag             =   "Gender"
         Top             =   1005
         Width           =   810
      End
   End
End
Attribute VB_Name = "Qr_RsArCndFrm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'******************************************************************
'*    模 块 名 称 :相关档案条件
'*    功 能 描 述 :设置相关档案查询条件
'*    程序员姓名  :苗鹏
'*    最后修改人  :苗鹏
'*    最后修改时间:
'*    备        注:程序中所有依实际情况自定义部分均用[>>  <<]括起
'******************************************************************

Public sSqlWhere As String
Dim sSqlFrom As String
'以下为固定使用变量(文本框)
Dim Tsxx As String                       '系统信息提示
Dim Textvar() As Variant                 '存储变体型文本框信息
Dim Textboolean() As Boolean             '存储布尔型文本框信息
Dim Textint() As Integer                 '存储整型文本框信息
Dim Textstr() As String                  '存储字符型文本框信息
Dim Max_Text_Index As Integer            '最大录入文本框索引值
Dim TextGroupCode As String              '文本框录入分组编码
Dim TextValiLock As Boolean              '文本框失去焦点是否进行有效性控制判断
Dim TextValiJudgeLock() As Boolean       '文本框录入有效性判断控制锁
Dim CurTextIndex As Integer              '当前文本框索引值
Dim TextChangeLock As Boolean            '文本框内容变换控制锁
Dim Bln_Cancel As Boolean                '取消按钮信息传递

Private Sub Cmd_Cancel_Click()
    Unload Me
End Sub


Private Sub Form_KeyPress(KeyAscii As Integer)   '控 制 焦 点 转 移
    Dim jdzygs As Integer                         '控件焦点转移个数
    jdzygs = 30
    Select Case KeyAscii
    Case vbKeyReturn
        If Kjjdzy(jdzygs) Then
            KeyAscii = 0
        End If
    Case 39           '屏蔽"'"
        KeyAscii = 0
    End Select
End Sub
Private Sub Form_Load()
    
   '以下为文本框处理程序
    TextGroupCode = "Rs_ArCon"
    
    Call Drwbkxx(TextGroupCode, Textvar(), Textboolean(), Textint(), Textstr())  '读入文本框录入信息
    Call Wbkcsh
    TextValiJudgeLock(2) = False
    sSqlFrom = " From Rs_ArMain inner join  Rs_BasicInfo on Rs_ArMain.EmpID=Rs_BasicInfo.EmpID "
End Sub
Private Sub Cmd_OK_Click()                                   '确 定
    '录入条件有效性判断
    If Not Lrtjyxxpd Then
       Exit Sub
    End If
    Dim s As String
    
    '档案类别不能为空
    If Trim(Me.LrText(2).Text) = "" Then
        MsgBox "档案类别不能为空!", vbOKOnly + vbCritical
        Exit Sub
    End If
    
    '人员范围
    If Me.Opt_SelectNow = True Then
        s = " where Rs_BasicInfo.YNStop=0  " & Chr(10)
    ElseIf Me.Opt_SelectOld = True Then
        s = " where Rs_BasicInfo.YNStop=1  " & Chr(10)
    Else
        s = " where 1=1 " & Chr(10)
    End If
    '工号
    If Me.LrText(0).Text <> "" Then
        s = s & " and Rs_BasicInfo.EmpNo='" & Me.LrText(0).Text & "'"
    End If
    '姓名
    If Me.LrText(1).Text <> "" Then
        s = s & " and Rs_BasicInfo.EmpName='" & Me.LrText(1).Text & "'"
    End If
    '档案类别
    If Me.LrText(2).Text <> "" Then
        s = s & " and Rs_ArMain.ArSort='" & Me.LrText(2).Tag & "'"
    End If
    'where语句
    Me.sSqlWhere = s
    Me.Hide
    '刷新数据
    With Qr_RsArFrm

⌨️ 快捷键说明

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