clsdrugamount.cls
来自「医院门诊医生工作站,vb6 SqlServer」· CLS 代码 · 共 53 行
CLS
53 行
VERSION 1.0 CLASS
BEGIN
MultiUse = -1 'True
Persistable = 0 'NotPersistable
DataBindingBehavior = 0 'vbNone
DataSourceBehavior = 0 'vbNone
MTSTransactionMode = 0 'NotAnMTSObject
END
Attribute VB_Name = "clsDrugAmount"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Attribute VB_Ext_KEY = "SavedWithClassBuilder" ,"Yes"
Attribute VB_Ext_KEY = "Top_Level" ,"Yes"
Option Explicit
Public ItemCode As String
Public ItemName As String
Public Amount As Long
Public BusStorage
Public InpatiStorage
Public OpenStorage
Private Sub Class_Initialize()
BusStorage = Null
InpatiStorage = Null
OpenStorage = Null
End Sub
Public Property Get StorageDes() As String
StorageDes = IIf(Storage = -1, "0", CStr(Storage))
End Property
Public Property Get Storage() As Long
If IsNull(BusStorage) And IsNull(InpatiStorage) And IsNull(OpenStorage) Then
Storage = -1
Exit Property
End If
If Not IsNull(BusStorage) Then
Storage = Storage + BusStorage
End If
If Not IsNull(InpatiStorage) Then
Storage = Storage + InpatiStorage
End If
If Not IsNull(OpenStorage) Then
Storage = Storage + OpenStorage
End If
End Property
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?