Uploaded by snaseeruddin98

Sample Project Report

advertisement
Agro World System
1. INTRODUCTION
The Agro world System is a web based application, the main purpose is to help farmers
by providing all kind of agriculture related information. It helps farmers to improve the
productivity and profitability.
This project is extremely beneficial for the farmers. And this website will establish the
proper communication between experts and users (farmers) And the farmers can ask the
question to experts related to new farming techniques and any information related to
agriculture. And the farmers can also see the current market rate of all the products and
climatic statistics. So that it will be helpful for selling and buying the products and if they
want to sell any products they can post the aids & hence this system is user friendly.
KLESNC/BCA/VI Sem/2023-24
Page 1
Agro World System
2. SYSTEM ANALYSIS
System analysis is a project management technique and a phase of system
development life cycle that divides complex projects into smaller, more easily managed
segments or phases. Segmenting projects allows managers to verify the successful
completion of project phases before allocating resources to subsequent phases. The purpose
of the systems analysis phase is to understand the requirement and build a logical model of
the new system. During the next phases, data modelling, process modelling, and object
modelling, we develop a logical model of business process that the system must support.
The end product called as systems requirements document describes management and user
requirements, alternative plans and costs, and analysis your recommendation.
System engineering and analysis encompasses requirement gathering at the system
level with a small amount of top-level design and analysis. This process of analysing and
gathering requirements is known as software requirement specification (SRS).The
requirement gathering process intensified and focused specifically, on software. The
preliminary investigation, feasibility study and the detailed investigation allows the system
to comprehend the full scope of this project. Soon after testing, implementation of the
developed system is followed by training
KLESNC/BCA/VI Sem/2023-24
Page 2
Agro World System
3. SOFTWARE REQUIREMENT SPECIFICATION
Software Requirement Specification (SRS) is a fundamental document, which
forms the foundation of the software development process. SRS not only lists the
requirements of a system but also has a description of its major features. These
recommendations extend the IEEE standards. The recommendations would form the
basis for providing clear visibility of the product to be developed serving as baseline
for execution of a contract between client and the developer.
A system requirement is one of the main steps involved in the development
process. It follows after a resource analysis phase that is the task to determine what a
particular software product does. The focus in this stage is one of the users of the
system and not the system solutions. The result of the requirement specification
document States the intention of the software, properties and constraints of the desired
system.
SRS constitutes the agreement between clients and developers regarding the
contents of the software product that is going to be developed. SRS should accurately
and completely represent the system requirements as it makes a huge contribution to
the overall project plan.
3.1 Existing System
The existing system is done manually. Each data is entered by the administrator, the
administrator as to input the market details manually referring to a standardized
website, for keeping track of the current market details.
This process of creation of the data consumes more time, since searching through the
website & entering the same data for the second time is the time consuming process.
The process can prone to resulting in errors & in duplication of data. Apart from
tedious process, there is a chance for missing data & reports.
KLESNC/ BCA/VI Sem/2023-24
Page 3
Agro World System
Limitations of Existing System:

Time consuming.

Lots of papers have be maintained.

Time delay.

Wastage of human recourses.

Data maintenance is difficult.
3.2 Proposed System
Agro world system helps you maintain the details of the users (farmers) & expert’s details in
full fledged security. Unauthorized persons cannot access the data. The information is kept
online, so that the user can retrieve information fast whenever required.
The communication between the user & expert are made easy through the problem updating
& solution to the problem. The SMS with relevant information about the market rate provides
the useful, correct & beneficial information to the users (farmers). The instance updating of
data is available.
Advantages of proposed system

Consumes less time.

Easy to maintain data

Less human error
KLESNC/ BCA/VI Sem/2023-24
Page 4
Agro World System
3.3 Requirement Specifications
3.3.1 Hardware and Software Requirements:
 Hardware Requirements:
Processor: Intel Core i5 and above
RAM:4.00 GB
Hard Disk: 90 GB (Minimum)
 Software Requirements:
Operating System: Windows 10
Front End: ASP.NET
BackEnd: MS SQl 2008
Language Used: C#
Web Browser: Google Chrome
KLESNC/ BCA/V Sem/2022-23
Page 5
Agro World System
3.3.2 About the Technologies Used:
 ASP.NET

ASP.NET is a web development platform, which provides a programming model,
a comprehensive software infrastructure and various services required to build up
robust web applications for PC, as well as mobile devices.

ASP.NET works on top of the HTTP protocol, and uses the HTTP commands and
policies to set a browser-to-server bilateral communication and cooperation.

ASP.NET is a part of Microsoft .Net platform. ASP.NET applications are
compiled codes, written using the extensible and reusable components or objects
present in .Net framework. These codes can use the entire hierarchy of classes in
.Net framework.

The ASP.NET application codes can be written in any of the following languages:
 C#
 Visual Basic.Net
 Javascript

ASP.NET is used to produce interactive, data-driven web applications over the
internet. It consists of a large number of controls such as text boxes, buttons, and
labels for assembling, configuring, and manipulating code tocreate HTML pages.

ASP.NET Web Forms Model .ASP.NET web forms extend the event-driven model of
interaction to the web applications. The browser submits a web form to the web server
and the server returns a full markup page or HTML page in response.
KLESNC/ BCA/V Sem/2022-23
Page 6
Agro World System
 MSSQL

SQL is invented and developed by IBM in early 1970's.SQL stands for Structured
Query Language

Standard SQL Data Language. Oracle’s database language is
SQL,
which
is
used for strong storing and retrieving information on oracle. A table is primary
database object of SQL that is used to store data. A table holds data in the form of
rows and columns.
Benefits of SQL:

Non-procedural language, because more than one record can be accessed rather than
one record at a time.

It is the common language for all relational databases. In other words it is portable.

And it requires very few modifications so that it can work on other databases.

Very simple commands for querying, inserting, deleting and modifying data and
objects.

SOL server (Microsoft product) and oracle (Oracle Corp.)Are most complex,
advanced, relational database and they are much more expensive. It can support large
number of users and very high quality of data. If you are developing a software,
which may be accessed simultaneously by 100s of users or if you expect your data
may grow 100s of MBs, you may consider one of these.
 C#

C# is a modern, general-purpose, object-oriented programming language developed
by Microsoft and approved by European Computer Manufacturers Association
(ECMA) and International Standards Organization (ISO).

C# was developed by Anders Hejlsberg and his team during the development of .Net
Framework.
KLESNC/ BCA/V Sem/2022-23
Page 7
Agro World System

C# is designed for Common Language Infrastructure (CLI), which consists of the
executable code and runtime environment that allows use of various high-level
languages on different computer platforms and architectures.

C# is a simple, modern, object oriented language derived from C++ and Java.It aims
to combine the high productivity of Visual Basic and the raw power of C++.

It is a part of Microsoft Visual Studio2010.Visual studio supports Vb, VC++, C++,
Vbscript, and Jscript.All of these languages provide access to the Microsoft .NET
platform .NET includes a Common Execution engine and a rich class library.

Microsoft’s JVM equip is Common language run time (CLR). CLR accommodates
more than one languages such as C#, VB.NET, Jscript, ASP.NET,C ++.

Source code --->Intermediate Language code (IL) ---> (JIT Compiler) Native code.

The classes and data types are common to all of the .NET languages.

