Placement company

download Placement company

of 81

Transcript of Placement company

  • 7/27/2019 Placement company

    1/81

    BK Placement

    PrefaceThe 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 forBCA 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.

    AcknowledgementWe 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.

  • 7/27/2019 Placement company

    2/81

    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 theircordial 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 ProfileProject Title: BK PlacementObjective: Providing Information about

    different companies of placement of student.

    Platform: Server SideWindows XP (SP3)

    Client SideAny Browser Supported

    Front End: C#.Net, ADO.Net

    Back End: SQL

    Editor: Visual Studio 2008

    Project Team Size: 2 Member

    Developed By: Jadav Kashmira

    Dabhi Bhumika

    Submitted to: Shree M.M.G Mahila Arts & Commerce Collage, Junagadh.

  • 7/27/2019 Placement company

    3/81

    BK Placement

    Hardware & Software RequirementHardware Requirement

    Processor : - Intel Celeron 1.40 Main memory : - 512 MB of RAM CD/DVD Drive : - For Installation Hard Disk : - 4 GB Printer : - 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 ls: - Microsoft Office 2007, Adobe Photoshop CS2,

    Paint.

    Software StudyWhat 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.

  • 7/27/2019 Placement company

    4/81

    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 isalso 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 theCLR 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

  • 7/27/2019 Placement company

    5/81

    BK Placement

    functions for working with text. In addition to the BCL, there is the Framework Class

    Library (FCL).

    FCL includes

    1.ADO.NET2.ASP.NET3.Web Services4.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-form-

    only-once identity verification service.

    The .NET platform was designed to provide:

    The ability to make the entire range of computing devices work together and tohave user information automatically updated and synchronized on all of them

    Increased interactive capability for Web sites, enabled by greater use ofXML(Extensible Markup Language) rather than HTML

    A premium online subscription service, that will feature customized access anddelivery 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 toinformation, as well as synchronization of information among users and devices

    The ability to integrate various communications media, such as e-mail, faxes, andtelephones

    For developers, the ability to create reusable modules, which should increaseproductivity and reduce the number of programming errors.

  • 7/27/2019 Placement company

    6/81

    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 objectcode is stored and executed locally, executed locally but Internet-distributed, or

    executed remotely.

    To provide a code-execution environment that minimizes software deployment andversioning 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 problemsof scripted or interpreted environments.

    To make the developer experience consistent across widely varying types ofapplications, such as Windows-based applications and Web-based applications.

  • 7/27/2019 Placement company

    7/81

    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: - YourScalability 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.

  • 7/27/2019 Placement company

    8/81

    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, andthe 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 usuallyinvolves 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.

  • 7/27/2019 Placement company

    9/81

    BK Placement

    3. A first prototype of the new system is constructed from the preliminary design. Thisis 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 andweaknesses, 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 asecond 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 developerDetermines the specifications

    of the clients real needs.

    Figure 2.1 Prototyping Model

  • 7/27/2019 Placement company

    10/81

    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 westart 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 projectplanning. 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)

  • 7/27/2019 Placement company

    11/81

    BK Placement

    Figure 2.2 GNATT Chart

    ROLES & RESPONSIBILITIES

    ROLE RESPONSIBILITIES

    Admin Admin can do Editing of members, Deleting ofmembers 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 Messagesas well.

    They can search for friends and groups. They can alsocreate 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

  • 7/27/2019 Placement company

    12/81

    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 thanempirical 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.

  • 7/27/2019 Placement company

    13/81

    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 isthe target of risk management. Examples of risk sources are: stakeholders of a

    project, employees of a company or the weather over an airport.

    Problem analysisRisk:are related to identify threats. For example: the threat oflosing money, the threat of abuse of privacy information or the threat of accidents

  • 7/27/2019 Placement company

    14/81

    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: stakeholderswithdrawing 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 haveobjectives. Any event that may endanger achieving an objective partly or completely

    is identified as risk.

    Scenario-based risk identification in scenario analysis different scenarios arecreated. 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 riskidentification 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.

  • 7/27/2019 Placement company

    15/81

    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. Businessrisk often jeopardizes the project and the product.

    Known Risk : Known risk are those that can be uncovered after careful evaluationof the project plan, the business and technical environment in which the project is

  • 7/27/2019 Placement company

    16/81

    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 Type of Risk Critical Impact Risk Handling

    Resistance from

    end user

    Business Risk 50% Critical Explain the

    advantage of the

    proposed systemover the past

    system.

    User requirements

    may change

    Product Risk 20% Critical Implement the

    changes as far as

    possible.

    Inexperience in

    the use of

    technology or

    tools

    Inexperience

    Risk

    45% Marginal Put in more

    efforts to gain

    knowledge.

    Loss of focus of

    management

    Business Risk 10% Catastrop

    hic

    Try to explain the

    importance of

    system.

    Technology may

    not meet its

    requirement

    Technology 20% Catastrop

    hic

    Try to create

    worktable

    solution.

    Delivery dead line

    will be tightened

    Business Risk 50% Critical Try to plan out

    things and rich

    those goals first.

    Figure 2.6 Risk Table

  • 7/27/2019 Placement company

    17/81

    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

  • 7/27/2019 Placement company

    18/81

    BK Placement

    [DFD LEVEL-0]

    Register New Candidate

    BK

    Placement

    Client Side

    Admin Side

  • 7/27/2019 Placement company

    19/81

    BK Placement

    [Admin Side DFD LEVEL-1]

    Login

    Admin

    Add new

    Candidate Update DetailDelete

    Candidate

    Company Detail

    Add New

    Company

    Update

    CompanyDelete

    Particular

    Company

    Placement History

    Add New

    History Update

    History

    Delete

    History

    Placement Fee

    Add Fee

    andCalculate

    Commissio

    Update

    Details

    Delete

    Informatio

    Change Password

    Update

    Current

    Password

    Delete

    Particular

    Generate

    New Use ID

    and

    Passwordfor the New

    User

    Want to

    Re ister

  • 7/27/2019 Placement company

    20/81

    BK Placement

    [Client Side DFD LEVEL-2]

    Login

    RegistrationY

    User Home Page

    Show

    Company

    Y

    Com an Detail

    User Home Page

    Placement

    Detail

    Y

    Placement Detail

    User Home Page

    Change

    Password

    Y

    User Login

    User Home Page

    User

  • 7/27/2019 Placement company

    21/81

    BK Placement

    Data-dictionaryAdmin_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

  • 7/27/2019 Placement company

    22/81

    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

  • 7/27/2019 Placement company

    23/81

    BK Placement

    Screen layout Client SideUser 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{

    publicpartialclassLoginPage : Form

    {publicSqlConnection con1;

    publicSqlDataAdapterda1;

    publicDataSet ds1;

  • 7/27/2019 Placement company

    24/81

    BK Placement

    publicDataTable dt1;

    publicint cnt1;

    publicint tot_rec1;

    public LoginPage()

    { InitializeComponent();}

    publicvoid refresh_rec(){

    da1 = newSqlDataAdapter("select * from User_Login", con1);

    ds1 = newDataSet();

    dt1 = newDataTable();da1.Fill(ds1, "User_Login");

    dt1 = ds1.Tables["User_Login"];

    tot_rec1 = dt1.Rows.Count;

    if(cnt1 >= (tot_rec1 - 1))

    {

    cnt1--;show_rec();

    }

    }

    publicvoid show_rec()

    {

    if(tot_rec1

  • 7/27/2019 Placement company

    25/81

    BK Placement

    }

    privatevoid rbtadmin_CheckedChanged(object sender, EventArgs e){

    Admin_Login a1 = newAdmin_Login();

    a1.Show();this.Hide();}

    privatevoid ptblogin_Click(object sender, EventArgs e){

    SqlCommand cmd = newSqlCommand("select Login_ID,Password from User_Login

    where Login_ID='" + txtuserid.Text + "'and Password='" + txtuserpass.Text + "'", con1);

    SqlDataAdapterda1 = newSqlDataAdapter(cmd);dt1 = newDataTable();

    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

  • 7/27/2019 Placement company

    26/81

    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{

    publicpartialclassUserHomepage : Form

    {

    public UserHomepage()

    {InitializeComponent();

    }

    privatevoid ptbregistration_Click(object sender, EventArgs e)

    {

  • 7/27/2019 Placement company

    27/81

    BK Placement

    Registration_Form r1 = newRegistration_Form();

    r1.Show();

    this.Hide();}

    privatevoid ptbcmpnydtl_Click(object sender, EventArgs e){Company_Detail c1 = newCompany_Detail();

    c1.Show();

    this.Hide();}

    privatevoid ptbhistry_Click(object sender, EventArgs e)

    {Placement_History p1 = newPlacement_History();

    p1.Show();

    this.Hide();}

    privatevoid lbllogout_Click(object sender, EventArgs e)

    {LoginPage l1 = newLoginPage();

    l1.Show();

    this.Close();}

    privatevoid ptbchngpass_Click(object sender, EventArgs e)

    {Change_Password c1 = newChange_Password();

    c1.Show();

    this.Hide();}

    privatevoid lbllogout_MouseMove(object sender, MouseEventArgs e){

    lbllogout.Font = newFont(lbllogout.Font.Name, lbllogout.Font.Size, FontStyle.Underline);

    }

    privatevoid ptbreports_Click(object sender, EventArgs e)

    {

    Report r1 = newReport();

    r1.Show();this.Hide();

    }

    }}

  • 7/27/2019 Placement company

    28/81

    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

    {

    publicpartialclassRegistration_Form : Form

    {publicSqlConnection con;

    publicSqlDataAdapterda;

    publicDataSet ds;

  • 7/27/2019 Placement company

    29/81

    BK Placement

    publicDataTable dt;

    publicint cnt;

    publicint tot_rec;

    public Registration_Form()

    { InitializeComponent();}

    publicvoid refresh_rec(){

    da = newSqlDataAdapter("select * from Registration", con);

    ds = newDataSet();

    dt = newDataTable();da.Fill(ds, "Registration");

    dt = ds.Tables["Registration"];

    tot_rec = dt.Rows.Count;if(cnt >= (tot_rec - 1))

    cnt--;

    Show_rec();

    }

    publicvoid Show_rec()

    {if(tot_rec

  • 7/27/2019 Placement company

    30/81

    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");

    }

    publicvoid execute(string s)

    {

    SqlCommand cmd = newSqlCommand(s, con);cmd.ExecuteNonQuery();

    refresh_rec();

    }

    privatevoid ptbback_Click(object sender, EventArgs e)

    {

    UserHomepage h1 = newUserHomepage();h1.Show();

    this.Close();

    }

    privatevoid 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;}

  • 7/27/2019 Placement company

    31/81

    BK Placement

    privatevoid 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,Preference,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;

    }

    privatevoid cmbdeg_SelectedIndexChanged(object sender, EventArgs e)

    {if(cmbdeg.SelectedItem.ToString() == "None")

    {

  • 7/27/2019 Placement company

    32/81

    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:

  • 7/27/2019 Placement company

    33/81

    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

    { publicpartialclassCompany_Detail : Form

    {

    publicSqlConnection con;

    publicSqlDataAdapterda;publicDataSet ds;

    publicDataTable dt;

    publicint cnt;publicint tot_rec;

    public Company_Detail()

    {InitializeComponent();

    }

    publicvoid refresh_rec()

    {

    da = newSqlDataAdapter("Select * from Company_Details", con);ds = newDataSet();

    dt = newDataTable();

    da.Fill(ds, "Company_Details");

    dt = ds.Tables["Company_Details"];tot_rec = dt.Rows.Count;

    if(cnt >= (tot_rec - 1))

    {show_rec();

    }

    }

    publicvoid show_rec()

    {if(tot_rec

  • 7/27/2019 Placement company

    34/81

    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();

    }

    privatevoid 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");

    }

    publicvoid execute(string s){

    SqlCommand cmd = newSqlCommand(s, con);

    cmd.ExecuteNonQuery();refresh_rec();

    }

    privatevoid ptbback_Click(object sender, EventArgs e)

    {

    UserHomepage h1 = newUserHomepage();

    h1.Show();this.Close();

    }

    privatevoid ptbprevious_Click(object sender, EventArgs e){

    cnt--;

    if(cnt >= 0){

    show_rec();

    }else

    {

  • 7/27/2019 Placement company

    35/81

    BK Placement

    MessageBox.Show("First Record", "Message", MessageBoxButtons.OK,

    MessageBoxIcon.Information);

    cnt++;}

    }

    privatevoid ptbnext_Click(object sender, EventArgs e){

    cnt++;

    if(cnt

  • 7/27/2019 Placement company

    36/81

    BK Placement

    }

    privatevoid 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;}

    privatevoid 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=

  • 7/27/2019 Placement company

    37/81

    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;

    }

    privatevoid 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;

    }

    }

    privatevoid cmbpg_SelectedIndexChanged(object sender, EventArgs e)

    {

    if(cmbpg.SelectedItem.ToString() == "None"){

    txtsub2.Enabled = false;

    txtm2.Enabled = false;

    }

    else

    {txtsub2.Enabled = true;

    txtm2.Enabled = true;

    }}

    }

  • 7/27/2019 Placement company

    38/81

    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

  • 7/27/2019 Placement company

    39/81

    BK Placement

    {

    publicpartialclassPlacement_History : Form

    {publicSqlConnection con;

    publicSqlDataAdapterda;

    publicDataSet ds;publicDataTable dt;publicint cnt;

    publicint tot_rec;

    public Placement_History()

    {

    InitializeComponent();

    }

    publicvoid refresh_rec()

    { da = newSqlDataAdapter("select * from History_Table", con);

    ds = newDataSet();

    dt = newDataTable();

    da.Fill(ds, "History_Table");dt = ds.Tables["History_Table"];

    tot_rec = dt.Rows.Count;

    if(cnt >= (tot_rec - 1))

    {

    cnt--;

    show_rec();}

    }

    publicvoid show_rec()

    {

    if(tot_rec

  • 7/27/2019 Placement company

    40/81

    BK Placement

    refresh_rec();

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

    publicvoid execute(string s){SqlCommand cmd = newSqlCommand(s, con);

    cmd.ExecuteNonQuery();

    refresh_rec();}

    privatevoid ptbback_Click(object sender, EventArgs e)

    {UserHomepage h1 = newUserHomepage();

    h1.Show();

    this.Close();}

    privatevoid 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;}

    privatevoid 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 = "";

  • 7/27/2019 Placement company

    41/81

    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;

  • 7/27/2019 Placement company

    42/81

    BK Placement

    namespace Placement

    {publicpartialclassChange_Password : Form

    {

    publicSqlConnection con;publicSqlDataAdapterda;publicDataSet ds;

    publicDataTable dt;

    publicint cnt;publicint tot_rec;

    public Change_Password()

    {InitializeComponent();

    }

    publicvoid refresh_rec()

    {

    da = newSqlDataAdapter("select * from User_Login", con);

    ds = newDataSet();dt = newDataTable();

    da.Fill(ds, "User_Login");

    dt = ds.Tables["User_Login"];tot_rec = dt.Rows.Count;

    if(cnt >= (tot_rec - 1))

    {cnt--;

    }

    }

    privatevoid ptbback_Click(object sender, EventArgs e)

    {UserHomepage h1 = newUserHomepage();

    h1.Show();

    this.Close();

    }

    privatevoid Change_Password_Load(object sender, EventArgs e)

    {

    con = newSqlConnection(ConfigurationManager.ConnectionStrings["conn"].ConnectionString);

    con.Open();

    refresh_rec();}

    publicvoid execute(string s){

    SqlCommand cmd = newSqlCommand(s, con);

  • 7/27/2019 Placement company

    43/81

    BK Placement

    cmd.ExecuteNonQuery();

    refresh_rec();

    }

    privatevoid 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

  • 7/27/2019 Placement company

    44/81

  • 7/27/2019 Placement company

    45/81

    BK Placement

    privatevoid ptbback_Click(object sender, EventArgs e)

    {UserHomepage h1 = newUserHomepage();

    h1.Show();

    this.Close();}

    privatevoid ptbreg_Click(object sender, EventArgs e)

    {FrmReportViewerrr = newFrmReportViewer();

    rpt_Candidate_List crt = newrpt_Candidate_List();

    con = new

    SqlConnection(ConfigurationManager.ConnectionStrings["conn"].ConnectionString);con.Open();

    da = newSqlDataAdapter("select * from Registration", con);

    ds = newDataSet();dt = newDataTable();

    da.Fill(ds, "Registration");

    dt = ds.Tables["Registration"];

    crt.SetDataSource(dt);rr.crystalReportViewer1.ReportSource = crt;

    rr.crystalReportViewer1.Show();

    rr.Show();this.Close();

    }

    privatevoid ptbcompany_Click(object sender, EventArgs e){

    FrmReportViewerf2 = newFrmReportViewer();

    rpt_Company_Detail crt1 = newrpt_Company_Detail();con = new

    SqlConnection(ConfigurationManager.ConnectionStrings["conn"].ConnectionString);

    con.Open();da = newSqlDataAdapter("select * from Company_Details", con);

    ds = newDataSet();

    dt = newDataTable();

    da.Fill(ds, "Company_Details");dt = ds.Tables["Company_Details"];

    crt1.SetDataSource(dt);

    f2.crystalReportViewer1.ReportSource = crt1;

    f2.crystalReportViewer1.Show();f2.Show();

    this.Close();

    }}

    }

  • 7/27/2019 Placement company

    46/81

    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

    {publicpartialclassReport : Form

    {

    publicSqlConnection con;publicSqlDataAdapterda;

    publicDataSet ds;

  • 7/27/2019 Placement company

    47/81

    BK Placement

    publicDataTable dt;

    public Report(){

    InitializeComponent();

    }

    privatevoid ptbback_Click(object sender, EventArgs e)

    {

    UserHomepage h1 = newUserHomepage();h1.Show();

    this.Close();

    }

    privatevoid ptbreg_Click(object sender, EventArgs e)

    {

    FrmReportViewerrr = newFrmReportViewer();rpt_Candidate_List crt = newrpt_Candidate_List();

    con = new

    SqlConnection(ConfigurationManager.ConnectionStrings["conn"].ConnectionString);

    con.Open();da = newSqlDataAdapter("select * from Registration", con);

    ds = newDataSet();

    dt = newDataTable();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

  • 7/27/2019 Placement company

    48/81

    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

    {

    publicpartialclassReport : Form{

    publicSqlConnection con;

    publicSqlDataAdapterda;publicDataSet ds;

    publicDataTable dt;

    public Report()

    {

  • 7/27/2019 Placement company

    49/81

    BK Placement

    InitializeComponent();

    }

    privatevoid ptbback_Click(object sender, EventArgs e)

    {

    UserHomepage h1 = newUserHomepage();h1.Show();this.Close();

    }

    privatevoid ptbcompany_Click(object sender, EventArgs e){

    FrmReportViewerf2 = newFrmReportViewer();

    rpt_Company_Detail crt1 = newrpt_Company_Detail();

    con = newSqlConnection(ConfigurationManager.ConnectionStrings["conn"].ConnectionString);

    con.Open();da = newSqlDataAdapter("select * from Company_Details", con);

    ds = newDataSet();dt = newDataTable();

    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 SideAdmin Login Page:

  • 7/27/2019 Placement company

    50/81

    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

    {

    publicpartialclassAdmin_Login : Form

    {publicSqlConnection con;publicSqlDataAdapterda;

    publicDataSet ds;

    publicDataTable dt;publicint cnt;

    publicint tot_rec;

    public Admin_Login()

    {

    InitializeComponent();

  • 7/27/2019 Placement company

    51/81

    BK Placement

    }

    publicvoid refresh_rec(){

    da = newSqlDataAdapter("select * from Admin_Login", con);

    ds = newDataSet();dt = newDataTable();da.Fill(ds, "Admin_Login");

    dt = ds.Tables["Admin_Login"];

    tot_rec = dt.Rows.Count;

    if(cnt >= (tot_rec - 1))

    {

    cnt--;show_rec();

    }

    }

    publicvoid show_rec()

    {

    if(tot_rec

  • 7/27/2019 Placement company

    52/81

    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

  • 7/27/2019 Placement company

    53/81

  • 7/27/2019 Placement company

    54/81

    BK Placement

    {

    Admin_Registration ah1 = newAdmin_Registration();

    ah1.Show();this.Close();

    }

    privatevoid companyDetailToolStripMenuItem_Click(object sender, EventArgs e){

    Admin_Company ac1 = newAdmin_Company();

    ac1.Show();this.Close();

    }

    privatevoid placementHistoryToolStripMenuItem_Click(object sender, EventArgs e){

    Admin_History ah1 = newAdmin_History();

    ah1.Show();this.Close();

    }

    privatevoid lbllogout_Click(object sender, EventArgs e){

    LoginPage l1 = newLoginPage();

    l1.Show();this.Close();

    }

    privatevoid lbllogout_MouseMove(object sender, MouseEventArgs e){

    lbllogout.Font = newFont(lbllogout.Font.Name, lbllogout.Font.Size, FontStyle.Underline);

    }

    privatevoid administrationToolStripMenuItem_Click(object sender, EventArgs e)

    {Admin_Administration a1 = newAdmin_Administration();

    a1.Show();

    this.Close();

    }

    privatevoid registrationFormToolStripMenuItem1_Click(object sender, EventArgs e)

    {

    FrmAdmin_ReportViewerar = newFrmAdmin_ReportViewer();rpt_Admin_Registration crt = newrpt_Admin_Registration();

    con = new

    SqlConnection(ConfigurationManager.ConnectionStrings["conn"].ConnectionString);con.Open();

    da = newSqlDataAdapter("select * from Registration", con);

    ds = newDataSet();dt = newDataTable();

    da.Fill(ds, "Registration");

  • 7/27/2019 Placement company

    55/81

    BK Placement

    dt = ds.Tables["Registration"];

    crt.SetDataSource(dt);

    ar.crystalReportViewer1.ReportSource = crt;ar.crystalReportViewer1.Show();

    ar.Show();

    this.Close();}

    privatevoid placementFeeToolStripMenuItem1_Click(object sender, EventArgs e)

    {FrmAdmin_ReportViewerar = newFrmAdmin_ReportViewer();

    rpt_Placement__Fee crt = newrpt_Placement__Fee();

    con = new

    SqlConnection(ConfigurationManager.ConnectionStrings["conn"].ConnectionString);con.Open();

    da = newSqlDataAdapter("select * from Placement_Fee", con);

    ds = newDataSet();dt = newDataTable();

    da.Fill(ds, "Placement_Fee");

    dt = ds.Tables["Placement_Fee"];

    crt.SetDataSource(dt);ar.crystalReportViewer1.ReportSource = crt;

    ar.crystalReportViewer1.Show();

    ar.Show();this.Close();

    }

    privatevoid placementFeeToolStripMenuItem2_Click(object sender, EventArgs e){

    Placement_Fee p1 = newPlacement_Fee();

    p1.Show();this.Close();

    }

    }}

    Admin Registration Form:

  • 7/27/2019 Placement company

    56/81

    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

    {

    publicpartialclassAdmin_Registration : Form{

    publicSqlConnection con;

    publicSqlDataAdapterda;publicDataSet ds;publicDataTable dt;

    publicint cnt;

    publicint tot_rec;

    public Admin_Registration()

    {

    InitializeComponent();}

  • 7/27/2019 Placement company

    57/81

    BK Placement

    publicvoid refresh_rec()

    {

    da = newSqlDataAdapter("select * from Registration", con);ds = newDataSet();

    dt = newDataTable();

    da.Fill(ds, "Registration");dt = ds.Tables["Registration"];tot_rec = dt.Rows.Count;

    if(cnt >= (tot_rec - 1))

    cnt--;Show_rec();

    }

    publicvoid Show_rec(){

    if(tot_rec

  • 7/27/2019 Placement company

    58/81

    BK Placement

    cmd.ExecuteNonQuery();

    refresh_rec();

    }

    privatevoid ptbfirst_Click(object sender, EventArgs e)

    { cnt = 0;refresh_rec();

    ptbnext.Enabled = true;

    }

    privatevoid ptbnext_Click(object sender, EventArgs e)

    {

    cnt++;if(cnt = 0)

    {

    Show_rec();}

    else

    {MessageBox.Show("First Record", "Message", MessageBoxButtons.OK,

    MessageBoxIcon.Information);

    cnt++;

    }}

    privatevoid ptblast_Click(object sender, EventArgs e)

    {cnt = tot_rec - 1;

    Show_rec();

    ptbprevious.Enabled = true;}

    privatevoid ptbadd_Click(object sender, EventArgs e){

    txtcno.Text = "";

  • 7/27/2019 Placement company

    59/81

    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;}

    privatevoid 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 = "";

  • 7/27/2019 Placement company

    60/81

    BK Placement

    txtsub1.Text = "";

    txtsub2.Text = "";

    txtmark1.Text = "";txtmark2.Text = "";

    date1.Text = "";

    txtprfrc.Text = "";txtexprnc.Text = "";txtcno.Focus();

    }

    privatevoid ptbback_Click(object sender, EventArgs e)

    {

    AdminHomePage a1 = newAdminHomePage();

    a1.Show();this.Close();

    }

    privatevoid 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);

    }

    privatevoid 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);}

    privatevoid 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;

    }

  • 7/27/2019 Placement company

    61/81

  • 7/27/2019 Placement company

    62/81

  • 7/27/2019 Placement company

    63/81

    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();}

    privatevoid 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");}

    publicvoid execute(string s)

    {SqlCommand cmd = newSqlCommand(s, con);

    cmd.ExecuteNonQuery();

    refresh_rec();}

    privatevoid 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;

    }

  • 7/27/2019 Placement company

    64/81

    BK Placement

    privatevoid 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();

    }

    privatevoid ptbprevious_Click(object sender, EventArgs e){

    cnt--;

    if(cnt >= 0)

    {show_rec();

    }

    else{

    MessageBox.Show("First Record", "Message", MessageBoxButtons.OK,

    MessageBoxIcon.Information);cnt++;

    }

  • 7/27/2019 Placement company

    65/81

    BK Placement

    }

    privatevoid ptbnext_Click(object sender, EventArgs e){

    cnt++;

    if(cnt

  • 7/27/2019 Placement company

    66/81

  • 7/27/2019 Placement company

    67/81

    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

    {publicpartialclassAdmin_History : Form

    {

    publicSqlConnection con;

    publicSqlDataAdapterda;publicDataSet ds;

    publicDataTable dt;

    publicint cnt;publicint tot_rec;

    public Admin_History()

    {InitializeComponent();

    }

  • 7/27/2019 Placement company

    68/81

    BK Placement

    publicvoid refresh_rec()

    {

    da = newSqlDataAdapter("select * from History_Table", con);ds = newDataSet();

    dt = newDataTable();

    da.Fill(ds, "History_Table");dt = ds.Tables["History_Table"];tot_rec = dt.Rows.Count;

    if(cnt >= (tot_rec - 1)){

    cnt--;

    show_rec();

    }}

    publicvoid show_rec(){

    if(tot_rec

  • 7/27/2019 Placement company

    69/81

  • 7/27/2019 Placement company

    70/81

    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();}

    privatevoid ptbback_Click(object sender, EventArgs e){

    AdminHomePage a1 = newAdminHomePage();

    a1.Show();

    this.Close();}

    privatevoid 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);

    }

    privatevoid 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);

    }

    privatevoid Admin_History_Load(object sender, EventArgs e)

    {con = new

    SqlConnection(ConfigurationManager.ConnectionStrings["conn"].ConnectionString);

    con.Open();refresh_rec();

  • 7/27/2019 Placement company

    71/81

    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{

    publicpartialclassPlacement_Fee : Form

    {

  • 7/27/2019 Placement company

    72/81

    BK Placement

    publicSqlConnection con;

    publicSqlCommand cmd;

    public Placement_Fee()

    {

    InitializeComponent();}

    publicvoid refresh_rec()

    {dataGridView1.Rows.Clear();

    cmbcanname.Items.Clear();

    SqlCommand cmd = newSqlCommand("Select * from Placement_Fee", con);

    SqlDataReaderdr;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();

    }

    privatevoid 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");

    }

    publicvoid execute(string s){

    SqlCommand cmd = newSqlCommand(s, con);

    cmd.ExecuteNonQuery();

    refresh_rec();}

    privatevoid ptbadd_Click(object sender, EventArgs e){

    txtcname.Text = "";

    txtcmpnynm.Text = "";txtpayment.Text = "";

    txtcommission.Text = "";

  • 7/27/2019 Placement company

    73/81

  • 7/27/2019 Placement company

    74/81

    BK Placement

    txtcommission.Text = d.ToString();

    }

    privatevoid ptbback_Click(object sender, EventArgs e)

    {

    AdminHomePage a1 = newAdminHomePage();a1.Show();this.Close();

    }

    privatevoid ptbsearch_Click(object sender, EventArgs e)

    {

    SqlCommand cmd = newSqlCommand("Select

    Name_of_the_Candidate,Company_Name,Payment_from_the_Candidate,Commission fromPlacement_Fee where Name_of_the_Candidate='"+cmbcanname.Text+"'", con);

    SqlDataReaderdr1;

    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();

    }}

    }

  • 7/27/2019 Placement company

    75/81

    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{

    publicpartialclassAdmin_Administration : Form

    {publicSqlConnection con;

    publicSqlCommand cmd;

    public Admin_Administration()

    {

    InitializeComponent();

  • 7/27/2019 Placement company

    76/81

  • 7/27/2019 Placement company

    77/81

    BK Placement

    {

    AdminHomePage a1 = newAdminHomePage();

    a1.Show();this.Close();

    }

    privatevoid 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 = newSqlConnection(@"Data

    Source=.\SQLEXPRESS;AttachDbFilename=E:\Placement\Placement\Placement.mdf;IntegratedSecurity=True;User Instance=True");

    con.Open();

    refresh_rec();}

    privatevoid 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);

    }

    privatevoid ptbsearch_Click(object sender, EventArgs e)

    {

    SqlCommand cmd = newSqlCommand("Select Login_ID,Password from Admin_Login whereLogin_ID='"+cmbadminid.Text+"'", con);

    SqlDataReaderdr;

    dr = cmd.ExecuteReader();

    while (dr.Read())

    {

    txtloginid.Text=dr["Login_ID"].ToString();txtpass.Text=dr["Password"].ToString();

    }

    dr.Close();}

    }

  • 7/27/2019 Placement company

    78/81

  • 7/27/2019 Placement company

    79/81

  • 7/27/2019 Placement company

    80/81

    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

    {publicpartialclassAdminHomePage : Form

    {publicSqlConnection con;

    publicSqlDataAdapterda;

    publicDataSet ds;publicDataTable dt;

    public AdminHomePage(){

    InitializeComponent();

  • 7/27/2019 Placement company

    81/81