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

📄 form_higherupcn.frm

📁 新世纪ERP系统管理源代码
💻 FRM
字号:
VERSION 5.00
Object = "{8099FCC2-0A81-11D2-BAA4-04F205C10000}#1.0#0"; "VSFLEX6.OCX"
Begin VB.Form Frm_HigherUpCo 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "上级单位"
   ClientHeight    =   3390
   ClientLeft      =   3435
   ClientTop       =   2445
   ClientWidth     =   5295
   BeginProperty Font 
      Name            =   "宋体"
      Size            =   9
      Charset         =   134
      Weight          =   400
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   Icon            =   "Form_HigherUpCn.frx":0000
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3390
   ScaleWidth      =   5295
   Begin VB.CommandButton Command2 
      Caption         =   "退出&C"
      Height          =   285
      Index           =   3
      Left            =   3960
      TabIndex        =   4
      Top             =   2970
      Width           =   1245
   End
   Begin VB.CommandButton Command2 
      Caption         =   "添加&A"
      Height          =   285
      Index           =   0
      Left            =   3960
      TabIndex        =   3
      Top             =   1350
      Width           =   1245
   End
   Begin VB.CommandButton Command2 
      Caption         =   "编辑&E"
      Height          =   285
      Index           =   1
      Left            =   3960
      TabIndex        =   2
      Top             =   1770
      Width           =   1245
   End
   Begin VB.CommandButton Command2 
      Caption         =   "删除&D"
      Height          =   285
      Index           =   2
      Left            =   3960
      TabIndex        =   1
      Top             =   2220
      Width           =   1245
   End
   Begin VSFlex6Ctl.vsFlexGrid vsFle 
      Height          =   3195
      Left            =   60
      TabIndex        =   0
      Top             =   90
      Width           =   3795
      _cx             =   8329766
      _cy             =   8328708
      _ConvInfo       =   -1
      Appearance      =   1
      BorderStyle     =   1
      Enabled         =   -1  'True
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      MousePointer    =   0
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      BackColorFixed  =   -2147483633
      ForeColorFixed  =   -2147483630
      BackColorSel    =   -2147483635
      ForeColorSel    =   -2147483634
      BackColorBkg    =   -2147483636
      BackColorAlternate=   -2147483643
      GridColor       =   -2147483633
      GridColorFixed  =   -2147483632
      TreeColor       =   -2147483632
      FloodColor      =   192
      SheetBorder     =   -2147483642
      FocusRect       =   0
      HighLight       =   1
      AllowSelection  =   -1  'True
      AllowBigSelection=   -1  'True
      AllowUserResizing=   1
      SelectionMode   =   1
      GridLines       =   1
      GridLinesFixed  =   2
      GridLineWidth   =   1
      Rows            =   2
      Cols            =   3
      FixedRows       =   1
      FixedCols       =   0
      RowHeightMin    =   0
      RowHeightMax    =   0
      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
      DataMember      =   ""
   End
End
Attribute VB_Name = "Frm_HigherUpCo"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command2_Click(Index As Integer)
On Error GoTo err_exit

If Index = 3 Then Unload Me: Exit Sub
If Index = 0 Then
   Frm_HigherUpCoList.Tag = Me.Tag
   Frm_HigherUpCoList.Text1(0).Tag = 1
   Frm_HigherUpCoList.Show 1
   
End If

If Index = 1 And vsFle.Row > 0 Then

   With Frm_HigherUpCoList
        .Text1(0).Text = vsFle.TextMatrix(vsFle.Row, 0)
        .Text1(1).Text = vsFle.TextMatrix(vsFle.Row, 1)
        .Text1(1).Tag = vsFle.TextMatrix(vsFle.Row, 0)
        .Text1(2).Text = vsFle.TextMatrix(vsFle.Row, 2)
        .Text1(0).Tag = 2
        .Tag = Me.Tag
        .Show 1
   End With
End If

If Index = 2 Then

   If vsFle.Rows > 2 Then
       Conn_System.Execute "DELETE " & Me.Tag & ".dbo.gy_HigherUpCo WHERE CODE='" & vsFle.TextMatrix(vsFle.Row, 0) & "'"
       Form_Activate
       Else
       MsgBox "此单位不能删除! ", 16
   End If
  
End If
Exit Sub

err_exit:
MsgBox Err.Description, 16

End Sub

Private Sub Form_Activate()
Dim aDo_Co As New Recordset
Dim i As Integer
Set aDo_Co = Conn_System.Execute("select * from " & Me.Tag & ".dbo.gy_HigherUpCo")
With vsFle
    .Rows = aDo_Co.RecordCount + 1
    i = 1
    Do While Not aDo_Co.EOF
       .TextMatrix(i, 0) = aDo_Co!code
       .TextMatrix(i, 1) = aDo_Co!Name
       .TextMatrix(i, 2) = aDo_Co!Remark
       i = i + 1
       aDo_Co.MoveNext
    Loop
End With
aDo_Co.Close
Set aDo_Co = Nothing

End Sub

Public Sub Form_Load()


End Sub

Private Sub vsFle_DblClick()
Command2_Click 1
End Sub

⌨️ 快捷键说明

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