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

📄 frmsysug.frm

📁 制造业产供销与往来系统源码,包括进销存及全部控件!
💻 FRM
📖 第 1 页 / 共 3 页
字号:
      DataMode        =   0
      VirtualData     =   -1  'True
      DataMember      =   ""
      ComboSearch     =   3
      AutoSizeMouse   =   -1  'True
      FrozenRows      =   0
      FrozenCols      =   0
      AllowUserFreezing=   0
      BackColorFrozen =   0
      ForeColorFrozen =   0
      WallPaperAlignment=   9
   End
   Begin MSComctlLib.Toolbar Tlbaction 
      Align           =   1  'Align Top
      Height          =   570
      Index           =   0
      Left            =   0
      TabIndex        =   2
      Top             =   0
      Width           =   9825
      _ExtentX        =   17330
      _ExtentY        =   1005
      ButtonWidth     =   820
      ButtonHeight    =   953
      Style           =   1
      ImageList       =   "Img(0)"
      _Version        =   393216
      BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628} 
         NumButtons      =   23
         BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "增加"
            Key             =   "ADD_SYSUG"
            ImageIndex      =   13
         EndProperty
         BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "修改"
            Key             =   "CHG_SYSUG"
            ImageIndex      =   13
         EndProperty
         BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Style           =   3
         EndProperty
         BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Enabled         =   0   'False
            Caption         =   "取消"
            Key             =   "CAN_SYSUG"
            ImageIndex      =   12
         EndProperty
         BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Enabled         =   0   'False
            Caption         =   "存盘"
            Key             =   "SAV_SYSUG"
            ImageIndex      =   14
         EndProperty
         BeginProperty Button6 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Style           =   3
         EndProperty
         BeginProperty Button7 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "删除"
            Key             =   "DEL_SYSUG"
            ImageIndex      =   19
         EndProperty
         BeginProperty Button8 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Style           =   3
         EndProperty
         BeginProperty Button9 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "最前"
            Key             =   "FIR_SYSUG"
            ImageIndex      =   5
         EndProperty
         BeginProperty Button10 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "前移"
            Key             =   "PRE_SYSUG"
            ImageIndex      =   6
         EndProperty
         BeginProperty Button11 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "后移"
            Key             =   "NEX_SYSUG"
            ImageIndex      =   7
         EndProperty
         BeginProperty Button12 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "最后"
            Key             =   "LAS_SYSUG"
            ImageIndex      =   8
         EndProperty
         BeginProperty Button13 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Style           =   3
         EndProperty
         BeginProperty Button14 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "查找"
            Key             =   "FIN_SYSUG"
            ImageIndex      =   2
         EndProperty
         BeginProperty Button15 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Style           =   3
         EndProperty
         BeginProperty Button16 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "打印"
            Key             =   "PRN_SYSUG"
            ImageIndex      =   1
         EndProperty
         BeginProperty Button17 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Style           =   3
         EndProperty
         BeginProperty Button18 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "帮助"
            Key             =   "HLP_SYSUG"
            ImageIndex      =   10
         EndProperty
         BeginProperty Button19 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Style           =   3
         EndProperty
         BeginProperty Button20 {66833FEA-8583-11D1-B16A-00C0F0283628} 
         EndProperty
         BeginProperty Button21 {66833FEA-8583-11D1-B16A-00C0F0283628} 
         EndProperty
         BeginProperty Button22 {66833FEA-8583-11D1-B16A-00C0F0283628} 
         EndProperty
         BeginProperty Button23 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "退出"
            Key             =   "EXI_SYSUG"
            ImageIndex      =   11
         EndProperty
      EndProperty
      BorderStyle     =   1
   End
   Begin MSComctlLib.ImageList Img 
      Index           =   0
      Left            =   0
      Top             =   300
      _ExtentX        =   1005
      _ExtentY        =   1005
      BackColor       =   -2147483643
      ImageWidth      =   16
      ImageHeight     =   16
      MaskColor       =   12632256
      _Version        =   393216
      BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
         NumListImages   =   20
         BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmSysUg.frx":0054
            Key             =   ""
         EndProperty
         BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmSysUg.frx":0596
            Key             =   ""
         EndProperty
         BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmSysUg.frx":0AD8
            Key             =   ""
         EndProperty
         BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmSysUg.frx":101A
            Key             =   ""
         EndProperty
         BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmSysUg.frx":112C
            Key             =   ""
         EndProperty
         BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmSysUg.frx":167E
            Key             =   ""
         EndProperty
         BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmSysUg.frx":1BD0
            Key             =   ""
         EndProperty
         BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmSysUg.frx":2122
            Key             =   ""
         EndProperty
         BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmSysUg.frx":2674
            Key             =   ""
         EndProperty
         BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmSysUg.frx":2786
            Key             =   ""
         EndProperty
         BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmSysUg.frx":2898
            Key             =   ""
         EndProperty
         BeginProperty ListImage12 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmSysUg.frx":29AA
            Key             =   ""
         EndProperty
         BeginProperty ListImage13 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmSysUg.frx":2ABC
            Key             =   ""
         EndProperty
         BeginProperty ListImage14 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmSysUg.frx":2BCE
            Key             =   ""
         EndProperty
         BeginProperty ListImage15 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmSysUg.frx":2CE0
            Key             =   ""
         EndProperty
         BeginProperty ListImage16 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmSysUg.frx":2DF2
            Key             =   ""
         EndProperty
         BeginProperty ListImage17 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmSysUg.frx":2F04
            Key             =   ""
         EndProperty
         BeginProperty ListImage18 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmSysUg.frx":321E
            Key             =   ""
         EndProperty
         BeginProperty ListImage19 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmSysUg.frx":3330
            Key             =   ""
         EndProperty
         BeginProperty ListImage20 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmSysUg.frx":3444
            Key             =   ""
         EndProperty
      EndProperty
   End
   Begin VB.Menu mFile 
      Caption         =   "文件(&F)"
      Begin VB.Menu muFile 
         Caption         =   ""
         Index           =   0
      End
   End
   Begin VB.Menu mEdit 
      Caption         =   "编辑(&E)"
      Begin VB.Menu muEdit 
         Caption         =   ""
         Index           =   0
      End
   End
   Begin VB.Menu mView 
      Caption         =   "查看(&V)"
      Begin VB.Menu muView 
         Caption         =   ""
         Index           =   0
      End
   End
   Begin VB.Menu mHelp 
      Caption         =   "帮助(&H)"
      Begin VB.Menu muHelp 
         Caption         =   ""
         Index           =   0
      End
   End
