You are on page 1of 39

-1-

A Project Report On

ONLINE PRINTER CARTRIDGE MANAGEMENT SYSTEM

From: INDIAN OIL CORPORATION LIMITED (ASSAM OIL DIVISION)

Report submitted in fulfilment of the requirement For the award of degree of

MBA
In SYSTEM & MARKETING

THE UNIVERSITY OF BURDWAN


GOLAPBAG, BURDWAN 713101 WEST BENGAL, INDIA

Under the guidance of


DR. SUBRATA ROY GUPTA Indian Oil

Submitted by
AKASH KAPURIA MBA 2nd Year (3rd semester) Reg. No.:- 52 of 2010-2011

-2-

(Assam Oil Division) Digboi, Assam

Session: 2010-2011

ACKNOWLEDGEMENT

At the prime outset, my hearty thanks and deep sense of respect to Mr. Satyakam Dowarah, Senior Manager, Training Department, Indian Oil Corporation Ltd, Assam Oil Division for giving me the opportunity to carry out a project work in their esteemed organisation. Secondly, I would like to thank Mr. Biswajit Hazarika, Senior System Manager, Indian Oil Corporation, Assam Oil Division, Digboi for giving me the opportunity to carry out my project work in the Information System Department. I would like to thank Mr. Abhijit Bora, Manager (Information System), Indian Oil Corporation Ltd. (Assam Oil Division) for his unconditional help and co-operation during the development of my project. I would also like to thank Mr. Bikash Tripathi, Software Engineer and Developer, IOCL (AOD) for his valuable guidance & tactics on how to write effective C# codes for developing applications. I also extend my gratitude to Mr. Ajay Mehra, Information System Officer, IOCL (AOD) for sharing his ideas on systems development life cycle, systems development methodologies and waterfall model.

It is my pleasure to thank Mrs. Dipali Baruah of the Training Department and all the senior officials, employee, office staff & members of Information System Department at IOCL for their kind co-operation throughout my project work.

Jayanta Sutradhar MBA (System & marketing) Reg no.:- 50 of 2010-2011

-3-

The University of Burdwan

DECLARATION

I Jayanta Sutradhar, hereby declare that the dissertion entitled ONLINE PRINTER CARTRIDGE MANAGEMENT SYSTEM (Live) is an authentic work developed for Indian Oil Corporation Limited (Assam Oil Division), Digboi under the guidance of Mr. Biswajit Hazarika, senior system manager. I am student of MBA, 3rd semester from The University of Burdwan, Burdwan having university registration no.:- 50 of 2010-2011 and prepared the project report for the fulfillment of the requirement for MBA to be awarded by the University.

Mr. Biswajit Hazarika Senior System Manager Indian Oil Corporation Limited (Assam Oil Division) Digboi, Assam

-4-

ABSTRACT

For decades, Computer Science has been evolving from Abacus to the Virtual Reality and who knows what next is? So, it is the World Wide Web running at a parallel pace from the Telenet to the Interactive Video Conferences. It's no doubt that the power of information shared over World Wide Web is the next face of technology. The advancement of the web, hence, has a natural demand for its constant development of new & powerful applications to keep it's alignment with the pace.

In this project, I have highlighted some of the advantages of having a web application & its relative approaches that can be implemented in personal or professional computing services via development of a web application for "Online Printer Cartridge Management System". The project primarily focuses on the user access to the control of issuing cartridges via a centrally hosted system over Internet Information Server, to the different locations of the organization where I have carried out my work. It has been designed, keeping in mind, to reach the 4000 employees of the organization at different locations spread through the township with minimum effort in no time.

-5-

PROJECT PROFILE

Project Name: ONLINE PRINTER CARTRIDGE MANAGEMENT SYSTEM

Project Done By: Jayanta Sutradhar

Name of the Organization: Indian Oil Corporation Limited (Assam Oil Division) Digboi, Assam

Software Used: Microsoft Visual Studio 2005 .NET Framework 2.0 Oracle 8i Microsoft Acces

Guidance: Mr. Biswajit Hazarika Senior System Manager Indian Oil Corporation Limited(Assam Oil Division) Digboi, Assam

-6-

The Gantt chart representation for the ONLINE PRINTER CARTRIDGE MANAGEMENT SYSTEM is shown below:-

05th May to 13th May ---------------------Initial Study 16th May to 20th May ------------------Analysis 23rd May to 24th June ---------------------Form, Data-Base & I/O Design. 27th June to 30th June ---------------------Programming & Testing

Started Date Completion Date Commissioned Date -

05th May 2011 30th June 2011 2011 [at IOCL (AOD)]

-7-

TABLE OF CONTENTS

1.0) About the Organisation.. ......... 1.1) Birth of Digboi Refinery... 1.2) Glimpses of Digboi Refinary 1.3) journey of Digboi Refinary.. 1.4) About the IOCL (AOD), Digboi.. 1.5) A Modern Setup........... 1.6) Profile of Assam Oil Division.. 1.7) Growth of IT infrastructure............ 1.8) Existing and Proposed System............... 2.0) Terminologies Used in the Application.......... 3.0) Development Platforms of the Proposed system........... 4.0) Advantages of the Proposed System.............. 5.0) Database description........... 5.1) Existing Tables/View........... 6.0) Design and Source Code.. 7.0) Usage Scenarios

09-10 10 11 12 13 14-15 15-16 17 18 19-21 22 23 23 24-27 28-34 35-37

-8-

8.0) Analysis Diagram.......................................................... 9.0) Conclusion.....................................................................

38-39 40

About The Organization

Indian oil Corporation Limited is one of the largest Indian companies that undertakes a strong infrastructure throughout the country for refining and marketing of petroleum products with its long network of product pipelines, It refines crude petroleum in nine refineries with combined. Indian oil Corporation Limited has five divisions are The Refineries Division The Marketing Division The Pipeline Division Assam Oil Division, and The Research and Development Division

Assam Oil Division is one of the five divisions of the Indian Oil Corporation Limited and the oldest running refinery of the world at Digboi.

The Information System Department of IOCL (AOD) is responsible for the development and maintenance of I.T infrastructure in the Division. In Present time all the latest software and hardware are available and the department has seen through all the stage of development of IT in the world.

Assam Oil Division (referred as IOCL (AOD)) is now one of the five divisions of the Indian Oil Corporation Limited. It is the oldest running refinery of the world at Digboi, which has celebrated its 100th birthday in 2001. Apart from the refinery it

-9-

has 3 LPG bottling plants and a marketing network of its own spread over the entire North East for marketing petroleum products. It holds the majority of the market share of petroleum products in the North East. Assam Oil has a long and strong background in the field of computers. It all started in the part of sixties with the introduction of Hallouith Machine of IOCL Ltd., U.K. Since then keeping pace with the development of technology, it has experienced various phases of enhancement and up-gradation and has finally reached this stage.

Birth of Digboi Refinery In 1882, the Assam Railways & Trading Company Limited (AR & T Co.) began
construction of a railway line from Dibrugarh to Margherita in upper Assam. While constructing the railway line, the company engineer noticed oil on the ground near one of their camps in the forest. Soon the place where oil was noticed was occupied by AR & T Company with conduct research. They struck oil at Digboi and that well became first oil well with at a depth of 162 feet and stands today as a monumental testimony of the first commercial discovery of crude oil. In 1899 AR & T Company promoted another company called Assam Oil Company Limited to take over the petroleum interest from Assam Oil Syndicate. And a result of this development a refinery was set up in Digboi 1901 to boost the petroleum sufficiency. History was created when the first petroleum refinery was

commissioned in Digboi 1901 under the ages of the then Burma Oil Company. It was the first refinery outside Europe and America. Later on production of crude, refining and marketing of petroleum products were carried out by the Assam Oil Company till 1981 when this refinery and its marketing infrastructure was nationalised with the merger with Indian Oil Corporation. Thus was born the Assam Oil Division of Indian Oil Corporation Limited. However the exploration and production of crude was entrusted with another

- 10 -

public sector company the Oil India Limited with its headquarters at Duliajan, Assam.

Glimpses of Digboi Refinery


Digboi refinery is the first refinery in Asia. Digboi refinery laid the foundation of refinery in India. Digboi refinery is the first refinery to market 116 products to meet each and every individual consumer requirement. Digboi refinery is the first refinery to use natural gas for both industrial and domestic use. Digboi refinery is the first refinery to engage in export business. Digboi refinery is the first refinery to use underground pipelines fir transportation of petroleum products from Digboi to Tinsukia. Digboi refinery is the first refinery to use vacuum distillation technology in petroleum technology in petroleum industry. Digboi refinery is the torchbearer of refining industries in India.

- 11 -

Journey of Digboi Refinery from 1901 to 2001


1901-Digboi refinery was commissioned. 1902-first product kerosene was produced. 1921-burmah oil companies took over Digboi refinery from Assam Oil Corporation. 1923-reconstruction of Digboi refinery. 1932-crude oil distillation was commissioned 1938- Installation of bitumen plant. 1953-installation of gasoline plant. 1981-Digboi refineries along with Assam Oil Company became Assam oil division of Indian Oil. 1996-modernisation of Digboi refinery started. 2001-Digboi refinery celebrates its centenary.

- 12 -

ABOUT THE IOCL (AOD), DIGBOI


Indian Oil Corporation Limited, the only Indian company to be listed amongst the Fortune 500 companies of the world, is one of the largest public sector undertakings in India, having a strong infrastructure throughout the country for refining and marketing of petroleum products. Assam Oil Division (from now onwards to be referred as IOCL (AOD)) is now one of the five divisions of the Indian Oil Corporation Limited. It is the proud owner of the oldest running refinery of the world at Digboi, which celebrated its 100th birthday in 2001.apart from the refinery it has 6 log bottling plants and a marketing network of its own spread over entire north east as well parts of eastern India for marketing petroleum products. It holds the market share of petroleum products in the north east. Indian Oil Corporation Limited with its 6523 kms long network of crude and product pipelines, nine refineries with a combined refining capacity of 47.50 MMTPA , over 21,000 sales point, 186 bulk storage points, 71 LPG bottling plants and a turnover of over One Hundred Thousand Million Rupees stands 209th in the Fortune 500 list of companies. It is listed 112 th in the Forbes listing and is the 18th largest petroleum company in the world. It meets 55% of the petroleum products consumption in the country and is regarded as the countrys largest public sector organization.

Assam oil has a long and strong background in the field of computers. It all started in the later part of sixties with the introduction of Hallouith machine of IOC

- 13 -

limited, U.K. which was based on punch card technology. Since then keeping pace with the development of technology, it has experienced various phases of enhancement and gradation and has finally reached this stage.

A Modern Set up
The main objectives behind modernizing the old refinery was to make the refinery a specialty refinery producing high value products like Microcrystalline Wax, Naphthenic Lube, Needle Coke, etc. with improved safety and environment management standards.

Modernization of Digboi Refinery started in the early eighties and over the years the following plants have been commissioned.

1. Installation of a new CDU/VDU with other associated facilities like steam, water, power etc. Up to date fire fighting facilities has already been commissioned. 2. CRU (Catalytic Reforming Unit) for producing low lead motor sprit has also been commissioned. 3. A Delayed Cooking Unit to replace the existing energy intensive, inefficient Cooker. 4. VRSD (Vacuum Residue Short Path Distillation Unit) : A plant which used the path-breaking Short Path Distillation technology for the first time in the world. 5. A modern gas based 44 MW Captive Power Plant, which not only meets the power requirements of the refinery and the township but also supplies power to the ASEB. 6. A Wax Hydro Finishing Unit for eliminating acidic effluent and other hydrocarbon pollutants.

- 14 -

Continuing with the commitment to environment and to achieve further milestones in the improvement of quality of petroleum products, the following plants are under implementation. 1. A HDT (Hydro Treated) unit, a replacement of old KTU (kerosene treatment unit). 2. Solvent De-waxing unit, a replacement of old WEU (old wax extraction unit and stoves). Today, with its modernized facilities, Digboi Refinery is an ISO-9002 refinery producing a wide range of petroleum products. It is becoming a speciality products refinery producing a products ranging from microcrystalline wax to Needle coke, from wood oil to binder oil, Etc.

Profile of Assam Oil Division

Assam Oils brush with computerization in Digboi dates to 1950, when a Hollerith Accounting Machine with card punching System was installed and the payroll, Cost Accounting and PF jobs were automated. This machine was truly a revelation.

Form the 1990s, with development of powerful computers with supporting network technology, enterprises all over the word have started moving towards centralized computing with distributed online transaction.

To harness the potential of technology, the Management of Indian Oil Corporation Ltd., conceived PROJECT MANTHAN under which, an ERP package SAP/R3, along with add-on packages, is being implement all over

- 15 -

IOCL, for synergistic integration of all activities of the corporation, throughout the length and breadth of the country.

Since with conscious and tireless efforts towards computerization, Assam Oil has always kept abreast with the latest technology in this field. Some of the chronological events of computerization are detailed below:-

1969

The first computer, ICL 1901, with programming facility was installed and accounting jobs were automated.

1970

ICL-1901 was replaced by ICL-1901A with Card Reader, Magnetic Tapes and Magnetic Disc.

1986

ICL-1901A was replaced by ICL-ME29 with online transaction processing capability and card punching system was replaced by data entry facility through terminals.

1987

Computerization of Depots/Terminals carried with in-house development software, subsequently replaced by TDM/PDM developed by IOCL in the early 90s.

1992

ICL-ME29 was replaced by DRS-6000, a RISC Server with UNIX as Operating System and batch processing was replaced by Relational Database Management System (RDMS).

1997

Campus-wide Local Area Network (LAN) was setup at Digboi with fibre optic backbone and N0vell Netware server which ushered in EMail facility.

2001 DRS- 6000 was replaced by SUN E3500 server and LAN was upgraded to Layer-3 Network with VLANs.

- 16 -

Growth of IT infrastructure in IOCL (AOD)


The Information Systems Department of IOCL (AOD) is responsible for the development and maintenance of I.T infrastructure in the Division. It is also responsible for design, development, implementation and maintenance of various OLTP and Information Management Systems required for day to day operations of different functions of the Division. Starting from the punch card driven machines of the late sixties, to the Unix powered mini-computers and terminals of the 80s and finally to the latest in hardware and software

available today, the department has seen through all the stages of development of IT in the world. It has been the pioneer in installation of latest communication networks and RDBMS based OLTP systems in the entire North East.

Today the department posses the latest of servers from makers like SUN Microsystems, Microsoft, IBM, etc as well as a WAN connecting a number of locations to Digboi as well as the corporate office at Delhi and the IOCLs communication hub and central data centre at Gurgaon. The backbone of the communication network is the 2 Mbps leased line from Digboi to Delhi. It is supported by a VSAT Network, HVNet, ISDN, dial-up-links and Microwave links. The backbone of the campus network at Digboi is an optical fibre cable that runs across the length of the refinery and administrative departments. The network is based on Routers and Switches from CISCO.

- 17 -

Existing System For Printer Cartridge Management System


The existing system for handling printer cartridge is windows based.

Proposed System For Printer Cartridge Management System


The proposed system for handling printer cartridge is web based.

Windows Vs Web based Applications


The web based application sits on a web server and all users can access it via a web browser over the internet/HTTP, however a windows based application are particularly installed on the users machine.

Windows based application is much richer and more responsive than a


web application having much more higher performance. However, maintenance would be much harder with patching and rollout/installations etc, Client PCs may also require some sort of initial configuration to get things working so configuration management can be a nightmare as well.

Web based applications have the mobility, ease of access, distribution,


configuration management and maintenance. However, it lacks its richness, performance compared to Windows Applications.

Web based applications platform independent, hence, can be accessed


and used by any kind of computer or device that has a web browser. However, non web based application need to be designed for and run in operating systems. Multiple versions of the applications would be needed to created and maintained.

Web based applications are cost effective. This is because we can run any web based program from any computer and no license and no space management on our disk is required. Latest updates are available. Since, someone else is hosting the program and maintaining it remotely for us, whenever there are latest updates, we just need to click on the web browser as usual and avail the latest features of web applications.

- 18 -

Terminologies Used in the web application


