diff --git a/Database/scripts/factuges.sql b/Database/scripts/factuges.sql
index 2f59f05f..2f7941d3 100644
--- a/Database/scripts/factuges.sql
+++ b/Database/scripts/factuges.sql
@@ -463,6 +463,11 @@ begin
end
num_orden = num_orden + 1;
end
+
+ /*Finalmente cambiamos de estado los ejercicio cerrado*/
+ update cont_ejercicios
+ set ESTADO = 'CERRADO'
+ where id = :id_ejercicio_cierre;
end
suspend;
diff --git a/Source/ApplicationBase/ApplicationBase.dpk b/Source/ApplicationBase/ApplicationBase.dpk
index 99a906ee..108f1088 100644
--- a/Source/ApplicationBase/ApplicationBase.dpk
+++ b/Source/ApplicationBase/ApplicationBase.dpk
@@ -41,7 +41,14 @@ requires
dxThemeD11,
dxGDIPlusD11,
dxNavBarD11,
- vcljpg;
+ vcljpg,
+ GUISDK_D11,
+ xmlrtl,
+ cfpack_d11,
+ vclx,
+ vclactnband,
+ designide,
+ ccpackD11;
contains
uFactuGES_App in 'uFactuGES_App.pas',
@@ -109,6 +116,8 @@ contains
uViewConfiguracionGeneral in 'Configuracion\Views\uViewConfiguracionGeneral.pas' {frViewConfiguracionGeneral: TFrame},
uIViewConfiguracionBase in 'Configuracion\Controller\Views\uIViewConfiguracionBase.pas',
schUsuariosClient_Intf in 'Usuarios\Model\schUsuariosClient_Intf.pas',
- schUsuariosServer_Intf in 'Usuarios\Model\schUsuariosServer_Intf.pas';
+ schUsuariosServer_Intf in 'Usuarios\Model\schUsuariosServer_Intf.pas',
+ uEditorElegirEjercicios in 'Ejercicios\Views\uEditorElegirEjercicios.pas' {fEditorElegirEjercicios: TCustomEditor},
+ uIEditorElegirEjercicios in 'Ejercicios\Controller\View\uIEditorElegirEjercicios.pas';
end.
diff --git a/Source/ApplicationBase/ApplicationBase.dproj b/Source/ApplicationBase/ApplicationBase.dproj
index be86c29a..81b5e95b 100644
--- a/Source/ApplicationBase/ApplicationBase.dproj
+++ b/Source/ApplicationBase/ApplicationBase.dproj
@@ -46,6 +46,9 @@
Package
FalseTrueFalseFalseFalseFalseTrueFalse1000FalseFalseFalseFalseFalse308212521.0.0.01.0.0.0
+
+
+
RemObjects Data Abstract - SQLite Driver
Microsoft Office 2000 Sample Automation Server Wrapper Components
Microsoft Office XP Sample Automation Server Wrapper Components
@@ -70,8 +73,32 @@
TFrame
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -87,6 +114,10 @@
TCustomEditor
+
+
+ TCustomEditor
+
@@ -154,26 +185,10 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
TCustomEditor
diff --git a/Source/ApplicationBase/Ejercicios/Controller/View/uIEditorElegirEjercicios.pas b/Source/ApplicationBase/Ejercicios/Controller/View/uIEditorElegirEjercicios.pas
new file mode 100644
index 00000000..65c82bd3
--- /dev/null
+++ b/Source/ApplicationBase/Ejercicios/Controller/View/uIEditorElegirEjercicios.pas
@@ -0,0 +1,26 @@
+unit uIEditorElegirEjercicios;
+
+interface
+
+uses
+ uIEditorEjercicios, uBizEjercicios, uGUIBase;
+
+type
+ IEditorElegirEjercicios = interface(IEditorEjercicios)
+ ['{4A5003AE-BF4E-466A-9C9D-FECDD69454D2}']
+ function GetEjerciciosSeleccionados: IBizEjercicio;
+ property EjerciciosSeleccionados: IBizEjercicio read GetEjerciciosSeleccionados;
+
+ procedure SetMultiSelect (AValue : Boolean);
+ function GetMultiSelect : Boolean;
+ property MultiSelect : Boolean read GetMultiSelect write SetMultiSelect;
+
+ procedure SetMensaje (const AValue: String);
+ function GetMensaje: String;
+ property Mensaje : String read GetMensaje write SetMensaje;
+ end;
+
+
+implementation
+
+end.
diff --git a/Source/ApplicationBase/Ejercicios/Controller/uEjerciciosController.pas b/Source/ApplicationBase/Ejercicios/Controller/uEjerciciosController.pas
index 113bbdef..e1fe47bd 100644
--- a/Source/ApplicationBase/Ejercicios/Controller/uEjerciciosController.pas
+++ b/Source/ApplicationBase/Ejercicios/Controller/uEjerciciosController.pas
@@ -21,6 +21,9 @@ type
procedure DescartarCambios(AEjercicio : IBizEjercicio);
function Localizar(AEjercicios: IBizEjercicio; ADescripcion:String): Boolean;
function DarListaEjercicios: TStringList;
+ function ElegirEjercicio(AEjercicios : IBizEjercicio): IBizEjercicio;
+ function ExtraerSeleccionados(AEjercicios: IBizEjercicio) : IBizEjercicio;
+ function CerrarEjercicio(AEjercicio: IBizEjercicio): Boolean;
end;
TEjerciciosController = class(TControllerBase, IEjerciciosController)
@@ -52,6 +55,9 @@ type
function GenerarPCG(IdEjercicioCopia, IdEjercicio: Integer): Boolean;
function Localizar(AEjercicios: IBizEjercicio; ADescripcion:String): Boolean;
function DarListaEjercicios: TStringList;
+ function ElegirEjercicio(AEjercicios : IBizEjercicio): IBizEjercicio;
+ function ExtraerSeleccionados(AEjercicios: IBizEjercicio) : IBizEjercicio;
+ function CerrarEjercicio(AEjercicio: IBizEjercicio): Boolean;
end;
implementation
@@ -60,29 +66,15 @@ uses
cxControls, DB, uEditorRegistryUtils, schEjerciciosClient_Intf,
uIEditorEjercicios, uIEditorEjercicio, uDataModuleEjercicios,
uDAInterfaces, uDataTableUtils, uDialogUtils, uFactuGES_App,
- uDateUtils, uROTypes, DateUtils, Controls, Windows, Dialogs;
+ uDateUtils, uROTypes, DateUtils, Controls, Windows, Dialogs, uIEditorElegirEjercicios;
{ TEjerciciosController }
procedure TEjerciciosController.Anadir(AEjercicio: IBizEjercicio);
-{var
- FechaInicio: TDate;
- FechaFin: TDate;}
begin
AEjercicio.Insert;
-
- //Asignar fecha de inicio y fin siguientes
- ShowHourglassCursor;
- try
-// FDataModule.DarAnoSiguiente(FechaInicio, FechaFin);
-// AEjercicio.FECHA_INICIO :=
-
- finally
- HideHourglassCursor;
- end;
-
end;
procedure TEjerciciosController.AsignarDataModule;
@@ -144,6 +136,32 @@ begin
FiltrarEmpresa(Result);
end;
+function TEjerciciosController.CerrarEjercicio(AEjercicio: IBizEjercicio): Boolean;
+var
+ IdEjercicioCierre: Integer;
+ AFechaInicioApertura: TDate;
+ AFechaFinApertura: TDate;
+
+begin
+ Result := False;
+
+ if Assigned(AEjercicio) then
+ begin
+ IdEjercicioCierre := AEjercicio.ID;
+ AFechaInicioApertura := StartOfAYear((YearOf(AEjercicio.FECHA_INICIO)+1));
+ AFechaFinApertura := EndOfAYear((YearOf(AEjercicio.FECHA_INICIO)+1));
+
+ Anadir(AEjercicio);
+ AEjercicio.FECHA_INICIO := AFechaInicioApertura;
+ AEjercicio.FECHA_FIN := AFechaFinApertura;
+ AEjercicio.NOMBRE := 'Ejercicio ' + IntToStr(YearOf(AFechaInicioApertura));
+ AEjercicio.ESTADO := CTE_ABIERTO;
+ Guardar(AEjercicio);
+ GenerarPCG(IdEjercicioCierre, AEjercicio.ID);
+ Result := FDataModule.CerrarEjercicio(IdEjercicioCierre, AEjercicio.ID);
+ end;
+end;
+
constructor TEjerciciosController.Create;
begin
inherited;
@@ -253,6 +271,27 @@ begin
end;
end;
+function TEjerciciosController.ElegirEjercicio(AEjercicios: IBizEjercicio): IBizEjercicio;
+var
+ AEditor : IEditorElegirEjercicios;
+begin
+ Result := NIL;
+
+ CreateEditor('EditorElegirEjercicios', IEditorElegirEjercicios, AEditor);
+ if Assigned(AEditor) then
+ try
+ AEditor.Ejercicios := AEjercicios;
+ AEditor.Controller := Self;
+ AEditor.MultiSelect := False;
+ AEditor.Mensaje := 'Seleccione el ejercicio de la empresa activa que desee:';
+ if IsPositiveResult(AEditor.ShowModal) then
+ Result := AEditor.EjerciciosSeleccionados;
+ finally
+ AEditor.Release;
+ AEditor := NIL;
+ end;
+end;
+
function TEjerciciosController.Eliminar(AEjercicio: IBizEjercicio): Boolean;
begin
if not Assigned(AEjercicio) then
@@ -275,6 +314,15 @@ begin
end;
end;
+function TEjerciciosController.ExtraerSeleccionados(AEjercicios: IBizEjercicio): IBizEjercicio;
+var
+ ASeleccionados : IBizEjercicio;
+begin
+ ASeleccionados := Self.Buscar(ID_NULO);
+ CopyDataTableDA5(AEjercicios.DataTable, ASeleccionados.DataTable, True);
+ Result := ASeleccionados;
+end;
+
procedure TEjerciciosController.FiltrarEmpresa(AEjercicio: IBizEjercicio);
var
Condicion: TDAWhereExpression;
diff --git a/Source/ApplicationBase/Ejercicios/Data/uDataModuleEjercicios.pas b/Source/ApplicationBase/Ejercicios/Data/uDataModuleEjercicios.pas
index 7ecfea17..17db1e45 100644
--- a/Source/ApplicationBase/Ejercicios/Data/uDataModuleEjercicios.pas
+++ b/Source/ApplicationBase/Ejercicios/Data/uDataModuleEjercicios.pas
@@ -20,7 +20,7 @@ type
public
function GetItems: IBizEjercicio;
function GenerarPGC(const IdEjercicioCopia: Integer; const IdEjercicio: Integer): Boolean;
-// function DarAnoSiguiente(var FechaInicio: TDate; var FechaFin: TDate): Boolean;
+ function CerrarEjercicio(const IdEjercicioCierre: Integer; const IdEjercicioApertura: Integer): Boolean;
end;
implementation
@@ -33,6 +33,11 @@ uses
{ TdmEjercicios }
+function TDataModuleEjercicios.CerrarEjercicio(const IdEjercicioCierre, IdEjercicioApertura: Integer): Boolean;
+begin
+ Result := (RORemoteService as IsrvEjercicios).CerrarEjercicio(IdEjercicioCierre, IdEjercicioApertura);
+end;
+
procedure TDataModuleEjercicios.DAClientDataModuleCreate(Sender: TObject);
begin
RORemoteService.Channel := dmConexion.Channel;
diff --git a/Source/ApplicationBase/Ejercicios/Model/Data/uIDataModuleEjercicios.pas b/Source/ApplicationBase/Ejercicios/Model/Data/uIDataModuleEjercicios.pas
index 21d3859f..2f6855aa 100644
--- a/Source/ApplicationBase/Ejercicios/Model/Data/uIDataModuleEjercicios.pas
+++ b/Source/ApplicationBase/Ejercicios/Model/Data/uIDataModuleEjercicios.pas
@@ -10,6 +10,7 @@ type
['{E32DF99C-8AA1-42E5-84C0-198205BD2A90}']
function GetItems: IBizEjercicio;
function GenerarPGC(const IdEjercicioCopia: Integer; const IdEjercicio: Integer): Boolean;
+ function CerrarEjercicio(const IdEjercicioCierre: Integer; const IdEjercicioApertura: Integer): Boolean;
end;
implementation
diff --git a/Source/ApplicationBase/Ejercicios/Model/uBizEjercicios.pas b/Source/ApplicationBase/Ejercicios/Model/uBizEjercicios.pas
index 2e3a40d8..83c510c3 100644
--- a/Source/ApplicationBase/Ejercicios/Model/uBizEjercicios.pas
+++ b/Source/ApplicationBase/Ejercicios/Model/uBizEjercicios.pas
@@ -3,7 +3,7 @@ unit uBizEjercicios;
interface
uses
- uDAInterfaces, uDADataTable, schEjerciciosClient_Intf;
+ uDAInterfaces, uDADataTable, uDBSelectionListUtils, schEjerciciosClient_Intf;
const
BIZ_CLIENT_Ejercicio = 'Client.Ejercicio';
@@ -16,10 +16,15 @@ type
function EsNuevo : Boolean;
end;
- TBizEjercicio = class(TEjerciciosDataTableRules, IBizEjercicio)
+ TBizEjercicio = class(TEjerciciosDataTableRules, IBizEjercicio, ISeleccionable)
protected
+ FSeleccionableInterface: ISeleccionable;
procedure OnNewRecord(Sender: TDADataTable); override;
public
+ property SeleccionableInterface : ISeleccionable read FSeleccionableInterface write FSeleccionableInterface implements ISeleccionable;
+ constructor Create(aDataTable: TDADataTable); override;
+ destructor Destroy; override;
+
procedure IniciarValoresEjercicioNueva;
function EsNuevo : Boolean;
end;
@@ -31,6 +36,18 @@ implementation
uses
SysUtils, uDataTableUtils, uDateUtils, uFactuGES_App;
+constructor TBizEjercicio.Create(aDataTable: TDADataTable);
+begin
+ inherited;
+ FSeleccionableInterface := TSeleccionable.Create(aDataTable);
+end;
+
+destructor TBizEjercicio.Destroy;
+begin
+ FSeleccionableInterface := NIL;
+ inherited;
+end;
+
function TBizEjercicio.EsNuevo: Boolean;
begin
Result := (ID < 0);
diff --git a/Source/ApplicationBase/Ejercicios/Servidor/srvEjercicios_Impl.dfm b/Source/ApplicationBase/Ejercicios/Servidor/srvEjercicios_Impl.dfm
index 3c8abd9e..f7e6acd4 100644
--- a/Source/ApplicationBase/Ejercicios/Servidor/srvEjercicios_Impl.dfm
+++ b/Source/ApplicationBase/Ejercicios/Servidor/srvEjercicios_Impl.dfm
@@ -292,6 +292,27 @@ object srvEjercicios: TsrvEjercicios
ColumnMappings = <>
end>
Name = 'GenerarPGC'
+ end
+ item
+ Params = <
+ item
+ Name = 'id_ejercicio_cierre'
+ Value = ''
+ end
+ item
+ Name = 'id_ejercicio_apertura'
+ Value = ''
+ end>
+ Statements = <
+ item
+ Connection = 'IBX'
+ SQL =
+ 'execute procedure PROC_CIERRE_APERTURA :id_ejercicio_cierre, :id' +
+ '_ejercicio_apertura'#10
+ StatementType = stSQL
+ ColumnMappings = <>
+ end>
+ Name = 'CerrarEjercicio'
end>
RelationShips = <>
UpdateRules = <>
diff --git a/Source/ApplicationBase/Ejercicios/Servidor/srvEjercicios_Impl.pas b/Source/ApplicationBase/Ejercicios/Servidor/srvEjercicios_Impl.pas
index 49684377..0a6e2af9 100644
--- a/Source/ApplicationBase/Ejercicios/Servidor/srvEjercicios_Impl.pas
+++ b/Source/ApplicationBase/Ejercicios/Servidor/srvEjercicios_Impl.pas
@@ -31,6 +31,7 @@ type
protected
function GenerarPGC(const ID_EJERCICIO_COPIA: Integer; const ID_EJERCICIO: Integer): Boolean;
+ function CerrarEjercicio(const ID_EJERCICIO_CIERRE: Integer; const ID_EJERCICIO_APERTURA: Integer): Boolean;
public
function DarEjercicioActivo(const ID_EMPRESA: Integer): Integer;
end;
@@ -48,6 +49,21 @@ begin
end;
{ srvEjercicios }
+function TsrvEjercicios.CerrarEjercicio(const ID_EJERCICIO_CIERRE, ID_EJERCICIO_APERTURA: Integer): Boolean;
+begin
+ Result := False;
+
+ Connection.BeginTransaction;
+ try
+ schEjercicios.NewCommand(Connection, 'CerrarEjercicio', ['ID_EJERCICIO_CIERRE', 'ID_EJERCICIO_APERTURA'], [ID_EJERCICIO_CIERRE, ID_EJERCICIO_APERTURA]);
+ Connection.CommitTransaction;
+ Result := True;
+ except
+ Connection.RollbackTransaction;
+ RaiseError('Error al cerrar el ejercicio');
+ end;
+end;
+
function TsrvEjercicios.DarEjercicioActivo(const ID_EMPRESA: Integer): Integer;
var
AConn : IDAConnection;
diff --git a/Source/ApplicationBase/Ejercicios/Views/uEditorEjercicio.dfm b/Source/ApplicationBase/Ejercicios/Views/uEditorEjercicio.dfm
index c8940510..81dbdda7 100644
--- a/Source/ApplicationBase/Ejercicios/Views/uEditorEjercicio.dfm
+++ b/Source/ApplicationBase/Ejercicios/Views/uEditorEjercicio.dfm
@@ -15,7 +15,7 @@ inherited fEditorEjercicio: TfEditorEjercicio
inherited JvNavPanelHeader: TJvNavPanelHeader
Width = 519
Caption = 'Ejercicio'
- ExplicitWidth = 632
+ ExplicitWidth = 519
inherited Image1: TImage
Left = 492
Picture.Data = {
@@ -58,7 +58,7 @@ inherited fEditorEjercicio: TfEditorEjercicio
end
inherited TBXDock: TTBXDock
Width = 519
- ExplicitWidth = 632
+ ExplicitWidth = 519
inherited tbxMain: TTBXToolbar
ExplicitWidth = 330
inherited TBXItem2: TTBXItem
@@ -115,13 +115,13 @@ inherited fEditorEjercicio: TfEditorEjercicio
Height = 344
ExplicitLeft = 3
ExplicitTop = 79
- ExplicitWidth = 626
- ExplicitHeight = 360
+ ExplicitWidth = 513
+ ExplicitHeight = 344
inherited pagGeneral: TTabSheet
ExplicitLeft = 4
ExplicitTop = 24
- ExplicitWidth = 618
- ExplicitHeight = 332
+ ExplicitWidth = 505
+ ExplicitHeight = 316
end
end
inherited StatusBar: TJvStatusBar
@@ -132,7 +132,7 @@ inherited fEditorEjercicio: TfEditorEjercicio
Width = 200
end>
ExplicitTop = 426
- ExplicitWidth = 632
+ ExplicitWidth = 519
end
inherited EditorActionList: TActionList
Top = 128
diff --git a/Source/ApplicationBase/Ejercicios/Views/uEditorEjercicio.pas b/Source/ApplicationBase/Ejercicios/Views/uEditorEjercicio.pas
index c3398c06..d063b59b 100644
--- a/Source/ApplicationBase/Ejercicios/Views/uEditorEjercicio.pas
+++ b/Source/ApplicationBase/Ejercicios/Views/uEditorEjercicio.pas
@@ -93,11 +93,12 @@ procedure TfEditorEjercicio.GuardarInterno;
var
bEsNuevo: Boolean;
Respuesta : Integer;
+ AEjercicio: IBizEjercicio;
+
begin
inherited;
bEsNuevo := FEjercicio.EsNuevo;
- FController.Guardar(FEjercicio);
//Si el ejercicio guardado es nuevo generamos el pgc
if bEsNuevo then
@@ -107,15 +108,26 @@ begin
begin
case JsNuevoEjercicioDialog.CustomButtonResult of
300 : begin // No generar PGC
+ FController.Guardar(FEjercicio);
end;
- 200 : begin // Utilizar un ejercicio anterior para copiar el PGC
+ 200 : begin // Utilizar un ejercicio anterior para copiar el PGC, OJO ORDEN MUY IMPORTANTE
+
+ AEjercicio := FController.ElegirEjercicio(FController.BuscarTodos);
+ if Assigned(AEjercicio) then
+ begin
+ FController.Guardar(FEjercicio);
+ FController.GenerarPCG(AEjercicio.ID, FEjercicio.ID);
+ end;
end;
- 100 : begin // Utilizar el PGC base
+ 100 : begin // Utilizar el PGC base OJO ORDEN MUY IMPORTANTE
+ FController.Guardar(FEjercicio);
FController.GenerarPCG(0, FEjercicio.ID);
end;
end;
end;
- end;
+ end
+ //Es una modificación
+ else FController.Guardar(FEjercicio);
Modified := False;
RefrescarInterno; //Es necesario sino no se actualiza el campo ACTIVO de todas las tuplas
diff --git a/Source/ApplicationBase/Ejercicios/Views/uEditorEjercicios.dfm b/Source/ApplicationBase/Ejercicios/Views/uEditorEjercicios.dfm
index 9278adb2..14fb9326 100644
--- a/Source/ApplicationBase/Ejercicios/Views/uEditorEjercicios.dfm
+++ b/Source/ApplicationBase/Ejercicios/Views/uEditorEjercicios.dfm
@@ -45,9 +45,6 @@ inherited fEditorEjercicios: TfEditorEjercicios
end
end
inherited TBXDock: TTBXDock
- inherited tbxMain: TTBXToolbar
- ExplicitWidth = 474
- end
inherited tbxFiltro: TTBXToolbar
ExplicitWidth = 269
inherited tbxEditFiltro: TTBXEditItem
@@ -60,7 +57,12 @@ inherited fEditorEjercicios: TfEditorEjercicios
inherited TBXTMain2: TTBXToolbar
Left = 275
DockPos = 275
+ Visible = True
ExplicitLeft = 275
+ ExplicitWidth = 96
+ object TBXItem38: TTBXItem
+ Action = actCerrarEjercicio
+ end
end
end
inline frViewEjercicios1: TfrViewEjercicios [3]
@@ -106,15 +108,27 @@ inherited fEditorEjercicios: TfEditorEjercicios
Width = 543
ExplicitWidth = 543
inherited txtFiltroTodo: TcxTextEdit
+ Style.LookAndFeel.SkinName = ''
+ StyleDisabled.LookAndFeel.SkinName = ''
+ StyleFocused.LookAndFeel.SkinName = ''
+ StyleHot.LookAndFeel.SkinName = ''
ExplicitWidth = 273
Width = 273
end
inherited edtFechaIniFiltro: TcxDateEdit
+ Style.LookAndFeel.SkinName = ''
+ StyleDisabled.LookAndFeel.SkinName = ''
+ StyleFocused.LookAndFeel.SkinName = ''
+ StyleHot.LookAndFeel.SkinName = ''
ExplicitWidth = 121
Width = 121
end
inherited edtFechaFinFiltro: TcxDateEdit
Left = 337
+ Style.LookAndFeel.SkinName = ''
+ StyleDisabled.LookAndFeel.SkinName = ''
+ StyleFocused.LookAndFeel.SkinName = ''
+ StyleHot.LookAndFeel.SkinName = ''
ExplicitLeft = 337
ExplicitWidth = 121
Width = 121
@@ -162,6 +176,16 @@ inherited fEditorEjercicios: TfEditorEjercicios
inherited actNuevo: TAction
ImageIndex = 23
end
+ inherited actDuplicar: TAction
+ Enabled = False
+ Visible = False
+ end
+ object actCerrarEjercicio: TAction
+ Category = 'AccionesExtra'
+ Caption = 'Cerrar ejercicio'
+ OnExecute = actCerrarEjercicioExecute
+ OnUpdate = actCerrarEjercicioUpdate
+ end
end
inherited SmallImages: TPngImageList [5]
PngImages = <
diff --git a/Source/ApplicationBase/Ejercicios/Views/uEditorEjercicios.pas b/Source/ApplicationBase/Ejercicios/Views/uEditorEjercicios.pas
index b0a021c5..b7d589ce 100644
--- a/Source/ApplicationBase/Ejercicios/Views/uEditorEjercicios.pas
+++ b/Source/ApplicationBase/Ejercicios/Views/uEditorEjercicios.pas
@@ -17,7 +17,11 @@ uses
type
TfEditorEjercicios = class(TfEditorGridBase, IEditorEjercicios)
frViewEjercicios1: TfrViewEjercicios;
+ actCerrarEjercicio: TAction;
+ TBXItem38: TTBXItem;
procedure FormShow(Sender: TObject);
+ procedure actCerrarEjercicioExecute(Sender: TObject);
+ procedure actCerrarEjercicioUpdate(Sender: TObject);
private
FEjercicios: IBizEjercicio;
FController : IEjerciciosController;
@@ -30,10 +34,9 @@ type
procedure NuevoInterno; override;
procedure EliminarInterno; override;
procedure ModificarInterno; override;
- procedure DuplicarInterno; override;
public
- procedure PonerTitulos(const ATitulo: string = ''); override;
+ procedure PonerTitulos(const ATitulo: string = ''); override;
property Ejercicios: IBizEjercicio read GetEjercicios write SetEjercicios;
property Controller : IEjerciciosController read GetController write SetController;
constructor Create(AOwner: TComponent); override;
@@ -45,7 +48,7 @@ implementation
uses
uCustomEditor, uDataModuleEjercicios, uDataModuleUsuarios, uDialogUtils,
uEditorEjercicio, uEditorDBBase, uFactuGES_App,
- cxGrid, cxGridCustomTableView; //, uListaEjercicios;
+ cxGrid, cxGridCustomTableView, DateUtils;
{$R *.dfm}
@@ -116,22 +119,6 @@ begin
inherited;
end;
-procedure TfEditorEjercicios.DuplicarInterno;
-{var
- AEjercicio : IBizEjercicio;}
-begin
-AppFactuGES.ShowCapado;
-{
- inherited;
- AEjercicio := FController.Duplicar(Ejercicios);
- try
- FController.Ver(AEjercicio);
- finally
- actRefrescar.Execute;
- end;
-}
-end;
-
procedure TfEditorEjercicios.EliminarInterno;
begin
if (ShowConfirmMessage('Eliminar un ejercicio', Format('¿Desea borrar el ejercicio ''%s''?' + #10#13 + 'Tenga en cuenta que se eliminará también todo el plan general contable asociado al ejercicio.', [Ejercicios.NOMBRE])) = IDYES) then
@@ -144,6 +131,31 @@ begin
end;
end;
+procedure TfEditorEjercicios.actCerrarEjercicioExecute(Sender: TObject);
+var
+ Cadena: String;
+ Ano: Integer;
+begin
+ inherited;
+ Ano := YearOf(Ejercicios.FECHA_INICIO);
+ Cadena := 'Se creará un nuevo ejercicio ( Ejercicio ' + InttoStr(Ano + 1) + ' ) con los asientos de apertura correspondientes a los asientos de cierre del ejercicio seleccionado. ¿Desea continuar?';
+
+ if (Application.MessageBox(PChar(Cadena), 'Atención', MB_YESNO) = IDYES) then
+ if Controller.CerrarEjercicio(Ejercicios) then
+ begin
+ Ejercicios.DataTable.Refresh;
+ Cadena := 'Se ha cerrado correctamente el ejercicio ' + IntToStr(Ano) + '. El ejercicio ' + IntToStr(Ano + 1) + ' será el nuevo ejercicio activo';
+ Application.MessageBox(PChar(Cadena), 'FactuGES', MB_OK);
+ end;
+end;
+
+procedure TfEditorEjercicios.actCerrarEjercicioUpdate(Sender: TObject);
+begin
+ inherited;
+ (Sender as TAction).Enabled := HayDatos
+ and (FEjercicios.ESTADO = CTE_ABIERTO);
+end;
+
constructor TfEditorEjercicios.Create(AOwner: TComponent);
begin
inherited;
diff --git a/Source/ApplicationBase/Ejercicios/Views/uEditorElegirEjercicios.dfm b/Source/ApplicationBase/Ejercicios/Views/uEditorElegirEjercicios.dfm
new file mode 100644
index 00000000..a13405fd
--- /dev/null
+++ b/Source/ApplicationBase/Ejercicios/Views/uEditorElegirEjercicios.dfm
@@ -0,0 +1,217 @@
+inherited fEditorElegirEjercicios: TfEditorElegirEjercicios
+ Caption = 'fEditorElegirEjercicios'
+ ClientHeight = 533
+ ExplicitHeight = 567
+ PixelsPerInch = 96
+ TextHeight = 13
+ object JvgWizardHeader1: TJvgWizardHeader [0]
+ Left = 0
+ Top = 27
+ Width = 543
+ Height = 60
+ CaptionFont.Charset = DEFAULT_CHARSET
+ CaptionFont.Color = clWindowText
+ CaptionFont.Height = -11
+ CaptionFont.Name = 'Tahoma'
+ CaptionFont.Style = [fsBold]
+ CommentFont.Charset = DEFAULT_CHARSET
+ CommentFont.Color = clWindowText
+ CommentFont.Height = -11
+ CommentFont.Name = 'Tahoma'
+ CommentFont.Style = []
+ SymbolFont.Charset = DEFAULT_CHARSET
+ SymbolFont.Color = clHighlightText
+ SymbolFont.Height = -35
+ SymbolFont.Name = 'Wingdings'
+ SymbolFont.Style = [fsBold]
+ Captions.Strings = (
+ 'Seleccione la subcuenta')
+ Comments.Strings = (
+ ' ')
+ Gradient.FromColor = clHighlight
+ Gradient.ToColor = clWindow
+ Gradient.Active = False
+ Gradient.Orientation = fgdVertical
+ BufferedDraw = False
+ ExplicitLeft = -113
+ ExplicitWidth = 656
+ end
+ inherited TBXDock: TTBXDock
+ Top = 87
+ ExplicitTop = 87
+ inherited tbxMain: TTBXToolbar
+ ExplicitWidth = 269
+ inherited TBXItem36: TTBXItem
+ Action = actAnchoAuto2
+ end
+ end
+ inherited tbxFiltro: TTBXToolbar
+ inherited TBXItem34: TTBXItem
+ Action = actQuitarFiltro2
+ end
+ end
+ end
+ inherited StatusBar: TJvStatusBar
+ Top = 514
+ ExplicitTop = 514
+ end
+ inherited frViewEjercicios1: TfrViewEjercicios
+ Top = 162
+ Height = 303
+ ExplicitTop = 162
+ ExplicitHeight = 303
+ inherited cxGrid: TcxGrid
+ Height = 175
+ ExplicitHeight = 175
+ inherited cxGridView: TcxGridDBTableView
+ DataController.Summary.FooterSummaryItems = <
+ item
+ Format = '0 ejercicios'
+ Kind = skCount
+ Column = frViewEjercicios1.cxGridViewNOMBRE
+ end>
+ inherited cxGridViewID: TcxGridDBColumn
+ IsCaptionAssigned = True
+ end
+ end
+ end
+ inherited frViewFiltroBase1: TfrViewFiltroBase
+ inherited TBXDockablePanel1: TTBXDockablePanel
+ inherited dxLayoutControl1: TdxLayoutControl
+ inherited txtFiltroTodo: TcxTextEdit
+ Style.LookAndFeel.SkinName = ''
+ StyleDisabled.LookAndFeel.SkinName = ''
+ StyleFocused.LookAndFeel.SkinName = ''
+ StyleHot.LookAndFeel.SkinName = ''
+ end
+ inherited edtFechaIniFiltro: TcxDateEdit
+ Style.LookAndFeel.SkinName = ''
+ StyleDisabled.LookAndFeel.SkinName = ''
+ StyleFocused.LookAndFeel.SkinName = ''
+ StyleHot.LookAndFeel.SkinName = ''
+ end
+ inherited edtFechaFinFiltro: TcxDateEdit
+ Style.LookAndFeel.SkinName = ''
+ StyleDisabled.LookAndFeel.SkinName = ''
+ StyleFocused.LookAndFeel.SkinName = ''
+ StyleHot.LookAndFeel.SkinName = ''
+ end
+ end
+ end
+ end
+ inherited pnlAgrupaciones: TTBXDockablePanel
+ Top = 277
+ ExplicitTop = 277
+ end
+ inherited dxComponentPrinter: TdxComponentPrinter
+ inherited dxComponentPrinterLink: TdxGridReportLink
+ BuiltInReportLink = True
+ end
+ end
+ inherited cxViewGridPopupMenu: TcxGridPopupMenu
+ PopupMenus = <
+ item
+ GridView = frViewEjercicios1.cxGridView
+ HitTypes = [gvhtCell]
+ Index = 0
+ end>
+ end
+ end
+ inline frViewBarraSeleccion1: TfrViewBarraSeleccion [5]
+ Left = 0
+ Top = 465
+ Width = 543
+ Height = 49
+ Align = alBottom
+ Font.Charset = DEFAULT_CHARSET
+ Font.Color = clWindowText
+ Font.Height = -11
+ Font.Name = 'Tahoma'
+ Font.Style = []
+ ParentFont = False
+ TabOrder = 4
+ ReadOnly = False
+ ExplicitTop = 465
+ ExplicitWidth = 543
+ inherited JvFooter1: TJvFooter
+ Width = 543
+ ExplicitWidth = 543
+ inherited bSeleccionar: TJvFooterBtn
+ Left = 331
+ ExplicitLeft = 444
+ end
+ inherited bCancelar: TJvFooterBtn
+ Left = 435
+ ExplicitLeft = 435
+ end
+ end
+ inherited BarraSeleccionActionList: TActionList
+ inherited actSeleccionar: TAction
+ OnExecute = frViewBarraSeleccion1actSeleccionarExecute
+ OnUpdate = frViewBarraSeleccion1actSeleccionarUpdate
+ end
+ inherited actCancelar: TAction
+ OnExecute = frViewBarraSeleccion1actCancelarExecute
+ end
+ end
+ end
+ inherited EditorActionList: TActionList [6]
+ inherited actNuevo: TAction
+ Enabled = False
+ Visible = False
+ end
+ inherited actModificar: TAction
+ Enabled = False
+ Visible = False
+ end
+ inherited actGuardarCerrar: TAction
+ Visible = False
+ end
+ inherited actGuardar: TAction
+ Visible = False
+ end
+ inherited actEliminar: TAction
+ Enabled = False
+ Visible = False
+ end
+ inherited actRefrescar: TAction
+ Enabled = False
+ Visible = False
+ end
+ end
+ inherited SmallImages: TPngImageList [7]
+ end
+ inherited LargeImages: TPngImageList [8]
+ end
+ inherited JvFormStorage: TJvFormStorage [9]
+ end
+ inherited JvAppRegistryStorage: TJvAppRegistryStorage [10]
+ end
+ inherited dsDataTable: TDADataSource [11]
+ end
+ inherited StatusBarImages: TPngImageList [12]
+ end
+ object EditorSeleccionActionList: TActionList
+ Images = SmallImages
+ Left = 112
+ Top = 152
+ object actBuscar2: TAction
+ Category = 'Buscar'
+ Caption = 'Buscar'
+ ImageIndex = 10
+ ShortCut = 114
+ end
+ object actQuitarFiltro2: TAction
+ Category = 'Buscar'
+ Caption = 'Quitar filtro y ver todo'
+ ImageIndex = 19
+ OnExecute = actQuitarFiltro2Execute
+ end
+ object actAnchoAuto2: TAction
+ Category = 'Ver'
+ Caption = 'Ancho autom'#225'tico'
+ ImageIndex = 21
+ OnExecute = actAnchoAuto2Execute
+ end
+ end
+end
diff --git a/Source/ApplicationBase/Ejercicios/Views/uEditorElegirEjercicios.pas b/Source/ApplicationBase/Ejercicios/Views/uEditorElegirEjercicios.pas
new file mode 100644
index 00000000..4ea754db
--- /dev/null
+++ b/Source/ApplicationBase/Ejercicios/Views/uEditorElegirEjercicios.pas
@@ -0,0 +1,124 @@
+unit uEditorElegirEjercicios;
+
+interface
+
+uses
+ Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
+ Dialogs, uEditorEjercicios, Menus, DB, uDAInterfaces, uDADataTable,
+ JvAppStorage, JvAppRegistryStorage, JvComponentBase, JvFormPlacement, ImgList,
+ PngImageList, StdActns, ActnList, uCustomView, uViewBase, uViewGridBase,
+ uViewGrid, uViewEjercicios, ComCtrls, JvExComCtrls, JvStatusBar, TBX,
+ TB2ExtItems, TBXExtItems, TB2Item, TB2Dock, TB2Toolbar, dxGDIPlusClasses,
+ ExtCtrls, JvExControls, JvNavigationPane, uViewBarraSeleccion, uIEditorElegirEjercicios,
+ UBizEjercicios, JvgWizardHeader;
+
+type
+ TfEditorElegirEjercicios = class(TfEditorEjercicios, IEditorElegirEjercicios)
+ frViewBarraSeleccion1: TfrViewBarraSeleccion;
+ JvgWizardHeader1: TJvgWizardHeader;
+ EditorSeleccionActionList: TActionList;
+ actBuscar2: TAction;
+ actQuitarFiltro2: TAction;
+ actAnchoAuto2: TAction;
+ procedure frViewBarraSeleccion1actSeleccionarExecute(Sender: TObject);
+ procedure frViewBarraSeleccion1actSeleccionarUpdate(Sender: TObject);
+ procedure frViewBarraSeleccion1actCancelarExecute(Sender: TObject);
+ procedure FormShow(Sender: TObject);
+ procedure actAnchoAuto2Execute(Sender: TObject);
+ procedure actQuitarFiltro2Execute(Sender: TObject);
+ private
+
+ protected
+ procedure SetMultiSelect (AValue : Boolean);
+ function GetMultiSelect : Boolean;
+ function GetEjerciciosSeleccionados: IBizEjercicio;
+ procedure SetViewGrid(const Value: IViewGridBase); override;
+ procedure SetMensaje (const AValue: String);
+ function GetMensaje: String;
+ public
+ property Mensaje : String read GetMensaje write SetMensaje;
+ property EjerciciosSeleccionados: IBizEjercicio read GetEjerciciosSeleccionados;
+ property MultiSelect : Boolean read GetMultiSelect write SetMultiSelect;
+ end;
+
+
+implementation
+{$R *.dfm}
+
+uses uGridUtils, uDBSelectionListUtils, uEjerciciosController;
+
+{ TfEditorElegirEjercicios }
+
+procedure TfEditorElegirEjercicios.actAnchoAuto2Execute(Sender: TObject);
+begin
+ inherited;
+ actAnchoAuto.Execute;
+end;
+
+procedure TfEditorElegirEjercicios.actQuitarFiltro2Execute(Sender: TObject);
+begin
+ inherited;
+ actQuitarFiltro.Execute;
+end;
+
+procedure TfEditorElegirEjercicios.FormShow(Sender: TObject);
+begin
+ inherited;
+ EditorActionList.State := asSuspended;
+end;
+
+procedure TfEditorElegirEjercicios.frViewBarraSeleccion1actCancelarExecute(
+ Sender: TObject);
+begin
+ inherited;
+ Close;
+end;
+
+procedure TfEditorElegirEjercicios.frViewBarraSeleccion1actSeleccionarExecute(
+ Sender: TObject);
+begin
+ inherited;
+ ModalResult := mrOk;
+end;
+
+procedure TfEditorElegirEjercicios.frViewBarraSeleccion1actSeleccionarUpdate(
+ Sender: TObject);
+begin
+ inherited;
+ (Sender as TAction).Enabled := (ViewGrid._FocusedView.Controller.SelectedRowCount > 0)
+end;
+
+function TfEditorElegirEjercicios.GetEjerciciosSeleccionados: IBizEjercicio;
+begin
+ SeleccionarFilasDesdeGrid(ViewGrid._FocusedView, (Ejercicios as ISeleccionable).SelectedRecords);
+ // En SelectedRecords tengo los ID de las filas seleccionadas del grid
+ Result := (Controller as IEjerciciosController).ExtraerSeleccionados(Ejercicios) as IBizEjercicio;
+end;
+
+function TfEditorElegirEjercicios.GetMensaje: String;
+begin
+ Result := JvgWizardHeader1.Comments.Text;
+end;
+
+function TfEditorElegirEjercicios.GetMultiSelect: Boolean;
+begin
+ Result := ViewGrid.MultiSelect;
+end;
+
+procedure TfEditorElegirEjercicios.SetMensaje(const AValue: String);
+begin
+ JvgWizardHeader1.Comments.Text := AValue;
+end;
+
+procedure TfEditorElegirEjercicios.SetMultiSelect(AValue: Boolean);
+begin
+ ViewGrid.MultiSelect := AValue;
+end;
+
+procedure TfEditorElegirEjercicios.SetViewGrid(const Value: IViewGridBase);
+begin
+ inherited;
+ ViewGrid.OnDblClick := frViewBarraSeleccion1.actSeleccionar.OnExecute;
+end;
+
+end.
diff --git a/Source/ApplicationBase/Ejercicios/Views/uEjerciciosViewRegister.pas b/Source/ApplicationBase/Ejercicios/Views/uEjerciciosViewRegister.pas
index 7b493654..5673c489 100644
--- a/Source/ApplicationBase/Ejercicios/Views/uEjerciciosViewRegister.pas
+++ b/Source/ApplicationBase/Ejercicios/Views/uEjerciciosViewRegister.pas
@@ -8,18 +8,20 @@ procedure UnregisterViews;
implementation
uses
- uEditorRegistryUtils, uEditorEjercicio, uEditorEjercicios;
+ uEditorRegistryUtils, uEditorEjercicio, uEditorEjercicios, uEditorElegirEjercicios;
procedure RegisterViews;
begin
EditorRegistry.RegisterClass(TfEditorEjercicios, 'EditorEjercicios');
EditorRegistry.RegisterClass(TfEditorEjercicio, 'EditorEjercicio');
+ EditorRegistry.RegisterClass(TfEditorElegirEjercicios, 'EditorElegirEjercicios');
end;
procedure UnregisterViews;
begin
EditorRegistry.UnRegisterClass(TfEditorEjercicios);
EditorRegistry.UnRegisterClass(TfEditorEjercicio);
+ EditorRegistry.UnRegisterClass(TfEditorElegirEjercicios);
end;
end.
diff --git a/Source/Base/Base.res b/Source/Base/Base.res
index 1641339f..8b251f31 100644
Binary files a/Source/Base/Base.res and b/Source/Base/Base.res differ
diff --git a/Source/Cliente/FactuGES.rc b/Source/Cliente/FactuGES.rc
index b6f095d7..833e7417 100644
--- a/Source/Cliente/FactuGES.rc
+++ b/Source/Cliente/FactuGES.rc
@@ -1,7 +1,7 @@
MAINICON ICON "C:\Codigo Acana\Resources\Iconos\Factuges.ico"
1 VERSIONINFO
-FILEVERSION 2,2,7,0
-PRODUCTVERSION 2,2,7,0
+FILEVERSION 2,2,8,0
+PRODUCTVERSION 2,2,8,0
FILEFLAGSMASK 0x3FL
FILEFLAGS 0x00L
FILEOS 0x40004L
@@ -13,10 +13,10 @@ BEGIN
BLOCK "0C0A04E4"
BEGIN
VALUE "CompanyName", "Rodax Software S.L.\0"
- VALUE "FileVersion", "2.2.7.0\0"
+ VALUE "FileVersion", "2.2.8.0\0"
VALUE "InternalName", "FactuGES\0"
VALUE "ProductName", "FactuGES\0"
- VALUE "ProductVersion", "2.2.7.0\0"
+ VALUE "ProductVersion", "2.2.8.0\0"
END
END
BLOCK "VarFileInfo"
diff --git a/Source/Cliente/FactuGES.res b/Source/Cliente/FactuGES.res
index 0f6f3dd9..50b6bf30 100644
Binary files a/Source/Cliente/FactuGES.res and b/Source/Cliente/FactuGES.res differ
diff --git a/Source/GUIBase/uViewTotales.dfm b/Source/GUIBase/uViewTotales.dfm
index 3e8e4c8f..c51a60f8 100644
--- a/Source/GUIBase/uViewTotales.dfm
+++ b/Source/GUIBase/uViewTotales.dfm
@@ -1,14 +1,14 @@
inherited frViewTotales: TfrViewTotales
- Width = 451
- Height = 220
+ Width = 888
+ Height = 210
Align = alBottom
- ExplicitWidth = 451
- ExplicitHeight = 220
+ ExplicitWidth = 870
+ ExplicitHeight = 210
object dxLayoutControl1: TdxLayoutControl
AlignWithMargins = True
Left = 0
Top = 0
- Width = 451
+ Width = 888
Height = 217
Margins.Left = 0
Margins.Top = 0
@@ -19,37 +19,30 @@ inherited frViewTotales: TfrViewTotales
TabOrder = 0
TabStop = False
AutoContentSizes = [acsWidth, acsHeight]
- object Bevel1: TBevel
- Left = 104
- Top = 109
- Width = 73
- Height = 9
- Shape = bsBottomLine
- end
+ ExplicitWidth = 451
object Bevel3: TBevel
- Left = 278
+ Left = 436
Top = 28
Width = 3
Height = 122
Shape = bsRightLine
end
object Bevel4: TBevel
- Left = 390
- Top = 109
- Width = 192
+ Left = 548
+ Top = 70
+ Width = 210
Height = 9
Shape = bsBottomLine
end
object ImporteDto: TcxDBCurrencyEdit
Left = 175
- Top = 129
+ Top = 55
AutoSize = False
DataBinding.DataField = 'IMPORTE_DESCUENTO'
DataBinding.DataSource = DADataSource
- Enabled = False
ParentFont = False
Properties.Alignment.Horz = taRightJustify
- Properties.DisplayFormat = '-,0.00 '#8364';,0.00 '#8364
+ Properties.DisplayFormat = '-,0.00 '#8364';,0.00 '#8364
Properties.ReadOnly = True
Properties.UseLeftAlignmentOnEditing = False
Properties.UseThousandSeparator = True
@@ -62,19 +55,23 @@ inherited frViewTotales: TfrViewTotales
Style.Font.Style = []
Style.HotTrack = False
Style.LookAndFeel.NativeStyle = True
+ Style.LookAndFeel.SkinName = ''
Style.TextColor = clWindowText
Style.IsFontAssigned = True
StyleDisabled.LookAndFeel.NativeStyle = True
+ StyleDisabled.LookAndFeel.SkinName = ''
StyleDisabled.TextColor = clWindowText
StyleFocused.LookAndFeel.NativeStyle = True
+ StyleFocused.LookAndFeel.SkinName = ''
StyleHot.LookAndFeel.NativeStyle = True
- TabOrder = 5
+ StyleHot.LookAndFeel.SkinName = ''
+ TabOrder = 2
Height = 21
Width = 93
end
object ImporteIVA: TcxDBCurrencyEdit
- Left = 461
- Top = 55
+ Left = 619
+ Top = 105
AutoSize = False
DataBinding.DataField = 'IMPORTE_IVA'
DataBinding.DataSource = DADataSource
@@ -93,19 +90,23 @@ inherited frViewTotales: TfrViewTotales
Style.Font.Style = []
Style.HotTrack = False
Style.LookAndFeel.NativeStyle = True
+ Style.LookAndFeel.SkinName = ''
Style.TextColor = clWindowText
Style.IsFontAssigned = True
StyleDisabled.LookAndFeel.NativeStyle = True
+ StyleDisabled.LookAndFeel.SkinName = ''
StyleDisabled.TextColor = clWindowText
StyleFocused.LookAndFeel.NativeStyle = True
+ StyleFocused.LookAndFeel.SkinName = ''
StyleHot.LookAndFeel.NativeStyle = True
+ StyleHot.LookAndFeel.SkinName = ''
TabOrder = 9
Height = 21
Width = 137
end
object ImporteTotal: TcxDBCurrencyEdit
- Left = 391
- Top = 129
+ Left = 549
+ Top = 159
AutoSize = False
DataBinding.DataField = 'IMPORTE_TOTAL'
DataBinding.DataSource = DADataSource
@@ -124,20 +125,24 @@ inherited frViewTotales: TfrViewTotales
Style.Font.Style = []
Style.HotTrack = False
Style.LookAndFeel.NativeStyle = True
+ Style.LookAndFeel.SkinName = ''
Style.TextColor = clActiveCaption
Style.TextStyle = [fsBold]
Style.IsFontAssigned = True
StyleDisabled.LookAndFeel.NativeStyle = True
+ StyleDisabled.LookAndFeel.SkinName = ''
StyleDisabled.TextColor = clWindowText
StyleFocused.LookAndFeel.NativeStyle = True
+ StyleFocused.LookAndFeel.SkinName = ''
StyleHot.LookAndFeel.NativeStyle = True
+ StyleHot.LookAndFeel.SkinName = ''
TabOrder = 12
Height = 21
Width = 137
end
object edtDescuento: TcxDBSpinEdit
Left = 104
- Top = 129
+ Top = 55
AutoSize = False
DataBinding.DataField = 'DESCUENTO'
DataBinding.DataSource = DADataSource
@@ -155,19 +160,23 @@ inherited frViewTotales: TfrViewTotales
Style.Font.Style = []
Style.HotTrack = False
Style.LookAndFeel.NativeStyle = True
+ Style.LookAndFeel.SkinName = ''
Style.TextColor = clWindowText
Style.ButtonStyle = bts3D
Style.IsFontAssigned = True
StyleDisabled.LookAndFeel.NativeStyle = True
+ StyleDisabled.LookAndFeel.SkinName = ''
StyleFocused.LookAndFeel.NativeStyle = True
+ StyleFocused.LookAndFeel.SkinName = ''
StyleHot.LookAndFeel.NativeStyle = True
- TabOrder = 4
+ StyleHot.LookAndFeel.SkinName = ''
+ TabOrder = 1
Height = 21
Width = 65
end
object edtIVA: TcxDBSpinEdit
- Left = 390
- Top = 55
+ Left = 548
+ Top = 105
AutoSize = False
DataBinding.DataField = 'IVA'
DataBinding.DataSource = DADataSource
@@ -188,27 +197,30 @@ inherited frViewTotales: TfrViewTotales
Style.HotTrack = False
Style.LookAndFeel.Kind = lfStandard
Style.LookAndFeel.NativeStyle = True
+ Style.LookAndFeel.SkinName = ''
Style.TextColor = clWindowText
Style.ButtonStyle = bts3D
Style.IsFontAssigned = True
StyleDisabled.LookAndFeel.Kind = lfStandard
StyleDisabled.LookAndFeel.NativeStyle = True
+ StyleDisabled.LookAndFeel.SkinName = ''
StyleDisabled.TextColor = clWindowText
StyleFocused.LookAndFeel.Kind = lfStandard
StyleFocused.LookAndFeel.NativeStyle = True
+ StyleFocused.LookAndFeel.SkinName = ''
StyleHot.LookAndFeel.Kind = lfStandard
StyleHot.LookAndFeel.NativeStyle = True
+ StyleHot.LookAndFeel.SkinName = ''
TabOrder = 8
Height = 21
Width = 65
end
object ImporteBase: TcxDBCurrencyEdit
- Left = 390
+ Left = 548
Top = 28
AutoSize = False
DataBinding.DataField = 'BASE_IMPONIBLE'
DataBinding.DataSource = DADataSource
- Enabled = False
ParentFont = False
Properties.Alignment.Horz = taRightJustify
Properties.ReadOnly = True
@@ -223,19 +235,23 @@ inherited frViewTotales: TfrViewTotales
Style.Font.Style = [fsBold]
Style.HotTrack = False
Style.LookAndFeel.NativeStyle = True
+ Style.LookAndFeel.SkinName = ''
Style.TextColor = clWindowText
Style.IsFontAssigned = True
StyleDisabled.LookAndFeel.NativeStyle = True
+ StyleDisabled.LookAndFeel.SkinName = ''
StyleDisabled.TextColor = clWindowText
StyleFocused.LookAndFeel.NativeStyle = True
+ StyleFocused.LookAndFeel.SkinName = ''
StyleHot.LookAndFeel.NativeStyle = True
+ StyleHot.LookAndFeel.SkinName = ''
TabOrder = 7
Height = 21
Width = 92
end
object edtRE: TcxDBSpinEdit
- Left = 390
- Top = 82
+ Left = 548
+ Top = 132
AutoSize = False
DataBinding.DataField = 'RE'
DataBinding.DataSource = DADataSource
@@ -256,23 +272,27 @@ inherited frViewTotales: TfrViewTotales
Style.HotTrack = False
Style.LookAndFeel.Kind = lfStandard
Style.LookAndFeel.NativeStyle = True
+ Style.LookAndFeel.SkinName = ''
Style.TextColor = clWindowText
Style.ButtonStyle = bts3D
Style.IsFontAssigned = True
StyleDisabled.LookAndFeel.Kind = lfStandard
StyleDisabled.LookAndFeel.NativeStyle = True
+ StyleDisabled.LookAndFeel.SkinName = ''
StyleDisabled.TextColor = clWindowText
StyleFocused.LookAndFeel.Kind = lfStandard
StyleFocused.LookAndFeel.NativeStyle = True
+ StyleFocused.LookAndFeel.SkinName = ''
StyleHot.LookAndFeel.Kind = lfStandard
StyleHot.LookAndFeel.NativeStyle = True
+ StyleHot.LookAndFeel.SkinName = ''
TabOrder = 10
Height = 21
Width = 65
end
object ImporteRE: TcxDBCurrencyEdit
- Left = 461
- Top = 82
+ Left = 619
+ Top = 132
AutoSize = False
DataBinding.DataField = 'IMPORTE_RE'
DataBinding.DataSource = DADataSource
@@ -291,12 +311,16 @@ inherited frViewTotales: TfrViewTotales
Style.Font.Style = []
Style.HotTrack = False
Style.LookAndFeel.NativeStyle = True
+ Style.LookAndFeel.SkinName = ''
Style.TextColor = clWindowText
Style.IsFontAssigned = True
StyleDisabled.LookAndFeel.NativeStyle = True
+ StyleDisabled.LookAndFeel.SkinName = ''
StyleDisabled.TextColor = clWindowText
StyleFocused.LookAndFeel.NativeStyle = True
+ StyleFocused.LookAndFeel.SkinName = ''
StyleHot.LookAndFeel.NativeStyle = True
+ StyleHot.LookAndFeel.SkinName = ''
TabOrder = 11
Height = 21
Width = 56
@@ -322,19 +346,23 @@ inherited frViewTotales: TfrViewTotales
Style.Font.Style = [fsBold]
Style.HotTrack = False
Style.LookAndFeel.NativeStyle = True
+ Style.LookAndFeel.SkinName = ''
Style.TextColor = clWindowText
Style.IsFontAssigned = True
StyleDisabled.LookAndFeel.NativeStyle = True
+ StyleDisabled.LookAndFeel.SkinName = ''
StyleDisabled.TextColor = clWindowText
StyleFocused.LookAndFeel.NativeStyle = True
+ StyleFocused.LookAndFeel.SkinName = ''
StyleHot.LookAndFeel.NativeStyle = True
+ StyleHot.LookAndFeel.SkinName = ''
TabOrder = 0
Height = 21
Width = 147
end
object ePorte: TcxDBCurrencyEdit
Left = 104
- Top = 156
+ Top = 82
AutoSize = False
DataBinding.DataField = 'IMPORTE_PORTE'
DataBinding.DataSource = DADataSource
@@ -352,19 +380,23 @@ inherited frViewTotales: TfrViewTotales
Style.Font.Style = []
Style.HotTrack = False
Style.LookAndFeel.NativeStyle = True
+ Style.LookAndFeel.SkinName = ''
Style.TextColor = clWindowText
Style.IsFontAssigned = True
StyleDisabled.LookAndFeel.NativeStyle = True
+ StyleDisabled.LookAndFeel.SkinName = ''
StyleDisabled.TextColor = clWindowText
StyleFocused.LookAndFeel.NativeStyle = True
+ StyleFocused.LookAndFeel.SkinName = ''
StyleHot.LookAndFeel.NativeStyle = True
- TabOrder = 6
+ StyleHot.LookAndFeel.SkinName = ''
+ TabOrder = 3
Height = 21
Width = 147
end
object eIVA: TcxDBLookupComboBox
Left = 104
- Top = 55
+ Top = 109
DataBinding.DataField = 'ID_TIPO_IVA'
DataBinding.DataSource = DADataSource
Properties.DropDownListStyle = lsFixedList
@@ -383,28 +415,32 @@ inherited frViewTotales: TfrViewTotales
Style.HotTrack = False
Style.LookAndFeel.Kind = lfStandard
Style.LookAndFeel.NativeStyle = True
+ Style.LookAndFeel.SkinName = ''
Style.ButtonStyle = bts3D
Style.PopupBorderStyle = epbsFrame3D
StyleDisabled.LookAndFeel.Kind = lfStandard
StyleDisabled.LookAndFeel.NativeStyle = True
+ StyleDisabled.LookAndFeel.SkinName = ''
StyleFocused.LookAndFeel.Kind = lfStandard
StyleFocused.LookAndFeel.NativeStyle = True
+ StyleFocused.LookAndFeel.SkinName = ''
StyleHot.LookAndFeel.Kind = lfStandard
StyleHot.LookAndFeel.NativeStyle = True
- TabOrder = 1
+ StyleHot.LookAndFeel.SkinName = ''
+ TabOrder = 4
Width = 81
end
object bTiposIVA: TButton
- Left = 130
- Top = 55
+ Left = 288
+ Top = 109
Width = 132
Height = 21
Caption = 'Ver los tipos de IVA...'
- TabOrder = 2
+ TabOrder = 5
end
object cbRecargoEquivalencia: TcxDBCheckBox
Left = 104
- Top = 82
+ Top = 136
Caption = 'Aplicar recargo de equivalencia'
DataBinding.DataField = 'RECARGO_EQUIVALENCIA'
DataBinding.DataSource = DADataSource
@@ -419,13 +455,17 @@ inherited frViewTotales: TfrViewTotales
Style.HotTrack = False
Style.LookAndFeel.Kind = lfStandard
Style.LookAndFeel.NativeStyle = True
+ Style.LookAndFeel.SkinName = ''
StyleDisabled.LookAndFeel.Kind = lfStandard
StyleDisabled.LookAndFeel.NativeStyle = True
+ StyleDisabled.LookAndFeel.SkinName = ''
StyleFocused.LookAndFeel.Kind = lfStandard
StyleFocused.LookAndFeel.NativeStyle = True
+ StyleFocused.LookAndFeel.SkinName = ''
StyleHot.LookAndFeel.Kind = lfStandard
StyleHot.LookAndFeel.NativeStyle = True
- TabOrder = 3
+ StyleHot.LookAndFeel.SkinName = ''
+ TabOrder = 6
Width = 219
end
object dxLayoutControl1Group_Root: TdxLayoutGroup
@@ -448,6 +488,38 @@ inherited frViewTotales: TfrViewTotales
Control = eImporteNeto
ControlOptions.ShowBorder = False
end
+ object dxLayoutControl1Group7: TdxLayoutGroup
+ ShowCaption = False
+ Hidden = True
+ ShowBorder = False
+ object dxLayoutControl1Group10: TdxLayoutGroup
+ ShowCaption = False
+ Hidden = True
+ LayoutDirection = ldHorizontal
+ ShowBorder = False
+ object dxLayoutControl1Item4: TdxLayoutItem
+ AutoAligns = [aaVertical]
+ Caption = 'Descuento (%):'
+ Control = edtDescuento
+ ControlOptions.ShowBorder = False
+ end
+ object dxLayoutControl1Item1: TdxLayoutItem
+ AutoAligns = [aaVertical]
+ AlignHorz = ahClient
+ Caption = 'Importe de dto:'
+ ShowCaption = False
+ Control = ImporteDto
+ ControlOptions.ShowBorder = False
+ end
+ end
+ object dxLayoutControl1Item9: TdxLayoutItem
+ AutoAligns = [aaVertical]
+ AlignHorz = ahClient
+ Caption = 'Porte:'
+ Control = ePorte
+ ControlOptions.ShowBorder = False
+ end
+ end
object dxLayoutControl1Group6: TdxLayoutGroup
ShowCaption = False
Hidden = True
@@ -473,38 +545,6 @@ inherited frViewTotales: TfrViewTotales
Control = cbRecargoEquivalencia
ControlOptions.ShowBorder = False
end
- object dxLayoutControl1Item10: TdxLayoutItem
- Caption = ' '
- Control = Bevel1
- ControlOptions.ShowBorder = False
- end
- object dxLayoutControl1Group7: TdxLayoutGroup
- ShowCaption = False
- Hidden = True
- LayoutDirection = ldHorizontal
- ShowBorder = False
- object dxLayoutControl1Item4: TdxLayoutItem
- AutoAligns = [aaVertical]
- Caption = 'Descuento (%):'
- Control = edtDescuento
- ControlOptions.ShowBorder = False
- end
- object dxLayoutControl1Item1: TdxLayoutItem
- AutoAligns = [aaVertical]
- AlignHorz = ahClient
- Caption = 'Importe de dto:'
- ShowCaption = False
- Control = ImporteDto
- ControlOptions.ShowBorder = False
- end
- end
- object dxLayoutControl1Item9: TdxLayoutItem
- AutoAligns = [aaVertical]
- AlignHorz = ahClient
- Caption = 'Porte:'
- Control = ePorte
- ControlOptions.ShowBorder = False
- end
end
object dxLayoutControl1Group5: TdxLayoutGroup
AutoAligns = [aaVertical]
@@ -529,12 +569,26 @@ inherited frViewTotales: TfrViewTotales
ShowCaption = False
Hidden = True
ShowBorder = False
- object dxLayoutControl1Item12: TdxLayoutItem
- AutoAligns = [aaVertical]
- AlignHorz = ahClient
- Caption = 'Base imponible:'
- Control = ImporteBase
- ControlOptions.ShowBorder = False
+ object dxLayoutControl1Group11: TdxLayoutGroup
+ ShowCaption = False
+ Hidden = True
+ ShowBorder = False
+ object dxLayoutControl1Item12: TdxLayoutItem
+ AutoAligns = [aaVertical]
+ AlignHorz = ahClient
+ Caption = 'Base imponible:'
+ Control = ImporteBase
+ ControlOptions.ShowBorder = False
+ end
+ object dxLayoutControl1Item14: TdxLayoutItem
+ AutoAligns = [aaVertical]
+ AlignHorz = ahClient
+ Caption = ' '
+ Offsets.Bottom = 15
+ Offsets.Top = 15
+ Control = Bevel4
+ ControlOptions.ShowBorder = False
+ end
end
object dxLayoutControl1Group9: TdxLayoutGroup
ShowCaption = False
@@ -579,13 +633,6 @@ inherited frViewTotales: TfrViewTotales
ControlOptions.ShowBorder = False
end
end
- object dxLayoutControl1Item14: TdxLayoutItem
- AutoAligns = [aaVertical]
- AlignHorz = ahClient
- Caption = ' '
- Control = Bevel4
- ControlOptions.ShowBorder = False
- end
object dxLayoutControl1Item3: TdxLayoutItem
AutoAligns = [aaVertical]
AlignHorz = ahClient
diff --git a/Source/GUIBase/uViewTotales.pas b/Source/GUIBase/uViewTotales.pas
index 8c992e4e..74583762 100644
--- a/Source/GUIBase/uViewTotales.pas
+++ b/Source/GUIBase/uViewTotales.pas
@@ -39,8 +39,6 @@ type
dxLayoutControl1Item9: TdxLayoutItem;
ePorte: TcxDBCurrencyEdit;
dxLayoutControl1Group2: TdxLayoutGroup;
- Bevel1: TBevel;
- dxLayoutControl1Item10: TdxLayoutItem;
dxLayoutControl1Group7: TdxLayoutGroup;
Bevel3: TBevel;
dxLayoutControl1Item13: TdxLayoutItem;
@@ -59,6 +57,8 @@ type
dsTiposIVA: TDADataSource;
dxLayoutControl1Item16: TdxLayoutItem;
cbRecargoEquivalencia: TcxDBCheckBox;
+ dxLayoutControl1Group10: TdxLayoutGroup;
+ dxLayoutControl1Group11: TdxLayoutGroup;
public
{ Public declarations }
end;
diff --git a/Source/Modulos/Contabilidad/Views/uEditorElegirSubCuentas.dfm b/Source/Modulos/Contabilidad/Views/uEditorElegirSubCuentas.dfm
index df4b8d7d..bd6cbd84 100644
--- a/Source/Modulos/Contabilidad/Views/uEditorElegirSubCuentas.dfm
+++ b/Source/Modulos/Contabilidad/Views/uEditorElegirSubCuentas.dfm
@@ -1,13 +1,14 @@
inherited fEditorElegirSubCuentas: TfEditorElegirSubCuentas
Caption = 'Seleccionar subcuenta'
- ClientWidth = 656
- ExplicitWidth = 664
+ ClientWidth = 851
+ ExplicitWidth = 859
+ ExplicitHeight = 478
PixelsPerInch = 96
TextHeight = 13
object JvgWizardHeader1: TJvgWizardHeader [0]
Left = 0
Top = 27
- Width = 656
+ Width = 851
Height = 60
CaptionFont.Charset = DEFAULT_CHARSET
CaptionFont.Color = clWindowText
@@ -34,25 +35,26 @@ inherited fEditorElegirSubCuentas: TfEditorElegirSubCuentas
Gradient.Orientation = fgdVertical
BufferedDraw = False
ExplicitTop = 16
+ ExplicitWidth = 656
end
inherited JvNavPanelHeader: TJvNavPanelHeader
- Width = 656
+ Width = 851
Caption = 'Lista de subcuentas'
Visible = False
- ExplicitWidth = 656
+ ExplicitWidth = 851
inherited Image1: TImage
- Left = 629
+ Left = 824
ExplicitLeft = 629
end
end
inherited TBXDock: TTBXDock
Top = 87
- Width = 656
+ Width = 851
ExplicitTop = 87
- ExplicitWidth = 656
+ ExplicitWidth = 851
inherited tbxMain: TTBXToolbar
Align = alRight
- ExplicitWidth = 126
+ ExplicitWidth = 269
inherited TBXItem2: TTBXItem
Visible = False
end
@@ -70,29 +72,29 @@ inherited fEditorElegirSubCuentas: TfEditorElegirSubCuentas
end
end
inherited tbxFiltro: TTBXToolbar
- Left = 126
+ Left = 269
Top = 23
DockPos = 115
DockRow = 1
- ExplicitLeft = 126
+ ExplicitLeft = 269
ExplicitTop = 23
inherited TBXItem34: TTBXItem
Action = actQuitarFiltro2
end
end
inherited tbxMenu: TTBXToolbar
- ExplicitWidth = 656
+ ExplicitWidth = 851
end
end
inherited StatusBar: TJvStatusBar
- Width = 656
+ Width = 851
Visible = False
- ExplicitWidth = 656
+ ExplicitWidth = 851
end
inline frViewBarraSeleccion1: TfrViewBarraSeleccion [4]
Left = 0
Top = 376
- Width = 656
+ Width = 851
Height = 49
Align = alBottom
Font.Charset = DEFAULT_CHARSET
@@ -104,17 +106,17 @@ inherited fEditorElegirSubCuentas: TfEditorElegirSubCuentas
TabOrder = 4
ReadOnly = False
ExplicitTop = 376
- ExplicitWidth = 656
+ ExplicitWidth = 851
inherited JvFooter1: TJvFooter
- Width = 656
- ExplicitWidth = 656
+ Width = 851
+ ExplicitWidth = 851
inherited bSeleccionar: TJvFooterBtn
- Left = 444
+ Left = 639
ExplicitLeft = 444
end
inherited bCancelar: TJvFooterBtn
- Left = 548
- ExplicitLeft = 548
+ Left = 743
+ ExplicitLeft = 743
end
end
inherited BarraSeleccionActionList: TActionList
@@ -129,15 +131,15 @@ inherited fEditorElegirSubCuentas: TfEditorElegirSubCuentas
end
inherited frViewSubCuentas1: TfrViewSubCuentas [5]
Top = 162
- Width = 656
+ Width = 851
Height = 214
ExplicitTop = 162
- ExplicitWidth = 656
+ ExplicitWidth = 851
ExplicitHeight = 214
inherited cxGrid: TcxGrid
- Width = 656
+ Width = 851
Height = 86
- ExplicitWidth = 656
+ ExplicitWidth = 851
ExplicitHeight = 86
inherited cxGridView: TcxGridDBTableView
DataController.Summary.DefaultGroupSummaryItems = <
@@ -157,34 +159,42 @@ inherited fEditorElegirSubCuentas: TfEditorElegirSubCuentas
end
end
inherited frViewFiltroBase1: TfrViewFiltroBase
- Width = 656
- ExplicitWidth = 656
+ Width = 851
+ ExplicitWidth = 851
inherited TBXDockablePanel1: TTBXDockablePanel
- ExplicitWidth = 656
+ ExplicitWidth = 851
inherited dxLayoutControl1: TdxLayoutControl
- Width = 656
- ExplicitWidth = 656
+ Width = 851
+ ExplicitWidth = 851
inherited txtFiltroTodo: TcxTextEdit
- ExplicitWidth = 273
- Width = 273
+ Style.LookAndFeel.SkinName = ''
+ StyleDisabled.LookAndFeel.SkinName = ''
+ StyleFocused.LookAndFeel.SkinName = ''
+ StyleHot.LookAndFeel.SkinName = ''
end
inherited edtFechaIniFiltro: TcxDateEdit
- ExplicitWidth = 121
- Width = 121
+ Style.LookAndFeel.SkinName = ''
+ StyleDisabled.LookAndFeel.SkinName = ''
+ StyleFocused.LookAndFeel.SkinName = ''
+ StyleHot.LookAndFeel.SkinName = ''
end
inherited edtFechaFinFiltro: TcxDateEdit
- Left = 225
- ExplicitLeft = 225
+ Left = 372
+ Style.LookAndFeel.SkinName = ''
+ StyleDisabled.LookAndFeel.SkinName = ''
+ StyleFocused.LookAndFeel.SkinName = ''
+ StyleHot.LookAndFeel.SkinName = ''
+ ExplicitLeft = 372
ExplicitWidth = 421
Width = 421
end
end
inherited TBXAlignmentPanel1: TTBXAlignmentPanel
- Width = 656
- ExplicitWidth = 656
+ Width = 851
+ ExplicitWidth = 851
inherited tbxBotones: TTBXToolbar
- Width = 646
- ExplicitWidth = 646
+ Width = 841
+ ExplicitWidth = 841
end
end
end
@@ -192,13 +202,13 @@ inherited fEditorElegirSubCuentas: TfEditorElegirSubCuentas
inherited pnlAgrupaciones: TTBXDockablePanel
Top = 188
ExplicitTop = 188
- ExplicitWidth = 656
+ ExplicitWidth = 851
inherited TBXAlignmentPanel1: TTBXAlignmentPanel
- Width = 656
- ExplicitWidth = 656
+ Width = 851
+ ExplicitWidth = 851
inherited TBXToolbar1: TTBXToolbar
- Width = 646
- ExplicitWidth = 646
+ Width = 841
+ ExplicitWidth = 841
end
end
end
diff --git a/Source/Modulos/Contabilidad/Views/uEditorElegirSubCuentas.pas b/Source/Modulos/Contabilidad/Views/uEditorElegirSubCuentas.pas
index ca871fa7..f530a6c3 100644
--- a/Source/Modulos/Contabilidad/Views/uEditorElegirSubCuentas.pas
+++ b/Source/Modulos/Contabilidad/Views/uEditorElegirSubCuentas.pas
@@ -12,7 +12,7 @@ uses
JvNavigationPane, uViewBarraSeleccion, JvgWizardHeader, StdCtrls,
uBizSubCuentas, uIEditorElegirSubCuentas,
JvExComCtrls, JvStatusBar, uEditorSubCuentas, uViewSubCuentas,
- JSDialog, uDAInterfaces;
+ JSDialog, uDAInterfaces, dxGDIPlusClasses;
type
TfEditorElegirSubCuentas = class(TfEditorSubCuentas, IEditorElegirSubCuentas)
diff --git a/Source/Servicios/FactuGES.RODL b/Source/Servicios/FactuGES.RODL
index 7e3d6ba0..b5518819 100644
--- a/Source/Servicios/FactuGES.RODL
+++ b/Source/Servicios/FactuGES.RODL
@@ -390,6 +390,16 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/Source/Servicios/FactuGES_Intf.pas b/Source/Servicios/FactuGES_Intf.pas
index 193695e9..553b002d 100644
--- a/Source/Servicios/FactuGES_Intf.pas
+++ b/Source/Servicios/FactuGES_Intf.pas
@@ -624,6 +624,7 @@ type
['{E99052D5-4ED9-480C-B4D4-384E8C6E4B08}']
function GenerarPGC(const ID_EJERCICIO_COPIA: Integer; const ID_EJERCICIO: Integer): Boolean;
function darEjercicioActivo(const ID_EMPRESA: Integer): Integer;
+ function CerrarEjercicio(const ID_EJERCICIO_CIERRE: Integer; const ID_EJERCICIO_APERTURA: Integer): Boolean;
end;
{ CosrvEjercicios }
@@ -638,6 +639,7 @@ type
function GenerarPGC(const ID_EJERCICIO_COPIA: Integer; const ID_EJERCICIO: Integer): Boolean;
function darEjercicioActivo(const ID_EMPRESA: Integer): Integer;
+ function CerrarEjercicio(const ID_EJERCICIO_CIERRE: Integer; const ID_EJERCICIO_APERTURA: Integer): Boolean;
end;
{ IsrvReferencias }
@@ -1949,6 +1951,23 @@ begin
end
end;
+function TsrvEjercicios_Proxy.CerrarEjercicio(const ID_EJERCICIO_CIERRE: Integer; const ID_EJERCICIO_APERTURA: Integer): Boolean;
+begin
+ try
+ __Message.InitializeRequestMessage(__TransportChannel, 'FactuGES', __InterfaceName, 'CerrarEjercicio');
+ __Message.Write('ID_EJERCICIO_CIERRE', TypeInfo(Integer), ID_EJERCICIO_CIERRE, []);
+ __Message.Write('ID_EJERCICIO_APERTURA', TypeInfo(Integer), ID_EJERCICIO_APERTURA, []);
+ __Message.Finalize;
+
+ __TransportChannel.Dispatch(__Message);
+
+ __Message.Read('Result', TypeInfo(Boolean), result, []);
+ finally
+ __Message.UnsetAttributes(__TransportChannel);
+ __Message.FreeStream;
+ end
+end;
+
{ CosrvReferencias }
class function CosrvReferencias.Create(const aMessage: IROMessage; aTransportChannel: IROTransportChannel): IsrvReferencias;
diff --git a/Source/Servicios/FactuGES_Invk.pas b/Source/Servicios/FactuGES_Invk.pas
index e2f90918..4c3f3765 100644
--- a/Source/Servicios/FactuGES_Invk.pas
+++ b/Source/Servicios/FactuGES_Invk.pas
@@ -180,6 +180,7 @@ type
published
procedure Invoke_GenerarPGC(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
procedure Invoke_darEjercicioActivo(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
+ procedure Invoke_CerrarEjercicio(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
end;
TsrvReferencias_Invoker = class(TDataAbstractService_Invoker)
@@ -904,6 +905,28 @@ begin
end;
end;
+procedure TsrvEjercicios_Invoker.Invoke_CerrarEjercicio(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
+{ function CerrarEjercicio(const ID_EJERCICIO_CIERRE: Integer; const ID_EJERCICIO_APERTURA: Integer): Boolean; }
+var
+ ID_EJERCICIO_CIERRE: Integer;
+ ID_EJERCICIO_APERTURA: Integer;
+ lResult: Boolean;
+begin
+ try
+ __Message.Read('ID_EJERCICIO_CIERRE', TypeInfo(Integer), ID_EJERCICIO_CIERRE, []);
+ __Message.Read('ID_EJERCICIO_APERTURA', TypeInfo(Integer), ID_EJERCICIO_APERTURA, []);
+
+ lResult := (__Instance as IsrvEjercicios).CerrarEjercicio(ID_EJERCICIO_CIERRE, ID_EJERCICIO_APERTURA);
+
+ __Message.InitializeResponseMessage(__Transport, 'FactuGES', 'srvEjercicios', 'CerrarEjercicioResponse');
+ __Message.Write('Result', TypeInfo(Boolean), lResult, []);
+ __Message.Finalize;
+ __Message.UnsetAttributes(__Transport);
+
+ finally
+ end;
+end;
+
{ TsrvReferencias_Invoker }
procedure TsrvReferencias_Invoker.Invoke_DarNuevaReferencia(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
diff --git a/Source/Servicios/RODLFILE.res b/Source/Servicios/RODLFILE.res
index 1e5e1af0..616a3c44 100644
Binary files a/Source/Servicios/RODLFILE.res and b/Source/Servicios/RODLFILE.res differ
diff --git a/Source/Servidor/FactuGES_Server.RES b/Source/Servidor/FactuGES_Server.RES
index e5f2f037..14c2db77 100644
Binary files a/Source/Servidor/FactuGES_Server.RES and b/Source/Servidor/FactuGES_Server.RES differ
diff --git a/Source/Servidor/FactuGES_Server.dproj b/Source/Servidor/FactuGES_Server.dproj
index a73c67e1..5e05fe08 100644
--- a/Source/Servidor/FactuGES_Server.dproj
+++ b/Source/Servidor/FactuGES_Server.dproj
@@ -1,286 +1,284 @@
-
+
-
- {ebdcd25d-40d7-4146-91ec-a0ea4aa1dcd1}
- FactuGES_Server.dpr
- Debug
- AnyCPU
- DCC32
- ..\..\Output\Debug\Servidor\FactuGES_Server.exe
-
-
- 7.0
- False
- False
- 0
- 3
- ..\..\Output\Release\Servidor
- RELEASE
-
-
- 7.0
- 3
- ..\..\Output\Debug\Servidor
- DEBUG;
- True
-
-
- Delphi.Personality
-
-
-FalseTrueFalseTrueFalse2280FalseFalseFalseFalseFalse30821252Rodax Software S.L.2.2.8.0FactuGES (Servidor)2.2.8.0jueves, 08 de enero de 2009 20:14
-
-
- RemObjects Pascal Script - RemObjects SDK 3.0 Integration
- FactuGES_Server.dpr
-
-
-
-
- MainSource
-
-
-
-
-
-
- TDataAbstractService
-
-
-
-
-
- TDARemoteService
-
-
-
- TRORemoteDataModule
-
-
-
-
-
-
-
-
-
-
-
-
-
- TDataAbstractService
-
-
-
-
-
-
- TDataAbstractService
-
-
-
-
-
- TDARemoteService
-
-
-
-
-
-
-
-
-
- TDataModule
-
-
-
- TDataAbstractService
-
-
-
-
-
-
- TDataAbstractService
-
-
-
-
-
-
-
-
-
- TDataModule
-
-
-
- TDARemoteService
-
-
-
-
-
-
- TDataModule
-
-
-
- TDataAbstractService
-
-
-
-
-
-
- TDataModule
-
-
-
- TDataAbstractService
-
-
-
-
-
-
-
-
-
- TDataAbstractService
-
-
-
- TDataAbstractService
-
-
-
-
-
- TDataAbstractService
-
-
-
-
-
- TDataAbstractService
-
-
-
-
-
-
- TDataAbstractService
-
-
-
-
-
-
-
-
-
- TDataAbstractService
-
-
-
-
-
-
-
- TDataModule
-
-
-
- TDataAbstractService
-
-
-
-
-
-
-
- TDataModule
-
-
-
- TDataAbstractService
-
-
-
-
-
- TDataAbstractService
-
-
-
-
-
-
- TDataAbstractService
-
-
-
-
-
-
- TDataAbstractService
-
-
-
-
-
-
-
-
- TDataAbstractService
-
-
-
-
-
- TDataAbstractService
-
-
-
- TFrame
-
-
-
- TFrame
-
-
-
- TForm
-
-
-
- TFrame
-
-
-
- TDARemoteService
-
-
-
-
-
-
- TDataModule
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+ {ebdcd25d-40d7-4146-91ec-a0ea4aa1dcd1}
+ FactuGES_Server.dpr
+ Debug
+ AnyCPU
+ DCC32
+ ..\..\Output\Debug\Servidor\FactuGES_Server.exe
+
+
+ 7.0
+ False
+ False
+ 0
+ 3
+ ..\..\Output\Release\Servidor
+ RELEASE
+
+
+ 7.0
+ 3
+ ..\..\Output\Debug\Servidor
+ DEBUG;
+ True
+
+
+ Delphi.Personality
+
+
+ FalseTrueFalseTrueFalse2280FalseFalseFalseFalseFalse30821252Rodax Software S.L.2.2.8.0FactuGES (Servidor)2.2.8.0jueves, 08 de enero de 2009 20:14
+ RemObjects Pascal Script - RemObjects SDK 3.0 Integration
+ FactuGES_Server.dpr
+
+
+
+
+ MainSource
+
+
+
+
+
+
+ TDataAbstractService
+
+
+
+
+
+ TDARemoteService
+
+
+
+ TRORemoteDataModule
+
+
+
+
+
+
+
+
+
+
+
+
+
+ TDataAbstractService
+
+
+
+
+
+
+ TDataAbstractService
+
+
+
+
+
+ TDARemoteService
+
+
+
+
+
+
+
+
+
+ TDataModule
+
+
+
+ TDataAbstractService
+
+
+
+
+
+
+ TDataAbstractService
+
+
+
+
+
+
+
+
+
+ TDataModule
+
+
+
+ TDARemoteService
+
+
+
+
+
+
+ TDataModule
+
+
+
+ TDataAbstractService
+
+
+
+
+
+
+ TDataModule
+
+
+
+ TDataAbstractService
+
+
+
+
+
+
+
+
+
+ TDataAbstractService
+
+
+
+ TDataAbstractService
+
+
+
+
+
+ TDataAbstractService
+
+
+
+
+
+ TDataAbstractService
+
+
+
+
+
+
+ TDataAbstractService
+
+
+
+
+
+
+
+
+
+ TDataAbstractService
+
+
+
+
+
+
+
+ TDataModule
+
+
+
+ TDataAbstractService
+
+
+
+
+
+
+
+ TDataModule
+
+
+
+ TDataAbstractService
+
+
+
+
+
+ TDataAbstractService
+
+
+
+
+
+
+ TDataAbstractService
+
+
+
+
+
+
+ TDataAbstractService
+
+
+
+
+
+
+
+
+ TDataAbstractService
+
+
+
+
+
+ TDataAbstractService
+
+
+
+ TFrame
+
+
+
+ TFrame
+
+
+
+ TForm
+
+
+
+ TFrame
+
+
+
+ TDARemoteService
+
+
+
+
+
+
+ TDataModule
+
+
+
+
+
+
+
+
+
+
+
+
+