📄 frmmain.frm
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form form_Main
Caption = "静安区档案管理系统"
ClientHeight = 6165
ClientLeft = 165
ClientTop = 450
ClientWidth = 11130
Icon = "frmMain.frx":0000
LinkTopic = "Form1"
Palette = "frmMain.frx":0ECA
Picture = "frmMain.frx":38A01
ScaleHeight = 6165
ScaleWidth = 11130
StartUpPosition = 2 'CenterScreen
WindowState = 2 'Maximized
Begin MSComDlg.CommonDialog cd
Left = 870
Top = 5490
_ExtentX = 847
_ExtentY = 847
_Version = 393216
End
Begin MSAdodcLib.Adodc Adodc1
Height = 345
Left = 1230
Top = 4440
Visible = 0 'False
Width = 1440
_ExtentX = 2540
_ExtentY = 609
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 = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\working\静安档案单机版\JingAn\db\db.mdb;Persist Security Info=False"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\working\静安档案单机版\JingAn\db\db.mdb;Persist Security Info=False"
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.Menu manage
Caption = "档案管理(&M)"
Begin VB.Menu Archive
Caption = "案卷目录维护(&A)"
End
Begin VB.Menu sss
Caption = "-"
End
Begin VB.Menu file
Caption = "归档文件目录维护(&F)"
End
Begin VB.Menu ss
Caption = "-"
End
Begin VB.Menu zfgkxx
Caption = "政府公开信息(&O)"
End
End
Begin VB.Menu xml
Caption = "导出档案目录(&E)"
End
Begin VB.Menu dbConn
Caption = "数据合并(&C)"
End
Begin VB.Menu dossier
Caption = "全宗设置(&D)"
End
Begin VB.Menu management
Caption = "系统设置(&C)"
Index = 1
Begin VB.Menu backColor
Caption = "背景颜色(&B)"
Index = 2
End
End
Begin VB.Menu quit
Caption = "退出(&Q)"
Index = 2
End
End
Attribute VB_Name = "form_Main"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub archive_Click()
form_AnJuan.Show 1
End Sub
Private Sub backColor_Click(Index As Integer)
cd.ShowColor
If cd.Color <> black Then
bgColor = cd.Color
backColor = bgColor
Dim fso As New FileSystemObject, txtfile
Dim temp As String
If Right(App.Path, 1) = "\" Then
temp = App.Path & "profile.Properties"
Else
temp = App.Path & "\profile.Properties"
End If
Set fso = CreateObject("Scripting.FileSystemObject")
Set txtfile = fso.OpenTextFile(temp, 2, 0)
txtfile.WriteLine (cd.Color)
txtfile.Close
End If
End Sub
Private Sub dbConn_Click()
form_DbConn.Show 1
End Sub
Private Sub dossier_Click()
form_dossier.Show 1
End Sub
Private Sub dysz_Click()
End Sub
Private Sub file_Click()
form_WenJian.Show 1
End Sub
Private Sub Form_Activate()
'Me.Height = Me.Height - 200
End Sub
Private Sub Form_Load()
Dim fso As New FileSystemObject, txtfile, fil1 As file, ts As TextStream
Dim s As String
Dim temp As String
If Right(App.Path, 1) = "\" Then
temp = App.Path & "profile.Properties"
Else
temp = App.Path & "\profile.Properties"
End If
Set fso = CreateObject("Scripting.FileSystemObject")
Set fil1 = fso.GetFile(temp)
Set ts = fil1.OpenAsTextStream(ForReading)
bgColor = ts.ReadLine '类型
backColor = bgColor
conn.Open strConn
Me.Picture = LoadPicture()
'Me.PaintPicture App.Path & "\akii\fm.gif", 100, 100
'获取全宗号
rs.Open "select * from t_dossier", conn
fondsCode = rs!fonds_code
fondsName = rs!fonds_name
rs.Close
rs.Open "select * from t_dossier_modi", conn
fondsName2 = rs!fonds_name
rs.Close
End Sub
Private Sub listColor_Click(Index As Integer)
End Sub
Private Sub Form_Unload(Cancel As Integer)
End
End Sub
Private Sub quit_Click(Index As Integer)
Unload Me
End Sub
Private Sub xml_Click()
form_dbexp.Show 1
End Sub
Private Sub zfgkxx_Click()
form_Openinfo_grid.Show 1
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -