101 lines
3.5 KiB
Plaintext
101 lines
3.5 KiB
Plaintext
<!---<cfimport prefix="m" taglib="lib"/>
|
|
<cfimport prefix="m" taglib="lib/bean"/>
|
|
<cfimport prefix="layout" taglib="layout"/>
|
|
|
|
<cfparam name="entity" type="string"/>
|
|
<cfparam name="doc_id" type="integer"/>
|
|
<cfmodule template="mod/attach_support.cfm" entity="#entity#"/>
|
|
|
|
<m:track
|
|
thisUrl="#request.thisPage#?entity=#entity#&doc_id=#doc_id#"
|
|
defaultBackUrl="#entity#_ls.cfm"/>
|
|
|
|
<m:del
|
|
entity="#entity#"
|
|
keyName="doc_id,entity"
|
|
checkQuery="select 0 as chk"
|
|
displayQuery="select m.#entity#_doc as doc_title, m.contenttype, m.fname
|
|
from #entity#_doc m
|
|
where m.#entity#_doc_id='#doc_id#'"
|
|
deleteQuery="delete from #entity#_doc where #entity#_doc_id='#doc_id#'"
|
|
displayMessage="Удаление вложения <b>##doc_title##</b> ##fname## (##contenttype##)"
|
|
confirmMessage="Удалить вложение?"
|
|
denyMessage="Удаление вложения невозможно (ситуация не предусмотрена)"
|
|
backURL="#tr.backUrl#"
|
|
accessObj=""
|
|
track="#tr.self#"/>
|
|
|
|
<layout:page section="extension" closeForm="Yes"/>
|
|
<layout:page section="footer"/>
|
|
|
|
|
|
--->
|
|
<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_doc" pageInfoOut="pageInfo"/>
|
|
|
|
<cfparam name="entity" type="string"/>
|
|
<cfparam name="doc_id" type="integer"/>
|
|
|
|
<cfmodule template="mod/attach_support.cfm" entity="#entity#"/><!---*** this check prevents sql injection--->
|
|
|
|
<!---Внимание, "entity" используется в 2 смыслах!--->
|
|
<d:del
|
|
entity="#pageInfo.entity#"
|
|
confirmMessage="Удалить документ?"
|
|
denyMessage="Удаление данного документа невозможно (ситуация не предусмотрена)."
|
|
accessObj="#pageInfo.entity#"
|
|
status="status"
|
|
output="markup">
|
|
<!---*** не работает: queryString="entity=#entity#&doc_id=#doc_id#"--->
|
|
<d:del_condition field="doc_id" expression="#entity#_doc_id" value="#doc_id#" cfsqltype="cf_sql_integer"/>
|
|
</d:del>
|
|
|
|
<m:dispatch_detail
|
|
usePRG="No"
|
|
pageInfo=#pageInfo#
|
|
id="#doc_id#"
|
|
status=#status#
|
|
trackOut="tr"
|
|
idAttributesOut="id"
|
|
/>
|
|
|
|
<!--- decoration --->
|
|
<!---*** sql injection id prevented by attach_support check--->
|
|
<cfquery name="qDecoration" datasource="#request.DS#">
|
|
select d.#entity#_doc as doc_name, d.fname, a.abstract_service, a.code
|
|
from #entity#_doc d
|
|
join #entity# a on (d.abstract_service_id=a.abstract_service_id)
|
|
where d.#entity#_doc_id=<cfqueryparam cfsqltype="cf_sql_integer" value="#doc_id#" null=#!isValid("integer", doc_id)#/>
|
|
</cfquery>
|
|
|
|
|
|
</m:silent><!--- ----------------------------------------------------------------------------
|
|
---------------------------------------------------------------------------------------------
|
|
---------------------------------------------------------------------------------------------
|
|
---><layout:page section="header" pageInfo=#pageInfo#>
|
|
<layout:attribute name="title">
|
|
<cfoutput>
|
|
Удаление документа
|
|
<b>#qDecoration.doc_name#(#qDecoration.fname#)</b> [#doc_id#]
|
|
абстрактной услуги
|
|
<b>
|
|
#qDecoration.code#
|
|
#qDecoration.abstract_service#
|
|
</b>
|
|
|
|
</cfoutput>
|
|
</layout:attribute>
|
|
<layout:attribute name="controls"> </layout:attribute>
|
|
</layout:page>
|
|
|
|
<!---<cfdump var=#qDecoration#/>--->
|
|
|
|
<cfoutput><input type="hidden" name="entity" value="#entity#"/></cfoutput>
|
|
<cfoutput>#markup#</cfoutput>
|
|
|
|
<layout:page section="footer"/> |