📄 frm_tsinfo.frm
字号:
Top = 1530
Width = 1290
End
Begin VB.TextBox Text10
Height = 300
Index = 1
Left = 5625
TabIndex = 44
Text = "Text10"
Top = 1935
Width = 1275
End
Begin VB.ComboBox Combo4
DataField = "投诉性质"
DataSource = "Adodc1"
Height = 300
Index = 1
ItemData = "Frm_tsinfo.frx":0126
Left = 3330
List = "Frm_tsinfo.frx":0130
TabIndex = 42
Text = "Combo4"
Top = 1575
Width = 1275
End
Begin MSComCtl2.DTPicker DTPicker1
Height = 345
Index = 1
Left = 1080
TabIndex = 43
Top = 1560
Width = 1260
_ExtentX = 2223
_ExtentY = 609
_Version = 393216
Format = 49938433
CurrentDate = 38208
End
Begin VB.Label Label7
AutoSize = -1 'True
Caption = "投诉原因:"
Height = 180
Index = 1
Left = 210
TabIndex = 69
Top = 2880
Width = 900
End
Begin VB.Label Label6
AutoSize = -1 'True
Caption = "处理意见:"
Height = 180
Index = 1
Left = 210
TabIndex = 68
Top = 2475
Width = 900
End
Begin VB.Label Label5
AutoSize = -1 'True
Caption = "投诉时间:"
Height = 180
Index = 1
Left = 180
TabIndex = 67
Top = 1620
Width = 900
End
Begin VB.Label Label4
AutoSize = -1 'True
Caption = "被投诉方:"
Height = 180
Index = 1
Left = 180
TabIndex = 66
Top = 2040
Width = 900
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "投诉人电话:"
Height = 180
Index = 1
Left = 180
TabIndex = 65
Top = 1215
Width = 1080
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "投诉编号:"
Height = 180
Index = 1
Left = 210
TabIndex = 64
Top = 420
Width = 900
End
Begin VB.Label Label8
AutoSize = -1 'True
Caption = "居住位置:"
Height = 180
Index = 1
Left = 195
TabIndex = 63
Top = 795
Width = 900
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "投诉人:"
Height = 180
Index = 1
Left = 2640
TabIndex = 62
Top = 420
Width = 720
End
Begin VB.Label Label9
AutoSize = -1 'True
Caption = "性 别:"
Height = 180
Index = 1
Left = 4620
TabIndex = 61
Top = 405
Width = 990
End
Begin VB.Label Label10
AutoSize = -1 'True
Caption = "投诉状况 :"
Height = 180
Index = 1
Left = 4635
TabIndex = 60
Top = 780
Width = 990
End
Begin VB.Label Label11
AutoSize = -1 'True
Caption = "投诉方式:"
Height = 180
Index = 1
Left = 4650
TabIndex = 59
Top = 1200
Width = 900
End
Begin VB.Label Label12
AutoSize = -1 'True
Caption = "接待员:"
Height = 180
Index = 1
Left = 4650
TabIndex = 58
Top = 1575
Width = 720
End
Begin VB.Label Label13
AutoSize = -1 'True
Caption = "联系方式:"
Height = 180
Index = 1
Left = 4695
TabIndex = 57
Top = 1995
Width = 900
End
Begin VB.Label Label14
AutoSize = -1 'True
Caption = "投诉性质:"
Height = 180
Index = 1
Left = 2430
TabIndex = 56
Top = 1635
Width = 900
End
End
Begin MSAdodcLib.Adodc Adodc1
Height = 330
Left = 3630
Top = 5025
Width = 1935
_ExtentX = 3413
_ExtentY = 582
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 = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=db_wygl.mdb;Persist Security Info=False"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=db_wygl.mdb;Persist Security Info=False"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from tab_tsinfo"
Caption = "Adodc1"
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 Frame2
Height = 780
Left = 3570
TabIndex = 34
Top = 4140
Width = 3945
Begin VB.CommandButton Command10
Caption = "退出"
Height = 400
Left = 3015
TabIndex = 40
Top = 210
Width = 765
End
Begin VB.CommandButton Command9
Caption = "浏览"
Height = 400
Left = 2280
TabIndex = 39
Top = 210
Width = 700
End
Begin VB.CommandButton Command8
Caption = "删除"
Height = 400
Left = 1545
TabIndex = 38
Top = 210
Width = 700
End
Begin VB.CommandButton Command7
Caption = "取消"
Height = 400
Left = 810
TabIndex = 37
Top = 180
Width = 700
End
Begin VB.CommandButton Command1
Caption = "添加"
Height = 400
Left = 75
TabIndex = 35
Top = 180
Width = 700
End
Begin VB.CommandButton Command2
Caption = "保存"
Height = 345
Left = 90
TabIndex = 36
Top = 195
Width = 700
End
End
Begin VB.Frame Frame4
Height = 750
Left = 195
TabIndex = 29
Top = 4140
Width = 3330
Begin VB.CommandButton Command3
Caption = "第一个"
Height = 400
Left = 120
TabIndex = 33
Top = 210
Width = 700
End
Begin VB.CommandButton Command4
Caption = "上一个"
Height = 400
Left = 825
TabIndex = 32
Top = 225
Width = 700
End
Begin VB.CommandButton Command5
Caption = "下一个"
Height = 400
Left = 1530
TabIndex = 31
Top = 225
Width = 700
End
Begin VB.CommandButton Command6
Caption = "最后一个"
Height = 400
Left = 2265
TabIndex = 30
Top = 225
Width = 1005
End
End
End
Attribute VB_Name = "Frm_xqtsinfo"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
Frame1(0).Visible = True
Adodc1.RecordSource = "select * from tab_tsinfo order by 投诉编号"
Adodc1.Refresh
If Adodc1.Recordset.RecordCount > 0 Then
If Adodc1.Recordset.EOF = False Then
Adodc1.Recordset.MoveLast
Text1(0).Text = "ts" & Trim((Val(Mid(Adodc1.Recordset.Fields("投诉编号"), 3, 2)) + 1))
Else
Text1(0).Text = "ts" & Trim(Val(Mid(Adodc1.Recordset.Fields("投诉编号"), 3, 2)) + 1)
End If
Else
Text1(0).Text = "ts1"
End If
Command1.Visible = False
Command2.Visible = True
Text2(0).Text = ""
Text3(0).Text = ""
Text5(0).Text = ""
Text6(0).Text = ""
Text7(0).Text = ""
Text8(0).Text = ""
Text9(0).Text = ""
Text10(0).Text = ""
End Sub
Private Sub Command10_Click()
Unload Me
Frm_main.Show
End Sub
Private Sub Command2_Click()
Command2.Visible = False
Command1.Visible = True
If Text2(0).Text = "" Or Text3(0).Text = "" Or Text5(0).Text = "" Or Text6(0).Text = "" Or Text7(0).Text = "" Or Text8(0).Text = "" Or Text9(0).Text = "" Or Text10(0).Text = "" Or Combo1(0).Text = "" Or Combo2(0).Text = "" Or Combo3(0).Text = "" Or Combo4(0).Text = "" Then
MsgBox "不允许为空", 48, "提示"
Exit Sub
Else
Call main
Set adors = adocon.Execute("insert into tab_tsinfo values('" & Text1(0) & "','" & Text2(0) & "','" & Text8(0) & "','" & Combo1(0) & "','" & Text3(0) & "','" & Trim(DTPicker1(0)) & "','" & Text5(0) & "','" & Text10(0) & "','" & Text7(0) & "','" & Combo2(0) & "','" & Combo3(0) & "','" & Combo4(0) & "','" & Text6(0) & "','" & Text9(0) & "') ")
MsgBox "数据保存成功", 78, "管理信息系统"
Adodc1.Refresh
adocon.Close
End If
End Sub
Private Sub Command3_Click()
Frame1(1).Visible = True
Frame1(0).Visible = False
Adodc1.Recordset.MoveFirst
End Sub
Private Sub Command4_Click()
Frame1(1).Visible = True
Frame1(0).Visible = False
Adodc1.Recordset.MovePrevious
If Adodc1.Recordset.BOF Then Adodc1.Recordset.MoveFirst
End Sub
Private Sub Command5_Click()
Frame1(1).Visible = True
Frame1(0).Visible = False
Adodc1.Recordset.MoveNext
If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast
End Sub
Private Sub Command6_Click()
Frame1(1).Visible = True
Frame1(0).Visible = False
Adodc1.Recordset.MoveLast
End Sub
Private Sub Command7_Click()
Text1(0).Text = ""
Text2(0).Text = ""
Text3(0).Text = ""
Text5(0).Text = ""
Text6(0).Text = ""
Text7(0).Text = ""
Text8(0).Text = ""
Text9(0).Text = ""
Text10(0).Text = ""
End Sub
Private Sub Command8_Click()
Dim myval As String
Adodc1.RecordSource = "select * from tab_tsinfo"
If Adodc1.Recordset.RecordCount > 0 Then
myval = MsgBox("确定删除吗?", vbYesNo)
If myval = vbYes Then
Adodc1.Recordset.Delete
Adodc1.Refresh
Else
End If
Else
MsgBox "数据库中没有记录要删除"
End If
Me.Refresh
End Sub
Private Sub Command9_Click()
frm_tsll.Show
End Sub
Private Sub Form_Load()
Frame1(0).Visible = False
Frame1(1).Visible = True
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -