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

📄 fjrts.frm

📁 为个人用户开发的车险秘书系统
💻 FRM
📖 第 1 页 / 共 2 页
字号:
            Text            =   "备注"
            Object.Width           =   4410
         EndProperty
      End
   End
   Begin VB.Frame Fbr 
      Appearance      =   0  'Flat
      BackColor       =   &H00FFDFCE&
      Caption         =   "客户生日"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H80000008&
      Height          =   2415
      Left            =   0
      TabIndex        =   0
      Top             =   840
      Width           =   11655
      Begin MSComctlLib.ListView Lvbr 
         Height          =   1095
         Left            =   25
         TabIndex        =   2
         Top             =   240
         Width           =   2535
         _ExtentX        =   4471
         _ExtentY        =   1931
         View            =   3
         SortOrder       =   -1  'True
         Sorted          =   -1  'True
         LabelWrap       =   -1  'True
         HideSelection   =   -1  'True
         AllowReorder    =   -1  'True
         FullRowSelect   =   -1  'True
         GridLines       =   -1  'True
         _Version        =   393217
         ForeColor       =   -2147483640
         BackColor       =   12771569
         BorderStyle     =   1
         Appearance      =   0
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   11.25
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         NumItems        =   13
         BeginProperty ColumnHeader(1) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
            Object.Width           =   0
         EndProperty
         BeginProperty ColumnHeader(2) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
            Alignment       =   2
            SubItemIndex    =   1
            Text            =   "行驶证车主"
            Object.Width           =   2540
         EndProperty
         BeginProperty ColumnHeader(3) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
            Alignment       =   2
            SubItemIndex    =   2
            Text            =   "车主电话"
            Object.Width           =   2540
         EndProperty
         BeginProperty ColumnHeader(4) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
            Alignment       =   2
            SubItemIndex    =   3
            Text            =   "被保险人"
            Object.Width           =   2540
         EndProperty
         BeginProperty ColumnHeader(5) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
            Alignment       =   2
            SubItemIndex    =   4
            Text            =   "性别"
            Object.Width           =   1236
         EndProperty
         BeginProperty ColumnHeader(6) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
            Alignment       =   2
            SubItemIndex    =   5
            Text            =   "生日"
            Object.Width           =   2540
         EndProperty
         BeginProperty ColumnHeader(7) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
            SubItemIndex    =   6
            Text            =   "手机(电话)"
            Object.Width           =   2540
         EndProperty
         BeginProperty ColumnHeader(8) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
            Alignment       =   2
            SubItemIndex    =   7
            Text            =   "厂牌型号"
            Object.Width           =   2540
         EndProperty
         BeginProperty ColumnHeader(9) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
            Alignment       =   2
            SubItemIndex    =   8
            Text            =   "车牌号"
            Object.Width           =   2540
         EndProperty
         BeginProperty ColumnHeader(10) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
            Alignment       =   2
            SubItemIndex    =   9
            Text            =   "承保公司"
            Object.Width           =   2540
         EndProperty
         BeginProperty ColumnHeader(11) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
            Alignment       =   2
            SubItemIndex    =   10
            Text            =   "保险费"
            Object.Width           =   1764
         EndProperty
         BeginProperty ColumnHeader(12) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
            Alignment       =   2
            SubItemIndex    =   11
            Text            =   "地址"
            Object.Width           =   3528
         EndProperty
         BeginProperty ColumnHeader(13) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
            Alignment       =   2
            SubItemIndex    =   12
            Text            =   "备注"
            Object.Width           =   4410
         EndProperty
      End
   End
End
Attribute VB_Name = "Fjrts"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub Form_Load()
    Dim i As Integer
    
    With Obr
        For i = 1 To 12
            .AddItem i
        Next
        .ListIndex = 0
    End With
    With Ofee
        For i = 1 To 12
            .AddItem i
        Next
        .ListIndex = 0
    End With

    Call Fresize
    Topen.Text = "sel"
End Sub

Private Sub Fresize()
    Me.Width = Fmain.Width
    Me.Height = Fmain.Height
    Me.Left = 0
    Me.Top = Fmain.Top
    
    Fsel.Width = Me.ScaleWidth
    Fbr.Width = Me.ScaleWidth
    Ffee.Width = Me.ScaleWidth

    Fbr.Height = (Me.ScaleHeight - Fsel.Height) / 2
    Ffee.Height = (Me.ScaleHeight - Fsel.Height) / 2
    
    Fbr.Top = Fsel.Height
    Ffee.Top = Fsel.Height + Fbr.Height
    
    Lvbr.Width = Fbr.Width - 25
    Lvbr.Height = Fbr.Height - 250
    Lvfee.Width = Ffee.Width - 25
    Lvfee.Height = Ffee.Height - 250
End Sub

