• Tidak ada hasil yang ditemukan

HSU Take Home Docu Format

N/A
N/A
Protected

Academic year: 2017

Membagikan "HSU Take Home Docu Format"

Copied!
10
0
0

Teks penuh

(1)

UNIVERSITY OF MAKATI

Higher School ng UMAK

TAKE HOME ACTIVITY #2

Student No

K11512180 / K11500869

Student Name

LEE, RONN MICO R./ SAN LUIS, MATT GUIGSY

Elective

IT Software – Programming using VB.Net

Date/Time Finished

3/7/2016 8:21pm

Instructor

Prof. R. Dorin

I/we certify with all honesty that this case study has no other copies and

that I/we have dedicated my time and effort for this to be accomplished.

We are confident and willing to answer all questions regarding this case study

and I will not take credit on things that I did not do.

_______________________

________________________ _________________________

Student’s Signature

Student’s Signature

Student’s Signature

(2)
(3)
(4)

New User Form Code

Public Class frmNewUser

Private Sub btnExit_Click(sender As System.Object, e As System.EventArgs) Handles btnExit.Click

Me.Close() frmLogin.Show() End Sub

Private Sub btnLogin_Click(sender As System.Object, e As System.EventArgs) Handles btnLogin.Click

If txtPass.Text = "" Or txtUser.Text = "" Then

MessageBox.Show("Please Fill Up the Form", "Error!", MessageBoxButtons.OK,

MessageBoxIcon.Error) Else

strPass(intFlag) = txtPass.Text strUser(intFlag) = txtUser.Text

MessageBox.Show("Your New Account is Made!", "Success!", MessageBoxButtons.OK,

MessageBoxIcon.None) intFlag = intFlag + 1 frmLogin.Show() Me.Close() End If

End Sub

Private Sub frmNewUser_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load

End Sub End Class

Log in Form

(5)

Private Sub btnCreate_Click(sender As System.Object, e As System.EventArgs) Handles

Private Sub btnLogin_Click(sender As System.Object, e As System.EventArgs) Handles btnLogin.Click

If txtPass.Text = strDefPass And txtUser.Text = strDefUser Then

MessageBox.Show("You have successfully logged in!", "Logged in!",

"Unsuccessful!", MessageBoxButtons.OK, MessageBoxIcon.Information) End If

End If End Sub

Private Sub btnExit_Click(sender As System.Object, e As System.EventArgs) Handles btnExit.Click

frmMain.Show() Me.Close() End Sub

Private Sub frmLogin_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load

End Sub End Class

Main Form

(6)

Public dblMouse As Double = 100, dblHardDisk As Double = 1000, dblKeyboard As Double = 250, dblMonitor As Double = 2000, dblDiskDrive = 200

Public dblQuantity As Double = 0

Public intTransactions As Integer = 1, intTextFlag As Integer = 1, intItemNumber As Integer = 0 Public dblSubtotal As Double = 0, dblDiscount As Double = 0, dblAmountPayable As Double = 0

Public dblTotalDiscount As Double = 0, intTotalItems As Integer = 0, dblTotalAmountPayable = 0

Private Sub AboutTheApplicationToolStripMenuItem_Click(sender As System.Object, e As System.EventArgs) Handles AboutTheApplicationToolStripMenuItem.Click

MessageBox.Show(My.Application.Info.Title.ToString & vbNewLine & vbNewLine & My.Application.Info.Description.ToString & vbNewLine & vbNewLine & "Version: " & My.Application.Info.Version.ToString, "About")

End Sub

Private Sub ExitToolStripMenuItem_Click(sender As System.Object, e As System.EventArgs) Handles ExitToolStripMenuItem.Click

btnExit.PerformClick() End Sub

Private Sub ComputeToolStripMenuItem_Click(sender As System.Object, e As System.EventArgs) Handles ComputeToolStripMenuItem.Click

btnCompute.PerformClick() End Sub

Private Sub NewTransactionToolStripMenuItem_Click(sender As System.Object, e As System.EventArgs) Handles NewTransactionToolStripMenuItem.Click

btnNewTrans.PerformClick() End Sub

Private Sub LockToolStripMenuItem_Click(sender As System.Object, e As System.EventArgs) Handles LockToolStripMenuItem.Click

Me.Hide() frmLogin.Show() End Sub

Private Sub btnExit_Click(sender As System.Object, e As System.EventArgs) Handles btnExit.Click

