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

📄 f_baodancx.frm

📁 行政管理系统商业源码,可以down下来看看
💻 FRM
📖 第 1 页 / 共 3 页
字号:
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         Left            =   7800
         TabIndex        =   1
         Top             =   5520
         Width           =   1095
      End
      Begin MSDataGridLib.DataGrid DataGrid1 
         Height          =   4575
         Left            =   120
         TabIndex        =   2
         Top             =   360
         Width           =   9015
         _ExtentX        =   15901
         _ExtentY        =   8070
         _Version        =   393216
         HeadLines       =   1
         RowHeight       =   15
         BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "MS Sans Serif"
            Size            =   8.25
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "MS Sans Serif"
            Size            =   8.25
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ColumnCount     =   2
         BeginProperty Column00 
            DataField       =   ""
            Caption         =   ""
            BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
               Type            =   0
               Format          =   ""
               HaveTrueFalseNull=   0
               FirstDayOfWeek  =   0
               FirstWeekOfYear =   0
               LCID            =   2052
               SubFormatType   =   0
            EndProperty
         EndProperty
         BeginProperty Column01 
            DataField       =   ""
            Caption         =   ""
            BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
               Type            =   0
               Format          =   ""
               HaveTrueFalseNull=   0
               FirstDayOfWeek  =   0
               FirstWeekOfYear =   0
               LCID            =   2052
               SubFormatType   =   0
            EndProperty
         EndProperty
         SplitCount      =   1
         BeginProperty Split0 
            BeginProperty Column00 
            EndProperty
            BeginProperty Column01 
            EndProperty
         EndProperty
      End
   End
End
Attribute VB_Name = "F_BaoDanCX"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim WithEvents rs As Recordset
Attribute rs.VB_VarHelpID = -1
Dim WithEvents adoPrimaryRS As Recordset
Attribute adoPrimaryRS.VB_VarHelpID = -1
Dim WithEvents adoXianshiBiaoShiRS As Recordset
Attribute adoXianshiBiaoShiRS.VB_VarHelpID = -1
Dim WithEvents adoXianshiXiMuRS As Recordset
Attribute adoXianshiXiMuRS.VB_VarHelpID = -1
Dim Row_ID As String  '为找到ID 的查询SQL 语句


Private Sub Check1_Click()
If Check1.Value = 1 Then
    Check2.Value = 0
    Check3.Value = 0

    Combo1.Clear
    
    SQL = "select distinct 姓名  from 办公室人员投保登记"
    Set rs = db.Execute(SQL)
    
    Do While Not rs.EOF
            If IsNull(rs("姓名")) = False Then
                Combo1.AddItem rs("姓名")
            End If
            rs.MoveNext
    Loop
    Combo1.Visible = True
    Combo2.Visible = False
    Combo3.Visible = False
    Label4.Visible = False
    Label5.Visible = False
    DTPicker1.Visible = False
    DTPicker2.Visible = False
    Frame2.Visible = False
    Frame3.Visible = False
End If
End Sub

Private Sub Check2_Click()
If Check2.Value = 1 Then
    Check1.Value = 0
    Check3.Value = 0
    Combo2.Clear
    
    SQL = "select distinct 保单类别 from 保单登记"
    Set rs = db.Execute(SQL)
    Do While Not rs.EOF
            If IsNull(rs("保单类别")) = False Then
                Combo2.AddItem rs("保单类别")
            End If
            rs.MoveNext
    Loop
    
    Combo1.Visible = False
    Combo2.Visible = True
    Combo3.Visible = False
    Label4.Visible = False
    Label5.Visible = False
    DTPicker1.Visible = False
    DTPicker2.Visible = False
    Frame2.Visible = False
    Frame3.Visible = False
End If
End Sub

Private Sub Check3_Click()
If Check3.Value = 1 Then
    Check1.Value = 0
    Check2.Value = 0
    Combo3.Clear
    
    SQL = "select distinct 保单类别 from 保单登记"
    Set rs = db.Execute(SQL)
    Do While Not rs.EOF
            If IsNull(rs("保单类别")) = False Then
                Combo3.AddItem rs("保单类别")
            End If
            rs.MoveNext
    Loop
    Combo3.Visible = True
    Combo1.Visible = False
    Combo2.Visible = False
    Label4.Visible = True
    Label5.Visible = True
    DTPicker1.Visible = True
    DTPicker2.Visible = True
    
    Frame2.Visible = False
    Frame3.Visible = False
End If
End Sub

Private Sub CmdXianShi_Exit_Click()
Frame2.Visible = True
Frame3.Visible = False
End Sub

Private Sub Cmd_XianShiExit_Click()

End Sub

Private Sub Command1_Click()
End Sub

Private Sub Command2_Click()
ZhengZhaoGuanli.Enabled = True
Unload Me
End Sub

Private Sub Cmd_ChaXun_Click()
Dim DataGrid_sql  As String  '数据表格中的数据源
Dim oText As TextBox

   If Check1.Value = 1 Then
         
        DataGrid_sql = "select 保单登记.ID   as  ID, 保单类别,投保开始时间,投保终止时间,保费,合同号,投保人数  from 保单登记 , 办公室人员投保登记   where 办公室人员投保登记.保单号 = 保单登记.保单号  and 保单登记.保单号 in (select 办公室人员投保登记.保单号 from  办公室人员投保登记 where  办公室人员投保登记.姓名 =   '" & Combo1.Text & "') and  办公室人员投保登记.姓名 =   '" & Combo1.Text & "'"
   End If

   If Check2.Value = 1 Then
        
        DataGrid_sql = "select ID, 保单号,保单类别,投保开始时间,投保终止时间,保费,合同号,投保人数,保额,备注  from 保单登记  where  保单登记.保单类别 ='" & Combo2.Text & "'"

   End If

    If Check3.Value = 1 Then
        
        DataGrid_sql = "select ID, 保单号,保单类别,投保开始时间,投保终止时间,保费,合同号,投保人数,保额,备注  from 保单登记  where    保单登记.保单类别 ='" & Combo3.Text & "'" & "  and  保单登记.投保终止时间   between ' " & DTPicker1 & " ' and ' " & DTPicker2 & " '"
       
    End If
  
  If Check1.Value = 1 Or Check2.Value = 1 Or Check3.Value = 1 Then
         
    Set adoPrimaryRS = New Recordset
    adoPrimaryRS.Open DataGrid_sql, db1, adOpenStatic, adLockOptimistic

    Set DataGrid1.DataSource = adoPrimaryRS
    
          
    Frame3.Visible = False
    Frame2.Visible = True
    
   End If
End Sub

Private Sub Cmd_close_Click()
XingZhengGL.Enabled = True
Unload Me
End Sub

Private Sub Cmd_XianShi_Click()
Dim XianShi_sql    As String '单条数据显示的数据源
  
  
  If Row_ID = "" Then
    MsgBox "请您选择其中一条信息!"
    Exit Sub
  Else
    XianShi_sql = "select * from 保单登记 where ID = " & Row_ID
    
    Set adoXianshiRS = New Recordset
    adoXianshiRS.Open "SHAPE {select ID,保单号,保单类别,投保开始时间,投保终止时间,保费,合同号,投保人数,保额,备注 from 保单登记} AS ParentCMD APPEND ({select 员工号,部门,姓名,性别,年龄,工种,健康情况,保额,保单号,备注 from 办公室人员投保登记 } AS ChildCMD RELATE 保单号 TO 保单号) AS ChildCMD", db1, adOpenStatic, adLockBatchOptimistic
   
    Set adoXianshiBiaoShiRS = New Recordset
    adoXianshiBiaoShiRS.Open "select ID,保单号,保单类别,投保开始时间,投保终止时间,保费,合同号,投保人数,保额,备注 from 保单登记  where ID = " & Row_ID, db1, adOpenStatic, adLockBatchOptimistic
   
    Dim BS_MX_LX  As String  '标识与明细的联系
    
    If Not adoXianshiBiaoShiRS.EOF Then
      If Not IsNull(adoXianshiBiaoShiRS("保单号")) Then
             BS_MX_LX = adoXianshiBiaoShiRS("保单号")
      End If
    End If

     
 
    
    Set adoXianshiXiMuRS = New Recordset
    adoXianshiXiMuRS.Open "select 员工号,部门,姓名,性别,年龄,工种,健康情况,保额,保单号,备注 from 办公室人员投保登记  where 保单号 = '" & BS_MX_LX & "'", db1, adOpenStatic, adLockBatchOptimistic
   
   
   
    For Each oText In Me.txtFields
          Set oText.DataSource = adoXianshiBiaoShiRS
    Next
    
    Set DTPicker3.DataSource = adoXianshiBiaoShiRS
    Set DTPicker4.DataSource = adoXianshiBiaoShiRS
    Set grdDataGrid.DataSource = adoXianshiXiMuRS
    
End If
  
  Frame2.Visible = False
  Frame3.Visible = True
       

End Sub

Private Sub cms_XianShi_close_Click()
  Frame2.Visible = True
  Frame3.Visible = False

End Sub

Private Sub DataGrid1_Click()

  If Not adoPrimaryRS.BOF And Not adoPrimaryRS.EOF Then
      If Not IsNull(adoPrimaryRS.Fields("ID")) Then
          Row_ID = adoPrimaryRS.Fields("ID")
      Else
          MsgBox "请您选择其中一条信息!"
      End If
   Else
    Exit Sub
  End If
  
End Sub

Private Sub Form_Load()
'Dim grd As DataGrid
'For Each grd In Me.DataGrid1
'    grd.HeadFont.Name = "隶书"
'    grd.HeadFont.Size = 9
'Next
Frame2.Visible = False
Frame3.Visible = False
For Each oText In Me.txtFields
   oText.Locked = True
Next

 DTPicker3.Enabled = True
 DTPicker4.Enabled = True
End Sub



⌨️ 快捷键说明

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