diff --git a/Source/Cliente/FactuGES.dproj b/Source/Cliente/FactuGES.dproj index 14c3caf8..42db54e7 100644 --- a/Source/Cliente/FactuGES.dproj +++ b/Source/Cliente/FactuGES.dproj @@ -52,7 +52,8 @@ Delphi.Personality VCLApplication -FalseTrueFalseC:\Archivos de programa\Borland\Delphi7\Bin\TrueFalse2820FalseFalseFalseFalseFalse30821252Rodax Software S.L.2.8.2.0FactuGESFactuGES2.8.2.0 +FalseTrueFalseC:\Archivos de programa\Borland\Delphi7\Bin\TrueFalse2830FalseFalseFalseFalseFalse30821252Rodax Software S.L.2.8.3.0FactuGESFactuGES2.8.3.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 4956e262..0e827199 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,8,2,0 -PRODUCTVERSION 2,8,2,0 +FILEVERSION 2,8,3,0 +PRODUCTVERSION 2,8,3,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.8.2.0\0" + VALUE "FileVersion", "2.8.3.0\0" VALUE "InternalName", "FactuGES\0" VALUE "ProductName", "FactuGES\0" - VALUE "ProductVersion", "2.8.2.0\0" + VALUE "ProductVersion", "2.8.3.0\0" END END BLOCK "VarFileInfo" diff --git a/Source/Cliente/FactuGES.res b/Source/Cliente/FactuGES.res index 9c046f30..cbc977a4 100644 Binary files a/Source/Cliente/FactuGES.res and b/Source/Cliente/FactuGES.res differ diff --git a/Source/GUIBase/GUIBase.dproj b/Source/GUIBase/GUIBase.dproj index 8409acc9..031bfb74 100644 --- a/Source/GUIBase/GUIBase.dproj +++ b/Source/GUIBase/GUIBase.dproj @@ -58,34 +58,34 @@ MainSource - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + +
fDialogBase
diff --git a/Source/Modulos/Contactos/Controller/uDireccionesContactoController.pas b/Source/Modulos/Contactos/Controller/uDireccionesContactoController.pas index 50652c63..f7f0ee22 100644 --- a/Source/Modulos/Contactos/Controller/uDireccionesContactoController.pas +++ b/Source/Modulos/Contactos/Controller/uDireccionesContactoController.pas @@ -74,6 +74,7 @@ begin try with ADireccion do begin + NIF_CIF := AContacto.NIF_CIF; NOMBRE := AContacto.NOMBRE; CALLE := AContacto.CALLE; POBLACION := AContacto.POBLACION; diff --git a/Source/Modulos/Contactos/Views/uEditorCliente.dfm b/Source/Modulos/Contactos/Views/uEditorCliente.dfm index ab070a07..9b123908 100644 --- a/Source/Modulos/Contactos/Views/uEditorCliente.dfm +++ b/Source/Modulos/Contactos/Views/uEditorCliente.dfm @@ -2,18 +2,19 @@ inherited fEditorCliente: TfEditorCliente Left = 387 Top = 297 Caption = 'Ficha de cliente' - ClientHeight = 852 - ClientWidth = 998 - ExplicitWidth = 1006 - ExplicitHeight = 886 + ClientHeight = 1052 + ClientWidth = 994 + ExplicitTop = -70 + ExplicitWidth = 1002 + ExplicitHeight = 1086 PixelsPerInch = 96 TextHeight = 13 inherited JvNavPanelHeader: TJvNavPanelHeader - Width = 998 + Width = 994 Caption = 'Ficha de cliente' - ExplicitWidth = 896 + ExplicitWidth = 998 inherited Image1: TImage - Left = 971 + Left = 967 Picture.Data = { 0A54504E474F626A65637489504E470D0A1A0A0000000D494844520000001800 0000180806000000E0773DF80000000970485973000017120000171201679FD2 @@ -49,49 +50,48 @@ inherited fEditorCliente: TfEditorCliente end end inherited TBXDock: TTBXDock - Width = 998 - ExplicitWidth = 896 + Width = 994 + ExplicitWidth = 998 inherited tbxMain: TTBXToolbar - ExplicitWidth = 446 + ExplicitWidth = 579 object TBXItem7: TTBXItem [7] Action = actGruposCliente DisplayMode = nbdmImageAndText end end inherited tbxMenu: TTBXToolbar - ExplicitWidth = 998 + ExplicitWidth = 994 end end inherited StatusBar: TJvStatusBar - Top = 833 - Width = 998 - ExplicitTop = 626 - ExplicitWidth = 896 + Top = 1033 + Width = 994 + ExplicitTop = 833 + ExplicitWidth = 998 end inherited pgPaginas: TPageControl - Width = 992 - Height = 721 - ActivePage = pagPersonal - ExplicitWidth = 890 - ExplicitHeight = 514 + Width = 988 + Height = 912 + ExplicitWidth = 992 + ExplicitHeight = 712 inherited pagGeneral: TTabSheet - ExplicitWidth = 882 - ExplicitHeight = 486 + ExplicitLeft = 0 + ExplicitTop = 0 + ExplicitWidth = 984 + ExplicitHeight = 684 inherited frViewPersonalContacto1: TfrViewPersonalContacto - Top = 543 - Width = 984 + Top = 681 + Width = 980 TabOrder = 1 - ExplicitTop = 336 - ExplicitWidth = 882 + ExplicitTop = 681 + ExplicitWidth = 980 inherited cxGrid: TcxGrid - Width = 984 - ExplicitTop = 25 - ExplicitWidth = 882 - ExplicitHeight = 461 + Width = 980 + ExplicitWidth = 984 end inherited ToolBar1: TToolBar - Width = 984 - ExplicitWidth = 882 + Width = 980 + ExplicitWidth = 984 inherited ToolButton1: TToolButton ExplicitWidth = 62 end @@ -109,8 +109,8 @@ inherited fEditorCliente: TfEditorCliente inline frViewCliente1: TfrViewCliente Left = 0 Top = 0 - Width = 984 - Height = 543 + Width = 980 + Height = 681 Align = alClient Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText @@ -120,271 +120,183 @@ inherited fEditorCliente: TfEditorCliente ParentFont = False TabOrder = 0 ReadOnly = False - ExplicitWidth = 882 - ExplicitHeight = 0 + ExplicitWidth = 984 + ExplicitHeight = 534 inherited dxLayoutControlContacto: TdxLayoutControl - Width = 984 - Height = 543 + Width = 980 + Height = 681 LookAndFeel = dxLayoutOfficeLookAndFeel - ExplicitWidth = 882 - ExplicitHeight = 0 + ExplicitWidth = 984 + ExplicitHeight = 534 inherited PngSpeedButton1: TPngSpeedButton - Left = 922 + Left = 935 Top = 218 - ExplicitLeft = 922 + ExplicitLeft = 935 ExplicitTop = 218 end inherited PngSpeedButton2: TPngSpeedButton - Left = 922 + Left = 935 Top = 190 - ExplicitLeft = 922 + ExplicitLeft = 935 ExplicitTop = 190 end inherited PngSpeedButton3: TPngSpeedButton - Left = 922 + Left = 935 Top = 162 - ExplicitLeft = 922 + ExplicitLeft = 935 ExplicitTop = 162 end inherited eCalle: TcxDBTextEdit Top = 216 - Style.LookAndFeel.SkinName = '' - StyleDisabled.LookAndFeel.SkinName = '' - StyleFocused.LookAndFeel.SkinName = '' - StyleHot.LookAndFeel.SkinName = '' ExplicitTop = 216 ExplicitWidth = 428 Width = 428 end inherited cbProvincia: TcxDBComboBox Top = 243 - Style.LookAndFeel.SkinName = '' - StyleDisabled.LookAndFeel.SkinName = '' - StyleFocused.LookAndFeel.SkinName = '' - StyleHot.LookAndFeel.SkinName = '' ExplicitTop = 243 ExplicitWidth = 336 Width = 336 end inherited cbPoblacion: TcxDBComboBox Top = 270 - Style.LookAndFeel.SkinName = '' - StyleDisabled.LookAndFeel.SkinName = '' - StyleFocused.LookAndFeel.SkinName = '' - StyleHot.LookAndFeel.SkinName = '' ExplicitTop = 270 ExplicitWidth = 428 Width = 428 end inherited eCodigoPostal: TcxDBTextEdit - Left = 560 + Left = 568 Top = 243 - Style.LookAndFeel.SkinName = '' - StyleDisabled.LookAndFeel.SkinName = '' - StyleFocused.LookAndFeel.SkinName = '' - StyleHot.LookAndFeel.SkinName = '' - ExplicitLeft = 560 + ExplicitLeft = 568 ExplicitTop = 243 end inherited eTlfParticular: TcxDBTextEdit - Left = 739 + Left = 747 Top = 57 - Style.LookAndFeel.SkinName = '' - StyleDisabled.LookAndFeel.SkinName = '' - StyleFocused.LookAndFeel.SkinName = '' - StyleHot.LookAndFeel.SkinName = '' - ExplicitLeft = 739 + ExplicitLeft = 747 ExplicitTop = 57 ExplicitWidth = 177 Width = 177 end inherited eNombreComercial: TcxDBTextEdit Top = 84 - Style.LookAndFeel.SkinName = '' - StyleDisabled.LookAndFeel.SkinName = '' - StyleFocused.LookAndFeel.SkinName = '' - StyleHot.LookAndFeel.SkinName = '' ExplicitTop = 84 ExplicitWidth = 428 Width = 428 end inherited cbClienteBloqueado: TcxDBCheckBox Top = 348 - Style.LookAndFeel.SkinName = '' - StyleDisabled.LookAndFeel.SkinName = '' - StyleFocused.LookAndFeel.SkinName = '' - StyleHot.LookAndFeel.SkinName = '' ExplicitTop = 348 ExplicitWidth = 538 Width = 538 end inherited cbGrupoCliente: TcxDBComboBox Top = 138 - Style.LookAndFeel.SkinName = '' - StyleDisabled.LookAndFeel.SkinName = '' - StyleFocused.LookAndFeel.SkinName = '' - StyleHot.LookAndFeel.SkinName = '' ExplicitTop = 138 ExplicitWidth = 428 Width = 428 end inherited eBloqueo: TcxDBTextEdit Top = 375 - Style.LookAndFeel.SkinName = '' - StyleDisabled.LookAndFeel.SkinName = '' - StyleFocused.LookAndFeel.SkinName = '' - StyleHot.LookAndFeel.SkinName = '' ExplicitTop = 375 ExplicitWidth = 428 Width = 428 end inherited eCodigoAsignado: TcxDBTextEdit Top = 111 - Style.LookAndFeel.SkinName = '' - StyleDisabled.LookAndFeel.SkinName = '' - StyleFocused.LookAndFeel.SkinName = '' - StyleHot.LookAndFeel.SkinName = '' ExplicitTop = 111 ExplicitWidth = 428 Width = 428 end inherited cbProcedenciaCliente: TcxDBComboBox Top = 165 - Style.LookAndFeel.SkinName = '' - StyleDisabled.LookAndFeel.SkinName = '' - StyleFocused.LookAndFeel.SkinName = '' - StyleHot.LookAndFeel.SkinName = '' ExplicitTop = 165 ExplicitWidth = 428 Width = 428 end inherited eTlfTrabajo: TcxDBTextEdit - Left = 739 + Left = 747 Top = 30 - Style.LookAndFeel.SkinName = '' - StyleDisabled.LookAndFeel.SkinName = '' - StyleFocused.LookAndFeel.SkinName = '' - StyleHot.LookAndFeel.SkinName = '' - ExplicitLeft = 739 + ExplicitLeft = 747 ExplicitTop = 30 ExplicitWidth = 177 Width = 177 end inherited eTlfMovil: TcxDBTextEdit - Left = 739 + Left = 747 Top = 84 - Style.LookAndFeel.SkinName = '' - StyleDisabled.LookAndFeel.SkinName = '' - StyleFocused.LookAndFeel.SkinName = '' - StyleHot.LookAndFeel.SkinName = '' - ExplicitLeft = 739 + ExplicitLeft = 747 ExplicitTop = 84 ExplicitWidth = 177 Width = 177 end inherited eFax: TcxDBTextEdit - Left = 739 + Left = 747 Top = 111 - Style.LookAndFeel.SkinName = '' - StyleDisabled.LookAndFeel.SkinName = '' - StyleFocused.LookAndFeel.SkinName = '' - StyleHot.LookAndFeel.SkinName = '' - ExplicitLeft = 739 + ExplicitLeft = 747 ExplicitTop = 111 ExplicitWidth = 177 Width = 177 end inherited eNombre: TcxDBTextEdit Top = 57 - Style.LookAndFeel.SkinName = '' - StyleDisabled.LookAndFeel.SkinName = '' - StyleFocused.LookAndFeel.SkinName = '' - StyleHot.LookAndFeel.SkinName = '' ExplicitTop = 57 ExplicitWidth = 428 Width = 428 end inherited eNIFCIF: TcxDBTextEdit - Left = 312 + Left = 315 Top = 30 - Style.LookAndFeel.SkinName = '' - StyleDisabled.LookAndFeel.SkinName = '' - StyleFocused.LookAndFeel.SkinName = '' - StyleHot.LookAndFeel.SkinName = '' - ExplicitLeft = 312 + ExplicitLeft = 315 ExplicitTop = 30 ExplicitWidth = 271 Width = 271 end inherited eMailTrabajo: TcxDBHyperLinkEdit - Left = 739 + Left = 747 Top = 162 Properties.Prefix = 'mailto:' - Style.LookAndFeel.SkinName = '' - StyleDisabled.LookAndFeel.SkinName = '' - StyleFocused.LookAndFeel.SkinName = '' - StyleHot.LookAndFeel.SkinName = '' - ExplicitLeft = 739 + ExplicitLeft = 747 ExplicitTop = 162 ExplicitWidth = 148 Width = 148 end inherited eMailParticular: TcxDBHyperLinkEdit - Left = 739 + Left = 747 Top = 190 Properties.Prefix = 'mailto:' - Style.LookAndFeel.SkinName = '' - StyleDisabled.LookAndFeel.SkinName = '' - StyleFocused.LookAndFeel.SkinName = '' - StyleHot.LookAndFeel.SkinName = '' - ExplicitLeft = 739 + ExplicitLeft = 747 ExplicitTop = 190 ExplicitWidth = 148 Width = 148 end inherited ePaginaWeb: TcxDBHyperLinkEdit - Left = 739 + Left = 747 Top = 217 - Style.LookAndFeel.SkinName = '' - StyleDisabled.LookAndFeel.SkinName = '' - StyleFocused.LookAndFeel.SkinName = '' - StyleHot.LookAndFeel.SkinName = '' - ExplicitLeft = 739 + ExplicitLeft = 747 ExplicitTop = 217 ExplicitWidth = 148 Width = 148 end inherited eReferencia: TcxDBTextEdit Top = 30 - Style.LookAndFeel.SkinName = '' - StyleDisabled.LookAndFeel.SkinName = '' - StyleFocused.LookAndFeel.SkinName = '' - StyleHot.LookAndFeel.SkinName = '' ExplicitTop = 30 ExplicitWidth = 104 Width = 104 end inherited ePersonaContacto: TcxDBTextEdit Top = 297 - Style.LookAndFeel.SkinName = '' - StyleDisabled.LookAndFeel.SkinName = '' - StyleFocused.LookAndFeel.SkinName = '' - StyleHot.LookAndFeel.SkinName = '' ExplicitTop = 297 ExplicitWidth = 428 Width = 428 end inherited frViewTienda1: TfrViewTienda - Left = 644 + Left = 652 Top = 270 - ExplicitLeft = 644 + ExplicitLeft = 652 ExplicitTop = 270 inherited dxLayoutControl1: TdxLayoutControl inherited cbTienda: TcxComboBox - Style.LookAndFeel.SkinName = '' - StyleDisabled.LookAndFeel.SkinName = '' - StyleFocused.LookAndFeel.SkinName = '' - StyleHot.LookAndFeel.SkinName = '' ExplicitWidth = 229 Width = 229 end @@ -409,54 +321,32 @@ inherited fEditorCliente: TfEditorCliente end end inherited pagDatosBancarios: TTabSheet - ExplicitWidth = 882 - ExplicitHeight = 486 + ExplicitWidth = 980 + ExplicitHeight = 884 inherited frViewClienteDatosBancarios: TfrViewClienteDatosBancarios - Width = 984 - Height = 693 - ExplicitWidth = 882 - ExplicitHeight = 486 + Width = 980 + Height = 884 + ExplicitWidth = 980 + ExplicitHeight = 884 inherited dxLayoutControl1: TdxLayoutControl - Width = 984 + Width = 980 LookAndFeel = dxLayoutOfficeLookAndFeel - ExplicitWidth = 882 + ExplicitWidth = 980 inherited eEntidad: TcxDBTextEdit - Style.LookAndFeel.SkinName = '' - StyleDisabled.LookAndFeel.SkinName = '' - StyleFocused.LookAndFeel.SkinName = '' - StyleHot.LookAndFeel.SkinName = '' ExplicitWidth = 345 Width = 345 end inherited eSucursal: TcxDBTextEdit - Left = 596 - Style.LookAndFeel.SkinName = '' - StyleDisabled.LookAndFeel.SkinName = '' - StyleFocused.LookAndFeel.SkinName = '' - StyleHot.LookAndFeel.SkinName = '' - ExplicitLeft = 596 + Left = 594 + ExplicitLeft = 594 ExplicitWidth = 318 Width = 318 end inherited eCuenta: TcxDBTextEdit - Style.LookAndFeel.SkinName = '' - StyleDisabled.LookAndFeel.SkinName = '' - StyleFocused.LookAndFeel.SkinName = '' - StyleHot.LookAndFeel.SkinName = '' ExplicitWidth = 622 Width = 622 end - inherited eDC: TcxDBTextEdit - Style.LookAndFeel.SkinName = '' - StyleDisabled.LookAndFeel.SkinName = '' - StyleFocused.LookAndFeel.SkinName = '' - StyleHot.LookAndFeel.SkinName = '' - end inherited eTitular: TcxDBTextEdit - Style.LookAndFeel.SkinName = '' - StyleDisabled.LookAndFeel.SkinName = '' - StyleFocused.LookAndFeel.SkinName = '' - StyleHot.LookAndFeel.SkinName = '' ExplicitWidth = 743 Width = 743 end @@ -466,18 +356,22 @@ inherited fEditorCliente: TfEditorCliente inherited pagPersonal: TTabSheet ExplicitLeft = 4 ExplicitTop = 24 - ExplicitWidth = 882 - ExplicitHeight = 486 + ExplicitWidth = 984 + ExplicitHeight = 684 + inherited memObservaciones22: TcxDBMemo + ExplicitWidth = 980 + ExplicitHeight = 884 + Height = 884 + Width = 980 + end end object pagDatosComerciales: TTabSheet Caption = 'Datos comerciales' ImageIndex = 4 - ExplicitWidth = 882 - ExplicitHeight = 486 inline frViewClienteDatosComerciales1: TfrViewClienteDatosComerciales Left = 0 Top = 0 - Width = 984 + Width = 980 Height = 193 Align = alTop Font.Charset = DEFAULT_CHARSET @@ -488,102 +382,74 @@ inherited fEditorCliente: TfEditorCliente ParentFont = False TabOrder = 0 ReadOnly = False - ExplicitWidth = 882 + ExplicitWidth = 980 ExplicitHeight = 193 inherited dxLayoutControl1: TdxLayoutControl - Width = 984 + Width = 980 Height = 193 LookAndFeel = dxLayoutOfficeLookAndFeel - ExplicitWidth = 882 + ExplicitWidth = 980 ExplicitHeight = 193 inherited Label1: TLabel - Left = 641 + Left = 638 Top = 30 Width = 277 - ExplicitLeft = 641 + ExplicitLeft = 638 ExplicitTop = 30 ExplicitWidth = 277 end inherited eDiasVencimiento: TcxDBSpinEdit - Left = 713 + Left = 710 Top = 62 - Style.LookAndFeel.SkinName = '' - StyleDisabled.LookAndFeel.SkinName = '' - StyleFocused.LookAndFeel.SkinName = '' - StyleHot.LookAndFeel.SkinName = '' - ExplicitLeft = 713 + ExplicitLeft = 710 ExplicitTop = 62 end inherited cbRegimenIVA: TcxDBComboBox Top = 30 - Style.LookAndFeel.SkinName = '' - StyleDisabled.LookAndFeel.SkinName = '' - StyleFocused.LookAndFeel.SkinName = '' - StyleHot.LookAndFeel.SkinName = '' ExplicitTop = 30 ExplicitWidth = 427 Width = 427 end inherited cbRecargoEquivalencia: TcxDBCheckBox Top = 111 - Style.LookAndFeel.SkinName = '' - StyleDisabled.LookAndFeel.SkinName = '' - StyleFocused.LookAndFeel.SkinName = '' - StyleHot.LookAndFeel.SkinName = '' ExplicitTop = 111 ExplicitWidth = 427 Width = 427 end inherited cbFormaPago: TcxDBLookupComboBox Top = 57 - Style.LookAndFeel.SkinName = '' - StyleDisabled.LookAndFeel.SkinName = '' - StyleFocused.LookAndFeel.SkinName = '' - StyleHot.LookAndFeel.SkinName = '' ExplicitTop = 57 ExplicitWidth = 289 Width = 289 end inherited bFormasPago: TButton - Left = 481 + Left = 478 Top = 57 - ExplicitLeft = 481 + ExplicitLeft = 478 ExplicitTop = 57 end inherited eIVA: TcxDBLookupComboBox Top = 84 - Style.LookAndFeel.SkinName = '' - StyleDisabled.LookAndFeel.SkinName = '' - StyleFocused.LookAndFeel.SkinName = '' - StyleHot.LookAndFeel.SkinName = '' ExplicitTop = 84 ExplicitWidth = 289 Width = 289 end inherited bTiposIVA: TButton - Left = 481 + Left = 478 Top = 84 - ExplicitLeft = 481 + ExplicitLeft = 478 ExplicitTop = 84 end inherited cxDBSpinEdit1: TcxDBSpinEdit - Left = 713 + Left = 710 Top = 89 - Style.LookAndFeel.SkinName = '' - StyleDisabled.LookAndFeel.SkinName = '' - StyleFocused.LookAndFeel.SkinName = '' - StyleHot.LookAndFeel.SkinName = '' - ExplicitLeft = 713 + ExplicitLeft = 710 ExplicitTop = 89 end inherited cxDBSpinEdit2: TcxDBSpinEdit - Left = 713 + Left = 710 Top = 116 - Style.LookAndFeel.SkinName = '' - StyleDisabled.LookAndFeel.SkinName = '' - StyleFocused.LookAndFeel.SkinName = '' - StyleHot.LookAndFeel.SkinName = '' - ExplicitLeft = 713 + ExplicitLeft = 710 ExplicitTop = 116 end inherited dxLayoutGroup1: TdxLayoutGroup @@ -599,13 +465,11 @@ inherited fEditorCliente: TfEditorCliente object pagDirecciones: TTabSheet Caption = 'Direcciones' ImageIndex = 1 - ExplicitWidth = 882 - ExplicitHeight = 486 inline frViewDireccionesEntrega1: TfrViewDireccionesEntrega Left = 0 Top = 0 - Width = 984 - Height = 693 + Width = 980 + Height = 884 Align = alClient Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText @@ -615,11 +479,11 @@ inherited fEditorCliente: TfEditorCliente ParentFont = False TabOrder = 0 ReadOnly = False - ExplicitWidth = 882 - ExplicitHeight = 486 + ExplicitWidth = 980 + ExplicitHeight = 884 inherited cxGrid: TcxGrid - Width = 984 - Height = 668 + Width = 980 + Height = 859 ExplicitWidth = 984 ExplicitHeight = 668 inherited cxGridView: TcxGridDBTableView @@ -630,8 +494,20 @@ inherited fEditorCliente: TfEditorCliente end end inherited ToolBar1: TToolBar - Width = 984 + Width = 980 ExplicitWidth = 984 + inherited ToolButton1: TToolButton + ExplicitWidth = 113 + end + inherited ToolButton4: TToolButton + ExplicitWidth = 113 + end + inherited ToolButton2: TToolButton + ExplicitWidth = 113 + end + inherited ToolButton7: TToolButton + ExplicitWidth = 113 + end end end end @@ -639,13 +515,11 @@ inherited fEditorCliente: TfEditorCliente Caption = 'Descuentos' ImageIndex = 2 TabVisible = False - ExplicitWidth = 882 - ExplicitHeight = 486 inline frViewClienteDescuentos1: TfrViewClienteDescuentos Left = 0 Top = 0 - Width = 984 - Height = 693 + Width = 980 + Height = 884 Align = alClient Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText @@ -655,16 +529,16 @@ inherited fEditorCliente: TfEditorCliente ParentFont = False TabOrder = 0 ReadOnly = False - ExplicitWidth = 882 - ExplicitHeight = 486 + ExplicitWidth = 980 + ExplicitHeight = 884 inherited cxGrid: TcxGrid - Width = 984 - Height = 668 + Width = 980 + Height = 859 ExplicitWidth = 984 ExplicitHeight = 668 end inherited ToolBar1: TToolBar - Width = 984 + Width = 980 ExplicitWidth = 984 inherited ToolButton1: TToolButton ExplicitWidth = 62 @@ -684,13 +558,15 @@ inherited fEditorCliente: TfEditorCliente object pagContabilidad: TTabSheet Caption = 'Contabilidad' ImageIndex = 5 - ExplicitWidth = 882 - ExplicitHeight = 486 + ExplicitLeft = 0 + ExplicitTop = 0 + ExplicitWidth = 984 + ExplicitHeight = 684 inline frViewSubCuentaContacto1: TfrViewSubCuentaContacto Left = 0 Top = 0 - Width = 984 - Height = 693 + Width = 980 + Height = 884 Align = alClient AutoSize = True Font.Charset = DEFAULT_CHARSET @@ -701,50 +577,38 @@ inherited fEditorCliente: TfEditorCliente ParentFont = False TabOrder = 0 ReadOnly = False - ExplicitWidth = 882 - ExplicitHeight = 486 + ExplicitWidth = 984 + ExplicitHeight = 684 inherited layoutApunte: TdxLayoutControl - Width = 984 - Height = 693 - ExplicitWidth = 882 - ExplicitHeight = 486 + Width = 980 + Height = 884 + ExplicitWidth = 984 + ExplicitHeight = 684 DesignSize = ( - 984 - 693) + 980 + 884) inherited eRefSubCuenta: TcxDBTextEdit - Style.LookAndFeel.SkinName = '' - StyleDisabled.LookAndFeel.SkinName = '' - StyleFocused.LookAndFeel.SkinName = '' - StyleHot.LookAndFeel.SkinName = '' ExplicitWidth = 441 Width = 441 end inherited BitBtn3: TBitBtn - Left = 642 - ExplicitLeft = 642 + Left = 638 + ExplicitLeft = 638 end inherited eSubCuenta: TcxDBTextEdit - Style.LookAndFeel.SkinName = '' - StyleDisabled.LookAndFeel.SkinName = '' - StyleFocused.LookAndFeel.SkinName = '' - StyleHot.LookAndFeel.SkinName = '' ExplicitWidth = 779 Width = 779 end inherited BitBtn1: TBitBtn - Left = 758 - ExplicitLeft = 758 + Left = 754 + ExplicitLeft = 754 end inherited BitBtn2: TBitBtn - Left = 884 - ExplicitLeft = 884 + Left = 880 + ExplicitLeft = 880 end inherited cbIgnorarContabilidad: TcxDBCheckBox DataBinding.DataSource = frViewCliente1.dsContacto - Style.LookAndFeel.SkinName = '' - StyleDisabled.LookAndFeel.SkinName = '' - StyleFocused.LookAndFeel.SkinName = '' - StyleHot.LookAndFeel.SkinName = '' ExplicitWidth = 862 Width = 862 end @@ -760,12 +624,8 @@ inherited fEditorCliente: TfEditorCliente end end inherited PnlComentario: TPanel - Width = 998 - ExplicitWidth = 896 - inherited lbComentario: TLabel - Width = 988 - Height = 25 - end + Width = 994 + ExplicitWidth = 998 end inherited dsDataTable: TDADataSource Left = 16 diff --git a/Source/Modulos/Contactos/Views/uEditorCliente.pas b/Source/Modulos/Contactos/Views/uEditorCliente.pas index bb8924d7..43d93387 100644 --- a/Source/Modulos/Contactos/Views/uEditorCliente.pas +++ b/Source/Modulos/Contactos/Views/uEditorCliente.pas @@ -15,7 +15,8 @@ uses uViewDireccionesEntrega, uViewDetallesGenerico, uViewClienteDescuentos, uViewContactoDatosBancarios, dxLayoutLookAndFeels, uViewClienteDatosComerciales, uDAInterfaces, uViewSubCuentaContacto, - uViewPersonalContacto, Grids, DBGrids; + uViewPersonalContacto, Grids, DBGrids, cxControls, cxContainer, cxEdit, + cxTextEdit, cxMemo, cxDBEdit; type TfEditorCliente = class(TfEditorContacto, IEditorCliente) @@ -46,7 +47,7 @@ implementation {$INCLUDE ..\..\..\FactuGES.inc} uses - uEditorItem, uEditorBase, uDataModuleUsuarios, uEditorDBItem, cxDBEdit, + uEditorItem, uEditorBase, uDataModuleUsuarios, uEditorDBItem, uGruposClienteController, uBizGruposCliente, uEditorDBBase, uDialogUtils, uClientesController; diff --git a/Source/Modulos/Contactos/Views/uEditorContacto.dfm b/Source/Modulos/Contactos/Views/uEditorContacto.dfm index 95d251f8..45be8f65 100644 --- a/Source/Modulos/Contactos/Views/uEditorContacto.dfm +++ b/Source/Modulos/Contactos/Views/uEditorContacto.dfm @@ -24,7 +24,7 @@ inherited fEditorContacto: TfEditorContacto Width = 949 ExplicitWidth = 949 inherited tbxMain: TTBXToolbar - ExplicitWidth = 330 + ExplicitWidth = 423 inherited TBXItem2: TTBXItem Visible = False end @@ -86,20 +86,19 @@ inherited fEditorContacto: TfEditorContacto end inherited pgPaginas: TPageControl Width = 943 - Height = 608 - ActivePage = pagPersonal + Height = 599 ExplicitWidth = 943 - ExplicitHeight = 608 + ExplicitHeight = 599 inherited pagGeneral: TTabSheet ExplicitLeft = 4 ExplicitTop = 24 ExplicitWidth = 935 - ExplicitHeight = 580 + ExplicitHeight = 571 inline frViewPersonalContacto1: TfrViewPersonalContacto Left = 0 - Top = 430 + Top = 368 Width = 935 - Height = 150 + Height = 203 Align = alBottom Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText @@ -109,12 +108,12 @@ inherited fEditorContacto: TfEditorContacto ParentFont = False TabOrder = 0 ReadOnly = False - ExplicitTop = 430 + ExplicitTop = 368 ExplicitWidth = 935 - ExplicitHeight = 150 + ExplicitHeight = 203 inherited cxGrid: TcxGrid Width = 935 - Height = 125 + Height = 178 ExplicitWidth = 935 ExplicitHeight = 125 end @@ -131,7 +130,7 @@ inherited fEditorContacto: TfEditorContacto Left = 0 Top = 0 Width = 935 - Height = 580 + Height = 571 Align = alClient Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText @@ -142,17 +141,13 @@ inherited fEditorContacto: TfEditorContacto TabOrder = 0 ReadOnly = False ExplicitWidth = 935 - ExplicitHeight = 580 + ExplicitHeight = 571 inherited dxLayoutControl1: TdxLayoutControl Width = 935 LookAndFeel = dxLayoutOfficeLookAndFeel ExplicitWidth = 935 inherited eEntidad: TcxDBTextEdit Top = 57 - Style.LookAndFeel.SkinName = '' - StyleDisabled.LookAndFeel.SkinName = '' - StyleFocused.LookAndFeel.SkinName = '' - StyleHot.LookAndFeel.SkinName = '' ExplicitTop = 57 ExplicitWidth = 114 Width = 114 @@ -160,10 +155,6 @@ inherited fEditorContacto: TfEditorContacto inherited eSucursal: TcxDBTextEdit Left = 570 Top = 57 - Style.LookAndFeel.SkinName = '' - StyleDisabled.LookAndFeel.SkinName = '' - StyleFocused.LookAndFeel.SkinName = '' - StyleHot.LookAndFeel.SkinName = '' ExplicitLeft = 570 ExplicitTop = 57 ExplicitWidth = 112 @@ -171,28 +162,16 @@ inherited fEditorContacto: TfEditorContacto end inherited eCuenta: TcxDBTextEdit Top = 84 - Style.LookAndFeel.SkinName = '' - StyleDisabled.LookAndFeel.SkinName = '' - StyleFocused.LookAndFeel.SkinName = '' - StyleHot.LookAndFeel.SkinName = '' ExplicitTop = 84 ExplicitWidth = 194 Width = 194 end inherited eDC: TcxDBTextEdit Top = 84 - Style.LookAndFeel.SkinName = '' - StyleDisabled.LookAndFeel.SkinName = '' - StyleFocused.LookAndFeel.SkinName = '' - StyleHot.LookAndFeel.SkinName = '' ExplicitTop = 84 end inherited eTitular: TcxDBTextEdit Top = 30 - Style.LookAndFeel.SkinName = '' - StyleDisabled.LookAndFeel.SkinName = '' - StyleFocused.LookAndFeel.SkinName = '' - StyleHot.LookAndFeel.SkinName = '' ExplicitTop = 30 ExplicitWidth = 194 Width = 194 @@ -215,7 +194,7 @@ inherited fEditorContacto: TfEditorContacto StyleFocused.LookAndFeel.NativeStyle = True StyleHot.LookAndFeel.NativeStyle = True TabOrder = 0 - Height = 580 + Height = 571 Width = 935 end end diff --git a/Source/Modulos/Contactos/Views/uViewDatosYSeleccionCliente.dfm b/Source/Modulos/Contactos/Views/uViewDatosYSeleccionCliente.dfm index 176de137..389c06a1 100644 --- a/Source/Modulos/Contactos/Views/uViewDatosYSeleccionCliente.dfm +++ b/Source/Modulos/Contactos/Views/uViewDatosYSeleccionCliente.dfm @@ -1,12 +1,12 @@ inherited frViewDatosYSeleccionCliente: TfrViewDatosYSeleccionCliente - Width = 350 + Width = 781 Height = 212 - ExplicitWidth = 350 + ExplicitWidth = 781 ExplicitHeight = 212 object dxLayoutControl1: TdxLayoutControl Left = 0 Top = 0 - Width = 350 + Width = 781 Height = 212 Margins.Left = 0 Margins.Top = 0 @@ -18,7 +18,7 @@ inherited frViewDatosYSeleccionCliente: TfrViewDatosYSeleccionCliente TabStop = False AutoContentSizes = [acsWidth, acsHeight] DesignSize = ( - 350 + 781 212) object edtlNombre: TcxDBTextEdit Left = 64 @@ -28,7 +28,6 @@ inherited frViewDatosYSeleccionCliente: TfrViewDatosYSeleccionCliente DataBinding.DataField = 'NOMBRE' DataBinding.DataSource = DADataSource Enabled = False - ParentFont = False Properties.ReadOnly = True Properties.UseLeftAlignmentOnEditing = False Style.BorderColor = clWindowFrame @@ -51,7 +50,6 @@ inherited frViewDatosYSeleccionCliente: TfrViewDatosYSeleccionCliente DataBinding.DataField = 'NIF_CIF' DataBinding.DataSource = DADataSource Enabled = False - ParentFont = False Properties.ReadOnly = True Properties.UseLeftAlignmentOnEditing = False Style.BorderColor = clWindowFrame @@ -74,7 +72,6 @@ inherited frViewDatosYSeleccionCliente: TfrViewDatosYSeleccionCliente DataBinding.DataField = 'CALLE' DataBinding.DataSource = DADataSource Enabled = False - ParentFont = False Properties.ReadOnly = True Properties.UseLeftAlignmentOnEditing = False Style.BorderColor = clWindowFrame @@ -97,7 +94,6 @@ inherited frViewDatosYSeleccionCliente: TfrViewDatosYSeleccionCliente DataBinding.DataField = 'POBLACION' DataBinding.DataSource = DADataSource Enabled = False - ParentFont = False Properties.ReadOnly = True Properties.UseLeftAlignmentOnEditing = False Style.BorderColor = clWindowFrame @@ -120,7 +116,6 @@ inherited frViewDatosYSeleccionCliente: TfrViewDatosYSeleccionCliente DataBinding.DataField = 'PROVINCIA' DataBinding.DataSource = DADataSource Enabled = False - ParentFont = False Properties.ReadOnly = True Properties.UseLeftAlignmentOnEditing = False Style.BorderColor = clWindowFrame @@ -136,14 +131,13 @@ inherited frViewDatosYSeleccionCliente: TfrViewDatosYSeleccionCliente Width = 327 end object edtCodigoPostal: TcxDBTextEdit - Left = 258 + Left = 689 Top = 122 Anchors = [akLeft, akTop, akRight] AutoSize = False DataBinding.DataField = 'CODIGO_POSTAL' DataBinding.DataSource = DADataSource Enabled = False - ParentFont = False Properties.ReadOnly = True Properties.UseLeftAlignmentOnEditing = False Style.BorderColor = clWindowFrame @@ -247,7 +241,7 @@ inherited frViewDatosYSeleccionCliente: TfrViewDatosYSeleccionCliente FF00FF00FF00006000000060000000600000FF00FF00FF00FF00} end object Button3: TBitBtn - Left = 148 + Left = 579 Top = 176 Width = 192 Height = 25 diff --git a/Source/Modulos/Contactos/Views/uViewDatosYSeleccionCliente.pas b/Source/Modulos/Contactos/Views/uViewDatosYSeleccionCliente.pas index 409223f5..d0822c81 100644 --- a/Source/Modulos/Contactos/Views/uViewDatosYSeleccionCliente.pas +++ b/Source/Modulos/Contactos/Views/uViewDatosYSeleccionCliente.pas @@ -76,9 +76,6 @@ type FCliente : IBizCliente; FOnClienteChanged : TNotifyEvent; FMsgElegirCliente: String; - function GetMsgElegirCliente: String; - procedure SetMsgElegirCliente(const Value: String); - protected function GetController: IClientesController; procedure SetController(Value: IClientesController); @@ -89,6 +86,8 @@ type procedure SetReadOnly(Value: Boolean); override; function GetID_Cliente: integer; procedure SetID_Cliente(const Value: integer); + function GetMsgElegirCliente: String; + procedure SetMsgElegirCliente(const Value: String); public constructor Create(AOwner: TComponent); override; destructor Destroy; override; @@ -104,7 +103,7 @@ implementation {$R *.dfm} uses - uDataModuleClientes, Math, uCustomView; + uDataModuleClientes, Math, uCustomView, uDialogUtils; procedure TfrViewDatosYSeleccionCliente.actElegirContactoExecute(Sender: TObject); var @@ -137,9 +136,23 @@ begin end; procedure TfrViewDatosYSeleccionCliente.actVerContactoExecute(Sender: TObject); +var + ACliente : IBizCliente; + begin - inherited; - Controller.Ver(Cliente); + if not Assigned(Cliente) then + ShowErrorMessage('No se ha indicado un cliente', 'El contrato no tiene ningún cliente asociado a mostrar.') + else begin + Controller.Ver(Cliente); + + if (Application.MessageBox('¿Desea recargar los datos del cliente en el documento?', 'Atención', MB_YESNO) = IDYES) then + begin + ACliente := (Controller.Buscar(Cliente.ID) as IBizCliente); + if Assigned(ACliente) then + Self.Cliente := ACliente; + ACliente := Nil; + end; + end; end; procedure TfrViewDatosYSeleccionCliente.actVerContactoUpdate(Sender: TObject); diff --git a/Source/Modulos/Contactos/Views/uViewDatosYSeleccionProveedor.dfm b/Source/Modulos/Contactos/Views/uViewDatosYSeleccionProveedor.dfm index b9b342d6..bf5bd18e 100644 --- a/Source/Modulos/Contactos/Views/uViewDatosYSeleccionProveedor.dfm +++ b/Source/Modulos/Contactos/Views/uViewDatosYSeleccionProveedor.dfm @@ -28,7 +28,6 @@ inherited frViewDatosYSeleccionProveedor: TfrViewDatosYSeleccionProveedor DataBinding.DataField = 'NOMBRE' DataBinding.DataSource = DADataSource Enabled = False - ParentFont = False Properties.ReadOnly = True Properties.UseLeftAlignmentOnEditing = False Style.BorderColor = clWindowFrame @@ -51,7 +50,6 @@ inherited frViewDatosYSeleccionProveedor: TfrViewDatosYSeleccionProveedor DataBinding.DataField = 'NIF_CIF' DataBinding.DataSource = DADataSource Enabled = False - ParentFont = False Properties.ReadOnly = True Properties.UseLeftAlignmentOnEditing = False Style.BorderColor = clWindowFrame @@ -74,7 +72,6 @@ inherited frViewDatosYSeleccionProveedor: TfrViewDatosYSeleccionProveedor DataBinding.DataField = 'CALLE' DataBinding.DataSource = DADataSource Enabled = False - ParentFont = False Properties.ReadOnly = True Properties.UseLeftAlignmentOnEditing = False Style.BorderColor = clWindowFrame @@ -97,7 +94,6 @@ inherited frViewDatosYSeleccionProveedor: TfrViewDatosYSeleccionProveedor DataBinding.DataField = 'POBLACION' DataBinding.DataSource = DADataSource Enabled = False - ParentFont = False Properties.ReadOnly = True Properties.UseLeftAlignmentOnEditing = False Style.BorderColor = clWindowFrame @@ -120,7 +116,6 @@ inherited frViewDatosYSeleccionProveedor: TfrViewDatosYSeleccionProveedor DataBinding.DataField = 'PROVINCIA' DataBinding.DataSource = DADataSource Enabled = False - ParentFont = False Properties.ReadOnly = True Properties.UseLeftAlignmentOnEditing = False Style.BorderColor = clWindowFrame @@ -143,7 +138,6 @@ inherited frViewDatosYSeleccionProveedor: TfrViewDatosYSeleccionProveedor DataBinding.DataField = 'CODIGO_POSTAL' DataBinding.DataSource = DADataSource Enabled = False - ParentFont = False Properties.ReadOnly = True Properties.UseLeftAlignmentOnEditing = False Style.BorderColor = clWindowFrame diff --git a/Source/Modulos/Contratos de cliente/Controller/uContratosClienteController.pas b/Source/Modulos/Contratos de cliente/Controller/uContratosClienteController.pas index b34ba0b5..da955c2b 100644 --- a/Source/Modulos/Contratos de cliente/Controller/uContratosClienteController.pas +++ b/Source/Modulos/Contratos de cliente/Controller/uContratosClienteController.pas @@ -64,6 +64,8 @@ type procedure FiltrarAno(AContrato: IBizContratoCliente; ADynWhereDataTable: WideString; const Ano: String); procedure VerListadoBeneficios; procedure VerPedidosProveedor(AContrato : IBizContratoCliente); + + procedure CopiarDireccion (const ADireccion: IBizDireccionesContacto; AContrato: IBizContratoCliente); end; TContratosClienteController = class(TControllerBase, IContratosClienteController) @@ -138,6 +140,8 @@ type procedure FiltrarAno(AContrato: IBizContratoCliente; ADynWhereDataTable: WideString; const Ano: String); procedure VerListadoBeneficios; procedure VerPedidosProveedor(AContrato : IBizContratoCliente); + + procedure CopiarDireccion (const ADireccion: IBizDireccionesContacto; AContrato: IBizContratoCliente); end; implementation @@ -292,6 +296,45 @@ begin end; end; +procedure TContratosClienteController.CopiarDireccion( + const ADireccion: IBizDireccionesContacto; + AContrato: IBizContratoCliente); +var + bEnEdicion : Boolean; +begin + if not Assigned(AContrato) then + raise Exception.Create ('Contrato no asignado (CopiarDireccion)'); + + if not Assigned(ADireccion) then + raise Exception.Create ('No se ha indicado la dirección (CopiarDireccion)'); + + if AContrato.DataTable.Active then + AContrato.DataTable.Active := True; + + if ADireccion.DataTable.Active then + ADireccion.DataTable.Active := True; + + bEnEdicion := (AContrato.DataTable.State in dsEditModes); + if not bEnEdicion then + AContrato.Edit; + + ShowHourglassCursor; + AContrato.Edit; + try + AContrato.CALLE := ADireccion.CALLE; + AContrato.POBLACION := ADireccion.POBLACION; + AContrato.CODIGO_POSTAL := ADireccion.CODIGO_POSTAL; + AContrato.PROVINCIA := ADireccion.PROVINCIA; + AContrato.NIF_CIF := ADireccion.NIF_CIF; + AContrato.NOMBRE := ADireccion.NOMBRE; + + if not bEnEdicion then + AContrato.Post; + finally + HideHourglassCursor; + end; +end; + constructor TContratosClienteController.Create; begin inherited; diff --git a/Source/Modulos/Contratos de cliente/Views/ContratosCliente_view.dpk b/Source/Modulos/Contratos de cliente/Views/ContratosCliente_view.dpk index 339f33e2..907f6463 100644 --- a/Source/Modulos/Contratos de cliente/Views/ContratosCliente_view.dpk +++ b/Source/Modulos/Contratos de cliente/Views/ContratosCliente_view.dpk @@ -93,6 +93,7 @@ contains uViewDocumentosContratoCliente in 'uViewDocumentosContratoCliente.pas' {frViewDocumentosContratoCliente: TFrame}, uViewDatosYSeleccionClienteContrato in 'uViewDatosYSeleccionClienteContrato.pas' {frViewDatosYSeleccionClienteContrato: TFrame}, uViewContratosClienteBeneficios in 'uViewContratosClienteBeneficios.pas' {frViewContratosClienteBeneficios: TFrame}, - uEditorContratosClienteBeneficios in 'uEditorContratosClienteBeneficios.pas' {fEditorContratosClienteBeneficios: TFrame}; + uEditorContratosClienteBeneficios in 'uEditorContratosClienteBeneficios.pas' {fEditorContratosClienteBeneficios: TFrame}, + uViewClienteContrato in 'uViewClienteContrato.pas' {frViewClienteContrato: TFrame}; end. diff --git a/Source/Modulos/Contratos de cliente/Views/ContratosCliente_view.dproj b/Source/Modulos/Contratos de cliente/Views/ContratosCliente_view.dproj index aa1f4641..4b3add81 100644 --- a/Source/Modulos/Contratos de cliente/Views/ContratosCliente_view.dproj +++ b/Source/Modulos/Contratos de cliente/Views/ContratosCliente_view.dproj @@ -49,58 +49,51 @@ MainSource - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
fEditorPresupuestoCliente
@@ -126,6 +119,10 @@
fEditorElegirPresupuestosCliente
TfEditorElegirPedidosCliente
+ +
frViewClienteContrato
+ TFrame +
frViewContratoCliente
TFrame @@ -158,6 +155,13 @@
frViewElegirArticulosContratosCliente
TFrame
+ + + + + + +