showaddroomtype.cs

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

CS
51
字号
using System;
using System.Windows.Forms;
using SetupOperDBLibrary;

namespace ShowInfoLibrary
{
	/// <summary>
	/// ShowAddRoomType 的摘要说明。
	/// </summary>
	public class ShowAddRoomType
	{
		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 AddRoomType(string type,string priceday,string pricehour,string istimeroom,string setNum)
		{
			bool bl=false;;
			try
			{
				SetupAddRoomtype add=new SetupAddRoomtype();
				bl= add.AddRoomtype(type,priceday,pricehour,istimeroom,setNum);
			}
			catch(Exception ex)
			{
				throw new ApplicationException("ShowInfoLibrary==",ex);
				
			}
			return bl;
		}
	}
}

⌨️ 快捷键说明

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