温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:酒店管理系统(ExtJs)源码
当前文件:
MyHotelManager/HotelUI/Form/CloseRoom.aspx.cs,打开代码结构图
MyHotelManager/HotelUI/Form/CloseRoom.aspx.cs,打开代码结构图1using System; 2
using System.Data; 3
using System.Configuration; 4
using System.Collections; 5
using System.Web; 6
using System.Web.Security; 7
using System.Web.UI; 8
using System.Web.UI.WebControls; 9
using System.Web.UI.WebControls.WebParts; 10
using System.Web.UI.HtmlControls; 11
using HotelBLL; 12
13
public partial class Form_CloseRoom : System.Web.UI.Page 14
{ 15
16
protected void Page_Load(object sender, EventArgs e) 17
{ 18
if (!Page.IsPostBack) 19
{ 20
CloseRoom(); 21
} 22
} 23
24
25
26
/// <summary> 27
/// 退房操作 28
/// </summary> 29
private void CloseRoom() 30
{ 31
OpenRoomInfoBLL orBll = new OpenRoomInfoBLL(); 32
string RoomNumber = Request.Form["RoomNumber"].ToString(); 33
string json; 34
//如果success为true,则表示服务器端处理成功 35
if (orBll.CloseRoom(RoomNumber)) 36
{ 37
json = @"{success: true}"; 38
} 39
else 40
{ 41
json = @"{success: false}"; 42
} 43
Response.Write(json); 44
} 45
} 46





}
}