71 lines
81 KiB
Plaintext
71 lines
81 KiB
Plaintext
|
|
<TDASchema><Commands Type="TDASQLCommandCollection" IsObject="true" IsCollection="true" Count="3" ItemClass="TDASQLCommand"><Item0><Description></Description><Name>Insert_PedidosCliente</Name><Params Type="TDAParamCollection" IsObject="true" IsCollection="true" Count="21" ItemClass="TDAParam"><Item0><AsString></AsString><BlobType>dabtUnknown</BlobType><DataType>datString</DataType><Description></Description><GeneratorName></GeneratorName><Name>USUARIO</Name><ParamType>daptInput</ParamType><Size>20</Size><Value></Value></Item0><Item1><AsString></AsString><BlobType>dabtUnknown</BlobType><DataType>datMemo</DataType><Description></Description><GeneratorName></GeneratorName><Name>OBSERVACIONES</Name><ParamType>daptInput</ParamType><Size>0</Size><Value></Value></Item1><Item2><AsString></AsString><BlobType>dabtUnknown</BlobType><DataType>datString</DataType><Description></Description><GeneratorName></GeneratorName><Name>REFERENCIA</Name><ParamType>daptInput</ParamType><Size>255</Size><Value></Value></Item2><Item3><AsString></AsString><BlobType>dabtUnknown</BlobType><DataType>datInteger</DataType><Description></Description><GeneratorName></GeneratorName><Name>ID</Name><ParamType>daptInput</ParamType><Size>0</Size><Value></Value></Item3><Item4><AsString></AsString><BlobType>dabtUnknown</BlobType><DataType>datInteger</DataType><Description></Description><GeneratorName></GeneratorName><Name>ID_EMPRESA</Name><ParamType>daptInput</ParamType><Size>0</Size><Value></Value></Item4><Item5><AsString></AsString><BlobType>dabtUnknown</BlobType><DataType>datString</DataType><Description></Description><GeneratorName></GeneratorName><Name>SITUACION</Name><ParamType>daptInput</ParamType><Size>255</Size><Value></Value></Item5><Item6><AsString></AsString><BlobType>dabtUnknown</BlobType><DataType>datDateTime</DataType><Description></Description><GeneratorName></GeneratorName><Name>FECHA_ALTA</Name><ParamType>daptInput</ParamType><Size>0</Size><Value></Value></Item6><Item7><AsString></AsString><BlobType>dabtUnknown</BlobType><DataType>datDateTime</DataType><Description></Description><GeneratorName></GeneratorName><Name>FECHA_MODIFICACION</Name><ParamType>daptInput</ParamType><Size>0</Size><Value></Value></Item7><Item8><AsString></AsString><BlobType>dabtUnknown</BlobType><DataType>datDateTime</DataType><Description></Description><GeneratorName></GeneratorName><Name>FECHA_PEDIDO</Name><ParamType>daptInput</ParamType><Size>0</Size><Value></Value></Item8><Item9><AsString></AsString><BlobType>dabtUnknown</BlobType><DataType>datDateTime</DataType><Description></Description><GeneratorName></GeneratorName><Name>FECHA_CONFIRMACION</Name><ParamType>daptInput</ParamType><Size>0</Size><Value></Value></Item9><Item10><AsString></AsString><BlobType>dabtUnknown</BlobType><DataType>datDateTime</DataType><Description></Description><GeneratorName></GeneratorName><Name>FECHA_ENTREGA</Name><ParamType>daptInput</ParamType><Size>0</Size><Value></Value></Item10><Item11><AsString></AsString><BlobType>dabtUnknown</BlobType><DataType>datMemo</DataType><Description></Description><GeneratorName></GeneratorName><Name>INCIDENCIAS</Name><ParamType>daptInput</ParamType><Size>0</Size><Value></Value></Item11><Item12><AsString></AsString><BlobType>dabtUnknown</BlobType><DataType>datFloat</DataType><Description></Description><GeneratorName></GeneratorName><Name>IMPORTE_TOTAL</Name><ParamType>daptInput</ParamType><Size>0</Size><Value></Value></Item12><Item13><AsString></AsString><BlobType>dabtUnknown</BlobType><DataType>datInteger</DataType><Description></Description><GeneratorName></GeneratorName><Name>INCIDENCIAS_ACTIVAS</Name><ParamType>daptInput</ParamType><Size>0</Size><Value></Value></Item13><Item14><AsString></AsString><BlobType>dabtUnknown</BlobType><DataType>datInteger</DataType><Description></Description><GeneratorName></GeneratorName><Name>ID_CLIENTE</Name><ParamType>daptInput</ParamType><Size>0</Size><Value></Value></Item14><Item15><AsString></AsString><BlobType>dabtUnknown</BlobType><DataType>datString</DataType><Description></Description><GeneratorName></GeneratorName><Na
|
||
|
|
INTO PEDIDOS_CLIENTE
|
||
|
|
(USUARIO, OBSERVACIONES, REFERENCIA, ID, ID_EMPRESA,
|
||
|
|
SITUACION, FECHA_ALTA, FECHA_MODIFICACION, FECHA_PEDIDO,
|
||
|
|
FECHA_CONFIRMACION, FECHA_ENTREGA, INCIDENCIAS, IMPORTE_TOTAL,
|
||
|
|
INCIDENCIAS_ACTIVAS, ID_CLIENTE, CALLE, CODIGO_POSTAL,
|
||
|
|
POBLACION, PROVINCIA, PERSONA_CONTACTO, TELEFONO)
|
||
|
|
VALUES
|
||
|
|
(:USUARIO, :OBSERVACIONES, :REFERENCIA, :ID,
|
||
|
|
:ID_EMPRESA, :SITUACION, :FECHA_ALTA, :FECHA_MODIFICACION,
|
||
|
|
:FECHA_PEDIDO, :FECHA_CONFIRMACION, :FECHA_ENTREGA,
|
||
|
|
:INCIDENCIAS, :IMPORTE_TOTAL, :INCIDENCIAS_ACTIVAS,
|
||
|
|
:ID_CLIENTE, :CALLE, :CODIGO_POSTAL, :POBLACION, :PROVINCIA,
|
||
|
|
:PERSONA_CONTACTO, :TELEFONO)</SQL><StatementType>stSQL</StatementType><TargetTable>PEDIDOS_CLIENTE</TargetTable></Item0></Statements></Item0><Item1><Description></Description><Name>Delete_PedidosCliente</Name><Params Type="TDAParamCollection" IsObject="true" IsCollection="true" Count="1" ItemClass="TDAParam"><Item0><AsString></AsString><BlobType>dabtUnknown</BlobType><DataType>datInteger</DataType><Description></Description><GeneratorName></GeneratorName><Name>OLD_ID</Name><ParamType>daptInput</ParamType><Size>0</Size><Value></Value></Item0></Params><Statements Type="TDAStatementCollection" IsObject="true" IsCollection="true" Count="1" ItemClass="TDAStatement"><Item0><ColumnMappings Type="TDAColumnMappingCollection" IsObject="true" IsCollection="true" Count="0" ItemClass="TDAColumnMapping"/><Connection>IBX</Connection><Name></Name><SQL>DELETE
|
||
|
|
FROM
|
||
|
|
PEDIDOS_CLIENTE
|
||
|
|
WHERE
|
||
|
|
(ID = :OLD_ID)</SQL><StatementType>stSQL</StatementType><TargetTable>PEDIDOS_CLIENTE</TargetTable></Item0></Statements></Item1><Item2><Description></Description><Name>Update_PedidosCliente</Name><Params Type="TDAParamCollection" IsObject="true" IsCollection="true" Count="22" ItemClass="TDAParam"><Item0><AsString></AsString><BlobType>dabtUnknown</BlobType><DataType>datString</DataType><Description></Description><GeneratorName></GeneratorName><Name>USUARIO</Name><ParamType>daptInput</ParamType><Size>20</Size><Value></Value></Item0><Item1><AsString></AsString><BlobType>dabtUnknown</BlobType><DataType>datMemo</DataType><Description></Description><GeneratorName></GeneratorName><Name>OBSERVACIONES</Name><ParamType>daptInput</ParamType><Size>0</Size><Value></Value></Item1><Item2><AsString></AsString><BlobType>dabtUnknown</BlobType><DataType>datString</DataType><Description></Description><GeneratorName></GeneratorName><Name>REFERENCIA</Name><ParamType>daptInput</ParamType><Size>255</Size><Value></Value></Item2><Item3><AsString></AsString><BlobType>dabtUnknown</BlobType><DataType>datInteger</DataType><Description></Description><GeneratorName></GeneratorName><Name>ID</Name><ParamType>daptInput</ParamType><Size>0</Size><Value></Value></Item3><Item4><AsString></AsString><BlobType>dabtUnknown</BlobType><DataType>datInteger</DataType><Description></Description><GeneratorName></GeneratorName><Name>ID_EMPRESA</Name><ParamType>daptInput</ParamType><Size>0</Size><Value></Value></Item4><Item5><AsString></AsString><BlobType>dabtUnknown</BlobType><DataType>datString</DataType><Description></Description><GeneratorName></GeneratorName><Name>SITUACION</Name><ParamType>daptInput</ParamType><Size>255</Size><Value></Value></Item5><Item6><AsString></AsString><BlobType>dabtUnknown</BlobType><DataType>datDateTime</DataType><Description></Description><GeneratorName></GeneratorName><Name>FECHA_ALTA</Name><ParamType>daptInput</ParamType><Size>0</Size><Value></Value></Item6><Item7><AsString></AsString><BlobType>dabtUnknown</BlobType><DataType>datDateTime</DataType><Description></Description><GeneratorName></GeneratorName><Name>FECHA_MODIFICACION</Name><ParamType>daptInput</ParamType><Size>0</Size><Value></Value></Item7><Item8><AsString></AsString><BlobType>dabtUnknown</BlobType><DataType>datDateTime</DataType><Description></Description><GeneratorName></GeneratorName><Name>FECHA_PEDIDO</Name><ParamType>daptInput</ParamType><Size>0</Size><Value></Value></Item8><Item9><AsString></AsString><BlobType>dabtUnknown</BlobType><DataType>datDateTime</DataType><Description></Description><GeneratorName></GeneratorName><Name>FECHA_CONFIRMACION</Name><ParamType>daptInput</ParamType><Size>0</Size><Value></Value></Item9><Item10><AsString></AsString><BlobType>dabtUnknown</BlobType><DataType>datDateTime</DataType><Description></Description><GeneratorName></GeneratorName><Name>FECHA_ENTREGA</Name><ParamType>daptInput</ParamType><Size>0</Size><Value></Value></Item10><Item11><AsString></AsString><BlobType>dabtUnknown</BlobType><DataType>datMemo</DataType><Description></Description><GeneratorName></GeneratorName><Name>INCIDENCIAS</Name><ParamType>daptInput</ParamType><Size>0</Size><Value></Value></Item11><Item12><AsString></AsString><BlobType>dabtUnknown</BlobType><DataType>datFloat</DataType><Description></Description><GeneratorName></GeneratorName><Name>IMPORTE_TOTAL</Name><ParamType>daptInput</ParamType><Size>0</Size><Value></Value></Item12><Item13><AsString></AsString><BlobType>dabtUnknown</BlobType><DataType>datInteger</DataType><Description></Description><GeneratorName></GeneratorName><Name>INCIDENCIAS_ACTIVAS</Name><ParamType>daptInput</ParamType><Size>0</Size><Value></Value></Item13><Item14><AsString></AsString><BlobType>dabtUnknown</BlobType><DataType>datInteger</DataType><Description></Description><GeneratorName></GeneratorName><Name>ID_CLIENTE</Name><ParamType>daptInput</ParamType><Size>0</Size><Value></Value></Item14><Item15><AsString></AsString><BlobType>dabtUnknown</BlobType><DataType>datString</DataType><Description></Description><GeneratorName></GeneratorN
|
||
|
|
SET
|
||
|
|
USUARIO = :USUARIO,
|
||
|
|
OBSERVACIONES = :OBSERVACIONES,
|
||
|
|
REFERENCIA = :REFERENCIA,
|
||
|
|
ID = :ID,
|
||
|
|
ID_EMPRESA = :ID_EMPRESA,
|
||
|
|
SITUACION = :SITUACION,
|
||
|
|
FECHA_ALTA = :FECHA_ALTA,
|
||
|
|
FECHA_MODIFICACION = :FECHA_MODIFICACION,
|
||
|
|
FECHA_PEDIDO = :FECHA_PEDIDO,
|
||
|
|
FECHA_CONFIRMACION = :FECHA_CONFIRMACION,
|
||
|
|
FECHA_ENTREGA = :FECHA_ENTREGA,
|
||
|
|
INCIDENCIAS = :INCIDENCIAS,
|
||
|
|
IMPORTE_TOTAL = :IMPORTE_TOTAL,
|
||
|
|
INCIDENCIAS_ACTIVAS = :INCIDENCIAS_ACTIVAS,
|
||
|
|
ID_CLIENTE = :ID_CLIENTE,
|
||
|
|
CALLE = :CALLE,
|
||
|
|
CODIGO_POSTAL = :CODIGO_POSTAL,
|
||
|
|
POBLACION = :POBLACION,
|
||
|
|
PROVINCIA = :PROVINCIA,
|
||
|
|
PERSONA_CONTACTO = :PERSONA_CONTACTO,
|
||
|
|
TELEFONO = :TELEFONO
|
||
|
|
WHERE
|
||
|
|
(ID = :OLD_ID)</SQL><StatementType>stSQL</StatementType><TargetTable>PEDIDOS_CLIENTE</TargetTable></Item0></Statements></Item2></Commands><ConnectionManager Type="TDAConnectionManager" IsObject="true" ByRef="true" RefName="ConnectionManager" Owner="dmServer"/><DataDictionary Type="TDADataDictionary" IsObject="true" IsNull="true"/><Datasets Type="TDADatasetCollection" IsObject="true" IsCollection="true" Count="3" ItemClass="TDADataset"><Item0><BusinessClassID></BusinessClassID><BusinessRulesClient Type="TDAClientBusinessRuleScript" IsObject="true"><CompileOnServer>True</CompileOnServer><RunOnClientAndServer>True</RunOnClientAndServer><Script></Script><ScriptLanguage>rslPascalScript</ScriptLanguage></BusinessRulesClient><BusinessRulesServer Type="TDABusinessRuleScript" IsObject="true"><Script></Script><ScriptLanguage>rslPascalScript</ScriptLanguage></BusinessRulesServer><Description></Description><Fields Type="TDAFieldCollection" IsObject="true" IsCollection="true" Count="22" ItemClass="TDAField"><Item0><Alignment>taLeftJustify</Alignment><BlobType>dabtUnknown</BlobType><BusinessRulesID></BusinessRulesID><Calculated>False</Calculated><CustomAttributes Type="TStrings" IsObject="true"/><DataType>datInteger</DataType><DefaultValue></DefaultValue><Description></Description><DictionaryEntry>PedidosCliente_ID</DictionaryEntry><DisplayFormat></DisplayFormat><DisplayLabel>ID</DisplayLabel><DisplayWidth>0</DisplayWidth><EditFormat></EditFormat><EditMask></EditMask><GeneratorName></GeneratorName><InPrimaryKey>True</InPrimaryKey><KeyFields></KeyFields><LogChanges>True</LogChanges><Lookup>False</Lookup><LookupCache>False</LookupCache><LookupKeyFields></LookupKeyFields><LookupResultField></LookupResultField><LookupSource Type="TDataSource" IsObject="true" IsNull="true"/><Name>ID</Name><ReadOnly>False</ReadOnly><RegExpression></RegExpression><Required>True</Required><ServerAutoRefresh>False</ServerAutoRefresh><Size>0</Size><Visible>True</Visible></Item0><Item1><Alignment>taLeftJustify</Alignment><BlobType>dabtUnknown</BlobType><BusinessRulesID></BusinessRulesID><Calculated>False</Calculated><CustomAttributes Type="TStrings" IsObject="true"/><DataType>datInteger</DataType><DefaultValue></DefaultValue><Description></Description><DictionaryEntry>PedidosCliente_ID_EMPRESA</DictionaryEntry><DisplayFormat></DisplayFormat><DisplayLabel>ID_EMPRESA</DisplayLabel><DisplayWidth>0</DisplayWidth><EditFormat></EditFormat><EditMask></EditMask><GeneratorName></GeneratorName><InPrimaryKey>False</InPrimaryKey><KeyFields></KeyFields><LogChanges>True</LogChanges><Lookup>False</Lookup><LookupCache>False</LookupCache><LookupKeyFields></LookupKeyFields><LookupResultField></LookupResultField><LookupSource Type="TDataSource" IsObject="true" IsNull="true"/><Name>ID_EMPRESA</Name><ReadOnly>False</ReadOnly><RegExpression></RegExpression><Required>False</Required><ServerAutoRefresh>False</ServerAutoRefresh><Size>0</Size><Visible>True</Visible></Item1><Item2><Alignment>taLeftJustify</Alignment><BlobType>dabtUnknown</BlobType><BusinessRulesID></BusinessRulesID><Calculated>False</Calculated><CustomAttributes Type="TStrings" IsObject="true"/><DataType>datInteger</DataType><DefaultValue></DefaultValue><Description></Description><DictionaryEntry>PedidosCliente_ID_CLIENTE</DictionaryEntry><DisplayFormat></DisplayFormat><DisplayLabel>ID_CLIENTE</DisplayLabel><DisplayWidth>0</DisplayWidth><EditFormat></EditFormat><EditMask></EditMask><GeneratorName></GeneratorName><InPrimaryKey>False</InPrimaryKey><KeyFields></KeyFields><LogChanges>True</LogChanges><Lookup>False</Lookup><LookupCache>False</LookupCache><LookupKeyFields></LookupKeyFields><LookupResultField></LookupResultField><LookupSource Type="TDataSource" IsObject="true" IsNull="true"/><Name>ID_CLIENTE</Name><ReadOnly>False</ReadOnly><RegExpression></RegExpression><Required>False</Required><ServerAutoRefresh>False</ServerAutoRefresh><Size>0</Size><Visible>True</Visible></Item2><Item3><Alignment>taLeftJustify</Alignment><BlobType>dabtUnknown</BlobType><BusinessRulesID></BusinessRulesID><Calculated>False</Calculated><Cu
|
||
|
|
PEDIDOS_CLIENTE.ID, PEDIDOS_CLIENTE.ID_EMPRESA, PEDIDOS_CLIENTE.ID_CLIENTE,
|
||
|
|
PEDIDOS_CLIENTE.REFERENCIA, PEDIDOS_CLIENTE.FECHA_PEDIDO, PEDIDOS_CLIENTE.FECHA_CONFIRMACION,
|
||
|
|
PEDIDOS_CLIENTE.FECHA_ENTREGA, PEDIDOS_CLIENTE.SITUACION, PEDIDOS_CLIENTE.CALLE,
|
||
|
|
PEDIDOS_CLIENTE.CODIGO_POSTAL, PEDIDOS_CLIENTE.POBLACION, PEDIDOS_CLIENTE.PROVINCIA,
|
||
|
|
PEDIDOS_CLIENTE.PERSONA_CONTACTO, PEDIDOS_CLIENTE.TELEFONO, PEDIDOS_CLIENTE.OBSERVACIONES,
|
||
|
|
PEDIDOS_CLIENTE.IMPORTE_TOTAL, PEDIDOS_CLIENTE.INCIDENCIAS, PEDIDOS_CLIENTE.INCIDENCIAS_ACTIVAS,
|
||
|
|
PEDIDOS_CLIENTE.FECHA_ALTA, PEDIDOS_CLIENTE.FECHA_MODIFICACION, PEDIDOS_CLIENTE.USUARIO,
|
||
|
|
CONTACTOS.NOMBRE
|
||
|
|
|
||
|
|
FROM PEDIDOS_CLIENTE
|
||
|
|
LEFT JOIN CONTACTOS ON PEDIDOS_CLIENTE.ID_CLIENTE = CONTACTOS.ID</SQL><StatementType>stSQL</StatementType><TargetTable>PEDIDOS_CLIENTE</TargetTable></Item0></Statements></Item0><Item1><BusinessClassID></BusinessClassID><BusinessRulesClient Type="TDAClientBusinessRuleScript" IsObject="true"><CompileOnServer>True</CompileOnServer><RunOnClientAndServer>True</RunOnClientAndServer><Script></Script><ScriptLanguage>rslPascalScript</ScriptLanguage></BusinessRulesClient><BusinessRulesServer Type="TDABusinessRuleScript" IsObject="true"><Script></Script><ScriptLanguage>rslPascalScript</ScriptLanguage></BusinessRulesServer><Description></Description><Fields Type="TDAFieldCollection" IsObject="true" IsCollection="true" Count="11" ItemClass="TDAField"><Item0><Alignment>taLeftJustify</Alignment><BlobType>dabtUnknown</BlobType><BusinessRulesID></BusinessRulesID><Calculated>False</Calculated><CustomAttributes Type="TStrings" IsObject="true"/><DataType>datInteger</DataType><DefaultValue></DefaultValue><Description></Description><DictionaryEntry>PedidosCliente_Detalles_ID</DictionaryEntry><DisplayFormat></DisplayFormat><DisplayLabel>ID</DisplayLabel><DisplayWidth>0</DisplayWidth><EditFormat></EditFormat><EditMask></EditMask><GeneratorName></GeneratorName><InPrimaryKey>True</InPrimaryKey><KeyFields></KeyFields><LogChanges>True</LogChanges><Lookup>False</Lookup><LookupCache>False</LookupCache><LookupKeyFields></LookupKeyFields><LookupResultField></LookupResultField><LookupSource Type="TDataSource" IsObject="true" IsNull="true"/><Name>ID</Name><ReadOnly>False</ReadOnly><RegExpression></RegExpression><Required>True</Required><ServerAutoRefresh>False</ServerAutoRefresh><Size>0</Size><Visible>True</Visible></Item0><Item1><Alignment>taLeftJustify</Alignment><BlobType>dabtUnknown</BlobType><BusinessRulesID></BusinessRulesID><Calculated>False</Calculated><CustomAttributes Type="TStrings" IsObject="true"/><DataType>datInteger</DataType><DefaultValue></DefaultValue><Description></Description><DictionaryEntry>PedidosCliente_Detalles_ID_PEDIDO</DictionaryEntry><DisplayFormat></DisplayFormat><DisplayLabel>ID_PEDIDO</DisplayLabel><DisplayWidth>0</DisplayWidth><EditFormat></EditFormat><EditMask></EditMask><GeneratorName></GeneratorName><InPrimaryKey>False</InPrimaryKey><KeyFields></KeyFields><LogChanges>True</LogChanges><Lookup>False</Lookup><LookupCache>False</LookupCache><LookupKeyFields></LookupKeyFields><LookupResultField></LookupResultField><LookupSource Type="TDataSource" IsObject="true" IsNull="true"/><Name>ID_PEDIDO</Name><ReadOnly>False</ReadOnly><RegExpression></RegExpression><Required>False</Required><ServerAutoRefresh>False</ServerAutoRefresh><Size>0</Size><Visible>True</Visible></Item1><Item2><Alignment>taLeftJustify</Alignment><BlobType>dabtUnknown</BlobType><BusinessRulesID></BusinessRulesID><Calculated>False</Calculated><CustomAttributes Type="TStrings" IsObject="true"/><DataType>datInteger</DataType><DefaultValue></DefaultValue><Description></Description><DictionaryEntry>POSICIONCONCEPTO</DictionaryEntry><DisplayFormat></DisplayFormat><DisplayLabel>POSICION</DisplayLabel><DisplayWidth>0</DisplayWidth><EditFormat></EditFormat><EditMask></EditMask><GeneratorName></GeneratorName><InPrimaryKey>False</InPrimaryKey><KeyFields></KeyFields><LogChanges>True</LogChanges><Lookup>False</Lookup><LookupCache>False</LookupCache><LookupKeyFields></LookupKeyFields><LookupResultField></LookupResultField><LookupSource Type="TDataSource" IsObject="true" IsNull="true"/><Name>POSICION</Name><ReadOnly>False</ReadOnly><RegExpression></RegExpression><Required>False</Required><ServerAutoRefresh>False</ServerAutoRefresh><Size>0</Size><Visible>True</Visible></Item2><Item3><Alignment>taLeftJustify</Alignment><BlobType>dabtUnknown</BlobType><BusinessRulesID></BusinessRulesID><Calculated>False</Calculated><CustomAttributes Type="TStrings" IsObject="true"/><DataType>datString</DataType><DefaultValue></DefaultValue><Description></Description><DictionaryEntry>PedidosCliente_Detalles_TIPO_DETALLE</DictionaryEntry><DisplayFormat></DisplayFormat><DisplayLabel>TIPO_DETALLE</
|
||
|
|
ID, ID_PEDIDO, POSICION, TIPO_DETALLE, REFERENCIA, ID_ARTICULO, CONCEPTO,
|
||
|
|
CANTIDAD, IMPORTE_UNIDAD, IMPORTE_TOTAL, VISIBLE
|
||
|
|
FROM PEDIDOS_CLIENTE_DETALLES
|
||
|
|
WHERE ID_PEDIDO = :ID_PEDIDO
|
||
|
|
ORDER BY POSICION;</SQL><StatementType>stSQL</StatementType><TargetTable>PEDIDOS_CLIENTE_DETALLES</TargetTable></Item0></Statements></Item1><Item2><BusinessClassID></BusinessClassID><BusinessRulesClient Type="TDAClientBusinessRuleScript" IsObject="true"><CompileOnServer>True</CompileOnServer><RunOnClientAndServer>True</RunOnClientAndServer><Script></Script><ScriptLanguage>rslPascalScript</ScriptLanguage></BusinessRulesClient><BusinessRulesServer Type="TDABusinessRuleScript" IsObject="true"><Script></Script><ScriptLanguage>rslPascalScript</ScriptLanguage></BusinessRulesServer><Description></Description><Fields Type="TDAFieldCollection" IsObject="true" IsCollection="true" Count="22" ItemClass="TDAField"><Item0><Alignment>taLeftJustify</Alignment><BlobType>dabtUnknown</BlobType><BusinessRulesID></BusinessRulesID><Calculated>False</Calculated><CustomAttributes Type="TStrings" IsObject="true"/><DataType>datInteger</DataType><DefaultValue></DefaultValue><Description></Description><DictionaryEntry></DictionaryEntry><DisplayFormat></DisplayFormat><DisplayLabel>ID</DisplayLabel><DisplayWidth>0</DisplayWidth><EditFormat></EditFormat><EditMask></EditMask><GeneratorName></GeneratorName><InPrimaryKey>True</InPrimaryKey><KeyFields></KeyFields><LogChanges>True</LogChanges><Lookup>False</Lookup><LookupCache>False</LookupCache><LookupKeyFields></LookupKeyFields><LookupResultField></LookupResultField><LookupSource Type="TDataSource" IsObject="true" IsNull="true"/><Name>ID</Name><ReadOnly>False</ReadOnly><RegExpression></RegExpression><Required>True</Required><ServerAutoRefresh>False</ServerAutoRefresh><Size>0</Size><Visible>True</Visible></Item0><Item1><Alignment>taLeftJustify</Alignment><BlobType>dabtUnknown</BlobType><BusinessRulesID></BusinessRulesID><Calculated>False</Calculated><CustomAttributes Type="TStrings" IsObject="true"/><DataType>datInteger</DataType><DefaultValue></DefaultValue><Description></Description><DictionaryEntry></DictionaryEntry><DisplayFormat></DisplayFormat><DisplayLabel>ID_EMPRESA</DisplayLabel><DisplayWidth>0</DisplayWidth><EditFormat></EditFormat><EditMask></EditMask><GeneratorName></GeneratorName><InPrimaryKey>False</InPrimaryKey><KeyFields></KeyFields><LogChanges>True</LogChanges><Lookup>False</Lookup><LookupCache>False</LookupCache><LookupKeyFields></LookupKeyFields><LookupResultField></LookupResultField><LookupSource Type="TDataSource" IsObject="true" IsNull="true"/><Name>ID_EMPRESA</Name><ReadOnly>False</ReadOnly><RegExpression></RegExpression><Required>False</Required><ServerAutoRefresh>False</ServerAutoRefresh><Size>0</Size><Visible>True</Visible></Item1><Item2><Alignment>taLeftJustify</Alignment><BlobType>dabtUnknown</BlobType><BusinessRulesID></BusinessRulesID><Calculated>False</Calculated><CustomAttributes Type="TStrings" IsObject="true"/><DataType>datInteger</DataType><DefaultValue></DefaultValue><Description></Description><DictionaryEntry></DictionaryEntry><DisplayFormat></DisplayFormat><DisplayLabel>ID_CLIENTE</DisplayLabel><DisplayWidth>0</DisplayWidth><EditFormat></EditFormat><EditMask></EditMask><GeneratorName></GeneratorName><InPrimaryKey>False</InPrimaryKey><KeyFields></KeyFields><LogChanges>True</LogChanges><Lookup>False</Lookup><LookupCache>False</LookupCache><LookupKeyFields></LookupKeyFields><LookupResultField></LookupResultField><LookupSource Type="TDataSource" IsObject="true" IsNull="true"/><Name>ID_CLIENTE</Name><ReadOnly>False</ReadOnly><RegExpression></RegExpression><Required>False</Required><ServerAutoRefresh>False</ServerAutoRefresh><Size>0</Size><Visible>True</Visible></Item2><Item3><Alignment>taLeftJustify</Alignment><BlobType>dabtUnknown</BlobType><BusinessRulesID></BusinessRulesID><Calculated>False</Calculated><CustomAttributes Type="TStrings" IsObject="true"/><DataType>datString</DataType><DefaultValue></DefaultValue><Description></Description><DictionaryEntry>USUARIO</DictionaryEntry><DisplayFormat></DisplayFormat><DisplayLabel>USUARIO</DisplayLabel><DisplayWidth>0</DisplayWidth><EditFormat></EditFormat><EditMask></EditMask><GeneratorName></GeneratorName><InPrimaryKey>False<
|
||
|
|
PEDIDOS_CLIENTE.ID, PEDIDOS_CLIENTE.ID_EMPRESA, PEDIDOS_CLIENTE.ID_CLIENTE,
|
||
|
|
PEDIDOS_CLIENTE.REFERENCIA, PEDIDOS_CLIENTE.FECHA_PEDIDO, PEDIDOS_CLIENTE.FECHA_CONFIRMACION,
|
||
|
|
PEDIDOS_CLIENTE.FECHA_ENTREGA, PEDIDOS_CLIENTE.SITUACION, PEDIDOS_CLIENTE.CALLE,
|
||
|
|
PEDIDOS_CLIENTE.CODIGO_POSTAL, PEDIDOS_CLIENTE.POBLACION, PEDIDOS_CLIENTE.PROVINCIA,
|
||
|
|
PEDIDOS_CLIENTE.PERSONA_CONTACTO, PEDIDOS_CLIENTE.TELEFONO, PEDIDOS_CLIENTE.OBSERVACIONES,
|
||
|
|
PEDIDOS_CLIENTE.IMPORTE_TOTAL, PEDIDOS_CLIENTE.INCIDENCIAS, PEDIDOS_CLIENTE.INCIDENCIAS_ACTIVAS,
|
||
|
|
PEDIDOS_CLIENTE.FECHA_ALTA, PEDIDOS_CLIENTE.FECHA_MODIFICACION, PEDIDOS_CLIENTE.USUARIO,
|
||
|
|
CONTACTOS.NOMBRE
|
||
|
|
|
||
|
|
FROM PEDIDOS_CLIENTE
|
||
|
|
LEFT JOIN CONTACTOS ON PEDIDOS_CLIENTE.ID_CLIENTE = CONTACTOS.ID
|
||
|
|
WHERE PEDIDOS_CLIENTE.ID = :ID</SQL><StatementType>stSQL</StatementType><TargetTable>PEDIDOS_CLIENTE</TargetTable></Item0></Statements></Item2></Datasets><Diagrams Type="TDADiagrams" IsObject="true" IsNull="true"/><RelationShips Type="TDADatasetRelationshipCollection" IsObject="true" IsCollection="true" Count="0" ItemClass="TDADatasetRelationship"/><Tag>0</Tag><UpdateRules Type="TDAUpdateRuleCollection" IsObject="true" IsCollection="true" Count="6" ItemClass="TDAUpdateRule"><Item0><DatasetName>FacturasCliente</DatasetName><DoDelete>False</DoDelete><DoInsert>True</DoInsert><DoUpdate>False</DoUpdate><FailureBehaviour>fbRaiseException</FailureBehaviour><Name>Insert FacturasCliente</Name></Item0><Item1><DatasetName>FacturasCliente</DatasetName><DoDelete>False</DoDelete><DoInsert>False</DoInsert><DoUpdate>True</DoUpdate><FailureBehaviour>fbRaiseException</FailureBehaviour><Name>Update FacturasCliente</Name></Item1><Item2><DatasetName>DetallesFacturasCliente</DatasetName><DoDelete>True</DoDelete><DoInsert>False</DoInsert><DoUpdate>False</DoUpdate><FailureBehaviour>fbRaiseException</FailureBehaviour><Name>Delete DetallesFacturasCliente</Name></Item2><Item3><DatasetName>DetallesFacturasCliente</DatasetName><DoDelete>False</DoDelete><DoInsert>True</DoInsert><DoUpdate>False</DoUpdate><FailureBehaviour>fbRaiseException</FailureBehaviour><Name>Insert DetallesFacturasCliente</Name></Item3><Item4><DatasetName>DetallesFacturasCliente</DatasetName><DoDelete>False</DoDelete><DoInsert>False</DoInsert><DoUpdate>True</DoUpdate><FailureBehaviour>fbRaiseException</FailureBehaviour><Name>Update DetallesFacturasCliente</Name></Item4><Item5><DatasetName>FacturasCliente</DatasetName><DoDelete>True</DoDelete><DoInsert>False</DoInsert><DoUpdate>False</DoUpdate><FailureBehaviour>fbRaiseException</FailureBehaviour><Name>Delete FacturasCliente</Name></Item5></UpdateRules></TDASchema>
|