⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frmconfig.frm

📁 1、以DLL形式提供医生工作站 2、 根据【检查项目】
💻 FRM
📖 第 1 页 / 共 5 页
字号:
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  Height          =   375
                  IMEMode         =   3  'DISABLE
                  Left            =   3200
                  PasswordChar    =   "*"
                  TabIndex        =   8
                  Top             =   960
                  Width           =   4600
               End
               Begin VB.TextBox txtHisDataSource 
                  BeginProperty Font 
                     Name            =   "宋体"
                     Size            =   12
                     Charset         =   134
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  Height          =   375
                  Left            =   3200
                  TabIndex        =   7
                  Top             =   480
                  Width           =   4600
               End
               Begin VB.Label Label6 
                  BackStyle       =   0  'Transparent
                  Caption         =   "口令"
                  BeginProperty Font 
                     Name            =   "宋体"
                     Size            =   12
                     Charset         =   134
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  ForeColor       =   &H00000000&
                  Height          =   255
                  Left            =   1800
                  TabIndex        =   13
                  Top             =   1485
                  Width           =   1095
               End
               Begin VB.Label Label5 
                  BackStyle       =   0  'Transparent
                  Caption         =   "HIS用户名"
                  BeginProperty Font 
                     Name            =   "宋体"
                     Size            =   12
                     Charset         =   134
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  ForeColor       =   &H00000000&
                  Height          =   255
                  Left            =   1800
                  TabIndex        =   12
                  Top             =   960
                  Width           =   1095
               End
               Begin VB.Label Label3 
                  BackStyle       =   0  'Transparent
                  Caption         =   "HIS数据源"
                  BeginProperty Font 
                     Name            =   "宋体"
                     Size            =   12
                     Charset         =   134
                     Weight          =   400
                     Underline       =   0   'False
                     Italic          =   0   'False
                     Strikethrough   =   0   'False
                  EndProperty
                  ForeColor       =   &H00000000&
                  Height          =   255
                  Left            =   1800
                  TabIndex        =   11
                  Top             =   540
                  Width           =   1095
               End
            End
            Begin VB.CommandButton btnServerCancel 
               Caption         =   "取消"
               BeginProperty Font 
                  Name            =   "宋体"
                  Size            =   12
                  Charset         =   134
                  Weight          =   400
                  Underline       =   0   'False
                  Italic          =   0   'False
                  Strikethrough   =   0   'False
               EndProperty
               Height          =   495
               Left            =   6840
               TabIndex        =   5
               Top             =   5760
               Width           =   1335
            End
            Begin VB.CommandButton btnServerOk 
               Caption         =   "确定"
               BeginProperty Font 
                  Name            =   "宋体"
                  Size            =   12
                  Charset         =   134
                  Weight          =   400
                  Underline       =   0   'False
                  Italic          =   0   'False
                  Strikethrough   =   0   'False
               EndProperty
               Height          =   495
               Left            =   3480
               TabIndex        =   4
               Top             =   5760
               Width           =   1335
            End
         End
      End
   End
   Begin MSWinsockLib.Winsock sockTcp 
      Left            =   9735
      Top             =   555
      _ExtentX        =   741
      _ExtentY        =   741
      _Version        =   393216
   End
   Begin VB.Label Label22 
      BackStyle       =   0  'Transparent
      Caption         =   "胶片存放目录"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FFFFFF&
      Height          =   255
      Left            =   2040
      TabIndex        =   1
      Top             =   5100
      Width           =   1575
   End
End
Attribute VB_Name = "frmConfig"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

'胶片打印机配置
Const PRINT_CONFIG_FILE = "htprint.cfg"
Const SECTION_PRINT_CONFIG_PRINT = "HPPRINTER"
Const SECTION_PRINT_CONFIG_NETWORK = "NETWORK"

Const SECTION_CONNECTION = "CONNECTION"
Const SECTION_WORKSTATION = "WORKSTATION"
Const KEY_HOSPITAL_NAME = "HOSPITAL_NAME"
Const KEY_STATION_NAME = "STATION_NAME"
Const KEY_DICOM_RECEIVE_PORT = "DICOM_RECEIVE_PORT"

Const KEY_DCM_SERVER_IP = "SERVER_IP"
Const KEY_DCM_SERVER_PORT = "DCM_SERVER_PORT"
Const KEY_DCM_LOCAL_ROOT = "DCM_LOCAL_ROOT"
Const KEY_TEMPDCM_LOCAL_ROOT = "TEMPDCM_LOCAL_ROOT"

Const KEY_HIS_DATA_SOURCE = "HIS_DATA_SOURCE"
Const KEY_PACS_DATA_SOURCE = "PACS_DATA_SOURCE"
Const KEY_REPORT_DATA_SOURCE = "REPORT_DATA_SOURCE"
Const KEY_REPORT_IN_USE = "REPORT_IN_USE"


Const DbType As String = "Provider=OraOLEDB.Oracle.1;Persist Security Info=False;"     'ORACLE

Const DbAccess As String = "Provider=Microsoft.Jet.OLEDB.4.0;Persist Security Info=False;"     'ACCESS


