Hospital management system in asp.net Ms Visual Studio, 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 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);
}
}
Contact : +91-9040573923, +91-7008182025
http://sradhawebcreations.com/
http://sradhawebcreations.blogspot.in/
https://facebook.com/sradhawebcreations
http://sradhawebcreations.com/
http://sradhawebcreations.blogspot.in/
https://facebook.com/sradhawebcreations
No comments:
Post a Comment