058 manager
This commit is contained in:
@@ -265,12 +265,20 @@ AS (
|
||||
AND (<cfqueryparam cfsqltype="cf_sql_timestamp" value=#dt_report#/> < d.dt_next)
|
||||
GROUP BY z.id_klienta
|
||||
)
|
||||
,manager AS (
|
||||
select z.id_klienta as wz, u.__name as manager, u.email, u.__status_status as status
|
||||
from elma.companies z
|
||||
join elma.comp_users_ext u on (z.responsible=u.__id)
|
||||
)
|
||||
select
|
||||
<d:field_set titleMapOut="titleMap" lengthOut="fieldCount">
|
||||
<d:field title="WZ Elma">r.wz as wz_sold</d:field>
|
||||
<d:field title="Клиент">r.client as client_sold</d:field>
|
||||
<d:field>r.company_uid</d:field>
|
||||
<d:field title="WZ Cloud">a.wz as wz_alloc</d:field>
|
||||
<d:field title="Manager">u.manager</d:field>
|
||||
<d:field title="Manager Email">u.email</d:field>
|
||||
<d:field title="Manager Status">u.status</d:field>
|
||||
<d:field title="Статусы из VCD">a.organization_status</d:field><!--- список статусов через запятую --->
|
||||
<d:field title="Статусы">ds.status_ids</d:field>
|
||||
<d:field title="Модели оплаты">ds.line_pricing_model_ids</d:field>
|
||||
@@ -302,6 +310,7 @@ full join alloc a on (lower(r.wz)=lower(a.wz))
|
||||
left join disk_alloc da on (a.wz=da.wz)
|
||||
left join gpu_alloc ga on (a.wz=ga.wz)
|
||||
left join elma.companies z on (lower(a.wz)=lower(z.id_klienta))
|
||||
left join manager u on (lower(coalesce(r.wz,a.wz))=lower(u.wz))
|
||||
where 1=1 <m:filter_build filter=#pageInfo.settings.filter#/>
|
||||
order by <m:order_build sortArray=#pageInfo.settings.sort.sortArray# fieldCount=#fieldCount#/>
|
||||
</cfquery>
|
||||
@@ -359,6 +368,7 @@ S3 операции и трафик: <b>#dateFormat(qS3OpsTrfAge.dt_load,'YYYY-M
|
||||
<th width="5%"><layout:column_head name="wz_sold"/></th>
|
||||
<th width="10%"><layout:column_head name="client_sold"/></th>
|
||||
<th width="5%"><layout:column_head name="wz_alloc"/></th>
|
||||
<th width="5%"><layout:column_head name="manager"/></th>
|
||||
<th width="3%"><layout:column_head name="status_ids"/></th>
|
||||
<th width="5%"><layout:column_head name="organization_status"/></th>
|
||||
<th width="3%"><layout:column_head name="line_pricing_model_ids"/></th>
|
||||
@@ -399,6 +409,7 @@ S3 операции и трафик: <b>#dateFormat(qS3OpsTrfAge.dt_load,'YYYY-M
|
||||
</cfif>
|
||||
</td>
|
||||
<td>#wz_alloc#</td>
|
||||
<td><a href="mailto:#email#"<cfif qRead.status NEQ 2> title="не работает"</cfif>><span<cfif qRead.status NEQ 2> class="err"</cfif>>#manager#</span></a></td>
|
||||
<td>#status_ids#</td>
|
||||
<td>#organization_status#</td>
|
||||
<td>#line_pricing_model_ids#</td>
|
||||
|
||||
Reference in New Issue
Block a user