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

📄 frmcenter.frm

📁 用vb6.0实现的一个可以通用的企业档案管理系统。
💻 FRM
📖 第 1 页 / 共 3 页
字号:
               Object.Width           =   2500
            EndProperty
         End
      End
      Begin VB.CommandButton cmdSaveSeleComp 
         Caption         =   "保存该选择"
         Height          =   300
         Left            =   -67650
         TabIndex        =   6
         Top             =   750
         Width           =   1200
      End
      Begin VB.Frame frmSplitterQY 
         Height          =   4650
         Left            =   -70710
         MouseIcon       =   "frmCenter.frx":1FAE
         MousePointer    =   99  'Custom
         TabIndex        =   5
         Top             =   990
         Width           =   100
      End
      Begin VB.ListBox lstSeleCompany 
         Height          =   4380
         Left            =   -70620
         MultiSelect     =   2  'Extended
         TabIndex        =   4
         Top             =   1080
         Width           =   4170
      End
      Begin MSComctlLib.TreeView tvCompany 
         Height          =   4560
         Left            =   -74820
         TabIndex        =   22
         Top             =   1080
         Width           =   4110
         _ExtentX        =   7250
         _ExtentY        =   8043
         _Version        =   393217
         Indentation     =   644
         LabelEdit       =   1
         Style           =   7
         FullRowSelect   =   -1  'True
         Appearance      =   1
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
      End
      Begin MSComctlLib.TreeView tvCase 
         Height          =   4560
         Left            =   180
         TabIndex        =   25
         Top             =   1080
         Width           =   4095
         _ExtentX        =   7223
         _ExtentY        =   8043
         _Version        =   393217
         Indentation     =   644
         Style           =   7
         Appearance      =   1
      End
      Begin VB.CommandButton cmdAllRight2 
         Caption         =   ">>"
         Height          =   375
         Left            =   6600
         TabIndex        =   27
         Top             =   360
         Visible         =   0   'False
         Width           =   735
      End
      Begin VB.CommandButton cmdAllDelete2 
         Caption         =   "<<"
         Height          =   375
         Left            =   7350
         TabIndex        =   28
         Top             =   360
         Visible         =   0   'False
         Width           =   690
      End
      Begin VB.CommandButton cmdAllRight 
         Caption         =   ">>"
         Height          =   375
         Left            =   -68370
         TabIndex        =   31
         Top             =   360
         Visible         =   0   'False
         Width           =   700
      End
      Begin VB.CommandButton cmdAllDelete 
         Caption         =   "<<"
         Height          =   375
         Left            =   -67650
         TabIndex        =   30
         Top             =   360
         Visible         =   0   'False
         Width           =   700
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         Caption         =   "以下文书类型被选中"
         Height          =   180
         Left            =   4380
         TabIndex        =   11
         Top             =   450
         Width           =   1620
      End
      Begin VB.Label lblCaption2 
         AutoSize        =   -1  'True
         Caption         =   "选择需要的文书"
         Height          =   180
         Left            =   210
         TabIndex        =   10
         Top             =   450
         Width           =   1260
      End
      Begin VB.Label lblCaption12 
         AutoSize        =   -1  'True
         Caption         =   "以下企业被选中"
         Height          =   180
         Left            =   -70620
         TabIndex        =   8
         Top             =   480
         Width           =   1260
      End
      Begin VB.Label lblCaption11 
         AutoSize        =   -1  'True
         Caption         =   "键入需要的企业编码"
         Height          =   180
         Left            =   -74790
         TabIndex        =   7
         Top             =   480
         Width           =   1620
      End
   End
   Begin VB.CommandButton cmdImport 
      Caption         =   " 文书导入(&I)"
      Height          =   356
      Left            =   4260
      TabIndex        =   3
      Top             =   5880
      Width           =   1436
   End
   Begin VB.CommandButton cmdQuery 
      Caption         =   " 查询(&Q)"
      Height          =   356
      Left            =   5700
      TabIndex        =   2
      Top             =   5880
      Width           =   1436
   End
   Begin VB.CommandButton cmdExit 
      Caption         =   " 退出(&X)"
      Height          =   356
      Left            =   7140
      TabIndex        =   1
      Top             =   5880
      Width           =   1436
   End
