?? sk_yao_edit1.frm
字號:
VERSION 5.00
Begin VB.Form sk_yao_edit1
BorderStyle = 1 'Fixed Single
Caption = "齊英天肛腸醫(yī)院綜合信息管理系統(tǒng)"
ClientHeight = 3945
ClientLeft = 45
ClientTop = 330
ClientWidth = 6405
Icon = "sk_yao_edit1.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3945
ScaleWidth = 6405
StartUpPosition = 2 '屏幕中心
Begin VB.Frame Frame1
Caption = "藥品信息"
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 2775
Left = 240
TabIndex = 3
Top = 240
Width = 5895
Begin VB.TextBox v_bianma
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 1200
TabIndex = 9
Top = 240
Width = 1575
End
Begin VB.TextBox v_name
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 4080
TabIndex = 8
Top = 240
Width = 1575
End
Begin VB.TextBox v_guige
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 1200
TabIndex = 7
Top = 840
Width = 1575
End
Begin VB.TextBox v_danwei
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 4080
TabIndex = 6
Top = 840
Width = 1575
End
Begin VB.TextBox v_danjia
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 1200
TabIndex = 5
Text = "0"
Top = 1440
Width = 1575
End
Begin VB.TextBox v_shuliang
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 4080
TabIndex = 0
Top = 1440
Width = 1575
End
Begin VB.TextBox v_jine
Enabled = 0 'False
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 1200
TabIndex = 4
Text = "0"
Top = 2040
Width = 1575
End
Begin VB.Label Label1
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 = 240
TabIndex = 16
Top = 360
Width = 840
End
Begin VB.Label Label2
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 = 3120
TabIndex = 15
Top = 360
Width = 840
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "規(guī) 格"
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 210
Left = 240
TabIndex = 14
Top = 960
Width = 735
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 = 3120
TabIndex = 13
Top = 960
Width = 840
End
Begin VB.Label Label5
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 = 240
TabIndex = 12
Top = 1560
Width = 735
End
Begin VB.Label Label6
AutoSize = -1 'True
Caption = "數(shù) 量"
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 210
Left = 3120
TabIndex = 11
Top = 1560
Width = 840
End
Begin VB.Label Label7
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 = 240
TabIndex = 10
Top = 2160
Width = 735
End
End
Begin VB.CommandButton Command1
Caption = "確 定"
Default = -1 'True
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 1800
TabIndex = 2
Top = 3240
Width = 975
End
Begin VB.CommandButton Command2
Caption = "放 棄"
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 3240
TabIndex = 1
Top = 3240
Width = 975
End
End
Attribute VB_Name = "sk_yao_edit1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If Not IsNumeric(v_danjia.Text) Then
b1 = MsgBox("警告,單價不能為空或非數(shù)字!", vbQuestion, "系統(tǒng)提示!")
v_danjia.SetFocus
Exit Sub
End If
If Not IsNumeric(v_shuliang.Text) Then
b1 = MsgBox("警告,數(shù)量不能為空或非數(shù)字!", vbQuestion, "系統(tǒng)提示!")
v_shuliang.SetFocus
Exit Sub
End If
'藥品臨時表
'Dim sql1 As String
'sql1 = "insert into 藥品臨時表 (編碼,卡號,藥品名稱,規(guī)格,單位,單價,數(shù)量,金額,操作員) values ('" + Trim(v_bianma.Text) + "','" + Trim(sk_hj03.v_session_id1) + "','" + Trim(v_name.Text) + "','" + Trim(v_guige.Text) + "','" + Trim(v_danwei.Text) + "','" + Trim(v_danjia.Text) + "','" + Trim(v_shuliang.Text) + "','" + Trim(v_jine.Text) + "','" + CStr(v_denglu.v_name1) + "')"
'Dim rs1 As New ADODB.Recordset
'rs1.Open sql1, db
Dim sql As String
sql = "insert into 臨時表 (項目名稱,價格,操作員,數(shù)量,狀態(tài)) values ('" + v_name.Text + "','" + v_jine.Text + "','" + Trim(v_denglu.v_name1) + "','" + CStr(v_shuliang.Text) + "','1')"
Dim rs As New ADODB.Recordset
rs.Open sql, db
Unload Me
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Form_Load()
id1 = sk_fu_yao1.b_cuo1
Dim sql As String
sql = "select * from 藥品簡碼 where id=" + CStr(id1)
Dim rs As New ADODB.Recordset
rs.Open sql, db
If Not rs.EOF Then
v_bianma.Text = rs("編碼")
v_name.Text = rs("藥品名稱")
v_guige.Text = rs("規(guī)格")
v_danwei.Text = rs("單位")
v_danjia.Text = rs("單價")
End If
Private Sub v_shuliang_Change()
If Not IsNumeric(v_shuliang.Text) Then
b1 = MsgBox("警告,單價不能為空或非數(shù)字!", vbQuestion, "系統(tǒng)提示!")
v_danjia.SetFocus
Exit Sub
End If
Dim a As Double
Dim b As Double
a = v_danjia.Text
b = v_shuliang.Text
v_jine.Text = a * b
End Sub
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -