📄 frmaddlockarea.frm
字号:
VERSION 5.00
Object = "{065E6FD1-1BF9-11D2-BAE8-00104B9E0792}#3.0#0"; "ssa3d30.ocx"
Object = "{8C3D4AA0-2599-11D2-BAF1-00104B9E0792}#3.0#0"; "sssplt30.ocx"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Begin VB.Form frmAddLockArea
BorderStyle = 3 'Fixed Dialog
Caption = "单位登记"
ClientHeight = 3150
ClientLeft = 45
ClientTop = 330
ClientWidth = 6435
Icon = "frmAddLockArea.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MDIChild = -1 'True
MinButton = 0 'False
Picture = "frmAddLockArea.frx":000C
ScaleHeight = 3150
ScaleWidth = 6435
ShowInTaskbar = 0 'False
Begin SSSplitter.SSSplitter SSSplitter1
Height = 3150
Left = 0
TabIndex = 0
Top = 0
Width = 6435
_ExtentX = 11351
_ExtentY = 5556
_Version = 196610
AutoSize = 1
BorderStyle = 0
PaneTree = "frmAddLockArea.frx":034E
Begin Threed.SSPanel SSPanel1
Height = 3150
Left = 0
TabIndex = 1
Top = 0
Width = 6435
_ExtentX = 11351
_ExtentY = 5556
_Version = 196610
BevelInner = 1
RoundedCorners = 0 'False
FloodShowPct = -1 'True
Begin MSDataGridLib.DataGrid grdLockArea
Height = 2415
Left = 240
TabIndex = 12
Top = 600
Width = 2775
_ExtentX = 4895
_ExtentY = 4260
_Version = 393216
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
ColumnCount = 1
BeginProperty Column00
DataField = "LockArea"
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
ColumnWidth = 2264.882
EndProperty
EndProperty
End
Begin VB.TextBox txtLockArea
Height = 285
Left = 4140
MaxLength = 20
TabIndex = 2
Top = 570
Width = 1905
End
Begin Threed.SSCommand cmdUpdate
Height = 375
Left = 4350
TabIndex = 3
Top = 2280
Width = 1035
_ExtentX = 1826
_ExtentY = 661
_Version = 196610
PictureFrames = 1
BackStyle = 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
Picture = "frmAddLockArea.frx":0380
Caption = "保存(&S)"
Alignment = 4
ButtonStyle = 3
PictureAlignment= 1
End
Begin Threed.SSCommand cmdDelete
Height = 375
Left = 4350
TabIndex = 4
Top = 1860
Width = 1035
_ExtentX = 1826
_ExtentY = 661
_Version = 196610
PictureFrames = 1
BackStyle = 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
Picture = "frmAddLockArea.frx":091A
Caption = "删除(&D)"
Alignment = 4
ButtonStyle = 3
PictureAlignment= 1
End
Begin Threed.SSCommand cmdAdd
Height = 375
Left = 4320
TabIndex = 5
Top = 1440
Width = 1035
_ExtentX = 1826
_ExtentY = 661
_Version = 196610
PictureFrames = 1
BackStyle = 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
Picture = "frmAddLockArea.frx":0A2C
Caption = "增加(&N)"
Alignment = 4
ButtonStyle = 3
PictureAlignment= 1
End
Begin VB.Label Label13
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "单位列表"
Height = 180
Left = 300
TabIndex = 8
Top = 240
Width = 720
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "单位名称"
BeginProperty Font
Name = "宋体"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 3180
TabIndex = 7
Top = 600
Width = 780
End
Begin VB.Label Label7
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "*"
Height = 180
Left = 6120
TabIndex = 6
Top = 630
Width = 90
End
End
End
Begin VB.Label Label10
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "*"
Height = 180
Left = 0
TabIndex = 11
Top = 0
Width = 90
End
Begin VB.Label Label9
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "*"
Height = 180
Left = 0
TabIndex = 10
Top = 0
Width = 90
End
Begin VB.Label Label8
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "*"
Height = 180
Left = 0
TabIndex = 9
Top = 0
Width = 90
End
End
Attribute VB_Name = "frmAddLockArea"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim cAA As New rsclsAddLockArea
Dim bndAA As New BindingCollection
Dim mbAddNew As Boolean
Private Sub cmdAdd_Click()
On Error Resume Next
If mbAddNew = True Then
Exit Sub
End If
cAA.AddRecord
txtLockArea.SetFocus
mbAddNew = True
Exit Sub
End Sub
Private Sub cmdDelete_Click()
On Error Resume Next
If mbAddNew = True Or cAA.EOF Or cAA.RecordCount = 0 Then
Exit Sub
End If
cAA.Delete
cAA.UpdateBatch
End Sub
Private Sub cmdUpdate_Click()
On Error Resume Next
If txtLockArea.Text = "" Then
StatusShow ("使用单位不能为空")
Exit Sub
End If
cAA.UpdateBatch
cAA.MoveLast
mbAddNew = False
Exit Sub
End Sub
Private Sub Form_Load()
On Error Resume Next
Me.Top = (mainForm.ScaleHeight - Me.Height) / 2
Me.Left = (mainForm.ScaleWidth - Me.Width) / 2
SSPanel1.PictureBackground = mainForm.Pic.Picture
SSPanel1.PictureBackgroundStyle = ssTiled
With bndAA
.DataMember = ""
Set .DataSource = cAA
.Add txtLockArea, "Text", "LockArea"
End With
Set grdLockArea.DataSource = cAA
mbAddNew = False
Exit Sub
End Sub
Private Sub Form_Unload(Cancel As Integer)
On Error Resume Next
If mbAddNew = True Then
cAA.CancelUpdate
mbAddNew = False
End If
Set cAA = Nothing
Set bndAA = Nothing
Set grdLockArea.DataSource = Nothing
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -