コード例 #1
0
        public ResponseBussiness <OperationResponse> EjecutarProcedimientoCorteCaja(LecturaCaja lecturaCaja)
        {
            TokenDto token = new TokenService().Get();
            ResponseBussiness <OperationResponse> response = new LecturaBusiness(token).LecturaZ(lecturaCaja);

            return(response);
        }
コード例 #2
0
        public ResponseBussiness <LecturaTotalDetalleFormaPago[]> ObtenerTotalesPorFormaPagoCaja(String caja)
        {
            TokenDto token = new TokenService().Get();
            ResponseBussiness <LecturaTotalDetalleFormaPago[]> response = new LecturaBusiness(token).ObtenerTotalesPorFormaPago(Convert.ToInt32(caja));

            return(response);
        }
コード例 #3
0
        public ResponseBussiness <Denominacion[]> ObtenerDenominaciones()
        {
            TokenDto token = new TokenService().Get();
            ResponseBussiness <Denominacion[]> response = new LecturaBusiness(token).ObtenerDenominaciones();

            return(response);
        }
コード例 #4
0
        public ResponseBussiness <LecturaTotalDetalleFormaPago[]> ObtenerTotalesPorFormaPago()
        {
            TokenDto token = new TokenService().Get();
            ResponseBussiness <LecturaTotalDetalleFormaPago[]> response = new LecturaBusiness(token).ObtenerTotalesPorFormaPago();

            return(response);
        }
コード例 #5
0
 /// <summary>
 /// Metodo que genera Lectura Z y Logout Offline
 /// </summary>
 /// <param name="token"></param>
 /// <param name="lecturaCaja"></param>
 /// <returns></returns>
 public ResponseBussiness <ValidacionOperacionResponse> GenerarLecturaZOffline(TokenDto token, LecturaCaja lecturaCaja)
 {
     return(tryCatch.SafeExecutor(() =>
     {
         ValidacionOperacionResponse validacionOperacionResponse = new ValidacionOperacionResponse();
         using (TransactionScope scope = new TransactionScope())
         {
             token.CodeBox = lecturaCaja.CodigoCaja;
             LecturaZGuardarResponse lecturaZGuardarResponse = new LecturaBusiness(token).LecturaZOffline(lecturaCaja);
             inicioFinDiaRepository.RegistrarLecturaZOffline(token.CodeStore, token.CodeBox, lecturaZGuardarResponse.FolioCorte);
             validacionOperacionResponse = inicioFinDiaRepository.RegistrarLogoutCaja(token);
             // Asignamos códigos de Lectura Z
             validacionOperacionResponse.CodeNumber = lecturaZGuardarResponse.CodeNumber;
             validacionOperacionResponse.CodeDescription = lecturaZGuardarResponse.CodeDescription;
             token.CodeBox = 0;
             scope.Complete();
         }
         return validacionOperacionResponse;
     }));
 }