資源簡介
酒店管理系統(tǒng)源碼,用的是C#.Net技術(shù),功能還可以,數(shù)據(jù)庫是SQL Server.

代碼片段和文件信息
using?System;
using?System.Collections;
using?System.Configuration;
using?System.Data;
using?System.Linq;
using?System.Web;
using?System.Web.Security;
using?System.Web.UI;
using?System.Web.UI.HtmlControls;
using?System.Web.UI.WebControls;
using?System.Web.UI.WebControls.WebParts;
using?System.xml.Linq;
using?Entity;
using?BLL;
public?partial?class?accountsearch?:?System.Web.UI.Page
{
????protected?void?Page_Load(object?sender?EventArgs?e)
????{
????????if?(!IsPostBack)
????????{
????????????if?(Session[“Name“]?==?null)
????????????{
????????????????Response.Redirect(“l(fā)ogin.aspx“);
????????????}
????????}
????}
????protected?void?Button1_Click(object?sender?EventArgs?e)
????{
????????roomEntity?hue?=?new?roomEntity();
????????string?s?=?TextBox1.Text;
????????hue?=?roomBLL.GetroomByroomID(s);
????????if?(hue.roomID?==?null)
????????{
????????????Label8.Visible?=?true;
????????????Label8.Text?=?“Sorry!房間號不存在。“;
????????????Label6.Text?=?““;
????????????Label7.Text?=?““;
????????????Label10.Text?=?““;
????????????Label12.Text?=?““;
????????????Label15.Text?=?““;
????????????Label16.Text?=?““;
????????????GridView1.DataSource?=?null;
????????}
????????else?if?(hue.state?!=?“入住“)
????????{
????????????Label8.Visible?=?true;
????????????Label8.Text?=?“Sorry!房間沒有入住。“;
????????????Label6.Text?=?““;
????????????Label7.Text?=?““;
????????????Label10.Text?=?““;
????????????Label12.Text?=?““;
????????????Label15.Text?=?““;
????????????Label16.Text?=?““;
????????????GridView1.DataSource?=?null;
????????}
????????else
????????{
????????????SqlDataSource1.SelectCommand?=?“select?*?from?expend?where?roomID?=?‘“?+?hue.roomID?+?“‘?ORDER?BY?extime“;
????????????this.GridView1.DataBind();
????????????Label8.Visible?=?false;
????????????float?f1?=?expendBLL.Getexpend(hue.roomID);
????????????Label6.Text?=?f1.ToString();
????????????checkinEntity?ch?=?new?checkinEntity();
????????????ch?=?checkinBLL.GetcheckinByroomID(hue.roomID);
????????????DateTime?da?=?ch.checktime;
????????????roomEntity?ro?=?new?roomEntity();
????????????ro?=?roomBLL.GetroomByroomID(hue.roomID);
????????????string?st?=?ro.grade;
????????????priceEntity?pr?=?new?priceEntity();
????????????pr?=?priceBLL.GetpriceBygrade(st);
????????????float?f2?=?pr.money;
????????????Label7.Text?=?da.ToString();
????????????Label10.Text?=?f2.ToString();
????????????TimeSpan?ts?=?DateTime.Now?-?da;
????????????int?days?=?ts.Days;
????????????int?hours?=?ts.Hours;
????????????float??zh;
????????????if?(days?1)
????????????{
????????????????zh?=?f2;
????????????}
????????????else
????????????{
????????????????if?(hours?3)
????????????????{
????????????????????zh?=?f2?*?days;
????????????????}
????????????????else?if?(?hours>=3?&&?hours<10)
????????????????{
????????????????????zh?=?f2?*?days?+?f2?/?2;
????????????????}
????????????????else?
????????????????{
????????????????????zh?=?f2?*?(days?+?1);
????????????????
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件???????4450??2009-03-06?21:53??酒店管理系統(tǒng)\accountsearch.aspx
?????文件???????3370??2009-03-06?17:14??酒店管理系統(tǒng)\accountsearch.aspx.cs
?????文件???????2188??2009-03-06?21:54??酒店管理系統(tǒng)\addroom.aspx
?????文件???????1622??2009-03-05?13:01??酒店管理系統(tǒng)\addroom.aspx.cs
?????文件???????2653??2009-03-06?21:54??酒店管理系統(tǒng)\adminchgpsw.aspx
?????文件???????1436??2009-03-02?09:50??酒店管理系統(tǒng)\adminchgpsw.aspx.cs
?????文件????1048576??2009-11-28?00:10??酒店管理系統(tǒng)\App_Data\Hotel_Data.MDF
?????文件????1048576??2009-11-28?00:10??酒店管理系統(tǒng)\App_Data\Hotel_Log.LDF
?????文件???????7168??2009-03-06?21:36??酒店管理系統(tǒng)\Bin\BLL.dll
?????文件??????40448??2009-03-06?21:36??酒店管理系統(tǒng)\Bin\BLL.pdb
?????文件??????14336??2009-03-06?21:36??酒店管理系統(tǒng)\Bin\DAL.dll
?????文件??????48640??2009-03-06?21:36??酒店管理系統(tǒng)\Bin\DAL.pdb
?????文件???????8704??2009-03-06?20:15??酒店管理系統(tǒng)\Bin\Entity.dll
?????文件??????54784??2009-03-06?20:15??酒店管理系統(tǒng)\Bin\Entity.pdb
?????文件???????2801??2009-03-06?21:54??酒店管理系統(tǒng)\bookcancel.aspx
?????文件???????1966??2009-03-06?12:56??酒店管理系統(tǒng)\bookcancel.aspx.cs
?????文件???????4077??2009-03-06?11:59??酒店管理系統(tǒng)\bookin.aspx
?????文件???????2269??2009-03-06?12:28??酒店管理系統(tǒng)\bookin.aspx.cs
?????文件???????4450??2009-03-06?14:53??酒店管理系統(tǒng)\checkin.aspx
?????文件???????3331??2009-03-06?14:30??酒店管理系統(tǒng)\checkin.aspx.cs
?????文件???????2843??2009-03-06?21:54??酒店管理系統(tǒng)\checkinsearch.aspx
?????文件???????1615??2009-03-06?17:10??酒店管理系統(tǒng)\checkinsearch.aspx.cs
?????文件???????5174??2009-03-06?21:55??酒店管理系統(tǒng)\checkout.aspx
?????文件???????7766??2009-03-06?21:11??酒店管理系統(tǒng)\checkout.aspx.cs
?????文件???????2909??2009-03-06?21:55??酒店管理系統(tǒng)\chgprice.aspx
?????文件???????1238??2009-03-05?14:06??酒店管理系統(tǒng)\chgprice.aspx.cs
?????文件???????1141??2009-03-06?21:55??酒店管理系統(tǒng)\deleteroom.aspx
?????文件???????1703??2009-03-05?13:01??酒店管理系統(tǒng)\deleteroom.aspx.cs
?????文件???????2459??2009-03-06?21:59??酒店管理系統(tǒng)\deleteuser.aspx
?????文件???????1529??2009-03-05?08:30??酒店管理系統(tǒng)\deleteuser.aspx.cs
............此處省略134個(gè)文件信息
評論
共有 條評論