ClientBookIn 方法没有采用0个参数的重载怎么解决? 调用时没有传入参数,而ClientBookIn需要参数。看看ClientBookIn需要几个参数就知道了。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 ClientBookIn,这个你声明的窗体的构造函数没有0个参数的方法.看看ClientBookIn窗体的代码.你是不是修改ClientBookIn的构造函数了?就是 public ClientBookIn() 这个是VS自动生成的.你看看是不是改了. ClientBookIn 方法的源代码:public partial class ClientBookIn : Form { private HotelManage.BussinessLevel.ClientBookInManage clientbookin; public ClientBookIn(string roomID) { InitializeComponent(); this.textRoomID.Text = roomID; this.clientbookin = new ClientBookInManage(); } private void btnSave_Click(object sender, System.EventArgs e) { string clientID = this.textClientID.Text; string clientName = this.textClientName.Text; string clientSex = this.comboSex.Text; string clientNativePlace = this.comboNativePlace.Text; string roomID = this.textRoomID.Text; System.DateTime inDate = this.dateTimePicker1.Value; string re = this.textRe.Text; if (this.clientbookin.Client_Add(clientID, clientName, clientSex, clientNativePlace) == true) { MessageBox.Show("入住成功"); } else { MessageBox.Show("入住失败"); return; } if (this.clientbookin.ClientBookIn_Add(clientID, roomID, inDate, re) == true) { this.Close(); } } private void btnReset_Click(object sender, System.EventArgs e) { this.textClientID.Clear(); this.textClientName.Clear(); this.textRe.Clear(); this.comboNativePlace.Text = ""; this.comboSex.Text = ""; } private void btnCancel_Click(object sender, System.EventArgs e) { this.Close(); } private void label1_Click(object sender, EventArgs e) { } private void ClientBookIn_Load(object sender, EventArgs e) { }请具体指教!万分感谢!!! 对集合遍历并删除的问题 C# winform 多个画面 来回 调用 ???? 日期控件的奇怪问题 请问如何把这个字符串转换成日期型? 問一個菜鳥問題 C#类的使用 datagridview image列问题 如何用程序来滚动滚动条? 我是菜鸟,请大家帮帮我,开发工具的问题?? 急,急,急!紧急求助. 新人求助。。。高手们帮帮忙吧 这个接口要怎么写?
看看ClientBookIn窗体的代码.你是不是修改ClientBookIn的构造函数了?就是 public ClientBookIn() 这个是VS自动生成的.
你看看是不是改了.
public partial class ClientBookIn : Form
{
private HotelManage.BussinessLevel.ClientBookInManage clientbookin;
public ClientBookIn(string roomID)
{
InitializeComponent();
this.textRoomID.Text = roomID;
this.clientbookin = new ClientBookInManage();
}
private void btnSave_Click(object sender, System.EventArgs e)
{
string clientID = this.textClientID.Text;
string clientName = this.textClientName.Text;
string clientSex = this.comboSex.Text;
string clientNativePlace = this.comboNativePlace.Text;
string roomID = this.textRoomID.Text;
System.DateTime inDate = this.dateTimePicker1.Value;
string re = this.textRe.Text;
if (this.clientbookin.Client_Add(clientID, clientName, clientSex, clientNativePlace) == true)
{
MessageBox.Show("入住成功"); }
else
{
MessageBox.Show("入住失败");
return;
}
if (this.clientbookin.ClientBookIn_Add(clientID, roomID, inDate, re) == true)
{ this.Close(); }
} private void btnReset_Click(object sender, System.EventArgs e)
{
this.textClientID.Clear();
this.textClientName.Clear();
this.textRe.Clear();
this.comboNativePlace.Text = "";
this.comboSex.Text = ""; } private void btnCancel_Click(object sender, System.EventArgs e)
{
this.Close();
} private void label1_Click(object sender, EventArgs e)
{ } private void ClientBookIn_Load(object sender, EventArgs e)
{ }
请具体指教!万分感谢!!!