Exemplo n.º 1
0
 public TableOverview_Service()
 {
     TableDAO            = new DAO_Table();
     OrderService        = new Order_Service();
     OrderProductService = new OrderProduct_Service();
     ProductService      = new Product_Service();
 }
Exemplo n.º 2
0
        private void orderOverzichtVullen()
        {
            ChapooLogic.Order_Service orderOverzicht = new ChapooLogic.Order_Service();
            List <OrderStatus>        orderlist      = orderOverzicht.KrijgOrder();

            listview_OrderOverzicht.View = View.Details;

            listview_OrderOverzicht.Clear();

            listview_OrderOverzicht.Columns.Add("tafelNummmer");
            listview_OrderOverzicht.Columns.Add("bestellingId");
            listview_OrderOverzicht.Columns.Add("bestellingStatus");

            foreach (ChapooModel.OrderStatus s in orderlist)
            {
                ListViewItem li = new ListViewItem(s.tafelNummer.ToString());

                li.SubItems.Add(s.bestellingId.ToString());
                listview_OrderOverzicht.Items.Add(li);

                if (s.bestellingStatus == true)
                {
                    li.SubItems.Add("Klaar");
                }
                else
                {
                    li.SubItems.Add("Open");
                }
            }

            listview_OrderOverzicht.AutoResizeColumns(ColumnHeaderAutoResizeStyle.HeaderSize);
        }
 private void FillBillList()
 {
     // fill the billList with unpaid bills
     ChapooLogic.Order_Service OrderService = new ChapooLogic.Order_Service();
     _ListOfOrders = OrderService.DB_Get_All_Unpaid_Orders();
 }