<#include '/public/template/editTemplate.html'> <#macro editContent>
<#if currentUserId = item.createrId>
* <@ZKUI.Input name="rankingName" maxlength="30" value="${(item.rankingName)!}" type="text"/> <@ZKUI.Combo followTab="true" hideLabel="true" readonly="true" title="esdc_ranking_add_filter" onChange="conditionSelect">
* <@ZKUI.Input name="limit" value="${(item.limit)!}" type="text"/> <@i18n 'esdc_rankingWidget_visible'/>
<#if item.publicityFlag == "1"> <@ZKUI.Input hideLabel="true" type="radio" name="publicityFlag" value="1" checked="checked"/> <#elseif item.publicityFlag == null> <@ZKUI.Input hideLabel="true" type="radio" name="publicityFlag" value="1" checked="checked"/> <#else> <@ZKUI.Input hideLabel="true" type="radio" name="publicityFlag" value="1"/> <@i18n 'common_yes'/>        <#if item.publicityFlag == "0"> <@ZKUI.Input hideLabel="true" type="radio" name="publicityFlag" value="0" checked="checked"/> <#else> <@ZKUI.Input hideLabel="true" type="radio" name="publicityFlag" value="0" /> <@i18n 'common_no'/>

<@i18n 'esdc_rankingWidget_setting_condition'/>

<@ZKUI.Input id="eventTypeCheckbox" checked="checked" name="eventTypeCheckbox" onclick="conditionCheck('eventTypeTdName','eventTypeCheckbox')" type="checkbox"/> <@ZKUI.Combo name="eventTypeTag" hideLabel="true" id="eventTypeTag" value="${(item.eventTypeTag)!}" followTab="true" readonly="true" onChange="eventTypeTagChange" > <#if item.eventTypeTag?contains('0') || item.eventTypeTag?contains('1')> <@ZKUI.ComboTree dynamic="true" type="radio" id="eventTypeCombo${uuid}" url="/esdcTransaction.do?eventTypeTree&code=1" value="${(item.eventType)!}" name="eventType" needCheckAll="false" isTree="true"/> <#else> <@ZKUI.ComboTree dynamic="true" type="checkbox" id="eventTypeCombo${uuid}" url="/esdcTransaction.do?eventTypeTree&code=1" value="${(item.eventType)!}" name="eventType" needCheckAll="false" isTree="true"/>
<@ZKUI.Input id="eventLevelCheckbox" checked="checked" name="eventLevelCheckbox" onclick="conditionCheck('eventLevelTdName','eventLevelCheckbox')" type="checkbox" /> <@ZKUI.Combo name="eventLevelTag" hideLabel="true" id="eventLevelTag" value="${(item.eventLevelTag)!}" followTab="true" readonly="true" onChange="eventLevelTagChange"> <#if item.eventLevelTag?contains('2') || item.eventLevelTag?contains('3')> <@ZKUI.Combo empty="false" mode="checkbox" name="eventLevel" id="eventLevel${uuid}" followTab="true" value='${(item.eventLevel)!}' readonly="true" hideLabel="true" path="esdcTransaction.do?getEventLevel" onAfterLoad="eventLevelLoad"> <#else> <@ZKUI.Combo empty="false" name="eventLevel" id="eventLevel${uuid}" followTab="true" value='${(item.eventLevel)!}' readonly="true" hideLabel="true" path="esdcTransaction.do?getEventLevel">
<@ZKUI.Input id="deviceIdCheckbox" checked="checked" name="deviceIdCheckbox" type="checkbox" onclick="conditionCheck('deviceIdTdName','deviceIdCheckbox')"/> <@ZKUI.Combo name="deviceIdTag" hideLabel="true" id="deviceIdTag" onChange="deviceIdTagChange" value="${(item.deviceIdTag)!}" followTab="true" readonly="true" > <@ZKUI.ComboGrid hideLabel="true" id="deviceId" queryField="name" name="deviceId" value="${(item.deviceId)!}" textField="name" text="${(item.deviceAlias)!}" grid_vo="com.zkteco.zkbiosecurity.esdc.vo.EsdcChannelItem" grid_showColumns="ra,name,ipAddress,sourceModule" grid_query="/esdcDevice.do?list" />
<@ZKUI.Input id="areaIdCheckbox" checked="checked" name="areaIdCheckbox" type="checkbox" onclick="conditionCheck('areaIdTdName','areaIdCheckbox')"/> <@ZKUI.Combo name="areaIdTag" hideLabel="true" id="areaIdTag" value="${(item.areaIdTag)!}" followTab="true" readonly="true" onChange="areaIdTagChange" > <@ZKUI.ComboTree id="radioAreaId" name="areaIdRadioName" type="radio" hideLabel="true" url="authArea.do?tree" />
<@ZKUI.Input id="dealTypeCheckbox" checked="checked" name="dealTypeCheckbox" type="checkbox" onclick="conditionCheck('dealTypeTdName','dealTypeCheckbox')"/> <@ZKUI.Combo autoFirst="true" id="dealType" name="dealType" hideLabel="true" value="${(item.dealType)!}" followTab="true" readonly="true" >
<@ZKUI.Input id="focusCheckbox" checked="checked" name="focusCheckbox" type="checkbox" onclick="conditionCheck('focusTdName','focusCheckbox')"/> <@ZKUI.Combo autoFirst="true" id="focus" name="focus" hideLabel="true" value="${(item.focus)!}" followTab="true" readonly="true" >
<@ZKUI.Input id="libTypeCheckbox" checked="checked" name="libTypeCheckbox" type="checkbox" onclick="conditionCheck('libTypeTdName','libTypeCheckbox')"/> <@ZKUI.Combo name="libTypeTag" hideLabel="true" id="libTypeTag" value="${(item.libTypeTag)!}" followTab="true" readonly="true" onChange="libTypeTagChange"> <#if item.libTypeTag?contains('2') || item.libTypeTag?contains('3')> <@ZKUI.Combo empty="false" mode="checkbox" name="libType" id="libType${uuid}" followTab="true" value='${(item.libType)!}' readonly="true" hideLabel="true" path="esdcRankingWidget.do?lib" onAfterLoad="libTypeLoad"> <#else> <@ZKUI.Combo empty="false" name="libType" id="libType${uuid}" followTab="true" value='${(item.libType)!}' readonly="true" hideLabel="true" path="esdcRankingWidget.do?lib">
<@ZKUI.Input id="libNameCheckbox" checked="checked" name="libNameCheckbox" type="checkbox" onclick="conditionCheck('libNameTdName','libNameCheckbox')"/> <@ZKUI.Combo name="libNameTag" hideLabel="true" id="libNameTag" value="${(item.libNameTag)!}" followTab="true" readonly="true" onChange="libNameTagChange" > <#if item.libNameTag?contains('2') || item.libNameTag?contains('3')> <@ZKUI.Combo empty="false" mode="checkbox" name="libName" id="libName${uuid}" followTab="true" value='${(item.libName)!}' readonly="true" hideLabel="true" path="esdcRankingWidget.do?libTypeName" onAfterLoad="libNameLoad"> <#else> <@ZKUI.Combo empty="false" name="libName" id="libName${uuid}" followTab="true" value='${(item.libName)!}' readonly="true" hideLabel="true" path="esdcRankingWidget.do?libTypeName">
<@ZKUI.Input id="pinCheckbox" checked="checked" name="pinCheckbox" type="checkbox" onclick="conditionCheck('pinTdName','pinCheckbox')"/> <@ZKUI.Combo name="pinTag" hideLabel="true" id="pinTag" value="${(item.pinTag)!}" followTab="true" readonly="true" onChange="pinTagChange" > <@ZKUI.ComboGrid hideLabel="true" id="pin" queryField="name" name="pin" value="${(item.pin)!}" textField="pin" text="${(item.pin)!}" valueField="pin" grid_vo="com.zkteco.zkbiosecurity.esdc.vo.EsdcPersPersonItem" grid_showColumns="ra,name,pin,deptName,email" grid_query="esdcRankingWidget.do?getPerson" />
<@ZKUI.Input id="sexCheckbox" checked="checked" name="sexCheckbox" type="checkbox" onclick="conditionCheck('sexTdName','sexCheckbox')"/> <@ZKUI.Combo autoFirst="true" id="sex" name="sex" hideLabel="true" value="${(item.sex)!}" followTab="true" readonly="true" >
<@ZKUI.Input id="eventTimeCheckbox" checked="checked" name="eventTimeCheckbox" type="checkbox" onclick="conditionCheck('eventTimeTdName','eventTimeCheckbox')"/> <@ZKUI.Combo name="eventTimeType" hideLabel="true" id="eventTimeType" autoFirst="true" value="${(item.eventTimeType)!}" followTab="true" readonly="true" onChange="eventTimeTypeSelect">
<@ZKUI.Input id="sortCheckbox" checked="checked" name="sortCheckbox" type="checkbox" onclick="conditionCheck('sortTdName','sortCheckbox')"/> <@ZKUI.Combo autoFirst="true" id="sortOrder" name="sortOrder" hideLabel="true" value="${(item.sortOrder)!}" followTab="true" readonly="true" >