school database system

21
LETTER OF TRANSMITTING Dr. Mahady Hasan, Assistant Professor Independent University, Bangladesh SUBJECT: Database Management System for the Saimon Printing and Pacaging !Pvt." Dear Sir, Here is the report yo$ re%$ested on Saimon Printing and Pacaging !Pvt." #td. &athering information for this report 'as not so smooth thro$gho$t b$t, learnt a techni%$es in the process 'hich is going to be a val$able asset in my career and develop a 'onderf$l concept in (omp$ter Science. )his report consists, f$ll desi database for the Saimon Printing and Pacaging !Pvt." #td. Hope that yo$ 'ill fi satisfactory. I 'o$ld also lie to tae this opport$nity to than yo$ for giving me the chance assignment. It 'as a 'onderf$l e*perience. H. M. +ahid$r ahim - / 012 1

Upload: shahnur-alam

Post on 05-Nov-2015

219 views

Category:

Documents


0 download

DESCRIPTION

fgdgfgdf

TRANSCRIPT

CSC 401

LETTER OF TRANSMITTING

Dr. Mahady Hasan, Assistant ProfessorIndependent University, Bangladesh

SUBJECT: Database Management System for the Saimon Printing and Packaging (Pvt.) Ltd

Dear Sir,Here is the report you requested on Saimon Printing and Packaging (Pvt.) Ltd.Gathering information for this report was not so smooth throughout but, learnt a lot of things and techniques in the process which is going to be a valuable asset in my career and has helped me to develop a wonderful concept in Computer Science. This report consists, full design of the database for the Saimon Printing and Packaging (Pvt.) Ltd. Hope that you will find it satisfactory.I would also like to take this opportunity to thank you for giving me the chance to work on this assignment. It was a wonderful experience.

H. M. Zahidur Rahim1020483

INTRODUCTION Background of the ProjectCompanys regular working system have always been taken on an online based dynamic computing system, which considering that this is the era of computers, has quite a few drawbacks. A few of them are: Wastage of paper. Hassle in checking and calculating data. Difficulty keeping record of the data for a long period of time. Almost impossible to store the companys order sheets for a long period of time.A possible solution to the above stated problems is an online database system which, not only will solve the problems but will also be more advantageous.

Objectives of the ProjectThis project aims in developing an web based software system. Company employee will store the companys regular sheets via computers and will be able to get instant feedback of their data, i.e. the calculation will be evaluated instantly with the help of computers.

Strategic Plan Strategy to make this project work-1. Researching on given excel sheet to figure out the actual strategic plan2. Making the database system.3. Inserting data into database.4. Developing a final software to manage data into database.

SYSTEM OVERVIEW Background of the organizationSaimon Printing and Packaging (Pvt.) Ltd is one of the leading corrugated packaging industry in Bangladesh, founded in 1985. Companyhead office located at Motijheel, Dhaka and factory located at Joydebpur, Gazipur, Bangladesh. Type of the company is Private Limited Company.The ultimate mission of the company is to become the dominant and preferred supplier of corrugated packaging solutions to a diversified niche market. Also company vision is to be the preferred supplier of corrugated packaging solutions by exceeding our customers expectations of quality, service and fast turnaround in the Bangladesh market, which will provide mutual benefits of profitability and growth. There are some core values of the company, Honesty and integrity in dealing with customers, suppliers, employees and community. Ensuring a safe working environment and a pro-active safety culture. Valuing, developing, involving and supporting our people.

Organizational UnitsThe company has 6 units (Production Unit, Sales Unit, Commercial Unit, Operations Unit, Management Unit and Marketing Unit). Company Chairman, Managing Director and Directors are the administration board of the company. Chairman is the head of Administration board. The Managing Director is the most responsible person of the company who leads the companys organizational units. Administration board members implement company policies. They plan to make the company more profitable.The Director of the Saimon Printing and Packaging Company Ltd. is another important person of the company. He also leads the company. A major part of the organizational units manages by The Director.In this company Sales Unit, HRM Unit and Marketing Unit are managed by Sales Manager, HRM Manager and Marketing Manager respectively who are under the Managing Director and Directors of the company. The General Manager of the company is also under the Managing Director and Directors. In this Company General Manager is the head of Production Unit, Commercial Unit and Operations Unit. Production Manager, Commercial Manager and Factory Manager manages Production Unit, Commercial Unit and Operations Unit respectively.In this company General Manager meets the buyers requirements. He also observes official activities and production process. All stuffs and official requirements, interview, planning new polices are organized by him. Existing ProblemsOfficial working procedures in the company are still done in the conventional way, i.e. on paper and non-cloud computing based system and that is why datachecking and calculating is difficult and time consuming. There is no server and database system of the company. According to statistics,all data and computational works can be done more prominently and workers can perform better if there is any cloud based software system, which is almost impossible if the current pattern does not change. Another problem is storing the record of the data for a long period of time. All these problem can be easily resolved if the existing system changes to an web based dynamic system where data will be calculated instantly and new records can be easily stored and can be retrieved from the database.

Business Process:Saimon Printing and Packaging (Pvt.) Ltd produces and sells a line of corrugated box. Corrugated boxes are used frequently as shipping containers. Boxes need to contain the product from manufacturing through distribution to sale and sometimes end-use. Boxes provide some measure of product protection by themselves but often require inner components such as cushioning, bracing and blocking to help protect fragile contents. To design corrugated boxes company identifies and focuses on customers order type. When customers order on the companys order systems, the system checks to see if the order is valid. If the order is invalid then the system sends an error status message to the customer or else system goes to next step to check the stock for raw materials quantity. If there is not enough amount raw materials in the stocks then the company goes to place a raw materials order to the supplier. When the ordered raw materials are supplied, system adds those to the stock. When there is enough amount raw materials then company goes for production. After producing targeted amount corrugated box, company is ready for shipment. When the order is shipped customer is billed.There are several monthly records current business keeps record. Monthly payroll, VAT, wastage sell price, voucher, items details, order status, revenue analysis, raw materials.s The system also produces various reports such as income tax to the government. On the other side company gets a rebate from the suppliers. Besides there are reports on investment, net profit or market share, products and services and how they will be provided. There are some resources needed such as management, staffing, financial and technological.

Data Flow Diagram (DFD)

Context Level DFDACCOUNTINGSUPPLIERCUSTOMERITEM 0 SaimonBusinessSystemSTOCK

OrderShipping Confirmation

Payment

InvoiceStatus MessageShipping OrderMaterials in stock requestIn Stock RequestReceived goodsRespondsPaymentPurchase OrderCosts Inventory Reports

Level 0 DFD

ITEM

CUSTOMEROrderIn stock request

1.0 SalesStatus messagerequest orderProduction

3.0 Shipping OrderServedDataStatus

Pending order 2.0Issue statusMessageOrder dataProduction

4.0 Production Order Schedule

Send data

5.0Request RM OrderSUPPLIERSupply

STOCKReceive goods Order RawPayment

6.0 CostsPaymentInvoice

7.0Report ProduceInvoiceRM costsShipping confirmationAccount data

Receivable order Receivable data

Inventory report

ACCOUNTING

Level 1 DFD

ITEM

CUSTOMEROrderIn stock request

Produced ItemItemReady Item

2.2 Shipping 1.1 Record OrderStatus messageProductionItem dataServedDataStatus

Ordered Data 1.2Order StatusOrder dataProduction

Stocked ItemItem 2.1 Production ScheduleDelivery ItemData

3.1Request RM OrderSUPPLIERSupply

STOCKReceive goods Order RawPayment

4.1 CostsPaymentInvoice

4.2Report Produce &VatInvoiceRM costsShipping confirmationAccount data

Receivable order Receivable data

Inventory report

ACCOUNTING

System Design:ERD

hasplacesCOSTOMERORDER

VOUCHERVATREVENUEWASTAGERAW MATERIALSSUPPLIER ITEMORDER DETAILSBILL

has

has

process

has

Quantityrequires

ERD to Relation:

CUSTOMERCus_IDCus_nameCus_address

ORDEROrder_NoCus_ID

ORDER DETAILSOrder_NoItem_IDQuantityLengthWidthHeightDate

BILLBill_IDOrder_NoBill_AmountDesciptionPayment_AmountBalance

ITEMItem_IDNameItam_statusDataType

RAW MATERIALSRM_IDStatusAmountUnitItem_ID

SUPPLIERSup_IDSup_nameSup_addressSup_contact_no

QUANTITYSup_IDRM_IDVAT_IDQuantityNotesStatus

VATVAT_IDStatusAmountDateBalance

VOUCHARVch_IDVAT_IDCus_IDBill_amountPay_amountBill_dateDel_date

WASTAGEWast_IDUnitAmountItem_IDStatus

REVENUERev_IDVch-IDWast_IDIncomeExpanseGross

Normalization:The tables are already in 3NF, therefore its automatic normalization.

Data Dictionary:

CUSTOMERNameData TypeSizeRemark

Cus_IDAuto number11This is the primary key. It contains Customer ID

Cus_nameText50This is for customer name

Cus_addrerssText50Details customer address

ORDERNameData TypeSizeRemark

Order_NoAuto number11This is the primary key which auto generates

Cus_IDNumber11This is the foreign key from customer ID

ORDER DETAILSNameData TypeSizeRemark

Order_NoAuto number11This is the primary key, auto generate number

Item_IDNumber11This is foreign key from item

QuantityNumber11Total ordered quantity

LengthNumber4This is for box length

HeightNumber4This is for box height

WidthNumber4This is for box width

DateDatetime20Ordered time

SUPPLIERNameData TypeSizeRemark

Sup_IDAuto Number11This is the primary key.

Sup_nameText20Stores supplier name

