📄 frmmbwh.frm
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "Comdlg32.ocx"
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomctl.ocx"
Object = "{0B81E4A9-BE4E-4AEF-9272-33AB5B51C6FC}#1.0#0"; "XPControls.ocx"
Begin VB.Form FrmMBWH
BackColor = &H00D3DABC&
BorderStyle = 1 'Fixed Single
Caption = "体检报告模板维护"
ClientHeight = 5895
ClientLeft = 45
ClientTop = 330
ClientWidth = 8325
Icon = "FrmMBWH.frx":0000
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 5895
ScaleWidth = 8325
StartUpPosition = 2 '屏幕中心
Begin MSComDlg.CommonDialog CommonDialog1
Left = 2310
Top = 0
_ExtentX = 847
_ExtentY = 847
_Version = 393216
End
Begin VB.Frame Frame1
BackColor = &H00D3DABC&
Caption = "报告模板列表"
Height = 5670
Left = 120
TabIndex = 17
Top = 105
Width = 3930
Begin MSComctlLib.ListView lvwTemplate
Height = 5250
Left = 120
TabIndex = 18
Top = 300
Width = 3645
_ExtentX = 6429
_ExtentY = 9260
View = 3
LabelEdit = 1
LabelWrap = -1 'True
HideSelection = 0 'False
FullRowSelect = -1 'True
GridLines = -1 'True
_Version = 393217
ForeColor = -2147483640
BackColor = -2147483643
BorderStyle = 1
Appearance = 1
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
NumItems = 1
BeginProperty ColumnHeader(1) {BDD1F052-858B-11D1-B16A-00C0F0283628}
Text = "模板名称"
Object.Width = 5362
EndProperty
End
End
Begin VB.Frame Frame2
BackColor = &H00D3DABC&
Caption = "详细信息"
Height = 4365
Left = 4185
TabIndex = 6
Top = 105
Width = 4020
Begin VB.Frame Frame4
BackColor = &H00D3DABC&
Caption = "模板类型"
Height = 645
Left = 165
TabIndex = 19
Top = 240
Width = 3675
Begin VB.OptionButton optTTi
BackColor = &H00D3DABC&
Caption = "团体"
ForeColor = &H00FF0000&
Height = 255
Left = 2190
TabIndex = 21
Top = 255
Width = 810
End
Begin VB.OptionButton optGRen
BackColor = &H00D3DABC&
Caption = "个人"
ForeColor = &H00FF0000&
Height = 255
Left = 720
TabIndex = 20
Top = 255
Value = -1 'True
Width = 810
End
End
Begin VB.TextBox txtMBMC
Enabled = 0 'False
Height = 315
Left = 165
TabIndex = 13
Top = 1230
Width = 3675
End
Begin VB.TextBox txtMBSM
Enabled = 0 'False
Height = 990
Left = 165
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 12
Top = 1875
Width = 3675
End
Begin VB.Frame Frame3
BackColor = &H00D3DABC&
Caption = "默认模板"
Height = 645
Left = 165
TabIndex = 9
Top = 3630
Width = 3675
Begin VB.OptionButton optSFMR
BackColor = &H00D3DABC&
Caption = "是"
Enabled = 0 'False
Height = 285
Index = 0
Left = 800
TabIndex = 11
Top = 270
Width = 975
End
Begin VB.OptionButton optSFMR
BackColor = &H00D3DABC&
Caption = "否"
Enabled = 0 'False
Height = 285
Index = 1
Left = 2280
TabIndex = 10
Top = 270
Value = -1 'True
Width = 1005
End
End
Begin VB.TextBox txtFileName
Appearance = 0 'Flat
Height = 300
Left = 165
Locked = -1 'True
TabIndex = 7
Top = 3225
Width = 2970
End
Begin XPControls.XPCommandButton cmdBrowser
Height = 300
Left = 3180
TabIndex = 8
Top = 3210
Width = 675
_ExtentX = 1191
_ExtentY = 529
Enabled = 0 'False
Caption = "选择..."
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "模板名称:"
Height = 195
Left = 165
TabIndex = 16
Top = 1005
Width = 900
End
Begin VB.Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "模板说明:"
Height = 195
Left = 165
TabIndex = 15
Top = 1650
Width = 900
End
Begin VB.Label Label3
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "选择文件:"
Height = 195
Left = 165
TabIndex = 14
Top = 3000
Width = 900
End
End
Begin VB.Frame FrameCmd
Appearance = 0 'Flat
BackColor = &H00D3DABC&
ForeColor = &H80000008&
Height = 1200
Left = 4185
TabIndex = 0
Top = 4575
Width = 4020
Begin XPControls.XPCommandButton cmdExit
Cancel = -1 'True
Height = 375
Left = 2835
TabIndex = 1
Top = 720
Width = 870
_ExtentX = 1535
_ExtentY = 661
Caption = "退出"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin XPControls.XPCommandButton cmdSave
Height = 375
Left = 330
TabIndex = 2
Top = 720
Width = 870
_ExtentX = 1535
_ExtentY = 661
Enabled = 0 'False
Caption = "保存"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin XPControls.XPCommandButton cmdModify
Height = 375
Left = 2835
TabIndex = 3
Top = 195
Width = 870
_ExtentX = 1535
_ExtentY = 661
Enabled = 0 'False
Caption = "修改"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin XPControls.XPCommandButton cmdDelete
Height = 375
Left = 1575
TabIndex = 4
Top = 195
Width = 870
_ExtentX = 1535
_ExtentY = 661
Enabled = 0 'False
Caption = "删除"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin XPControls.XPCommandButton cmdAdd
Height = 375
Left = 330
TabIndex = 5
Top = 195
Width = 870
_ExtentX = 1535
_ExtentY = 661
Caption = "添加"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin XPControls.XPCommandButton cmdExportToWord
Height = 375
Left = 1590
TabIndex = 22
Top = 720
Width = 870
_ExtentX = 1535
_ExtentY = 661
Enabled = 0 'False
Caption = "导出模板"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
End
End
Attribute VB_Name = "FrmMBWH"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim menuOperation As OperationType
Dim m_strMenu As String
Public Sub ShowForm(ByVal strMenu As String)
m_strMenu = strMenu
Me.Show vbModal
End Sub
Private Sub cmdAdd_Click()
'权限验证
If g_blnIsNew Then
If Not g_clsAuthority.CheckOperationAuthority(m_strMenu, INSERT_W) Then GoTo ExitLab
End If
'验证完毕
If VersionControl = False Then Exit Sub
menuOperation = Add
ClearInput
EnableInput True
cmdAdd.Enabled = False
cmdDelete.Enabled = False
cmdModify.Enabled = False
cmdSave.Enabled = True
cmdExportToWord.Enabled = False
ExitLab:
End Sub
Private Sub cmdBrowser_Click()
Dim strFileName As String
strFileName = GetFileName(Me.CommonDialog1, "Word文档(*.doc)|*.doc", _
"选择模板文件", , READFILE)
If strFileName <> "" Then
'这个地方需要验证模板文件的有效性
txtFileName.Text = strFileName
txtFileName.Tag = "1"
End If
End Sub
Private Sub cmdDelete_Click()
On Error GoTo ErrMsg
Dim Status
Dim strSQL As String
Dim intMBID As Integer
Dim intIndex As Integer
Me.MousePointer = vbHourglass
'权限验证
If g_blnIsNew Then
If Not g_clsAuthority.CheckOperationAuthority(m_strMenu, DELETE_W) Then GoTo ExitLab
End If
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -