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

📄 xxprint_pp.frm

📁 是我应我们学校学工部做的软件,其主要是解决想我们学校这样的条件--各个办公室之间还没有建立联网,而且学校分为两个校区(又不在一个城市).   因此
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomctl.ocx"
Begin VB.Form xxprint_pp 
   Caption         =   "明细学分报表打印[打印报表]"
   ClientHeight    =   4935
   ClientLeft      =   165
   ClientTop       =   450
   ClientWidth     =   10035
   BeginProperty Font 
      Name            =   "宋体"
      Size            =   9.75
      Charset         =   134
      Weight          =   400
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   Icon            =   "xxprint_pp.frx":0000
   LinkTopic       =   "Form1"
   ScaleHeight     =   4935
   ScaleWidth      =   10035
   StartUpPosition =   3  'Windows Default
   Begin VB.PictureBox Picture2 
      BorderStyle     =   0  'None
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   1935
      Left            =   8400
      ScaleHeight     =   1935
      ScaleWidth      =   1575
      TabIndex        =   3
      Top             =   3000
      Width           =   1575
      Begin VB.CommandButton Command3 
         Caption         =   "打印选定(&Y)"
         Default         =   -1  'True
         Height          =   375
         Left            =   0
         TabIndex        =   8
         Top             =   480
         Width           =   1575
      End
      Begin VB.CommandButton Command1 
         Caption         =   "预    览(&P)"
         Height          =   375
         Left            =   0
         TabIndex        =   6
         Top             =   0
         Width           =   1575
      End
      Begin VB.CommandButton Command4 
         Cancel          =   -1  'True
         Caption         =   "取    消(&C)"
         Height          =   375
         Left            =   0
         TabIndex        =   5
         Top             =   1440
         Width           =   1575
      End
      Begin VB.CommandButton Command2 
         Caption         =   "打印全部(&Y)"
         Height          =   375
         Left            =   0
         TabIndex        =   4
         Top             =   960
         Width           =   1575
      End
   End
   Begin VB.PictureBox Picture1 
      BackColor       =   &H00FFE09E&
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   4935
      Left            =   0
      Picture         =   "xxprint_pp.frx":030A
      ScaleHeight     =   4875
      ScaleWidth      =   3075
      TabIndex        =   0
      TabStop         =   0   'False
      Top             =   0
      Width           =   3135
      Begin VB.Label Label8 
         BackStyle       =   0  'Transparent
         Caption         =   "学生数:"
         ForeColor       =   &H000000C0&
         Height          =   255
         Left            =   1080
         TabIndex        =   16
         Top             =   3600
         Width           =   1815
      End
      Begin VB.Label Label7 
         BackStyle       =   0  'Transparent
         Caption         =   "班级数:"
         ForeColor       =   &H000000C0&
         Height          =   255
         Left            =   1080
         TabIndex        =   15
         Top             =   3120
         Width           =   1815
      End
      Begin VB.Label Label6 
         BackStyle       =   0  'Transparent
         Caption         =   "年级:"
         ForeColor       =   &H000000C0&
         Height          =   735
         Left            =   1080
         TabIndex        =   14
         Top             =   1680
         Width           =   1935
      End
      Begin VB.Label Label4 
         Alignment       =   1  'Right Justify
         BackStyle       =   0  'Transparent
         Caption         =   "学生数:"
         ForeColor       =   &H00C00000&
         Height          =   255
         Left            =   0
         TabIndex        =   13
         Top             =   3600
         Width           =   975
      End
      Begin VB.Label Label3 
         Alignment       =   1  'Right Justify
         BackStyle       =   0  'Transparent
         Caption         =   "班级数:"
         ForeColor       =   &H00C00000&
         Height          =   255
         Left            =   0
         TabIndex        =   12
         Top             =   3120
         Width           =   975
      End
      Begin VB.Label Label2 
         Alignment       =   1  'Right Justify
         BackStyle       =   0  'Transparent
         Caption         =   "年  级:"
         ForeColor       =   &H00C00000&
         Height          =   255
         Left            =   0
         TabIndex        =   11
         Top             =   1680
         Width           =   975
      End
      Begin VB.Label Label1 
         Alignment       =   1  'Right Justify
         BackStyle       =   0  'Transparent
         Caption         =   "学  年:"
         ForeColor       =   &H00C00000&
         Height          =   255
         Left            =   0
         TabIndex        =   10
         Top             =   2760
         Width           =   975
      End
      Begin VB.Label Label9 
         BackStyle       =   0  'Transparent
         Caption         =   "班级数:"
         ForeColor       =   &H000000C0&
         Height          =   255
         Left            =   1080
         TabIndex        =   9
         Top             =   2760
         Width           =   1935
      End
      Begin VB.Label Label5 
         BackStyle       =   0  'Transparent
         Caption         =   "明细学分报表打印"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   14.25
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   -1  'True
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00800000&
         Height          =   375
         Index           =   1
         Left            =   120
         TabIndex        =   1
         Top             =   840
         Width           =   2415
      End
      Begin VB.Label Label5 
         BackStyle       =   0  'Transparent
         Caption         =   "明细学分报表打印"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   14.25
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   -1  'True
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00FFFFFF&
         Height          =   375
         Index           =   0
         Left            =   100
         TabIndex        =   2
         Top             =   820
         Width           =   2535
      End
      Begin VB.Image Image1 
         Height          =   720
         Left            =   120
         Picture         =   "xxprint_pp.frx":3A36E
         Stretch         =   -1  'True
         Top             =   120
         Width           =   720
      End
      Begin VB.Shape Shape1 
         BorderColor     =   &H000000FF&
         BorderWidth     =   2
         Height          =   15
         Left            =   120
         Top             =   1440
         Width           =   2175
      End
      Begin VB.Shape Shape2 
         BorderColor     =   &H0000FF00&
         BorderWidth     =   2
         Height          =   15
         Left            =   120
         Top             =   1485
         Width           =   2055
      End
   End
   Begin MSComctlLib.ListView ListView1 
      Height          =   3615
      Left            =   3240
      TabIndex        =   7
      Top             =   0
      Width           =   2655
      _ExtentX        =   4683
      _ExtentY        =   6376
      View            =   3
      Arrange         =   1
      LabelEdit       =   1
      LabelWrap       =   -1  'True
      HideSelection   =   0   'False
      AllowReorder    =   -1  'True
      FullRowSelect   =   -1  'True
      GridLines       =   -1  'True
      PictureAlignment=   5
      _Version        =   393217
      Icons           =   "ImageList1"
      SmallIcons      =   "ImageList1"
      ColHdrIcons     =   "ImageList1"
      ForeColor       =   -2147483640
      BackColor       =   -2147483634
      BorderStyle     =   1
      Appearance      =   1
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9.75
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      NumItems        =   9
      BeginProperty ColumnHeader(1) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
         Text            =   "学号"
         Object.Width           =   2540
      EndProperty
      BeginProperty ColumnHeader(2) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
         SubItemIndex    =   1
         Text            =   "姓名"
         Object.Width           =   2540
      EndProperty
      BeginProperty ColumnHeader(3) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
         SubItemIndex    =   2
         Text            =   "班级"
         Object.Width           =   2540
      EndProperty
      BeginProperty ColumnHeader(4) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
         SubItemIndex    =   3
         Text            =   "a1"
         Object.Width           =   2540
      EndProperty
      BeginProperty ColumnHeader(5) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
         SubItemIndex    =   4
         Text            =   "a2"
         Object.Width           =   2540
      EndProperty
      BeginProperty ColumnHeader(6) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
         SubItemIndex    =   5
         Text            =   "a3"
         Object.Width           =   2540
      EndProperty
      BeginProperty ColumnHeader(7) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
         SubItemIndex    =   6
         Text            =   "a4"
         Object.Width           =   2540
      EndProperty
      BeginProperty ColumnHeader(8) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
         SubItemIndex    =   7
         Text            =   "总学分"
         Object.Width           =   2540
      EndProperty
      BeginProperty ColumnHeader(9) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
         SubItemIndex    =   8
         Text            =   "名次"
         Object.Width           =   2540
      EndProperty
      Picture         =   "xxprint_pp.frx":3A678
   End
   Begin MSComctlLib.ImageList ImageList1 
      Left            =   8160
      Top             =   720
      _ExtentX        =   1005
      _ExtentY        =   1005
      BackColor       =   -2147483643
      ImageWidth      =   16
      ImageHeight     =   16
      MaskColor       =   12632256
      _Version        =   393216
      BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
         NumListImages   =   2
         BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "xxprint_pp.frx":4E58C
            Key             =   ""
         EndProperty
         BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "xxprint_pp.frx":4E6E8
            Key             =   ""
         EndProperty
      EndProperty
   End
End
Attribute VB_Name = "xxprint_pp"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public yy As Integer
Public jj As Integer
Public classcount As Integer
Public studentcount As Integer
Public nn As String

Private Sub Command3_Click()
    idf = Right(ListView1.SelectedItem.Key, Len(ListView1.SelectedItem.Key) - 1)
    xh = ListView1.SelectedItem.Text
    na = ListView1.SelectedItem.SubItems(1)
    bj = ListView1.SelectedItem.SubItems(2)
    
    Dim temp As New ADODB.Recordset
    Dim temp2 As New ADODB.Recordset
    Dim temp3 As New ADODB.Recordset
    
    temp.Open "select * from [temp] where [ID]=" & idf, main.connect, 3, 2
    If temp.RecordCount = 0 Then Exit Sub
    wf = temp.Fields(4)
    zf = temp.Fields(9)
    f1 = temp.Fields(5)
    f2 = temp.Fields(6)
    f3 = temp.Fields(7)
    f4 = temp.Fields(8)
    temp.Close
    temp.Open "select count([ID])  from [temp] where [zf]>" & zf, main.connect, 3, 2
    mc = temp.Fields(0) + 1
    temp.Close
    
    
    main.connect.Execute "Delete * from [t2t2] "
    
    temp.Open "select * from [t2t2]", main.connect, 3, 2
    
    
    temp2.Open "select * from nn", main.connect, 3, 2
    temp.AddNew
    temp.Fields(1) = temp2.Fields(1)

⌨️ 快捷键说明

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