📄 frmywlbsz.frm
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form frmYWLBSZ
Caption = "业务类别设置"
ClientHeight = 4320
ClientLeft = 60
ClientTop = 345
ClientWidth = 6960
LinkTopic = "Form1"
LockControls = -1 'True
MDIChild = -1 'True
ScaleHeight = 4320
ScaleWidth = 6960
Begin VB.Frame Frame3
Height = 1050
Left = 2130
TabIndex = 7
Top = 3165
Width = 4785
Begin VB.CommandButton Command4
Caption = "修改"
Height = 435
Left = 1450
TabIndex = 13
Top = 360
Width = 930
End
Begin VB.CommandButton Command3
Caption = "退出"
Height = 435
Left = 3420
TabIndex = 12
Top = 360
Width = 930
End
Begin VB.CommandButton Command2
Caption = "删除"
Height = 435
Left = 2435
TabIndex = 11
Top = 360
Width = 930
End
Begin VB.CommandButton Command1
Caption = "新增"
Height = 435
Left = 465
TabIndex = 10
Top = 360
Width = 930
End
End
Begin VB.Frame Frame2
Height = 3165
Left = 2130
TabIndex = 2
Top = 0
Width = 4785
Begin VB.TextBox MEMO
Height = 315
Left = 1680
TabIndex = 9
Top = 2175
Width = 2685
End
Begin VB.TextBox TBXZ
Height = 315
Left = 1680
TabIndex = 6
Top = 1350
Width = 2685
End
Begin VB.ComboBox YWLB
Height = 300
Left = 1680
TabIndex = 4
Top = 540
Width = 2685
End
Begin MSComctlLib.ImageList ImageList1
Left = 0
Top = 0
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 32
ImageHeight = 32
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 12
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmYWLBSZ.frx":0000
Key = ""
EndProperty
BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmYWLBSZ.frx":1D0C
Key = ""
EndProperty
BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmYWLBSZ.frx":2030
Key = ""
EndProperty
BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmYWLBSZ.frx":2F0C
Key = ""
EndProperty
BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmYWLBSZ.frx":3DE8
Key = ""
EndProperty
BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmYWLBSZ.frx":410C
Key = ""
EndProperty
BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmYWLBSZ.frx":4430
Key = ""
EndProperty
BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmYWLBSZ.frx":4754
Key = ""
EndProperty
BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmYWLBSZ.frx":4A78
Key = ""
EndProperty
BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmYWLBSZ.frx":4D9C
Key = ""
EndProperty
BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmYWLBSZ.frx":50C0
Key = ""
EndProperty
BeginProperty ListImage12 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmYWLBSZ.frx":53E4
Key = ""
EndProperty
EndProperty
End
Begin VB.Label Label3
Caption = "备注"
Height = 420
Left = 405
TabIndex = 8
Top = 2265
Width = 1455
End
Begin VB.Label Label2
Caption = "投保险种"
Height = 420
Left = 405
TabIndex = 5
Top = 1440
Width = 1455
End
Begin VB.Label Label1
Caption = "业务类别"
Height = 420
Left = 405
TabIndex = 3
Top = 615
Width = 1455
End
End
Begin VB.Frame Frame1
Height = 4215
Left = 0
TabIndex = 0
Top = 0
Width = 2085
Begin MSComctlLib.ListView LSTXZ
Height = 3915
Left = 105
TabIndex = 1
Top = 165
Width = 1890
_ExtentX = 3334
_ExtentY = 6906
View = 3
LabelEdit = 1
LabelWrap = -1 'True
HideSelection = -1 'True
FullRowSelect = -1 'True
_Version = 393217
Icons = "ImageList1"
ForeColor = -2147483640
BackColor = -2147483643
BorderStyle = 1
Appearance = 1
NumItems = 0
End
End
End
Attribute VB_Name = "frmYWLBSZ"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim id As Long
Private Sub Command1_Click()
If Trim(YWLB) = "" Or Trim(TBXZ) = "" Then
MsgBox "业务类别或投保险种不能为空!!", vbInformation, "系统提示"
Exit Sub
End If
Dim strsql As String
strsql = "insert into ywlb(tbxz,ywlb,memo)values('" & Trim(TBXZ) & "','" & Trim(YWLB) & "','" & Trim(MEMO) & "')"
gCnn.Execute strsql
Call YWLB_Click
TBXZ = ""
MEMO = ""
Command4.Enabled = False
Command2.Enabled = False
End Sub
Private Sub Command2_Click()
gCnn.Execute "delete from ywlb where id=" & id
TBXZ = ""
MEMO = ""
Call YWLB_Click
End Sub
Private Sub Command3_Click()
Unload Me
End Sub
Private Sub Command4_Click()
Dim strsql As String
strsql = "update ywlb set tbxz='" & TBXZ & "' where id=" & id
gCnn.Execute strsql
TBXZ = ""
MEMO = ""
Command4.Enabled = False
Call YWLB_Click
End Sub
Private Sub Form_Load()
If Me.WindowState = 0 Then Me.Move 100, 100, 7080, 4725
Dim rs As New ADODB.Recordset
Dim i As Long
Set rs = New ADODB.Recordset
rs.Open "select * from parameters where paratype=2 order by id", gCnn, adOpenStatic, adLockReadOnly
YWLB.Clear
For i = 0 To rs.RecordCount - 1
YWLB.AddItem rs("value")
'YWLB.ItemData(i) = rs("valueid")
rs.MoveNext
Next
Command4.Enabled = False
Command2.Enabled = False
End Sub
Private Sub LSTXZ_ItemClick(ByVal Item As MSComctlLib.ListItem)
Dim rs As ADODB.Recordset
Set rs = New ADODB.Recordset
rs.Open "select * from ywlb where id=" & Item, gCnn, adOpenStatic, adLockReadOnly
If Not rs.EOF Then
TBXZ = rs("tbxz")
MEMO = rs("memo")
Command4.Enabled = True
Command2.Enabled = True
id = Item
End If
End Sub
Private Sub YWLB_Click()
Dim msg As String
Dim rs As New ADODB.Recordset
Set rs = New ADODB.Recordset
rs.Open "select id,tbxz as 投保险种 from YWLB where ywlb='" & Trim(YWLB) & "' order by id", gCnn, adOpenStatic, adLockReadOnly
msg = ShowListView(LSTXZ, rs, False, "0,2000")
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -