You are on page 1of 81

BK Placement

Preface
The age of information has gone the correct area is the age of knowledge. These having knowledge would higher resources from the society & at the same time would be earning the higher returns. But knowledge as we know has changed drastically, to ensure that knowledge is imported to student, it is made mandatory it is made mandatory by shree M.M.G Mahila Arts & Commerce College for BCA student to work on a comprehensive project. Here is the detailed report and web Site of Book Search. It has developed on C#.Net, ADO.Net, SQL. Finally, we would like to express our gratitude for the support and encouragement I have receives from them. The improvement would always be welcome.

Acknowledgement
We cannot determine milk of how many cows feed our body. Most successful feats involve efforts of many people. This Project is no exception. It is our pleasure to take this opportunity to thank all those who helped us directly or indirectly in development of the project assignment of BK Placement. Firstly shree M.M.G Mahila Arts & Commerce College, Saurashtra University, Junagadh for giving us a chance to obtain project. It was a nice experience and it helped get idea of the Real time Systems and their development procedure. We are very much indebted to Miss Khushboo Trivedi for giving me permission & allocation such an interesting project. The project has helped me to learn the basic intricacies of RDBMS, which shell is stepping stone in my future endeavors.

BK Placement And finally, our sincere thanks to our batch-mats, who had provided us with innumerable discussions on many technicalities and friendly tips. Without their cordial and friendly support, this activity has been much tougher. We are also thankful to our Parents, Friends and Others for their opinions and support in the system. The project has given us immense knowledge to use in our future ventures and many moments to cherish. Jadav Kashmira H. Dabhi Bhumika P.

Project Profile
Project Title: Objective: BK Placement Providing Information about different companies of placement of student. Server Side Windows XP (SP3) Client Side Any Browser Supported C#.Net, ADO.Net SQL Visual Studio 2008 2 Member Jadav Kashmira Dabhi Bhumika Shree M.M.G Mahila Arts & Commerce Collage, Junagadh.

Platform:

Front End: Back End: Editor: Project Team Size: Developed By:

Submitted to:

BK Placement

Hardware & Software Requirement


Hardware Requirement

Processor Main memory CD/DVD Drive Hard Disk Printer

: - Intel Celeron 1.40 : - 512 MB of RAM : - For Installation : - 4 GB : - Laser Printer

Software Requirement for Development


Operating System : - Microsoft Windows XP(SP3) & Higher Back-End : - SQL Visual Studio 2008 Runtime Environment : - .net Framework 3.5 Technology :- Web Application of C#.Net Front-End :- Microsoft Visual Studio 2008 Support Too Paint. ls: - Microsoft Office 2007, Adobe Photoshop CS2,

Software Study
What is .Net? :
The .NET Framework is Microsoft's application development platform that enables developers to easily create Windows applications, web applications, and web services using a myriad of different programming languages, and without having to worry about low-level details like memory management and processor-specific instructions.

BK Placement

Advantages Of .Net:
Language Independence: One of the most important facets of the .NET Framework is language independence. You can write .NET applications using any number of different programming languages. The most popular languages tend to be C# and VB.NET, but many other languages now have .NET versions including Python, COBOL, and more. Memory Management: One of the constant assailants on productivity in unmanaged programming platforms is manually managing memory. Having to deal with memory management is also one of the largest sources for bugs and security holes in many applications. .NET removes the hassle of manually managing memory through the use of the aptly named garbage collector. Instead of the developer needing to remove objects from memory, the garbage collector looks at the current objects in memory and then decides which ones aren't needed anymore. Just-In-Time Compilation:

When you compile your code and it is translated to the intermediate language it is then simply stored in an assembly. When that assembly is used the CLR picks up that code and compiles it on-the-fly for the specific machine that is running the code. This means the runtime could compile the code differently based on what CPU or operating system the application is being run on. However, at this point the CLR doesn't compile everything in the Assembly; it only compiles the individual method that is being invoked. This kind of on-the-fly compilation, referred to as jitting, only happens once per method call. The next time a method is called, no compilation occurs because the CLR has already compiled that code The Library: While the runtime is definitely the most important part of .NET, you can't do too much with it by itself. This is where the Base Class Library (or BCL) comes in. The BCL includes a lot of the plumbing of .NET, including the system types, IO, and

BK Placement functions for working with text. In addition to the BCL, there is the Framework Class Library (FCL). FCL includes 1. ADO.NET 2. ASP.NET 3. Web Services 4. Windows Form

What is .Net Platform?


The .NET platform includes servers; building-block services, such as Web-based data storage; and device software. It also includes Passport, Microsoft's fill-in-the-formonly-once identity verification service. The .NET platform was designed to provide: The ability to make the entire range of computing devices work together and to have user information automatically updated and synchronized on all of them Increased interactive capability for Web sites, enabled by greater use of XML(Extensible Markup Language) rather than HTML A premium online subscription service, that will feature customized access and delivery of products and services to the user from a central starting point for the management of various applications, such as e-mail, for example, or software, such as Office .NET Centralized data storage, which will increase efficiency and ease of access to information, as well as synchronization of information among users and devices The ability to integrate various communications media, such as e-mail, faxes, and telephones For developers, the ability to create reusable modules, which should increase productivity and reduce the number of programming errors.

BK Placement

What is .Net Framework?


The .NET Framework is Microsoft's platform for building applications that have visually stunning user experiences, seamless and secure communication, and the ability to model a range of business processes. By providing you with a comprehensive and consistent programming model and a common set of APIs, the .NET Framework helps you to build applications that work the way you want, in the programming language you prefer, across software, services, and devices.

Figure 1.1 .Net Framework Diagram The .NET Framework is designed to fulfill the following objectives:

To provide a consistent object-oriented programming environment whether object code is stored and executed locally, executed locally but Internet-distributed, or executed remotely. To provide a code-execution environment that minimizes software deployment and versioning conflicts. To provide a code-execution environment that promotes safe execution of code, including code created by an unknown or semi-trusted third party. To provide a code-execution environment that eliminates the performance problems of scripted or interpreted environments. To make the developer experience consistent across widely varying types of applications, such as Windows-based applications and Web-based applications.

BK Placement

To build all communication on industry standards to ensure that code based on the .NET Framework can integrate with any other code.

The.NET Framework has two main components: the common language runtime and the .NET Framework class library. The common language runtime is the foundation of the .NET Framework core services such as memory management, thread management, and remoting, security & robustness. The class library, the other main component of the .NET Framework, is a comprehensive, object-oriented collection of reusable types that you can use to develop applications ranging from traditional command-line or graphical user interface (GUI) applications to applications based on the latest innovations provided by ASP.NET, such as Web Forms and XML Web services.

SQL Server
Microsoft SQL Server 2005 is comprehensive, integrated data management and analysis software that enables organizations to reliably manage mission-critical information and confidently run todays increasingly complex business applications. SQL Server 2005 allows companies to gain greater insight from their business information and achieve faster results for a competitive advantage Features of SQL Server: Availability: - Investments in high availability technologies, additional backup and restore capabilities, and replication enhancements will enable enterprises to build and deploy highly reliable applications. Scalability: - Your Scalability advancements such as partitioning, snapshot isolation, and 64-bit support will enable build and deploy your most demanding applications using SQL Server 2005. Security: - Enhancements such as secure by default settings and an enhanced security model will help provide a high level of security for your enterprise data.

BK Placement Manageability: - A new management tool suite, expanded self-tuning capabilities, and a powerful new programming model will increase the productivity of database administrators. Interoperability: - Through deep support for industry standards, Web services, and the Microsoft .NET Framework, SQL Server 2005 will support interoperability with multiple platforms, applications, and devices. Data Warehousing: - SQL Server includes tools for extracting and analyzing summery data for online analytical processing (OLAP).SQL Server also include tools for visually designing database and analyzing data USING English-Based Questions.

Project life cycle


Project Planning And Scheduling Risk Management
PROJECT PLANNING AND SCHEDULING PROJECT DEVELOPMENT APPROCH

Prototyping Model
The Prototyping Model is a systems development method (SDM) in which a prototype is built, tested, and then reworked as necessary until an acceptable prototype is finally achieved from which the complete system or product can now be developed. This model works best in scenarios where not all of the project requirements are known in detail ahead of time. It is an iterative, trial-and-error process that takes place between the developers and the users. There are several steps in the Prototyping Model: 1. The new system requirements are defined in as much detail as possible. This usually involves interviewing a number of users representing all the departments or aspects of the existing system. 2. A preliminary design is created for the new system.

BK Placement 3. A first prototype of the new system is constructed from the preliminary design. This is usually a scaled-down system, and represents an approximation of the characteristics of the final product. 4. The users thoroughly evaluate the first prototype, noting its strengths and weaknesses, what needs to be added, and what should to be removed. The developer collects and analyzes the remarks from the users. 5. The first prototype is modified, based on the comments supplied by the users, and a second prototype of the new system is constructed. 6. The second prototype is evaluated in the same manner as was the first prototype. 7. The preceding steps are iterated as many times as necessary, until the users are satisfied that the prototype represents the final product desired. 8. The final system is constructed, based on the final prototype. 9. The final system is thoroughly evaluated and tested. Routine maintenance is carried out on a continuing basis to prevent large-scale failures and to minimize downtime This model reflects an attempt to increase the flexibility of the development process by allowing the client to interact and experiment with a working representation of the product. The developmental process only continues once the client is satisfied with the functioning of the prototype. At that stage the developer Determines the specifications of the clients real needs.

Figure 2.1 Prototyping Model

BK Placement Justification: As prototyping model shows how to interact with customers directly, and to satisfy the requirements of customers. A customer defines a set of general objectives for software but does not identity detail input, processing or output requirements. In our software we use this model as we work with requirements of our clients so we start with a meeting with customer. We gather the requirements of customer. Understood it and then make analysis for requirements one-by-one. After understanding the requirements of clients. We decided all requirements will be satisfied by Microsoft Visual Studio, that is efficient and user friendly software.

PROJECT PLAN
Once a project is found to be feasible, software project manages undertaken project planning. Project planning is undertaken and completed even before any development activity starts. The trend of finding a good marriage alliance through matrimonial sites has completely changed the social system of India. Today, people are conveniently accessing these sites to get a suitable life partner. A matrimonial site gives you an opportunity to contact and meet persons from all over the world. You can share your likes and dislikes with them. While surfing these sites, one also need to be extra careful since you are talking to an unknown and unseen person. This website provides you an online match making facilities, this website is developed in ASP .net. We have included many features it will add full advantages to the Matrimony services. This website is developed as user-friendly and user will able to search the matching profiles, add/edit the profiles, and add the photo and horoscope.

GNATT Chart (Project Timeline)

BK Placement

Figure 2.2 GNATT Chart

ROLES & RESPONSIBILITIES


ROLE Admin RESPONSIBILITIES Admin can do Editing of members, Deleting of members or can do any changes in any users profile Admin can add new features to the web site. Total handling of the Secure Services. Manage all files and folders of users Members Members can create their profile. They can upload Photos, Music, Videos, and Resume. Members can make change and can delete its own profile. They can Mail to Each Other. They can send Messages as well. They can search for friends and groups. They can also create their own groups. They can easily find jobs in various search conditions.

Figure 2.3 Roles & Responsibilities

RISK MANAGEMENT
Risk is defined as "The possibility of suffering harm or loss; danger." Even if we're not familiar with the formal definition, most of us have an innate sense of risk. We are aware of the potential dangers that permeate even simple daily activities, from getting injured when crossing the street to having a heart attack because our cholesterol level is too high. Although we prefer not to dwell on the myriad of hazards that surround us, these risks shape many of our behaviors. Experience (or a parent) has taught us to look

BK Placement both ways before stepping off the curb and most of us at least think twice before ordering a steak. Indeed, we manage personal risks every day.

Proposal Risks:
Those risks inherent in the venture, i.e., to design and build a disposable external tank for a reusable spacecraft is inherently risky. Thus, an RFP for such a tank has embedded risks no matter who undertakes the development.

Performance Risks:
Those risks inherent in the proposed approach. A given contractor can implement an approach that has risks above and beyond those inherent in the venture. For example, a developer may elect to base key design decisions on analytical data rather than empirical data to reduce costs at some increase in risk. These definitions must be addressed during a proposal if they are included in the RFP, but after an award they are probably not too useful to a performing organization. Some sources (e.g., reference 2) define the proposal risk as begging the associated with the contractors approach and the performance risk as being related to the contractors track record.

Effective Risk Management


There are two stages in the process of Project Risk Management, Risk Assessment and risk control. Risk Assessment can take place at any time during the project, though the better. However, Risk Control cannot be effective without a previous Risk Assessment. Similarly, most people tend to think that having perfumed a Risk assessment; they have done all that is needed. Far too many projects spend a great deal of effort on Risk Assessment and then ignore Risk control completely.

BK Placement

Figure 2.4 Effective Risk Management


Risk Assessment (figuring out what the risks are and what to focus on)

making a list of all of the potential dangers that will affect the project assessing the probability of occurrence and potential loss of each item listed ranking the items (from most to least dangerous)

Risk Control (doing something about them) coming up with techniques and strategies to mitigate the highest ordered risks implementing the strategies to resolve the high order risks factors Monitoring the effectiveness of the strategies and the changing levels of risk throughout the project.

Identification
After establishing the context, the next step in the process of managing Risk is to identify potential risks. Risks are about events that, when triggered, cause problems. Hence, risk identification can start with the source of problems, or with the problem itself. Source analysis Risk: sources may be internal or external to the system that is the target of risk management. Examples of risk sources are: stakeholders of a project, employees of a company or the weather over an airport. Problem analysis Risk: are related to identify threats. For example: the threat of losing money, the threat of abuse of privacy information or the threat of accidents

BK Placement and casualties. The threats may exist with various entities, most important with shareholders, customers and legislative bodies such as the government. When either source or problem is known, the events that a source may trigger or the events that can lead to a problem can be investigated. For example: stakeholders withdrawing during a project may endanger funding of the project; privacy information may be stolen by employees even within a closed network; lightning striking a Boeing 747 during takeoff may make all people onboard immediate casualties. The chosen method of identifying risks may depend on culture, industry practice and compliance. The identification methods are formed by templates or the development of templates for identifying source, problem or event. Common risk identification methods are: Objectives-based risk identification Organizations and project teams have objectives. Any event that may endanger achieving an objective partly or completely is identified as risk. Scenario-based risk identification in scenario analysis different scenarios are created. The scenarios may be the alternative ways to achieve an objective, or an analysis of the interaction of forces in, for example, a market or battle. Any event that triggers an undesired scenario alternative is identified as risk. Taxonomy-based risk identification the taxonomy in taxonomy-based risk identification is a breakdown of possible risk sources. Based on the taxonomy and knowledge of best practices, a questionnaire is compiled. The answers to the questions reveal risks. Taxonomy-based risk identification in software industry can be found Common-risk checking in several industries lists with known risk is available. Each risk in the list can be checked for application to a particular situation. An example of known risks in the software industry is the Common Vulnerability and Exposures list found at. Risk charting (risk mapping) This method combines the above approaches by listing Resources at risk, Threats to those resources Modifying Factors which may increase or decrease the risk and Consequences it is wished to avoid. Creating a matrix under these headings enables a variety of approaches. One can begin with resources and consider the threats they are exposed to and the consequences of each. Alternatively one can start with the threats and examine which resources they would affect, or one can begin with the consequences and determine which combination of threats and resources would be involved to bring them about.

BK Placement

Elements of Risk Assessment

Figure2.5 Elements of Risk Assessment


Identify Uncertainties Explore the entire project plans and look for areas of uncertainty. Analyses Risk Specify how those areas of uncertainty can impact the performance of the project either in duration cost all meeting the users requirements. Proprieties Risk Establish which of those risks should be eliminated completely, because of potential extreme impact, which should have regular management attention, and which are sufficiently minor to avoid detailed management attention.

RISK ANALYSIS
Risk analysis and risk management can help you to assess these risks and decide what actions to take to minimize disruptions to your plans. They will also help you to decide whether the strategies you could use to control risk are cost-effective. Project Risks of cost over-runs, jobs taking too long, of insufficient product or service quality, etc. Technical: From advances in technology, technical failure, etc.

Business Risk: They threaten the viability of the software to be built. Business risk often jeopardizes the project and the product. Known Risk : Known risk are those that can be uncovered after careful evaluation of the project plan, the business and technical environment in which the project is

BK Placement being developed and other reliable information sources such as unrealistic delivery date, lake of documented requirements or software scope, poor development environment. Predictable Risk: There are extrapolated from past project experience. Unpredictable Risk: These can and do occur, but there are extremely difficult to identify in advance.

RISK TABLE
Risk Resistance from end user Type of Risk Business Risk Critical 50% Impact Critical Risk Handling Explain the advantage of the proposed system over the past system. Implement the changes as far as possible. Put in more efforts to gain knowledge. Try to explain the importance of system. Try to create worktable solution. Try to plan out things and rich those goals first.

User requirements Product Risk may change Inexperience in the use of technology or tools Loss of focus of management Technology may not meet its requirement Delivery dead line will be tightened Inexperience Risk

20%

Critical

45%

Marginal

Business Risk

10%

Catastrop hic Catastrop hic Critical

Technology

20%

Business Risk

50%

Figure 2.6 Risk Table

BK Placement

RISK PLANING
Risk Planning is developing and documenting organized, comprehensive, and interactive strategies and methods for identifying risks. It is also used for performing risk assessments to establish risk handling priorities, developing risk handling plans, monitoring the status of risk handling actions, determining and obtaining the resources to implement the risk management strategies. Risk planning is used in the development and implementation of required training and communicating risk information up and down the project stakeholder organization. Developing a detailed plan of action; this will be included in Project and Stage Plans either as additional activities or as a contingency plan Confirming the desirability of carrying out the actions identified during risk evaluation in light of any additional information gained Obtaining management approval along with all the other aspects of the plans being produced A program plan needs to be produced to provide a summary with respect to following aspects of the program: Concise description of program. End Items and Major interfaces. Major Goals & Priorities Customer & Users. Performing Organization & Key Personnel Schedule & Primary Ground rules. Technical Approach. Verification Approach Facilities.

Typically, the Program Plan should with within a Month two of the start of the program (assuming a multi-year effort). For short efforts, the plan should be a kickoff document.

Data-flow-diagram

BK Placement

Admin Side

BK Placement

