Esempio n. 1
0
        public override void OnStart(object param)
        {
            var employeeId = new Guid((param as object[])[0].ToString());

            CurrentEmployee = System.GetEmployee(Company.Id, employeeId);

            if ((param as object[]).Count() > 1)
            {
                var tableId     = new Guid((param as object[])[1].ToString());
                var tableAreaId = new Guid((param as object[])[2].ToString());

                if ((param as object[]).Count() > 3)
                {
                    var currentSaleId = new Guid((param as object[])[3].ToString());
                }

                if ((param as object[]).Count() > 4)
                {
                    wantToMoveTable = (bool)((param as object[])[4] as bool?);
                }


                CurrentTable = System.GetTable(Company.Id, Store.Id, tableAreaId, tableId);
            }

            Navigator.ActivateView(Tables);
        }
        public override void OnStart(object param)
        {
            Guid currentSaleId;
            Guid currentTableId = Guid.Empty;

            var currentEmployeeId = new Guid((param as object[])[0].ToString());

            if ((param as object[]).Count() == 4)
            {
                currentTableId     = new Guid((param as object[])[1].ToString());
                currentTableAreaId = new Guid((param as object[])[2].ToString());
                currentSaleId      = new Guid((param as object[])[3].ToString());

                CurrentEmployee = System.GetEmployee(Company.Id, currentEmployeeId);
                CurrentSale     = System.GetSale(Company.Id, Store.Id, Terminal.Id, TerminalArea.Id, currentSaleId);
                CurrentTable    = System.GetTable(Company.Id, Store.Id, currentTableAreaId, currentTableId);
                CurrentCovers   = (int)(CurrentSale.Covers);
            }
            else
            {
                currentSaleId = new Guid((param as object[])[1].ToString());
            }

            base.OnStart(param);
            Navigator.ActivateView(SaleView);
        }
Esempio n. 3
0
        public override void OnStart(object param)
        {
            var currentEmployeeId = new Guid((param as object[])[0].ToString());
            var currentTableId    = new Guid((param as object[])[1].ToString());

            currentTableAreaId = new Guid((param as object[])[2].ToString());

            CurrentEmployee = System.GetEmployee(Company.Id, currentEmployeeId);
            CurrentTable    = System.GetTable(Company.Id, Store.Id, currentTableAreaId, currentTableId);

            if ((param as object[]).Count() > 3)
            {
                var currentSaleId = new Guid((param as object[])[3].ToString());
                CurrentSale = System.GetSale(Company.Id, Store.Id, Terminal.Id, TerminalArea.Id, currentSaleId);
            }
            Navigator.ActivateView(CoversView);
        }
Esempio n. 4
0
 public override void OnStart(object param)
 {
     Navigator.ActivateView(Employees);
 }
Esempio n. 5
0
 public override void OnStart(object param)
 {
     taskStartTimes++;
     Navigator.ActivateView(View);
 }
 public void ActivateQuantityView(Guid mpId)
 {
     MenuProductId = mpId;
     Navigator.ActivateView(QuantityView);
 }
Esempio n. 7
0
 public void StartAuthenticationView(Guid empId)
 {
     EmployeeId = empId;
     Navigator.ActivateView(AuthenticationView);
 }
Esempio n. 8
0
 public override void OnStart(object param)
 {
     Navigator.ActivateView(LoginView);
 }
 public override void OnStart(object param)
 {
     Navigator.ActivateView(POSContainer);
 }