We may develop Console application, Windows application, Web application using
C#.
`
KLESNC/ BCA/V Sem/2022-23
Page 8
Agro World System
4. SYSTEM DESIGN
4.1 Architecture
The type of architecture used in this application is two-tier architecture which is
similar to Client-Server architecture, where communication takes place between client and
server. In this type of software architecture, the presentation layer or user interface layer runs
on the client side while dataset layer gets executed and stored on server side. There is no
Business logic layer or immediate layer in between client and server.
The main reasons for considering two-tier architecture for the application are as follows:
• Applications can be easily developed due to simplicity.
• Maximum user satisfaction is gained with accurate and fast prototyping of applications
through robust tools
• Since this contains static business rules it’s more applicable for homogenous environments
• Database server and business logic is physically close, which offers higher performance.
4.2 Data Flow Diagram
DFD graphically representing the functions, or processes, which capture, manipulate, store
and distribute data between a system and its environment and between components of a
system. The visual representation makes it a good communication tool between User and
System designer. A structure of DFD allows starting from a broad overview and expands it to
a hierarchy of detailed diagrams.
DFD has often been used due to the following reasons:

Logical information flow of the system.

Determination Of physical system construction requirements.

Simplicity of notation.

Establishment
of
KLESNC/ BCA/V Sem/2022-23
manual
and
automated
systems
requirements.
Page 9
Agro World System
The following symbols are used in the Data Flow Diagram:
1)
This arrow diagram represents the flow of data in one direction.
2)
This arrow diagram represents the flow of data in bi-direction.
3)
This rectangular symbol represents the activity of the application.
4)
This circular symbol denotes the users / source of inputs to the activity ofthe application.
5)
This symbol denotes the Database and Database Tables of the application.
KLESNC/ BCA/V Sem/2022-23
Page 10
Agro World System
DATA FLOW DIAGRAM LEVEL 0
DATA FLOW DIAGRAM LEVEL 1-ADMIN
KLESNC/ BCA/V Sem/2022-23
Page 11
Agro World System
DATA FLOW DIAGRAM LEVEL 1-RESEARCH
DATAFLOW DIAGRAM LEVEL 1-FARMERS(USERS)
KLESNC/ BCA/V Sem/2022-23
Page 12
Agro World System
4.3 E-R Diagram (Entity-Relationship Diagram)
Entity Relationship Diagram depicts the various relationships among entities, considering
each objective as entity. Entity relationships are described by their dependence on each other,
as well as the extent of the relationship between the data stores. It depicts the relationship
between data Objects. While ER models are mostly developed for designing relational
databases in terms of concept visualization and in terms of physical database design, there are
still other situations when ER diagrams can help. The ER diagram is a notation that is used to
conduct the data modelling activity.
i.
Entity
An ERD entity is a definable thing or concept within a system. In ER models,
an entity is shown as a rectangle, with its name on top and its attributes listed in the
body of the entity shape. i.e
ENTITY NAME
ii.
Attributes
Also known as a column, an attribute is a property or characteristic of the entity that
holds it. An attribute has a name that describes the property and a type that describes
the kind of attribute it is, such as varchar for a string, and int for integer. It is
represented by an oval shape in the ER Diagram. i.e.
ENTITY NAME
ATTRIBUTE 1
KLESNC/ BCA/V Sem/2022-23
ATTRIBUTE
2
ATTRIBUTE
3
Page 13
Agro World System
iii.
Relationship
A relationship between two entities signifies that the two entities are associated with
each other. It is represented by a Rhombus shape in ER Diagram.
M
N
ENTITY1 NAME
RELATI
ONSHIP
ENTITY2
NAME
ENTITY RELATION DIAGRAM OF THE APPLICATION
KLESNC/ BCA/V Sem/2022-23
Page 14
Agro World System
4.4 Database Design
It is a process of designing the database file, which is the key source of the
information in the system. The objective of database is to design is to provide storage
and it contributes to the overall efficiency of the system. The file should properly
design and planned for collection, accumulation, editing and retrieving the required
information.
The primary objective of a database design are fast response time to inquiries, more
information at low cost, control of redundancy, clarity and ease of use, accuracy and
integrity of the system, fast recovery and availability of powerful end-user languages.
The theme behind a database is to handle information as an integrated whole thus the
main objective is to make information as access easy, quick, inexpensive and flexible
for the users.
 Admin Login Table
 User Registration Table
KLESNC/BCA/VI Sem/2020-2021
Page 15
Agro World System

Add experts Table
 Add market Table
KLESNC/ BCA/V Sem/2022-23
Page 16
Agro World System
 Post ads Table
 Upload problems Table
KLESNC/ BCA/V Sem/2022-23
Page 17
Agro World System
5. IMPLEMENTATION
Implementation is the process of converting a or a revised system design into an
operational one. The Objective is to put the new or revised system that has been tested
into operation while holding costs, risks, and personal irritation to the minimum. A
critical aspect or the implementation process is to ensure that there will be no
disrupting the functioning or the organization. The best method for gaining control
while implanting any new system would be to use well planned test for testing all new
programs.
 Coding of Admin Login Page
Using System;
using System. Collections;
Using System.Configuration;
Using System.Data;
Using System.Linq;
Using System.Web;
using System.Web.Security;
Using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
public partial class templet_agri_index : System.Web.UI.Page
{
KLESNC/ BCA/V Sem/2022-23
Page 18
Agro World System
SqlConnection
Conn
=
Source=localhost\sqlexpress;Initial
new
SqlConnection(@"Data
Catalog=agri2021;Integrated
Security=True;Pooling=False");
SqlDataReader r;
int f = 0;
protected void btbsignin_Click(object sender, EventArgs e)
{
try
{
if (ddlgrp.Text == "Admin")
{
string s = "select * from login";
SqlCommand cmd = new SqlCommand(s, conn);
conn.Open();
int f = 0;
r = cmd.ExecuteReader();
String un, pwd, un1, pwd1;
un = txtusername.Text.Trim();
pwd = txtpwd.Text.Trim();
while (r.Read())
{
un1 = r.GetString(1).Trim();
pwd1 = r.GetString(2).Trim();
if (un == un1 && pwd == pwd1)
{
f = 1;
Response.Redirect("adminpage.aspx");
break;
}
}
 Coding of user registration
KLESNC/ BCA/V Sem/2022-23
Page 19
Agro World System
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
public partial class templet_agri_index : System.Web.UI.Page
{
SqlConnection
conn
=
new
SqlConnection(@"Data
Source=localhost\sqlexpress;Initial
Catalog=agri2021;Integrated
Security=True;Pooling=False");
SqlDataReader r;
int autoid, f = 0;
protected void Page_Load(object sender, EventArgs e)
{
try
{
string str2 = "select * from registration";
SqlCommand cmd = new SqlCommand(str2, conn);
conn.Open();
int count = 0;
r = cmd.ExecuteReader();
while (r.Read())
{
count = count + 1;
}
conn.Close();
autoid = Convert.ToInt16(count + 1);
}
catch (Exception ex)
{
Response.Write(ex.ToString());
}
}
protected void btnsubmit_Click(object sender, EventArgs e)
KLESNC/ BCA/V Sem/2022-23
Page 20
Agro World System
{
try
{
string s = "select * from registration";
SqlCommand cmd = new SqlCommand(s, conn);
conn.Open();
r = cmd.ExecuteReader();
String un, un1;
un = txtuser.Text.Trim();
while (r.Read())
{
un1 = r.GetString(8).Trim();
if (un == un1)
{
f = 1;
Label10.Text = "User already exists.. choose another user..";
break;
}
}
conn.Close();
r.Close();
if (f == 0)
{
string
str1
=
"insert
into
registration(id,first_name,middle_name,last_name,dob,address,email_id,m
obile,username,pwd)values(@id,@first_name,@middle_name,@last_name,
@dob,@address,@email_id,@mobile,@username,@pwd)";
SqlCommand cmd1 = new SqlCommand(str1, conn);
cmd1.Parameters.Add("@id", autoid);
cmd1.Parameters.Add("@first_name", txtfname.Text);
cmd1.Parameters.Add("@middle_name", txtmname.Text);
cmd1.Parameters.Add("@last_name", txtlname.Text);
cmd1.Parameters.Add("@dob", ddldd.Text + "/" + ddlmm.Text
+ "/" + ddlyyyy.Text);
cmd1.Parameters.Add("@address", txtadd.Text);
cmd1.Parameters.Add("@email_id", txtemail.Text);
cmd1.Parameters.Add("@mobile", txtmob.Text);
cmd1.Parameters.Add("@username", txtuser.Text);
cmd1.Parameters.Add("@pwd", txtpwd.Text);
conn.Open();
cmd1.ExecuteNonQuery();
conn.Close();
Response.Redirect("login.aspx");
KLESNC/ BCA/V Sem/2022-23
Page 21
Agro World System
}
}
catch (Exception ex)
{
Response.Write(ex.ToString());
}
}
protected void brnreset_Click(object sender, EventArgs e)
{
txtfname.Text = "";
txtmname.Text = "";
txtlname.Text = "";
ddldd.Text = "DD";
ddlmm.Text = "MM";
ddlyyyy.Text = "YYYY";
txtadd.Text = "";
txtemail.Text = "";
txtmob.Text = "";
txtuser.Text = "";
txtpwd.Text = "";
txtconfpwd.Text = "";
txtfname.Focus();
}
protected void LinkButton1_Click(object sender, EventArgs e)
{
Response.Redirect("homepage.aspx");
}
}
 Coding of experts registration
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
KLESNC/ BCA/V Sem/2022-23
Page 22
Agro World System
using System.Xml.Linq;
using System.Data.SqlClient;
public partial class templet_agri_index : System.Web.UI.Page
{
SqlConnection
conn
=
new
SqlConnection(@"Data
Source=localhost\sqlexpress;Initial
Catalog=agri2021;Integrated
Security=True;Pooling=False");
SqlDataReader r;
int autoid, f = 0;
protected void Page_Load(object sender, EventArgs e)
{
try
{
string str2 = "select * from experts";
SqlCommand cmd = new SqlCommand(str2, conn);
conn.Open();
int count = 0;
r = cmd.ExecuteReader();
while (r.Read())
{
count = count + 1;
}
conn.Close();
autoid = Convert.ToInt16(count + 1);
}
catch (Exception ex)
{
Response.Write(ex.ToString());
}
}
protected void LinkButton2_Click(object sender, EventArgs e)
{
Response.Redirect("userreg.aspx");
}
protected void btnsubmit_Click(object sender, EventArgs e)
{
try
{
string s = "select * from experts";
SqlCommand cmd = new SqlCommand(s, conn);
conn.Open();
r = cmd.ExecuteReader();
KLESNC/ BCA/V Sem/2022-23
Page 23
Agro World System
String un, un1;
un = txtuser.Text.Trim();
while (r.Read())
{
un1 = r.GetString(8).Trim();
if (un == un1)
{
f = 1;
Label10.Visible = true;
Label10.Text = "User already exists.. choose another user..";
break;
}
}
conn.Close();
r.Close();
if (f == 0)
{
string
str1
=
"insert
into
experts(id,first_name,middle_name,last_name,dob,address,email_id,mobile
,username,pwd,experttype)values(@id,@first_name,@middle_name,@last
_name,@dob,@address,@email_id,@mobile,@username,@pwd,@expertty
pe)";
SqlCommand cmd1 = new SqlCommand(str1, conn);
cmd1.Parameters.Add("@id", autoid);
cmd1.Parameters.Add("@first_name", txtfname.Text);
cmd1.Parameters.Add("@middle_name", txtmname.Text);
cmd1.Parameters.Add("@last_name", txtlname.Text);
cmd1.Parameters.Add("@dob", ddldd.Text + "/" + ddlmm.Text
+ "/" + ddlyyyy.Text);
cmd1.Parameters.Add("@address", txtadd.Text);
cmd1.Parameters.Add("@email_id", txtemail.Text);
cmd1.Parameters.Add("@mobile", txtmob.Text);
cmd1.Parameters.Add("@experttype", ddlexptype.Text);
cmd1.Parameters.Add("@username", txtuser.Text);
cmd1.Parameters.Add("@pwd", txtpwd.Text);
conn.Open();
cmd1.ExecuteNonQuery();
conn.Close();
Label10.Visible = true;
Label10.Text = " Experts Details Saved successfully.";
}
}
catch (Exception ex)
KLESNC/ BCA/V Sem/2022-23
Page 24
Agro World System
{
Response.Write(ex.ToString());
}
}
protected void brnreset_Click(object sender, EventArgs e)
{
txtfname.Text = "";
txtmname.Text = "";
txtlname.Text = "";
txtadd.Text = "";
txtemail.Text = "";
txtmob.Text = "";
txtuser.Text = "";
txtpwd.Text = "";
ddldd.Text = "DD";
ddlmm.Text = "MM";
ddlyyyy.Text = "YYYY";
txtconfpwd.Text = "";
txtfname.Focus();
Label10.Visible = false;
}
protected void LinkButton1_Click(object sender, EventArgs e)
{
Response.Redirect("adminpage.aspx");
}
}
 Coding of upload problems
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
KLESNC/ BCA/V Sem/2022-23
Page 25
Agro World System
public partial class templet_agri_index : System.Web.UI.Page
{
SqlConnection
conn
=
new
SqlConnection(@"Data
Source=localhost\sqlexpress;Initial
Catalog=agri2021;Integrated
Security=True;Pooling=False");
SqlDataReader r;
int autoid;
int f = 0;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
try
{
string str2 = "select distinct(experttype) from experts";
SqlCommand cmd = new SqlCommand(str2, conn);
conn.Open();
r = cmd.ExecuteReader();
while (r.Read())
{
ddladdrto.Items.Add(r.GetString(0).ToString());
}
conn.Close();
r.Close();
}
catch (Exception ex)
{
Response.Write(ex.ToString());
}
txtdate.Text = DateTime.Now.ToShortDateString();
}
string str3 = "select * from uploadproblems";
SqlCommand cmd1 = new SqlCommand(str3, conn);
conn.Open();
int count = 1;
r = cmd1.ExecuteReader();
while (r.Read())
{
count = count + 1;
}
conn.Close();
autoid = Convert.ToInt16(count + 1);
}
KLESNC/ BCA/V Sem/2022-23
Page 26
Agro World System
protected void LinkButton2_Click(object sender, EventArgs e)
{
Response.Redirect("userreg.aspx");
}
protected void btnsubmit_Click(object sender, EventArgs e)
{
try
{
string
str1
=
"insert
into
uploadproblems(pid,fullname,contactno,emailid,description,addressto,uplo
adeddate,solutions,status)values(@pid,@fullname,@contactno,@emailid,@
description,@addresseto,@uploadeddate,@solutions,@status)";
SqlCommand cmd1 = new SqlCommand(str1, conn);
cmd1.Parameters.Add("@pid", autoid);
cmd1.Parameters.Add("@fullname", txtfullname.Text);
cmd1.Parameters.Add("@contactno", txtcno.Text);
cmd1.Parameters.Add("@emailid", txtemail.Text);
cmd1.Parameters.Add("@description", txtdesc.Text);
cmd1.Parameters.Add("@addresseto", ddladdrto.Text);
cmd1.Parameters.Add("@uploadeddate", txtdate.Text);
cmd1.Parameters.Add("@solutions", "");
cmd1.Parameters.Add("@status", "Pending");
conn.Open();
cmd1.ExecuteNonQuery();
conn.Close();
Response.Redirect("acknowledgement.aspx?pid= " + autoid +
"&fn=" + txtfullname.Text + "&cno=" + txtcno.Text + "&eid=" +
txtemail.Text);
}
catch (Exception ex)
{
Response.Write(ex.ToString());
}
}
protected void brnreset_Click(object sender, EventArgs e)
{
txtdesc.Text = "";
txtfullname.Text = "";
txtcno.Text = "";
txtemail.Text = "";
}
KLESNC/ BCA/V Sem/2022-23
Page 27
Agro World System
protected void LinkButton1_Click(object sender, EventArgs e)
{
Response.Redirect("userpage.aspx");
}
}
 Coding of Post ads
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
using System.IO;
public partial class templet_agri_index : System.Web.UI.Page
{
SqlConnection
conn
=
Source=localhost\sqlexpress;Initial
new
SqlConnection(@"Data
Catalog=agri2021;Integrated
Security=True;Pooling=False");
int autoid=0;
SqlDataReader r;
protected void Page_Load(object sender, EventArgs e)
{
}
protected void btnsubmit_Click(object sender, EventArgs e)
{
KLESNC/ BCA/V Sem/2022-23
Page 28
Agro World System
try
{
string
str1
=
"insert
into
postfreeadds(UName,AddName,Address,Contact,EmailID,Description,Ima
gePath)values(@UName,@AddName,@Address,@Contact,@EmailID,@D
escription,@ImagePath)";
SqlCommand cmd1 = new SqlCommand(str1, conn);
cmd1.Parameters.Add("@UName", txtname.Text);
cmd1.Parameters.Add("@AddName",txtuname.Text);
cmd1.Parameters.Add("@Address", txtadd.Text);
cmd1.Parameters.Add("@Contact", txtcontact.Text);
cmd1.Parameters.Add("@Emailed", txtemail.Text);
cmd1.Parameters.Add("@Description", txtdesc.Text);
cmd1.Parameters.Add("@Image Path", txtpath.Text);
conn.Open();
cmd1.ExecuteNonQuery();
conn.Close();
Label10.Visible = true;
btnsubmit.Enabled = false;
Label10.Text = "Post freeadds saved successfully.";
}
catch (Exception ex)
{
Response.Write(ex.ToString());
}
}
protected void brnreset_Click(object sender, EventArgs e)
{
txtuname.Text = "";
txtname.Text = "";
txtadd.Text = "";
KLESNC/ BCA/V Sem/2022-23
Page 29
Agro World System
txtcontact.Text = "";
txtemail.Text = "";
txtdesc.Text = "";
txtcontact.Text = "";
Image1.ImageUrl = null;
Label10.Visible = false;
}
protected void LinkButton1_Click(object sender, EventArgs e)
{
Response.Redirect("homepage.aspx");
}
protected void LinkButton2_Click(object sender, EventArgs e)
{
btnsubmit.Enabled = true;
try
{
if (FileUpload1.HasFile)
{
string filename = Path.GetFileName(FileUpload1.FileName);
FileUpload1.SaveAs(Server.MapPath("~/Images/"
+
filename.ToString()));
string imgpath = "~/Images/" + filename.ToString();
Image1.ImageUrl = imgpath.ToString();
txtpath.Text = imgpath.ToString();
btnsubmit.Enabled = true;
}
}
catch (Exception ex)
{
Label10.Text = ex.ToString();
KLESNC/ BCA/V Sem/2022-23
Page 30
Agro World System
6. TESTING
6.1 About Testing
Testing is the major process involved in software quality assurance (QA) is iterative Here test
data is prepared and is used to test the modules individually. System testing ensures that all
components or the system function - as a unit by actually forcing the system to fail.
The test causes should be planned before testing begins. Then as the testing progresses,
testing shifts focus in an attempt to find errors in integrated clusters of modules. The
philosophy behind testing is to find errors. Actually, testing is the state of implementation
that is aimed at ensuring that the system works actually and efficiently before
implementation.
Testing is done for each module. After testing all the modules, the modules are integrated and
testing of the final system is done with the test data, specially designed to show that the
system will operate successfully in all its aspects conditions. The procedure level testing is
made first. By giving improper inputs, the errors occurred are noted and eliminated. Thus, the
system testing is a confirmation that all is correct and an opportunity to show the user that the
system works. The final step involves Validation testing, which determines whether the
software function as the user expected. The end-user rather than the system developer
conduct this test most software developers as a process called "Alpha and Beta test" to
uncover that only the end user seems able to find. This is the final Step in system life cycle.
Here we implement the tested error-free system into real-life environment and make
necessary changes, which runs in an online fashion. Here system maintenance is done every
month or year based on company policies, and is checked for errors like runtime errors, long
run errors and other maintenances like table verification and during the requirement analysis
and design, the output is a document that is usually textual and non-executable. After the
coding phase, computer programs are available that can be executed for testing purpose. This
implies that testing not only has to uncover errors introduced during coding, but also errors
introduced during the previous phases.
KLESNC/ BCA/V Sem/2022-23
Page 31
Agro World System
6.2 Types of Testing
The various types of testing done are:

Unit Testing

Integration Testing

Validation Testing

System Testing

Acceptance Testing
1) Unit Testing
Unit testing verification efforts on the smallest unit of software design, module. This is
known as “Module Testing". The modules are tested separately. This testing is carried out
during stage itself. In these testing Steps, each module is found to be working satisfactorily as
regard to the expected output from the module.
2) Integration Testing
Integration testing is a systematic technique for constructing tests to uncover error within the
interface. In the project, all the modules are combined and then the entire is tested as a whole.
In the integration-testing Step, all the error uncovered is corrected for the next testing steps.
3) Validation Testing
To uncover functional errors, that is, to check whether functional characteristics
confirm
to
KLESNC/ BCA/V Sem/2022-23
specification
or
not
specified
Page 32
Agro World System
3) System Testing
Once individual module testing completed, modules are assembled to perform as a system.
Then the top down testing, which begins from upper level to lower level module testing, to
done to check whether the entire system is performing satisfactorily. After unit and
integration testing are over then the system as whole is tested. There are two general
strategies for system testing. They are:
• Code Testing
• Specification Testing
• Code Testing: This strategy examines the logic of the program. A path is a specific
combination of conditions handled by the program. Using this strategy, every path through
the program is tested.
• Specification Testing: This strategy examines the specifications stating what the program
should do and how it should perform under various conditions. The test cases are developed
for each condition of developed System and processed. It is found that the system developed
perform according to its specified requirements. The system is used experimentally to ensure
that the software will run according to tits specification and in the way user expects.
Specification Testing is done successfully by entering various types of end data. It is checked
for both valid and invalid data and found System is working properly as per requirement.
4) Acceptance Testing
When the system has no measure problem with its accuracy, the system passes through a final
acceptance test. This test confirms that the system needs the original goal, Objective and
requirements established during analysis. If the system fulfils all the requirements, it is finally
acceptable and ready for operation.
KLESNC/ BCA/V Sem/2022-23
Page 33
Agro World System
6.3 Test Cases
Testing Module: Login Page
SL.No
Test Case
Test Input
Expected
Output
Actual
Output
1.
Username
-BLANK-
Please fill out Pass
this field
2.
Username
admin
3.
Password
-BLANK-
4.
Password
admin
If Username
Field is not
blank then it
is pass
If Username
Field is not
blank then it
is pass
If Password
Field is not
blank then it
is pass
If Password
Field is not
blank then it
is pass
admin
Pass
Status
(Pass/Fail)
admin
Status
(Pass/Fail)
Pass
Please fill out Pass
this field
Testing Module: User Registration Page
SL.NO
Test Case
Test Input
Excepted
Output
Actual
Output
1.
E-mail
mgmail.com
m@gmail.com
2.
E-mail
m@gmail.com
m@gmail.com
Please match Pass
the requested
format.
m@gmail.com Pass
3.
Password
Length =
digits,
Lowercase
7 Length =
digits,
uppercase
8 Please match Pass
the requested
format.
4.
Password
5.
Phone
number
8 Length =
digits,
uppercase
Length=10
digits
6.
Phone
number
Length =
digits,
Uppercase
Length = 8
Digits,
alphabets
Length=10
digits
8 Length = 8 Pass
digits,
uppercase
Please match Pass
the requested
format.
Length=10
Pass
digits
KLESNC/ BCA/V Sem/2022-23
Length=10
digits
Page 34
Agro World System
7. SCREENSHOTS
 Home Page
 Admin Login
KLESNC/ BCA/V Sem/2022-23
Page 35
Agro World System
 Climate statistics Page
 Admin add market details
KLESNC/BCA/V Sem/2020-2021
Page 36
Agro World System
 Research Login
 Upload solution details
KLESNC/ BCA/V Sem/2022-23
Page 37
Agro World System
 User Login in
 Upload problems
KLESNC/ BCA/V Sem/2022-23
Page 38
Agro World System
 Post ads
 View free ads
KLESNC/ BCA/V Sem/2022-23
Page 39
Agro World System
8. CONCLUSION
This project is developed to nurture the needs of the farmers in Agro
world sector. The Agro world system is more efficient, reliable and user
friendly. Proper validation of user has been done. And Farmers can easily
sell the goods by posting the ads and if the users(farmers) have any
question related to agriculture they can upload the problems. Thus the
Agro world system it is developed and executed successfully.
KLESNC/ BCA/V Sem/2022-23
Page 40
Agro World System
9. FUTURE ENHANCEMENTS
The software application is developed in such a way that application can be enhanced
with further requirements without any much change in the system flow. The
additional modules can be implemented to the same application without disturbing the
existing modules.
A number of enhancements can be added to the existing software application like:

Security enhancements can be made by implementing face recognition login, OTP
(one-time password) and fingerprint login techniques.

users can view their profits and losses

Information will be made available in different languages so that language would not
be a boundary for learning.
KLESNC/ BCA/V Sem/2022-23
Page 41
Agro World System
10.BIBILOGRAPHY
Reference Books

Database Management System: Ashwini S Diwakar, Skyward Publishers

Web Programming :Srikanth S, Skyward Publishers
Websites
www.w3schools.com
www.stackoverflow.com
https://github.com/challakarthik9/dbms-project-on-online-advertising-managementsystem
https://studentprojectguide.com/asp-net/online-advertisement-management-system
KLESNC/ BCA/V Sem/2022-23
Page 42
Download