Se repasa y arregla el orden de las listas de informecion de toda la aplicacion, además de la vista de inventario para que no salgan articulos que no tengan unidades en almacen, ni reservas ni pendientes de recibir
git-svn-id: https://192.168.0.254/svn/Proyectos.Tecsitel_FactuGES2/trunk@773 0c75b7a4-871f-7646-8a2f-f78d34cc349f
This commit is contained in:
parent
811bafd58b
commit
262f503bd4
@ -2833,6 +2833,9 @@ GROUP BY ID_ALMACEN,
|
|||||||
ARTICULOS.REFERENCIA_FABR,
|
ARTICULOS.REFERENCIA_FABR,
|
||||||
ARTICULOS.UNIDAD_MEDIDA
|
ARTICULOS.UNIDAD_MEDIDA
|
||||||
/* ARTICULOS.PRECIO_NETO*/
|
/* ARTICULOS.PRECIO_NETO*/
|
||||||
|
|
||||||
|
/*QUITAMOS AQUELLAS TUPLAS DE LAS QUE NO TENEMOS UNIDADES EN EL ALAMCEN, NO HAY RESERVAS NI PEDIDOS PENDIENTES DE RECIBIR*/
|
||||||
|
HAVING ((SUM(STOCK) <> 0 ) OR (SUM(RESERVA) <> 0) OR (SUM(PENDIENTE_RECEPCION) <> 0))
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -33,7 +33,7 @@ inherited fEditorArticulos: TfEditorArticulos
|
|||||||
Width = 657
|
Width = 657
|
||||||
ExplicitWidth = 657
|
ExplicitWidth = 657
|
||||||
inherited tbxMain: TTBXToolbar
|
inherited tbxMain: TTBXToolbar
|
||||||
ExplicitWidth = 632
|
ExplicitWidth = 657
|
||||||
end
|
end
|
||||||
inherited tbxFiltro: TTBXToolbar
|
inherited tbxFiltro: TTBXToolbar
|
||||||
inherited tbxEditFiltro: TTBXEditItem
|
inherited tbxEditFiltro: TTBXEditItem
|
||||||
@ -56,7 +56,7 @@ inherited fEditorArticulos: TfEditorArticulos
|
|||||||
Left = 3
|
Left = 3
|
||||||
Top = 105
|
Top = 105
|
||||||
Width = 651
|
Width = 651
|
||||||
Height = 317
|
Height = 377
|
||||||
ActivePage = pagArticulos
|
ActivePage = pagArticulos
|
||||||
Align = alClient
|
Align = alClient
|
||||||
TabOrder = 3
|
TabOrder = 3
|
||||||
@ -67,7 +67,7 @@ inherited fEditorArticulos: TfEditorArticulos
|
|||||||
Left = 0
|
Left = 0
|
||||||
Top = 0
|
Top = 0
|
||||||
Width = 643
|
Width = 643
|
||||||
Height = 289
|
Height = 349
|
||||||
Align = alClient
|
Align = alClient
|
||||||
Font.Charset = DEFAULT_CHARSET
|
Font.Charset = DEFAULT_CHARSET
|
||||||
Font.Color = clWindowText
|
Font.Color = clWindowText
|
||||||
@ -78,12 +78,12 @@ inherited fEditorArticulos: TfEditorArticulos
|
|||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
ReadOnly = False
|
ReadOnly = False
|
||||||
ExplicitWidth = 643
|
ExplicitWidth = 643
|
||||||
ExplicitHeight = 289
|
ExplicitHeight = 349
|
||||||
inherited cxGrid: TcxGrid
|
inherited cxGrid: TcxGrid
|
||||||
Width = 643
|
Width = 643
|
||||||
Height = 161
|
Height = 221
|
||||||
ExplicitWidth = 643
|
ExplicitWidth = 643
|
||||||
ExplicitHeight = 161
|
ExplicitHeight = 221
|
||||||
inherited cxGridView: TcxGridDBTableView
|
inherited cxGridView: TcxGridDBTableView
|
||||||
DataController.Summary.FooterSummaryItems = <
|
DataController.Summary.FooterSummaryItems = <
|
||||||
item
|
item
|
||||||
@ -102,10 +102,30 @@ inherited fEditorArticulos: TfEditorArticulos
|
|||||||
Width = 643
|
Width = 643
|
||||||
ExplicitWidth = 643
|
ExplicitWidth = 643
|
||||||
inherited txtFiltroTodo: TcxTextEdit
|
inherited txtFiltroTodo: TcxTextEdit
|
||||||
|
Style.LookAndFeel.SkinName = ''
|
||||||
|
StyleDisabled.LookAndFeel.SkinName = ''
|
||||||
|
StyleFocused.LookAndFeel.SkinName = ''
|
||||||
|
StyleHot.LookAndFeel.SkinName = ''
|
||||||
ExplicitWidth = 567
|
ExplicitWidth = 567
|
||||||
Width = 567
|
Width = 567
|
||||||
end
|
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
|
||||||
inherited eLista: TcxComboBox
|
inherited eLista: TcxComboBox
|
||||||
|
Style.LookAndFeel.SkinName = ''
|
||||||
|
StyleDisabled.LookAndFeel.SkinName = ''
|
||||||
|
StyleFocused.LookAndFeel.SkinName = ''
|
||||||
|
StyleHot.LookAndFeel.SkinName = ''
|
||||||
ExplicitWidth = 20
|
ExplicitWidth = 20
|
||||||
Width = 20
|
Width = 20
|
||||||
end
|
end
|
||||||
@ -121,8 +141,8 @@ inherited fEditorArticulos: TfEditorArticulos
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
inherited pnlAgrupaciones: TTBXDockablePanel
|
inherited pnlAgrupaciones: TTBXDockablePanel
|
||||||
Top = 263
|
Top = 323
|
||||||
ExplicitTop = 263
|
ExplicitTop = 323
|
||||||
ExplicitWidth = 643
|
ExplicitWidth = 643
|
||||||
inherited TBXAlignmentPanel1: TTBXAlignmentPanel
|
inherited TBXAlignmentPanel1: TTBXAlignmentPanel
|
||||||
Width = 643
|
Width = 643
|
||||||
@ -156,7 +176,7 @@ inherited fEditorArticulos: TfEditorArticulos
|
|||||||
Left = 0
|
Left = 0
|
||||||
Top = 0
|
Top = 0
|
||||||
Width = 643
|
Width = 643
|
||||||
Height = 289
|
Height = 349
|
||||||
Align = alClient
|
Align = alClient
|
||||||
Font.Charset = DEFAULT_CHARSET
|
Font.Charset = DEFAULT_CHARSET
|
||||||
Font.Color = clWindowText
|
Font.Color = clWindowText
|
||||||
@ -167,10 +187,10 @@ inherited fEditorArticulos: TfEditorArticulos
|
|||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
ReadOnly = False
|
ReadOnly = False
|
||||||
ExplicitWidth = 643
|
ExplicitWidth = 643
|
||||||
ExplicitHeight = 289
|
ExplicitHeight = 349
|
||||||
inherited cxGrid: TcxGrid
|
inherited cxGrid: TcxGrid
|
||||||
Width = 643
|
Width = 643
|
||||||
Height = 161
|
Height = 221
|
||||||
ExplicitWidth = 643
|
ExplicitWidth = 643
|
||||||
ExplicitHeight = 161
|
ExplicitHeight = 161
|
||||||
inherited cxGridView: TcxGridDBTableView
|
inherited cxGridView: TcxGridDBTableView
|
||||||
@ -191,10 +211,30 @@ inherited fEditorArticulos: TfEditorArticulos
|
|||||||
Width = 643
|
Width = 643
|
||||||
ExplicitWidth = 643
|
ExplicitWidth = 643
|
||||||
inherited txtFiltroTodo: TcxTextEdit
|
inherited txtFiltroTodo: TcxTextEdit
|
||||||
|
Style.LookAndFeel.SkinName = ''
|
||||||
|
StyleDisabled.LookAndFeel.SkinName = ''
|
||||||
|
StyleFocused.LookAndFeel.SkinName = ''
|
||||||
|
StyleHot.LookAndFeel.SkinName = ''
|
||||||
ExplicitWidth = 567
|
ExplicitWidth = 567
|
||||||
Width = 567
|
Width = 567
|
||||||
end
|
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
|
||||||
inherited eLista: TcxComboBox
|
inherited eLista: TcxComboBox
|
||||||
|
Style.LookAndFeel.SkinName = ''
|
||||||
|
StyleDisabled.LookAndFeel.SkinName = ''
|
||||||
|
StyleFocused.LookAndFeel.SkinName = ''
|
||||||
|
StyleHot.LookAndFeel.SkinName = ''
|
||||||
ExplicitWidth = 20
|
ExplicitWidth = 20
|
||||||
Width = 20
|
Width = 20
|
||||||
end
|
end
|
||||||
@ -210,7 +250,7 @@ inherited fEditorArticulos: TfEditorArticulos
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
inherited pnlAgrupaciones: TTBXDockablePanel
|
inherited pnlAgrupaciones: TTBXDockablePanel
|
||||||
Top = 263
|
Top = 323
|
||||||
ExplicitTop = 263
|
ExplicitTop = 263
|
||||||
ExplicitWidth = 643
|
ExplicitWidth = 643
|
||||||
inherited TBXAlignmentPanel1: TTBXAlignmentPanel
|
inherited TBXAlignmentPanel1: TTBXAlignmentPanel
|
||||||
|
|||||||
@ -208,12 +208,20 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TfEditorArticulos.SetViewGrid(const Value: IViewGridBase);
|
procedure TfEditorArticulos.SetViewGrid(const Value: IViewGridBase);
|
||||||
|
var
|
||||||
|
APosicionarAlprincipio: Boolean;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
|
|
||||||
|
APosicionarAlprincipio := False;
|
||||||
case pgPaginas.ActivePage.TabIndex of
|
case pgPaginas.ActivePage.TabIndex of
|
||||||
0: begin
|
0: begin
|
||||||
if not Assigned(Articulos) then
|
if not Assigned(Articulos) then
|
||||||
|
begin
|
||||||
|
APosicionarAlprincipio := True;
|
||||||
Articulos := FController.BuscarTodos;
|
Articulos := FController.BuscarTodos;
|
||||||
|
end;
|
||||||
Articulos.DataTable.Active := True;
|
Articulos.DataTable.Active := True;
|
||||||
|
|
||||||
if actFiltrar.Checked then
|
if actFiltrar.Checked then
|
||||||
@ -237,7 +245,10 @@ begin
|
|||||||
end;
|
end;
|
||||||
1: begin
|
1: begin
|
||||||
if not Assigned(ArticulosPorProveedor) then
|
if not Assigned(ArticulosPorProveedor) then
|
||||||
|
begin
|
||||||
|
APosicionarAlprincipio := True;
|
||||||
ArticulosPorProveedor := FController.BuscarTodosPorProveedor;
|
ArticulosPorProveedor := FController.BuscarTodosPorProveedor;
|
||||||
|
end;
|
||||||
ArticulosPorProveedor.DataTable.Active := True;
|
ArticulosPorProveedor.DataTable.Active := True;
|
||||||
|
|
||||||
if actFiltrar.Checked then
|
if actFiltrar.Checked then
|
||||||
@ -258,6 +269,9 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
if APosicionarAlprincipio then
|
||||||
|
ViewGrid._FocusedView.DataController.GotoFirst;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
destructor TfEditorArticulos.Destroy;
|
destructor TfEditorArticulos.Destroy;
|
||||||
|
|||||||
@ -38,6 +38,8 @@ inherited frViewArticulos: TfrViewArticulos
|
|||||||
end
|
end
|
||||||
object cxGridViewREFERENCIA: TcxGridDBColumn
|
object cxGridViewREFERENCIA: TcxGridDBColumn
|
||||||
DataBinding.FieldName = 'REFERENCIA'
|
DataBinding.FieldName = 'REFERENCIA'
|
||||||
|
SortIndex = 0
|
||||||
|
SortOrder = soAscending
|
||||||
end
|
end
|
||||||
object cxGridViewDESCRIPCION: TcxGridDBColumn
|
object cxGridViewDESCRIPCION: TcxGridDBColumn
|
||||||
DataBinding.FieldName = 'DESCRIPCION'
|
DataBinding.FieldName = 'DESCRIPCION'
|
||||||
@ -74,12 +76,32 @@ inherited frViewArticulos: TfrViewArticulos
|
|||||||
Width = 715
|
Width = 715
|
||||||
ExplicitWidth = 715
|
ExplicitWidth = 715
|
||||||
inherited txtFiltroTodo: TcxTextEdit
|
inherited txtFiltroTodo: TcxTextEdit
|
||||||
|
Style.LookAndFeel.SkinName = ''
|
||||||
|
StyleDisabled.LookAndFeel.SkinName = ''
|
||||||
|
StyleFocused.LookAndFeel.SkinName = ''
|
||||||
|
StyleHot.LookAndFeel.SkinName = ''
|
||||||
ExplicitWidth = 618
|
ExplicitWidth = 618
|
||||||
Width = 618
|
Width = 618
|
||||||
end
|
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
|
||||||
inherited eLista: TcxComboBox
|
inherited eLista: TcxComboBox
|
||||||
Properties.DropDownRows = 20
|
Properties.DropDownRows = 20
|
||||||
Properties.OnChange = frViewFiltroBase1eListaPropertiesChange
|
Properties.OnChange = frViewFiltroBase1eListaPropertiesChange
|
||||||
|
Style.LookAndFeel.SkinName = ''
|
||||||
|
StyleDisabled.LookAndFeel.SkinName = ''
|
||||||
|
StyleFocused.LookAndFeel.SkinName = ''
|
||||||
|
StyleHot.LookAndFeel.SkinName = ''
|
||||||
ExplicitWidth = 71
|
ExplicitWidth = 71
|
||||||
Width = 71
|
Width = 71
|
||||||
end
|
end
|
||||||
|
|||||||
@ -81,6 +81,8 @@ inherited frViewArticulosPorProveedor: TfrViewArticulosPorProveedor
|
|||||||
Caption = 'Referencia'
|
Caption = 'Referencia'
|
||||||
DataBinding.FieldName = 'REFERENCIA'
|
DataBinding.FieldName = 'REFERENCIA'
|
||||||
BestFitMaxWidth = 60
|
BestFitMaxWidth = 60
|
||||||
|
SortIndex = 0
|
||||||
|
SortOrder = soAscending
|
||||||
Width = 60
|
Width = 60
|
||||||
end
|
end
|
||||||
object cxGridViewFABRICANTE: TcxGridDBColumn
|
object cxGridViewFABRICANTE: TcxGridDBColumn
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
inherited frViewHistoricoMovimientos: TfrViewHistoricoMovimientos
|
inherited frViewHistoricoMovimientos: TfrViewHistoricoMovimientos
|
||||||
inherited cxGrid: TcxGrid
|
inherited cxGrid: TcxGrid
|
||||||
RootLevelOptions.DetailTabsPosition = dtpTop
|
|
||||||
OnActiveTabChanged = cxGridActiveTabChanged
|
OnActiveTabChanged = cxGridActiveTabChanged
|
||||||
inherited cxGridView: TcxGridDBTableView
|
inherited cxGridView: TcxGridDBTableView
|
||||||
DataController.KeyFieldNames = 'RecID'
|
DataController.KeyFieldNames = 'RecID'
|
||||||
@ -32,6 +31,8 @@ inherited frViewHistoricoMovimientos: TfrViewHistoricoMovimientos
|
|||||||
end
|
end
|
||||||
object cxGridViewFECHA: TcxGridDBColumn
|
object cxGridViewFECHA: TcxGridDBColumn
|
||||||
DataBinding.FieldName = 'FECHA'
|
DataBinding.FieldName = 'FECHA'
|
||||||
|
SortIndex = 0
|
||||||
|
SortOrder = soDescending
|
||||||
Width = 60
|
Width = 60
|
||||||
end
|
end
|
||||||
object cxGridViewTIPO_MOVIMIENTO: TcxGridDBColumn
|
object cxGridViewTIPO_MOVIMIENTO: TcxGridDBColumn
|
||||||
@ -86,6 +87,7 @@ inherited frViewHistoricoMovimientos: TfrViewHistoricoMovimientos
|
|||||||
Width = 41
|
Width = 41
|
||||||
end
|
end
|
||||||
object cxGridViewNOMBRE_ALMACEN: TcxGridDBColumn
|
object cxGridViewNOMBRE_ALMACEN: TcxGridDBColumn
|
||||||
|
Caption = 'Almac'#233'n/Obra'
|
||||||
DataBinding.FieldName = 'NOMBRE_ALMACEN'
|
DataBinding.FieldName = 'NOMBRE_ALMACEN'
|
||||||
Width = 42
|
Width = 42
|
||||||
end
|
end
|
||||||
|
|||||||
@ -149,7 +149,7 @@ var
|
|||||||
Nivel: TcxGridLevel;
|
Nivel: TcxGridLevel;
|
||||||
begin
|
begin
|
||||||
FAlmacenes := Value;
|
FAlmacenes := Value;
|
||||||
|
{
|
||||||
if Assigned(FAlmacenes) then
|
if Assigned(FAlmacenes) then
|
||||||
begin
|
begin
|
||||||
if not FAlmacenes.DataTable.Active then
|
if not FAlmacenes.DataTable.Active then
|
||||||
@ -164,6 +164,7 @@ begin
|
|||||||
FAlmacenes.Next;
|
FAlmacenes.Next;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TfrViewHistoricoMovimientos.SetHistoricoMovimientos(const Value: IBizHistoricoMovimientos);
|
procedure TfrViewHistoricoMovimientos.SetHistoricoMovimientos(const Value: IBizHistoricoMovimientos);
|
||||||
|
|||||||
@ -3,6 +3,8 @@ inherited frViewDetalleReservas: TfrViewDetalleReservas
|
|||||||
inherited cxGrid: TcxGrid
|
inherited cxGrid: TcxGrid
|
||||||
Top = 143
|
Top = 143
|
||||||
Height = 272
|
Height = 272
|
||||||
|
ExplicitTop = 143
|
||||||
|
ExplicitHeight = 272
|
||||||
inherited cxGridView: TcxGridDBTableView
|
inherited cxGridView: TcxGridDBTableView
|
||||||
DataController.KeyFieldNames = 'RecID'
|
DataController.KeyFieldNames = 'RecID'
|
||||||
DataController.Summary.DefaultGroupSummaryItems = <
|
DataController.Summary.DefaultGroupSummaryItems = <
|
||||||
@ -77,6 +79,8 @@ inherited frViewDetalleReservas: TfrViewDetalleReservas
|
|||||||
object cxGridViewREFERENCIA: TcxGridDBColumn
|
object cxGridViewREFERENCIA: TcxGridDBColumn
|
||||||
Caption = 'Referencia'
|
Caption = 'Referencia'
|
||||||
DataBinding.FieldName = 'REFERENCIA'
|
DataBinding.FieldName = 'REFERENCIA'
|
||||||
|
SortIndex = 0
|
||||||
|
SortOrder = soAscending
|
||||||
end
|
end
|
||||||
object cxGridViewDESCRIPCION: TcxGridDBColumn
|
object cxGridViewDESCRIPCION: TcxGridDBColumn
|
||||||
Caption = 'Descripci'#243'n'
|
Caption = 'Descripci'#243'n'
|
||||||
@ -164,6 +168,8 @@ inherited frViewDetalleReservas: TfrViewDetalleReservas
|
|||||||
StyleFocused.LookAndFeel.SkinName = ''
|
StyleFocused.LookAndFeel.SkinName = ''
|
||||||
StyleHot.LookAndFeel.SkinName = ''
|
StyleHot.LookAndFeel.SkinName = ''
|
||||||
ExplicitLeft = 383
|
ExplicitLeft = 383
|
||||||
|
ExplicitWidth = 215
|
||||||
|
Width = 215
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -175,8 +181,6 @@ inherited frViewDetalleReservas: TfrViewDetalleReservas
|
|||||||
Height = 41
|
Height = 41
|
||||||
Align = alTop
|
Align = alTop
|
||||||
TabOrder = 3
|
TabOrder = 3
|
||||||
ExplicitLeft = -71
|
|
||||||
ExplicitWidth = 678
|
|
||||||
DesignSize = (
|
DesignSize = (
|
||||||
607
|
607
|
||||||
41)
|
41)
|
||||||
@ -204,7 +208,6 @@ inherited frViewDetalleReservas: TfrViewDetalleReservas
|
|||||||
StyleHot.LookAndFeel.Kind = lfStandard
|
StyleHot.LookAndFeel.Kind = lfStandard
|
||||||
StyleHot.LookAndFeel.NativeStyle = True
|
StyleHot.LookAndFeel.NativeStyle = True
|
||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
ExplicitWidth = 581
|
|
||||||
Width = 510
|
Width = 510
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@ -54,6 +54,7 @@ inherited frViewInventario: TfrViewInventario
|
|||||||
Kind = skSum
|
Kind = skSum
|
||||||
Column = cxGridViewPENDIENTE_RECEPCION
|
Column = cxGridViewPENDIENTE_RECEPCION
|
||||||
end>
|
end>
|
||||||
|
DataController.OnCompare = cxGridViewDataControllerCompare
|
||||||
object cxGridViewID: TcxGridDBColumn
|
object cxGridViewID: TcxGridDBColumn
|
||||||
DataBinding.FieldName = 'ID'
|
DataBinding.FieldName = 'ID'
|
||||||
Visible = False
|
Visible = False
|
||||||
@ -78,6 +79,8 @@ inherited frViewInventario: TfrViewInventario
|
|||||||
Caption = 'Referencia'
|
Caption = 'Referencia'
|
||||||
DataBinding.FieldName = 'REFERENCIA'
|
DataBinding.FieldName = 'REFERENCIA'
|
||||||
MinWidth = 30
|
MinWidth = 30
|
||||||
|
SortIndex = 0
|
||||||
|
SortOrder = soAscending
|
||||||
end
|
end
|
||||||
object cxGridViewREFERENCIA_PROVEEDOR: TcxGridDBColumn
|
object cxGridViewREFERENCIA_PROVEEDOR: TcxGridDBColumn
|
||||||
Caption = 'Ref. proveedor'
|
Caption = 'Ref. proveedor'
|
||||||
@ -179,6 +182,8 @@ inherited frViewInventario: TfrViewInventario
|
|||||||
StyleDisabled.LookAndFeel.SkinName = ''
|
StyleDisabled.LookAndFeel.SkinName = ''
|
||||||
StyleFocused.LookAndFeel.SkinName = ''
|
StyleFocused.LookAndFeel.SkinName = ''
|
||||||
StyleHot.LookAndFeel.SkinName = ''
|
StyleHot.LookAndFeel.SkinName = ''
|
||||||
|
ExplicitWidth = 510
|
||||||
|
Width = 510
|
||||||
end
|
end
|
||||||
inherited edtFechaIniFiltro: TcxDateEdit
|
inherited edtFechaIniFiltro: TcxDateEdit
|
||||||
Style.LookAndFeel.SkinName = ''
|
Style.LookAndFeel.SkinName = ''
|
||||||
@ -197,6 +202,8 @@ inherited frViewInventario: TfrViewInventario
|
|||||||
StyleDisabled.LookAndFeel.SkinName = ''
|
StyleDisabled.LookAndFeel.SkinName = ''
|
||||||
StyleFocused.LookAndFeel.SkinName = ''
|
StyleFocused.LookAndFeel.SkinName = ''
|
||||||
StyleHot.LookAndFeel.SkinName = ''
|
StyleHot.LookAndFeel.SkinName = ''
|
||||||
|
ExplicitWidth = 215
|
||||||
|
Width = 215
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
inherited TBXAlignmentPanel1: TTBXAlignmentPanel
|
inherited TBXAlignmentPanel1: TTBXAlignmentPanel
|
||||||
|
|||||||
@ -60,6 +60,9 @@ type
|
|||||||
AStyle: TcxStyle);
|
AStyle: TcxStyle);
|
||||||
procedure cxListaObrasPropertiesEditValueChanged(Sender: TObject);
|
procedure cxListaObrasPropertiesEditValueChanged(Sender: TObject);
|
||||||
procedure CustomViewShow(Sender: TObject);
|
procedure CustomViewShow(Sender: TObject);
|
||||||
|
procedure cxGridViewDataControllerCompare(
|
||||||
|
ADataController: TcxCustomDataController; ARecordIndex1, ARecordIndex2,
|
||||||
|
AItemIndex: Integer; const V1, V2: Variant; var Compare: Integer);
|
||||||
|
|
||||||
private
|
private
|
||||||
//Filtros relativos a la vista
|
//Filtros relativos a la vista
|
||||||
@ -86,7 +89,7 @@ type
|
|||||||
implementation
|
implementation
|
||||||
{$R *.dfm}
|
{$R *.dfm}
|
||||||
|
|
||||||
uses uDataModuleInventario, schInventarioClient_Intf;
|
uses uDataModuleInventario, schInventarioClient_Intf, uReferenciasUtils, cxVariants;
|
||||||
|
|
||||||
procedure TfrViewInventario.AnadirFiltroAlmacenesObras;
|
procedure TfrViewInventario.AnadirFiltroAlmacenesObras;
|
||||||
var
|
var
|
||||||
@ -129,6 +132,18 @@ begin
|
|||||||
pnlAlmacenes.Visible:= False;
|
pnlAlmacenes.Visible:= False;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TfrViewInventario.cxGridViewDataControllerCompare(
|
||||||
|
ADataController: TcxCustomDataController; ARecordIndex1, ARecordIndex2,
|
||||||
|
AItemIndex: Integer; const V1, V2: Variant; var Compare: Integer);
|
||||||
|
begin
|
||||||
|
inherited;
|
||||||
|
if (AItemIndex = cxGridViewREFERENCIA.Index) and
|
||||||
|
(VarType(V1) = VarType(V2)) and (VarType(V1) = varString) then
|
||||||
|
Compare := CompararReferencias(V1, V2)
|
||||||
|
else
|
||||||
|
Compare := VarCompare(V1, V2);
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TfrViewInventario.cxGridViewStylesGetContentStyle(Sender:
|
procedure TfrViewInventario.cxGridViewStylesGetContentStyle(Sender:
|
||||||
TcxCustomGridTableView; ARecord: TcxCustomGridRecord; AItem:
|
TcxCustomGridTableView; ARecord: TcxCustomGridRecord; AItem:
|
||||||
TcxCustomGridTableItem; out AStyle: TcxStyle);
|
TcxCustomGridTableItem; out AStyle: TcxStyle);
|
||||||
|
|||||||
@ -47,6 +47,8 @@ inherited frViewRecibosCliente: TfrViewRecibosCliente
|
|||||||
object cxGridViewREFERENCIA: TcxGridDBColumn
|
object cxGridViewREFERENCIA: TcxGridDBColumn
|
||||||
Caption = 'Referencia'
|
Caption = 'Referencia'
|
||||||
DataBinding.FieldName = 'REFERENCIA'
|
DataBinding.FieldName = 'REFERENCIA'
|
||||||
|
SortIndex = 0
|
||||||
|
SortOrder = soDescending
|
||||||
Width = 64
|
Width = 64
|
||||||
end
|
end
|
||||||
object cxGridViewID_RECIBO_COMPENSADO: TcxGridDBColumn
|
object cxGridViewID_RECIBO_COMPENSADO: TcxGridDBColumn
|
||||||
@ -188,10 +190,12 @@ inherited frViewRecibosCliente: TfrViewRecibosCliente
|
|||||||
Width = 222
|
Width = 222
|
||||||
end
|
end
|
||||||
inherited eLista: TcxComboBox
|
inherited eLista: TcxComboBox
|
||||||
|
Left = 558
|
||||||
Style.LookAndFeel.SkinName = ''
|
Style.LookAndFeel.SkinName = ''
|
||||||
StyleDisabled.LookAndFeel.SkinName = ''
|
StyleDisabled.LookAndFeel.SkinName = ''
|
||||||
StyleFocused.LookAndFeel.SkinName = ''
|
StyleFocused.LookAndFeel.SkinName = ''
|
||||||
StyleHot.LookAndFeel.SkinName = ''
|
StyleHot.LookAndFeel.SkinName = ''
|
||||||
|
ExplicitLeft = 558
|
||||||
ExplicitWidth = 215
|
ExplicitWidth = 215
|
||||||
Width = 215
|
Width = 215
|
||||||
end
|
end
|
||||||
|
|||||||
@ -47,6 +47,8 @@ inherited frViewRecibosProveedor: TfrViewRecibosProveedor
|
|||||||
object cxGridViewREFERENCIA: TcxGridDBColumn
|
object cxGridViewREFERENCIA: TcxGridDBColumn
|
||||||
Caption = 'Referencia'
|
Caption = 'Referencia'
|
||||||
DataBinding.FieldName = 'REFERENCIA'
|
DataBinding.FieldName = 'REFERENCIA'
|
||||||
|
SortIndex = 0
|
||||||
|
SortOrder = soDescending
|
||||||
Width = 71
|
Width = 71
|
||||||
end
|
end
|
||||||
object cxGridViewID_RECIBO_COMPENSADO: TcxGridDBColumn
|
object cxGridViewID_RECIBO_COMPENSADO: TcxGridDBColumn
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user