Asp-based hotel management system based on B / S

With the advent of the Internet trend, businesses are considering using the Internet to promote themselves out, the best way is to build their own Internet system, and its maintenance and management. In real use, the work rules and application software development steps, using c # hotel management system construction technology.
This graduation project main achievement set humane, efficient, convenient and other advantages of a hotel management systems. The system communicates with the server through a browser, interact and change data. Simply by a computer, you can move your finger operating system, data communications management. The entire system design process fully into account the security, stability and reliability issues such as data, and the process is simple. This system through scientific management, and convenient services to improve work efficiency, reduce errors and omissions on data storage.
The system selected Windows7 as a server operating system, programming language selection c #, develop technology selection asp.net, database selection sqlserver, use JDBC database connection technology, the use of visualstudio as a development tool system applications, Web servers choose Iis7.0 version.

The main role of the system used by system administrator, registered user, the system is divided into system foreground and background of the system, the first system in the foreground, visitors can go through the user account registration, is awaiting moderation, log in with the account password foreground view Introduction, preferential policies, room information, information integration gifts and other columns, online message, Room Reservation, add a comment, gift exchange, can be done by title and category in the foreground user foreground information search, registered users can log personal center for individuals information management, personal recharge query, predefined query, check query, check out inquiries, redeem query.

Background mainly used by the administrator as the administrator login page enter the account number and password, through database authentication, verification after successful login system home page, users can use the system management, policies management, bulletin management, redeem management, membership user management, information management rooms, scheduled Check out management, gift management integration, system management functions. While administrators can search for corresponding information can search by keyword, print a variety of details, export the list to excel in all types of information.

protected void Page_Load(object sender, EventArgs e)

{

if (!IsPostBack)

{

sql = "select top 5 id,title,shouyetupian from allgonggao where shouyetupian<>'' and shouyetupian like '%.jpg' order by id desc";

getsyt(sql);

sql = "select top 9 id,title,addtime,leibie from allgonggao where leibie=' ' order by id desc";

getdata(sql);

sql = "select top 4 * from yaoshanpeifang  where tupian<>'' order by id desc";

getdata2(sql);

sql = "select top 8 id,title,addtime,leibie from allgonggao  where leibie=' ' order by id desc";

getdata3(sql);

sql = "select top 8 id,title,addtime,leibie from allgonggao  where leibie=' ' order by id desc";

getdata4(sql);

 

}

}

 

 

protected void Button1_Click(object sender, EventArgs e)

{

string sql;

sql="insert into liuyanban(cheng,biaoqing,biaoti,neirong,huifu) values('"+cheng.Text.ToString().Trim()+"','"+biaoqing.Text.ToString().Trim()+"','"+biaoti.Text.ToString().Trim()+"','"+neirong.Text.ToString().Trim()+"','"+huifu.Text.ToString().Trim()+"') ";

int result;

result = newClass1 () hsgexucute (SQL);. 

IF (Result == . 1 ) 

{ 

Response.Write ( " & lt; Script & gt; JavaScript: Alert ( 'message is successful'); & lt; / Script & gt; " ); 

} 

the else 

{ 

Response.Write ( " & lt; Script & gt; JavaScript: Alert ( 'an error, check the database setup questions'); & lt; / Script & gt; " ); 

} 

}

 

 

Guess you like

Origin www.cnblogs.com/lqs11/p/11569375.html