Const DCM_PRINT_TEST = "Print_Test.dcm"


'Const NUMBER_OF_SPACE = 256


Dim ERR_STRING As String
Dim HOSPITALNAME As String


Dim strConfigFilePath As String
Dim strPrintConfigFilePath As String







Private Sub btnBack_Click(Shifit As Integer)
On Error GoTo ErrHandler
    Unload Me
    frmCheckList.SetFocus
    Exit Sub
ErrHandler:
     MsgBox Err.Description, vbExclamation, "提示"

End Sub

Private Sub btnBrowse_Click()
'        On Error GoTo ErrHandler
    
'    dlgOpenFile.FileName = ""
'    dlgOpenFile.DefaultExt = "*"
'    dlgOpenFile.DialogTitle = "打开 DICOM文件"
'    dlgOpenFile.Filter = "DICOM 文件(*.dcm)|*.dcm|所有文件(*.*)|*.*"
    'dlgOpenFile.ShowPrinter
    
'    dlgOpenFile.ShowOpen
    
'    If dlgOpenFile.FileName = "" Then
'        Exit Sub
'    End If
'
'    txtDcmPath.Text = dlgOpenFile.FileName
    
'    Exit Sub
'ErrHandler:
    
End Sub

Private Sub btnBrowseMdb_Click()
'        On Error GoTo ErrHandler
'
'    dlgOpenFile.FileName = ""
'    dlgOpenFile.DefaultExt = "*"
'    dlgOpenFile.DialogTitle = "打开 ACCESS数据库文件"
'    dlgOpenFile.Filter = "ACCESS 数据库文件(*.mdb)|*.mdb|所有文件(*.*)|*.*"
'    'dlgOpenFile.ShowPrinter
'
'    dlgOpenFile.ShowOpen
'
'    If dlgOpenFile.FileName = "" Then
'        Exit Sub
'    End If
'
'    txtReportDataSource.Text = dlgOpenFile.FileName
'
'    Exit Sub
'ErrHandler:
End Sub

'工作站配置----确定
Private Sub btnClientconfigCancel_Click()
    Unload Me
End Sub

'工作站配置----取消
Private Sub btnClientconfigOk_Click()
    On Error GoTo ErrHandler
    If SetStationConfig(strConfigFilePath) Then
        MsgBox "工作站信息配置成功!", vbInformation, "提示"
    Else
        MsgBox "工作站信息配置成功!", vbInformation, "提示"
    End If
    
    
    Exit Sub
ErrHandler:
    
End Sub

Private Sub btnDcmPrintCancel_Click()
   On Error GoTo ErrHandler
    Unload Me
    
    Exit Sub
ErrHandler:
    
End Sub
'
'Private Sub btnDcmPrintOk_Click()
'    If SetPrintInfo(strPrintConfigFilePath) Then
'        MsgBox "胶片打印配置成功!", vbInformation, "提示"
'    Else
'        MsgBox "胶片打印配置失败!", vbExclamation, "提示"
'    End If
'End Sub
'
'Private Sub btnPrint_Click()
'    On Error GoTo ErrHandler
'    If Dir(txtDcmPath.Text, vbArchive Or vbHidden) = "" Then
'        MsgBox "要打印的DCM文件不存在, 请重新选择!", vbExclamation, "提示"
'        Exit Sub
'    End If
'
'
'    Dim strDatabase As String
'    Dim strSpool As String
'    Dim strLog As String
'    strDatabase = App.Path + "\database"
'    strSpool = App.Path + "\spool"
'    strLog = App.Path + "\log"
'
'    If Dir(strDatabase, vbDirectory) = "" Then
'        MkDir strDatabase
'    End If
'
'    If Dir(strSpool, vbDirectory) = "" Then
'        MkDir strSpool
'    End If
'
'    If Dir(strLog, vbDirectory) = "" Then
'        MkDir strLog
'    End If
'
'
'    Dim strPrintCmd, strPrintCfgPath As String
'    strPrintCfgPath = App.Path + "\" + PRINT_CONFIG_FILE
'
'    strPrintCmd = " -c " + strPrintCfgPath + _
'        " --printer " + SECTION_PRINT_CONFIG_PRINT + " "
'
'    Dim strFilmSize As String
'    strFilmSize = Trim(txtFilmSize.Text)
'
'    If Len(strFilmSize) > 0 Then
'        strPrintCmd = strPrintCmd + " --filmsize " + strFilmSize + " "
'    End If
'
'    strPrintCmd = strPrintCmd + Trim(txtDcmPath.Text)
'    strPrintCmd = strPrintCmd + " -s"
'
'    Dim nRtn As Integer
'    nRtn = ShellExecute(Me.hwnd, "open", App.Path & "\htprint.exe", _
'         strPrintCmd, App.Path, vbHide)
'
'    'lblPrintCmd.Caption =
'    MsgBox "htprint.exe " + strPrintCmd, vbInformation, "打印命令"
'
'    If nRtn <= 32 Then
'        MsgBox "打印失败!", vbExclamation, "提示"
'        Exit Sub
'    End If
'
'    MsgBox "打印命令发送成功!", vbInformation, "提示"
'
'    Exit Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -