Obra:
- Activar la operación de duplicar una obra - Añadir en el grid la columna de subcontrata git-svn-id: https://192.168.0.254/svn/Proyectos.Tecsitel_FactuGES2/trunk@357 0c75b7a4-871f-7646-8a2f-f78d34cc349f
This commit is contained in:
parent
d5dddc5278
commit
dc4e7c7c4b
@ -161,7 +161,7 @@ begin
|
|||||||
try
|
try
|
||||||
DuplicarRegistros(AObra.DataTable, Result.DataTable, mdrActual);
|
DuplicarRegistros(AObra.DataTable, Result.DataTable, mdrActual);
|
||||||
|
|
||||||
// Hay que dejar algunos campos como si fuera un Obra nuevo
|
// Hay que dejar algunos campos como si fuera una obra nuevo
|
||||||
Result.Edit;
|
Result.Edit;
|
||||||
with Result do
|
with Result do
|
||||||
begin
|
begin
|
||||||
|
|||||||
@ -2,12 +2,17 @@ inherited fEditorObras: TfEditorObras
|
|||||||
Left = 489
|
Left = 489
|
||||||
Top = 325
|
Top = 325
|
||||||
Caption = 'Lista de obras'
|
Caption = 'Lista de obras'
|
||||||
ExplicitHeight = 471
|
ClientHeight = 503
|
||||||
|
ClientWidth = 853
|
||||||
|
ExplicitWidth = 861
|
||||||
|
ExplicitHeight = 530
|
||||||
PixelsPerInch = 96
|
PixelsPerInch = 96
|
||||||
TextHeight = 13
|
TextHeight = 13
|
||||||
inherited JvNavPanelHeader: TJvNavPanelHeader
|
inherited JvNavPanelHeader: TJvNavPanelHeader
|
||||||
|
Width = 853
|
||||||
Caption = 'Lista de obras'
|
Caption = 'Lista de obras'
|
||||||
inherited Image1: TImage
|
inherited Image1: TImage
|
||||||
|
Left = 826
|
||||||
Picture.Data = {
|
Picture.Data = {
|
||||||
0A54504E474F626A65637489504E470D0A1A0A0000000D494844520000001800
|
0A54504E474F626A65637489504E470D0A1A0A0000000D494844520000001800
|
||||||
0000180806000000E0773DF80000000970485973000017120000171201679FD2
|
0000180806000000E0773DF80000000970485973000017120000171201679FD2
|
||||||
@ -30,6 +35,7 @@ inherited fEditorObras: TfEditorObras
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
inherited TBXDock: TTBXDock
|
inherited TBXDock: TTBXDock
|
||||||
|
Width = 853
|
||||||
inherited tbxMain: TTBXToolbar
|
inherited tbxMain: TTBXToolbar
|
||||||
ExplicitWidth = 474
|
ExplicitWidth = 474
|
||||||
end
|
end
|
||||||
@ -42,17 +48,24 @@ inherited fEditorObras: TfEditorObras
|
|||||||
Visible = False
|
Visible = False
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
inherited tbxMenu: TTBXToolbar
|
||||||
|
ExplicitWidth = 853
|
||||||
|
end
|
||||||
inherited TBXTMain2: TTBXToolbar
|
inherited TBXTMain2: TTBXToolbar
|
||||||
Left = 275
|
Left = 275
|
||||||
DockPos = 275
|
DockPos = 275
|
||||||
ExplicitLeft = 275
|
ExplicitLeft = 275
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
inherited StatusBar: TJvStatusBar
|
||||||
|
Top = 484
|
||||||
|
Width = 853
|
||||||
|
end
|
||||||
inline frViewObras1: TfrViewObras [3]
|
inline frViewObras1: TfrViewObras [3]
|
||||||
Left = 0
|
Left = 0
|
||||||
Top = 102
|
Top = 102
|
||||||
Width = 543
|
Width = 853
|
||||||
Height = 323
|
Height = 382
|
||||||
Align = alClient
|
Align = alClient
|
||||||
Font.Charset = DEFAULT_CHARSET
|
Font.Charset = DEFAULT_CHARSET
|
||||||
Font.Color = clWindowText
|
Font.Color = clWindowText
|
||||||
@ -66,8 +79,8 @@ inherited fEditorObras: TfEditorObras
|
|||||||
ExplicitWidth = 543
|
ExplicitWidth = 543
|
||||||
ExplicitHeight = 323
|
ExplicitHeight = 323
|
||||||
inherited cxGrid: TcxGrid
|
inherited cxGrid: TcxGrid
|
||||||
Width = 543
|
Width = 853
|
||||||
Height = 195
|
Height = 254
|
||||||
ExplicitWidth = 543
|
ExplicitWidth = 543
|
||||||
ExplicitHeight = 195
|
ExplicitHeight = 195
|
||||||
inherited cxGridView: TcxGridDBTableView
|
inherited cxGridView: TcxGridDBTableView
|
||||||
@ -83,12 +96,12 @@ inherited fEditorObras: TfEditorObras
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
inherited frViewFiltroBase1: TfrViewFiltroBase
|
inherited frViewFiltroBase1: TfrViewFiltroBase
|
||||||
Width = 543
|
Width = 853
|
||||||
ExplicitWidth = 543
|
ExplicitWidth = 543
|
||||||
inherited TBXDockablePanel1: TTBXDockablePanel
|
inherited TBXDockablePanel1: TTBXDockablePanel
|
||||||
ExplicitWidth = 543
|
ExplicitWidth = 543
|
||||||
inherited dxLayoutControl1: TdxLayoutControl
|
inherited dxLayoutControl1: TdxLayoutControl
|
||||||
Width = 543
|
Width = 853
|
||||||
ExplicitWidth = 543
|
ExplicitWidth = 543
|
||||||
inherited txtFiltroTodo: TcxTextEdit
|
inherited txtFiltroTodo: TcxTextEdit
|
||||||
ExplicitWidth = 273
|
ExplicitWidth = 273
|
||||||
@ -99,31 +112,31 @@ inherited fEditorObras: TfEditorObras
|
|||||||
Width = 121
|
Width = 121
|
||||||
end
|
end
|
||||||
inherited edtFechaFinFiltro: TcxDateEdit
|
inherited edtFechaFinFiltro: TcxDateEdit
|
||||||
Left = 337
|
Left = 523
|
||||||
ExplicitLeft = 337
|
ExplicitLeft = 523
|
||||||
ExplicitWidth = 121
|
ExplicitWidth = 121
|
||||||
Width = 121
|
Width = 121
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
inherited TBXAlignmentPanel1: TTBXAlignmentPanel
|
inherited TBXAlignmentPanel1: TTBXAlignmentPanel
|
||||||
Width = 543
|
Width = 853
|
||||||
ExplicitWidth = 543
|
ExplicitWidth = 543
|
||||||
inherited tbxBotones: TTBXToolbar
|
inherited tbxBotones: TTBXToolbar
|
||||||
Width = 533
|
Width = 843
|
||||||
ExplicitWidth = 533
|
ExplicitWidth = 533
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
inherited pnlAgrupaciones: TTBXDockablePanel
|
inherited pnlAgrupaciones: TTBXDockablePanel
|
||||||
Top = 297
|
Top = 356
|
||||||
ExplicitTop = 297
|
ExplicitTop = 297
|
||||||
ExplicitWidth = 543
|
ExplicitWidth = 543
|
||||||
inherited TBXAlignmentPanel1: TTBXAlignmentPanel
|
inherited TBXAlignmentPanel1: TTBXAlignmentPanel
|
||||||
Width = 543
|
Width = 853
|
||||||
ExplicitWidth = 543
|
ExplicitWidth = 543
|
||||||
inherited TBXToolbar1: TTBXToolbar
|
inherited TBXToolbar1: TTBXToolbar
|
||||||
Width = 533
|
Width = 843
|
||||||
ExplicitWidth = 533
|
ExplicitWidth = 533
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@ -120,8 +120,6 @@ procedure TfEditorObras.DuplicarInterno;
|
|||||||
var
|
var
|
||||||
AObra : IBizObra;
|
AObra : IBizObra;
|
||||||
begin
|
begin
|
||||||
AppFactuGES.ShowCapado;
|
|
||||||
{
|
|
||||||
inherited;
|
inherited;
|
||||||
AObra := FController.Duplicar(Obras);
|
AObra := FController.Duplicar(Obras);
|
||||||
try
|
try
|
||||||
@ -129,7 +127,6 @@ AppFactuGES.ShowCapado;
|
|||||||
finally
|
finally
|
||||||
actRefrescar.Execute;
|
actRefrescar.Execute;
|
||||||
end;
|
end;
|
||||||
}
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TfEditorObras.EliminarInterno;
|
procedure TfEditorObras.EliminarInterno;
|
||||||
|
|||||||
@ -15,49 +15,66 @@ inherited frViewObras: TfrViewObras
|
|||||||
BestFitMaxWidth = 22
|
BestFitMaxWidth = 22
|
||||||
MinWidth = 22
|
MinWidth = 22
|
||||||
Options.HorzSizing = False
|
Options.HorzSizing = False
|
||||||
|
VisibleForCustomization = False
|
||||||
Width = 22
|
Width = 22
|
||||||
IsCaptionAssigned = True
|
IsCaptionAssigned = True
|
||||||
end
|
end
|
||||||
object cxGridViewNOMBRE: TcxGridDBColumn
|
object cxGridViewNOMBRE: TcxGridDBColumn
|
||||||
DataBinding.FieldName = 'NOMBRE'
|
DataBinding.FieldName = 'NOMBRE'
|
||||||
|
PropertiesClassName = 'TcxTextEditProperties'
|
||||||
SortIndex = 0
|
SortIndex = 0
|
||||||
SortOrder = soAscending
|
SortOrder = soAscending
|
||||||
Width = 304
|
Width = 304
|
||||||
end
|
end
|
||||||
object cxGridViewPERSONACONTACTO: TcxGridDBColumn
|
object cxGridViewCALLE: TcxGridDBColumn
|
||||||
DataBinding.FieldName = 'PERSONA_CONTACTO'
|
DataBinding.FieldName = 'CALLE'
|
||||||
Width = 118
|
Visible = False
|
||||||
|
BestFitMaxWidth = 80
|
||||||
|
end
|
||||||
|
object cxGridViewPOBLACION: TcxGridDBColumn
|
||||||
|
DataBinding.FieldName = 'POBLACION'
|
||||||
|
Visible = False
|
||||||
|
BestFitMaxWidth = 80
|
||||||
|
end
|
||||||
|
object cxGridViewCODIGO_POSTAL: TcxGridDBColumn
|
||||||
|
DataBinding.FieldName = 'CODIGO_POSTAL'
|
||||||
|
Visible = False
|
||||||
|
BestFitMaxWidth = 80
|
||||||
|
end
|
||||||
|
object cxGridViewPROVINCIA: TcxGridDBColumn
|
||||||
|
DataBinding.FieldName = 'PROVINCIA'
|
||||||
|
Visible = False
|
||||||
|
BestFitMaxWidth = 80
|
||||||
end
|
end
|
||||||
object cxGridViewTELEFONO: TcxGridDBColumn
|
object cxGridViewTELEFONO: TcxGridDBColumn
|
||||||
DataBinding.FieldName = 'TELEFONO'
|
DataBinding.FieldName = 'TELEFONO'
|
||||||
BestFitMaxWidth = 64
|
BestFitMaxWidth = 80
|
||||||
Width = 118
|
Width = 118
|
||||||
end
|
end
|
||||||
object cxGridViewMOVIL: TcxGridDBColumn
|
object cxGridViewMOVIL: TcxGridDBColumn
|
||||||
DataBinding.FieldName = 'MOVIL'
|
DataBinding.FieldName = 'MOVIL'
|
||||||
Visible = False
|
Visible = False
|
||||||
|
BestFitMaxWidth = 80
|
||||||
end
|
end
|
||||||
object cxGridViewFAX: TcxGridDBColumn
|
object cxGridViewFAX: TcxGridDBColumn
|
||||||
DataBinding.FieldName = 'FAX'
|
DataBinding.FieldName = 'FAX'
|
||||||
|
BestFitMaxWidth = 80
|
||||||
end
|
end
|
||||||
object cxGridViewCALLE: TcxGridDBColumn
|
object cxGridViewPERSONACONTACTO: TcxGridDBColumn
|
||||||
DataBinding.FieldName = 'CALLE'
|
DataBinding.FieldName = 'PERSONA_CONTACTO'
|
||||||
Visible = False
|
BestFitMaxWidth = 80
|
||||||
end
|
Width = 118
|
||||||
object cxGridViewPROVINCIA: TcxGridDBColumn
|
|
||||||
DataBinding.FieldName = 'PROVINCIA'
|
|
||||||
Visible = False
|
|
||||||
end
|
|
||||||
object cxGridViewPOBLACION: TcxGridDBColumn
|
|
||||||
DataBinding.FieldName = 'POBLACION'
|
|
||||||
Visible = False
|
|
||||||
end
|
|
||||||
object cxGridViewCODIGO_POSTAL: TcxGridDBColumn
|
|
||||||
DataBinding.FieldName = 'CODIGO_POSTAL'
|
|
||||||
Visible = False
|
|
||||||
end
|
end
|
||||||
object cxGridViewNOMBRE_CLIENTE: TcxGridDBColumn
|
object cxGridViewNOMBRE_CLIENTE: TcxGridDBColumn
|
||||||
DataBinding.FieldName = 'NOMBRE_CLIENTE'
|
DataBinding.FieldName = 'NOMBRE_CLIENTE'
|
||||||
|
PropertiesClassName = 'TcxTextEditProperties'
|
||||||
|
BestFitMaxWidth = 80
|
||||||
|
Width = 100
|
||||||
|
end
|
||||||
|
object cxGridViewNOMBRE_SUBCONTRATA: TcxGridDBColumn
|
||||||
|
DataBinding.FieldName = 'NOMBRE_SUBCONTRATA'
|
||||||
|
PropertiesClassName = 'TcxTextEditProperties'
|
||||||
|
BestFitMaxWidth = 80
|
||||||
Width = 100
|
Width = 100
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -80,6 +97,9 @@ inherited frViewObras: TfrViewObras
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
inherited pnlAgrupaciones: TTBXDockablePanel
|
||||||
|
ExplicitWidth = 554
|
||||||
|
end
|
||||||
inherited dxComponentPrinter: TdxComponentPrinter
|
inherited dxComponentPrinter: TdxComponentPrinter
|
||||||
inherited dxComponentPrinterLink: TdxGridReportLink
|
inherited dxComponentPrinterLink: TdxGridReportLink
|
||||||
ReportDocument.CreationDate = 38673.842406053240000000
|
ReportDocument.CreationDate = 38673.842406053240000000
|
||||||
|
|||||||
@ -13,7 +13,7 @@ uses
|
|||||||
dxPrnPg, dxBkgnd, dxWrap, dxPrnDev, dxPSCompsProvider, dxPSFillPatterns,
|
dxPrnPg, dxBkgnd, dxWrap, dxPrnDev, dxPSCompsProvider, dxPSFillPatterns,
|
||||||
dxPSEdgePatterns, cxIntlPrintSys3, dxPSCore, dxPScxCommon, dxPScxGrid6Lnk,
|
dxPSEdgePatterns, cxIntlPrintSys3, dxPSCore, dxPScxCommon, dxPScxGrid6Lnk,
|
||||||
cxGridCustomPopupMenu, cxGridPopupMenu, uViewFiltroBase, TB2Item, TBX,
|
cxGridCustomPopupMenu, cxGridPopupMenu, uViewFiltroBase, TB2Item, TBX,
|
||||||
TB2Toolbar, TBXDkPanels, TB2Dock, dxPgsDlg, uDAInterfaces;
|
TB2Toolbar, TBXDkPanels, TB2Dock, dxPgsDlg, uDAInterfaces, cxTextEdit;
|
||||||
|
|
||||||
type
|
type
|
||||||
IViewObras = interface(IViewGrid)
|
IViewObras = interface(IViewGrid)
|
||||||
@ -36,6 +36,7 @@ type
|
|||||||
cxGridViewMOVIL: TcxGridDBColumn;
|
cxGridViewMOVIL: TcxGridDBColumn;
|
||||||
cxGridViewFAX: TcxGridDBColumn;
|
cxGridViewFAX: TcxGridDBColumn;
|
||||||
cxGridViewNOMBRE_CLIENTE: TcxGridDBColumn;
|
cxGridViewNOMBRE_CLIENTE: TcxGridDBColumn;
|
||||||
|
cxGridViewNOMBRE_SUBCONTRATA: TcxGridDBColumn;
|
||||||
procedure cxGridViewIDCustomDrawCell(
|
procedure cxGridViewIDCustomDrawCell(
|
||||||
Sender: TcxCustomGridTableView; ACanvas: TcxCanvas;
|
Sender: TcxCustomGridTableView; ACanvas: TcxCanvas;
|
||||||
AViewInfo: TcxGridTableDataCellViewInfo; var ADone: Boolean);
|
AViewInfo: TcxGridTableDataCellViewInfo; var ADone: Boolean);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user