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

📄 frmhouseaskfortran.frm

📁 医院门诊医生工作站,vb6 SqlServer
💻 FRM
📖 第 1 页 / 共 3 页
字号:
      EndProperty
      ForeColor       =   &H8000000D&
      Height          =   225
      Left            =   480
      TabIndex        =   13
      Top             =   4410
      Width           =   570
   End
   Begin VB.Line Line2 
      BorderColor     =   &H80000003&
      X1              =   48
      X2              =   9468
      Y1              =   588
      Y2              =   588
   End
   Begin VB.Line Line1 
      BorderColor     =   &H80000005&
      X1              =   48
      X2              =   9468
      Y1              =   576
      Y2              =   576
   End
   Begin VB.Label lblCMoney 
      AutoSize        =   -1  'True
      Caption         =   "lblCMoney"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H8000000D&
      Height          =   210
      Left            =   3600
      TabIndex        =   9
      Tag             =   "Dyn"
      Top             =   4035
      Width           =   945
   End
   Begin VB.Label Label4 
      AutoSize        =   -1  'True
      Caption         =   "零售金额:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   210
      Left            =   2535
      TabIndex        =   8
      Top             =   4035
      Width           =   945
   End
   Begin VB.Label lblGMoney 
      AutoSize        =   -1  'True
      Caption         =   "lblGMoney"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H8000000D&
      Height          =   210
      Left            =   1200
      TabIndex        =   7
      Tag             =   "Dyn"
      Top             =   4035
      Width           =   945
   End
   Begin VB.Label Label3 
      AutoSize        =   -1  'True
      Caption         =   "批发金额:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   210
      Left            =   120
      TabIndex        =   6
      Top             =   4035
      Width           =   945
   End
   Begin VB.Label lblDepart 
      AutoSize        =   -1  'True
      Caption         =   "请领药房:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   210
      Left            =   3210
      TabIndex        =   5
      Top             =   720
      Width           =   975
   End
   Begin VB.Label lblTitle 
      Alignment       =   2  'Center
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "调拨入库请领"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   15.75
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   315
      Index           =   0
      Left            =   1545
      TabIndex        =   12
      Top             =   90
      Width           =   1965
   End
   Begin VB.Label lblTitle 
      Alignment       =   2  'Center
      AutoSize        =   -1  'True
      Caption         =   "调拨入库请领"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   15.75
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H80000005&
      Height          =   315
      Index           =   1
      Left            =   1530
      TabIndex        =   11
      Top             =   90
      Width           =   1965
   End
End
Attribute VB_Name = "frmHouseAskForTran"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

'spd  Col 1 ---> Hide  - 药品编码
'                2 --->         药品名称
'                3 --->         规格      - Lock
'                4 --->         单位(基本)- Lock
'                5 --->         数量
'                6 --->         批发价    - - Float.4
'                7 --->         批发金额    - - Float.2
'                8 --->        零售价    - - Float.4
'                9 --->        零售金额    - - Float.2
'                10 --->        批零差价   - - Float.4
Private mDepart As String

Private WithEvents CmnHlp As frmInputHelp
Attribute CmnHlp.VB_VarHelpID = -1
Private WithEvents QueryObj As frmHouseAskQuery
Attribute QueryObj.VB_VarHelpID = -1
Public ItemsObj As clsDrugItems
Private CurUnitObj As clsDrugUnit

Private Sub InitForm()
    Set CmnHlp = New frmInputHelp
    Set CmnHlp.CN = gDbObj.CN
    Set lct.CN = gDbObj.CN
    lct.Visible = False
    Init

    fra.Visible = False

End Sub
Private Sub Init()
    hisFormClear Me
    spd.MaxRows = 0
    spd.MaxRows = 1
    txtDepart.Tag = ""
    If gtydSysConfig.AutoSheetID Then
        txtSheetID = gFnGetSerial(stHouseBusSerial)
        txtSheetID.Locked = True
    End If
    
End Sub
Private Sub PutSpread(ByVal Row As Integer, ByVal ItemCode, ByVal itemname, ByVal Model, _
        ByVal Unit, ByVal Amount, ByVal Gprice, ByVal CPrice, ByVal Factor)
    Dim i As Integer
    
    If CurUnitObj Is Nothing Then
        Set CurUnitObj = New clsDrugUnit
    End If
    CurUnitObj.Add ItemCode

    spd.Redraw = False
    spd.Row = Row
    spd.Col = 1
    spd.Text = ItemCode
    spd.Col = 2
    spd.Text = itemname
    spd.Col = 3
    spd.Text = Model & " * " & Int(Factor)
    spd.Col = 4
    If CurUnitObj(ItemCode).Count = 1 Then
        spd.CellType = SS_CELL_TYPE_EDIT
        spd.Text = Unit
        spd.Lock = True
    Else
        spd.CellType = SS_CELL_TYPE_COMBOBOX
        spd.Lock = False
        For i = 1 To CurUnitObj(ItemCode).Count
            spd.TypeComboBoxIndex = -1
            spd.TypeComboBoxString = CurUnitObj(ItemCode).Item(i).Unit
            If CurUnitObj(ItemCode).Item(i).Unit = Unit Then
                spd.TypeComboBoxCurSel = i - 1
            End If
        Next i
    End If
    spd.Col = 5
    spd.Text = Amount / Factor
    spd.Col = 6
    spd.Text = Gprice * Factor
    spd.Col = 7
    spd.Text = Gprice * Amount
    spd.Col = 8
    spd.Text = CPrice * Factor
    spd.Col = 9
    spd.Text = CPrice * Amount
    spd.Col = 10
    spd.Text = CPrice * Amount - Gprice * Amount
    spd.Col = 11
    spd.Text = Factor
    spd.Redraw = True
End Sub

Private Sub CmnHlp_ResSelect(ByVal SelData As Variant, ByVal STag As String)
    Me.SetFocus
    Select Case STag
        Case "Item"
            If TypeName(SelData) = "Nothing" Then
                If spd.ActiveRow <> spd.MaxRows Then
                    spd.Row = spd.ActiveRow
                    spd.Action = SS_ACTION_DELETE_ROW
                    spd.MaxRows = spd.MaxRows - 1
                End If
            Else
                PutSpread spd.ActiveRow, SelData(0), SelData(2), SelData(3), _
                    SelData(4), 1 * SelData(5), SelData(6), SelData(7), SelData(5)
                If spd.ActiveRow = spd.MaxRows Then
                    spd.MaxRows = spd.MaxRows + 1
                End If
            End If
            Sum
        Case "Depart"
            If TypeName(SelData) = "Nothing" Then
                txtDepart = ""
                txtDepart.Tag = ""
            Else
                txtDepart = SelData(1)
                txtDepart.Tag = SelData(0)
            End If
            mDepart = txtDepart
    End Select
End Sub


Private Sub Form_KeyPress(KeyAscii As Integer)
    If KeyAscii = vbKeyReturn Then
        If Me.ActiveControl.Name = "spd" Then Exit Sub
        hisToActiveCtl(Me).SetFocus
        KeyAscii = 0
    End If
End Sub

Private Sub Form_Load()
    hisFormToCenter Me, frmMain
    InitForm
End Sub

Private Sub Form_Unload(Cancel As Integer)
    Set frmHouseAsk = Nothing
End Sub

Private Sub Lct_PosChanged(ByVal Pos As Long, ByVal OldPos As Long)
  
    FillData
End Sub
Private Sub mcr_StatusChanged()
    If mcr.Status = CL_ADD Then
        hisLockInput Me, False
        lct.Visible = False
        fra.Visible = False
    Else
        hisLockInput Me, True
        lct.Visible = True
        fra.Visible = True
    End If
End Sub

Private Sub QueryObj_Ack(ByVal Cdt As String)
    Dim SQL As String
    
    SQL = "SELECT House_BusMain.BusSerial FROM House_BusMain" _
        & " INNER JOIN House_BusSub ON House_BusMain.BusSerial = House_BusSub.BusSerial " _
        & " WHERE DsCode = '" & gtydSysConfig.DepCode _
        & "' AND DtCode = '" & gTsObj.Code(tsH_TRAN_IN) & "' AND " & Cdt _

⌨️ 快捷键说明

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