private void initializePosParameter(long posId)
        {
            // Inicializar el valor incremental de lista
            this.setIncrementTableValues();
            // Inicializar la sucursal
            PointSaleService pointSaleService = new PointSaleService();

            pointSaleService.initialize(posId);
        }
示例#2
0
        public int validateSallerUser(AUS_ApplicationUser pAuthenticatedUser)
        {
            int authenticationSuccess    = SystemConstants.LOGIN_FAIL;
            PointSaleService posService  = new PointSaleService();
            string           posInstance = posService.getPointSaleInstance();

            // Validar si sucursal del usuario coincide con la del sistema
            if (posInstance == null || pAuthenticatedUser.LPS_LotteryPointSale.ToString() == posInstance)
            {
                // Si la sucursal coincide, indicar autenticación exitosa
                this.checkSuccessAutentication(ref authenticationSuccess, pAuthenticatedUser);
            }
            else
            {
                // Error de inconsistencia en sucursal
                authenticationSuccess = SystemConstants.LOGIN_SUCCESS_WITH_ERRORS;
                MessageService.displayErrorMessage(GeneralConstants.INCORRRECT_POS_ERROR_MESSAGE, GeneralConstants.INCORRRECT_POS_ERROR_TITLE);
            }
            return(authenticationSuccess);
        }
        private LPS_LotteryPointSale getApplicationPointSale()
        {
            PointSaleService pointSaleService = new PointSaleService();

            return(pointSaleService.getPointSale());
        }
        public string getPointSaleInstance()
        {
            PointSaleService pointSaleService = new PointSaleService();

            return(pointSaleService.getPointSaleInstance());
        }