资源名称:ERPSYS.zip [点击查看]
上传用户:zhpu1995
上传日期:2013-09-06
资源大小:61151k
文件大小:6k
源码类别:
企业管理
开发平台:
Visual Basic
- VERSION 5.00
- Begin VB.Form XT_TxItem
- BorderStyle = 1 'Fixed Single
- Caption = "项目"
- ClientHeight = 3960
- ClientLeft = 3480
- ClientTop = 1965
- ClientWidth = 6495
- Icon = "系统_图形分析项目.frx":0000
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 3960
- ScaleWidth = 6495
- StartUpPosition = 2 '屏幕中心
- Begin VB.ListBox Item
- Height = 3210
- Index = 0
- Left = 0
- Style = 1 'Checkbox
- TabIndex = 9
- Top = 210
- Width = 2415
- End
- Begin VB.CommandButton Command3
- Caption = "全选"
- Height = 300
- Left = 0
- TabIndex = 8
- Top = 3480
- Width = 975
- End
- Begin VB.CommandButton Command4
- Caption = "全消"
- Height = 300
- Left = 1440
- TabIndex = 7
- Top = 3480
- Width = 975
- End
- Begin VB.CheckBox Check1
- Caption = "按横表头统计"
- Height = 435
- Left = 5190
- TabIndex = 6
- Top = 1380
- Width = 885
- End
- Begin VB.ListBox Item
- Height = 3210
- Index = 1
- ItemData = "系统_图形分析项目.frx":08CA
- Left = 2670
- List = "系统_图形分析项目.frx":08CC
- Style = 1 'Checkbox
- TabIndex = 5
- Top = 210
- Width = 2415
- End
- Begin VB.CommandButton Command5
- Caption = "全选"
- Height = 300
- Left = 2670
- TabIndex = 4
- Top = 3480
- Width = 975
- End
- Begin VB.CommandButton Command6
- Caption = "全消"
- Height = 300
- Left = 4110
- TabIndex = 3
- Top = 3480
- Width = 975
- End
- Begin VB.CommandButton Command2
- Caption = "取消"
- Height = 345
- Left = 5190
- TabIndex = 2
- Top = 3120
- Width = 1095
- End
- Begin VB.CommandButton Command1
- Caption = "确定"
- Height = 345
- Left = 5190
- TabIndex = 1
- Top = 2610
- Width = 1095
- End
- Begin VB.CheckBox Check2
- Caption = "数值标记"
- Height = 405
- Left = 5190
- TabIndex = 0
- Top = 1920
- Width = 915
- End
- Begin VB.Label Label1
- AutoSize = -1 'True
- BackStyle = 0 'Transparent
- Caption = "横表头:"
- Height = 180
- Left = 0
- TabIndex = 11
- Top = 0
- Width = 630
- End
- Begin VB.Label Label2
- AutoSize = -1 'True
- BackStyle = 0 'Transparent
- Caption = "竖表头:"
- Height = 180
- Left = 2610
- TabIndex = 10
- Top = 0
- Width = 630
- End
- End
- Attribute VB_Name = "XT_TxItem"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Public Grid As vsFlexGrid
- Public ChartCode As String
- Dim tf As Boolean
- Private Sub Check1_Click()
- If Check1.Value = 0 Then
- Check1.Caption = "按横表头统计"
- Else
- Check1.Caption = "按竖表头统计"
- End If
- End Sub
- Private Sub Command1_Click()
- Me.Tag = "T"
- Me.Hide
- End Sub
- Private Sub Command2_Click()
- Unload Me
- End Sub
- Private Sub Command3_Click()
- Dim i As Integer
- For i = 0 To Item(0).ListCount - 1
- Item(0).Selected(i) = True
- Next i
- End Sub
- Private Sub Command4_Click()
- Dim i As Integer
- For i = 0 To Item(0).ListCount - 1
- Item(0).Selected(i) = False
- Next i
- End Sub
- Private Sub Command5_Click()
- Dim i As Integer
- For i = 0 To Item(1).ListCount - 1
- Item(1).Selected(i) = True
- Next i
- End Sub
- Private Sub Command6_Click()
- Dim i As Integer
- For i = 0 To Item(1).ListCount - 1
- Item(1).Selected(i) = False
- Next i
- End Sub
- Private Sub Form_Activate()
- Dim h As Integer, i As Integer
- Dim aDo_Char As New Recordset
- Set aDo_Char = Cw_DataEnvi.DataConnect.Execute("select * from XT_GridChart where Chart_Code='" & ChartCode & "'")
- '------------------
- If Item(0).ListCount = 0 Then
- 'Item(0).Clear
- With Grid
- '--------------
- For i = aDo_Char!grid_FixedCols To .Cols - 1
- If aDo_Char!grid_Fixedrows = 2 Then
- Item(0).AddItem .TextMatrix(aDo_Char!grid_Fixedrows - 2, i) & "" & .TextMatrix(aDo_Char!grid_Fixedrows - 1, i)
- Else
- Item(0).AddItem .TextMatrix(aDo_Char!grid_Fixedrows - 1, i)
- End If
- Item(0).ItemData(h) = i
- h = h + 1
- Next
- '---------------
- End With
- '--------
- End If
- '<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
- '<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
- If Item(1).ListCount = 0 Then
- ' Item(1).Clear
- With Grid
- '--------------
- h = 0
- For i = aDo_Char!grid_Fixedrows To .Rows - 1
- Item(1).AddItem .TextMatrix(i, aDo_Char!grid_FixedCols - 1)
- Item(1).ItemData(h) = i
- h = h + 1
- Next
- '---------------
- End With
- End If
- aDo_Char.Close
- '---------------------
- End Sub
- Private Sub Form_Load()
- tf = True
- End Sub