End
Attribute VB_Name = "frmCenter"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

'局部常量定义
Const csUserModeSQL As String = "SELECT * FROM Operation_UserDefined_Rules"

'Dim fSetUserMode As frmSetUserMode
Dim fSetCompany As frmSetUserMode
Dim fSetCase As frmSetUserMode
Dim fQueryImg As frmQueryImg

Public ThisMode As String

'局部变量定义
Dim mbMoving As Boolean
Const sglSplitLimit = 3000

Private Sub cmdAddCase_Click()

    ThisMode = "Case"
    If fSetCase Is Nothing Then
        Set fSetCase = New frmSetUserMode
    End If
    fSetCase.txtName = vbNullString
    fSetCase.Show vbModal
    Call RefreshfrmCenter(False, lvwCase, imbCase)
    
End Sub

'"添加(A)"按钮单击事件代码
'添加预设企业
Private Sub cmdAddCorp_Click()
    
    ThisMode = "QY"   '表明当前是处于添加企业模式
    If fSetCompany Is Nothing Then
        Set fSetCompany = New frmSetUserMode
    End If
    fSetCompany.txtName = vbNullString
    fSetCompany.Show vbModal   '显示设定企业窗体
    Call RefreshfrmCenter(True, lvwQY, imbQY)
    
End Sub

Private Sub cmdDeleteCase_Click()
    Dim Msg As Integer
    
    '如果lstQY中没有预设值,则退出
    If lvwCase.ListItems.Count = 0 Then
        Exit Sub
    End If
    
    '提示是否删除
    Msg = MsgBox("确定删除该预设文书集合吗?", vbYesNo + vbInformation)
    Select Case Msg
        Case vbYes
            conCaseMain.Execute "Delete from Operation_UserDefined_Rules Where Ope_Name='" & lvwCase.SelectedItem.Text & "'"
            MsgBox "删除成功!", vbInformation
            
            '刷新lvwCase and imbCase
            Call RefreshfrmCenter(False, lvwCase, imbCase)
        Case vbNo
    End Select
    
    
End Sub

Private Sub cmdDeleteCorp_Click()
    Dim Msg As Integer
    
    '如果lstCase中没有预设值,退出
    If lvwQY.ListItems.Count = 0 Then
        Exit Sub
    End If
    
    '提示是否删除
    Msg = MsgBox("确定删除该预设企业集合吗?", vbYesNo + vbInformation)
    Select Case Msg
        Case vbYes
            conCaseMain.Execute "Delete from Operation_UserDefined_Rules Where Ope_Name='" & lvwQY.SelectedItem.Text & "'"
            MsgBox "删除成功!", vbInformation
            
            '刷新lstCase and imbCase
            Call RefreshfrmCenter(True, lvwQY, imbQY)
        Case vbNo
    End Select
    
End Sub

Private Sub cmdExit_Click()
    Me.Hide
End Sub

'文书导入
Private Sub CmdImport_Click()
    Dim fImgImport As frmImgImport
    If lstSeleCompany.ListCount = 0 And imbQY.Text = vbNullString Then
        MsgBox "请选择一个企业!", vbInformation
        Exit Sub
    End If
    If lstSeleCase.ListCount = 0 And imbCase.Text = vbNullString Then
        MsgBox "请选择一种文书!", vbInformation
        Exit Sub
    End If
    
    Me.MousePointer = vbHourglass
    
    Call PutIntoArrayCompany_Case
    Call PutArrayToType
    
    Me.MousePointer = vbDefault
    
    If Not fImgImport Is Nothing Then
        fImgImport.Show vbModal
        Exit Sub
    End If
    Set fImgImport = New frmImgImport
    fImgImport.Show vbModal
End Sub

