intermediate draft 4
This commit is contained in:
+1
-52
@@ -148,7 +148,6 @@
|
||||
,d.contract
|
||||
,d.dt_contract
|
||||
,(select count(*) from specification s where s.contract_id=d.contract_id) as spec_cnt
|
||||
,(select count(distinct resource_realm_id) from resource_realm_access a where a.contract_id=d.contract_id) as res_realm_cnt
|
||||
from contract d
|
||||
where d.contragent_id=<cfqueryparam cfsqltype="cf_sql_integer" value="#d.contragent_id#"/>
|
||||
order by 1
|
||||
@@ -165,7 +164,6 @@
|
||||
<th>Номер договора</th>
|
||||
<th>Дата договора</th>
|
||||
<th>Спецификаций</th>
|
||||
<th>Ресурсных платформ</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -182,9 +180,6 @@
|
||||
<cfif spec_cnt GT 0>#spec_cnt#</cfif>
|
||||
|
||||
</td>
|
||||
<td class="c">
|
||||
<cfif res_realm_cnt GT 0>#res_realm_cnt#</cfif>
|
||||
</td>
|
||||
<td class="c">
|
||||
<c:link_del canWrite=#pageInfo.writePermitted()# entity="contract" id=#contract_id# fwx=#tr.fwx#/>
|
||||
</td>
|
||||
@@ -192,52 +187,6 @@
|
||||
</cfoutput>
|
||||
</table>
|
||||
</cfif>
|
||||
<i>Доступ к ресурсным платформам предоставляется на уровне договора</i>
|
||||
|
||||
<cfif d.contragent_id GT 0>
|
||||
<cfquery name="qUsr">
|
||||
select
|
||||
u.usr_id
|
||||
,u.login
|
||||
,u.firstname
|
||||
,u.lastname
|
||||
,u.middlename
|
||||
,u.email
|
||||
,u.idp_usr_uid
|
||||
from usr u
|
||||
where u.contragent_id=<cfqueryparam cfsqltype="cf_sql_integer" value="#d.contragent_id#"/>
|
||||
order by 1
|
||||
</cfquery>
|
||||
|
||||
<cfoutput>
|
||||
<h4>Пользователи (#qContract.recordCount#)</h4>
|
||||
</cfoutput>
|
||||
|
||||
<table class="worktable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>Логин</th>
|
||||
<th>Ф.И.О.</th>
|
||||
<th>e-mail</th>
|
||||
<th>IDP user UID</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<cfoutput query="qUsr">
|
||||
<tr>
|
||||
<td>
|
||||
<c:link_view_edit canWrite=#pageInfo.writePermitted()# entity="usr" id=#usr_id# fwx=#tr.fwx#/>
|
||||
</td>
|
||||
<td>#login#</td>
|
||||
<td>#lastname# #firstname# #middlename#</td>
|
||||
<td>#email#</td>
|
||||
<td>#idp_usr_uid#</td>
|
||||
<td class="c">
|
||||
<c:link_del canWrite=#pageInfo.writePermitted()# entity="usr" id=#usr_id# fwx=#tr.fwx#/>
|
||||
</td>
|
||||
</tr>
|
||||
</cfoutput>
|
||||
</table>
|
||||
</cfif>
|
||||
|
||||
<layout:page section="footer"/>
|
||||
Reference in New Issue
Block a user