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

📄 +

📁 VB开发的ERP系统
💻
📖 第 1 页 / 共 4 页
字号:
         ColWidthMin     =   0
         ColWidthMax     =   0
         ExtendLastCol   =   0   'False
         FormatString    =   ""
         ScrollTrack     =   0   'False
         ScrollBars      =   3
         ScrollTips      =   0   'False
         MergeCells      =   0
         MergeCompare    =   0
         AutoResize      =   -1  'True
         AutoSizeMode    =   0
         AutoSearch      =   0
         MultiTotals     =   -1  'True
         SubtotalPosition=   1
         OutlineBar      =   0
         OutlineCol      =   0
         Ellipsis        =   0
         ExplorerBar     =   0
         PicturesOver    =   0   'False
         FillStyle       =   0
         RightToLeft     =   0   'False
         PictureType     =   0
         TabBehavior     =   0
         OwnerDraw       =   0
         Editable        =   0   'False
         ShowComboButton =   -1  'True
         WordWrap        =   0   'False
         TextStyle       =   0
         TextStyleFixed  =   0
         OleDragMode     =   0
         OleDropMode     =   0
         DataMode        =   0
         VirtualData     =   -1  'True
      End
   End
   Begin MSComctlLib.ImageList ImageList1 
      Left            =   2070
      Top             =   480
      _ExtentX        =   1005
      _ExtentY        =   1005
      BackColor       =   -2147483643
      ImageWidth      =   16
      ImageHeight     =   16
      MaskColor       =   12632256
      _Version        =   393216
      BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
         NumListImages   =   29
         BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "设置_定员设置.frx":39A4
            Key             =   "sz"
         EndProperty
         BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "设置_定员设置.frx":3D3E
            Key             =   "dy"
         EndProperty
         BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "设置_定员设置.frx":40D8
            Key             =   "yl"
         EndProperty
         BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "设置_定员设置.frx":4472
            Key             =   "xg"
         EndProperty
         BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "设置_定员设置.frx":480C
            Key             =   "zh"
         EndProperty
         BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "设置_定员设置.frx":4BA6
            Key             =   "sh"
         EndProperty
         BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "设置_定员设置.frx":4F40
            Key             =   "bc"
         EndProperty
         BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "设置_定员设置.frx":52DA
            Key             =   "fq"
         EndProperty
         BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "设置_定员设置.frx":5674
            Key             =   "bz"
         EndProperty
         BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "设置_定员设置.frx":5A0E
            Key             =   "tc"
         EndProperty
         BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "设置_定员设置.frx":5DA8
            Key             =   "bcgs"
         EndProperty
         BeginProperty ListImage12 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "设置_定员设置.frx":6142
            Key             =   "mrlk"
         EndProperty
         BeginProperty ListImage13 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "设置_定员设置.frx":64DC
            Key             =   "xsxm"
         EndProperty
         BeginProperty ListImage14 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "设置_定员设置.frx":6876
            Key             =   "first"
         EndProperty
         BeginProperty ListImage15 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "设置_定员设置.frx":6C10
            Key             =   "prev"
         EndProperty
         BeginProperty ListImage16 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "设置_定员设置.frx":6FAA
            Key             =   "next"
         EndProperty
         BeginProperty ListImage17 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "设置_定员设置.frx":7344
            Key             =   "last"
         EndProperty
         BeginProperty ListImage18 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "设置_定员设置.frx":76DE
            Key             =   "xx"
         EndProperty
         BeginProperty ListImage19 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "设置_定员设置.frx":7A78
            Key             =   "define"
         EndProperty
         BeginProperty ListImage20 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "设置_定员设置.frx":7E12
            Key             =   "exec"
         EndProperty
         BeginProperty ListImage21 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "设置_定员设置.frx":81AC
            Key             =   "xz"
         EndProperty
         BeginProperty ListImage22 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "设置_定员设置.frx":8546
            Key             =   "sc"
         EndProperty
         BeginProperty ListImage23 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "设置_定员设置.frx":88E0
            Key             =   "sx"
         EndProperty
         BeginProperty ListImage24 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "设置_定员设置.frx":8C7A
            Key             =   "cx"
         EndProperty
         BeginProperty ListImage25 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "设置_定员设置.frx":9014
            Key             =   "zd"
         EndProperty
         BeginProperty ListImage26 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "设置_定员设置.frx":93AE
            Key             =   "dz"
         EndProperty
         BeginProperty ListImage27 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "设置_定员设置.frx":9748
            Key             =   "ph"
         EndProperty
         BeginProperty ListImage28 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "设置_定员设置.frx":9AE2
            Key             =   "fz"
         EndProperty
         BeginProperty ListImage29 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "设置_定员设置.frx":9E7C
            Key             =   "dw"
         EndProperty
      EndProperty
   End
   Begin VB.Image imgSplitter 
      Height          =   6435
      Left            =   2831
      MousePointer    =   9  'Size W E
      Top             =   630
      Width           =   79
   End
