70 lines
3.1 KiB
Plaintext
70 lines
3.1 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="service_price" key="service_price_id" pageInfoOut="pageInfo"/>
|
||
<!--- <cfparam name="service_price_id" type="integer"/> --->
|
||
<!--- на самом деле удаление цены запрещено, если по ней что-то продано. Поскольку продажи осуществляются вне системы управления каталогом, признаком запрета удаления может быть статус цены Активен (в котором он может использоваться для продаж) --->
|
||
<d:del
|
||
entity="#pageInfo.entity#"
|
||
confirmMessage="Удалить цену?"
|
||
denyMessage="Удаление данной цены невозможно (ситуация не предусмотрена)."
|
||
accessObj="#pageInfo.entity#"
|
||
status="status"
|
||
output="markup">
|
||
|
||
<d:del_condition field="service_price_id" value="#service_price_id#" cfsqltype="cf_sql_other"/> <!--- *** Postgresql dependent --->
|
||
</d:del>
|
||
|
||
<m:dispatch_detail
|
||
usePRG="Yes"
|
||
pageInfo=#pageInfo#
|
||
id="#service_price_id#"
|
||
status=#status#
|
||
trackOut="tr"
|
||
idAttributesOut="id"
|
||
/>
|
||
|
||
<!--- decoration --->
|
||
<cfquery name="qDecoration" datasource="#request.DS#">
|
||
select t.service_price_id, t.price, t.cost, t.min_price, t.status, t.dt_from, t.dt_to
|
||
,g.area_code, a.code, a.abstract_service
|
||
,m.modifier, m.code as modifier_code, mc.modifier_class
|
||
from service_price t
|
||
left outer join service s on (t.service_id=s.service_id)
|
||
left outer join abstract_service a on (s.abstract_service_id=a.abstract_service_id)
|
||
left outer join area g on (a.area_id=g.area_id)
|
||
left outer join modifier m on (s.modifier_id=m.modifier_id)
|
||
left outer join modifier_class mc on (m.modifier_class_id=mc.modifier_class_id)
|
||
<!--- where s.service_price_id=<cfqueryparam cfsqltype="cf_sql_integer" value="#service_price_id#" null=#!isValid("integer", service_price_id)#/> --->
|
||
where t.service_price_id=<cfqueryparam cfsqltype="cf_sql_other" value="#service_price_id#" null=#!isValid("integer", service_price_id)#/>
|
||
</cfquery>
|
||
|
||
|
||
|
||
</m:silent><!--- ----------------------------------------------------------------------------
|
||
---------------------------------------------------------------------------------------------
|
||
---------------------------------------------------------------------------------------------
|
||
---><layout:page section="header" pageInfo=#pageInfo#>
|
||
<layout:attribute name="title">
|
||
<cfoutput query="qDecoration">
|
||
Удаление цены услуги
|
||
#request.skuCode(area_code,code,modifier_code)#
|
||
#abstract_service#
|
||
#modifier#
|
||
<cfif len(dt_from)>с #dateFormat(dt_from,"DD.MM.YYYY")#</cfif>
|
||
<cfif len(dt_to)>по #dateFormat(dt_to,"DD.MM.YYYY")#</cfif>
|
||
#price#
|
||
[#service_price_id#]
|
||
</cfoutput>
|
||
</layout:attribute>
|
||
<layout:attribute name="controls"> </layout:attribute>
|
||
</layout:page>
|
||
|
||
<!---<cfdump var=#qDecoration#/>--->
|
||
|
||
<cfoutput>#markup#</cfoutput>
|
||
|
||
<layout:page section="footer"/> |