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
|
||||
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;
|
||||
with Result do
|
||||
begin
|
||||
|
||||
@ -2,12 +2,17 @@ inherited fEditorObras: TfEditorObras
|
||||
Left = 489
|
||||
Top = 325
|
||||
Caption = 'Lista de obras'
|
||||
ExplicitHeight = 471
|
||||
ClientHeight = 503
|
||||
ClientWidth = 853
|
||||
ExplicitWidth = 861
|
||||
ExplicitHeight = 530
|
||||
PixelsPerInch = 96
|
||||
TextHeight = 13
|
||||
inherited JvNavPanelHeader: TJvNavPanelHeader
|
||||
Width = 853
|
||||
Caption = 'Lista de obras'
|
||||
inherited Image1: TImage
|
||||
Left = 826
|
||||
Picture.Data = {
|
||||
0A54504E474F626A65637489504E470D0A1A0A0000000D494844520000001800
|
||||
0000180806000000E0773DF80000000970485973000017120000171201679FD2
|
||||
@ -30,6 +35,7 @@ inherited fEditorObras: TfEditorObras
|
||||
end
|
||||
end
|
||||
inherited TBXDock: TTBXDock
|
||||
Width = 853
|
||||
inherited tbxMain: TTBXToolbar
|
||||
ExplicitWidth = 474
|
||||
end
|
||||
@ -42,17 +48,24 @@ inherited fEditorObras: TfEditorObras
|
||||
Visible = False
|
||||
end
|
||||
end
|
||||
inherited tbxMenu: TTBXToolbar
|
||||
ExplicitWidth = 853
|
||||
end
|
||||
inherited TBXTMain2: TTBXToolbar
|
||||
Left = 275
|
||||
DockPos = 275
|
||||
ExplicitLeft = 275
|
||||
end
|
||||
end
|
||||
inherited StatusBar: TJvStatusBar
|
||||
Top = 484
|
||||
Width = 853
|
||||
end
|
||||
inline frViewObras1: TfrViewObras [3]
|
||||
Left = 0
|
||||
Top = 102
|
||||
Width = 543
|
||||
Height = 323
|
||||
Width = 853
|
||||
Height = 382
|
||||
Align = alClient
|
||||
Font.Charset = DEFAULT_CHARSET
|
||||
Font.Color = clWindowText
|
||||
@ -66,8 +79,8 @@ inherited fEditorObras: TfEditorObras
|
||||
ExplicitWidth = 543
|
||||
ExplicitHeight = 323
|
||||
inherited cxGrid: TcxGrid
|
||||
Width = 543
|
||||
Height = 195
|
||||
Width = 853
|
||||
Height = 254
|
||||
ExplicitWidth = 543
|
||||
ExplicitHeight = 195
|
||||
inherited cxGridView: TcxGridDBTableView
|
||||
@ -83,12 +96,12 @@ inherited fEditorObras: TfEditorObras
|
||||
end
|
||||
end
|
||||
inherited frViewFiltroBase1: TfrViewFiltroBase
|
||||
Width = 543
|
||||
Width = 853
|
||||
ExplicitWidth = 543
|
||||
inherited TBXDockablePanel1: TTBXDockablePanel
|
||||
ExplicitWidth = 543
|
||||
inherited dxLayoutControl1: TdxLayoutControl
|
||||
Width = 543
|
||||
Width = 853
|
||||
ExplicitWidth = 543
|
||||
inherited txtFiltroTodo: TcxTextEdit
|
||||
ExplicitWidth = 273
|
||||
@ -99,31 +112,31 @@ inherited fEditorObras: TfEditorObras
|
||||
Width = 121
|
||||
end
|
||||
inherited edtFechaFinFiltro: TcxDateEdit
|
||||
Left = 337
|
||||
ExplicitLeft = 337
|
||||
Left = 523
|
||||
ExplicitLeft = 523
|
||||
ExplicitWidth = 121
|
||||
Width = 121
|
||||
end
|
||||
end
|
||||
inherited TBXAlignmentPanel1: TTBXAlignmentPanel
|
||||
Width = 543
|
||||
Width = 853
|
||||
ExplicitWidth = 543
|
||||
inherited tbxBotones: TTBXToolbar
|
||||
Width = 533
|
||||
Width = 843
|
||||
ExplicitWidth = 533
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
inherited pnlAgrupaciones: TTBXDockablePanel
|
||||
Top = 297
|
||||
Top = 356
|
||||
ExplicitTop = 297
|
||||
ExplicitWidth = 543
|
||||
inherited TBXAlignmentPanel1: TTBXAlignmentPanel
|
||||
Width = 543
|
||||
Width = 853
|
||||
ExplicitWidth = 543
|
||||
inherited TBXToolbar1: TTBXToolbar
|
||||
Width = 533
|
||||
Width = 843
|
||||
ExplicitWidth = 533
|
||||
end
|
||||
end
|
||||
|
||||
@ -120,8 +120,6 @@ procedure TfEditorObras.DuplicarInterno;
|
||||
var
|
||||
AObra : IBizObra;
|
||||
begin
|
||||
AppFactuGES.ShowCapado;
|
||||
{
|
||||
inherited;
|
||||
AObra := FController.Duplicar(Obras);
|
||||
try
|
||||
@ -129,7 +127,6 @@ AppFactuGES.ShowCapado;
|
||||
finally
|
||||
actRefrescar.Execute;
|
||||
end;
|
||||
}
|
||||
end;
|
||||
|
||||
procedure TfEditorObras.EliminarInterno;
|
||||
|
||||
@ -15,49 +15,66 @@ inherited frViewObras: TfrViewObras
|
||||
BestFitMaxWidth = 22
|
||||
MinWidth = 22
|
||||
Options.HorzSizing = False
|
||||
VisibleForCustomization = False
|
||||
Width = 22
|
||||
IsCaptionAssigned = True
|
||||
end
|
||||
object cxGridViewNOMBRE: TcxGridDBColumn
|
||||
DataBinding.FieldName = 'NOMBRE'
|
||||
PropertiesClassName = 'TcxTextEditProperties'
|
||||
SortIndex = 0
|
||||
SortOrder = soAscending
|
||||
Width = 304
|
||||
end
|
||||
object cxGridViewPERSONACONTACTO: TcxGridDBColumn
|
||||
DataBinding.FieldName = 'PERSONA_CONTACTO'
|
||||
Width = 118
|
||||
object cxGridViewCALLE: TcxGridDBColumn
|
||||
DataBinding.FieldName = 'CALLE'
|
||||
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
|
||||
object cxGridViewTELEFONO: TcxGridDBColumn
|
||||
DataBinding.FieldName = 'TELEFONO'
|
||||
BestFitMaxWidth = 64
|
||||
BestFitMaxWidth = 80
|
||||
Width = 118
|
||||
end
|
||||
object cxGridViewMOVIL: TcxGridDBColumn
|
||||
DataBinding.FieldName = 'MOVIL'
|
||||
Visible = False
|
||||
BestFitMaxWidth = 80
|
||||
end
|
||||
object cxGridViewFAX: TcxGridDBColumn
|
||||
DataBinding.FieldName = 'FAX'
|
||||
BestFitMaxWidth = 80
|
||||
end
|
||||
object cxGridViewCALLE: TcxGridDBColumn
|
||||
DataBinding.FieldName = 'CALLE'
|
||||
Visible = False
|
||||
end
|
||||
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
|
||||
object cxGridViewPERSONACONTACTO: TcxGridDBColumn
|
||||
DataBinding.FieldName = 'PERSONA_CONTACTO'
|
||||
BestFitMaxWidth = 80
|
||||
Width = 118
|
||||
end
|
||||
object cxGridViewNOMBRE_CLIENTE: TcxGridDBColumn
|
||||
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
|
||||
end
|
||||
end
|
||||
@ -80,6 +97,9 @@ inherited frViewObras: TfrViewObras
|
||||
end
|
||||
end
|
||||
end
|
||||
inherited pnlAgrupaciones: TTBXDockablePanel
|
||||
ExplicitWidth = 554
|
||||
end
|
||||
inherited dxComponentPrinter: TdxComponentPrinter
|
||||
inherited dxComponentPrinterLink: TdxGridReportLink
|
||||
ReportDocument.CreationDate = 38673.842406053240000000
|
||||
|
||||
@ -13,7 +13,7 @@ uses
|
||||
dxPrnPg, dxBkgnd, dxWrap, dxPrnDev, dxPSCompsProvider, dxPSFillPatterns,
|
||||
dxPSEdgePatterns, cxIntlPrintSys3, dxPSCore, dxPScxCommon, dxPScxGrid6Lnk,
|
||||
cxGridCustomPopupMenu, cxGridPopupMenu, uViewFiltroBase, TB2Item, TBX,
|
||||
TB2Toolbar, TBXDkPanels, TB2Dock, dxPgsDlg, uDAInterfaces;
|
||||
TB2Toolbar, TBXDkPanels, TB2Dock, dxPgsDlg, uDAInterfaces, cxTextEdit;
|
||||
|
||||
type
|
||||
IViewObras = interface(IViewGrid)
|
||||
@ -36,6 +36,7 @@ type
|
||||
cxGridViewMOVIL: TcxGridDBColumn;
|
||||
cxGridViewFAX: TcxGridDBColumn;
|
||||
cxGridViewNOMBRE_CLIENTE: TcxGridDBColumn;
|
||||
cxGridViewNOMBRE_SUBCONTRATA: TcxGridDBColumn;
|
||||
procedure cxGridViewIDCustomDrawCell(
|
||||
Sender: TcxCustomGridTableView; ACanvas: TcxCanvas;
|
||||
AViewInfo: TcxGridTableDataCellViewInfo; var ADone: Boolean);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user