?? frmmodify.frm
字號(hào):
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 frmModify
AutoRedraw = -1 'True
BorderStyle = 3 'Fixed Dialog
Caption = "三角網(wǎng)平差軟件系統(tǒng)"
ClientHeight = 6120
ClientLeft = 45
ClientTop = 330
ClientWidth = 10830
MinButton = 0 'False
Moveable = 0 'False
ScaleHeight = 6120
ScaleWidth = 10830
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton CmdCorrect
Caption = "修改數(shù)據(jù)"
BeginProperty Font
Name = "宋體"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 4920
TabIndex = 7
Top = 5640
Width = 1215
End
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = 120
Top = 5640
Width = 3615
_ExtentX = 6376
_ExtentY = 661
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.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin MSDataGridLib.DataGrid DataGrid1
Bindings = "frmModify.frx":0000
Height = 4815
Left = 120
TabIndex = 6
Top = 600
Width = 10575
_ExtentX = 18653
_ExtentY = 8493
_Version = 393216
AllowUpdate = 0 'False
AllowArrows = -1 'True
HeadLines = 1
RowHeight = 15
TabAcrossSplits = -1 'True
TabAction = 2
WrapCellPointer = -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 = 2
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
SplitCount = 1
BeginProperty Split0
BeginProperty Column00
EndProperty
BeginProperty Column01
EndProperty
EndProperty
End
Begin VB.CommandButton cmdSave
Caption = "保存修改"
BeginProperty Font
Name = "宋體"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 420
Left = 7440
TabIndex = 5
Top = 5640
Width = 1095
End
Begin VB.CommandButton cmdExit
Caption = "退出"
BeginProperty Font
Name = "宋體"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 420
Left = 9720
TabIndex = 4
Top = 5640
Width = 975
End
Begin VB.ComboBox cboSelType
DataSource = "Adodc1"
BeginProperty Font
Name = "宋體"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
ItemData = "frmModify.frx":0015
Left = 8880
List = "frmModify.frx":0017
TabIndex = 3
Top = 120
Width = 1935
End
Begin VB.Label Label3
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 120
TabIndex = 2
Top = 120
Width = 3735
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "三角形閉合差差"
BeginProperty Font
Name = "宋體"
Size = 18
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 360
Left = 4440
TabIndex = 1
Top = 120
Width = 2625
End
Begin VB.Label Label1
Caption = "選擇數(shù)據(jù):"
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 300
Left = 7800
TabIndex = 0
Top = 120
Width = 1035
End
End
Attribute VB_Name = "frmModify"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub cboSelType_Click()
Dim strSql As String
Screen.MousePointer = vbHourglass
Adodc1.Recordset.Update
strSql = "select * from " & cboSelType.Text
Adodc1.RecordSource = strSql
Adodc1.Caption = cboSelType.Text
Adodc1.Refresh
Screen.MousePointer = vbArrow
Call FmtSetting
DataGrid1.Refresh
DataGrid1.AllowUpdate = True
End Sub
Private Sub CmdExit_Click()
frmModify.Adodc1.Recordset.Update
Unload Me
' Call Data_Check
' Call Info_Save
End Sub
Private Sub CmdSave_Click()
Adodc1.Recordset.Update
End Sub
Private Sub CmdCorrect_Click()
DataGrid1.AllowUpdate = True
End Sub
Private Sub Form_Load()
Dim I As Integer
Me.Left = (Screen.Width - Me.Width) / 2
Me.Top = (Screen.Height - Me.Height) / 2
frmModify.cboSelType.Clear
Select Case g_ModifyType
Case 1
Label2.Caption = "三角網(wǎng)觀測(cè)數(shù)據(jù)表"
frmModify.cboSelType.AddItem "基本信息表"
frmModify.cboSelType.AddItem "點(diǎn)名表"
frmModify.cboSelType.AddItem "觀測(cè)數(shù)據(jù)表"
Case 2
Label2.Caption = "三角形閉合差成果表"
frmModify.cboSelType.AddItem "三角形閉合差表"
CmdCorrect.Visible = False
CmdSave.Visible = False
CmdCorrect.Enabled = False
CmdSave.Enabled = False
End Select
cboSelType.Text = cboSelType.List(0)
Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=" & g_ProjectFile & ";Mode=Read|Write"
Adodc1.Caption = cboSelType.Text
Adodc1.RecordSource = "select * from " & cboSelType.Text
Adodc1.Refresh
Call FmtSetting
DataGrid1.Refresh
'Screen.MousePointer = vbHourglass
End Sub
'Private Sub Form_Unload(Cancel As Integer)
' If g_ModifyType = 4 Then
' frmModify.CmdCorrect.Visible = True
' frmModify.cmdSave.Visible = True
' CmdCorrect.Enabled = True
' cmdSave.Enabled = True
' frmModify.Adodc1.Recordset.Close
' Exit Sub
' End If
' frmModify.Adodc1.Recordset.Update
'' frmModify.Adodc1.Recordset.Close
' Call Data_Check
' Call Info_Save
'End Sub
Sub FmtSetting()
Dim I As Integer
Dim idx As Integer
Dim Fmt As New StdDataFormat
Dim Fmt1 As New StdDataFormat
Fmt.Format = "0.000000"
Fmt1.Format = "0.00"
idx = cboSelType.ListIndex
If idx < 0 Then idx = 0
Select Case g_ModifyType
Case 1
Select Case idx
Case 0
For I = 0 To 10
DataGrid1.Columns(I).Alignment = dbgCenter
Next I
Set DataGrid1.Columns(10).DataFormat = Fmt1
Case 1
For I = 0 To 1
DataGrid1.Columns(I).Alignment = dbgCenter
Next I
Case 2
' For I = 0 To 4
' DataGrid1.Columns(I).Alignment = dbgCenter
' Next I
' Set DataGrid1.Columns(4).DataFormat = Fmt
End Select
Case 2
Select Case idx
Case 0
For I = 0 To 4
DataGrid1.Columns(I).Alignment = dbgCenter
Next I
End Select
End Select
End Sub
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -