📄 frmstroryset_roomaddmore.cs
字号:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Hotel.Command;
namespace Hotel.SystemSetting
{
public partial class FrmStrorySet_RoomAddMore : Form
{
private string _NoHead;
public string NoHead
{
get { return _NoHead; }
set { _NoHead = value; }
}
private string _Class;
public string Class
{
get { return _Class; }
set { _Class = value; }
}
private string _Style;
public string Style
{
get { return _Style; }
set { _Style = value; }
}
private Int32 _Population;
public Int32 Population
{
get { return _Population; }
set { _Population = value; }
}
private Boolean _Used;
public Boolean Used
{
get { return _Used; }
set { _Used = value; }
}
public FrmStrorySet_RoomAddMore()
{
InitializeComponent();
}
private void CordInit()
{
CordData cd = new CordData();
foreach (Cord var in cd.StoreyCord)
{
this.cboRoomClass.Items.Add(var.Dm + "." + var.Name);
}
this.cboRoomClass.Items.IndexOf("N");
foreach (Cord var in cd.RoomCord)
{
this.cboRoomStyle.Items.Add(var.Dm + "." + var.Name);
}
this.cboRoomStyle.Items.IndexOf("N");
}
private void txtRoomNoEnd_TextChanged(object sender, EventArgs e)
{
}
private void btnOk_Click(object sender, EventArgs e)
{
this._NoHead = this.txtRoomNoHead.Text;
this._NoStart = Convert.ToInt32(this.txtRoomNoStart.Text);
this._NoEnd = Convert.ToInt32(this.txtRoomNoEnd.Text);
this._NoTail = this.txtRoomNoTail.Text;
this._Class = cboRoomClass.Text;
this._Style = cboRoomStyle.Text;
this._Population = System.Convert.ToInt32(txtRoomPopulation.Text);
this._Used = chkRoomUsed.Checked;
Close();
}
private void btnCanle_Click(object sender, EventArgs e)
{
this._NoHead = "";
this._NoStart =0;
this._NoEnd =0;
this._NoTail ="";
this._Class ="";
this._Style ="";
this._Population =0;
this._Used = false;
Close();
}
private Int32 _NoStart;
public Int32 NoStart
{
get { return _NoStart; }
set { _NoStart = value; }
}
private Int32 _NoEnd;
public Int32 NoEnd
{
get { return _NoEnd; }
set { _NoEnd = value; }
}
private string _NoTail;
public string NoTail
{
get { return _NoTail; }
set { _NoTail = value; }
}
private void FrmStrorySet_RoomAddMore_Load(object sender, EventArgs e)
{
CordInit();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -