⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 flpadd.frm

📁 为个人用户开发的车险秘书系统
💻 FRM
📖 第 1 页 / 共 2 页
字号:
            Caption         =   "车牌号:"
            Height          =   180
            Index           =   3
            Left            =   480
            TabIndex        =   24
            Top             =   1185
            Width           =   720
         End
         Begin VB.Label Label1 
            AutoSize        =   -1  'True
            BackStyle       =   0  'Transparent
            Caption         =   "手机:"
            Height          =   180
            Index           =   2
            Left            =   3840
            TabIndex        =   23
            Top             =   720
            Width           =   540
         End
         Begin VB.Label Label1 
            AutoSize        =   -1  'True
            BackStyle       =   0  'Transparent
            Caption         =   "推荐人:"
            Height          =   195
            Index           =   1
            Left            =   5955
            TabIndex        =   22
            Top             =   720
            Width           =   720
         End
         Begin VB.Label Label1 
            AutoSize        =   -1  'True
            BackStyle       =   0  'Transparent
            Caption         =   "请选择或填写保险单编号:"
            Height          =   195
            Index           =   0
            Left            =   240
            TabIndex        =   21
            Top             =   120
            Width           =   2160
         End
         Begin VB.Label Label1 
            AutoSize        =   -1  'True
            BackStyle       =   0  'Transparent
            Caption         =   "是否结案:"
            Height          =   180
            Index           =   9
            Left            =   8640
            TabIndex        =   20
            Top             =   1680
            Width           =   900
         End
         Begin VB.Label Label1 
            AutoSize        =   -1  'True
            BackStyle       =   0  'Transparent
            Caption         =   "满意度:"
            Height          =   180
            Index           =   10
            Left            =   5940
            TabIndex        =   19
            Top             =   1680
            Width           =   720
         End
         Begin VB.Label Label1 
            AutoSize        =   -1  'True
            BackStyle       =   0  'Transparent
            Caption         =   "被保险人:"
            Height          =   195
            Index           =   11
            Left            =   5780
            TabIndex        =   18
            Top             =   120
            Width           =   900
         End
         Begin VB.Label Label1 
            AutoSize        =   -1  'True
            BackStyle       =   0  'Transparent
            Caption         =   "    推荐人手机:"
            Height          =   195
            Index           =   12
            Left            =   8280
            TabIndex        =   17
            Top             =   705
            Width           =   1260
         End
      End
      Begin VB.TextBox Tadd 
         Appearance      =   0  'Flat
         Enabled         =   0   'False
         Height          =   285
         Left            =   9840
         TabIndex        =   2
         Top             =   1920
         Visible         =   0   'False
         Width           =   180
      End
      Begin VB.TextBox Tmsg 
         Appearance      =   0  'Flat
         Enabled         =   0   'False
         Height          =   270
         Index           =   6
         Left            =   9360
         TabIndex        =   1
         Top             =   1920
         Visible         =   0   'False
         Width           =   375
      End
      Begin 保险秘书.isButton isBOk 
         Height          =   375
         Left            =   8400
         TabIndex        =   34
         Top             =   4800
         Width           =   1215
         _ExtentX        =   2143
         _ExtentY        =   661
         Icon            =   "FlpAdd.frx":0000
         Style           =   5
         Caption         =   "    确   认"
         IconAlign       =   1
         Tooltiptitle    =   ""
         ToolTipIcon     =   0
         ToolTipType     =   0
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "Verdana"
            Size            =   8.25
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
      End
      Begin 保险秘书.isButton isButton1 
         Height          =   375
         Left            =   9840
         TabIndex        =   35
         Top             =   4800
         Width           =   1215
         _ExtentX        =   2143
         _ExtentY        =   661
         Icon            =   "FlpAdd.frx":08DA
         Style           =   5
         Caption         =   "    取   消"
         IconAlign       =   1
         Tooltiptitle    =   ""
         ToolTipIcon     =   0
         ToolTipType     =   0
         ttForeColor     =   0
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "Verdana"
            Size            =   8.25
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
      End
      Begin VB.Label Label3 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "其  它:"
         Height          =   195
         Left            =   720
         TabIndex        =   32
         Top             =   3600
         Width           =   630
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "备注栏:"
         Height          =   195
         Left            =   600
         TabIndex        =   30
         Top             =   2400
         Width           =   720
      End
   End
