上传用户:zhpu1995
上传日期:2013-09-06
资源大小:61151k
文件大小:15k
源码类别:

企业管理

开发平台:

Visual Basic

  1. VERSION 5.00
  2. Object = "{C5DE3F80-3376-11D2-BAA4-04F205C10000}#1.0#0"; "VSFLEX6D.OCX"
  3. Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomctl.ocx"
  4. Begin VB.Form Qr_RsArFrm 
  5.    Caption         =   "档案信息列表"
  6.    ClientHeight    =   6375
  7.    ClientLeft      =   60
  8.    ClientTop       =   345
  9.    ClientWidth     =   11580
  10.    BeginProperty Font 
  11.       Name            =   "宋体"
  12.       Size            =   14.25
  13.       Charset         =   134
  14.       Weight          =   700
  15.       Underline       =   0   'False
  16.       Italic          =   0   'False
  17.       Strikethrough   =   0   'False
  18.    EndProperty
  19.    HelpContextID   =   1601
  20.    Icon            =   "查询_相关档案查询结果.frx":0000
  21.    LinkTopic       =   "Form1"
  22.    MDIChild        =   -1  'True
  23.    ScaleHeight     =   6375
  24.    ScaleWidth      =   11580
  25.    Begin VB.PictureBox Picture1 
  26.       Align           =   1  'Align Top
  27.       BeginProperty Font 
  28.          Name            =   "宋体"
  29.          Size            =   9
  30.          Charset         =   134
  31.          Weight          =   400
  32.          Underline       =   0   'False
  33.          Italic          =   0   'False
  34.          Strikethrough   =   0   'False
  35.       EndProperty
  36.       Height          =   820
  37.       Left            =   0
  38.       Picture         =   "查询_相关档案查询结果.frx":1042
  39.       ScaleHeight     =   765
  40.       ScaleWidth      =   11520
  41.       TabIndex        =   1
  42.       Top             =   570
  43.       Width           =   11580
  44.       Begin VB.Label Lbl_ArSort 
  45.          AutoSize        =   -1  'True
  46.          BackStyle       =   0  'Transparent
  47.          Caption         =   "相关档案列表"
  48.          BeginProperty Font 
  49.             Name            =   "宋体"
  50.             Size            =   14.25
  51.             Charset         =   134
  52.             Weight          =   700
  53.             Underline       =   0   'False
  54.             Italic          =   0   'False
  55.             Strikethrough   =   0   'False
  56.          EndProperty
  57.          Height          =   285
  58.          Left            =   495
  59.          TabIndex        =   2
  60.          Top             =   150
  61.          Width           =   1800
  62.       End
  63.    End
  64.    Begin VSFlex6DAOCtl.vsFlexGrid vsFlexGrid1 
  65.       Height          =   5625
  66.       Left            =   0
  67.       TabIndex        =   0
  68.       Top             =   1440
  69.       Width           =   11220
  70.       _ExtentX        =   19791
  71.       _ExtentY        =   9922
  72.       _ConvInfo       =   1
  73.       Appearance      =   1
  74.       BorderStyle     =   1
  75.       Enabled         =   -1  'True
  76.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  77.          Name            =   "宋体"
  78.          Size            =   9
  79.          Charset         =   134
  80.          Weight          =   400
  81.          Underline       =   0   'False
  82.          Italic          =   0   'False
  83.          Strikethrough   =   0   'False
  84.       EndProperty
  85.       MousePointer    =   0
  86.       BackColor       =   -2147483643
  87.       ForeColor       =   -2147483640
  88.       BackColorFixed  =   -2147483648
  89.       ForeColorFixed  =   -2147483630
  90.       BackColorSel    =   -2147483635
  91.       ForeColorSel    =   -2147483634
  92.       BackColorBkg    =   -2147483636
  93.       BackColorAlternate=   -2147483643
  94.       GridColor       =   -2147483633
  95.       GridColorFixed  =   4210752
  96.       TreeColor       =   -2147483632
  97.       FloodColor      =   192
  98.       SheetBorder     =   -2147483642
  99.       FocusRect       =   1
  100.       HighLight       =   1
  101.       AllowSelection  =   -1  'True
  102.       AllowBigSelection=   -1  'True
  103.       AllowUserResizing=   1
  104.       SelectionMode   =   3
  105.       GridLines       =   1
  106.       GridLinesFixed  =   1
  107.       GridLineWidth   =   1
  108.       Rows            =   2
  109.       Cols            =   1
  110.       FixedRows       =   1
  111.       FixedCols       =   0
  112.       RowHeightMin    =   300
  113.       RowHeightMax    =   0
  114.       ColWidthMin     =   0
  115.       ColWidthMax     =   0
  116.       ExtendLastCol   =   0   'False
  117.       FormatString    =   ""
  118.       ScrollTrack     =   0   'False
  119.       ScrollBars      =   3
  120.       ScrollTips      =   0   'False
  121.       MergeCells      =   0
  122.       MergeCompare    =   0
  123.       AutoResize      =   -1  'True
  124.       AutoSizeMode    =   0
  125.       AutoSearch      =   0
  126.       MultiTotals     =   -1  'True
  127.       SubtotalPosition=   1
  128.       OutlineBar      =   0
  129.       OutlineCol      =   0
  130.       Ellipsis        =   0
  131.       ExplorerBar     =   1
  132.       PicturesOver    =   0   'False
  133.       FillStyle       =   0
  134.       RightToLeft     =   0   'False
  135.       PictureType     =   0
  136.       TabBehavior     =   0
  137.       OwnerDraw       =   0
  138.       Editable        =   0   'False
  139.       ShowComboButton =   -1  'True
  140.       WordWrap        =   0   'False
  141.       TextStyle       =   0
  142.       TextStyleFixed  =   0
  143.       OleDragMode     =   0
  144.       OleDropMode     =   0
  145.       DataMode        =   0
  146.       VirtualData     =   -1  'True
  147.    End
  148.    Begin MSComctlLib.Toolbar SzToolbar 
  149.       Align           =   1  'Align Top
  150.       Height          =   570
  151.       Left            =   0
  152.       TabIndex        =   3
  153.       Top             =   0
  154.       Width           =   11580
  155.       _ExtentX        =   20426
  156.       _ExtentY        =   1005
  157.       ButtonWidth     =   820
  158.       ButtonHeight    =   953
  159.       AllowCustomize  =   0   'False
  160.       Appearance      =   1
  161.       Style           =   1
  162.       ImageList       =   "ImageList1"
  163.       _Version        =   393216
  164.       BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628} 
  165.          NumButtons      =   12
  166.          BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  167.             Caption         =   "设置"
  168.             Key             =   "ymsz"
  169.             ImageIndex      =   1
  170.          EndProperty
  171.          BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  172.             Caption         =   "打印"
  173.             Key             =   "dy"
  174.             ImageIndex      =   2
  175.          EndProperty
  176.          BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  177.             Caption         =   "预览"
  178.             Key             =   "yl"
  179.             ImageIndex      =   3
  180.          EndProperty
  181.          BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  182.             Style           =   3
  183.          EndProperty
  184.          BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  185.             Caption         =   "查询"
  186.             Key             =   "Filt"
  187.             ImageKey        =   "cx"
  188.          EndProperty
  189.          BeginProperty Button6 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  190.             Style           =   3
  191.          EndProperty
  192.          BeginProperty Button7 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  193.             Caption         =   "刷新"
  194.             Key             =   "sx"
  195.             ImageIndex      =   10
  196.          EndProperty
  197.          BeginProperty Button8 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  198.             Style           =   3
  199.          EndProperty
  200.          BeginProperty Button9 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  201.             Caption         =   "编辑"
  202.             Key             =   "Edit"
  203.             ImageIndex      =   11
  204.          EndProperty
  205.          BeginProperty Button10 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  206.             Style           =   4
  207.          EndProperty
  208.          BeginProperty Button11 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  209.             Caption         =   "帮助"
  210.             Key             =   "bz"
  211.             ImageIndex      =   5
  212.          EndProperty
  213.          BeginProperty Button12 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  214.             Caption         =   "退出"
  215.             Key             =   "fh"
  216.             ImageIndex      =   6
  217.          EndProperty
  218.       EndProperty
  219.       BorderStyle     =   1
  220.       Begin MSComctlLib.ImageList ImageList1 
  221.          Left            =   5040
  222.          Top             =   120
  223.          _ExtentX        =   1005
  224.          _ExtentY        =   1005
  225.          BackColor       =   -2147483643
  226.          ImageWidth      =   16
  227.          ImageHeight     =   16
  228.          MaskColor       =   12632256
  229.          _Version        =   393216
  230.          BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
  231.             NumListImages   =   12
  232.             BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  233.                Picture         =   "查询_相关档案查询结果.frx":35106
  234.                Key             =   "sz"
  235.             EndProperty
  236.             BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  237.                Picture         =   "查询_相关档案查询结果.frx":354A0
  238.                Key             =   "dy"
  239.             EndProperty
  240.             BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  241.                Picture         =   "查询_相关档案查询结果.frx":3583A
  242.                Key             =   "yl"
  243.             EndProperty
  244.             BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  245.                Picture         =   "查询_相关档案查询结果.frx":35BD4
  246.                Key             =   "cx"
  247.             EndProperty
  248.             BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  249.                Picture         =   "查询_相关档案查询结果.frx":35F6E
  250.                Key             =   "bz"
  251.             EndProperty
  252.             BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  253.                Picture         =   "查询_相关档案查询结果.frx":36308
  254.                Key             =   "tc"
  255.             EndProperty
  256.             BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  257.                Picture         =   "查询_相关档案查询结果.frx":366A2
  258.                Key             =   "bcgs"
  259.             EndProperty
  260.             BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  261.                Picture         =   "查询_相关档案查询结果.frx":36A3C
  262.                Key             =   "mrlk"
  263.             EndProperty
  264.             BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  265.                Picture         =   "查询_相关档案查询结果.frx":36DD6
  266.                Key             =   "xsxm"
  267.             EndProperty
  268.             BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  269.                Picture         =   "查询_相关档案查询结果.frx":37170
  270.                Key             =   "sx"
  271.             EndProperty
  272.             BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  273.                Picture         =   "查询_相关档案查询结果.frx":3750A
  274.                Key             =   "bj"
  275.             EndProperty
  276.             BeginProperty ListImage12 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  277.                Picture         =   "查询_相关档案查询结果.frx":378A4
  278.                Key             =   "gl"
  279.             EndProperty
  280.          EndProperty
  281.       End
  282.       Begin MSComctlLib.Toolbar GsToolbar 
  283.          Height          =   540
  284.          Left            =   10680
  285.          TabIndex        =   4
  286.          Top             =   0
  287.          Width           =   840
  288.          _ExtentX        =   1482
  289.          _ExtentY        =   953
  290.          ButtonWidth     =   1455
  291.          ButtonHeight    =   953
  292.          Appearance      =   1
  293.          Style           =   1
  294.          ImageList       =   "ImageList1"
  295.          _Version        =   393216
  296.          BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628} 
  297.             NumButtons      =   3
  298.             BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  299.                Caption         =   "保存格式"
  300.                Key             =   "bcgs"
  301.                ImageIndex      =   7
  302.             EndProperty
  303.             BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  304.                Object.Visible         =   0   'False
  305.                Caption         =   "默认列宽"
  306.                Key             =   "hfmrgs"
  307.                ImageIndex      =   8
  308.             EndProperty
  309.             BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  310.                Enabled         =   0   'False
  311.                Object.Visible         =   0   'False
  312.                Caption         =   "显示项目"
  313.                Key             =   "szxsxm"
  314.                ImageIndex      =   9
  315.             EndProperty
  316.          EndProperty
  317.       End
  318.    End
  319. End
  320. Attribute VB_Name = "Qr_RsArFrm"
  321. Attribute VB_GlobalNameSpace = False
  322. Attribute VB_Creatable = False
  323. Attribute VB_PredeclaredId = True
  324. Attribute VB_Exposed = False
  325. Option Explicit
  326. Dim Dyymctbl As New DY_Dyymsz            '打印页面窗体变量
  327. Dim ReportTitle As String                '报表主标题
  328. Private Sub Form_Load()
  329.   XtReportCode = "DEV_mainxx"
  330.   Load Dyymctbl
  331.   ReportTitle = "档案信息列表"
  332. End Sub
  333. Private Sub Form_Resize()
  334. On Error Resume Next
  335. With vsFlexGrid1
  336.      If Me.Width < 10455 Then Me.Width = 10455
  337.      If Me.Height < 6375 Then Me.Height = 6375
  338.      .Width = Me.Width - 120
  339.      .Height = Me.Height - .Top - 400
  340. End With
  341. End Sub
  342. Private Sub Form_Unload(Cancel As Integer)
  343.    '卸载条件窗体
  344.     Qr_RsArCndFrm.Chk_Unload.Value = 1
  345.     Unload Qr_RsArCndFrm
  346.    '卸载打印页面设置窗体
  347.    Unload Dyymctbl
  348. End Sub
  349. Private Sub GsToolbar_ButtonClick(ByVal Button As MSComctlLib.Button)
  350. Select Case Button.Key
  351.        Case "bcgs"
  352.             Dim i As Integer
  353.             With vsFlexGrid1
  354.             For i = 1 To .Cols - 1
  355.                 Cw_DataEnvi.DataConnect.Execute "update dev_Item set width=" & .ColWidth(i) & " where ItemChineseName='" & .TextMatrix(0, i) & "'"
  356.             Next i
  357.             MsgBox "保存成功! ", 48
  358.             End With
  359. End Select
  360. End Sub
  361. Private Sub SzToolbar_ButtonClick(ByVal Button As MSComctlLib.Button)
  362. Select Case Button.Key
  363.        Case "ymsz"                                          '页面设置
  364.           Dyymctbl.Show 1
  365.        Case "yl"                                            '预 览
  366.           Call bbyl(True)
  367.        Case "dy"                                            '打 印
  368.           Call bbyl(False)
  369.        Case "Filt"
  370.           
  371.           Qr_RsArCndFrm.Show 1
  372.        Case "sx"
  373.           Qr_RsArCndFrm.Enployeeinfo_Query P_Ssql
  374.        Case "Edit"
  375.             vsFlexGrid1_DblClick
  376.        Case "bz"                                            '帮 助
  377.             Call F1bz
  378.        Case "fh"
  379.            Unload Me
  380. End Select
  381. End Sub
  382. Private Sub InitGrid()
  383.      
  384.       ArSort (Cbo_ArSort.ListIndex)
  385. End Sub
  386. Private Sub bbyl(bbylte As Boolean)                    '报表打印预览
  387.   Dim Bbzbt$, Bbxbt() As String, bbxbtzzxs() As Integer, Bbxbtgs As Integer
  388.   Dim Bbbwh() As String, Bbbwhzzxs() As Integer, Bbbwhgs As Integer
  389.   Bbxbtgs = 1                                          '报 表 小 标 题 行 数
  390.   Bbbwhgs = 0                                          '报 表 表 尾 行 数
  391.   ReDim Bbxbt(1 To Bbxbtgs)
  392.   ReDim bbxbtzzxs(1 To Bbxbtgs)
  393.   If Bbbwhgs <> 0 Then
  394.      ReDim Bbbwh(1 To Bbbwhgs)
  395.      ReDim Bbbwhzzxs(1 To Bbbwhgs)
  396.   End If
  397.   Bbzbt = ReportTitle
  398.   Bbxbt(1) = " "
  399.   bbxbtzzxs(1) = 0                                     '报表行组织形式(0-居左 1-居中 2-居右)
  400.   Call Scyxsjb(vsFlexGrid1)                               '生成报表数据
  401.   Call Scdybb(Dyymctbl, Bbzbt, Bbxbt(), bbxbtzzxs(), Bbxbtgs, Bbbwh(), Bbbwhzzxs(), Bbbwhgs, bbylte)
  402.   If Not bbylte Then
  403.      Unload DY_Tybbyldy
  404.   End If
  405. End Sub
  406. Private Sub vsFlexGrid1_DblClick()
  407. If vsFlexGrid1.Row > 0 Then
  408.     AddExit_TF = False
  409. '    With MS_ItemInfo
  410. '    .Caption = "档案修改"
  411. '        .Text1.Text = MS_ItemQInfo.vsFlexGrid1.Tag
  412. '        .Command1.Tag = Me.Tag
  413. '        .Form_Load
  414. '        .Text_T(1).Text = vsFlexGrid1.TextMatrix(vsFlexGrid1.Row, 1)
  415. '        .Text_T_KeyDown 1, 13, 0
  416. '        .Show 1
  417. '    End With
  418. Else
  419.     Exit Sub
  420. End If
  421. End Sub