Documente Academic
Documente Profesional
Documente Cultură
Introduction
Since the beginning of the 21st century, shopping centers have
become an essential part of human life in the Philippines as they have
become in the world. Since their emergence, shopping centers in the
Philippines have incessantly developed, and such a steady development
has recently resulted in growing investments rates in the Metro and
provinces, which has a substantial position with regards to socio-economic
concerns. Due to this fact, several concerns are deeply examined in terms of
socio-economic and physical characteristics of the city, which is suitable for
the establishments of shopping centers. Adding to this point, shopping
centers, which are the big investments for the provinces where they are built
also, affect the economic, sociologic, and spatial conditions of their
environments.
Every business has to deal with some form of transactions. How a
company decides to manage these transactions can be an important factor
in its success. As a business grows, its number of transactions usually grows
as well. Careful planning must be done in order to ensure that transaction
management does not become too complex. Transaction processing system
is a tool that can help growing businesses deal with their increasing number
of transactions.
A transaction processing system (TPS) or transaction server is a software
system,
or
software/hardware
combination,
that
supports
transaction
I-1
Shangri-La Plaza Corporation
Horizon novel of James Hilton in 1933, the land features and design of the
hotel encapsulates the type of service and serenity this hotel has achieved
and made its name worldwide. Today, it is regarded as one of the Philippines
White Pages finest hotel ownership and management corporations.
The shops and malls within Shangrila Plaza provide high-end products
and variety of sophisticated choices such as Hugo Boss, Marks & Spencer,
Anne Kline, or Kamiseta. You can also visit the malls of Cole Haan to Zara,
Crossing, and Rustans, which offers more fashion and clothing choices.
Home decor shops from native or locally manufactured antiques inspire the
display of home accents and furniture department. If you are looking to
change the look of your kitchen, you may find several specialty shops
dealing with different modern to classic designs and types of kitchenware
and decorations. Some shops offer automobile accessories and home theatre
systems.
The process of purchasing starts with any department of Shangri-La Plaza
corporation. The staffs or manager of any department starts to fill out the form
named Purchase Request. It is then approved first by the manager of the
department if the staff is the one who requested for it. But if it's the manager who
made the purchase request, the request is then sent automatically to the
Purchasing department where all requests are being sorted and analyzed for
bidding. Once bidding is done, the purchasing department selects the winner and
gives the purchase order to the supplier of the product that corresponds with the
I-3
Shangri-La Plaza Corporation
purchase request number. The inventory functions as a storage for deliveries and
as a monitor to see what needs to be maintained and requested in the corporation.
I-4
Shangri-La Plaza Corporation
Specific Problems
1.
I-5
Shangri-La Plaza Corporation
information will be shared easily since the papers are put into outgoing trays
and can be exposed to any unauthorized personnel.
1.3. Objectives
General Objective
To integrate the purchase and inventory system into a computerized
system.
I-7
Shangri-La Plaza Corporation
Specific Objective
I-8
Shangri-La Plaza Corporation
and
response
through
the
use
of
computer.
By
this,
I-9
Shangri-La Plaza Corporation
I-10
Shangri-La Plaza Corporation
To Developers
The study of purchase and inventory system can be a learning
paradigm in Software Analysis and Design subject to enhance the
I-11
Shangri-La Plaza Corporation
the
developers
in
the
process
of
making
the
system
and
I-12
Shangri-La Plaza Corporation
I-13
Shangri-La Plaza Corporation
I-14
Shangri-La Plaza Corporation
LIMITATIONS
Bidding procedure is a process by which the company choses the best
bidder that sells the best product at low cost but not diminishing the product
quality. In addition, module for the bidding procedure will not be included
because it requires human judgment to ensure proper product assessment.
Accounting Module for accounting department will not be included in this
system because we are mainly focusing on the purchasing inventory of the
company.
Economic Order Quantity (EOQ) system that produces Recommended
Purchase Report with option to create purchase orders based on sales history
or budget
Return on investment (ROI) analysis during purchase order entry helps
determine optimal order quantity based on quantity break pricing
Vendor discounts by weights and cubes
I-15
Shangri-La Plaza Corporation
2.0. Methodology
The Iterative systems development life cycle (SDLC), also referred to
as the application development life-cycle, is a term used in systems
engineering, information systems and software engineering to describe a
process for planning, creating, testing, and deploying an information system.
The systems development life-cycle concept applies to a range of hardware
and software configurations, as a system can be composed of hardware only,
software only, or a combination of both.
I-16
Shangri-La Plaza Corporation
I-17
Shangri-La Plaza Corporation
After analyzing the all the data that were collected, the developers came up
with an idea to make a better system based on what the company needed.
The developers constructed tables and forms that are easier to use. It is a
I-18
Shangri-La Plaza Corporation
The users of the system will lately see a need for improvement to the system
made by the developers. Since the developers have chosen the SDLC,
maintenance of the system is a part of the process. So once there are issues
that needs to be addressed with regards to the system made by the
developers, the users should contact the Information Systems Department to
inform the developers about the changes needed by the users of the system.
of
the
requisitioning
department.
The
requisitioning
I-22
Shangri-La Plaza Corporation
Once the bidder is declared a winner in the bidding process, the Purchasing
department will then issue a Purchase Order to the winning bidder of the
items to be ordered or sometimes called the NTP or Notice to Proceed.
6. What is contained inside the Purchase Order Form?
Together with the agreed items to be delivered by the contractor are these
fields:
a. Item code
b. Description
c. Quantity
d. Unit
e. Unit price
f. Amount
g. Recipient information
h. Date
i. Total amount
j. Instruction and conditions
k. Approving bodies signature
7. After a Purchase Order or Notice to Proceed is received by the
contractor, what will be done next?
I-23
Shangri-La Plaza Corporation
They need to fill out the MSRS or the Materials/Supplies Requisition Slip and
submit it to the person in charge of the Inventory Store Room. Once the
Inventory Management receives the MSRS, they will then send the item to
the requisitioning department and make changes to the inventory system
record.
11. What features does the Inventory System have for item/s that is
needed urgently?
The Inventory System has a Buffered Stock System wherein they maintain a
specific number of items to the Inventory Store Room so that they can
provide the request of the requisitioning department immediately for item/s
that are frequently being requested. The requisitioning department just need
to submit an MSRS or Materials/Supplies Requisition Slip to the Inventory
Store Room for items under Buffered stock. So when the stock decreases its
maintained number of item/s stock, it automatically generates Purchase
Requisition (PR) for a certain requisitioning department to be submitted to
the Purchasing Department after approving the P.R.
Objective
I-25
Definition of terms
PAS Purchasing Account Staff
P.R. Purchase Requisition
P.O. Purchase Order
CAPEX Capital Expenditure Authorization Request
RFP Request for payment
NTP Notice to Proceed
3.0
Reference
4.0
Details
4.1. Guidelines
4.1.1 P.R or CAPEX
Stock/Inventory Items (under Inventory Management Control):
Requisition by
: Inventory Control Supervisor
Recommended by : Accounting Manager
Approved by : Finance Division Manager and concerned Division
Head
Non-Stock Items
Requisitioned by : Department Personnel
Recommended by : Department Head
Approved by : Division Head
CAPEX (replaces P.R. form for CAPEX items)
Requisitioned by : Department Manager
Recommended by : Division manager and Finance Manager
Approved by : EVP/G.M. and/or President
Note: Approved P.R. or CAPEX are then distributed by the
requisitioning units personnel
As follows:
For P.R.
Original (white) and Pink copy : Purchasing Department
Blue copy
: Requisitioning Department (copy
will serve as
Receiving copy of endusers)
Yellow copy
: attached to the RFP for processing
of payment
(Copy will serve as
Finance Copy)
4.1.2 Bidding Invitation
I-26
Shangri-La Plaza Corporation
I-29
Shangri-La Plaza Corporation
4.1 Flowchart
Activity
Responsibility
Start
Requisitioning
Prepares P.R or
Department
Approval of P.R
CAPEX
No
Approving
Authorities
Submits approved P.R
or CAPEX to
Yes
Requisitioning
Receives copy of P.R.
or CAPEX
Department
Logs P.R./CAPEX
details in e-logbook
Purchasing Account
Prepares bidding
Shangri-Larequirement
Plaza Corporation
A
I-30
Staff (PAS)
Purchasing Account
Staff (PAS)
Purchasing Account
Staff (PAS)
Activity
Responsibility
Finalizes list of
Purchasing Account
Staff (PAS)
Schedules a Pre-Bid
Conference
Conducts Pre-Bid
Conference
Department
Submits bid
Shangri-La Plaza Corporation
Conducts
B meeting
clarificatory
Opens
Tabulates
sealed
bid
bid
I-31
Bidder
Purchasing Account
Staff (PAS)
I-32
Shangri-La Plaza Corporation
Activity
Responsibility
Reviews/Recommend
Purchasings Account
Staff
award
(PAS)/Requisitioning
Department
Prepares
Purchasing Department /
Submits for approval
Requisitioning Department
Approved?
Purchasing Account
Staff (PAS)
No
Approving
Authorities
Yes
Acknowledges
award
If necessary,
Purchasing
Account
requests for
preparation
of
Staff (PAS)
C
I-33
Shangri-La Plaza Corporation
Vendor
Requisitioning
Department
I-34
Shangri-La Plaza Corporation
Activity
Responsibility
Prepares contract
Legal
Acknowledges
receipt of contract
Vendor
End
5.0 Attachments
DP-PUR-4.1A1 Notice to Proceed
6.0 Forms
Purchase Requisition (Refer to DP-PUR-4.2F3)
Purchase Order (Refer to DP-PUR-4.2F2)
CAPEX (Refer to DP-PUR-4.2F4)
DP-PUR-4.1F1 Request for Payment
I-35
Shangri-La Plaza Corporation
Chapter 8
I-36
Shangri-La Plaza Corporation
Listed below are the minimum required software specification to run the
Shangri-La Procurement System application smoothly.
Microsoft Windows 7
MySql
Microsoft.net Framework 3.5
Department Staff/Head
Computer Literate and Involved in the Procurement process
Must know the process and protocol of Procuring assets and services.
Employee of Shangri-La Plaza Corporation
Has a user account on the system
SYSTEM EVALUATION
Department: _________________________________
I-37
Shangri-La Plaza Corporation
Date: _______________________________________
CRITERIA
Proposed System
Manual System
User-friendly
Security
Accuracy
Consistency
Reliability
Completeness
Efficiency
Usability
Departments
DELIVER
ORDERS
CONFIRMATI
ON
Shangri-La Plaza
Procurement System
MSRS
I-38
Shangri-La Plaza Corporation
PURCHASE
REQUEST
QUOTATION
S
DELIVER
ORDERS
SELECT
BIDDER
PRE-BID
Bidder/Supplier
INVITATION
PURCHASE
CONTEXT DIAGRAM (PROPOSED)
ORDER
Departments
DELIVER
ORDERS
CONFIRMATI
ON
MSRS
PURCHASE
REQUEST
Shangri-La Plaza
Procurement System
DELIVER
ORDERS
Supplier
Shangri-La Plaza Corporation
PURCHASE
ORDER
I-39
I-40
Shangri-La Plaza Corporation
I-41
Shangri-La Plaza Corporation
I-42
Shangri-La Plaza Corporation
End If
End Sub
Private Sub frmMain_KeyDown(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
If e.KeyCode = Keys.Escape Then home()
End Sub
Private Sub frmMain_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles MyBase.Load
prodCrt()
pRM.Location = New Point(285, 264)
picLogo.Location = New Point((Me.Width / 2) - (picLogo.Width / 5), (Me.Height / 2) (picLogo.Height / 2))
If lblUserlevel.Text <> "System Administrator" Then 'Or lblUserlevel.Text <> "Purchasing"
Then
bFM.Visible = False
bPur.Visible = False
bInv.Visible = False
bSet.Visible = False
grboxPendReq.Visible = False
grpBoxProdLevel.Visible = False
Else
bFM.Visible = True
bPur.Visible = True
bInv.Visible = True
bSet.Visible = True
grboxPendReq.Visible = True
grpBoxProdLevel.Visible = True
End If
mng()
prch()
addsupcount()
'levelofprodcrit()
levelprodreorder()
End Sub
I-43
Shangri-La Plaza Corporation
End Sub
Private Sub bLogout_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles bLogout.Click
Me.Close()
End Sub
Private Sub bFM_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
bFM.Click
pFM.Show()
pRS.Hide()
pRM.Hide()
pPur.Hide()
pInv.Hide()
pSet.Hide()
pMenu.Hide()
End Sub
Private Sub bHome_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles bHome.Click
home()
End Sub
Private Sub bUsers_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles bUsers.Click
home()
frmUsers.clearall(frmUsers)
frmUsers.loadlist()
frmUsers.ShowDialog()
End Sub
Private Sub lUserlevel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles lblUserlevel.Click
home()
End Sub
Private Sub lUserlevel_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs)
Handles lblUserlevel.TextChanged
'If lUserlevel.Text = "Manger" Or lUserlevel.Text = "Staff" Then
' bFM.Show()
' bReq.Location = New Point(22, 266)
' bPur.Hide()
' bInv.Location = New Point(22, 321)
' bSet.Location = New Point(22, 376)
'ElseIf lUserlevel.Text = "Purchasing" Then
' bFM.Show()
' bReq.Location = New Point(22, 266)
' bPur.Hide()
' bInv.Location = New Point(22, 321)
' bSet.Location = New Point(22, 376)
'Else
' bFM.Show()
' bReq.Location = New Point(22, 266)
' bPur.Hide()
' bInv.Location = New Point(22, 321)
' bSet.Location = New Point(22, 376)
'End If
End Sub
I-44
Shangri-La Plaza Corporation
I-45
Shangri-La Plaza Corporation
End Sub
Private Sub frmMain_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles
Me.Resize
picLogo.Location = New Point((Me.Width / 2) - (picLogo.Width / 5), (Me.Height / 2) (picLogo.Height / 2))
End Sub
Private Sub picLogo_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles picLogo.Click
home()
End Sub
Private Sub pHome_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles
pHome.Click
home()
End Sub
Private Sub pbUser_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles pbUser.Click
home()
End Sub
Private Sub pbMenu_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles pbMenu.Click
home()
End Sub
Private Sub lblUser_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles lblUser.Click
home()
End Sub
Private Sub lblMenu_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles lblMenu.Click
home()
End Sub
Private Sub lblName_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles lblName.Click
home()
End Sub
Public Sub home()
pFM.Hide()
pRS.Hide()
pRM.Hide()
pPur.Hide()
pInv.Hide()
pSet.Hide()
pMenu.Hide()
End Sub
Private Sub bQL_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
bQL.Click
home()
connect()
rs.Open("select * from tbllevel", cnn)
I-46
Shangri-La Plaza Corporation
I-47
Shangri-La Plaza Corporation
I-48
Shangri-La Plaza Corporation
If mngpendingno = 0 Then
lnkMngNoPend.Text = "No pending request for manager"
Else
lnkMngNoPend.Text = mngpendingno & " pending request for manager"
End If
End Sub
Public Sub prch()
frmPRStat.loadlist()
purchpendingno = frmPRStat.lvProd.Items.Count
If purchpendingno = 0 Then
lnkPrchNoPend.Text = "No pending request for manager"
Else
lnkPrchNoPend.Text = purchpendingno & " pending request for purchasing"
End If
End Sub
Private Sub lnkMngNoPend_LinkClicked(ByVal sender As System.Object, ByVal e As
System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles lnkMngNoPend.LinkClicked
home()
frmPRD.loadlist()
frmPRD.ShowDialog()
End Sub
Private Sub lnkPrchNoPend_LinkClicked(ByVal sender As System.Object, ByVal e As
System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles lnkPrchNoPend.LinkClicked
home()
frmPRStat.loadlist()
frmPRStat.ShowDialog()
End Sub
Public Sub levelofprodcrit()
connect()
rs.Open("select * from tblproduct where qty <= critical", cnn)
frmProducts.lvProd.Items.Clear()
Do While rs.EOF = False
Dim lv As New ListViewItem(rs(0).Value.ToString)
lv.SubItems.Add(Replace(rs(2).Value, "^_^", "'") & " (" & rs(1).Value & ")")
frmProducts.lvProd.Items.Add(lv)
rs.MoveNext()
lnkCrit.Text = frmProducts.lvProd.Items.Count & " product that in critical"
Loop
End Sub
Private Sub lnkCrit_LinkClicked(ByVal sender As System.Object, ByVal e As
System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles lnkCrit.LinkClicked
home()
prodCrt()
frmProducts.ShowDialog()
End Sub
Public Sub prodCrt()
connect()
rs.Open("select * from tblproduct where qty < critical and arch = 0", cnn)
frmProducts.lvProd.Items.Clear()
Do While rs.EOF = False
Dim lv As New ListViewItem(rs(0).Value.ToString)
I-49
Shangri-La Plaza Corporation
lv.SubItems.Add(Replace(rs(2).Value, "^_^", "'") & " (" & rs(1).Value & ")")
frmProducts.lvProd.Items.Add(lv)
rs.MoveNext()
lnkCrit.Text = frmProducts.lvProd.Items.Count & " product that in critical"
Loop
frmProducts.clearall(frmProducts)
End Sub
Public Sub levelprodreorder()
connect()
rs.Open("select * from tblproduct where arch = 1", cnn)
frmProducts.lvProd.Items.Clear()
Do While rs.EOF = False
Dim lv As New ListViewItem(rs(0).Value.ToString)
lv.SubItems.Add(Replace(rs(2).Value, "^_^", "'") & " (" & rs(1).Value & ")")
frmProducts.lvProd.Items.Add(lv)
rs.MoveNext()
lnkReorder.Text = frmProducts.lvProd.Items.Count & " product that in reorder"
Loop
End Sub
Private Sub lnkReorder_LinkClicked(ByVal sender As System.Object, ByVal e As
System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles lnkReorder.LinkClicked
levelprodreorder()
home()
frmProducts.clearall(frmProducts)
frmProducts.ShowDialog()
End Sub
Private Sub btnVerfy_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles btnVerfy.Click
home()
frmVerifySup.lvProd.Items.Clear()
frmVerifySup.txtProdName.Text = ""
frmVerifySup.ShowDialog()
End Sub
Public Sub addsupcount()
frmELog.loadlist()
addSuppno = frmELog.lvProd.Items.Count
If addSuppno = 0 Then
lnkAddSup.Text = "No pending for assigning supplier"
Else
lnkAddSup.Text = addSuppno & " pending assigning supplier"
End If
End Sub
Private Sub lnkAddSup_LinkClicked(ByVal sender As System.Object, ByVal e As
System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles lnkAddSup.LinkClicked
home()
frmELog.loadlist()
frmELog.ShowDialog()
End Sub
Private Sub Button14_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles Button14.Click
home()
I-50
Shangri-La Plaza Corporation
frmMSRS.ShowDialog()
End Sub
Private Sub btnReport_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles btnReport.Click
home()
frmReports.ShowDialog()
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles Button3.Click
End Sub
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles Button4.Click
home()
frmItems.ShowDialog()
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles Button1.Click
frmLogin.ShowDialog()
End Sub
End Class
Public Class frmPR
Public a, b, c, str As String
Public d, ctr, f, g, pid, n As Integer
Public Sub loadcombo()
'connect()
'rs.Open("select * from tblproduct where arch = 0", cnn)
'cbProd.Items.Clear()
'cbProd.Items.Add("-Select-")
'Do While rs.EOF = False
' cbProd.Items.Add(Replace(rs(2).Value, "^_^", "'"))
' rs.MoveNext()
'Loop
'cbProd.Text = "-Select-"
End Sub
Private Sub cbProd_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles cbProd.SelectedIndexChanged
'addnew()
'txtQty.Text = Nothing
'lblQTY.Text = Nothing
'If cbProd.Text <> "-Select-" Then
' connect()
' rs.Open("select * from tblproduct where prodname = '" & Replace(cbProd.Text, "^_^", "'")
& "'", cnn)
' Do While rs.EOF = False
'
a = rs(0).Value
'
b = rs(1).Value
I-51
Shangri-La Plaza Corporation
'
c = Replace(rs(3).Value, "^_^", "'")
'
ToolTip1.Active = True
'
ToolTip1.SetToolTip(cbProd, "Product ID: " & a & Environment.NewLine & "Product
Code: " & b & Environment.NewLine & "Description:" & Environment.NewLine & c)
'
lblQTY.Text = rs(4).Value
'
rs.MoveNext()
' Loop
' d=0
' txtQty.Enabled = True
'Else
' ToolTip1.Active = False
' txtQty.Enabled = False
'End If
End Sub
Private Sub frmPR_FormClosing(ByVal sender As Object, ByVal e As
System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
'If n <> 1 Then
' For k As Integer = 0 To lvProd.Items.Count - 1
'
connect()
'
cnn.Execute("update tblproduct set qty = qty + '" &
CDbl(lvProd.Items(k).SubItems(2).Text) & "' where prodid = '" & lvProd.Items(k).Text & "'")
' Next
'End If
End Sub
Private Sub frmPR_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles MyBase.Load
prodId()
'addnew()
End Sub
Public Sub clearall()
lvProd.Items.Clear()
bRFL.Enabled = False
lblQTY.Text = Nothing
txtQty.Text = Nothing
txtQty.Enabled = False
End Sub
Private Sub bAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
bAdd.Click
'If bAdd.Text = "ADD" Then
' If cbProd.Text = "-Select-" Or txtQty.Text = Nothing Then MsgBox("(*) Please fill up the
required fields!", vbCritical, "Fill up!") : Exit Sub
' If CDbl(txtQty.Text) > CDbl(lblQTY.Text) Then MsgBox("Insufficient stock. You only have "
& lblQTY.Text & " product in your inventoy", vbCritical, "Insufficient stock!") : Exit Sub
' For k As Integer = 0 To lvProd.Items.Count - 1
'
If cbProd.Text = lvProd.Items(k).SubItems(1).Text Then
'
lvProd.Items(k).SubItems(2).Text = CDbl(lvProd.Items(k).SubItems(2).Text) +
CDbl(txtQty.Text)
'
d=1
'
End If
' Next
'
If d <> 1 Then
I-52
Shangri-La Plaza Corporation
'
'
'
'
'
'
connect()
'
cnn.Execute("update tblproduct set qty = '" & CDbl(lblQTY.Text) - CDbl(txtQty.Text) & "'
where prodid = '" & a & "'")
'
lblQTY.Text = CDbl(lblQTY.Text) - CDbl(txtQty.Text)
'
txtQty.Text = Nothing
' End If
'ElseIf bAdd.Text = "ADD NEW" Then
' frmReq.lblID.Text = lblID.Text
' frmMain.home()
' frmReq.ShowDialog()
'End If
addProd()
End Sub
Private Sub lvProd_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles lvProd.SelectedIndexChanged
If lvProd.SelectedItems.Count = 0 Then
bRFL.Enabled = False
Else
bRFL.Enabled = True
For o As Integer = 0 To lvProd.Items.Count - 1
connect()
rs.Open("select * from tblproduct where prodid = '" & lvProd.Items(o).Text & "'", cnn)
Do While rs.EOF = False
pid = rs(4).Value
rs.MoveNext()
Loop
Next
End If
End Sub
Private Sub bRFL_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
bRFL.Click
'connect()
'cnn.Execute("update tblproduct set qty = qty + '" &
CDbl(lvProd.SelectedItems(0).SubItems(2).Text) & "' where prodid = '" &
lvProd.SelectedItems(0).Text & "'")
'If lvProd.SelectedItems(0).SubItems(1).Text = cbProd.Text Then
' lblQTY.Text = CDbl(lblQTY.Text) + CDbl(lvProd.SelectedItems(0).SubItems(2).Text)
'End If
'For i As Integer = lvProd.Items.Count - 1 To 0 Step -1
' If lvProd.Items(i).Selected Then lvProd.Items.RemoveAt(i)
'Next
End Sub
I-53
Shangri-La Plaza Corporation
I-54
Shangri-La Plaza Corporation
'
'
'
'
'
'End Sub
Public Sub getID()
connect()
rs.Open("select * from tblproduct", cnn)
genadd(frmAddProduct.lblID, "PRODUCT-0000000001", "PRODUCT-", "0000000000", 17, 18)
str = frmAddProduct.lblID.Text
connect()
cnn.Execute("insert into tblproduct values ('" & str & "','None','" & txtProdname.Text &
"','None','0','0','0','0','1')")
End Sub
Public Sub prodId()
connect()
rs.Open("select * from tblproduct", cnn)
genadd(lblIdtxt, "PRODUCT-0000000001", "PRODUCT-", "0000000000", 17, 18)
End Sub
Private Sub txtProdname_TextChanged(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles txtProdname.TextChanged
If txtProdname.Text = "" Then
Label7.Visible = True
Else
Label7.Visible = False
End If
End Sub
I-55
Shangri-La Plaza Corporation
End Sub
Private Sub Panel2_Paint(ByVal sender As System.Object, ByVal e As
System.Windows.Forms.PaintEventArgs) Handles Panel2.Paint
End Sub
End Class
Public Class frmMSRS
Dim str, supnamebebe, str2 As String
Private Sub frmMSRS_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles MyBase.Load
loadlist()
End Sub
Public Sub loadlist()
connect()
rs.Open("select * from tblponew where arch = 1", cnn)
lvProd.Items.Clear()
Do While rs.EOF = False
Dim lv As New ListViewItem(rs(1).Value.ToString)
lv.SubItems.Add(rs(4).Value.ToString)
lv.SubItems.Add(rs(2).Value.ToString)
lv.SubItems.Add(rs(3).Value.ToString)
lv.SubItems.Add(rs(5).Value.ToString)
lv.SubItems.Add(rs(6).Value.ToString)
lvProd.Items.Add(lv)
rs.MoveNext()
Loop
End Sub
Public Sub selectItem()
If lvProd.SelectedItems.Count <> 0 Then
frmDeliver.prid.Text = lvProd.SelectedItems(0).Text
frmDeliver.prodName.Text = lvProd.SelectedItems(0).SubItems(2).Text
frmDeliver.qty.Text = lvProd.SelectedItems(0).SubItems(3).Text
End If
End Sub
Private Sub btnView_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles btnView.Click
'selectItem()
'supidtxt()
'depNamebebe()
'frmMain.home()
'frmDeliver.ShowDialog()
End Sub
Public Sub supidtxt()
connect()
rs.Open("select name from tblsupplier where supid = '" &
lvProd.SelectedItems(0).SubItems(1).Text & "'", cnn)
supnamebebe = rs(0).Value
frmDeliver.supName.Text = supnamebebe
End Sub
I-56
Shangri-La Plaza Corporation
I-57
Shangri-La Plaza Corporation
18)
connect()
rs.Open("select * from tblproduct", cnn)
genadd(frmAddProduct.lblID, "PRODUCT-0000000001", "PRODUCT-", "0000000000", 17,
strProdID = frmAddProduct.lblID.Text
connect()
cnn.Execute("insert into tblproduct values ('" & strProdID & "','None','" &
txtProdName.Text & "','None','" & txtNewQty.Text & "','0','0','0','1')")
End If
End Sub
Public Sub loadCombox()
connect()
rs.Open("select * from tblproduct where arch = 0", cnn)
cmbProdName.Items.Clear()
cmbProdName.Items.Add("-Select-")
Do While rs.EOF = False
cmbProdName.Items.Add(Replace(rs(2).Value, "^_^", "'"))
rs.MoveNext()
Loop
cmbProdName.Text = "-Select-"
End Sub
Public Sub stockNo()
Try
connect()
rs.Open("select qty from tblproduct where prodname = '" & cmbProdName.Text & "'", cnn)
stock = rs(0).Value
lblStackOnHand.Text = rs(0).Value
Catch ex As Exception
lblStackOnHand.Text = ""
End Try
End Sub
Public Sub editStock()
Try
stockEqual = stock - txtQty.Text
Catch ex As Exception
End Try
connect()
cnn.Execute("update tblproduct set qty = '" & stockEqual & "' where prodname = '" &
cmbProdName.Text & "'")
lblStackOnHand.Text = stockEqual
End Sub
I-58
Shangri-La Plaza Corporation
I-59
Shangri-La Plaza Corporation
I-60
Shangri-La Plaza Corporation
End Sub
Private Sub cmbProdName_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles cmbProdName.SelectedIndexChanged
stockNo()
End Sub
Private Sub bAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
bAdd.Click
editStock()
addProdOnhand()
End Sub
Private Sub btnRemove_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles btnRemove.Click
Try
dltProd()
lvProd.SelectedItems(0).Remove()
MsgBox("Requset removed")
Catch ex As Exception
MsgBox("Select request to delete")
End Try
End Sub
Public Sub dltProd()
If lvProd.Items.Count <> 0 Then
connect()
rs.Open("select prodname, arch from tblproduct where prodname = '" &
lvProd.SelectedItems(0).SubItems(1).Text & "'", cnn)
x = rs(0).Value
y = rs(1).Value
If lvProd.SelectedItems(0).SubItems(1).Text = x And y = 0 Then
connect()
rs.Open("select qty from tblproduct where prodname = '" &
lvProd.SelectedItems(0).SubItems(1).Text & "'", cnn)
z = rs(0).Value
Dim prodQty As Integer = CInt(lvProd.SelectedItems(0).SubItems(2).Text)
qtyProd = z + prodQty
connect()
cnn.Execute("update tblproduct set qty = '" & qtyProd & "' where prodname = '" &
lvProd.SelectedItems(0).SubItems(1).Text & "'")
Else
connect()
cnn.Execute("delete from tblproduct where prodname = '" &
lvProd.SelectedItems(0).SubItems(1).Text & "'")
End If
End If
End Sub
Private Sub btnSend_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles btnSend.Click
sendTopr()
End Sub
Public Sub sendTopr()
If btnSend.Text = "SEND TO PURCHASING" Then
Do While b <> lvProd.Items.Count
I-61
Shangri-La Plaza Corporation
connect()
cnn.Execute("insert into tblpr values('" & lvProd.Items(a).Text & "','" &
lvProd.Items(a).SubItems(1).Text & "','" & lvProd.Items(a).SubItems(2).Text & "','" & Label6.Text &
"','" & Format(Now, "yyyy-MM-dd") & "',1,'" & Format(Now, "yyyy-MM-dd") & "',0,'',0,'" &
lvProd.Items(a).SubItems(3).Text & "')")
a=a+1
b=b+1
Loop
Dim goToFrmPur = MessageBox.Show("Request was sent to purchasing", "Go to
Purchasing", MessageBoxButtons.YesNo, MessageBoxIcon.Information)
If goToFrmPur = Windows.Forms.DialogResult.Yes Then
Me.Hide()
frmPRStat.loadlist()
frmPRStat.ShowDialog()
End If
If goToFrmPur = Windows.Forms.DialogResult.No Then
Me.Hide()
End If
lvProd.Items.Clear()
Else
Do While b <> lvProd.Items.Count
connect()
cnn.Execute("insert into tblpr values('" & lvProd.SelectedItems(a).Text & "','" &
lvProd.SelectedItems(a).SubItems(1).Text & "','" & lvProd.SelectedItems(a).SubItems(2).Text & "','"
& Label6.Text & "','" & Format(Now, "yyyy-MM-dd") & "',0,'',0,'',0,'" &
lvProd.SelectedItems(a).SubItems(3).Text & "')")
a=a+1
b=b+1
Loop
MsgBox("Request was sent to manager")
lvProd.Items.Clear()
End If
End Sub
End Class
Public Class frmReports
Private Sub ManagerToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles ManagerToolStripMenuItem.Click
frmMngReport.ShowDialog()
End Sub
Private Sub PurchasingToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles PurchasingToolStripMenuItem.Click
frmPRrprt.ShowDialog()
End Sub
Private Sub SupplierReportsToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles SupplierReportsToolStripMenuItem.Click
End Sub
Private Sub AssigningSupplierReportToolStripMenuItem_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles AssigningSupplierReportToolStripMenuItem.Click
I-62
Shangri-La Plaza Corporation
frmAssSupReport.ShowDialog()
End Sub
Private Sub frmReports_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles MyBase.Load
End Sub
End Class
I-63
Shangri-La Plaza Corporation