📄 showupdateroomtypebytid.cs
字号:
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;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -