📄 frmdesedit.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 FrmDesEdit
BorderStyle = 1 'Fixed Single
Caption = "分配工作"
ClientHeight = 6015
ClientLeft = 45
ClientTop = 330
ClientWidth = 5640
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 6015
ScaleWidth = 5640
StartUpPosition = 2 '屏幕中心
Begin MSAdodcLib.Adodc Ado_Emps
Height = 375
Left = 120
Top = 5280
Visible = 0 'False
Width = 1575
_ExtentX = 2778
_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_Emps"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin VB.Frame Frame3
Caption = "客户信息"
Height = 1095
Left = 120
TabIndex = 15
Top = 2160
Width = 5415
Begin VB.TextBox txtContact
Height = 300
Left = 960
Locked = -1 'True
TabIndex = 23
Top = 637
Width = 1680
End
Begin VB.TextBox txtCustomer
Height = 300
Left = 960
Locked = -1 'True
TabIndex = 21
Top = 255
Width = 4320
End
Begin VB.Label Label5
AutoSize = -1 'True
Caption = "联系人"
Height = 180
Left = 120
TabIndex = 22
Top = 697
Width = 540
End
Begin VB.Label Label4
AutoSize = -1 'True
Caption = "客户名称"
Height = 180
Left = 120
TabIndex = 20
Top = 315
Width = 720
End
End
Begin VB.Frame Frame1
Caption = "问题信息"
Height = 1935
Left = 120
TabIndex = 12
Top = 120
Width = 5415
Begin VB.TextBox txtDetail
Height = 735
Left = 960
Locked = -1 'True
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 24
Top = 1031
Width = 4215
End
Begin VB.TextBox txtType
Height = 300
Left = 3720
Locked = -1 'True
TabIndex = 19
Top = 637
Width = 1485
End
Begin VB.TextBox txtLevel
Height = 300
Left = 960
Locked = -1 'True
TabIndex = 17
Top = 637
Width = 1485
End
Begin VB.TextBox txtTitle
Height = 300
Left = 960
Locked = -1 'True
TabIndex = 14
Top = 240
Width = 4215
End
Begin VB.Label Label7
AutoSize = -1 'True
Caption = "问题描述"
Height = 180
Left = 120
TabIndex = 25
Top = 1080
Width = 720
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "问题类型"
Height = 180
Left = 2880
TabIndex = 18
Top = 690
Width = 720
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "严重级别"
Height = 180
Left = 120
TabIndex = 16
Top = 697
Width = 720
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "问题题目"
Height = 180
Left = 120
TabIndex = 13
Top = 315
Width = 720
End
End
Begin VB.Frame Frame2
Caption = "工作分配"
Height = 1815
Left = 120
TabIndex = 2
Top = 3360
Width = 5415
Begin MSDataListLib.DataCombo dco_Emps
Height = 330
Left = 1200
TabIndex = 26
Top = 680
Width = 1335
_ExtentX = 2355
_ExtentY = 582
_Version = 393216
Style = 2
Text = ""
End
Begin VB.TextBox txtSuggest
Height = 855
Left = 3720
MaxLength = 20
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 6
Top = 240
Width = 1575
End
Begin VB.TextBox txtDespEmpName
Height = 270
Left = 1200
Locked = -1 'True
MaxLength = 20
TabIndex = 3
Top = 240
Width = 1335
End
Begin VB.Label Label12
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "提交日期"
Height = 180
Left = 240
TabIndex = 11
Top = 1320
Width = 720
End
Begin VB.Label Label9
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "处理日期"
Height = 180
Left = 2880
TabIndex = 10
Top = 1320
Width = 720
End
Begin VB.Label lblPostDate
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "lblPostDate"
Height = 180
Left = 1200
TabIndex = 9
Top = 1320
Width = 990
End
Begin VB.Label lblDespDate
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "lblDespdate"
Height = 180
Left = 3840
TabIndex = 8
Top = 1320
Width = 990
End
Begin VB.Label Label11
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "处理意见"
Height = 180
Left = 2880
TabIndex = 7
Top = 285
Width = 720
End
Begin VB.Label Label10
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "负责人"
Height = 180
Left = 420
TabIndex = 5
Top = 742
Width = 540
End
Begin VB.Label Label8
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "主管姓名"
Height = 180
Left = 240
TabIndex = 4
Top = 285
Width = 720
End
End
Begin VB.CommandButton Cmd_Ok
BackColor = &H80000000&
Caption = "确 定"
Height = 400
Left = 1440
MouseIcon = "FrmDesEdit.frx":0000
MousePointer = 99 'Custom
Style = 1 'Graphical
TabIndex = 1
Top = 5400
Width = 1185
End
Begin VB.CommandButton Cmd_Cancel
BackColor = &H80000000&
Cancel = -1 'True
Caption = "取 消"
Height = 400
Left = 3240
MouseIcon = "FrmDesEdit.frx":030A
MousePointer = 99 'Custom
Style = 1 'Graphical
TabIndex = 0
Top = 5400
Width = 1185
End
End
Attribute VB_Name = "FrmDesEdit"
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_Emps.Text) = "" Then
MsgBox "请选择解决问题的工程师"
dco_Emps.SetFocus
Exit Sub
End If
'更新问题表SrvProblem,把问题状态设置为分配
MyPro.Status = "分配"
MyPro.UpdateStatus (OriProId)
'更新分配工作表Despatch
With MyDespatch
'负责人
.RespUser = Trim(dco_Emps.BoundText())
'处理意见
.DespSuggest = Trim(txtSuggest)
'处理日期
.DespDate = Format(Now, "yyyy-mm-dd")
'更新表SrvDespatch
.Update (OriProId)
End With
'关闭窗体
Unload Me
End Sub
Private Sub Form_Load()
Ado_Emps.ConnectionString = Conn
Ado_Emps.RecordSource = "SELECT * FROM Users Where UserType=2 ORDER BY EmpName"
Ado_Emps.Refresh
Set dco_Emps.RowSource = Ado_Emps
dco_Emps.ListField = "EmpName"
dco_Emps.BoundColumn = "UserName"
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -