您目前尚未登陆,请选择【登陆】或【注册
首页->行政办公->酒店管理系统(三层开发)源码>>WebSite_hotel/CancelOnLine.aspx.cs>>源码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:酒店管理系统(三层开发)源码
当前文件:文件类型 ThreeLayerHotel/WebSite_hotel/CancelOnLine.aspx.cs打开代码结构图
普通视图
		            
1using System; 2using System.Collections; 3using System.Configuration; 4using System.Data; 5using System.Linq; 6using System.Web; 7using System.Web.Security; 8using System.Web.UI; 9using System.Web.UI.HtmlControls; 10using System.Web.UI.WebControls; 11using System.Web.UI.WebControls.WebParts; 12using System.Xml.Linq; 13using BLL; 14using Entity; 15 16public partial class CancelOnLine : System.Web.UI.Page 17{ 18 protected void Page_Load(object sender, EventArgs e) 19 { 20 if (!IsPostBack) 21 { 22 if (Session["Name"] == null) 23 { 24 Response.Redirect("Index.aspx"); 25 } 26 Label7.Text = Request.UrlReferrer.ToString(); 27 } 28 } 29 protected void LinkButton1_Click(object sender, EventArgs e) 30 { 31 if (UserRoomBLL.GetUserIDByHotelUser_UserNameRoom_Number(Session["Name"].ToString(),txtnumber.Text) != 0) 32 { 33 int flag = RoomBLL.UpdateStateByNumber(txtnumber.Text); 34 int flag1 = UserRoomBLL.DeleteUserRoomByUserID(HotelUserBLL.GetUserIDByUserName(Session["Name"].ToString()),RoomBLL.GetRoomIDByNumber(txtnumber.Text)); 35 if (flag == 1 && flag1 == 1) 36 { 37 Session["flag"] = "成功退房..."; 38 Response.Redirect("success.aspx"); 39 } 40 } 41 else 42 { 43 Label8.Visible = true; 44 Label8.Text = "退房失败,您未预订或未入住该房间..."; 45 } 46 } 47 protected void LinkButton2_Click(object sender, EventArgs e) 48 { 49 Response.Redirect(Label7.Text); 50 } 51 protected void Timer1_Tick(object sender, EventArgs e) 52 { 53 Label8.Visible = false; 54 } 55} 56
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:酒店管理系统(三层开发)源码
51Aspx.com 版权所有 CopyRight © 2000-2008. 京ICP备06046876号