📄 frmjual.frm
字号:
Begin VB.Label Label13
Alignment = 2 'Center
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
BorderStyle = 1 'Fixed Single
Caption = "Lain-lain"
BeginProperty Font
Name = "OCR A Extended"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00B54524&
Height = 285
Left = 240
TabIndex = 17
Top = 1560
Width = 1455
End
Begin VB.Label Label8
Alignment = 2 'Center
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
BorderStyle = 1 'Fixed Single
Caption = "Makanan"
BeginProperty Font
Name = "OCR A Extended"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00B54524&
Height = 285
Left = 240
TabIndex = 16
Top = 1320
Width = 1455
End
Begin VB.Label Label7
Alignment = 2 'Center
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
BorderStyle = 1 'Fixed Single
Caption = "CD/Disket"
BeginProperty Font
Name = "OCR A Extended"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00B54524&
Height = 285
Left = 240
TabIndex = 15
Top = 1080
Width = 1455
End
Begin VB.Label Label6
Alignment = 2 'Center
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
BorderStyle = 1 'Fixed Single
Caption = "Minum"
BeginProperty Font
Name = "OCR A Extended"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00B54524&
Height = 285
Left = 240
TabIndex = 14
Top = 840
Width = 1455
End
Begin VB.Label Label5
Alignment = 2 'Center
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
BorderStyle = 1 'Fixed Single
Caption = "Print"
BeginProperty Font
Name = "OCR A Extended"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00B54524&
Height = 285
Left = 240
TabIndex = 13
Top = 600
Width = 1455
End
Begin VB.Label Label4
Alignment = 2 'Center
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
BorderStyle = 1 'Fixed Single
Caption = "Keterangan"
BeginProperty Font
Name = "OCR A Extended"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00B54524&
Height = 255
Left = 240
TabIndex = 12
Top = 360
Width = 1455
End
Begin VB.Label Label3
Alignment = 2 'Center
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
BorderStyle = 1 'Fixed Single
Caption = "Total Biaya"
BeginProperty Font
Name = "OCR A Extended"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00B54524&
Height = 255
Left = 4080
TabIndex = 11
Top = 360
Width = 1455
End
Begin VB.Label Label2
Alignment = 2 'Center
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
BorderStyle = 1 'Fixed Single
Caption = "Harga @"
BeginProperty Font
Name = "OCR A Extended"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00B54524&
Height = 255
Left = 2520
TabIndex = 10
Top = 360
Width = 1575
End
Begin VB.Label Label1
Alignment = 2 'Center
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
BorderStyle = 1 'Fixed Single
Caption = "Banyak"
BeginProperty Font
Name = "OCR A Extended"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00B54524&
Height = 255
Left = 1680
TabIndex = 9
Top = 360
Width = 855
End
End
Begin VB.TextBox tgl
Height = 285
Left = 1080
TabIndex = 7
Top = 9000
Width = 1455
End
Begin VB.Data dthg
Caption = "Data2"
Connect = "Access"
DatabaseName = "C:\Program Files\BLacK PeaRL Billing Server\DbTot.BLC"
DefaultCursorType= 0 'DefaultCursor
DefaultType = 2 'UseODBC
Exclusive = 0 'False
Height = 345
Left = 240
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = "Harga"
Top = 9000
Width = 1215
End
Begin VB.Data dtpem
Caption = "Data1"
Connect = "Access"
DatabaseName = "C:\Program Files\BLacK PeaRL Billing Server\DbTot.BLC"
DefaultCursorType= 0 'DefaultCursor
DefaultType = 2 'UseODBC
Exclusive = 0 'False
Height = 345
Left = 2640
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = "Pemasukan"
Top = 8640
Width = 1215
End
End
Attribute VB_Name = "frmjual"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub bc_Change()
tc.Text = Val(bc.Text) * Val(hc.Text)
End Sub
Private Sub bl_Change()
tl.Text = Val(bl.Text) * Val(hl.Text)
End Sub
Private Sub bm_Change()
tm.Text = Val(bm.Text) * Val(hm.Text)
End Sub
Private Sub bmk_Change()
tmk.Text = Val(bmk.Text) * Val(hmk.Text)
End Sub
Private Sub bp_Change()
tp.Text = Val(bp.Text) * Val(hp.Text)
End Sub
Private Sub Form_Load()
tgl.Text = Format(Now, "DD/MMM/YYYY")
End Sub
Private Sub Form_Unload(Cancel As Integer)
FrmMain.Enabled = True
End Sub
Private Sub hl_Change()
tl.Text = Val(bl.Text) * Val(hl.Text)
tk.Text = Val(tc.Text) + Val(tl.Text) + Val(tm.Text) + Val(tmk.Text) + Val(tp.Text)
End Sub
Private Sub MyButton1_Click()
On Error Resume Next
dtpem.Recordset.AddNew
MyButton2.Enabled = True
Frame1.Enabled = True
End Sub
Private Sub MyButton2_Click()
On Error Resume Next
dtpem.Recordset.Fields("Tanggal") = tgl.Text
dtpem.Recordset.Fields("Print") = hp.Text
dtpem.Recordset.Fields("Banyakp") = bp.Text
dtpem.Recordset.Fields("Totalp") = tp.Text
dtpem.Recordset.Fields("Minuman") = hm.Text
dtpem.Recordset.Fields("Banyakmn") = bm.Text
dtpem.Recordset.Fields("Totalmn") = tm.Text
dtpem.Recordset.Fields("Makanan") = hmk.Text
dtpem.Recordset.Fields("Banyakmk") = bmk.Text
dtpem.Recordset.Fields("Totalmk") = tmk.Text
dtpem.Recordset.Fields("CD") = hc.Text
dtpem.Recordset.Fields("Banyakcd") = bc.Text
dtpem.Recordset.Fields("Totalcd") = tc.Text
dtpem.Recordset.Fields("Lain lain") = hl.Text
dtpem.Recordset.Fields("Banyakln") = bl.Text
dtpem.Recordset.Fields("Totalln") = tl.Text
dtpem.Recordset.Fields("TotalKes") = Val(tc.Text) + Val(tl.Text) + Val(tm.Text) + Val(tmk.Text) + Val(tp.Text)
dtpem.Recordset.Update
MyButton2.Enabled = False
Frame1.Enabled = False
bp.Text = ""
bc.Text = ""
bm.Text = ""
bmk.Text = ""
tk.Text = ""
bl.Text = ""
XPText1.Text = ""
dtpem.Refresh
End Sub
Private Sub MyButton3_Click()
tk.Text = Val(tc.Text) + Val(tl.Text) + Val(tm.Text) + Val(tmk.Text) + Val(tp.Text)
End Sub
Private Sub MyButton4_Click()
XPFrame2.Visible = True
MyButton1.Enabled = False
MyButton2.Enabled = False
MyButton3.Enabled = False
MyButton4.Enabled = False
MyButton8.Enabled = False
End Sub
Private Sub MyButton5_Click()
pr.Enabled = True
mn.Enabled = True
mk.Enabled = True
cd.Enabled = True
End Sub
Private Sub MyButton6_Click()
On Error Resume Next
dtpem.Recordset.MovePrevious
End Sub
Private Sub MyButton7_Click()
XPFrame2.Visible = False
MyButton1.Enabled = True
MyButton3.Enabled = True
MyButton4.Enabled = True
MyButton8.Enabled = True
End Sub
Private Sub MyButton8_Click()
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -