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

📄 feedunned.frm

📁 适合乡镇供电所使用电费处理系统v3 软件
💻 FRM
📖 第 1 页 / 共 2 页
字号:
      End
      Begin VB.Label Label11 
         AutoSize        =   -1  'True
         BackColor       =   &H8000000E&
         Caption         =   "年"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   210
         Left            =   1200
         TabIndex        =   9
         Top             =   1440
         Width           =   210
      End
      Begin VB.Label Label12 
         AutoSize        =   -1  'True
         BackColor       =   &H8000000E&
         Caption         =   "月"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   210
         Left            =   1920
         TabIndex        =   8
         Top             =   1440
         Width           =   210
      End
      Begin VB.Label Label13 
         AutoSize        =   -1  'True
         BackColor       =   &H8000000E&
         Caption         =   "日前到"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   210
         Left            =   2640
         TabIndex        =   7
         Top             =   1440
         Width           =   630
      End
      Begin VB.Label Label14 
         AutoSize        =   -1  'True
         BackColor       =   &H8000000E&
         Caption         =   "交清,逾期不交"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   210
         Left            =   5160
         TabIndex        =   6
         Top             =   1440
         Width           =   1470
      End
      Begin VB.Label Label15 
         AutoSize        =   -1  'True
         BackColor       =   &H8000000E&
         Caption         =   "将供电营业规则第九十八条规定给予加收滞纳金及停止供电处理。"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   210
         Left            =   360
         TabIndex        =   5
         Top             =   1800
         Width           =   6090
      End
      Begin VB.Label Label16 
         AutoSize        =   -1  'True
         BackColor       =   &H8000000E&
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   240
         Left            =   3000
         TabIndex        =   4
         Top             =   2280
         Width           =   3015
      End
      Begin VB.Label Label17 
         AutoSize        =   -1  'True
         BackColor       =   &H8000000E&
         Caption         =   "年"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   210
         Left            =   3600
         TabIndex        =   3
         Top             =   2760
         Width           =   210
      End
      Begin VB.Label Label18 
         AutoSize        =   -1  'True
         BackColor       =   &H8000000E&
         Caption         =   "月"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   210
         Left            =   4200
         TabIndex        =   2
         Top             =   2760
         Width           =   210
      End
      Begin VB.Label Label19 
         AutoSize        =   -1  'True
         BackColor       =   &H8000000E&
         Caption         =   "日"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   210
         Left            =   4800
         TabIndex        =   1
         Top             =   2760
         Width           =   210
      End
   End
   Begin VB.Label Label1 
      Caption         =   "用户代码:"
      Height          =   255
      Left            =   120
      TabIndex        =   18
      Top             =   120
      Width           =   1095
   End
End
Attribute VB_Name = "FeeDunned"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
    On Error GoTo hander
    Screen.MousePointer = 11
    Call printer_init_c
    Call printer_list(Trim(Label2.Caption), Label3.Caption, Label4.Caption, Label20.Caption, Label21.Caption, Label22.Caption, Label23.Caption, Label24.Caption, Label25.Caption)
    Printer.EndDoc
    Screen.MousePointer = 0
    Exit Sub
hander:
            If Err.Number = 482 Then
                    MsgBox "打印机错误!", vbCritical
                    Screen.MousePointer = 0
                    Exit Sub
            Else
                    Resume Next
            End If
End Sub

Private Sub Command2_Click()
   Unload Me
End Sub

Private Sub Form_Load()
    Me.Move (Screen.Width - Me.Width) / 2, (Screen.Height - Me.Height) / 2
    OpenMdb
    Set MdbR = NdMd.OpenRecordset("select * from 用户档案 where 代扣信息='" & Wd & "' and 镇村代码='" & UserSeek & "'")
    Dim intRecCount, intCounter As Integer
    If Not MdbR.EOF Then
          MdbR.MoveLast
          intRecCount = MdbR.RecordCount
          MdbR.MoveFirst
          For intCounter = 0 To MdbR.RecordCount - 1
              List1.AddItem MdbR!用户表码 & Space(2) & MdbR!用户名称 & ""
              MdbR.MoveNext
          Next intCounter
          List1.ListIndex = 0
          Command1.Enabled = False
     Else
          MsgBox XzName & XcName & "用户纪录为空!", vbCritical
          Unload Me
          Exit Sub
     End If
End Sub

Private Sub List1_Click()
    Set MdbR = NdMd.OpenRecordset("select * from 用户档案 where 年份='" & Trim(GzNian) & "' and 月份='" & Trim(GzYue) & "' and 用户名称='" & Mid(Trim(List1), 7, 10) & "'")
    Label2 = Trim(MdbR.Fields!用户名称) & ""
    Label3 = GzNian
    Label4 = GzYue
    Label20 = Format(MdbR.Fields!合计电费, "######.00")
    Label21 = GzNian
    Label22 = GzYue
    Label23 = ""
    Label24 = "靖江镇电管站"
    Label25 = GzNian
    Label26 = GzYue
    Label27 = ""
    Command1.Enabled = True
End Sub

Sub Text1_keyPress(KeyAscii As Integer)
   If KeyAscii = 13 Then
      If Text1.Text = "" Then
         MsgBox "输入用户代码方可检索数据!", vbCritical
         Text1.SetFocus
      Else
         Set MdbR = NdMd.OpenRecordset("select * from 用户档案 where 年份='" & Trim(GzNian) & "' and 月份='" & Trim(GzYue) & "' and 组合编码='" & UserSeek & Trim(Text1) & "'")
         If MdbR.RecordCount = 0 Then
            MsgBox "无此用户,请检查代码的正确性!", vbCritical
            Text1.SelStart = 0
            Text1.SelLength = Len(Text1)
            Text1.SetFocus
         Else
            Dim i As Integer
            List1.ListIndex = 0
            For i = 0 To List1.ListCount - 1
                If Mid(List1.List(i), 1, 4) = Trim(Text1) Then
                   List1.ListIndex = i
                End If
            Next i
            
            Command1.Enabled = True
            Label2 = Trim(MdbR.Fields!用户名称) & ""
            Label3 = GzNian
            Label4 = GzYue
            Label20 = Format(MdbR.Fields!合计电费, "######.00")
            Label21 = GzNian
            Label22 = GzYue
            Label23 = ""
            Label24 = "靖江镇电管站"
            Label25 = GzNian
            Label26 = GzYue
            Label27 = ""
         End If
      End If
   End If
End Sub

⌨️ 快捷键说明

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