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

📄 frmgivestopwater.frm

📁 自来水公司的一个管理系统
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Object = "{C932BA88-4374-101B-A56C-00AA003668DC}#1.1#0"; "MSMASK32.OCX"
Object = "{3B7C8863-D78F-101B-B9B5-04021C009402}#1.2#0"; "RICHTX32.OCX"
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Begin VB.Form frmGiveStopWater 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "停送水处理"
   ClientHeight    =   5535
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   8205
   Icon            =   "frmGiveStopWater.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   MinButton       =   0   'False
   ScaleHeight     =   5535
   ScaleWidth      =   8205
   Begin VB.Frame Frame1 
      Height          =   4080
      Left            =   375
      TabIndex        =   24
      Top             =   540
      Width           =   6675
      Begin MSMask.MaskEdBox txtEndTime 
         Height          =   285
         Left            =   5670
         TabIndex        =   3
         Top             =   285
         Width           =   630
         _ExtentX        =   1111
         _ExtentY        =   503
         _Version        =   393216
         MaxLength       =   5
         Mask            =   "##:##"
         PromptChar      =   "_"
      End
      Begin MSMask.MaskEdBox txtStartTime 
         Height          =   285
         Left            =   3225
         TabIndex        =   1
         Top             =   270
         Width           =   675
         _ExtentX        =   1191
         _ExtentY        =   503
         _Version        =   393216
         MaxLength       =   5
         Mask            =   "##:##"
         PromptChar      =   "_"
      End
      Begin MSComCtl2.DTPicker dtpEndDate 
         Height          =   300
         Left            =   4350
         TabIndex        =   2
         Top             =   285
         Width           =   1320
         _ExtentX        =   2328
         _ExtentY        =   529
         _Version        =   393216
         Format          =   23592961
         CurrentDate     =   37035
      End
      Begin MSComCtl2.DTPicker dtpStartDate 
         Height          =   285
         Left            =   1920
         TabIndex        =   0
         Top             =   270
         Width           =   1305
         _ExtentX        =   2302
         _ExtentY        =   503
         _Version        =   393216
         Format          =   23592961
         CurrentDate     =   37035
      End
      Begin VB.TextBox txtWorkMan 
         Height          =   300
         Left            =   1800
         MaxLength       =   24
         TabIndex        =   11
         Text            =   "Text1"
         Top             =   3660
         Width           =   4710
      End
      Begin VB.CheckBox chkNotify 
         Caption         =   "其它"
         Height          =   225
         Index           =   4
         Left            =   5580
         TabIndex        =   10
         Top             =   3180
         Width           =   885
      End
      Begin VB.CheckBox chkNotify 
         Caption         =   "布告"
         Height          =   225
         Index           =   3
         Left            =   4680
         TabIndex        =   9
         Top             =   3180
         Width           =   885
      End
      Begin VB.CheckBox chkNotify 
         Caption         =   "报纸"
         Height          =   225
         Index           =   2
         Left            =   3705
         TabIndex        =   8
         Top             =   3180
         Width           =   885
      End
      Begin VB.CheckBox chkNotify 
         Caption         =   "广播"
         Height          =   225
         Index           =   1
         Left            =   2715
         TabIndex        =   7
         Top             =   3180
         Width           =   885
      End
      Begin VB.CheckBox chkNotify 
         Caption         =   "电视"
         Height          =   225
         Index           =   0
         Left            =   1755
         TabIndex        =   6
         Top             =   3180
         Width           =   885
      End
      Begin RichTextLib.RichTextBox rtbArea 
         Height          =   1050
         Left            =   1665
         TabIndex        =   4
         Top             =   705
         Width           =   4965
         _ExtentX        =   8758
         _ExtentY        =   1852
         _Version        =   393217
         ScrollBars      =   3
         MaxLength       =   200
         TextRTF         =   $"frmGiveStopWater.frx":0442
      End
      Begin RichTextLib.RichTextBox rtbCause 
         Height          =   1170
         Left            =   1665
         TabIndex        =   5
         Top             =   1830
         Width           =   4965
         _ExtentX        =   8758
         _ExtentY        =   2064
         _Version        =   393217
         ScrollBars      =   3
         MaxLength       =   200
         TextRTF         =   $"frmGiveStopWater.frx":04D1
      End
      Begin VB.Label Label9 
         Caption         =   "经办人"
         Height          =   225
         Left            =   570
         TabIndex        =   32
         Top             =   3705
         Width           =   555
      End
      Begin VB.Line Line1 
         BorderColor     =   &H80000005&
         Index           =   9
         X1              =   15
         X2              =   6645
         Y1              =   3540
         Y2              =   3540
      End
      Begin VB.Line Line1 
         BorderColor     =   &H80000003&
         Index           =   8
         X1              =   15
         X2              =   6675
         Y1              =   3525
         Y2              =   3525
      End
      Begin VB.Label Label7 
         Caption         =   "分"
         Height          =   195
         Left            =   6330
         TabIndex        =   31
         Top             =   345
         Width           =   195
      End
      Begin VB.Label Label6 
         Caption         =   "分至"
         Height          =   255
         Left            =   3960
         TabIndex        =   30
         Top             =   330
         Width           =   390
      End
      Begin VB.Label Label5 
         Caption         =   "从"
         Height          =   180
         Left            =   1695
         TabIndex        =   29
         Top             =   330
         Width           =   225
      End
      Begin VB.Label Label4 
         Caption         =   "通知用水户方式"
         Height          =   285
         Left            =   210
         TabIndex        =   28
         Top             =   3195
         Width           =   1320
      End
      Begin VB.Label Label3 
         Caption         =   "停水原因"
         Height          =   285
         Left            =   510
         TabIndex        =   27
         Top             =   2355
         Width           =   795
      End
      Begin VB.Label Label2 
         Caption         =   "停水区域"
         Height          =   285
         Left            =   480
         TabIndex        =   26
         Top             =   1155
         Width           =   750
      End
      Begin VB.Label Label1 
         Caption         =   "停水起止时间"
         Height          =   285
         Left            =   300
         TabIndex        =   25
         Top             =   315
         Width           =   1080
      End
      Begin VB.Line Line2 
         BorderColor     =   &H80000005&
         Index           =   1
         X1              =   1650
         X2              =   1650
         Y1              =   105
         Y2              =   4065
      End
      Begin VB.Line Line2 
         BorderColor     =   &H80000003&
         Index           =   0
         X1              =   1635
         X2              =   1635
         Y1              =   105
         Y2              =   4050
      End
      Begin VB.Line Line1 
         BorderColor     =   &H80000003&
         Index           =   7
         X1              =   0
         X2              =   6660
         Y1              =   3015
         Y2              =   3015
      End
      Begin VB.Line Line1 
         BorderColor     =   &H80000005&
         Index           =   6
         X1              =   15
         X2              =   6645
         Y1              =   3030
         Y2              =   3030
      End
      Begin VB.Line Line1 
         BorderColor     =   &H80000003&
         Index           =   5
         X1              =   0
         X2              =   6660
         Y1              =   1785
         Y2              =   1785
      End
      Begin VB.Line Line1 
         BorderColor     =   &H80000005&
         Index           =   4
         X1              =   15
         X2              =   6645
         Y1              =   1800
         Y2              =   1800
      End
      Begin VB.Line Line1 
         BorderColor     =   &H80000003&
         Index           =   3
         X1              =   0
         X2              =   6660
         Y1              =   675
         Y2              =   675
      End
      Begin VB.Line Line1 
         BorderColor     =   &H80000005&
         Index           =   2
         X1              =   15
         X2              =   6645
         Y1              =   690
         Y2              =   690
      End
   End
   Begin VB.TextBox txtSwID 
      Enabled         =   0   'False
      Height          =   300
      Left            =   1335
      TabIndex        =   22
      Text            =   "Text1"
      Top             =   180
      Width           =   1365
   End
   Begin VB.PictureBox pbBottomBox 
      Height          =   600
      Left            =   0
      ScaleHeight     =   540
      ScaleWidth      =   8145
      TabIndex        =   21
      Top             =   4935
      Width           =   8205
      Begin VB.CommandButton cmdCommandArray3 
         Caption         =   ">>"
         Height          =   345
         Index           =   3
         Left            =   7185
         TabIndex        =   20
         Top             =   90
         Width           =   885
      End
      Begin VB.CommandButton cmdCommandArray3 
         Caption         =   ">"
         Height          =   345
         Index           =   2
         Left            =   6315
         TabIndex        =   19
         Top             =   90
         Width           =   885
      End
      Begin VB.CommandButton cmdCommandArray3 
         Caption         =   "<"
         Height          =   345
         Index           =   1
         Left            =   5445
         TabIndex        =   18
         Top             =   90
         Width           =   885
      End
      Begin VB.CommandButton cmdCommandArray3 
         Caption         =   "<<"
         Height          =   345
         Index           =   0
         Left            =   4575
         TabIndex        =   17
         Top             =   90
         Width           =   885
      End
      Begin VB.CommandButton cmdCommandArray2 
         Caption         =   "放弃"
         Height          =   345
         Index           =   1
         Left            =   3600
         TabIndex        =   16
         Top             =   90
         Width           =   885
      End
      Begin VB.CommandButton cmdCommandArray2 
         Caption         =   "保存"
         Height          =   345
         Index           =   0
         Left            =   2730
         TabIndex        =   15
         Top             =   90
         Width           =   885
      End
      Begin VB.CommandButton cmdCommandArray1 
         Caption         =   "删除"
         Height          =   345
         Index           =   2
         Left            =   1755
         TabIndex        =   14
         Top             =   90
         Width           =   885
      End
      Begin VB.CommandButton cmdCommandArray1 
         Caption         =   "编辑"
         Height          =   345
         Index           =   1
         Left            =   885
         TabIndex        =   13
         Top             =   90
         Width           =   885
      End
      Begin VB.CommandButton cmdCommandArray1 
         Caption         =   "输入"
         Height          =   345
         Index           =   0
         Left            =   15
         TabIndex        =   12
         Top             =   90
         Width           =   885
      End
   End
   Begin VB.Label Label8 
      Caption         =   "编号:"
      Height          =   255
      Left            =   660
      TabIndex        =   23
      Top             =   255
      Width           =   765
   End
   Begin VB.Line Line1 
      BorderColor     =   &H80000005&
      Index           =   0
      X1              =   75
      X2              =   8145
      Y1              =   4860
      Y2              =   4860
   End
   Begin VB.Line Line1 
      BorderColor     =   &H80000003&
      Index           =   1
      X1              =   60
      X2              =   8160
      Y1              =   4845
      Y2              =   4845
   End
End
Attribute VB_Name = "frmGiveStopWater"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Dim adoStopWaterRS As ADODB.Recordset

Dim bytCommandFlag As Byte  '用于记录第一组按钮的状态,这样,在第二组的保存,放弃按钮中
                            '就可知道是原来是按的新增还是编辑,从而采取不同的处理方法

'------------------------------------------------------
'按钮事件
'------------------------------------------------------
Private Sub cmdCommandArray1_Click(Index As Integer)
    Dim bytReturnFlag As Byte '用于接收msgbox
    
    bytCommandFlag = Index
    Select Case Index
        Case 0  '输入
            Call DisableCMD1
            Call EnableCMD2
            Call DisableCMD3
            
            Call InitInterface
            Call EnableInterface
            Me.dtpStartDate.SetFocus
        
        Case 1  '编辑
            If adoStopWaterRS.EOF Or adoStopWaterRS.BOF Then Exit Sub
            

⌨️ 快捷键说明

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