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

📄 frm_zxdinfo.frm

📁 物业管理系统在一本书上的数据光盘
💻 FRM
📖 第 1 页 / 共 2 页
字号:
         Caption         =   "<"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   450
         Left            =   600
         TabIndex        =   16
         Top             =   195
         Width           =   465
      End
      Begin VB.CommandButton Command1 
         Caption         =   "|<"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   450
         Left            =   135
         TabIndex        =   15
         Top             =   195
         Width           =   435
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "装修队信息栏:"
      Height          =   2655
      Index           =   0
      Left            =   240
      TabIndex        =   0
      Top             =   210
      Width           =   4860
      Begin VB.TextBox Text1 
         Enabled         =   0   'False
         Height          =   300
         Index           =   0
         Left            =   1125
         TabIndex        =   42
         Text            =   "Text1"
         Top             =   315
         Width           =   3400
      End
      Begin VB.TextBox Text7 
         Height          =   300
         Index           =   0
         Left            =   2955
         TabIndex        =   13
         Text            =   "Text7"
         Top             =   1080
         Width           =   1560
      End
      Begin VB.TextBox Text6 
         Height          =   300
         Index           =   0
         Left            =   1125
         TabIndex        =   11
         Text            =   "Text6"
         Top             =   2190
         Width           =   3400
      End
      Begin VB.TextBox Text5 
         Height          =   300
         Index           =   0
         Left            =   1125
         TabIndex        =   9
         Text            =   "Text5"
         Top             =   1815
         Width           =   3400
      End
      Begin VB.TextBox Text4 
         Height          =   300
         Index           =   0
         Left            =   1125
         TabIndex        =   8
         Text            =   "Text4"
         Top             =   1440
         Width           =   3400
      End
      Begin VB.TextBox Text3 
         Height          =   300
         Index           =   0
         Left            =   1125
         TabIndex        =   7
         Text            =   "Text3"
         Top             =   1080
         Width           =   1215
      End
      Begin VB.TextBox Text2 
         Height          =   300
         Index           =   0
         Left            =   1125
         TabIndex        =   6
         Text            =   "Text2"
         Top             =   750
         Width           =   3400
      End
      Begin VB.Label Label7 
         AutoSize        =   -1  'True
         Caption         =   "负责人"
         Height          =   180
         Index           =   0
         Left            =   2415
         TabIndex        =   12
         Top             =   1110
         Width           =   540
      End
      Begin VB.Label Label6 
         AutoSize        =   -1  'True
         Caption         =   "装修范围"
         Height          =   180
         Index           =   0
         Left            =   180
         TabIndex        =   10
         Top             =   1860
         Width           =   720
      End
      Begin VB.Label Label5 
         AutoSize        =   -1  'True
         Caption         =   "详细说明"
         Height          =   180
         Index           =   0
         Left            =   180
         TabIndex        =   5
         Top             =   2205
         Width           =   720
      End
      Begin VB.Label Label4 
         AutoSize        =   -1  'True
         Caption         =   "联系地址"
         Height          =   180
         Index           =   0
         Left            =   180
         TabIndex        =   4
         Top             =   1485
         Width           =   720
      End
      Begin VB.Label Label3 
         AutoSize        =   -1  'True
         Caption         =   "联系电话"
         Height          =   180
         Index           =   0
         Left            =   165
         TabIndex        =   3
         Top             =   1125
         Width           =   720
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         Caption         =   "装修队名"
         Height          =   180
         Index           =   0
         Left            =   180
         TabIndex        =   2
         Top             =   765
         Width           =   720
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "出入证编号"
         Height          =   180
         Index           =   0
         Left            =   135
         TabIndex        =   1
         Top             =   390
         Width           =   900
      End
   End