End
Attribute VB_Name = "frmSysUg"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Const TlbSysUg = 0
Const ImgSysUg = 0
Const SBarSysUg = 0

Const FlexSysUg = 0
Const FlexSysUgPriv = 1
Const FlexSysUgRfd = 2

Const TxtSysUgCode = 0
Const TxtSysUgMc = 1

Dim OSysUg As SysUg
Dim OSysUgs As SysUgs
Dim oSysUgPriv As SysUgPriv
Dim oSysUgRfd As SysUgRfd

Private Sub Flex_Click(Index As Integer)
   Dim mCol As Integer
On Error GoTo Errorhandle

   If Tlbaction(TlbSysUg).Tag = "" Then
      Exit Sub
   End If

   Select Case Index
   Case FlexSysUgPriv
         
         Select Case Flex(Index).ColKey(Flex(Index).Col)
         Case "SYSUGPRIVTB_SELECT"
         
               If Flex(FlexSysUgPriv).Row = 0 Then
                  Exit Sub
               End If
               
               If oSysUgPriv.SmXtjg.SmXtJgLevel = 1 Then
                  Exit Sub
               End If
               
               If Trim(Flex(Index).TextMatrix(Flex(Index).Row, Flex(Index).ColIndex("SYSUGPRIVTB_SELECT"))) = "" Then
                  For mCol = 1 To Flex(Index).Cols - 1
                     If mCol = Flex(Index).ColIndex("SYSUGPRIVTB_SELECT") Then
                        Flex(Index).TextMatrix(Flex(Index).Row, mCol) = "√"
                     End If
                     If mCol <> Flex(Index).ColIndex("SYSUGPRIVTB_SELECT") Then
                        If Trim(Flex(Index).TextMatrix(Flex(Index).Row, mCol)) <> "" And mCol <> Flex(Index).ColIndex("SYSUGPRIVTB_SYSFORMCODE") And mCol <> Flex(Index).ColIndex("SYSUGPRIVTB_SYSFORMMC") Then
                           Flex(Index).TextMatrix(Flex(Index).Row, mCol) = "√" & Trim(Flex(Index).TextMatrix(Flex(Index).Row, mCol))
                        End If
                     End If
                  Next
               Else
                  For mCol = 1 To Flex(Index).Cols - 1
                     If mCol = Flex(Index).ColIndex("SYSUGPRIVTB_SELECT") Then
                        Flex(Index).TextMatrix(Flex(Index).Row, mCol) = ""
                     End If
                     If mCol <> Flex(Index).ColIndex("SYSUGPRIVTB_SELECT") Then
                        If Trim(Flex(Index).TextMatrix(Flex(Index).Row, mCol)) <> "" And mCol <> Flex(Index).ColIndex("SYSUGPRIVTB_SYSFORMCODE") And mCol <> Flex(Index).ColIndex("SYSUGPRIVTB_SYSFORMMC") Then
                           Flex(Index).TextMatrix(Flex(Index).Row, mCol) = Replace(Trim(Flex(Index).TextMatrix(Flex(Index).Row, mCol)), "√", "")
                        End If
                     End If
                  Next
               End If
               
         Case "SYSUGPRIVTB_SYSFORMCODE", "SYSUGPRIVTB_SYSFORMMC"
         
               Exit Sub
         
         Case Else
               
               If Trim(Flex(Index).TextMatrix(Flex(Index).Row, Flex(Index).ColIndex("SYSUGPRIVTB_SELECT"))) = "" Then
                  Exit Sub
               End If
               
               If Trim(Flex(Index).TextMatrix(Flex(Index).Row, Flex(Index).Col)) = "" Then
                  Exit Sub
               End If
               
               If InStr(1, Trim(Flex(Index).TextMatrix(Flex(Index).Row, Flex(Index).Col)), "√") > 0 Then
                  Flex(Index).TextMatrix(Flex(Index).Row, Flex(Index).Col) = Replace(Trim(Flex(Index).TextMatrix(Flex(Index).Row, Flex(Index).Col)), "√", "")
               Else
                  Flex(Index).TextMatrix(Flex(Index).Row, Flex(Index).Col) = "√" & Trim(Flex(Index).TextMatrix(Flex(Index).Row, Flex(Index).Col))
               End If
         
         End Select
         
         
   Case FlexSysUgRfd
   
         If Flex(FlexSysUgRfd).Row = 0 Then
            Exit Sub
         End If
         
         If Flex(Index).ColKey(Flex(Index).Col) = "SELECTFLG|SYSUGRFDNO" Then
            If Flex(Index).TextMatrix(Flex(Index).Row, Flex(Index).Col) <> "" Then
               Flex(Index).TextMatrix(Flex(Index).Row, Flex(Index).Col) = ""
            Else
               Flex(Index).TextMatrix(Flex(Index).Row, Flex(Index).Col) = "√"
            End If
         End If
         
   End Select
    
Exit Sub
Errorhandle:
   MsgBox Err.Description
End Sub

Private Sub Flex_KeyDown(Index As Integer, KeyCode As Integer, Shift As Integer)
On Error GoTo Errorhandle

   gPublicFunction.FlexKeyDown Flex(Index), KeyCode

Exit Sub
Errorhandle:
   MsgBox Err.Description
End Sub

Private Sub Flex_RowColChange(Index As Integer)
On Error GoTo Errorhandle

    Select Case Index
        Case FlexSysUg
            If Flex(Index).Row > 0 Then
                Set OSysUg = OSysUgs(CStr(Flex(FlexSysUg).RowData(Flex(FlexSysUg).Row)))
                SetValueToControl "SysUg"
            Else
                Set OSysUg = Nothing
                Clearcontrol "SysUg"

            End If
            
      Case FlexSysUgPriv
            
            If Flex(Index).Row > 0 Then
               Set oSysUgPriv = OSysUg.SysUgPrivs(CStr(Flex(FlexSysUgPriv).RowData(Flex(FlexSysUgPriv).Row)))
            Else
               Set oSysUgPriv = Nothing
            End If

    End Select
    
Exit Sub
Errorhandle:
   MsgBox Err.Description
End Sub

Private Sub Form_Load()
On Error GoTo Errorhandle
      
   Flex(FlexSysUg).ColKey(1) = "SYSUGCODE"
   Flex(FlexSysUg).ColKey(2) = "SYSUGMC"
   
   Flex(FlexSysUgPriv).ColKey(1) = "SYSUGPRIVTB_SELECT"
   Flex(FlexSysUgPriv).ColKey(2) = "SYSUGPRIVTB_SYSFORMCODE"
   Flex(FlexSysUgPriv).ColKey(3) = "SYSUGPRIVTB_SYSFORMMC"
    
   Flex(FlexSysUgRfd).ColKey(1) = "SELECTFLG|SYSUGRFDNO"
   Flex(FlexSysUgRfd).ColKey(2) = "RFDCODE"
   Flex(FlexSysUgRfd).ColKey(3) = "RFDMC"
    
   gPublicFunction.LoadFormSet Me, Tlbaction(TlbSysUg), Img(ImgSysUg), SBar(SBarSysUg)
   
   gPublicCommon.gForms(UCase(Me.Name)).ControlBegEnds.Add "SYSUG", "TXTSYSUGCODE", "TXTSYSUGMC"
   
   gPublicCommon.gForms(UCase(Me.Name)).ControlStatus.Add "", Flex(FlexSysUg), Flex(FlexSysUgPriv), Flex(FlexSysUgRfd)

⌨️ 快捷键说明

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