📄 frmnode.frm
字号:
VERSION 5.00
Begin VB.Form frmNode
Appearance = 0 'Flat
BackColor = &H80000005&
BorderStyle = 1 'Fixed Single
Caption = "节点描述"
ClientHeight = 3450
ClientLeft = 45
ClientTop = 330
ClientWidth = 6195
Icon = "frmNode.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3450
ScaleWidth = 6195
StartUpPosition = 1 '所有者中心
Begin VB.Frame frabk
Appearance = 0 'Flat
BackColor = &H00E0E0E0&
ForeColor = &H80000008&
Height = 3525
Left = 0
TabIndex = 0
Top = -90
Width = 6180
Begin VB.TextBox txtTB
Appearance = 0 'Flat
Height = 285
Left = 1215
TabIndex = 19
Top = 1440
Width = 3930
End
Begin VB.CommandButton cmdTB
BackColor = &H80000009&
Caption = "..."
Height = 285
Left = 5220
Style = 1 'Graphical
TabIndex = 18
Top = 1440
Width = 645
End
Begin VB.TextBox txtManKey
Appearance = 0 'Flat
Height = 270
Left = 2025
TabIndex = 16
Top = 2655
Visible = 0 'False
Width = 2175
End
Begin VB.CommandButton cmdShow
BackColor = &H80000009&
Caption = "..."
Height = 285
Left = 5220
Style = 1 'Graphical
TabIndex = 15
Top = 2250
Width = 645
End
Begin VB.CommandButton cmdNo
Appearance = 0 'Flat
BackColor = &H80000009&
Caption = "取消"
Height = 330
Left = 4860
Style = 1 'Graphical
TabIndex = 14
Top = 3060
Width = 870
End
Begin VB.CommandButton cmdYes
BackColor = &H80000009&
Caption = "确定"
Height = 330
Left = 3735
Style = 1 'Graphical
TabIndex = 13
Top = 3060
Width = 870
End
Begin VB.TextBox txtMan
Appearance = 0 'Flat
Height = 285
Left = 1215
TabIndex = 12
Top = 2250
Width = 3930
End
Begin VB.TextBox txtNum
Appearance = 0 'Flat
Height = 270
Left = 1215
TabIndex = 11
Top = 2655
Width = 555
End
Begin VB.ComboBox cboType
Height = 300
Left = 1215
Style = 2 'Dropdown List
TabIndex = 8
Top = 1845
Width = 2175
End
Begin VB.CheckBox chkSeeAdvice
BackColor = &H00E0E0E0&
Caption = "是否允许看他人意见"
Height = 195
Left = 2655
TabIndex = 6
Top = 1125
Width = 2220
End
Begin VB.CheckBox chkAddAdvice
BackColor = &H00E0E0E0&
Caption = "是否允许发布意见"
Height = 195
Left = 270
TabIndex = 5
Top = 1125
Width = 2040
End
Begin VB.CheckBox chkSeeAttach
BackColor = &H00E0E0E0&
Caption = "是否允许查看他人的附件"
Height = 240
Left = 2655
TabIndex = 4
Top = 675
Width = 2625
End
Begin VB.CheckBox chkAddAttach
BackColor = &H00E0E0E0&
Caption = "是否允许加附件"
Height = 195
Left = 270
TabIndex = 3
Top = 720
Width = 1770
End
Begin VB.TextBox txtName
Appearance = 0 'Flat
Height = 270
Left = 1215
TabIndex = 2
Top = 270
Width = 4695
End
Begin VB.Label lblTitle
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "数 据 表:"
Height = 180
Index = 5
Left = 270
TabIndex = 17
Top = 1485
Width = 900
End
Begin VB.Label lblTitle
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "同意人数:"
Height = 180
Index = 3
Left = 270
TabIndex = 10
Top = 2700
Width = 900
End
Begin VB.Label lblTitle
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "处 理 人:"
Height = 180
Index = 2
Left = 270
TabIndex = 9
Top = 2295
Width = 900
End
Begin VB.Label lblTitle
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "类 型:"
Height = 180
Index = 1
Left = 270
TabIndex = 7
Top = 1890
Width = 900
End
Begin VB.Label lblTitle
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "名 称:"
Height = 180
Index = 0
Left = 225
TabIndex = 1
Top = 315
Width = 900
End
End
End
Attribute VB_Name = "frmNode"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private mvarNode As clsRect
Public Property Set DrawNode(ByVal vData As Object)
Set mvarNode = vData
End Property
Private Sub cmdNo_Click()
Unload Me
End Sub
Private Sub cmdShow_Click()
frmUser.SetUserName = Trim$(txtManKey.Text)
Load frmUser
frmUser.Show 1
End Sub
Private Sub cmdTB_Click()
frmTB.SetTbName = Trim$(txtTB.Text)
Load frmTB
frmTB.Show 1
End Sub
Private Sub cmdYes_Click()
Dim tmpStr() As String
Dim count As Integer
With mvarNode
.NodeName = Trim$(txtName.Text)
.RefAppTable = Trim$(txtTB.Text)
If chkAddAttach.Value = 1 Then
.AddAttach = True
Else
.AddAttach = False
End If
If chkSeeAttach.Value = 1 Then
.SeeAttach = True
Else
.SeeAttach = False
End If
If chkAddAdvice.Value = 1 Then
.AddAdvice = True
Else
.AddAdvice = False
End If
If chkSeeAdvice.Value = 1 Then
.SeeAdvice = True
Else
.SeeAdvice = False
End If
If cboType.Text = "自动节点" Then
.NodeType = 4
ElseIf cboType.Text = "人工节点" Then
.NodeType = 5
ElseIf cboType.Text = "开始人工节点" Then
.NodeType = 2
ElseIf cboType.Text = "开始自动节点" Then
.NodeType = 1
ElseIf cboType.Text = "结束节点" Then
.NodeType = 3
End If
.UserName = txtManKey.Text
.UserName_C = txtMan.Text
If Trim(txtNum.Text) = "" Then
.AgreeNum = 0
Else
tmpStr = Split(txtManKey.Text, ",")
count = UBound(tmpStr)
If (count + 1) < txtNum.Text Then
.AgreeNum = count + 1
Else
.AgreeNum = txtNum.Text
End If
End If
End With
Unload Me
End Sub
Private Sub Form_Load()
With mvarNode
If Trim$(.NodeName) = "" Then
If .RectNo = 1 Then
txtName.Text = "开始节点"
Else
txtName.Text = "第" & .RectNo & "节点"
End If
Else
txtName.Text = .NodeName
End If
txtTB.Text = .RefAppTable
If .AddAttach = True Then
chkAddAttach.Value = 1
Else
chkAddAttach.Value = 0
End If
If .SeeAttach = True Then
chkSeeAttach.Value = 1
Else
chkSeeAttach.Value = 0
End If
If .AddAdvice = True Then
chkAddAdvice.Value = 1
Else
chkAddAdvice.Value = 0
End If
If .SeeAdvice = True Then
chkSeeAdvice.Value = 1
Else
chkSeeAdvice.Value = 0
End If
If .RectNo = 1 Then
cboType.AddItem "开始自动节点"
cboType.AddItem "开始人工节点"
If .NodeType = 1 Or .NodeType = 0 Then
cboType.Text = "开始自动节点"
.NodeType = 1
Else
cboType.Text = "开始人工节点"
.NodeType = 2
End If
ElseIf .RectNo = mRectCount Then
cboType.AddItem "自动节点"
cboType.AddItem "人工节点"
cboType.AddItem "结束节点"
If .NodeType = 0 Or .NodeType = 3 Then
cboType.Text = "结束节点"
.NodeType = 3
ElseIf .NodeType = 4 Then
cboType.Text = "自动节点"
.NodeType = 4
ElseIf .NodeType = 5 Then
cboType.Text = "人工节点"
.NodeType = 5
End If
Else
cboType.AddItem "自动节点"
cboType.AddItem "人工节点"
cboType.AddItem "结束节点"
If .NodeType = 0 Or .NodeType = 4 Then
cboType.Text = "自动节点"
.NodeType = 4
ElseIf .NodeType = 5 Then
cboType.Text = "人工节点"
.NodeType = 5
ElseIf .NodeType = 3 Then
cboType.Text = "结束节点"
.NodeType = 3
End If
End If
txtMan.Text = .UserName_C
txtManKey.Text = .UserName
txtNum.Text = .AgreeNum
If g_WFType = 0 Or g_WFType = 1 Then
txtTB.Enabled = False
txtTB.BackColor = &HE0E0E0
cmdTB.BackColor = &HE0E0E0
cmdTB.Enabled = False
End If
End With
End Sub
Private Sub txtNum_KeyPress(KeyAscii As Integer)
Select Case KeyAscii
Case 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 13, 8
Case Else
KeyAscii = 0
End Select
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -