public ResponseBussiness <OperationResponse> EjecutarProcedimientoCorteCaja(LecturaCaja lecturaCaja) { TokenDto token = new TokenService().Get(); ResponseBussiness <OperationResponse> response = new LecturaBusiness(token).LecturaZ(lecturaCaja); return(response); }
public ResponseBussiness <LecturaTotalDetalleFormaPago[]> ObtenerTotalesPorFormaPagoCaja(String caja) { TokenDto token = new TokenService().Get(); ResponseBussiness <LecturaTotalDetalleFormaPago[]> response = new LecturaBusiness(token).ObtenerTotalesPorFormaPago(Convert.ToInt32(caja)); return(response); }
public ResponseBussiness <Denominacion[]> ObtenerDenominaciones() { TokenDto token = new TokenService().Get(); ResponseBussiness <Denominacion[]> response = new LecturaBusiness(token).ObtenerDenominaciones(); return(response); }
public ResponseBussiness <LecturaTotalDetalleFormaPago[]> ObtenerTotalesPorFormaPago() { TokenDto token = new TokenService().Get(); ResponseBussiness <LecturaTotalDetalleFormaPago[]> response = new LecturaBusiness(token).ObtenerTotalesPorFormaPago(); return(response); }
/// <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; })); }