End
Attribute VB_Name = "FlpAdd"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
    Me.Move (FlpNew.ScaleWidth - Me.Width) / 2, (FlpNew.ScaleHeight - Me.Height) / 2
    Call ExplodeForm(Me, 1500)
    With Omy
        .AddItem "满意"
        .AddItem "不满意"
        .ListIndex = 0
    End With
    
    With Oja
        .AddItem "已结案"
        .AddItem "未结案"
        .ListIndex = 0
    End With
    Oda.Text = Date
    
    Call OSerShow
End Sub

Private Sub Form_Unload(Cancel As Integer)
    Call ImplodeForm(Me, 1500, 800, 800)
End Sub

Private Sub isBOk_Click()
    Dim vid, sql As String
    Dim vdb As Boolean
    Dim vnum As Integer
    
    vid = Trim$(OSer.Text)
    If vid = "" Then
        MsgBox "请填写正确的保单号!"
        Exit Sub
    End If
    
    vdb = ExcSql
    If vdb = True Then
        sql = "select count(id) from insurance_info where serial='" & vid & "'"
        vnum = conn.Execute(sql)(0)
        If vnum = 0 Then
            MsgBox "您输入的保单号不存在,请确认后再记录该信息!"
            Exit Sub
        End If
        
        sql = "insert into lp(id,vdate,xname,xltel,sfee,pfee,myd,ja,mark,other) values(" & _
        "'" & OSer.Text & "','" & Oda.Text & "','" & Tmsg(5).Text & "','" & Tmsg(11).Text & "','" & Tmsg(7).Text & "'," & _
        "'" & Tmsg(8).Text & "','" & Omy.Text & "','" & Oja.Text & "','" & Tmark.Text & "','" & Tother.Text & "')"
        
        
        'sql = "insert into lp values('" & Tmsg(0).Text & "','" & Tmsg(1).Text & "','" & Tmsg(2).Text & "','" & Oda.Text & "','" & Tmsg(3).Text & "'," & _
        '"'" & Tmsg(4).Text & "','" & Tmsg(5).Text & "','" & Tmsg(7).Text & "','" & Tmsg(8).Text & "','" & Omy.Text & "','" & Oja.Text & "','" & Tmark.Text & "','" & Tother.Text & "'," & _
        '"'" & Tmsg(9).Text & "','" & Tmsg(10).Text & "')"
        Call exsql(sql)
    End If
    
    FlpNew.Timer1.Enabled = True
    Unload Me
End Sub

Private Sub isButton1_Click()
    Unload Me
End Sub

Private Sub OSerShow()
    Dim sql As String
    Dim rs As Recordset
    Dim vdb As Boolean
    
    sql = "select serial from insurance_info order by id asc"
    vdb = ExcSql
    If vdb = True Then
        Set rs = conn.Execute(sql)
        If Not rs.EOF Then
        With OSer
            Do While Not rs.EOF
                .AddItem rs("serial")
            rs.MoveNext
            Loop
            .ListIndex = 0
        End With
        End If
        rs.Close
        Set rs = Nothing
    End If
End Sub

Private Sub OSer_Change()
    Dim sql As String
    Dim rs As Recordset
    Dim vdb As Boolean
    
    Tmsg(1).Text = ""
    Tmsg(0).Text = ""
    Tmsg(2).Text = ""
    Tmsg(9).Text = ""
    Tmsg(10).Text = ""
    Tmsg(3).Text = ""
    Tmsg(4).Text = ""
    
    sql = "select a.serial as c1,bpeo as c2,xsz as c3,email as c4,Tpeo as c5,agio as c6,cpxh as c7,cph as c8,b.serial as c9 from insurance_info as a,car_info as b where a.serial=b.serial and a.serial='" & OSer.Text & "'"
    vdb = ExcSql
    If vdb = True Then
        Set rs = conn.Execute(sql)
        If Not rs.EOF Then
            Tmsg(1).Text = rs("c2") & ""
            Tmsg(0).Text = rs("c3") & ""
            Tmsg(2).Text = rs("c4") & ""
            Tmsg(9).Text = rs("c5") & ""
            Tmsg(10).Text = rs("c6") & ""
            Tmsg(3).Text = rs("c8") & ""
            Tmsg(4).Text = rs("c7") & ""
        End If
        rs.Close
        Set rs = Nothing
    End If
End Sub

























⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -