You are on page 1of 51

Dairy Management System

1. INTRODUCTION

This Project automates the existing manual system for maintaining the details

of the Dairy organization. This project begins with the Login Form, where the

Administrator enters both user id and password; if it matches then he/she will be

allowed to use the application. This document is meant to be used by the developers

to guide them through the Development and for the user to verify his requirements.

Computerizing the process of the Dairy organization will improve the overall

efficiency of the existing system, fulfill the requirements of the customers as well as

to cope up with this changing world and finally to save the time and cost of

maintenance process.

The Project titled “DAIRY MANAGEMENT SYSTEM” is client server

application. This application is implemented in C#.Net as front end and SQL server

2000 as Back end. The design of the project mainly aimed at, to provide a platform

for the effective communication between the dairy, agents, customers and managers.

Sharnbasaveshwar College of Commerce, Dept of BCA 1


Dairy Management System

2. SYSTEM ENVIRONMENT

The system requirements will need some specific software tools while

developing this project:

Purpose: The main purpose for preparing this document is to give a general insight

into the analysis and requirements of the existing system or situation and for

determining the operating characteristics of the system.

Scope: This Document plays a vital role in the development life cycle (SDLC) As it

describes the complete requirement of the system. It is meant for use by the

developers and will be the basic during testing phase. Any changes made to the

requirements in the future will have to go through formal change approval process.

2.1 Hardware Requirement

Processor : Pentium series.

Memory : 128 MB+RAM.

Hard Disk : 4 GB and above.

2.2 Software Requirement

Operating System : Windows XP.

Front end software : C#.Net

Back end software : Microsoft SQL server.

Sharnbasaveshwar College of Commerce, Dept of BCA 2


Dairy Management System

2.3 Current Literature

ABOUT VISUAL C#

INTRODUCTION:

Visual C# is the addition to the family of Microsoft visual studio. Visual C#

is specifically designed to utilize the internet. User can easily create web-based

application called ActiveX executables internet explorer 4.0 or higher Web Browser.

Visual C# supports ADO (active Data Object), DHTML and ISS (Internet

Information Service), ISAPI’s (Internet Server API). The new formatting, string,

numeric functions and new validate events for input controls increase the learning rate

of novice programmer.

HISTORY OF VISUAL C#:

Earlier versions of C#(1.0 and 2.) were considered as “Hobbyist’s language”

had limited features and dismal performance compared to application written in other

language like C.

 C#3.0 became much more database friendly and MS Jet Engine was

introduced along with MS Access Database.

 C#4.0 supports 32-bit programs; OCX or Active X and DLL were introduced

along with more powerful Jet Engine.

 C#5.0 was first version of C#, which provides a native code machine code. It

also supports Active X Documents, Active X DLL’s

Sharnbasaveshwar College of Commerce, Dept of BCA 3


Dairy Management System

MICROSOFT SQL SERVER

DATABASE:

A database management, or DBMS, gives the user access to their data and

helps them transform the data into information. Such database management systems

include dBase, paradox, IMS, SQL Server and SQL Server. These systems allow

users to create, update and extract information from their database.

SQL Server Tables

SQL Server stores records relating to each other in a table. Different tables

are created for the various groups of information. Related tables are grouped together

to form a database.

Primary Key

Every table in SQL Server has a field or a combination of fields that uniquely

identifies each record in the table. The Unique identifier is called the Primary Key, or

simply the Key. The primary key provides the means to distinguish one record from

all other in a table. It allows the user and the database system to identify, locate and

refer to one particular record in the database.

Relational Database

Sometimes all the information of interest to a business operation can be stored

in one table. SQL Server makes it very easy to link the data in multiple tables.

Matching an employee to the department in which they work is one example. This is

what makes SQL Server a relational database management system, or RDBMS. It

stores data in two or more tables and enables you to define relationships between the

table and enables you to define relationships between the tables.

Sharnbasaveshwar College of Commerce, Dept of BCA 4


Dairy Management System

Foreign Key

When a field is one table matches the primary key of another field is referred

to as a foreign key. A foreign key is a field or a group of fields in one table whose

values match those of the primary key of another table.

Referential Integrity

Not only does SQL Server allow you to link multiple tables, it also maintains

consistency between them. Ensuring that the data among related tables is correctly

matched is referred to as maintaining referential integrity.

Data Abstraction

A major purpose of a database system is to provide users with an abstract view

of the data. This system hides certain details of how the data is stored and

maintained. Data abstraction is divided into three levels.

Physical level: This is the lowest level of abstraction at which one describes how the

data are actually stored.

Conceptual Level: At this level of database abstraction all the attributed and what

data are actually stored is described and entries and relationship among them.

View level: This is the highest level of abstraction at which one describes only part of

the database.

Sharnbasaveshwar College of Commerce, Dept of BCA 5


Dairy Management System

Advantages of RDBMS

 Redundancy can be avoided

 Inconsistency can be eliminated

 Data can be Shared

 Standards can be enforced

 Security restrictions ca be applied

 Integrity can be maintained

 Conflicting requirements can be balanced

 Data independence can be achieved.

Features of SQL Server (RDBMS)

SQL SERVER is one of the leading database management systems (DBMS)

because it is the only Database that meets the uncompromising requirements of

today’s most demanding information systems. From complex decision support

systems (DSS) to the most rigorous online transaction processing (OLTP) application,

even application that require simultaneous DSS and OLTP access to the same critical

data, SQL Server leads the industry in both performance and capability SQL

SERVER is a truly portable, distributed, and open DBMS that delivers unmatched

performance, continuous operation and support for every database.

SQL SERVER RDBMS is high performance fault tolerant DBMS which is

specially designed for online transactions processing and for handling large database

application.

Sharnbasaveshwar College of Commerce, Dept of BCA 6


Dairy Management System

SQL SERVER with transactions processing option offers two features which

contribute to very high level of transaction processing throughput, which are

 The row level lock manager

Enterprise wide Data Sharing

The unrivaled portability and connectivity of the SQL SERVER DBMS

enables all the systems in the organization to be linked into a singular, integrated

computing resource.

Portability

SQL SERVER is fully portable to more than 80 distinct hardware and

operating systems platforms, including UNIX, MSDOS, OS/2, Macintosh and dozens

of proprietary platforms. This portability gives complete freedom to choose the

database sever platform that meets the system requirements.

Open Systems

SQL SERVER offers a leading implementation of industry –standard SQL.

SQL Server’s open architecture integrates SQL SERVER and non –SQL SERVER

DBMS with industries most comprehensive collection of tools, application, and third

party software products SQL Server’s Open architecture provides transparent access

to data from other relational database and even non-relational database.

Sharnbasaveshwar College of Commerce, Dept of BCA 7


Dairy Management System

Distributed Data Sharing


SQL Server’s networking and distributed database capabilities to access data

stored on remote server with the same ease as if the information was stored on a

single local computer. A single SQL statement can access data at multiple sites. You

can store data where system requirements such as performance, security or

availability dictate.

Unmatched Performance
The most advanced architecture in the industry allows the SQL SERVER

DBMS to deliver unmatched performance.

Sophisticated Concurrency Control


Real World applications demand access to critical data. With most database

Systems application becomes “contention bound” – which performance is limited not

by the CPU power or by disk I/O, but user waiting on one another for data access .

SQL Server employs full, unrestricted row-level locking and contention free queries

to minimize and in many cases entirely eliminates contention wait times.

No I/O Bottlenecks
SQL Server’s fast commit groups commit and deferred write technologies

dramatically reduce disk I/O bottlenecks. While some database write whole data block

to disk at commit time, SQL Server commits transactions with at most sequential log

file on disk at commit time, On high throughput systems, one sequential writes

typically group commit multiple transactions. Data read by the transaction remains as

shared memory so that other transactions may access that data without reading it

again from disk. Since fast commits write all data necessary to the recovery to the log

file, modified blocks are written back to the database independently of the transaction

commit, when written from memory to disk.

Sharnbasaveshwar College of Commerce, Dept of BCA 8


Dairy Management System

3. SYSTEM STUDY

System analysis is an approach to study behavior or the system analyzing the

problem of the system &what must be done to solve problem. The Analysis of

problem is very important before going to develop any application, so we need to

analyze that we require Design tools and Database tools so we decided to use C#.NET

technology as a front end tool and SQL server as back end tool.

3.1. Problem Definitions:

The main problem we are considering here is that the records are maintain

currently in the city are manually, we are making the application such that those

records can be maintained in computer systematically and protected.

The Analysis of problem is very important before going to develop any

application, so we need to analyze that we require Design tools and data base tools, so

we decided to use C#.Net is compatible platform for front end design and SQL server

2000 as back end side.

Our Product name is “DAIRY MANAGEMENT SYSTEM”, we have some

13 to 15 or more front end form designs according to that we coded the system

attractively. “DAIRY MANAGEMENT SYSTEM” is user friendly stand alone system

to help the user.

Sharnbasaveshwar College of Commerce, Dept of BCA 9


Dairy Management System

3.2. Existing System

The study of Existing System is important before thinking of proposed

system. At present in a “DAIRY MANAGEMENT SYSTEM” all activities are

carried out manually, we encounter some problems, like calculation mistakes and

verification mistakes etc.

Draw Backs of Existing System

 The existing system is a manual system.

 There is huge redundancy of data as separate copies need to prepare for each

manager, customers, routs, employees, food products. The efficiency &

correctness of data processing was limited to the capabilities of the data entry

personnel.

 The following activities are tedious and time consuming in the manual system

o Storage, retrieval, updating of data

o Implementation of corrections, changes & modifications of data

o Generation of reports

o Searching & sorting of records

o Preservation & maintenance of bulk records.

3.3. Proposed System:

The Advancing computer technology has more features, which gives a lot of

advance facilities. My computer application “DAIRY MANAGEMENT SYSTEM” is

used to maintain the records of different customers and dairy management.

Sharnbasaveshwar College of Commerce, Dept of BCA 10


Dairy Management System

This software may be used to maintain a complete data of customer’s details

and Manager code, manager Name, shift, Address, telephone No ,Supplier code,

Name, shift. The database is being managed by maintaining all these activities by the

use of computer technology. Thus the use of “DAIRY MANAGEMENT SYSTEM”

software makes easy to maintain details of referred dealers who are associated with

the company.

Features of Proposed System:

o To automate Dairy Management information System.

o This system has computerized the operations done in Dairy milk products. It

maintains various files by doing additions & modifications to them. It has a

process of where products are maintained according to the client

requirements.

o This system provides information to both client and customers according to

their requirements.

Advantages of Proposed System

 Redundancy of data is eliminated as data can be shared.

 The following activities are efficient and easier

 Storage, retrieval, updating of data

 Implementation of corrections, changes & modifications of data

 Generation of reports

 Searching & sorting of records Preservation & maintenance of bulk

records.

Sharnbasaveshwar College of Commerce, Dept of BCA 11


Dairy Management System

4. SYSTEM ANALYSIS

Analysis is the detailed study of the various operation performed by a system

and their relationship within and outside of a system. A key question is a must to be

done to solve the operation. One aspect of the analysis should consider the other

related system. During the analysis data are collected on the available files, decision

points and transaction handled by present system. Some logical system models and

tools are used in analysis. Data flow diagrams, onsite observations and questionnaires

are examples. Training experience and common sense are required for the collection

of the information needed to the analysis.

The system analysis and design refers to the examining a business situation

with the system development can generally thought of as having two major

components.

System Analysis

System Design

Once the analysis is completed, the analyst has a firm understanding of what is

to be done. The next step is to decide how the problem might be solved. Structured

analysis is another way that allows the analyst to develop a new kind of system

specification that is easily understandable to the user. Analyze primarily works with

their wits, pencil and paper.

Sharnbasaveshwar College of Commerce, Dept of BCA 12


Dairy Management System

4.1 Feasibility Study:

Depending on the result of the initial investigation the survey is expanded to a

more detailed feasibility study. Feasibility is test of a system proposal according to its

work ability, impact on the organization, ability to meet user need and effective use of

resources.

The technical feasibility is concerned with specifying equipment and software

that successfully satisfy the user requirement. The technical need of the system may

vary considerably but might include the facility to store data in the database. This

project is operationally feasible. It will not need to change their staff because all

members have least knowledge of computer operations, which this project need.

Time feasibility is a determination of whether a proposed project can be

implemented fully within a stipulated time frame. If project takes too much time it is

likely to be rejected. Our project is timely feasible. It is finished in three months.

4.2 The Data Flow Diagram (DFD):-

The graphical description of a system data and how the processor transforms

the data is known as data flow diagram. Data flow diagrams are used for documenting

the findings in data flow analysis. They graphically show the relation between

processes on data. The transformation of data from input to output. Through the

process may be described logically & independently of the physical components

associated with the system. DFD’s quite easy to read & understand. There are two

alternates but equivalent.

Sharnbasaveshwar College of Commerce, Dept of BCA 13


Dairy Management System

Data Flow Diagrams (DFD) depict information that are applied as data move

from input to output it is the starting point of design phase that functionally

decomposes the requirement specification down to the lowest level of detail. Thus a

DFD describes what data flows (Logically) rather than how they are processed. So it

does not depend on hardware, software or data structure.

It is one of the most important tools used during system analysis it is used to

model the system components such as the system process, data used by the process

any external entities that interact with the system and information flow in the system.

4.2.1 Advantages of DFDS:

These are the simple notations which are easily understood by the user and