Private Sub isButton1_Click()
    If Lvbr.ListItems.Count > 0 Then
        gPrintListView Lvbr, "客户生日"
    Else
        MsgBox "没有需要打印的内容"
    End If
End Sub

Private Sub isButton2_Click()
    If Lvbr.ListItems.Count > 0 Then
        gPrintListView Lvfee, "保费到期用户"
    Else
        MsgBox "没有需要打印的内容"
    End If
End Sub

Private Sub isButton3_Click()
    Unload Me
End Sub

Private Sub MSFzy_Click()

End Sub

Private Sub Obr_Change()
    If Topen.Text <> "open" Then
        Call vsqlselmsg
    End If
End Sub

Private Sub vsqlselmsg()
     Dim sql, vbi As String
    Dim vdb As Boolean
    Dim rs As Recordset
    Dim c As ListItem
    
    Lvbr.ListItems.Clear
    
    sql = "select a.xsz as c1,a.email as c2,a.bpeo as c3,a.sex as c4,a.birthday as c5,a.btel as c6,b.cpxh as c7,b.cph as c8,a.bear_co as c9,a.bfee as c10,a.bfee as c11,a.mark as c12" & _
    " from insurance_info as a ,car_info as b where a.serial=b.serial and a.birthday <>''"
    vdb = ExcSql
    If vdb = True Then
        Set rs = conn.Execute(sql)
        If Not rs.EOF Then
            Do While Not rs.EOF
            vbi = rs("c5") & ""
            If vbi <> "" Then
               If (Month(CDate(vbi)) = Obr.Text) Then
            Set c = Lvbr.ListItems.Add(, , "")
            c.SubItems(1) = rs("c1") & ""
            c.SubItems(2) = rs("c2") & ""
            c.SubItems(3) = rs("c3") & ""
            c.SubItems(4) = rs("c4") & ""
            c.SubItems(5) = rs("c5") & ""
            c.SubItems(6) = rs("c6") & ""
            c.SubItems(7) = rs("c7") & ""
            c.SubItems(8) = rs("c8") & ""
            c.SubItems(9) = rs("c9") & ""
            c.SubItems(10) = rs("c10") & ""
            c.SubItems(11) = rs("c11") & ""
            c.SubItems(12) = rs("c12") & ""
                End If
            End If
            rs.MoveNext
            Loop
        End If
        rs.Close
        Set rs = Nothing
    End If
End Sub

Private Sub Ofee_Change()
    Dim sql, vselnum As String
    Dim vdb As Boolean
    Dim rs As Recordset
    Dim c As ListItem
    Dim vnum As Integer
    
    Lvfee.ListItems.Clear
     
    sql = "select a.serial as c1,a.bpeo as c2,a.xsz as c3,a.email as c4,a.tbd as c5," & _
        "b.cpxh as c6,b.cph as c7,b.fdjh as c8,b.cjh as c9,b.cdny as c10,b.xsqu as c11,a.bear_co as c12,a.bfee as c13,a.mark as c14" & _
        " from insurance_info as a ,car_info as b where year(a.tbd)='" & Year(Date) & "' and month(a.tbd)='" & Ofee.Text & "' and a.serial=b.serial"
   ' MsgBox sql
    vdb = ExcSql
    If vdb = True Then
        Set rs = conn.Execute(sql)
        If Not rs.EOF Then
            Do While Not rs.EOF
            vselnum = rs("c1") & ""
            
            vnum = conn.Execute("select count(id) from lp where id='" & vselnum & "'")(0)
            
            Set c = Lvfee.ListItems.Add(, , "")
            c.SubItems(1) = rs("c1") & ""
            c.SubItems(2) = rs("c2") & ""
            c.SubItems(3) = rs("c3") & ""
            c.SubItems(4) = rs("c5") & ""
            c.SubItems(5) = rs("c4") & ""
            c.SubItems(6) = rs("c6") & ""
            c.SubItems(7) = rs("c7") & ""
            c.SubItems(8) = rs("c8") & ""
            c.SubItems(9) = rs("c9") & ""
            c.SubItems(10) = rs("c10") & ""
            c.SubItems(11) = rs("c11") & ""
            c.SubItems(12) = rs("c12") & ""
            If vnum > 0 Then
                c.SubItems(13) = "有赔偿"
            Else
                c.SubItems(13) = "无赔偿"
            End If
            c.SubItems(14) = rs("c13") & ""
            If DateDiff("d", rs("c5"), Date) > 0 Then
                c.SubItems(15) = "保期内"
            Else
                c.SubItems(15) = "未续保"
            End If
            c.SubItems(16) = rs("c14") & ""
            rs.MoveNext
            Loop
        End If
        rs.Close
        Set rs = Nothing
    End If
End Sub

⌨️ 快捷键说明

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