104 lines
3.4 KiB
Plaintext
104 lines
3.4 KiB
Plaintext
<cfsilent>
|
||
<cfimport prefix="m" taglib="lib"/>
|
||
<cfimport prefix="c" taglib="lib/controls"/>
|
||
<cfimport prefix="d" taglib="lib/data"/>
|
||
<cfimport prefix="layout" taglib="layout"/>
|
||
</cfsilent>
|
||
|
||
<m:prepare_ls entity="crm2cloud" accessObject="" pageInfoOut="pageInfo" trackOut="tr"/>
|
||
|
||
|
||
<cfset this.nullSupport = true/>
|
||
|
||
<cfquery name="qRead" datasource="billing-vc" cachedWithin=#createTimeSpan(0, 0, 25, 0)#>
|
||
select
|
||
<d:field_set titleMapOut="titleMap" lengthOut="fieldCount">
|
||
<d:field>obj_uuid::text as obj_uuid</d:field>
|
||
<d:field>obj_id</d:field>
|
||
<d:field>client_id as WZ</d:field>
|
||
<d:field>vcd</d:field>
|
||
<d:field>org</d:field>
|
||
<d:field>org_vdc</d:field>
|
||
<d:field>vcenter</d:field>
|
||
<d:field>gpu::text as gpu</d:field>
|
||
<d:field cfSqlType="CF_SQL_TIMESTAMP">dt_load</d:field>
|
||
<d:field cfSqlType="CF_SQL_TIMESTAMP">dt_load_ts</d:field>
|
||
<d:field>org_status</d:field>
|
||
<d:field>cluster as clus</d:field>
|
||
<d:field cfSqlType="CF_SQL_BOOLEAN" formatter=#request.castToBoolSimple#>is_template</d:field>
|
||
<d:field cfSqlType="CF_SQL_BOOLEAN" formatter=#request.castToBoolSimple#>(1=1) as t1</d:field>
|
||
<d:field cfSqlType="CF_SQL_BOOLEAN" formatter=#request.castToBoolSimple#>(1=0) as t2</d:field>
|
||
<d:field cfSqlType="CF_SQL_BOOLEAN" formatter=#request.castToBoolSimple#>(1=null) as t3</d:field>
|
||
</d:field_set>
|
||
from gpu.vm
|
||
order by client_id
|
||
</cfquery>
|
||
|
||
<!--- <cfdump var=#qRead# abort=true/> --->
|
||
|
||
<cfif isDefined("output_xls")>
|
||
<layout:xml qRead=#qRead# titleMap=#titleMap# filename="#pageInfo.entity#.xml"/>
|
||
<cfabort/>
|
||
</cfif><cfif isDefined("output_json")>
|
||
<layout:json qRead=#qRead# titleMap=#titleMap# filename="#pageInfo.entity#.json"/>
|
||
<cfabort/>
|
||
</cfif><!---
|
||
---><layout:page section="header" pageInfo=#pageInfo#>
|
||
|
||
<layout:attribute name="title">
|
||
<cfoutput><b>VM с GPU</b></cfoutput>
|
||
</layout:attribute>
|
||
<layout:attribute name="controls">
|
||
<!---skip filter link, filter is not implemented--->
|
||
<!---<layout:language_switch/>--->
|
||
</layout:attribute>
|
||
</layout:page>
|
||
|
||
<!--- <cfdump var=#qReconciliation# abort=true/> --->
|
||
|
||
<cfoutput>
|
||
|
||
<br/>
|
||
<a href="#request.thisPage#?output_xls" title="экспорт в Excel" style="margin-left:.5em; height:100%;" target="_blank"><img src="img/xls.gif" style="vertical-align:text-bottom;"/></a>
|
||
|
||
<a href="#request.thisPage#?output_json" title="экспорт в json" style="margin-left:.5em; height:100%;" target="_blank"><img src="img/json.svg" style="vertical-align:text-bottom;" width="13" height="13"/></a>
|
||
</cfoutput>
|
||
<cfoutput><b>#qRead.recordCount#</b></cfoutput>
|
||
<table class="worktable">
|
||
<thead>
|
||
<tr>
|
||
<th width="5%">WZ</th>
|
||
<th width="5%">obj_uuid</th>
|
||
<th width="5%">obj_id</th>
|
||
<th width="3%">org</th>
|
||
<th width="3%">org_vdc</th>
|
||
<th width="3%">gpu</th>
|
||
<th width="3%">dt_load</th>
|
||
<th width="3%">dt_load_ts</th>
|
||
<th width="7%">cluster</th>
|
||
<th width="3%">is_template</th>
|
||
</tr>
|
||
</thead>
|
||
|
||
<cfoutput query="qRead">
|
||
<tr>
|
||
<td><a href="contragent.cfm?wz=#WZ#&#tr.fwx#">#WZ#</a></td>
|
||
<td>#obj_uuid#</td>
|
||
<td>#obj_id#</td>
|
||
<td>#org#</td>
|
||
<td>#org_vdc#</td>
|
||
<td>#gpu#</td>
|
||
<td>#dateFormat(dt_load, "YYYY-MM-DD")# #timeFormat(dt_load, "HH:MM")#</td>
|
||
<td>#dateFormat(dt_load_ts, "YYYY-MM-DD")# #timeFormat(dt_load_ts, "HH:MM")#</td>
|
||
<td>#clus#</td>
|
||
<td>#is_template#</td>
|
||
</tr>
|
||
</cfoutput>
|
||
|
||
</table>
|
||
<!--- <cfdump var=#qCharge#/> --->
|
||
|
||
|
||
<layout:page section="footer"/>
|
||
|