Showing posts with label how to create Employee management system. Show all posts
Showing posts with label how to create Employee management system. Show all posts

Saturday, July 28, 2018

how to create Employee management system | Sradha webcreations

Employee management system in asp.net + Sql Server

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using System.Web.Security;

public partial class if_else_SalaryCalculation : System.Web.UI.Page
{
       
    protected void TextBoxEXPERIENCE_TextChanged(object sender, EventArgs e)
    {
        string sEmployeeName = TextBoxEMPLOYEE.Text;
        double dBasic =Convert.ToDouble( TextBoxBASIC.Text);
        double dAnual;
        double dtotal;
       
        dAnual = dBasic * 12;
        TextBoxANUAL.Text = Convert.ToString(dAnual);

        int iAge = Convert.ToInt32(TextBoxAGE.Text);
        double dExperience = Convert.ToDouble(TextBoxEXPERIENCE.Text);
        double dBonus;
        if (iAge > 35 && dExperience > 3)
        {
            dBonus = dAnual * 11 / 100;
            dtotal = dAnual + dBonus;
        }
        else
        {
            dBonus = 0;
            dtotal = dAnual;
        }
        TextBoxBONUS.Text = Convert.ToString(dBonus);
        TextBoxTOTAL.Text = Convert.ToString(dtotal);
        }
    }