Client Side

[DFD LEVEL-0]

Register New Candidate

BK Placement

Add new Candidate

Update Detail

Delete Candidate

Company Detail
Add New Company Update Company Detail

Delete Particular Company

Login
Add New History

Placement History

Admin

Update History

Delete History

Placement Fee
Add Fee and Calculate Commissio n

Update Details

Delete Information

Change Password

Generate New Use ID and Password for the New User

Update Current Password

Delete Particular User

[Admin Side DFD LEVEL-1]

Want to Register

BK Placement
Y

e s N

Registration User Home Page

Show Company

e s N

Company Detail

User Home Page Login


Placement Detail
Y

User

e s N

Placement Detail User Home Page

Change Password

e s N

User Login User Home Page

[Client Side DFD LEVEL-2]

BK Placement

Data-dictionary
Admin_Login

Purpose: - This table is used to store Username and Password

Company_Detail

Purpose: - This table is used to define the company information or detail

History_Table

Purpose:- This table is used to show the detail of candidate of placement

Placement_Fee

BK Placement

Purpose: - This table is used to

Registration

Purpose: - This table is used to Registered the candidate info

User_Login

Purpose: - This table is used to store Username and Password

BK Placement

Screen layout Client Side


User Login Page:

Code:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; using System.Configuration; namespace Placement { public partial class LoginPage : Form { public SqlConnection con1; public SqlDataAdapter da1; public DataSet ds1;

BK Placement
public DataTable dt1; public int cnt1; public int tot_rec1; public LoginPage() { InitializeComponent(); } public void refresh_rec() { da1 = new SqlDataAdapter("select * from User_Login", con1); ds1 = new DataSet(); dt1 = new DataTable(); da1.Fill(ds1, "User_Login"); dt1 = ds1.Tables["User_Login"]; tot_rec1 = dt1.Rows.Count; if (cnt1 >= (tot_rec1 - 1)) { cnt1--; show_rec(); } } public void show_rec() { if (tot_rec1 <= 0) { MessageBox.Show("There is no row in a table..."); return; } txtuserid.Text = dt1.Rows[cnt1].ItemArray[0].ToString(); txtuserpass.Text = dt1.Rows[cnt1].ItemArray[1].ToString(); } private void LoginPage_Load(object sender, EventArgs e) { con1 = new SqlConnection(ConfigurationManager.ConnectionStrings["conn"].ConnectionString); con1.Open(); refresh_rec(); rbtuser.Checked = true; } private void rbtuser_CheckedChanged(object sender, EventArgs e) { paneluser.Visible = true; txtuserid.Focus();

BK Placement
} private void rbtadmin_CheckedChanged(object sender, EventArgs e) { Admin_Login a1 = new Admin_Login(); a1.Show(); this.Hide(); } private void ptblogin_Click(object sender, EventArgs e) { SqlCommand cmd = new SqlCommand("select Login_ID,Password from User_Login where Login_ID='" + txtuserid.Text + "'and Password='" + txtuserpass.Text + "'", con1); SqlDataAdapter da1 = new SqlDataAdapter(cmd); dt1 = new DataTable(); da1.Fill(dt1); if (dt1.Rows.Count > 0) { MessageBox.Show("User Successfully Login", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information); int x = 0; progressbar2.Visible = true; progressbar2.Minimum = 1; progressbar2.Maximum = 100000; progressbar2.Value = 2; progressbar2.Step = 1; for (x = 1; x <= 100000; x++) { progressbar2.PerformStep(); } UserHomepage u1 = new UserHomepage(); u1.Show(); this.Hide(); } else { MessageBox.Show("Enter valid Login ID & Password", "Message", MessageBoxButtons.OK, MessageBoxIcon.Error); } } private void ptbcancel_Click(object sender, EventArgs e) { this.Close(); } } }

BK Placement

User Home Page:

Code:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace Placement { public partial class UserHomepage : Form { public UserHomepage() { InitializeComponent(); } private void ptbregistration_Click(object sender, EventArgs e) {

BK Placement
Registration_Form r1 = new Registration_Form(); r1.Show(); this.Hide(); } private void ptbcmpnydtl_Click(object sender, EventArgs e) { Company_Detail c1 = new Company_Detail(); c1.Show(); this.Hide(); } private void ptbhistry_Click(object sender, EventArgs e) { Placement_History p1 = new Placement_History(); p1.Show(); this.Hide(); } private void lbllogout_Click(object sender, EventArgs e) { LoginPage l1 = new LoginPage(); l1.Show(); this.Close(); } private void ptbchngpass_Click(object sender, EventArgs e) { Change_Password c1 = new Change_Password(); c1.Show(); this.Hide(); } private void lbllogout_MouseMove(object sender, MouseEventArgs e) { lbllogout.Font = new Font(lbllogout.Font.Name, lbllogout.Font.Size, FontStyle.Underline); } private void ptbreports_Click(object sender, EventArgs e) { Report r1 = new Report(); r1.Show(); this.Hide(); } } }

BK Placement

Registration Form:

Code:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; using System.Configuration; namespace Placement { public partial class Registration_Form : Form { public SqlConnection con; public SqlDataAdapter da; public DataSet ds;

BK Placement
public DataTable dt; public int cnt; public int tot_rec; public Registration_Form() { InitializeComponent(); } public void refresh_rec() { da = new SqlDataAdapter("select * from Registration", con); ds = new DataSet(); dt = new DataTable(); da.Fill(ds, "Registration"); dt = ds.Tables["Registration"]; tot_rec = dt.Rows.Count; if (cnt >= (tot_rec - 1)) cnt--; Show_rec(); } public void Show_rec() { if (tot_rec <= 0) { MessageBox.Show("There is no row in a table..."); return; } txtcno.Text = dt.Rows[cnt].ItemArray[0].ToString(); txtname.Text = dt.Rows[cnt].ItemArray[1].ToString(); txtaddress.Text = dt.Rows[cnt].ItemArray[2].ToString(); txtage.Text = dt.Rows[cnt].ItemArray[3].ToString(); cmbsex.Text = dt.Rows[cnt].ItemArray[4].ToString(); txtssc.Text = dt.Rows[cnt].ItemArray[5].ToString(); txthsc.Text = dt.Rows[cnt].ItemArray[6].ToString(); cmbdeg.Text = dt.Rows[cnt].ItemArray[7].ToString(); cmbpg.Text = dt.Rows[cnt].ItemArray[8].ToString(); txtsub1.Text = dt.Rows[cnt].ItemArray[9].ToString(); txtsub2.Text = dt.Rows[cnt].ItemArray[10].ToString(); txtmark1.Text = dt.Rows[cnt].ItemArray[11].ToString(); txtmark2.Text = dt.Rows[cnt].ItemArray[12].ToString(); date1.Text = dt.Rows[cnt].ItemArray[13].ToString(); txtprfrc.Text = dt.Rows[cnt].ItemArray[14].ToString(); txtexprnc.Text = dt.Rows[cnt].ItemArray[15].ToString(); } private void Registration_Form_Load(object sender, EventArgs e) {

BK Placement
con = new SqlConnection(ConfigurationManager.ConnectionStrings["conn"].ConnectionString); con.Open(); toolTipcno.SetToolTip(this.txtcno, "Do not enter this field,Please enter data from next"); } public void execute(string s) { SqlCommand cmd = new SqlCommand(s, con); cmd.ExecuteNonQuery(); refresh_rec(); } private void ptbback_Click(object sender, EventArgs e) { UserHomepage h1 = new UserHomepage(); h1.Show(); this.Close(); } private void ptbadd_Click(object sender, EventArgs e) { txtcno.Text = ""; txtname.Text = ""; txtaddress.Text = ""; txtage.Text = ""; cmbsex.Text = ""; txtssc.Text = ""; txthsc.Text = ""; cmbdeg.Text = ""; cmbpg.Text = ""; txtsub1.Text = ""; txtsub2.Text = ""; txtmark1.Text = ""; txtmark2.Text = ""; date1.Text = ""; txtprfrc.Text = ""; txtexprnc.Text = ""; txtcno.Focus(); ptbsave.Enabled = true;

cmbpg.Enabled = true; txtsub1.Enabled = true; txtsub2.Enabled = true; txtmark1.Enabled = true; txtmark2.Enabled = true; }

BK Placement
private void ptbsave_Click(object sender, EventArgs e) { if (cmbpg.Enabled==true || cmbpg.Text=="None") { string s = "Insert into Registration(Name,Address,Age,Sex,SSC,HSC,Degree,PG,DegSub,PGSub,DegPer,PGPer,AppDate,P reference,Experience) values ('"+txtname.Text+"','"+txtaddress.Text+"',"+txtage.Text+",'"+cmbsex.Text+"',"+txtssc.Text+","+txthsc .Text+",'"+cmbdeg.Text+"','"+cmbpg.Text+"','"+txtsub1.Text+"','"+txtsub2.Text+"',"+txtmark1.Text+ ","+txtmark2.Text+","+date1.Text+",'"+txtprfrc.Text+"','"+txtexprnc.Text+"')"; execute(s); cnt = tot_rec - 1; Show_rec(); MessageBox.Show("Thank You for Register", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { MessageBox.Show("Sorry You are not Qualified for Placement"); } txtcno.Text = ""; txtname.Text = ""; txtaddress.Text = ""; txtage.Text = ""; cmbsex.Text = ""; txtssc.Text = ""; txthsc.Text = ""; cmbdeg.Text = ""; cmbpg.Text = ""; txtsub1.Text = ""; txtsub2.Text = ""; txtmark1.Text = ""; txtmark2.Text = ""; date1.Text = ""; txtprfrc.Text = ""; txtexprnc.Text = ""; txtcno.Focus(); cmbpg.Enabled = true; txtsub1.Enabled = true; txtsub2.Enabled = true; txtmark1.Enabled = true; txtmark2.Enabled = true; } private void cmbdeg_SelectedIndexChanged(object sender, EventArgs e) { if (cmbdeg.SelectedItem.ToString() == "None") {

BK Placement
cmbpg.Enabled = false; txtsub1.Enabled = false; txtsub2.Enabled = false; txtmark1.Enabled = false; txtmark2.Enabled = false; } else { cmbpg.Enabled = true; txtsub1.Enabled = true; txtsub2.Enabled = true; txtmark1.Enabled = true; txtmark2.Enabled = true; } } } }

Company Detail:

BK Placement

Code:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; using System.Configuration; namespace Placement { public partial class Company_Detail : Form { public SqlConnection con; public SqlDataAdapter da; public DataSet ds; public DataTable dt; public int cnt; public int tot_rec; public Company_Detail() { InitializeComponent(); } public void refresh_rec() { da = new SqlDataAdapter("Select * from Company_Details", con); ds = new DataSet(); dt = new DataTable(); da.Fill(ds, "Company_Details"); dt = ds.Tables["Company_Details"]; tot_rec = dt.Rows.Count; if (cnt >= (tot_rec - 1)) { show_rec(); } } public void show_rec() { if (tot_rec <= 0) {

BK Placement
MessageBox.Show("There is no row in a table..."); return; } txtcode.Text = dt.Rows[cnt].ItemArray[0].ToString(); txtcom.Text = dt.Rows[cnt].ItemArray[1].ToString(); txtaddress.Text = dt.Rows[cnt].ItemArray[2].ToString(); txtsal.Text = dt.Rows[cnt].ItemArray[3].ToString(); cmbdeg.Text = dt.Rows[cnt].ItemArray[4].ToString(); cmbpg.Text = dt.Rows[cnt].ItemArray[5].ToString(); txtsub1.Text = dt.Rows[cnt].ItemArray[6].ToString(); txtm1.Text = dt.Rows[cnt].ItemArray[7].ToString(); txtsub2.Text = dt.Rows[cnt].ItemArray[8].ToString(); txtm2.Text = dt.Rows[cnt].ItemArray[9].ToString(); txtexp.Text = dt.Rows[cnt].ItemArray[10].ToString(); txtoq.Text = dt.Rows[cnt].ItemArray[11].ToString(); } private void Company_Detail_Load(object sender, EventArgs e) { con = new SqlConnection(ConfigurationManager.ConnectionStrings["conn"].ConnectionString); con.Open(); refresh_rec(); tooltipcode.SetToolTip(this.txtcode, "Do not enter this field, Please enter data from next"); } public void execute(string s) { SqlCommand cmd = new SqlCommand(s, con); cmd.ExecuteNonQuery(); refresh_rec(); } private void ptbback_Click(object sender, EventArgs e) { UserHomepage h1 = new UserHomepage(); h1.Show(); this.Close(); } private void ptbprevious_Click(object sender, EventArgs e) { cnt--; if (cnt >= 0) { show_rec(); } else {

BK Placement
MessageBox.Show("First Record", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information); cnt++; } } private void ptbnext_Click(object sender, EventArgs e) { cnt++; if (cnt <= tot_rec - 1) { show_rec(); } else { MessageBox.Show("Last Record", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information); } } private void ptbfirst_Click(object sender, EventArgs e) { cnt = 0; show_rec(); ptbnext.Enabled = true; } private void ptblast_Click(object sender, EventArgs e) { cnt = tot_rec - 1; show_rec(); ptbprevious.Enabled = true; } private void ptbadd_Click(object sender, EventArgs e) { txtcode.Text = ""; txtcom.Text = ""; txtaddress.Text = ""; txtsal.Text = ""; cmbdeg.Text = ""; cmbpg.Text = ""; txtsub1.Text = ""; txtm1.Text = ""; txtsub2.Text = ""; txtm2.Text = ""; txtexp.Text = ""; txtoq.Text = ""; txtcode.Focus(); ptbsave.Enabled = true;

BK Placement
} private void ptbsave_Click(object sender, EventArgs e) { if (cmbpg.Enabled == true) { string s = "Insert into Company_Details (C_Name,Address,Salary,Deg,PG,DegSub,DegPer,PGSub,PGPer,Experience,Other_Qualification) values (' " + txtcom.Text + " ',' " + txtaddress.Text + " '," + txtsal.Text + ",' " + cmbdeg.Text + " ',' " + cmbpg.Text + " ',' " + txtsub1.Text + " '," + txtm1.Text + ",' " + txtsub2.Text + " '," + txtm2.Text + "," + txtexp.Text + ",' " + txtoq.Text + " ')"; execute(s); cnt = tot_rec - 1; show_rec(); MessageBox.Show("Record is saved", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { MessageBox.Show("Sorry You are not Qualified for Placement"); } txtcode.Text = ""; txtcom.Text = ""; txtaddress.Text = ""; txtsal.Text = ""; cmbdeg.Text = ""; cmbpg.Text = ""; txtsub1.Text = ""; txtm1.Text = ""; txtsub2.Text = ""; txtm2.Text = ""; txtexp.Text = ""; txtoq.Text = ""; txtcode.Focus(); cmbpg.Enabled = true; txtsub1.Enabled = true; txtsub2.Enabled = true; txtm1.Enabled = true; txtm2.Enabled = true; } private void ptbedit_Click(object sender, EventArgs e) { string s = "Update Company_Details set C_Name= ' " + txtcom.Text + " ',Address= ' " + txtaddress.Text + " ',Salary= " + txtsal.Text + ",Deg= ' " + cmbdeg.Text + " ',PG= ' " + cmbpg.Text + " ',DegSub= ' " + txtsub1.Text + " ',DegPer= " + txtm1.Text + ",PGSub= ' " + txtsub2.Text + " ',PGPer=

BK Placement
" + txtm2.Text + ",Experience= " + txtexp.Text + ",Other_Qualification= ' " + txtoq.Text + " ' Where C_Code= " + txtcode.Text + " "; execute(s); refresh_rec(); MessageBox.Show("Record is updated", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information); cmbpg.Enabled = true; txtsub1.Enabled = true; txtsub2.Enabled = true; txtm1.Enabled = true; txtm2.Enabled = true; } private void cmbdeg_SelectedIndexChanged(object sender, EventArgs e) { if (cmbdeg.SelectedItem.ToString() == "None") { cmbpg.Enabled = false; txtsub1.Enabled = false; txtsub2.Enabled = false; txtm1.Enabled = false; txtm2.Enabled = false; } else { cmbpg.Enabled = true; txtsub1.Enabled = true; txtsub2.Enabled = true; txtm1.Enabled = true; txtm2.Enabled = true; } } private void cmbpg_SelectedIndexChanged(object sender, EventArgs e) { if (cmbpg.SelectedItem.ToString() == "None") { txtsub2.Enabled = false; txtm2.Enabled = false; } else { txtsub2.Enabled = true; txtm2.Enabled = true; } } }

BK Placement
}

Placement History:

Code:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; using System.Configuration; namespace Placement

BK Placement
{ public partial class Placement_History : Form { public SqlConnection con; public SqlDataAdapter da; public DataSet ds; public DataTable dt; public int cnt; public int tot_rec; public Placement_History() { InitializeComponent(); } public void refresh_rec() { da = new SqlDataAdapter("select * from History_Table", con); ds = new DataSet(); dt = new DataTable(); da.Fill(ds, "History_Table"); dt = ds.Tables["History_Table"]; tot_rec = dt.Rows.Count; if (cnt >= (tot_rec - 1)) { cnt--; show_rec(); } } public void show_rec() { if (tot_rec <= 0) { MessageBox.Show("There is no row in a table..."); return; } txtpid.Text = dt.Rows[cnt].ItemArray[0].ToString(); txtname.Text = dt.Rows[cnt].ItemArray[1].ToString(); txtcmpny.Text = dt.Rows[cnt].ItemArray[2].ToString(); txtsal.Text = dt.Rows[cnt].ItemArray[3].ToString(); date1.Text = dt.Rows[cnt].ItemArray[4].ToString(); } private void Placement_History_Load(object sender, EventArgs e) { con = new SqlConnection(ConfigurationManager.ConnectionStrings["conn"].ConnectionString); con.Open();

BK Placement
refresh_rec(); toolTipPId.SetToolTip(this.txtpid, "Do not enter this field,Please enter data from next"); } public void execute(string s) { SqlCommand cmd = new SqlCommand(s, con); cmd.ExecuteNonQuery(); refresh_rec(); } private void ptbback_Click(object sender, EventArgs e) { UserHomepage h1 = new UserHomepage(); h1.Show(); this.Close(); } private void ptbadd_Click(object sender, EventArgs e) { txtpid.Text = ""; txtname.Text = ""; txtcmpny.Text = ""; txtsal.Text = ""; date1.Text = ""; txtpid.Focus(); txtpid.Enabled = true; txtname.Enabled = true; txtcmpny.Enabled = true; txtsal.Enabled = true; date1.Enabled = true; ptbsave.Enabled = true; } private void ptbsave_Click(object sender, EventArgs e) { string s = "Insert into History_Table(Name,Company,Salary,Placement_Date) values (' " + txtname.Text + " ',' " + txtcmpny.Text + " '," + txtsal.Text + "," + date1.Text + ")"; execute(s); cnt = tot_rec - 1; show_rec(); MessageBox.Show("Record is saved", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information); txtpid.Text = ""; txtname.Text = ""; txtcmpny.Text = ""; txtsal.Text = "";

BK Placement
date1.Text = ""; txtpid.Focus(); } } }

Change Password:

Code:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; using System.Configuration;

BK Placement

namespace Placement { public partial class Change_Password : Form { public SqlConnection con; public SqlDataAdapter da; public DataSet ds; public DataTable dt; public int cnt; public int tot_rec; public Change_Password() { InitializeComponent(); } public void refresh_rec() { da = new SqlDataAdapter("select * from User_Login", con); ds = new DataSet(); dt = new DataTable(); da.Fill(ds, "User_Login"); dt = ds.Tables["User_Login"]; tot_rec = dt.Rows.Count; if (cnt >= (tot_rec - 1)) { cnt--; } } private void ptbback_Click(object sender, EventArgs e) { UserHomepage h1 = new UserHomepage(); h1.Show(); this.Close(); } private void Change_Password_Load(object sender, EventArgs e) { con = new SqlConnection(ConfigurationManager.ConnectionStrings["conn"].ConnectionString); con.Open(); refresh_rec(); } public void execute(string s) { SqlCommand cmd = new SqlCommand(s, con);

BK Placement
cmd.ExecuteNonQuery(); refresh_rec(); } private void ptbedit_Click(object sender, EventArgs e) { if (txtnewpass.Text == txtcnfrmpass.Text) { string a = txtnewpass.Text; string s = "update User_Login set Password ='"+a+"' where Login_ID = '" + txtloginid.Text + "'"; execute(s); refresh_rec(); MessageBox.Show("Record is updated", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { MessageBox.Show("sorry"); } } } }

Reports

BK Placement

Code:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; using System.Configuration; namespace Placement { public partial class Report : Form { public SqlConnection con; public SqlDataAdapter da; public DataSet ds; public DataTable dt; public Report() { InitializeComponent(); }

BK Placement

private void ptbback_Click(object sender, EventArgs e) { UserHomepage h1 = new UserHomepage(); h1.Show(); this.Close(); } private void ptbreg_Click(object sender, EventArgs e) { FrmReportViewer rr = new FrmReportViewer(); rpt_Candidate_List crt = new rpt_Candidate_List(); con = new SqlConnection(ConfigurationManager.ConnectionStrings["conn"].ConnectionString); con.Open(); da = new SqlDataAdapter("select * from Registration", con); ds = new DataSet(); dt = new DataTable(); da.Fill(ds, "Registration"); dt = ds.Tables["Registration"]; crt.SetDataSource(dt); rr.crystalReportViewer1.ReportSource = crt; rr.crystalReportViewer1.Show(); rr.Show(); this.Close(); } private void ptbcompany_Click(object sender, EventArgs e) { FrmReportViewer f2 = new FrmReportViewer(); rpt_Company_Detail crt1 = new rpt_Company_Detail(); con = new SqlConnection(ConfigurationManager.ConnectionStrings["conn"].ConnectionString); con.Open(); da = new SqlDataAdapter("select * from Company_Details", con); ds = new DataSet(); dt = new DataTable(); da.Fill(ds, "Company_Details"); dt = ds.Tables["Company_Details"]; crt1.SetDataSource(dt); f2.crystalReportViewer1.ReportSource = crt1; f2.crystalReportViewer1.Show(); f2.Show(); this.Close(); } } }

BK Placement

Candidate Details Report

Code:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; using System.Configuration; namespace Placement { public partial class Report : Form { public SqlConnection con; public SqlDataAdapter da; public DataSet ds;

BK Placement
public DataTable dt; public Report() { InitializeComponent(); } private void ptbback_Click(object sender, EventArgs e) { UserHomepage h1 = new UserHomepage(); h1.Show(); this.Close(); } private void ptbreg_Click(object sender, EventArgs e) { FrmReportViewer rr = new FrmReportViewer(); rpt_Candidate_List crt = new rpt_Candidate_List(); con = new SqlConnection(ConfigurationManager.ConnectionStrings["conn"].ConnectionString); con.Open(); da = new SqlDataAdapter("select * from Registration", con); ds = new DataSet(); dt = new DataTable(); da.Fill(ds, "Registration"); dt = ds.Tables["Registration"]; crt.SetDataSource(dt); rr.crystalReportViewer1.ReportSource = crt; rr.crystalReportViewer1.Show(); rr.Show(); this.Close(); }

Company Detail Report

BK Placement

Code:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; using System.Configuration; namespace Placement { public partial class Report : Form { public SqlConnection con; public SqlDataAdapter da; public DataSet ds; public DataTable dt; public Report() {

BK Placement
InitializeComponent(); } private void ptbback_Click(object sender, EventArgs e) { UserHomepage h1 = new UserHomepage(); h1.Show(); this.Close(); } private void ptbcompany_Click(object sender, EventArgs e) { FrmReportViewer f2 = new FrmReportViewer(); rpt_Company_Detail crt1 = new rpt_Company_Detail(); con = new SqlConnection(ConfigurationManager.ConnectionStrings["conn"].ConnectionString); con.Open(); da = new SqlDataAdapter("select * from Company_Details", con); ds = new DataSet(); dt = new DataTable(); da.Fill(ds, "Company_Details"); dt = ds.Tables["Company_Details"]; crt1.SetDataSource(dt); f2.crystalReportViewer1.ReportSource = crt1; f2.crystalReportViewer1.Show(); f2.Show(); this.Close(); } } }

Admin Side

Admin Login Page:

BK Placement

Code :using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; using System.Configuration; namespace Placement { public partial class Admin_Login : Form { public SqlConnection con; public SqlDataAdapter da; public DataSet ds; public DataTable dt; public int cnt; public int tot_rec; public Admin_Login() { InitializeComponent();

BK Placement
} public void refresh_rec() { da = new SqlDataAdapter("select * from Admin_Login", con); ds = new DataSet(); dt = new DataTable(); da.Fill(ds, "Admin_Login"); dt = ds.Tables["Admin_Login"]; tot_rec = dt.Rows.Count; if (cnt >= (tot_rec - 1)) { cnt--; show_rec(); } } public void show_rec() { if (tot_rec <= 0) { MessageBox.Show("There is no row in a table..."); return; } txtadminid.Text = dt.Rows[cnt].ItemArray[0].ToString(); txtadminpass.Text = dt.Rows[cnt].ItemArray[1].ToString(); } private void Admin_Login_Load(object sender, EventArgs e) { con = new SqlConnection(ConfigurationManager.ConnectionStrings["conn"].ConnectionString); con.Open(); refresh_rec(); } private void rbtuser_CheckedChanged(object sender, EventArgs e) { LoginPage l1 = new LoginPage(); l1.Show(); this.Hide(); } private void ptblogin_Click(object sender, EventArgs e) { SqlCommand cmd = new SqlCommand("select Login_ID,Password from Admin_Login where Login_ID='" + txtadminid.Text + "'and Password='" + txtadminpass.Text + "'", con); SqlDataAdapter da1 = new SqlDataAdapter(cmd); dt = new DataTable();

BK Placement
da1.Fill(dt); if (dt.Rows.Count > 0) { MessageBox.Show("Admin Successfully Login", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information); int x = 0; progressbar1.Visible = true; progressbar1.Minimum = 1; progressbar1.Maximum = 100000; progressbar1.Value = 2; progressbar1.Step = 1; for (x = 1; x <= 100000; x++) { progressbar1.PerformStep(); } AdminHomePage a1 = new AdminHomePage(); a1.Show(); this.Hide(); } else { MessageBox.Show("Enter valid Login ID & Password","Message",MessageBoxButtons.OK,MessageBoxIcon.Error); } } private void ptbcancel_Click(object sender, EventArgs e) { this.Close(); } } }

Admin Home Page:

BK Placement

Code:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; using System.Configuration; namespace Placement { public partial class AdminHomePage : Form { public SqlConnection con; public SqlDataAdapter da; public DataSet ds; public DataTable dt; public AdminHomePage() { InitializeComponent(); } private void registrationFormToolStripMenuItem_Click(object sender, EventArgs e)

BK Placement
{ Admin_Registration ah1 = new Admin_Registration(); ah1.Show(); this.Close(); } private void companyDetailToolStripMenuItem_Click(object sender, EventArgs e) { Admin_Company ac1 = new Admin_Company(); ac1.Show(); this.Close(); } private void placementHistoryToolStripMenuItem_Click(object sender, EventArgs e) { Admin_History ah1 = new Admin_History(); ah1.Show(); this.Close(); } private void lbllogout_Click(object sender, EventArgs e) { LoginPage l1 = new LoginPage(); l1.Show(); this.Close(); } private void lbllogout_MouseMove(object sender, MouseEventArgs e) { lbllogout.Font = new Font(lbllogout.Font.Name, lbllogout.Font.Size, FontStyle.Underline); } private void administrationToolStripMenuItem_Click(object sender, EventArgs e) { Admin_Administration a1 = new Admin_Administration(); a1.Show(); this.Close(); } private void registrationFormToolStripMenuItem1_Click(object sender, EventArgs e) { FrmAdmin_ReportViewer ar = new FrmAdmin_ReportViewer(); rpt_Admin_Registration crt = new rpt_Admin_Registration(); con = new SqlConnection(ConfigurationManager.ConnectionStrings["conn"].ConnectionString); con.Open(); da = new SqlDataAdapter("select * from Registration", con); ds = new DataSet(); dt = new DataTable(); da.Fill(ds, "Registration");

BK Placement
dt = ds.Tables["Registration"]; crt.SetDataSource(dt); ar.crystalReportViewer1.ReportSource = crt; ar.crystalReportViewer1.Show(); ar.Show(); this.Close(); } private void placementFeeToolStripMenuItem1_Click(object sender, EventArgs e) { FrmAdmin_ReportViewer ar = new FrmAdmin_ReportViewer(); rpt_Placement__Fee crt = new rpt_Placement__Fee(); con = new SqlConnection(ConfigurationManager.ConnectionStrings["conn"].ConnectionString); con.Open(); da = new SqlDataAdapter("select * from Placement_Fee", con); ds = new DataSet(); dt = new DataTable(); da.Fill(ds, "Placement_Fee"); dt = ds.Tables["Placement_Fee"]; crt.SetDataSource(dt); ar.crystalReportViewer1.ReportSource = crt; ar.crystalReportViewer1.Show(); ar.Show(); this.Close(); } private void placementFeeToolStripMenuItem2_Click(object sender, EventArgs e) { Placement_Fee p1 = new Placement_Fee(); p1.Show(); this.Close(); } } }

Admin Registration Form:

BK Placement

Code:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; using System.Configuration; namespace Placement { public partial class Admin_Registration : Form { public SqlConnection con; public SqlDataAdapter da; public DataSet ds; public DataTable dt; public int cnt; public int tot_rec; public Admin_Registration() { InitializeComponent(); }

BK Placement
public void refresh_rec() { da = new SqlDataAdapter("select * from Registration", con); ds = new DataSet(); dt = new DataTable(); da.Fill(ds, "Registration"); dt = ds.Tables["Registration"]; tot_rec = dt.Rows.Count; if (cnt >= (tot_rec - 1)) cnt--; Show_rec(); } public void Show_rec() { if (tot_rec <= 0) { MessageBox.Show("There is no row in a table..."); return; } txtcno.Text = dt.Rows[cnt].ItemArray[0].ToString(); txtname.Text = dt.Rows[cnt].ItemArray[1].ToString(); txtaddress.Text = dt.Rows[cnt].ItemArray[2].ToString(); txtage.Text = dt.Rows[cnt].ItemArray[3].ToString(); cmbsex.Text = dt.Rows[cnt].ItemArray[4].ToString(); txtssc.Text = dt.Rows[cnt].ItemArray[5].ToString(); txthsc.Text = dt.Rows[cnt].ItemArray[6].ToString(); cmbdeg.Text = dt.Rows[cnt].ItemArray[7].ToString(); cmbpg.Text = dt.Rows[cnt].ItemArray[8].ToString(); txtsub1.Text = dt.Rows[cnt].ItemArray[9].ToString(); txtsub2.Text = dt.Rows[cnt].ItemArray[10].ToString(); txtmark1.Text = dt.Rows[cnt].ItemArray[11].ToString(); txtmark2.Text = dt.Rows[cnt].ItemArray[12].ToString(); date1.Text = dt.Rows[cnt].ItemArray[13].ToString(); txtprfrc.Text = dt.Rows[cnt].ItemArray[14].ToString(); txtexprnc.Text = dt.Rows[cnt].ItemArray[15].ToString(); } private void Admin_Registration_Load(object sender, EventArgs e) { con = new SqlConnection(ConfigurationManager.ConnectionStrings["conn"].ConnectionString); con.Open(); toolTipadcno.SetToolTip(this.txtcno, "Do not enter this field,Please enter data from next"); } public void execute(string s) { SqlCommand cmd = new SqlCommand(s, con);

BK Placement
cmd.ExecuteNonQuery(); refresh_rec(); } private void ptbfirst_Click(object sender, EventArgs e) { cnt = 0; refresh_rec(); ptbnext.Enabled = true; } private void ptbnext_Click(object sender, EventArgs e) { cnt++; if (cnt <= tot_rec - 1) { Show_rec(); } else { MessageBox.Show("Last Record", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information); } } private void ptbprevious_Click(object sender, EventArgs e) { cnt--; if (cnt >= 0) { Show_rec(); } else { MessageBox.Show("First Record", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information); cnt++; } } private void ptblast_Click(object sender, EventArgs e) { cnt = tot_rec - 1; Show_rec(); ptbprevious.Enabled = true; } private void ptbadd_Click(object sender, EventArgs e) { txtcno.Text = "";

BK Placement
txtname.Text = ""; txtaddress.Text = ""; txtage.Text = ""; cmbsex.Text = ""; txtssc.Text = ""; txthsc.Text = ""; cmbdeg.Text = ""; cmbpg.Text = ""; txtsub1.Text = ""; txtsub2.Text = ""; txtmark1.Text = ""; txtmark2.Text = ""; date1.Text = ""; txtprfrc.Text = ""; txtexprnc.Text = ""; txtcno.Focus(); ptbsave.Enabled = true; } private void ptbsave_Click(object sender, EventArgs e) { if (cmbpg.Enabled == true) { string s = "Insert into Registration (Name,Address,Age,Sex,SSC,HSC,Degree,PG,DegSub,PGSub,DegPer,PGPer,AppDate,Preference,Ex perience) values (' " + txtname.Text + " ',' " + txtaddress.Text + " '," + txtage.Text + ",' " + cmbsex.Text + " '," + txtssc.Text + "," + txthsc.Text + ",' " + cmbdeg.Text + " ',' " + cmbpg.Text + " ',' " + txtsub1.Text + " ',' " + txtsub2.Text + " '," + txtmark1.Text + "," + txtmark2.Text + "," + date1.Text + ",' " + txtprfrc.Text + " ',' " + txtexprnc.Text + " ')"; execute(s); cnt = tot_rec - 1; Show_rec(); MessageBox.Show("Thank You for Register", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { MessageBox.Show("Sorry You are not Qualified for Placement"); } txtcno.Text = ""; txtname.Text = ""; txtaddress.Text = ""; txtage.Text = ""; cmbsex.Text = ""; txtssc.Text = ""; txthsc.Text = ""; cmbdeg.Text = ""; cmbpg.Text = "";

BK Placement
txtsub1.Text = ""; txtsub2.Text = ""; txtmark1.Text = ""; txtmark2.Text = ""; date1.Text = ""; txtprfrc.Text = ""; txtexprnc.Text = ""; txtcno.Focus(); } private void ptbback_Click(object sender, EventArgs e) { AdminHomePage a1 = new AdminHomePage(); a1.Show(); this.Close(); } private void ptbedit_Click(object sender, EventArgs e) { string s = "Update Registration set Name= ' " + txtname.Text + " ',Address= ' " + txtaddress.Text + " ',Age=" + txtage.Text + ",Sex=' " + cmbsex.Text + " ',SSC=" + txtssc.Text + ",HSC=" + txthsc.Text + ",Degree=' " + cmbdeg.Text + " ',PG=' " + cmbpg.Text + " ',DegSub=' " + txtsub1.Text + " ',PGSub=' " + txtsub2.Text + " ',DegPer=" + txtmark1.Text + ",PGPer=" + txtmark2.Text + ",AppDate=" + date1.Text + ",Preference=' " + txtprfrc.Text + " ',Experience=' " + txtexprnc.Text + " ' Where Candidate_No= " + txtcno.Text + " "; execute(s); refresh_rec(); MessageBox.Show("Record is updated", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information); } private void ptbdelete_Click(object sender, EventArgs e) { string s = "Delete from Registration where Candidate_No=" + txtcno.Text; execute(s); refresh_rec(); MessageBox.Show("Record is deleted", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information); } private void cmbdeg_SelectedIndexChanged(object sender, EventArgs e) { if (cmbdeg.SelectedItem.ToString() == "None") { cmbpg.Enabled = false; txtsub1.Enabled = false; txtsub2.Enabled = false; txtmark1.Enabled = false; txtmark2.Enabled = false; }

BK Placement

else { cmbpg.Enabled = true; txtsub1.Enabled = true; txtsub2.Enabled = true; txtmark1.Enabled = true; txtmark2.Enabled = true; } } private void cmbpg_SelectedIndexChanged(object sender, EventArgs e) { if (cmbpg.SelectedItem.ToString() == "None") { txtsub2.Enabled = false; txtmark2.Enabled = false; } } } }

Admin Company:

BK Placement

Code:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; using System.Configuration; namespace Placement { public partial class Admin_Company : Form { public SqlConnection con; public SqlDataAdapter da; public DataSet ds; public DataTable dt; public int cnt; public int tot_rec; public Admin_Company() { InitializeComponent(); } public void refresh_rec() { da = new SqlDataAdapter("Select * from Company_Details", con); ds = new DataSet(); dt = new DataTable(); da.Fill(ds, "Company_Details"); dt = ds.Tables["Company_Details"]; tot_rec = dt.Rows.Count; if (cnt >= (tot_rec - 1)) { cnt--; show_rec(); } } public void show_rec() { if (tot_rec <= 0) { MessageBox.Show("There is no row in a table...");

BK Placement
return; } txtcode.Text = dt.Rows[cnt].ItemArray[0].ToString(); txtcom.Text = dt.Rows[cnt].ItemArray[1].ToString(); txtaddress.Text = dt.Rows[cnt].ItemArray[2].ToString(); txtsal.Text = dt.Rows[cnt].ItemArray[3].ToString(); cmbdeg.Text = dt.Rows[cnt].ItemArray[4].ToString(); cmbpg.Text = dt.Rows[cnt].ItemArray[5].ToString(); txtsub1.Text = dt.Rows[cnt].ItemArray[6].ToString(); txtm1.Text = dt.Rows[cnt].ItemArray[7].ToString(); txtsub2.Text = dt.Rows[cnt].ItemArray[8].ToString(); txtm2.Text = dt.Rows[cnt].ItemArray[9].ToString(); txtexp.Text = dt.Rows[cnt].ItemArray[10].ToString(); txtoq.Text = dt.Rows[cnt].ItemArray[11].ToString(); } private void Admin_Company_Load(object sender, EventArgs e) { con = new SqlConnection(ConfigurationManager.ConnectionStrings["conn"].ConnectionString); con.Open(); refresh_rec(); toolTipadcode.SetToolTip(this.txtcode, "Do not enter this field,Please enter data from next"); } public void execute(string s) { SqlCommand cmd = new SqlCommand(s, con); cmd.ExecuteNonQuery(); refresh_rec(); } private void ptbadd_Click(object sender, EventArgs e) { txtcode.Text = ""; txtcom.Text = ""; txtaddress.Text = ""; txtsal.Text = ""; cmbdeg.Text = ""; cmbpg.Text = ""; txtsub1.Text = ""; txtm1.Text = ""; txtsub2.Text = ""; txtm2.Text = ""; txtexp.Text = ""; txtoq.Text = ""; txtcode.Focus(); ptbsave.Enabled = true; }

BK Placement

private void ptbsave_Click(object sender, EventArgs e) { if (cmbpg.Enabled == true) { string s = "Insert into Company_Details (C_Name,Address,Salary,Deg,PG,DegSub,DegPer,PGSub,PGPer,Experience,Other_Qualification) values (' " + txtcom.Text + " ',' " + txtaddress.Text + " '," + txtsal.Text + ",' " + cmbdeg.Text + " ',' " + cmbpg.Text + " ',' " + txtsub1.Text + " '," + txtm1.Text + ",' " + txtsub2.Text + " '," + txtm2.Text + ",' " + txtexp.Text + " ',' " + txtoq.Text + " ')"; execute(s); cnt = tot_rec - 1; show_rec(); MessageBox.Show("Record is saved", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { MessageBox.Show("Sorry You are not Qualified for Placement"); } txtcode.Text = ""; txtcom.Text = ""; txtaddress.Text = ""; txtsal.Text = ""; cmbdeg.Text = ""; cmbpg.Text = ""; txtsub1.Text = ""; txtm1.Text = ""; txtsub2.Text = ""; txtm2.Text = ""; txtexp.Text = ""; txtoq.Text = ""; txtcode.Focus(); } private void ptbprevious_Click(object sender, EventArgs e) { cnt--; if (cnt >= 0) { show_rec(); } else { MessageBox.Show("First Record", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information); cnt++; }

BK Placement
} private void ptbnext_Click(object sender, EventArgs e) { cnt++; if (cnt <= tot_rec - 1) { show_rec(); } else { MessageBox.Show("Last Record", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information); } } private void ptbback_Click(object sender, EventArgs e) { AdminHomePage a1 = new AdminHomePage(); a1.Show(); this.Close(); } private void ptbdelete_Click(object sender, EventArgs e) { string s = "Delete from Company_Details where C_Code= " + txtcode.Text; execute(s); refresh_rec(); MessageBox.Show("Record is deleted", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information); } private void ptbedit_Click(object sender, EventArgs e) { string s = "Update Company_Details set C_Name=' " + txtcom.Text + " ',Address= ' " + txtaddress.Text + " ',Salary= " + txtsal.Text + ",Deg=' " + cmbdeg.Text + " ',PG=' " + cmbpg.Text + " ',DegSub=' " + txtsub1.Text + " ',DegPer= " + txtm1.Text + ", PGSub=' " + txtsub2.Text + " ',PGPer=" + txtm2.Text + ",Experience=' " + txtexp.Text + " ',Other_Qualification=' " + txtoq.Text + " ' Where C_Code= " + txtcode.Text; execute(s); refresh_rec(); MessageBox.Show("Record is updated", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information); } private void cmbdeg_SelectedIndexChanged(object sender, EventArgs e) { if (cmbdeg.SelectedItem.ToString() == "None") { cmbpg.Enabled = false;

BK Placement
txtsub1.Enabled = false; txtsub2.Enabled = false; txtm1.Enabled = false; txtm2.Enabled = false; } else { cmbpg.Enabled = true; txtsub1.Enabled = true; txtsub2.Enabled = true; txtm1.Enabled = true; txtm2.Enabled = true; } } private void cmbpg_SelectedIndexChanged(object sender, EventArgs e) { if (cmbpg.SelectedItem.ToString() == "None") { txtsub2.Enabled = false; txtm2.Enabled = false; } } private void ptbfirst_Click(object sender, EventArgs e) { cnt = 0; show_rec(); ptbnext.Enabled = true; } private void ptblast_Click(object sender, EventArgs e) { cnt = tot_rec - 1; show_rec(); ptbprevious.Enabled = true; } } }

Admin History:

BK Placement

Code:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; using System.Configuration; namespace Placement { public partial class Admin_History : Form { public SqlConnection con; public SqlDataAdapter da; public DataSet ds; public DataTable dt; public int cnt; public int tot_rec; public Admin_History() { InitializeComponent(); }

BK Placement
public void refresh_rec() { da = new SqlDataAdapter("select * from History_Table", con); ds = new DataSet(); dt = new DataTable(); da.Fill(ds, "History_Table"); dt = ds.Tables["History_Table"]; tot_rec = dt.Rows.Count; if (cnt >= (tot_rec - 1)) { cnt--; show_rec(); } } public void show_rec() { if (tot_rec <= 0) { MessageBox.Show("There is no row in a table..."); return; } txtpid.Text = dt.Rows[cnt].ItemArray[0].ToString(); txtname.Text = dt.Rows[cnt].ItemArray[1].ToString(); txtcmpny.Text = dt.Rows[cnt].ItemArray[2].ToString(); txtsal.Text = dt.Rows[cnt].ItemArray[3].ToString(); date1.Text = dt.Rows[cnt].ItemArray[4].ToString(); } public void execute(string s) { SqlCommand cmd = new SqlCommand(s, con); cmd.ExecuteNonQuery(); refresh_rec(); } private void ptbfirst_Click(object sender, EventArgs e) { cnt = 0; show_rec(); ptbnext.Enabled = true; } private void ptbnext_Click(object sender, EventArgs e) { cnt++; if (cnt <= tot_rec - 1) { show_rec();

BK Placement
} else { MessageBox.Show("Last Record", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information); } } private void ptbprevious_Click(object sender, EventArgs e) { cnt--; if (cnt >= 0) { show_rec(); } else { MessageBox.Show("First Record", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information); cnt++; } } private void ptblast_Click(object sender, EventArgs e) { cnt = tot_rec - 1; show_rec(); ptbprevious.Enabled = true; } private void ptbadd_Click(object sender, EventArgs e) { txtpid.Text = ""; txtname.Text = ""; txtcmpny.Text = ""; txtsal.Text = ""; date1.Text = ""; txtpid.Focus(); txtpid.Enabled = true; txtname.Enabled = true; txtcmpny.Enabled = true; txtsal.Enabled = true; date1.Enabled = true; ptbsave.Enabled = true; } private void ptbsave_Click(object sender, EventArgs e) {

BK Placement
string s = "Insert into History_Table (Name,Company,Salary,Placement_Date) values(' " + txtname.Text + " ',' " + txtcmpny.Text + " '," + txtsal.Text + "," + date1.Text + ")"; execute(s); cnt = tot_rec - 1; show_rec(); MessageBox.Show("Record is saved", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information); txtpid.Text = ""; txtname.Text = ""; txtcmpny.Text = ""; txtsal.Text = ""; date1.Text = ""; txtpid.Focus(); } private void ptbback_Click(object sender, EventArgs e) { AdminHomePage a1 = new AdminHomePage(); a1.Show(); this.Close(); } private void ptbdelete_Click(object sender, EventArgs e) { string s = "Delete from History_Table where Placement_Id= " + txtpid.Text; execute(s); refresh_rec(); MessageBox.Show("Record is deleted", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information); } private void ptbedit_Click(object sender, EventArgs e) { string s = "Update History_Table set Name=' " + txtname.Text + " ',Company= ' " + txtcmpny.Text + " ',Salary= " + txtsal.Text + ",Placement_Date= " + date1.Text + " Where Placement_Id= " + txtpid.Text; execute(s); refresh_rec(); MessageBox.Show("Record is updated", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information); } private void Admin_History_Load(object sender, EventArgs e) { con = new SqlConnection(ConfigurationManager.ConnectionStrings["conn"].ConnectionString); con.Open(); refresh_rec();

BK Placement
toolTipadPId.SetToolTip(this.txtpid, "Do not enter this field,Please enter data from next"); } } }

Placement:

Code:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; using System.Configuration; namespace Placement { public partial class Placement_Fee : Form {

BK Placement
public SqlConnection con; public SqlCommand cmd; public Placement_Fee() { InitializeComponent(); } public void refresh_rec() { dataGridView1.Rows.Clear(); cmbcanname.Items.Clear(); SqlCommand cmd = new SqlCommand("Select * from Placement_Fee", con); SqlDataReader dr; dr = cmd.ExecuteReader(); while (dr.Read()) { dataGridView1.Rows.Add(dr["Name_of_the_Candidate"].ToString(), dr["Company_Name"].ToString(), dr["Payment_from_the_Candidate"].ToString(), dr["Commission"].ToString()); cmbcanname.Items.Add(dr["Name_of_the_Candidate"].ToString()); } dr.Close(); } private void Placement_Fee_Load(object sender, EventArgs e) { con = new SqlConnection(ConfigurationManager.ConnectionStrings["conn"].ConnectionString); con.Open(); refresh_rec(); toolTipadcnm.SetToolTip(this.txtcname, "Enter Candidate name"); } public void execute(string s) { SqlCommand cmd = new SqlCommand(s, con); cmd.ExecuteNonQuery(); refresh_rec(); } private void ptbadd_Click(object sender, EventArgs e) { txtcname.Text = ""; txtcmpnynm.Text = ""; txtpayment.Text = ""; txtcommission.Text = "";

BK Placement
txtcname.Focus(); txtcname.Enabled = true; txtcmpnynm.Enabled = true; txtpayment.Enabled = true; txtcommission.Enabled = true; ptbsave.Enabled = true; } private void ptbsave_Click(object sender, EventArgs e) { string s = "insert into Placement_Fee (Name_of_the_Candidate,Company_Name,Payment_from_the_Candidate,Commission) values (' " + txtcname.Text + " ',' " + txtcmpnynm.Text + " '," + txtpayment.Text + "," + txtcommission.Text + ")"; execute(s); MessageBox.Show("Record is saved", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information); txtcname.Text = ""; txtcmpnynm.Text = ""; txtpayment.Text = ""; txtcommission.Text = ""; txtcname.Focus(); } private void ptbdelete_Click(object sender, EventArgs e) { string s = "Delete from Placement_Fee where Name_of_the_Candidate= '"+txtcname.Text+"'"; execute(s); refresh_rec(); MessageBox.Show("Record is deleted", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information); } private void ptbedit_Click(object sender, EventArgs e) { string s = "Update Placement_Fee set Company_Name='" + txtcmpnynm.Text + "',Payment_from_the_Candidate=" + txtpayment.Text + ",Commission=" + txtcommission.Text + " where Name_of_the_Candidate='" + txtcname.Text + "'"; execute(s); refresh_rec(); MessageBox.Show("Record is updated", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information); } private void txtpayment_Leave(object sender, EventArgs e) { double d = Int32.Parse(txtpayment.Text) * 0.15 / 100;

BK Placement
txtcommission.Text = d.ToString(); } private void ptbback_Click(object sender, EventArgs e) { AdminHomePage a1 = new AdminHomePage(); a1.Show(); this.Close(); } private void ptbsearch_Click(object sender, EventArgs e) { SqlCommand cmd = new SqlCommand("Select Name_of_the_Candidate,Company_Name,Payment_from_the_Candidate,Commission from Placement_Fee where Name_of_the_Candidate='"+cmbcanname.Text+"'", con); SqlDataReader dr1; dr1 = cmd.ExecuteReader(); while (dr1.Read()) { txtcname.Text=dr1["Name_of_the_Candidate"].ToString(); txtcmpnynm.Text=dr1["Company_Name"].ToString(); txtpayment.Text=dr1["Payment_from_the_Candidate"].ToString(); txtcommission.Text=dr1["Commission"].ToString(); } dr1.Close(); refresh_rec(); } } }

BK Placement

Admin Administration:

Code:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; using System.Configuration; namespace Placement { public partial class Admin_Administration : Form { public SqlConnection con; public SqlCommand cmd; public Admin_Administration() { InitializeComponent();

BK Placement
} public void refresh_rec() { cmbadminid.Items.Clear(); SqlCommand cmd = new SqlCommand("Select * from Admin_Login", con); SqlDataReader dr; dr = cmd.ExecuteReader(); while (dr.Read()) { cmbadminid.Items.Add(dr["Login_ID"].ToString()); } dr.Close(); } private void Admin_Administration_Load(object sender, EventArgs e) { con = new SqlConnection(ConfigurationManager.ConnectionStrings["conn"].ConnectionString); con.Open(); refresh_rec(); } public void execute(string s) { SqlCommand cmd = new SqlCommand(s, con); cmd.ExecuteNonQuery(); refresh_rec(); } private void ptbadd_Click(object sender, EventArgs e) { txtloginid.Text = ""; txtnewpass.Text = ""; txtcnfrmpass.Text = ""; } private void ptbsave_Click(object sender, EventArgs e) { string s = "Insert into Admin_Login(Login_ID,Password,Confirm_Password) values (' " + txtloginid.Text + " ',' " + txtnewpass.Text + " ',' " + txtcnfrmpass.Text + " ')"; execute(s); MessageBox.Show("Record is saved", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information); } private void ptbback_Click(object sender, EventArgs e)

BK Placement
{ AdminHomePage a1 = new AdminHomePage(); a1.Show(); this.Close(); } private void ptbedit_Click(object sender, EventArgs e) { if (txtnewpass.Text == txtcnfrmpass.Text) { string a = txtnewpass.Text; string s = "update Admin_Login set Password ='"+a+"' where Login_ID = '" + txtloginid.Text + "'"; execute(s); refresh_rec(); MessageBox.Show("Record is updated", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information); } con = new SqlConnection(@"Data Source=.\SQLEXPRESS;AttachDbFilename=E:\Placement\Placement\Placement.mdf;Integrated Security=True;User Instance=True"); con.Open(); refresh_rec(); } private void ptbdelete_Click(object sender, EventArgs e) { string s = "Delete from Admin_Login where Login_ID= " + txtloginid.Text + " "; execute(s); refresh_rec(); MessageBox.Show("Record is deleted", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information); } private void ptbsearch_Click(object sender, EventArgs e) { SqlCommand cmd = new SqlCommand("Select Login_ID,Password from Admin_Login where Login_ID='"+cmbadminid.Text+"'", con); SqlDataReader dr; dr = cmd.ExecuteReader(); while (dr.Read()) { txtloginid.Text=dr["Login_ID"].ToString(); txtpass.Text=dr["Password"].ToString(); } dr.Close(); } }

BK Placement
}

Reports: Registration Report:

Code:using System; using System.Collections.Generic; using System.ComponentModel;

BK Placement
using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; using System.Configuration; namespace Placement { public partial class AdminHomePage : Form { public SqlConnection con; public SqlDataAdapter da; public DataSet ds; public DataTable dt; public AdminHomePage() { InitializeComponent(); } private void registrationFormToolStripMenuItem1_Click(object sender, EventArgs e) { FrmAdmin_ReportViewer ar = new FrmAdmin_ReportViewer(); rpt_Admin_Registration crt = new rpt_Admin_Registration(); con = new SqlConnection(ConfigurationManager.ConnectionStrings["conn"].ConnectionString); con.Open(); da = new SqlDataAdapter("select * from Registration", con); ds = new DataSet(); dt = new DataTable(); da.Fill(ds, "Registration"); dt = ds.Tables["Registration"]; crt.SetDataSource(dt); ar.crystalReportViewer1.ReportSource = crt; ar.crystalReportViewer1.Show(); ar.Show(); this.Close(); } } }

Placement Fee:

BK Placement

Code:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; using System.Configuration; namespace Placement { public partial class AdminHomePage : Form { public SqlConnection con; public SqlDataAdapter da; public DataSet ds; public DataTable dt; public AdminHomePage() { InitializeComponent();

BK Placement
} private void placementFeeToolStripMenuItem1_Click(object sender, EventArgs e) { FrmAdmin_ReportViewer ar = new FrmAdmin_ReportViewer(); rpt_Placement__Fee crt = new rpt_Placement__Fee(); con = new SqlConnection(ConfigurationManager.ConnectionStrings["conn"].ConnectionString); con.Open(); da = new SqlDataAdapter("select * from Placement_Fee", con); ds = new DataSet(); dt = new DataTable(); da.Fill(ds, "Placement_Fee"); dt = ds.Tables["Placement_Fee"]; crt.SetDataSource(dt); ar.crystalReportViewer1.ReportSource = crt; ar.crystalReportViewer1.Show(); ar.Show(); this.Close(); } } }

Bibliography

You might also like