Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 21f867bde3 |
BIN
Build/Build.fbl6
21002
Build/Build.fbp5
Normal file
1
Build/Build.fbv
Normal file
@ -0,0 +1 @@
|
|||||||
|
<variables><DELPHI><![CDATA[C:\Archivos de programa\Borland\Delphi10\bin\dcc32.exe]]></DELPHI></variables>
|
||||||
BIN
Build/Build.fbz6
1758
Build/Installer.fbp5
Normal file
1
Build/Installer.fbv
Normal file
@ -0,0 +1 @@
|
|||||||
|
<variables><project_path><![CDATA[C:\Codigo Luis Leon]]></project_path></variables>
|
||||||
715
Build/UploadFTP.fbp5
Normal file
@ -0,0 +1,715 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<VSXML>
|
||||||
|
<Object Class="TFBProject" XMLID="{42C73C22-0B2E-4BF4-A080-75FD7692D722}"><Property MultiValue="0" name="EncryptedEditPassword" type="string"></Property>
|
||||||
|
<Property MultiValue="0" name="GlobalJScript" type="string"></Property>
|
||||||
|
<Property MultiValue="0" name="GlobalVBScript" type="string"></Property>
|
||||||
|
<Property MultiValue="0" name="Name" type="string"></Property>
|
||||||
|
<Property MultiValue="0" name="ProjectID" type="string"></Property>
|
||||||
|
<Property MultiValue="0" name="SCCAuxPath" type="string"></Property>
|
||||||
|
<Property name="SCCLocalPathHash" type="Cardinal">0</Property>
|
||||||
|
<Property MultiValue="0" name="SCCProjectName" type="string"></Property>
|
||||||
|
<Property MultiValue="0" name="SCCProviderBinding" type="string"></Property>
|
||||||
|
<Property MultiValue="0" name="SCCUserName" type="string"></Property>
|
||||||
|
<Object Class="TFBActionListCollection" XMLID="{BAE72659-63D2-4C01-A601-B501CEC2B991}"><Object Class="TFBActionList" XMLID="{DD2F2B92-2628-4DCC-9C1C-F4F93CB04440}"><Property name="IsFailure" type="Boolean">False</Property>
|
||||||
|
<Property name="IsMain" type="Boolean">True</Property>
|
||||||
|
<Property MultiValue="0" name="Name" type="string">Main</Property>
|
||||||
|
<Property MultiValue="0" name="UniqueID" type="string">{1EC7CF5E-763A-459F-B4E5-B20F3B6C1D6D}</Property>
|
||||||
|
<Object Class="TFBAction" XMLID="{336A813B-3AD4-4076-95CF-D8D23428BC98}"><Property MultiValue="0" name="ActionComment" type="string"></Property>
|
||||||
|
<Property MultiValue="0" name="ActionDescription" type="string">FinalBuilderAction</Property>
|
||||||
|
<Property name="ActionTextColor" type="Cardinal">0</Property>
|
||||||
|
<Property MultiValue="0" name="ActionTypeID" type="string"></Property>
|
||||||
|
<Property name="Enabled" type="WordBool">True</Property>
|
||||||
|
<Property name="ExpandActionLogTitle" type="Boolean">True</Property>
|
||||||
|
<Property name="IgnoreFailure" type="WordBool">False</Property>
|
||||||
|
<Property name="IsAction" type="Boolean">True</Property>
|
||||||
|
<Property name="IsBreakPoint" type="WordBool">False</Property>
|
||||||
|
<Property MultiValue="0" name="LogToVariable" type="string"></Property>
|
||||||
|
<Property name="MaxRetryAttempts" type="Cardinal">0</Property>
|
||||||
|
<Property name="NodeCollapsed" type="Boolean">False</Property>
|
||||||
|
<Property name="PauseInterval" type="Cardinal">0</Property>
|
||||||
|
<Property name="RetryPauseInterval" type="Cardinal">1000</Property>
|
||||||
|
<Property name="SuppressStatusMessages" type="Boolean">False</Property>
|
||||||
|
<Object Class="TCommentAction" XMLID="{566A234E-C051-45E3-9484-4D761E819541}"><Property MultiValue="0" name="ActionComment" type="string"></Property>
|
||||||
|
<Property MultiValue="0" name="ActionDescription" type="string">#</Property>
|
||||||
|
<Property name="ActionTextColor" type="Cardinal">16711680</Property>
|
||||||
|
<Property MultiValue="0" name="ActionTypeID" type="string"></Property>
|
||||||
|
<Property MultiValue="0" name="Description" type="string">#</Property>
|
||||||
|
<Property name="Enabled" type="WordBool">False</Property>
|
||||||
|
<Property name="ExpandActionLogTitle" type="Boolean">True</Property>
|
||||||
|
<Property name="IgnoreFailure" type="WordBool">False</Property>
|
||||||
|
<Property name="IsAction" type="Boolean">True</Property>
|
||||||
|
<Property name="IsBreakPoint" type="WordBool">False</Property>
|
||||||
|
<Property MultiValue="0" name="LogToVariable" type="string"></Property>
|
||||||
|
<Property name="MaxRetryAttempts" type="Cardinal">0</Property>
|
||||||
|
<Property name="NodeCollapsed" type="Boolean">False</Property>
|
||||||
|
<Property name="PauseInterval" type="Cardinal">0</Property>
|
||||||
|
<Property name="RetryPauseInterval" type="Cardinal">1000</Property>
|
||||||
|
<Property name="SuppressStatusMessages" type="Boolean">False</Property>
|
||||||
|
</Object>
|
||||||
|
<Object Class="TCommentAction" XMLID="{756852F0-CDF2-4A0E-9028-92720A502289}"><Property MultiValue="0" name="ActionComment" type="string"></Property>
|
||||||
|
<Property MultiValue="0" name="ActionDescription" type="string">#</Property>
|
||||||
|
<Property name="ActionTextColor" type="Cardinal">16711680</Property>
|
||||||
|
<Property MultiValue="0" name="ActionTypeID" type="string"></Property>
|
||||||
|
<Property MultiValue="0" name="Description" type="string">#</Property>
|
||||||
|
<Property name="Enabled" type="WordBool">False</Property>
|
||||||
|
<Property name="ExpandActionLogTitle" type="Boolean">True</Property>
|
||||||
|
<Property name="IgnoreFailure" type="WordBool">False</Property>
|
||||||
|
<Property name="IsAction" type="Boolean">True</Property>
|
||||||
|
<Property name="IsBreakPoint" type="WordBool">False</Property>
|
||||||
|
<Property MultiValue="0" name="LogToVariable" type="string"></Property>
|
||||||
|
<Property name="MaxRetryAttempts" type="Cardinal">0</Property>
|
||||||
|
<Property name="NodeCollapsed" type="Boolean">False</Property>
|
||||||
|
<Property name="PauseInterval" type="Cardinal">0</Property>
|
||||||
|
<Property name="RetryPauseInterval" type="Cardinal">1000</Property>
|
||||||
|
<Property name="SuppressStatusMessages" type="Boolean">False</Property>
|
||||||
|
</Object>
|
||||||
|
<Object Class="TCommentAction" XMLID="{D5704B4B-79F2-47B5-8A4E-A71E7AC4887F}"><Property MultiValue="0" name="ActionComment" type="string"></Property>
|
||||||
|
<Property MultiValue="1" name="ActionDescription" type="string"><![CDATA[Sacar directorio raíz del proyecto]]>
|
||||||
|
</Property>
|
||||||
|
<Property name="ActionTextColor" type="Cardinal">16711680</Property>
|
||||||
|
<Property MultiValue="0" name="ActionTypeID" type="string"></Property>
|
||||||
|
<Property MultiValue="1" name="Description" type="string"><![CDATA[Sacar directorio raíz del proyecto]]>
|
||||||
|
</Property>
|
||||||
|
<Property name="Enabled" type="WordBool">False</Property>
|
||||||
|
<Property name="ExpandActionLogTitle" type="Boolean">True</Property>
|
||||||
|
<Property name="IgnoreFailure" type="WordBool">False</Property>
|
||||||
|
<Property name="IsAction" type="Boolean">True</Property>
|
||||||
|
<Property name="IsBreakPoint" type="WordBool">False</Property>
|
||||||
|
<Property MultiValue="0" name="LogToVariable" type="string"></Property>
|
||||||
|
<Property name="MaxRetryAttempts" type="Cardinal">0</Property>
|
||||||
|
<Property name="NodeCollapsed" type="Boolean">False</Property>
|
||||||
|
<Property name="PauseInterval" type="Cardinal">0</Property>
|
||||||
|
<Property name="RetryPauseInterval" type="Cardinal">1000</Property>
|
||||||
|
<Property name="SuppressStatusMessages" type="Boolean">False</Property>
|
||||||
|
</Object>
|
||||||
|
<Object Class="TSetVariableAction" XMLID="{2DB13403-5AB2-4B0E-ADF8-6E1862A76BDA}"><Property MultiValue="0" name="ActionComment" type="string"></Property>
|
||||||
|
<Property MultiValue="1" name="ActionDescription" type="string"><![CDATA[Ruta del proyecto [ %FBPROJECTDIR% ]]]>
|
||||||
|
</Property>
|
||||||
|
<Property name="ActionTextColor" type="Cardinal">0</Property>
|
||||||
|
<Property MultiValue="0" name="ActionTypeID" type="string"></Property>
|
||||||
|
<Property name="ApplyToExisting" type="Boolean">False</Property>
|
||||||
|
<Property MultiValue="1" name="Description" type="string"><![CDATA[Ruta del proyecto [ %FBPROJECTDIR% ]]]>
|
||||||
|
</Property>
|
||||||
|
<Property name="DoExpandExpression" type="Boolean">True</Property>
|
||||||
|
<Property name="Enabled" type="WordBool">True</Property>
|
||||||
|
<Property name="ExpandActionLogTitle" type="Boolean">True</Property>
|
||||||
|
<Property name="ForceType" type="TFBSetVariableForceType">ftString</Property>
|
||||||
|
<Property name="IgnoreFailure" type="WordBool">False</Property>
|
||||||
|
<Property name="IsAction" type="Boolean">True</Property>
|
||||||
|
<Property name="IsBreakPoint" type="WordBool">False</Property>
|
||||||
|
<Property MultiValue="0" name="LogToVariable" type="string"></Property>
|
||||||
|
<Property name="MaxRetryAttempts" type="Cardinal">0</Property>
|
||||||
|
<Property name="Modifier" type="TFBSetVariableModifier">smNone</Property>
|
||||||
|
<Property MultiValue="0" name="NewValue" type="WideString">%FBPROJECTDIR%</Property>
|
||||||
|
<Property name="NodeCollapsed" type="Boolean">False</Property>
|
||||||
|
<Property name="PauseInterval" type="Cardinal">0</Property>
|
||||||
|
<Property name="RetryPauseInterval" type="Cardinal">1000</Property>
|
||||||
|
<Property name="SuppressStatusMessages" type="Boolean">False</Property>
|
||||||
|
<Property MultiValue="0" name="VariableName" type="WideString">project_path</Property>
|
||||||
|
</Object>
|
||||||
|
<Object Class="TFBScriptBasedAction" XMLID="{3CE0EE7B-5284-4C6A-94ED-241CE53AD1DF}"><Property MultiValue="0" name="ActionComment" type="string"></Property>
|
||||||
|
<Property MultiValue="1" name="ActionDescription" type="string"><![CDATA[Establecer ruta del proyecto]]>
|
||||||
|
</Property>
|
||||||
|
<Property name="ActionTextColor" type="Cardinal">0</Property>
|
||||||
|
<Property MultiValue="0" name="ActionTypeID" type="string">{78526C82-A8E7-42B3-8C9D-1E229C79D915}</Property>
|
||||||
|
<Property MultiValue="1" name="CustomActionName" type="string"><![CDATA[String Replace]]>
|
||||||
|
</Property>
|
||||||
|
<Property MultiValue="1" name="Description" type="string"><![CDATA[Establecer ruta del proyecto]]>
|
||||||
|
</Property>
|
||||||
|
<Property name="Enabled" type="WordBool">True</Property>
|
||||||
|
<Property name="EnableTimeout" type="Boolean">False</Property>
|
||||||
|
<Property name="ExpandActionLogTitle" type="Boolean">True</Property>
|
||||||
|
<Property name="IgnoreFailure" type="WordBool">False</Property>
|
||||||
|
<Property name="IsAction" type="Boolean">True</Property>
|
||||||
|
<Property name="IsBreakPoint" type="WordBool">False</Property>
|
||||||
|
<Property MultiValue="0" name="LogToVariable" type="string"></Property>
|
||||||
|
<Property name="MaxRetryAttempts" type="Cardinal">0</Property>
|
||||||
|
<Property name="NodeCollapsed" type="Boolean">False</Property>
|
||||||
|
<Property name="PauseInterval" type="Cardinal">0</Property>
|
||||||
|
<Property name="RetryPauseInterval" type="Cardinal">1000</Property>
|
||||||
|
<Property name="SuppressStatusMessages" type="Boolean">True</Property>
|
||||||
|
<Property name="TerminateOnTimeout" type="Boolean">True</Property>
|
||||||
|
<Property name="TimeoutLength" type="Cardinal">2</Property>
|
||||||
|
<CustomProperty MultiValue="0" name="InputString" type="ptString"></CustomProperty>
|
||||||
|
<CustomProperty name="ApplyToInput" type="ptBoolean">True</CustomProperty>
|
||||||
|
<CustomProperty name="UsingInputVariable" type="ptBoolean">True</CustomProperty>
|
||||||
|
<CustomProperty MultiValue="0" name="OutputVariable" type="ptString"></CustomProperty>
|
||||||
|
<CustomProperty MultiValue="0" name="InputVariable" type="ptString">project_path</CustomProperty>
|
||||||
|
<CustomProperty MultiValue="0" name="SearchString" type="ptString">\Build</CustomProperty>
|
||||||
|
<CustomProperty MultiValue="0" name="ReplacementString" type="ptString"></CustomProperty>
|
||||||
|
<CustomProperty name="CaseSensitive" type="ptBoolean">False</CustomProperty>
|
||||||
|
<CustomProperty name="ReplaceAll" type="ptBoolean">False</CustomProperty>
|
||||||
|
<CustomProperty name="ExpandSourceVariable" type="ptBoolean">True</CustomProperty>
|
||||||
|
</Object>
|
||||||
|
<Object Class="TCommentAction" XMLID="{8B68908A-25D4-4D81-A4C9-1DA76CAE997B}"><Property MultiValue="0" name="ActionComment" type="string"></Property>
|
||||||
|
<Property MultiValue="0" name="ActionDescription" type="string">#</Property>
|
||||||
|
<Property name="ActionTextColor" type="Cardinal">16711680</Property>
|
||||||
|
<Property MultiValue="0" name="ActionTypeID" type="string"></Property>
|
||||||
|
<Property MultiValue="0" name="Description" type="string">#</Property>
|
||||||
|
<Property name="Enabled" type="WordBool">False</Property>
|
||||||
|
<Property name="ExpandActionLogTitle" type="Boolean">True</Property>
|
||||||
|
<Property name="IgnoreFailure" type="WordBool">False</Property>
|
||||||
|
<Property name="IsAction" type="Boolean">True</Property>
|
||||||
|
<Property name="IsBreakPoint" type="WordBool">False</Property>
|
||||||
|
<Property MultiValue="0" name="LogToVariable" type="string"></Property>
|
||||||
|
<Property name="MaxRetryAttempts" type="Cardinal">0</Property>
|
||||||
|
<Property name="NodeCollapsed" type="Boolean">False</Property>
|
||||||
|
<Property name="PauseInterval" type="Cardinal">0</Property>
|
||||||
|
<Property name="RetryPauseInterval" type="Cardinal">1000</Property>
|
||||||
|
<Property name="SuppressStatusMessages" type="Boolean">False</Property>
|
||||||
|
</Object>
|
||||||
|
<Object Class="TSetVariableAction" XMLID="{C34712CE-A8B2-4CAE-B8CF-06F2B5568492}"><Property MultiValue="0" name="ActionComment" type="string"></Property>
|
||||||
|
<Property MultiValue="1" name="ActionDescription" type="string"><![CDATA[Set Variable FTPAddress to [ luisleonrepresentaciones.com ]]]>
|
||||||
|
</Property>
|
||||||
|
<Property name="ActionTextColor" type="Cardinal">0</Property>
|
||||||
|
<Property MultiValue="0" name="ActionTypeID" type="string"></Property>
|
||||||
|
<Property name="ApplyToExisting" type="Boolean">False</Property>
|
||||||
|
<Property name="DoExpandExpression" type="Boolean">True</Property>
|
||||||
|
<Property name="Enabled" type="WordBool">True</Property>
|
||||||
|
<Property name="ExpandActionLogTitle" type="Boolean">True</Property>
|
||||||
|
<Property name="ForceType" type="TFBSetVariableForceType">ftDefault</Property>
|
||||||
|
<Property name="IgnoreFailure" type="WordBool">False</Property>
|
||||||
|
<Property name="IsAction" type="Boolean">True</Property>
|
||||||
|
<Property name="IsBreakPoint" type="WordBool">False</Property>
|
||||||
|
<Property MultiValue="0" name="LogToVariable" type="string"></Property>
|
||||||
|
<Property name="MaxRetryAttempts" type="Cardinal">0</Property>
|
||||||
|
<Property name="Modifier" type="TFBSetVariableModifier">smNone</Property>
|
||||||
|
<Property MultiValue="0" name="NewValue" type="WideString">luisleonrepresentaciones.com</Property>
|
||||||
|
<Property name="NodeCollapsed" type="Boolean">False</Property>
|
||||||
|
<Property name="PauseInterval" type="Cardinal">0</Property>
|
||||||
|
<Property name="RetryPauseInterval" type="Cardinal">1000</Property>
|
||||||
|
<Property name="SuppressStatusMessages" type="Boolean">False</Property>
|
||||||
|
<Property MultiValue="0" name="VariableName" type="WideString">FTPAddress</Property>
|
||||||
|
</Object>
|
||||||
|
<Object Class="TSetVariableAction" XMLID="{9E67B585-CECC-454B-B1C2-C167F9A0A624}"><Property MultiValue="0" name="ActionComment" type="string"></Property>
|
||||||
|
<Property MultiValue="1" name="ActionDescription" type="string"><![CDATA[Set Variable FTPRemotePath to [ /update ]]]>
|
||||||
|
</Property>
|
||||||
|
<Property name="ActionTextColor" type="Cardinal">0</Property>
|
||||||
|
<Property MultiValue="0" name="ActionTypeID" type="string"></Property>
|
||||||
|
<Property name="ApplyToExisting" type="Boolean">False</Property>
|
||||||
|
<Property name="DoExpandExpression" type="Boolean">True</Property>
|
||||||
|
<Property name="Enabled" type="WordBool">True</Property>
|
||||||
|
<Property name="ExpandActionLogTitle" type="Boolean">True</Property>
|
||||||
|
<Property name="ForceType" type="TFBSetVariableForceType">ftDefault</Property>
|
||||||
|
<Property name="IgnoreFailure" type="WordBool">False</Property>
|
||||||
|
<Property name="IsAction" type="Boolean">True</Property>
|
||||||
|
<Property name="IsBreakPoint" type="WordBool">False</Property>
|
||||||
|
<Property MultiValue="0" name="LogToVariable" type="string"></Property>
|
||||||
|
<Property name="MaxRetryAttempts" type="Cardinal">0</Property>
|
||||||
|
<Property name="Modifier" type="TFBSetVariableModifier">smNone</Property>
|
||||||
|
<Property MultiValue="0" name="NewValue" type="WideString">/update</Property>
|
||||||
|
<Property name="NodeCollapsed" type="Boolean">False</Property>
|
||||||
|
<Property name="PauseInterval" type="Cardinal">0</Property>
|
||||||
|
<Property name="RetryPauseInterval" type="Cardinal">1000</Property>
|
||||||
|
<Property name="SuppressStatusMessages" type="Boolean">False</Property>
|
||||||
|
<Property MultiValue="0" name="VariableName" type="WideString">FTPRemotePath</Property>
|
||||||
|
</Object>
|
||||||
|
<Object Class="TSetVariableAction" XMLID="{4C41E5CB-E758-4D3E-8C87-D4EFED30F3F5}"><Property MultiValue="0" name="ActionComment" type="string"></Property>
|
||||||
|
<Property MultiValue="1" name="ActionDescription" type="string"><![CDATA[Set Variable FTPUser to [ luisleon@rodax-software.com ]]]>
|
||||||
|
</Property>
|
||||||
|
<Property name="ActionTextColor" type="Cardinal">0</Property>
|
||||||
|
<Property MultiValue="0" name="ActionTypeID" type="string"></Property>
|
||||||
|
<Property name="ApplyToExisting" type="Boolean">False</Property>
|
||||||
|
<Property name="DoExpandExpression" type="Boolean">True</Property>
|
||||||
|
<Property name="Enabled" type="WordBool">True</Property>
|
||||||
|
<Property name="ExpandActionLogTitle" type="Boolean">True</Property>
|
||||||
|
<Property name="ForceType" type="TFBSetVariableForceType">ftDefault</Property>
|
||||||
|
<Property name="IgnoreFailure" type="WordBool">False</Property>
|
||||||
|
<Property name="IsAction" type="Boolean">True</Property>
|
||||||
|
<Property name="IsBreakPoint" type="WordBool">False</Property>
|
||||||
|
<Property MultiValue="0" name="LogToVariable" type="string"></Property>
|
||||||
|
<Property name="MaxRetryAttempts" type="Cardinal">0</Property>
|
||||||
|
<Property name="Modifier" type="TFBSetVariableModifier">smNone</Property>
|
||||||
|
<Property MultiValue="0" name="NewValue" type="WideString">luisleon@rodax-software.com</Property>
|
||||||
|
<Property name="NodeCollapsed" type="Boolean">False</Property>
|
||||||
|
<Property name="PauseInterval" type="Cardinal">0</Property>
|
||||||
|
<Property name="RetryPauseInterval" type="Cardinal">1000</Property>
|
||||||
|
<Property name="SuppressStatusMessages" type="Boolean">False</Property>
|
||||||
|
<Property MultiValue="0" name="VariableName" type="WideString">FTPUser</Property>
|
||||||
|
</Object>
|
||||||
|
<Object Class="TSetVariableAction" XMLID="{501B3A9C-3DB7-4E83-B1FA-8C8B07535437}"><Property MultiValue="0" name="ActionComment" type="string"></Property>
|
||||||
|
<Property MultiValue="1" name="ActionDescription" type="string"><![CDATA[Set Variable FTPPassword to [ 9yyz4coj ]]]>
|
||||||
|
</Property>
|
||||||
|
<Property name="ActionTextColor" type="Cardinal">0</Property>
|
||||||
|
<Property MultiValue="0" name="ActionTypeID" type="string"></Property>
|
||||||
|
<Property name="ApplyToExisting" type="Boolean">False</Property>
|
||||||
|
<Property name="DoExpandExpression" type="Boolean">True</Property>
|
||||||
|
<Property name="Enabled" type="WordBool">True</Property>
|
||||||
|
<Property name="ExpandActionLogTitle" type="Boolean">True</Property>
|
||||||
|
<Property name="ForceType" type="TFBSetVariableForceType">ftDefault</Property>
|
||||||
|
<Property name="IgnoreFailure" type="WordBool">False</Property>
|
||||||
|
<Property name="IsAction" type="Boolean">True</Property>
|
||||||
|
<Property name="IsBreakPoint" type="WordBool">False</Property>
|
||||||
|
<Property MultiValue="0" name="LogToVariable" type="string"></Property>
|
||||||
|
<Property name="MaxRetryAttempts" type="Cardinal">0</Property>
|
||||||
|
<Property name="Modifier" type="TFBSetVariableModifier">smNone</Property>
|
||||||
|
<Property MultiValue="0" name="NewValue" type="WideString">9yyz4coj</Property>
|
||||||
|
<Property name="NodeCollapsed" type="Boolean">False</Property>
|
||||||
|
<Property name="PauseInterval" type="Cardinal">0</Property>
|
||||||
|
<Property name="RetryPauseInterval" type="Cardinal">1000</Property>
|
||||||
|
<Property name="SuppressStatusMessages" type="Boolean">False</Property>
|
||||||
|
<Property MultiValue="0" name="VariableName" type="WideString">FTPPassword</Property>
|
||||||
|
</Object>
|
||||||
|
<Object Class="TFTPConnectionAction" XMLID="{A210DCF4-65F7-481C-A3FB-A6E34E888794}"><Property MultiValue="0" name="ActionComment" type="string"></Property>
|
||||||
|
<Property MultiValue="1" name="ActionDescription" type="string"><![CDATA[FTP Connect [ FTP Actualizaciones ]]]>
|
||||||
|
</Property>
|
||||||
|
<Property name="ActionTextColor" type="Cardinal">0</Property>
|
||||||
|
<Property MultiValue="0" name="ActionTypeID" type="string"></Property>
|
||||||
|
<Property name="ConnectTimeoutInSec" type="Integer">0</Property>
|
||||||
|
<Property MultiValue="0" name="Cookie" type="string">q1BkPr51BZaAKZ+47Q==</Property>
|
||||||
|
<Property name="DetailedLogging" type="WordBool">False</Property>
|
||||||
|
<Property name="Enabled" type="WordBool">True</Property>
|
||||||
|
<Property name="ExpandActionLogTitle" type="Boolean">True</Property>
|
||||||
|
<Property MultiValue="1" name="FTPConnectionName" type="string"><![CDATA[FTP Actualizaciones]]>
|
||||||
|
</Property>
|
||||||
|
<Property MultiValue="0" name="FTPHost" type="string">%FTPAddress%</Property>
|
||||||
|
<Property name="FTPPort" type="Integer">21</Property>
|
||||||
|
<Property name="IgnoreFailure" type="WordBool">False</Property>
|
||||||
|
<Property name="IsAction" type="Boolean">True</Property>
|
||||||
|
<Property name="IsBreakPoint" type="WordBool">False</Property>
|
||||||
|
<Property MultiValue="0" name="LogToVariable" type="string"></Property>
|
||||||
|
<Property name="MaxRetryAttempts" type="Cardinal">0</Property>
|
||||||
|
<Property name="NodeCollapsed" type="Boolean">False</Property>
|
||||||
|
<Property name="Passive" type="WordBool">False</Property>
|
||||||
|
<Property name="PauseInterval" type="Cardinal">0</Property>
|
||||||
|
<Property MultiValue="0" name="ProxyCookie" type="string"></Property>
|
||||||
|
<Property name="ProxyPort" type="Integer">0</Property>
|
||||||
|
<Property MultiValue="0" name="ProxyServer" type="string"></Property>
|
||||||
|
<Property name="ProxyType" type="TIdFtpProxyType">fpcmNone</Property>
|
||||||
|
<Property MultiValue="0" name="ProxyUsername" type="string"></Property>
|
||||||
|
<Property name="RetryPauseInterval" type="Cardinal">1000</Property>
|
||||||
|
<Property name="SuppressStatusMessages" type="Boolean">False</Property>
|
||||||
|
<Property name="TransferType" type="TIdFTPTransferType">ftBinary</Property>
|
||||||
|
<Property name="UseGlobalOpt" type="Boolean">False</Property>
|
||||||
|
<Property name="UseProxy" type="Boolean">False</Property>
|
||||||
|
<Property MultiValue="0" name="UserID" type="string">%FTPUser%</Property>
|
||||||
|
</Object>
|
||||||
|
<Object Class="TFTPChangeDirAction" XMLID="{1B6106F3-4F16-4E3E-A620-95FBC383D8FC}"><Property MultiValue="0" name="ActionComment" type="string"></Property>
|
||||||
|
<Property MultiValue="1" name="ActionDescription" type="string"><![CDATA[FTP Change Directory [ FTP Actualizaciones ] [ %FTPRemotePath% ]]]>
|
||||||
|
</Property>
|
||||||
|
<Property name="ActionTextColor" type="Cardinal">0</Property>
|
||||||
|
<Property MultiValue="0" name="ActionTypeID" type="string"></Property>
|
||||||
|
<Property MultiValue="1" name="ConnectionName" type="string"><![CDATA[FTP Actualizaciones]]>
|
||||||
|
</Property>
|
||||||
|
<Property name="DetailedLogging" type="Boolean">False</Property>
|
||||||
|
<Property name="Enabled" type="WordBool">True</Property>
|
||||||
|
<Property name="ExpandActionLogTitle" type="Boolean">True</Property>
|
||||||
|
<Property name="IgnoreFailure" type="WordBool">False</Property>
|
||||||
|
<Property name="IsAction" type="Boolean">True</Property>
|
||||||
|
<Property name="IsBreakPoint" type="WordBool">False</Property>
|
||||||
|
<Property MultiValue="0" name="LogToVariable" type="string"></Property>
|
||||||
|
<Property name="MaxRetryAttempts" type="Cardinal">0</Property>
|
||||||
|
<Property name="NodeCollapsed" type="Boolean">False</Property>
|
||||||
|
<Property name="PauseInterval" type="Cardinal">0</Property>
|
||||||
|
<Property MultiValue="0" name="RemoteDir" type="string">%FTPRemotePath%</Property>
|
||||||
|
<Property name="RetryPauseInterval" type="Cardinal">1000</Property>
|
||||||
|
<Property name="SuppressStatusMessages" type="Boolean">False</Property>
|
||||||
|
</Object>
|
||||||
|
<Object Class="TCommentAction" XMLID="{F845978E-CCD5-479D-A5A9-6A52A362E519}"><Property MultiValue="0" name="ActionComment" type="string"></Property>
|
||||||
|
<Property MultiValue="0" name="ActionDescription" type="string">#</Property>
|
||||||
|
<Property name="ActionTextColor" type="Cardinal">16711680</Property>
|
||||||
|
<Property MultiValue="0" name="ActionTypeID" type="string"></Property>
|
||||||
|
<Property MultiValue="0" name="Description" type="string">#</Property>
|
||||||
|
<Property name="Enabled" type="WordBool">True</Property>
|
||||||
|
<Property name="ExpandActionLogTitle" type="Boolean">True</Property>
|
||||||
|
<Property name="IgnoreFailure" type="WordBool">False</Property>
|
||||||
|
<Property name="IsAction" type="Boolean">True</Property>
|
||||||
|
<Property name="IsBreakPoint" type="WordBool">False</Property>
|
||||||
|
<Property MultiValue="0" name="LogToVariable" type="string"></Property>
|
||||||
|
<Property name="MaxRetryAttempts" type="Cardinal">0</Property>
|
||||||
|
<Property name="NodeCollapsed" type="Boolean">False</Property>
|
||||||
|
<Property name="PauseInterval" type="Cardinal">0</Property>
|
||||||
|
<Property name="RetryPauseInterval" type="Cardinal">1000</Property>
|
||||||
|
<Property name="SuppressStatusMessages" type="Boolean">False</Property>
|
||||||
|
</Object>
|
||||||
|
<Object Class="TCommentAction" XMLID="{F40B093E-37D3-43B1-AEDA-3A94703F0114}"><Property MultiValue="0" name="ActionComment" type="string"></Property>
|
||||||
|
<Property MultiValue="0" name="ActionDescription" type="string">#</Property>
|
||||||
|
<Property name="ActionTextColor" type="Cardinal">16711680</Property>
|
||||||
|
<Property MultiValue="0" name="ActionTypeID" type="string"></Property>
|
||||||
|
<Property MultiValue="0" name="Description" type="string">#</Property>
|
||||||
|
<Property name="Enabled" type="WordBool">True</Property>
|
||||||
|
<Property name="ExpandActionLogTitle" type="Boolean">True</Property>
|
||||||
|
<Property name="IgnoreFailure" type="WordBool">False</Property>
|
||||||
|
<Property name="IsAction" type="Boolean">True</Property>
|
||||||
|
<Property name="IsBreakPoint" type="WordBool">False</Property>
|
||||||
|
<Property MultiValue="0" name="LogToVariable" type="string"></Property>
|
||||||
|
<Property name="MaxRetryAttempts" type="Cardinal">0</Property>
|
||||||
|
<Property name="NodeCollapsed" type="Boolean">False</Property>
|
||||||
|
<Property name="PauseInterval" type="Cardinal">0</Property>
|
||||||
|
<Property name="RetryPauseInterval" type="Cardinal">1000</Property>
|
||||||
|
<Property name="SuppressStatusMessages" type="Boolean">False</Property>
|
||||||
|
</Object>
|
||||||
|
<Object Class="TCommentAction" XMLID="{B665F130-D9BC-4040-9899-BC9441D1D6E6}"><Property MultiValue="0" name="ActionComment" type="string"></Property>
|
||||||
|
<Property MultiValue="1" name="ActionDescription" type="string"><![CDATA[# Limpiar el directorio]]>
|
||||||
|
</Property>
|
||||||
|
<Property name="ActionTextColor" type="Cardinal">16711680</Property>
|
||||||
|
<Property MultiValue="0" name="ActionTypeID" type="string"></Property>
|
||||||
|
<Property MultiValue="1" name="Description" type="string"><![CDATA[# Limpiar el directorio]]>
|
||||||
|
</Property>
|
||||||
|
<Property name="Enabled" type="WordBool">False</Property>
|
||||||
|
<Property name="ExpandActionLogTitle" type="Boolean">True</Property>
|
||||||
|
<Property name="IgnoreFailure" type="WordBool">False</Property>
|
||||||
|
<Property name="IsAction" type="Boolean">True</Property>
|
||||||
|
<Property name="IsBreakPoint" type="WordBool">False</Property>
|
||||||
|
<Property MultiValue="0" name="LogToVariable" type="string"></Property>
|
||||||
|
<Property name="MaxRetryAttempts" type="Cardinal">0</Property>
|
||||||
|
<Property name="NodeCollapsed" type="Boolean">False</Property>
|
||||||
|
<Property name="PauseInterval" type="Cardinal">0</Property>
|
||||||
|
<Property name="RetryPauseInterval" type="Cardinal">1000</Property>
|
||||||
|
<Property name="SuppressStatusMessages" type="Boolean">False</Property>
|
||||||
|
</Object>
|
||||||
|
<Object Class="TFTPListDirAction" XMLID="{29AAD606-DADC-4427-968E-E0C16F8ED493}"><Property MultiValue="0" name="ActionComment" type="string"></Property>
|
||||||
|
<Property MultiValue="1" name="ActionDescription" type="string"><![CDATA[FTP List Directory [ FTP Actualizaciones ]]]>
|
||||||
|
</Property>
|
||||||
|
<Property name="ActionTextColor" type="Cardinal">0</Property>
|
||||||
|
<Property MultiValue="0" name="ActionTypeID" type="string"></Property>
|
||||||
|
<Property MultiValue="1" name="ConnectionName" type="string"><![CDATA[FTP Actualizaciones]]>
|
||||||
|
</Property>
|
||||||
|
<Property name="DetailedListing" type="Boolean">False</Property>
|
||||||
|
<Property name="DetailedLogging" type="Boolean">False</Property>
|
||||||
|
<Property name="Enabled" type="WordBool">False</Property>
|
||||||
|
<Property name="ExpandActionLogTitle" type="Boolean">True</Property>
|
||||||
|
<Property MultiValue="0" name="FBVariable" type="string">_aux_directoylist</Property>
|
||||||
|
<Property MultiValue="0" name="FileSpec" type="string">*</Property>
|
||||||
|
<Property name="IgnoreFailure" type="WordBool">False</Property>
|
||||||
|
<Property name="IsAction" type="Boolean">True</Property>
|
||||||
|
<Property name="IsBreakPoint" type="WordBool">False</Property>
|
||||||
|
<Property name="ListToFBLog" type="Boolean">False</Property>
|
||||||
|
<Property MultiValue="0" name="LogToVariable" type="string"></Property>
|
||||||
|
<Property name="MaxRetryAttempts" type="Cardinal">0</Property>
|
||||||
|
<Property name="NodeCollapsed" type="Boolean">False</Property>
|
||||||
|
<Property name="PauseInterval" type="Cardinal">0</Property>
|
||||||
|
<Property name="RetryPauseInterval" type="Cardinal">1000</Property>
|
||||||
|
<Property name="SuppressStatusMessages" type="Boolean">False</Property>
|
||||||
|
<Object Class="TFBListIterator" XMLID="{01B0AB32-B508-4FAD-B57F-16EAF366B23D}"><Property MultiValue="0" name="ActionComment" type="string"></Property>
|
||||||
|
<Property MultiValue="1" name="ActionDescription" type="string"><![CDATA[List Iterator]]>
|
||||||
|
</Property>
|
||||||
|
<Property name="ActionTextColor" type="Cardinal">0</Property>
|
||||||
|
<Property MultiValue="0" name="ActionTypeID" type="string"></Property>
|
||||||
|
<Property name="Enabled" type="WordBool">True</Property>
|
||||||
|
<Property name="ExpandActionLogTitle" type="Boolean">True</Property>
|
||||||
|
<Property name="FailIfNoIterations" type="Boolean">False</Property>
|
||||||
|
<Property MultiValue="0" name="FBVariable" type="string">_aux_filename</Property>
|
||||||
|
<Property name="IgnoreFailure" type="WordBool">False</Property>
|
||||||
|
<Property name="IsAction" type="Boolean">True</Property>
|
||||||
|
<Property name="IsBreakPoint" type="WordBool">False</Property>
|
||||||
|
<Property name="ListOfItems" type="TStrings"><![CDATA[%_aux_directoylist%
|
||||||
|
]]>
|
||||||
|
</Property>
|
||||||
|
<Property name="ListSeparator" type="TFBListSeparator">lsCRLF</Property>
|
||||||
|
<Property MultiValue="0" name="LogToVariable" type="string"></Property>
|
||||||
|
<Property name="MaxRetryAttempts" type="Cardinal">0</Property>
|
||||||
|
<Property name="NodeCollapsed" type="Boolean">False</Property>
|
||||||
|
<Property name="PauseInterval" type="Cardinal">0</Property>
|
||||||
|
<Property name="RetryPauseInterval" type="Cardinal">1000</Property>
|
||||||
|
<Property MultiValue="0" name="SeparatorChar" type="string">,</Property>
|
||||||
|
<Property name="SkipBlankLines" type="Boolean">True</Property>
|
||||||
|
<Property name="SuppressStatusMessages" type="Boolean">False</Property>
|
||||||
|
<Object Class="TFTPDeleteFileAction" XMLID="{D8AD14C3-7F40-44F5-B1FF-B51396E59619}"><Property MultiValue="0" name="ActionComment" type="string"></Property>
|
||||||
|
<Property MultiValue="1" name="ActionDescription" type="string"><![CDATA[FTP Delete File [ FTP Actualizaciones ] [ %_aux_filename% ]]]>
|
||||||
|
</Property>
|
||||||
|
<Property name="ActionTextColor" type="Cardinal">0</Property>
|
||||||
|
<Property MultiValue="0" name="ActionTypeID" type="string"></Property>
|
||||||
|
<Property MultiValue="1" name="ConnectionName" type="string"><![CDATA[FTP Actualizaciones]]>
|
||||||
|
</Property>
|
||||||
|
<Property name="DetailedLogging" type="Boolean">False</Property>
|
||||||
|
<Property name="Enabled" type="WordBool">True</Property>
|
||||||
|
<Property name="ExpandActionLogTitle" type="Boolean">True</Property>
|
||||||
|
<Property MultiValue="0" name="FileName" type="string">%_aux_filename%</Property>
|
||||||
|
<Property name="IgnoreFailure" type="WordBool">False</Property>
|
||||||
|
<Property name="IsAction" type="Boolean">True</Property>
|
||||||
|
<Property name="IsBreakPoint" type="WordBool">False</Property>
|
||||||
|
<Property MultiValue="0" name="LogToVariable" type="string"></Property>
|
||||||
|
<Property name="MaxRetryAttempts" type="Cardinal">0</Property>
|
||||||
|
<Property name="NodeCollapsed" type="Boolean">False</Property>
|
||||||
|
<Property name="PauseInterval" type="Cardinal">0</Property>
|
||||||
|
<Property name="RetryPauseInterval" type="Cardinal">1000</Property>
|
||||||
|
<Property name="SuppressStatusMessages" type="Boolean">False</Property>
|
||||||
|
</Object>
|
||||||
|
</Object>
|
||||||
|
</Object>
|
||||||
|
<Object Class="TCommentAction" XMLID="{904A750C-DAD8-4D30-B962-3E4EA22EEF04}"><Property MultiValue="0" name="ActionComment" type="string"></Property>
|
||||||
|
<Property MultiValue="0" name="ActionDescription" type="string">#</Property>
|
||||||
|
<Property name="ActionTextColor" type="Cardinal">16711680</Property>
|
||||||
|
<Property MultiValue="0" name="ActionTypeID" type="string"></Property>
|
||||||
|
<Property MultiValue="0" name="Description" type="string">#</Property>
|
||||||
|
<Property name="Enabled" type="WordBool">True</Property>
|
||||||
|
<Property name="ExpandActionLogTitle" type="Boolean">True</Property>
|
||||||
|
<Property name="IgnoreFailure" type="WordBool">False</Property>
|
||||||
|
<Property name="IsAction" type="Boolean">True</Property>
|
||||||
|
<Property name="IsBreakPoint" type="WordBool">False</Property>
|
||||||
|
<Property MultiValue="0" name="LogToVariable" type="string"></Property>
|
||||||
|
<Property name="MaxRetryAttempts" type="Cardinal">0</Property>
|
||||||
|
<Property name="NodeCollapsed" type="Boolean">False</Property>
|
||||||
|
<Property name="PauseInterval" type="Cardinal">0</Property>
|
||||||
|
<Property name="RetryPauseInterval" type="Cardinal">1000</Property>
|
||||||
|
<Property name="SuppressStatusMessages" type="Boolean">False</Property>
|
||||||
|
</Object>
|
||||||
|
<Object Class="TCommentAction" XMLID="{661E1F62-2241-45B2-BF2D-C6749ABC9F9C}"><Property MultiValue="0" name="ActionComment" type="string"></Property>
|
||||||
|
<Property MultiValue="0" name="ActionDescription" type="string">#</Property>
|
||||||
|
<Property name="ActionTextColor" type="Cardinal">16711680</Property>
|
||||||
|
<Property MultiValue="0" name="ActionTypeID" type="string"></Property>
|
||||||
|
<Property MultiValue="0" name="Description" type="string">#</Property>
|
||||||
|
<Property name="Enabled" type="WordBool">True</Property>
|
||||||
|
<Property name="ExpandActionLogTitle" type="Boolean">True</Property>
|
||||||
|
<Property name="IgnoreFailure" type="WordBool">False</Property>
|
||||||
|
<Property name="IsAction" type="Boolean">True</Property>
|
||||||
|
<Property name="IsBreakPoint" type="WordBool">False</Property>
|
||||||
|
<Property MultiValue="0" name="LogToVariable" type="string"></Property>
|
||||||
|
<Property name="MaxRetryAttempts" type="Cardinal">0</Property>
|
||||||
|
<Property name="NodeCollapsed" type="Boolean">False</Property>
|
||||||
|
<Property name="PauseInterval" type="Cardinal">0</Property>
|
||||||
|
<Property name="RetryPauseInterval" type="Cardinal">1000</Property>
|
||||||
|
<Property name="SuppressStatusMessages" type="Boolean">False</Property>
|
||||||
|
</Object>
|
||||||
|
<Object Class="TCommentAction" XMLID="{FACC61F3-8D4B-4833-8441-DAFC08B31A20}"><Property MultiValue="0" name="ActionComment" type="string"></Property>
|
||||||
|
<Property MultiValue="0" name="ActionDescription" type="string">#</Property>
|
||||||
|
<Property name="ActionTextColor" type="Cardinal">16711680</Property>
|
||||||
|
<Property MultiValue="0" name="ActionTypeID" type="string"></Property>
|
||||||
|
<Property MultiValue="0" name="Description" type="string">#</Property>
|
||||||
|
<Property name="Enabled" type="WordBool">True</Property>
|
||||||
|
<Property name="ExpandActionLogTitle" type="Boolean">True</Property>
|
||||||
|
<Property name="IgnoreFailure" type="WordBool">False</Property>
|
||||||
|
<Property name="IsAction" type="Boolean">True</Property>
|
||||||
|
<Property name="IsBreakPoint" type="WordBool">False</Property>
|
||||||
|
<Property MultiValue="0" name="LogToVariable" type="string"></Property>
|
||||||
|
<Property name="MaxRetryAttempts" type="Cardinal">0</Property>
|
||||||
|
<Property name="NodeCollapsed" type="Boolean">False</Property>
|
||||||
|
<Property name="PauseInterval" type="Cardinal">0</Property>
|
||||||
|
<Property name="RetryPauseInterval" type="Cardinal">1000</Property>
|
||||||
|
<Property name="SuppressStatusMessages" type="Boolean">False</Property>
|
||||||
|
</Object>
|
||||||
|
<Object Class="TFBFileSetDefineAction" XMLID="{1A87C032-9E3B-464E-8C6A-C841424A72A0}"><Property MultiValue="0" name="ActionComment" type="string"></Property>
|
||||||
|
<Property MultiValue="1" name="ActionDescription" type="string"><![CDATA[FileSet define [ ListaFicherosUpdate ]]]>
|
||||||
|
</Property>
|
||||||
|
<Property name="ActionTextColor" type="Cardinal">0</Property>
|
||||||
|
<Property MultiValue="0" name="ActionTypeID" type="string"></Property>
|
||||||
|
<Property name="Enabled" type="WordBool">True</Property>
|
||||||
|
<Property name="ExpandActionLogTitle" type="Boolean">True</Property>
|
||||||
|
<Property name="FailIfNoFiles" type="Boolean">True</Property>
|
||||||
|
<Property MultiValue="0" name="FileSetName" type="string">ListaFicherosUpdate</Property>
|
||||||
|
<Property name="FileSetObject" type="IFBFileSet" XMLID="{4C96E19D-4C98-467F-809B-CB662FF2372D}"/>
|
||||||
|
<Property name="IgnoreFailure" type="WordBool">False</Property>
|
||||||
|
<Property name="IsAction" type="Boolean">True</Property>
|
||||||
|
<Property name="IsBreakPoint" type="WordBool">False</Property>
|
||||||
|
<Property MultiValue="0" name="LogToVariable" type="string"></Property>
|
||||||
|
<Property name="MaxRetryAttempts" type="Cardinal">0</Property>
|
||||||
|
<Property name="NodeCollapsed" type="Boolean">False</Property>
|
||||||
|
<Property name="PauseInterval" type="Cardinal">0</Property>
|
||||||
|
<Property name="RetryPauseInterval" type="Cardinal">1000</Property>
|
||||||
|
<Property name="SuppressStatusMessages" type="Boolean">False</Property>
|
||||||
|
<Object Class="TFTPUploadFileAction" XMLID="{F3282219-6353-42AB-BB8A-28C6DB4C1E78}"><Property MultiValue="0" name="ActionComment" type="string"></Property>
|
||||||
|
<Property MultiValue="1" name="ActionDescription" type="string"><![CDATA[FTP Upload [ FTP Actualizaciones ] [ ListaFicherosUpdate ]]]>
|
||||||
|
</Property>
|
||||||
|
<Property name="ActionTextColor" type="Cardinal">0</Property>
|
||||||
|
<Property MultiValue="0" name="ActionTypeID" type="string"></Property>
|
||||||
|
<Property name="AllowGap" type="Boolean">True</Property>
|
||||||
|
<Property name="AutoUpdateSkew" type="Boolean">False</Property>
|
||||||
|
<Property name="CheckFileSizes" type="Boolean">True</Property>
|
||||||
|
<Property MultiValue="1" name="ConnectionName" type="string"><![CDATA[FTP Actualizaciones]]>
|
||||||
|
</Property>
|
||||||
|
<Property name="DetailedLogging" type="Boolean">True</Property>
|
||||||
|
<Property name="Enabled" type="WordBool">True</Property>
|
||||||
|
<Property name="EnableTimeout" type="Boolean">False</Property>
|
||||||
|
<Property name="ExpandActionLogTitle" type="Boolean">True</Property>
|
||||||
|
<Property MultiValue="0" name="FileSetName" type="string">ListaFicherosUpdate</Property>
|
||||||
|
<Property MultiValue="0" name="FileSpec" type="string"></Property>
|
||||||
|
<Property name="ForceNextClockSkewUpdate" type="Boolean">False</Property>
|
||||||
|
<Property name="GapLength" type="Integer">5</Property>
|
||||||
|
<Property name="IgnoreFailure" type="WordBool">False</Property>
|
||||||
|
<Property name="IsAction" type="Boolean">True</Property>
|
||||||
|
<Property name="IsBreakPoint" type="WordBool">False</Property>
|
||||||
|
<Property MultiValue="0" name="LocalDir" type="string"></Property>
|
||||||
|
<Property MultiValue="0" name="LogToVariable" type="string"></Property>
|
||||||
|
<Property name="MaxRetryAttempts" type="Cardinal">0</Property>
|
||||||
|
<Property name="NodeCollapsed" type="Boolean">False</Property>
|
||||||
|
<Property name="PauseInterval" type="Cardinal">0</Property>
|
||||||
|
<Property name="Recursive" type="Boolean">False</Property>
|
||||||
|
<Property MultiValue="0" name="RemoteFile" type="string"></Property>
|
||||||
|
<Property name="RetryIfUploadFails" type="Boolean">True</Property>
|
||||||
|
<Property name="RetryPauseInterval" type="Cardinal">1000</Property>
|
||||||
|
<Property name="ServerClockSkew" type="Integer">0</Property>
|
||||||
|
<Property name="SuppressStatusMessages" type="Boolean">False</Property>
|
||||||
|
<Property name="ThrottleSpeed" type="Integer">128</Property>
|
||||||
|
<Property name="ThrottleUpload" type="Boolean">False</Property>
|
||||||
|
<Property name="TimeoutLength" type="Cardinal">10</Property>
|
||||||
|
<Property name="UpdateOnly" type="Boolean">True</Property>
|
||||||
|
<Property name="UseFileSpec" type="Boolean">False</Property>
|
||||||
|
</Object>
|
||||||
|
<Object Class="TFBFileSetObject" XMLID="{4C96E19D-4C98-467F-809B-CB662FF2372D}"><Property MultiValue="0" name="BaseDirectory" type="string">%project_path%\Installer\Output</Property>
|
||||||
|
<Property name="ExcludePatternList" type="IFBFileSetPatternList" XMLID="{9C8884C4-AC87-4A06-9C76-F6FCF3C9E49A}"/>
|
||||||
|
<Property name="FilterList" type="IFBFileSetFilterList" XMLID="{93191189-6FD7-4733-A59A-F4F2581CB00C}"/>
|
||||||
|
<Property MultiValue="0" name="Name" type="string">ListaFicherosUpdate</Property>
|
||||||
|
<Property name="OutputQuoting" type="TFileSetQuoteType">qtNone</Property>
|
||||||
|
<Property name="OutputSeparator" type="TFileSetSepType">spNone</Property>
|
||||||
|
<Property name="PatternList" type="IFBFileSetPatternList" XMLID="{2A9CF598-8D00-49FE-A651-B048E48A6EB5}"/>
|
||||||
|
<Property name="RecurseHiddenSystem" type="Boolean">False</Property>
|
||||||
|
<Object Class="TFBFileSetPatternList" XMLID="{2A9CF598-8D00-49FE-A651-B048E48A6EB5}"><Property MultiValue="0" name="Name" type="string">PATTERNLIST</Property>
|
||||||
|
<Object Class="TFBFileSetPattern" XMLID="{B9A535A2-0090-4530-A298-1F2566525C68}"><Property MultiValue="0" name="Comment" type="string"></Property>
|
||||||
|
<Property name="IsRegExpr" type="Boolean">False</Property>
|
||||||
|
<Property MultiValue="0" name="Item" type="string">*.*</Property>
|
||||||
|
<Property name="Recurse" type="Boolean">False</Property>
|
||||||
|
</Object>
|
||||||
|
</Object>
|
||||||
|
<Object Class="TFBFileSetPatternList" XMLID="{9C8884C4-AC87-4A06-9C76-F6FCF3C9E49A}"><Property MultiValue="0" name="Name" type="string">EXCLUDEPATTERNLIST</Property>
|
||||||
|
</Object>
|
||||||
|
<Object Class="TFBFileSetFilterList" XMLID="{93191189-6FD7-4733-A59A-F4F2581CB00C}"/>
|
||||||
|
</Object>
|
||||||
|
</Object>
|
||||||
|
<Object Class="TCommentAction" XMLID="{0C0BACA7-33E4-4C67-9DD8-BC1EDCF60346}"><Property MultiValue="0" name="ActionComment" type="string"></Property>
|
||||||
|
<Property MultiValue="0" name="ActionDescription" type="string">#</Property>
|
||||||
|
<Property name="ActionTextColor" type="Cardinal">16711680</Property>
|
||||||
|
<Property MultiValue="0" name="ActionTypeID" type="string"></Property>
|
||||||
|
<Property MultiValue="0" name="Description" type="string">#</Property>
|
||||||
|
<Property name="Enabled" type="WordBool">True</Property>
|
||||||
|
<Property name="ExpandActionLogTitle" type="Boolean">True</Property>
|
||||||
|
<Property name="IgnoreFailure" type="WordBool">False</Property>
|
||||||
|
<Property name="IsAction" type="Boolean">True</Property>
|
||||||
|
<Property name="IsBreakPoint" type="WordBool">False</Property>
|
||||||
|
<Property MultiValue="0" name="LogToVariable" type="string"></Property>
|
||||||
|
<Property name="MaxRetryAttempts" type="Cardinal">0</Property>
|
||||||
|
<Property name="NodeCollapsed" type="Boolean">False</Property>
|
||||||
|
<Property name="PauseInterval" type="Cardinal">0</Property>
|
||||||
|
<Property name="RetryPauseInterval" type="Cardinal">1000</Property>
|
||||||
|
<Property name="SuppressStatusMessages" type="Boolean">False</Property>
|
||||||
|
</Object>
|
||||||
|
<Object Class="TCommentAction" XMLID="{0EE1EBCC-CBBC-423C-8A8B-C539E0AD3F1A}"><Property MultiValue="0" name="ActionComment" type="string"></Property>
|
||||||
|
<Property MultiValue="0" name="ActionDescription" type="string">#</Property>
|
||||||
|
<Property name="ActionTextColor" type="Cardinal">16711680</Property>
|
||||||
|
<Property MultiValue="0" name="ActionTypeID" type="string"></Property>
|
||||||
|
<Property MultiValue="0" name="Description" type="string">#</Property>
|
||||||
|
<Property name="Enabled" type="WordBool">True</Property>
|
||||||
|
<Property name="ExpandActionLogTitle" type="Boolean">True</Property>
|
||||||
|
<Property name="IgnoreFailure" type="WordBool">False</Property>
|
||||||
|
<Property name="IsAction" type="Boolean">True</Property>
|
||||||
|
<Property name="IsBreakPoint" type="WordBool">False</Property>
|
||||||
|
<Property MultiValue="0" name="LogToVariable" type="string"></Property>
|
||||||
|
<Property name="MaxRetryAttempts" type="Cardinal">0</Property>
|
||||||
|
<Property name="NodeCollapsed" type="Boolean">False</Property>
|
||||||
|
<Property name="PauseInterval" type="Cardinal">0</Property>
|
||||||
|
<Property name="RetryPauseInterval" type="Cardinal">1000</Property>
|
||||||
|
<Property name="SuppressStatusMessages" type="Boolean">False</Property>
|
||||||
|
</Object>
|
||||||
|
<Object Class="TCommentAction" XMLID="{414785EC-5943-4162-A8E1-E74A8C7444AA}"><Property MultiValue="0" name="ActionComment" type="string"></Property>
|
||||||
|
<Property MultiValue="0" name="ActionDescription" type="string">#</Property>
|
||||||
|
<Property name="ActionTextColor" type="Cardinal">16711680</Property>
|
||||||
|
<Property MultiValue="0" name="ActionTypeID" type="string"></Property>
|
||||||
|
<Property MultiValue="0" name="Description" type="string">#</Property>
|
||||||
|
<Property name="Enabled" type="WordBool">True</Property>
|
||||||
|
<Property name="ExpandActionLogTitle" type="Boolean">True</Property>
|
||||||
|
<Property name="IgnoreFailure" type="WordBool">False</Property>
|
||||||
|
<Property name="IsAction" type="Boolean">True</Property>
|
||||||
|
<Property name="IsBreakPoint" type="WordBool">False</Property>
|
||||||
|
<Property MultiValue="0" name="LogToVariable" type="string"></Property>
|
||||||
|
<Property name="MaxRetryAttempts" type="Cardinal">0</Property>
|
||||||
|
<Property name="NodeCollapsed" type="Boolean">False</Property>
|
||||||
|
<Property name="PauseInterval" type="Cardinal">0</Property>
|
||||||
|
<Property name="RetryPauseInterval" type="Cardinal">1000</Property>
|
||||||
|
<Property name="SuppressStatusMessages" type="Boolean">False</Property>
|
||||||
|
</Object>
|
||||||
|
<Object Class="TFTPDisconnectAction" XMLID="{A0067CDC-7F31-43A8-A938-A97C20D918D4}"><Property MultiValue="0" name="ActionComment" type="string"></Property>
|
||||||
|
<Property MultiValue="1" name="ActionDescription" type="string"><![CDATA[FTP Disconnect [ FTP Actualizaciones ]]]>
|
||||||
|
</Property>
|
||||||
|
<Property name="ActionTextColor" type="Cardinal">0</Property>
|
||||||
|
<Property MultiValue="0" name="ActionTypeID" type="string"></Property>
|
||||||
|
<Property MultiValue="1" name="ConnectionName" type="string"><![CDATA[FTP Actualizaciones]]>
|
||||||
|
</Property>
|
||||||
|
<Property name="DetailedLogging" type="Boolean">False</Property>
|
||||||
|
<Property name="Enabled" type="WordBool">True</Property>
|
||||||
|
<Property name="ExpandActionLogTitle" type="Boolean">True</Property>
|
||||||
|
<Property name="IgnoreFailure" type="WordBool">False</Property>
|
||||||
|
<Property name="IsAction" type="Boolean">True</Property>
|
||||||
|
<Property name="IsBreakPoint" type="WordBool">False</Property>
|
||||||
|
<Property MultiValue="0" name="LogToVariable" type="string"></Property>
|
||||||
|
<Property name="MaxRetryAttempts" type="Cardinal">0</Property>
|
||||||
|
<Property name="NodeCollapsed" type="Boolean">False</Property>
|
||||||
|
<Property name="PauseInterval" type="Cardinal">0</Property>
|
||||||
|
<Property name="RetryPauseInterval" type="Cardinal">1000</Property>
|
||||||
|
<Property name="SuppressStatusMessages" type="Boolean">False</Property>
|
||||||
|
</Object>
|
||||||
|
</Object>
|
||||||
|
<Object Class="TFBActionListParametersCollection" XMLID="{B49D139C-E17C-41DB-BA6F-9E7BE6658A3F}"/>
|
||||||
|
</Object>
|
||||||
|
<Object Class="TFBActionList" XMLID="{6E64816C-A2E7-4975-BB38-6B7F97A9A2A0}"><Property name="IsFailure" type="Boolean">True</Property>
|
||||||
|
<Property name="IsMain" type="Boolean">False</Property>
|
||||||
|
<Property MultiValue="0" name="Name" type="string">OnFailure</Property>
|
||||||
|
<Property MultiValue="0" name="UniqueID" type="string">{3825909B-D200-4593-9304-63A49FA84CA9}</Property>
|
||||||
|
<Object Class="TFBAction" XMLID="{0F620111-B2BA-4349-A799-E868BAFB041F}"><Property MultiValue="0" name="ActionComment" type="string"></Property>
|
||||||
|
<Property MultiValue="0" name="ActionDescription" type="string">FinalBuilderAction</Property>
|
||||||
|
<Property name="ActionTextColor" type="Cardinal">0</Property>
|
||||||
|
<Property MultiValue="0" name="ActionTypeID" type="string"></Property>
|
||||||
|
<Property name="Enabled" type="WordBool">True</Property>
|
||||||
|
<Property name="ExpandActionLogTitle" type="Boolean">True</Property>
|
||||||
|
<Property name="IgnoreFailure" type="WordBool">False</Property>
|
||||||
|
<Property name="IsAction" type="Boolean">True</Property>
|
||||||
|
<Property name="IsBreakPoint" type="WordBool">False</Property>
|
||||||
|
<Property MultiValue="0" name="LogToVariable" type="string"></Property>
|
||||||
|
<Property name="MaxRetryAttempts" type="Cardinal">0</Property>
|
||||||
|
<Property name="NodeCollapsed" type="Boolean">False</Property>
|
||||||
|
<Property name="PauseInterval" type="Cardinal">0</Property>
|
||||||
|
<Property name="RetryPauseInterval" type="Cardinal">1000</Property>
|
||||||
|
<Property name="SuppressStatusMessages" type="Boolean">False</Property>
|
||||||
|
</Object>
|
||||||
|
<Object Class="TFBActionListParametersCollection" XMLID="{E15A5391-4DA5-47D3-ADDC-B6BC9AB70F7A}"/>
|
||||||
|
</Object>
|
||||||
|
</Object>
|
||||||
|
<Object Class="TFBVariablesCollection" XMLID="{7255F19A-68E5-4C57-9854-E7C3E6E8F9CB}"><Property MultiValue="0" name="Name" type="string">Project</Property>
|
||||||
|
<Object Class="TFBVariable" XMLID="{23BA1DA8-C505-471D-A53E-5811A50DAEA2}"><Property MultiValue="0" name="Comment" type="string"></Property>
|
||||||
|
<Property MultiValue="0" name="DefaultValue" type="string"></Property>
|
||||||
|
<Property name="IsMacro" type="Boolean">False</Property>
|
||||||
|
<Property name="IsPersistent" type="Boolean">False</Property>
|
||||||
|
<Property name="MakeEnv" type="Boolean">False</Property>
|
||||||
|
<Property MultiValue="0" name="Name" type="string">FTPAddress</Property>
|
||||||
|
<Property name="VariableType" type="TFBVariableType">vtProject</Property>
|
||||||
|
</Object>
|
||||||
|
<Object Class="TFBVariable" XMLID="{976221CE-22AE-41F2-807D-539435613FC4}"><Property MultiValue="0" name="Comment" type="string"></Property>
|
||||||
|
<Property MultiValue="0" name="DefaultValue" type="string"></Property>
|
||||||
|
<Property name="IsMacro" type="Boolean">False</Property>
|
||||||
|
<Property name="IsPersistent" type="Boolean">False</Property>
|
||||||
|
<Property name="MakeEnv" type="Boolean">False</Property>
|
||||||
|
<Property MultiValue="0" name="Name" type="string">FTPRemotePath</Property>
|
||||||
|
<Property name="VariableType" type="TFBVariableType">vtProject</Property>
|
||||||
|
</Object>
|
||||||
|
<Object Class="TFBVariable" XMLID="{FEDCC39B-1CF9-4510-B360-FB33B625CD51}"><Property MultiValue="0" name="Comment" type="string"></Property>
|
||||||
|
<Property MultiValue="0" name="DefaultValue" type="string"></Property>
|
||||||
|
<Property name="IsMacro" type="Boolean">False</Property>
|
||||||
|
<Property name="IsPersistent" type="Boolean">False</Property>
|
||||||
|
<Property name="MakeEnv" type="Boolean">False</Property>
|
||||||
|
<Property MultiValue="0" name="Name" type="string">FTPUser</Property>
|
||||||
|
<Property name="VariableType" type="TFBVariableType">vtProject</Property>
|
||||||
|
</Object>
|
||||||
|
<Object Class="TFBVariable" XMLID="{8578F671-4F91-4D84-85AF-BBEE59425ACF}"><Property MultiValue="0" name="Comment" type="string"></Property>
|
||||||
|
<Property MultiValue="0" name="DefaultValue" type="string"></Property>
|
||||||
|
<Property name="IsMacro" type="Boolean">False</Property>
|
||||||
|
<Property name="IsPersistent" type="Boolean">False</Property>
|
||||||
|
<Property name="MakeEnv" type="Boolean">False</Property>
|
||||||
|
<Property MultiValue="0" name="Name" type="string">FTPPassword</Property>
|
||||||
|
<Property name="VariableType" type="TFBVariableType">vtProject</Property>
|
||||||
|
</Object>
|
||||||
|
<Object Class="TFBVariable" XMLID="{02D50FCB-BC86-407E-B5D9-DA4F9C6E5F49}"><Property MultiValue="0" name="Comment" type="string"></Property>
|
||||||
|
<Property MultiValue="0" name="DefaultValue" type="string"></Property>
|
||||||
|
<Property name="IsMacro" type="Boolean">False</Property>
|
||||||
|
<Property name="IsPersistent" type="Boolean">False</Property>
|
||||||
|
<Property name="MakeEnv" type="Boolean">False</Property>
|
||||||
|
<Property MultiValue="0" name="Name" type="string">_aux_directoylist</Property>
|
||||||
|
<Property name="VariableType" type="TFBVariableType">vtProject</Property>
|
||||||
|
</Object>
|
||||||
|
<Object Class="TFBVariable" XMLID="{01B15C1E-1D63-4EC0-B7C9-0D3A1BE252A4}"><Property MultiValue="0" name="Comment" type="string"></Property>
|
||||||
|
<Property MultiValue="0" name="DefaultValue" type="string"></Property>
|
||||||
|
<Property name="IsMacro" type="Boolean">False</Property>
|
||||||
|
<Property name="IsPersistent" type="Boolean">False</Property>
|
||||||
|
<Property name="MakeEnv" type="Boolean">False</Property>
|
||||||
|
<Property MultiValue="0" name="Name" type="string">_aux_filename</Property>
|
||||||
|
<Property name="VariableType" type="TFBVariableType">vtProject</Property>
|
||||||
|
</Object>
|
||||||
|
<Object Class="TFBVariable" XMLID="{C9ED743F-AF5C-4FB5-9808-070B3F4E32A1}"><Property MultiValue="0" name="Comment" type="string"></Property>
|
||||||
|
<Property MultiValue="0" name="DefaultValue" type="string"></Property>
|
||||||
|
<Property name="IsMacro" type="Boolean">False</Property>
|
||||||
|
<Property name="IsPersistent" type="Boolean">False</Property>
|
||||||
|
<Property name="MakeEnv" type="Boolean">False</Property>
|
||||||
|
<Property MultiValue="0" name="Name" type="string">project_path</Property>
|
||||||
|
<Property name="VariableType" type="TFBVariableType">vtProject</Property>
|
||||||
|
</Object>
|
||||||
|
</Object>
|
||||||
|
</Object>
|
||||||
|
</VSXML>
|
||||||
215
Database/Script.txt
Normal file
@ -0,0 +1,215 @@
|
|||||||
|
ALTER TABLE ALBARANES_CLIENTE
|
||||||
|
ADD ID_ALBARAN_DEV TIPO_ID;
|
||||||
|
|
||||||
|
ALTER TABLE ALBARANES_PROVEEDOR
|
||||||
|
ADD ID_ALBARAN_DEV TIPO_ID;
|
||||||
|
|
||||||
|
DROP VIEW V_ALBARANES_CLIENTE;
|
||||||
|
|
||||||
|
CREATE VIEW V_ALBARANES_CLIENTE(
|
||||||
|
ID,
|
||||||
|
ID_EMPRESA,
|
||||||
|
ID_CLIENTE,
|
||||||
|
NOMBRE,
|
||||||
|
FECHA_ALBARAN,
|
||||||
|
REFERENCIA,
|
||||||
|
REFERENCIA_CLIENTE,
|
||||||
|
TIPO,
|
||||||
|
ID_ALBARAN_DEV,
|
||||||
|
REFERENCIA_ALB_DEV,
|
||||||
|
ID_FAC_ALB_DEV,
|
||||||
|
REFERENCIA_FAC_ALB_DEV,
|
||||||
|
SITUACION,
|
||||||
|
ID_ALMACEN,
|
||||||
|
NOMBRE_ALMACEN,
|
||||||
|
ID_PEDIDO,
|
||||||
|
REF_PEDIDO,
|
||||||
|
ID_FACTURA,
|
||||||
|
REF_FACTURA,
|
||||||
|
CALLE,
|
||||||
|
CODIGO_POSTAL,
|
||||||
|
POBLACION,
|
||||||
|
PROVINCIA,
|
||||||
|
PERSONA_CONTACTO,
|
||||||
|
TELEFONO,
|
||||||
|
IMPORTE_NETO,
|
||||||
|
IMPORTE_PORTE,
|
||||||
|
DESCUENTO,
|
||||||
|
IMPORTE_DESCUENTO,
|
||||||
|
BASE_IMPONIBLE,
|
||||||
|
IVA,
|
||||||
|
IMPORTE_IVA,
|
||||||
|
IMPORTE_TOTAL,
|
||||||
|
OBSERVACIONES,
|
||||||
|
INCIDENCIAS,
|
||||||
|
INCIDENCIAS_ACTIVAS,
|
||||||
|
FECHA_ALTA,
|
||||||
|
FECHA_MODIFICACION,
|
||||||
|
USUARIO,
|
||||||
|
ID_FORMA_PAGO,
|
||||||
|
FECHA_PREVISTA_ENVIO,
|
||||||
|
FECHA_ENVIO,
|
||||||
|
FECHA_RECEPCION,
|
||||||
|
ID_AGENTE,
|
||||||
|
AGENTE,
|
||||||
|
NUM_COPIAS)
|
||||||
|
AS
|
||||||
|
SELECT
|
||||||
|
ALBARANES_CLIENTE.ID,
|
||||||
|
ALBARANES_CLIENTE.ID_EMPRESA,
|
||||||
|
ALBARANES_CLIENTE.ID_CLIENTE,
|
||||||
|
CLIENTES.NOMBRE,
|
||||||
|
ALBARANES_CLIENTE.FECHA_ALBARAN,
|
||||||
|
ALBARANES_CLIENTE.REFERENCIA,
|
||||||
|
ALBARANES_CLIENTE.REFERENCIA_CLIENTE,
|
||||||
|
ALBARANES_CLIENTE.TIPO,
|
||||||
|
ALBARANES_CLIENTE.ID_ALBARAN_DEV,
|
||||||
|
ALB_DEV.REFERENCIA,
|
||||||
|
ALB_DEV.ID_FACTURA,
|
||||||
|
FAC_CLI_ALB_DEV.REFERENCIA,
|
||||||
|
V_ALB_CLI_SITUACION.SITUACION,
|
||||||
|
ALBARANES_CLIENTE.ID_ALMACEN,
|
||||||
|
ALMACENES.NOMBRE AS NOMBRE_ALMACEN,
|
||||||
|
ALBARANES_CLIENTE.ID_PEDIDO,
|
||||||
|
PEDIDOS_CLIENTE.REFERENCIA AS REF_PEDIDO,
|
||||||
|
ALBARANES_CLIENTE.ID_FACTURA,
|
||||||
|
FACTURAS_CLIENTE.REFERENCIA AS REF_FACTURA,
|
||||||
|
ALBARANES_CLIENTE.CALLE,
|
||||||
|
ALBARANES_CLIENTE.CODIGO_POSTAL,
|
||||||
|
ALBARANES_CLIENTE.POBLACION,
|
||||||
|
ALBARANES_CLIENTE.PROVINCIA,
|
||||||
|
ALBARANES_CLIENTE.PERSONA_CONTACTO,
|
||||||
|
ALBARANES_CLIENTE.TELEFONO,
|
||||||
|
ALBARANES_CLIENTE.IMPORTE_NETO,
|
||||||
|
ALBARANES_CLIENTE.IMPORTE_PORTE,
|
||||||
|
ALBARANES_CLIENTE.DESCUENTO,
|
||||||
|
ALBARANES_CLIENTE.IMPORTE_DESCUENTO,
|
||||||
|
ALBARANES_CLIENTE.BASE_IMPONIBLE,
|
||||||
|
ALBARANES_CLIENTE.IVA,
|
||||||
|
ALBARANES_CLIENTE.IMPORTE_IVA,
|
||||||
|
ALBARANES_CLIENTE.IMPORTE_TOTAL,
|
||||||
|
ALBARANES_CLIENTE.OBSERVACIONES,
|
||||||
|
ALBARANES_CLIENTE.INCIDENCIAS,
|
||||||
|
ALBARANES_CLIENTE.INCIDENCIAS_ACTIVAS,
|
||||||
|
ALBARANES_CLIENTE.FECHA_ALTA,
|
||||||
|
ALBARANES_CLIENTE.FECHA_MODIFICACION,
|
||||||
|
ALBARANES_CLIENTE.USUARIO,
|
||||||
|
ALBARANES_CLIENTE.ID_FORMA_PAGO,
|
||||||
|
ALBARANES_CLIENTE.FECHA_PREVISTA_ENVIO,
|
||||||
|
ALBARANES_CLIENTE.FECHA_ENVIO,
|
||||||
|
ALBARANES_CLIENTE.FECHA_RECEPCION,
|
||||||
|
CLIENTES_DATOS.ID_AGENTE,
|
||||||
|
AGENTES.NOMBRE,
|
||||||
|
IMPRESIONES.NUM_COPIAS
|
||||||
|
|
||||||
|
FROM
|
||||||
|
ALBARANES_CLIENTE
|
||||||
|
INNER JOIN V_ALB_CLI_SITUACION ON (V_ALB_CLI_SITUACION.ID = ALBARANES_CLIENTE.ID)
|
||||||
|
INNER JOIN CONTACTOS CLIENTES ON (CLIENTES.ID = ALBARANES_CLIENTE.ID_CLIENTE)
|
||||||
|
LEFT OUTER JOIN ALBARANES_CLIENTE ALB_DEV ON (ALB_DEV.ID = ALBARANES_CLIENTE.ID_ALBARAN_DEV)
|
||||||
|
LEFT OUTER JOIN FACTURAS_CLIENTE FAC_CLI_ALB_DEV ON (FAC_CLI_ALB_DEV.ID = ALB_DEV.ID_FACTURA)
|
||||||
|
LEFT OUTER JOIN CLIENTES_DATOS ON (CLIENTES_DATOS.ID_CLIENTE = ALBARANES_CLIENTE.ID_CLIENTE)
|
||||||
|
LEFT OUTER JOIN CONTACTOS AGENTES ON (AGENTES.ID = CLIENTES_DATOS.ID_AGENTE)
|
||||||
|
LEFT OUTER JOIN PEDIDOS_CLIENTE ON (PEDIDOS_CLIENTE.ID = ALBARANES_CLIENTE.ID_PEDIDO)
|
||||||
|
LEFT OUTER JOIN FACTURAS_CLIENTE ON (FACTURAS_CLIENTE.ID = ALBARANES_CLIENTE.ID_FACTURA)
|
||||||
|
LEFT OUTER JOIN ALMACENES ON (ALMACENES.ID = ALBARANES_CLIENTE.ID_ALMACEN)
|
||||||
|
LEFT JOIN IMPRESIONES ON ((IMPRESIONES.ID_TABLA = ALBARANES_CLIENTE.ID) AND (IMPRESIONES.TABLA = 'ALBARANESCLIENTE'))
|
||||||
|
;
|
||||||
|
|
||||||
|
DROP VIEW V_ALBARANES_PROVEEDOR;
|
||||||
|
|
||||||
|
CREATE VIEW V_ALBARANES_PROVEEDOR(
|
||||||
|
ID,
|
||||||
|
ID_EMPRESA,
|
||||||
|
ID_PROVEEDOR,
|
||||||
|
NOMBRE,
|
||||||
|
FECHA_ALBARAN,
|
||||||
|
REFERENCIA,
|
||||||
|
REFERENCIA_PROVEEDOR,
|
||||||
|
TIPO,
|
||||||
|
ID_ALBARAN_DEV,
|
||||||
|
REFERENCIA_ALB_DEV,
|
||||||
|
ID_FAC_ALB_DEV,
|
||||||
|
REFERENCIA_FAC_ALB_DEV,
|
||||||
|
ID_ALMACEN,
|
||||||
|
NOMBRE_ALMACEN,
|
||||||
|
ID_PEDIDO,
|
||||||
|
REF_PED_PROVEEDOR,
|
||||||
|
ID_FACTURA,
|
||||||
|
REF_FACTURA,
|
||||||
|
REF_FACTURA_PROV,
|
||||||
|
CALLE,
|
||||||
|
CODIGO_POSTAL,
|
||||||
|
POBLACION,
|
||||||
|
PROVINCIA,
|
||||||
|
PERSONA_CONTACTO,
|
||||||
|
TELEFONO,
|
||||||
|
IMPORTE_NETO,
|
||||||
|
IMPORTE_PORTE,
|
||||||
|
DESCUENTO,
|
||||||
|
IMPORTE_DESCUENTO,
|
||||||
|
BASE_IMPONIBLE,
|
||||||
|
IVA,
|
||||||
|
IMPORTE_IVA,
|
||||||
|
IMPORTE_TOTAL,
|
||||||
|
OBSERVACIONES,
|
||||||
|
INCIDENCIAS,
|
||||||
|
INCIDENCIAS_ACTIVAS,
|
||||||
|
FECHA_ALTA,
|
||||||
|
FECHA_MODIFICACION,
|
||||||
|
USUARIO,
|
||||||
|
ID_FORMA_PAGO,
|
||||||
|
NUM_COPIAS)
|
||||||
|
AS
|
||||||
|
SELECT
|
||||||
|
ALBARANES_PROVEEDOR.ID,
|
||||||
|
ALBARANES_PROVEEDOR.ID_EMPRESA,
|
||||||
|
ALBARANES_PROVEEDOR.ID_PROVEEDOR,
|
||||||
|
CONTACTOS.NOMBRE,
|
||||||
|
ALBARANES_PROVEEDOR.FECHA_ALBARAN,
|
||||||
|
ALBARANES_PROVEEDOR.REFERENCIA,
|
||||||
|
ALBARANES_PROVEEDOR.REFERENCIA_PROVEEDOR,
|
||||||
|
ALBARANES_PROVEEDOR.TIPO,
|
||||||
|
ALBARANES_PROVEEDOR.ID_ALBARAN_DEV,
|
||||||
|
ALB_DEV.REFERENCIA,
|
||||||
|
ALB_DEV.ID_FACTURA,
|
||||||
|
FAC_PROV_ALB_DEV.REFERENCIA,
|
||||||
|
ALBARANES_PROVEEDOR.ID_ALMACEN,
|
||||||
|
ALMACENES.NOMBRE AS NOMBRE_ALMACEN,
|
||||||
|
ALBARANES_PROVEEDOR.ID_PEDIDO,
|
||||||
|
PEDIDOS_PROVEEDOR.REFERENCIA AS REF_PED_PROVEEDOR,
|
||||||
|
ALBARANES_PROVEEDOR.ID_FACTURA,
|
||||||
|
FACTURAS_PROVEEDOR.REFERENCIA AS REF_FACTURA,
|
||||||
|
ALBARANES_PROVEEDOR.REF_FACTURA_PROV,
|
||||||
|
ALBARANES_PROVEEDOR.CALLE,
|
||||||
|
ALBARANES_PROVEEDOR.CODIGO_POSTAL,
|
||||||
|
ALBARANES_PROVEEDOR.POBLACION,
|
||||||
|
ALBARANES_PROVEEDOR.PROVINCIA,
|
||||||
|
ALBARANES_PROVEEDOR.PERSONA_CONTACTO,
|
||||||
|
ALBARANES_PROVEEDOR.TELEFONO,
|
||||||
|
ALBARANES_PROVEEDOR.IMPORTE_NETO,
|
||||||
|
ALBARANES_PROVEEDOR.IMPORTE_PORTE,
|
||||||
|
ALBARANES_PROVEEDOR.DESCUENTO,
|
||||||
|
ALBARANES_PROVEEDOR.IMPORTE_DESCUENTO,
|
||||||
|
ALBARANES_PROVEEDOR.BASE_IMPONIBLE,
|
||||||
|
ALBARANES_PROVEEDOR.IVA,
|
||||||
|
ALBARANES_PROVEEDOR.IMPORTE_IVA,
|
||||||
|
ALBARANES_PROVEEDOR.IMPORTE_TOTAL,
|
||||||
|
ALBARANES_PROVEEDOR.OBSERVACIONES,
|
||||||
|
ALBARANES_PROVEEDOR.INCIDENCIAS,
|
||||||
|
ALBARANES_PROVEEDOR.INCIDENCIAS_ACTIVAS,
|
||||||
|
ALBARANES_PROVEEDOR.FECHA_ALTA,
|
||||||
|
ALBARANES_PROVEEDOR.FECHA_MODIFICACION,
|
||||||
|
ALBARANES_PROVEEDOR.USUARIO,
|
||||||
|
ALBARANES_PROVEEDOR.ID_FORMA_PAGO,
|
||||||
|
IMPRESIONES.NUM_COPIAS
|
||||||
|
FROM
|
||||||
|
ALBARANES_PROVEEDOR
|
||||||
|
INNER JOIN CONTACTOS ON (CONTACTOS.ID = ALBARANES_PROVEEDOR.ID_PROVEEDOR)
|
||||||
|
LEFT OUTER JOIN ALBARANES_PROVEEDOR ALB_DEV ON (ALB_DEV.ID = ALBARANES_PROVEEDOR.ID_ALBARAN_DEV)
|
||||||
|
LEFT OUTER JOIN FACTURAS_PROVEEDOR FAC_PROV_ALB_DEV ON (FAC_PROV_ALB_DEV.ID = ALB_DEV.ID_FACTURA)
|
||||||
|
LEFT OUTER JOIN PEDIDOS_PROVEEDOR ON (PEDIDOS_PROVEEDOR.ID = ALBARANES_PROVEEDOR.ID_PEDIDO)
|
||||||
|
LEFT OUTER JOIN FACTURAS_PROVEEDOR ON (FACTURAS_PROVEEDOR.ID = ALBARANES_PROVEEDOR.ID_FACTURA)
|
||||||
|
LEFT OUTER JOIN ALMACENES ON (ALMACENES.ID = ALBARANES_PROVEEDOR.ID_ALMACEN)
|
||||||
|
LEFT JOIN IMPRESIONES ON ((IMPRESIONES.ID_TABLA = ALBARANES_PROVEEDOR.ID) AND (IMPRESIONES.TABLA = 'ALBARANESPROVEEDOR'))
|
||||||
|
;
|
||||||
@ -85,9 +85,7 @@ DROP VIEW V_RECIBOS_PROVEEDOR;
|
|||||||
DROP VIEW V_REMESAS_PROVEEDOR;
|
DROP VIEW V_REMESAS_PROVEEDOR;
|
||||||
DROP VIEW V_REC_PRO_COMPENSADOS;
|
DROP VIEW V_REC_PRO_COMPENSADOS;
|
||||||
DROP VIEW V_REC_CLI_SITUACION;
|
DROP VIEW V_REC_CLI_SITUACION;
|
||||||
DROP VIEW V_REC_CLI_SIT_SINCOMPENSAR;
|
|
||||||
DROP VIEW V_REC_PRO_SITUACION;
|
DROP VIEW V_REC_PRO_SITUACION;
|
||||||
DROP VIEW V_REC_PRO_SIT_SINCOMPENSAR;
|
|
||||||
DROP VIEW V_REC_FAC_CLI;
|
DROP VIEW V_REC_FAC_CLI;
|
||||||
DROP VIEW V_REC_FAC_PRO;
|
DROP VIEW V_REC_FAC_PRO;
|
||||||
DROP VIEW V_AGENTES;
|
DROP VIEW V_AGENTES;
|
||||||
@ -177,6 +175,7 @@ CREATE VIEW V_CLIENTES(
|
|||||||
ID_AGENTE,
|
ID_AGENTE,
|
||||||
GRUPO_CLIENTE,
|
GRUPO_CLIENTE,
|
||||||
NOMBRE_COMERCIAL,
|
NOMBRE_COMERCIAL,
|
||||||
|
VENCIMIENTO_FACTURAS,
|
||||||
BLOQUEADO,
|
BLOQUEADO,
|
||||||
REGIMEN_IVA,
|
REGIMEN_IVA,
|
||||||
MOTIVO_BLOQUEO,
|
MOTIVO_BLOQUEO,
|
||||||
@ -185,11 +184,7 @@ CREATE VIEW V_CLIENTES(
|
|||||||
ID_FORMA_PAGO,
|
ID_FORMA_PAGO,
|
||||||
TIENDA_WEB,
|
TIENDA_WEB,
|
||||||
AGENTE,
|
AGENTE,
|
||||||
RAPEL,
|
RAPEL)
|
||||||
EMAIL_ADMINISTRACION,
|
|
||||||
VENCIMIENTO_FACTURAS_1,
|
|
||||||
VENCIMIENTO_FACTURAS_2,
|
|
||||||
VENCIMIENTO_FACTURAS_3)
|
|
||||||
AS
|
AS
|
||||||
SELECT
|
SELECT
|
||||||
V_CONTACTOS.ID,
|
V_CONTACTOS.ID,
|
||||||
@ -217,6 +212,7 @@ SELECT
|
|||||||
CLIENTES_DATOS.ID_AGENTE,
|
CLIENTES_DATOS.ID_AGENTE,
|
||||||
CLIENTES_DATOS.GRUPO_CLIENTE,
|
CLIENTES_DATOS.GRUPO_CLIENTE,
|
||||||
CLIENTES_DATOS.NOMBRE_COMERCIAL,
|
CLIENTES_DATOS.NOMBRE_COMERCIAL,
|
||||||
|
CLIENTES_DATOS.VENCIMIENTO_FACTURAS,
|
||||||
CLIENTES_DATOS.BLOQUEADO,
|
CLIENTES_DATOS.BLOQUEADO,
|
||||||
CLIENTES_DATOS.REGIMEN_IVA,
|
CLIENTES_DATOS.REGIMEN_IVA,
|
||||||
CLIENTES_DATOS.MOTIVO_BLOQUEO,
|
CLIENTES_DATOS.MOTIVO_BLOQUEO,
|
||||||
@ -225,12 +221,7 @@ SELECT
|
|||||||
CLIENTES_DATOS.ID_FORMA_PAGO,
|
CLIENTES_DATOS.ID_FORMA_PAGO,
|
||||||
CLIENTES_DATOS.TIENDA_WEB,
|
CLIENTES_DATOS.TIENDA_WEB,
|
||||||
CONTACTOS.NOMBRE AS AGENTE,
|
CONTACTOS.NOMBRE AS AGENTE,
|
||||||
CLIENTES_DATOS.RAPEL,
|
CLIENTES_DATOS.RAPEL
|
||||||
CLIENTES_DATOS.EMAIL_ADMINISTRACION,
|
|
||||||
CLIENTES_DATOS.VENCIMIENTO_FACTURAS_1,
|
|
||||||
CLIENTES_DATOS.VENCIMIENTO_FACTURAS_2,
|
|
||||||
CLIENTES_DATOS.VENCIMIENTO_FACTURAS_3
|
|
||||||
|
|
||||||
FROM
|
FROM
|
||||||
V_CONTACTOS
|
V_CONTACTOS
|
||||||
LEFT OUTER JOIN CLIENTES_DATOS ON (V_CONTACTOS.ID = CLIENTES_DATOS.ID_CLIENTE)
|
LEFT OUTER JOIN CLIENTES_DATOS ON (V_CONTACTOS.ID = CLIENTES_DATOS.ID_CLIENTE)
|
||||||
@ -266,11 +257,7 @@ CREATE VIEW V_PROVEEDORES(
|
|||||||
REGIMEN_IVA,
|
REGIMEN_IVA,
|
||||||
ID_TIPO_IVA,
|
ID_TIPO_IVA,
|
||||||
ID_FORMA_PAGO,
|
ID_FORMA_PAGO,
|
||||||
TIENDA_WEB,
|
TIENDA_WEB)
|
||||||
EMAIL_ADMINISTRACION,
|
|
||||||
VENCIMIENTO_FACTURAS_1,
|
|
||||||
VENCIMIENTO_FACTURAS_2,
|
|
||||||
VENCIMIENTO_FACTURAS_3)
|
|
||||||
AS
|
AS
|
||||||
SELECT
|
SELECT
|
||||||
V_CONTACTOS.ID,
|
V_CONTACTOS.ID,
|
||||||
@ -299,12 +286,7 @@ SELECT
|
|||||||
PROVEEDORES_DATOS.REGIMEN_IVA,
|
PROVEEDORES_DATOS.REGIMEN_IVA,
|
||||||
PROVEEDORES_DATOS.ID_TIPO_IVA,
|
PROVEEDORES_DATOS.ID_TIPO_IVA,
|
||||||
PROVEEDORES_DATOS.ID_FORMA_PAGO,
|
PROVEEDORES_DATOS.ID_FORMA_PAGO,
|
||||||
PROVEEDORES_DATOS.TIENDA_WEB,
|
PROVEEDORES_DATOS.TIENDA_WEB
|
||||||
PROVEEDORES_DATOS.EMAIL_ADMINISTRACION,
|
|
||||||
PROVEEDORES_DATOS.VENCIMIENTO_FACTURAS_1,
|
|
||||||
PROVEEDORES_DATOS.VENCIMIENTO_FACTURAS_2,
|
|
||||||
PROVEEDORES_DATOS.VENCIMIENTO_FACTURAS_3
|
|
||||||
|
|
||||||
FROM
|
FROM
|
||||||
PROVEEDORES_DATOS
|
PROVEEDORES_DATOS
|
||||||
INNER JOIN V_CONTACTOS ON (PROVEEDORES_DATOS.ID_PROVEEDOR = V_CONTACTOS.ID)
|
INNER JOIN V_CONTACTOS ON (PROVEEDORES_DATOS.ID_PROVEEDOR = V_CONTACTOS.ID)
|
||||||
@ -354,8 +336,7 @@ CREATE VIEW V_ALBARANES_PROVEEDOR(
|
|||||||
FECHA_MODIFICACION,
|
FECHA_MODIFICACION,
|
||||||
USUARIO,
|
USUARIO,
|
||||||
ID_FORMA_PAGO,
|
ID_FORMA_PAGO,
|
||||||
NUM_COPIAS,
|
NUM_COPIAS)
|
||||||
NUM_CORREOS)
|
|
||||||
AS
|
AS
|
||||||
SELECT
|
SELECT
|
||||||
ALBARANES_PROVEEDOR.ID,
|
ALBARANES_PROVEEDOR.ID,
|
||||||
@ -398,8 +379,7 @@ SELECT
|
|||||||
ALBARANES_PROVEEDOR.FECHA_MODIFICACION,
|
ALBARANES_PROVEEDOR.FECHA_MODIFICACION,
|
||||||
ALBARANES_PROVEEDOR.USUARIO,
|
ALBARANES_PROVEEDOR.USUARIO,
|
||||||
ALBARANES_PROVEEDOR.ID_FORMA_PAGO,
|
ALBARANES_PROVEEDOR.ID_FORMA_PAGO,
|
||||||
IMPRESIONES.NUM_COPIAS,
|
IMPRESIONES.NUM_COPIAS
|
||||||
REGISTRO_CORREOS.NUM_CORREOS
|
|
||||||
FROM
|
FROM
|
||||||
ALBARANES_PROVEEDOR
|
ALBARANES_PROVEEDOR
|
||||||
INNER JOIN CONTACTOS ON (CONTACTOS.ID = ALBARANES_PROVEEDOR.ID_PROVEEDOR)
|
INNER JOIN CONTACTOS ON (CONTACTOS.ID = ALBARANES_PROVEEDOR.ID_PROVEEDOR)
|
||||||
@ -408,11 +388,7 @@ FROM
|
|||||||
LEFT OUTER JOIN PEDIDOS_PROVEEDOR ON (PEDIDOS_PROVEEDOR.ID = ALBARANES_PROVEEDOR.ID_PEDIDO)
|
LEFT OUTER JOIN PEDIDOS_PROVEEDOR ON (PEDIDOS_PROVEEDOR.ID = ALBARANES_PROVEEDOR.ID_PEDIDO)
|
||||||
LEFT OUTER JOIN FACTURAS_PROVEEDOR ON (FACTURAS_PROVEEDOR.ID = ALBARANES_PROVEEDOR.ID_FACTURA)
|
LEFT OUTER JOIN FACTURAS_PROVEEDOR ON (FACTURAS_PROVEEDOR.ID = ALBARANES_PROVEEDOR.ID_FACTURA)
|
||||||
LEFT OUTER JOIN ALMACENES ON (ALMACENES.ID = ALBARANES_PROVEEDOR.ID_ALMACEN)
|
LEFT OUTER JOIN ALMACENES ON (ALMACENES.ID = ALBARANES_PROVEEDOR.ID_ALMACEN)
|
||||||
LEFT JOIN IMPRESIONES
|
LEFT JOIN IMPRESIONES ON ((IMPRESIONES.ID_TABLA = ALBARANES_PROVEEDOR.ID) AND (IMPRESIONES.TABLA = 'ALBARANESPROVEEDOR'));
|
||||||
ON ((IMPRESIONES.ID_TABLA = ALBARANES_PROVEEDOR.ID) AND (IMPRESIONES.TABLA = 'ALBARANESPROVEEDOR'))
|
|
||||||
LEFT JOIN REGISTRO_CORREOS
|
|
||||||
ON ((REGISTRO_CORREOS.ID_TABLA = ALBARANES_PROVEEDOR.ID) AND (REGISTRO_CORREOS.TABLA = 'ALBARANESPROVEEDOR'))
|
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
CREATE VIEW V_AGENTES(
|
CREATE VIEW V_AGENTES(
|
||||||
@ -484,7 +460,8 @@ LEFT JOIN RECIBOS_CLIENTE
|
|||||||
ON (RECIBOS_CLIENTE.ID_FACTURA = FACTURAS_CLIENTE.ID)
|
ON (RECIBOS_CLIENTE.ID_FACTURA = FACTURAS_CLIENTE.ID)
|
||||||
GROUP BY FACTURAS_CLIENTE.ID;
|
GROUP BY FACTURAS_CLIENTE.ID;
|
||||||
|
|
||||||
CREATE VIEW V_REC_PRO_SIT_SINCOMPENSAR(
|
|
||||||
|
CREATE VIEW V_REC_PRO_SITUACION(
|
||||||
ID_RECIBO,
|
ID_RECIBO,
|
||||||
SITUACION)
|
SITUACION)
|
||||||
AS
|
AS
|
||||||
@ -498,21 +475,8 @@ LEFT JOIN PAGOS_PROVEEDOR
|
|||||||
ON (PAGOS_PROVEEDOR.ID_RECIBO = RECIBOS_PROVEEDOR.ID)
|
ON (PAGOS_PROVEEDOR.ID_RECIBO = RECIBOS_PROVEEDOR.ID)
|
||||||
GROUP BY RECIBOS_PROVEEDOR.ID;
|
GROUP BY RECIBOS_PROVEEDOR.ID;
|
||||||
|
|
||||||
CREATE VIEW V_REC_PRO_SITUACION(
|
|
||||||
ID_RECIBO,
|
|
||||||
SITUACION)
|
|
||||||
AS
|
|
||||||
select
|
|
||||||
a1.ID_RECIBO,
|
|
||||||
case when recibos_proveedor.id_recibo_compensado is null then a1.SITUACION
|
|
||||||
else a2.SITUACION
|
|
||||||
end as situacion
|
|
||||||
from V_REC_PRO_SIT_SINCOMPENSAR a1
|
|
||||||
left join recibos_proveedor on (recibos_proveedor.id = a1.ID_RECIBO)
|
|
||||||
left join V_REC_PRO_SIT_SINCOMPENSAR a2 on (a2.id_recibo = recibos_proveedor.id_recibo_compensado);
|
|
||||||
|
|
||||||
|
CREATE VIEW V_REC_CLI_SITUACION(
|
||||||
CREATE VIEW V_REC_CLI_SIT_SINCOMPENSAR(
|
|
||||||
ID_RECIBO,
|
ID_RECIBO,
|
||||||
SITUACION)
|
SITUACION)
|
||||||
AS
|
AS
|
||||||
@ -524,21 +488,7 @@ END
|
|||||||
FROM RECIBOS_CLIENTE
|
FROM RECIBOS_CLIENTE
|
||||||
LEFT JOIN PAGOS_CLIENTE
|
LEFT JOIN PAGOS_CLIENTE
|
||||||
ON (PAGOS_CLIENTE.ID_RECIBO = RECIBOS_CLIENTE.ID)
|
ON (PAGOS_CLIENTE.ID_RECIBO = RECIBOS_CLIENTE.ID)
|
||||||
GROUP BY RECIBOS_CLIENTE.ID
|
GROUP BY RECIBOS_CLIENTE.ID;
|
||||||
;
|
|
||||||
|
|
||||||
CREATE VIEW V_REC_CLI_SITUACION(
|
|
||||||
ID_RECIBO,
|
|
||||||
SITUACION)
|
|
||||||
AS
|
|
||||||
select
|
|
||||||
a1.ID_RECIBO,
|
|
||||||
case when recibos_cliente.id_recibo_compensado is null then a1.SITUACION
|
|
||||||
else a2.SITUACION
|
|
||||||
end as situacion
|
|
||||||
from V_REC_CLI_SIT_SINCOMPENSAR a1
|
|
||||||
left join recibos_cliente on (recibos_cliente.id = a1.ID_RECIBO)
|
|
||||||
left join V_REC_CLI_SIT_SINCOMPENSAR a2 on (a2.id_recibo = recibos_cliente.id_recibo_compensado);
|
|
||||||
|
|
||||||
|
|
||||||
CREATE VIEW V_REC_PRO_COMPENSADOS (
|
CREATE VIEW V_REC_PRO_COMPENSADOS (
|
||||||
@ -589,7 +539,11 @@ SELECT RECIBOS_PROVEEDOR.ID,
|
|||||||
RECIBO_COMPENSADO1.REFERENCIA,
|
RECIBO_COMPENSADO1.REFERENCIA,
|
||||||
RECIBOS_PROVEEDOR.REFERENCIA,
|
RECIBOS_PROVEEDOR.REFERENCIA,
|
||||||
RECIBOS_PROVEEDOR.REFERENCIA_PROVEEDOR,
|
RECIBOS_PROVEEDOR.REFERENCIA_PROVEEDOR,
|
||||||
V_REC_PRO_SITUACION.SITUACION,
|
CASE
|
||||||
|
WHEN RECIBOS_PROVEEDOR.ID_RECIBO_COMPENSADO IS NULL
|
||||||
|
THEN V_REC_PRO_SITUACION.SITUACION
|
||||||
|
ELSE RECIBO_COMPENSADO2.SITUACION
|
||||||
|
END,
|
||||||
RECIBOS_PROVEEDOR.ID_FACTURA,
|
RECIBOS_PROVEEDOR.ID_FACTURA,
|
||||||
RECIBOS_PROVEEDOR.ID_REMESA, REMESAS_PROVEEDOR.REFERENCIA as REFERENCIA_REMESA,
|
RECIBOS_PROVEEDOR.ID_REMESA, REMESAS_PROVEEDOR.REFERENCIA as REFERENCIA_REMESA,
|
||||||
RECIBOS_PROVEEDOR.FECHA_EMISION, RECIBOS_PROVEEDOR.FECHA_VENCIMIENTO, RECIBOS_PROVEEDOR.DESCRIPCION,
|
RECIBOS_PROVEEDOR.FECHA_EMISION, RECIBOS_PROVEEDOR.FECHA_VENCIMIENTO, RECIBOS_PROVEEDOR.DESCRIPCION,
|
||||||
@ -624,7 +578,8 @@ LEFT JOIN V_REC_PRO_COMPENSADOS
|
|||||||
ON (V_REC_PRO_COMPENSADOS.ID_RECIBO = RECIBOS_PROVEEDOR.ID)
|
ON (V_REC_PRO_COMPENSADOS.ID_RECIBO = RECIBOS_PROVEEDOR.ID)
|
||||||
LEFT JOIN RECIBOS_PROVEEDOR RECIBO_COMPENSADO1
|
LEFT JOIN RECIBOS_PROVEEDOR RECIBO_COMPENSADO1
|
||||||
ON (RECIBO_COMPENSADO1.ID = RECIBOS_PROVEEDOR.ID_RECIBO_COMPENSADO)
|
ON (RECIBO_COMPENSADO1.ID = RECIBOS_PROVEEDOR.ID_RECIBO_COMPENSADO)
|
||||||
;
|
LEFT JOIN V_REC_PRO_SITUACION RECIBO_COMPENSADO2
|
||||||
|
ON (RECIBO_COMPENSADO2.ID_RECIBO = RECIBOS_PROVEEDOR.ID_RECIBO_COMPENSADO);
|
||||||
|
|
||||||
|
|
||||||
CREATE VIEW V_REC_CLI_COMPENSADOS (
|
CREATE VIEW V_REC_CLI_COMPENSADOS (
|
||||||
@ -638,43 +593,46 @@ group by ID_RECIBO_COMPENSADO;
|
|||||||
|
|
||||||
|
|
||||||
CREATE VIEW V_RECIBOS_CLIENTE(
|
CREATE VIEW V_RECIBOS_CLIENTE(
|
||||||
ID,
|
ID,
|
||||||
ID_RECIBO_COMPENSADO,
|
ID_RECIBO_COMPENSADO,
|
||||||
REFERENCIA_REC_COMPENSADO,
|
REFERENCIA_REC_COMPENSADO,
|
||||||
REFERENCIA,
|
REFERENCIA,
|
||||||
SITUACION,
|
SITUACION,
|
||||||
ID_FACTURA,
|
ID_FACTURA,
|
||||||
ID_REMESA,
|
ID_REMESA,
|
||||||
REFERENCIA_REMESA,
|
REFERENCIA_REMESA,
|
||||||
FECHA_EMISION,
|
FECHA_EMISION,
|
||||||
FECHA_VENCIMIENTO,
|
FECHA_VENCIMIENTO,
|
||||||
DESCRIPCION,
|
DESCRIPCION,
|
||||||
OBSERVACIONES,
|
OBSERVACIONES,
|
||||||
IMPORTE,
|
IMPORTE,
|
||||||
OTROS_GASTOS,
|
OTROS_GASTOS,
|
||||||
IMPORTE_TOTAL,
|
IMPORTE_TOTAL,
|
||||||
FECHA_FACTURA,
|
FECHA_FACTURA,
|
||||||
FORMA_PAGO_FACTURA,
|
FORMA_PAGO_FACTURA,
|
||||||
IMPORTE_FACTURA,
|
IMPORTE_FACTURA,
|
||||||
ID_EMPRESA,
|
ID_EMPRESA,
|
||||||
ID_CLIENTE,
|
ID_CLIENTE,
|
||||||
NOMBRE_CLIENTE,
|
NOMBRE_CLIENTE,
|
||||||
NIF_CIF_CLIENTE,
|
NIF_CIF_CLIENTE,
|
||||||
ENTIDAD_CLIENTE,
|
ENTIDAD_CLIENTE,
|
||||||
SUCURSAL_CLIENTE,
|
SUCURSAL_CLIENTE,
|
||||||
DC_CLIENTE,
|
DC_CLIENTE,
|
||||||
CUENTA_CLIENTE,
|
CUENTA_CLIENTE,
|
||||||
FECHA_ALTA,
|
FECHA_ALTA,
|
||||||
FECHA_MODIFICACION,
|
FECHA_MODIFICACION,
|
||||||
USUARIO,
|
USUARIO,
|
||||||
NUM_COPIAS,
|
NUM_COPIAS)
|
||||||
NUM_CORREOS)
|
AS
|
||||||
AS
|
|
||||||
SELECT RECIBOS_CLIENTE.ID,
|
SELECT RECIBOS_CLIENTE.ID,
|
||||||
RECIBOS_CLIENTE.ID_RECIBO_COMPENSADO,
|
RECIBOS_CLIENTE.ID_RECIBO_COMPENSADO,
|
||||||
RECIBO_COMPENSADO1.REFERENCIA,
|
RECIBO_COMPENSADO1.REFERENCIA,
|
||||||
RECIBOS_CLIENTE.REFERENCIA,
|
RECIBOS_CLIENTE.REFERENCIA,
|
||||||
V_REC_CLI_SITUACION.SITUACION,
|
CASE
|
||||||
|
WHEN RECIBOS_CLIENTE.ID_RECIBO_COMPENSADO IS NULL
|
||||||
|
THEN V_REC_CLI_SITUACION.SITUACION
|
||||||
|
ELSE RECIBO_COMPENSADO2.SITUACION
|
||||||
|
END,
|
||||||
RECIBOS_CLIENTE.ID_FACTURA,
|
RECIBOS_CLIENTE.ID_FACTURA,
|
||||||
RECIBOS_CLIENTE.ID_REMESA, REMESAS_CLIENTE.REFERENCIA as REFERENCIA_REMESA,
|
RECIBOS_CLIENTE.ID_REMESA, REMESAS_CLIENTE.REFERENCIA as REFERENCIA_REMESA,
|
||||||
RECIBOS_CLIENTE.FECHA_EMISION, RECIBOS_CLIENTE.FECHA_VENCIMIENTO, RECIBOS_CLIENTE.DESCRIPCION,
|
RECIBOS_CLIENTE.FECHA_EMISION, RECIBOS_CLIENTE.FECHA_VENCIMIENTO, RECIBOS_CLIENTE.DESCRIPCION,
|
||||||
@ -690,8 +648,7 @@ SELECT RECIBOS_CLIENTE.ID,
|
|||||||
RECIBOS_CLIENTE.FECHA_ALTA,
|
RECIBOS_CLIENTE.FECHA_ALTA,
|
||||||
RECIBOS_CLIENTE.FECHA_MODIFICACION,
|
RECIBOS_CLIENTE.FECHA_MODIFICACION,
|
||||||
RECIBOS_CLIENTE.USUARIO,
|
RECIBOS_CLIENTE.USUARIO,
|
||||||
IMPRESIONES.NUM_COPIAS,
|
IMPRESIONES.NUM_COPIAS
|
||||||
REGISTRO_CORREOS.NUM_CORREOS
|
|
||||||
|
|
||||||
FROM RECIBOS_CLIENTE
|
FROM RECIBOS_CLIENTE
|
||||||
LEFT JOIN V_REC_CLI_SITUACION
|
LEFT JOIN V_REC_CLI_SITUACION
|
||||||
@ -710,11 +667,9 @@ LEFT JOIN V_REC_CLI_COMPENSADOS
|
|||||||
ON (V_REC_CLI_COMPENSADOS.ID_RECIBO = RECIBOS_CLIENTE.ID)
|
ON (V_REC_CLI_COMPENSADOS.ID_RECIBO = RECIBOS_CLIENTE.ID)
|
||||||
LEFT JOIN RECIBOS_CLIENTE RECIBO_COMPENSADO1
|
LEFT JOIN RECIBOS_CLIENTE RECIBO_COMPENSADO1
|
||||||
ON (RECIBO_COMPENSADO1.ID = RECIBOS_CLIENTE.ID_RECIBO_COMPENSADO)
|
ON (RECIBO_COMPENSADO1.ID = RECIBOS_CLIENTE.ID_RECIBO_COMPENSADO)
|
||||||
LEFT JOIN IMPRESIONES
|
LEFT JOIN V_REC_CLI_SITUACION RECIBO_COMPENSADO2
|
||||||
ON ((IMPRESIONES.ID_TABLA = RECIBOS_CLIENTE.ID) AND (IMPRESIONES.TABLA = 'RECIBOSCLIENTE'))
|
ON (RECIBO_COMPENSADO2.ID_RECIBO = RECIBOS_CLIENTE.ID_RECIBO_COMPENSADO)
|
||||||
LEFT JOIN REGISTRO_CORREOS
|
LEFT JOIN IMPRESIONES ON ((IMPRESIONES.ID_TABLA = RECIBOS_CLIENTE.ID) AND (IMPRESIONES.TABLA = 'RECIBOSCLIENTE'));
|
||||||
ON ((REGISTRO_CORREOS.ID_TABLA = RECIBOS_CLIENTE.ID) AND (REGISTRO_CORREOS.TABLA = 'RECIBOSCLIENTE'))
|
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -838,40 +793,39 @@ GROUP BY ID_FACTURA;
|
|||||||
|
|
||||||
|
|
||||||
CREATE VIEW V_FACTURAS_PROVEEDOR(
|
CREATE VIEW V_FACTURAS_PROVEEDOR(
|
||||||
ID,
|
ID,
|
||||||
ID_EMPRESA,
|
ID_EMPRESA,
|
||||||
REFERENCIA,
|
REFERENCIA,
|
||||||
TIPO,
|
TIPO,
|
||||||
REFERENCIA_PROVEEDOR,
|
REFERENCIA_PROVEEDOR,
|
||||||
FECHA_FACTURA,
|
FECHA_FACTURA,
|
||||||
SITUACION,
|
SITUACION,
|
||||||
BASE_IMPONIBLE,
|
BASE_IMPONIBLE,
|
||||||
DESCUENTO,
|
DESCUENTO,
|
||||||
IMPORTE_DESCUENTO,
|
IMPORTE_DESCUENTO,
|
||||||
IVA,
|
IVA,
|
||||||
IMPORTE_IVA,
|
IMPORTE_IVA,
|
||||||
RE,
|
RE,
|
||||||
IMPORTE_RE,
|
IMPORTE_RE,
|
||||||
IMPORTE_TOTAL,
|
IMPORTE_TOTAL,
|
||||||
OBSERVACIONES,
|
OBSERVACIONES,
|
||||||
ID_PROVEEDOR,
|
ID_PROVEEDOR,
|
||||||
NIF_CIF,
|
NIF_CIF,
|
||||||
NOMBRE,
|
NOMBRE,
|
||||||
CALLE,
|
CALLE,
|
||||||
POBLACION,
|
POBLACION,
|
||||||
PROVINCIA,
|
PROVINCIA,
|
||||||
CODIGO_POSTAL,
|
CODIGO_POSTAL,
|
||||||
FECHA_ALTA,
|
FECHA_ALTA,
|
||||||
FECHA_MODIFICACION,
|
FECHA_MODIFICACION,
|
||||||
USUARIO,
|
USUARIO,
|
||||||
ID_FORMA_PAGO,
|
ID_FORMA_PAGO,
|
||||||
RECARGO_EQUIVALENCIA,
|
RECARGO_EQUIVALENCIA,
|
||||||
ID_TIPO_IVA,
|
ID_TIPO_IVA,
|
||||||
IMPORTE_NETO,
|
IMPORTE_NETO,
|
||||||
IMPORTE_PORTE,
|
IMPORTE_PORTE,
|
||||||
NUM_COPIAS,
|
NUM_COPIAS)
|
||||||
NUM_CORREOS)
|
AS
|
||||||
AS
|
|
||||||
SELECT FACTURAS_PROVEEDOR.ID,
|
SELECT FACTURAS_PROVEEDOR.ID,
|
||||||
FACTURAS_PROVEEDOR.ID_EMPRESA,
|
FACTURAS_PROVEEDOR.ID_EMPRESA,
|
||||||
FACTURAS_PROVEEDOR.REFERENCIA,
|
FACTURAS_PROVEEDOR.REFERENCIA,
|
||||||
@ -903,57 +857,52 @@ SELECT FACTURAS_PROVEEDOR.ID,
|
|||||||
FACTURAS_PROVEEDOR.ID_TIPO_IVA,
|
FACTURAS_PROVEEDOR.ID_TIPO_IVA,
|
||||||
FACTURAS_PROVEEDOR.IMPORTE_NETO,
|
FACTURAS_PROVEEDOR.IMPORTE_NETO,
|
||||||
FACTURAS_PROVEEDOR.IMPORTE_PORTE,
|
FACTURAS_PROVEEDOR.IMPORTE_PORTE,
|
||||||
IMPRESIONES.NUM_COPIAS,
|
IMPRESIONES.NUM_COPIAS
|
||||||
REGISTRO_CORREOS.NUM_CORREOS
|
|
||||||
FROM V_FAC_PRO_SITUACION
|
FROM V_FAC_PRO_SITUACION
|
||||||
LEFT JOIN FACTURAS_PROVEEDOR
|
LEFT JOIN FACTURAS_PROVEEDOR
|
||||||
ON (FACTURAS_PROVEEDOR.ID = V_FAC_PRO_SITUACION.ID_FACTURA)
|
ON (FACTURAS_PROVEEDOR.ID = V_FAC_PRO_SITUACION.ID_FACTURA)
|
||||||
LEFT JOIN PROVEEDORES_DATOS
|
LEFT JOIN PROVEEDORES_DATOS
|
||||||
ON (PROVEEDORES_DATOS.ID_PROVEEDOR = FACTURAS_PROVEEDOR.ID_PROVEEDOR)
|
ON (PROVEEDORES_DATOS.ID_PROVEEDOR = FACTURAS_PROVEEDOR.ID_PROVEEDOR)
|
||||||
LEFT JOIN IMPRESIONES
|
LEFT JOIN IMPRESIONES
|
||||||
ON ((IMPRESIONES.ID_TABLA = FACTURAS_PROVEEDOR.ID) AND (IMPRESIONES.TABLA = 'FACTURASPROVEEDOR'))
|
ON ((IMPRESIONES.ID_TABLA = FACTURAS_PROVEEDOR.ID) AND (IMPRESIONES.TABLA = 'FACTURASPROVEEDOR'));
|
||||||
LEFT JOIN REGISTRO_CORREOS
|
|
||||||
ON ((REGISTRO_CORREOS.ID_TABLA = FACTURAS_PROVEEDOR.ID) AND (REGISTRO_CORREOS.TABLA = 'FACTURASPROVEEDOR'))
|
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
CREATE VIEW V_FACTURAS_CLIENTE(
|
CREATE VIEW V_FACTURAS_CLIENTE(
|
||||||
ID,
|
ID,
|
||||||
ID_EMPRESA,
|
ID_EMPRESA,
|
||||||
REFERENCIA,
|
REFERENCIA,
|
||||||
TIPO,
|
TIPO,
|
||||||
ID_COMISION_LIQUIDADA,
|
ID_COMISION_LIQUIDADA,
|
||||||
FECHA_FACTURA,
|
FECHA_FACTURA,
|
||||||
SITUACION,
|
SITUACION,
|
||||||
BASE_IMPONIBLE,
|
BASE_IMPONIBLE,
|
||||||
DESCUENTO,
|
DESCUENTO,
|
||||||
IMPORTE_DESCUENTO,
|
IMPORTE_DESCUENTO,
|
||||||
DESCRIPCION_DESCUENTO,
|
IVA,
|
||||||
IVA,
|
IMPORTE_IVA,
|
||||||
IMPORTE_IVA,
|
RE,
|
||||||
RE,
|
IMPORTE_RE,
|
||||||
IMPORTE_RE,
|
IMPORTE_TOTAL,
|
||||||
IMPORTE_TOTAL,
|
OBSERVACIONES,
|
||||||
OBSERVACIONES,
|
ID_CLIENTE,
|
||||||
ID_CLIENTE,
|
NIF_CIF,
|
||||||
NIF_CIF,
|
NOMBRE,
|
||||||
NOMBRE,
|
CALLE,
|
||||||
CALLE,
|
POBLACION,
|
||||||
POBLACION,
|
PROVINCIA,
|
||||||
PROVINCIA,
|
CODIGO_POSTAL,
|
||||||
CODIGO_POSTAL,
|
FECHA_ALTA,
|
||||||
FECHA_ALTA,
|
FECHA_MODIFICACION,
|
||||||
FECHA_MODIFICACION,
|
USUARIO,
|
||||||
USUARIO,
|
ID_FORMA_PAGO,
|
||||||
ID_FORMA_PAGO,
|
RECARGO_EQUIVALENCIA,
|
||||||
RECARGO_EQUIVALENCIA,
|
ID_TIPO_IVA,
|
||||||
ID_TIPO_IVA,
|
IMPORTE_NETO,
|
||||||
IMPORTE_NETO,
|
IMPORTE_PORTE,
|
||||||
IMPORTE_PORTE,
|
ID_AGENTE,
|
||||||
ID_AGENTE,
|
REFERENCIA_COMISION,
|
||||||
REFERENCIA_COMISION,
|
NUM_COPIAS)
|
||||||
NUM_COPIAS,
|
|
||||||
NUM_CORREOS)
|
|
||||||
AS
|
AS
|
||||||
SELECT FACTURAS_CLIENTE.ID,
|
SELECT FACTURAS_CLIENTE.ID,
|
||||||
FACTURAS_CLIENTE.ID_EMPRESA,
|
FACTURAS_CLIENTE.ID_EMPRESA,
|
||||||
@ -965,7 +914,6 @@ SELECT FACTURAS_CLIENTE.ID,
|
|||||||
FACTURAS_CLIENTE.BASE_IMPONIBLE,
|
FACTURAS_CLIENTE.BASE_IMPONIBLE,
|
||||||
FACTURAS_CLIENTE.DESCUENTO,
|
FACTURAS_CLIENTE.DESCUENTO,
|
||||||
FACTURAS_CLIENTE.IMPORTE_DESCUENTO,
|
FACTURAS_CLIENTE.IMPORTE_DESCUENTO,
|
||||||
FACTURAS_CLIENTE.DESCRIPCION_DESCUENTO,
|
|
||||||
FACTURAS_CLIENTE.IVA,
|
FACTURAS_CLIENTE.IVA,
|
||||||
FACTURAS_CLIENTE.IMPORTE_IVA,
|
FACTURAS_CLIENTE.IMPORTE_IVA,
|
||||||
FACTURAS_CLIENTE.RE,
|
FACTURAS_CLIENTE.RE,
|
||||||
@ -989,8 +937,7 @@ SELECT FACTURAS_CLIENTE.ID,
|
|||||||
FACTURAS_CLIENTE.IMPORTE_PORTE,
|
FACTURAS_CLIENTE.IMPORTE_PORTE,
|
||||||
CLIENTES_DATOS.ID_AGENTE,
|
CLIENTES_DATOS.ID_AGENTE,
|
||||||
COMISIONES_LIQUIDADAS.REFERENCIA,
|
COMISIONES_LIQUIDADAS.REFERENCIA,
|
||||||
IMPRESIONES.NUM_COPIAS,
|
IMPRESIONES.NUM_COPIAS
|
||||||
REGISTRO_CORREOS.NUM_CORREOS
|
|
||||||
FROM V_FAC_CLI_SITUACION
|
FROM V_FAC_CLI_SITUACION
|
||||||
LEFT JOIN FACTURAS_CLIENTE
|
LEFT JOIN FACTURAS_CLIENTE
|
||||||
ON (FACTURAS_CLIENTE.ID = V_FAC_CLI_SITUACION.ID_FACTURA)
|
ON (FACTURAS_CLIENTE.ID = V_FAC_CLI_SITUACION.ID_FACTURA)
|
||||||
@ -999,9 +946,7 @@ SELECT FACTURAS_CLIENTE.ID,
|
|||||||
LEFT JOIN CLIENTES_DATOS
|
LEFT JOIN CLIENTES_DATOS
|
||||||
ON (CLIENTES_DATOS.ID_CLIENTE = FACTURAS_CLIENTE.ID_CLIENTE)
|
ON (CLIENTES_DATOS.ID_CLIENTE = FACTURAS_CLIENTE.ID_CLIENTE)
|
||||||
LEFT JOIN IMPRESIONES
|
LEFT JOIN IMPRESIONES
|
||||||
ON ((IMPRESIONES.ID_TABLA = FACTURAS_CLIENTE.ID) AND (IMPRESIONES.TABLA = 'FACTURASCLIENTE'))
|
ON ((IMPRESIONES.ID_TABLA = FACTURAS_CLIENTE.ID) AND (IMPRESIONES.TABLA = 'FACTURASCLIENTE'));
|
||||||
LEFT JOIN REGISTRO_CORREOS
|
|
||||||
ON ((REGISTRO_CORREOS.ID_TABLA = FACTURAS_CLIENTE.ID) AND (REGISTRO_CORREOS.TABLA = 'FACTURASCLIENTE'));
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -1106,9 +1051,7 @@ CREATE VIEW V_ALBARANES_CLIENTE(
|
|||||||
FECHA_RECEPCION,
|
FECHA_RECEPCION,
|
||||||
ID_AGENTE,
|
ID_AGENTE,
|
||||||
AGENTE,
|
AGENTE,
|
||||||
NUM_COPIAS,
|
NUM_COPIAS)
|
||||||
NUM_CORREOS,
|
|
||||||
BLOQUEADO)
|
|
||||||
AS
|
AS
|
||||||
SELECT
|
SELECT
|
||||||
ALBARANES_CLIENTE.ID,
|
ALBARANES_CLIENTE.ID,
|
||||||
@ -1156,9 +1099,7 @@ SELECT
|
|||||||
ALBARANES_CLIENTE.FECHA_RECEPCION,
|
ALBARANES_CLIENTE.FECHA_RECEPCION,
|
||||||
CLIENTES_DATOS.ID_AGENTE,
|
CLIENTES_DATOS.ID_AGENTE,
|
||||||
AGENTES.NOMBRE,
|
AGENTES.NOMBRE,
|
||||||
IMPRESIONES.NUM_COPIAS,
|
IMPRESIONES.NUM_COPIAS
|
||||||
REGISTRO_CORREOS.NUM_CORREOS,
|
|
||||||
CLIENTES_DATOS.BLOQUEADO
|
|
||||||
|
|
||||||
FROM
|
FROM
|
||||||
ALBARANES_CLIENTE
|
ALBARANES_CLIENTE
|
||||||
@ -1171,10 +1112,7 @@ FROM
|
|||||||
LEFT OUTER JOIN PEDIDOS_CLIENTE ON (PEDIDOS_CLIENTE.ID = ALBARANES_CLIENTE.ID_PEDIDO)
|
LEFT OUTER JOIN PEDIDOS_CLIENTE ON (PEDIDOS_CLIENTE.ID = ALBARANES_CLIENTE.ID_PEDIDO)
|
||||||
LEFT OUTER JOIN FACTURAS_CLIENTE ON (FACTURAS_CLIENTE.ID = ALBARANES_CLIENTE.ID_FACTURA)
|
LEFT OUTER JOIN FACTURAS_CLIENTE ON (FACTURAS_CLIENTE.ID = ALBARANES_CLIENTE.ID_FACTURA)
|
||||||
LEFT OUTER JOIN ALMACENES ON (ALMACENES.ID = ALBARANES_CLIENTE.ID_ALMACEN)
|
LEFT OUTER JOIN ALMACENES ON (ALMACENES.ID = ALBARANES_CLIENTE.ID_ALMACEN)
|
||||||
LEFT JOIN IMPRESIONES
|
LEFT JOIN IMPRESIONES ON ((IMPRESIONES.ID_TABLA = ALBARANES_CLIENTE.ID) AND (IMPRESIONES.TABLA = 'ALBARANESCLIENTE'))
|
||||||
ON ((IMPRESIONES.ID_TABLA = ALBARANES_CLIENTE.ID) AND (IMPRESIONES.TABLA = 'ALBARANESCLIENTE'))
|
|
||||||
LEFT JOIN REGISTRO_CORREOS
|
|
||||||
ON ((REGISTRO_CORREOS.ID_TABLA = ALBARANES_CLIENTE.ID) AND (REGISTRO_CORREOS.TABLA = 'ALBARANESCLIENTE'))
|
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
||||||
@ -1745,45 +1683,44 @@ group by id_pedido
|
|||||||
|
|
||||||
|
|
||||||
CREATE VIEW V_PEDIDOS_CLIENTE(
|
CREATE VIEW V_PEDIDOS_CLIENTE(
|
||||||
ID,
|
ID,
|
||||||
ID_EMPRESA,
|
ID_EMPRESA,
|
||||||
ID_CLIENTE,
|
ID_CLIENTE,
|
||||||
NOMBRE,
|
NOMBRE,
|
||||||
REFERENCIA,
|
REFERENCIA,
|
||||||
REFERENCIA_CLIENTE,
|
REFERENCIA_CLIENTE,
|
||||||
SITUACION,
|
SITUACION,
|
||||||
FECHA_PEDIDO,
|
FECHA_PEDIDO,
|
||||||
CALLE,
|
CALLE,
|
||||||
CODIGO_POSTAL,
|
CODIGO_POSTAL,
|
||||||
POBLACION,
|
POBLACION,
|
||||||
PROVINCIA,
|
PROVINCIA,
|
||||||
PERSONA_CONTACTO,
|
PERSONA_CONTACTO,
|
||||||
TELEFONO,
|
TELEFONO,
|
||||||
OBSERVACIONES,
|
OBSERVACIONES,
|
||||||
INCIDENCIAS,
|
INCIDENCIAS,
|
||||||
INCIDENCIAS_ACTIVAS,
|
INCIDENCIAS_ACTIVAS,
|
||||||
FECHA_ALTA,
|
FECHA_ALTA,
|
||||||
FECHA_MODIFICACION,
|
FECHA_MODIFICACION,
|
||||||
USUARIO,
|
USUARIO,
|
||||||
IMPORTE_NETO,
|
IMPORTE_NETO,
|
||||||
IMPORTE_PORTE,
|
IMPORTE_PORTE,
|
||||||
DESCUENTO,
|
DESCUENTO,
|
||||||
IMPORTE_DESCUENTO,
|
IMPORTE_DESCUENTO,
|
||||||
BASE_IMPONIBLE,
|
BASE_IMPONIBLE,
|
||||||
IVA,
|
IVA,
|
||||||
IMPORTE_IVA,
|
IMPORTE_IVA,
|
||||||
IMPORTE_TOTAL,
|
IMPORTE_TOTAL,
|
||||||
ID_FORMA_PAGO,
|
ID_FORMA_PAGO,
|
||||||
REF_TIENDA_WEB,
|
REF_TIENDA_WEB,
|
||||||
FECHA_PREVISTA_ENVIO,
|
FECHA_PREVISTA_ENVIO,
|
||||||
NUM_COPIAS,
|
NUM_COPIAS)
|
||||||
NUM_CORREOS)
|
AS
|
||||||
AS
|
|
||||||
SELECT
|
SELECT
|
||||||
PEDIDOS_CLIENTE.ID,
|
PEDIDOS_CLIENTE.ID,
|
||||||
PEDIDOS_CLIENTE.ID_EMPRESA,
|
PEDIDOS_CLIENTE.ID_EMPRESA,
|
||||||
PEDIDOS_CLIENTE.ID_CLIENTE,
|
PEDIDOS_CLIENTE.ID_CLIENTE,
|
||||||
CONTACTOS.NOMBRE,
|
V_CLIENTES.NOMBRE,
|
||||||
PEDIDOS_CLIENTE.REFERENCIA,
|
PEDIDOS_CLIENTE.REFERENCIA,
|
||||||
PEDIDOS_CLIENTE.REFERENCIA_CLIENTE,
|
PEDIDOS_CLIENTE.REFERENCIA_CLIENTE,
|
||||||
V_PED_CLI_SITUACION.SITUACION,
|
V_PED_CLI_SITUACION.SITUACION,
|
||||||
@ -1811,63 +1748,57 @@ SELECT
|
|||||||
PEDIDOS_CLIENTE.ID_FORMA_PAGO,
|
PEDIDOS_CLIENTE.ID_FORMA_PAGO,
|
||||||
PEDIDOS_CLIENTE.REF_TIENDA_WEB,
|
PEDIDOS_CLIENTE.REF_TIENDA_WEB,
|
||||||
PEDIDOS_CLIENTE.FECHA_PREVISTA_ENVIO,
|
PEDIDOS_CLIENTE.FECHA_PREVISTA_ENVIO,
|
||||||
IMPRESIONES.NUM_COPIAS,
|
IMPRESIONES.NUM_COPIAS
|
||||||
REGISTRO_CORREOS.NUM_CORREOS
|
|
||||||
FROM
|
FROM
|
||||||
V_PED_CLI_SITUACION
|
V_PED_CLI_SITUACION
|
||||||
INNER JOIN PEDIDOS_CLIENTE ON (PEDIDOS_CLIENTE.ID = V_PED_CLI_SITUACION.ID_PEDIDO)
|
INNER JOIN PEDIDOS_CLIENTE ON (PEDIDOS_CLIENTE.ID = V_PED_CLI_SITUACION.ID_PEDIDO)
|
||||||
INNER JOIN CONTACTOS ON (PEDIDOS_CLIENTE.ID_CLIENTE = CONTACTOS.ID)
|
INNER JOIN V_CLIENTES ON (PEDIDOS_CLIENTE.ID_CLIENTE = V_CLIENTES.ID)
|
||||||
LEFT JOIN IMPRESIONES
|
LEFT JOIN IMPRESIONES ON ((IMPRESIONES.ID_TABLA = PEDIDOS_CLIENTE.ID) AND (IMPRESIONES.TABLA = 'PEDIDOSCLIENTE'));
|
||||||
ON ((IMPRESIONES.ID_TABLA = PEDIDOS_CLIENTE.ID) AND (IMPRESIONES.TABLA = 'PEDIDOSCLIENTE'))
|
|
||||||
LEFT JOIN REGISTRO_CORREOS
|
|
||||||
ON ((REGISTRO_CORREOS.ID_TABLA = PEDIDOS_CLIENTE.ID) AND (REGISTRO_CORREOS.TABLA = 'PEDIDOSCLIENTE'))
|
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
CREATE VIEW V_PEDIDOS_PROVEEDOR(
|
CREATE VIEW V_PEDIDOS_PROVEEDOR(
|
||||||
ID,
|
ID,
|
||||||
ID_EMPRESA,
|
ID_EMPRESA,
|
||||||
ID_PROVEEDOR,
|
ID_PROVEEDOR,
|
||||||
NOMBRE,
|
NOMBRE,
|
||||||
REFERENCIA,
|
REFERENCIA,
|
||||||
SITUACION,
|
SITUACION,
|
||||||
FECHA_ENVIO,
|
FECHA_ENVIO,
|
||||||
FECHA_PEDIDO,
|
FECHA_PEDIDO,
|
||||||
FECHA_CONFIRMACION,
|
FECHA_CONFIRMACION,
|
||||||
FECHA_ENTREGA,
|
FECHA_ENTREGA,
|
||||||
ID_ALMACEN,
|
ID_ALMACEN,
|
||||||
NOMBRE_ALMACEN,
|
NOMBRE_ALMACEN,
|
||||||
OBSERVACIONES,
|
OBSERVACIONES,
|
||||||
IMPORTE_TOTAL,
|
IMPORTE_TOTAL,
|
||||||
INCIDENCIAS,
|
INCIDENCIAS,
|
||||||
INCIDENCIAS_ACTIVAS,
|
INCIDENCIAS_ACTIVAS,
|
||||||
CALLE,
|
CALLE,
|
||||||
POBLACION,
|
POBLACION,
|
||||||
PROVINCIA,
|
PROVINCIA,
|
||||||
CODIGO_POSTAL,
|
CODIGO_POSTAL,
|
||||||
PERSONA_CONTACTO,
|
PERSONA_CONTACTO,
|
||||||
TELEFONO,
|
TELEFONO,
|
||||||
FECHA_ALTA,
|
FECHA_ALTA,
|
||||||
FECHA_MODIFICACION,
|
FECHA_MODIFICACION,
|
||||||
USUARIO,
|
USUARIO,
|
||||||
ID_PEDIDO_CLIENTE,
|
ID_PEDIDO_CLIENTE,
|
||||||
REF_PED_CLIENTE,
|
REF_PED_CLIENTE,
|
||||||
IMPORTE_NETO,
|
IMPORTE_NETO,
|
||||||
IMPORTE_PORTE,
|
IMPORTE_PORTE,
|
||||||
DESCUENTO,
|
DESCUENTO,
|
||||||
IMPORTE_DESCUENTO,
|
IMPORTE_DESCUENTO,
|
||||||
BASE_IMPONIBLE,
|
BASE_IMPONIBLE,
|
||||||
IVA,
|
IVA,
|
||||||
IMPORTE_IVA,
|
IMPORTE_IVA,
|
||||||
ID_FORMA_PAGO,
|
ID_FORMA_PAGO,
|
||||||
NUM_COPIAS,
|
NUM_COPIAS)
|
||||||
NUM_CORREOS)
|
AS
|
||||||
AS
|
|
||||||
SELECT
|
SELECT
|
||||||
PEDIDOS_PROVEEDOR.ID,
|
PEDIDOS_PROVEEDOR.ID,
|
||||||
PEDIDOS_PROVEEDOR.ID_EMPRESA,
|
PEDIDOS_PROVEEDOR.ID_EMPRESA,
|
||||||
PEDIDOS_PROVEEDOR.ID_PROVEEDOR,
|
PEDIDOS_PROVEEDOR.ID_PROVEEDOR,
|
||||||
CONTACTOS.NOMBRE,
|
V_PROVEEDORES.NOMBRE,
|
||||||
PEDIDOS_PROVEEDOR.REFERENCIA,
|
PEDIDOS_PROVEEDOR.REFERENCIA,
|
||||||
V_PED_PROV_SITUACION.SITUACION,
|
V_PED_PROV_SITUACION.SITUACION,
|
||||||
PEDIDOS_PROVEEDOR.FECHA_ENVIO,
|
PEDIDOS_PROVEEDOR.FECHA_ENVIO,
|
||||||
@ -1899,19 +1830,15 @@ SELECT
|
|||||||
PEDIDOS_PROVEEDOR.IVA,
|
PEDIDOS_PROVEEDOR.IVA,
|
||||||
PEDIDOS_PROVEEDOR.IMPORTE_IVA,
|
PEDIDOS_PROVEEDOR.IMPORTE_IVA,
|
||||||
PEDIDOS_PROVEEDOR.ID_FORMA_PAGO,
|
PEDIDOS_PROVEEDOR.ID_FORMA_PAGO,
|
||||||
IMPRESIONES.NUM_COPIAS,
|
IMPRESIONES.NUM_COPIAS
|
||||||
REGISTRO_CORREOS.NUM_CORREOS
|
|
||||||
FROM
|
FROM
|
||||||
PEDIDOS_PROVEEDOR
|
PEDIDOS_PROVEEDOR
|
||||||
INNER JOIN COnTACTOS ON (PEDIDOS_PROVEEDOR.ID_PROVEEDOR = CONTACTOS.ID)
|
INNER JOIN V_PROVEEDORES ON (PEDIDOS_PROVEEDOR.ID_PROVEEDOR = V_PROVEEDORES.ID)
|
||||||
INNER JOIN V_PED_PROV_SITUACION ON (V_PED_PROV_SITUACION.ID_PEDIDO = PEDIDOS_PROVEEDOR.ID)
|
INNER JOIN V_PED_PROV_SITUACION ON (V_PED_PROV_SITUACION.ID_PEDIDO = PEDIDOS_PROVEEDOR.ID)
|
||||||
LEFT OUTER JOIN ALMACENES ON (ALMACENES.ID = PEDIDOS_PROVEEDOR.ID_ALMACEN)
|
LEFT OUTER JOIN ALMACENES ON (ALMACENES.ID = PEDIDOS_PROVEEDOR.ID_ALMACEN)
|
||||||
LEFT OUTER JOIN PEDIDOS_CLIENTE ON (PEDIDOS_CLIENTE.ID = PEDIDOS_PROVEEDOR.ID_PEDIDO_CLIENTE)
|
LEFT OUTER JOIN PEDIDOS_CLIENTE ON (PEDIDOS_CLIENTE.ID = PEDIDOS_PROVEEDOR.ID_PEDIDO_CLIENTE)
|
||||||
LEFT JOIN IMPRESIONES
|
LEFT JOIN IMPRESIONES ON ((IMPRESIONES.ID_TABLA = PEDIDOS_PROVEEDOR.ID) AND (IMPRESIONES.TABLA = 'PEDIDOSPROVEEDOR'));
|
||||||
ON ((IMPRESIONES.ID_TABLA = PEDIDOS_PROVEEDOR.ID) AND (IMPRESIONES.TABLA = 'PEDIDOSPROVEEDOR'))
|
|
||||||
LEFT JOIN REGISTRO_CORREOS
|
|
||||||
ON ((REGISTRO_CORREOS.ID_TABLA = PEDIDOS_PROVEEDOR.ID) AND (REGISTRO_CORREOS.TABLA = 'PEDIDOSPROVEEDOR'))
|
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
CREATE VIEW V_PED_CLI_ART_PEND_PEDIR_PROV(
|
CREATE VIEW V_PED_CLI_ART_PEND_PEDIR_PROV(
|
||||||
|
|||||||
@ -17,12 +17,7 @@ DECLARE EXTERNAL FUNCTION MOD
|
|||||||
RETURNS DOUBLE PRECISION BY VALUE
|
RETURNS DOUBLE PRECISION BY VALUE
|
||||||
ENTRY_POINT 'IB_UDF_mod' MODULE_NAME 'ib_udf';
|
ENTRY_POINT 'IB_UDF_mod' MODULE_NAME 'ib_udf';
|
||||||
|
|
||||||
DECLARE EXTERNAL FUNCTION SUBSTR
|
|
||||||
CSTRING(254),
|
|
||||||
SMALLINT,
|
|
||||||
SMALLINT
|
|
||||||
RETURNS CSTRING(254) FREE_IT
|
|
||||||
ENTRY_POINT 'IB_UDF_substr' MODULE_NAME 'ib_udf';
|
|
||||||
|
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
@ -66,7 +61,6 @@ VARCHAR(20);
|
|||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
CREATE GENERATOR GEN_IMPRESIONES_ID;
|
CREATE GENERATOR GEN_IMPRESIONES_ID;
|
||||||
CREATE GENERATOR GEN_REGISTRO_CORREOS_ID;
|
|
||||||
CREATE GENERATOR GEN_AGENTES_COMISIONES_ID;
|
CREATE GENERATOR GEN_AGENTES_COMISIONES_ID;
|
||||||
CREATE GENERATOR GEN_ALBARANES_CLI_DETALLES_ID;
|
CREATE GENERATOR GEN_ALBARANES_CLI_DETALLES_ID;
|
||||||
CREATE GENERATOR GEN_ALBARANES_CLI_ID;
|
CREATE GENERATOR GEN_ALBARANES_CLI_ID;
|
||||||
@ -113,17 +107,10 @@ CREATE GENERATOR GEN_USUARIOS_ID;
|
|||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
CREATE TABLE IMPRESIONES(
|
CREATE TABLE IMPRESIONES(
|
||||||
ID TIPO_ID NOT NULL,
|
ID TIPO_ID NOT NULL,
|
||||||
ID_TABLA TIPO_ID,
|
ID_TABLA TIPO_ID,
|
||||||
TABLA VARCHAR(50) COLLATE ES_ES,
|
TABLA VARCHAR(50) COLLATE ES_ES,
|
||||||
NUM_COPIAS SMALLINT
|
NUM_COPIAS SMALLINT
|
||||||
);
|
|
||||||
|
|
||||||
CREATE TABLE REGISTRO_CORREOS (
|
|
||||||
ID TIPO_ID NOT NULL /* TIPO_ID = INTEGER */,
|
|
||||||
ID_TABLA TIPO_ID /* TIPO_ID = INTEGER */,
|
|
||||||
TABLA VARCHAR(50) COLLATE ES_ES,
|
|
||||||
NUM_CORREOS SMALLINT
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
@ -310,8 +297,7 @@ CREATE TABLE CLIENTES_DATOS (
|
|||||||
ID_TIPO_IVA TIPO_ID,
|
ID_TIPO_IVA TIPO_ID,
|
||||||
ID_FORMA_PAGO TIPO_ID,
|
ID_FORMA_PAGO TIPO_ID,
|
||||||
TIENDA_WEB TIPO_BOOLEANO,
|
TIENDA_WEB TIPO_BOOLEANO,
|
||||||
RAPEL SMALLINT,
|
RAPEL SMALLINT
|
||||||
EMAIL_ADMINISTRACION VARCHAR(255)
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
@ -471,7 +457,6 @@ CREATE TABLE FACTURAS_CLIENTE (
|
|||||||
BASE_IMPONIBLE TIPO_IMPORTE,
|
BASE_IMPONIBLE TIPO_IMPORTE,
|
||||||
DESCUENTO TIPO_PORCENTAJE,
|
DESCUENTO TIPO_PORCENTAJE,
|
||||||
IMPORTE_DESCUENTO TIPO_IMPORTE,
|
IMPORTE_DESCUENTO TIPO_IMPORTE,
|
||||||
DESCRIPCION_DESCUENTO VARCHAR(255) COLLATE ES_ES,
|
|
||||||
IVA TIPO_PORCENTAJE,
|
IVA TIPO_PORCENTAJE,
|
||||||
IMPORTE_IVA TIPO_IMPORTE,
|
IMPORTE_IVA TIPO_IMPORTE,
|
||||||
RE TIPO_PORCENTAJE,
|
RE TIPO_PORCENTAJE,
|
||||||
@ -771,8 +756,7 @@ CREATE TABLE PROVEEDORES_DATOS (
|
|||||||
REGIMEN_IVA VARCHAR(255),
|
REGIMEN_IVA VARCHAR(255),
|
||||||
ID_TIPO_IVA TIPO_ID,
|
ID_TIPO_IVA TIPO_ID,
|
||||||
ID_FORMA_PAGO TIPO_ID,
|
ID_FORMA_PAGO TIPO_ID,
|
||||||
TIENDA_WEB TIPO_BOOLEANO,
|
TIENDA_WEB TIPO_BOOLEANO
|
||||||
EMAIL_ADMINISTRACION VARCHAR(255)
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
@ -1058,7 +1042,6 @@ ALTER TABLE REMESAS_PROVEEDOR ADD CONSTRAINT PK_REMESAS_PROVEEDOR PRIMARY KEY (I
|
|||||||
ALTER TABLE TIENDA_WEB ADD CONSTRAINT PK_TIENDA_WEB PRIMARY KEY (ID);
|
ALTER TABLE TIENDA_WEB ADD CONSTRAINT PK_TIENDA_WEB PRIMARY KEY (ID);
|
||||||
ALTER TABLE TIPOS_IVA ADD PRIMARY KEY (ID);
|
ALTER TABLE TIPOS_IVA ADD PRIMARY KEY (ID);
|
||||||
ALTER TABLE USUARIOS ADD CONSTRAINT PK_USUARIOS PRIMARY KEY (ID);
|
ALTER TABLE USUARIOS ADD CONSTRAINT PK_USUARIOS PRIMARY KEY (ID);
|
||||||
ALTER TABLE REGISTRO_CORREOS ADD CONSTRAINT PK_REGISTRO_CORREOS PRIMARY KEY (ID);
|
|
||||||
|
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
@ -1106,8 +1089,6 @@ ALTER TABLE TIENDA_WEB ADD CONSTRAINT FK_EMPRESAS_TIENDA_WEB FOREIGN KEY (ID_EMP
|
|||||||
|
|
||||||
CREATE INDEX IMPRESIONES_IDX1 ON IMPRESIONES(ID_TABLA);
|
CREATE INDEX IMPRESIONES_IDX1 ON IMPRESIONES(ID_TABLA);
|
||||||
CREATE INDEX IMPRESIONES_IDX2 ON IMPRESIONES(TABLA);
|
CREATE INDEX IMPRESIONES_IDX2 ON IMPRESIONES(TABLA);
|
||||||
CREATE INDEX REGISTRO_CORREOS_IDX1 ON REGISTRO_CORREOS (ID_TABLA);
|
|
||||||
CREATE INDEX REGISTRO_CORREOS_IDX2 ON REGISTRO_CORREOS (TABLA);
|
|
||||||
CREATE INDEX IDX_AGENTES_COMISIONES1 ON AGENTES_COMISIONES (ID_AGENTE);
|
CREATE INDEX IDX_AGENTES_COMISIONES1 ON AGENTES_COMISIONES (ID_AGENTE);
|
||||||
CREATE INDEX IDX_AGENTES_COMISIONES2 ON AGENTES_COMISIONES (ID_PROVEEDOR);
|
CREATE INDEX IDX_AGENTES_COMISIONES2 ON AGENTES_COMISIONES (ID_PROVEEDOR);
|
||||||
CREATE INDEX ALBARANES_CLIENTE_IDX1 ON ALBARANES_CLIENTE (TIPO);
|
CREATE INDEX ALBARANES_CLIENTE_IDX1 ON ALBARANES_CLIENTE (TIPO);
|
||||||
@ -1707,38 +1688,3 @@ begin
|
|||||||
end
|
end
|
||||||
suspend;
|
suspend;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
SET TERM ^ ;
|
|
||||||
|
|
||||||
CREATE PROCEDURE PRO_ANADIR_MARCA_ENVIO_CORREO (
|
|
||||||
tabla varchar(255),
|
|
||||||
id_tabla integer)
|
|
||||||
as
|
|
||||||
declare variable id integer;
|
|
||||||
begin
|
|
||||||
select ID
|
|
||||||
from REGISTRO_CORREOS
|
|
||||||
where ID_TABLA = :ID_TABLA
|
|
||||||
and TABLA = UPPER(:TABLA)
|
|
||||||
into :ID;
|
|
||||||
|
|
||||||
/*En el caso de que ya exista se modifica la cantidad en caso contrario se anade el elemento */
|
|
||||||
if (ID > 0) then
|
|
||||||
begin
|
|
||||||
update REGISTRO_CORREOS
|
|
||||||
set NUM_CORREOS = NUM_CORREOS + 1
|
|
||||||
where ID = :ID;
|
|
||||||
end
|
|
||||||
else
|
|
||||||
begin
|
|
||||||
insert into REGISTRO_CORREOS (ID, TABLA, ID_TABLA, NUM_CORREOS)
|
|
||||||
values (GEN_ID(GEN_REGISTRO_CORREOS_ID, 1), UPPER(:TABLA), :ID_TABLA, 1);
|
|
||||||
end
|
|
||||||
suspend;
|
|
||||||
end^
|
|
||||||
|
|
||||||
SET TERM ; ^
|
|
||||||
|
|
||||||
GRANT SELECT,INSERT,UPDATE ON REGISTRO_CORREOS TO PROCEDURE PRO_ANADIR_MARCA_ENVIO_CORREO;
|
|
||||||
|
|
||||||
GRANT EXECUTE ON PROCEDURE PRO_ANADIR_MARCA_ENVIO_CORREO TO SYSDBA;
|
|
||||||
@ -214,9 +214,9 @@
|
|||||||
<Excluded_Packages Name="C:\Documents and Settings\David\Mis documentos\Borland Studio Projects\Bpl\dxGDIPlusD10.bpl">ExpressGDI+ Library by Developer Express Inc.</Excluded_Packages>
|
<Excluded_Packages Name="C:\Documents and Settings\David\Mis documentos\Borland Studio Projects\Bpl\dxGDIPlusD10.bpl">ExpressGDI+ Library by Developer Express Inc.</Excluded_Packages>
|
||||||
</Excluded_Packages>
|
</Excluded_Packages>
|
||||||
</Delphi.Personality>
|
</Delphi.Personality>
|
||||||
<!-- EurekaLog First Line
|
<!-- EurekaLog First Line
|
||||||
[Exception Log]
|
[Exception Log]
|
||||||
EurekaLog Version=6014
|
EurekaLog Version=519
|
||||||
Activate=1
|
Activate=1
|
||||||
Activate Handle=1
|
Activate Handle=1
|
||||||
Save Log File=1
|
Save Log File=1
|
||||||
@ -530,190 +530,5 @@ Count mtSend_SuccessMsg=1
|
|||||||
mtSend_SuccessMsg0="The message was sent successfully."
|
mtSend_SuccessMsg0="The message was sent successfully."
|
||||||
Count mtSend_FailureMsg=1
|
Count mtSend_FailureMsg=1
|
||||||
mtSend_FailureMsg0="Sorry, sending the message didn't work."
|
mtSend_FailureMsg0="Sorry, sending the message didn't work."
|
||||||
ProxyURL=
|
|
||||||
ProxyUser=
|
|
||||||
ProxyPassword=
|
|
||||||
ProxyPort=8080
|
|
||||||
TrakerUser=
|
|
||||||
TrakerPassword=
|
|
||||||
TrakerAssignTo=
|
|
||||||
TrakerProject=
|
|
||||||
TrakerCategory=
|
|
||||||
TrakerTrialID=
|
|
||||||
ZipPassword=
|
|
||||||
PreBuildEvent=
|
|
||||||
PostSuccessfulBuildEvent=
|
|
||||||
PostFailureBuildEvent=
|
|
||||||
ExceptionDialogType=2
|
|
||||||
loSaveModulesAndProcessesSections=1
|
|
||||||
loSaveAssemblerAndCPUSections=1
|
|
||||||
soAppUpTime=1
|
|
||||||
soExcModuleName=1
|
|
||||||
soExcModuleVersion=1
|
|
||||||
soExcID=1
|
|
||||||
soExcCount=1
|
|
||||||
soExcStatus=1
|
|
||||||
soExcNote=1
|
|
||||||
soUserID=1
|
|
||||||
soUserName=1
|
|
||||||
soUserEmail=1
|
|
||||||
soUserPrivileges=1
|
|
||||||
soUserCompany=1
|
|
||||||
soCmpDisplayDPI=1
|
|
||||||
soCmpVideoCard=1
|
|
||||||
soCmpPrinter=1
|
|
||||||
soOSCharset=1
|
|
||||||
soCustomData=1
|
|
||||||
sndAddComputerNameInFileName=0
|
|
||||||
edoSendErrorReportChecked=1
|
|
||||||
edoShowSendErrorReportOption=1
|
|
||||||
edoShowAttachScreenshotOption=1
|
|
||||||
edoShowCustomButton=0
|
|
||||||
csoDoNotStoreProcNames=0
|
|
||||||
boHandleSafeCallExceptions=1
|
|
||||||
boCallRTLExceptionEvent=0
|
|
||||||
boCatchHandledExceptions=0
|
|
||||||
loCatchLeaks=0
|
|
||||||
loGroupsSonLeaks=1
|
|
||||||
loHideBorlandLeaks=1
|
|
||||||
loFreeAllLeaks=1
|
|
||||||
loCatchLeaksExceptions=1
|
|
||||||
cfoReduceFileSize=1
|
|
||||||
cfoCheckFileCorruption=0
|
|
||||||
Count mtErrorMsgCaption=1
|
|
||||||
mtErrorMsgCaption0="Error."
|
|
||||||
Count mtDialog_ProcessesCaption=1
|
|
||||||
mtDialog_ProcessesCaption0="Processes"
|
|
||||||
Count mtDialog_ProcessesHeader=1
|
|
||||||
mtDialog_ProcessesHeader0="Processes Information"
|
|
||||||
Count mtDialog_AsmCaption=1
|
|
||||||
mtDialog_AsmCaption0="Assembler"
|
|
||||||
Count mtDialog_AsmHeader=1
|
|
||||||
mtDialog_AsmHeader0="Assembler Information"
|
|
||||||
Count mtDialog_CustomButtonCaption=1
|
|
||||||
mtDialog_CustomButtonCaption0="%26Help"
|
|
||||||
Count mtMSDialog_ErrorMsgCaption=1
|
|
||||||
mtMSDialog_ErrorMsgCaption0="The application has encountered a problem. We are sorry for the inconvenience."
|
|
||||||
Count mtMSDialog_RestartCaption=1
|
|
||||||
mtMSDialog_RestartCaption0="Restart application."
|
|
||||||
Count mtMSDialog_TerminateCaption=1
|
|
||||||
mtMSDialog_TerminateCaption0="Terminate application."
|
|
||||||
Count mtMSDialog_PleaseCaption=1
|
|
||||||
mtMSDialog_PleaseCaption0="Please tell us about this problem."
|
|
||||||
Count mtMSDialog_DescriptionCaption=1
|
|
||||||
mtMSDialog_DescriptionCaption0="We have created an error report that you can send to us. We will treat this report as confidential and anonymous."
|
|
||||||
Count mtMSDialog_SeeDetailsCaption=1
|
|
||||||
mtMSDialog_SeeDetailsCaption0="To see what data the error report contains,"
|
|
||||||
Count mtMSDialog_SeeClickCaption=1
|
|
||||||
mtMSDialog_SeeClickCaption0="click here."
|
|
||||||
Count mtMSDialog_HowToReproduceCaption=1
|
|
||||||
mtMSDialog_HowToReproduceCaption0="What were you doing when the problem happened (optional)?"
|
|
||||||
Count mtMSDialog_EmailCaption=1
|
|
||||||
mtMSDialog_EmailCaption0="Email address (optional):"
|
|
||||||
Count mtMSDialog_SendButtonCaption=1
|
|
||||||
mtMSDialog_SendButtonCaption0="%26Send Error Report"
|
|
||||||
Count mtMSDialog_NoSendButtonCaption=1
|
|
||||||
mtMSDialog_NoSendButtonCaption0="%26Don't Send"
|
|
||||||
Count mtLog_AppUpTime=1
|
|
||||||
mtLog_AppUpTime0="Up Time"
|
|
||||||
Count mtLog_ExcModuleName=1
|
|
||||||
mtLog_ExcModuleName0="Module Name"
|
|
||||||
Count mtLog_ExcModuleVersion=1
|
|
||||||
mtLog_ExcModuleVersion0="Module Version"
|
|
||||||
Count mtLog_ExcID=1
|
|
||||||
mtLog_ExcID0="ID"
|
|
||||||
Count mtLog_ExcCount=1
|
|
||||||
mtLog_ExcCount0="Count"
|
|
||||||
Count mtLog_ExcStatus=1
|
|
||||||
mtLog_ExcStatus0="Status"
|
|
||||||
Count mtLog_ExcNote=1
|
|
||||||
mtLog_ExcNote0="Note"
|
|
||||||
Count mtLog_UserHeader=1
|
|
||||||
mtLog_UserHeader0="User"
|
|
||||||
Count mtLog_UserID=1
|
|
||||||
mtLog_UserID0="ID"
|
|
||||||
Count mtLog_UserName=1
|
|
||||||
mtLog_UserName0="Name"
|
|
||||||
Count mtLog_UserEmail=1
|
|
||||||
mtLog_UserEmail0="Email"
|
|
||||||
Count mtLog_UserCompany=1
|
|
||||||
mtLog_UserCompany0="Company"
|
|
||||||
Count mtLog_UserPrivileges=1
|
|
||||||
mtLog_UserPrivileges0="Privileges"
|
|
||||||
Count mtLog_CmpDisplayDPI=1
|
|
||||||
mtLog_CmpDisplayDPI0="Display DPI"
|
|
||||||
Count mtLog_CmpVideoCard=1
|
|
||||||
mtLog_CmpVideoCard0="Video Card"
|
|
||||||
Count mtLog_CmpPrinter=1
|
|
||||||
mtLog_CmpPrinter0="Printer"
|
|
||||||
Count mtLog_OSCharset=1
|
|
||||||
mtLog_OSCharset0="Charset"
|
|
||||||
Count mtCallStack_LeakCaption=1
|
|
||||||
mtCallStack_LeakCaption0="Memory Leak"
|
|
||||||
Count mtCallStack_LeakData=1
|
|
||||||
mtCallStack_LeakData0="Data"
|
|
||||||
Count mtCallStack_LeakType=1
|
|
||||||
mtCallStack_LeakType0="Type"
|
|
||||||
Count mtCallStack_LeakSize=1
|
|
||||||
mtCallStack_LeakSize0="Total size"
|
|
||||||
Count mtCallStack_LeakCount=1
|
|
||||||
mtCallStack_LeakCount0="Count"
|
|
||||||
Count mtSendDialog_Login=1
|
|
||||||
mtSendDialog_Login0="Login..."
|
|
||||||
Count mtSendDialog_Sent=1
|
|
||||||
mtSendDialog_Sent0="Message sent."
|
|
||||||
Count mtSendDialog_SelectProject=1
|
|
||||||
mtSendDialog_SelectProject0="Select project..."
|
|
||||||
Count mtSendDialog_Searching=1
|
|
||||||
mtSendDialog_Searching0="Searching..."
|
|
||||||
Count mtSendDialog_Modifying=1
|
|
||||||
mtSendDialog_Modifying0="Modifying..."
|
|
||||||
Count mtSendDialog_Disconnecting=1
|
|
||||||
mtSendDialog_Disconnecting0="Disconnecting..."
|
|
||||||
Count mtSendDialog_Disconnected=1
|
|
||||||
mtSendDialog_Disconnected0="Disconnected."
|
|
||||||
Count mtProcesses_ID=1
|
|
||||||
mtProcesses_ID0="ID"
|
|
||||||
Count mtProcesses_Name=1
|
|
||||||
mtProcesses_Name0="Name"
|
|
||||||
Count mtProcesses_Description=1
|
|
||||||
mtProcesses_Description0="Description"
|
|
||||||
Count mtProcesses_Version=1
|
|
||||||
mtProcesses_Version0="Version"
|
|
||||||
Count mtProcesses_Memory=1
|
|
||||||
mtProcesses_Memory0="Memory"
|
|
||||||
Count mtProcesses_Priority=1
|
|
||||||
mtProcesses_Priority0="Priority"
|
|
||||||
Count mtProcesses_Threads=1
|
|
||||||
mtProcesses_Threads0="Threads"
|
|
||||||
Count mtProcesses_Path=1
|
|
||||||
mtProcesses_Path0="Path"
|
|
||||||
Count mtSend_BugClosedMsg=2
|
|
||||||
mtSend_BugClosedMsg0="These BUG is just closed."
|
|
||||||
mtSend_BugClosedMsg1="Contact the program support to obtain an update."
|
|
||||||
Count mtSend_UnknownErrorMsg=1
|
|
||||||
mtSend_UnknownErrorMsg0="Unknown error."
|
|
||||||
Count mtSend_InvalidLoginMsg=1
|
|
||||||
mtSend_InvalidLoginMsg0="Invalid login request."
|
|
||||||
Count mtSend_InvalidSearchMsg=1
|
|
||||||
mtSend_InvalidSearchMsg0="Invalid search request."
|
|
||||||
Count mtSend_InvalidSelectionMsg=1
|
|
||||||
mtSend_InvalidSelectionMsg0="Invalid selection request."
|
|
||||||
Count mtSend_InvalidInsertMsg=1
|
|
||||||
mtSend_InvalidInsertMsg0="Invalid insert request."
|
|
||||||
Count mtSend_InvalidModifyMsg=1
|
|
||||||
mtSend_InvalidModifyMsg0="Invalid modify request."
|
|
||||||
Count mtFileCrackedMsg=2
|
|
||||||
mtFileCrackedMsg0="This file is cracked."
|
|
||||||
mtFileCrackedMsg1="The application will be closed."
|
|
||||||
Count mtException_LeakMultiFree=1
|
|
||||||
mtException_LeakMultiFree0="Multi Free memory leak."
|
|
||||||
Count mtException_LeakMemoryOverrun=1
|
|
||||||
mtException_LeakMemoryOverrun0="Memory Overrun leak."
|
|
||||||
Count mtException_AntiFreeze=1
|
|
||||||
mtException_AntiFreeze0="The application seems to be frozen."
|
|
||||||
Count mtInvalidEmailMsg=1
|
|
||||||
mtInvalidEmailMsg0="Invalid email."
|
|
||||||
TextsCollection=English
|
|
||||||
EurekaLog Last Line -->
|
EurekaLog Last Line -->
|
||||||
</BorlandProject>
|
</BorlandProject>
|
||||||
|
|||||||
@ -103,8 +103,6 @@ contains
|
|||||||
uInfoProjectUtils in 'Utiles\uInfoProjectUtils.pas',
|
uInfoProjectUtils in 'Utiles\uInfoProjectUtils.pas',
|
||||||
uInformeRegistryUtils in 'ClassRegistry\uInformeRegistryUtils.pas',
|
uInformeRegistryUtils in 'ClassRegistry\uInformeRegistryUtils.pas',
|
||||||
uStringsUtils in 'Utiles\uStringsUtils.pas',
|
uStringsUtils in 'Utiles\uStringsUtils.pas',
|
||||||
uDataModuleImpresiones in '..\Modulos\Impresiones\Data\uDataModuleImpresiones.pas' {dmImpresiones: TDataModule},
|
uDataModuleImpresiones in '..\Modulos\Impresiones\Data\uDataModuleImpresiones.pas' {dmImpresiones: TDataModule};
|
||||||
uEMailUtils in 'Utiles\uEMailUtils.pas',
|
|
||||||
uDataModuleRegistroCorreos in '..\Modulos\Registro de correos\Data\uDataModuleRegistroCorreos.pas' {dmRegistroCorreos: TDataModule};
|
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
|||||||
@ -181,9 +181,9 @@
|
|||||||
<Excluded_Packages Name="c:\archivos de programa\borland\delphi10\Bin\dcltee100.bpl">TeeChart Components</Excluded_Packages>
|
<Excluded_Packages Name="c:\archivos de programa\borland\delphi10\Bin\dcltee100.bpl">TeeChart Components</Excluded_Packages>
|
||||||
</Excluded_Packages>
|
</Excluded_Packages>
|
||||||
</Delphi.Personality>
|
</Delphi.Personality>
|
||||||
<!-- EurekaLog First Line
|
<!-- EurekaLog First Line
|
||||||
[Exception Log]
|
[Exception Log]
|
||||||
EurekaLog Version=6014
|
EurekaLog Version=519
|
||||||
Activate=1
|
Activate=1
|
||||||
Activate Handle=1
|
Activate Handle=1
|
||||||
Save Log File=1
|
Save Log File=1
|
||||||
|
|||||||
@ -82,8 +82,7 @@ requires
|
|||||||
PNG_D10,
|
PNG_D10,
|
||||||
PngComponentsD10,
|
PngComponentsD10,
|
||||||
ControllerBase,
|
ControllerBase,
|
||||||
cxIntlPrintSys3D10,
|
cxIntlPrintSys3D10;
|
||||||
dxGDIPlusD10;
|
|
||||||
|
|
||||||
contains
|
contains
|
||||||
uEditorBase in 'uEditorBase.pas' {fEditorBase: TCustomEditor},
|
uEditorBase in 'uEditorBase.pas' {fEditorBase: TCustomEditor},
|
||||||
@ -108,8 +107,6 @@ contains
|
|||||||
uEditorBasico in 'uEditorBasico.pas' {fEditorBasico},
|
uEditorBasico in 'uEditorBasico.pas' {fEditorBasico},
|
||||||
uDialogBase in 'uDialogBase.pas' {fDialogBase},
|
uDialogBase in 'uDialogBase.pas' {fDialogBase},
|
||||||
uViewFiltroBase in 'uViewFiltroBase.pas' {frViewFiltroBase: TFrame},
|
uViewFiltroBase in 'uViewFiltroBase.pas' {frViewFiltroBase: TFrame},
|
||||||
uViewGrid in 'uViewGrid.pas' {frViewGrid: TFrame},
|
uViewGrid in 'uViewGrid.pas' {frViewGrid: TFrame};
|
||||||
uDialogElegirEMail in 'uDialogElegirEMail.pas' {fDialogElegirEMail},
|
|
||||||
uDialogListaEnvioEMail in 'uDialogListaEnvioEMail.pas' {fDialogListaEnvioEMail};
|
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
|||||||
@ -1,115 +0,0 @@
|
|||||||
inherited fDialogElegirEMail: TfDialogElegirEMail
|
|
||||||
Caption = 'Elegir direcci'#243'n de correo electr'#243'nico'
|
|
||||||
ClientHeight = 258
|
|
||||||
ClientWidth = 533
|
|
||||||
OnCloseQuery = FormCloseQuery
|
|
||||||
OnCreate = FormCreate
|
|
||||||
OnDestroy = FormDestroy
|
|
||||||
ExplicitWidth = 539
|
|
||||||
ExplicitHeight = 283
|
|
||||||
PixelsPerInch = 96
|
|
||||||
TextHeight = 13
|
|
||||||
inherited pnlBotones: TFlowPanel
|
|
||||||
Top = 202
|
|
||||||
Width = 533
|
|
||||||
ExplicitTop = 202
|
|
||||||
ExplicitWidth = 533
|
|
||||||
inherited Button1: TButton
|
|
||||||
Left = 437
|
|
||||||
ExplicitLeft = 437
|
|
||||||
end
|
|
||||||
inherited Button2: TButton
|
|
||||||
Left = 347
|
|
||||||
ExplicitLeft = 347
|
|
||||||
end
|
|
||||||
end
|
|
||||||
inherited FlowPanel1: TFlowPanel
|
|
||||||
Width = 533
|
|
||||||
Height = 202
|
|
||||||
ExplicitWidth = 533
|
|
||||||
ExplicitHeight = 202
|
|
||||||
inherited lblInstruccion: TLabel
|
|
||||||
Width = 477
|
|
||||||
Caption = 'Indique la direcci'#243'n de correo electr'#243'nico del destinatario:'
|
|
||||||
Font.Style = [fsBold]
|
|
||||||
ExplicitWidth = 477
|
|
||||||
end
|
|
||||||
inherited Label2: TLabel
|
|
||||||
Width = 490
|
|
||||||
Height = 45
|
|
||||||
Caption =
|
|
||||||
'Para enviar el correo, puede usar la direcci'#243'n administrativa (s' +
|
|
||||||
'i el cliente la tiene en su ficha) o indicar otra direcci'#243'n dist' +
|
|
||||||
'inta con la segunda opci'#243'n.'
|
|
||||||
WordWrap = True
|
|
||||||
ExplicitWidth = 490
|
|
||||||
ExplicitHeight = 45
|
|
||||||
end
|
|
||||||
object Panel1: TPanel
|
|
||||||
Left = 31
|
|
||||||
Top = 115
|
|
||||||
Width = 482
|
|
||||||
Height = 80
|
|
||||||
Align = alClient
|
|
||||||
BevelOuter = bvNone
|
|
||||||
ParentColor = True
|
|
||||||
TabOrder = 0
|
|
||||||
object rbCombo: TRadioButton
|
|
||||||
Tag = 1
|
|
||||||
Left = 10
|
|
||||||
Top = 6
|
|
||||||
Width = 170
|
|
||||||
Height = 17
|
|
||||||
Caption = 'Usar la direcci'#243'n administrativa:'
|
|
||||||
TabOrder = 0
|
|
||||||
OnClick = rbComboClick
|
|
||||||
end
|
|
||||||
object cbEMail: TComboBox
|
|
||||||
Left = 211
|
|
||||||
Top = 6
|
|
||||||
Width = 262
|
|
||||||
Height = 21
|
|
||||||
Style = csDropDownList
|
|
||||||
ItemHeight = 13
|
|
||||||
TabOrder = 1
|
|
||||||
end
|
|
||||||
object rbEdit: TRadioButton
|
|
||||||
Tag = 2
|
|
||||||
Left = 10
|
|
||||||
Top = 41
|
|
||||||
Width = 202
|
|
||||||
Height = 17
|
|
||||||
Caption = 'Usar la siguiente direcci'#243'n de correo:'
|
|
||||||
TabOrder = 2
|
|
||||||
OnClick = rbEditClick
|
|
||||||
end
|
|
||||||
object edtEMail: TcxHyperLinkEdit
|
|
||||||
Left = 211
|
|
||||||
Top = 39
|
|
||||||
Properties.UsePrefix = upNever
|
|
||||||
Properties.ValidateOnEnter = True
|
|
||||||
Properties.Prefix = ''
|
|
||||||
Style.LookAndFeel.Kind = lfStandard
|
|
||||||
Style.LookAndFeel.NativeStyle = True
|
|
||||||
StyleDisabled.LookAndFeel.Kind = lfStandard
|
|
||||||
StyleDisabled.LookAndFeel.NativeStyle = True
|
|
||||||
StyleFocused.LookAndFeel.Kind = lfStandard
|
|
||||||
StyleFocused.LookAndFeel.NativeStyle = True
|
|
||||||
StyleHot.LookAndFeel.Kind = lfStandard
|
|
||||||
StyleHot.LookAndFeel.NativeStyle = True
|
|
||||||
TabOrder = 3
|
|
||||||
Width = 262
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
inherited ActionList1: TActionList
|
|
||||||
Left = 8
|
|
||||||
Top = 8
|
|
||||||
inherited actAceptar: TAction
|
|
||||||
OnExecute = actAceptarExecute
|
|
||||||
end
|
|
||||||
inherited actCancelar: TAction
|
|
||||||
OnExecute = actCancelarExecute
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
@ -1,173 +0,0 @@
|
|||||||
unit uDialogElegirEMail;
|
|
||||||
|
|
||||||
interface
|
|
||||||
|
|
||||||
uses
|
|
||||||
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
|
|
||||||
Dialogs, uDialogBase, ActnList, StdCtrls, ExtCtrls, cxControls, cxContainer,
|
|
||||||
cxEdit, cxTextEdit, cxHyperLinkEdit;
|
|
||||||
|
|
||||||
type
|
|
||||||
TfDialogElegirEMail = class(TfDialogBase)
|
|
||||||
Panel1: TPanel;
|
|
||||||
rbCombo: TRadioButton;
|
|
||||||
cbEMail: TComboBox;
|
|
||||||
rbEdit: TRadioButton;
|
|
||||||
edtEMail: TcxHyperLinkEdit;
|
|
||||||
procedure rbComboClick(Sender: TObject);
|
|
||||||
procedure rbEditClick(Sender: TObject);
|
|
||||||
procedure FormCloseQuery(Sender: TObject; var CanClose: Boolean);
|
|
||||||
procedure FormCreate(Sender: TObject);
|
|
||||||
procedure FormDestroy(Sender: TObject);
|
|
||||||
procedure FormShow(Sender: TObject);
|
|
||||||
procedure actAceptarExecute(Sender: TObject);
|
|
||||||
procedure actCancelarExecute(Sender: TObject);
|
|
||||||
private
|
|
||||||
FListaDirecciones: TStringList;
|
|
||||||
function GetEMailElegido: String;
|
|
||||||
procedure ActualizarOpciones;
|
|
||||||
public
|
|
||||||
property EMailElegido: String read GetEMailElegido;
|
|
||||||
property ListaDirecciones : TStringList read FListaDirecciones write FListaDirecciones;
|
|
||||||
end;
|
|
||||||
|
|
||||||
|
|
||||||
function ElegirEMail(const AListaEMails : TStringList; var AEMailElegido : String): Boolean;
|
|
||||||
|
|
||||||
implementation
|
|
||||||
|
|
||||||
{$R *.dfm}
|
|
||||||
|
|
||||||
uses
|
|
||||||
uStringsUtils, uDialogUtils, uEMailUtils;
|
|
||||||
|
|
||||||
function ElegirEMail(const AListaEMails : TStringList; var AEMailElegido : String): Boolean;
|
|
||||||
var
|
|
||||||
AEditor : TfDialogElegirEMail;
|
|
||||||
begin
|
|
||||||
AEditor := TfDialogElegirEMail.Create(NIL);
|
|
||||||
try
|
|
||||||
AEditor.ListaDirecciones := AListaEMails;
|
|
||||||
Result := (AEditor.ShowModal = mrOk);
|
|
||||||
if Result then
|
|
||||||
AEMailElegido := AEditor.EMailElegido;
|
|
||||||
finally
|
|
||||||
AEditor.Release;
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
|
|
||||||
|
|
||||||
{ TfDialogElegirEMail }
|
|
||||||
|
|
||||||
procedure TfDialogElegirEMail.actAceptarExecute(Sender: TObject);
|
|
||||||
begin
|
|
||||||
inherited;
|
|
||||||
ModalResult := mrOk
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TfDialogElegirEMail.actCancelarExecute(Sender: TObject);
|
|
||||||
begin
|
|
||||||
inherited;
|
|
||||||
ModalResult := mrCancel;
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TfDialogElegirEMail.ActualizarOpciones;
|
|
||||||
begin
|
|
||||||
if rbEdit.Checked then
|
|
||||||
begin
|
|
||||||
edtEMail.Enabled := True;
|
|
||||||
rbCombo.Checked := False;
|
|
||||||
cbEMail.Enabled := False;
|
|
||||||
end
|
|
||||||
else begin
|
|
||||||
if rbCombo.Enabled then
|
|
||||||
begin
|
|
||||||
cbEMail.Enabled := True;
|
|
||||||
edtEMail.Enabled := False;
|
|
||||||
rbEdit.Checked := False;
|
|
||||||
end
|
|
||||||
else
|
|
||||||
rbEdit.Checked := True;
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TfDialogElegirEMail.FormCloseQuery(Sender: TObject;
|
|
||||||
var CanClose: Boolean);
|
|
||||||
begin
|
|
||||||
inherited;
|
|
||||||
|
|
||||||
if (ModalResult = mrOk) and rbEdit.Checked then
|
|
||||||
begin
|
|
||||||
if not EsCadenaVacia(edtEMail.Text) then
|
|
||||||
begin
|
|
||||||
if not EsDireccionEMailValida(edtEMail.Text) then
|
|
||||||
begin
|
|
||||||
ShowErrorMessage('La dirección de correo electrónica no es válida', 'Para poder continuar, compruebe que ha indicado una dirección de correo y que está bien escrita.');
|
|
||||||
edtEMail.SetFocus;
|
|
||||||
CanClose := False;
|
|
||||||
end;
|
|
||||||
end
|
|
||||||
else begin
|
|
||||||
ShowErrorMessage('Debe indicar una dirección de correo electrónico.', 'Para poder continuar debe elegir o indicar una dirección de correo electrónico.');
|
|
||||||
edtEMail.SetFocus;
|
|
||||||
CanClose := False;
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TfDialogElegirEMail.FormCreate(Sender: TObject);
|
|
||||||
begin
|
|
||||||
inherited;
|
|
||||||
//FListaDirecciones := TStringList.Create; <- La lista se da mediante la propiedad.
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TfDialogElegirEMail.FormDestroy(Sender: TObject);
|
|
||||||
begin
|
|
||||||
inherited;
|
|
||||||
//FreeAndNIL(FListaDirecciones) <- La lista se da mediante la propiedad.
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TfDialogElegirEMail.FormShow(Sender: TObject);
|
|
||||||
begin
|
|
||||||
inherited;
|
|
||||||
cbEMail.Items.Clear;
|
|
||||||
cbEMail.Items := FListaDirecciones;
|
|
||||||
|
|
||||||
if cbEMail.Items.Count = 0 then
|
|
||||||
begin
|
|
||||||
cbEmail.Items.Add('Sin dirección administrativa');
|
|
||||||
cbEMail.ItemIndex := 0;
|
|
||||||
rbCombo.Enabled := False;
|
|
||||||
rbEdit.Checked;
|
|
||||||
end
|
|
||||||
else begin
|
|
||||||
cbEMail.ItemIndex := 0;
|
|
||||||
rbCombo.Checked := True;
|
|
||||||
end;
|
|
||||||
|
|
||||||
ActualizarOpciones;
|
|
||||||
end;
|
|
||||||
|
|
||||||
function TfDialogElegirEMail.GetEMailElegido: String;
|
|
||||||
begin
|
|
||||||
if rbCombo.Checked then
|
|
||||||
Result := cbEMail.Text
|
|
||||||
else
|
|
||||||
Result := edtEMail.Text;
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TfDialogElegirEMail.rbComboClick(Sender: TObject);
|
|
||||||
begin
|
|
||||||
inherited;
|
|
||||||
rbEdit.Checked := False;
|
|
||||||
ActualizarOpciones;
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TfDialogElegirEMail.rbEditClick(Sender: TObject);
|
|
||||||
begin
|
|
||||||
inherited;
|
|
||||||
rbEdit.Checked := True;
|
|
||||||
ActualizarOpciones;
|
|
||||||
end;
|
|
||||||
|
|
||||||
end.
|
|
||||||
@ -1,29 +0,0 @@
|
|||||||
inherited fDialogListaEnvioEMail: TfDialogListaEnvioEMail
|
|
||||||
Caption = 'fDialogListaEnvioEMail'
|
|
||||||
PixelsPerInch = 96
|
|
||||||
TextHeight = 13
|
|
||||||
inherited FlowPanel1: TFlowPanel
|
|
||||||
object ListView1: TListView
|
|
||||||
Left = 31
|
|
||||||
Top = 151
|
|
||||||
Width = 571
|
|
||||||
Height = 197
|
|
||||||
Align = alClient
|
|
||||||
Columns = <
|
|
||||||
item
|
|
||||||
Caption = 'Documento'
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Caption = 'Destinatario'
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Caption = 'Direcci'#243'n E-Mail'
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Caption = 'Estado'
|
|
||||||
end>
|
|
||||||
TabOrder = 0
|
|
||||||
ViewStyle = vsReport
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
@ -1,22 +0,0 @@
|
|||||||
unit uDialogListaEnvioEMail;
|
|
||||||
|
|
||||||
interface
|
|
||||||
|
|
||||||
uses
|
|
||||||
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
|
|
||||||
Dialogs, uDialogBase, ActnList, StdCtrls, ExtCtrls, ComCtrls;
|
|
||||||
|
|
||||||
type
|
|
||||||
TfDialogListaEnvioEMail = class(TfDialogBase)
|
|
||||||
ListView1: TListView;
|
|
||||||
private
|
|
||||||
{ Private declarations }
|
|
||||||
public
|
|
||||||
{ Public declarations }
|
|
||||||
end;
|
|
||||||
|
|
||||||
implementation
|
|
||||||
|
|
||||||
{$R *.dfm}
|
|
||||||
|
|
||||||
end.
|
|
||||||
@ -4,7 +4,6 @@ inherited fEditorGridBase: TfEditorGridBase
|
|||||||
Caption = 'fEditorGridBase'
|
Caption = 'fEditorGridBase'
|
||||||
ClientHeight = 444
|
ClientHeight = 444
|
||||||
ClientWidth = 543
|
ClientWidth = 543
|
||||||
OnDestroy = CustomEditorDestroy
|
|
||||||
ExplicitWidth = 551
|
ExplicitWidth = 551
|
||||||
ExplicitHeight = 471
|
ExplicitHeight = 471
|
||||||
PixelsPerInch = 96
|
PixelsPerInch = 96
|
||||||
@ -85,16 +84,6 @@ inherited fEditorGridBase: TfEditorGridBase
|
|||||||
ShowHint = True
|
ShowHint = True
|
||||||
ShrinkMode = tbsmNone
|
ShrinkMode = tbsmNone
|
||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
object lblAno: TTBXLabelItem
|
|
||||||
Caption = 'A'#241'o:'
|
|
||||||
Visible = False
|
|
||||||
end
|
|
||||||
object cbxListaAnos: TTBXComboBoxItem
|
|
||||||
Visible = False
|
|
||||||
end
|
|
||||||
object sepAno: TTBXSeparatorItem
|
|
||||||
Visible = False
|
|
||||||
end
|
|
||||||
object TBXLabelItem1: TTBXLabelItem
|
object TBXLabelItem1: TTBXLabelItem
|
||||||
Caption = 'Filtrar:'
|
Caption = 'Filtrar:'
|
||||||
end
|
end
|
||||||
@ -1526,6 +1515,8 @@ inherited fEditorGridBase: TfEditorGridBase
|
|||||||
Bitmap = {}
|
Bitmap = {}
|
||||||
end
|
end
|
||||||
inherited JvFormStorage: TJvFormStorage
|
inherited JvFormStorage: TJvFormStorage
|
||||||
|
OnSavePlacement = JvFormStorageSavePlacement
|
||||||
|
OnRestorePlacement = JvFormStorageRestorePlacement
|
||||||
Left = 400
|
Left = 400
|
||||||
Top = 160
|
Top = 160
|
||||||
end
|
end
|
||||||
|
|||||||
@ -57,13 +57,12 @@ type
|
|||||||
actFiltrar: TAction;
|
actFiltrar: TAction;
|
||||||
TBXItem37: TTBXItem;
|
TBXItem37: TTBXItem;
|
||||||
TBXTMain2: TTBXToolbar;
|
TBXTMain2: TTBXToolbar;
|
||||||
lblAno: TTBXLabelItem;
|
|
||||||
cbxListaAnos: TTBXComboBoxItem;
|
|
||||||
sepAno: TTBXSeparatorItem;
|
|
||||||
procedure tbxEditFiltroChange(Sender: TObject; const Text: String);
|
procedure tbxEditFiltroChange(Sender: TObject; const Text: String);
|
||||||
procedure FormShow(Sender: TObject); override;
|
procedure FormShow(Sender: TObject); override;
|
||||||
procedure actQuitarFiltroExecute(Sender: TObject);
|
procedure actQuitarFiltroExecute(Sender: TObject);
|
||||||
procedure actDuplicarUpdate(Sender: TObject);
|
procedure actDuplicarUpdate(Sender: TObject);
|
||||||
|
procedure JvFormStorageSavePlacement(Sender: TObject);
|
||||||
|
procedure JvFormStorageRestorePlacement(Sender: TObject);
|
||||||
procedure actModificarUpdate(Sender: TObject);
|
procedure actModificarUpdate(Sender: TObject);
|
||||||
procedure actEliminarUpdate(Sender: TObject);
|
procedure actEliminarUpdate(Sender: TObject);
|
||||||
procedure actNuevoUpdate(Sender: TObject);
|
procedure actNuevoUpdate(Sender: TObject);
|
||||||
@ -71,17 +70,10 @@ type
|
|||||||
procedure actRefrescarUpdate(Sender: TObject);
|
procedure actRefrescarUpdate(Sender: TObject);
|
||||||
procedure actFiltrarExecute(Sender: TObject);
|
procedure actFiltrarExecute(Sender: TObject);
|
||||||
procedure actFiltrarUpdate(Sender: TObject);
|
procedure actFiltrarUpdate(Sender: TObject);
|
||||||
procedure CustomEditorDestroy(Sender: TObject);
|
|
||||||
protected
|
protected
|
||||||
FListaAnos: TStringList;
|
|
||||||
FViewGrid : IViewGridBase;
|
FViewGrid : IViewGridBase;
|
||||||
FWhereDataTable: WideString;
|
|
||||||
function GetListaAnos: TStringList;
|
|
||||||
procedure SetListaAnos(const Value: TStringList);
|
|
||||||
procedure SetViewGrid(const Value : IViewGridBase); virtual;
|
procedure SetViewGrid(const Value : IViewGridBase); virtual;
|
||||||
function GetViewGrid: IViewGridBase;
|
function GetViewGrid: IViewGridBase;
|
||||||
function GetWhereDataTable: String;
|
|
||||||
procedure SetWhereDataTable(const Value: String);
|
|
||||||
procedure SetMultiSelect (AValue : Boolean);
|
procedure SetMultiSelect (AValue : Boolean);
|
||||||
function GetMultiSelect : Boolean;
|
function GetMultiSelect : Boolean;
|
||||||
|
|
||||||
@ -89,12 +81,8 @@ type
|
|||||||
procedure ConfPaginaInterno; override;
|
procedure ConfPaginaInterno; override;
|
||||||
procedure ImprimirInterno; override;
|
procedure ImprimirInterno; override;
|
||||||
procedure RefrescarInterno; override;
|
procedure RefrescarInterno; override;
|
||||||
function GetModified: Boolean; override;
|
|
||||||
|
|
||||||
public
|
public
|
||||||
property ListaAnos: TStringList read GetListaAnos write SetListaAnos;
|
|
||||||
property ViewGrid: IViewGridBase read GetViewGrid write SetViewGrid;
|
property ViewGrid: IViewGridBase read GetViewGrid write SetViewGrid;
|
||||||
property WhereDataTable: String read GetWhereDataTable write SetWhereDataTable;
|
|
||||||
property MultiSelect : Boolean read GetMultiSelect write SetMultiSelect;
|
property MultiSelect : Boolean read GetMultiSelect write SetMultiSelect;
|
||||||
|
|
||||||
constructor Create(AOwner : TComponent); override;
|
constructor Create(AOwner : TComponent); override;
|
||||||
@ -114,22 +102,9 @@ uses
|
|||||||
destructor TfEditorGridBase.Destroy;
|
destructor TfEditorGridBase.Destroy;
|
||||||
begin
|
begin
|
||||||
FViewGrid := NIL;
|
FViewGrid := NIL;
|
||||||
FWhereDataTable := '';
|
|
||||||
if Assigned(FListaAnos) then
|
|
||||||
FlistaAnos.Free;
|
|
||||||
inherited;
|
inherited;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TfEditorGridBase.GetListaAnos: TStringList;
|
|
||||||
begin
|
|
||||||
Result := FListaAnos;
|
|
||||||
end;
|
|
||||||
|
|
||||||
function TfEditorGridBase.GetModified: Boolean;
|
|
||||||
begin
|
|
||||||
Result := False;
|
|
||||||
end;
|
|
||||||
|
|
||||||
function TfEditorGridBase.GetMultiSelect: Boolean;
|
function TfEditorGridBase.GetMultiSelect: Boolean;
|
||||||
begin
|
begin
|
||||||
Result := False;
|
Result := False;
|
||||||
@ -142,53 +117,12 @@ begin
|
|||||||
Result := FViewGrid;
|
Result := FViewGrid;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TfEditorGridBase.GetWhereDataTable: String;
|
|
||||||
begin
|
|
||||||
Result := FWhereDataTable;
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TfEditorGridBase.ImprimirInterno;
|
procedure TfEditorGridBase.ImprimirInterno;
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
ViewGrid.Print;
|
ViewGrid.Print;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TfEditorGridBase.SetListaAnos(const Value: TStringList);
|
|
||||||
var
|
|
||||||
i: Integer;
|
|
||||||
AStringAnterior: String;
|
|
||||||
|
|
||||||
begin
|
|
||||||
AStringAnterior := '';
|
|
||||||
if Assigned(FListaAnos) then
|
|
||||||
begin
|
|
||||||
AStringAnterior := FListaAnos.ValueFromIndex[cbxListaAnos.ItemIndex];
|
|
||||||
FListaAnos.Free;
|
|
||||||
end;
|
|
||||||
|
|
||||||
//Se asigna el nuevo TStringList
|
|
||||||
FListaAnos := Value;
|
|
||||||
|
|
||||||
if Assigned(FListaAnos) then
|
|
||||||
begin
|
|
||||||
cbxListaAnos.Strings.BeginUpdate;
|
|
||||||
cbxListaAnos.Strings.Clear;
|
|
||||||
for i := 0 to FListaAnos.Count - 1 do
|
|
||||||
cbxListaAnos.Strings.Append(FListaAnos.Names[i]);
|
|
||||||
|
|
||||||
//Se posiciona en el elemento que habia anteriormente
|
|
||||||
if Length(AStringAnterior) > 0 then
|
|
||||||
begin
|
|
||||||
if FListaAnos.IndexOfName(AStringAnterior) <> -1 then
|
|
||||||
cbxListaAnos.ItemIndex := FListaAnos.IndexOfName(AStringAnterior)
|
|
||||||
else
|
|
||||||
cbxListaAnos.ItemIndex := 0;
|
|
||||||
end;
|
|
||||||
|
|
||||||
cbxListaAnos.Strings.EndUpdate;
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TfEditorGridBase.SetMultiSelect(AValue: Boolean);
|
procedure TfEditorGridBase.SetMultiSelect(AValue: Boolean);
|
||||||
begin
|
begin
|
||||||
if Assigned(ViewGrid) then
|
if Assigned(ViewGrid) then
|
||||||
@ -205,11 +139,6 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TfEditorGridBase.SetWhereDataTable(const Value: String);
|
|
||||||
begin
|
|
||||||
FWhereDataTable := Value;
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TfEditorGridBase.tbxEditFiltroChange(Sender: TObject; const Text: String);
|
procedure TfEditorGridBase.tbxEditFiltroChange(Sender: TObject; const Text: String);
|
||||||
begin
|
begin
|
||||||
if Assigned(ViewGrid) then
|
if Assigned(ViewGrid) then
|
||||||
@ -224,14 +153,10 @@ end;
|
|||||||
procedure TfEditorGridBase.FormShow(Sender: TObject);
|
procedure TfEditorGridBase.FormShow(Sender: TObject);
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
|
|
||||||
if Assigned(ViewGrid) then
|
if Assigned(ViewGrid) then
|
||||||
begin
|
|
||||||
ViewGrid.RestoreFromIniFile;
|
|
||||||
ViewGrid.ShowEmbedded(Self);
|
ViewGrid.ShowEmbedded(Self);
|
||||||
end;
|
|
||||||
|
|
||||||
cbxListaAnos.ItemIndex := 0;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TfEditorGridBase.actEliminarUpdate(Sender: TObject);
|
procedure TfEditorGridBase.actEliminarUpdate(Sender: TObject);
|
||||||
@ -321,14 +246,6 @@ constructor TfEditorGridBase.Create(AOwner: TComponent);
|
|||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
actModificar.ShortCut := ShortCut(VK_RETURN, []);
|
actModificar.ShortCut := ShortCut(VK_RETURN, []);
|
||||||
FWhereDataTable := '';
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TfEditorGridBase.CustomEditorDestroy(Sender: TObject);
|
|
||||||
begin
|
|
||||||
inherited;
|
|
||||||
if Assigned(ViewGrid) then
|
|
||||||
ViewGrid.StoreToIniFile;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TfEditorGridBase.actAnchoAutoExecute(Sender: TObject);
|
procedure TfEditorGridBase.actAnchoAutoExecute(Sender: TObject);
|
||||||
@ -354,6 +271,13 @@ begin
|
|||||||
(Sender as TAction).Enabled := (ViewGrid.NumSeleccionados = 1);
|
(Sender as TAction).Enabled := (ViewGrid.NumSeleccionados = 1);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TfEditorGridBase.JvFormStorageSavePlacement(Sender: TObject);
|
||||||
|
begin
|
||||||
|
inherited;
|
||||||
|
if Assigned(ViewGrid) then
|
||||||
|
ViewGrid.StoreToRegistry(JvAppRegistryStorage.Root);
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TfEditorGridBase.PrevisualizarInterno;
|
procedure TfEditorGridBase.PrevisualizarInterno;
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
@ -380,6 +304,13 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TfEditorGridBase.JvFormStorageRestorePlacement(Sender: TObject);
|
||||||
|
begin
|
||||||
|
inherited;
|
||||||
|
if Assigned(ViewGrid) then
|
||||||
|
ViewGrid.RestoreFromRegistry(JvAppRegistryStorage.Root);
|
||||||
|
end;
|
||||||
|
|
||||||
initialization
|
initialization
|
||||||
RegisterClass(TfEditorGridBase);
|
RegisterClass(TfEditorGridBase);
|
||||||
|
|
||||||
|
|||||||
@ -1,9 +1,10 @@
|
|||||||
inherited frViewFiltroBase: TfrViewFiltroBase
|
object frViewFiltroBase: TfrViewFiltroBase
|
||||||
|
Left = 0
|
||||||
|
Top = 0
|
||||||
Width = 565
|
Width = 565
|
||||||
Height = 102
|
Height = 102
|
||||||
|
TabOrder = 0
|
||||||
Visible = False
|
Visible = False
|
||||||
ExplicitWidth = 565
|
|
||||||
ExplicitHeight = 102
|
|
||||||
object TBXDockablePanel1: TTBXDockablePanel
|
object TBXDockablePanel1: TTBXDockablePanel
|
||||||
Left = 0
|
Left = 0
|
||||||
Top = 0
|
Top = 0
|
||||||
@ -19,6 +20,8 @@ inherited frViewFiltroBase: TfrViewFiltroBase
|
|||||||
ShowCaptionWhenDocked = False
|
ShowCaptionWhenDocked = False
|
||||||
SupportedDocks = [dkStandardDock, dkMultiDock]
|
SupportedDocks = [dkStandardDock, dkMultiDock]
|
||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
|
ExplicitWidth = 128
|
||||||
|
ExplicitHeight = 98
|
||||||
object dxLayoutControl1: TdxLayoutControl
|
object dxLayoutControl1: TdxLayoutControl
|
||||||
Left = 0
|
Left = 0
|
||||||
Top = 0
|
Top = 0
|
||||||
@ -27,8 +30,8 @@ inherited frViewFiltroBase: TfrViewFiltroBase
|
|||||||
Align = alTop
|
Align = alTop
|
||||||
ParentBackground = True
|
ParentBackground = True
|
||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
TabStop = False
|
|
||||||
AutoContentSizes = [acsWidth, acsHeight]
|
AutoContentSizes = [acsWidth, acsHeight]
|
||||||
|
ExplicitWidth = 128
|
||||||
object txtFiltroTodo: TcxTextEdit
|
object txtFiltroTodo: TcxTextEdit
|
||||||
Left = 87
|
Left = 87
|
||||||
Top = 10
|
Top = 10
|
||||||
@ -126,6 +129,7 @@ inherited frViewFiltroBase: TfrViewFiltroBase
|
|||||||
Margins.Left = 10
|
Margins.Left = 10
|
||||||
Align = alTop
|
Align = alTop
|
||||||
TabOrder = 1
|
TabOrder = 1
|
||||||
|
ExplicitWidth = 128
|
||||||
object tbxBotones: TTBXToolbar
|
object tbxBotones: TTBXToolbar
|
||||||
Left = 10
|
Left = 10
|
||||||
Top = 0
|
Top = 0
|
||||||
@ -143,6 +147,7 @@ inherited frViewFiltroBase: TfrViewFiltroBase
|
|||||||
ParentShowHint = False
|
ParentShowHint = False
|
||||||
ShowHint = True
|
ShowHint = True
|
||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
|
ExplicitWidth = 118
|
||||||
object TBXItem2: TTBXItem
|
object TBXItem2: TTBXItem
|
||||||
Action = actQuitarFiltro
|
Action = actQuitarFiltro
|
||||||
DisplayMode = nbdmImageAndText
|
DisplayMode = nbdmImageAndText
|
||||||
|
|||||||
@ -7,10 +7,10 @@ uses
|
|||||||
Dialogs, cxMaskEdit, cxDropDownEdit, cxCalendar, dxLayoutControl,
|
Dialogs, cxMaskEdit, cxDropDownEdit, cxCalendar, dxLayoutControl,
|
||||||
cxContainer, cxEdit, cxTextEdit, dxLayoutLookAndFeels, cxControls,
|
cxContainer, cxEdit, cxTextEdit, dxLayoutLookAndFeels, cxControls,
|
||||||
StdCtrls, Buttons, cxRadioGroup, TBXDkPanels, TB2ExtItems, TBXExtItems,
|
StdCtrls, Buttons, cxRadioGroup, TBXDkPanels, TB2ExtItems, TBXExtItems,
|
||||||
TBX, TB2Item, TB2Dock, TB2Toolbar, ActnList, ImgList, PngImageList, uViewBase;
|
TBX, TB2Item, TB2Dock, TB2Toolbar, ActnList, ImgList, PngImageList;
|
||||||
|
|
||||||
type
|
type
|
||||||
IViewFiltroBase = interface (IViewBase)
|
IViewFiltroBase = interface
|
||||||
['{0D0EA630-BF93-4BA1-93C2-FD5A5B0CBEED}']
|
['{0D0EA630-BF93-4BA1-93C2-FD5A5B0CBEED}']
|
||||||
function GetFiltrosChange: TNotifyEvent;
|
function GetFiltrosChange: TNotifyEvent;
|
||||||
procedure SetFiltrosChange(const Value: TNotifyEvent);
|
procedure SetFiltrosChange(const Value: TNotifyEvent);
|
||||||
@ -25,7 +25,7 @@ type
|
|||||||
property Texto: String read GetTexto write SetTexto;
|
property Texto: String read GetTexto write SetTexto;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
TfrViewFiltroBase = class(TfrViewBase , IViewFiltroBase)
|
TfrViewFiltroBase = class(TFrame, IViewFiltroBase)
|
||||||
dxLayoutControl1Group_Root: TdxLayoutGroup;
|
dxLayoutControl1Group_Root: TdxLayoutGroup;
|
||||||
dxLayoutControl1: TdxLayoutControl;
|
dxLayoutControl1: TdxLayoutControl;
|
||||||
dxLayoutLookAndFeelList1: TdxLayoutLookAndFeelList;
|
dxLayoutLookAndFeelList1: TdxLayoutLookAndFeelList;
|
||||||
@ -59,7 +59,6 @@ type
|
|||||||
protected
|
protected
|
||||||
procedure LimpiarCampos; virtual;
|
procedure LimpiarCampos; virtual;
|
||||||
function ValidarCampos: Boolean; virtual;
|
function ValidarCampos: Boolean; virtual;
|
||||||
function GetModified: Boolean; override;
|
|
||||||
|
|
||||||
public
|
public
|
||||||
property OnFiltrosChange: TNotifyEvent read GetFiltrosChange write SetFiltrosChange;
|
property OnFiltrosChange: TNotifyEvent read GetFiltrosChange write SetFiltrosChange;
|
||||||
@ -79,11 +78,6 @@ begin
|
|||||||
Result := FOnFiltrosChange;
|
Result := FOnFiltrosChange;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TfrViewFiltroBase.GetModified: Boolean;
|
|
||||||
begin
|
|
||||||
Result := False;
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TfrViewFiltroBase.SetFiltrosChange(const Value: TNotifyEvent);
|
procedure TfrViewFiltroBase.SetFiltrosChange(const Value: TNotifyEvent);
|
||||||
begin
|
begin
|
||||||
FOnFiltrosChange := Value;
|
FOnFiltrosChange := Value;
|
||||||
|
|||||||
@ -61,15 +61,8 @@ inherited frViewGrid: TfrViewGrid
|
|||||||
Width = 554
|
Width = 554
|
||||||
Height = 102
|
Height = 102
|
||||||
Align = alTop
|
Align = alTop
|
||||||
Font.Charset = DEFAULT_CHARSET
|
|
||||||
Font.Color = clWindowText
|
|
||||||
Font.Height = -11
|
|
||||||
Font.Name = 'Tahoma'
|
|
||||||
Font.Style = []
|
|
||||||
ParentFont = False
|
|
||||||
TabOrder = 1
|
TabOrder = 1
|
||||||
Visible = False
|
Visible = False
|
||||||
ReadOnly = False
|
|
||||||
ExplicitWidth = 554
|
ExplicitWidth = 554
|
||||||
inherited TBXDockablePanel1: TTBXDockablePanel
|
inherited TBXDockablePanel1: TTBXDockablePanel
|
||||||
ExplicitWidth = 554
|
ExplicitWidth = 554
|
||||||
@ -162,7 +155,7 @@ inherited frViewGrid: TfrViewGrid
|
|||||||
PrinterPage.ScaleMode = smFit
|
PrinterPage.ScaleMode = smFit
|
||||||
PrinterPage._dxMeasurementUnits_ = 0
|
PrinterPage._dxMeasurementUnits_ = 0
|
||||||
PrinterPage._dxLastMU_ = 2
|
PrinterPage._dxLastMU_ = 2
|
||||||
ReportDocument.CreationDate = 40259.515870208340000000
|
ReportDocument.CreationDate = 39615.820451203710000000
|
||||||
StyleManager = dxPrintStyleManager1
|
StyleManager = dxPrintStyleManager1
|
||||||
OptionsCards.Shadow.Depth = 0
|
OptionsCards.Shadow.Depth = 0
|
||||||
OptionsExpanding.ExpandGroupRows = True
|
OptionsExpanding.ExpandGroupRows = True
|
||||||
|
|||||||
@ -21,7 +21,7 @@ uses
|
|||||||
dxPSEdgePatterns, dxPSCore, dxPScxCommon, dxPScxGrid6Lnk, dxPrnDlg,
|
dxPSEdgePatterns, dxPSCore, dxPScxCommon, dxPScxGrid6Lnk, dxPrnDlg,
|
||||||
cxIntlPrintSys3, dxPSPrvwAdv, uViewGridBase, cxGridCustomPopupMenu,
|
cxIntlPrintSys3, dxPSPrvwAdv, uViewGridBase, cxGridCustomPopupMenu,
|
||||||
cxGridPopupMenu, uViewFiltroBase, ComCtrls, cxPC, ImgList, PngImageList,
|
cxGridPopupMenu, uViewFiltroBase, ComCtrls, cxPC, ImgList, PngImageList,
|
||||||
TB2Item, TBX, TB2Dock, TB2Toolbar, TBXDkPanels, dxPgsDlg, uCustomView;
|
TB2Item, TBX, TB2Dock, TB2Toolbar, TBXDkPanels, dxPgsDlg;
|
||||||
|
|
||||||
type
|
type
|
||||||
IViewGrid = interface(IViewGridBase)
|
IViewGrid = interface(IViewGridBase)
|
||||||
|
|||||||
@ -36,7 +36,6 @@ type
|
|||||||
|
|
||||||
procedure SaveGridStatus;
|
procedure SaveGridStatus;
|
||||||
procedure RestoreGridStatus;
|
procedure RestoreGridStatus;
|
||||||
|
|
||||||
procedure DesactivarGrid;
|
procedure DesactivarGrid;
|
||||||
procedure ActivarGrid;
|
procedure ActivarGrid;
|
||||||
|
|
||||||
@ -52,9 +51,6 @@ type
|
|||||||
procedure StoreToRegistry (const Path : String);
|
procedure StoreToRegistry (const Path : String);
|
||||||
procedure RestoreFromRegistry (const Path : String);
|
procedure RestoreFromRegistry (const Path : String);
|
||||||
|
|
||||||
procedure RestoreFromIniFile;
|
|
||||||
procedure StoreToIniFile;
|
|
||||||
|
|
||||||
procedure SetDblClick(const Value: TNotifyEvent);
|
procedure SetDblClick(const Value: TNotifyEvent);
|
||||||
function GetDblClick: TNotifyEvent;
|
function GetDblClick: TNotifyEvent;
|
||||||
property OnDblClick: TNotifyEvent read GetDblClick write SetDblClick;
|
property OnDblClick: TNotifyEvent read GetDblClick write SetDblClick;
|
||||||
@ -99,7 +95,6 @@ type
|
|||||||
FFilter: string;
|
FFilter: string;
|
||||||
FOnFilterChanged : TNotifyEvent;
|
FOnFilterChanged : TNotifyEvent;
|
||||||
FGridStatus : TcxGridStatus;
|
FGridStatus : TcxGridStatus;
|
||||||
procedure BestFitAllColumns;
|
|
||||||
protected
|
protected
|
||||||
FOnDblClick: TNotifyEvent;
|
FOnDblClick: TNotifyEvent;
|
||||||
FPopupMenu: TPopupMenu;
|
FPopupMenu: TPopupMenu;
|
||||||
@ -152,9 +147,6 @@ type
|
|||||||
procedure StoreToRegistry (const Path : String); virtual;
|
procedure StoreToRegistry (const Path : String); virtual;
|
||||||
procedure RestoreFromRegistry (const Path : String); virtual;
|
procedure RestoreFromRegistry (const Path : String); virtual;
|
||||||
|
|
||||||
procedure RestoreFromIniFile;
|
|
||||||
procedure StoreToIniFile;
|
|
||||||
|
|
||||||
function Locate(const AItemIndex: Integer; const AValue: String;
|
function Locate(const AItemIndex: Integer; const AValue: String;
|
||||||
const APartialCompare: Boolean = False) : Boolean;
|
const APartialCompare: Boolean = False) : Boolean;
|
||||||
|
|
||||||
@ -178,8 +170,7 @@ procedure Register;
|
|||||||
implementation
|
implementation
|
||||||
|
|
||||||
uses
|
uses
|
||||||
CCReg, uDataModuleBase, uDBSelectionListUtils, cxGridDBDataDefinitions,
|
CCReg, uDataModuleBase, uDBSelectionListUtils;
|
||||||
uSistemaFunc, SHFolder;
|
|
||||||
|
|
||||||
{$R *.dfm}
|
{$R *.dfm}
|
||||||
|
|
||||||
@ -196,46 +187,12 @@ begin
|
|||||||
_FocusedView.EndUpdate;
|
_FocusedView.EndUpdate;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TfrViewGridBase.BestFitAllColumns;
|
|
||||||
var
|
|
||||||
i : Integer ;
|
|
||||||
|
|
||||||
begin
|
|
||||||
ShowHourglassCursor;
|
|
||||||
_FocusedView.BeginUpdate;
|
|
||||||
try
|
|
||||||
for i := 0 to _FocusedView.VisibleColumnCount-1 do
|
|
||||||
begin
|
|
||||||
_FocusedView.VisibleColumns[i].ApplyBestFit;
|
|
||||||
ShowMessage(Format('Width=%d, Min=%d, Max=%d', [_FocusedView.VisibleColumns[i].Width, _FocusedView.VisibleColumns[i].MinWidth, _FocusedView.VisibleColumns[i].BestFitMaxWidth]));
|
|
||||||
if (_FocusedView.VisibleColumns[i].Width < _FocusedView.VisibleColumns[i].MinWidth) then
|
|
||||||
_FocusedView.VisibleColumns[i].Width := _FocusedView.VisibleColumns[i].MinWidth
|
|
||||||
else
|
|
||||||
if (_FocusedView.VisibleColumns[i].BestFitMaxWidth > 0) and
|
|
||||||
(_FocusedView.VisibleColumns[i].Width > _FocusedView.VisibleColumns[i].BestFitMaxWidth) then
|
|
||||||
_FocusedView.VisibleColumns[i].Width := _FocusedView.VisibleColumns[i].BestFitMaxWidth;
|
|
||||||
end;
|
|
||||||
finally
|
|
||||||
_FocusedView.EndUpdate;
|
|
||||||
HideHourglassCursor;
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TfrViewGridBase.AjustarAncho;
|
procedure TfrViewGridBase.AjustarAncho;
|
||||||
begin
|
begin
|
||||||
if Assigned(_FocusedView) then
|
if Assigned(_FocusedView) then
|
||||||
begin
|
_FocusedView.ApplyBestFit;
|
||||||
ShowHourglassCursor;
|
|
||||||
try
|
|
||||||
_FocusedView.ApplyBestFit(nil, True, False);
|
|
||||||
//BestFitAllColumns;
|
|
||||||
finally
|
|
||||||
HideHourglassCursor;
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
procedure TfrViewGridBase.AnadirOtrosFiltros;
|
procedure TfrViewGridBase.AnadirOtrosFiltros;
|
||||||
begin
|
begin
|
||||||
//
|
//
|
||||||
@ -353,24 +310,6 @@ begin
|
|||||||
Filter := ViewFiltros.Texto;
|
Filter := ViewFiltros.Texto;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TfrViewGridBase.RestoreFromIniFile;
|
|
||||||
var
|
|
||||||
AIniFile : String;
|
|
||||||
begin
|
|
||||||
if Assigned(_FocusedView) then
|
|
||||||
begin
|
|
||||||
|
|
||||||
AIniFile := GetSpecialFolderPath(CSIDL_COMMON_APPDATA); //[All Users]\Application Data
|
|
||||||
AIniFile := AIniFile + PathDelim + 'Rodax Software' + PathDelim + 'FactuGES' + PathDelim;
|
|
||||||
|
|
||||||
if not DirectoryExists(AIniFile) then
|
|
||||||
if not ForceDirectories(AIniFile) then
|
|
||||||
raise EInOutError.Create(Format('No se ha podido crear el directorio %s', [AIniFile]));
|
|
||||||
|
|
||||||
_FocusedView.RestoreFromIniFile(AIniFile + 'grid.xml', True, False, []);
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TfrViewGridBase.RestoreFromRegistry(const Path : String);
|
procedure TfrViewGridBase.RestoreFromRegistry(const Path : String);
|
||||||
begin
|
begin
|
||||||
if Assigned(_FocusedView) then
|
if Assigned(_FocusedView) then
|
||||||
@ -458,24 +397,6 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TfrViewGridBase.StoreToIniFile;
|
|
||||||
var
|
|
||||||
AIniFile : String;
|
|
||||||
begin
|
|
||||||
if Assigned(_FocusedView) then
|
|
||||||
begin
|
|
||||||
|
|
||||||
AIniFile := GetSpecialFolderPath(CSIDL_COMMON_APPDATA); //[All Users]\Application Data
|
|
||||||
AIniFile := AIniFile + PathDelim + 'Rodax Software' + PathDelim + 'FactuGES' + PathDelim;
|
|
||||||
|
|
||||||
if not DirectoryExists(AIniFile) then
|
|
||||||
if not ForceDirectories(AIniFile) then
|
|
||||||
raise EInOutError.Create(Format('No se ha podido crear el directorio %s', [AIniFile]));
|
|
||||||
|
|
||||||
_FocusedView.StoreToIniFile(AIniFile + 'grid.xml', False, []);
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TfrViewGridBase.StoreToRegistry(const Path : String);
|
procedure TfrViewGridBase.StoreToRegistry(const Path : String);
|
||||||
begin
|
begin
|
||||||
if Assigned(_FocusedView) then
|
if Assigned(_FocusedView) then
|
||||||
|
|||||||
@ -1,457 +0,0 @@
|
|||||||
unit uEMailUtils;
|
|
||||||
|
|
||||||
interface
|
|
||||||
|
|
||||||
uses
|
|
||||||
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs;
|
|
||||||
|
|
||||||
type
|
|
||||||
{ Introducing a new Type of Event to get the Errorcode }
|
|
||||||
TMapiErrEvent = procedure(Sender: TObject; ErrCode: Integer) of object;
|
|
||||||
|
|
||||||
TMapiControl = class(TComponent)
|
|
||||||
constructor Create(AOwner: TComponent); override;
|
|
||||||
destructor Destroy; override;
|
|
||||||
private
|
|
||||||
{ Private-Deklarationen }
|
|
||||||
FSubject: string;
|
|
||||||
FMailtext: string;
|
|
||||||
FFromName: string;
|
|
||||||
FFromAdress: string;
|
|
||||||
FTOAdr: TStrings;
|
|
||||||
FCCAdr: TStrings;
|
|
||||||
FBCCAdr: TStrings;
|
|
||||||
FAttachedFileName: TStrings;
|
|
||||||
FDisplayFileName: TStrings;
|
|
||||||
FShowDialog: Boolean;
|
|
||||||
FUseAppHandle: Boolean;
|
|
||||||
{ Error Events: }
|
|
||||||
{ FOnUserAbort: TNotifyEvent;
|
|
||||||
FOnMapiError: TMapiErrEvent;
|
|
||||||
FOnSuccess: TNotifyEvent;}
|
|
||||||
{ +> Changes by Eugene Mayevski [mailto:Mayevski@eldos.org]}
|
|
||||||
procedure SetToAddr(newValue: TStrings);
|
|
||||||
procedure SetCCAddr(newValue: TStrings);
|
|
||||||
procedure SetBCCAddr(newValue: TStrings);
|
|
||||||
procedure SetAttachedFileName(newValue: TStrings);
|
|
||||||
{ +< Changes }
|
|
||||||
protected
|
|
||||||
{ Protected-Deklarationen }
|
|
||||||
public
|
|
||||||
{ Public-Deklarationen }
|
|
||||||
ApplicationHandle: THandle;
|
|
||||||
function Sendmail: Boolean;
|
|
||||||
procedure Reset;
|
|
||||||
published
|
|
||||||
{ Published-Deklarationen }
|
|
||||||
property Subject: string read FSubject write FSubject;
|
|
||||||
property Body: string read FMailText write FMailText;
|
|
||||||
property FromName: string read FFromName write FFromName;
|
|
||||||
property FromAdress: string read FFromAdress write FFromAdress;
|
|
||||||
property Recipients: TStrings read FTOAdr write SetTOAddr;
|
|
||||||
property CopyTo: TStrings read FCCAdr write SetCCAddr;
|
|
||||||
property BlindCopyTo: TStrings read FBCCAdr write SetBCCAddr;
|
|
||||||
property AttachedFiles: TStrings read FAttachedFileName write SetAttachedFileName;
|
|
||||||
property DisplayFileName: TStrings read FDisplayFileName;
|
|
||||||
property ShowDialog: Boolean read FShowDialog write FShowDialog;
|
|
||||||
property UseAppHandle: Boolean read FUseAppHandle write FUseAppHandle;
|
|
||||||
|
|
||||||
{ Events: }
|
|
||||||
{property OnUserAbort: TNotifyEvent read FOnUserAbort write FOnUserAbort;
|
|
||||||
property OnMapiError: TMapiErrEvent read FOnMapiError write FOnMapiError;
|
|
||||||
property OnSuccess: TNotifyEvent read FOnSuccess write FOnSuccess;}
|
|
||||||
end;
|
|
||||||
|
|
||||||
function EsDireccionEMailValida(const Value: string): boolean;
|
|
||||||
function EnviarEMailMAPI(const AAsunto, ACuerpo, AFicheroAdjunto, ANombreRemitente, AEMailRemitente,
|
|
||||||
ANombreDestinatario, AEMailDestinatario: String; AEnviarDirectamente: Boolean = false) : boolean;
|
|
||||||
|
|
||||||
implementation
|
|
||||||
|
|
||||||
uses
|
|
||||||
MAPI;
|
|
||||||
|
|
||||||
function EsDireccionEMailValida(const Value: string): boolean;
|
|
||||||
function CheckAllowed(const s: string): boolean;
|
|
||||||
var
|
|
||||||
i: integer;
|
|
||||||
begin
|
|
||||||
Result:= false;
|
|
||||||
for i:= 1 to Length(s) do
|
|
||||||
begin
|
|
||||||
// illegal char in s -> no valid address
|
|
||||||
if not (s[i] in ['a'..'z','A'..'Z','0'..'9','_','-','.']) then
|
|
||||||
Exit;
|
|
||||||
end;
|
|
||||||
Result:= true;
|
|
||||||
end;
|
|
||||||
var
|
|
||||||
i: integer;
|
|
||||||
namePart, serverPart: string;
|
|
||||||
begin // of IsValidEmail
|
|
||||||
Result:= false;
|
|
||||||
i:= Pos('@', Value);
|
|
||||||
if (i = 0) or (pos('..', Value) > 0) then
|
|
||||||
Exit;
|
|
||||||
namePart:= Copy(Value, 1, i - 1);
|
|
||||||
serverPart:= Copy(Value, i + 1, Length(Value));
|
|
||||||
if (Length(namePart) = 0) // @ or name missing
|
|
||||||
or ((Length(serverPart) < 4)) // name or server missing or
|
|
||||||
then Exit; // too short
|
|
||||||
i:= Pos('.', serverPart);
|
|
||||||
// must have dot and at least 3 places from end
|
|
||||||
if (i < 2) or (i > (Length(serverPart) - 2)) then
|
|
||||||
Exit;
|
|
||||||
Result:= CheckAllowed(namePart) and CheckAllowed(serverPart);
|
|
||||||
end;
|
|
||||||
|
|
||||||
function EnviarEMailMAPI(const AAsunto, ACuerpo, AFicheroAdjunto, ANombreRemitente, AEMailRemitente,
|
|
||||||
ANombreDestinatario, AEMailDestinatario: String; AEnviarDirectamente: Boolean = false) : boolean;
|
|
||||||
var
|
|
||||||
AMAPIControl : TMapiControl;
|
|
||||||
begin
|
|
||||||
AMAPIControl := TMapiControl.Create(NIL);
|
|
||||||
try
|
|
||||||
with AMAPIControl do
|
|
||||||
begin
|
|
||||||
Subject := AAsunto;
|
|
||||||
Body := ACuerpo;
|
|
||||||
FromName := ANombreRemitente;
|
|
||||||
FromAdress := AEMailRemitente;
|
|
||||||
|
|
||||||
Recipients.Add(AEMailDestinatario);
|
|
||||||
AttachedFiles.Add(AFicheroAdjunto);
|
|
||||||
|
|
||||||
ShowDialog := not AEnviarDirectamente;
|
|
||||||
end;
|
|
||||||
Result := AMAPIControl.Sendmail;
|
|
||||||
finally
|
|
||||||
FreeANDNIL(AMAPIControl);
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
|
|
||||||
|
|
||||||
{ TMapiControl }
|
|
||||||
|
|
||||||
constructor TMapiControl.Create(AOwner: TComponent);
|
|
||||||
begin
|
|
||||||
inherited Create(AOwner);
|
|
||||||
{FOnUserAbort := nil;
|
|
||||||
FOnMapiError := nil;
|
|
||||||
FOnSuccess := nil;}
|
|
||||||
FSubject := '';
|
|
||||||
FMailtext := '';
|
|
||||||
FFromName := '';
|
|
||||||
FFromAdress := '';
|
|
||||||
FTOAdr := TStringList.Create;
|
|
||||||
FCCAdr := TStringList.Create;
|
|
||||||
FBCCAdr := TStringList.Create;
|
|
||||||
FAttachedFileName := TStringList.Create;
|
|
||||||
FDisplayFileName := TStringList.Create;
|
|
||||||
FShowDialog := False;
|
|
||||||
ApplicationHandle := Application.Handle;
|
|
||||||
end;
|
|
||||||
|
|
||||||
{ +> Changes by Eugene Mayevski [mailto:Mayevski@eldos.org]}
|
|
||||||
|
|
||||||
procedure TMapiControl.SetToAddr(newValue: TStrings);
|
|
||||||
begin
|
|
||||||
FToAdr.Assign(newValue);
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TMapiControl.SetCCAddr(newValue: TStrings);
|
|
||||||
begin
|
|
||||||
FCCAdr.Assign(newValue);
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TMapiControl.SetBCCAddr(newValue: TStrings);
|
|
||||||
begin
|
|
||||||
FBCCAdr.Assign(newValue);
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TMapiControl.SetAttachedFileName(newValue: TStrings);
|
|
||||||
begin
|
|
||||||
FAttachedFileName.Assign(newValue);
|
|
||||||
end;
|
|
||||||
{ +< Changes }
|
|
||||||
|
|
||||||
destructor TMapiControl.Destroy;
|
|
||||||
begin
|
|
||||||
FTOAdr.Free;
|
|
||||||
FCCAdr.Free;
|
|
||||||
FBCCAdr.Free;
|
|
||||||
FAttachedFileName.Free;
|
|
||||||
FDisplayFileName.Free;
|
|
||||||
inherited destroy;
|
|
||||||
end;
|
|
||||||
|
|
||||||
{ Reset the fields for re-use}
|
|
||||||
|
|
||||||
procedure TMapiControl.Reset;
|
|
||||||
begin
|
|
||||||
FSubject := '';
|
|
||||||
FMailtext := '';
|
|
||||||
FFromName := '';
|
|
||||||
FFromAdress := '';
|
|
||||||
FTOAdr.Clear;
|
|
||||||
FCCAdr.Clear;
|
|
||||||
FBCCAdr.Clear;
|
|
||||||
FAttachedFileName.Clear;
|
|
||||||
FDisplayFileName.Clear;
|
|
||||||
end;
|
|
||||||
|
|
||||||
{ Send the Mail via the API, this procedure composes and sends
|
|
||||||
the Email }
|
|
||||||
|
|
||||||
function TMapiControl.Sendmail: Boolean;
|
|
||||||
var
|
|
||||||
MapiMessage: TMapiMessage;
|
|
||||||
MError: Cardinal;
|
|
||||||
Sender: TMapiRecipDesc;
|
|
||||||
PRecip, Recipients: PMapiRecipDesc;
|
|
||||||
PFiles, Attachments: PMapiFileDesc;
|
|
||||||
i: Integer;
|
|
||||||
AppHandle: THandle;
|
|
||||||
begin
|
|
||||||
{ First we store the Application Handle, if not
|
|
||||||
the Component might fail to send the Email or
|
|
||||||
your calling Program gets locked up. }
|
|
||||||
AppHandle := Application.Handle;
|
|
||||||
|
|
||||||
{ Initialize the Attachment Pointer, to keep Delphi quiet }
|
|
||||||
PFiles := nil;
|
|
||||||
|
|
||||||
{ We need all recipients to alloc the memory }
|
|
||||||
MapiMessage.nRecipCount := FTOAdr.Count + FCCAdr.Count + FBCCAdr.Count;
|
|
||||||
GetMem(Recipients, MapiMessage.nRecipCount * sizeof(TMapiRecipDesc));
|
|
||||||
|
|
||||||
try
|
|
||||||
with MapiMessage do
|
|
||||||
begin
|
|
||||||
ulReserved := 0;
|
|
||||||
{ Setting the Subject: }
|
|
||||||
lpszSubject := PChar(Self.FSubject);
|
|
||||||
|
|
||||||
{ ... the Body: }
|
|
||||||
lpszNoteText := PChar(FMailText);
|
|
||||||
|
|
||||||
lpszMessageType := nil;
|
|
||||||
lpszDateReceived := nil;
|
|
||||||
lpszConversationID := nil;
|
|
||||||
flFlags := 0;
|
|
||||||
|
|
||||||
{ and the sender: (MAPI_ORIG) }
|
|
||||||
Sender.ulReserved := 0;
|
|
||||||
Sender.ulRecipClass := MAPI_ORIG;
|
|
||||||
Sender.lpszName := PChar(FromName);
|
|
||||||
Sender.lpszAddress := PChar(FromAdress);
|
|
||||||
Sender.ulEIDSize := 0;
|
|
||||||
Sender.lpEntryID := nil;
|
|
||||||
lpOriginator := @Sender;
|
|
||||||
|
|
||||||
PRecip := Recipients;
|
|
||||||
|
|
||||||
{ We have multiple recipients: (MAPI_TO)
|
|
||||||
and setting up each: }
|
|
||||||
if nRecipCount > 0 then
|
|
||||||
begin
|
|
||||||
for i := 1 to FTOAdr.Count do
|
|
||||||
begin
|
|
||||||
PRecip^.ulReserved := 0;
|
|
||||||
PRecip^.ulRecipClass := MAPI_TO;
|
|
||||||
{ lpszName should carry the Name like in the
|
|
||||||
contacts or the adress book, I will take the
|
|
||||||
email adress to keep it short: }
|
|
||||||
PRecip^.lpszName := PChar(FTOAdr.Strings[i - 1]);
|
|
||||||
{ If you use this component with Outlook97 or 2000
|
|
||||||
and not some of Express versions you will have to set
|
|
||||||
'SMTP:' in front of each (email-) adress. Otherwise
|
|
||||||
Outlook/Mapi will try to handle the Email on itself.
|
|
||||||
Sounds strange, just erease the 'SMTP:', compile, compose
|
|
||||||
a mail and take a look at the resulting email adresses
|
|
||||||
(right click).
|
|
||||||
}
|
|
||||||
{ +> Changes by Andreas Hoerig [mailto:andreas.hoerig@sillner.com] }
|
|
||||||
PRecip^.lpszAddress := StrNew(PChar('SMTP:' + FTOAdr.Strings[i - 1]));
|
|
||||||
{ +< Changes }
|
|
||||||
PRecip^.ulEIDSize := 0;
|
|
||||||
PRecip^.lpEntryID := nil;
|
|
||||||
Inc(PRecip);
|
|
||||||
end;
|
|
||||||
|
|
||||||
{ Same with the carbon copy recipients: (CC, MAPI_CC) }
|
|
||||||
for i := 1 to FCCAdr.Count do
|
|
||||||
begin
|
|
||||||
PRecip^.ulReserved := 0;
|
|
||||||
PRecip^.ulRecipClass := MAPI_CC;
|
|
||||||
PRecip^.lpszName := PChar(FCCAdr.Strings[i - 1]);
|
|
||||||
{ +> Changes by Andreas Hoerig [mailto:andreas.hoerig@sillner.com] }
|
|
||||||
PRecip^.lpszAddress := StrNew(PChar('SMTP:' + FCCAdr.Strings[i - 1]));
|
|
||||||
{ +< Changes }
|
|
||||||
PRecip^.ulEIDSize := 0;
|
|
||||||
PRecip^.lpEntryID := nil;
|
|
||||||
Inc(PRecip);
|
|
||||||
end;
|
|
||||||
|
|
||||||
{ ... and the blind copy recipients: (BCC, MAPI_BCC) }
|
|
||||||
for i := 1 to FBCCAdr.Count do
|
|
||||||
begin
|
|
||||||
PRecip^.ulReserved := 0;
|
|
||||||
PRecip^.ulRecipClass := MAPI_BCC;
|
|
||||||
PRecip^.lpszName := PChar(FBCCAdr.Strings[i - 1]);
|
|
||||||
{ +> Changes by Andreas Hoerig [mailto:andreas.hoerig@sillner.com] }
|
|
||||||
PRecip^.lpszAddress := StrNew(PChar('SMTP:' + FBCCAdr.Strings[i - 1]));
|
|
||||||
{ +< Changes }
|
|
||||||
PRecip^.ulEIDSize := 0;
|
|
||||||
PRecip^.lpEntryID := nil;
|
|
||||||
Inc(PRecip);
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
lpRecips := Recipients;
|
|
||||||
|
|
||||||
{ Now we process the attachments: }
|
|
||||||
nFileCount := FAttachedFileName.Count;
|
|
||||||
if nFileCount > 0 then
|
|
||||||
begin
|
|
||||||
GetMem(Attachments, nFileCount * sizeof(TMapiFileDesc));
|
|
||||||
PFiles := Attachments;
|
|
||||||
|
|
||||||
{ Fist setting up the display names (without path): }
|
|
||||||
FDisplayFileName.Clear;
|
|
||||||
for i := 1 to FAttachedFileName.Count do
|
|
||||||
FDisplayFileName.Add(ExtractFileName(FAttachedFileName[i - 1]));
|
|
||||||
|
|
||||||
if nFileCount > 0 then
|
|
||||||
begin
|
|
||||||
{ Now we pass the attached file (their paths) to the
|
|
||||||
structure: }
|
|
||||||
for i := 1 to FAttachedFileName.Count do
|
|
||||||
begin
|
|
||||||
{ Setting the complete Path }
|
|
||||||
Attachments^.lpszPathName := PChar(FAttachedFileName.Strings[i - 1]);
|
|
||||||
{ ... and the displayname: }
|
|
||||||
Attachments^.lpszFileName := PChar(FDisplayFileName.Strings[i - 1]);
|
|
||||||
Attachments^.ulReserved := 0;
|
|
||||||
Attachments^.flFlags := 0;
|
|
||||||
{ Position has to be -1, please see the WinApi Help
|
|
||||||
for details. }
|
|
||||||
Attachments^.nPosition := Cardinal(-1);
|
|
||||||
Attachments^.lpFileType := nil;
|
|
||||||
Inc(Attachments);
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
lpFiles := PFiles;
|
|
||||||
end
|
|
||||||
else
|
|
||||||
begin
|
|
||||||
nFileCount := 0;
|
|
||||||
lpFiles := nil;
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
|
|
||||||
{ Send the Mail, silent or verbose:
|
|
||||||
Verbose means in Express a Mail is composed and shown as setup.
|
|
||||||
In non-Express versions we show the Login-Dialog for a new
|
|
||||||
session and after we have choosen the profile to use, the
|
|
||||||
composed email is shown before sending
|
|
||||||
|
|
||||||
Silent does currently not work for non-Express version. We have
|
|
||||||
no Session, no Login Dialog so the system refuses to compose a
|
|
||||||
new email. In Express Versions the email is sent in the
|
|
||||||
background.
|
|
||||||
|
|
||||||
Please Note: It seems that your success on the delivery depends
|
|
||||||
on a combination of MAPI-Flags (MAPI_DIALOG, MAPI_LOGON_UI, ...)
|
|
||||||
and your used OS and Office Version. I am currently using
|
|
||||||
Win2K SP1 and Office 2K SP2 with no problems at all.
|
|
||||||
If you experience problems on another versions, please try
|
|
||||||
a different combination of flags for each purpose (Dialog or not).
|
|
||||||
I would be glad to setup a table with working flags on
|
|
||||||
each OS/Office combination, just drop me a line.
|
|
||||||
|
|
||||||
Possible combinations are also (with Dialog):
|
|
||||||
1. MAPI_DIALOG or MAPI_LOGON_UI MAPI_NEW_SESSION or MAPI_USE_DEFAULT
|
|
||||||
2. MAPI_SIMPLE_DEFAULT
|
|
||||||
|
|
||||||
See MAPI.PAS or MAPI.H (SDK) for more...
|
|
||||||
}
|
|
||||||
if FShowDialog then
|
|
||||||
MError := MapiSendMail(0, AppHandle, MapiMessage, MAPI_DIALOG or MAPI_LOGON_UI or MAPI_NEW_SESSION, 0)
|
|
||||||
else
|
|
||||||
MError := MapiSendMail(0, AppHandle, MapiMessage, 0, 0);
|
|
||||||
|
|
||||||
{ Now we have to process the error messages. There are some
|
|
||||||
defined in the MAPI unit please take a look at the unit to get
|
|
||||||
familiar with it.
|
|
||||||
I decided to handle USER_ABORT and SUCCESS as special and leave
|
|
||||||
the rest to fire the "new" error event defined at the top (as
|
|
||||||
generic error)
|
|
||||||
|
|
||||||
Not treated as special (constants from mapi.pas):
|
|
||||||
|
|
||||||
MAPI_E_FAILURE = 2;
|
|
||||||
MAPI_E_LOGON_FAILURE = 3;
|
|
||||||
MAPI_E_LOGIN_FAILURE = MAPI_E_LOGON_FAILURE;
|
|
||||||
MAPI_E_DISK_FULL = 4;
|
|
||||||
MAPI_E_INSUFFICIENT_MEMORY = 5;
|
|
||||||
MAPI_E_ACCESS_DENIED = 6;
|
|
||||||
MAPI_E_TOO_MANY_SESSIONS = 8;
|
|
||||||
MAPI_E_TOO_MANY_FILES = 9;
|
|
||||||
MAPI_E_TOO_MANY_RECIPIENTS = 10;
|
|
||||||
MAPI_E_ATTACHMENT_NOT_FOUND = 11;
|
|
||||||
MAPI_E_ATTACHMENT_OPEN_FAILURE = 12;
|
|
||||||
MAPI_E_ATTACHMENT_WRITE_FAILURE = 13;
|
|
||||||
MAPI_E_UNKNOWN_RECIPIENT = 14;
|
|
||||||
MAPI_E_BAD_RECIPTYPE = 15;
|
|
||||||
MAPI_E_NO_MESSAGES = 16;
|
|
||||||
MAPI_E_INVALID_MESSAGE = 17;
|
|
||||||
MAPI_E_TEXT_TOO_LARGE = 18;
|
|
||||||
MAPI_E_INVALID_SESSION = 19;
|
|
||||||
MAPI_E_TYPE_NOT_SUPPORTED = 20;
|
|
||||||
MAPI_E_AMBIGUOUS_RECIPIENT = 21;
|
|
||||||
MAPI_E_AMBIG_RECIP = MAPI_E_AMBIGUOUS_RECIPIENT;
|
|
||||||
MAPI_E_MESSAGE_IN_USE = 22;
|
|
||||||
MAPI_E_NETWORK_FAILURE = 23;
|
|
||||||
MAPI_E_INVALID_EDITFIELDS = 24;
|
|
||||||
MAPI_E_INVALID_RECIPS = 25;
|
|
||||||
MAPI_E_NOT_SUPPORTED = 26;
|
|
||||||
}
|
|
||||||
|
|
||||||
{ case MError of
|
|
||||||
MAPI_E_USER_ABORT:
|
|
||||||
begin
|
|
||||||
if Assigned(FOnUserAbort) then
|
|
||||||
FOnUserAbort(Self);
|
|
||||||
end;
|
|
||||||
SUCCESS_SUCCESS:
|
|
||||||
begin
|
|
||||||
if Assigned(FOnSuccess) then
|
|
||||||
FOnSuccess(Self);
|
|
||||||
end
|
|
||||||
else
|
|
||||||
begin
|
|
||||||
if Assigned(FOnMapiError) then
|
|
||||||
FOnMapiError(Self, MError);
|
|
||||||
end;
|
|
||||||
end;}
|
|
||||||
Result := (MError = 0);
|
|
||||||
|
|
||||||
finally
|
|
||||||
{ Finally we do the cleanups, the message should be on its way }
|
|
||||||
{ +> Changes by Andreas Hoerig [mailto:andreas.hoerig@sillner.com] }
|
|
||||||
PRecip := Recipients;
|
|
||||||
for i := 1 to MapiMessage.nRecipCount do
|
|
||||||
begin
|
|
||||||
StrDispose(PRecip^.lpszAddress);
|
|
||||||
Inc(PRecip)
|
|
||||||
end;
|
|
||||||
{ +< Changes }
|
|
||||||
FreeMem(Recipients, MapiMessage.nRecipCount * sizeof(TMapiRecipDesc));
|
|
||||||
{ +> Changes due to Ken Halliwell [mailto:kjhalliwell@aol.com] }
|
|
||||||
if Assigned(PFiles) then
|
|
||||||
FreeMem(PFiles, MapiMessage.nFileCount * sizeof(TMapiFileDesc));
|
|
||||||
{ +< Changes }
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
|
|
||||||
end.
|
|
||||||
@ -3,7 +3,7 @@ unit uIntegerListUtils;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, FactuGES_Intf;
|
Classes;
|
||||||
|
|
||||||
type
|
type
|
||||||
TIntegerList = class(TList)
|
TIntegerList = class(TList)
|
||||||
@ -14,15 +14,10 @@ type
|
|||||||
procedure Add(Value: integer); reintroduce;
|
procedure Add(Value: integer); reintroduce;
|
||||||
function Find(Value: integer; var Index: Integer): Boolean;
|
function Find(Value: integer; var Index: Integer): Boolean;
|
||||||
property Integers[index: integer]: integer read GetInteger write SetInteger; default;
|
property Integers[index: integer]: integer read GetInteger write SetInteger; default;
|
||||||
function ToIntegerArray : TIntegerArray;
|
|
||||||
function ToString : String;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
uses
|
|
||||||
SysUtils;
|
|
||||||
|
|
||||||
function TIntegerList.GetInteger(Index: integer): integer;
|
function TIntegerList.GetInteger(Index: integer): integer;
|
||||||
begin
|
begin
|
||||||
result := Integer(Items[index]);
|
result := Integer(Items[index]);
|
||||||
@ -33,30 +28,6 @@ begin
|
|||||||
Items[index] := Pointer(Value);
|
Items[index] := Pointer(Value);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TIntegerList.ToIntegerArray: TIntegerArray;
|
|
||||||
var
|
|
||||||
i : Integer;
|
|
||||||
begin
|
|
||||||
Result := TIntegerArray.Create;
|
|
||||||
for i := 0 to Count - 1 do
|
|
||||||
Result.Add(Integers[i]);
|
|
||||||
end;
|
|
||||||
|
|
||||||
function TIntegerList.ToString: String;
|
|
||||||
var
|
|
||||||
i : Integer;
|
|
||||||
AList : TStringList;
|
|
||||||
begin
|
|
||||||
AList := TStringList.Create;
|
|
||||||
try
|
|
||||||
for i := 0 to Count - 1 do
|
|
||||||
AList.Add(IntToStr(Integers[i]));
|
|
||||||
Result := AList.CommaText;
|
|
||||||
finally
|
|
||||||
FreeANDNIL(AList);
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TIntegerList.Add(Value: integer);
|
procedure TIntegerList.Add(Value: integer);
|
||||||
var
|
var
|
||||||
Index: integer;
|
Index: integer;
|
||||||
@ -88,4 +59,3 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
|||||||
@ -20,70 +20,33 @@
|
|||||||
---------------------------------------------------------------------------
|
---------------------------------------------------------------------------
|
||||||
===============================================================================
|
===============================================================================
|
||||||
}
|
}
|
||||||
|
|
||||||
unit uSistemaFunc;
|
unit uSistemaFunc;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
||||||
uses SysUtils, Classes;
|
|
||||||
|
|
||||||
{ Funciones del sistema }
|
{ Funciones del sistema }
|
||||||
function Ejecutar (const LineaComando: String; Oculto, Esperar: Boolean) : Boolean;
|
function Ejecutar (const LineaComando: String; Oculto, Esperar: Boolean) : Boolean;
|
||||||
procedure EscribirEnFichero (NombreFichero, Texto : string);
|
|
||||||
function DarRutaTemporal : String;
|
function DarRutaTemporal : String;
|
||||||
function DarDirectorioTemporal : String;
|
|
||||||
function DarFicheroTemporal : String;
|
function DarFicheroTemporal : String;
|
||||||
function DarFicheroJPGTemporal : String;
|
function DarFicheroJPGTemporal : String;
|
||||||
function DarFicheroBMPTemporal : String;
|
function DarFicheroBMPTemporal : String;
|
||||||
function DarFicheroTIFFTemporal : String;
|
function DarFicheroTIFFTemporal : String;
|
||||||
function DarFicheroHTMLTemporal : String;
|
function DarFicheroExportar (var Fichero : String) : Boolean;
|
||||||
function DarFicheroExcelTemporal : String;
|
|
||||||
function DarFicheroPDFTemporal : String; overload;
|
|
||||||
function DarFicheroPDFTemporal(const AFileName : String) : String; overload;
|
|
||||||
function DarVersionFichero (Executable : String) : String;
|
function DarVersionFichero (Executable : String) : String;
|
||||||
function DarFechaFichero (Executable : String) : String;
|
function DarFechaFichero (Executable : String) : String;
|
||||||
procedure CopiarFichero(const Origen, Destino: string);
|
procedure CopiarFichero(const Origen, Destino: string);
|
||||||
|
procedure DoDelTree( TheDir : String);
|
||||||
procedure Deltree(DirToKill : String; KillChoosenDir : Boolean);
|
procedure Deltree(DirToKill : String; KillChoosenDir : Boolean);
|
||||||
function GetSpecialFolderPath(folder : integer) : string;
|
|
||||||
function PreguntarRuta(const ATitulo: String; const AComentario: String; var ARuta: String): Boolean;
|
|
||||||
function PreguntarFicheroWordExportar (var Fichero : String) : Boolean;
|
|
||||||
function PreguntarFicheroExcelExportar (var Fichero : String) : Boolean;
|
|
||||||
function EscapeIllegalChars(AFileName: string): string;
|
|
||||||
function FindFile(const filespec: TFileName; attributes: integer = faReadOnly Or faHidden Or faSysFile Or faArchive): TStringList;
|
|
||||||
|
|
||||||
function DarRutaFichero(const ARutaIni: String; const AFichero: String; const ADirectorio1: String = ''; const ADirectorio2: String = ''): Variant;
|
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
uses
|
uses
|
||||||
Windows, Variants, Dialogs, JclFileUtils,
|
SysUtils, Windows, Dialogs,
|
||||||
Messages, Graphics, Controls, Forms,
|
|
||||||
StdCtrls, SHFolder, cxShellBrowserDialog,
|
|
||||||
cxLookAndFeels, uStringsUtils;
|
|
||||||
|
|
||||||
|
|
||||||
function GetSpecialFolderPath(folder : integer) : string;
|
|
||||||
const
|
|
||||||
SHGFP_TYPE_CURRENT = 0;
|
|
||||||
var
|
|
||||||
path: array [0..MAX_PATH] of char;
|
|
||||||
begin
|
|
||||||
if SUCCEEDED(SHGetFolderPath(0, folder, 0, SHGFP_TYPE_CURRENT, @path[0])) then
|
|
||||||
Result := path
|
|
||||||
else
|
|
||||||
Result := '';
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure EscribirEnFichero (NombreFichero, Texto : string);
|
|
||||||
var
|
|
||||||
FicheroAux : TextFile;
|
|
||||||
begin
|
|
||||||
SysUtils.DeleteFile(NombreFichero);
|
|
||||||
AssignFile(FicheroAux, NombreFichero);
|
|
||||||
Rewrite(FicheroAux);
|
|
||||||
WriteLn(FicheroAux, Texto);
|
|
||||||
CloseFile(FicheroAux);
|
|
||||||
end;
|
|
||||||
|
|
||||||
|
Messages, Classes, Graphics, Controls, Forms,
|
||||||
|
StdCtrls;
|
||||||
|
|
||||||
function Ejecutar (const LineaComando: String; Oculto, Esperar: Boolean): Boolean;
|
function Ejecutar (const LineaComando: String; Oculto, Esperar: Boolean): Boolean;
|
||||||
var
|
var
|
||||||
@ -149,30 +112,6 @@ begin
|
|||||||
Result := Copy(Cadena, 0, (Length(Cadena)-3)) + 'tif';
|
Result := Copy(Cadena, 0, (Length(Cadena)-3)) + 'tif';
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function DarFicheroPDFTemporal : String;
|
|
||||||
var
|
|
||||||
Cadena : String;
|
|
||||||
begin
|
|
||||||
Cadena := DarFicheroTemporal;
|
|
||||||
Result := Copy(Cadena, 0, (Length(Cadena)-3)) + 'pdf';
|
|
||||||
end;
|
|
||||||
|
|
||||||
function DarFicheroPDFTemporal(const AFileName : String) : String;
|
|
||||||
var
|
|
||||||
Cadena : String;
|
|
||||||
RutaTmp : string;
|
|
||||||
begin
|
|
||||||
if not EsCadenaVacia(AFileName) then
|
|
||||||
begin
|
|
||||||
RutaTmp := DarRutaTemporal;
|
|
||||||
Cadena := ExtractFileName(AFileName);
|
|
||||||
Cadena := StringReplace(Cadena, ExtractFileExt(Cadena), '', []);
|
|
||||||
Result := RutaTmp + Cadena + '.pdf';
|
|
||||||
end
|
|
||||||
else
|
|
||||||
Result := DarFicheroPDFTemporal;
|
|
||||||
end;
|
|
||||||
|
|
||||||
function DarFicheroBMPTemporal : String;
|
function DarFicheroBMPTemporal : String;
|
||||||
var
|
var
|
||||||
Cadena : String;
|
Cadena : String;
|
||||||
@ -181,22 +120,6 @@ begin
|
|||||||
Result := Copy(Cadena, 0, (Length(Cadena)-3)) + 'bmp';
|
Result := Copy(Cadena, 0, (Length(Cadena)-3)) + 'bmp';
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function DarFicheroExcelTemporal : String;
|
|
||||||
var
|
|
||||||
Cadena : String;
|
|
||||||
begin
|
|
||||||
Cadena := DarFicheroTemporal;
|
|
||||||
Result := Copy(Cadena, 0, (Length(Cadena)-3)) + 'xls';
|
|
||||||
end;
|
|
||||||
|
|
||||||
function DarFicheroHTMLTemporal : String;
|
|
||||||
var
|
|
||||||
Cadena : String;
|
|
||||||
begin
|
|
||||||
Cadena := DarFicheroTemporal;
|
|
||||||
Result := Copy(Cadena, 0, (Length(Cadena)-3)) + 'html';
|
|
||||||
end;
|
|
||||||
|
|
||||||
function DarFicheroJPGTemporal : String;
|
function DarFicheroJPGTemporal : String;
|
||||||
var
|
var
|
||||||
Cadena : String;
|
Cadena : String;
|
||||||
@ -205,7 +128,7 @@ begin
|
|||||||
Result := Copy(Cadena, 0, (Length(Cadena)-3)) + 'jpg';
|
Result := Copy(Cadena, 0, (Length(Cadena)-3)) + 'jpg';
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function PreguntarFicheroWordExportar (var Fichero : String) : Boolean;
|
function DarFicheroExportar (var Fichero : String) : Boolean;
|
||||||
var
|
var
|
||||||
DialogoSalvar : TSaveDialog;
|
DialogoSalvar : TSaveDialog;
|
||||||
begin
|
begin
|
||||||
@ -226,37 +149,28 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function PreguntarFicheroExcelExportar (var Fichero : String) : Boolean;
|
|
||||||
var
|
|
||||||
DialogoSalvar : TSaveDialog;
|
|
||||||
begin
|
|
||||||
DialogoSalvar := TSaveDialog.Create(NIL);
|
|
||||||
try
|
|
||||||
with DialogoSalvar do
|
|
||||||
begin
|
|
||||||
DefaultExt := 'xls';
|
|
||||||
Filter := 'Documento de Excel (*.xls)|*.xls';
|
|
||||||
FilterIndex := 0;
|
|
||||||
Options := [ofOverwritePrompt, ofHideReadOnly, ofPathMustExist, ofEnableSizing];
|
|
||||||
end;
|
|
||||||
Result := DialogoSalvar.Execute;
|
|
||||||
if Result then
|
|
||||||
Fichero := DialogoSalvar.FileName;
|
|
||||||
finally
|
|
||||||
DialogoSalvar.Free;
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
|
|
||||||
|
|
||||||
function DarVersionFichero (Executable : String) : String;
|
function DarVersionFichero (Executable : String) : String;
|
||||||
var
|
var
|
||||||
Obj : TJclFileVersionInfo;
|
Size, Size2: DWord;
|
||||||
|
Pt, Pt2: Pointer;
|
||||||
begin
|
begin
|
||||||
Obj := TJclFileVersionInfo.Create(Application.ExeName);
|
Size := GetFileVersionInfoSize(PChar (Executable), Size2);
|
||||||
|
if Size > 0 then
|
||||||
|
begin
|
||||||
|
GetMem (Pt, Size);
|
||||||
try
|
try
|
||||||
Result := Obj.FileVersion;
|
GetFileVersionInfo (PChar (Executable), 0, Size, Pt);
|
||||||
|
VerQueryValue (Pt, '\', Pt2, Size2);
|
||||||
|
with TVSFixedFileInfo (Pt2^) do
|
||||||
|
begin
|
||||||
|
Result:= IntToStr (HiWord (dwFileVersionMS)) + '.' +
|
||||||
|
IntToStr (LoWord (dwFileVersionMS)) + '.' +
|
||||||
|
IntToStr (HiWord (dwFileVersionLS)) + '.' +
|
||||||
|
IntToStr (LoWord (dwFileVersionLS));
|
||||||
|
end;
|
||||||
finally
|
finally
|
||||||
FreeAndNil(Obj);
|
FreeMem (Pt);
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -337,127 +251,5 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
function PreguntarRuta(const ATitulo: String; const AComentario: String; var ARuta: String): Boolean;
|
|
||||||
var
|
|
||||||
cxShellBrowserDialog1: TcxShellBrowserDialog;
|
|
||||||
begin
|
|
||||||
cxShellBrowserDialog1 := TcxShellBrowserDialog.Create(NIL);
|
|
||||||
try
|
|
||||||
with cxShellBrowserDialog1 do
|
|
||||||
begin
|
|
||||||
Name := 'cxShellBrowserDialog1';
|
|
||||||
FolderLabelCaption := AComentario;
|
|
||||||
LookAndFeel.NativeStyle := True;
|
|
||||||
LookAndFeel.Kind := lfStandard;
|
|
||||||
Title := ATitulo;
|
|
||||||
|
|
||||||
Result := cxShellBrowserDialog1.Execute;
|
|
||||||
ARuta := cxShellBrowserDialog1.Path;
|
|
||||||
end;
|
|
||||||
finally
|
|
||||||
FreeANDNIL(cxShellBrowserDialog1);
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
|
|
||||||
|
|
||||||
function EscapeIllegalChars(AFileName: string): string;
|
|
||||||
var
|
|
||||||
x: integer;
|
|
||||||
const
|
|
||||||
IllegalCharSet: set of char =
|
|
||||||
['|','<','>','\','^','+','=','?','/','[',']','"',';',',','*'];
|
|
||||||
begin
|
|
||||||
for x := 1 to Length(AFileName) do
|
|
||||||
if AFileName[x] in IllegalCharSet then
|
|
||||||
AFileName[x] := '_';
|
|
||||||
Result := AFileName;
|
|
||||||
end;
|
|
||||||
|
|
||||||
function FindFile(const filespec: TFileName; attributes: integer): TStringList;
|
|
||||||
var
|
|
||||||
spec: string;
|
|
||||||
list: TStringList;
|
|
||||||
|
|
||||||
procedure RFindFile(const folder: TFileName);
|
|
||||||
var
|
|
||||||
SearchRec: TSearchRec;
|
|
||||||
begin
|
|
||||||
// Locate all matching files in the current
|
|
||||||
// folder and add their names to the list
|
|
||||||
if FindFirst(folder + spec, attributes, SearchRec) = 0 then begin
|
|
||||||
try
|
|
||||||
repeat
|
|
||||||
if (SearchRec.Attr and faDirectory = 0) or
|
|
||||||
(SearchRec.Name <> '.') and (SearchRec.Name <> '..') then
|
|
||||||
list.Add(folder + SearchRec.Name);
|
|
||||||
until FindNext(SearchRec) <> 0;
|
|
||||||
except
|
|
||||||
SysUtils.FindClose(SearchRec);
|
|
||||||
raise;
|
|
||||||
end;
|
|
||||||
SysUtils.FindClose(SearchRec);
|
|
||||||
end;
|
|
||||||
// Now search the subfolders
|
|
||||||
if FindFirst(folder + '*', attributes
|
|
||||||
Or faDirectory, SearchRec) = 0 then
|
|
||||||
begin
|
|
||||||
try
|
|
||||||
repeat
|
|
||||||
if ((SearchRec.Attr and faDirectory) <> 0) and
|
|
||||||
(SearchRec.Name <> '.') and (SearchRec.Name <> '..') then
|
|
||||||
RFindFile(folder + SearchRec.Name + '\');
|
|
||||||
until FindNext(SearchRec) <> 0;
|
|
||||||
except
|
|
||||||
SysUtils.FindClose(SearchRec);
|
|
||||||
raise;
|
|
||||||
end;
|
|
||||||
SysUtils.FindClose(SearchRec);
|
|
||||||
end;
|
|
||||||
end; // procedure RFindFile inside of FindFile
|
|
||||||
|
|
||||||
begin // function FindFile
|
|
||||||
list := TStringList.Create;
|
|
||||||
try
|
|
||||||
spec := ExtractFileName(filespec);
|
|
||||||
RFindFile(ExtractFilePath(filespec));
|
|
||||||
Result := list;
|
|
||||||
except
|
|
||||||
list.Free;
|
|
||||||
raise;
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
|
|
||||||
function DarDirectorioTemporal : String;
|
|
||||||
var
|
|
||||||
Cadena: String;
|
|
||||||
begin
|
|
||||||
Cadena := ExtractFileName(DarFicheroTemporal);
|
|
||||||
Cadena := StringReplace(Cadena, ExtractFileExt(Cadena), '', []);
|
|
||||||
Result := DarRutaTemporal + Cadena + '\';
|
|
||||||
end;
|
|
||||||
|
|
||||||
function DarRutaFichero(const ARutaIni: String; const AFichero: String; const ADirectorio1: String = ''; const ADirectorio2: String = ''): Variant;
|
|
||||||
var
|
|
||||||
ARutaCompleta: String;
|
|
||||||
begin
|
|
||||||
Result := Null;
|
|
||||||
|
|
||||||
ARutaCompleta := ARutaIni + '\' + ADirectorio1 + '\' + ADirectorio2 + '\' + AFichero;
|
|
||||||
if FileExists(ARutaCompleta) then
|
|
||||||
Result := ARutaCompleta
|
|
||||||
else
|
|
||||||
begin
|
|
||||||
ARutaCompleta := ARutaIni + '\' + ADirectorio1 + '\' + AFichero;
|
|
||||||
if FileExists(ARutaCompleta) then
|
|
||||||
Result := ARutaCompleta
|
|
||||||
else
|
|
||||||
begin
|
|
||||||
ARutaCompleta := ARutaIni + '\' + AFichero;
|
|
||||||
if FileExists(ARutaCompleta) then
|
|
||||||
Result := ARutaCompleta
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end;
|
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
|
||||||
@ -148,8 +148,8 @@
|
|||||||
<VersionInfo Name="IncludeVerInfo">True</VersionInfo>
|
<VersionInfo Name="IncludeVerInfo">True</VersionInfo>
|
||||||
<VersionInfo Name="AutoIncBuild">False</VersionInfo>
|
<VersionInfo Name="AutoIncBuild">False</VersionInfo>
|
||||||
<VersionInfo Name="MajorVer">3</VersionInfo>
|
<VersionInfo Name="MajorVer">3</VersionInfo>
|
||||||
<VersionInfo Name="MinorVer">3</VersionInfo>
|
<VersionInfo Name="MinorVer">0</VersionInfo>
|
||||||
<VersionInfo Name="Release">7</VersionInfo>
|
<VersionInfo Name="Release">6</VersionInfo>
|
||||||
<VersionInfo Name="Build">0</VersionInfo>
|
<VersionInfo Name="Build">0</VersionInfo>
|
||||||
<VersionInfo Name="Debug">False</VersionInfo>
|
<VersionInfo Name="Debug">False</VersionInfo>
|
||||||
<VersionInfo Name="PreRelease">False</VersionInfo>
|
<VersionInfo Name="PreRelease">False</VersionInfo>
|
||||||
@ -162,22 +162,22 @@
|
|||||||
<VersionInfoKeys>
|
<VersionInfoKeys>
|
||||||
<VersionInfoKeys Name="CompanyName">Rodax Software S.L.</VersionInfoKeys>
|
<VersionInfoKeys Name="CompanyName">Rodax Software S.L.</VersionInfoKeys>
|
||||||
<VersionInfoKeys Name="FileDescription"></VersionInfoKeys>
|
<VersionInfoKeys Name="FileDescription"></VersionInfoKeys>
|
||||||
<VersionInfoKeys Name="FileVersion">3.3.7.0</VersionInfoKeys>
|
<VersionInfoKeys Name="FileVersion">3.0.6.0</VersionInfoKeys>
|
||||||
<VersionInfoKeys Name="InternalName">FactuGES</VersionInfoKeys>
|
<VersionInfoKeys Name="InternalName">FactuGES</VersionInfoKeys>
|
||||||
<VersionInfoKeys Name="LegalCopyright"></VersionInfoKeys>
|
<VersionInfoKeys Name="LegalCopyright"></VersionInfoKeys>
|
||||||
<VersionInfoKeys Name="LegalTrademarks"></VersionInfoKeys>
|
<VersionInfoKeys Name="LegalTrademarks"></VersionInfoKeys>
|
||||||
<VersionInfoKeys Name="OriginalFilename"></VersionInfoKeys>
|
<VersionInfoKeys Name="OriginalFilename"></VersionInfoKeys>
|
||||||
<VersionInfoKeys Name="ProductName"></VersionInfoKeys>
|
<VersionInfoKeys Name="ProductName"></VersionInfoKeys>
|
||||||
<VersionInfoKeys Name="ProductVersion">3.3.7.0</VersionInfoKeys>
|
<VersionInfoKeys Name="ProductVersion">3.0.6.0</VersionInfoKeys>
|
||||||
<VersionInfoKeys Name="Comments"></VersionInfoKeys>
|
<VersionInfoKeys Name="Comments"></VersionInfoKeys>
|
||||||
</VersionInfoKeys> <Excluded_Packages>
|
</VersionInfoKeys> <Excluded_Packages>
|
||||||
<Excluded_Packages Name="C:\Documents and Settings\Usuario\Mis documentos\Borland Studio Projects\Bpl\EasyListviewD10.bpl">Muststang Peak EasyListview Runtime Package</Excluded_Packages>
|
<Excluded_Packages Name="C:\Documents and Settings\Usuario\Mis documentos\Borland Studio Projects\Bpl\EasyListviewD10.bpl">Muststang Peak EasyListview Runtime Package</Excluded_Packages>
|
||||||
<Excluded_Packages Name="C:\Archivos de programa\RemObjects Software\Pascal Script\Dcu\D10\PascalScript_RO_D10.bpl">RemObjects Pascal Script - RemObjects SDK 3.0 Integration</Excluded_Packages>
|
<Excluded_Packages Name="C:\Archivos de programa\RemObjects Software\Pascal Script\Dcu\D10\PascalScript_RO_D10.bpl">RemObjects Pascal Script - RemObjects SDK 3.0 Integration</Excluded_Packages>
|
||||||
</Excluded_Packages>
|
</Excluded_Packages>
|
||||||
</Delphi.Personality>
|
</Delphi.Personality>
|
||||||
<!-- EurekaLog First Line
|
<!-- EurekaLog First Line
|
||||||
[Exception Log]
|
[Exception Log]
|
||||||
EurekaLog Version=6014
|
EurekaLog Version=519
|
||||||
Activate=0
|
Activate=0
|
||||||
Activate Handle=1
|
Activate Handle=1
|
||||||
Save Log File=1
|
Save Log File=1
|
||||||
@ -491,190 +491,5 @@ Count mtSend_SuccessMsg=1
|
|||||||
mtSend_SuccessMsg0="The message was sent successfully."
|
mtSend_SuccessMsg0="The message was sent successfully."
|
||||||
Count mtSend_FailureMsg=1
|
Count mtSend_FailureMsg=1
|
||||||
mtSend_FailureMsg0="Sorry, sending the message didn't work."
|
mtSend_FailureMsg0="Sorry, sending the message didn't work."
|
||||||
ProxyURL=
|
|
||||||
ProxyUser=
|
|
||||||
ProxyPassword=
|
|
||||||
ProxyPort=8080
|
|
||||||
TrakerUser=
|
|
||||||
TrakerPassword=
|
|
||||||
TrakerAssignTo=
|
|
||||||
TrakerProject=
|
|
||||||
TrakerCategory=
|
|
||||||
TrakerTrialID=
|
|
||||||
ZipPassword=
|
|
||||||
PreBuildEvent=
|
|
||||||
PostSuccessfulBuildEvent=
|
|
||||||
PostFailureBuildEvent=
|
|
||||||
ExceptionDialogType=2
|
|
||||||
loSaveModulesAndProcessesSections=1
|
|
||||||
loSaveAssemblerAndCPUSections=1
|
|
||||||
soAppUpTime=1
|
|
||||||
soExcModuleName=1
|
|
||||||
soExcModuleVersion=1
|
|
||||||
soExcID=1
|
|
||||||
soExcCount=1
|
|
||||||
soExcStatus=1
|
|
||||||
soExcNote=1
|
|
||||||
soUserID=1
|
|
||||||
soUserName=1
|
|
||||||
soUserEmail=1
|
|
||||||
soUserPrivileges=1
|
|
||||||
soUserCompany=1
|
|
||||||
soCmpDisplayDPI=1
|
|
||||||
soCmpVideoCard=1
|
|
||||||
soCmpPrinter=1
|
|
||||||
soOSCharset=1
|
|
||||||
soCustomData=1
|
|
||||||
sndAddComputerNameInFileName=0
|
|
||||||
edoSendErrorReportChecked=1
|
|
||||||
edoShowSendErrorReportOption=1
|
|
||||||
edoShowAttachScreenshotOption=1
|
|
||||||
edoShowCustomButton=0
|
|
||||||
csoDoNotStoreProcNames=0
|
|
||||||
boHandleSafeCallExceptions=1
|
|
||||||
boCallRTLExceptionEvent=0
|
|
||||||
boCatchHandledExceptions=0
|
|
||||||
loCatchLeaks=0
|
|
||||||
loGroupsSonLeaks=1
|
|
||||||
loHideBorlandLeaks=1
|
|
||||||
loFreeAllLeaks=1
|
|
||||||
loCatchLeaksExceptions=1
|
|
||||||
cfoReduceFileSize=1
|
|
||||||
cfoCheckFileCorruption=0
|
|
||||||
Count mtErrorMsgCaption=1
|
|
||||||
mtErrorMsgCaption0="Error."
|
|
||||||
Count mtDialog_ProcessesCaption=1
|
|
||||||
mtDialog_ProcessesCaption0="Processes"
|
|
||||||
Count mtDialog_ProcessesHeader=1
|
|
||||||
mtDialog_ProcessesHeader0="Processes Information"
|
|
||||||
Count mtDialog_AsmCaption=1
|
|
||||||
mtDialog_AsmCaption0="Assembler"
|
|
||||||
Count mtDialog_AsmHeader=1
|
|
||||||
mtDialog_AsmHeader0="Assembler Information"
|
|
||||||
Count mtDialog_CustomButtonCaption=1
|
|
||||||
mtDialog_CustomButtonCaption0="%26Help"
|
|
||||||
Count mtMSDialog_ErrorMsgCaption=1
|
|
||||||
mtMSDialog_ErrorMsgCaption0="The application has encountered a problem. We are sorry for the inconvenience."
|
|
||||||
Count mtMSDialog_RestartCaption=1
|
|
||||||
mtMSDialog_RestartCaption0="Restart application."
|
|
||||||
Count mtMSDialog_TerminateCaption=1
|
|
||||||
mtMSDialog_TerminateCaption0="Terminate application."
|
|
||||||
Count mtMSDialog_PleaseCaption=1
|
|
||||||
mtMSDialog_PleaseCaption0="Please tell us about this problem."
|
|
||||||
Count mtMSDialog_DescriptionCaption=1
|
|
||||||
mtMSDialog_DescriptionCaption0="We have created an error report that you can send to us. We will treat this report as confidential and anonymous."
|
|
||||||
Count mtMSDialog_SeeDetailsCaption=1
|
|
||||||
mtMSDialog_SeeDetailsCaption0="To see what data the error report contains,"
|
|
||||||
Count mtMSDialog_SeeClickCaption=1
|
|
||||||
mtMSDialog_SeeClickCaption0="click here."
|
|
||||||
Count mtMSDialog_HowToReproduceCaption=1
|
|
||||||
mtMSDialog_HowToReproduceCaption0="What were you doing when the problem happened (optional)?"
|
|
||||||
Count mtMSDialog_EmailCaption=1
|
|
||||||
mtMSDialog_EmailCaption0="Email address (optional):"
|
|
||||||
Count mtMSDialog_SendButtonCaption=1
|
|
||||||
mtMSDialog_SendButtonCaption0="%26Send Error Report"
|
|
||||||
Count mtMSDialog_NoSendButtonCaption=1
|
|
||||||
mtMSDialog_NoSendButtonCaption0="%26Don't Send"
|
|
||||||
Count mtLog_AppUpTime=1
|
|
||||||
mtLog_AppUpTime0="Up Time"
|
|
||||||
Count mtLog_ExcModuleName=1
|
|
||||||
mtLog_ExcModuleName0="Module Name"
|
|
||||||
Count mtLog_ExcModuleVersion=1
|
|
||||||
mtLog_ExcModuleVersion0="Module Version"
|
|
||||||
Count mtLog_ExcID=1
|
|
||||||
mtLog_ExcID0="ID"
|
|
||||||
Count mtLog_ExcCount=1
|
|
||||||
mtLog_ExcCount0="Count"
|
|
||||||
Count mtLog_ExcStatus=1
|
|
||||||
mtLog_ExcStatus0="Status"
|
|
||||||
Count mtLog_ExcNote=1
|
|
||||||
mtLog_ExcNote0="Note"
|
|
||||||
Count mtLog_UserHeader=1
|
|
||||||
mtLog_UserHeader0="User"
|
|
||||||
Count mtLog_UserID=1
|
|
||||||
mtLog_UserID0="ID"
|
|
||||||
Count mtLog_UserName=1
|
|
||||||
mtLog_UserName0="Name"
|
|
||||||
Count mtLog_UserEmail=1
|
|
||||||
mtLog_UserEmail0="Email"
|
|
||||||
Count mtLog_UserCompany=1
|
|
||||||
mtLog_UserCompany0="Company"
|
|
||||||
Count mtLog_UserPrivileges=1
|
|
||||||
mtLog_UserPrivileges0="Privileges"
|
|
||||||
Count mtLog_CmpDisplayDPI=1
|
|
||||||
mtLog_CmpDisplayDPI0="Display DPI"
|
|
||||||
Count mtLog_CmpVideoCard=1
|
|
||||||
mtLog_CmpVideoCard0="Video Card"
|
|
||||||
Count mtLog_CmpPrinter=1
|
|
||||||
mtLog_CmpPrinter0="Printer"
|
|
||||||
Count mtLog_OSCharset=1
|
|
||||||
mtLog_OSCharset0="Charset"
|
|
||||||
Count mtCallStack_LeakCaption=1
|
|
||||||
mtCallStack_LeakCaption0="Memory Leak"
|
|
||||||
Count mtCallStack_LeakData=1
|
|
||||||
mtCallStack_LeakData0="Data"
|
|
||||||
Count mtCallStack_LeakType=1
|
|
||||||
mtCallStack_LeakType0="Type"
|
|
||||||
Count mtCallStack_LeakSize=1
|
|
||||||
mtCallStack_LeakSize0="Total size"
|
|
||||||
Count mtCallStack_LeakCount=1
|
|
||||||
mtCallStack_LeakCount0="Count"
|
|
||||||
Count mtSendDialog_Login=1
|
|
||||||
mtSendDialog_Login0="Login..."
|
|
||||||
Count mtSendDialog_Sent=1
|
|
||||||
mtSendDialog_Sent0="Message sent."
|
|
||||||
Count mtSendDialog_SelectProject=1
|
|
||||||
mtSendDialog_SelectProject0="Select project..."
|
|
||||||
Count mtSendDialog_Searching=1
|
|
||||||
mtSendDialog_Searching0="Searching..."
|
|
||||||
Count mtSendDialog_Modifying=1
|
|
||||||
mtSendDialog_Modifying0="Modifying..."
|
|
||||||
Count mtSendDialog_Disconnecting=1
|
|
||||||
mtSendDialog_Disconnecting0="Disconnecting..."
|
|
||||||
Count mtSendDialog_Disconnected=1
|
|
||||||
mtSendDialog_Disconnected0="Disconnected."
|
|
||||||
Count mtProcesses_ID=1
|
|
||||||
mtProcesses_ID0="ID"
|
|
||||||
Count mtProcesses_Name=1
|
|
||||||
mtProcesses_Name0="Name"
|
|
||||||
Count mtProcesses_Description=1
|
|
||||||
mtProcesses_Description0="Description"
|
|
||||||
Count mtProcesses_Version=1
|
|
||||||
mtProcesses_Version0="Version"
|
|
||||||
Count mtProcesses_Memory=1
|
|
||||||
mtProcesses_Memory0="Memory"
|
|
||||||
Count mtProcesses_Priority=1
|
|
||||||
mtProcesses_Priority0="Priority"
|
|
||||||
Count mtProcesses_Threads=1
|
|
||||||
mtProcesses_Threads0="Threads"
|
|
||||||
Count mtProcesses_Path=1
|
|
||||||
mtProcesses_Path0="Path"
|
|
||||||
Count mtSend_BugClosedMsg=2
|
|
||||||
mtSend_BugClosedMsg0="These BUG is just closed."
|
|
||||||
mtSend_BugClosedMsg1="Contact the program support to obtain an update."
|
|
||||||
Count mtSend_UnknownErrorMsg=1
|
|
||||||
mtSend_UnknownErrorMsg0="Unknown error."
|
|
||||||
Count mtSend_InvalidLoginMsg=1
|
|
||||||
mtSend_InvalidLoginMsg0="Invalid login request."
|
|
||||||
Count mtSend_InvalidSearchMsg=1
|
|
||||||
mtSend_InvalidSearchMsg0="Invalid search request."
|
|
||||||
Count mtSend_InvalidSelectionMsg=1
|
|
||||||
mtSend_InvalidSelectionMsg0="Invalid selection request."
|
|
||||||
Count mtSend_InvalidInsertMsg=1
|
|
||||||
mtSend_InvalidInsertMsg0="Invalid insert request."
|
|
||||||
Count mtSend_InvalidModifyMsg=1
|
|
||||||
mtSend_InvalidModifyMsg0="Invalid modify request."
|
|
||||||
Count mtFileCrackedMsg=2
|
|
||||||
mtFileCrackedMsg0="This file is cracked."
|
|
||||||
mtFileCrackedMsg1="The application will be closed."
|
|
||||||
Count mtException_LeakMultiFree=1
|
|
||||||
mtException_LeakMultiFree0="Multi Free memory leak."
|
|
||||||
Count mtException_LeakMemoryOverrun=1
|
|
||||||
mtException_LeakMemoryOverrun0="Memory Overrun leak."
|
|
||||||
Count mtException_AntiFreeze=1
|
|
||||||
mtException_AntiFreeze0="The application seems to be frozen."
|
|
||||||
Count mtInvalidEmailMsg=1
|
|
||||||
mtInvalidEmailMsg0="Invalid email."
|
|
||||||
TextsCollection=English
|
|
||||||
EurekaLog Last Line -->
|
EurekaLog Last Line -->
|
||||||
</BorlandProject>
|
</BorlandProject>
|
||||||
|
|||||||
@ -13,6 +13,8 @@ uses
|
|||||||
uMainMenuController in 'uMainMenuController.pas',
|
uMainMenuController in 'uMainMenuController.pas',
|
||||||
uClienteUtils in 'Utiles\uClienteUtils.pas';
|
uClienteUtils in 'Utiles\uClienteUtils.pas';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{$R *.res}
|
{$R *.res}
|
||||||
|
|
||||||
var
|
var
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
MAINICON ICON "c:\Codigo Luis Leon\Source\Iconos\Factuges.ico"
|
MAINICON ICON "c:\Codigo Luis Leon\Source\Iconos\Factuges.ico"
|
||||||
1 VERSIONINFO
|
1 VERSIONINFO
|
||||||
FILEVERSION 3,3,7,0
|
FILEVERSION 3,0,6,0
|
||||||
PRODUCTVERSION 3,3,7,0
|
PRODUCTVERSION 3,0,6,0
|
||||||
FILEFLAGSMASK 0x3FL
|
FILEFLAGSMASK 0x3FL
|
||||||
FILEFLAGS 0x00L
|
FILEFLAGS 0x00L
|
||||||
FILEOS 0x40004L
|
FILEOS 0x40004L
|
||||||
@ -13,9 +13,9 @@ BEGIN
|
|||||||
BLOCK "0C0A04E4"
|
BLOCK "0C0A04E4"
|
||||||
BEGIN
|
BEGIN
|
||||||
VALUE "CompanyName", "Rodax Software S.L.\0"
|
VALUE "CompanyName", "Rodax Software S.L.\0"
|
||||||
VALUE "FileVersion", "3.3.7.0\0"
|
VALUE "FileVersion", "3.0.6.0\0"
|
||||||
VALUE "InternalName", "FactuGES\0"
|
VALUE "InternalName", "FactuGES\0"
|
||||||
VALUE "ProductVersion", "3.3.7.0\0"
|
VALUE "ProductVersion", "3.0.6.0\0"
|
||||||
END
|
END
|
||||||
END
|
END
|
||||||
BLOCK "VarFileInfo"
|
BLOCK "VarFileInfo"
|
||||||
|
|||||||
@ -2,7 +2,7 @@ object fPantallaPrincipal: TfPantallaPrincipal
|
|||||||
Left = 358
|
Left = 358
|
||||||
Top = 250
|
Top = 250
|
||||||
Caption = 'Pantalla principal'
|
Caption = 'Pantalla principal'
|
||||||
ClientHeight = 681
|
ClientHeight = 662
|
||||||
ClientWidth = 559
|
ClientWidth = 559
|
||||||
Color = clWindow
|
Color = clWindow
|
||||||
Font.Charset = DEFAULT_CHARSET
|
Font.Charset = DEFAULT_CHARSET
|
||||||
@ -23,7 +23,7 @@ object fPantallaPrincipal: TfPantallaPrincipal
|
|||||||
Left = 0
|
Left = 0
|
||||||
Top = 0
|
Top = 0
|
||||||
Width = 559
|
Width = 559
|
||||||
Height = 659
|
Height = 640
|
||||||
Margins.Left = 5
|
Margins.Left = 5
|
||||||
Margins.Top = 5
|
Margins.Top = 5
|
||||||
Margins.Right = 5
|
Margins.Right = 5
|
||||||
@ -31,12 +31,11 @@ object fPantallaPrincipal: TfPantallaPrincipal
|
|||||||
ParentColor = True
|
ParentColor = True
|
||||||
Align = alClient
|
Align = alClient
|
||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
ExplicitHeight = 640
|
|
||||||
object JvSyncSplitter1: TJvSyncSplitter
|
object JvSyncSplitter1: TJvSyncSplitter
|
||||||
Left = 215
|
Left = 215
|
||||||
Top = 5
|
Top = 5
|
||||||
Width = 5
|
Width = 5
|
||||||
Height = 649
|
Height = 630
|
||||||
ResizeStyle = rsPattern
|
ResizeStyle = rsPattern
|
||||||
ExplicitLeft = 210
|
ExplicitLeft = 210
|
||||||
ExplicitHeight = 570
|
ExplicitHeight = 570
|
||||||
@ -45,7 +44,7 @@ object fPantallaPrincipal: TfPantallaPrincipal
|
|||||||
Left = 5
|
Left = 5
|
||||||
Top = 5
|
Top = 5
|
||||||
Width = 210
|
Width = 210
|
||||||
Height = 649
|
Height = 630
|
||||||
ActivePage = pagInicio
|
ActivePage = pagInicio
|
||||||
Align = alLeft
|
Align = alLeft
|
||||||
AutoHeaders = True
|
AutoHeaders = True
|
||||||
@ -86,12 +85,11 @@ object fPantallaPrincipal: TfPantallaPrincipal
|
|||||||
NavPanelHotTrackFont.Style = []
|
NavPanelHotTrackFont.Style = []
|
||||||
SmallImages = ModulesSmallImageList
|
SmallImages = ModulesSmallImageList
|
||||||
OnChange = JvNavigationPaneChange
|
OnChange = JvNavigationPaneChange
|
||||||
ExplicitHeight = 630
|
|
||||||
object pagInicio: TJvNavPanelPage
|
object pagInicio: TJvNavPanelPage
|
||||||
Left = 0
|
Left = 0
|
||||||
Top = 0
|
Top = 0
|
||||||
Width = 208
|
Width = 208
|
||||||
Height = 576
|
Height = 557
|
||||||
Background.Stretch = False
|
Background.Stretch = False
|
||||||
Background.Proportional = False
|
Background.Proportional = False
|
||||||
Background.Center = False
|
Background.Center = False
|
||||||
@ -99,17 +97,15 @@ object fPantallaPrincipal: TfPantallaPrincipal
|
|||||||
Background.Transparent = False
|
Background.Transparent = False
|
||||||
Caption = 'Inicio'
|
Caption = 'Inicio'
|
||||||
ImageIndex = 0
|
ImageIndex = 0
|
||||||
ExplicitHeight = 557
|
|
||||||
object Panel1: TPanel
|
object Panel1: TPanel
|
||||||
Left = 0
|
Left = 0
|
||||||
Top = 490
|
Top = 471
|
||||||
Width = 208
|
Width = 208
|
||||||
Height = 86
|
Height = 86
|
||||||
Align = alBottom
|
Align = alBottom
|
||||||
Color = clWindow
|
Color = clWindow
|
||||||
ParentBackground = False
|
ParentBackground = False
|
||||||
TabOrder = 1
|
TabOrder = 1
|
||||||
ExplicitTop = 471
|
|
||||||
object Label1: TLabel
|
object Label1: TLabel
|
||||||
Left = 38
|
Left = 38
|
||||||
Top = 29
|
Top = 29
|
||||||
@ -157,21 +153,19 @@ object fPantallaPrincipal: TfPantallaPrincipal
|
|||||||
Left = 220
|
Left = 220
|
||||||
Top = 5
|
Top = 5
|
||||||
Width = 334
|
Width = 334
|
||||||
Height = 649
|
Height = 630
|
||||||
BoundColor = clActiveCaption
|
BoundColor = clActiveCaption
|
||||||
BoundLines = [blLeft, blTop, blRight, blBottom]
|
BoundLines = [blLeft, blTop, blRight, blBottom]
|
||||||
Caption = 'pnlBorde'
|
Caption = 'pnlBorde'
|
||||||
Align = alClient
|
Align = alClient
|
||||||
ExplicitHeight = 630
|
|
||||||
object pnlMain: TTBXAlignmentPanel
|
object pnlMain: TTBXAlignmentPanel
|
||||||
Left = 1
|
Left = 1
|
||||||
Top = 1
|
Top = 1
|
||||||
Width = 332
|
Width = 332
|
||||||
Height = 647
|
Height = 628
|
||||||
Align = alClient
|
Align = alClient
|
||||||
Color = clWindow
|
Color = clWindow
|
||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
ExplicitHeight = 628
|
|
||||||
object lblBienvenido: TLabel
|
object lblBienvenido: TLabel
|
||||||
Left = 8
|
Left = 8
|
||||||
Top = 8
|
Top = 8
|
||||||
@ -208,7 +202,7 @@ object fPantallaPrincipal: TfPantallaPrincipal
|
|||||||
end
|
end
|
||||||
object TBXStatusBar1: TTBXStatusBar
|
object TBXStatusBar1: TTBXStatusBar
|
||||||
Left = 0
|
Left = 0
|
||||||
Top = 659
|
Top = 640
|
||||||
Width = 559
|
Width = 559
|
||||||
Images = StatusPanelImageList
|
Images = StatusPanelImageList
|
||||||
Panels = <
|
Panels = <
|
||||||
@ -230,7 +224,6 @@ object fPantallaPrincipal: TfPantallaPrincipal
|
|||||||
Tag = 0
|
Tag = 0
|
||||||
end>
|
end>
|
||||||
UseSystemFont = False
|
UseSystemFont = False
|
||||||
ExplicitTop = 640
|
|
||||||
end
|
end
|
||||||
object XPManifest1: TXPManifest
|
object XPManifest1: TXPManifest
|
||||||
Left = 248
|
Left = 248
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 592 B |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 775 B |
|
Before Width: | Height: | Size: 976 B |
|
Before Width: | Height: | Size: 7.2 KiB |
|
Before Width: | Height: | Size: 9.3 KiB |
@ -1,37 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<TfrxReport Version="3.23.7" DotMatrixReport="False" EngineOptions.DoublePass="True" IniFile="\Software\Fast Reports" PreviewOptions.Buttons="4095" PreviewOptions.Zoom="1" PrintOptions.Printer="Por defecto" ReportOptions.CreateDate="39065,8724234954" ReportOptions.Description.Text="" ReportOptions.LastChange="39290,7839583333" ScriptLanguage="PascalScript" ScriptText.Text=" procedure DatosEmpresaOnBeforePrint(Sender: TfrxComponent); var Cadena: String; begin DatosEmpresa.Lines.Clear; if (<frxDBCabecera."TELEFONO_1_EMPRESA"> <> '') then Cadena := 'TLF: ' + <frxDBCabecera."TELEFONO_1_EMPRESA">; if (<frxDBCabecera."FAX_EMPRESA"> <> '') then Cadena := Cadena + ' FAX: ' + <frxDBCabecera."FAX_EMPRESA">; DatosEmpresa.Lines.Add(Cadena); end; procedure NombreEmpresaOnBeforePrint(Sender: TfrxComponent); begin NombreEmpresa.Lines.Clear; NombreEmpresa.Lines.Add(<frxDBCabecera."NOMBRE_EMPRESA">); end; procedure DireccionEnvioOnBeforePrint(Sender: TfrxComponent); var ACadena : String; begin ACadena := ''; DireccionEnvio.Lines.Clear; if (<frxDBCabecera."PERSONA_CONTACTO"> <> '') then ACadena := <frxDBCabecera."PERSONA_CONTACTO">; if (<frxDBCabecera."TELEFONO"> <> '') then ACadena := ACadena + ' (tlf: ' + <frxDBCabecera."TELEFONO"> + ' )'; DireccionEnvio.Lines.Add(ACadena); ACadena := ''; DireccionEnvio.Lines.Add(ACadena); DireccionEnvio.Lines.Add(<frxDBCabecera."CALLE">); if (<frxDBCabecera."CODIGO_POSTAL"> <> '') then ACadena := <frxDBCabecera."CODIGO_POSTAL"> + ' '; if (<frxDBCabecera."POBLACION"> <> '') then ACadena := ACadena + <frxDBCabecera."CODIGO_POSTAL">; if (ACadena <> '') then DireccionEnvio.Lines.Add(ACadena); if (<frxDBCabecera."PROVINCIA"> <> '') then DireccionEnvio.Lines.Add(<frxDBCabecera."PROVINCIA">); end; procedure Memo2OnBeforePrint(Sender: TfrxComponent); begin Memo2.Lines.Clear; if (StrToFloat(<frxDBCabecera."IMPORTE_TOTAL">) < 0) then Memo2.Lines.Add('ORDEN DE DEVOLUCIÓN') else Memo2.Lines.Add('ALBARÁN DE PROVEEDOR') end; procedure Memo5OnBeforePrint(Sender: TfrxComponent); begin if (StrToFloat(<frxDBCabecera."IMPORTE_TOTAL">) < 0) then begin Memo5.Lines.Clear; Memo5.Lines.Add('Nº orden:'); end; end; procedure Memo1OnBeforePrint(Sender: TfrxComponent); begin if (StrToFloat(<frxDBCabecera."IMPORTE_TOTAL">) < 0) then begin Memo1.Lines.Clear; Memo1.Lines.Add('Fecha orden:'); end; end; procedure PageHeader1OnBeforePrint(Sender: TfrxComponent); begin if not Engine.FinalPass then Set('TotalPaginas', (<TotalPaginas> + 1)); if Engine.FinalPass then Set('Pagina', (<Pagina> + 1)); end; procedure frxReportOnStartReport(Sender: TfrxComponent); begin Set('Pagina', 0); Set('TotalPaginas', 0); end; begin end." ShowProgress="False" StoreInDFM="False" OnStartReport="frxReportOnStartReport" PropData="044C65667403A90003546F70021008446174617365747301010C3400000020446174615365743D22667278444243616265636572612220446174615365744E616D653D22667278444243616265636572612200010C3400000020446174615365743D226672784442446574616C6C65732220446174615365744E616D653D226672784442446574616C6C6573220000095661726961626C657301010C13000000204E616D653D2220506167696E6163696F6E2200010C14000000204E616D653D22546F74616C506167696E61732200010C0E000000204E616D653D22506167696E61220000055374796C650100">
|
|
||||||
<TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="10" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
|
|
||||||
<TfrxMasterData Name="MasterData1" Height="24" Left="0" Top="404,40971" Width="718,1107" ColumnWidth="0" ColumnGap="0" DataSet="frxDBDetalles" DataSetName="frxDBDetalles" RowCount="0" Stretched="True">
|
|
||||||
<TfrxRichView Name="MemoCampo12" ShiftMode="smWhenOverlapped" Left="137,5" Top="1,5" Width="580,5436" Height="18" StretchMode="smMaxHeight" DataField="CONCEPTO" DataSet="frxDBDetalles" DataSetName="frxDBDetalles" GapX="2" GapY="3" Wysiwyg="False" PropData="0852696368456469740A6C0000007B5C727466315C616E73695C616E7369637067313235325C64656666305C6465666C616E67333038327B5C666F6E7474626C7B5C66305C666E696C205461686F6D613B7D7D0D0A5C766965776B696E64345C7563315C706172645C66305C667331365C7061720D0A7D0D0A00"/>
|
|
||||||
<TfrxMemoView Name="Memo14" Left="1" Top="1,5" Width="75" Height="18" StretchMode="smMaxHeight" DataSet="frxDBDetalles" DataSetName="frxDBDetalles" DisplayFormat.DecimalSeparator="," DisplayFormat.FormatStr="#0 " DisplayFormat.Kind="fkNumeric" Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" GapY="3" HAlign="haRight" HideZeros="True" LineSpacing="4" ParentFont="False" Style="Concepto normal" Text="[frxDBDetalles."REFERENCIA_PROVEEDOR"] "/>
|
|
||||||
<TfrxMemoView Name="MemoCampo2" Left="78" Top="1,5" Width="56,03148874" Height="18" StretchMode="smMaxHeight" DataSet="frxDBDetalles" DataSetName="frxDBDetalles" DisplayFormat.DecimalSeparator="," DisplayFormat.FormatStr="#0 " DisplayFormat.Kind="fkNumeric" Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" GapY="3" HAlign="haRight" HideZeros="True" LineSpacing="4" ParentFont="False" Style="Concepto normal" Text="[frxDBDetalles."CANTIDAD"]"/>
|
|
||||||
</TfrxMasterData>
|
|
||||||
<TfrxPageFooter Name="PageFooter1" Height="72,87953" Left="0" Top="487,55937" Width="718,1107">
|
|
||||||
<TfrxLineView Name="Line4" Align="baCenter" Left="-0,944650000000024" Top="4" Width="720" Height="0" Frame.Color="8421504" Frame.Typ="4"/>
|
|
||||||
</TfrxPageFooter>
|
|
||||||
<TfrxPageHeader Name="PageHeader1" Height="323,14968685" Left="0" Top="18,89765" Width="718,1107" OnBeforePrint="PageHeader1OnBeforePrint">
|
|
||||||
<TfrxShapeView Name="Shape2" Left="0" Top="90,67718" Width="717,73228346" Height="77,7953" Frame.Color="8421504"/>
|
|
||||||
<TfrxMemoView Name="Memo2" Left="267,65337" Top="37,35436" Width="442,42548" Height="38,89765" OnBeforePrint="Memo2OnBeforePrint" Font.Charset="1" Font.Color="8421504" Font.Height="-29" Font.Name="Tahoma" Font.Style="1" HAlign="haRight" ParentFont="False" Text=""/>
|
|
||||||
<TfrxMemoView Name="NombreEmpresa" Left="0" Top="22,67718" Width="414,07885" Height="26,89765" OnBeforePrint="NombreEmpresaOnBeforePrint" Font.Charset="1" Font.Color="8421504" Font.Height="-19" Font.Name="Tahoma" Font.Style="1" ParentFont="False" Text=""/>
|
|
||||||
<TfrxMemoView Name="Memo7" Left="3,55906" Top="94,48825" Width="60,69295" Height="18,89765" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" ParentFont="False" Text="Página nº:"/>
|
|
||||||
<TfrxMemoView Name="Memo12" Left="67,5906" Top="94,48825" Width="78,26778" Height="18,89765" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Tahoma" Font.Style="1" ParentFont="False" Text="[<Pagina>] / [<TotalPaginas>]"/>
|
|
||||||
<TfrxShapeView Name="Shape1" Left="0" Top="168,18897638" Width="717,73228346" Height="119,18109016" Color="16777215" Frame.Color="8421504"/>
|
|
||||||
<TfrxMemoView Name="Memo10" Left="3,68491" Top="174,04731" Width="349,29159" Height="17,60637" DataSet="frxDBCabecera" DataSetName="frxDBCabecera" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Tahoma" Font.Style="1" ParentFont="False" Text="DIRECCIÓN DESTINO:"/>
|
|
||||||
<TfrxMemoView Name="DatosEmpresa" Left="0" Top="54,67718" Width="414,07885" Height="26,89765" OnBeforePrint="DatosEmpresaOnBeforePrint" Font.Charset="1" Font.Color="8421504" Font.Height="-16" Font.Name="Tahoma" Font.Style="1" ParentFont="False" Text=""/>
|
|
||||||
<TfrxMemoView Name="Memo5" Left="166,07885" Top="94,48825" Width="64,69295" Height="18,9" OnBeforePrint="Memo5OnBeforePrint" DataSet="frxDBCabecera" DataSetName="frxDBCabecera" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" ParentFont="False" Text="Nº albarán:"/>
|
|
||||||
<TfrxMemoView Name="Memo4" Left="3,55906" Top="119,11812" Width="64,69295" Height="18,67718" DataSet="frxDBCabecera" DataSetName="frxDBCabecera" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" ParentFont="False" Text="Proveedor:"/>
|
|
||||||
<TfrxMemoView Name="Memo11" Left="71,5906" Top="119,11812" Width="630,61441" Height="18,67718" DataSet="frxDBCabecera" DataSetName="frxDBCabecera" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Tahoma" Font.Style="1" ParentFont="False" Text="[frxDBCabecera."NOMBRE"]"/>
|
|
||||||
<TfrxMemoView Name="Memo3" Left="234,55133" Top="94,48825" Width="93,92115" Height="18,9" DataSet="frxDBCabecera" DataSetName="frxDBCabecera" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Tahoma" Font.Style="1" ParentFont="False" Text="[frxDBCabecera."REFERENCIA"]"/>
|
|
||||||
<TfrxMemoView Name="DireccionEnvio" Left="87,37013" Top="197,82684" Width="619,37044" Height="80,06624" OnBeforePrint="DireccionEnvioOnBeforePrint" StretchMode="smActualHeight" DataSet="frxDBCabecera" DataSetName="frxDBCabecera" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Tahoma" Font.Style="1" ParentFont="False" Text=""/>
|
|
||||||
<TfrxMemoView Name="Memo23" Left="134,72047" Top="297,20872" Width="583,7" Height="26,45669291" Color="16777215" Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="1" Frame.Color="8421504" Frame.Typ="12" HAlign="haCenter" ParentFont="False" VAlign="vaCenter" Text="Concepto"/>
|
|
||||||
<TfrxMemoView Name="Memo8" Left="76" Top="297,20872" Width="59,71653543" Height="26,45669291" Color="16777215" Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="1" Frame.Color="8421504" Frame.Typ="12" HAlign="haCenter" ParentFont="False" VAlign="vaCenter" Text="Cantidad"/>
|
|
||||||
<TfrxLineView Name="Line1" Left="718,5" Top="296,69299638" Width="0" Height="684" Frame.Color="8421504" Frame.Typ="1"/>
|
|
||||||
<TfrxMemoView Name="Memo13" Left="0" Top="297,20872" Width="76,2" Height="26,45669291" Color="16777215" Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="1" Frame.Color="8421504" Frame.Typ="12" HAlign="haCenter" ParentFont="False" VAlign="vaCenter" Text="Referencia"/>
|
|
||||||
<TfrxLineView Name="Line3" Left="76,2" Top="296,69299638" Width="0" Height="684" Frame.Color="8421504" Frame.Typ="1"/>
|
|
||||||
<TfrxLineView Name="Line5" Left="136,44094488" Top="296,69299638" Width="0" Height="684" Frame.Color="8421504" Frame.Typ="1"/>
|
|
||||||
<TfrxMemoView Name="Memo1" Left="340,1577" Top="94,48825" Width="83,81107" Height="18,9" OnBeforePrint="Memo1OnBeforePrint" DataSet="frxDBCabecera" DataSetName="frxDBCabecera" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" ParentFont="False" Text="Fecha albarán:"/>
|
|
||||||
<TfrxMemoView Name="Memo6" Left="427,7483" Top="94,48825" Width="93,92115" Height="18,9" DataSet="frxDBCabecera" DataSetName="frxDBCabecera" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Tahoma" Font.Style="1" ParentFont="False" Text="[frxDBCabecera."FECHA_ALBARAN"]"/>
|
|
||||||
<TfrxLineView Name="Line2" Left="0" Top="296,69299638" Width="0" Height="684" Frame.Color="8421504" Frame.Typ="1"/>
|
|
||||||
</TfrxPageHeader>
|
|
||||||
</TfrxReportPage>
|
|
||||||
</TfrxReport>
|
|
||||||
@ -1,21 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<TfrxReport Version="3.23.7" DotMatrixReport="False" EngineOptions.DoublePass="True" IniFile="\Software\Fast Reports" PreviewOptions.Buttons="4095" PreviewOptions.Zoom="1" PrintOptions.Printer="Por defecto" ReportOptions.CreateDate="39065,8724234954" ReportOptions.Description.Text="" ReportOptions.LastChange="39289,4026321875" ScriptLanguage="PascalScript" ScriptText.Text=" procedure NombreEmpresaOnBeforePrint(Sender: TfrxComponent); begin NombreEmpresa.Lines.Clear; NombreEmpresa.Lines.Add(<frxDBCabecera."NOMBRE_EMPRESA">); end; procedure TelefonosEmpresaOnBeforePrint(Sender: TfrxComponent); var Cadena: String; begin TelefonosEmpresa.Lines.Clear; if (<frxDBCabecera."TELEFONO_1_EMPRESA"> <> '') then Cadena := 'tlf: ' + <frxDBCabecera."TELEFONO_1_EMPRESA">; if (<frxDBCabecera."FAX_EMPRESA"> <> '') then Cadena := Cadena + ' / fax: ' + <frxDBCabecera."FAX_EMPRESA">; TelefonosEmpresa.Lines.Add(Cadena); end; procedure DireccionEmpresaOnBeforePrint(Sender: TfrxComponent); var Cadena: String; begin DireccionEmpresa.Lines.Clear; if (<frxDBCabecera."CALLE_EMPRESA"> <> '') then DireccionEmpresa.Lines.Add(<frxDBCabecera."CALLE_EMPRESA">); if (<frxDBCabecera."CODIGO_POSTAL_EMPRESA"> <> '') then Cadena := <frxDBCabecera."CODIGO_POSTAL_EMPRESA">; if (<frxDBCabecera."POBLACION_EMPRESA"> <> '') then Cadena := Cadena + ', ' + <frxDBCabecera."POBLACION_EMPRESA">; DireccionEmpresa.Lines.Add(Cadena); if (<frxDBCabecera."PROVINCIA_EMPRESA"> <> '') then DireccionEmpresa.Lines.Add(<frxDBCabecera."PROVINCIA_EMPRESA">); end; procedure Memo11OnBeforePrint(Sender: TfrxComponent); begin Memo11.Visible := (<withRefCliente> <> 0); end; begin end." ShowProgress="False" StoreInDFM="False" PropData="044C65667403A90003546F70021008446174617365747301010C3400000020446174615365743D22667278444243616265636572612220446174615365744E616D653D22667278444243616265636572612200010C3400000020446174615365743D226672784442446574616C6C65732220446174615365744E616D653D226672784442446574616C6C6573220000095661726961626C657301010C12000000204E616D653D22205661726961626C65732200010C16000000204E616D653D2277697468526566436C69656E7465220000055374796C6501010C7B000000204E616D653D225374796C65312220436F6C6F723D223533363837303931312220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D222D31363737373230382220466F6E742E4865696768743D222D32372220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D2230220000">
|
|
||||||
<TfrxReportPage Name="Page1" Font.Charset="1" Font.Color="0" Font.Height="-64" Font.Name="Arial" Font.Style="0" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="10" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
|
|
||||||
<TfrxMasterData Name="MasterData1" Height="515,3389" Left="0" Top="18,89765" Width="718,1107" ColumnWidth="0" ColumnGap="0" DataSet="frxDBDetalles" DataSetName="frxDBDetalles" RowCount="0" Stretched="True">
|
|
||||||
<TfrxMemoView Name="Memo14" Left="208,87415" Top="328,81911" Width="490,7483" Height="29,33859" StretchMode="smMaxHeight" DataSet="frxDBDetalles" DataSetName="frxDBDetalles" DisplayFormat.DecimalSeparator="," DisplayFormat.FormatStr="#0 " DisplayFormat.Kind="fkNumeric" Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Tahoma" Font.Style="0" GapY="3" HideZeros="True" LineSpacing="4" ParentFont="False" Text="[frxDBDetalles."REFERENCIA_PROVEEDOR"] "/>
|
|
||||||
<TfrxMemoView Name="Memo5" Left="113,16543" Top="226,7718" Width="87,14966" Height="26,45906" OnBeforePrint="Memo5OnBeforePrint" DataSet="frxDBCabecera" DataSetName="frxDBCabecera" Font.Charset="1" Font.Color="0" Font.Height="-16" Font.Name="Tahoma" Font.Style="0" ParentFont="False" Text="Nº albarán:"/>
|
|
||||||
<TfrxMemoView Name="Memo11" Left="208,31509" Top="264,5671" Width="494,55133" Height="56,69293291" OnBeforePrint="Memo11OnBeforePrint" DataSet="frxDBCabecera" DataSetName="frxDBCabecera" Font.Charset="1" Font.Color="0" Font.Height="-21" Font.Name="Tahoma" Font.Style="1" ParentFont="False" Text="[frxDBCabecera."REFERENCIA_CLIENTE"]"/>
|
|
||||||
<TfrxMemoView Name="Memo3" Left="208,25190748" Top="226,7718" Width="78,80303" Height="26,45906" DataSet="frxDBCabecera" DataSetName="frxDBCabecera" Font.Charset="1" Font.Color="0" Font.Height="-16" Font.Name="Tahoma" Font.Style="1" ParentFont="False" Text="[frxDBCabecera."REFERENCIA"]"/>
|
|
||||||
<TfrxMemoView Name="Memo16" Left="291,02381" Top="226,7718" Width="178,29932" Height="30,23859" OnBeforePrint="Memo9OnBeforePrint" DataSet="frxDBCabecera" DataSetName="frxDBCabecera" Font.Charset="1" Font.Color="0" Font.Height="-16" Font.Name="Tahoma" Font.Style="0" ParentFont="False" Text="Fecha prevista de envio:"/>
|
|
||||||
<TfrxMemoView Name="Memo17" Left="473,10266" Top="226,7718" Width="158,17316" Height="30,23859" DataSet="frxDBCabecera" DataSetName="frxDBCabecera" Font.Charset="1" Font.Color="0" Font.Height="-16" Font.Name="Tahoma" Font.Style="1" HideZeros="True" ParentFont="False" Text="[frxDBCabecera."FECHA_PREVISTA_ENVIO"]"/>
|
|
||||||
<TfrxMemoView Name="NombreEmpresa" Left="170,07885" Top="37,7953" Width="380,06308" Height="30,67718" OnBeforePrint="NombreEmpresaOnBeforePrint" Font.Charset="1" Font.Color="8421504" Font.Height="-19" Font.Name="Tahoma" Font.Style="1" ParentFont="False" Text=""/>
|
|
||||||
<TfrxMemoView Name="TelefonosEmpresa" Left="170,07885" Top="141,60637" Width="380,06308" Height="49,57483" OnBeforePrint="TelefonosEmpresaOnBeforePrint" Font.Charset="1" Font.Color="8421504" Font.Height="-19" Font.Name="Tahoma" Font.Style="0" ParentFont="False" Text=""/>
|
|
||||||
<TfrxMemoView Name="DireccionEmpresa" Left="170,07885" Top="68,03154" Width="380,06308" Height="72,25201" OnBeforePrint="DireccionEmpresaOnBeforePrint" Font.Charset="1" Font.Color="8421504" Font.Height="-19" Font.Name="Tahoma" Font.Style="0" ParentFont="False" Text=""/>
|
|
||||||
<TfrxMemoView Name="Memo1" Left="113,3859" Top="264,5671" Width="87,14966" Height="26,45906" OnBeforePrint="Memo5OnBeforePrint" DataSet="frxDBCabecera" DataSetName="frxDBCabecera" Font.Charset="1" Font.Color="0" Font.Height="-16" Font.Name="Tahoma" Font.Style="0" ParentFont="False" Text="Ref. cliente:"/>
|
|
||||||
<TfrxMemoView Name="Memo2" Left="113,3859" Top="328,81911" Width="94,70872" Height="26,45906" OnBeforePrint="Memo5OnBeforePrint" DataSet="frxDBCabecera" DataSetName="frxDBCabecera" Font.Charset="1" Font.Color="0" Font.Height="-16" Font.Name="Tahoma" Font.Style="0" ParentFont="False" Text="Ref. artículo:"/>
|
|
||||||
<TfrxMemoView Name="Memo4" Left="113,3859" Top="362,83488" Width="75,81107" Height="26,45906" OnBeforePrint="Memo5OnBeforePrint" DataSet="frxDBCabecera" DataSetName="frxDBCabecera" Font.Charset="1" Font.Color="0" Font.Height="-16" Font.Name="Tahoma" Font.Style="0" ParentFont="False" Text="Artículo:"/>
|
|
||||||
<TfrxMemoView Name="Memo6" Left="207,87415" Top="362,83488" Width="494,52783" Height="63,35436" StretchMode="smMaxHeight" DataSet="frxDBDetalles" DataSetName="frxDBDetalles" DisplayFormat.DecimalSeparator="," DisplayFormat.FormatStr="#0 " DisplayFormat.Kind="fkNumeric" Font.Charset="0" Font.Color="-16777208" Font.Height="-16" Font.Name="Tahoma" Font.Style="0" GapY="3" HideZeros="True" LineSpacing="4" ParentFont="False" Text="[frxDBDetalles."CONCEPTO"] "/>
|
|
||||||
<TfrxLineView Name="Line3" Left="2,23624" Top="472,44125" Width="716,75634" Height="0" Frame.Style="fsDot" Frame.Typ="4"/>
|
|
||||||
</TfrxMasterData>
|
|
||||||
</TfrxReportPage>
|
|
||||||
</TfrxReport>
|
|
||||||
@ -1,8 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<TfrxReport Version="3.23.7" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.Buttons="4095" PreviewOptions.Zoom="1" PrintOptions.Printer="Por defecto" ReportOptions.CreateDate="38330,7129042477" ReportOptions.Description.Text="" ReportOptions.LastChange="39363,8633537616" ScriptLanguage="PascalScript" ScriptText.Text="procedure Memo2OnBeforePrint(Sender: TfrxComponent); var Cadena: String; begin Memo2.Lines.Clear; Cadena:= UPPERCASE(<frxDBCabecera."NOMBRE">); Memo2.Lines.Add(Cadena); Cadena:= UPPERCASE(<frxDBCabecera."CALLE">); Memo2.Lines.Add(Cadena); Cadena:= UPPERCASE(<frxDBCabecera."CODIGO_POSTAL">); if (length(<frxDBCabecera."POBLACION">) > 0) then begin if (length(Cadena) > 0) then Cadena := Cadena + ', '; Cadena := Cadena + UPPERCASE(<frxDBCabecera."POBLACION">); end; Memo2.Lines.Add(Cadena); Cadena:= UPPERCASE(<frxDBCabecera."PROVINCIA">); Memo2.Lines.Add(Cadena); end; begin end." ShowProgress="False" StoreInDFM="False" PropData="044C65667403A90003546F70021008446174617365747301010C3400000020446174615365743D22667278444243616265636572612220446174615365744E616D653D2266727844424361626563657261220000095661726961626C65730100055374796C650100">
|
|
||||||
<TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="0" RightMargin="0" TopMargin="8" BottomMargin="8" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
|
|
||||||
<TfrxMasterData Name="MasterData1" Height="126" Left="0" Top="18,89765" Width="793,7013" Columns="2" ColumnWidth="378" ColumnGap="11" DataSet="frxDBCabecera" DataSetName="frxDBCabecera" RowCount="0">
|
|
||||||
<TfrxMemoView Name="Memo2" Left="25" Top="17,10235" Width="346" Height="114" OnBeforePrint="Memo2OnBeforePrint" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" HideZeros="True" ParentFont="False" VAlign="vaCenter" Text=" "/>
|
|
||||||
</TfrxMasterData>
|
|
||||||
</TfrxReportPage>
|
|
||||||
</TfrxReport>
|
|
||||||
@ -1,39 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<TfrxReport Version="3.23.7" DotMatrixReport="False" EngineOptions.DoublePass="True" IniFile="\Software\Fast Reports" PreviewOptions.Buttons="4095" PreviewOptions.Zoom="1" PrintOptions.Printer="Por defecto" ReportOptions.CreateDate="39065,8724234954" ReportOptions.Description.Text="" ReportOptions.LastChange="39352,7840438657" ScriptLanguage="PascalScript" ScriptText.Text=" procedure DatosEmpresaOnBeforePrint(Sender: TfrxComponent); var Cadena: String; begin DatosEmpresa.Lines.Clear; if (<frxDBCabecera."TELEFONO_1_EMPRESA"> <> '') then Cadena := 'TLF: ' + <frxDBCabecera."TELEFONO_1_EMPRESA">; if (<frxDBCabecera."FAX_EMPRESA"> <> '') then Cadena := Cadena + ' FAX: ' + <frxDBCabecera."FAX_EMPRESA">; DatosEmpresa.Lines.Add(Cadena); end; procedure NombreEmpresaOnBeforePrint(Sender: TfrxComponent); begin NombreEmpresa.Lines.Clear; NombreEmpresa.Lines.Add(<frxDBCabecera."NOMBRE_EMPRESA">); end; procedure DireccionEnvioOnBeforePrint(Sender: TfrxComponent); var ACadena : String; begin ACadena := ''; DireccionEnvio.Lines.Clear; if (<frxDBCabecera."NOMBRE_ALMACEN"> <> '') then DireccionEnvio.Lines.Add(<frxDBCabecera."NOMBRE_ALMACEN">); if (<frxDBCabecera."PERSONA_CONTACTO"> <> '') then DireccionEnvio.Lines.Add(<frxDBCabecera."PERSONA_CONTACTO">); DireccionEnvio.Lines.Add(<frxDBCabecera."CALLE">); if (<frxDBCabecera."CODIGO_POSTAL"> <> '') then ACadena := <frxDBCabecera."CODIGO_POSTAL"> + ' '; if (<frxDBCabecera."POBLACION"> <> '') then ACadena := ACadena + <frxDBCabecera."POBLACION">; if (ACadena <> '') then DireccionEnvio.Lines.Add(ACadena); if (<frxDBCabecera."PROVINCIA"> <> '') then DireccionEnvio.Lines.Add(<frxDBCabecera."PROVINCIA">); if (<frxDBCabecera."TELEFONO"> <> '') then DireccionEnvio.Lines.Add(<frxDBCabecera."TELEFONO">); end; procedure PageHeader1OnBeforePrint(Sender: TfrxComponent); begin if not Engine.FinalPass then Set('TotalPaginas', (<TotalPaginas> + 1)); if Engine.FinalPass then Set('Pagina', (<Pagina> + 1)); end; procedure frxReportOnStartReport(Sender: TfrxComponent); begin Set('Pagina', 0); Set('TotalPaginas', 0); end; begin end." ShowProgress="False" StoreInDFM="False" OnStartReport="frxReportOnStartReport" PropData="044C65667403A90003546F70021008446174617365747301010C3400000020446174615365743D22667278444243616265636572612220446174615365744E616D653D22667278444243616265636572612200010C3400000020446174615365743D226672784442446574616C6C65732220446174615365744E616D653D226672784442446574616C6C6573220000095661726961626C657301010C13000000204E616D653D2220506167696E6163696F6E2200010C14000000204E616D653D22546F74616C506167696E61732200010C0E000000204E616D653D22506167696E61220000055374796C650100">
|
|
||||||
<TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="10" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
|
|
||||||
<TfrxMasterData Name="MasterData1" Height="24" Left="0" Top="313,70099" Width="718,1107" ColumnWidth="0" ColumnGap="0" DataSet="frxDBDetalles" DataSetName="frxDBDetalles" RowCount="0" Stretched="True">
|
|
||||||
<TfrxRichView Name="MemoCampo12" ShiftMode="smWhenOverlapped" Left="137,5" Top="1,5" Width="580,5436" Height="18" StretchMode="smMaxHeight" DataField="CONCEPTO" DataSet="frxDBDetalles" DataSetName="frxDBDetalles" GapX="2" GapY="3" Wysiwyg="False" PropData="0852696368456469740A6C0000007B5C727466315C616E73695C616E7369637067313235325C64656666305C6465666C616E67333038327B5C666F6E7474626C7B5C66305C666E696C205461686F6D613B7D7D0D0A5C766965776B696E64345C7563315C706172645C66305C667331365C7061720D0A7D0D0A00"/>
|
|
||||||
<TfrxMemoView Name="MemoCampo2" Left="78" Top="1,5" Width="56,03148874" Height="18" StretchMode="smMaxHeight" DataSet="frxDBDetalles" DataSetName="frxDBDetalles" DisplayFormat.DecimalSeparator="," DisplayFormat.FormatStr="#0 " DisplayFormat.Kind="fkNumeric" Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" GapY="3" HAlign="haRight" HideZeros="True" LineSpacing="4" ParentFont="False" Style="Concepto normal" Text="[frxDBDetalles."CANTIDAD"]"/>
|
|
||||||
<TfrxMemoView Name="Memo14" Left="1" Top="1,5" Width="75" Height="18" StretchMode="smMaxHeight" DataSet="frxDBDetalles" DataSetName="frxDBDetalles" DisplayFormat.DecimalSeparator="," DisplayFormat.FormatStr="#0 " DisplayFormat.Kind="fkNumeric" Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" GapY="3" HAlign="haRight" HideZeros="True" LineSpacing="4" ParentFont="False" Style="Concepto normal" Text="[frxDBDetalles."REFERENCIA_PROVEEDOR"] "/>
|
|
||||||
</TfrxMasterData>
|
|
||||||
<TfrxPageFooter Name="PageFooter1" Height="72,87953" Left="0" Top="396,85065" Width="718,1107">
|
|
||||||
<TfrxLineView Name="Line4" Align="baCenter" Left="-0,94465" Top="0" Width="720" Height="0" Frame.Typ="4"/>
|
|
||||||
</TfrxPageFooter>
|
|
||||||
<TfrxPageHeader Name="PageHeader1" Height="232,44096685" Left="0" Top="18,89765" Width="718,1107" OnBeforePrint="PageHeader1OnBeforePrint">
|
|
||||||
<TfrxMemoView Name="Memo23" Left="134,72047" Top="206,94094" Width="583,7" Height="26,45669291" Color="16777215" Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="1" Frame.Color="8421504" Frame.Typ="15" HAlign="haCenter" ParentFont="False" VAlign="vaCenter" Text="Concepto"/>
|
|
||||||
<TfrxMemoView Name="Memo8" Left="76" Top="206,94094" Width="59,25726667" Height="26,45669291" Color="16777215" Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="1" Frame.Color="8421504" Frame.Typ="15" HAlign="haCenter" ParentFont="False" VAlign="vaCenter" Text="Cantidad"/>
|
|
||||||
<TfrxMemoView Name="Memo13" Left="0" Top="206,94094" Width="76,2" Height="26,45669291" Color="16777215" Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="1" Frame.Color="8421504" Frame.Typ="15" HAlign="haCenter" ParentFont="False" VAlign="vaCenter" Text="Referencia"/>
|
|
||||||
<TfrxShapeView Name="Shape2" Left="357,60637" Top="72,22047" Width="360,69295" Height="122,95671" Color="16777215" Frame.Color="8421504"/>
|
|
||||||
<TfrxMemoView Name="NombreEmpresa" Left="0" Top="4,22047" Width="414,07885" Height="26,89765" OnBeforePrint="NombreEmpresaOnBeforePrint" Font.Charset="1" Font.Color="8421504" Font.Height="-19" Font.Name="Tahoma" Font.Style="1" ParentFont="False" Text=""/>
|
|
||||||
<TfrxMemoView Name="Memo7" Left="362,61441" Top="79,81107" Width="68,69295" Height="18,89765" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Tahoma" Font.Style="1" ParentFont="False" Text="Página nº:"/>
|
|
||||||
<TfrxMemoView Name="Memo12" Left="438,86642" Top="79,81107" Width="278,58287" Height="18,89765" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Tahoma" Font.Style="1" ParentFont="False" Text="[<Pagina>] / [<TotalPaginas>]"/>
|
|
||||||
<TfrxShapeView Name="Shape1" Left="0" Top="72,22047" Width="357,92125984" Height="122,96062016" Color="16777215" Frame.Color="8421504"/>
|
|
||||||
<TfrxMemoView Name="Memo10" Left="3,68491" Top="76,22047" Width="349,29159" Height="17,60637" DataSet="frxDBCabecera" DataSetName="frxDBCabecera" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Tahoma" Font.Style="1" ParentFont="False" Text="DIRECCIÓN DESTINO:"/>
|
|
||||||
<TfrxMemoView Name="DatosEmpresa" Left="0" Top="36,22047" Width="414,07885" Height="26,89765" OnBeforePrint="DatosEmpresaOnBeforePrint" Font.Charset="1" Font.Color="8421504" Font.Height="-16" Font.Name="Tahoma" Font.Style="1" ParentFont="False" Text=""/>
|
|
||||||
<TfrxMemoView Name="Memo5" Left="362,61441" Top="101,35436" Width="98,92919" Height="18,67718" DataSet="frxDBCabecera" DataSetName="frxDBCabecera" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Tahoma" Font.Style="1" ParentFont="False" Text="Nº pedido:"/>
|
|
||||||
<TfrxMemoView Name="Memo4" Left="362,61441" Top="130,89765" Width="72,47248" Height="18,67718" DataSet="frxDBCabecera" DataSetName="frxDBCabecera" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Tahoma" Font.Style="1" ParentFont="False" Text="Proveedor:"/>
|
|
||||||
<TfrxMemoView Name="Memo11" Left="435,08689" Top="130,89765" Width="279,11812" Height="18,67718" DataSet="frxDBCabecera" DataSetName="frxDBCabecera" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Tahoma" Font.Style="1" ParentFont="False" Text="[frxDBCabecera."NOMBRE"]"/>
|
|
||||||
<TfrxMemoView Name="Memo3" Left="438,86642" Top="101,57483" Width="78,80303" Height="18,67718" DataSet="frxDBCabecera" DataSetName="frxDBCabecera" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Tahoma" Font.Style="1" ParentFont="False" Text="[frxDBCabecera."REFERENCIA"]"/>
|
|
||||||
<TfrxMemoView Name="DireccionEnvio" Left="4" Top="100,22047" Width="347,46475" Height="87,40483" OnBeforePrint="DireccionEnvioOnBeforePrint" StretchMode="smActualHeight" DataSet="frxDBCabecera" DataSetName="frxDBCabecera" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Tahoma" Font.Style="0" ParentFont="False" Text=""/>
|
|
||||||
<TfrxLineView Name="Line1" Left="718,5" Top="206,36222913" Width="0" Height="768,8947" Frame.Typ="1"/>
|
|
||||||
<TfrxLineView Name="Line2" Left="0" Top="206,36222913" Width="0" Height="768,8947" Frame.Typ="1"/>
|
|
||||||
<TfrxLineView Name="Line3" Left="76,2" Top="206,36222913" Width="0" Height="768,8947" Frame.Typ="1"/>
|
|
||||||
<TfrxLineView Name="Line5" Left="135,5" Top="206,36222913" Width="0" Height="768,8947" Frame.Typ="1"/>
|
|
||||||
<TfrxMemoView Name="Memo2" Left="365,92115" Top="18,89765" Width="347,93723" Height="38,89765" Font.Charset="1" Font.Color="8421504" Font.Height="-29" Font.Name="Tahoma" Font.Style="1" HAlign="haRight" ParentFont="False" Text="PEDIDO A PROVEEDOR"/>
|
|
||||||
<TfrxMemoView Name="Memo1" Left="521,57514" Top="102,04731" Width="46,01577" Height="18,67718" DataSet="frxDBCabecera" DataSetName="frxDBCabecera" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Tahoma" Font.Style="1" ParentFont="False" Text="Fecha:"/>
|
|
||||||
<TfrxMemoView Name="Memo6" Left="570,70903" Top="102,04731" Width="143,05504" Height="18,67718" DataSet="frxDBCabecera" DataSetName="frxDBCabecera" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Tahoma" Font.Style="1" HideZeros="True" ParentFont="False" Text="[frxDBCabecera."FECHA_PEDIDO"]"/>
|
|
||||||
<TfrxMemoView Name="Memo9" Left="362,83488" Top="154,96073" Width="30,89765" Height="18,67718" DataSet="frxDBCabecera" DataSetName="frxDBCabecera" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Tahoma" Font.Style="1" ParentFont="False" Text="Fax:"/>
|
|
||||||
<TfrxMemoView Name="Memo15" Left="396,85065" Top="154,96073" Width="316,91342" Height="18,67718" DataSet="frxDBCabecera" DataSetName="frxDBCabecera" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Tahoma" Font.Style="1" ParentFont="False" Text="[frxDBCabecera."FAX"]"/>
|
|
||||||
</TfrxPageHeader>
|
|
||||||
</TfrxReportPage>
|
|
||||||
</TfrxReport>
|
|
||||||
@ -1,55 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<TfrxReport Version="3.23.7" DotMatrixReport="False" EngineOptions.DoublePass="True" IniFile="\Software\Fast Reports" PreviewOptions.Buttons="4095" PreviewOptions.OutlineWidth="180" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" ReportOptions.CreateDate="37871,9953986921" ReportOptions.Description.Text="" ReportOptions.LastChange="39611,7728282292" ReportOptions.VersionBuild="1" ReportOptions.VersionMajor="12" ReportOptions.VersionMinor="13" ReportOptions.VersionRelease="1" ScriptLanguage="PascalScript" ScriptText.Text="procedure ReportSummary1OnBeforePrint(Sender: TfrxComponent); begin // Engine.CurY := Engine.CurY + Engine.FreeSpace - ReportSummary1.Height; end; procedure DatosEmpresaOnBeforePrint(Sender: TfrxComponent); var Cadena: String; begin DatosEmpresa.Lines.Clear; DatosEmpresa.Lines.Add(<frxDBCabecera."RAZON_SOCIAL">); DatosEmpresa.Lines.Add(<frxDBCabecera."CALLE_EMPRESA">); Cadena := ''; if (<frxDBCabecera."TELEFONO_1"> <> '') then Cadena := 'TLF: ' + <frxDBCabecera."TELEFONO_1">; if (<frxDBCabecera."FAX"> <> '') then Cadena := Cadena + ' FAX: ' + <frxDBCabecera."FAX">; DatosEmpresa.Lines.Add(Cadena); Cadena := ''; if (<frxDBCabecera."CODIGO_POSTAL_EMPRESA"> <> '') then Cadena := <frxDBCabecera."CODIGO_POSTAL_EMPRESA">; if (<frxDBCabecera."POBLACION_EMPRESA"> <> '') then Cadena := Cadena + ' ' + <frxDBCabecera."POBLACION_EMPRESA">; if (<frxDBCabecera."PROVINCIA_EMPRESA"> <> '') then Cadena := Cadena + ' - ' + <frxDBCabecera."PROVINCIA_EMPRESA">; DatosEmpresa.Lines.Add(Cadena); end; procedure Band2OnBeforePrint(Sender: TfrxComponent); begin if not Engine.FinalPass then Set('TotalPaginas', (<TotalPaginas> + 1)); if Engine.FinalPass then Set('Pagina', (<Pagina> + 1)); end; procedure frxReportOnStartReport(Sender: TfrxComponent); begin Set('Pagina', 0); Set('TotalPaginas', 0); end; procedure PageFooter1OnBeforePrint(Sender: TfrxComponent); begin if Engine.FinalPass and (<TotalPaginas> = <Pagina>)then begin eTotal.Visible := True; vTotal.Visible := True; Cuadro.Visible := True; end else begin eTotal.Visible := False; vTotal.Visible := False; Cuadro.Visible := False; end; end; begin end." ShowProgress="False" StoreInDFM="False" OnStartReport="frxReportOnStartReport" PropData="044C65667403A90003546F70021008446174617365747301010C3400000020446174615365743D22667278444243616265636572612220446174615365744E616D653D22667278444243616265636572612200010C3400000020446174615365743D226672784442446574616C6C65732220446174615365744E616D653D226672784442446574616C6C6573220000095661726961626C657301010C13000000204E616D653D2220506167696E6163696F6E2200010C0E000000204E616D653D22506167696E612200010C14000000204E616D653D22546F74616C506167696E6173220000055374796C6501010C85000000204E616D653D22436F6E636570746F206E6F726D616C2220436F6C6F723D223533363837303931312220466F6E742E436861727365743D22302220466F6E742E436F6C6F723D222D31363737373230382220466F6E742E4865696768743D222D31322220466F6E742E4E616D653D225461686F6D612220466F6E742E5374796C653D22302200010C87000000204E616D653D22436F6E636570746F20737562746F74616C2220436F6C6F723D223533363837303931312220466F6E742E436861727365743D22302220466F6E742E436F6C6F723D222D31363737373230382220466F6E742E4865696768743D222D31322220466F6E742E4E616D653D225461686F6D612220466F6E742E5374796C653D22312200010C97000000204E616D653D22436162656365726120646520636F6C756D6E612220436F6C6F723D2231353739303332302220466F6E742E436861727365743D22302220466F6E742E436F6C6F723D222D31363737373230382220466F6E742E4865696768743D222D31322220466F6E742E4E616D653D225461686F6D612220466F6E742E5374796C653D223122204672616D652E5479703D2231352200010C85000000204E616D653D22436F6E636570746F20746974756C6F2220436F6C6F723D223533363837303931312220466F6E742E436861727365743D22302220466F6E742E436F6C6F723D222D31363737373230382220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D225461686F6D612220466F6E742E5374796C653D2231220000">
|
|
||||||
<TfrxReportPage Name="Page1" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="10" RightMargin="10" TopMargin="10" BottomMargin="10" Columns="1" ColumnWidth="210" ColumnPositions.Text="0" PrintOnPreviousPage="True" HGuides.Text="" VGuides.Text="">
|
|
||||||
<TfrxPageHeader Name="Band2" Height="258,70866142" Left="0" Top="18,89765" Width="718,1107" OnBeforePrint="Band2OnBeforePrint">
|
|
||||||
<TfrxMemoView Name="Memo23" Left="3,77953" Top="228,5671" Width="92,22047" Height="26,45669291" Color="16777215" Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="1" Frame.Color="8421504" Frame.Typ="12" HAlign="haCenter" ParentFont="False" VAlign="vaCenter" Text="Ref. recibo"/>
|
|
||||||
<TfrxMemoView Name="Memo24" Left="564,69326" Top="228,5671" Width="153,41744" Height="26,45669291" Color="16777215" Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="1" Frame.Color="8421504" Frame.Typ="12" HAlign="haRight" ParentFont="False" VAlign="vaCenter" Text="Importe "/>
|
|
||||||
<TfrxPictureView Name="Picture1" Left="7,77953" Top="20,22047" Width="160,03598" Height="80,03154" OnBeforePrint="Picture1OnBeforePrint" DataField="LOGOTIPO" DataSet="frxDBCabecera" DataSetName="frxDBCabecera"/>
|
|
||||||
<TfrxMemoView Name="DatosEmpresa" Left="166,92919" Top="17,35436" Width="221,41744" Height="80,69295" OnBeforePrint="DatosEmpresaOnBeforePrint" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" ParentFont="False" Text=""/>
|
|
||||||
<TfrxShapeView Name="Shape1" Left="7,55906" Top="113,3859" Width="257,00804" Height="94,48825" Color="16777215" Frame.Color="8421504" Shape="skRoundRectangle"/>
|
|
||||||
<TfrxShapeView Name="Shape2" Left="325,48052" Top="113,3859" Width="393,07112" Height="94,48825" Color="16777215" Frame.Color="8421504" Shape="skRoundRectangle"/>
|
|
||||||
<TfrxMemoView Name="Memo16" Left="15,11812" Top="116,94496" Width="65,13389" Height="18,89765" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="Nº remesa:"/>
|
|
||||||
<TfrxMemoView Name="Memo17" Left="15,11812" Top="162,29932" Width="45,35436" Height="18,89765" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="Fecha:"/>
|
|
||||||
<TfrxMemoView Name="Memo18" Left="15,11812" Top="184,9765" Width="60,47248" Height="18,89765" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="Página nº:"/>
|
|
||||||
<TfrxMemoView Name="Memo3" Left="211,8859" Top="229,5671" Width="241,0671" Height="26,45669291" Color="16777215" Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="1" Frame.Color="8421504" Frame.Typ="12" HAlign="haCenter" ParentFont="False" VAlign="vaCenter" Text="Cliente"/>
|
|
||||||
<TfrxMemoView Name="Memo4" Left="453,953" Top="228,5671" Width="110,74026" Height="26,45669291" Color="16777215" Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="1" Frame.Color="8421504" Frame.Typ="12" HAlign="haCenter" ParentFont="False" VAlign="vaCenter" Text="NIF / CIF"/>
|
|
||||||
<TfrxMemoView Name="Memo5" Left="80,03154" Top="116,94496" Width="176,9765" Height="18,89765" DataSet="frxDBCabecera" DataSetName="frxDBCabecera" Text="[frxDBCabecera."REFERENCIA"]"/>
|
|
||||||
<TfrxMemoView Name="Memo6" Left="60,25201" Top="162,29932" Width="196,75603" Height="18,89765" DataSet="frxDBCabecera" DataSetName="frxDBCabecera" Text="[frxDBCabecera."FECHA_REMESA"]"/>
|
|
||||||
<TfrxMemoView Name="Memo7" Left="75,37013" Top="184,9765" Width="181,63791" Height="18,89765" Text="[<Pagina>] / [<TotalPaginas>]"/>
|
|
||||||
<TfrxMemoView Name="Memo15" Left="396,1577" Top="18,89765" Width="314,39394" Height="64,25201" Font.Charset="1" Font.Color="12632256" Font.Height="-48" Font.Name="Tahoma" Font.Style="1" Frame.Color="14211288" HAlign="haCenter" ParentFont="False" VAlign="vaCenter" Text="REMESA"/>
|
|
||||||
<TfrxMemoView Name="Memo8" Left="95,82158333" Top="228,66141732" Width="115,89765" Height="26,45669291" Color="16777215" Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="1" Frame.Color="8421504" Frame.Typ="12" HAlign="haCenter" ParentFont="False" VAlign="vaCenter" Text="Vencimiento"/>
|
|
||||||
<TfrxMemoView Name="Memo22" Left="15,11812" Top="139,84261" Width="68,91342" Height="18,89765" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="Descripción:"/>
|
|
||||||
<TfrxMemoView Name="Memo25" Left="87,5906" Top="139,84261" Width="169,41744" Height="18,89765" DataSet="frxDBCabecera" DataSetName="frxDBCabecera" Text="[frxDBCabecera."DESCRIPCION"]"/>
|
|
||||||
<TfrxMemoView Name="Memo19" Left="336,37817" Top="139,84261" Width="42,45671" Height="18,89765" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="Titular:"/>
|
|
||||||
<TfrxMemoView Name="Memo26" Left="382,39394" Top="139,84261" Width="331,93723" Height="18,89765" DataSet="frxDBCabecera" DataSetName="frxDBCabecera" Text="[frxDBCabecera."TITULAR"]"/>
|
|
||||||
<TfrxMemoView Name="Memo27" Left="336,37817" Top="117,16543" Width="176,9765" Height="18,89765" DataSet="frxDBCabecera" DataSetName="frxDBCabecera" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="Datos de la cuenta"/>
|
|
||||||
<TfrxMemoView Name="Memo28" Left="336,37817" Top="162,51979" Width="75,5906" Height="18,89765" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="Cód. entidad:"/>
|
|
||||||
<TfrxMemoView Name="Memo29" Left="415,52783" Top="162,51979" Width="53,13389" Height="18,89765" DataSet="frxDBCabecera" DataSetName="frxDBCabecera" Text="[frxDBCabecera."ENTIDAD"]"/>
|
|
||||||
<TfrxMemoView Name="Memo30" Left="472,44125" Top="162,51979" Width="83,14966" Height="18,89765" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="Cód. sucursal:"/>
|
|
||||||
<TfrxMemoView Name="Memo31" Left="559,14997" Top="162,51979" Width="147,62214" Height="18,89765" DataSet="frxDBCabecera" DataSetName="frxDBCabecera" Text="[frxDBCabecera."SUCURSAL"]"/>
|
|
||||||
<TfrxMemoView Name="Memo32" Left="336,37817" Top="185,19697" Width="26,45671" Height="18,89765" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="DC:"/>
|
|
||||||
<TfrxMemoView Name="Memo33" Left="366,39394" Top="185,19697" Width="34,23624" Height="18,89765" DataSet="frxDBCabecera" DataSetName="frxDBCabecera" Text="[frxDBCabecera."DC"]"/>
|
|
||||||
<TfrxMemoView Name="Memo34" Left="472,44125" Top="185,19697" Width="83,14966" Height="18,89765" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="Cód. cuenta:"/>
|
|
||||||
<TfrxMemoView Name="Memo37" Left="559,14997" Top="185,19697" Width="147,62214" Height="18,89765" DataSet="frxDBCabecera" DataSetName="frxDBCabecera" Text="[frxDBCabecera."CUENTA"]"/>
|
|
||||||
<TfrxLineView Name="Line2" Left="4" Top="229,54" Width="0" Height="774,803149606299" Frame.Color="8421504" Frame.Typ="1"/>
|
|
||||||
<TfrxLineView Name="Line5" Left="95,92146" Top="229,54" Width="0" Height="774,803149606299" Frame.Color="8421504" Frame.Typ="1"/>
|
|
||||||
<TfrxLineView Name="Line4" Left="453,9094" Top="229,54" Width="0" Height="774,803149606299" Frame.Color="8421504" Frame.Typ="1"/>
|
|
||||||
<TfrxLineView Name="Line3" Left="564,28346457" Top="229,54" Width="0" Height="774,803149606299" Frame.Color="8421504" Frame.Typ="1"/>
|
|
||||||
<TfrxLineView Name="Line1" Left="718" Top="229,54" Width="0" Height="774,803149606299" Frame.Color="8421504" Frame.Typ="1"/>
|
|
||||||
<TfrxLineView Name="Line9" Left="211,62461333" Top="229,54" Width="0" Height="774,803149606299" Frame.Color="8421504" Frame.Typ="1"/>
|
|
||||||
</TfrxPageHeader>
|
|
||||||
<TfrxMasterData Name="BandaDetalles" Height="19,11812" Left="0" Top="340,1577" Width="718,1107" AllowSplit="True" Columns="1" ColumnWidth="200" ColumnGap="20" DataSet="frxDBDetalles" DataSetName="frxDBDetalles" RowCount="0" Stretched="True">
|
|
||||||
<TfrxMemoView Name="MemPrecio" Left="460,40153087" Top="2" Width="101,56298724" Height="15,11811024" StretchMode="smMaxHeight" DataSet="frxDBDetalles" DataSetName="frxDBDetalles" DisplayFormat.DecimalSeparator="," DisplayFormat.FormatStr="#,0.00 € " DisplayFormat.Kind="fkNumeric" Font.Charset="0" Font.Color="-16777208" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" GapX="3" GapY="3" HideZeros="True" LineSpacing="4" ParentFont="False" Text="[frxDBDetalles."NIF_CIF_CLIENTE"]"/>
|
|
||||||
<TfrxMemoView Name="MemImpTotal" Left="566,36216811" Top="2" Width="147,16535189" Height="15,11811024" StretchMode="smMaxHeight" DataSet="frxDBDetalles" DataSetName="frxDBDetalles" DisplayFormat.DecimalSeparator="," DisplayFormat.FormatStr="#,0.00 € " DisplayFormat.Kind="fkNumeric" Font.Charset="0" Font.Color="-16777208" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" GapX="3" GapY="3" HAlign="haRight" LineSpacing="4" ParentFont="False" Text="[frxDBDetalles."IMPORTE_TOTAL"]"/>
|
|
||||||
<TfrxMemoView Name="MemCantidad" Left="218,46837457" Top="2" Width="229,44892874" Height="15,11811024" StretchMode="smMaxHeight" DataSet="frxDBDetalles" DataSetName="frxDBDetalles" DisplayFormat.DecimalSeparator="," DisplayFormat.FormatStr="#0 " DisplayFormat.Kind="fkNumeric" Font.Charset="0" Font.Color="-16777208" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" GapX="3" GapY="3" HideZeros="True" LineSpacing="4" ParentFont="False" Text="[frxDBDetalles."NOMBRE_CLIENTE"]"/>
|
|
||||||
<TfrxMemoView Name="Memo21" Left="99,22449" Top="2" Width="110,89765" Height="15,11812" DataSet="frxDBDetalles" DataSetName="frxDBDetalles" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" ParentFont="False" Text="[frxDBDetalles."FECHA_VENCIMIENTO"]"/>
|
|
||||||
<TfrxMemoView Name="Memo2" Left="6,18491" Top="2" Width="84" Height="15,11812" DataSet="frxDBDetalles" DataSetName="frxDBDetalles" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" ParentFont="False" Text="[frxDBDetalles."REFERENCIA"]"/>
|
|
||||||
</TfrxMasterData>
|
|
||||||
<TfrxPageFooter Name="PageFooter1" Height="42,70866142" Left="0" Top="419,52783" Width="718,1107" OnBeforePrint="PageFooter1OnBeforePrint">
|
|
||||||
<TfrxShapeView Name="Cuadro" Left="3,77953" Top="0" Width="714,708661417323" Height="28,88188" Color="16777215" Frame.Color="8421504"/>
|
|
||||||
<TfrxMemoView Name="vtotal" Left="566,9295" Top="3,77953000000002" Width="147,87415" Height="22,89765" DataSet="frxDBCabecera" DataSetName="frxDBCabecera" DisplayFormat.DecimalSeparator="," DisplayFormat.FormatStr="#,0.00 €" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Tahoma" Font.Style="1" HAlign="haRight" ParentFont="False" VAlign="vaCenter" Text="[frxDBCabecera."IMPORTE_TOTAL"]"/>
|
|
||||||
<TfrxMemoView Name="etotal" Left="430,86642" Top="6,67718000000002" Width="132" Height="16" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Tahoma" Font.Style="1" HAlign="haRight" ParentFont="False" VAlign="vaCenter" Text="Total remesa:"/>
|
|
||||||
<TfrxLineView Name="Linea" Left="3,77953" Top="0" Width="714,330708661417" Height="0" Frame.Typ="4"/>
|
|
||||||
</TfrxPageFooter>
|
|
||||||
</TfrxReportPage>
|
|
||||||
</TfrxReport>
|
|
||||||
@ -1,64 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<TfrxReport Version="3.23.7" DotMatrixReport="False" EngineOptions.DoublePass="True" IniFile="\Software\Fast Reports" PreviewOptions.Buttons="4095" PreviewOptions.OutlineWidth="180" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" ReportOptions.CreateDate="37871,9953986921" ReportOptions.Description.Text="" ReportOptions.LastChange="39611,7817196528" ReportOptions.VersionBuild="1" ReportOptions.VersionMajor="12" ReportOptions.VersionMinor="13" ReportOptions.VersionRelease="1" ScriptLanguage="PascalScript" ScriptText.Text=" procedure DatosEmpresaOnBeforePrint(Sender: TfrxComponent); var Cadena: String; begin DatosEmpresa.Lines.Clear; DatosEmpresa.Lines.Add(<frxDBCabecera."RAZON_SOCIAL">); DatosEmpresa.Lines.Add(<frxDBCabecera."CALLE_EMPRESA">); Cadena := ''; if (<frxDBCabecera."TELEFONO_1"> <> '') then Cadena := 'TLF: ' + <frxDBCabecera."TELEFONO_1">; if (<frxDBCabecera."FAX"> <> '') then Cadena := Cadena + ' FAX: ' + <frxDBCabecera."FAX">; DatosEmpresa.Lines.Add(Cadena); Cadena := ''; if (<frxDBCabecera."CODIGO_POSTAL_EMPRESA"> <> '') then Cadena := <frxDBCabecera."CODIGO_POSTAL_EMPRESA">; if (<frxDBCabecera."POBLACION_EMPRESA"> <> '') then Cadena := Cadena + ' ' + <frxDBCabecera."POBLACION_EMPRESA">; if (<frxDBCabecera."PROVINCIA_EMPRESA"> <> '') then Cadena := Cadena + ' - ' + <frxDBCabecera."PROVINCIA_EMPRESA">; DatosEmpresa.Lines.Add(Cadena); end; procedure Band2OnBeforePrint(Sender: TfrxComponent); begin if not Engine.FinalPass then Set('TotalPaginas', (<TotalPaginas> + 1)); if Engine.FinalPass then Set('Pagina', (<Pagina> + 1)); end; procedure frxReportOnStartReport(Sender: TfrxComponent); begin Set('Pagina', 0); Set('TotalPaginas', 0); end; procedure PageFooter1OnBeforePrint(Sender: TfrxComponent); begin if Engine.FinalPass and (<TotalPaginas> = <Pagina>) then begin Cuadro.Visible := True; eTotal.Visible := True; vTotal.Visible := True; end else begin Cuadro.Visible := False; eTotal.Visible := False; vTotal.Visible := False; end; end; begin end." ShowProgress="False" StoreInDFM="False" OnStartReport="frxReportOnStartReport" PropData="044C65667403A90003546F70021008446174617365747301010C3400000020446174615365743D22667278444243616265636572612220446174615365744E616D653D22667278444243616265636572612200010C1C00000020446174615365744E616D653D226672784442446574616C6C6573220000095661726961626C657301010C13000000204E616D653D2220506167696E6163696F6E2200010C0E000000204E616D653D22506167696E612200010C14000000204E616D653D22546F74616C506167696E6173220000055374796C6501010C85000000204E616D653D22436F6E636570746F206E6F726D616C2220436F6C6F723D223533363837303931312220466F6E742E436861727365743D22302220466F6E742E436F6C6F723D222D31363737373230382220466F6E742E4865696768743D222D31322220466F6E742E4E616D653D225461686F6D612220466F6E742E5374796C653D22302200010C87000000204E616D653D22436F6E636570746F20737562746F74616C2220436F6C6F723D223533363837303931312220466F6E742E436861727365743D22302220466F6E742E436F6C6F723D222D31363737373230382220466F6E742E4865696768743D222D31322220466F6E742E4E616D653D225461686F6D612220466F6E742E5374796C653D22312200010C97000000204E616D653D22436162656365726120646520636F6C756D6E612220436F6C6F723D2231353739303332302220466F6E742E436861727365743D22302220466F6E742E436F6C6F723D222D31363737373230382220466F6E742E4865696768743D222D31322220466F6E742E4E616D653D225461686F6D612220466F6E742E5374796C653D223122204672616D652E5479703D2231352200010C85000000204E616D653D22436F6E636570746F20746974756C6F2220436F6C6F723D223533363837303931312220466F6E742E436861727365743D22302220466F6E742E436F6C6F723D222D31363737373230382220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D225461686F6D612220466F6E742E5374796C653D2231220000">
|
|
||||||
<TfrxReportPage Name="Page1" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="1" Orientation="poLandscape" PaperWidth="297" PaperHeight="210" PaperSize="9" LeftMargin="10" RightMargin="10" TopMargin="10" BottomMargin="10" Columns="1" ColumnWidth="210" ColumnPositions.Text="0" PrintOnPreviousPage="True" HGuides.Text="" VGuides.Text="">
|
|
||||||
<TfrxPageHeader Name="Band2" Height="258,70866142" Left="0" Top="18,89765" Width="1046,92981" OnBeforePrint="Band2OnBeforePrint">
|
|
||||||
<TfrxMemoView Name="Memo23" Left="3,77953" Top="228,5671" Width="80,88188" Height="26,45669291" Color="16777215" Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="1" Frame.Color="8421504" Frame.Typ="12" HAlign="haCenter" ParentFont="False" VAlign="vaCenter" Text="Ref. recibo"/>
|
|
||||||
<TfrxMemoView Name="Memo24" Left="887,95856667" Top="228,5671" Width="158,97124333" Height="26,45669291" Color="16777215" Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="1" Frame.Color="8421504" Frame.Typ="12" HAlign="haRight" ParentFont="False" VAlign="vaCenter" Text="Importe "/>
|
|
||||||
<TfrxPictureView Name="Picture1" Left="7,77953" Top="20,22047" Width="160,03598" Height="80,03154" OnBeforePrint="Picture1OnBeforePrint" DataField="LOGOTIPO" DataSet="frxDBCabecera" DataSetName="frxDBCabecera"/>
|
|
||||||
<TfrxMemoView Name="DatosEmpresa" Left="166,92919" Top="17,35436" Width="221,41744" Height="80,69295" OnBeforePrint="DatosEmpresaOnBeforePrint" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" ParentFont="False" Text=""/>
|
|
||||||
<TfrxShapeView Name="Shape1" Left="7,55906" Top="113,3859" Width="257,00804" Height="94,48825" Color="16777215" Frame.Color="8421504" Shape="skRoundRectangle"/>
|
|
||||||
<TfrxShapeView Name="Shape2" Left="639,181510000002" Top="113,3859" Width="393,07112" Height="94,48825" Color="16777215" Frame.Color="8421504" Shape="skRoundRectangle"/>
|
|
||||||
<TfrxMemoView Name="Memo16" Left="15,11812" Top="116,94496" Width="65,13389" Height="18,89765" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="Nº remesa:"/>
|
|
||||||
<TfrxMemoView Name="Memo17" Left="15,11812" Top="162,29932" Width="45,35436" Height="18,89765" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="Fecha:"/>
|
|
||||||
<TfrxMemoView Name="Memo18" Left="15,11812" Top="184,9765" Width="60,47248" Height="18,89765" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="Página nº:"/>
|
|
||||||
<TfrxMemoView Name="Memo3" Left="303,59462" Top="228,5671" Width="225,94898" Height="26,45669291" Color="16777215" Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="1" Frame.Color="8421504" Frame.Typ="12" HAlign="haCenter" ParentFont="False" VAlign="vaCenter" Text="Proveedor"/>
|
|
||||||
<TfrxMemoView Name="Memo4" Left="530,21026667" Top="228,5671" Width="133,41744" Height="26,45669291" Color="16777215" Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="1" Frame.Color="8421504" Frame.Typ="12" HAlign="haCenter" ParentFont="False" VAlign="vaCenter" Text="NIF / CIF"/>
|
|
||||||
<TfrxMemoView Name="Memo5" Left="80,03154" Top="116,94496" Width="176,9765" Height="18,89765" DataSet="frxDBCabecera" DataSetName="frxDBCabecera" Text="[frxDBCabecera."REFERENCIA"]"/>
|
|
||||||
<TfrxMemoView Name="Memo6" Left="60,25201" Top="162,29932" Width="196,75603" Height="18,89765" DataSet="frxDBCabecera" DataSetName="frxDBCabecera" Text="[frxDBCabecera."FECHA_REMESA"]"/>
|
|
||||||
<TfrxMemoView Name="Memo7" Left="75,37013" Top="184,9765" Width="181,63791" Height="18,89765" Text="[<Pagina>] / [<TotalPaginas>]"/>
|
|
||||||
<TfrxLineView Name="Line1" Left="1046,81911" Top="229,54" Width="0" Height="459,212598425197" Frame.Color="8421504" Frame.Typ="1"/>
|
|
||||||
<TfrxMemoView Name="Memo15" Left="464,18924" Top="18,89765" Width="567,62245" Height="64,25201" Font.Charset="1" Font.Color="12632256" Font.Height="-48" Font.Name="Tahoma" Font.Style="1" Frame.Color="14211288" HAlign="haCenter" ParentFont="False" VAlign="vaCenter" Text="REMESA"/>
|
|
||||||
<TfrxLineView Name="Line2" Left="4" Top="229,54" Width="0" Height="459,212598425197" Frame.Color="8421504" Frame.Typ="1"/>
|
|
||||||
<TfrxLineView Name="Line5" Left="84,58287" Top="228,20666667" Width="0" Height="459,212598425197" Frame.Color="8421504" Frame.Typ="1"/>
|
|
||||||
<TfrxLineView Name="Line4" Left="530,16666667" Top="229,54" Width="0" Height="459,212598425197" Frame.Color="8421504" Frame.Typ="1"/>
|
|
||||||
<TfrxMemoView Name="Memo8" Left="195,86889333" Top="228,66141732" Width="107,33859" Height="26,45669291" Color="16777215" Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="1" Frame.Color="8421504" Frame.Typ="12" HAlign="haCenter" ParentFont="False" VAlign="vaCenter" Text="Vencimiento"/>
|
|
||||||
<TfrxLineView Name="Line9" Left="304" Top="228,43568333" Width="0" Height="459,212598425197" Frame.Color="8421504" Frame.Typ="1"/>
|
|
||||||
<TfrxMemoView Name="Memo22" Left="15,11812" Top="139,84261" Width="68,91342" Height="18,89765" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="Descripción:"/>
|
|
||||||
<TfrxMemoView Name="Memo25" Left="87,5906" Top="139,84261" Width="169,41744" Height="18,89765" DataSet="frxDBCabecera" DataSetName="frxDBCabecera" Text="[frxDBCabecera."DESCRIPCION"]"/>
|
|
||||||
<TfrxMemoView Name="Memo19" Left="650,079160000002" Top="139,84261" Width="42,45671" Height="18,89765" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="Titular:"/>
|
|
||||||
<TfrxMemoView Name="Memo26" Left="696,094930000002" Top="139,84261" Width="331,93723" Height="18,89765" DataSet="frxDBCabecera" DataSetName="frxDBCabecera" Text="[frxDBCabecera."TITULAR"]"/>
|
|
||||||
<TfrxMemoView Name="Memo27" Left="650,079160000002" Top="117,16543" Width="176,9765" Height="18,89765" DataSet="frxDBCabecera" DataSetName="frxDBCabecera" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="Datos de la cuenta"/>
|
|
||||||
<TfrxMemoView Name="Memo28" Left="650,079160000002" Top="162,51979" Width="75,5906" Height="18,89765" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="Cód. entidad:"/>
|
|
||||||
<TfrxMemoView Name="Memo29" Left="729,228820000002" Top="162,51979" Width="53,13389" Height="18,89765" DataSet="frxDBCabecera" DataSetName="frxDBCabecera" Text="[frxDBCabecera."ENTIDAD"]"/>
|
|
||||||
<TfrxMemoView Name="Memo30" Left="786,142240000002" Top="162,51979" Width="83,14966" Height="18,89765" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="Cód. sucursal:"/>
|
|
||||||
<TfrxMemoView Name="Memo31" Left="872,850960000002" Top="162,51979" Width="147,62214" Height="18,89765" DataSet="frxDBCabecera" DataSetName="frxDBCabecera" Text="[frxDBCabecera."SUCURSAL"]"/>
|
|
||||||
<TfrxMemoView Name="Memo32" Left="650,079160000002" Top="185,19697" Width="26,45671" Height="18,89765" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="DC:"/>
|
|
||||||
<TfrxMemoView Name="Memo33" Left="680,094930000002" Top="185,19697" Width="34,23624" Height="18,89765" DataSet="frxDBCabecera" DataSetName="frxDBCabecera" Text="[frxDBCabecera."DC"]"/>
|
|
||||||
<TfrxMemoView Name="Memo34" Left="786,142240000002" Top="185,19697" Width="83,14966" Height="18,89765" Font.Charset="1" Font.Color="0" Font.Height="-12" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="Cód. cuenta:"/>
|
|
||||||
<TfrxMemoView Name="Memo37" Left="872,850960000002" Top="185,19697" Width="147,62214" Height="18,89765" DataSet="frxDBCabecera" DataSetName="frxDBCabecera" Text="[frxDBCabecera."CUENTA"]"/>
|
|
||||||
<TfrxMemoView Name="Memo11" Left="663,41775" Top="228,10513333" Width="224,12616" Height="27,2125984251969" Color="16777215" Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="1" Frame.Color="8421504" Frame.Typ="12" HAlign="haCenter" ParentFont="False" VAlign="vaCenter" Text="Número de cuenta"/>
|
|
||||||
<TfrxLineView Name="Line7" Left="888,18955" Top="228,7718" Width="0" Height="459,212598425197" Frame.Color="8421504" Frame.Typ="1"/>
|
|
||||||
<TfrxMemoView Name="Memo36" Left="86,26252333" Top="228,66141732" Width="111,11812" Height="26,45669291" Color="16777215" Font.Charset="0" Font.Color="-16777208" Font.Height="-12" Font.Name="Tahoma" Font.Style="1" Frame.Color="8421504" Frame.Typ="12" HAlign="haCenter" ParentFont="False" VAlign="vaCenter" Text="Ref. factura prov."/>
|
|
||||||
<TfrxLineView Name="Line8" Left="195,78478667" Top="229,10235" Width="0" Height="459,212598425197" Frame.Color="8421504" Frame.Typ="1"/>
|
|
||||||
<TfrxLineView Name="Line3" Left="664,55124457" Top="228,87333333" Width="0" Height="459,212598425197" Frame.Color="8421504" Frame.Typ="1"/>
|
|
||||||
</TfrxPageHeader>
|
|
||||||
<TfrxMasterData Name="BandaDetalles" Height="19,11812" Left="0" Top="340,1577" Width="1046,92981" AllowSplit="True" Columns="1" ColumnWidth="200" ColumnGap="20" DataSetName="frxDBDetalles" RowCount="0" Stretched="True">
|
|
||||||
<TfrxMemoView Name="MemPrecio" Left="548,6640542" Top="2,66666666999998" Width="109,12204724" Height="15,11811024" StretchMode="smMaxHeight" DataSetName="frxDBDetalles" DisplayFormat.DecimalSeparator="," DisplayFormat.FormatStr="#,0.00 € " DisplayFormat.Kind="fkNumeric" Font.Charset="0" Font.Color="-16777208" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" GapX="3" GapY="3" HideZeros="True" LineSpacing="4" ParentFont="False" Text="[frxDBDetalles."NIF_CIF_PROVEEDOR"]"/>
|
|
||||||
<TfrxMemoView Name="MemImpTotal" Left="895,18127811" Top="2" Width="147,16535189" Height="15,11811024" StretchMode="smMaxHeight" DataSetName="frxDBDetalles" DisplayFormat.DecimalSeparator="," DisplayFormat.FormatStr="#,0.00 € " DisplayFormat.Kind="fkNumeric" Font.Charset="0" Font.Color="-16777208" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" GapX="3" GapY="3" HAlign="haRight" LineSpacing="4" ParentFont="False" Text="[frxDBDetalles."IMPORTE_TOTAL"]"/>
|
|
||||||
<TfrxMemoView Name="MemCantidad" Left="310,5104279" Top="2" Width="214,33080874" Height="15,11811024" StretchMode="smMaxHeight" DataSetName="frxDBDetalles" DisplayFormat.DecimalSeparator="," DisplayFormat.FormatStr="#0 " DisplayFormat.Kind="fkNumeric" Font.Charset="0" Font.Color="-16777208" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" GapX="3" GapY="3" HideZeros="True" LineSpacing="4" ParentFont="False" Text="[frxDBDetalles."NOMBRE_PROVEEDOR"]"/>
|
|
||||||
<TfrxMemoView Name="Memo21" Left="213,94372333" Top="2" Width="84,44094" Height="15,11812" DataSetName="frxDBDetalles" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" ParentFont="False" Text="[frxDBDetalles."FECHA_VENCIMIENTO"]"/>
|
|
||||||
<TfrxMemoView Name="Memo2" Left="9,96444" Top="2" Width="61,32282" Height="15,11812" DataSetName="frxDBDetalles" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" ParentFont="False" Text="[frxDBDetalles."REFERENCIA"]"/>
|
|
||||||
<TfrxMemoView Name="Memo12" Left="696,10018667" Top="2,44619667000001" Width="29,75191724" Height="15,11811024" StretchMode="smMaxHeight" DataSetName="frxDBDetalles" DisplayFormat.DecimalSeparator="," Font.Charset="0" Font.Color="-16777208" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" GapX="3" GapY="3" HideZeros="True" LineSpacing="4" ParentFont="False" Text="[frxDBDetalles."ENTIDAD_PROVEEDOR"]"/>
|
|
||||||
<TfrxMemoView Name="Memo14" Left="731,89548667" Top="2,66666666999998" Width="29,75191724" Height="15,11811024" StretchMode="smMaxHeight" DataSetName="frxDBDetalles" DisplayFormat.DecimalSeparator="," DisplayFormat.FormatStr="#,0.00 € " Font.Charset="0" Font.Color="-16777208" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" GapX="3" GapY="3" HideZeros="True" LineSpacing="4" ParentFont="False" Text="[frxDBDetalles."SUCURSAL_PROVEEDOR"]"/>
|
|
||||||
<TfrxMemoView Name="Memo20" Left="766,79839333" Top="2,66666665999998" Width="18,41332724" Height="15,11811024" StretchMode="smMaxHeight" DataSetName="frxDBDetalles" DisplayFormat.DecimalSeparator="," DisplayFormat.FormatStr="#,0.00 € " Font.Charset="0" Font.Color="-16777208" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" GapX="3" GapY="3" HideZeros="True" LineSpacing="4" ParentFont="False" Text="[frxDBDetalles."DC_PROVEEDOR"]"/>
|
|
||||||
<TfrxMemoView Name="Memo35" Left="789,92177" Top="2,66666666999998" Width="82,66533724" Height="15,11811024" StretchMode="smMaxHeight" DataSetName="frxDBDetalles" DisplayFormat.DecimalSeparator="," DisplayFormat.FormatStr="#,0.00 € " Font.Charset="0" Font.Color="-16777208" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" GapX="3" GapY="3" HideZeros="True" LineSpacing="4" ParentFont="False" Text="[frxDBDetalles."CUENTA_PROVEEDOR"]"/>
|
|
||||||
<TfrxMemoView Name="Memo39" Left="88,92919" Top="2" Width="106,67718" Height="15,11812" DataSetName="frxDBDetalles" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" ParentFont="False" Text="[frxDBDetalles."REFERENCIA_FACTURA_PROV"]"/>
|
|
||||||
</TfrxMasterData>
|
|
||||||
<TfrxPageFooter Name="PageFooter1" Height="30,23624" Left="0" Top="419,52783" Width="1046,92981" OnBeforePrint="PageFooter1OnBeforePrint">
|
|
||||||
<TfrxShapeView Name="Cuadro" Left="3,77953" Top="0" Width="1042,81911" Height="28,88188" Color="16777215" Frame.Color="8421504"/>
|
|
||||||
<TfrxMemoView Name="vTotal" Left="923,93723" Top="1,10235" Width="117,63791" Height="22,89765" DataSet="frxDBCabecera" DataSetName="frxDBCabecera" DisplayFormat.DecimalSeparator="," DisplayFormat.FormatStr="#,0.00 €" DisplayFormat.Kind="fkNumeric" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Tahoma" Font.Style="1" HAlign="haRight" ParentFont="False" VAlign="vaCenter" Text="[frxDBCabecera."IMPORTE_TOTAL"]"/>
|
|
||||||
<TfrxMemoView Name="eTotal" Left="784,09462" Top="7,77953000000002" Width="132" Height="16" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Tahoma" Font.Style="1" HAlign="haRight" ParentFont="False" VAlign="vaCenter" Text="Total remesa:"/>
|
|
||||||
<TfrxLineView Name="Line6" Left="3,77953" Top="0" Width="1043,14960629921" Height="0" Frame.Typ="4"/>
|
|
||||||
</TfrxPageFooter>
|
|
||||||
</TfrxReportPage>
|
|
||||||
</TfrxReport>
|
|
||||||
@ -8,9 +8,7 @@
|
|||||||
<Option Name="GUID">{D1967178-5EBB-46B2-893F-E0CADFEDD466}</Option>
|
<Option Name="GUID">{D1967178-5EBB-46B2-893F-E0CADFEDD466}</Option>
|
||||||
</Option>
|
</Option>
|
||||||
</PersonalityInfo>
|
</PersonalityInfo>
|
||||||
<Default.Personality>
|
<Default.Personality> <Projects>
|
||||||
|
|
||||||
<Projects>
|
|
||||||
<Projects Name="DataAbstract_D10.bpl">..\..\DataAbstract_D10\DataAbstract_D10.bdsproj</Projects>
|
<Projects Name="DataAbstract_D10.bpl">..\..\DataAbstract_D10\DataAbstract_D10.bdsproj</Projects>
|
||||||
<Projects Name="Base.bpl">..\..\Base\Base.bdsproj</Projects>
|
<Projects Name="Base.bpl">..\..\Base\Base.bdsproj</Projects>
|
||||||
<Projects Name="ControllerBase.bpl">..\..\Base\ControllerBase\ControllerBase.bdsproj</Projects>
|
<Projects Name="ControllerBase.bpl">..\..\Base\ControllerBase\ControllerBase.bdsproj</Projects>
|
||||||
@ -25,9 +23,10 @@
|
|||||||
<Projects Name="AlbCli_FacCli_relation.bpl">..\Relaciones\Albaranes de cliente - Facturas de cliente\AlbCli_FacCli_relation.bdsproj</Projects>
|
<Projects Name="AlbCli_FacCli_relation.bpl">..\Relaciones\Albaranes de cliente - Facturas de cliente\AlbCli_FacCli_relation.bdsproj</Projects>
|
||||||
<Projects Name="AlbaranesCliente_view.bpl">Views\AlbaranesCliente_view.bdsproj</Projects>
|
<Projects Name="AlbaranesCliente_view.bpl">Views\AlbaranesCliente_view.bdsproj</Projects>
|
||||||
<Projects Name="AlbaranesCliente_plugin.bpl">Plugin\AlbaranesCliente_plugin.bdsproj</Projects>
|
<Projects Name="AlbaranesCliente_plugin.bpl">Plugin\AlbaranesCliente_plugin.bdsproj</Projects>
|
||||||
|
<Projects Name="FacturasCliente_view.bpl">..\Facturas de cliente\Views\FacturasCliente_view.bdsproj</Projects>
|
||||||
<Projects Name="FactuGES_Server.exe">..\..\Servidor\FactuGES_Server.bdsproj</Projects>
|
<Projects Name="FactuGES_Server.exe">..\..\Servidor\FactuGES_Server.bdsproj</Projects>
|
||||||
<Projects Name="FactuGES.exe">..\..\Cliente\FactuGES.bdsproj</Projects>
|
<Projects Name="FactuGES.exe">..\..\Cliente\FactuGES.bdsproj</Projects>
|
||||||
<Projects Name="Targets">DataAbstract_D10.bpl Base.bpl ControllerBase.bpl GUIBase.bpl Contactos_view.bpl Articulos_view.bpl AlbaranesCliente_model.bpl AlbaranesCliente_data.bpl AlbaranesCliente_controller.bpl FacturasCliente_controller.bpl PedCli_AlbCli_relation.bpl AlbCli_FacCli_relation.bpl AlbaranesCliente_view.bpl AlbaranesCliente_plugin.bpl FactuGES_Server.exe FactuGES.exe</Projects>
|
<Projects Name="Targets">DataAbstract_D10.bpl Base.bpl ControllerBase.bpl GUIBase.bpl Contactos_view.bpl Articulos_view.bpl AlbaranesCliente_model.bpl AlbaranesCliente_data.bpl AlbaranesCliente_controller.bpl FacturasCliente_controller.bpl PedCli_AlbCli_relation.bpl AlbCli_FacCli_relation.bpl AlbaranesCliente_view.bpl AlbaranesCliente_plugin.bpl FacturasCliente_view.bpl FactuGES_Server.exe FactuGES.exe</Projects>
|
||||||
</Projects>
|
</Projects>
|
||||||
<Dependencies/>
|
<Dependencies/>
|
||||||
</Default.Personality>
|
</Default.Personality>
|
||||||
|
|||||||
@ -54,7 +54,6 @@ contains
|
|||||||
uAlbaranesClienteReportController in 'uAlbaranesClienteReportController.pas',
|
uAlbaranesClienteReportController in 'uAlbaranesClienteReportController.pas',
|
||||||
uIEditorAlbaranesClientePreview in 'View\uIEditorAlbaranesClientePreview.pas',
|
uIEditorAlbaranesClientePreview in 'View\uIEditorAlbaranesClientePreview.pas',
|
||||||
uIEditorAlbaranesDevCliente in 'View\uIEditorAlbaranesDevCliente.pas',
|
uIEditorAlbaranesDevCliente in 'View\uIEditorAlbaranesDevCliente.pas',
|
||||||
uIEditorAlbaranDevCliente in 'View\uIEditorAlbaranDevCliente.pas',
|
uIEditorAlbaranDevCliente in 'View\uIEditorAlbaranDevCliente.pas';
|
||||||
uIDialogListaAlbaranesCliEnvioEMail in 'View\uIDialogListaAlbaranesCliEnvioEMail.pas';
|
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
|||||||
@ -1,21 +0,0 @@
|
|||||||
unit uIDialogListaAlbaranesCliEnvioEMail;
|
|
||||||
|
|
||||||
interface
|
|
||||||
|
|
||||||
uses
|
|
||||||
uBizAlbaranesCliente, uAlbaranesClienteController;
|
|
||||||
|
|
||||||
type
|
|
||||||
IDialogListaAlbaranesCliEnvioEMail = interface
|
|
||||||
['{2C6DBF4E-28D8-49A6-9FF3-13AA5C6F6CF1}']
|
|
||||||
function GetAlbaranes: IBizAlbaranCliente;
|
|
||||||
procedure SetAlbaranes(const Value: IBizAlbaranCliente);
|
|
||||||
property Albaranes: IBizAlbaranCliente read GetAlbaranes write SetAlbaranes;
|
|
||||||
function ShowModal : Integer;
|
|
||||||
procedure Release;
|
|
||||||
end;
|
|
||||||
|
|
||||||
|
|
||||||
implementation
|
|
||||||
|
|
||||||
end.
|
|
||||||
@ -4,7 +4,7 @@ interface
|
|||||||
|
|
||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, SysUtils, uDADataTable, uEditorDBItem,
|
SysUtils, uDADataTable, uEditorDBItem,
|
||||||
uControllerBase, uIDataModuleAlbaranesCliente, uClientesController,
|
uControllerBase, uIDataModuleAlbaranesCliente, uClientesController,
|
||||||
uDetallesAlbaranClienteController, uBizAlbaranesCliente, uBizDireccionesContacto,
|
uDetallesAlbaranClienteController, uBizAlbaranesCliente, uBizDireccionesContacto,
|
||||||
uViewGridBase;
|
uViewGridBase;
|
||||||
@ -44,8 +44,8 @@ type
|
|||||||
function ExtraerSeleccionados(AAlbaran: IBizAlbaranCliente; Const ViewGrid: IViewGridBase = Nil) : IBizAlbaranCliente;
|
function ExtraerSeleccionados(AAlbaran: IBizAlbaranCliente; Const ViewGrid: IViewGridBase = Nil) : IBizAlbaranCliente;
|
||||||
function ElegirAlbaranes(AAlbaran: IBizAlbaranCliente; AMensaje: String; AMultiSelect: Boolean): IBizAlbaranCliente;
|
function ElegirAlbaranes(AAlbaran: IBizAlbaranCliente; AMensaje: String; AMultiSelect: Boolean): IBizAlbaranCliente;
|
||||||
|
|
||||||
procedure Preview(AAlbaran : IBizAlbaranCliente; AllItems: Boolean = false; ConObservacionesIncidencias: Boolean = false);
|
procedure Preview(AAlbaran : IBizAlbaranCliente; AllItems: Boolean = false);
|
||||||
function Print(AAlbaran : IBizAlbaranCliente; AllItems: Boolean = false; ConObservacionesIncidencias: Boolean = false): Boolean;
|
function Print(AAlbaran : IBizAlbaranCliente; AllItems: Boolean = false): Boolean;
|
||||||
procedure EtiquetasPreview(AAlbaran : IBizAlbaranCliente; Const withRefCliente: Boolean);
|
procedure EtiquetasPreview(AAlbaran : IBizAlbaranCliente; Const withRefCliente: Boolean);
|
||||||
procedure EtiquetasPrint(AAlbaran : IBizAlbaranCliente; Const withRefCliente: Boolean);
|
procedure EtiquetasPrint(AAlbaran : IBizAlbaranCliente; Const withRefCliente: Boolean);
|
||||||
|
|
||||||
@ -65,16 +65,6 @@ type
|
|||||||
function ValidarSituacion(ASituacion: String;
|
function ValidarSituacion(ASituacion: String;
|
||||||
AFechaEnvio : TDateTime = 0;
|
AFechaEnvio : TDateTime = 0;
|
||||||
AFechaRecibido : TDateTime = 0) : Boolean;
|
AFechaRecibido : TDateTime = 0) : Boolean;
|
||||||
|
|
||||||
function EnviarEmailAlbaranes(AAlbaranes : IBizAlbaranCliente): Boolean;
|
|
||||||
function GenerarEmailAlbaran(AAlbaran : IBizAlbaranCliente): Boolean;
|
|
||||||
function EnviarAlbaranPorEMail(AAlbaran: IBizAlbaranCliente;
|
|
||||||
const AEnviarDirectamente: Boolean = True;
|
|
||||||
const ADireccionEMail: String = ''; const AAsuntoEMail: String = '';
|
|
||||||
const ATextoEMail: String = ''): Boolean;
|
|
||||||
|
|
||||||
function DarListaAnosAlbaranes: TStringList;
|
|
||||||
procedure FiltrarAno(AAlbaran: IBizAlbaranCliente; AWhereDataTable: String; const Ano: String);
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
TAlbaranesClienteController = class(TObservador, IAlbaranesClienteController)
|
TAlbaranesClienteController = class(TObservador, IAlbaranesClienteController)
|
||||||
@ -99,7 +89,6 @@ type
|
|||||||
procedure FiltrarEmpresa(AAlbaran: IBizAlbaranCliente);
|
procedure FiltrarEmpresa(AAlbaran: IBizAlbaranCliente);
|
||||||
function _Vacio : IBizAlbaranCliente;
|
function _Vacio : IBizAlbaranCliente;
|
||||||
function ValidarAlbaran(AAlbaran: IBizAlbaranCliente): Boolean;
|
function ValidarAlbaran(AAlbaran: IBizAlbaranCliente): Boolean;
|
||||||
procedure _AnadirMarcaEnvioCorreo(AAlbaran: IBizAlbaranCliente);
|
|
||||||
|
|
||||||
public
|
public
|
||||||
property ClienteController: IClientesController read GetClienteController write SetClienteController;
|
property ClienteController: IClientesController read GetClienteController write SetClienteController;
|
||||||
@ -150,20 +139,10 @@ type
|
|||||||
AFechaRecibido : TDateTime = 0;
|
AFechaRecibido : TDateTime = 0;
|
||||||
DoPost: Boolean = True) : Boolean;
|
DoPost: Boolean = True) : Boolean;
|
||||||
|
|
||||||
procedure Preview(AAlbaran : IBizAlbaranCliente; AllItems: Boolean = false; ConObservacionesIncidencias: Boolean = false);
|
procedure Preview(AAlbaran : IBizAlbaranCliente; AllItems: Boolean = false);
|
||||||
function Print(AAlbaran : IBizAlbaranCliente; AllItems: Boolean = false; ConObservacionesIncidencias: Boolean = false): Boolean;
|
function Print(AAlbaran : IBizAlbaranCliente; AllItems: Boolean = false): Boolean;
|
||||||
procedure EtiquetasPreview(AAlbaran : IBizAlbaranCliente; Const withRefCliente: Boolean);
|
procedure EtiquetasPreview(AAlbaran : IBizAlbaranCliente; Const withRefCliente: Boolean);
|
||||||
procedure EtiquetasPrint(AAlbaran : IBizAlbaranCliente; Const withRefCliente: Boolean);
|
procedure EtiquetasPrint(AAlbaran : IBizAlbaranCliente; Const withRefCliente: Boolean);
|
||||||
|
|
||||||
function EnviarEmailAlbaranes(AAlbaranes : IBizAlbaranCliente): Boolean;
|
|
||||||
function GenerarEmailAlbaran(AAlbaran : IBizAlbaranCliente): Boolean;
|
|
||||||
function EnviarAlbaranPorEMail(AAlbaran: IBizAlbaranCliente;
|
|
||||||
const AEnviarDirectamente: Boolean = True;
|
|
||||||
const ADireccionEMail: String = ''; const AAsuntoEMail: String = '';
|
|
||||||
const ATextoEMail: String = ''): Boolean;
|
|
||||||
|
|
||||||
function DarListaAnosAlbaranes: TStringList;
|
|
||||||
procedure FiltrarAno(AAlbaran: IBizAlbaranCliente; AWhereDataTable: String; const Ano: String);
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
@ -172,14 +151,12 @@ uses
|
|||||||
uROTypes, Controls, cxControls, DB, uEditorRegistryUtils, uEditorPreview, DateUtils,
|
uROTypes, Controls, cxControls, DB, uEditorRegistryUtils, uEditorPreview, DateUtils,
|
||||||
uIEditorAlbaranesCliente, uIEditorAlbaranesDevCliente, uIEditorAlbaranDevCliente,
|
uIEditorAlbaranesCliente, uIEditorAlbaranesDevCliente, uIEditorAlbaranDevCliente,
|
||||||
uDataModuleAlbaranesCliente, Variants, uBizDetallesAlbaranCliente,
|
uDataModuleAlbaranesCliente, Variants, uBizDetallesAlbaranCliente,
|
||||||
uBizContactos, uDataTableUtils, uDataModuleUsuarios,
|
uBizContactos, uDataTableUtils, uDataModuleUsuarios, Classes,
|
||||||
schAlbaranesClienteClient_Intf, uDAInterfaces, uDateUtils, uIEditorAlbaranCliente,
|
schAlbaranesClienteClient_Intf, uDAInterfaces, uDateUtils, uIEditorAlbaranCliente,
|
||||||
uIEditorElegirAlbaranesCliente, uIEditorDireccionEntregaAlbaranCliente,
|
uIEditorElegirAlbaranesCliente, uIEditorDireccionEntregaAlbaranCliente,
|
||||||
schContactosClient_Intf, uAlbaranesClienteReportController, uControllerDetallesBase,
|
schContactosClient_Intf, uAlbaranesClienteReportController, uControllerDetallesBase,
|
||||||
uPedidosClienteController, uBizPedidosCliente, uBizDetallesPedidoCliente,
|
uPedidosClienteController, uBizPedidosCliente, uBizDetallesPedidoCliente,
|
||||||
schPedidosClienteClient_Intf, uDialogUtils, Windows, Forms, Dialogs, uGUIBase,
|
schPedidosClienteClient_Intf, uDialogUtils, Windows, Forms, Dialogs, uGUIBase;
|
||||||
uDataModuleRegistroCorreos,
|
|
||||||
uIDialogListaAlbaranesCliEnvioEMail, uSistemaFunc, uStringsUtils, uDialogElegirEMail, uEMailUtils;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -405,11 +382,6 @@ begin
|
|||||||
Result := Supports(EditorRegistry.CreateEditor(AName), IID, Intf);
|
Result := Supports(EditorRegistry.CreateEditor(AName), IID, Intf);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TAlbaranesClienteController.DarListaAnosAlbaranes: TStringList;
|
|
||||||
begin
|
|
||||||
Result := FDataModule.GetAnosItems;
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TAlbaranesClienteController.DescartarCambios(AAlbaran: IBizAlbaranCliente);
|
procedure TAlbaranesClienteController.DescartarCambios(AAlbaran: IBizAlbaranCliente);
|
||||||
begin
|
begin
|
||||||
if not Assigned(AAlbaran) then
|
if not Assigned(AAlbaran) then
|
||||||
@ -675,37 +647,6 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TAlbaranesClienteController._AnadirMarcaEnvioCorreo(AAlbaran: IBizAlbaranCliente);
|
|
||||||
var
|
|
||||||
ASoloLectura : Boolean;
|
|
||||||
begin
|
|
||||||
if not Assigned(AAlbaran) then
|
|
||||||
raise Exception.Create ('Albaran no asignado (_AnadirMarcaEnvioCorreo)');
|
|
||||||
|
|
||||||
if AAlbaran.DataTable.Active then
|
|
||||||
AAlbaran.DataTable.Active := True;
|
|
||||||
|
|
||||||
if AnadirMarcaEnvioCorreo(nme_AlbaranesCliente, AAlbaran.ID) then
|
|
||||||
begin
|
|
||||||
DesconectarTabla(AAlbaran.DataTable);
|
|
||||||
try
|
|
||||||
ASoloLectura := AAlbaran.DataTable.ReadOnly;
|
|
||||||
if ASoloLectura then
|
|
||||||
SetDataTableReadOnly(AAlbaran.DataTable, False);
|
|
||||||
try
|
|
||||||
AAlbaran.Edit;
|
|
||||||
AAlbaran.NUM_CORREOS := AAlbaran.NUM_CORREOS + 1;
|
|
||||||
AAlbaran.Post;
|
|
||||||
finally
|
|
||||||
if ASoloLectura then
|
|
||||||
SetDataTableReadOnly(AAlbaran.DataTable, True);
|
|
||||||
end;
|
|
||||||
finally
|
|
||||||
ConectarTabla(AAlbaran.DataTable);
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
|
|
||||||
function TAlbaranesClienteController._Vacio: IBizAlbaranCliente;
|
function TAlbaranesClienteController._Vacio: IBizAlbaranCliente;
|
||||||
begin
|
begin
|
||||||
Result := Buscar(ID_NULO);
|
Result := Buscar(ID_NULO);
|
||||||
@ -801,104 +742,6 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TAlbaranesClienteController.EnviarAlbaranPorEMail(
|
|
||||||
AAlbaran: IBizAlbaranCliente; const AEnviarDirectamente: Boolean;
|
|
||||||
const ADireccionEMail, AAsuntoEMail, ATextoEMail: String): Boolean;
|
|
||||||
var
|
|
||||||
AReportController : IAlbaranesClienteReportController;
|
|
||||||
AFicheroTMP : TFileName;
|
|
||||||
AEMail : String;
|
|
||||||
AAsunto : String;
|
|
||||||
AListaEmail : TStringList;
|
|
||||||
begin
|
|
||||||
|
|
||||||
if not Assigned(AAlbaran) then
|
|
||||||
raise Exception.Create ('Albaran no asignada (EnviarAlbaranPorEMail)');
|
|
||||||
|
|
||||||
if AAlbaran.DataTable.Active then
|
|
||||||
AAlbaran.DataTable.Active := True;
|
|
||||||
|
|
||||||
RecuperarCliente(AAlbaran);
|
|
||||||
AAlbaran.Cliente.DataTable.Active := True;
|
|
||||||
|
|
||||||
AFicheroTMP := DarFicheroPDFTemporal(EscapeIllegalChars(AAlbaran.REFERENCIA));
|
|
||||||
|
|
||||||
if not EsCadenaVacia(ADireccionEMail) then
|
|
||||||
AEMail := ADireccionEMail
|
|
||||||
else begin
|
|
||||||
AListaEmail := TStringList.Create;
|
|
||||||
try
|
|
||||||
if not EsCadenaVacia(AAlbaran.Cliente.EMAIL_ADMINISTRACION) then
|
|
||||||
AListaEmail.Add(AAlbaran.Cliente.EMAIL_ADMINISTRACION);
|
|
||||||
|
|
||||||
if not ElegirEMail(AListaEmail, AEMail) then
|
|
||||||
Exit;
|
|
||||||
finally
|
|
||||||
FreeANDNIL(AListaEmail);
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
|
|
||||||
if not EsCadenaVacia(AAsuntoEMail) then
|
|
||||||
AAsunto := AAsuntoEMail
|
|
||||||
else
|
|
||||||
begin
|
|
||||||
if (AAlbaran.TIPO = CTE_TIPO_ALBARAN_DEV) then
|
|
||||||
AAsunto := 'Orden devolución ' + AAlbaran.REFERENCIA
|
|
||||||
else
|
|
||||||
AAsunto := 'Albarán ' + AAlbaran.REFERENCIA;
|
|
||||||
end;
|
|
||||||
|
|
||||||
ShowHourglassCursor;
|
|
||||||
Application.ProcessMessages;
|
|
||||||
|
|
||||||
AReportController := TAlbaranesClienteReportController.Create;
|
|
||||||
try
|
|
||||||
AReportController.ExportToPDF(AAlbaran.ID, AFicheroTMP);
|
|
||||||
Result := EnviarEMailMAPI(AAsunto, ATextoEMail, AFicheroTMP, '', '', AAlbaran.Cliente.NOMBRE, AEMail, AEnviarDirectamente);
|
|
||||||
if Result then
|
|
||||||
_AnadirMarcaEnvioCorreo(AAlbaran);
|
|
||||||
finally
|
|
||||||
SysUtils.DeleteFile(AFicheroTMP);
|
|
||||||
AReportController := NIL;
|
|
||||||
HideHourglassCursor;
|
|
||||||
Application.ProcessMessages;
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
|
|
||||||
function TAlbaranesClienteController.EnviarEmailAlbaranes(
|
|
||||||
AAlbaranes: IBizAlbaranCliente): Boolean;
|
|
||||||
var
|
|
||||||
ADialog : IDialogListaAlbaranesCliEnvioEMail;
|
|
||||||
ARespuesta : Integer;
|
|
||||||
begin
|
|
||||||
ADialog := NIL;
|
|
||||||
|
|
||||||
if not Assigned(AAlbaranes) then
|
|
||||||
raise Exception.Create ('Albaranes no asignadas (EnviarAlbaranesCliPorEMail)');
|
|
||||||
|
|
||||||
if AAlbaranes.DataTable.Active then
|
|
||||||
AAlbaranes.DataTable.Active := True;
|
|
||||||
|
|
||||||
ShowHourglassCursor;
|
|
||||||
try
|
|
||||||
CreateEditor('DialogListaAlbaranesCliEnvioEMail', IDialogListaAlbaranesCliEnvioEMail, ADialog);
|
|
||||||
|
|
||||||
if Assigned(ADialog) then
|
|
||||||
begin
|
|
||||||
try
|
|
||||||
ADialog.Albaranes := AAlbaranes;
|
|
||||||
ARespuesta := ADialog.ShowModal;
|
|
||||||
Result := (ARespuesta = mrOK)
|
|
||||||
finally
|
|
||||||
ADialog.Release;
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
finally
|
|
||||||
ADialog := NIL;
|
|
||||||
HideHourglassCursor;
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
|
|
||||||
function TAlbaranesClienteController.EsEliminable(AAlbaran: IBizAlbaranCliente): Boolean;
|
function TAlbaranesClienteController.EsEliminable(AAlbaran: IBizAlbaranCliente): Boolean;
|
||||||
begin
|
begin
|
||||||
if not Assigned(AAlbaran) then
|
if not Assigned(AAlbaran) then
|
||||||
@ -1001,31 +844,6 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TAlbaranesClienteController.FiltrarAno(AAlbaran: IBizAlbaranCliente; AWhereDataTable: String; const Ano: String);
|
|
||||||
var
|
|
||||||
FechaIni: String;
|
|
||||||
FechaFin: String;
|
|
||||||
|
|
||||||
begin
|
|
||||||
AAlbaran.DataTable.Where.Clear;
|
|
||||||
AAlbaran.DataTable.Where.AddText(AWhereDataTable);
|
|
||||||
|
|
||||||
if (Ano <> 'Todos') then
|
|
||||||
begin
|
|
||||||
// Filtrar las facturas actuales por empresa
|
|
||||||
FechaIni := '01.01.' + Ano;
|
|
||||||
FechaFin := '31.12.' + Ano;
|
|
||||||
with AAlbaran.DataTable.Where do
|
|
||||||
begin
|
|
||||||
if NotEmpty then
|
|
||||||
AddOperator(opAND);
|
|
||||||
AddCondition(fld_AlbaranesClienteFECHA_ALBARAN, cMajorOrEqual, FechaIni);
|
|
||||||
AddOperator(opAND);
|
|
||||||
AddCondition(fld_AlbaranesClienteFECHA_ALBARAN, cLessOrEqual, FechaFin);
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TAlbaranesClienteController.FiltrarEmpresa(
|
procedure TAlbaranesClienteController.FiltrarEmpresa(
|
||||||
AAlbaran: IBizAlbaranCliente);
|
AAlbaran: IBizAlbaranCliente);
|
||||||
begin
|
begin
|
||||||
@ -1128,7 +946,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TAlbaranesClienteController.Preview(AAlbaran: IBizAlbaranCliente; AllItems: Boolean = false; ConObservacionesIncidencias: Boolean = false);
|
procedure TAlbaranesClienteController.Preview(AAlbaran: IBizAlbaranCliente; AllItems: Boolean = false);
|
||||||
var
|
var
|
||||||
AReportController : IAlbaranesClienteReportController;
|
AReportController : IAlbaranesClienteReportController;
|
||||||
ID_Albaranes: TStringList;
|
ID_Albaranes: TStringList;
|
||||||
@ -1155,7 +973,7 @@ begin
|
|||||||
else
|
else
|
||||||
ID_Albaranes.Add(IntToStr(AAlbaran.ID));
|
ID_Albaranes.Add(IntToStr(AAlbaran.ID));
|
||||||
|
|
||||||
AReportController.Preview(ID_Albaranes.CommaText, ConObservacionesIncidencias);
|
AReportController.Preview(ID_Albaranes.CommaText);
|
||||||
|
|
||||||
finally
|
finally
|
||||||
AReportController := NIL;
|
AReportController := NIL;
|
||||||
@ -1163,7 +981,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TAlbaranesClienteController.Print(AAlbaran: IBizAlbaranCliente; AllItems: Boolean = false; ConObservacionesIncidencias: Boolean = false): Boolean;
|
function TAlbaranesClienteController.Print(AAlbaran: IBizAlbaranCliente; AllItems: Boolean = false): Boolean;
|
||||||
var
|
var
|
||||||
AReportController : IAlbaranesClienteReportController;
|
AReportController : IAlbaranesClienteReportController;
|
||||||
ID_Albaranes: TStringList;
|
ID_Albaranes: TStringList;
|
||||||
@ -1191,7 +1009,7 @@ begin
|
|||||||
else
|
else
|
||||||
ID_Albaranes.Add(IntToStr(AAlbaran.ID));
|
ID_Albaranes.Add(IntToStr(AAlbaran.ID));
|
||||||
|
|
||||||
Result := AReportController.Print(ID_Albaranes.CommaText, ConObservacionesIncidencias);
|
Result := AReportController.Print(ID_Albaranes.CommaText);
|
||||||
|
|
||||||
finally
|
finally
|
||||||
AReportController := NIL;
|
AReportController := NIL;
|
||||||
@ -1224,24 +1042,6 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TAlbaranesClienteController.GenerarEmailAlbaran(
|
|
||||||
AAlbaran: IBizAlbaranCliente): Boolean;
|
|
||||||
begin
|
|
||||||
if not Assigned(AAlbaran) then
|
|
||||||
raise Exception.Create ('Albaranes no asignadas (GenerarEmailAlbaran)');
|
|
||||||
|
|
||||||
if AAlbaran.DataTable.Active then
|
|
||||||
AAlbaran.DataTable.Active := True;
|
|
||||||
|
|
||||||
ShowHourglassCursor;
|
|
||||||
try
|
|
||||||
RecuperarCliente(AAlbaran);
|
|
||||||
EnviarAlbaranPorEMail(AAlbaran, False, AAlbaran.Cliente.EMAIL_ADMINISTRACION);
|
|
||||||
finally
|
|
||||||
HideHourglassCursor;
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
|
|
||||||
function TAlbaranesClienteController.GenerarOrdenDev(AAlbaran: IBizAlbaranCliente): IBizAlbaranCliente;
|
function TAlbaranesClienteController.GenerarOrdenDev(AAlbaran: IBizAlbaranCliente): IBizAlbaranCliente;
|
||||||
var
|
var
|
||||||
AOrden : IBizAlbaranCliente;
|
AOrden : IBizAlbaranCliente;
|
||||||
|
|||||||
@ -10,11 +10,10 @@ uses
|
|||||||
type
|
type
|
||||||
IAlbaranesClienteReportController = interface
|
IAlbaranesClienteReportController = interface
|
||||||
['{4BCC7A93-3322-494C-A3FA-118F4B62CB15}']
|
['{4BCC7A93-3322-494C-A3FA-118F4B62CB15}']
|
||||||
procedure Preview(const AID : String; ConObservacionesIncidencias: Boolean = false);
|
procedure Preview(const AID : String);
|
||||||
function Print(const AID : String; ConObservacionesIncidencias: Boolean = false): Boolean;
|
function Print(const AID : String): Boolean;
|
||||||
procedure EtiquetasPreview(const AID : integer; Const withRefCliente: Boolean);
|
procedure EtiquetasPreview(const AID : integer; Const withRefCliente: Boolean);
|
||||||
procedure EtiquetasPrint(const AID : integer; Const withRefCliente: Boolean);
|
procedure EtiquetasPrint(const AID : integer; Const withRefCliente: Boolean);
|
||||||
function ExportToPDF(const AID: Integer; const AFileName : String = ''): Boolean;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
TAlbaranesClienteReportController = class(TInterfacedObject, IAlbaranesClienteReportController)
|
TAlbaranesClienteReportController = class(TInterfacedObject, IAlbaranesClienteReportController)
|
||||||
@ -26,11 +25,10 @@ type
|
|||||||
constructor Create;
|
constructor Create;
|
||||||
destructor Destroy; override;
|
destructor Destroy; override;
|
||||||
|
|
||||||
procedure Preview(const AID : String; ConObservacionesIncidencias: Boolean = false);
|
procedure Preview(const AID : String);
|
||||||
function Print(const AID : String; ConObservacionesIncidencias: Boolean = false): Boolean;
|
function Print(const AID : String): Boolean;
|
||||||
procedure EtiquetasPreview(const AID : integer; const withRefCliente: Boolean);
|
procedure EtiquetasPreview(const AID : integer; const withRefCliente: Boolean);
|
||||||
procedure EtiquetasPrint(const AID : integer; const withRefCliente: Boolean);
|
procedure EtiquetasPrint(const AID : integer; const withRefCliente: Boolean);
|
||||||
function ExportToPDF(const AID: Integer; const AFileName : String = ''): Boolean;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
@ -39,7 +37,7 @@ implementation
|
|||||||
uses
|
uses
|
||||||
uROTypes, uEditorRegistryUtils, uIEditorAlbaranesClientePreview,
|
uROTypes, uEditorRegistryUtils, uIEditorAlbaranesClientePreview,
|
||||||
uEditorPreview, uDataModuleAlbaranesCliente, uEditorBase, cxControls,
|
uEditorPreview, uDataModuleAlbaranesCliente, uEditorBase, cxControls,
|
||||||
schAlbaranesClienteClient_Intf, uStringsUtils;
|
schAlbaranesClienteClient_Intf;
|
||||||
|
|
||||||
{ TAlbaranesClienteReportController }
|
{ TAlbaranesClienteReportController }
|
||||||
|
|
||||||
@ -109,29 +107,7 @@ begin
|
|||||||
AEditor.Print
|
AEditor.Print
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TAlbaranesClienteReportController.ExportToPDF(const AID: Integer; const AFileName: String): Boolean;
|
procedure TAlbaranesClienteReportController.Preview(const AID : String);
|
||||||
var
|
|
||||||
AStream: Binary;
|
|
||||||
begin
|
|
||||||
Result := False;
|
|
||||||
if EsCadenaVacia(AFileName) then
|
|
||||||
Exit;
|
|
||||||
|
|
||||||
ShowHourglassCursor;
|
|
||||||
try
|
|
||||||
AStream := FDataModule.GetRptPDF(AID, True);
|
|
||||||
try
|
|
||||||
AStream.SaveToFile(AFileName);
|
|
||||||
Result := True;
|
|
||||||
finally
|
|
||||||
FreeAndNil(AStream);
|
|
||||||
end;
|
|
||||||
finally
|
|
||||||
HideHourglassCursor;
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TAlbaranesClienteReportController.Preview(const AID : String; ConObservacionesIncidencias: Boolean = false);
|
|
||||||
var
|
var
|
||||||
AStream: Binary;
|
AStream: Binary;
|
||||||
AEditor : IEditorAlbaranesClientePreview;
|
AEditor : IEditorAlbaranesClientePreview;
|
||||||
@ -140,7 +116,7 @@ begin
|
|||||||
|
|
||||||
ShowHourglassCursor;
|
ShowHourglassCursor;
|
||||||
try
|
try
|
||||||
AStream := FDataModule.GetReport(AID, ConObservacionesIncidencias); //Lista de seleccionados (Array de integers)
|
AStream := FDataModule.GetReport(AID); //Lista de seleccionados (Array de integers)
|
||||||
try
|
try
|
||||||
CreateEditor('EditorAlbaranesClientePreview', IEditorAlbaranesClientePreview, AEditor);
|
CreateEditor('EditorAlbaranesClientePreview', IEditorAlbaranesClientePreview, AEditor);
|
||||||
AEditor.LoadFromStream(AStream);
|
AEditor.LoadFromStream(AStream);
|
||||||
@ -155,7 +131,7 @@ begin
|
|||||||
AEditor.Preview;
|
AEditor.Preview;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TAlbaranesClienteReportController.Print(const AID : String; ConObservacionesIncidencias: Boolean = false): Boolean;
|
function TAlbaranesClienteReportController.Print(const AID : String): Boolean;
|
||||||
var
|
var
|
||||||
AStream: Binary;
|
AStream: Binary;
|
||||||
AEditor : IEditorAlbaranesClientePreview;
|
AEditor : IEditorAlbaranesClientePreview;
|
||||||
@ -165,7 +141,7 @@ begin
|
|||||||
|
|
||||||
ShowHourglassCursor;
|
ShowHourglassCursor;
|
||||||
try
|
try
|
||||||
AStream := FDataModule.GetReport(AID, ConObservacionesIncidencias);
|
AStream := FDataModule.GetReport(AID);
|
||||||
try
|
try
|
||||||
CreateEditor('EditorAlbaranesClientePreview', IEditorAlbaranesClientePreview, AEditor);
|
CreateEditor('EditorAlbaranesClientePreview', IEditorAlbaranesClientePreview, AEditor);
|
||||||
AEditor.LoadFromStream(AStream);
|
AEditor.LoadFromStream(AStream);
|
||||||
|
|||||||
@ -172,7 +172,7 @@
|
|||||||
<VersionInfoKeys Name="Comments"></VersionInfoKeys>
|
<VersionInfoKeys Name="Comments"></VersionInfoKeys>
|
||||||
</VersionInfoKeys>
|
</VersionInfoKeys>
|
||||||
</Delphi.Personality>
|
</Delphi.Personality>
|
||||||
<!-- EurekaLog First Line
|
<!-- EurekaLog First Line
|
||||||
[Exception Log]
|
[Exception Log]
|
||||||
EurekaLog Version=519
|
EurekaLog Version=519
|
||||||
Activate=1
|
Activate=1
|
||||||
|
|||||||
@ -680,28 +680,6 @@ object DataModuleAlbaranesCliente: TDataModuleAlbaranesCliente
|
|||||||
Calculated = False
|
Calculated = False
|
||||||
Lookup = False
|
Lookup = False
|
||||||
LookupCache = False
|
LookupCache = False
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'NUM_CORREOS'
|
|
||||||
DataType = datInteger
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
InPrimaryKey = False
|
|
||||||
Calculated = False
|
|
||||||
Lookup = False
|
|
||||||
LookupCache = False
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'BLOQUEADO'
|
|
||||||
DataType = datInteger
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
InPrimaryKey = False
|
|
||||||
Calculated = False
|
|
||||||
Lookup = False
|
|
||||||
LookupCache = False
|
|
||||||
end>
|
end>
|
||||||
Params = <>
|
Params = <>
|
||||||
MasterMappingMode = mmDataRequest
|
MasterMappingMode = mmDataRequest
|
||||||
@ -1097,113 +1075,4 @@ object DataModuleAlbaranesCliente: TDataModuleAlbaranesCliente
|
|||||||
Left = 392
|
Left = 392
|
||||||
Top = 80
|
Top = 80
|
||||||
end
|
end
|
||||||
object tbl_ListaAnosAlbaranes: TDACDSDataTable
|
|
||||||
RemoteUpdatesOptions = []
|
|
||||||
Fields = <
|
|
||||||
item
|
|
||||||
Name = 'ANO'
|
|
||||||
DataType = datString
|
|
||||||
Size = 254
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
InPrimaryKey = False
|
|
||||||
Calculated = False
|
|
||||||
Lookup = False
|
|
||||||
LookupCache = False
|
|
||||||
end>
|
|
||||||
Params = <>
|
|
||||||
MasterMappingMode = mmDataRequest
|
|
||||||
StreamingOptions = [soDisableEventsWhileStreaming]
|
|
||||||
SchemaCall.MethodName = 'GetDatasetSchema'
|
|
||||||
SchemaCall.Params = <
|
|
||||||
item
|
|
||||||
Name = 'Result'
|
|
||||||
ParamType = fResult
|
|
||||||
DataType = rtBinary
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'aDatasetName'
|
|
||||||
ParamType = fIn
|
|
||||||
DataType = rtString
|
|
||||||
Value = 'ListaAnosAlbaranes'
|
|
||||||
end>
|
|
||||||
DataRequestCall.MethodName = 'GetDatasetDataEx'
|
|
||||||
DataRequestCall.Params = <
|
|
||||||
item
|
|
||||||
Name = 'Result'
|
|
||||||
ParamType = fResult
|
|
||||||
DataType = rtBinary
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'DatasetName'
|
|
||||||
ParamType = fIn
|
|
||||||
DataType = rtString
|
|
||||||
Value = 'ListaAnosAlbaranes'
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'Params'
|
|
||||||
ParamType = fIn
|
|
||||||
DataType = rtUserDefined
|
|
||||||
UserClassName = 'TDADatasetParamArray'
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'UserFilter'
|
|
||||||
ParamType = fIn
|
|
||||||
DataType = rtString
|
|
||||||
Value = ''
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'IncludeSchema'
|
|
||||||
ParamType = fIn
|
|
||||||
DataType = rtBoolean
|
|
||||||
Value = False
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'MaxRecords'
|
|
||||||
ParamType = fIn
|
|
||||||
DataType = rtInteger
|
|
||||||
Value = -1
|
|
||||||
end>
|
|
||||||
DataUpdateCall.MethodName = 'UpdateData'
|
|
||||||
DataUpdateCall.Params = <
|
|
||||||
item
|
|
||||||
Name = 'Result'
|
|
||||||
ParamType = fResult
|
|
||||||
DataType = rtBinary
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'Delta'
|
|
||||||
ParamType = fIn
|
|
||||||
DataType = rtBinary
|
|
||||||
end>
|
|
||||||
ScriptCall.MethodName = 'GetDatasetScripts'
|
|
||||||
ScriptCall.Params = <
|
|
||||||
item
|
|
||||||
Name = 'Result'
|
|
||||||
ParamType = fResult
|
|
||||||
DataType = rtString
|
|
||||||
Value = ''
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'DatasetNames'
|
|
||||||
ParamType = fIn
|
|
||||||
DataType = rtString
|
|
||||||
Value = 'ListaAnosAlbaranes'
|
|
||||||
end>
|
|
||||||
ReadOnly = False
|
|
||||||
RemoteService = RORemoteService
|
|
||||||
Adapter = DABinAdapter
|
|
||||||
DetailOptions = [dtCascadeOpenClose, dtCascadeApplyUpdates, dtAutoFetch, dtCascadeDelete, dtCascadeUpdate, dtDisableLogOfCascadeDeletes, dtDisableLogOfCascadeUpdates, dtIncludeInAllInOneFetch]
|
|
||||||
MasterOptions = [moCascadeOpenClose, moCascadeApplyUpdates, moCascadeDelete, moCascadeUpdate, moDisableLogOfCascadeDeletes, moDisableLogOfCascadeUpdates]
|
|
||||||
LogicalName = 'ListaAnosAlbaranes'
|
|
||||||
IndexDefs = <>
|
|
||||||
Left = 256
|
|
||||||
Top = 288
|
|
||||||
end
|
|
||||||
object ds_ListaAnosAlbaranes: TDADataSource
|
|
||||||
DataTable = tbl_ListaAnosAlbaranes
|
|
||||||
Left = 256
|
|
||||||
Top = 232
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|||||||
@ -22,8 +22,6 @@ type
|
|||||||
ds_AlbaranesCliente: TDADataSource;
|
ds_AlbaranesCliente: TDADataSource;
|
||||||
tbl_AlbaranesCliente_Detalles: TDACDSDataTable;
|
tbl_AlbaranesCliente_Detalles: TDACDSDataTable;
|
||||||
ds_AlbaranesCliente_Detalles: TDADataSource;
|
ds_AlbaranesCliente_Detalles: TDADataSource;
|
||||||
tbl_ListaAnosAlbaranes: TDACDSDataTable;
|
|
||||||
ds_ListaAnosAlbaranes: TDADataSource;
|
|
||||||
procedure DAClientDataModuleCreate(Sender: TObject);
|
procedure DAClientDataModuleCreate(Sender: TObject);
|
||||||
|
|
||||||
private
|
private
|
||||||
@ -40,11 +38,8 @@ type
|
|||||||
function NewItem : IBizAlbaranCliente;
|
function NewItem : IBizAlbaranCliente;
|
||||||
|
|
||||||
// Report
|
// Report
|
||||||
function GetReport(const AID: String; const ConObservacionesIncidencias: Boolean = False; const ShowLogotipo: Boolean = False): Binary;
|
function GetReport(const AID: String; const ShowLogotipo: Boolean = False): Binary;
|
||||||
function GetEtiquetas(const AID: Integer; withRefCliente: Boolean): Binary;
|
function GetEtiquetas(const AID: Integer; withRefCliente: Boolean): Binary;
|
||||||
function GetRptPDF(const AID: Integer; const ShowLogotipo: Boolean = False): Binary;
|
|
||||||
|
|
||||||
function GetAnosItems : TStringList;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
@ -81,23 +76,9 @@ begin
|
|||||||
Result := (RORemoteService as IsrvAlbaranesCliente).GetNextAutoInc(aGeneratorName)
|
Result := (RORemoteService as IsrvAlbaranesCliente).GetNextAutoInc(aGeneratorName)
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TDataModuleAlbaranesCliente.GetReport(const AID: String; const ConObservacionesIncidencias: Boolean = False; const ShowLogotipo: Boolean = False): Binary;
|
function TDataModuleAlbaranesCliente.GetReport(const AID: String; const ShowLogotipo: Boolean = False): Binary;
|
||||||
begin
|
begin
|
||||||
Result := (RORemoteService as IsrvAlbaranesCliente).GenerateReport(AID, ShowLogotipo, ConObservacionesIncidencias)
|
Result := (RORemoteService as IsrvAlbaranesCliente).GenerateReport(AID, ShowLogotipo)
|
||||||
end;
|
|
||||||
|
|
||||||
function TDataModuleAlbaranesCliente.GetRptPDF(const AID: Integer;
|
|
||||||
const ShowLogotipo: Boolean): Binary;
|
|
||||||
var
|
|
||||||
AParam : TIntegerArray;
|
|
||||||
begin
|
|
||||||
AParam := TIntegerArray.Create;
|
|
||||||
try
|
|
||||||
AParam.Add(AID);
|
|
||||||
Result := (RORemoteService as IsrvAlbaranesCliente).GenerarReportPDF(AParam, ShowLogotipo)
|
|
||||||
finally
|
|
||||||
FreeANDNIL(AParam)
|
|
||||||
end;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TDataModuleAlbaranesCliente.NewItem: IBizAlbaranCliente;
|
function TDataModuleAlbaranesCliente.NewItem: IBizAlbaranCliente;
|
||||||
@ -135,30 +116,6 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TDataModuleAlbaranesCliente.GetAnosItems: TStringList;
|
|
||||||
var
|
|
||||||
AListaAnos: TStringList;
|
|
||||||
begin
|
|
||||||
AListaAnos := TStringList.Create;
|
|
||||||
ShowHourglassCursor;
|
|
||||||
try
|
|
||||||
with tbl_ListaAnosAlbaranes do
|
|
||||||
begin
|
|
||||||
Open;
|
|
||||||
First;
|
|
||||||
while not eof do
|
|
||||||
begin
|
|
||||||
AListaAnos.Add(Format('%s=%s', [Fields[0].AsString, Fields[0].AsString]));
|
|
||||||
Next;
|
|
||||||
end;
|
|
||||||
Close;
|
|
||||||
end;
|
|
||||||
Result := AListaAnos;
|
|
||||||
finally
|
|
||||||
HideHourglassCursor;
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
|
|
||||||
function TDataModuleAlbaranesCliente.GetEtiquetas(const AID: Integer; withRefCliente: Boolean): Binary;
|
function TDataModuleAlbaranesCliente.GetEtiquetas(const AID: Integer; withRefCliente: Boolean): Binary;
|
||||||
begin
|
begin
|
||||||
Result := (RORemoteService as IsrvAlbaranesCliente).GenerateEtiquetas(AID, withRefCliente)
|
Result := (RORemoteService as IsrvAlbaranesCliente).GenerateEtiquetas(AID, withRefCliente)
|
||||||
|
|||||||
@ -3,12 +3,11 @@ unit uIDataModuleAlbaranesCliente;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, uBizAlbaranesCliente;
|
uBizAlbaranesCliente;
|
||||||
|
|
||||||
type
|
type
|
||||||
IDataModuleAlbaranesCliente = interface
|
IDataModuleAlbaranesCliente = interface
|
||||||
['{81932348-9595-45AC-AFC9-5A8983B4A3A8}']
|
['{81932348-9595-45AC-AFC9-5A8983B4A3A8}']
|
||||||
function GetAnosItems : TStringList;
|
|
||||||
function GetItems: IBizAlbaranCliente;
|
function GetItems: IBizAlbaranCliente;
|
||||||
function GetItem(const ID : Integer) : IBizAlbaranCliente;
|
function GetItem(const ID : Integer) : IBizAlbaranCliente;
|
||||||
function GetNextID(const DataSetName : String) : Integer;
|
function GetNextID(const DataSetName : String) : Integer;
|
||||||
|
|||||||
@ -8,9 +8,8 @@ uses
|
|||||||
type
|
type
|
||||||
IDataModuleAlbaranesClienteReport = interface
|
IDataModuleAlbaranesClienteReport = interface
|
||||||
['{42C55204-5AB9-403E-8385-1A62B02D8234}']
|
['{42C55204-5AB9-403E-8385-1A62B02D8234}']
|
||||||
function GetReport(const AID: String; const ConObservacionesIncidencias: Boolean = False; const ShowLogotipo: Boolean = False): Binary;
|
function GetReport(const AID: String; const ShowLogotipo: Boolean = False): Binary;
|
||||||
function GetEtiquetas(const AID: Integer; withRefCliente: Boolean): Binary;
|
function GetEtiquetas(const AID: Integer; withRefCliente: Boolean): Binary;
|
||||||
function GetRptPDF(const AID: Integer; const ShowLogotipo: Boolean = False): Binary;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|||||||
@ -9,27 +9,19 @@ const
|
|||||||
{ Data table rules ids
|
{ Data table rules ids
|
||||||
Feel free to change them to something more human readable
|
Feel free to change them to something more human readable
|
||||||
but make sure they are unique in the context of your application }
|
but make sure they are unique in the context of your application }
|
||||||
RID_ListaAnosAlbaranes = '{A07DBFAC-A835-4C6F-8EDD-63D516CE7018}';
|
RID_DarReferencia = '{EB3008DB-9520-42B6-8860-4AAD682CA8B5}';
|
||||||
RID_DarReferencia = '{7548CCD3-BA67-4F25-99B8-0DF8C7922DC8}';
|
RID_AlbaranesCliente = '{21D36B32-4BCE-485C-A44A-9A72CC73A57E}';
|
||||||
RID_AlbaranesCliente = '{2803D94C-6CA5-473B-B00C-6B1E4DD62039}';
|
RID_AlbaranesCliente_Detalles = '{493A3E1F-36BC-42B1-B149-2CFFAE856399}';
|
||||||
RID_AlbaranesCliente_Detalles = '{186AC7FF-AABB-4207-8532-39F70C7F0994}';
|
RID_AlbaranesCliente_Detalles_Refresh = '{DED95756-45A8-43C5-A74D-314BCED7EEE4}';
|
||||||
RID_AlbaranesCliente_Detalles_Refresh = '{40C5D633-0EC0-4EEB-9062-B5E23735AA49}';
|
RID_AlbaranesCliente_Refresh = '{4A56E94D-34D5-424F-8CDB-8FDF86479EA6}';
|
||||||
RID_AlbaranesCliente_Refresh = '{2F10C424-28DF-4E96-A146-D3C8AFC874B0}';
|
|
||||||
|
|
||||||
{ Data table names }
|
{ Data table names }
|
||||||
nme_ListaAnosAlbaranes = 'ListaAnosAlbaranes';
|
|
||||||
nme_DarReferencia = 'DarReferencia';
|
nme_DarReferencia = 'DarReferencia';
|
||||||
nme_AlbaranesCliente = 'AlbaranesCliente';
|
nme_AlbaranesCliente = 'AlbaranesCliente';
|
||||||
nme_AlbaranesCliente_Detalles = 'AlbaranesCliente_Detalles';
|
nme_AlbaranesCliente_Detalles = 'AlbaranesCliente_Detalles';
|
||||||
nme_AlbaranesCliente_Detalles_Refresh = 'AlbaranesCliente_Detalles_Refresh';
|
nme_AlbaranesCliente_Detalles_Refresh = 'AlbaranesCliente_Detalles_Refresh';
|
||||||
nme_AlbaranesCliente_Refresh = 'AlbaranesCliente_Refresh';
|
nme_AlbaranesCliente_Refresh = 'AlbaranesCliente_Refresh';
|
||||||
|
|
||||||
{ ListaAnosAlbaranes fields }
|
|
||||||
fld_ListaAnosAlbaranesANO = 'ANO';
|
|
||||||
|
|
||||||
{ ListaAnosAlbaranes field indexes }
|
|
||||||
idx_ListaAnosAlbaranesANO = 0;
|
|
||||||
|
|
||||||
{ DarReferencia fields }
|
{ DarReferencia fields }
|
||||||
fld_DarReferenciaVALOR = 'VALOR';
|
fld_DarReferenciaVALOR = 'VALOR';
|
||||||
|
|
||||||
@ -83,8 +75,6 @@ const
|
|||||||
fld_AlbaranesClienteREFERENCIA_ALB_DEV = 'REFERENCIA_ALB_DEV';
|
fld_AlbaranesClienteREFERENCIA_ALB_DEV = 'REFERENCIA_ALB_DEV';
|
||||||
fld_AlbaranesClienteID_FAC_ALB_DEV = 'ID_FAC_ALB_DEV';
|
fld_AlbaranesClienteID_FAC_ALB_DEV = 'ID_FAC_ALB_DEV';
|
||||||
fld_AlbaranesClienteREFERENCIA_FAC_ALB_DEV = 'REFERENCIA_FAC_ALB_DEV';
|
fld_AlbaranesClienteREFERENCIA_FAC_ALB_DEV = 'REFERENCIA_FAC_ALB_DEV';
|
||||||
fld_AlbaranesClienteNUM_CORREOS = 'NUM_CORREOS';
|
|
||||||
fld_AlbaranesClienteBLOQUEADO = 'BLOQUEADO';
|
|
||||||
|
|
||||||
{ AlbaranesCliente field indexes }
|
{ AlbaranesCliente field indexes }
|
||||||
idx_AlbaranesClienteID = 0;
|
idx_AlbaranesClienteID = 0;
|
||||||
@ -133,8 +123,6 @@ const
|
|||||||
idx_AlbaranesClienteREFERENCIA_ALB_DEV = 43;
|
idx_AlbaranesClienteREFERENCIA_ALB_DEV = 43;
|
||||||
idx_AlbaranesClienteID_FAC_ALB_DEV = 44;
|
idx_AlbaranesClienteID_FAC_ALB_DEV = 44;
|
||||||
idx_AlbaranesClienteREFERENCIA_FAC_ALB_DEV = 45;
|
idx_AlbaranesClienteREFERENCIA_FAC_ALB_DEV = 45;
|
||||||
idx_AlbaranesClienteNUM_CORREOS = 46;
|
|
||||||
idx_AlbaranesClienteBLOQUEADO = 47;
|
|
||||||
|
|
||||||
{ AlbaranesCliente_Detalles fields }
|
{ AlbaranesCliente_Detalles fields }
|
||||||
fld_AlbaranesCliente_DetallesID = 'ID';
|
fld_AlbaranesCliente_DetallesID = 'ID';
|
||||||
@ -251,7 +239,6 @@ const
|
|||||||
fld_AlbaranesCliente_RefreshREFERENCIA_ALB_DEV = 'REFERENCIA_ALB_DEV';
|
fld_AlbaranesCliente_RefreshREFERENCIA_ALB_DEV = 'REFERENCIA_ALB_DEV';
|
||||||
fld_AlbaranesCliente_RefreshID_FAC_ALB_DEV = 'ID_FAC_ALB_DEV';
|
fld_AlbaranesCliente_RefreshID_FAC_ALB_DEV = 'ID_FAC_ALB_DEV';
|
||||||
fld_AlbaranesCliente_RefreshREFERENCIA_FAC_ALB_DEV = 'REFERENCIA_FAC_ALB_DEV';
|
fld_AlbaranesCliente_RefreshREFERENCIA_FAC_ALB_DEV = 'REFERENCIA_FAC_ALB_DEV';
|
||||||
fld_AlbaranesCliente_RefreshNUM_CORREOS = 'NUM_CORREOS';
|
|
||||||
|
|
||||||
{ AlbaranesCliente_Refresh field indexes }
|
{ AlbaranesCliente_Refresh field indexes }
|
||||||
idx_AlbaranesCliente_RefreshID = 0;
|
idx_AlbaranesCliente_RefreshID = 0;
|
||||||
@ -300,41 +287,11 @@ const
|
|||||||
idx_AlbaranesCliente_RefreshREFERENCIA_ALB_DEV = 43;
|
idx_AlbaranesCliente_RefreshREFERENCIA_ALB_DEV = 43;
|
||||||
idx_AlbaranesCliente_RefreshID_FAC_ALB_DEV = 44;
|
idx_AlbaranesCliente_RefreshID_FAC_ALB_DEV = 44;
|
||||||
idx_AlbaranesCliente_RefreshREFERENCIA_FAC_ALB_DEV = 45;
|
idx_AlbaranesCliente_RefreshREFERENCIA_FAC_ALB_DEV = 45;
|
||||||
idx_AlbaranesCliente_RefreshNUM_CORREOS = 46;
|
|
||||||
|
|
||||||
type
|
type
|
||||||
{ IListaAnosAlbaranes }
|
|
||||||
IListaAnosAlbaranes = interface(IDAStronglyTypedDataTable)
|
|
||||||
['{4256FFC5-19D0-4268-BECE-63386E811952}']
|
|
||||||
{ Property getters and setters }
|
|
||||||
function GetANOValue: String;
|
|
||||||
procedure SetANOValue(const aValue: String);
|
|
||||||
|
|
||||||
|
|
||||||
{ Properties }
|
|
||||||
property ANO: String read GetANOValue write SetANOValue;
|
|
||||||
end;
|
|
||||||
|
|
||||||
{ TListaAnosAlbaranesDataTableRules }
|
|
||||||
TListaAnosAlbaranesDataTableRules = class(TDADataTableRules, IListaAnosAlbaranes)
|
|
||||||
private
|
|
||||||
protected
|
|
||||||
{ Property getters and setters }
|
|
||||||
function GetANOValue: String; virtual;
|
|
||||||
procedure SetANOValue(const aValue: String); virtual;
|
|
||||||
|
|
||||||
{ Properties }
|
|
||||||
property ANO: String read GetANOValue write SetANOValue;
|
|
||||||
|
|
||||||
public
|
|
||||||
constructor Create(aDataTable: TDADataTable); override;
|
|
||||||
destructor Destroy; override;
|
|
||||||
|
|
||||||
end;
|
|
||||||
|
|
||||||
{ IDarReferencia }
|
{ IDarReferencia }
|
||||||
IDarReferencia = interface(IDAStronglyTypedDataTable)
|
IDarReferencia = interface(IDAStronglyTypedDataTable)
|
||||||
['{55C372FF-BF39-4F24-8C0F-3F8652C093C9}']
|
['{0EBA0952-DA21-4716-941F-6B43CC6545CF}']
|
||||||
{ Property getters and setters }
|
{ Property getters and setters }
|
||||||
function GetVALORValue: String;
|
function GetVALORValue: String;
|
||||||
procedure SetVALORValue(const aValue: String);
|
procedure SetVALORValue(const aValue: String);
|
||||||
@ -363,7 +320,7 @@ type
|
|||||||
|
|
||||||
{ IAlbaranesCliente }
|
{ IAlbaranesCliente }
|
||||||
IAlbaranesCliente = interface(IDAStronglyTypedDataTable)
|
IAlbaranesCliente = interface(IDAStronglyTypedDataTable)
|
||||||
['{30E4105E-F304-4684-9F36-0F085B95E8F6}']
|
['{BDCF155C-E6B4-4D9F-874B-75667EBCB8AF}']
|
||||||
{ Property getters and setters }
|
{ Property getters and setters }
|
||||||
function GetIDValue: Integer;
|
function GetIDValue: Integer;
|
||||||
procedure SetIDValue(const aValue: Integer);
|
procedure SetIDValue(const aValue: Integer);
|
||||||
@ -457,10 +414,6 @@ type
|
|||||||
procedure SetID_FAC_ALB_DEVValue(const aValue: Integer);
|
procedure SetID_FAC_ALB_DEVValue(const aValue: Integer);
|
||||||
function GetREFERENCIA_FAC_ALB_DEVValue: String;
|
function GetREFERENCIA_FAC_ALB_DEVValue: String;
|
||||||
procedure SetREFERENCIA_FAC_ALB_DEVValue(const aValue: String);
|
procedure SetREFERENCIA_FAC_ALB_DEVValue(const aValue: String);
|
||||||
function GetNUM_CORREOSValue: Integer;
|
|
||||||
procedure SetNUM_CORREOSValue(const aValue: Integer);
|
|
||||||
function GetBLOQUEADOValue: Integer;
|
|
||||||
procedure SetBLOQUEADOValue(const aValue: Integer);
|
|
||||||
|
|
||||||
|
|
||||||
{ Properties }
|
{ Properties }
|
||||||
@ -510,8 +463,6 @@ type
|
|||||||
property REFERENCIA_ALB_DEV: String read GetREFERENCIA_ALB_DEVValue write SetREFERENCIA_ALB_DEVValue;
|
property REFERENCIA_ALB_DEV: String read GetREFERENCIA_ALB_DEVValue write SetREFERENCIA_ALB_DEVValue;
|
||||||
property ID_FAC_ALB_DEV: Integer read GetID_FAC_ALB_DEVValue write SetID_FAC_ALB_DEVValue;
|
property ID_FAC_ALB_DEV: Integer read GetID_FAC_ALB_DEVValue write SetID_FAC_ALB_DEVValue;
|
||||||
property REFERENCIA_FAC_ALB_DEV: String read GetREFERENCIA_FAC_ALB_DEVValue write SetREFERENCIA_FAC_ALB_DEVValue;
|
property REFERENCIA_FAC_ALB_DEV: String read GetREFERENCIA_FAC_ALB_DEVValue write SetREFERENCIA_FAC_ALB_DEVValue;
|
||||||
property NUM_CORREOS: Integer read GetNUM_CORREOSValue write SetNUM_CORREOSValue;
|
|
||||||
property BLOQUEADO: Integer read GetBLOQUEADOValue write SetBLOQUEADOValue;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{ TAlbaranesClienteDataTableRules }
|
{ TAlbaranesClienteDataTableRules }
|
||||||
@ -611,10 +562,6 @@ type
|
|||||||
procedure SetID_FAC_ALB_DEVValue(const aValue: Integer); virtual;
|
procedure SetID_FAC_ALB_DEVValue(const aValue: Integer); virtual;
|
||||||
function GetREFERENCIA_FAC_ALB_DEVValue: String; virtual;
|
function GetREFERENCIA_FAC_ALB_DEVValue: String; virtual;
|
||||||
procedure SetREFERENCIA_FAC_ALB_DEVValue(const aValue: String); virtual;
|
procedure SetREFERENCIA_FAC_ALB_DEVValue(const aValue: String); virtual;
|
||||||
function GetNUM_CORREOSValue: Integer; virtual;
|
|
||||||
procedure SetNUM_CORREOSValue(const aValue: Integer); virtual;
|
|
||||||
function GetBLOQUEADOValue: Integer; virtual;
|
|
||||||
procedure SetBLOQUEADOValue(const aValue: Integer); virtual;
|
|
||||||
|
|
||||||
{ Properties }
|
{ Properties }
|
||||||
property ID: Integer read GetIDValue write SetIDValue;
|
property ID: Integer read GetIDValue write SetIDValue;
|
||||||
@ -663,8 +610,6 @@ type
|
|||||||
property REFERENCIA_ALB_DEV: String read GetREFERENCIA_ALB_DEVValue write SetREFERENCIA_ALB_DEVValue;
|
property REFERENCIA_ALB_DEV: String read GetREFERENCIA_ALB_DEVValue write SetREFERENCIA_ALB_DEVValue;
|
||||||
property ID_FAC_ALB_DEV: Integer read GetID_FAC_ALB_DEVValue write SetID_FAC_ALB_DEVValue;
|
property ID_FAC_ALB_DEV: Integer read GetID_FAC_ALB_DEVValue write SetID_FAC_ALB_DEVValue;
|
||||||
property REFERENCIA_FAC_ALB_DEV: String read GetREFERENCIA_FAC_ALB_DEVValue write SetREFERENCIA_FAC_ALB_DEVValue;
|
property REFERENCIA_FAC_ALB_DEV: String read GetREFERENCIA_FAC_ALB_DEVValue write SetREFERENCIA_FAC_ALB_DEVValue;
|
||||||
property NUM_CORREOS: Integer read GetNUM_CORREOSValue write SetNUM_CORREOSValue;
|
|
||||||
property BLOQUEADO: Integer read GetBLOQUEADOValue write SetBLOQUEADOValue;
|
|
||||||
|
|
||||||
public
|
public
|
||||||
constructor Create(aDataTable: TDADataTable); override;
|
constructor Create(aDataTable: TDADataTable); override;
|
||||||
@ -674,7 +619,7 @@ type
|
|||||||
|
|
||||||
{ IAlbaranesCliente_Detalles }
|
{ IAlbaranesCliente_Detalles }
|
||||||
IAlbaranesCliente_Detalles = interface(IDAStronglyTypedDataTable)
|
IAlbaranesCliente_Detalles = interface(IDAStronglyTypedDataTable)
|
||||||
['{5CAD693C-E2DB-4355-8310-B8EBA15EDB4F}']
|
['{0BA1E8DD-4911-4C91-BE56-A5E014DC032E}']
|
||||||
{ Property getters and setters }
|
{ Property getters and setters }
|
||||||
function GetIDValue: Integer;
|
function GetIDValue: Integer;
|
||||||
procedure SetIDValue(const aValue: Integer);
|
procedure SetIDValue(const aValue: Integer);
|
||||||
@ -787,7 +732,7 @@ type
|
|||||||
|
|
||||||
{ IAlbaranesCliente_Detalles_Refresh }
|
{ IAlbaranesCliente_Detalles_Refresh }
|
||||||
IAlbaranesCliente_Detalles_Refresh = interface(IDAStronglyTypedDataTable)
|
IAlbaranesCliente_Detalles_Refresh = interface(IDAStronglyTypedDataTable)
|
||||||
['{3B82C2B6-F19A-453E-8524-EA8E3565867B}']
|
['{26DDDA1E-6A88-4840-AE9A-6B169D04C411}']
|
||||||
{ Property getters and setters }
|
{ Property getters and setters }
|
||||||
function GetIDValue: Integer;
|
function GetIDValue: Integer;
|
||||||
procedure SetIDValue(const aValue: Integer);
|
procedure SetIDValue(const aValue: Integer);
|
||||||
@ -900,7 +845,7 @@ type
|
|||||||
|
|
||||||
{ IAlbaranesCliente_Refresh }
|
{ IAlbaranesCliente_Refresh }
|
||||||
IAlbaranesCliente_Refresh = interface(IDAStronglyTypedDataTable)
|
IAlbaranesCliente_Refresh = interface(IDAStronglyTypedDataTable)
|
||||||
['{04558C4E-FE43-44B4-9439-774781EB864B}']
|
['{FE5577F8-543C-4BA4-B52F-BCB1B0D1BF46}']
|
||||||
{ Property getters and setters }
|
{ Property getters and setters }
|
||||||
function GetIDValue: Integer;
|
function GetIDValue: Integer;
|
||||||
procedure SetIDValue(const aValue: Integer);
|
procedure SetIDValue(const aValue: Integer);
|
||||||
@ -994,8 +939,6 @@ type
|
|||||||
procedure SetID_FAC_ALB_DEVValue(const aValue: Integer);
|
procedure SetID_FAC_ALB_DEVValue(const aValue: Integer);
|
||||||
function GetREFERENCIA_FAC_ALB_DEVValue: String;
|
function GetREFERENCIA_FAC_ALB_DEVValue: String;
|
||||||
procedure SetREFERENCIA_FAC_ALB_DEVValue(const aValue: String);
|
procedure SetREFERENCIA_FAC_ALB_DEVValue(const aValue: String);
|
||||||
function GetNUM_CORREOSValue: Integer;
|
|
||||||
procedure SetNUM_CORREOSValue(const aValue: Integer);
|
|
||||||
|
|
||||||
|
|
||||||
{ Properties }
|
{ Properties }
|
||||||
@ -1045,7 +988,6 @@ type
|
|||||||
property REFERENCIA_ALB_DEV: String read GetREFERENCIA_ALB_DEVValue write SetREFERENCIA_ALB_DEVValue;
|
property REFERENCIA_ALB_DEV: String read GetREFERENCIA_ALB_DEVValue write SetREFERENCIA_ALB_DEVValue;
|
||||||
property ID_FAC_ALB_DEV: Integer read GetID_FAC_ALB_DEVValue write SetID_FAC_ALB_DEVValue;
|
property ID_FAC_ALB_DEV: Integer read GetID_FAC_ALB_DEVValue write SetID_FAC_ALB_DEVValue;
|
||||||
property REFERENCIA_FAC_ALB_DEV: String read GetREFERENCIA_FAC_ALB_DEVValue write SetREFERENCIA_FAC_ALB_DEVValue;
|
property REFERENCIA_FAC_ALB_DEV: String read GetREFERENCIA_FAC_ALB_DEVValue write SetREFERENCIA_FAC_ALB_DEVValue;
|
||||||
property NUM_CORREOS: Integer read GetNUM_CORREOSValue write SetNUM_CORREOSValue;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{ TAlbaranesCliente_RefreshDataTableRules }
|
{ TAlbaranesCliente_RefreshDataTableRules }
|
||||||
@ -1145,8 +1087,6 @@ type
|
|||||||
procedure SetID_FAC_ALB_DEVValue(const aValue: Integer); virtual;
|
procedure SetID_FAC_ALB_DEVValue(const aValue: Integer); virtual;
|
||||||
function GetREFERENCIA_FAC_ALB_DEVValue: String; virtual;
|
function GetREFERENCIA_FAC_ALB_DEVValue: String; virtual;
|
||||||
procedure SetREFERENCIA_FAC_ALB_DEVValue(const aValue: String); virtual;
|
procedure SetREFERENCIA_FAC_ALB_DEVValue(const aValue: String); virtual;
|
||||||
function GetNUM_CORREOSValue: Integer; virtual;
|
|
||||||
procedure SetNUM_CORREOSValue(const aValue: Integer); virtual;
|
|
||||||
|
|
||||||
{ Properties }
|
{ Properties }
|
||||||
property ID: Integer read GetIDValue write SetIDValue;
|
property ID: Integer read GetIDValue write SetIDValue;
|
||||||
@ -1195,7 +1135,6 @@ type
|
|||||||
property REFERENCIA_ALB_DEV: String read GetREFERENCIA_ALB_DEVValue write SetREFERENCIA_ALB_DEVValue;
|
property REFERENCIA_ALB_DEV: String read GetREFERENCIA_ALB_DEVValue write SetREFERENCIA_ALB_DEVValue;
|
||||||
property ID_FAC_ALB_DEV: Integer read GetID_FAC_ALB_DEVValue write SetID_FAC_ALB_DEVValue;
|
property ID_FAC_ALB_DEV: Integer read GetID_FAC_ALB_DEVValue write SetID_FAC_ALB_DEVValue;
|
||||||
property REFERENCIA_FAC_ALB_DEV: String read GetREFERENCIA_FAC_ALB_DEVValue write SetREFERENCIA_FAC_ALB_DEVValue;
|
property REFERENCIA_FAC_ALB_DEV: String read GetREFERENCIA_FAC_ALB_DEVValue write SetREFERENCIA_FAC_ALB_DEVValue;
|
||||||
property NUM_CORREOS: Integer read GetNUM_CORREOSValue write SetNUM_CORREOSValue;
|
|
||||||
|
|
||||||
public
|
public
|
||||||
constructor Create(aDataTable: TDADataTable); override;
|
constructor Create(aDataTable: TDADataTable); override;
|
||||||
@ -1207,28 +1146,6 @@ implementation
|
|||||||
|
|
||||||
uses Variants;
|
uses Variants;
|
||||||
|
|
||||||
{ TListaAnosAlbaranesDataTableRules }
|
|
||||||
constructor TListaAnosAlbaranesDataTableRules.Create(aDataTable: TDADataTable);
|
|
||||||
begin
|
|
||||||
inherited;
|
|
||||||
end;
|
|
||||||
|
|
||||||
destructor TListaAnosAlbaranesDataTableRules.Destroy;
|
|
||||||
begin
|
|
||||||
inherited;
|
|
||||||
end;
|
|
||||||
|
|
||||||
function TListaAnosAlbaranesDataTableRules.GetANOValue: String;
|
|
||||||
begin
|
|
||||||
result := DataTable.Fields[idx_ListaAnosAlbaranesANO].AsString;
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TListaAnosAlbaranesDataTableRules.SetANOValue(const aValue: String);
|
|
||||||
begin
|
|
||||||
DataTable.Fields[idx_ListaAnosAlbaranesANO].AsString := aValue;
|
|
||||||
end;
|
|
||||||
|
|
||||||
|
|
||||||
{ TDarReferenciaDataTableRules }
|
{ TDarReferenciaDataTableRules }
|
||||||
constructor TDarReferenciaDataTableRules.Create(aDataTable: TDADataTable);
|
constructor TDarReferenciaDataTableRules.Create(aDataTable: TDADataTable);
|
||||||
begin
|
begin
|
||||||
@ -1724,26 +1641,6 @@ begin
|
|||||||
DataTable.Fields[idx_AlbaranesClienteREFERENCIA_FAC_ALB_DEV].AsString := aValue;
|
DataTable.Fields[idx_AlbaranesClienteREFERENCIA_FAC_ALB_DEV].AsString := aValue;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TAlbaranesClienteDataTableRules.GetNUM_CORREOSValue: Integer;
|
|
||||||
begin
|
|
||||||
result := DataTable.Fields[idx_AlbaranesClienteNUM_CORREOS].AsInteger;
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TAlbaranesClienteDataTableRules.SetNUM_CORREOSValue(const aValue: Integer);
|
|
||||||
begin
|
|
||||||
DataTable.Fields[idx_AlbaranesClienteNUM_CORREOS].AsInteger := aValue;
|
|
||||||
end;
|
|
||||||
|
|
||||||
function TAlbaranesClienteDataTableRules.GetBLOQUEADOValue: Integer;
|
|
||||||
begin
|
|
||||||
result := DataTable.Fields[idx_AlbaranesClienteBLOQUEADO].AsInteger;
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TAlbaranesClienteDataTableRules.SetBLOQUEADOValue(const aValue: Integer);
|
|
||||||
begin
|
|
||||||
DataTable.Fields[idx_AlbaranesClienteBLOQUEADO].AsInteger := aValue;
|
|
||||||
end;
|
|
||||||
|
|
||||||
|
|
||||||
{ TAlbaranesCliente_DetallesDataTableRules }
|
{ TAlbaranesCliente_DetallesDataTableRules }
|
||||||
constructor TAlbaranesCliente_DetallesDataTableRules.Create(aDataTable: TDADataTable);
|
constructor TAlbaranesCliente_DetallesDataTableRules.Create(aDataTable: TDADataTable);
|
||||||
@ -2542,19 +2439,8 @@ begin
|
|||||||
DataTable.Fields[idx_AlbaranesCliente_RefreshREFERENCIA_FAC_ALB_DEV].AsString := aValue;
|
DataTable.Fields[idx_AlbaranesCliente_RefreshREFERENCIA_FAC_ALB_DEV].AsString := aValue;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TAlbaranesCliente_RefreshDataTableRules.GetNUM_CORREOSValue: Integer;
|
|
||||||
begin
|
|
||||||
result := DataTable.Fields[idx_AlbaranesCliente_RefreshNUM_CORREOS].AsInteger;
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TAlbaranesCliente_RefreshDataTableRules.SetNUM_CORREOSValue(const aValue: Integer);
|
|
||||||
begin
|
|
||||||
DataTable.Fields[idx_AlbaranesCliente_RefreshNUM_CORREOS].AsInteger := aValue;
|
|
||||||
end;
|
|
||||||
|
|
||||||
|
|
||||||
initialization
|
initialization
|
||||||
RegisterDataTableRules(RID_ListaAnosAlbaranes, TListaAnosAlbaranesDataTableRules);
|
|
||||||
RegisterDataTableRules(RID_DarReferencia, TDarReferenciaDataTableRules);
|
RegisterDataTableRules(RID_DarReferencia, TDarReferenciaDataTableRules);
|
||||||
RegisterDataTableRules(RID_AlbaranesCliente, TAlbaranesClienteDataTableRules);
|
RegisterDataTableRules(RID_AlbaranesCliente, TAlbaranesClienteDataTableRules);
|
||||||
RegisterDataTableRules(RID_AlbaranesCliente_Detalles, TAlbaranesCliente_DetallesDataTableRules);
|
RegisterDataTableRules(RID_AlbaranesCliente_Detalles, TAlbaranesCliente_DetallesDataTableRules);
|
||||||
|
|||||||
@ -9,46 +9,16 @@ const
|
|||||||
{ Delta rules ids
|
{ Delta rules ids
|
||||||
Feel free to change them to something more human readable
|
Feel free to change them to something more human readable
|
||||||
but make sure they are unique in the context of your application }
|
but make sure they are unique in the context of your application }
|
||||||
RID_ListaAnosAlbaranesDelta = '{90F084BA-9BC4-4890-8E73-EE502ED7EC0F}';
|
RID_DarReferenciaDelta = '{686A4397-FE20-45D3-9CED-8AF55D9542EB}';
|
||||||
RID_DarReferenciaDelta = '{5C4E2CEA-88DD-4AC6-AAC2-6293B3382633}';
|
RID_AlbaranesClienteDelta = '{51F248ED-D277-4C06-BAC6-810A28646B1B}';
|
||||||
RID_AlbaranesClienteDelta = '{98711469-A105-4C12-A90C-952772B92D20}';
|
RID_AlbaranesCliente_DetallesDelta = '{CC2B288D-936A-40AC-8691-DC28A6515213}';
|
||||||
RID_AlbaranesCliente_DetallesDelta = '{A0FDE976-C61E-4FCE-8507-54924F485E4F}';
|
RID_AlbaranesCliente_Detalles_RefreshDelta = '{8D8BE999-438B-4A1F-9BFE-D9215AFFE426}';
|
||||||
RID_AlbaranesCliente_Detalles_RefreshDelta = '{48C36801-6C3D-4815-B443-DDDC4BCD25DF}';
|
RID_AlbaranesCliente_RefreshDelta = '{EF94943F-4DE8-49C6-920D-635E8E5783DD}';
|
||||||
RID_AlbaranesCliente_RefreshDelta = '{4153EB2E-48B9-4133-8427-285B91FA9723}';
|
|
||||||
|
|
||||||
type
|
type
|
||||||
{ IListaAnosAlbaranesDelta }
|
|
||||||
IListaAnosAlbaranesDelta = interface(IListaAnosAlbaranes)
|
|
||||||
['{90F084BA-9BC4-4890-8E73-EE502ED7EC0F}']
|
|
||||||
{ Property getters and setters }
|
|
||||||
function GetOldANOValue : String;
|
|
||||||
|
|
||||||
{ Properties }
|
|
||||||
property OldANO : String read GetOldANOValue;
|
|
||||||
end;
|
|
||||||
|
|
||||||
{ TListaAnosAlbaranesBusinessProcessorRules }
|
|
||||||
TListaAnosAlbaranesBusinessProcessorRules = class(TDABusinessProcessorRules, IListaAnosAlbaranes, IListaAnosAlbaranesDelta)
|
|
||||||
private
|
|
||||||
protected
|
|
||||||
{ Property getters and setters }
|
|
||||||
function GetANOValue: String; virtual;
|
|
||||||
function GetOldANOValue: String; virtual;
|
|
||||||
procedure SetANOValue(const aValue: String); virtual;
|
|
||||||
|
|
||||||
{ Properties }
|
|
||||||
property ANO : String read GetANOValue write SetANOValue;
|
|
||||||
property OldANO : String read GetOldANOValue;
|
|
||||||
|
|
||||||
public
|
|
||||||
constructor Create(aBusinessProcessor: TDABusinessProcessor); override;
|
|
||||||
destructor Destroy; override;
|
|
||||||
|
|
||||||
end;
|
|
||||||
|
|
||||||
{ IDarReferenciaDelta }
|
{ IDarReferenciaDelta }
|
||||||
IDarReferenciaDelta = interface(IDarReferencia)
|
IDarReferenciaDelta = interface(IDarReferencia)
|
||||||
['{5C4E2CEA-88DD-4AC6-AAC2-6293B3382633}']
|
['{686A4397-FE20-45D3-9CED-8AF55D9542EB}']
|
||||||
{ Property getters and setters }
|
{ Property getters and setters }
|
||||||
function GetOldVALORValue : String;
|
function GetOldVALORValue : String;
|
||||||
|
|
||||||
@ -77,7 +47,7 @@ type
|
|||||||
|
|
||||||
{ IAlbaranesClienteDelta }
|
{ IAlbaranesClienteDelta }
|
||||||
IAlbaranesClienteDelta = interface(IAlbaranesCliente)
|
IAlbaranesClienteDelta = interface(IAlbaranesCliente)
|
||||||
['{98711469-A105-4C12-A90C-952772B92D20}']
|
['{51F248ED-D277-4C06-BAC6-810A28646B1B}']
|
||||||
{ Property getters and setters }
|
{ Property getters and setters }
|
||||||
function GetOldIDValue : Integer;
|
function GetOldIDValue : Integer;
|
||||||
function GetOldID_EMPRESAValue : Integer;
|
function GetOldID_EMPRESAValue : Integer;
|
||||||
@ -125,8 +95,6 @@ type
|
|||||||
function GetOldREFERENCIA_ALB_DEVValue : String;
|
function GetOldREFERENCIA_ALB_DEVValue : String;
|
||||||
function GetOldID_FAC_ALB_DEVValue : Integer;
|
function GetOldID_FAC_ALB_DEVValue : Integer;
|
||||||
function GetOldREFERENCIA_FAC_ALB_DEVValue : String;
|
function GetOldREFERENCIA_FAC_ALB_DEVValue : String;
|
||||||
function GetOldNUM_CORREOSValue : Integer;
|
|
||||||
function GetOldBLOQUEADOValue : Integer;
|
|
||||||
|
|
||||||
{ Properties }
|
{ Properties }
|
||||||
property OldID : Integer read GetOldIDValue;
|
property OldID : Integer read GetOldIDValue;
|
||||||
@ -175,8 +143,6 @@ type
|
|||||||
property OldREFERENCIA_ALB_DEV : String read GetOldREFERENCIA_ALB_DEVValue;
|
property OldREFERENCIA_ALB_DEV : String read GetOldREFERENCIA_ALB_DEVValue;
|
||||||
property OldID_FAC_ALB_DEV : Integer read GetOldID_FAC_ALB_DEVValue;
|
property OldID_FAC_ALB_DEV : Integer read GetOldID_FAC_ALB_DEVValue;
|
||||||
property OldREFERENCIA_FAC_ALB_DEV : String read GetOldREFERENCIA_FAC_ALB_DEVValue;
|
property OldREFERENCIA_FAC_ALB_DEV : String read GetOldREFERENCIA_FAC_ALB_DEVValue;
|
||||||
property OldNUM_CORREOS : Integer read GetOldNUM_CORREOSValue;
|
|
||||||
property OldBLOQUEADO : Integer read GetOldBLOQUEADOValue;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{ TAlbaranesClienteBusinessProcessorRules }
|
{ TAlbaranesClienteBusinessProcessorRules }
|
||||||
@ -322,12 +288,6 @@ type
|
|||||||
function GetREFERENCIA_FAC_ALB_DEVValue: String; virtual;
|
function GetREFERENCIA_FAC_ALB_DEVValue: String; virtual;
|
||||||
function GetOldREFERENCIA_FAC_ALB_DEVValue: String; virtual;
|
function GetOldREFERENCIA_FAC_ALB_DEVValue: String; virtual;
|
||||||
procedure SetREFERENCIA_FAC_ALB_DEVValue(const aValue: String); virtual;
|
procedure SetREFERENCIA_FAC_ALB_DEVValue(const aValue: String); virtual;
|
||||||
function GetNUM_CORREOSValue: Integer; virtual;
|
|
||||||
function GetOldNUM_CORREOSValue: Integer; virtual;
|
|
||||||
procedure SetNUM_CORREOSValue(const aValue: Integer); virtual;
|
|
||||||
function GetBLOQUEADOValue: Integer; virtual;
|
|
||||||
function GetOldBLOQUEADOValue: Integer; virtual;
|
|
||||||
procedure SetBLOQUEADOValue(const aValue: Integer); virtual;
|
|
||||||
|
|
||||||
{ Properties }
|
{ Properties }
|
||||||
property ID : Integer read GetIDValue write SetIDValue;
|
property ID : Integer read GetIDValue write SetIDValue;
|
||||||
@ -422,10 +382,6 @@ type
|
|||||||
property OldID_FAC_ALB_DEV : Integer read GetOldID_FAC_ALB_DEVValue;
|
property OldID_FAC_ALB_DEV : Integer read GetOldID_FAC_ALB_DEVValue;
|
||||||
property REFERENCIA_FAC_ALB_DEV : String read GetREFERENCIA_FAC_ALB_DEVValue write SetREFERENCIA_FAC_ALB_DEVValue;
|
property REFERENCIA_FAC_ALB_DEV : String read GetREFERENCIA_FAC_ALB_DEVValue write SetREFERENCIA_FAC_ALB_DEVValue;
|
||||||
property OldREFERENCIA_FAC_ALB_DEV : String read GetOldREFERENCIA_FAC_ALB_DEVValue;
|
property OldREFERENCIA_FAC_ALB_DEV : String read GetOldREFERENCIA_FAC_ALB_DEVValue;
|
||||||
property NUM_CORREOS : Integer read GetNUM_CORREOSValue write SetNUM_CORREOSValue;
|
|
||||||
property OldNUM_CORREOS : Integer read GetOldNUM_CORREOSValue;
|
|
||||||
property BLOQUEADO : Integer read GetBLOQUEADOValue write SetBLOQUEADOValue;
|
|
||||||
property OldBLOQUEADO : Integer read GetOldBLOQUEADOValue;
|
|
||||||
|
|
||||||
public
|
public
|
||||||
constructor Create(aBusinessProcessor: TDABusinessProcessor); override;
|
constructor Create(aBusinessProcessor: TDABusinessProcessor); override;
|
||||||
@ -435,7 +391,7 @@ type
|
|||||||
|
|
||||||
{ IAlbaranesCliente_DetallesDelta }
|
{ IAlbaranesCliente_DetallesDelta }
|
||||||
IAlbaranesCliente_DetallesDelta = interface(IAlbaranesCliente_Detalles)
|
IAlbaranesCliente_DetallesDelta = interface(IAlbaranesCliente_Detalles)
|
||||||
['{A0FDE976-C61E-4FCE-8507-54924F485E4F}']
|
['{CC2B288D-936A-40AC-8691-DC28A6515213}']
|
||||||
{ Property getters and setters }
|
{ Property getters and setters }
|
||||||
function GetOldIDValue : Integer;
|
function GetOldIDValue : Integer;
|
||||||
function GetOldID_ALBARANValue : Integer;
|
function GetOldID_ALBARANValue : Integer;
|
||||||
@ -562,7 +518,7 @@ type
|
|||||||
|
|
||||||
{ IAlbaranesCliente_Detalles_RefreshDelta }
|
{ IAlbaranesCliente_Detalles_RefreshDelta }
|
||||||
IAlbaranesCliente_Detalles_RefreshDelta = interface(IAlbaranesCliente_Detalles_Refresh)
|
IAlbaranesCliente_Detalles_RefreshDelta = interface(IAlbaranesCliente_Detalles_Refresh)
|
||||||
['{48C36801-6C3D-4815-B443-DDDC4BCD25DF}']
|
['{8D8BE999-438B-4A1F-9BFE-D9215AFFE426}']
|
||||||
{ Property getters and setters }
|
{ Property getters and setters }
|
||||||
function GetOldIDValue : Integer;
|
function GetOldIDValue : Integer;
|
||||||
function GetOldID_ALBARANValue : Integer;
|
function GetOldID_ALBARANValue : Integer;
|
||||||
@ -689,7 +645,7 @@ type
|
|||||||
|
|
||||||
{ IAlbaranesCliente_RefreshDelta }
|
{ IAlbaranesCliente_RefreshDelta }
|
||||||
IAlbaranesCliente_RefreshDelta = interface(IAlbaranesCliente_Refresh)
|
IAlbaranesCliente_RefreshDelta = interface(IAlbaranesCliente_Refresh)
|
||||||
['{4153EB2E-48B9-4133-8427-285B91FA9723}']
|
['{EF94943F-4DE8-49C6-920D-635E8E5783DD}']
|
||||||
{ Property getters and setters }
|
{ Property getters and setters }
|
||||||
function GetOldIDValue : Integer;
|
function GetOldIDValue : Integer;
|
||||||
function GetOldID_EMPRESAValue : Integer;
|
function GetOldID_EMPRESAValue : Integer;
|
||||||
@ -737,7 +693,6 @@ type
|
|||||||
function GetOldREFERENCIA_ALB_DEVValue : String;
|
function GetOldREFERENCIA_ALB_DEVValue : String;
|
||||||
function GetOldID_FAC_ALB_DEVValue : Integer;
|
function GetOldID_FAC_ALB_DEVValue : Integer;
|
||||||
function GetOldREFERENCIA_FAC_ALB_DEVValue : String;
|
function GetOldREFERENCIA_FAC_ALB_DEVValue : String;
|
||||||
function GetOldNUM_CORREOSValue : Integer;
|
|
||||||
|
|
||||||
{ Properties }
|
{ Properties }
|
||||||
property OldID : Integer read GetOldIDValue;
|
property OldID : Integer read GetOldIDValue;
|
||||||
@ -786,7 +741,6 @@ type
|
|||||||
property OldREFERENCIA_ALB_DEV : String read GetOldREFERENCIA_ALB_DEVValue;
|
property OldREFERENCIA_ALB_DEV : String read GetOldREFERENCIA_ALB_DEVValue;
|
||||||
property OldID_FAC_ALB_DEV : Integer read GetOldID_FAC_ALB_DEVValue;
|
property OldID_FAC_ALB_DEV : Integer read GetOldID_FAC_ALB_DEVValue;
|
||||||
property OldREFERENCIA_FAC_ALB_DEV : String read GetOldREFERENCIA_FAC_ALB_DEVValue;
|
property OldREFERENCIA_FAC_ALB_DEV : String read GetOldREFERENCIA_FAC_ALB_DEVValue;
|
||||||
property OldNUM_CORREOS : Integer read GetOldNUM_CORREOSValue;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{ TAlbaranesCliente_RefreshBusinessProcessorRules }
|
{ TAlbaranesCliente_RefreshBusinessProcessorRules }
|
||||||
@ -932,9 +886,6 @@ type
|
|||||||
function GetREFERENCIA_FAC_ALB_DEVValue: String; virtual;
|
function GetREFERENCIA_FAC_ALB_DEVValue: String; virtual;
|
||||||
function GetOldREFERENCIA_FAC_ALB_DEVValue: String; virtual;
|
function GetOldREFERENCIA_FAC_ALB_DEVValue: String; virtual;
|
||||||
procedure SetREFERENCIA_FAC_ALB_DEVValue(const aValue: String); virtual;
|
procedure SetREFERENCIA_FAC_ALB_DEVValue(const aValue: String); virtual;
|
||||||
function GetNUM_CORREOSValue: Integer; virtual;
|
|
||||||
function GetOldNUM_CORREOSValue: Integer; virtual;
|
|
||||||
procedure SetNUM_CORREOSValue(const aValue: Integer); virtual;
|
|
||||||
|
|
||||||
{ Properties }
|
{ Properties }
|
||||||
property ID : Integer read GetIDValue write SetIDValue;
|
property ID : Integer read GetIDValue write SetIDValue;
|
||||||
@ -1029,8 +980,6 @@ type
|
|||||||
property OldID_FAC_ALB_DEV : Integer read GetOldID_FAC_ALB_DEVValue;
|
property OldID_FAC_ALB_DEV : Integer read GetOldID_FAC_ALB_DEVValue;
|
||||||
property REFERENCIA_FAC_ALB_DEV : String read GetREFERENCIA_FAC_ALB_DEVValue write SetREFERENCIA_FAC_ALB_DEVValue;
|
property REFERENCIA_FAC_ALB_DEV : String read GetREFERENCIA_FAC_ALB_DEVValue write SetREFERENCIA_FAC_ALB_DEVValue;
|
||||||
property OldREFERENCIA_FAC_ALB_DEV : String read GetOldREFERENCIA_FAC_ALB_DEVValue;
|
property OldREFERENCIA_FAC_ALB_DEV : String read GetOldREFERENCIA_FAC_ALB_DEVValue;
|
||||||
property NUM_CORREOS : Integer read GetNUM_CORREOSValue write SetNUM_CORREOSValue;
|
|
||||||
property OldNUM_CORREOS : Integer read GetOldNUM_CORREOSValue;
|
|
||||||
|
|
||||||
public
|
public
|
||||||
constructor Create(aBusinessProcessor: TDABusinessProcessor); override;
|
constructor Create(aBusinessProcessor: TDABusinessProcessor); override;
|
||||||
@ -1043,33 +992,6 @@ implementation
|
|||||||
uses
|
uses
|
||||||
Variants, uROBinaryHelpers;
|
Variants, uROBinaryHelpers;
|
||||||
|
|
||||||
{ TListaAnosAlbaranesBusinessProcessorRules }
|
|
||||||
constructor TListaAnosAlbaranesBusinessProcessorRules.Create(aBusinessProcessor: TDABusinessProcessor);
|
|
||||||
begin
|
|
||||||
inherited;
|
|
||||||
end;
|
|
||||||
|
|
||||||
destructor TListaAnosAlbaranesBusinessProcessorRules.Destroy;
|
|
||||||
begin
|
|
||||||
inherited;
|
|
||||||
end;
|
|
||||||
|
|
||||||
function TListaAnosAlbaranesBusinessProcessorRules.GetANOValue: String;
|
|
||||||
begin
|
|
||||||
result := BusinessProcessor.CurrentChange.NewValueByName[fld_ListaAnosAlbaranesANO];
|
|
||||||
end;
|
|
||||||
|
|
||||||
function TListaAnosAlbaranesBusinessProcessorRules.GetOldANOValue: String;
|
|
||||||
begin
|
|
||||||
result := BusinessProcessor.CurrentChange.OldValueByName[fld_ListaAnosAlbaranesANO];
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TListaAnosAlbaranesBusinessProcessorRules.SetANOValue(const aValue: String);
|
|
||||||
begin
|
|
||||||
BusinessProcessor.CurrentChange.NewValueByName[fld_ListaAnosAlbaranesANO] := aValue;
|
|
||||||
end;
|
|
||||||
|
|
||||||
|
|
||||||
{ TDarReferenciaBusinessProcessorRules }
|
{ TDarReferenciaBusinessProcessorRules }
|
||||||
constructor TDarReferenciaBusinessProcessorRules.Create(aBusinessProcessor: TDABusinessProcessor);
|
constructor TDarReferenciaBusinessProcessorRules.Create(aBusinessProcessor: TDABusinessProcessor);
|
||||||
begin
|
begin
|
||||||
@ -1802,36 +1724,6 @@ begin
|
|||||||
BusinessProcessor.CurrentChange.NewValueByName[fld_AlbaranesClienteREFERENCIA_FAC_ALB_DEV] := aValue;
|
BusinessProcessor.CurrentChange.NewValueByName[fld_AlbaranesClienteREFERENCIA_FAC_ALB_DEV] := aValue;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TAlbaranesClienteBusinessProcessorRules.GetNUM_CORREOSValue: Integer;
|
|
||||||
begin
|
|
||||||
result := BusinessProcessor.CurrentChange.NewValueByName[fld_AlbaranesClienteNUM_CORREOS];
|
|
||||||
end;
|
|
||||||
|
|
||||||
function TAlbaranesClienteBusinessProcessorRules.GetOldNUM_CORREOSValue: Integer;
|
|
||||||
begin
|
|
||||||
result := BusinessProcessor.CurrentChange.OldValueByName[fld_AlbaranesClienteNUM_CORREOS];
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TAlbaranesClienteBusinessProcessorRules.SetNUM_CORREOSValue(const aValue: Integer);
|
|
||||||
begin
|
|
||||||
BusinessProcessor.CurrentChange.NewValueByName[fld_AlbaranesClienteNUM_CORREOS] := aValue;
|
|
||||||
end;
|
|
||||||
|
|
||||||
function TAlbaranesClienteBusinessProcessorRules.GetBLOQUEADOValue: Integer;
|
|
||||||
begin
|
|
||||||
result := BusinessProcessor.CurrentChange.NewValueByName[fld_AlbaranesClienteBLOQUEADO];
|
|
||||||
end;
|
|
||||||
|
|
||||||
function TAlbaranesClienteBusinessProcessorRules.GetOldBLOQUEADOValue: Integer;
|
|
||||||
begin
|
|
||||||
result := BusinessProcessor.CurrentChange.OldValueByName[fld_AlbaranesClienteBLOQUEADO];
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TAlbaranesClienteBusinessProcessorRules.SetBLOQUEADOValue(const aValue: Integer);
|
|
||||||
begin
|
|
||||||
BusinessProcessor.CurrentChange.NewValueByName[fld_AlbaranesClienteBLOQUEADO] := aValue;
|
|
||||||
end;
|
|
||||||
|
|
||||||
|
|
||||||
{ TAlbaranesCliente_DetallesBusinessProcessorRules }
|
{ TAlbaranesCliente_DetallesBusinessProcessorRules }
|
||||||
constructor TAlbaranesCliente_DetallesBusinessProcessorRules.Create(aBusinessProcessor: TDABusinessProcessor);
|
constructor TAlbaranesCliente_DetallesBusinessProcessorRules.Create(aBusinessProcessor: TDABusinessProcessor);
|
||||||
@ -3012,24 +2904,8 @@ begin
|
|||||||
BusinessProcessor.CurrentChange.NewValueByName[fld_AlbaranesCliente_RefreshREFERENCIA_FAC_ALB_DEV] := aValue;
|
BusinessProcessor.CurrentChange.NewValueByName[fld_AlbaranesCliente_RefreshREFERENCIA_FAC_ALB_DEV] := aValue;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TAlbaranesCliente_RefreshBusinessProcessorRules.GetNUM_CORREOSValue: Integer;
|
|
||||||
begin
|
|
||||||
result := BusinessProcessor.CurrentChange.NewValueByName[fld_AlbaranesCliente_RefreshNUM_CORREOS];
|
|
||||||
end;
|
|
||||||
|
|
||||||
function TAlbaranesCliente_RefreshBusinessProcessorRules.GetOldNUM_CORREOSValue: Integer;
|
|
||||||
begin
|
|
||||||
result := BusinessProcessor.CurrentChange.OldValueByName[fld_AlbaranesCliente_RefreshNUM_CORREOS];
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TAlbaranesCliente_RefreshBusinessProcessorRules.SetNUM_CORREOSValue(const aValue: Integer);
|
|
||||||
begin
|
|
||||||
BusinessProcessor.CurrentChange.NewValueByName[fld_AlbaranesCliente_RefreshNUM_CORREOS] := aValue;
|
|
||||||
end;
|
|
||||||
|
|
||||||
|
|
||||||
initialization
|
initialization
|
||||||
RegisterBusinessProcessorRules(RID_ListaAnosAlbaranesDelta, TListaAnosAlbaranesBusinessProcessorRules);
|
|
||||||
RegisterBusinessProcessorRules(RID_DarReferenciaDelta, TDarReferenciaBusinessProcessorRules);
|
RegisterBusinessProcessorRules(RID_DarReferenciaDelta, TDarReferenciaBusinessProcessorRules);
|
||||||
RegisterBusinessProcessorRules(RID_AlbaranesClienteDelta, TAlbaranesClienteBusinessProcessorRules);
|
RegisterBusinessProcessorRules(RID_AlbaranesClienteDelta, TAlbaranesClienteBusinessProcessorRules);
|
||||||
RegisterBusinessProcessorRules(RID_AlbaranesCliente_DetallesDelta, TAlbaranesCliente_DetallesBusinessProcessorRules);
|
RegisterBusinessProcessorRules(RID_AlbaranesCliente_DetallesDelta, TAlbaranesCliente_DetallesBusinessProcessorRules);
|
||||||
|
|||||||
@ -110,20 +110,19 @@ object RptAlbaranesCliente: TRptAlbaranesCliente
|
|||||||
'LBARANES_CLIENTE.POBLACION,'#10' V_ALBARANES_CLIENTE.PROVINCIA,'#10' V' +
|
'LBARANES_CLIENTE.POBLACION,'#10' V_ALBARANES_CLIENTE.PROVINCIA,'#10' V' +
|
||||||
'_ALBARANES_CLIENTE.PERSONA_CONTACTO,'#10' V_ALBARANES_CLIENTE.TELEF' +
|
'_ALBARANES_CLIENTE.PERSONA_CONTACTO,'#10' V_ALBARANES_CLIENTE.TELEF' +
|
||||||
'ONO,'#10' V_ALBARANES_CLIENTE.CALLE,'#10' V_ALBARANES_CLIENTE.OBSERVAC' +
|
'ONO,'#10' V_ALBARANES_CLIENTE.CALLE,'#10' V_ALBARANES_CLIENTE.OBSERVAC' +
|
||||||
'IONES,'#10' V_ALBARANES_CLIENTE.INCIDENCIAS,'#10' V_ALBARANES_CLIENTE.' +
|
'IONES,'#10' V_ALBARANES_CLIENTE.IMPORTE_TOTAL,'#10' V_ALBARANES_CLIENT' +
|
||||||
'IMPORTE_TOTAL,'#10' V_ALBARANES_CLIENTE.FECHA_PREVISTA_ENVIO,'#10' EMP' +
|
'E.FECHA_PREVISTA_ENVIO,'#10' EMPRESAS.NIF_CIF AS NIF_CIF_EMPRESA,'#10' ' +
|
||||||
'RESAS.NIF_CIF AS NIF_CIF_EMPRESA,'#10' EMPRESAS.NOMBRE AS NOMBRE_EM' +
|
' EMPRESAS.NOMBRE AS NOMBRE_EMPRESA,'#10' EMPRESAS.RAZON_SOCIAL AS R' +
|
||||||
'PRESA,'#10' EMPRESAS.RAZON_SOCIAL AS RAZON_SOCIAL_EMPRESA,'#10' EMPRES' +
|
'AZON_SOCIAL_EMPRESA,'#10' EMPRESAS.CALLE AS CALLE_EMPRESA,'#10' EMPRES' +
|
||||||
'AS.CALLE AS CALLE_EMPRESA,'#10' EMPRESAS.CODIGO_POSTAL AS CODIGO_PO' +
|
'AS.CODIGO_POSTAL AS CODIGO_POSTAL_EMPRESA,'#10' EMPRESAS.POBLACION ' +
|
||||||
'STAL_EMPRESA,'#10' EMPRESAS.POBLACION AS POBLACION_EMPRESA,'#10' EMPRE' +
|
'AS POBLACION_EMPRESA,'#10' EMPRESAS.PROVINCIA AS PROVINCIA_EMPRESA,' +
|
||||||
'SAS.PROVINCIA AS PROVINCIA_EMPRESA,'#10' EMPRESAS.TELEFONO_1 AS TEL' +
|
#10' EMPRESAS.TELEFONO_1 AS TELEFONO_1_EMPRESA,'#10' EMPRESAS.FAX AS ' +
|
||||||
'EFONO_1_EMPRESA,'#10' EMPRESAS.FAX AS FAX_EMPRESA,'#10' EMPRESAS.MOVIL' +
|
'FAX_EMPRESA,'#10' EMPRESAS.MOVIL_1 AS MOVIL_1_EMPRESA,'#10' EMPRESAS.E' +
|
||||||
'_1 AS MOVIL_1_EMPRESA,'#10' EMPRESAS.EMAIL_1 AS EMAIL_1_EMPRESA,'#10' ' +
|
'MAIL_1 AS EMAIL_1_EMPRESA,'#10' EMPRESAS.PAGINA_WEB AS PAGINA_WEB_E' +
|
||||||
'EMPRESAS.PAGINA_WEB AS PAGINA_WEB_EMPRESA'#10'FROM'#10' V_ALBARANES_C' +
|
'MPRESA'#10'FROM'#10' V_ALBARANES_CLIENTE'#10' LEFT OUTER JOIN V_CLIENTES' +
|
||||||
'LIENTE'#10' LEFT OUTER JOIN V_CLIENTES ON (V_CLIENTES.ID = V_ALBARA' +
|
' ON (V_CLIENTES.ID = V_ALBARANES_CLIENTE.ID_CLIENTE)'#10' LEFT OUTE' +
|
||||||
'NES_CLIENTE.ID_CLIENTE)'#10' LEFT OUTER JOIN EMPRESAS ON (EMPRESAS.' +
|
'R JOIN EMPRESAS ON (EMPRESAS.ID = V_ALBARANES_CLIENTE.ID_EMPRESA' +
|
||||||
'ID = V_ALBARANES_CLIENTE.ID_EMPRESA)'#10'WHERE V_ALBARANES_CLIENTE.I' +
|
')'#10'WHERE V_ALBARANES_CLIENTE.ID = :ID'
|
||||||
'D = :ID'
|
|
||||||
StatementType = stSQL
|
StatementType = stSQL
|
||||||
ColumnMappings = <
|
ColumnMappings = <
|
||||||
item
|
item
|
||||||
@ -249,10 +248,6 @@ object RptAlbaranesCliente: TRptAlbaranesCliente
|
|||||||
item
|
item
|
||||||
DatasetField = 'PROVINCIA_EMPRESA'
|
DatasetField = 'PROVINCIA_EMPRESA'
|
||||||
TableField = 'PROVINCIA_EMPRESA'
|
TableField = 'PROVINCIA_EMPRESA'
|
||||||
end
|
|
||||||
item
|
|
||||||
DatasetField = 'INCIDENCIAS'
|
|
||||||
TableField = 'INCIDENCIAS'
|
|
||||||
end>
|
end>
|
||||||
end>
|
end>
|
||||||
Name = 'Informe_Cabecera'
|
Name = 'Informe_Cabecera'
|
||||||
@ -455,17 +450,6 @@ object RptAlbaranesCliente: TRptAlbaranesCliente
|
|||||||
Lookup = False
|
Lookup = False
|
||||||
LookupCache = False
|
LookupCache = False
|
||||||
end
|
end
|
||||||
item
|
|
||||||
Name = 'INCIDENCIAS'
|
|
||||||
DataType = datMemo
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
InPrimaryKey = False
|
|
||||||
Calculated = False
|
|
||||||
Lookup = False
|
|
||||||
LookupCache = False
|
|
||||||
end
|
|
||||||
item
|
item
|
||||||
Name = 'IMPORTE_TOTAL'
|
Name = 'IMPORTE_TOTAL'
|
||||||
DataType = datFloat
|
DataType = datFloat
|
||||||
@ -1346,26 +1330,9 @@ object RptAlbaranesCliente: TRptAlbaranesCliente
|
|||||||
PrintOptions.Printer = 'Por defecto'
|
PrintOptions.Printer = 'Por defecto'
|
||||||
PrintOptions.PrintOnSheet = 0
|
PrintOptions.PrintOnSheet = 0
|
||||||
ReportOptions.CreateDate = 39065.872423495400000000
|
ReportOptions.CreateDate = 39065.872423495400000000
|
||||||
ReportOptions.LastChange = 39752.715049039350000000
|
ReportOptions.LastChange = 39286.749813368060000000
|
||||||
ScriptLanguage = 'PascalScript'
|
ScriptLanguage = 'PascalScript'
|
||||||
ScriptText.Strings = (
|
ScriptText.Strings = (
|
||||||
'var'
|
|
||||||
' Pagina: Variant;'
|
|
||||||
''
|
|
||||||
''
|
|
||||||
'procedure DatosEmpresaOnBeforePrint(Sender: TfrxComponent);'
|
|
||||||
'var'
|
|
||||||
' Cadena: String;'
|
|
||||||
'begin'
|
|
||||||
' DatosEmpresa.Lines.Clear;'
|
|
||||||
' if (<frxDBCabecera."TELEFONO_1_EMPRESA"> <> '#39#39') then'
|
|
||||||
' Cadena := '#39'TLF: '#39' + <frxDBCabecera."TELEFONO_1_EMPRESA">;'
|
|
||||||
' if (<frxDBCabecera."FAX_EMPRESA"> <> '#39#39') then'
|
|
||||||
|
|
||||||
' Cadena := Cadena + '#39' FAX: '#39' + <frxDBCabecera."FAX_EMPRESA' +
|
|
||||||
'">;'
|
|
||||||
' DatosEmpresa.Lines.Add(Cadena);'
|
|
||||||
'end;'
|
|
||||||
''
|
''
|
||||||
'procedure NombreEmpresaOnBeforePrint(Sender: TfrxComponent);'
|
'procedure NombreEmpresaOnBeforePrint(Sender: TfrxComponent);'
|
||||||
'begin'
|
'begin'
|
||||||
@ -1373,107 +1340,53 @@ object RptAlbaranesCliente: TRptAlbaranesCliente
|
|||||||
' NombreEmpresa.Lines.Add(<frxDBCabecera."NOMBRE_EMPRESA">);'
|
' NombreEmpresa.Lines.Add(<frxDBCabecera."NOMBRE_EMPRESA">);'
|
||||||
'end;'
|
'end;'
|
||||||
''
|
''
|
||||||
'procedure DireccionEnvioOnBeforePrint(Sender: TfrxComponent);'
|
'procedure TelefonosEmpresaOnBeforePrint(Sender: TfrxComponent);'
|
||||||
'var'
|
'var'
|
||||||
' ACadena : String;'
|
' Cadena: String;'
|
||||||
'begin'
|
'begin'
|
||||||
' ACadena := '#39#39';'
|
' TelefonosEmpresa.Lines.Clear;'
|
||||||
' DireccionEnvio.Lines.Clear;'
|
|
||||||
''
|
''
|
||||||
' ACadena := '#39#39';'
|
' if (<frxDBCabecera."TELEFONO_1_EMPRESA"> <> '#39#39') then'
|
||||||
''
|
' Cadena := '#39'tlf: '#39' + <frxDBCabecera."TELEFONO_1_EMPRESA">;'
|
||||||
' DireccionEnvio.Lines.Add(<frxDBCabecera."CALLE">);'
|
' if (<frxDBCabecera."FAX_EMPRESA"> <> '#39#39') then'
|
||||||
' if (<frxDBCabecera."CODIGO_POSTAL"> <> '#39#39') then'
|
|
||||||
' ACadena := <frxDBCabecera."CODIGO_POSTAL"> + '#39' '#39';'
|
|
||||||
' if (<frxDBCabecera."POBLACION"> <> '#39#39') then'
|
|
||||||
' ACadena := ACadena + <frxDBCabecera."POBLACION">;'
|
|
||||||
''
|
|
||||||
' if (ACadena <> '#39#39') then'
|
|
||||||
' DireccionEnvio.Lines.Add(ACadena);'
|
|
||||||
''
|
|
||||||
' if (<frxDBCabecera."PROVINCIA"> <> '#39#39') then'
|
|
||||||
' DireccionEnvio.Lines.Add(<frxDBCabecera."PROVINCIA">);'
|
|
||||||
'end;'
|
|
||||||
''
|
|
||||||
'procedure Memo2OnBeforePrint(Sender: TfrxComponent);'
|
|
||||||
'begin'
|
|
||||||
' Memo2.Lines.Clear;'
|
|
||||||
' if (StrToFloat(<frxDBCabecera."IMPORTE_TOTAL">) < 0) then'
|
|
||||||
' Memo2.Lines.Add('#39'ORDEN DE DEVOLUCI'#211'N'#39')'
|
|
||||||
' else'
|
|
||||||
' Memo2.Lines.Add('#39'ALBAR'#193'N DE CLIENTE'#39')'
|
|
||||||
'end;'
|
|
||||||
''
|
|
||||||
'procedure Memo5OnBeforePrint(Sender: TfrxComponent);'
|
|
||||||
'begin'
|
|
||||||
' if (StrToFloat(<frxDBCabecera."IMPORTE_TOTAL">) < 0) then'
|
|
||||||
' begin'
|
|
||||||
' Memo5.Lines.Clear;'
|
|
||||||
' Memo5.Lines.Add('#39'N'#186' orden:'#39');'
|
|
||||||
' end;'
|
|
||||||
'end;'
|
|
||||||
''
|
|
||||||
'procedure Memo9OnBeforePrint(Sender: TfrxComponent);'
|
|
||||||
'begin'
|
|
||||||
' if (StrToFloat(<frxDBCabecera."IMPORTE_TOTAL">) < 0) then'
|
|
||||||
' begin'
|
|
||||||
' Memo9.Lines.Clear;'
|
|
||||||
' Memo9.Lines.Add('#39'Fecha orden:'#39');'
|
|
||||||
' end;'
|
|
||||||
'end;'
|
|
||||||
''
|
|
||||||
'procedure PageHeader1OnBeforePrint(Sender: TfrxComponent);'
|
|
||||||
'begin'
|
|
||||||
' if not Engine.FinalPass then'
|
|
||||||
' Set('#39'TotalPaginas'#39', (<TotalPaginas> + 1));'
|
|
||||||
''
|
|
||||||
' if Engine.FinalPass then'
|
|
||||||
' Set('#39'Pagina'#39', (<Pagina> + 1));'
|
|
||||||
'end;'
|
|
||||||
''
|
|
||||||
'procedure frxReportOnStartReport(Sender: TfrxComponent);'
|
|
||||||
'begin'
|
|
||||||
' Set('#39'Pagina'#39', 0);'
|
|
||||||
' Set('#39'TotalPaginas'#39', 0);'
|
|
||||||
'end;'
|
|
||||||
''
|
|
||||||
'procedure Picture1OnBeforePrint(Sender: TfrxComponent);'
|
|
||||||
'begin'
|
|
||||||
' if <ShowLogotipo> then'
|
|
||||||
' begin '
|
|
||||||
' Picture1.Visible := True; '
|
|
||||||
' Picture2.Visible := True; '
|
|
||||||
' Picture3.Visible := True; '
|
|
||||||
' Picture4.Visible := True; '
|
|
||||||
' Picture5.Visible := True; '
|
|
||||||
' Picture6.Visible := True; '
|
|
||||||
' Memo25.Visible := True;'
|
|
||||||
' NombreEmpresa.Visible := False;'
|
|
||||||
|
|
||||||
' DatosEmpresa.Visible := False; ' +
|
' Cadena := Cadena + '#39' / fax: '#39' + <frxDBCabecera."FAX_EMPRE' +
|
||||||
' '
|
'SA">;'
|
||||||
' end'
|
' TelefonosEmpresa.Lines.Add(Cadena);'
|
||||||
' else'
|
|
||||||
' begin '
|
|
||||||
' Picture1.Visible := False;'
|
|
||||||
' Picture2.Visible := False;'
|
|
||||||
' Picture3.Visible := False;'
|
|
||||||
' Picture4.Visible := False;'
|
|
||||||
' Picture5.Visible := False;'
|
|
||||||
' Picture6.Visible := False;'
|
|
||||||
' Memo25.Visible := False;'
|
|
||||||
' NombreEmpresa.Visible := True;'
|
|
||||||
' DatosEmpresa.Visible := True; '
|
|
||||||
' end'
|
|
||||||
'end;'
|
'end;'
|
||||||
''
|
''
|
||||||
|
'procedure DireccionEmpresaOnBeforePrint(Sender: TfrxComponent);'
|
||||||
|
'var'
|
||||||
|
' Cadena: String;'
|
||||||
|
'begin'
|
||||||
|
' DireccionEmpresa.Lines.Clear;'
|
||||||
|
''
|
||||||
|
' if (<frxDBCabecera."CALLE_EMPRESA"> <> '#39#39') then'
|
||||||
|
|
||||||
|
' DireccionEmpresa.Lines.Add(<frxDBCabecera."CALLE_EMPRESA">)' +
|
||||||
|
';'
|
||||||
|
''
|
||||||
|
' if (<frxDBCabecera."CODIGO_POSTAL_EMPRESA"> <> '#39#39') then'
|
||||||
|
' Cadena := <frxDBCabecera."CODIGO_POSTAL_EMPRESA">;'
|
||||||
|
' if (<frxDBCabecera."POBLACION_EMPRESA"> <> '#39#39') then'
|
||||||
|
|
||||||
|
' Cadena := Cadena + '#39', '#39' + <frxDBCabecera."POBLACION_EMPRE' +
|
||||||
|
'SA">;'
|
||||||
|
' DireccionEmpresa.Lines.Add(Cadena);'
|
||||||
|
''
|
||||||
|
' if (<frxDBCabecera."PROVINCIA_EMPRESA"> <> '#39#39') then'
|
||||||
|
|
||||||
|
' DireccionEmpresa.Lines.Add(<frxDBCabecera."PROVINCIA_EMPRES' +
|
||||||
|
'A">);'
|
||||||
|
'end;'
|
||||||
|
''
|
||||||
|
''
|
||||||
'begin'
|
'begin'
|
||||||
''
|
''
|
||||||
'end.')
|
'end.')
|
||||||
ShowProgress = False
|
ShowProgress = False
|
||||||
StoreInDFM = False
|
StoreInDFM = False
|
||||||
OnGetValue = frxReportGetValue
|
OnGetValue = frxReportGetValue
|
||||||
OnStartReport = 'frxReportOnStartReport'
|
|
||||||
Left = 169
|
Left = 169
|
||||||
Top = 16
|
Top = 16
|
||||||
end
|
end
|
||||||
@ -1491,18 +1404,4 @@ object RptAlbaranesCliente: TRptAlbaranesCliente
|
|||||||
Left = 344
|
Left = 344
|
||||||
Top = 16
|
Top = 16
|
||||||
end
|
end
|
||||||
object frxPDFExport1: TfrxPDFExport
|
|
||||||
ShowDialog = False
|
|
||||||
UseFileCache = True
|
|
||||||
ShowProgress = False
|
|
||||||
PrintOptimized = True
|
|
||||||
Outline = True
|
|
||||||
Author = 'FactuGES'
|
|
||||||
Subject = 'FactuGES'
|
|
||||||
Background = False
|
|
||||||
Creator = 'FactuGES'
|
|
||||||
HTMLTags = True
|
|
||||||
Left = 360
|
|
||||||
Top = 344
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|||||||
@ -7,7 +7,7 @@ uses
|
|||||||
Dialogs, frxClass, frxDBSet, uDAScriptingProvider,
|
Dialogs, frxClass, frxDBSet, uDAScriptingProvider,
|
||||||
uDADataTable, uDACDSDataTable, DB, uDAClasses, frxChart, frxGradient,
|
uDADataTable, uDACDSDataTable, DB, uDAClasses, frxChart, frxGradient,
|
||||||
frxChBox, frxCross, frxOLE, frxBarcode, frxRich, uDABINAdapter, uROTypes,
|
frxChBox, frxCross, frxOLE, frxBarcode, frxRich, uDABINAdapter, uROTypes,
|
||||||
uDAInterfaces, FactuGES_Intf, frxExportPDF;
|
uDAInterfaces;
|
||||||
|
|
||||||
type
|
type
|
||||||
TRptAlbaranesCliente = class(TDataModule)
|
TRptAlbaranesCliente = class(TDataModule)
|
||||||
@ -25,22 +25,19 @@ type
|
|||||||
frxChartObject1: TfrxChartObject;
|
frxChartObject1: TfrxChartObject;
|
||||||
frxDBCabecera: TfrxDBDataset;
|
frxDBCabecera: TfrxDBDataset;
|
||||||
frxDBDetalles: TfrxDBDataset;
|
frxDBDetalles: TfrxDBDataset;
|
||||||
frxReport: TfrxReport;
|
|
||||||
frxPDFExport1: TfrxPDFExport;
|
|
||||||
schReport: TDASchema;
|
schReport: TDASchema;
|
||||||
DataDictionary: TDADataDictionary;
|
DataDictionary: TDADataDictionary;
|
||||||
|
frxReport: TfrxReport;
|
||||||
procedure DataModuleCreate(Sender: TObject);
|
procedure DataModuleCreate(Sender: TObject);
|
||||||
procedure frxReportGetValue(const VarName: string; var Value: Variant);
|
procedure frxReportGetValue(const VarName: string; var Value: Variant);
|
||||||
private
|
private
|
||||||
FConnection: IDAConnection;
|
FConnection: IDAConnection;
|
||||||
FShowLogotipo: Boolean;
|
FShowLogotipo: Boolean;
|
||||||
FConObservacionesIncidencias: Boolean;
|
|
||||||
//Genera cada uno de los albaranes a imprimir
|
//Genera cada uno de los albaranes a imprimir
|
||||||
procedure _GenerarAlbaran(const ID: integer); overload;
|
procedure GenerarAlbaran(const ID: integer); overload;
|
||||||
public
|
public
|
||||||
function GenerarAlbaran(const AID : String; const AConLogotipo: Boolean; const ConObservacionesIncidencias: Boolean): Binary; overload;
|
function GenerarAlbaran(const AID : String; const AConLogotipo: Boolean = False): Binary; overload;
|
||||||
function GenerarEtiquetas(const AID : Integer; withRefCliente: Boolean): Binary;
|
function GenerarEtiquetas(const AID : Integer; withRefCliente: Boolean): Binary;
|
||||||
function GenerarReportEnPDF(const ListaID : TIntegerArray; const AConLogotipo: Boolean): Binary;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
@ -48,7 +45,7 @@ implementation
|
|||||||
{$R *.dfm}
|
{$R *.dfm}
|
||||||
|
|
||||||
uses
|
uses
|
||||||
uSistemaFunc, uDataModuleServer, schAlbaranesClienteClient_Intf;
|
uDataModuleServer, schAlbaranesClienteClient_Intf;
|
||||||
|
|
||||||
const
|
const
|
||||||
rptInfAlbaran = 'InfAlbaranCliente.fr3';
|
rptInfAlbaran = 'InfAlbaranCliente.fr3';
|
||||||
@ -68,28 +65,30 @@ begin
|
|||||||
schReport.ConnectionManager := dmServer.ConnectionManager;
|
schReport.ConnectionManager := dmServer.ConnectionManager;
|
||||||
FConnection := dmServer.DarNuevaConexion;
|
FConnection := dmServer.DarNuevaConexion;
|
||||||
FShowLogotipo := False;
|
FShowLogotipo := False;
|
||||||
FConObservacionesIncidencias := False;
|
|
||||||
frxReport.EngineOptions.NewSilentMode := simReThrow;
|
frxReport.EngineOptions.NewSilentMode := simReThrow;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TRptAlbaranesCliente.GenerarAlbaran(const AID: String; const AConLogotipo: Boolean; const ConObservacionesIncidencias: Boolean): Binary;
|
function TRptAlbaranesCliente.GenerarAlbaran(const AID: String; const AConLogotipo: Boolean = False): Binary;
|
||||||
var
|
var
|
||||||
ID_Albaranes: TStringList;
|
ID_Albaranes: TStringList;
|
||||||
i: Integer;
|
i: Integer;
|
||||||
begin
|
begin
|
||||||
Result := Binary.Create;
|
Result := Binary.Create;
|
||||||
|
FConnection.BeginTransaction;
|
||||||
|
|
||||||
try
|
try
|
||||||
FShowLogotipo := AConLogotipo;
|
FShowLogotipo := AConLogotipo;
|
||||||
FConObservacionesIncidencias := ConObservacionesIncidencias;
|
|
||||||
ID_Albaranes := TStringList.Create;
|
ID_Albaranes := TStringList.Create;
|
||||||
ID_Albaranes.CommaText := AID;
|
ID_Albaranes.CommaText := AID;
|
||||||
|
|
||||||
//Vamos generando todos y cada uno de los albaranes recibidos
|
//Vamos generando todos y cada uno de los albaranes recibidos
|
||||||
for i := 0 to ID_Albaranes.Count - 1 do
|
for i := 0 to ID_Albaranes.Count - 1 do
|
||||||
_GenerarAlbaran(StrToInt(ID_Albaranes.Strings[i]));
|
GenerarAlbaran(StrToInt(ID_Albaranes.Strings[i]));
|
||||||
|
|
||||||
frxReport.PreviewPages.SaveToStream(Result);
|
frxReport.PreviewPages.SaveToStream(Result);
|
||||||
|
|
||||||
finally
|
finally
|
||||||
|
FConnection.RollbackTransaction;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -97,20 +96,15 @@ procedure TRptAlbaranesCliente.frxReportGetValue(const VarName: string; var Valu
|
|||||||
begin
|
begin
|
||||||
if VarName = 'ShowLogotipo' then
|
if VarName = 'ShowLogotipo' then
|
||||||
Value := FShowLogotipo;
|
Value := FShowLogotipo;
|
||||||
|
|
||||||
if VarName = 'ConObservacionesIncidencias' then
|
|
||||||
Value := FConObservacionesIncidencias;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TRptAlbaranesCliente._GenerarAlbaran(const ID: integer);
|
procedure TRptAlbaranesCliente.GenerarAlbaran(const ID: integer);
|
||||||
var
|
var
|
||||||
AStream: TMemoryStream;
|
AStream: TMemoryStream;
|
||||||
dsMaster: IDADataset;
|
dsMaster: IDADataset;
|
||||||
dsDetail: IDADataset;
|
dsDetail: IDADataset;
|
||||||
AInforme: Variant;
|
|
||||||
begin
|
begin
|
||||||
AStream := TMemoryStream.Create;
|
AStream := TMemoryStream.Create;
|
||||||
FConnection.BeginTransaction; //<--- Creo que no va a hacer falta. "PUES SI ES NECESARIO"
|
|
||||||
|
|
||||||
try
|
try
|
||||||
dsMaster := schReport.NewDataset(FConnection, ds_InformeCabecera, ['ID'], [ID]);
|
dsMaster := schReport.NewDataset(FConnection, ds_InformeCabecera, ['ID'], [ID]);
|
||||||
@ -124,16 +118,10 @@ begin
|
|||||||
DABINAdapter.WriteDataset(AStream, dsDetail, [woRows, woSchema], -1);
|
DABINAdapter.WriteDataset(AStream, dsDetail, [woRows, woSchema], -1);
|
||||||
DABINAdapter.ReadDataset(AStream, tbl_Detalles, TRUE, '', TRUE, TRUE);
|
DABINAdapter.ReadDataset(AStream, tbl_Detalles, TRUE, '', TRUE, TRUE);
|
||||||
|
|
||||||
|
frxReport.LoadFromFile(DarRutaInformes + rptInfAlbaran, True);
|
||||||
AInforme := DarRutaFichero(DarRutaInformes, rptInfAlbaran, tbl_Cabecera.FieldByName('ID_EMPRESA').AsString);
|
|
||||||
if VarIsNull(AInforme) then
|
|
||||||
raise Exception.Create (('Error Servidor: _GenerarAlbaran, no encuentra informe ' + rptInfAlbaran));
|
|
||||||
|
|
||||||
frxReport.LoadFromFile(AInforme, True);
|
|
||||||
frxReport.PrepareReport(False);
|
frxReport.PrepareReport(False);
|
||||||
|
|
||||||
finally
|
finally
|
||||||
FConnection.RollbackTransaction; //<--- Creo que no va a hacer falta. "PUES SI ES NECESARIO"
|
|
||||||
AStream.Free;
|
AStream.Free;
|
||||||
dsMaster := Nil;
|
dsMaster := Nil;
|
||||||
dsDetail := Nil;
|
dsDetail := Nil;
|
||||||
@ -145,7 +133,6 @@ var
|
|||||||
dsMaster: IDADataset;
|
dsMaster: IDADataset;
|
||||||
dsDetail: IDADataset;
|
dsDetail: IDADataset;
|
||||||
AStream: TMemoryStream;
|
AStream: TMemoryStream;
|
||||||
AInforme: Variant;
|
|
||||||
begin
|
begin
|
||||||
AStream := TMemoryStream.Create;
|
AStream := TMemoryStream.Create;
|
||||||
Result := Binary.Create;
|
Result := Binary.Create;
|
||||||
@ -162,12 +149,7 @@ begin
|
|||||||
DABINAdapter.WriteDataset(AStream, dsDetail, [woRows, woSchema], -1);
|
DABINAdapter.WriteDataset(AStream, dsDetail, [woRows, woSchema], -1);
|
||||||
DABINAdapter.ReadDataset(AStream, tbl_Detalles, TRUE, '', TRUE, TRUE);
|
DABINAdapter.ReadDataset(AStream, tbl_Detalles, TRUE, '', TRUE, TRUE);
|
||||||
|
|
||||||
|
frxReport.LoadFromFile(DarRutaInformes + rptInfEtiquetas, True);
|
||||||
AInforme := DarRutaFichero(DarRutaInformes, rptInfEtiquetas, tbl_Cabecera.FieldByName('ID_EMPRESA').AsString);
|
|
||||||
if VarIsNull(AInforme) then
|
|
||||||
raise Exception.Create (('Error Servidor: _GenerarEtiquetas, no encuentra informe ' + rptInfEtiquetas));
|
|
||||||
|
|
||||||
frxReport.LoadFromFile(AInforme, True);
|
|
||||||
if withRefCliente then
|
if withRefCliente then
|
||||||
frxReport.Variables.Variables['withRefCliente'] := 1
|
frxReport.Variables.Variables['withRefCliente'] := 1
|
||||||
else
|
else
|
||||||
@ -180,22 +162,4 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TRptAlbaranesCliente.GenerarReportEnPDF(const ListaID: TIntegerArray;
|
|
||||||
const AConLogotipo: Boolean): Binary;
|
|
||||||
var
|
|
||||||
i: Integer;
|
|
||||||
begin
|
|
||||||
FShowLogotipo := AConLogotipo;
|
|
||||||
Result := Binary.Create;
|
|
||||||
try
|
|
||||||
//Vamos generando todos y cada uno de los presupuestos recibidos
|
|
||||||
for i := 0 to ListaID.Count - 1 do
|
|
||||||
_GenerarAlbaran(ListaID.Items[i]);
|
|
||||||
|
|
||||||
frxPDFExport1.Stream := Result;
|
|
||||||
frxReport.Export(frxPDFExport1)
|
|
||||||
finally
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
|||||||
@ -15,35 +15,6 @@ object srvAlbaranesCliente: TsrvAlbaranesCliente
|
|||||||
ConnectionManager = dmServer.ConnectionManager
|
ConnectionManager = dmServer.ConnectionManager
|
||||||
DataDictionary = DADataDictionary
|
DataDictionary = DADataDictionary
|
||||||
Datasets = <
|
Datasets = <
|
||||||
item
|
|
||||||
Params = <>
|
|
||||||
Statements = <
|
|
||||||
item
|
|
||||||
Connection = 'IBX'
|
|
||||||
SQL =
|
|
||||||
'select ANO from'#10'(select distinct(substr(FECHA_ALBARAN, 1,4)) as ' +
|
|
||||||
'ANO'#10'from albaranes_cliente'#10'order by 1 desc)'#10#10'UNION ALL'#10#10'select d' +
|
|
||||||
'istinct '#39'Todos'#39' as ANO'#10'from empresas'
|
|
||||||
StatementType = stSQL
|
|
||||||
ColumnMappings = <>
|
|
||||||
end>
|
|
||||||
Name = 'ListaAnosAlbaranes'
|
|
||||||
Fields = <
|
|
||||||
item
|
|
||||||
Name = 'ANO'
|
|
||||||
DataType = datString
|
|
||||||
Size = 254
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
InPrimaryKey = False
|
|
||||||
Calculated = False
|
|
||||||
Lookup = False
|
|
||||||
LookupCache = False
|
|
||||||
end>
|
|
||||||
BusinessRulesClient.ScriptLanguage = rslPascalScript
|
|
||||||
BusinessRulesServer.ScriptLanguage = rslPascalScript
|
|
||||||
end
|
|
||||||
item
|
item
|
||||||
Params = <
|
Params = <
|
||||||
item
|
item
|
||||||
@ -109,8 +80,7 @@ object srvAlbaranesCliente: TsrvAlbaranesCliente
|
|||||||
'HA_ALTA,'#10' FECHA_MODIFICACION, USUARIO, ID_FORMA_PAGO, FECHA_P' +
|
'HA_ALTA,'#10' FECHA_MODIFICACION, USUARIO, ID_FORMA_PAGO, FECHA_P' +
|
||||||
'REVISTA_ENVIO, FECHA_ENVIO,'#10' FECHA_RECEPCION, ID_AGENTE, AGEN' +
|
'REVISTA_ENVIO, FECHA_ENVIO,'#10' FECHA_RECEPCION, ID_AGENTE, AGEN' +
|
||||||
'TE, NUM_COPIAS, ID_ALBARAN_DEV, REFERENCIA_ALB_DEV,'#10' ID_FAC_A' +
|
'TE, NUM_COPIAS, ID_ALBARAN_DEV, REFERENCIA_ALB_DEV,'#10' ID_FAC_A' +
|
||||||
'LB_DEV, REFERENCIA_FAC_ALB_DEV, NUM_CORREOS, BLOQUEADO'#10' FROM'#10' ' +
|
'LB_DEV, REFERENCIA_FAC_ALB_DEV'#10' FROM'#10' V_ALBARANES_CLIENTE'
|
||||||
' V_ALBARANES_CLIENTE'
|
|
||||||
StatementType = stSQL
|
StatementType = stSQL
|
||||||
ColumnMappings = <
|
ColumnMappings = <
|
||||||
item
|
item
|
||||||
@ -296,14 +266,6 @@ object srvAlbaranesCliente: TsrvAlbaranesCliente
|
|||||||
item
|
item
|
||||||
DatasetField = 'REFERENCIA_FAC_ALB_DEV'
|
DatasetField = 'REFERENCIA_FAC_ALB_DEV'
|
||||||
TableField = 'REFERENCIA_FAC_ALB_DEV'
|
TableField = 'REFERENCIA_FAC_ALB_DEV'
|
||||||
end
|
|
||||||
item
|
|
||||||
DatasetField = 'NUM_CORREOS'
|
|
||||||
TableField = 'NUM_CORREOS'
|
|
||||||
end
|
|
||||||
item
|
|
||||||
DatasetField = 'BLOQUEADO'
|
|
||||||
TableField = 'BLOQUEADO'
|
|
||||||
end>
|
end>
|
||||||
end>
|
end>
|
||||||
Name = 'AlbaranesCliente'
|
Name = 'AlbaranesCliente'
|
||||||
@ -785,28 +747,6 @@ object srvAlbaranesCliente: TsrvAlbaranesCliente
|
|||||||
Calculated = False
|
Calculated = False
|
||||||
Lookup = False
|
Lookup = False
|
||||||
LookupCache = False
|
LookupCache = False
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'NUM_CORREOS'
|
|
||||||
DataType = datInteger
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
InPrimaryKey = False
|
|
||||||
Calculated = False
|
|
||||||
Lookup = False
|
|
||||||
LookupCache = False
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'BLOQUEADO'
|
|
||||||
DataType = datInteger
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
InPrimaryKey = False
|
|
||||||
Calculated = False
|
|
||||||
Lookup = False
|
|
||||||
LookupCache = False
|
|
||||||
end>
|
end>
|
||||||
BusinessRulesClient.ScriptLanguage = rslPascalScript
|
BusinessRulesClient.ScriptLanguage = rslPascalScript
|
||||||
BusinessRulesServer.ScriptLanguage = rslPascalScript
|
BusinessRulesServer.ScriptLanguage = rslPascalScript
|
||||||
@ -1335,8 +1275,8 @@ object srvAlbaranesCliente: TsrvAlbaranesCliente
|
|||||||
'HA_ALTA,'#10' FECHA_MODIFICACION, USUARIO, ID_FORMA_PAGO, FECHA_P' +
|
'HA_ALTA,'#10' FECHA_MODIFICACION, USUARIO, ID_FORMA_PAGO, FECHA_P' +
|
||||||
'REVISTA_ENVIO, FECHA_ENVIO,'#10' FECHA_RECEPCION, ID_AGENTE, AGEN' +
|
'REVISTA_ENVIO, FECHA_ENVIO,'#10' FECHA_RECEPCION, ID_AGENTE, AGEN' +
|
||||||
'TE, NUM_COPIAS, ID_ALBARAN_DEV, REFERENCIA_ALB_DEV,'#10' ID_FAC_A' +
|
'TE, NUM_COPIAS, ID_ALBARAN_DEV, REFERENCIA_ALB_DEV,'#10' ID_FAC_A' +
|
||||||
'LB_DEV, REFERENCIA_FAC_ALB_DEV, NUM_CORREOS'#10' FROM'#10' V_ALBARAN' +
|
'LB_DEV, REFERENCIA_FAC_ALB_DEV'#10' FROM'#10' V_ALBARANES_CLIENTE'#10' ' +
|
||||||
'ES_CLIENTE'#10' WHERE V_ALBARANES_CLIENTE.ID = :ID'
|
'WHERE V_ALBARANES_CLIENTE.ID = :ID'
|
||||||
StatementType = stSQL
|
StatementType = stSQL
|
||||||
ColumnMappings = <
|
ColumnMappings = <
|
||||||
item
|
item
|
||||||
@ -1522,10 +1462,6 @@ object srvAlbaranesCliente: TsrvAlbaranesCliente
|
|||||||
item
|
item
|
||||||
DatasetField = 'REFERENCIA_FAC_ALB_DEV'
|
DatasetField = 'REFERENCIA_FAC_ALB_DEV'
|
||||||
TableField = 'REFERENCIA_FAC_ALB_DEV'
|
TableField = 'REFERENCIA_FAC_ALB_DEV'
|
||||||
end
|
|
||||||
item
|
|
||||||
DatasetField = 'NUM_CORREOS'
|
|
||||||
TableField = 'NUM_CORREOS'
|
|
||||||
end>
|
end>
|
||||||
end>
|
end>
|
||||||
Name = 'AlbaranesCliente_Refresh'
|
Name = 'AlbaranesCliente_Refresh'
|
||||||
@ -2013,17 +1949,6 @@ object srvAlbaranesCliente: TsrvAlbaranesCliente
|
|||||||
Calculated = False
|
Calculated = False
|
||||||
Lookup = False
|
Lookup = False
|
||||||
LookupCache = False
|
LookupCache = False
|
||||||
end
|
|
||||||
item
|
|
||||||
Name = 'NUM_CORREOS'
|
|
||||||
DataType = datInteger
|
|
||||||
BlobType = dabtUnknown
|
|
||||||
DisplayWidth = 0
|
|
||||||
Alignment = taLeftJustify
|
|
||||||
InPrimaryKey = False
|
|
||||||
Calculated = False
|
|
||||||
Lookup = False
|
|
||||||
LookupCache = False
|
|
||||||
end>
|
end>
|
||||||
BusinessRulesClient.ScriptLanguage = rslPascalScript
|
BusinessRulesClient.ScriptLanguage = rslPascalScript
|
||||||
BusinessRulesServer.ScriptLanguage = rslPascalScript
|
BusinessRulesServer.ScriptLanguage = rslPascalScript
|
||||||
|
|||||||
@ -38,9 +38,8 @@ type
|
|||||||
protected
|
protected
|
||||||
{ IsrvAlbaranesCliente methods }
|
{ IsrvAlbaranesCliente methods }
|
||||||
function GetNextAutoInc(const GeneratorName: String): Integer;
|
function GetNextAutoInc(const GeneratorName: String): Integer;
|
||||||
function GenerateReport(const ID: String; const ShowLogotipo: Boolean = False; const ConObservacionesIncidencias: Boolean = False): Binary;
|
function GenerateReport(const ID: String; const ShowLogotipo: Boolean): Binary;
|
||||||
function GenerateEtiquetas(const ID: Integer; const withRefCliente: Boolean): Binary;
|
function GenerateEtiquetas(const ID: Integer; const withRefCliente: Boolean): Binary;
|
||||||
function GenerarReportPDF(const ListaID: TIntegerArray; const ShowLogotipo: Boolean = False): Binary;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
@ -83,18 +82,6 @@ begin
|
|||||||
bpAlbaranesCliente.BusinessRulesID := BIZ_SERVER_ALBARAN_CLIENTE;
|
bpAlbaranesCliente.BusinessRulesID := BIZ_SERVER_ALBARAN_CLIENTE;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TsrvAlbaranesCliente.GenerarReportPDF(const ListaID: TIntegerArray; const ShowLogotipo: Boolean = False): Binary;
|
|
||||||
var
|
|
||||||
AReportGenerator : TRptAlbaranesCliente;
|
|
||||||
begin
|
|
||||||
AReportGenerator := TRptAlbaranesCliente.Create(nil);
|
|
||||||
try
|
|
||||||
Result := AReportGenerator.GenerarReportEnPDF(ListaID, ShowLogotipo);
|
|
||||||
finally
|
|
||||||
FreeAndNIL(AReportGenerator);
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
|
|
||||||
function TsrvAlbaranesCliente.GenerateEtiquetas(const ID: Integer; const withRefCliente: Boolean): Binary;
|
function TsrvAlbaranesCliente.GenerateEtiquetas(const ID: Integer; const withRefCliente: Boolean): Binary;
|
||||||
var
|
var
|
||||||
AReportGenerator : TRptAlbaranesCliente;
|
AReportGenerator : TRptAlbaranesCliente;
|
||||||
@ -107,13 +94,13 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TsrvAlbaranesCliente.GenerateReport(const ID: String; const ShowLogotipo: Boolean = False; const ConObservacionesIncidencias: Boolean = False): Binary;
|
function TsrvAlbaranesCliente.GenerateReport(const ID: String; const ShowLogotipo: Boolean): Binary;
|
||||||
var
|
var
|
||||||
AReportGenerator : TRptAlbaranesCliente;
|
AReportGenerator : TRptAlbaranesCliente;
|
||||||
begin
|
begin
|
||||||
AReportGenerator := TRptAlbaranesCliente.Create(nil);
|
AReportGenerator := TRptAlbaranesCliente.Create(nil);
|
||||||
try
|
try
|
||||||
Result := AReportGenerator.GenerarAlbaran(ID, ShowLogotipo, ConObservacionesIncidencias);
|
Result := AReportGenerator.GenerarAlbaran(ID, ShowLogotipo);
|
||||||
finally
|
finally
|
||||||
FreeAndNIL(AReportGenerator);
|
FreeAndNIL(AReportGenerator);
|
||||||
end;
|
end;
|
||||||
|
|||||||
@ -100,8 +100,7 @@ requires
|
|||||||
Inventario_controller,
|
Inventario_controller,
|
||||||
JSDialog100,
|
JSDialog100,
|
||||||
PedCli_AlbCli_relation,
|
PedCli_AlbCli_relation,
|
||||||
AlbCli_FacCli_relation,
|
AlbCli_FacCli_relation;
|
||||||
dxGDIPlusD10;
|
|
||||||
|
|
||||||
contains
|
contains
|
||||||
uAlbaranesClienteViewRegister in 'uAlbaranesClienteViewRegister.pas',
|
uAlbaranesClienteViewRegister in 'uAlbaranesClienteViewRegister.pas',
|
||||||
@ -118,7 +117,6 @@ contains
|
|||||||
uEditorAlbaranesDevCliente in 'uEditorAlbaranesDevCliente.pas' {fEditorAlbaranesDevCliente: TCustomEditor},
|
uEditorAlbaranesDevCliente in 'uEditorAlbaranesDevCliente.pas' {fEditorAlbaranesDevCliente: TCustomEditor},
|
||||||
uViewAlbaranesDevCliente in 'uViewAlbaranesDevCliente.pas' {frViewAlbaranesDevCliente: TCustomView},
|
uViewAlbaranesDevCliente in 'uViewAlbaranesDevCliente.pas' {frViewAlbaranesDevCliente: TCustomView},
|
||||||
uEditorAlbaranDevCliente in 'uEditorAlbaranDevCliente.pas' {fEditorAlbaranDevCliente: TCustomEditor},
|
uEditorAlbaranDevCliente in 'uEditorAlbaranDevCliente.pas' {fEditorAlbaranDevCliente: TCustomEditor},
|
||||||
uViewAlbaranDevCliente in 'uViewAlbaranDevCliente.pas' {frViewAlbaranDevCliente: TCustomView},
|
uViewAlbaranDevCliente in 'uViewAlbaranDevCliente.pas' {frViewAlbaranDevCliente: TCustomView};
|
||||||
uDialogListaAlbaranesCliEnvioEMail in 'uDialogListaAlbaranesCliEnvioEMail.pas' {fDialogListaAlbaranesCliEnvioEMail: TCustomEditor};
|
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
|||||||
@ -10,8 +10,7 @@ implementation
|
|||||||
uses
|
uses
|
||||||
uEditorRegistryUtils, uEditorAlbaranesCliente, uEditorAlbaranCliente,
|
uEditorRegistryUtils, uEditorAlbaranesCliente, uEditorAlbaranCliente,
|
||||||
uEditorElegirArticulosAlbaranCliente, uEditorAlbaranesClienteReport,
|
uEditorElegirArticulosAlbaranCliente, uEditorAlbaranesClienteReport,
|
||||||
uEditorElegirAlbaranesCliente, uEditorAlbaranesDevCliente, uEditorAlbaranDevCliente,
|
uEditorElegirAlbaranesCliente, uEditorAlbaranesDevCliente, uEditorAlbaranDevCliente;
|
||||||
uDialogListaAlbaranesCliEnvioEMail;
|
|
||||||
|
|
||||||
procedure RegisterViews;
|
procedure RegisterViews;
|
||||||
begin
|
begin
|
||||||
@ -22,7 +21,6 @@ begin
|
|||||||
EditorRegistry.RegisterClass(TfEditorElegirArticulosAlbaranCliente, 'EditorElegirArticulosAlbaranesCliente');
|
EditorRegistry.RegisterClass(TfEditorElegirArticulosAlbaranCliente, 'EditorElegirArticulosAlbaranesCliente');
|
||||||
EditorRegistry.RegisterClass(TfEditorAlbaranesClientePreview, 'EditorAlbaranesClientePreview');
|
EditorRegistry.RegisterClass(TfEditorAlbaranesClientePreview, 'EditorAlbaranesClientePreview');
|
||||||
EditorRegistry.RegisterClass(TfEditorElegirAlbaranesCliente, 'EditorElegirAlbaranesCliente');
|
EditorRegistry.RegisterClass(TfEditorElegirAlbaranesCliente, 'EditorElegirAlbaranesCliente');
|
||||||
EditorRegistry.RegisterClass(TfDialogListaAlbaranesCliEnvioEMail, 'DialogListaAlbaranesCliEnvioEMail');
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure UnregisterViews;
|
procedure UnregisterViews;
|
||||||
@ -34,7 +32,6 @@ begin
|
|||||||
EditorRegistry.UnRegisterClass(TfEditorElegirArticulosAlbaranCliente);
|
EditorRegistry.UnRegisterClass(TfEditorElegirArticulosAlbaranCliente);
|
||||||
EditorRegistry.UnRegisterClass(TfEditorAlbaranesClientePreview);
|
EditorRegistry.UnRegisterClass(TfEditorAlbaranesClientePreview);
|
||||||
EditorRegistry.UnRegisterClass(TfEditorElegirAlbaranesCliente);
|
EditorRegistry.UnRegisterClass(TfEditorElegirAlbaranesCliente);
|
||||||
EditorRegistry.UnRegisterClass(TfDialogListaAlbaranesCliEnvioEMail);
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
|||||||
@ -1,89 +0,0 @@
|
|||||||
inherited fDialogListaAlbaranesCliEnvioEMail: TfDialogListaAlbaranesCliEnvioEMail
|
|
||||||
Caption = 'Enviar albaranes por correo electr'#243'nico'
|
|
||||||
ClientHeight = 432
|
|
||||||
ClientWidth = 735
|
|
||||||
ExplicitWidth = 741
|
|
||||||
ExplicitHeight = 457
|
|
||||||
PixelsPerInch = 96
|
|
||||||
TextHeight = 13
|
|
||||||
inherited pnlBotones: TFlowPanel
|
|
||||||
Top = 376
|
|
||||||
Width = 735
|
|
||||||
ExplicitTop = 382
|
|
||||||
ExplicitWidth = 735
|
|
||||||
inherited Button1: TButton
|
|
||||||
Left = 639
|
|
||||||
Caption = '&Salir'
|
|
||||||
ExplicitLeft = 639
|
|
||||||
end
|
|
||||||
inherited Button2: TButton
|
|
||||||
Left = 528
|
|
||||||
Width = 96
|
|
||||||
ExplicitLeft = 528
|
|
||||||
ExplicitWidth = 96
|
|
||||||
end
|
|
||||||
end
|
|
||||||
inherited FlowPanel1: TFlowPanel
|
|
||||||
Width = 735
|
|
||||||
Height = 376
|
|
||||||
ExplicitWidth = 735
|
|
||||||
ExplicitHeight = 376
|
|
||||||
inherited lblInstruccion: TLabel
|
|
||||||
Width = 320
|
|
||||||
Caption = 'Enviar albaranes por correo electr'#243'nico'
|
|
||||||
Font.Style = [fsBold]
|
|
||||||
ExplicitWidth = 320
|
|
||||||
end
|
|
||||||
inherited Label2: TLabel
|
|
||||||
Height = 51
|
|
||||||
Caption =
|
|
||||||
'Se generar'#225'n correos electr'#243'nicos autom'#225'ticos adjuntando los alb' +
|
|
||||||
'aranes elegidos en formato PDF. S'#243'lo se tendr'#225'n en cuenta los cl' +
|
|
||||||
'ientes que tengan relleno su e-mail administrativo.'
|
|
||||||
WordWrap = True
|
|
||||||
ExplicitHeight = 51
|
|
||||||
end
|
|
||||||
inherited ListView1: TListView
|
|
||||||
Top = 121
|
|
||||||
Width = 658
|
|
||||||
Height = 232
|
|
||||||
Columns = <
|
|
||||||
item
|
|
||||||
Caption = 'Documento'
|
|
||||||
MaxWidth = 75
|
|
||||||
MinWidth = 75
|
|
||||||
Width = 75
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Caption = 'Destinatario'
|
|
||||||
MaxWidth = 300
|
|
||||||
Width = 280
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Caption = 'Direcci'#243'n E-Mail'
|
|
||||||
MaxWidth = 250
|
|
||||||
Width = 150
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Caption = 'Estado'
|
|
||||||
MaxWidth = 250
|
|
||||||
Width = 149
|
|
||||||
end>
|
|
||||||
ExplicitTop = 121
|
|
||||||
ExplicitWidth = 658
|
|
||||||
ExplicitHeight = 232
|
|
||||||
end
|
|
||||||
end
|
|
||||||
inherited ActionList1: TActionList
|
|
||||||
Left = 8
|
|
||||||
Top = 352
|
|
||||||
inherited actAceptar: TAction
|
|
||||||
Caption = '&Generar correos'
|
|
||||||
OnExecute = actAceptarExecute
|
|
||||||
OnUpdate = actAceptarUpdate
|
|
||||||
end
|
|
||||||
inherited actCancelar: TAction
|
|
||||||
OnExecute = actCancelarExecute
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
@ -1,166 +0,0 @@
|
|||||||
unit uDialogListaAlbaranesCliEnvioEMail;
|
|
||||||
|
|
||||||
interface
|
|
||||||
|
|
||||||
uses
|
|
||||||
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
|
|
||||||
Dialogs, uDialogBase, ActnList, StdCtrls, ExtCtrls, ComCtrls,
|
|
||||||
uDialogListaEnvioEMail, uIDialogListaAlbaranesCliEnvioEMail, uAlbaranesClienteController,
|
|
||||||
uBizAlbaranesCliente;
|
|
||||||
|
|
||||||
type
|
|
||||||
TfDialogListaAlbaranesCliEnvioEMail = class(TfDialogListaEnvioEMail, IDialogListaAlbaranesCliEnvioEMail)
|
|
||||||
procedure actCancelarExecute(Sender: TObject);
|
|
||||||
procedure actAceptarUpdate(Sender: TObject);
|
|
||||||
procedure actAceptarExecute(Sender: TObject);
|
|
||||||
private
|
|
||||||
FAlbaranes : IBizAlbaranCliente;
|
|
||||||
FController : IAlbaranesClienteController;
|
|
||||||
protected
|
|
||||||
function GetAlbaranes: IBizAlbaranCliente;
|
|
||||||
procedure SetAlbaranes(const Value: IBizAlbaranCliente);
|
|
||||||
|
|
||||||
procedure RellenarLista;
|
|
||||||
procedure BorrarLista;
|
|
||||||
public
|
|
||||||
constructor Create(AOwner: TComponent); override;
|
|
||||||
property Albaranes: IBizAlbaranCliente read GetAlbaranes write SetAlbaranes;
|
|
||||||
end;
|
|
||||||
|
|
||||||
implementation
|
|
||||||
|
|
||||||
uses
|
|
||||||
schAlbaranesClienteClient_Intf, uStringsUtils, cxControls;
|
|
||||||
|
|
||||||
{$R *.dfm}
|
|
||||||
|
|
||||||
|
|
||||||
{ TfDialogListaAlbaranesEnvioEMail }
|
|
||||||
|
|
||||||
procedure TfDialogListaAlbaranesCliEnvioEMail.actAceptarExecute(Sender: TObject);
|
|
||||||
var
|
|
||||||
i : Integer;
|
|
||||||
begin
|
|
||||||
ShowHourglassCursor;
|
|
||||||
Application.ProcessMessages;
|
|
||||||
try
|
|
||||||
FAlbaranes.First;
|
|
||||||
FController.RecuperarCliente(FAlbaranes);
|
|
||||||
FAlbaranes.Cliente.DataTable.Active := True;
|
|
||||||
try
|
|
||||||
for i := 0 to FAlbaranes.DataTable.RecordCount - 1 do
|
|
||||||
begin
|
|
||||||
if not EsCadenaVacia(FAlbaranes.Cliente.EMAIL_ADMINISTRACION) then
|
|
||||||
begin
|
|
||||||
if FController.EnviarAlbaranPorEMail(FAlbaranes, True, FAlbaranes.Cliente.EMAIL_ADMINISTRACION) then
|
|
||||||
begin
|
|
||||||
ListView1.Items[i].SubItems[2] := 'Correo generado';
|
|
||||||
ModalResult := mrOk;
|
|
||||||
end
|
|
||||||
else
|
|
||||||
ListView1.Items[i].SubItems[2] := 'Error al generar correo';
|
|
||||||
Self.Update;
|
|
||||||
Application.ProcessMessages;
|
|
||||||
end;
|
|
||||||
|
|
||||||
FAlbaranes.Next;
|
|
||||||
FController.RecuperarCliente(FAlbaranes);
|
|
||||||
FAlbaranes.Cliente.DataTable.Active := True;
|
|
||||||
end;
|
|
||||||
Button2.Enabled := False;
|
|
||||||
finally
|
|
||||||
ListView1.Items.EndUpdate;
|
|
||||||
end;
|
|
||||||
finally
|
|
||||||
HideHourglassCursor;
|
|
||||||
end;
|
|
||||||
|
|
||||||
Button1.SetFocus;
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TfDialogListaAlbaranesCliEnvioEMail.actAceptarUpdate(Sender: TObject);
|
|
||||||
begin
|
|
||||||
inherited;
|
|
||||||
(Sender as TAction).Enabled := (ListView1.Items.Count > 0)
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TfDialogListaAlbaranesCliEnvioEMail.actCancelarExecute(Sender: TObject);
|
|
||||||
begin
|
|
||||||
inherited;
|
|
||||||
ModalResult := mrOk;
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TfDialogListaAlbaranesCliEnvioEMail.BorrarLista;
|
|
||||||
begin
|
|
||||||
ListView1.Items.Clear;
|
|
||||||
end;
|
|
||||||
|
|
||||||
constructor TfDialogListaAlbaranesCliEnvioEMail.Create(AOwner: TComponent);
|
|
||||||
begin
|
|
||||||
inherited;
|
|
||||||
ModalResult := mrCancel;
|
|
||||||
FController := TAlbaranesClienteController.Create;
|
|
||||||
end;
|
|
||||||
|
|
||||||
function TfDialogListaAlbaranesCliEnvioEMail.GetAlbaranes: IBizAlbaranCliente;
|
|
||||||
begin
|
|
||||||
Result := FAlbaranes;
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TfDialogListaAlbaranesCliEnvioEMail.RellenarLista;
|
|
||||||
var
|
|
||||||
i : Integer;
|
|
||||||
begin
|
|
||||||
ListView1.Items.BeginUpdate;
|
|
||||||
ListView1.Items.Clear;
|
|
||||||
|
|
||||||
FAlbaranes.First;
|
|
||||||
FAlbaranes.DataTable.DisableControls;
|
|
||||||
try
|
|
||||||
for i := 0 to FAlbaranes.DataTable.RecordCount - 1 do
|
|
||||||
begin
|
|
||||||
FController.RecuperarCliente(FAlbaranes);
|
|
||||||
FAlbaranes.Cliente.DataTable.Active := True;
|
|
||||||
|
|
||||||
with ListView1.Items.Add do
|
|
||||||
begin
|
|
||||||
Caption := FAlbaranes.REFERENCIA;
|
|
||||||
SubItems.Add(FAlbaranes.NOMBRE);
|
|
||||||
SubItems.Add(FAlbaranes.Cliente.EMAIL_ADMINISTRACION);
|
|
||||||
|
|
||||||
if EsCadenaVacia(FAlbaranes.Cliente.EMAIL_ADMINISTRACION) then
|
|
||||||
SubItems.Add('Sin dirección e-mail administrativa')
|
|
||||||
else
|
|
||||||
SubItems.Add('')
|
|
||||||
end;
|
|
||||||
FAlbaranes.Next;
|
|
||||||
end;
|
|
||||||
finally
|
|
||||||
FAlbaranes.DataTable.EnableControls;
|
|
||||||
ListView1.Items.EndUpdate;
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TfDialogListaAlbaranesCliEnvioEMail.SetAlbaranes(
|
|
||||||
const Value: IBizAlbaranCliente);
|
|
||||||
begin
|
|
||||||
FAlbaranes := Value;
|
|
||||||
|
|
||||||
if Assigned(FAlbaranes) then
|
|
||||||
begin
|
|
||||||
FAlbaranes.DataTable.Open;
|
|
||||||
|
|
||||||
if (FAlbaranes.TIPO = CTE_TIPO_ALBARAN_DEV) then
|
|
||||||
begin
|
|
||||||
Self.Caption := 'Enviar órdenes de devolución por correo electrónico';
|
|
||||||
lblInstruccion.Caption := 'Enviar órdenes de devolución por correo electrónico';
|
|
||||||
Label2.Caption := 'Se generarán correos electrónicos automáticos adjuntando las órdenes de devolución elegidas en formato PDF. Sólo se tendrán en cuenta los clientes que tengan relleno su e-mail administrativo.';
|
|
||||||
end;
|
|
||||||
|
|
||||||
RellenarLista;
|
|
||||||
end
|
|
||||||
else
|
|
||||||
BorrarLista;
|
|
||||||
end;
|
|
||||||
|
|
||||||
end.
|
|
||||||
@ -200,6 +200,10 @@ inherited fEditorAlbaranCliente: TfEditorAlbaranCliente
|
|||||||
object pagInicidencias: TTabSheet
|
object pagInicidencias: TTabSheet
|
||||||
Caption = 'Incidencias'
|
Caption = 'Incidencias'
|
||||||
ImageIndex = 2
|
ImageIndex = 2
|
||||||
|
ExplicitLeft = 0
|
||||||
|
ExplicitTop = 0
|
||||||
|
ExplicitWidth = 0
|
||||||
|
ExplicitHeight = 0
|
||||||
inline frViewIncidenciasCli: TfrViewIncidencias
|
inline frViewIncidenciasCli: TfrViewIncidencias
|
||||||
Left = 0
|
Left = 0
|
||||||
Top = 0
|
Top = 0
|
||||||
|
|||||||
@ -230,9 +230,6 @@ end;
|
|||||||
procedure TfEditorAlbaranCliente.ImprimirInterno;
|
procedure TfEditorAlbaranCliente.ImprimirInterno;
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
if (ShowConfirmMessage('¿Desea imprimir las observaciones e incidencias del albarán?', '') = IDYES) then
|
|
||||||
FController.Print(FAlbaran, False, True)
|
|
||||||
else
|
|
||||||
FController.Print(FAlbaran);
|
FController.Print(FAlbaran);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -327,9 +324,6 @@ end;
|
|||||||
procedure TfEditorAlbaranCliente.PrevisualizarInterno;
|
procedure TfEditorAlbaranCliente.PrevisualizarInterno;
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
if (ShowConfirmMessage('¿Desea previsualizar las observaciones e incidencias del albarán?', '') = IDYES) then
|
|
||||||
FController.Preview(FAlbaran, False, True)
|
|
||||||
else
|
|
||||||
FController.Preview(FAlbaran);
|
FController.Preview(FAlbaran);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|||||||
@ -9,7 +9,7 @@ inherited fEditorAlbaranesCliente: TfEditorAlbaranesCliente
|
|||||||
inherited JvNavPanelHeader: TJvNavPanelHeader
|
inherited JvNavPanelHeader: TJvNavPanelHeader
|
||||||
Width = 855
|
Width = 855
|
||||||
Caption = 'Lista de albaranes de cliente'
|
Caption = 'Lista de albaranes de cliente'
|
||||||
ExplicitWidth = 855
|
ExplicitWidth = 583
|
||||||
inherited Image1: TImage
|
inherited Image1: TImage
|
||||||
Left = 828
|
Left = 828
|
||||||
Picture.Data = {
|
Picture.Data = {
|
||||||
@ -124,35 +124,18 @@ inherited fEditorAlbaranesCliente: TfEditorAlbaranesCliente
|
|||||||
end
|
end
|
||||||
inherited TBXDock: TTBXDock
|
inherited TBXDock: TTBXDock
|
||||||
Width = 855
|
Width = 855
|
||||||
ExplicitWidth = 855
|
ExplicitWidth = 583
|
||||||
inherited tbxMain: TTBXToolbar
|
inherited tbxMain: TTBXToolbar
|
||||||
ExplicitWidth = 746
|
ExplicitWidth = 638
|
||||||
object TBXSeparatorItem17: TTBXSeparatorItem [10]
|
object TBXSeparatorItem17: TTBXSeparatorItem [10]
|
||||||
end
|
end
|
||||||
object TBXItem40: TTBXItem [14]
|
|
||||||
Action = actEnviarEMail
|
|
||||||
end
|
|
||||||
end
|
|
||||||
inherited tbxFiltro: TTBXToolbar
|
|
||||||
ExplicitWidth = 435
|
|
||||||
inherited lblAno: TTBXLabelItem
|
|
||||||
Visible = True
|
|
||||||
end
|
|
||||||
inherited cbxListaAnos: TTBXComboBoxItem
|
|
||||||
Visible = True
|
|
||||||
end
|
|
||||||
inherited sepAno: TTBXSeparatorItem
|
|
||||||
Visible = True
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
inherited tbxMenu: TTBXToolbar
|
inherited tbxMenu: TTBXToolbar
|
||||||
ExplicitWidth = 855
|
ExplicitWidth = 855
|
||||||
end
|
end
|
||||||
inherited TBXTMain2: TTBXToolbar
|
inherited TBXTMain2: TTBXToolbar
|
||||||
Left = 435
|
|
||||||
Visible = True
|
Visible = True
|
||||||
ExplicitLeft = 435
|
ExplicitWidth = 514
|
||||||
ExplicitWidth = 420
|
|
||||||
object TBXItem42: TTBXItem
|
object TBXItem42: TTBXItem
|
||||||
Action = actEnviar
|
Action = actEnviar
|
||||||
DisplayMode = nbdmImageAndText
|
DisplayMode = nbdmImageAndText
|
||||||
@ -186,8 +169,7 @@ inherited fEditorAlbaranesCliente: TfEditorAlbaranesCliente
|
|||||||
inherited StatusBar: TJvStatusBar
|
inherited StatusBar: TJvStatusBar
|
||||||
Top = 430
|
Top = 430
|
||||||
Width = 855
|
Width = 855
|
||||||
ExplicitTop = 430
|
ExplicitWidth = 583
|
||||||
ExplicitWidth = 855
|
|
||||||
end
|
end
|
||||||
inherited EditorActionList: TActionList
|
inherited EditorActionList: TActionList
|
||||||
inherited actNuevo: TAction
|
inherited actNuevo: TAction
|
||||||
@ -243,12 +225,6 @@ inherited fEditorAlbaranesCliente: TfEditorAlbaranesCliente
|
|||||||
ImageIndex = 23
|
ImageIndex = 23
|
||||||
OnExecute = actGenerarOrdenExecute
|
OnExecute = actGenerarOrdenExecute
|
||||||
end
|
end
|
||||||
object actEnviarEMail: TAction
|
|
||||||
Category = 'Acciones'
|
|
||||||
Caption = 'Enviar por e-mail...'
|
|
||||||
OnExecute = actEnviarEMailExecute
|
|
||||||
OnUpdate = actEnviarEMailUpdate
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
inherited SmallImages: TPngImageList
|
inherited SmallImages: TPngImageList
|
||||||
PngImages = <
|
PngImages = <
|
||||||
@ -2084,12 +2060,6 @@ inherited fEditorAlbaranesCliente: TfEditorAlbaranesCliente
|
|||||||
Value = 100
|
Value = 100
|
||||||
Default = True
|
Default = True
|
||||||
end
|
end
|
||||||
item
|
|
||||||
Caption =
|
|
||||||
'Imprimir el albaran/es seleccionado/s (Con observaciones e incid' +
|
|
||||||
'encias)'
|
|
||||||
Value = 101
|
|
||||||
end
|
|
||||||
item
|
item
|
||||||
Caption = 'Imprimir la lista de albaranes actual'
|
Caption = 'Imprimir la lista de albaranes actual'
|
||||||
Value = 200
|
Value = 200
|
||||||
@ -2327,7 +2297,7 @@ inherited fEditorAlbaranesCliente: TfEditorAlbaranesCliente
|
|||||||
0007F0000007F0000007F0000007F0000007F0000007F0000007800000078000
|
0007F0000007F0000007F0000007F0000007F0000007F0000007800000078000
|
||||||
0007C0000007C000000700000007000000070000000700000007C000000FC000
|
0007C0000007C000000700000007000000070000000700000007C000000FC000
|
||||||
001F8000003F800000FFF8FFFFFF}
|
001F8000003F800000FFF8FFFFFF}
|
||||||
Width = 650
|
Width = 500
|
||||||
Left = 264
|
Left = 264
|
||||||
Top = 112
|
Top = 112
|
||||||
end
|
end
|
||||||
@ -2401,12 +2371,6 @@ inherited fEditorAlbaranesCliente: TfEditorAlbaranesCliente
|
|||||||
Value = 100
|
Value = 100
|
||||||
Default = True
|
Default = True
|
||||||
end
|
end
|
||||||
item
|
|
||||||
Caption =
|
|
||||||
'Previsualizar el albaran/es seleccionado/s (Con observaciones e ' +
|
|
||||||
'incidencias)'
|
|
||||||
Value = 101
|
|
||||||
end
|
|
||||||
item
|
item
|
||||||
Caption = 'Previsualizar la lista de albaranes actual'
|
Caption = 'Previsualizar la lista de albaranes actual'
|
||||||
Value = 200
|
Value = 200
|
||||||
@ -2644,7 +2608,7 @@ inherited fEditorAlbaranesCliente: TfEditorAlbaranesCliente
|
|||||||
0007F0000007F0000007F0000007F0000007F0000007F0000007800000078000
|
0007F0000007F0000007F0000007F0000007F0000007F0000007800000078000
|
||||||
0007C0000007C000000700000007000000070000000700000007C000000FC000
|
0007C0000007C000000700000007000000070000000700000007C000000FC000
|
||||||
001F8000003F800000FFF8FFFFFF}
|
001F8000003F800000FFF8FFFFFF}
|
||||||
Width = 650
|
Width = 500
|
||||||
Left = 232
|
Left = 232
|
||||||
Top = 112
|
Top = 112
|
||||||
end
|
end
|
||||||
|
|||||||
@ -38,8 +38,6 @@ type
|
|||||||
JsListaAlbaranesNoEliminados: TJSDialog;
|
JsListaAlbaranesNoEliminados: TJSDialog;
|
||||||
actGenerarOrden: TAction;
|
actGenerarOrden: TAction;
|
||||||
TBXItem39: TTBXItem;
|
TBXItem39: TTBXItem;
|
||||||
actEnviarEMail: TAction;
|
|
||||||
TBXItem40: TTBXItem;
|
|
||||||
procedure FormShow(Sender: TObject);
|
procedure FormShow(Sender: TObject);
|
||||||
procedure actGenerarFacturaUpdate(Sender: TObject);
|
procedure actGenerarFacturaUpdate(Sender: TObject);
|
||||||
procedure actGenerarFacturaExecute(Sender: TObject);
|
procedure actGenerarFacturaExecute(Sender: TObject);
|
||||||
@ -53,9 +51,6 @@ type
|
|||||||
procedure actGenerarEtiquetasExecute(Sender: TObject);
|
procedure actGenerarEtiquetasExecute(Sender: TObject);
|
||||||
procedure actGenerarEtiquetasUpdate(Sender: TObject);
|
procedure actGenerarEtiquetasUpdate(Sender: TObject);
|
||||||
procedure actGenerarOrdenExecute(Sender: TObject);
|
procedure actGenerarOrdenExecute(Sender: TObject);
|
||||||
procedure actEnviarEMailExecute(Sender: TObject);
|
|
||||||
procedure actEnviarEMailUpdate(Sender: TObject);
|
|
||||||
procedure OnListaAnosChange(Sender: TObject; const Text: string);
|
|
||||||
|
|
||||||
protected
|
protected
|
||||||
FAlbaranes: IBizAlbaranCliente;
|
FAlbaranes: IBizAlbaranCliente;
|
||||||
@ -73,7 +68,6 @@ type
|
|||||||
procedure DuplicarInterno; override;
|
procedure DuplicarInterno; override;
|
||||||
procedure ImprimirInterno; override;
|
procedure ImprimirInterno; override;
|
||||||
procedure PrevisualizarInterno; override;
|
procedure PrevisualizarInterno; override;
|
||||||
procedure RefrescarInterno; override;
|
|
||||||
|
|
||||||
//Si queremos crear otra vista para el editor heredado solo tendriamos que
|
//Si queremos crear otra vista para el editor heredado solo tendriamos que
|
||||||
//sobreescribir este método
|
//sobreescribir este método
|
||||||
@ -94,7 +88,7 @@ uses
|
|||||||
uBizPedidosCliente, uDialogUtils, schAlbaranesClienteClient_Intf,
|
uBizPedidosCliente, uDialogUtils, schAlbaranesClienteClient_Intf,
|
||||||
uFacturasClienteController, uBizFacturasCliente, uInventarioController,
|
uFacturasClienteController, uBizFacturasCliente, uInventarioController,
|
||||||
uEditorBase, uGenerarAlbaranesCliUtils, uGenerarFacturasCliAlbCliUtils,
|
uEditorBase, uGenerarAlbaranesCliUtils, uGenerarFacturasCliAlbCliUtils,
|
||||||
cxCustomData, uGridUtils, uDBSelectionListUtils, cxControls;
|
cxCustomData, uGridUtils, uDBSelectionListUtils;
|
||||||
|
|
||||||
{$R *.dfm}
|
{$R *.dfm}
|
||||||
|
|
||||||
@ -202,40 +196,6 @@ begin
|
|||||||
FController.GenerarOrdenDev(Albaranes);
|
FController.GenerarOrdenDev(Albaranes);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TfEditorAlbaranesCliente.actEnviarEMailExecute(Sender: TObject);
|
|
||||||
var
|
|
||||||
AAlbaranes : IBizAlbaranCliente;
|
|
||||||
begin
|
|
||||||
inherited;
|
|
||||||
|
|
||||||
if ViewGrid.NumSeleccionados = 1 then
|
|
||||||
FController.GenerarEmailAlbaran(Albaranes)
|
|
||||||
else begin
|
|
||||||
ShowHourglassCursor;
|
|
||||||
try
|
|
||||||
SeleccionarFilasDesdeGrid(ViewGrid._FocusedView, (Albaranes as ISeleccionable).SelectedRecords);
|
|
||||||
AAlbaranes := (Controller as IAlbaranesClienteController).ExtraerSeleccionados(Albaranes, ViewGrid) as IBizAlbaranCliente;
|
|
||||||
|
|
||||||
if Assigned(AAlbaranes) then
|
|
||||||
if FController.EnviarEmailAlbaranes(AAlbaranes) then
|
|
||||||
RefrescarInterno;
|
|
||||||
finally
|
|
||||||
AAlbaranes := NIL;
|
|
||||||
HideHourglassCursor;
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TfEditorAlbaranesCliente.actEnviarEMailUpdate(Sender: TObject);
|
|
||||||
begin
|
|
||||||
inherited;
|
|
||||||
if HayDatos and Assigned(ViewGrid) then
|
|
||||||
(Sender as TAction).Enabled := ViewGrid.esSeleccionCeldaDatos
|
|
||||||
and (ViewGrid.NumSeleccionados > 0)
|
|
||||||
else
|
|
||||||
(Sender as TAction).Enabled := False;
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TfEditorAlbaranesCliente.actEnviarExecute(Sender: TObject);
|
procedure TfEditorAlbaranesCliente.actEnviarExecute(Sender: TObject);
|
||||||
var
|
var
|
||||||
AInventarioController : IInventarioController;
|
AInventarioController : IInventarioController;
|
||||||
@ -385,8 +345,6 @@ end;
|
|||||||
|
|
||||||
procedure TfEditorAlbaranesCliente.FormShow(Sender: TObject);
|
procedure TfEditorAlbaranesCliente.FormShow(Sender: TObject);
|
||||||
begin
|
begin
|
||||||
cbxListaAnos.OnChange := OnListaAnosChange; //OJO SIEMPRE ANTES QUE EL INHERITED
|
|
||||||
|
|
||||||
inherited;
|
inherited;
|
||||||
|
|
||||||
if not Assigned(ViewGrid) then
|
if not Assigned(ViewGrid) then
|
||||||
@ -434,7 +392,7 @@ begin
|
|||||||
200 : begin // Lista de elementos visibles
|
200 : begin // Lista de elementos visibles
|
||||||
inherited;
|
inherited;
|
||||||
end;
|
end;
|
||||||
100, 101 : begin // Elemento Seleccionado
|
100 : begin // Elemento Seleccionado
|
||||||
if AllItems then
|
if AllItems then
|
||||||
begin
|
begin
|
||||||
SeleccionarFilasDesdeGrid(ViewGrid._FocusedView, (Albaranes as ISeleccionable).SelectedRecords);
|
SeleccionarFilasDesdeGrid(ViewGrid._FocusedView, (Albaranes as ISeleccionable).SelectedRecords);
|
||||||
@ -444,18 +402,12 @@ begin
|
|||||||
AAlbaranes := Albaranes;
|
AAlbaranes := Albaranes;
|
||||||
|
|
||||||
if Assigned(AAlbaranes) then
|
if Assigned(AAlbaranes) then
|
||||||
begin
|
if FController.Print(AAlbaranes, AllItems) then
|
||||||
//Con observaciones e incidencias
|
|
||||||
if JsImprimirDialog.CustomButtonResult = 101 then
|
|
||||||
FController.Print(AAlbaranes, AllItems, True)
|
|
||||||
else
|
|
||||||
FController.Print(AAlbaranes, AllItems);
|
|
||||||
RefrescarInterno;
|
RefrescarInterno;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TfEditorAlbaranesCliente.ModificarInterno;
|
procedure TfEditorAlbaranesCliente.ModificarInterno;
|
||||||
@ -489,13 +441,6 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TfEditorAlbaranesCliente.OnListaAnosChange(Sender: TObject; const Text: string);
|
|
||||||
begin
|
|
||||||
Controller.FiltrarAno(Albaranes, WhereDataTable, Text);
|
|
||||||
if Albaranes.DataTable.Active then
|
|
||||||
RefrescarInterno;
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TfEditorAlbaranesCliente.PonerTitulos(const ATitulo: string);
|
procedure TfEditorAlbaranesCliente.PonerTitulos(const ATitulo: string);
|
||||||
var
|
var
|
||||||
FTitulo : String;
|
FTitulo : String;
|
||||||
@ -532,7 +477,7 @@ begin
|
|||||||
200 : begin // Lista de elementos visibles
|
200 : begin // Lista de elementos visibles
|
||||||
inherited;
|
inherited;
|
||||||
end;
|
end;
|
||||||
100, 101 : begin // Elemento Seleccionado
|
100 : begin // Elemento Seleccionado
|
||||||
if AllItems then
|
if AllItems then
|
||||||
begin
|
begin
|
||||||
SeleccionarFilasDesdeGrid(ViewGrid._FocusedView, (Albaranes as ISeleccionable).SelectedRecords);
|
SeleccionarFilasDesdeGrid(ViewGrid._FocusedView, (Albaranes as ISeleccionable).SelectedRecords);
|
||||||
@ -542,10 +487,6 @@ begin
|
|||||||
AAlbaranes := Albaranes;
|
AAlbaranes := Albaranes;
|
||||||
|
|
||||||
if Assigned(AAlbaranes) then
|
if Assigned(AAlbaranes) then
|
||||||
//Con observaciones e incidencias
|
|
||||||
if JsPrevisualizarDialog.CustomButtonResult = 101 then
|
|
||||||
FController.Preview(AAlbaranes, AllItems, True)
|
|
||||||
else
|
|
||||||
FController.Preview(AAlbaranes, AllItems);
|
FController.Preview(AAlbaranes, AllItems);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
@ -553,37 +494,17 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TfEditorAlbaranesCliente.RefrescarInterno;
|
|
||||||
begin
|
|
||||||
//Volvemos a cargar los años de las facturas
|
|
||||||
if Assigned(FController) then
|
|
||||||
ListaAnos := FController.DarListaAnosAlbaranes;
|
|
||||||
|
|
||||||
inherited;
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TfEditorAlbaranesCliente.SetController(const Value: IAlbaranesClienteController);
|
procedure TfEditorAlbaranesCliente.SetController(const Value: IAlbaranesClienteController);
|
||||||
begin
|
begin
|
||||||
FController := Value;
|
FController := Value;
|
||||||
|
|
||||||
if Assigned(FController) then
|
|
||||||
ListaAnos := FController.DarListaAnosAlbaranes;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TfEditorAlbaranesCliente.SetAlbaranes(const Value: IBizAlbaranCliente);
|
procedure TfEditorAlbaranesCliente.SetAlbaranes(const Value: IBizAlbaranCliente);
|
||||||
begin
|
begin
|
||||||
FAlbaranes := Value;
|
FAlbaranes := Value;
|
||||||
|
|
||||||
if Assigned(FAlbaranes) then
|
|
||||||
begin
|
|
||||||
//Se guarda el where de la sentencia origen, por si el editor tiene filtros que
|
|
||||||
//afecten a este where y en un futuro se desea volver al where origen (filtro de año))
|
|
||||||
WhereDataTable := FAlbaranes.DataTable.Where.Clause;
|
|
||||||
|
|
||||||
dsDataTable.DataTable := FAlbaranes.DataTable;
|
dsDataTable.DataTable := FAlbaranes.DataTable;
|
||||||
if Assigned(ViewGrid) then
|
if Assigned(ViewGrid) then
|
||||||
(ViewGrid as IViewAlbaranesCliente).Albaranes := Albaranes;
|
(ViewGrid as IViewAlbaranesCliente).Albaranes := Albaranes;
|
||||||
end;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
|||||||
@ -52,9 +52,6 @@ inherited fEditorElegirAlbaranesCliente: TfEditorElegirAlbaranesCliente
|
|||||||
ExplicitTop = 87
|
ExplicitTop = 87
|
||||||
ExplicitWidth = 790
|
ExplicitWidth = 790
|
||||||
inherited tbxMain: TTBXToolbar
|
inherited tbxMain: TTBXToolbar
|
||||||
Left = 367
|
|
||||||
DockPos = 367
|
|
||||||
ExplicitLeft = 367
|
|
||||||
ExplicitWidth = 126
|
ExplicitWidth = 126
|
||||||
inherited TBXItem2: TTBXItem
|
inherited TBXItem2: TTBXItem
|
||||||
Visible = False
|
Visible = False
|
||||||
@ -89,9 +86,6 @@ inherited fEditorElegirAlbaranesCliente: TfEditorElegirAlbaranesCliente
|
|||||||
inherited TBXSeparatorItem10: TTBXSeparatorItem
|
inherited TBXSeparatorItem10: TTBXSeparatorItem
|
||||||
Visible = False
|
Visible = False
|
||||||
end
|
end
|
||||||
inherited TBXItem40: TTBXItem
|
|
||||||
Visible = False
|
|
||||||
end
|
|
||||||
inherited TBXSeparatorItem2: TTBXSeparatorItem
|
inherited TBXSeparatorItem2: TTBXSeparatorItem
|
||||||
Visible = False
|
Visible = False
|
||||||
end
|
end
|
||||||
@ -103,13 +97,13 @@ inherited fEditorElegirAlbaranesCliente: TfEditorElegirAlbaranesCliente
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
inherited tbxFiltro: TTBXToolbar
|
inherited tbxFiltro: TTBXToolbar
|
||||||
Left = 3
|
Left = 126
|
||||||
Top = 23
|
Top = 23
|
||||||
DockPos = 3
|
DockPos = 104
|
||||||
DockRow = 1
|
DockRow = 1
|
||||||
ExplicitLeft = 3
|
ExplicitLeft = 126
|
||||||
ExplicitTop = 23
|
ExplicitTop = 23
|
||||||
ExplicitWidth = 363
|
ExplicitWidth = 269
|
||||||
inherited TBXItem34: TTBXItem
|
inherited TBXItem34: TTBXItem
|
||||||
Action = actQuitarFiltro2
|
Action = actQuitarFiltro2
|
||||||
end
|
end
|
||||||
@ -121,10 +115,10 @@ inherited fEditorElegirAlbaranesCliente: TfEditorElegirAlbaranesCliente
|
|||||||
ExplicitWidth = 790
|
ExplicitWidth = 790
|
||||||
end
|
end
|
||||||
inherited TBXTMain2: TTBXToolbar
|
inherited TBXTMain2: TTBXToolbar
|
||||||
Left = 84
|
Left = 206
|
||||||
Visible = False
|
Visible = False
|
||||||
ExplicitLeft = 84
|
ExplicitLeft = 206
|
||||||
ExplicitWidth = 706
|
ExplicitWidth = 584
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
inherited StatusBar: TJvStatusBar
|
inherited StatusBar: TJvStatusBar
|
||||||
@ -133,7 +127,7 @@ inherited fEditorElegirAlbaranesCliente: TfEditorElegirAlbaranesCliente
|
|||||||
end
|
end
|
||||||
inline frViewBarraSeleccion1: TfrViewBarraSeleccion [4]
|
inline frViewBarraSeleccion1: TfrViewBarraSeleccion [4]
|
||||||
Left = 0
|
Left = 0
|
||||||
Top = 394
|
Top = 389
|
||||||
Width = 790
|
Width = 790
|
||||||
Height = 36
|
Height = 36
|
||||||
Align = alBottom
|
Align = alBottom
|
||||||
@ -145,7 +139,7 @@ inherited fEditorElegirAlbaranesCliente: TfEditorElegirAlbaranesCliente
|
|||||||
ParentFont = False
|
ParentFont = False
|
||||||
TabOrder = 3
|
TabOrder = 3
|
||||||
ReadOnly = False
|
ReadOnly = False
|
||||||
ExplicitTop = 394
|
ExplicitTop = 389
|
||||||
ExplicitWidth = 790
|
ExplicitWidth = 790
|
||||||
ExplicitHeight = 36
|
ExplicitHeight = 36
|
||||||
inherited JvFooter1: TJvFooter
|
inherited JvFooter1: TJvFooter
|
||||||
|
|||||||
@ -3,16 +3,4 @@ inherited fEditorElegirArticulosAlbaranCliente: TfEditorElegirArticulosAlbaranCl
|
|||||||
ExplicitHeight = 471
|
ExplicitHeight = 471
|
||||||
PixelsPerInch = 96
|
PixelsPerInch = 96
|
||||||
TextHeight = 13
|
TextHeight = 13
|
||||||
inherited TBXDock: TTBXDock
|
|
||||||
inherited tbxMain: TTBXToolbar
|
|
||||||
Left = 275
|
|
||||||
DockPos = 275
|
|
||||||
ExplicitLeft = 275
|
|
||||||
end
|
|
||||||
inherited tbxFiltro: TTBXToolbar
|
|
||||||
Left = 3
|
|
||||||
DockPos = 3
|
|
||||||
ExplicitLeft = 3
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|||||||
@ -40,50 +40,13 @@ inherited frViewAlbaranesCliente: TfrViewAlbaranesCliente
|
|||||||
OptionsView.GroupFooters = gfAlwaysVisible
|
OptionsView.GroupFooters = gfAlwaysVisible
|
||||||
object cxGridViewNUM_COPIAS: TcxGridDBColumn
|
object cxGridViewNUM_COPIAS: TcxGridDBColumn
|
||||||
DataBinding.FieldName = 'NUM_COPIAS'
|
DataBinding.FieldName = 'NUM_COPIAS'
|
||||||
|
OnCustomDrawCell = cxGridViewNUM_COPIASCustomDrawCell
|
||||||
MinWidth = 30
|
MinWidth = 30
|
||||||
Options.HorzSizing = False
|
Options.HorzSizing = False
|
||||||
VisibleForCustomization = False
|
VisibleForCustomization = False
|
||||||
Width = 30
|
Width = 30
|
||||||
OnCustomDrawHeader = cxGridViewNUM_COPIASCustomDrawHeader
|
|
||||||
IsCaptionAssigned = True
|
IsCaptionAssigned = True
|
||||||
end
|
end
|
||||||
object cxGridViewNUM_CORREOS: TcxGridDBColumn
|
|
||||||
DataBinding.FieldName = 'NUM_CORREOS'
|
|
||||||
PropertiesClassName = 'TcxTextEditProperties'
|
|
||||||
Properties.Alignment.Horz = taCenter
|
|
||||||
BestFitMaxWidth = 25
|
|
||||||
MinWidth = 25
|
|
||||||
Options.Editing = False
|
|
||||||
Options.HorzSizing = False
|
|
||||||
Options.Moving = False
|
|
||||||
Options.ShowCaption = False
|
|
||||||
VisibleForCustomization = False
|
|
||||||
Width = 25
|
|
||||||
OnCustomDrawHeader = cxGridViewNUM_CORREOSCustomDrawHeader
|
|
||||||
end
|
|
||||||
object cxGridViewBLOQUEADO: TcxGridDBColumn
|
|
||||||
Caption = #191'Bloqueado?'
|
|
||||||
DataBinding.FieldName = 'BLOQUEADO'
|
|
||||||
PropertiesClassName = 'TcxImageComboBoxProperties'
|
|
||||||
Properties.Images = PngImageList10
|
|
||||||
Properties.Items = <
|
|
||||||
item
|
|
||||||
Description = '0'
|
|
||||||
Value = 0
|
|
||||||
end
|
|
||||||
item
|
|
||||||
Description = '1'
|
|
||||||
ImageIndex = 2
|
|
||||||
Tag = 1
|
|
||||||
Value = 1
|
|
||||||
end>
|
|
||||||
Properties.LargeImages = PngImageList10
|
|
||||||
Properties.ShowDescriptions = False
|
|
||||||
BestFitMaxWidth = 25
|
|
||||||
MinWidth = 25
|
|
||||||
VisibleForCustomization = False
|
|
||||||
Width = 25
|
|
||||||
end
|
|
||||||
object cxGridViewINCIDENCIAS_ACTIVAS: TcxGridDBColumn
|
object cxGridViewINCIDENCIAS_ACTIVAS: TcxGridDBColumn
|
||||||
Caption = 'Incidencias'
|
Caption = 'Incidencias'
|
||||||
DataBinding.FieldName = 'INCIDENCIAS_ACTIVAS'
|
DataBinding.FieldName = 'INCIDENCIAS_ACTIVAS'
|
||||||
@ -212,9 +175,6 @@ inherited frViewAlbaranesCliente: TfrViewAlbaranesCliente
|
|||||||
Options.DetailFrameColor = clNone
|
Options.DetailFrameColor = clNone
|
||||||
Options.DetailFrameWidth = 0
|
Options.DetailFrameWidth = 0
|
||||||
end
|
end
|
||||||
object cxGridLevelBloqueados: TcxGridLevel
|
|
||||||
Caption = 'Bloqueados'
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
inherited frViewFiltroBase1: TfrViewFiltroBase
|
inherited frViewFiltroBase1: TfrViewFiltroBase
|
||||||
Width = 596
|
Width = 596
|
||||||
@ -299,28 +259,20 @@ inherited frViewAlbaranesCliente: TfrViewAlbaranesCliente
|
|||||||
TextColor = clBlue
|
TextColor = clBlue
|
||||||
end
|
end
|
||||||
object cxStylePENDIENTES: TcxStyle
|
object cxStylePENDIENTES: TcxStyle
|
||||||
AssignedValues = [svColor, svTextColor]
|
AssignedValues = [svTextColor]
|
||||||
Color = clWhite
|
|
||||||
TextColor = clGreen
|
TextColor = clGreen
|
||||||
end
|
end
|
||||||
object cxStyleENVIADOS: TcxStyle
|
object cxStyleENVIADOS: TcxStyle
|
||||||
AssignedValues = [svColor, svTextColor]
|
AssignedValues = [svTextColor]
|
||||||
Color = clWhite
|
|
||||||
TextColor = clBlue
|
TextColor = clBlue
|
||||||
end
|
end
|
||||||
object cxStyleSERVIDOS: TcxStyle
|
object cxStyleSERVIDOS: TcxStyle
|
||||||
AssignedValues = [svColor]
|
|
||||||
Color = clWhite
|
|
||||||
end
|
end
|
||||||
object cxStyleRETRASADOS: TcxStyle
|
object cxStyleRETRASADOS: TcxStyle
|
||||||
AssignedValues = [svColor, svTextColor]
|
AssignedValues = [svColor, svTextColor]
|
||||||
Color = 15527167
|
Color = 15527167
|
||||||
TextColor = clRed
|
TextColor = clRed
|
||||||
end
|
end
|
||||||
object cxStyleBLOQUEADOS: TcxStyle
|
|
||||||
AssignedValues = [svColor]
|
|
||||||
Color = 6793212
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
inherited cxViewGridPopupMenu: TcxGridPopupMenu
|
inherited cxViewGridPopupMenu: TcxGridPopupMenu
|
||||||
Left = 280
|
Left = 280
|
||||||
@ -342,111 +294,6 @@ inherited frViewAlbaranesCliente: TfrViewAlbaranesCliente
|
|||||||
OnUpdate = actAgentesUpdate
|
OnUpdate = actAgentesUpdate
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
inherited PngImageList10: TPngImageList
|
|
||||||
PngImages = <
|
|
||||||
item
|
|
||||||
PngImage.Data = {
|
|
||||||
89504E470D0A1A0A0000000D4948445200000010000000100804000000B5FA37
|
|
||||||
EA000000097048597300000B1300000B1301009A9C180000031B694343505068
|
|
||||||
6F746F73686F70204943432070726F66696C65000078DA6360609EE0E8E2E4CA
|
|
||||||
24C0C050505452E41EE418191119A5C07E9E818D819981818181812131B9B8C0
|
|
||||||
3120C087818181212F3F2F9501153032307CBBC6C0C8C0C0C07059D7D1C5C995
|
|
||||||
8134C09A5C5054C2C0C070808181C12825B538998181E10B0303437A79494109
|
|
||||||
0303630C03038348527641090303630103038348764890330303630B0303134F
|
|
||||||
496A450903030383737E416551667A468982A1A5A5A582634A7E52AA42706571
|
|
||||||
496A6EB182675E727E51417E5162496A0A030303D40E060606065E97FC1205F7
|
|
||||||
C4CC3C05435355062A8388C82805080B113E083104482E2D2A83072503830083
|
|
||||||
16831F4325C32A86078CD28C518CF3189F32193235305D62D6606E64BECB62C3
|
|
||||||
328F9599359BF52A9B13DB267615F6991C021C9D9CAC9CCD5CCC5C6DDCDCDC13
|
|
||||||
79A47896F21AF31EE20BE67BC65F2D2024B05AD04DF09150A3B0A2F061917451
|
|
||||||
5ED1AD6271E29CE25B25522485258F4A5548EB4A3F9199231B2A27287756BE47
|
|
||||||
C1479157F182D214E528152595D7AA5BD51AD5FD346435DE6AEED39AA89DAA63
|
|
||||||
AD2BA4FB4AEF88FE7C831AC328234B6349E3DF26F74C0F9BAD30EFB7A8B04CB4
|
|
||||||
F2B1B6B051B515B163B1FB6AFFDCE1B6E305A763CE7B5DB6BAAE775BE9BED463
|
|
||||||
91E742AF05DE0B7D16FB2EF35BE5BF3E606BE0DEA063C1E7436E853E0BFB12C1
|
|
||||||
142918A5146D1CE3161B159717DF92303B7173D2D9E4E7A94C6972E936195199
|
|
||||||
5559B3B2F7E4DCCB63CA572FF0292C2E9A5D7CB8E46D9944B94B4561E5BCAAB3
|
|
||||||
D57F6BF5EAE2EB27351C6BFCDD6CD092DE3AAFED7A8760A777577BF7E15E863E
|
|
||||||
FBFEBA09FB26FE9FEC38A575EA89E9BC338267CE9AF5688ED6DC9279FB16702D
|
|
||||||
0C5BB478F1C7A50ECB262C7FB8D27855EBEA9B6B75D735ADBFB9D16053C7E607
|
|
||||||
5BADB64DDDFE61A7EFAE557B38F6A6EF3B7E40FD60E7A1D747FC8E6E3E2E7EA2
|
|
||||||
F6E493D3DE67B69C933DDF7EE1D3A5B8CBA7AE5A5C5B7643F466EBADAF77D2EF
|
|
||||||
DEBCEFF3E0C023D3C7AB9F2A3E9BF942F065D76BE637756F7FBE2FFDF0E953C1
|
|
||||||
E7775FF3BEBDFB91FFF3C3EFE23FDFFE55FDFF0F002E0C1D8BA03C0931000001
|
|
||||||
2D4944415478DA63FCCF801F3092AC20EFFFFF870C070A0EA82CF88F4D41EEFF
|
|
||||||
7C063E20BD80E1F0C1CD0E680AEAFEBF67C8679060F8C8F0986119C3858F8704
|
|
||||||
501494FECF60A867980B94FECCB08A61FBC7A2050105480A4AFE973188319C67
|
|
||||||
E863286238C2B099C139B06203921B20D2207082A10B688630C31F8660C7E803
|
|
||||||
700515FF8BC00A5E333C6778C6F0936111832EC3A58FEB106EE8FAFF8521186C
|
|
||||||
C21786870C6B80D2AF800EDDC28864851BC33E86FF0C3A0C3F18B603A59F30FC
|
|
||||||
62F8C0B019A2C055E08F81C8FEC90C8C0C5719B6315C6330014BFF072A809A00
|
|
||||||
22BC13A4E67B336803832891419CE137D01D5C0C2F034F6D802B6060F049F837
|
|
||||||
4190DF111840BF19FE7FFC9170062809F5268838C8A8CEC8CE129DF5A5E5F79F
|
|
||||||
1FA97F375FFA0112C51A1798000002C5780121B7DDC80000000049454E44AE42
|
|
||||||
6082}
|
|
||||||
Name = 'PngImage0'
|
|
||||||
Background = clWindow
|
|
||||||
end
|
|
||||||
item
|
|
||||||
PngImage.Data = {
|
|
||||||
89504E470D0A1A0A0000000D4948445200000010000000100804000000B5FA37
|
|
||||||
EA000000097048597300000B1300000B1301009A9C180000031B694343505068
|
|
||||||
6F746F73686F70204943432070726F66696C65000078DA6360609EE0E8E2E4CA
|
|
||||||
24C0C050505452E41EE418191119A5C07E9E818D819981818181812131B9B8C0
|
|
||||||
3120C087818181212F3F2F9501153032307CBBC6C0C8C0C0C07059D7D1C5C995
|
|
||||||
8134C09A5C5054C2C0C070808181C12825B538998181E10B0303437A79494109
|
|
||||||
0303630C03038348527641090303630103038348764890330303630B0303134F
|
|
||||||
496A450903030383737E416551667A468982A1A5A5A582634A7E52AA42706571
|
|
||||||
496A6EB182675E727E51417E5162496A0A030303D40E060606065E97FC1205F7
|
|
||||||
C4CC3C05435355062A8388C82805080B113E083104482E2D2A83072503830083
|
|
||||||
16831F4325C32A86078CD28C518CF3189F32193235305D62D6606E64BECB62C3
|
|
||||||
328F9599359BF52A9B13DB267615F6991C021C9D9CAC9CCD5CCC5C6DDCDCDC13
|
|
||||||
79A47896F21AF31EE20BE67BC65F2D2024B05AD04DF09150A3B0A2F061917451
|
|
||||||
5ED1AD6271E29CE25B25522485258F4A5548EB4A3F9199231B2A27287756BE47
|
|
||||||
C1479157F182D214E528152595D7AA5BD51AD5FD346435DE6AEED39AA89DAA63
|
|
||||||
AD2BA4FB4AEF88FE7C831AC328234B6349E3DF26F74C0F9BAD30EFB7A8B04CB4
|
|
||||||
F2B1B6B051B515B163B1FB6AFFDCE1B6E305A763CE7B5DB6BAAE775BE9BED463
|
|
||||||
91E742AF05DE0B7D16FB2EF35BE5BF3E606BE0DEA063C1E7436E853E0BFB12C1
|
|
||||||
142918A5146D1CE3161B159717DF92303B7173D2D9E4E7A94C6972E936195199
|
|
||||||
5559B3B2F7E4DCCB63CA572FF0292C2E9A5D7CB8E46D9944B94B4561E5BCAAB3
|
|
||||||
D57F6BF5EAE2EB27351C6BFCDD6CD092DE3AAFED7A8760A777577BF7E15E863E
|
|
||||||
FBFEBA09FB26FE9FEC38A575EA89E9BC338267CE9AF5688ED6DC9279FB16702D
|
|
||||||
0C5BB478F1C7A50ECB262C7FB8D27855EBEA9B6B75D735ADBFB9D16053C7E607
|
|
||||||
5BADB64DDDFE61A7EFAE557B38F6A6EF3B7E40FD60E7A1D747FC8E6E3E2E7EA2
|
|
||||||
F6E493D3DE67B69C933DDF7EE1D3A5B8CBA7AE5A5C5B7643F466EBADAF77D2EF
|
|
||||||
DEBCEFF3E0C023D3C7AB9F2A3E9BF942F065D76BE637756F7FBE2FFDF0E953C1
|
|
||||||
E7775FF3BEBDFB91FFF3C3EFE23FDFFE55FDFF0F002E0C1D8BA03C0931000000
|
|
||||||
C14944415478DABDD13F0BC14118C0F1EF6D06B1B1FEDE80FABD082619E49D78
|
|
||||||
0B769B49190C8A41C9885226857E06938588FC1D0CFE0E8F27830E6592ABE7BA
|
|
||||||
EE3EF7DC3D7746F8DECCDF404D2E0886B3C64D7B34D2C60215199320A4CB270E
|
|
||||||
ACE952626483A2387494843932D311E499D8A02071A63488E9414D1C069499DB
|
|
||||||
2027294DDC66C79E2D11FA9A656D83AC44A9E3E2D75B780C59D27B05190912C0
|
|
||||||
A7BB17CCD928FB00AD4781272DCFC78AABCEBD00F37C98F787FB0049B7EAFDF6
|
|
||||||
2FEEC02251018239FFBF0000000049454E44AE426082}
|
|
||||||
Name = 'PngImage1'
|
|
||||||
Background = clWindow
|
|
||||||
end
|
|
||||||
item
|
|
||||||
PngImage.Data = {
|
|
||||||
89504E470D0A1A0A0000000D49484452000000100000001008060000001FF3FF
|
|
||||||
610000000970485973000017120000171201679FD252000001664944415478DA
|
|
||||||
63FCFFFF3F0325801164002323235CE05023A73990D266E3FF3E1726F6EB2367
|
|
||||||
3290BA6A57FFFD244C0C66318A0130CDD679E7E622DBF2FB6627C3DCB9AB8EEA
|
|
||||||
CAFC2F861982CB802490E6DF2F0F32CCE8C8801B90919100A6418664CFFE6683
|
|
||||||
D380131318FE9BC65F67985CA8C960A4C86901B20DE42AA0774E18582430CC98
|
|
||||||
B180A1600103235106C014C2C4F11A70B8890B6C0BB1210F0C540BDBBA6F27E1
|
|
||||||
069C9CC8F8DFC0630603ABB83D41CDB0F0C99FFF9F11C50090D3FFBDD9C7F0FF
|
|
||||||
EF2F04FE87603380D93F18AE9C9ECB70E202037603FEBEDC01D770ECC67D86A6
|
|
||||||
69F718EAB29418CCE538C19AFFFFF9CE70F5FC32DC06FC79B6096EB367C161B8
|
|
||||||
B3B7B42A8335FFFBF383E1FAE575B80DF8FD780D8AB3BDCBCEA368FE0FC437AE
|
|
||||||
6FC36DC0AFFB8BE1066C3EFD8C61C69A370CD1EEAC0C61269C60038004C3CDDB
|
|
||||||
FBB01B008A850B3B3208C602385DA01B004A07E7EE139F0E40A914251D500200
|
|
||||||
A1723AF0CAFCCBE70000000049454E44AE426082}
|
|
||||||
Name = 'PngImage2'
|
|
||||||
Background = clWindow
|
|
||||||
end>
|
|
||||||
Bitmap = {}
|
|
||||||
end
|
|
||||||
inherited dxPrintStyleManager1: TdxPrintStyleManager
|
inherited dxPrintStyleManager1: TdxPrintStyleManager
|
||||||
inherited dxPrintStyleManager1Style1: TdxPSPrintStyle
|
inherited dxPrintStyleManager1Style1: TdxPSPrintStyle
|
||||||
BuiltInStyle = True
|
BuiltInStyle = True
|
||||||
|
|||||||
@ -12,8 +12,7 @@ uses
|
|||||||
uDADataTable, cxGridLevel, cxClasses, cxControls, cxGridCustomView, Classes,
|
uDADataTable, cxGridLevel, cxClasses, cxControls, cxGridCustomView, Classes,
|
||||||
cxGrid,
|
cxGrid,
|
||||||
uBizAlbaranesCliente, cxCurrencyEdit, Forms, uViewFiltroBase, ComCtrls, Tabs,
|
uBizAlbaranesCliente, cxCurrencyEdit, Forms, uViewFiltroBase, ComCtrls, Tabs,
|
||||||
cxPC, ActnList, TB2Item, TBX, TB2Dock, TB2Toolbar, TBXDkPanels, dxPgsDlg,
|
cxPC, ActnList, TB2Item, TBX, TB2Dock, TB2Toolbar, TBXDkPanels, dxPgsDlg;
|
||||||
cxTextEdit;
|
|
||||||
|
|
||||||
type
|
type
|
||||||
IViewAlbaranesCliente = interface(IViewGrid)
|
IViewAlbaranesCliente = interface(IViewGrid)
|
||||||
@ -63,10 +62,6 @@ type
|
|||||||
actAgentes: TAction;
|
actAgentes: TAction;
|
||||||
cxGridViewAGENTE: TcxGridDBColumn;
|
cxGridViewAGENTE: TcxGridDBColumn;
|
||||||
cxGridViewNUM_COPIAS: TcxGridDBColumn;
|
cxGridViewNUM_COPIAS: TcxGridDBColumn;
|
||||||
cxGridViewNUM_CORREOS: TcxGridDBColumn;
|
|
||||||
cxGridLevelBloqueados: TcxGridLevel;
|
|
||||||
cxGridViewBLOQUEADO: TcxGridDBColumn;
|
|
||||||
cxStyleBLOQUEADOS: TcxStyle;
|
|
||||||
procedure cxGridActiveTabChanged(Sender: TcxCustomGrid; ALevel:
|
procedure cxGridActiveTabChanged(Sender: TcxCustomGrid; ALevel:
|
||||||
TcxGridLevel);
|
TcxGridLevel);
|
||||||
procedure cxGridViewCODIGOCustomDrawCell(Sender: TcxCustomGridTableView;
|
procedure cxGridViewCODIGOCustomDrawCell(Sender: TcxCustomGridTableView;
|
||||||
@ -84,11 +79,8 @@ type
|
|||||||
Y: Integer);
|
Y: Integer);
|
||||||
procedure actAgentesExecute(Sender: TObject);
|
procedure actAgentesExecute(Sender: TObject);
|
||||||
procedure actAgentesUpdate(Sender: TObject);
|
procedure actAgentesUpdate(Sender: TObject);
|
||||||
procedure cxGridViewNUM_CORREOSCustomDrawHeader(Sender: TcxGridTableView;
|
procedure cxGridViewNUM_COPIASCustomDrawCell(Sender: TcxCustomGridTableView;
|
||||||
ACanvas: TcxCanvas; AViewInfo: TcxGridColumnHeaderViewInfo;
|
ACanvas: TcxCanvas; AViewInfo: TcxGridTableDataCellViewInfo;
|
||||||
var ADone: Boolean);
|
|
||||||
procedure cxGridViewNUM_COPIASCustomDrawHeader(Sender: TcxGridTableView;
|
|
||||||
ACanvas: TcxCanvas; AViewInfo: TcxGridColumnHeaderViewInfo;
|
|
||||||
var ADone: Boolean);
|
var ADone: Boolean);
|
||||||
|
|
||||||
private
|
private
|
||||||
@ -108,8 +100,7 @@ type
|
|||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
uses
|
uses SysUtils, DateUtils, variants, windows, uDataModuleAlbaranesCliente, schAlbaranesClienteClient_Intf,
|
||||||
Graphics, SysUtils, DateUtils, variants, windows, uDataModuleAlbaranesCliente, schAlbaranesClienteClient_Intf,
|
|
||||||
uViewGridBase;
|
uViewGridBase;
|
||||||
|
|
||||||
{$R *.dfm}
|
{$R *.dfm}
|
||||||
@ -217,11 +208,6 @@ begin
|
|||||||
FFiltro := AddFilterGrid(fboAnd);
|
FFiltro := AddFilterGrid(fboAnd);
|
||||||
FFiltro.AddItem(cxGridViewFECHA_PREVISTA_ENVIO, foLess, DateOf(Now), 'RETRASADOS');
|
FFiltro.AddItem(cxGridViewFECHA_PREVISTA_ENVIO, foLess, DateOf(Now), 'RETRASADOS');
|
||||||
end;
|
end;
|
||||||
5 : begin
|
|
||||||
FFiltro.AddItem(cxGridViewBLOQUEADO, foEqual, '1', '1');
|
|
||||||
FFiltro := AddFilterGrid(fboAnd);
|
|
||||||
FFiltro.AddItem(cxGridViewSITUACION, foNotEqual, SITUACION_ALBARAN_SERVIDO, SITUACION_ALBARAN_SERVIDO);
|
|
||||||
end;
|
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -289,46 +275,21 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TfrViewAlbaranesCliente.cxGridViewNUM_COPIASCustomDrawHeader(
|
procedure TfrViewAlbaranesCliente.cxGridViewNUM_COPIASCustomDrawCell(
|
||||||
Sender: TcxGridTableView; ACanvas: TcxCanvas;
|
Sender: TcxCustomGridTableView; ACanvas: TcxCanvas;
|
||||||
AViewInfo: TcxGridColumnHeaderViewInfo; var ADone: Boolean);
|
AViewInfo: TcxGridTableDataCellViewInfo; var ADone: Boolean);
|
||||||
var
|
var
|
||||||
R : TRect;
|
R : TRect;
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
with AViewInfo do
|
if (AViewInfo.GridRecord.DisplayTexts[cxGridViewNUM_COPIAS.Index] <> '') then
|
||||||
begin
|
begin
|
||||||
LookAndFeelPainter.DrawHeader(ACanvas, Bounds, TextAreaBounds, Neighbors,
|
|
||||||
Borders, ButtonState, AlignmentHorz, AlignmentVert, MultiLine,
|
|
||||||
False, '', Params.Font, Params.TextColor, Params.Color);
|
|
||||||
|
|
||||||
R := AViewInfo.ContentBounds;
|
R := AViewInfo.ContentBounds;
|
||||||
ACanvas.FillRect(R);
|
ACanvas.FillRect(R);
|
||||||
ACanvas.DrawImage(PngImageList10, R.Left + 2, R.Top, 0);
|
ACanvas.DrawImage(PngImageList, R.Left, R.Top, 4);
|
||||||
end;
|
ACanvas.DrawTexT(AViewInfo.GridRecord.DisplayTexts[cxGridViewNUM_COPIAS.Index], R, cxAlignCenter or cxAlignVCenter);
|
||||||
|
|
||||||
ADone := True;
|
ADone := True;
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TfrViewAlbaranesCliente.cxGridViewNUM_CORREOSCustomDrawHeader(
|
|
||||||
Sender: TcxGridTableView; ACanvas: TcxCanvas;
|
|
||||||
AViewInfo: TcxGridColumnHeaderViewInfo; var ADone: Boolean);
|
|
||||||
var
|
|
||||||
R : TRect;
|
|
||||||
begin
|
|
||||||
inherited;
|
|
||||||
with AViewInfo do
|
|
||||||
begin
|
|
||||||
LookAndFeelPainter.DrawHeader(ACanvas, Bounds, TextAreaBounds, Neighbors,
|
|
||||||
Borders, ButtonState, AlignmentHorz, AlignmentVert, MultiLine,
|
|
||||||
False, '', Params.Font, Params.TextColor, Params.Color);
|
|
||||||
|
|
||||||
R := AViewInfo.ContentBounds;
|
|
||||||
ACanvas.FillRect(R);
|
|
||||||
ACanvas.DrawImage(PngImageList10, R.Left + 2, R.Top, 1);
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
ADone := True;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TfrViewAlbaranesCliente.cxGridViewStylesGetContentStyle(Sender:
|
procedure TfrViewAlbaranesCliente.cxGridViewStylesGetContentStyle(Sender:
|
||||||
@ -337,12 +298,10 @@ procedure TfrViewAlbaranesCliente.cxGridViewStylesGetContentStyle(Sender:
|
|||||||
var
|
var
|
||||||
IndiceCol: Integer;
|
IndiceCol: Integer;
|
||||||
ASituacion: string;
|
ASituacion: string;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
if Assigned(ARecord) then
|
if Assigned(ARecord) then
|
||||||
begin
|
begin
|
||||||
//ESTILO SITUACIONES
|
|
||||||
if Assigned((Sender as TcxGridDBTableView).GetColumnByFieldName(fld_AlbaranesClienteSITUACION)) then
|
if Assigned((Sender as TcxGridDBTableView).GetColumnByFieldName(fld_AlbaranesClienteSITUACION)) then
|
||||||
begin
|
begin
|
||||||
IndiceCol := (Sender as TcxGridDBTableView).GetColumnByFieldName(fld_AlbaranesClienteSITUACION).Index;
|
IndiceCol := (Sender as TcxGridDBTableView).GetColumnByFieldName(fld_AlbaranesClienteSITUACION).Index;
|
||||||
@ -358,18 +317,10 @@ begin
|
|||||||
AStyle := cxStylePENDIENTES;
|
AStyle := cxStylePENDIENTES;
|
||||||
end
|
end
|
||||||
else if ASituacion = SITUACION_ALBARAN_ENVIADO then
|
else if ASituacion = SITUACION_ALBARAN_ENVIADO then
|
||||||
AStyle := cxStyleENVIADOS;
|
AStyle := cxStyleENVIADOS
|
||||||
end
|
|
||||||
else if ASituacion = SITUACION_ALBARAN_SERVIDO then
|
else if ASituacion = SITUACION_ALBARAN_SERVIDO then
|
||||||
AStyle := cxStyleSERVIDOS;
|
AStyle := cxStyleSERVIDOS;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
//ESTILO DE BLOQUEADOS
|
|
||||||
if Assigned((Sender as TcxGridDBTableView).GetColumnByFieldName(fld_AlbaranesClienteBLOQUEADO)) then
|
|
||||||
begin
|
|
||||||
IndiceCol := (Sender as TcxGridDBTableView).GetColumnByFieldName(fld_AlbaranesClienteBLOQUEADO).Index;
|
|
||||||
if (VarToStr(ARecord.DisplayTexts[IndiceCol]) = '1') then
|
|
||||||
AStyle := cxStyleBLOQUEADOS;
|
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|||||||