End
Attribute VB_Name = "Frm_zxdinfo"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
Frame1(1).Visible = True
Frame1(0).Visible = False
Adodc1.Refresh
Adodc1.Recordset.MoveFirst
End Sub
Private Sub Command10_Click()
If Text2(0).Text = "" Or Text3(0).Text = "" Or Text4(0).Text = "" Or Text5(0).Text = "" Or Text6(0).Text = "" Or Text7(0).Text = "" Then
MsgBox "不允许为空", 48, "提示"
Exit Sub
Else
Call main
Set adors = adocon.Execute("insert into tab_zxgroup values('" & Text2(0) & "','" & Text7(0) & "','" & Text3(0) & "','" & Text4(0) & "','" & Text1(0) & "','" & Text5(0) & "','" & Text6(0) & "') ")
MsgBox "数据保存成功", 78, "管理信息系统"
Command10.Visible = False
Command5.Visible = True
Command6.Visible = True
Command11.Visible = False
Adodc1.Refresh
End If
adocon.Close
End Sub
Private Sub Command11_Click()
Command5.Visible = True
Text2(0).Text = ""
Text3(0).Text = ""
Text4(0).Text = ""
Text5(0).Text = ""
Text6(0).Text = ""
Text7(0).Text = ""
End Sub

Private Sub Command2_Click()
Frame1(1).Visible = True
Frame1(0).Visible = False

Adodc1.Recordset.MovePrevious
If Adodc1.Recordset.BOF Then Adodc1.Recordset.MoveFirst

End Sub

Private Sub Command3_Click()
Frame1(1).Visible = True
Frame1(0).Visible = False
Adodc1.Recordset.MoveNext
If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast
End Sub

Private Sub Command4_Click()
Frame1(1).Visible = True
Frame1(0).Visible = False
Adodc1.Refresh
Adodc1.Recordset.MoveLast
End Sub

Private Sub Command5_Click()
Command5.Visible = False
Command10.Visible = True
Command11.Visible = True
Frame1(0).Visible = True
Frame1(1).Visible = False
Text2(0).Text = ""
Text3(0).Text = ""
Text4(0).Text = ""
Text5(0).Text = ""
Text6(0).Text = ""
Text7(0).Text = ""
Adodc1.RecordSource = "select * from tab_zxgroup order by 出入证编号"
Adodc1.Refresh
If Adodc1.Recordset.RecordCount > 0 Then
If Adodc1.Recordset.EOF = False Then
Adodc1.Recordset.MoveLast
Text1(0).Text = "zxd" + Trim(Mid(Adodc1.Recordset.Fields("出入证编号"), 4, 2) + 1)
Else
Text1(0).Text = "zxd" + Trim(Mid(Adodc1.Recordset.Fields("出入证编号"), 4, 2) + 1)
End If
Else
Text1(0).Text = "zxd1"
End If
End Sub

Private Sub Command6_Click()
Command10.Visible = True
Text2(1).Enabled = True
Text3(1).Enabled = True
Text4(1).Enabled = True
Text5(1).Enabled = True
Text6(1).Enabled = True
Text7(1).Enabled = True
End Sub

Private Sub Command7_Click()
Dim myval As String
Adodc1.RecordSource = "select * from tab_zxgroup"
If Adodc1.Recordset.RecordCount > 0 Then
myval = MsgBox("确定删除吗?", vbYesNo, "工程管理系统")
If myval = vbYes Then
Adodc1.Recordset.Delete
Adodc1.Refresh
Frm_zxdinfo.Refresh
Else
End If
Else
MsgBox "数据库中没有记录要删除"
End If
End Sub

Private Sub Command8_Click()
Frm_zxdll.Show
End Sub

Private Sub Command9_Click()

Unload Me
Me.Hide
Frm_main.Show
End Sub
Private Sub Form_Load()
Text1(1).Enabled = False
Text2(1).Enabled = False
Text3(1).Enabled = False
Text4(1).Enabled = False
Text5(1).Enabled = False
Text6(1).Enabled = False
Text7(1).Enabled = False
End Sub

⌨️ 快捷键说明

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