End
Attribute VB_Name = "Set_QrtFrm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'*******************************************************
'*    模 块 名 称 :定员设置
'*    功 能 描 述 :设定各部门的人数
'*    程序员姓名  :刘刚
'*    最后修改人  :刘刚
'*    最后修改时间:2001/12/07
'*    备        注:经过自己测试
'*******************************************************
Dim mbMoving As Boolean
Const sglSplitLimit = 1000

Dim Rec_CodeSet As New ADODB.Recordset   '编码设置表
Dim jdzygs As Integer                    '控件焦点转移个数
Dim Lrzt As Integer                      '录入状态标志(0-非录入状态 1-增加 2-修改)
Dim ReportTitle As String                '报表主标题
Dim Str_RightEdit As String             '编辑(新增、修改、删除)权限索引

'以下为固定使用变量(网格)
Dim Cxnrrec As New ADODB.Recordset       '显示查询内容动态集
Dim Dyymctbl As New DY_Dyymsz            '打印页面窗体变量
Dim GridCode As String                   '显示网格网格代码
Dim GridInf() As Variant                 '整个网格设置信息
Dim Tsxx As String                       '系统提示信息
Dim Qslz As Long                         '网格隐藏(非操作显示)列数
Dim Sjhgd As Double                      '网格数据行高度
Dim GridBoolean() As Boolean             '网格列信息(布尔型)
Dim GridStr()  As String                 '网格列信息(字符型)
Dim GridInt() As Integer                 '网格列信息(整型)
Dim Szzls As Integer                     '数组总列数(网格列数-1)

'以下为固定使用变量(文本框)
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                '取消按钮信息传递

Dim nodX As Node
Dim CodSchemeIndex As String             '编码方案编码
Dim CodScheme As String                  '编码方案
Dim ParentCode As String                 '上级编码
Dim CodeLevel As Integer                 '编码级次
Dim DptAmount As Integer                 '暂存当前节点的人数

Private Sub CzxsGrid_Click()
    
    Dim count As Integer
    With CzxsGrid
        If Trim(.TextMatrix(.Row, Sydz("001", GridStr(), Szzls))) <> "" And .Rows <> .FixedRows Then
            TrV_Depart.Nodes("T" & Trim(.TextMatrix(.Row, 0))).Selected = True
            TrV_Depart.SetFocus
        End If
    End With

End Sub

Private Sub Form_KeyPress(KeyAscii As Integer)   '控 制 焦 点 转 移
   
    jdzygs = 10
    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()
    
    SizeControls imgSplitter.Left
    CodSchemeIndex = "Gy_Depar"
    Add_Tree
    Text_CodScheme
  
    '打印报表标题信息
    ReportTitle = "定 员 设 置"
   
    '调入打印页面设置窗体
    XtReportCode = "Rs_SetQrt"
    Load Dyymctbl
  
    '以下为文本框处理程序(读入文本框录入信息)
    TextGroupCode = "Rs_SetQrt"
    
    Call Drwbkxx(TextGroupCode, Textvar(), Textboolean(), Textint(), Textstr())
    Call Wbkcsh
    '调入网格设置信息
    GridCode = "Rs_SetQrt"
    Call BzWgcsh(CzxsGrid, GridCode, GridInf(), GridBoolean(), GridInt(), GridStr())
    Qslz = GridInf(1)
    Sjhgd = GridInf(2)
    Szzls = CzxsGrid.Cols - 1
       
    '初始化toolbar,tab卡状态
    StTab.Tab = 0
    StTab.TabEnabled(0) = True
    StTab.TabEnabled(1) = False
   
    '设置为非录入状态
    Lrzt = 0
    
    '编辑(新增、修改、删除)权限索引
    Str_RightEdit = "Rs_Set_Qrt_Edit"
 