Private Sub cmdModifyCase_Click()
    Call lvwCase_DblClick
End Sub

Private Sub cmdModifyCorp_Click()
    Call lvwQY_DblClick
End Sub

Private Sub cmdOneDelete1_Click()
    If lstSeleCompany.ListCount = 0 Then
        Exit Sub
    End If
    If lstSeleCompany.ListIndex < 0 Then
        MsgBox "请选中不需要的企业!", vbInformation
        Exit Sub
    Else
        Call DeleteList(lstSeleCompany, lstSeleCompany.ListIndex)
    End If
End Sub

Private Sub cmdOneDelete2_Click()
    If lstSeleCase.ListCount = 0 Then
        Exit Sub
    End If
    If lstSeleCase.ListIndex < 0 Then
        MsgBox "请选中不需要的文书!", vbInformation
        Exit Sub
    Else
        Call DeleteList(lstSeleCase, lstSeleCase.ListIndex)
    End If
End Sub

Private Sub cmdOneRight1_Click()
    On Error GoTo ErrorHandler

    '将tvCompany中选定的企业加入右边的lstSeleCompany中
    If tvCompany.SelectedItem.Index < 0 Then
        Exit Sub
    End If
    Call TranceList(tvCompany, lstSeleCompany, QYBMLength)
Exit Sub
ErrorHandler:
    If Err Then
        Err.Clear
    End If
End Sub

Private Sub cmdOneRight2_Click()
    On Error GoTo ErrorHandler

    '将tvCase中选定的文书加入右边的lstSeleCase中
    If tvCase.SelectedItem.Index < 0 Then
        Exit Sub
    End If
    Call TranceList(tvCase, lstSeleCase, CaseCodeLength)
Exit Sub
ErrorHandler:
    If Err Then
        Err.Clear
    End If
End Sub

Private Sub cmdQuery_Click()

    Me.MousePointer = vbHourglass
    
    Call PutIntoArrayCompany_Case
    Call PutArrayToType
    
    Me.MousePointer = vbDefault
    
    Set fQueryImg = New frmQueryImg
    fQueryImg.Show
End Sub

Private Sub cmdSaveSeleCase_Click()

    ThisMode = "Case Select"
    If lstSeleCase.ListCount = 0 Then
        MsgBox "请选择至少一种文书!", vbInformation
        Exit Sub
    End If
    
    If fSetCase Is Nothing Then
        Set fSetCase = New frmSetUserMode
    End If
    
    fSetCase.txtName = vbNullString
    fSetCase.Show vbModal
    Call RefreshfrmCenter(False, lvwCase, imbCase)
End Sub

Private Sub cmdSaveSeleComp_Click()
    
    ThisMode = "QY Select"
    If lstSeleCompany.ListCount = 0 Then
        MsgBox "请选择至少一个企业!", vbInformation
        Exit Sub
    End If
    
    If fSetCompany Is Nothing Then
        Set fSetCompany = New frmSetUserMode
    End If
    
    fSetCompany.txtName = vbNullString
    fSetCompany.Show vbModal
    Call RefreshfrmCenter(True, lvwQY, imbQY)
End Sub

Private Sub Form_Load()

    '打开旧图片文件表:图片文件表
    'Set rstZT97 = New ADODB.Recordset
    'rstZT97.Open csZT97FormSQL, conZT97, adOpenStatic, adLockPessimistic, adCmdText
    
    '打开新图片文件表:sys_Case
    'Set rstCaseMain = New ADODB.Recordset
    'rstCaseMain.Open csCaseMainFormSQL, conCaseMain, adOpenStatic, adLockPessimistic, adCmdText
    Call MakeAllCompanyTree(tvCompany)
    Call MakeAllCaseTree(tvCase)
    Call RefreshfrmCenter(True, lvwQY, imbQY)
    Call RefreshfrmCenter(False, lvwCase, imbCase)
    tvCompany.Nodes(1).Expanded = True
    tvCase.Nodes(1).Expanded = True

⌨️ 快捷键说明

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