📄 frminvedit.frm
字号:
VERSION 5.00
Begin VB.Form FrmInvEdit
BorderStyle = 1 'Fixed Single
Caption = "编辑客户服务调查"
ClientHeight = 4125
ClientLeft = 45
ClientTop = 330
ClientWidth = 11385
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 4125
ScaleWidth = 11385
StartUpPosition = 2 '屏幕中心
Begin VB.Frame Frame1
Caption = "问题描述"
Height = 3375
Left = 240
TabIndex = 12
Top = 120
Width = 5415
Begin VB.TextBox txtClient
Enabled = 0 'False
Height = 270
Left = 1200
MaxLength = 20
TabIndex = 19
Top = 240
Width = 3975
End
Begin VB.TextBox txtContact
Enabled = 0 'False
Height = 270
Left = 1200
MaxLength = 20
TabIndex = 18
Top = 600
Width = 1335
End
Begin VB.TextBox txtTel
Enabled = 0 'False
Height = 270
Left = 3840
MaxLength = 20
TabIndex = 17
Top = 600
Width = 1335
End
Begin VB.ComboBox ComboLevel
Enabled = 0 'False
Height = 300
ItemData = "FrmInvEdit.frx":0000
Left = 1200
List = "FrmInvEdit.frx":0002
TabIndex = 16
Text = "ComboLevel"
Top = 945
Width = 1335
End
Begin VB.ComboBox ComboType
Enabled = 0 'False
Height = 300
Left = 3840
TabIndex = 15
Text = "ComboType"
Top = 960
Width = 1335
End
Begin VB.TextBox txtDescribe
Enabled = 0 'False
Height = 1095
Left = 1200
MaxLength = 20
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 14
Top = 1320
Width = 3975
End
Begin VB.TextBox txtMemo
Enabled = 0 'False
Height = 735
Left = 1200
MaxLength = 20
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 13
Top = 2520
Width = 3975
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "客户单位"
Height = 180
Left = 240
TabIndex = 26
Top = 285
Width = 720
End
Begin VB.Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "联系人"
Height = 180
Left = 240
TabIndex = 25
Top = 645
Width = 540
End
Begin VB.Label Label3
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "联系电话"
Height = 180
Left = 2880
TabIndex = 24
Top = 645
Width = 720
End
Begin VB.Label Label4
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "严重级别"
Height = 180
Left = 240
TabIndex = 23
Top = 1005
Width = 720
End
Begin VB.Label Label5
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "问题类型"
Height = 180
Left = 2880
TabIndex = 22
Top = 1020
Width = 720
End
Begin VB.Label Label6
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "问题描述"
Height = 180
Left = 240
TabIndex = 21
Top = 1365
Width = 720
End
Begin VB.Label Label7
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "备注信息"
Height = 180
Left = 240
TabIndex = 20
Top = 2565
Width = 720
End
End
Begin VB.CommandButton Cmd_Cancel
BackColor = &H80000000&
Cancel = -1 'True
Caption = "取 消"
Height = 400
Left = 5865
MouseIcon = "FrmInvEdit.frx":0004
MousePointer = 99 'Custom
Style = 1 'Graphical
TabIndex = 11
Top = 3600
Width = 1300
End
Begin VB.CommandButton Cmd_Ok
BackColor = &H80000000&
Caption = "确 定"
Height = 400
Left = 4065
MouseIcon = "FrmInvEdit.frx":030E
MousePointer = 99 'Custom
Style = 1 'Graphical
TabIndex = 10
Top = 3600
Width = 1300
End
Begin VB.Frame Frame2
Caption = "服务调查"
Height = 3375
Left = 5760
TabIndex = 0
Top = 120
Width = 5415
Begin VB.TextBox txtCustomerTel
Enabled = 0 'False
Height = 270
Left = 3840
MaxLength = 20
TabIndex = 29
Top = 240
Width = 1335
End
Begin VB.ComboBox ComboTitle
Enabled = 0 'False
Height = 300
ItemData = "FrmInvEdit.frx":0618
Left = 1200
List = "FrmInvEdit.frx":0625
Style = 2 'Dropdown List
TabIndex = 27
Top = 600
Width = 1335
End
Begin VB.TextBox txtCustomer
Enabled = 0 'False
Height = 270
Left = 1200
MaxLength = 20
TabIndex = 2
Top = 240
Width = 1335
End
Begin VB.TextBox txtBody
Height = 1815
Left = 1200
MaxLength = 20
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 1
Top = 1000
Width = 3975
End
Begin VB.Label Label13
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "总体评价"
Height = 180
Left = 240
TabIndex = 28
Top = 660
Width = 720
End
Begin VB.Label Label8
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "被调查人"
Height = 180
Left = 240
TabIndex = 9
Top = 285
Width = 720
End
Begin VB.Label Label10
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "调查电话"
Height = 180
Left = 2880
TabIndex = 8
Top = 285
Width = 720
End
Begin VB.Label Label11
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "客户意见"
Height = 180
Left = 240
TabIndex = 7
Top = 1080
Width = 720
End
Begin VB.Label lblInvDate
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "lblInvdate"
Height = 180
Left = 3960
TabIndex = 6
Top = 3000
Width = 900
End
Begin VB.Label lblHandler
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "lblHandler"
Height = 180
Left = 1200
TabIndex = 5
Top = 3000
Width = 900
End
Begin VB.Label Label9
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "调查日期"
Height = 180
Left = 2880
TabIndex = 4
Top = 3000
Width = 720
End
Begin VB.Label Label12
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "调查人"
Height = 180
Left = 240
TabIndex = 3
Top = 3000
Width = 540
End
End
End
Attribute VB_Name = "FrmInvEdit"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public OriId As Long
Private Sub Cmd_Cancel_Click()
Unload Me
End Sub
Private Sub Cmd_OK_Click()
'判断用户录入数据的有效性
If Trim(txtCustomer) = "" Then
MsgBox "请输入被调查人"
txtCustomer.SetFocus
Exit Sub
End If
If Trim(txtCustomerTel) = "" Then
MsgBox "请输入调查电话"
txtCustomerTel.SetFocus
Exit Sub
End If
If Trim(txtBody) = "" Then
MsgBox "请输入客户意见"
txtBody.SetFocus
Exit Sub
End If
'更新客户调查表Investigate
With MyInv
.Customer = MakeStr(txtCustomer)
.CustomerTel = MakeStr(txtCustomerTel)
.Title = ComboTitle.Text
.Body = MakeStr(txtBody)
.Handler = lblHandler
.InvDate = Format(Now, "yyyy-mm-dd")
.Update (OriId)
End With
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -