Showing posts with label HOW TO DEVELOPED HOSPITAL MANAGEMENT SYSTEM IN ASP.NET. Show all posts
Showing posts with label HOW TO DEVELOPED HOSPITAL MANAGEMENT SYSTEM IN ASP.NET. Show all posts

Friday, July 27, 2018

how to develop Hospital management system in asp.net Ms Visual Studio, Sql Server | Sradha WebCreations

Hospital management system in asp.net  Ms Visual Studio, Sql Server

 http://sradhawebcreations.com/


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 HotelRoomCharge : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
   
    protected void TextBoxDATEOFLEAVE_TextChanged(object sender, EventArgs e)
    {
        string sCustomerName = TextBoxCUSTOMERNAME.Text;
        string sCustomerAddress = TextBoxCUSTOMERADD.Text;
        string sDateOfEntry = TextBoxDATEENTRY.Text;
        DateTime dDE = Convert.ToDateTime(sDateOfEntry);
        string sDateOfLeave = TextBoxDATEOFLEAVE.Text;
        DateTime dDL = Convert.ToDateTime(sDateOfLeave);

        int iNumberOfDay;
        iNumberOfDay = ((TimeSpan)(dDL - dDE)).Days;
        TextBoxNUMBEROFDAY.Text = Convert.ToString(iNumberOfDay);  
      double dOtherCharge = Convert.ToDouble(TextBoxOTHERCHARGE.Text);
        double dTotalCharge;
        string sRoom = DropDownListROOM.Text;

       if (sRoom == "SINGLE")
        {
            dTotalCharge = (iNumberOfDay * 200) + dOtherCharge;
        }
        else
        {
            dTotalCharge = (iNumberOfDay * 500) + dOtherCharge;
        }
        TextBoxTOTALCHARGE.Text = Convert.ToString(dTotalCharge);
    }
}