setupupdateroomtypebytid.cs

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

CS
28
字号
using System;
using ConnectDBLibrary;

namespace SetupOperDBLibrary
{
	/// <summary>
	/// SetupUpdateRoomTypeByTid 的摘要说明。
	/// </summary>
	public class SetupUpdateRoomTypeByTid
	{
		public bool UpdateRoomTypeByTid(string tid,string type,string priceday,string pricehour,string istimeroom,string setNum)
		{
			bool bl=false;
			try
			{
				string cmtxt=string.Format("exec UpdateRoomTypeByTid {0},'{1}',{2},{3},{4},{5}",tid,type,priceday,pricehour,istimeroom,setNum);
				ConnectAndAccessingDB db=new ConnectAndAccessingDB();
				bl=db.Update(cmtxt);
			}
			catch(Exception ex)
			{
				throw new ApplicationException("SetupUpdateRoomTypeByTid",ex);
			}
			return bl;
		}
	}
}

⌨️ 快捷键说明

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