From bb15a17ab224731f546a5feeae231f9554234a92 Mon Sep 17 00:00:00 2001 From: david Date: Mon, 26 Oct 2015 22:22:59 +0000 Subject: [PATCH] Guardar el ancho de las columnas en el grid. git-svn-id: https://192.168.0.254/svn/Proyectos.Acana_FactuGES2/trunk@634 f4e31baf-9722-1c47-927c-6f952f962d4b --- Source/Base/Utiles/uGridUtils.pas | 3 +- Source/Base/uDMBase.pas | 8 ++--- Source/Cliente/FactuGES.dproj | 2 +- Source/Cliente/FactuGES.rc | 8 ++--- Source/Cliente/FactuGES.res | Bin 171984 -> 171984 bytes Source/GUIBase/uViewDetallesBase.dfm | 8 +++-- Source/GUIBase/uViewDetallesBase.pas | 3 +- Source/GUIBase/uViewGridBase.pas | 7 +++-- .../Reports/uRptPedidosProveedor_Server.dfm | 29 ++++++++++++------ Source/Servidor/FactuGES_Server.rc | 2 +- Source/Servidor/FactuGES_Server.res | Bin 23352 -> 23348 bytes 11 files changed, 42 insertions(+), 28 deletions(-) diff --git a/Source/Base/Utiles/uGridUtils.pas b/Source/Base/Utiles/uGridUtils.pas index e3b654a2..7d5ec875 100644 --- a/Source/Base/Utiles/uGridUtils.pas +++ b/Source/Base/Utiles/uGridUtils.pas @@ -60,7 +60,7 @@ implementation uses - uDADataTable, uDAInterfaces, cxVariants; + uDADataTable, uDAInterfaces, cxVariants, uDMBase; procedure TRecordInfos.Notify(Ptr: Pointer; Action: TListNotification); @@ -360,6 +360,7 @@ begin Acolumn.MinWidth := 10; if AColumn.Width > AColumn.BestFitMaxWidth then AColumn.Width := AColumn.BestFitMaxWidth; + //dmBase.EscribirLog(AColumn.DataBinding.FieldName + ' -> ' + IntToStr(AColumn.Width) + ' -> ' + IntToStr(AColumn.BestFitMaxWidth)); end; finally AView.EndUpdate; diff --git a/Source/Base/uDMBase.pas b/Source/Base/uDMBase.pas index 39db46e2..983d5eac 100644 --- a/Source/Base/uDMBase.pas +++ b/Source/Base/uDMBase.pas @@ -69,13 +69,13 @@ begin ALogFileName := ALogFileName + PathDelim + 'Rodax Software' + PathDelim + 'FactuGES' + PathDelim; if SysUtils.ForceDirectories(ALogFileName) then begin -{SE COMENTA PORQUE TUESTA LA PARTE CLIENTE SI SE DESEA ARREGLAR ACTUALIZAR LAS JV de tecsitel +//SE COMENTA PORQUE TUESTA LA PARTE CLIENTE SI SE DESEA ARREGLAR ACTUALIZAR LAS JV de tecsitel JvLogFile.Active := False; JvLogFile.FileName := ALogFileName + 'ClientLog.txt'; JvLogFile.AutoSave := True; JvLogFile.Active := True; JvLogFile.Clear; -} + end else raise Exception.Create('Error al crear directorio para Log: ' + IntToStr(GetLastError)); @@ -143,14 +143,14 @@ end; procedure TdmBase.EscribirLog(const AMensaje: String); begin -{ + FEscribirLog.Acquire; try JvLogFile.Add(AMensaje); finally FEscribirLog.Release; end; -} + end; end. diff --git a/Source/Cliente/FactuGES.dproj b/Source/Cliente/FactuGES.dproj index 31ede151..74120da1 100644 --- a/Source/Cliente/FactuGES.dproj +++ b/Source/Cliente/FactuGES.dproj @@ -52,7 +52,7 @@ Delphi.Personality VCLApplication -FalseTrueFalseC:\Archivos de programa\Borland\Delphi7\Bin\TrueFalse2690FalseFalseFalseFalseFalse30821252Rodax Software S.L.2.6.9.0FactuGESFactuGES2.6.9.0 +FalseTrueFalseC:\Archivos de programa\Borland\Delphi7\Bin\TrueFalse2700FalseFalseFalseFalseFalse30821252Rodax Software S.L.2.7.0.0FactuGESFactuGES2.7.0.0 File C:\Documents and Settings\All Users\Documentos\RAD Studio\5.0\Bpl\dxPScxScheduler2LnkD11.bpl not found FactuGES.dprFalse diff --git a/Source/Cliente/FactuGES.rc b/Source/Cliente/FactuGES.rc index 16413fb6..0e6be076 100644 --- a/Source/Cliente/FactuGES.rc +++ b/Source/Cliente/FactuGES.rc @@ -1,7 +1,7 @@ MAINICON ICON "C:\Codigo Acana\Resources\Iconos\Factuges.ico" 1 VERSIONINFO -FILEVERSION 2,6,9,0 -PRODUCTVERSION 2,6,9,0 +FILEVERSION 2,7,0,0 +PRODUCTVERSION 2,7,0,0 FILEFLAGSMASK 0x3FL FILEFLAGS 0x00L FILEOS 0x40004L @@ -13,10 +13,10 @@ BEGIN BLOCK "0C0A04E4" BEGIN VALUE "CompanyName", "Rodax Software S.L.\0" - VALUE "FileVersion", "2.6.9.0\0" + VALUE "FileVersion", "2.7.0.0\0" VALUE "InternalName", "FactuGES\0" VALUE "ProductName", "FactuGES\0" - VALUE "ProductVersion", "2.6.9.0\0" + VALUE "ProductVersion", "2.7.0.0\0" END END BLOCK "VarFileInfo" diff --git a/Source/Cliente/FactuGES.res b/Source/Cliente/FactuGES.res index a7b99c5a82d8cc0e063c1f21bc84202093256b34..bec558bef2bf33f7ec36660f8d7ebf3fa1e4c8cb 100644 GIT binary patch delta 56 zcmcbxpXjgSYDef?7*F0ArO9c?V8UR