private void ListReserveTime_ItemClick(object sender, ItemsListEventArgs e) { this.selectedReserve = (TableReserve) e.Item.Value; this.UpdateReserveButton(); }
private void BtnReserve_Click(object sender, EventArgs e) { TableReserve reserve = new TableReserve(); reserve.reserveTableID = 0; reserve.tableID = 0; reserve.customerID = 0; reserve.seat = int.Parse(this.FieldSeat.Text); reserve.reserveDate = this.selectedDate; string text = new smartRestaurant.ReserveService.ReserveService().SetTableReserve(reserve, this.FieldCustName.Text); if (text != null) { MessageBox.Show(text); } else { this.FieldCustName.Text = FIELD_CUST_TEXT; this.FieldSeat.Text = ""; this.UpdateReserveQueue(); this.UpdateReserveButton(); } }
/// <remarks/> public System.IAsyncResult BeginSetTableReserve(TableReserve reserve, string custFullName, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("SetTableReserve", new object[] { reserve, custFullName}, callback, asyncState); }
public override void UpdateForm() { this.selectedDate = DateTime.Today.Add(new TimeSpan(8, 0, 0)); this.startDate = this.SearchStartOfWeek(this.selectedDate); this.selectedReserve = null; this.FieldCustName.Text = FIELD_CUST_TEXT; this.FieldSeat.Text = ""; if (AppParameter.IsDemo()) { this.FieldInputType.Text = "Guest"; } else { this.FieldInputType.Text = "Seat"; } this.LblPageID.Text = "Employee ID:" + ((MainForm) base.MdiParent).UserID.ToString() + " | STRT010"; this.UpdateDateButton(); this.UpdateSelectedTime(); }
public string SetTableReserve(TableReserve reserve, string custFullName) { object[] results = this.Invoke("SetTableReserve", new object[] { reserve, custFullName}); return ((string)(results[0])); }