Presupuestos: repaso general.
git-svn-id: https://192.168.0.254/svn/Proyectos.Tecsitel_FactuGES2/trunk@216 0c75b7a4-871f-7646-8a2f-f78d34cc349f
This commit is contained in:
parent
51b2569d5a
commit
f538f77267
File diff suppressed because one or more lines are too long
@ -606,7 +606,7 @@ object RptPresupuestosCliente: TRptPresupuestosCliente
|
|||||||
PrintOptions.Printer = 'Por defecto'
|
PrintOptions.Printer = 'Por defecto'
|
||||||
PrintOptions.PrintOnSheet = 0
|
PrintOptions.PrintOnSheet = 0
|
||||||
ReportOptions.CreateDate = 39065.872423495400000000
|
ReportOptions.CreateDate = 39065.872423495400000000
|
||||||
ReportOptions.LastChange = 39428.443868634260000000
|
ReportOptions.LastChange = 39460.834465046300000000
|
||||||
ScriptLanguage = 'PascalScript'
|
ScriptLanguage = 'PascalScript'
|
||||||
ScriptText.Strings = (
|
ScriptText.Strings = (
|
||||||
''
|
''
|
||||||
@ -704,6 +704,26 @@ object RptPresupuestosCliente: TRptPresupuestosCliente
|
|||||||
' '
|
' '
|
||||||
'end;'
|
'end;'
|
||||||
''
|
''
|
||||||
|
'procedure Memo45OnBeforePrint(Sender: TfrxComponent);'
|
||||||
|
'begin'
|
||||||
|
' if Engine.FinalPass then'
|
||||||
|
' begin '
|
||||||
|
' Set('#39'Capitulo'#39', (<Capitulo> + 1));'
|
||||||
|
' if (<NumCapitulos> = 1) then'
|
||||||
|
|
||||||
|
' MasterData1.Visible := False; ' +
|
||||||
|
' '
|
||||||
|
' end'
|
||||||
|
' else'
|
||||||
|
' Set('#39'NumCapitulos'#39', (<NumCapitulos> + 1)); '
|
||||||
|
'end;'
|
||||||
|
''
|
||||||
|
'procedure Memo47OnBeforePrint(Sender: TfrxComponent);'
|
||||||
|
'begin'
|
||||||
|
' if (Length(<frxDBCabecera."OBSERVACIONES">) = 0) then'
|
||||||
|
' Memo47.Visible := False; '
|
||||||
|
'end;'
|
||||||
|
''
|
||||||
'begin'
|
'begin'
|
||||||
''
|
''
|
||||||
'end.')
|
'end.')
|
||||||
|
|||||||
@ -141,7 +141,7 @@ var
|
|||||||
dsCapitulos: IDADataset;
|
dsCapitulos: IDADataset;
|
||||||
I: Integer;
|
I: Integer;
|
||||||
begin
|
begin
|
||||||
AStream := TMemoryStream.Create;
|
//AStream := TMemoryStream.Create;
|
||||||
|
|
||||||
try
|
try
|
||||||
{ dsCabecera := schReport.NewDataset(FConnection, ds_InformeCabecera, ['ID'], [AID]);
|
{ dsCabecera := schReport.NewDataset(FConnection, ds_InformeCabecera, ['ID'], [AID]);
|
||||||
@ -188,7 +188,7 @@ begin
|
|||||||
frxReport.LoadFromFile(DarRutaInformes + rptInforme, True);
|
frxReport.LoadFromFile(DarRutaInformes + rptInforme, True);
|
||||||
frxReport.PrepareReport(False);
|
frxReport.PrepareReport(False);
|
||||||
finally
|
finally
|
||||||
AStream.Free;
|
//AStream.Free;
|
||||||
dsCabecera := Nil;
|
dsCabecera := Nil;
|
||||||
dsCapitulos := Nil;
|
dsCapitulos := Nil;
|
||||||
end;
|
end;
|
||||||
|
|||||||
@ -1,51 +1,37 @@
|
|||||||
inherited frViewDetallesPresupuestoCliente: TfrViewDetallesPresupuestoCliente
|
inherited frViewDetallesPresupuestoCliente: TfrViewDetallesPresupuestoCliente
|
||||||
inherited ToolBar1: TToolBar
|
inherited ToolBar1: TToolBar
|
||||||
Height = 73
|
Height = 100
|
||||||
ExplicitHeight = 73
|
ExplicitHeight = 100
|
||||||
inherited ToolButton3: TToolButton
|
inherited FontName: TJvFontComboBox [4]
|
||||||
Wrap = False
|
Left = 56
|
||||||
end
|
|
||||||
inherited ToolButton4: TToolButton
|
|
||||||
Left = 278
|
|
||||||
Top = 0
|
|
||||||
ExplicitLeft = 278
|
|
||||||
ExplicitTop = 0
|
|
||||||
end
|
|
||||||
inherited ToolButton14: TToolButton
|
|
||||||
Left = 334
|
|
||||||
Top = 0
|
|
||||||
ExplicitLeft = 334
|
|
||||||
ExplicitTop = 0
|
|
||||||
end
|
|
||||||
inherited FontName: TJvFontComboBox
|
|
||||||
Top = 22
|
Top = 22
|
||||||
|
ExplicitLeft = 56
|
||||||
ExplicitTop = 22
|
ExplicitTop = 22
|
||||||
end
|
end
|
||||||
|
inherited ToolButton14: TToolButton [5]
|
||||||
|
Left = 201
|
||||||
|
Wrap = False
|
||||||
|
ExplicitLeft = 201
|
||||||
|
end
|
||||||
inherited FontSize: TEdit
|
inherited FontSize: TEdit
|
||||||
|
Left = 266
|
||||||
Top = 22
|
Top = 22
|
||||||
|
ExplicitLeft = 266
|
||||||
ExplicitTop = 22
|
ExplicitTop = 22
|
||||||
end
|
end
|
||||||
inherited UpDown1: TUpDown
|
inherited UpDown1: TUpDown
|
||||||
|
Left = 308
|
||||||
Top = 22
|
Top = 22
|
||||||
|
ExplicitLeft = 308
|
||||||
ExplicitTop = 22
|
ExplicitTop = 22
|
||||||
end
|
end
|
||||||
inherited ToolButton13: TToolButton
|
inherited ToolButton11: TToolButton [8]
|
||||||
|
Left = 325
|
||||||
Top = 22
|
Top = 22
|
||||||
|
ExplicitLeft = 325
|
||||||
ExplicitTop = 22
|
ExplicitTop = 22
|
||||||
end
|
end
|
||||||
inherited ToolButton6: TToolButton
|
inherited ToolButton12: TToolButton [9]
|
||||||
Top = 22
|
|
||||||
ExplicitTop = 22
|
|
||||||
end
|
|
||||||
inherited ToolButton7: TToolButton
|
|
||||||
Top = 22
|
|
||||||
ExplicitTop = 22
|
|
||||||
end
|
|
||||||
inherited ToolButton8: TToolButton
|
|
||||||
Top = 22
|
|
||||||
ExplicitTop = 22
|
|
||||||
end
|
|
||||||
inherited ToolButton12: TToolButton
|
|
||||||
Left = 0
|
Left = 0
|
||||||
Top = 22
|
Top = 22
|
||||||
Wrap = True
|
Wrap = True
|
||||||
@ -53,37 +39,53 @@ inherited frViewDetallesPresupuestoCliente: TfrViewDetallesPresupuestoCliente
|
|||||||
ExplicitTop = 22
|
ExplicitTop = 22
|
||||||
ExplicitHeight = 30
|
ExplicitHeight = 30
|
||||||
end
|
end
|
||||||
inherited ToolButton9: TToolButton
|
inherited ToolButton9: TToolButton [10]
|
||||||
Left = 0
|
Left = 0
|
||||||
Top = 52
|
Top = 52
|
||||||
ExplicitLeft = 0
|
ExplicitLeft = 0
|
||||||
ExplicitTop = 52
|
ExplicitTop = 52
|
||||||
end
|
end
|
||||||
inherited ToolButton10: TToolButton
|
inherited ToolButton10: TToolButton [11]
|
||||||
Left = 145
|
Left = 145
|
||||||
Top = 52
|
Top = 52
|
||||||
ExplicitLeft = 145
|
ExplicitLeft = 145
|
||||||
ExplicitTop = 52
|
ExplicitTop = 52
|
||||||
end
|
end
|
||||||
inherited ToolButton11: TToolButton
|
inherited ToolButton13: TToolButton [12]
|
||||||
Left = 270
|
Left = 0
|
||||||
Top = 52
|
Top = 52
|
||||||
ExplicitLeft = 270
|
Wrap = True
|
||||||
|
ExplicitLeft = 0
|
||||||
ExplicitTop = 52
|
ExplicitTop = 52
|
||||||
|
ExplicitHeight = 30
|
||||||
|
end
|
||||||
|
inherited ToolButton6: TToolButton [13]
|
||||||
|
Left = 0
|
||||||
|
Top = 82
|
||||||
|
ExplicitLeft = 0
|
||||||
|
ExplicitTop = 82
|
||||||
|
end
|
||||||
|
inherited ToolButton7: TToolButton [14]
|
||||||
|
Left = 66
|
||||||
|
Top = 82
|
||||||
|
ExplicitLeft = 66
|
||||||
|
ExplicitTop = 82
|
||||||
|
end
|
||||||
|
inherited ToolButton8: TToolButton [15]
|
||||||
|
Left = 133
|
||||||
|
Top = 82
|
||||||
|
ExplicitLeft = 133
|
||||||
|
ExplicitTop = 82
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
inherited cxGrid: TcxGrid
|
inherited cxGrid: TcxGrid
|
||||||
Top = 99
|
Top = 126
|
||||||
Height = 205
|
Height = 178
|
||||||
ExplicitTop = 99
|
ExplicitTop = 99
|
||||||
ExplicitHeight = 205
|
ExplicitHeight = 205
|
||||||
inherited cxGridView: TcxGridDBTableView
|
|
||||||
OptionsView.ShowEditButtons = gsebNever
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
inherited TBXDock1: TTBXDock
|
inherited TBXDock1: TTBXDock
|
||||||
Top = 73
|
Top = 100
|
||||||
ExplicitTop = 73
|
ExplicitTop = 68
|
||||||
ExplicitWidth = 451
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@ -163,14 +163,6 @@ inherited frViewPresupuestosCliente: TfrViewPresupuestosCliente
|
|||||||
inherited dxLayoutControl1: TdxLayoutControl
|
inherited dxLayoutControl1: TdxLayoutControl
|
||||||
Width = 931
|
Width = 931
|
||||||
ExplicitWidth = 931
|
ExplicitWidth = 931
|
||||||
inherited txtFiltroTodo: TcxTextEdit
|
|
||||||
ExplicitWidth = 273
|
|
||||||
Width = 273
|
|
||||||
end
|
|
||||||
inherited edtFechaIniFiltro: TcxDateEdit
|
|
||||||
ExplicitWidth = 121
|
|
||||||
Width = 121
|
|
||||||
end
|
|
||||||
inherited edtFechaFinFiltro: TcxDateEdit
|
inherited edtFechaFinFiltro: TcxDateEdit
|
||||||
Left = 383
|
Left = 383
|
||||||
ExplicitLeft = 383
|
ExplicitLeft = 383
|
||||||
|
|||||||
@ -51,9 +51,6 @@ type
|
|||||||
cxGridViewINCIDENCIAS: TcxGridDBColumn;
|
cxGridViewINCIDENCIAS: TcxGridDBColumn;
|
||||||
procedure cxGridActiveTabChanged(Sender: TcxCustomGrid; ALevel:
|
procedure cxGridActiveTabChanged(Sender: TcxCustomGrid; ALevel:
|
||||||
TcxGridLevel);
|
TcxGridLevel);
|
||||||
procedure cxGridViewCODIGOCustomDrawCell(Sender: TcxCustomGridTableView;
|
|
||||||
ACanvas: TcxCanvas; AViewInfo: TcxGridTableDataCellViewInfo; var
|
|
||||||
ADone: Boolean);
|
|
||||||
procedure cxGridViewStylesGetContentStyle(Sender: TcxCustomGridTableView;
|
procedure cxGridViewStylesGetContentStyle(Sender: TcxCustomGridTableView;
|
||||||
ARecord: TcxCustomGridRecord; AItem: TcxCustomGridTableItem; out
|
ARecord: TcxCustomGridRecord; AItem: TcxCustomGridTableItem; out
|
||||||
AStyle: TcxStyle);
|
AStyle: TcxStyle);
|
||||||
@ -178,9 +175,10 @@ begin
|
|||||||
AnadirFiltroFechas;
|
AnadirFiltroFechas;
|
||||||
|
|
||||||
//Finalmente activamos el filtro si tenemos algo
|
//Finalmente activamos el filtro si tenemos algo
|
||||||
if cxGridView.DataController.Filter.IsEmpty
|
if cxGridView.DataController.Filter.IsEmpty then
|
||||||
then cxGridView.DataController.Filter.Active := False
|
cxGridView.DataController.Filter.Active := False
|
||||||
else cxGridView.DataController.Filter.Active := True;
|
else
|
||||||
|
cxGridView.DataController.Filter.Active := True;
|
||||||
cxGrid.ActiveLevel.GridView := cxGridView;
|
cxGrid.ActiveLevel.GridView := cxGridView;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -190,19 +188,6 @@ begin
|
|||||||
RefrescarFiltro;
|
RefrescarFiltro;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TfrViewPresupuestosCliente.cxGridViewCODIGOCustomDrawCell(Sender:
|
|
||||||
TcxCustomGridTableView; ACanvas: TcxCanvas; AViewInfo:
|
|
||||||
TcxGridTableDataCellViewInfo; var ADone: Boolean);
|
|
||||||
var
|
|
||||||
R: TRect;
|
|
||||||
begin
|
|
||||||
inherited;
|
|
||||||
{ R := AViewInfo.ContentBounds;
|
|
||||||
ACanvas.FillRect(R);
|
|
||||||
ACanvas.DrawImage(PngImageList, R.Left, R.Top, 2);
|
|
||||||
ADone := True;}
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TfrViewPresupuestosCliente.cxGridViewIDCustomDrawCell(
|
procedure TfrViewPresupuestosCliente.cxGridViewIDCustomDrawCell(
|
||||||
Sender: TcxCustomGridTableView; ACanvas: TcxCanvas;
|
Sender: TcxCustomGridTableView; ACanvas: TcxCanvas;
|
||||||
AViewInfo: TcxGridTableDataCellViewInfo; var ADone: Boolean);
|
AViewInfo: TcxGridTableDataCellViewInfo; var ADone: Boolean);
|
||||||
@ -215,9 +200,9 @@ begin
|
|||||||
|
|
||||||
if (cxGridView.DataController.DisplayTexts[AViewInfo.GridRecord.RecordIndex,
|
if (cxGridView.DataController.DisplayTexts[AViewInfo.GridRecord.RecordIndex,
|
||||||
cxGridViewINCIDENCIASACTIVAS.Index] = 'Sin incidencias') then
|
cxGridViewINCIDENCIASACTIVAS.Index] = 'Sin incidencias') then
|
||||||
ACanvas.DrawImage(PngImageList, R.Left, R.Top, 0)
|
ACanvas.DrawImage(PngImageList, R.Left + 2, R.Top + 2, 0)
|
||||||
else
|
else
|
||||||
ACanvas.DrawImage(PngImageList, R.Left, R.Top, 1);
|
ACanvas.DrawImage(PngImageList, R.Left + 2, R.Top + 2, 1);
|
||||||
ADone := True;
|
ADone := True;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user