spec/abstract_service_complementary_del.cfm
2025-06-02 16:16:51 +03:00

73 lines
2.8 KiB
Plaintext

<cfsilent>
<cfimport prefix="m" taglib="lib"/>
<cfimport prefix="d" taglib="lib/data"/>
<cfimport prefix="layout" taglib="layout"/>
</cfsilent><m:silent silent="No">
<m:prepare_detail entity="abstract_service_complementary" pageInfoOut="pageInfo"/>
<cfparam name="abstract_service_complementary_id" type="integer"/>/***use case: составное имя неоднозначно читается*/
<d:del
entity="#pageInfo.entity#"
confirmMessage="Удалить дополнительную услугу?"
denyMessage="Удаление данной дополнительной услуги невозможно (ситуация не предусмотрена)."
accessObj="#pageInfo.entity#"
status="status"
output="markup">
<d:del_condition field="abstract_service_complementary_id" value="#abstract_service_complementary_id#" cfsqltype="cf_sql_integer"/>
</d:del>
<m:dispatch_detail
usePRG="Yes"
pageInfo=#pageInfo#
id="#abstract_service_complementary_id#"
status=#status#
trackOut="tr"
idAttributesOut="id"
/>
<cfquery name="qDecoration" datasource="#request.DS#">
select
a.abstract_service
,c.abstract_service as complementary_service
,a.abstract_service_id
,c.abstract_service_id as complementary_id
,a.code
,c.code as complementary_code
,g.area_code
,gc.area_code as complementary_area_code
from abstract_service_complementary cs
left outer join abstract_service a on (cs.abstract_service_id=a.abstract_service_id)
left outer join area g on (a.area_id=g.area_id)
left outer join abstract_service c on (cs.complementary_id=c.abstract_service_id)
left outer join area gc on (c.area_id=gc.area_id)
where cs.abstract_service_complementary_id=<cfqueryparam cfsqltype="cf_sql_integer" value="#abstract_service_complementary_id#" null=#!isNumeric(d.abstract_service_complementary_id)#/>
</cfquery>
</m:silent><!--- ----------------------------------------------------------------------------
---------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------
---><layout:page section="header" pageInfo=#pageInfo#>
<layout:attribute name="title">
<cfoutput>
Удаление дополнительной абстрактной услуги
#qDecoration.complementary_service#
#request.skuCode(qDecoration.complementary_area_code, qDecoration.complementary_code)#
[#abstract_service_complementary_id#]
для абстрактной услуги
#qDecoration.complementary_service#
#request.skuCode(qDecoration.area_code, qDecoration.code)#
</cfoutput>
</layout:attribute>
<layout:attribute name="controls">&nbsp;</layout:attribute>
</layout:page>
<cfoutput>#markup#</cfoutput>
<layout:page section="footer"/>