these involved in the system. Users can be involved in the system. Users can suggest

modification of the DFD for more accuracy. Users can examine charts and starts.

Avoiding mistakes easily may prevent system failure the basic notations used to

create a DFD is illustrated in below.

External Entity:

Always internal to system, Data stays at rest unless moved by a process.

Process:

Circle represents a process that transforms incoming data flow into outgoing

data flow.

Sharnbasaveshwar College of Commerce, Dept of BCA 14


Dairy Management System

Data Flow:

Arrows represents data flow.

Data in motion, moving from one place to another in the system

Data Store:

Open rectangle represents a data store

Internal to the system, Data at rest

Include in system if the system processes transform the data.

0 Level Data Flow Diagram:

Fig: 4.2.1. 0-Level DFD

Sharnbasaveshwar College of Commerce, Dept of BCA 15


Dairy Management System

1-level DFD: VGSSS Library Management System:

Fig: 4.2.2. 1-Level DFD

Sharnbasaveshwar College of Commerce, Dept of BCA 16


Dairy Management System

E-R DIAGRAM:

Fig: 4.3.1 E-R DIAGRAM

Sharnbasaveshwar College of Commerce, Dept of BCA 17


Dairy Management System

5. SYSTEM DESIGN

Design is a multi-step process focuses on data structure, software architecture,

procedural details, (Algorithm etc...) and interface between the modules. The design

process also translates the requirements in to the representation of software that can

be accessed for quality before coding begins.

Computer software design changes continually as new methods; better

analysis and broader understanding evolve. Software design is at relatively early stage

in its revolution. Therefore, software design methodology lacks the depth, flexibility

and quantitative nature that are normally associated with more classical engineering

disciplines.

Once Software Requirements have been analyzed and specified, software

design is the first three technical activities-Design, code, and Test that are require

building and verifying Software. Each activity transforms information in a manner

that ultimately results in validation of the Computer Software.

The importance of software Design can be started with a single word quality.

Design is the place where quality fostered in software development. Design provides

us with the representation of the software that can be accessed for quality.

Sharnbasaveshwar College of Commerce, Dept of BCA 18


Dairy Management System

Design is the only way that we can accurately translate a customer’s

requirements into a finished software product or system. Without Design, risk of

building an unstable system exists-one that will fail when smart changes are made one

that may be difficult to test.

5.1 Database Design:

5.1.1 Auto_Code Table:

Filed Name Data Type Size

P_code int 20

A_code int 20

Fig 5.1.1 Auto_code table


5.1.2 Login Table:
Filed Name Data Type Size

Username Varchar 20

Password varchar 20

Fig 5.1.2 Login Table


5.1.3 Agent_details Table:
Filed Name Data Type Description

Name Int Not null

P_code Varchar Not null

S_code Varchar Not null

Qty_ltrs Varchar Not null

Rate Varchar Not null

Amt Varchar Not null

Remarks Varchar Not null

Fig 5.1.3 Agent_details Table

Sharnbasaveshwar College of Commerce, Dept of BCA 19


Dairy Management System

5.1.4 Agent_master Table:

Filed Name Data Type Size

A_code Int 20

A_name Varchar 50

Doj Datetime 20

A_address Varchar 50

A_contact_no Int 50

A_depo_amt varchar 50

A_occupation Varchar 50

A_place Varchar 20

Fig 5.1.4 Agent_master table

5.1.5 Customer details Table:

Filed Name Data Type Size

C_code Int 20

P_code Int 10

S_date Datetime 20

Qty_1ltr Varchar 20

Rate Int 50

Amt Int 15

Remarks Varchar 50

Fig 5.1.5 Customer details Table

Sharnbasaveshwar College of Commerce, Dept of BCA 20


Dairy Management System

5.1.6 Customer_Master Table:

Filed Name Data Type Size

C_code Int 20

C_name Varchar 25

C_type Varchar 50

C_gender Varchar 20

C_doj Datetime 50

C_age Varchar 25

C_occupation Varchar 15

C_place Varchar 50

C_address Varchar 25

Fig 5.1.6 Customer_Master Table

5.1.7 Product Table:

Filed Name Data Type Size Description

P_code Int 10 Not null

P_name Varchar 10 Not null

Description Varchar 10 Not null

Remarks Varchar 25 Not null

Fig 5.1.7 Product Table

Sharnbasaveshwar College of Commerce, Dept of BCA 21


Dairy Management System

5.1.8 Return_product Table:

Filed Name Data Type Size Description

R_date Datetime 10 Not null

A_code Int 10 Not null

P_code Int 25 Not null

Qty_ltr varchar 25 Not null

Rate int 10 Not null

Amt int

Remarks varchar

Fig 5.1.8 Return_product Table

5.1.9 Route Table:

Filed Name Data Type Size Description

R_code Int 10 Not null

R_name varchar 10 Not null

R_area Int 25 Not null

R_V_no Int 25 Not null

R_V_incharg varchar 10 Not null

Remarks varchar

Fig.5.1. 9 Route Table

5.2 Design of Screens:

One of the important factors of an information system for the user is the output

the system produces. Without the quality of the output, the entire system may appear

unnecessary that will make us avoid using possibly causing it to fail. Designing the

output should process in an organized well throughout the manner.

Sharnbasaveshwar College of Commerce, Dept of BCA 22


Dairy Management System

The right output must be developed while ensuring that each output element is

designed so that people will find the system easy to use effectively.

The term output applying to information produced by an information system

whether printed or displayed while designing the output we should identify the

specific output that is needed to information requirements select a method to present

the information and create a document report or other formats that contains produced

by the system.

Fig: 5.2.1 Login Form

Sharnbasaveshwar College of Commerce, Dept of BCA 23


Dairy Management System

Fig: 5.2.2 Main Form

Sharnbasaveshwar College of Commerce, Dept of BCA 24


Dairy Management System

Fig: 5.2.3 Agent_details Form

Fig: 5.2.4 Agent_master Form

Sharnbasaveshwar College of Commerce, Dept of BCA 25


Dairy Management System

Fig: 5.2.5 Customer_details Form

Fig: 5.2.5.1 Customer_details Form

Sharnbasaveshwar College of Commerce, Dept of BCA 26


Dairy Management System

Fig: 5.2.6 Customer master Form

Fig: 5.2.6.1 Customer_master Form

Sharnbasaveshwar College of Commerce, Dept of BCA 27


Dairy Management System

Fig: 5.2.7 Product Form

Fig: 5.2.7.1 Product Form

Sharnbasaveshwar College of Commerce, Dept of BCA 28


Dairy Management System

Fig: 5.2.8 Return_product Form

Fig: 5.2.9 Route Form

Sharnbasaveshwar College of Commerce, Dept of BCA 29


Dairy Management System

Fig: 5.2.9.1 Route For


5.3 Sample Output:

5.3.1 Agent_details Form

Sharnbasaveshwar College of Commerce, Dept of BCA 30


Dairy Management System

5.3.2 Agent_master Form

5.3.3 Customer_details Form

Sharnbasaveshwar College of Commerce, Dept of BCA 31


Dairy Management System

5.3.4 Customer_master Form

5.3.5 Return_product Form

Sharnbasaveshwar College of Commerce, Dept of BCA 32


Dairy Management System

5.3.6 Route Form

6. CODING

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Text;

using System.Windows.Forms;

namespace WindowsApplication1

public partial class Form6 : Form

public Form6()

InitializeComponent();

private void button1_Click(object sender, EventArgs e)

this.Close();

private void Form6_Load(object sender, EventArgs e)

Sharnbasaveshwar College of Commerce, Dept of BCA 33


Dairy Management System

private void button2_Click(object sender, EventArgs e)

if (button2.Text.Equals("New"))

textBox1.Text = "";

textBox2.Text = "";

textBox3.Text = "";

textBox4.Text = "";

textBox5.Text = "";

textBox6.Text = "";

textBox7.Text = "";

textBox8.Text = "";

textBox1.Focus();

button2.Text = "Save";

else if(button2.Text.Equals("Save"))

if (textBox1.Text.Equals(string.Empty) ||
textBox2.Text.Equals(string.Empty) ||
textBox3.Text.Equals(string.Empty) ||
textBox4.Text.Equals(string.Empty) ||
textBox5.Text.Equals(string.Empty) ||
textBox6.Text.Equals(string.Empty) ||
textBox7.Text.Equals(string.Empty) ||
textBox8.Text.Equals(string.Empty))

MessageBox.Show("Plz Enter Data");

Sharnbasaveshwar College of Commerce, Dept of BCA 34


Dairy Management System

return;

Class1 x = new Class1();

x.conn();

x.AgentMaster.CommandText = "insert into AgentMaster


values('" + textBox1.Text + "','" + textBox2.Text + "','" +
textBox3.Text + "','" + textBox4.Text + "', '" + textBox5.Text +
"','" + textBox6.Text + "','" + textBox7.Text + "','" + textBox8.Text
+ "')";

x.AgentMaster.Connection = x.cc;

x.cc.Open();

x.AgentMaster.ExecuteNonQuery();

x.cc.Close();

MessageBox.Show("Saved");

button2.Text = "New";

private void button4_Click(object sender, EventArgs e)

if (button4.Text.Equals("Modify"))

if (textBox9.Text.Equals(string.Empty) )

MessageBox.Show("Plz Enter Data");

return;

Sharnbasaveshwar College of Commerce, Dept of BCA 35


Dairy Management System

Class1 x = new Class1();

x.conn();

x.AgentMaster.CommandText = "select * from


AgentMaster where Acode='" + textBox9.Text + "'";

x.AgentMaster.Connection = x.cc;

x.cc.Open();

x.rd = x.AgentMaster.ExecuteReader();

if (!x.rd.HasRows)

MessageBox.Show("Not found");

x.cc.Close();

return;

textBox1.Text = Convert.ToString(x.rd.GetValue(0));

textBox2.Text = Convert.ToString(x.rd.GetValue(1));

textBox3.Text = Convert.ToString(x.rd.GetValue(2));

textBox4.Text = Convert.ToString(x.rd.GetValue(3));

textBox5.Text = Convert.ToString(x.rd.GetValue(4));

textBox6.Text = Convert.ToString(x.rd.GetValue(5));

textBox7.Text = Convert.ToString(x.rd.GetValue(6));

textBox8.Text = Convert.ToString(x.rd.GetValue(7));

button4.Text = "Update";

else if (button4.Text.Equals("Update"))

Sharnbasaveshwar College of Commerce, Dept of BCA 36


Dairy Management System

if (textBox1.Text.Equals(string.Empty) ||
textBox2.Text.Equals(string.Empty) ||
textBox3.Text.Equals(string.Empty) ||
textBox4.Text.Equals(string.Empty) ||
textBox5.Text.Equals(string.Empty) ||
textBox6.Text.Equals(string.Empty) ||
textBox7.Text.Equals(string.Empty) ||
textBox8.Text.Equals(string.Empty)) {

MessageBox.Show("Plz Enter Data");

return;

Class1 x = new Class1();

x.conn();

x.AgentMaster.CommandText = "update AgentMaster set


Acode='" + textBox1.Text + "',Aname='" + textBox2.Text + "',DOJ='" +
textBox3.Text + "',Add='" + textBox4.Text + "', Contact='" +
textBox5.Text + "',Deposit='" + textBox6.Text + "',Occup='" +
textBox7.Text + "',Place='" + textBox8.Text + "' where
Acode='"+textBox9.Text+"'";

x.AgentMaster.Connection = x.cc;

x.cc.Open();

x.AgentMaster.ExecuteNonQuery();

x.cc.Close();

MessageBox.Show("Updated");

button4.Text = "Modify";

private void button3_Click(object sender, EventArgs e)

Sharnbasaveshwar College of Commerce, Dept of BCA 37


Dairy Management System

if (button3.Text.Equals("Delete"))

if (textBox5.Text.Equals(string.Empty))

MessageBox.Show("Plz Enter Data");

return;

Class1 x = new Class1();

x.conn();

x.AgentMaster.CommandText = "select * from


AgentMaster where Acode='" + textBox5.Text + "'";

x.AgentMaster.Connection = x.cc;

x.cc.Open();

x.rd = x.AgentMaster.ExecuteReader();

if (!x.rd.HasRows)

MessageBox.Show("Not found");

x.cc.Close();

return;

textBox1.Text = Convert.ToString(x.rd.GetValue(0));

textBox2.Text = Convert.ToString(x.rd.GetValue(1));

textBox3.Text = Convert.ToString(x.rd.GetValue(2));

textBox4.Text = Convert.ToString(x.rd.GetValue(3));

textBox5.Text = Convert.ToString(x.rd.GetValue(4));

textBox6.Text = Convert.ToString(x.rd.GetValue(5));

Sharnbasaveshwar College of Commerce, Dept of BCA 38


Dairy Management System

textBox7.Text = Convert.ToString(x.rd.GetValue(6));

textBox8.Text = Convert.ToString(x.rd.GetValue(7));

button3.Text = "Remove";

else if (button3.Text.Equals("Remove"))

Class1 x = new Class1();

x.conn();

x.AgentMaster.CommandText = "delete from AgentMaster


where Acode='" + textBox9.Text + "'";

x.AgentMaster.Connection = x.cc;

x.cc.Open();

x.AgentMaster.ExecuteNonQuery();

x.cc.Close();

MessageBox.Show("Deleted");

button3.Text = "Delete";

Sharnbasaveshwar College of Commerce, Dept of BCA 39


Dairy Management System

7. TESTING

Software testing is a criterion of software quality assurance and represents the

ultimate review of specified design and coding. during system testing the system is

used experimentally to ensure that the software does not fail, i.e. it will run according

to its specification and in the way the user expect special test data are input for

processing and the result examined. A Limited number of users may be allowed to use

the system to see whether they try to use it in unforeseen ways. It is preferable to

discover any surprises before the organization implements the system

7.1 Characteristics of Testing

 Testing begins at the module level and works out word towards the integration

of entire computer based system

 Different testing technique is appropriate at different point of time

 The developer of the software and an independent test group conducts testing

and debugging are different activities but debugging must be accommodated

in any testing strategy

7.2 Types of Testing

 Unit Testing

 Integrity Testing

 Validation Testing

 Output Testing

 System Testing

Sharnbasaveshwar College of Commerce, Dept of BCA 40


Dairy Management System

7.2.1 Unit Testing

Unit testing focuses on verification effort of the smallest unit of the software

design, using the procedural details as guide, important control paths and out of the

program unit under test. The local data structure is examined to ensure that stored

temporally maintains its integrity during all steps of extension. Unit testing is done for

each of the different objects which are listed individually by taking inputs from real

projects drawings.

7.2.2 Integrity Testing

This is a systematic technique for construction of a program structure while

conducting tests to uncover errors associated with interfacing, the objective is to take

unit tested and build a program structure that has been detected to be designed

7.2.3 Validation Testing

After Integration testing, software is completely assembled as a package,

interfacing error have been uncovered and correctly and the final series of software

test, the validation test begins. Validation succeeds when the software function in the

manner as required by the customer.

7.2.4 Output Testing

Output testing is done to the proposed system since no system would be

termed useful until it does produce the required output in specified format.

Sharnbasaveshwar College of Commerce, Dept of BCA 41


Dairy Management System

7.2.5 System Testing

System testing actually a series of different testes whose primary purpose fully

exercise the computer based system. Although each test has different purpose, all

work to verify that system elements have been properly integrates and perform

allocated functions.

There are four types of system testing. They are:

 Recovery Testing

Recovery testing is the system test that forces the software to fall in a variety

of ways and verify that recovery is properly performed. If recovery is automating,

initialization, check pointing, mechanism, data recovery and restart are evaluated for

correctness.

 Security Testing

Security testing verifies that protection mechanisms built into system a will

intact, protect it from improper nitration. During security testing, the tester plays rolls

of the individual who desires to penetrate the system. Given enough time and

resource, good security testing will ultimately penetrate a system.

 Stress Testing

Stress testing executes a system in a manner that demands resources in

abnormal quantity frequency or volume. A variation stress testing is a technique

called sensitivity testing

Sharnbasaveshwar College of Commerce, Dept of BCA 42


Dairy Management System

 Performance Testing

Performance testing is designed to test the runtime performance of software

within the context of an integrated system performance testing accurse throughout al

steps in the testing process. Performance test are often coupled with stress testing and

usually required both hardware and software instrumentation. That is, it is often

necessary to measure resource utilization in an exacting fashion.

Sharnbasaveshwar College of Commerce, Dept of BCA 43


Dairy Management System

8. IMPLEMENTATION

Implementation is the process of converting a new system design into

operation. It is phase that focuses on user training, site preparation, and file

conversion for installing the system under consideration. The important factor that

should be considered here is that the conversion should not disrupt the following of

the organization.

The objective is to put the tested system into operation while holding costs,

risks, and personnel irritation to a minimum.

In our project the conversion involves following steps:

1. Conversion begins with a review of the project plan, the system test

documentation, and the implementation plan. The parties involved are the

user, the project team, programmers, and operators.

2. The conversion portion of implementation plan are finalized and approved.

3. Files are converted.

4. Parallel processing between the existing and the new systems re initiated.

5. Results of the computer runs and operations for the new system are logged on

a special form.

6. Assuming no problems, parallel processing is continued. Implementation

details are documented for reference.

7. Conversion is completed at this stage. Plans for the post implementation

review are prepared. Following the review, the new system is officially

operational.

Sharnbasaveshwar College of Commerce, Dept of BCA 44


Dairy Management System

The prime concern during the conversion process is copying the old files into

the new system. Once a particular file is selected, the next step is to specify the data to

be converted. A file comparison program is best used for verifying the accuracy of the

copying process.

Well-planned test files are important for successful conversion. An audit trail

was performed on the system since it is the key to detect errors and fraud in the new

system.

During the implementation the user training is most important. In our Web

Server project no heavy training is required. Only training how to design and post the

files and how to use the administration tools and how to get files etc.

A post-implementation review is an evaluation of a system in terms of the

extent to which the system accomplishes stated objectives and actual project cost

exceeds initial estimates. It is usually a review of major problems that need converting

and those that surfaced during the implementation phase. The team prepares a review

plan around the type of evaluation to be done and the time frame for its completion.

The plan considers administrative, personnel, and system performance and the

changes that are likely to take place through maintenance.

Maintenance:

Maintenance is the enigma of system development. It holds the software

industry captive, tying up programming resources. Maintenance is actually the

implementation of the post-implementation review plan.

Sharnbasaveshwar College of Commerce, Dept of BCA 45


Dairy Management System

1. Few tools and techniques are available for maintenance.

2. A good test plan is lacking.

3. Standards, procedures, and guidelines are poorly defined and enforced.

4. Programs are often maintained without care for structure and documentation.

5. There are minimal standards for maintenance.

Maintenance can be classified as corrective, adaptive or perfective. Corrective

maintenance means repairing processing or performance failures or making changes

because of previously uncorrected problems or false assumptions. Adaptive

maintenance means changing the program function. Perfective maintenance means

enhancing the performance or modifying the programs to respond to the user’s

additional or changing needs. Of these types, more time and money are spent on

perfective than on corrective and adaptive maintenance together.

Sharnbasaveshwar College of Commerce, Dept of BCA 46


Dairy Management System

9. LIST OF ABBREVIATIONS, FIGURES, TABLES.

List of Abbreviations:

SQL - Structural Query Language

IDE - Integrated Development Environment

HTTP - Hyper Text Transfer Protocol

HTML - Hyper Text Markup Language

XHTML - Extensible Hyper Text Markup Language

XML - Extensible Markup Language

MIME - Multipurpose Internet Mail Extensions

GUI - Graphical User Interface

DBMS - Data Base Management System

DFD - Data Flow Diagram

ERD - Entity Relationship Diagram

Sharnbasaveshwar College of Commerce, Dept of BCA 47


Dairy Management System

Figures:

Fig: 4.2.1.1 Level-Zero DFD

Fig: 4.2.2.2 Level-1 DFD

Fig. 4.3.1.3 ER Diagram

Fig: 5.2.1. Login Form

Fig: 5.2.2 Main Form

Fig: 5.2.3 Agent_details

Fig: 5.2.4 Agent_master

Fig: 5.2.5 Customer_details

Fig: 5.2.6 Customer_master

Fig: 5.2.7 Product

Fig: 5.2.8 Return_product

Fig: 5.2.9 Route

Fig: 5.3.1 Agent_details Form

Fig:5.3.2 Agent_master Form

Fig:5.3.3 Customer_details Form

Fig:5.3.4 Customer_master Form

Fig:5.3.5 Return_product Form

Fig:5.3.6 Route Form

Sharnbasaveshwar College of Commerce, Dept of BCA 48


Dairy Management System

Tables:

Fig: 5.1.1. Auto

Fig: 5.1.2 Login

Fig: 5.1.3 Agent_details

Fig: 5.1.4 Agent_master

Fig: 5.1.5 Customer_details

Fig: 5.1.6 Cusomer_master

Fig: 5.1.7 Product

Fig: 5.1.8 Return_product

Fig: 5.1.9 Route

Sharnbasaveshwar College of Commerce, Dept of BCA 49


Dairy Management System

10. CONCLUSION

This software is developed to overcome the problems in the present manual

system. The software is more users friendly. It is developed using ASP.Net as a front-

end and SQL server as a back-end whose friendliness has already been described.

The developed system has to a good extent succeeded in rectifying the

problems that are present in the manual system. Reports generated with live data have

been proved to be informative. The system can be further enhanced to accommodate a

host of features that are currently involved in the system.

The newly developed system consumes less processing time and reduces the

manual work that was carried on earlier, hence increase the productivity. Since

screens provide online help messages that are user friendly and any end user can get

familiarized with its usage.

This package can be used by any user having basic knowledge of computer.

This package has been developed in such a way that it can be very easy to operate.

Sharnbasaveshwar College of Commerce, Dept of BCA 50


Dairy Management System

BIBLIOGRAPHY

Visual C# how to program

- H.M Deital and P.j Deital and T R Wieto

Visual C#

- D.S Rajendar Prasad

Programming with Visual C#

- Mohammed Azam

Database system concepts

- 4 Editions, THM, Abraham silerschatz

Sharnbasaveshwar College of Commerce, Dept of BCA 51

You might also like