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

📄 frmldcs.frm

📁 这个软件可以通过短信猫收发短信。可以用做短信平台。功能十分强大!
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Begin VB.Form FrmLDCS 
   Caption         =   "蓄电池参数"
   ClientHeight    =   3495
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   14280
   LinkTopic       =   "Form1"
   ScaleHeight     =   3495
   ScaleWidth      =   14280
   StartUpPosition =   3  '窗口缺省
   Begin VB.PictureBox Picture1 
      BackColor       =   &H00FFFFC0&
      Height          =   3555
      Left            =   0
      ScaleHeight     =   3495
      ScaleWidth      =   14265
      TabIndex        =   0
      Top             =   0
      Width           =   14325
      Begin VB.CommandButton CmdDel 
         Caption         =   "删除"
         Height          =   345
         Left            =   13020
         TabIndex        =   2
         Top             =   1410
         Width           =   885
      End
      Begin VB.CommandButton CmdExit 
         BackColor       =   &H000000FF&
         Caption         =   "退出"
         Height          =   345
         Left            =   13020
         Style           =   1  'Graphical
         TabIndex        =   1
         Top             =   2190
         Width           =   885
      End
      Begin MSDataGridLib.DataGrid DataGrid1 
         Bindings        =   "FrmLDCS.frx":0000
         Height          =   3405
         Left            =   60
         TabIndex        =   3
         Top             =   30
         Width           =   12405
         _ExtentX        =   21881
         _ExtentY        =   6006
         _Version        =   393216
         AllowUpdate     =   -1  'True
         AllowArrows     =   -1  'True
         BackColor       =   16777152
         HeadLines       =   1
         RowHeight       =   15
         FormatLocked    =   -1  'True
         BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Caption         =   "蓄 电 池 参  数"
         ColumnCount     =   11
         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
         BeginProperty Column02 
            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 Column03 
            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 Column04 
            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 Column05 
            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 Column06 
            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 Column07 
            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 Column08 
            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 Column09 
            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 Column10 
            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 
               Locked          =   -1  'True
               ColumnWidth     =   794.835
            EndProperty
            BeginProperty Column01 
               ColumnWidth     =   794.835
            EndProperty
            BeginProperty Column02 
               ColumnWidth     =   1005.165
            EndProperty
            BeginProperty Column03 
            EndProperty
            BeginProperty Column04 
               ColumnWidth     =   1200.189
            EndProperty
            BeginProperty Column05 
               ColumnWidth     =   1200.189
            EndProperty
            BeginProperty Column06 
               ColumnWidth     =   1005.165
            EndProperty
            BeginProperty Column07 
               ColumnWidth     =   1005.165
            EndProperty
            BeginProperty Column08 
               ColumnWidth     =   1005.165
            EndProperty
            BeginProperty Column09 
               ColumnWidth     =   1005.165
            EndProperty
            BeginProperty Column10 
            EndProperty
         EndProperty
      End
      Begin MSAdodcLib.Adodc Adodc1 
         Height          =   465
         Left            =   -60
         Top             =   9240
         Visible         =   0   'False
         Width           =   1200
         _ExtentX        =   2117
         _ExtentY        =   820
         ConnectMode     =   0
         CursorLocation  =   3
         IsolationLevel  =   -1
         ConnectionTimeout=   15
         CommandTimeout  =   30
         CursorType      =   3
         LockType        =   3
         CommandType     =   8
         CursorOptions   =   0
         CacheSize       =   50
         MaxRecords      =   0
         BOFAction       =   0
         EOFAction       =   0
         ConnectStringType=   1
         Appearance      =   1
         BackColor       =   -2147483643
         ForeColor       =   -2147483640
         Orientation     =   0
         Enabled         =   -1
         Connect         =   ""
         OLEDBString     =   ""
         OLEDBFile       =   ""
         DataSourceName  =   ""
         OtherAttributes =   ""
         UserName        =   ""
         Password        =   ""
         RecordSource    =   ""
         Caption         =   "Adodc1"
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         _Version        =   393216
      End
      Begin VB.Shape Shape1 
         Height          =   645
         Left            =   12600
         Top             =   90
         Width           =   1635
      End
      Begin VB.Line Line2 
         BorderColor     =   &H8000000C&
         X1              =   12600
         X2              =   12600
         Y1              =   90
         Y2              =   720
      End
      Begin VB.Line Line1 
         BorderColor     =   &H8000000C&
         X1              =   12600
         X2              =   14220
         Y1              =   90
         Y2              =   90
      End
      Begin VB.Label Label1 
         BackStyle       =   0  'Transparent
         Caption         =   "电话参数"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   15
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00FF0000&
         Height          =   375
         Left            =   12720
         TabIndex        =   4
         Top             =   210
         Width           =   1395
      End
   End
End
Attribute VB_Name = "FrmLDCS"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim ax As Integer   'X的位置
Dim ay As Integer   'Y的位置
Dim mFJDI As Integer     '分机地址,用于位置变动保存数据


Private Sub CmdDel_Click()
On Error Resume Next
   Adodc1.Recordset![状态] = "删除"
   Adodc1.Recordset.Update
   Adodc1.Refresh
   MsgBox "已经删除"
   Wait1 (2)
   Adodc1.Refresh
   Call FrmMain.LoadLD             '修改的参数存入数据库 即反应到数据库中去
   Adodc1.Refresh
End Sub

Private Sub CmdExit_Click()   '退出按钮的单击事件
On Error Resume Next
CmdExit.Enabled = False
    Adodc1.Recordset.MoveNext
    Wait1 (1)
    Me.DataGrid1.Refresh
    Adodc1.Refresh
    Adodc1.Refresh
    Me.DataGrid1.Refresh
    Unload Me
    Wait1 (2)
    FrmMain.Refresh
    Call FrmMain.LoadLD         '把修改的参数存入到数据库中
     Wait1 (2)
    Call FrmMain.LoadLD
End Sub

Private Sub Form_Load()
On Error Resume Next
   Left = 0              '从左边开始
   Top = (Screen.Height - Me.Height)
   CmdExit.Enabled = True
   Adodc1.ConnectionString = adocnstring     '加载窗体时连接到数据库
   sql = "select * from 路灯参数 order by 编号"
   Adodc1.RecordSource = Trim(sql)
   Adodc1.Refresh
   
   
End Sub

⌨️ 快捷键说明

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