1) ASP.NET: It is a web application framework developed and marketed by Microsoft to allow programmers to build dynamic web sites, web applications and web services. It was first released in January 2002 with version 1.0 of the .NET Framework and is the successor to Microsoft's Active Server Pages (ASP) technology. ASP.NET is built on the Common Language Runtime (CLR), allowing programmers to write ASP.NET code using any supported .NET language. 2) Base Class Library: The Base Class Library (BCL) is a standard library available to all languages using the .NET Framework. .NET includes the BCL in order to encapsulate a large number of common functions, such as file reading and writing, graphic rendering, database interaction, and XML document manipulation, which makes the programmer's job easier. 3) Common Language Runtime: The Common Language Runtime (CLR) is a special run time environment which provides the underlying infrastructure for Microsofts .NET framework. This runtime is where the source code of an application is compiled into an intermediate language called CIL originally known as MSIL (Microsoft Intermediate Language). When the program is run, the CIL code is translated into the native code of the operating system using a just-in-time (JIT) compiler.

4) Internet Information Services: IIS also called internet information server is a web server application and set of feature extension modules created by Microsoft for use with Microsoft Windows. It is the most used web server after Apache HTTP Server. IIS 7.5 supports HTTP, HTTPS, FTP, FTPS, SMTP and NNTP. It is an integral part of Windows Server family of products, as well as certain editions of Windows XP, Windows Vista and Windows 7. IIS is not turned on by default when Windows is installed. 5) Java Script: It is also known as ECMA Script, is a prototype-based, object-oriented, scripting language that is dynamic, weakly typed and has first-class functions. It is also considered a functional programming language like Scheme and OCaml because it has closures and supports higher-order

- 19 -

functions. JavaScript is an implementation of the ECMA Script language standard and is primarily used in the form of client-side Java Script, implemented as part of a web browser in order to provide enhanced user interfaces and dynamic websites. This enables programmatic access to computational objects within a host environment. 6) Microsoft Access: Microsoft Office Access, previously known as Microsoft Access, is a relational database management system from Microsoft that combines the relational Microsoft Jet Database Engine with a graphical user interface and software-development tools. It is a member of the Microsoft Office suite of applications, included in the Professional and higher editions or sold separately. Like other Office applications, Access is supported by Visual Basic for Applications, an object-oriented programming language that can reference a variety of objects including DAO (Data Access Objects), ActiveX Data Objects, and many other ActiveX components. 7) Microsoft Visual Studio: Microsoft Visual Studio is an integrated development environment (IDE) from Microsoft. It can be used to develop console and graphical user interface applications along with Windows Forms applications, web sites, web applications, and web services in both native code together with managed code for all platforms supported by Microsoft Windows, Windows Mobile, Windows CE, .NET Framework, .NET Compact Framework and Microsoft Silverlight. 8) .NET Framework: The .NET Framework (pronounced dot net) is a software framework that runs primarily on Microsoft Windows. It includes a large library and supports several programming languages which allows language interoperability (each language can use code written in other languages). Programs written for the .NET Framework execute in a software environment (as contrasted to hardware environment), known as the Common Language Runtime (CLR), an application virtual machine that provides important services such as security, memory management, and exception handling. 9) OLE DB: OLE DB (Object Linking and Embedding, Database, sometimes written as OLEDB or OLE-DB) is an API designed by Microsoft for accessing data from a variety of sources in a uniform manner. It is a set of interfaces implemented using the Component Object Model (COM) It was

- 20 -

designed as a higher-level replacement for, and successor to, ODBC, extending its feature set to support a wider variety of non-relational databases, such as object databases and spreadsheets that do not necessarily implement SQL. 10) Oracle Database: The Oracle Database (commonly referred to as Oracle RDBMS or simply as Oracle) is an object-relational database management system (ORDBMS) produced and marketed by Oracle Corporation.

11)

Data Provider: A data provider is uses for connecting to a data base,

retrieving, storing the data in a dataset, reading the retrieved data and updating the data base. There are two type of data provider OLEDB data provider- This type of data provider works with all the OLEDB providers, such as SQLOLEDB provider, Oracle OLEDB provider, and Jet OLEDB provider. System.Data.Oledb namespace provides all the classes to the OLEDB provider. SQL Server data provider- This type of data provider is used to work specifically with Microsoft SQL Server. System.Data.sqlclient name space provides all the classes to the SQL server data provider. 12) Data command: Data Command is a SQL statement or stored procedure which is used to insert, delete, or modify data in a data source.

13) Data Reader: Data Reader is to retrieve data from a data source in a readonly and forward-only mode. 14) Data Dictionary: Data Dictionary is a set of all DFD data elements and data structure used to develop the application. The analysis model encompasses representation of data objects, functions, and control. A data dictionary is an important step in building a database.

- 21 -

Development Platforms of the proposed system:


The development platforms used to development this software system as follows: (1)Pentium Based Processor (client) The software required windows (XP based or latest) workstation, which are connected to the network to provide TCP/IP connectivity to the server Processor: - Pentium based 32-bit or latest processor. Ram: - up to 128 MB HDD: - 20 GB (2) Front-End (Designing and Programming) Visual Studio 2005 (Asp.net) is used to creating, Designing, and developing this system. Visual Studio 2005 supports multiple languages to do programming. i.e. (1) Visual Studio 2005 [Asp.net with visual basic] (2) Visual Studio 2005 [Asp.net with C#] and etc. The language of code behind file (source code) is done by C# HTML, Java script, crystal report is used in this system. Some Features of Visual Studio 2005 (asp.net) (1) Faster web application. (2) Easy Development. (3) Multiple language support. (4) Memory Cash and Lock protection. (5) Can provide separate source code (code behind file) to programming. (3) Back-End server: We have used ORACLE 8i data base to store all records. In this system Front-End make connectivity with back-end through ADO.net.

- 22 -

Advantage of Proposed System:The proposed system will help to overcome the major drawbacks of the existing in various ways: 1. The entire process will get a positive thrust. 2. Provided the input data are correct, no inter office memo will be generated. 3. Only authorized persons can access the integral System. 4. User friendly data entry forms for maintenance of master and process data. 5. Application will be user friendly and user easily focused one section to another section. 6. The application work properly and fast .The performance is very strong and less time taken.

Database Description: - A database is a collection of interrelated data and a


Database Management system is a set of programs to use and /or modify this data. A database is a store of integrated data capable of being directly addressed for multiple users; it is a organized so that various files can be accessed through a single reference based on the relationship among records in the file rather than the physical location. Database system is designed to stir and managed large volume of information of any organization.

- 23 -

Existing tables/view The following tables already exist in the database and
have been used to obtain employee information that is used to validate and logged sections.
cartridge_issue
issu eid 000 01 000 02 000 03 De cost_c em cart mat_c a qty_r qty_empty_ pt entre pno _no d mt eqd cart_ret 21 AM15 77 78 930531 16 11 7 11 1314 74 18 AM02 72 21 930531 73 11 2 05 1564 8 19 AR423 52 88X 932080 16 11 0 L 0353 38 dat_la cart_n cart_qt dat_i issue tot_ st_iss o_iss y_iss ss dby amt 1/2/20 78 1 2/3/2 1021 1674 01 011 2/1/20 21 1 2/3/2 385 738 00 011 10/2/2 88XL 1 5/4/2 385 1638 000 011

cartridge_stock ID CART_NO MAT_CD SKU_ID QTY ISSUED PENDING 1 20 9305311004 C6614DA 5 2 9305311024 51626AA 5 3 23 9305311284 C1823DA 6 4 78 9305311314 C6578DA 4 5 22 9305311554 C9352AA 2 6 21 9305311564 C9351AA 7 7 9305311684 C4844AA 8 8 9305311694 C4911A 1 9 9320754024 Q6000A 5 10 9320754034 Q6001A 7 11 9320754044 Q6002A 4 12 9320754054 Q6003A 6 13 9320800053 Q7553A 8 14 88XL 9320800353 C9396A 5 15 88XL 9320800363 C9391A 3 16 88XL 9320800373 C9392A 3 17 88XL 9320800383 C9393A 7 18 27 9320800404 C8727AA 9 19 28 9320800424 C8728AA 4 20 15 9320801864 C6615DA 3 21 17 9320801924 C6625AA 4 22 18 9320801964 C1823DA 8 23 38A 9320803274 Q1338A 9 24 42A 9320803574 Q5942A 0 25 42A 9320809213 Q5942A 0

BALANCE

- 24 -

EMPNO NAME 52 P J DAVID 72 PRASANTA BORA 73 ROY SUKUMAR 77 DAS B.C. 78 SARKAR S.K. 80 CHAKRABORTY SANJIB 84 GOGOI AMARJYOTI M(RS)JOR 177 91 PHUKAN T.K. DQCM 133 94 DEB D.K. DPNM 116 95 SHARMA M.N. DM(LPG-O) 222 96 BORAH L.C. DPNM 113 99 DAS DEEPANKAR MANAGER 136 113 AGA ABU YUSUF K.A. CM(PLG.PRI 193 120 SARMAH PRABIN M(LPG) 222 121 KHONGWIR L.W. DGM(T) 101 135 PHUKAN GIRISH 136 DEY B.B. 156 DAS SNEHAMOY 160 BORDOLOI S.P. 163 SONOWAL P.C 176 SAIKIA MANIK 190 PHUKAN L N 206 DAS L. D. "DM(LPG-S) M(H&A) SM(S&EP) GM(I/C) DGM(HR) CTSM CM(MO) CHEIFMGR 178 170 175 154 155 130 211 221

Empmst DESIG_ID DEPT_CD DEPT_NM DGM 190 PLANNING M(ENGG) 182 SALES(SILCHAR) DM(ME) 230 KOLKATA OFFICE M(LPG-S) 217 LPG AREA OFFICE (GHY) MANAGER 130 TECH.SERVICES OFFICE M(RS)BONG 184 SALES(BONGAIGAON) SALES(JORHAT) QUALITY CONTROL HDT LPG BP(NORTH GHY) CDU/VDU INSTRUMENT S&D(GHY) LPG BP(NORTH GHY) REFY.PRODUCTION OFFICE 178 MEDICAL SALES(DIGBOI) ADMINISTRATION PERSONNEL TECH.SERVICES OFFICE "TAP OFF POINT LPG BP (GOPANARI)

- 25 -

mst_cartridge ID Mat_cd Descp 1 9305311004 HP 640 C BLACK CARTRIDGE 2 9305311024 HP 695 C BLACK CARTRIDGE 3 9305311284 HP 895 CXI COLOR CARTRIDGE 4 9305311314 HP 3820 COLOR CARTRIDGE 5 9305311554 HP PSC 1410 COLOR CARTRIDGE 6 9305311564 HP PSC 1410 BLACK CARTRIDGE 7 9305311684 HP PLOTTER INK CARTRIDGE NO. 10. C4844A 8 9305311694 HP PLOTTER INK CARTRIDGE NO. 82. C4911A 9 9320754024 CARTRIGE HP C9700A FOR PRINTER 2500L 10 9320754034 HP C9701A CYAN PRINT CARTRIDGE 11 9320754044 HP C9702A YELLOW CARTRIDGE 12 9320754054 HP C9703A MAGENTA PRINT 13 9320800053 TONER HP LASERJET 2015DN 14 9320800353 CARTRIDGE FOR HP PROK5400 BLACK 15 9320800363 CARTRIDGE FOR HP PROK5400 CYAN 16 9320800373 CARTRIDGE FOR HP PROK5400 MAGENTA 17 9320800383 CARTRIDGE FOR HP PROK5400 YELLOW 18 9320800404 CARTRIDGE BLACK HP DESKJET 3650 19 9320800424 CARTRIDGE COLOUR HP DESKJET 3650 20 9320801864 INKJET CARTRIDGE (BLACK) 810 C 21 9320801924 INKJET CARTRIDGE (COLOUR) 840 C 22 9320801964 INKJET CARTRIDGE (COLOUR) 810C 23 9320803274 TONER HP LASERJET 4200N BLACK 24 9320803574 LASERJET 4250DTN HP Q5942A TONER 25 9320809213 TONER CARTRIDGE FOR LASERJET 4250N

SKU_ID CART_NO Amt C6614DA 20 1423 51626AA 1506 C1823DA 23 1843 C6578DA 78 1674 C9352AA 22 851 C9351AA 21 738 C4844AA 1675 C4911A Q6000A Q6001A Q6002A Q6003A Q7553A C9396A 88XL C9391A 88XL C9392A 88XL C9393A 88XL C8727AA 27 C8728AA 28 C6615DA 15 C6625AA 17 C1823DA 18 Q1338A 38A Q5942A 42A Q5942A 42A 1691 3925 4279 4279 4279 4161 1638 1170 1170 1170 831 1077 1206 1503 1843 7913 6994 6994

- 26 -

P_dept DEPT_CD DEPT_NM DEPT_FLG 101 REFY.PRODUCTION OFFICE R AR401 102 BAUXITE R AR111 103 DISTILLATION R AR002 104 NEW TANK FARM R AR417 105 EFFLUENT TREATMENT PLANT R AR402 106 BITUMEN PLANT R AR005 107 ACID WASHING R AR111 108 STOVES R AR107 109 PARAFFIN SHED R AR106 110 WAX RUN DOWN SHED R AR109 111 COOPERAGE R AR409 112 REFERIGERATION R AR341 113 CDU/VDU R AR009 114 CRU/NITROGEN PLANT R AR007 115 NDCU R AR010 116 HDT R AR013 117 SDU R AR112 118 WHFU R AR111 119 VRSD R AR012 120 LPG DESPATCH UNIT(REF) R AR008 123 REFY.MAINTANANCE R AR403 124 DRUMPLANT R AR014 125 CIVIL ENGG.(REFY.) R AR503

SAP_COS

- 27 -

default.aspx Source Code For default.aspx


<html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> <script language="javascript" type="text/javascript"> // <!CDATA[ function TABLE1_onclick() { } // ]]> </script> </head> <body BGCOLOR=Wheat> <form id="form1" runat="server"> <div> <table ALIGN="center" width='100%' style="height: 481px" id="TABLE1" onclick="return TABLE1_onclick()"> <tr> <td style="height: 55px; text-align: center; width: 1221px;"> <table align="center" width='100%'> <tr> <td style="height: 114px; width: 239px;"> <asp:Image ID="Image1" runat="server" ImageUrl="~/GJLOGO.jpg" Height="94px" Width="209px" style="left: 5px; position: relative; top: 0px" /></td> <td style="text-align: center; height: 114px;">

- 28 <span style="color: #006600;"><span style="font-size: 16pt; font-family: Century"><strong> Indian Oil Corporation Limited<br /> </strong></span><span style="font-size: 16pt; font-family: Century"><strong> (Assam Oil Division) <br /> Digboi<br /> </strong></span> </span> </td> <td style="text-align: right; height: 114px;"> <asp:Image ID="Image2" runat="server" ImageUrl="~/assam_oil.gif" Height="86px" Width="124px" style="left: -68px; position: relative; top: 0px" /></td> </tr> </table> <span style="font-size: 14pt; color: #cc9966; text-decoration: underline"><strong><em> <hr /><marquee behavior="alternate" id="MARQUEE1">ON - LINE PRINTER CARTRIDGE SYSTEM</marquee><hr /></em></strong></span></td> </tr> <tr> <td style="height: 296px; width: 1221px;"> <br /> <table align="center" style="width: 500px; height: 28px" frame="border"> <tr bgcolor="#99cccc"> <td style="height: 13px; text-align: center"> <span style="font-size: 16pt; font-family: Rockwell; color: teal;"><strong>Login </strong></span> </td> <tr> <td> <br /> </td></tr> <tr><td style="text-align: center; height: 132px;"> <table style="width: 324px" align="center"> <tr><td style="width: 702px; text-align: left;"> <asp:Label ID="Label1" runat="server" Font-Names="@Arial Unicode MS" Text="Employee No." FontBold="True" Font-Size="12pt" ForeColor="#660066"></asp:Label></td><td> <asp:TextBox ID="TextBox1" runat="server" OnTextChanged="TextBox1_TextChanged1" Width="170px"></asp:TextBox></td></tr> <tr> <td style="width: 702px; text-align: left"> <asp:Label ID="Label2" runat="server" Font-Names="@Arial Unicode MS" Text="Password" FontBold="True" Font-Size="12pt" ForeColor="#660066"></asp:Label></td><td style="width: 210px;"> <asp:TextBox ID="TextBox2" runat="server" Width="170px" OnTextChanged="TextBox2_TextChanged" TextMode="Password"></asp:TextBox></td> </tr> <tr><td style="width: 702px; height: 1px; text-align: left;"> </td><td style="width: 210px; height: 1px; text-align: right;"> <asp:Button ID="Button1" runat="server" Text="Submit" Width="113px" OnClick="Button1_Click" /></td></tr> <td colspan=2 style="height: 35px"> <asp:Label ID="Label3" runat="server" Visible="False" Width="314px" ForeColor="#CC3300"></asp:Label> </td> </table>

- 29 </td></tr> </table> <br /> </td> </tr> <tr><td style="height: 129px; text-align: center; width: 1221px;"> <strong><span style="color: #9999cc">Developed By ,IOCL(AOD)</span></strong></td></tr> </table> &nbsp;</div> </form> </body> </html>

Information

System

Department

Code Behind The Files for Submit Button of default.aspx


protected void Button1_Click(object sender, EventArgs e) { OleDbConnection con = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Users\dexter\Desktop\emp.mdb;Persist Security Info=False"); con.Open(); OleDbCommand cmd = new OleDbCommand("select e.name,e.Designation from emp e, pwd p where e.employee_no ='" + TextBox1.Text + "' and p.password ='" + TextBox2.Text + "' and p.employee_no=e.employee_no", con); OleDbDataReader dr = cmd.ExecuteReader(); if (dr.Read()) { Session["empno"] = TextBox1.Text; Session["name"] = dr[0].ToString(); Session["desg"] = dr[1].ToString(); Response.Redirect("default2.aspx"); } else { Label3.Text = "Invalid Employee no or Password"; Label3.Visible = true; } dr.Close(); cmd.Dispose(); con.Close();

Default2.aspx menu

- 30 -

default3.aspx Page Load event at Default3.aspx:


public partial class Default3 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { DropDownList1.Items.Clear(); OleDbConnection cona = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Users\dexter\Desktop\cartridge.mdb;Persist Security Info=False"); cona.Open(); DropDownList1.Items.Add("Select"); OleDbCommand cmda = new OleDbCommand("select empno from empmst ", cona); OleDbDataReader dr = cmda.ExecuteReader(); while (dr.Read()) { DropDownList1.Items.Add(dr[0].ToString()); }

DropDownList2.Items.Clear(); DropDownList2.Items.Add("Select"); OleDbCommand cmdb = new OleDbCommand("select sku_id from cartridge_stock ", cona); OleDbDataReader dr1 = cmdb.ExecuteReader(); while (dr1.Read()) { DropDownList2.Items.Add(dr1[0].ToString()); }

- 31 -

OleDbCommand cmdc = new OleDbCommand("select max(issueid) from cartridge_issue", cona); OleDbDataReader dr7 = cmdc.ExecuteReader(); if (dr7.Read()) { int i = Convert.ToInt32(dr7[0]) + 1; string s = Convert.ToString(i); if (s.Length == 1) s = "00000" + s; else if (s.Length == 2) s = "0000" + s; else if (s.Length == 3) s = "000" + s; else if (s.Length == 4) s = "00" + s; else if (s.Length == 5) s = "0" + s; Label22.Text = s; } cona.Close(); } }

Coding behind Issue button of default3.aspx:


protected void Button1_Click(object sender, EventArgs e) { OleDbConnection conz = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Users\dexter\Desktop\cartridge.mdb;Persist Security Info=False"); conz.Open(); string ins = "INSERT INTO catridge_issue(issueid, dept, cost_centre, empno, cart_no, mat_cd, amt, qty_reqd, qty_empty_cart_ret, dat_last_iss, cart_no_iss, cart_qty_iss, dat_iss, issuedby, tot_amt) values ('" + Label22.Text + "', '" + Convert.ToInt32(TextBox1.Text) + "', '" + TextBox2.Text + "', '" + Convert.ToInt32(DropDownList1.Text) + "', '" + TextBox15.Text + "', '" + TextBox5.Text + "', '" + TextBox16.Text + "', '" + Convert.ToInt32(TextBox8.Text) + "', '" + TextBox17.Text + "', '" + TextBox11.Text + "', '" + TextBox15.Text + "', '" + Convert.ToInt32(TextBox18.Text) + "', '" + TextBox9.Text + "', '" + TextBox12.Text + "', '" + TextBox16.Text + "')"; OleDbCommand cmdz = new OleDbCommand(ins, conz); cmdz.ExecuteNonQuery(); cmdz.Dispose(); conz.Close(); Button1.Enabled = true; }

Coding behind the calender button of default3.aspx:


protected void Calendar1_SelectionChanged(object sender, EventArgs e) { TextBox9.Text = Calendar1.SelectedDate.Day.ToString() + Calendar1.SelectedDate.Month.ToString() + "/" + Calendar1.SelectedDate.Year.ToString(); Calendar1.Visible = false; }

"/"

- 32 -

Coding behind Employee No. button :


protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) { if (DropDownList1.SelectedIndex != 0) { OleDbConnection conb = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Users\dexter\Desktop\cartridge.mdb;Persist Security Info=False"); conb.Open(); OleDbCommand cmdd = new OleDbCommand("select e.name,e.dept_nm,e.dept_cd from empmst e,p_dept p where e.empno=" + Convert.ToInt32(DropDownList1.Text) + " ", conb); OleDbDataReader dr = cmdd.ExecuteReader(); if (dr.Read()) { TextBox13.Text = dr[0].ToString(); TextBox1.Text = dr[1].ToString(); TextBox14.Text = dr[2].ToString(); //TextBox2.Text = dr[3].ToString();

} dr.Close(); OleDbCommand cmdb = new OleDbCommand("select sap_cos from p_dept where dept_cd=" + Convert.ToInt32(TextBox14.Text) + "", conb); OleDbDataReader dr2 = cmdb.ExecuteReader(); if (dr2.Read()) { TextBox2.Text = dr2[0].ToString();

} dr.Close(); OleDbCommand cmde = new OleDbCommand("select dat_iss from cartridge_issue where empno=" + Convert.ToInt32(DropDownList1.Text) + " and issueid=(select max(issueid) from cartridge_issue where empno=" + Convert.ToInt32(DropDownList1.Text) + ")", conb); OleDbDataReader dr3 = cmde.ExecuteReader(); if (dr3.Read()) { TextBox11.Text = dr3[0].ToString(); } else TextBox11.Text = DateTime.Now.ToString(); dr.Close(); conb.Close(); } else { TextBox13.Text = ""; TextBox1.Text = ""; TextBox14.Text = ""; TextBox2.Text = ""; } }

- 33 -

Coding behind Cartridge SKU ID of default3.aspx:


protected void DropDownList2_SelectedIndexChanged(object sender, EventArgs e) { if (DropDownList2.SelectedIndex != 0) { OleDbConnection con = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Users\dexter\Desktop\cartridge.mdb;Persist Security Info=False"); con.Open(); OleDbCommand cmd = new OleDbCommand("select m.mat_cd,m.cart_no,m.amt,m.descp,s.qty from mst_cartridge m,cartridge_stock s where m.sku_id='" + DropDownList2.Text + "'and s.cart_no=m.cart_no ", con); OleDbDataReader dr = cmd.ExecuteReader(); if (dr.Read()) { TextBox15.Text = dr[1].ToString(); TextBox5.Text = dr[0].ToString(); TextBox16.Text = dr[2].ToString(); TextBox7.Text = dr[3].ToString(); DropDownList2.Text = DropDownList2.Text; } dr.Close(); con.Close(); } else { TextBox15.Text = ""; TextBox5.Text = ""; TextBox16.Text = ""; TextBox7.Text = ""; } }

- 34 -

USAGE SCENARIOS

Use Case Title: Abbreviated Title: Use Case ID: Actors: Description:

REQUEST FOR LOGIN Login 1. Administrator

To interact with the Online Printer Cartridge Management System (OPCMS), which will validate the log in credentials to give access the administrative privileges with the system. Once successfully, logged in it will also define the user the various services it can take over the system. Pre Conditions: User must have proper client installed on user terminal Task Sequence: 1. System show the Login screen 2. User/Administrator will in the required Log in credentials 3. System acknowledge entry 4. Log-in successful if input data is validated Post Conditions: 1. System transfer control to user main screen to proceed further actions. Exception: 1. If no user found then system display Invalid user name & password error message and transfer control to the log-in page again.

- 35 -

Use Case Title Abbreviated Title Use Case ID Actors Description:

ISSUE Issue 2. Administrator & Borrower(Employee)

The Issue feature makes the user enable to issue the cartridge requirements over world wide web. With this, the effort is less while maintaining the user & cartridge databases. In addition to this, it becomes easy to search a particular record or generate a report for a particular range of time when required. Pre Conditions: User must be Login with the administrator privileges. Task Sequence: 1. System will show up the Home page 2. User has the option to chose from a particular functions available in the Menu 3. By clicking on the Issue button, the user is directed to the OPCMS cartridge issue form 4. The user then enter the details of the requirements 5. The system will automatically check at the back-end connected database for the availability 6. The administrator enters his or a valid issue id to issue the requirements 7. Once, clicked on the Issue button & successfully validated the input details, the issuing process in complete & a confirmation message will be generated Post Conditions: 1. User can view the newly updated report after the adding the record 2. User can also estimate the requirements in the warehouse once the report is observed thoroughly and put forward request to place new orders Exception: 1. There is no quantity of the required cartridges available. 2. The user may not have the administrative privileges to Issue any cartridge.

- 36 -

Use Case Title: Abbreviated Title: Use Case ID: Actors: Description:

SEARCH Search 3. Administrator

Search option makes it easy to search for a record in a particular range of time period on OPCMS. With this search companion, administrator can specify several search criteria. For example, employee name, quantity, date last issued etc. Pre Conditions: The user (administrator) must be logged on. Task Sequence: 1. Once clicked on the Search button, the System will show the searching screen 2. User enter required information a. It can be the employee name, quantity, date last issued etc. 3. By pressing search button system will list down all searching results. Post Conditions:: 1. The search result is displayed and the user can again look for a particular record with new search criteria Exception: 1. If at the same time some other user(administrator) issue a particular cartridge, the system may be temporary reserved.

Use Case Title: Abbreviated Title: Use Case ID: Actors: Description:

STOCK Stock 4. Administrator

Used to check if a cartridge is available in the stock for issue. Pre Conditions: The user must be logged in. Task Sequence: 1. User selects the Stock option from the Menu 2. System will check in the backend connected database if the book is available or not. Post Conditions: 1. Cartridge will be available for issue if it shows up in the valid criteria. 2. The administrator will issue the cartridge. Exception: 1. The cartridge is not available due to the fact that none of it is available for issue.

- 37 -

ANALYSIS DIAGRAMS:
1. Use Case Diagram:

- 38 -

2. Class Diagram:

- 39 -

CONCLUSION

During my period of training at Indian Oil Corporation Limited, Assam Oil Division, Digboi, I have been familiar with developing web based applications using Microsoft Visual Studio 2005 along with Dot Net Framework 2.0. I have learned the handling of the Database using Oracle 8i.

Apart from software development part, I have also learned about systems development life cycle, systems development methodologies and waterfall model in the Organisation.