If MessageBox.Show("Are you sure you want to close the application?", "Confirmation",

MessageBoxButtons.YesNo, MessageBoxIcon.Question) = Windows.Forms.DialogResult.Yes Then Application.Exit()

End If End Sub

Private Sub btnCompute_Click(sender As System.Object, e As System.EventArgs) Handles btnCompute.Click

(7)

End If

lblDiscount.Text = FormatCurrency(dblDiscount) dblAmountPayable = dblSubtotal - dblDiscount

lblAmountPayable.Text = FormatCurrency(dblAmountPayable) lblTotalItems.Text = intItemNumber

dblTotalAmountPayable += dblAmountPayable dblTotalDiscount += dblDiscount

intTotalItems += intItemNumber

rtbOutput.Text += vbNewLine & vbNewLine & "Subtotal: " & dblSubtotal & vbNewLine &

"Discount: " & dblDiscount & vbNewLine & vbNewLine & "AMOUNT PAYABLE: " & dblAmountPayable & vbNewLine & vbNewLine & "THANK YOU!"

btnCompute.Enabled = False End Sub

Private Sub lstCompParts_SelectedIndexChanged(sender As System.Object, e As System.EventArgs) Handles lstCompParts.SelectedIndexChanged

Private Sub frmMain_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load

rtbOutput.SelectionAlignment = HorizontalAlignment.Center

rtbOutput.Text += "HSU Computer Shop" & vbNewLine & "West Rembo, Makati City" & vbNewLine & "TIN: 123-123-332-112" & vbNewLine & vbNewLine & "Day/Time: " & Format(Now,

"mm/dd/yyyy") & " " & Format(Now, "hh:mm:ss tt") & vbNewLine &

"---" & vbNewLine End Sub

(8)

rtbOutput.Text += Format(dblQuantity) & " " &

lstCompParts.SelectedItem.ToString.PadRight(20) & FormatCurrency(lblUnitPrice.Text * dblQuantity).PadLeft(20).PadRight(20) & vbNewLine

End If End Sub

Private Sub btnNewTrans_Click(sender As System.Object, e As System.EventArgs) Handles btnNewTrans.Click

intTransactions += 1 intTextFlag = 1

lstCompParts.SelectedIndex = -1

rtbOutput.Text = "HSU Computer Shop" & vbNewLine & "West Rembo, Makati City" & vbNewLine & "TIN: 123-123-332-112" & vbNewLine & vbNewLine & "Day/Time: " & Format(Now,

"mm/dd/yyyy") & " " & Format(Now, "hh:mm:ss tt") & vbNewLine &

"---" & vbNewLine

Private Sub SummaryToolStripMenuItem_Click(sender As System.Object, e As System.EventArgs) Handles SummaryToolStripMenuItem.Click

MessageBox.Show("SUMMARY" & vbNewLine & "Total Number Of Items Sold: " &

intTotalItems & vbNewLine & "Total Discount: " & dblTotalDiscount & vbNewLine & "Total Sales: "

& dblTotalAmountPayable, "Sales Summary", MessageBoxButtons.OK,

MessageBoxIcon.Information) End Sub

Private Sub grpCompParts_Enter(sender As System.Object, e As System.EventArgs) Handles grpCompParts.Enter

End Sub End Class

IPO CHART

(9)

TOE Chart

(10)

Referensi

Dokumen terkait

I hereby certify that this research paper entitled “The Use of Project -Based Learning in Teaching Analytical Exposition Text to Improve Students’ Speaking Skill” is

I certify that I am currently not receiving any financial assistance for my postgraduate study and will not accept any financial assistance while receiving this

I hereby certify that this thesis entitled “Transitivity System in Exposition Texts for Senior High School National Examinations” is completely my own work. I am fully

I hereby certify that this research paper entitled “The Effectiveness of Jigsaw Technique in Improving Students’ Reading Comprehension ” is my. original work and

I hereby certify that this paper entitled “ Person Deixis in Bukan Empat Mata and Show Imah Talk Shows ” is my original work. I am fully aware that I

I hereby certify that this thesis entitled TEACHING SPEAKING THROUGH STORYTELLING (A Study at a University in Bandar Lampung) is completely my own work. I am

I hereby certify that this thesis entitled ‘ Critical Literacy in the Teaching of Writing Hortatory Exposition Text based on Genre Pedagogy Approach’ is completely my own

Declaration I certify that this thesis does not incorporate without acknowledgment any matenal previonsly submitted for a degree or diploma in any university, and that to the best of