Sunteți pe pagina 1din 14

Coding

using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using CareerPath.DAL;
/// <summary>
/// Summary description for FunctionalAreaBL
/// </summary>
public class FunctionalAreaBL:Connection
{
public static DataSet ds;
public FunctionalAreaBL()
{
//
// TODO: Add constructor logic here
//
}
string _FunctionalArea, _Description;
public string FunctionalArea
{
get { return _FunctionalArea; }
set { _FunctionalArea = value; }
}
public string Description
{
get { return _Description; }
set { _Description = value; }
}
private int _FunctionalId;
public int FunctionalId
{
get { return _FunctionalId; }
set { _FunctionalId = value; }
}
public void InsertQualification()
{
SqlParameter[] p = new SqlParameter[2];
p[0] = new SqlParameter("@FunctionalArea", this._FunctionalArea);
p[0].DbType = DbType.String;
p[1] = new SqlParameter("@Description", this._Description);
p[1].DbType = DbType.String;
SqlHelper.ExecuteNonQuery(con, CommandType.StoredProcedure,
"Sp_Insert_FunctionalArea", p);
}
public DataSet ShowFunctionalArea()
{
ds = new DataSet();
ds = SqlHelper.ExecuteDataset(con, CommandType.StoredProcedure,
"Sp_Show_FunctionalArea");
return ds;
}
public void DeleteFunctionalArea()
{
SqlParameter[] p = new SqlParameter[1];
p[0] = new SqlParameter("@FunctionalId", this._FunctionalId);
p[0].DbType = DbType.Int16;
SqlHelper.ExecuteNonQuery(con, CommandType.StoredProcedure,
"Sp_Delete_FunctionalArea", p);

}
public void UpdateFunctionalArea()
{
SqlParameter[] p = new SqlParameter[3];
p[0] = new SqlParameter("@FunctionalId", this._FunctionalId);
p[0].DbType = DbType.Int16;
p[1] = new SqlParameter("@FunctionalArea", this._FunctionalArea);
p[1].DbType = DbType.String;
p[2] = new SqlParameter("@Description", this._Description);
p[2].DbType = DbType.String;
SqlHelper.ExecuteNonQuery(con, CommandType.StoredProcedure,
"Sp_Update_FunctionalArea", p);

}
public DataSet ShowFunctionInfoById()
{
SqlParameter[] p = new SqlParameter[1];
p[0] = new SqlParameter("@FunctionalId", this._FunctionalId);
p[0].DbType = DbType.Int16;
ds = new DataSet();
ds = SqlHelper.ExecuteDataset(con, CommandType.StoredProcedure,
"Sp_ShowFunctionInfoById", p);
return ds;
}
}

Testcases
S.NO TEST CASE NAME TEST PROCEDURE PRE CONDITION EXPECTED OUTPUT
RESULT

1. Login form Provide username and Is these Username and welcome to admin Success.
password password are there in page/jobseeker
database. page/job provider
page.

2. Registering new job Click on the register Provides a form for If the details are Success.
seeker jobseeker hyperlink. entering job seeker inserted successfully
details and then click then a message
on register button. Data entered
successfully will
appear.

3. Register new job provider Click on the register Provides a form for If the details are Success.
jobseeker hyperlink. entering job provider inserted successfully
details and then click then a message
on register button. Data entered
successfully will
appear.

4. Adding new job Click on the add new job Provide the page and If the details are Success.
button. enter the job details. inserted successfully
then a message
new job added
successfully
5. Search for job Click on the search Search based on Job seekers list Success.
seeker job seeker button. the excepted will be
salary,location,role displayed.
,
Qualification
etc.

6. Response details Click on the Page will be If the any job Success.
response details opened. seeker will send
button. any response,
then their details
will be
displayed.

7. Search for the jobs Click on search job Search based on Based on the Success.
button. the excepted conditions the
salary,location,role corresponding
, jobs list will be
Qualification displayed.
etc.

8. Log out Click on log out Redirects you to Redirects you to Success.
menu. login page. login page.
Screenshorts
conclusion
It has been a great pleasure for me to work on this exciting and challenging
project. This project proved good for me as it provided practical knowledge of not
only programming in ASP.NET and VB.NET web based application and no some
extent Windows Application and SQL Server, but also about all handling procedure
related with PROJECT NAME. It also provides knowledge about the latest
technology used in developing web enabled application and client server technology
that will be great demand in future. This will provide better opportunities and
guidance in future in developing projects independently.
Biblography
References
1. Beginning ASP.Net 2.0 in C# 2005, Matthew MacDonald.
2. An Introduction to Database Systems 1994,Date.C.J,3 rd
edition.
3. Database Management Systems,Raghu
Ramakrishnan,2nd edition.
4. Software Engineering, Roger Pressman, 7th edition.
Websites
www.microsoft.com/products/asp
www.asp.net
msdn.microsoft.com/en-us/asp.net

S-ar putea să vă placă și