setupaddroomtype.cs

来自「一个基本的酒店管理系统」· CS 代码 · 共 26 行

CS
26
字号
using System;
using ConnectDBLibrary;

namespace SetupOperDBLibrary
{
	/// <summary>
	/// SetupAddRoomtype 的摘要说明。
	/// </summary>
	public class SetupAddRoomtype
	{
		public bool AddRoomtype(string type,string priceday,string pricehour,string istimeroom,string setNum)
		{
			try
			{
				string cmtxt=string.Format("insert into typeroom (ttype,pricebyday,pricebyhour,istimeroom,setnum)values('{0}',{1},{2},{3},{4})",type,priceday,pricehour,istimeroom,setNum);
				ConnectAndAccessingDB db=new ConnectAndAccessingDB();
				return db.Update(cmtxt);
			}
			catch(Exception ex)
			{
				throw new ApplicationException("SetupAddRoomtype==",ex);
			}
		}
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?