Пример #1
0
 private void btnTakeaway_Click(object sender, EventArgs e)
 {
     SaleOrderHeader header = new SaleOrderHeader();
     BaseButton btn = sender as BaseButton;
     if (btn.DataObject != null)
     {
         header = btn.DataObject as SaleOrderHeader;
     }
     base.OpernNewScreen<OpenOrder>(header);
     this.ReLoadScreen();
 }
Пример #2
0
        private void btnPay_Click(object sender, EventArgs e)
        {
            SaleOrderHeader orderHear = new SaleOrderHeader();
            orderHear.sales_order_head_id = this.OrderHeads.sales_order_head_id;

            orderHear = ServiceProvider.SaleOrderHeaderService.FindByKeys(orderHear, true);
            if (orderHear != null)
            {
                orderHear.is_payment_procress = true;
                ServiceProvider.SOTableService.CancelBookTable(this.OrderHeads.TableCode);
                ServiceProvider.SaleOrderHeaderService.Update(orderHear, ValidationRuleset.Update);
            }
            this.CloseScreen();
        }