📄 isotowor.frm
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "Comdlg32.ocx"
Begin VB.Form isotowor
BorderStyle = 1 'Fixed Single
Caption = "ISO与WOR互换"
ClientHeight = 3960
ClientLeft = 45
ClientTop = 330
ClientWidth = 7185
Icon = "isotowor.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3960
ScaleWidth = 7185
StartUpPosition = 1 'CenterOwner
Begin VB.CommandButton Command7
Caption = "退出"
Height = 375
Left = 5760
TabIndex = 10
Top = 3480
Width = 1335
End
Begin MSComDlg.CommonDialog CommonDialog1
Left = 6360
Top = 1200
_ExtentX = 847
_ExtentY = 847
_Version = 393216
InitDir = "d:\tscg\temp"
End
Begin VB.CommandButton Command6
Caption = "MARC文件"
Enabled = 0 'False
Height = 495
Left = 120
TabIndex = 9
Top = 2760
Width = 1215
End
Begin VB.CommandButton Command5
Caption = "工作单文件>"
Height = 495
Left = 120
TabIndex = 8
Top = 2040
Width = 1215
End
Begin VB.CommandButton Command4
Caption = "工作单文件"
Enabled = 0 'False
Height = 495
Left = 120
TabIndex = 7
Top = 840
Width = 1215
End
Begin VB.CommandButton Command3
Caption = "MARC文件>"
Height = 495
Left = 120
TabIndex = 6
Top = 120
Width = 1215
End
Begin VB.TextBox Text4
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 1560
TabIndex = 5
Text = "*.iso"
Top = 2760
Width = 4095
End
Begin VB.TextBox Text3
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 1560
TabIndex = 4
Top = 2040
Width = 4095
End
Begin VB.TextBox Text2
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 1560
TabIndex = 3
Text = "*.wor"
Top = 840
Width = 4095
End
Begin VB.TextBox Text1
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 1560
TabIndex = 2
Top = 120
Width = 4095
End
Begin VB.CommandButton Command2
Caption = "工作单转MARC"
Height = 495
Left = 5760
TabIndex = 1
Top = 2400
Width = 1335
End
Begin VB.CommandButton Command1
Caption = "MARC转工作单"
Height = 495
Left = 5760
TabIndex = 0
Top = 480
Width = 1335
End
Begin VB.Label Label2
Caption = "注:以上输入MARC文件时,只要输文件名,不要路经。"
Height = 255
Left = 1320
TabIndex = 12
Top = 3480
Width = 4335
End
Begin VB.Label Label1
Caption = "注:以上输入工作单文件时,只要输文件名,不要路经。"
Height = 255
Left = 1320
TabIndex = 11
Top = 1440
Width = 4575
End
Begin VB.Line Line1
X1 = 0
X2 = 7200
Y1 = 1800
Y2 = 1800
End
End
Attribute VB_Name = "isotowor"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
'marc 到wor
Dim workingfile As String
Dim marcfile As String
workingfile = ""
marcfile = ""
marcfile = LTrim$(RTrim$(UCase$(Text1.Text)))
If marcfile = "" Then
MsgBox "请先输入marc文件。"
Exit Sub
End If
If Not Filexists(marcfile) Then
MsgBox "marc文件不存在,请重新输入。"
Exit Sub
End If
workingfile = Trim(Text2.Text)
If workingfile = "" Or workingfile = "*.wor" Then
MsgBox "工作单文件名未输入!"
Exit Sub
End If
' On Error GoTo aa
workingfile1 = "d:\tscg\temp\" + workingfile
If Dir(workingfile1) = workingfile Then
Kill (workingfile1)
End If
Call Shell("d:\tscg\tools\iso2wor.exe " & marcfile & " " & workingfile1 & " 0000001", vbHide)
MsgBox "转换完成,请查看MARC文件:" & workingfile1
Exit Sub
aa:
MsgBox "发生错误411,请与系统开发人员联系!"
End Sub
Private Sub Command2_Click()
Dim workingfile As String
Dim marcfile As String
workingfile = ""
marcfile = ""
workingfile = LTrim$(RTrim$(UCase$(Text3.Text)))
If workingfile = "" Then
MsgBox "请先输入工作单文件。"
Exit Sub
End If
If Not Filexists(workingfile) Then
MsgBox "文件不存在,请重新输入。"
Exit Sub
End If
If UCase(Right(workingfile, 3)) <> "WOR" Then
MsgBox "不为工作单文件,请重新选择!"
Exit Sub
End If
marcfile = Trim(Text4.Text)
If marcfile = "" Or marcfile = "*.iso" Then
MsgBox "文件名未输入!"
Exit Sub
End If
On Error GoTo aa
marcfile1 = "d:\tscg\temp\" + marcfile
If Dir(marcfile1) = marcfile Then
Kill (marcfile1)
End If
Call Shell("d:\tscg\tools\wor2iso.exe " & workingfile & " " & marcfile1, vbHide)
MsgBox "转换完成,请查看MARC文件:" & marcfile1
Exit Sub
aa:
MsgBox "发生错误412,请与系统开发人员联系!"
End Sub
Private Sub Command3_Click()
CommonDialog1.Filter = "*.iso|*.iso"
CommonDialog1.ShowOpen
Text1.Text = CommonDialog1.filename
End Sub
Private Sub Command5_Click()
CommonDialog1.Filter = "*.wor|*.wor"
CommonDialog1.ShowOpen
Text3.Text = CommonDialog1.filename
End Sub
Private Sub Command7_Click()
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -