📄 frmprosubmit.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{F0D2F211-CCB0-11D0-A316-00AA00688B10}#1.0#0"; "MSDATLST.OCX"
Begin VB.Form FrmProSubmit
BorderStyle = 1 'Fixed Single
Caption = "选择主管"
ClientHeight = 1605
ClientLeft = 45
ClientTop = 330
ClientWidth = 3585
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1605
ScaleWidth = 3585
StartUpPosition = 2 '屏幕中心
Begin MSAdodcLib.Adodc Ado_Users
Height = 375
Left = 120
Top = 0
Visible = 0 'False
Width = 1935
_ExtentX = 3413
_ExtentY = 661
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 8
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = ""
OLEDBString = ""
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = ""
Caption = "Ado_Users"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin VB.Frame Frame1
Height = 855
Left = 120
TabIndex = 2
Top = 120
Width = 3255
Begin MSDataListLib.DataCombo dco_Users
Height = 330
Left = 1200
TabIndex = 4
Top = 300
Width = 1815
_ExtentX = 3201
_ExtentY = 582
_Version = 393216
Style = 2
Text = ""
End
Begin VB.Label Label9
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "提交主管"
Height = 180
Left = 240
TabIndex = 3
Top = 360
Width = 720
End
End
Begin VB.CommandButton Cmd_Cancel
BackColor = &H80000000&
Cancel = -1 'True
Caption = "取 消"
Height = 400
Left = 1920
MouseIcon = "FrmProSubmit.frx":0000
MousePointer = 99 'Custom
Style = 1 'Graphical
TabIndex = 1
Top = 1080
Width = 1300
End
Begin VB.CommandButton Cmd_Ok
BackColor = &H80000000&
Caption = "确 定"
Height = 400
Left = 315
MouseIcon = "FrmProSubmit.frx":030A
MousePointer = 99 'Custom
Style = 1 'Graphical
TabIndex = 0
Top = 1080
Width = 1300
End
End
Attribute VB_Name = "FrmProSubmit"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public OriProId As Long
Private Sub Cmd_Cancel_Click()
Unload Me
End Sub
Private Sub Cmd_OK_Click()
'判断是否选择了主管用户
If Trim(dco_Users.Text) = "" Then
MsgBox "请选择主管"
dco_Users.SetFocus
Exit Sub
End If
'更新表Despatch,保存任务分配信息
MyDespatch.ProId = OriProId
MyDespatch.DespUser = Trim(dco_Users.BoundText())
MyDespatch.Insert
'更新表SrvProblem,把当前问题的状态设置为已提交
With MyPro
.Status = "提交"
.UpdateStatus (OriProId)
End With
'关闭窗体
Unload Me
End Sub
Private Sub Form_Load()
Ado_Users.ConnectionString = Conn
Ado_Users.RecordSource = "Select * From Users Where UserType=1 Order By EmpName"
Ado_Users.Refresh
Set dco_Users.RowSource = Ado_Users
dco_Users.ListField = "EmpName"
dco_Users.BoundColumn = "UserName"
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -