Se activa el informe de etiquetas en albaranes
git-svn-id: https://192.168.0.254/svn/Proyectos.Noviseda_FactuGES2/trunk@72 f33bb606-9f5c-448d-9c99-757f00063c96
This commit is contained in:
parent
9540b9e48b
commit
7f1a4504bb
BIN
Build/Build.fbl6
BIN
Build/Build.fbl6
Binary file not shown.
@ -49,8 +49,8 @@ type
|
|||||||
|
|
||||||
procedure Preview(AAlbaran : IBizAlbaranCliente; AllItems: Boolean = false);
|
procedure Preview(AAlbaran : IBizAlbaranCliente; AllItems: Boolean = false);
|
||||||
procedure Print(AAlbaran : IBizAlbaranCliente; AllItems: Boolean = false);
|
procedure Print(AAlbaran : IBizAlbaranCliente; AllItems: Boolean = false);
|
||||||
procedure EtiquetasPreview(AAlbaran : IBizAlbaranCliente; Const withRefCliente: Boolean);
|
procedure EtiquetasPreview(AAlbaran : IBizAlbaranCliente);
|
||||||
procedure EtiquetasPrint(AAlbaran : IBizAlbaranCliente; Const withRefCliente: Boolean);
|
procedure EtiquetasPrint(AAlbaran : IBizAlbaranCliente);
|
||||||
|
|
||||||
procedure RecalcularImportes(AAlbaran: IBizAlbaranCliente);
|
procedure RecalcularImportes(AAlbaran: IBizAlbaranCliente);
|
||||||
function EsModificable(AAlbaran: IBizAlbaranCliente): Boolean;
|
function EsModificable(AAlbaran: IBizAlbaranCliente): Boolean;
|
||||||
@ -149,8 +149,8 @@ type
|
|||||||
|
|
||||||
procedure Preview(AAlbaran : IBizAlbaranCliente; AllItems: Boolean = false);
|
procedure Preview(AAlbaran : IBizAlbaranCliente; AllItems: Boolean = false);
|
||||||
procedure Print(AAlbaran : IBizAlbaranCliente; AllItems: Boolean = false);
|
procedure Print(AAlbaran : IBizAlbaranCliente; AllItems: Boolean = false);
|
||||||
procedure EtiquetasPreview(AAlbaran : IBizAlbaranCliente; Const withRefCliente: Boolean);
|
procedure EtiquetasPreview(AAlbaran : IBizAlbaranCliente);
|
||||||
procedure EtiquetasPrint(AAlbaran : IBizAlbaranCliente; Const withRefCliente: Boolean);
|
procedure EtiquetasPrint(AAlbaran : IBizAlbaranCliente);
|
||||||
|
|
||||||
function DarListaAnosAlbaranes: TStringList;
|
function DarListaAnosAlbaranes: TStringList;
|
||||||
procedure FiltrarAno(AAlbaran: IBizAlbaranCliente; ADynWhereDataTable: WideString; const Ano: String);
|
procedure FiltrarAno(AAlbaran: IBizAlbaranCliente; ADynWhereDataTable: WideString; const Ano: String);
|
||||||
@ -857,25 +857,25 @@ begin
|
|||||||
Result := not (AAlbaran.ID_FACTURA > 0);
|
Result := not (AAlbaran.ID_FACTURA > 0);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TAlbaranesClienteController.EtiquetasPreview(AAlbaran: IBizAlbaranCliente; Const withRefCliente: Boolean);
|
procedure TAlbaranesClienteController.EtiquetasPreview(AAlbaran: IBizAlbaranCliente);
|
||||||
var
|
var
|
||||||
AReportController : IAlbaranesClienteReportController;
|
AReportController : IAlbaranesClienteReportController;
|
||||||
begin
|
begin
|
||||||
AReportController := TAlbaranesClienteReportController.Create;
|
AReportController := TAlbaranesClienteReportController.Create;
|
||||||
try
|
try
|
||||||
AReportController.EtiquetasPreview(AAlbaran.ID, withRefCliente);
|
AReportController.EtiquetasPreview(AAlbaran.ID);
|
||||||
finally
|
finally
|
||||||
AReportController := NIL;
|
AReportController := NIL;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TAlbaranesClienteController.EtiquetasPrint(AAlbaran: IBizAlbaranCliente; Const withRefCliente: Boolean);
|
procedure TAlbaranesClienteController.EtiquetasPrint(AAlbaran: IBizAlbaranCliente);
|
||||||
var
|
var
|
||||||
AReportController : IAlbaranesClienteReportController;
|
AReportController : IAlbaranesClienteReportController;
|
||||||
begin
|
begin
|
||||||
AReportController := TAlbaranesClienteReportController.Create;
|
AReportController := TAlbaranesClienteReportController.Create;
|
||||||
try
|
try
|
||||||
AReportController.EtiquetasPrint(AAlbaran.ID, withRefCliente);
|
AReportController.EtiquetasPrint(AAlbaran.ID);
|
||||||
finally
|
finally
|
||||||
AReportController := NIL;
|
AReportController := NIL;
|
||||||
end;
|
end;
|
||||||
|
|||||||
@ -12,8 +12,8 @@ type
|
|||||||
['{4BCC7A93-3322-494C-A3FA-118F4B62CB15}']
|
['{4BCC7A93-3322-494C-A3FA-118F4B62CB15}']
|
||||||
procedure Preview(const AListaID : TIntegerList);
|
procedure Preview(const AListaID : TIntegerList);
|
||||||
procedure Print(const AListaID : TIntegerList);
|
procedure Print(const AListaID : TIntegerList);
|
||||||
procedure EtiquetasPreview(const AID : integer; Const withRefCliente: Boolean);
|
procedure EtiquetasPreview(const AID : integer);
|
||||||
procedure EtiquetasPrint(const AID : integer; Const withRefCliente: Boolean);
|
procedure EtiquetasPrint(const AID : integer);
|
||||||
function ExportToWord(const AID: Integer; const AFileName : String = ''): Boolean;
|
function ExportToWord(const AID: Integer; const AFileName : String = ''): Boolean;
|
||||||
function ExportToPDF(const AID: Integer; const AFileName : String = ''): Boolean;
|
function ExportToPDF(const AID: Integer; const AFileName : String = ''): Boolean;
|
||||||
end;
|
end;
|
||||||
@ -31,8 +31,8 @@ type
|
|||||||
procedure Print(const AListaID : TIntegerList);
|
procedure Print(const AListaID : TIntegerList);
|
||||||
function ExportToWord(const AID: Integer; const AFileName : String = ''): Boolean;
|
function ExportToWord(const AID: Integer; const AFileName : String = ''): Boolean;
|
||||||
function ExportToPDF(const AID: Integer; const AFileName : String = ''): Boolean;
|
function ExportToPDF(const AID: Integer; const AFileName : String = ''): Boolean;
|
||||||
procedure EtiquetasPreview(const AID : integer; const withRefCliente: Boolean);
|
procedure EtiquetasPreview(const AID : integer);
|
||||||
procedure EtiquetasPrint(const AID : integer; const withRefCliente: Boolean);
|
procedure EtiquetasPrint(const AID : integer);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
@ -64,7 +64,7 @@ begin
|
|||||||
inherited;
|
inherited;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TAlbaranesClienteReportController.EtiquetasPreview(const AID: integer; const withRefCliente: Boolean);
|
procedure TAlbaranesClienteReportController.EtiquetasPreview(const AID: integer);
|
||||||
var
|
var
|
||||||
AStream: Binary;
|
AStream: Binary;
|
||||||
AEditor : IEditorAlbaranesClientePreview;
|
AEditor : IEditorAlbaranesClientePreview;
|
||||||
@ -73,7 +73,7 @@ begin
|
|||||||
|
|
||||||
ShowHourglassCursor;
|
ShowHourglassCursor;
|
||||||
try
|
try
|
||||||
AStream := FDataModule.GetEtiquetas(AID, withRefCliente);
|
AStream := FDataModule.GetEtiquetas(AID);
|
||||||
try
|
try
|
||||||
CreateEditor('EditorAlbaranesClientePreview', IEditorAlbaranesClientePreview, AEditor);
|
CreateEditor('EditorAlbaranesClientePreview', IEditorAlbaranesClientePreview, AEditor);
|
||||||
if Assigned(AEditor) then
|
if Assigned(AEditor) then
|
||||||
@ -92,7 +92,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TAlbaranesClienteReportController.EtiquetasPrint(const AID: integer; const withRefCliente: Boolean);
|
procedure TAlbaranesClienteReportController.EtiquetasPrint(const AID: integer);
|
||||||
var
|
var
|
||||||
AStream: Binary;
|
AStream: Binary;
|
||||||
AEditor : IEditorAlbaranesClientePreview;
|
AEditor : IEditorAlbaranesClientePreview;
|
||||||
@ -101,7 +101,7 @@ begin
|
|||||||
|
|
||||||
ShowHourglassCursor;
|
ShowHourglassCursor;
|
||||||
try
|
try
|
||||||
AStream := FDataModule.GetEtiquetas(AID, withRefCliente);
|
AStream := FDataModule.GetEtiquetas(AID);
|
||||||
try
|
try
|
||||||
CreateEditor('EditorAlbaranesClientePreview', IEditorAlbaranesClientePreview, AEditor);
|
CreateEditor('EditorAlbaranesClientePreview', IEditorAlbaranesClientePreview, AEditor);
|
||||||
if Assigned(AEditor) then
|
if Assigned(AEditor) then
|
||||||
|
|||||||
@ -41,7 +41,7 @@ type
|
|||||||
// Report
|
// Report
|
||||||
function GetRptAlbaranes(const ListaID: TIntegerList): Binary;
|
function GetRptAlbaranes(const ListaID: TIntegerList): Binary;
|
||||||
function GetRptWordAlbaran(const AID: Integer): Binary;
|
function GetRptWordAlbaran(const AID: Integer): Binary;
|
||||||
function GetEtiquetas(const AID: Integer; withRefCliente: Boolean): Binary;
|
function GetEtiquetas(const AID: Integer): Binary;
|
||||||
function GetRptPDFAlbaran(const AID: Integer): Binary;
|
function GetRptPDFAlbaran(const AID: Integer): Binary;
|
||||||
|
|
||||||
function GetAnosItems : TStringList;
|
function GetAnosItems : TStringList;
|
||||||
@ -76,7 +76,7 @@ begin
|
|||||||
try
|
try
|
||||||
Result := (RORemoteService as IsrvAlbaranesCliente).GenerarInforme(AParam);
|
Result := (RORemoteService as IsrvAlbaranesCliente).GenerarInforme(AParam);
|
||||||
finally
|
finally
|
||||||
FreeAndNil(AParam);
|
// FreeAndNil(AParam);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -165,9 +165,9 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TDataModuleAlbaranesCliente.GetEtiquetas(const AID: Integer; withRefCliente: Boolean): Binary;
|
function TDataModuleAlbaranesCliente.GetEtiquetas(const AID: Integer): Binary;
|
||||||
begin
|
begin
|
||||||
Result := (RORemoteService as IsrvAlbaranesCliente).GenerarInformeEtiquetas(AID, withRefCliente)
|
Result := (RORemoteService as IsrvAlbaranesCliente).GenerarInformeEtiquetas(AID)
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TDataModuleAlbaranesCliente.GetItem(const ID: Integer): IBizAlbaranCliente;
|
function TDataModuleAlbaranesCliente.GetItem(const ID: Integer): IBizAlbaranCliente;
|
||||||
|
|||||||
@ -11,7 +11,7 @@ type
|
|||||||
function GetRptAlbaranes(const AListaID: TIntegerList): Binary;
|
function GetRptAlbaranes(const AListaID: TIntegerList): Binary;
|
||||||
function GetRptWordAlbaran(const AID: Integer): Binary;
|
function GetRptWordAlbaran(const AID: Integer): Binary;
|
||||||
function GetRptPDFAlbaran(const AID: Integer): Binary;
|
function GetRptPDFAlbaran(const AID: Integer): Binary;
|
||||||
function GetEtiquetas(const AID: Integer; withRefCliente: Boolean): Binary;
|
function GetEtiquetas(const AID: Integer): Binary;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|||||||
@ -539,7 +539,7 @@ object RptAlbaranesCliente: TRptAlbaranesCliente
|
|||||||
Top = 16
|
Top = 16
|
||||||
end
|
end
|
||||||
object frxReport: TfrxReport
|
object frxReport: TfrxReport
|
||||||
Version = '4.7.71'
|
Version = '4.8.11'
|
||||||
DotMatrixReport = False
|
DotMatrixReport = False
|
||||||
EngineOptions.DoublePass = True
|
EngineOptions.DoublePass = True
|
||||||
IniFile = '\Software\Fast Reports'
|
IniFile = '\Software\Fast Reports'
|
||||||
@ -550,82 +550,6 @@ object RptAlbaranesCliente: TRptAlbaranesCliente
|
|||||||
ReportOptions.CreateDate = 39065.872423495400000000
|
ReportOptions.CreateDate = 39065.872423495400000000
|
||||||
ReportOptions.LastChange = 40196.760630046290000000
|
ReportOptions.LastChange = 40196.760630046290000000
|
||||||
ScriptLanguage = 'PascalScript'
|
ScriptLanguage = 'PascalScript'
|
||||||
ScriptText.Strings = (
|
|
||||||
'var'
|
|
||||||
' Pagina: Variant;'
|
|
||||||
''
|
|
||||||
''
|
|
||||||
'procedure Memo2OnBeforePrint(Sender: TfrxComponent);'
|
|
||||||
'begin'
|
|
||||||
' Memo2.Lines.Clear;'
|
|
||||||
' if (StrToFloat(<frxDBCabecera."IMPORTE_TOTAL">) < 0) then'
|
|
||||||
' Memo2.Lines.Add('#39'ORDEN DE DEVOLUCI'#211'N'#39')'
|
|
||||||
' else'
|
|
||||||
' Memo2.Lines.Add('#39'ALBAR'#193'N DE CLIENTE'#39')'
|
|
||||||
'end;'
|
|
||||||
''
|
|
||||||
'procedure Memo5OnBeforePrint(Sender: TfrxComponent);'
|
|
||||||
'begin'
|
|
||||||
' if (StrToFloat(<frxDBCabecera."IMPORTE_TOTAL">) < 0) then'
|
|
||||||
' begin'
|
|
||||||
' Memo5.Lines.Clear;'
|
|
||||||
' Memo5.Lines.Add('#39'N'#186' orden:'#39');'
|
|
||||||
' end;'
|
|
||||||
'end;'
|
|
||||||
''
|
|
||||||
'procedure Memo9OnBeforePrint(Sender: TfrxComponent);'
|
|
||||||
'begin'
|
|
||||||
' if (StrToFloat(<frxDBCabecera."IMPORTE_TOTAL">) < 0) then'
|
|
||||||
' begin'
|
|
||||||
' Memo9.Lines.Clear;'
|
|
||||||
' Memo9.Lines.Add('#39'Fecha orden:'#39');'
|
|
||||||
' end;'
|
|
||||||
'end;'
|
|
||||||
''
|
|
||||||
'procedure PageHeader1OnBeforePrint(Sender: TfrxComponent);'
|
|
||||||
'begin'
|
|
||||||
' if not Engine.FinalPass then'
|
|
||||||
' Set('#39'TotalPaginas'#39', (<TotalPaginas> + 1));'
|
|
||||||
''
|
|
||||||
' if Engine.FinalPass then'
|
|
||||||
' Set('#39'Pagina'#39', (<Pagina> + 1));'
|
|
||||||
'end;'
|
|
||||||
''
|
|
||||||
'procedure frxReportOnStartReport(Sender: TfrxComponent);'
|
|
||||||
'begin'
|
|
||||||
' Set('#39'Pagina'#39', 0);'
|
|
||||||
' Set('#39'TotalPaginas'#39', 0);'
|
|
||||||
'end;'
|
|
||||||
''
|
|
||||||
'procedure Memo26OnBeforePrint(Sender: TfrxComponent);'
|
|
||||||
'begin'
|
|
||||||
|
|
||||||
' if <ConObservacionesIncidencias> and (<frxDBCabecera."OBSERVAC' +
|
|
||||||
'IONES"> <> '#39#39') then'
|
|
||||||
|
|
||||||
' Memo26.Visible := True ' +
|
|
||||||
' '
|
|
||||||
' else'
|
|
||||||
' Memo26.Visible := False '
|
|
||||||
'end;'
|
|
||||||
''
|
|
||||||
'procedure Memo27OnBeforePrint(Sender: TfrxComponent);'
|
|
||||||
'begin'
|
|
||||||
'{ '
|
|
||||||
|
|
||||||
' if <ConObservacionesIncidencias> and (<frxDBCabecera."INCIDENC' +
|
|
||||||
'IAS"> <> '#39#39') then'
|
|
||||||
|
|
||||||
' Memo27.Visible := True ' +
|
|
||||||
' '
|
|
||||||
' else'
|
|
||||||
' Memo27.Visible := False'
|
|
||||||
'} '
|
|
||||||
'end;'
|
|
||||||
''
|
|
||||||
'begin'
|
|
||||||
''
|
|
||||||
'end.')
|
|
||||||
ShowProgress = False
|
ShowProgress = False
|
||||||
StoreInDFM = False
|
StoreInDFM = False
|
||||||
OnStartReport = 'frxReportOnStartReport'
|
OnStartReport = 'frxReportOnStartReport'
|
||||||
|
|||||||
@ -8,7 +8,7 @@ uses
|
|||||||
uDADataTable, uDACDSDataTable, DB, uDAClasses, frxChart, frxGradient,
|
uDADataTable, uDACDSDataTable, DB, uDAClasses, frxChart, frxGradient,
|
||||||
frxChBox, frxCross, frxOLE, frxBarcode, frxRich, uDABINAdapter, uROTypes,
|
frxChBox, frxCross, frxOLE, frxBarcode, frxRich, uDABINAdapter, uROTypes,
|
||||||
uDAInterfaces, uDADataStreamer, IBCustomDataSet, IBQuery, IBDatabase,
|
uDAInterfaces, uDADataStreamer, IBCustomDataSet, IBQuery, IBDatabase,
|
||||||
uDAMemDataTable, frxExportPDF, FactuGES_Intf, uDABin2DataStreamer;
|
uDAMemDataTable, frxExportPDF, FactuGES_Intf, uDABin2DataStreamer, uROClient;
|
||||||
|
|
||||||
type
|
type
|
||||||
TRptAlbaranesCliente = class(TDataModule)
|
TRptAlbaranesCliente = class(TDataModule)
|
||||||
@ -69,7 +69,7 @@ type
|
|||||||
procedure _GenerarAlbaran(const AID: Integer);
|
procedure _GenerarAlbaran(const AID: Integer);
|
||||||
public
|
public
|
||||||
function GenerarAlbaran(const AListaID : TIntegerArray): Binary;
|
function GenerarAlbaran(const AListaID : TIntegerArray): Binary;
|
||||||
function GenerarEtiquetas(const AID : Integer; withRefCliente: Boolean): Binary;
|
function GenerarEtiquetas(const AID : Integer): Binary;
|
||||||
function GenerarAlbaranEnPDF(const ListaID : TIntegerArray): Binary;
|
function GenerarAlbaranEnPDF(const ListaID : TIntegerArray): Binary;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -170,7 +170,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TRptAlbaranesCliente.GenerarEtiquetas(const AID: Integer; withRefCliente: Boolean): Binary;
|
function TRptAlbaranesCliente.GenerarEtiquetas(const AID: Integer): Binary;
|
||||||
{var
|
{var
|
||||||
dsMaster: IDADataset;
|
dsMaster: IDADataset;
|
||||||
dsDetail: IDADataset;
|
dsDetail: IDADataset;
|
||||||
|
|||||||
@ -34,7 +34,7 @@ type
|
|||||||
protected
|
protected
|
||||||
{ IsrvAlbaranesCliente methods }
|
{ IsrvAlbaranesCliente methods }
|
||||||
function GenerarInforme(const ListaID: TIntegerArray): Binary;
|
function GenerarInforme(const ListaID: TIntegerArray): Binary;
|
||||||
function GenerarInformeEtiquetas(const ID: Integer; const withRefCliente: Boolean): Binary;
|
function GenerarInformeEtiquetas(const ID: Integer): Binary;
|
||||||
function GenerarInformeEnWord(const ID: Integer): Binary;
|
function GenerarInformeEnWord(const ID: Integer): Binary;
|
||||||
function GenerarInformeEnPDF(const ListaID: TIntegerArray): Binary;
|
function GenerarInformeEnPDF(const ListaID: TIntegerArray): Binary;
|
||||||
end;
|
end;
|
||||||
@ -92,19 +92,18 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TsrvAlbaranesCliente.GenerarInformeEtiquetas(const ID: Integer; const withRefCliente: Boolean): Binary;
|
function TsrvAlbaranesCliente.GenerarInformeEtiquetas(const ID: Integer): Binary;
|
||||||
//var
|
var
|
||||||
// AReportGenerator : TRptAlbaranesCliente;
|
AReportGenerator : TRptAlbaranesCliente;
|
||||||
begin
|
begin
|
||||||
Result := NIL;
|
Result := NIL;
|
||||||
{
|
|
||||||
AReportGenerator := TRptAlbaranesCliente.Create(nil);
|
AReportGenerator := TRptAlbaranesCliente.Create(nil);
|
||||||
try
|
try
|
||||||
Result := AReportGenerator.GenerarEtiquetas(ID, withRefCliente);
|
Result := AReportGenerator.GenerarEtiquetas(ID);
|
||||||
finally
|
finally
|
||||||
FreeAndNIL(AReportGenerator);
|
FreeAndNIL(AReportGenerator);
|
||||||
end;
|
end;
|
||||||
}
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TsrvAlbaranesCliente.GenerarInforme(const ListaID: TIntegerArray): Binary;
|
function TsrvAlbaranesCliente.GenerarInforme(const ListaID: TIntegerArray): Binary;
|
||||||
|
|||||||
@ -2,7 +2,6 @@ inherited fEditorAlbaranesCliente: TfEditorAlbaranesCliente
|
|||||||
Caption = 'Lista de albaranes de cliente'
|
Caption = 'Lista de albaranes de cliente'
|
||||||
ClientWidth = 583
|
ClientWidth = 583
|
||||||
ExplicitWidth = 591
|
ExplicitWidth = 591
|
||||||
ExplicitHeight = 240
|
|
||||||
PixelsPerInch = 96
|
PixelsPerInch = 96
|
||||||
TextHeight = 13
|
TextHeight = 13
|
||||||
inherited JvNavPanelHeader: TJvNavPanelHeader
|
inherited JvNavPanelHeader: TJvNavPanelHeader
|
||||||
@ -130,16 +129,18 @@ inherited fEditorAlbaranesCliente: TfEditorAlbaranesCliente
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
inherited tbxFiltro: TSpTBXToolbar
|
inherited tbxFiltro: TSpTBXToolbar
|
||||||
ExplicitWidth = 427
|
ExplicitWidth = 435
|
||||||
inherited lblAno: TSpTBXLabelItem
|
inherited lblAno: TSpTBXLabelItem
|
||||||
Visible = True
|
Visible = True
|
||||||
end
|
end
|
||||||
inherited cbxListaAnos: TSpTBXComboBox
|
|
||||||
Visible = True
|
|
||||||
end
|
|
||||||
inherited sepAno: TSpTBXSeparatorItem
|
inherited sepAno: TSpTBXSeparatorItem
|
||||||
Visible = True
|
Visible = True
|
||||||
end
|
end
|
||||||
|
inherited cbxListaAnos: TSpTBXComboBox
|
||||||
|
Left = 33
|
||||||
|
Visible = True
|
||||||
|
ExplicitLeft = 33
|
||||||
|
end
|
||||||
end
|
end
|
||||||
inherited tbxMenu: TSpTBXToolbar
|
inherited tbxMenu: TSpTBXToolbar
|
||||||
ExplicitWidth = 583
|
ExplicitWidth = 583
|
||||||
@ -151,9 +152,9 @@ inherited fEditorAlbaranesCliente: TfEditorAlbaranesCliente
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
inherited TBXTMain2: TSpTBXToolbar
|
inherited TBXTMain2: TSpTBXToolbar
|
||||||
Left = 427
|
Left = 435
|
||||||
Visible = True
|
Visible = True
|
||||||
ExplicitLeft = 427
|
ExplicitLeft = 435
|
||||||
ExplicitWidth = 117
|
ExplicitWidth = 117
|
||||||
object TBXItem42: TSpTBXItem
|
object TBXItem42: TSpTBXItem
|
||||||
Action = actEnviar
|
Action = actEnviar
|
||||||
@ -2094,6 +2095,10 @@ inherited fEditorAlbaranesCliente: TfEditorAlbaranesCliente
|
|||||||
item
|
item
|
||||||
Caption = 'Imprimir la lista de albaranes actual'
|
Caption = 'Imprimir la lista de albaranes actual'
|
||||||
Value = 200
|
Value = 200
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Caption = 'Imprimir etiquetas para albar'#225'n'
|
||||||
|
Value = 300
|
||||||
end>
|
end>
|
||||||
ButtonBar.Buttons = [cbCancel]
|
ButtonBar.Buttons = [cbCancel]
|
||||||
MainIcon = tdiCustom
|
MainIcon = tdiCustom
|
||||||
@ -2405,6 +2410,10 @@ inherited fEditorAlbaranesCliente: TfEditorAlbaranesCliente
|
|||||||
item
|
item
|
||||||
Caption = 'Previsualizar la lista de albaranes actual'
|
Caption = 'Previsualizar la lista de albaranes actual'
|
||||||
Value = 200
|
Value = 200
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Caption = 'Previsualizar etiquetas para albar'#225'n'
|
||||||
|
Value = 300
|
||||||
end>
|
end>
|
||||||
ButtonBar.Buttons = [cbCancel]
|
ButtonBar.Buttons = [cbCancel]
|
||||||
MainIcon = tdiCustom
|
MainIcon = tdiCustom
|
||||||
|
|||||||
@ -12,7 +12,8 @@ uses
|
|||||||
uEditorGridBase,
|
uEditorGridBase,
|
||||||
uBizAlbaranesCliente, uIEditorAlbaranesCliente, uAlbaranesClienteController,
|
uBizAlbaranesCliente, uIEditorAlbaranesCliente, uAlbaranesClienteController,
|
||||||
uCustomView, uViewBase, uViewBarraSeleccion, uViewGridBase,
|
uCustomView, uViewBase, uViewBarraSeleccion, uViewGridBase,
|
||||||
uViewAlbaranesCliente, JvExComCtrls, JvStatusBar, JSDialog, uDAInterfaces;
|
uViewAlbaranesCliente, JvExComCtrls, JvStatusBar, JSDialog, uDAInterfaces,
|
||||||
|
StdCtrls, TntStdCtrls, SpTBXEditors;
|
||||||
|
|
||||||
type
|
type
|
||||||
TfEditorAlbaranesCliente = class(TfEditorGridBase, IEditorAlbaranesCliente)
|
TfEditorAlbaranesCliente = class(TfEditorGridBase, IEditorAlbaranesCliente)
|
||||||
@ -511,6 +512,19 @@ begin
|
|||||||
if Respuesta <> IDCANCEL then
|
if Respuesta <> IDCANCEL then
|
||||||
begin
|
begin
|
||||||
case JsPrevisualizarDialog.CustomButtonResult of
|
case JsPrevisualizarDialog.CustomButtonResult of
|
||||||
|
300 : begin // Lista de elementos visibles
|
||||||
|
if AllItems then
|
||||||
|
begin
|
||||||
|
SeleccionarFilasDesdeGrid(ViewGrid._FocusedView, (Albaranes as ISeleccionable).SelectedRecords);
|
||||||
|
AAlbaranes := (Controller as IAlbaranesClienteController).ExtraerSeleccionados(Albaranes) as IBizAlbaranCliente;
|
||||||
|
end
|
||||||
|
else
|
||||||
|
AAlbaranes := Albaranes;
|
||||||
|
|
||||||
|
if Assigned(AAlbaranes) then
|
||||||
|
FController.Preview(AAlbaranes, AllItems);
|
||||||
|
end;
|
||||||
|
|
||||||
200 : begin // Lista de elementos visibles
|
200 : begin // Lista de elementos visibles
|
||||||
inherited;
|
inherited;
|
||||||
end;
|
end;
|
||||||
|
|||||||
@ -372,8 +372,6 @@
|
|||||||
</Parameter>
|
</Parameter>
|
||||||
<Parameter Name="ID" DataType="Integer" Flag="In" >
|
<Parameter Name="ID" DataType="Integer" Flag="In" >
|
||||||
</Parameter>
|
</Parameter>
|
||||||
<Parameter Name="withRefCliente" DataType="Boolean" Flag="In" >
|
|
||||||
</Parameter>
|
|
||||||
</Parameters>
|
</Parameters>
|
||||||
</Operation>
|
</Operation>
|
||||||
<Operation Name="GenerarInformeEnWord" UID="{FFBAE6B2-0F77-4F2F-A630-9A09AD7A2379}">
|
<Operation Name="GenerarInformeEnWord" UID="{FFBAE6B2-0F77-4F2F-A630-9A09AD7A2379}">
|
||||||
|
|||||||
@ -587,7 +587,7 @@ type
|
|||||||
IsrvAlbaranesCliente = interface(IDataAbstractService)
|
IsrvAlbaranesCliente = interface(IDataAbstractService)
|
||||||
['{6E910718-9AB0-47BB-9875-B0DE66A68D7A}']
|
['{6E910718-9AB0-47BB-9875-B0DE66A68D7A}']
|
||||||
function GenerarInforme(const ListaID: TIntegerArray): Binary;
|
function GenerarInforme(const ListaID: TIntegerArray): Binary;
|
||||||
function GenerarInformeEtiquetas(const ID: Integer; const withRefCliente: Boolean): Binary;
|
function GenerarInformeEtiquetas(const ID: Integer): Binary;
|
||||||
function GenerarInformeEnWord(const ID: Integer): Binary;
|
function GenerarInformeEnWord(const ID: Integer): Binary;
|
||||||
function GenerarInformeEnPDF(const ListaID: TIntegerArray): Binary;
|
function GenerarInformeEnPDF(const ListaID: TIntegerArray): Binary;
|
||||||
end;
|
end;
|
||||||
@ -603,7 +603,7 @@ type
|
|||||||
function __GetInterfaceName:string; override;
|
function __GetInterfaceName:string; override;
|
||||||
|
|
||||||
function GenerarInforme(const ListaID: TIntegerArray): Binary;
|
function GenerarInforme(const ListaID: TIntegerArray): Binary;
|
||||||
function GenerarInformeEtiquetas(const ID: Integer; const withRefCliente: Boolean): Binary;
|
function GenerarInformeEtiquetas(const ID: Integer): Binary;
|
||||||
function GenerarInformeEnWord(const ID: Integer): Binary;
|
function GenerarInformeEnWord(const ID: Integer): Binary;
|
||||||
function GenerarInformeEnPDF(const ListaID: TIntegerArray): Binary;
|
function GenerarInformeEnPDF(const ListaID: TIntegerArray): Binary;
|
||||||
end;
|
end;
|
||||||
@ -1898,13 +1898,12 @@ begin
|
|||||||
end
|
end
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TsrvAlbaranesCliente_Proxy.GenerarInformeEtiquetas(const ID: Integer; const withRefCliente: Boolean): Binary;
|
function TsrvAlbaranesCliente_Proxy.GenerarInformeEtiquetas(const ID: Integer): Binary;
|
||||||
begin
|
begin
|
||||||
try
|
try
|
||||||
result := nil;
|
result := nil;
|
||||||
__Message.InitializeRequestMessage(__TransportChannel, 'FactuGES', __InterfaceName, 'GenerarInformeEtiquetas');
|
__Message.InitializeRequestMessage(__TransportChannel, 'FactuGES', __InterfaceName, 'GenerarInformeEtiquetas');
|
||||||
__Message.Write('ID', TypeInfo(Integer), ID, []);
|
__Message.Write('ID', TypeInfo(Integer), ID, []);
|
||||||
__Message.Write('withRefCliente', TypeInfo(Boolean), withRefCliente, []);
|
|
||||||
__Message.Finalize;
|
__Message.Finalize;
|
||||||
|
|
||||||
__TransportChannel.Dispatch(__Message);
|
__TransportChannel.Dispatch(__Message);
|
||||||
|
|||||||
@ -1101,19 +1101,17 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TsrvAlbaranesCliente_Invoker.Invoke_GenerarInformeEtiquetas(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
|
procedure TsrvAlbaranesCliente_Invoker.Invoke_GenerarInformeEtiquetas(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
|
||||||
{ function GenerarInformeEtiquetas(const ID: Integer; const withRefCliente: Boolean): Binary; }
|
{ function GenerarInformeEtiquetas(const ID: Integer): Binary; }
|
||||||
var
|
var
|
||||||
ID: Integer;
|
ID: Integer;
|
||||||
withRefCliente: Boolean;
|
|
||||||
lResult: Binary;
|
lResult: Binary;
|
||||||
__lObjectDisposer: TROObjectDisposer;
|
__lObjectDisposer: TROObjectDisposer;
|
||||||
begin
|
begin
|
||||||
lResult := nil;
|
lResult := nil;
|
||||||
try
|
try
|
||||||
__Message.Read('ID', TypeInfo(Integer), ID, []);
|
__Message.Read('ID', TypeInfo(Integer), ID, []);
|
||||||
__Message.Read('withRefCliente', TypeInfo(Boolean), withRefCliente, []);
|
|
||||||
|
|
||||||
lResult := (__Instance as IsrvAlbaranesCliente).GenerarInformeEtiquetas(ID, withRefCliente);
|
lResult := (__Instance as IsrvAlbaranesCliente).GenerarInformeEtiquetas(ID);
|
||||||
|
|
||||||
__Message.InitializeResponseMessage(__Transport, 'FactuGES', 'srvAlbaranesCliente', 'GenerarInformeEtiquetasResponse');
|
__Message.InitializeResponseMessage(__Transport, 'FactuGES', 'srvAlbaranesCliente', 'GenerarInformeEtiquetasResponse');
|
||||||
__Message.Write('Result', TypeInfo(Binary), lResult, []);
|
__Message.Write('Result', TypeInfo(Binary), lResult, []);
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@ -14,7 +14,7 @@ BEGIN
|
|||||||
BEGIN
|
BEGIN
|
||||||
VALUE "FileVersion", "1.0.0.0\0"
|
VALUE "FileVersion", "1.0.0.0\0"
|
||||||
VALUE "ProductVersion", "1.0.0.0\0"
|
VALUE "ProductVersion", "1.0.0.0\0"
|
||||||
VALUE "CompileDate", "martes, 26 de enero de 2010 18:45\0"
|
VALUE "CompileDate", "miércoles, 27 de enero de 2010 16:46\0"
|
||||||
END
|
END
|
||||||
END
|
END
|
||||||
BLOCK "VarFileInfo"
|
BLOCK "VarFileInfo"
|
||||||
|
|||||||
Reference in New Issue
Block a user