Ejemplo n.º 1
0
        public void loadCustomerInformation(String name)
        {
            CustomerModelController modelController = (CustomerModelController)mainForm.getModelController(this.GetType());

            HotelDataSet.CustomerRow row = modelController.getCustomerByName(name);
            if (row != null)
            {
                mainForm.lblCustomerID.Text        = row.Id.ToString();
                mainForm.lblCustomerName.Text      = row.Name;
                mainForm.lblCustomerTelephone.Text = row.Telephone;
                mainForm.lblCustomerRoom.Text      = row.CurrentRoomNumber;
                mainForm.lblCustomerBalance.Text   = formatCurrency(row.BalanceDue);
            }
        }
Ejemplo n.º 2
0
        public void loadCustomerList()
        {
            resetView();
            CustomerModelController modelController = (CustomerModelController)mainForm.getModelController(this.GetType());
            List <String>           customerNames;

            if (mainForm.radDisplayAllCustomers.Checked)
            {
                customerNames = modelController.getCustomerNames(mainForm.txtCustomerFilter.Text);
            }
            else
            {
                customerNames = modelController.getCustomersWithBalance(mainForm.txtCustomerFilter.Text);
            }

            foreach (String customerName in customerNames)
            {
                mainForm.lstCustomers.Items.Add(customerName);
            }
        }
Ejemplo n.º 3
0
 public CheckInDialog(CustomerModelController customerModelController, RoomModelController roomModelController)
 {
     InitializeComponent();
     this.customerModelController = customerModelController;
     this.roomModelController     = roomModelController;
 }