End Sub

Private Sub Cxnrtcwg()                               '查询内容填充网格
  
    Dim Sqlstr As String              '查询连接串
    Dim jsqte As Long                 '查询临时使用变量
    Dim tmpRs As New ADODB.Recordset
    Dim aStr As String
  
    '为加快显示速度,将网格刷新动作冻结
    CzxsGrid.Redraw = False
      
    '[>>查询连接串
    
    Sqlstr = "SELECT DeptCode,DeptName,Amount FROM Gy_Department WHERE DeptCode LIKE '" & Mid(Trim(TrV_Depart.SelectedItem.Key), 2, Len(Trim(TrV_Depart.SelectedItem.Key)) - 1) & "%' order by DeptCode"
  
    '<<]
      
    Set Cxnrrec = Cw_DataEnvi.DataConnect.Execute(Sqlstr)
    With Cxnrrec
        CzxsGrid.Rows = CzxsGrid.FixedRows
        If .EOF And .BOF Then
            CzxsGrid.Redraw = True
            Exit Sub
        End If
        jsqte = CzxsGrid.FixedRows
        Do While Not .EOF
            aStr = Trim(.Fields("DeptCode"))
            Set tmpRs = Cw_DataEnvi.DataConnect.Execute("SELECT * FROM gY_Department WHERE DeptCode LIKE '" & aStr & "%'")
            
            CzxsGrid.AddItem ""
            If tmpRs.RecordCount > 1 Then
                Call Jltcwg(Cxnrrec, jsqte, 1)                             '调入填充网格子过程
            Else
                Call Jltcwg(Cxnrrec, jsqte, 0)
            End If
            CzxsGrid.RowHeight(jsqte) = Sjhgd                           '设置网格高度
            .MoveNext
            jsqte = jsqte + 1
        Loop
    End With
  
    '将网格刷新动作解冻
    CzxsGrid.Redraw = True

End Sub

Private Sub Jltcwg(Jlbrec As ADODB.Recordset, Rowjsq As Long, aa As Integer)           '记录内容填充网格
    
    '[>>以下为自定义部分
    
    With Jlbrec
        CzxsGrid.TextMatrix(Rowjsq, 0) = Trim(.Fields("DeptCode") & "")             '部门编码
        CzxsGrid.TextMatrix(Rowjsq, Sydz("001", GridStr(), Szzls)) = Trim(.Fields("DeptName") & "")             '部门名称
        If aa = 1 Then
            CzxsGrid.Cell(flexcpBackColor, Rowjsq, 0, Rowjsq, 3) = &HFFC0C0
            
        Else
            CzxsGrid.Cell(flexcpBackColor, Rowjsq, 0, Rowjsq, 3) = &HFFFFFF
                        '定员人数
        End If
        CzxsGrid.TextMatrix(Rowjsq, Sydz("002", GridStr(), Szzls)) = Trim(.Fields("Amount") & "")
        
    End With
    '以上为自定义部分<<]

End Sub

Private Sub Form_Resize()
    
    On Error Resume Next
    
    Dim St_tab As Integer
    If Me.Height < 7000 Then Me.Height = 7000
    If Me.Width < 10000 Then Me.Width = 10000

    StTab.Width = Me.Width - (TrV_Depart.Width + 300)
    StTab.Height = Me.Height - (StTab.Top + 400)
    TrV_Depart.Height = Me.Height - (TrV_Depart.Top + 400)
    imgSplitter.Height = TrV_Depart.Height

    St_tab = StTab.Tab
    StTab.Tab = 0
    CzxsGrid.Width = StTab.Width - CzxsGrid.Left * 2
    CzxsGrid.Height = StTab.Height - 500
    StTab.Tab = St_tab
    GsToolbar.Left = Me.Width - 2580

End Sub

Private Sub Form_Unload(Cancel As Integer)             '窗体卸载
    

⌨️ 快捷键说明

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