-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Añado log errores, fecha y mensajes dinamicos
- Loading branch information
Showing
10 changed files
with
173 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
#pragma once | ||
#include "Sistema.h" | ||
class AdminCompras : | ||
public Sistema | ||
class AdminCompra | ||
{ | ||
|
||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#include "ErrorDto.h" | ||
|
||
ErrorDto::ErrorDto() { _err = false; _mensajeError = ""; } | ||
|
||
/// <summary> | ||
/// Setea un nuevo error. | ||
/// </summary> | ||
/// <param name="err"></param> | ||
/// <param name="mensajeError"></param> | ||
void ErrorDto::setError(bool err, std::string mensajeError) | ||
{ | ||
_err = err; | ||
_mensajeError = mensajeError; | ||
} | ||
|
||
/// <summary> | ||
/// | ||
/// </summary> | ||
/// <returns>Retorna objeto Error</returns> | ||
ErrorDto ErrorDto::getError() { return *this; } | ||
|
||
/// <summary> | ||
/// Obtiene el mensaje de error | ||
/// </summary> | ||
/// <returns>mensajeError</returns> | ||
std::string ErrorDto::getErrorMensaje() { return _mensajeError; } | ||
|
||
/// <summary> | ||
/// Se limpian errores | ||
/// </summary> | ||
void ErrorDto::limpiarErrores() | ||
{ | ||
_err = false; | ||
_mensajeError = ""; | ||
} | ||
|
||
bool ErrorDto::hasError() { return _err; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#pragma once | ||
#include <iostream> | ||
|
||
class ErrorDto | ||
{ | ||
private: | ||
bool _err; | ||
std::string _mensajeError; | ||
public: | ||
ErrorDto(); | ||
|
||
void setError(bool err, std::string mensajeError); | ||
|
||
ErrorDto getError(); | ||
|
||
std::string getErrorMensaje(); | ||
|
||
void limpiarErrores(); | ||
|
||
bool hasError(); | ||
|
||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters