103 bookmark fixes
This commit is contained in:
@@ -70,6 +70,7 @@
|
||||
<m:field>p.svc_operation_cfs_param</m:field>
|
||||
<m:field>p.label</m:field>
|
||||
<m:field>p.data_type</m:field>
|
||||
<m:field>null as data_descriptor</m:field>
|
||||
<m:field formatter=#function(x){return listToArray(x);}#>p.value_list</m:field>
|
||||
<m:field <!--- formatter=#function(x){return listToArray(generateValueList(x));}# --->>p.func</m:field><!--- *** отчаявшись сделать красиво --->
|
||||
<m:field>p.ref_svc_id</m:field>
|
||||
@@ -116,6 +117,47 @@
|
||||
<cfset local.qCfsParam.default_value=local.qCfsParam.value_list/><!--- *** не очень красиво перетирать query--->
|
||||
</cfif>
|
||||
</cfif>
|
||||
|
||||
|
||||
<cfif data_type EQ "map">
|
||||
<!--- аналогично instance_operation.cfm, только без полей инстанса, только шаблон --->
|
||||
<cfquery name="local.qSubparam">
|
||||
select
|
||||
sp.svc_operation_cfs_param_id
|
||||
,sp.svc_operation_cfs_subparam_id
|
||||
,sp.svc_operation_cfs_subparam
|
||||
,sp.label
|
||||
,sp.data_type
|
||||
,sp.value_list
|
||||
,sp.is_required
|
||||
,sp.descr
|
||||
,sp.man
|
||||
,sp.default_value
|
||||
,sp.minlength
|
||||
,sp.maxlength
|
||||
,sp.regex
|
||||
,sp.sort
|
||||
,sp.is_sensitive
|
||||
from svc_operation_cfs_subparam sp
|
||||
where sp.svc_operation_cfs_param_id=<cfqueryparam cfsqltype="cf_sql_integer" value="#svc_operation_cfs_param_id#"/>
|
||||
order by sp.sort
|
||||
</cfquery>
|
||||
|
||||
<cfset var mapDescriptor=structNew("linked")/>
|
||||
|
||||
<cfloop query="local.qSubparam">
|
||||
<cfset structInsert(mapDescriptor, local.qSubparam.svc_operation_cfs_subparam,
|
||||
{
|
||||
"man":"#local.qSubparam.man#",
|
||||
"isSensitive":#request.castToBool(local.qSubparam.is_sensitive)#
|
||||
}, true
|
||||
)
|
||||
/>
|
||||
</cfloop>
|
||||
|
||||
<cfset local.qCfsParam.data_descriptor = mapDescriptor/>
|
||||
</cfif><!---/map --->
|
||||
|
||||
</cfloop>
|
||||
<cfset queryDeleteColumn(local.qCfsParam, "func")/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user