Beispiel #1
0
        private void FillCombo()
        {
            listMenuItem = new BllMenuItem().GetAll();
            FormLoader.LoadDataSource <Service.DTO.MenuItem>(cmbMenuItem, listMenuItem, "MenuItemName", "MenuItemId");

            cmbMenuItem.Text = "";
            txtPrice.Text    = "";



            List <Service.DTO.TableDetails> listTable = new BllTableDetails().GetAll();

            FormLoader.LoadDataSource <Service.DTO.TableDetails>(cmbTableNo, listTable, "TableCode", "TableId");

            if (_billId == 0)
            {
                cmbTableNo.Text = "";
            }


            List <Service.DTO.ServiceType> listService = new BllServiceType().GetAll();

            FormLoader.LoadDataSource <Service.DTO.ServiceType>(cmbServiceType, listService, "ServiceTypeName", "ServiceTypeId");

            List <Service.DTO.Waiters> listWaiters = new BllWaiters().GetAll();

            FormLoader.LoadDataSource <Service.DTO.Waiters>(cmbWaiter, listWaiters, "WaiterCode", "WaiterId");

            List <Service.DTO.PaymentType> listPaymentType = new BllPaymentType().GetAll();

            FormLoader.LoadDataSource <Service.DTO.PaymentType>(cmbPaymentType, listPaymentType, "PaymentTypeName", "PaymentTypeId");

            //cmbPaymentType.Text = "";

            txtSubTotal.Text = "0";

            listChargeConfiguration = new BllChargeConfiguration().GetAll();
            setChargeValues();
        }
        private void FillCombo()
        {
            listMenuItem = new BllMenuItem().GetAll();
            FormLoader.LoadDataSource<Service.DTO.MenuItem>(cmbMenuItem, listMenuItem, "MenuItemName", "MenuItemId");

            cmbMenuItem.Text = "";
            txtPrice.Text = "";



            List<Service.DTO.TableDetails> listTable = new BllTableDetails().GetAll();
            FormLoader.LoadDataSource<Service.DTO.TableDetails>(cmbTableNo, listTable, "TableCode", "TableId");

            if (_billId == 0)
            {
                cmbTableNo.Text = "";
            }


            List<Service.DTO.ServiceType> listService = new BllServiceType().GetAll();
            FormLoader.LoadDataSource<Service.DTO.ServiceType>(cmbServiceType, listService, "ServiceTypeName", "ServiceTypeId");

            List<Service.DTO.Waiters> listWaiters = new BllWaiters().GetAll();
            FormLoader.LoadDataSource<Service.DTO.Waiters>(cmbWaiter, listWaiters, "WaiterCode", "WaiterId");

            List<Service.DTO.PaymentType> listPaymentType = new BllPaymentType().GetAll();
            FormLoader.LoadDataSource<Service.DTO.PaymentType>(cmbPaymentType, listPaymentType, "PaymentTypeName", "PaymentTypeId");

            //cmbPaymentType.Text = "";

            txtSubTotal.Text = "0";

            listChargeConfiguration = new BllChargeConfiguration().GetAll();
            setChargeValues();
        }