Sup_addressText30Stores supplier address

Contact_noNumber11Contact information

DDL:CREATE TABLE Customer( cus_ID int NOT NULL, cus_name varchar(255) NOT NULL, cus_address varchar(255) NOT NULL, cus_contant varchar(255) NOT NULL, PRIMARY KEY(cus_ID))

CREATE TABLE CusOrder( o_ID int NOT NULL AUTO_INCREMENT, cus_ID int NOT NULL, item_ID int NOT NULL, quentity float NOT NULL, PRIMARY KEY(o_ID), FOREIGN KEY (cus_ID) REFERENCES Customer(cus_ID), FOREIGN KEY (item_ID) REFERENCES Item(item_ID))

CREATE TABLE Item( item_ID int NOT NULL AUTO_INCREMENT, quentity float NOT NULL, box_size float NOT NULL, box_height float NOT NULL, box_width float NOT NULL, PRIMARY KEY(item_ID),)

CREATE TABLE Voucher( v_ID int NOT NULL AUTO_INCREMENT, vat_ID float NOT NULL, cus_ID int NOT NULL, bill float NOT NULL, pay float NOT NULL, date date, PRIMARY KEY(v_ID),FOREIGN KEY (cus_ID) REFERENCES Customer(cus_ID))

CREATE TABLE Supplier( sup_ID int NOT NULL, sup_name varchar(255) NOT NULL, sup_address varchar(255) NOT NULL, PRIMARY KEY(sup_ID))CREATE TABLE RawMat( r_ID int NOT NULL, sup_ID float NOT NULL, cus_ID int NOT NULL, bill float NOT NULL, pay float NOT NULL, date datetime, PRIMARY KEY(r_ID),FOREIGN KEY (sup_ID) REFERENCES Supplier(sup_ID))CREATE TABLE Vat( v_ID int NOT NULL, vou_ID float NOT NULL, sup_ID int NOT NULL, date datetime, PRIMARY KEY(v_ID),FOREIGN KEY (sup_ID) REFERENCES Supplier(sup_ID)FOREIGN KEY (vou_ID) REFERENCES Voucher(vou_ID))

DML:INSERT INTO Customer (cus_ID, cus_name, cus_address, cus_contant) VALUES ('$add_ID', '$add_name', '$add_address', '$add_con')INSERT INTO CusOrder VALUES ('$o_ID', '$cus_ID', '$item_ID', '$con')INSERT INTO Item VALUES ('$i_ID', '$con, '$size', '$height', $width)INSERT INTO Customer VALUES ('$aup_ID', '$sup_name', '$addrs')INSERT INTO Voucher VALUES ('$v_ID', '$vou_ID', '$sup_ID', $date)UPDATE CusOrder SET statu=$sta WHERE o_ID=$o_IDSELECT COUNT(amount) FROM voucher WHERE date BETWEEN $cur_date AND $req_Day

Physical System Design:

Input Form: System loginPurpose: This a system administration software, so an authentication is needed to use this software. Following form requires an admin login.

Reason: To protect the system data we need this authentication step.

Input Form: Insert Customer dataTable Name: CustomerPurpose: This table stores customer information. Following input form takes data from customer and insert those into Customer table.Reason: Whenever we go for an order we need customer info. This is why this is required.

Table Name: CusOrderPurpose: Order table stores customer order. Reason: This is required for making an order, we can also check order status. Following input form insert order data..Input form: Order statusPurpose: We can update order status any time using this form.Reason: Sometimes we need to update order status after placing an old order.

Input form: Insert ordered item detailsTable name: ItemPurpose: After placing an order we need to inter item detailsReason: This is required because without item details we can not go for production.

Input form: Insert voucher detailsTable name: VoucherPurpose: We can capture order amount, bill amount, pay amount using this form.Reason: This is required to store all voucher info.

Input form: Insert raw materials detailsTable name: Raw_materialsPurpose: We can order raw materials using this form.Reason: Whenever we need raw materials this is required.

Output Form:Form: Query bill statusPurpose: We can check any bill status using this formReason: This is required because sometimes we need check billing status.

Form: Query LC statusPurpose: We can check total collection using this form.Reason: To check current month income we need this form.

Problem and Solution: There are a lot of problems I faced to develop this software. At the very first step there was not enough resource to target the actual goal. But by the time I was able to fix this problem. There were lot of problem in the companys initial data, it was hard to get the real one which is necessary for me. I faced a lot of problem to build the software using visual basic. But finally I found a solution, I chose PHP, MySQL to develop the software.

Additional features and Future Development:I think that we can add more features in future to enhance the basic version software. We can add a feature to track real time production info, which will be very much productive. This is how we can avoid production delay and customer can get instant information.

CONCLUSIONA complete database has been designed which is one step closer to allow the organization to convert its paper based testing system to online based system. Only, the final step needs to be implemented, i.e. a legitimate website, so that the organization can completely change their pattern.

21