コード例 #1
0
ファイル: ReserveForm.cs プロジェクト: pattapong/smartClient
 private void ListReserveTime_ItemClick(object sender, ItemsListEventArgs e)
 {
     this.selectedReserve = (TableReserve) e.Item.Value;
     this.UpdateReserveButton();
 }
コード例 #2
0
ファイル: ReserveForm.cs プロジェクト: pattapong/smartClient
 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();
     }
 }
コード例 #3
0
 /// <remarks/>
 public System.IAsyncResult BeginSetTableReserve(TableReserve reserve, string custFullName, System.AsyncCallback callback, object asyncState)
 {
     return this.BeginInvoke("SetTableReserve", new object[] {
                 reserve,
                 custFullName}, callback, asyncState);
 }
コード例 #4
0
ファイル: ReserveForm.cs プロジェクト: pattapong/smartClient
 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();
 }
コード例 #5
0
 public string SetTableReserve(TableReserve reserve, string custFullName)
 {
     object[] results = this.Invoke("SetTableReserve", new object[] {
                 reserve,
                 custFullName});
     return ((string)(results[0]));
 }