ShowInfoLibrary/ShowUpdateRoomTypeByTid.cs

(完整代码) 1KB

using System;
using System.Windows.Forms;
using SetupOperDBLibrary;

namespace ShowInfoLibrary
{
	/// <summary>
	/// ShowUpdateRoomTypeByTid 的摘要说明。
	/// </summary>
	public class ShowUpdateRoomTypeByTid
	{
		public bool checkedRoomtype(string type,string priceday,string pricehour,string istimeroom,string setNum)
		{
			
			bool bl=true;
			if(type==""||priceday==""||pricehour==""||istimeroom==""||setNum=="")
			{
				MessageBox.Show("请填写完整");
				bl=false;
			}
			try
			{
				float.Parse(priceday);
				float.Parse(pricehour);
				int.Parse(setNum);
			}
			catch
			{
				MessageBox.Show("数据格式不正确");
				bl=false;
			}
			return bl;
		}
		public bool UpdateRoomTypeByTid(string tid,string type,string priceday,string pricehour,string istimeroom,string setNum)
		{
			bool bl=false;
			try
			{
				SetupUpdateRoomTypeByTid update=new SetupUpdateRoomTypeByTid();
				bl=update.UpdateRoomTypeByTid(tid,type,priceday,pricehour,istimeroom,setNum);
			}
			catch(Exception ex)
			{
				throw new ApplicationException("ShowUpdateRoomTypeByTid",ex);
			}
			return bl;
		}
	}
}

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。