<#include 'public/template/editTemplate.html'> <#macro editContent>
<#if !isEdit>
<@ZKUI.SelectContent style="position: relative; width: 920px; height: 360px;" uuid="${uuid}" gridName="alarmType${uuid}" linkId="${id!}" linkName="${alarmTypeName!}" textField="id" noButtonContent="true" vo="com.zkteco.zkbiosecurity.ivs.vo.IvsVidAlarmTypeItem" showColumns="checkbox,alarmTypeName" value="${item.alarmTypeStr}" query="ivsVidAlarm.do?noSelectAlarmType&parentDeviceId=${parentDeviceId!}&codes=${codes!}"> <@ZKUI.Searchbar> <@ZKUI.SearchTop> <@ZKUI.Input name="alarmTypeName" maxlength="30" title="ivs_alarmName" type="text"/>
<#if parentDeviceType == "0" || !'${isEdit}'>
<@i18n 'ivs_alarm_linkage_recording'/>
<@ZKUI.Input id="enable2" name="enable2" hideLabel="true" type="checkbox"/> <@ZKUI.Input id="linkageSource2" name="linkageSource2" hideLabel="true" type="checkbox" value=""/> <@ZKUI.GridBox gridName="gridBox2" style="height:255px;width:290px"> <@ZKUI.Grid gridName="grid2" headMenu="false" vo="com.zkteco.zkbiosecurity.ivs.vo.IvsAlarmChannelItem" showColumns="checkbox,name" nopaging="true" onDataReady="initEditParams2" query="ivsChannel.do?list&vidParentDeviceId=${parentDeviceId!}"/>
<@ZKUI.Input id="videoTimeLong2" name="videoTimeLong2" hideLabel="true" type="text" value=""/>
<@i18n 'ivs_alarm_linkage_switchOutput'/>
<@ZKUI.Input id="enable6" name="enable6" hideLabel="true" type="checkbox"/> <@ZKUI.Input id="linkageTimeLong6" name="linkageTimeLong6" hideLabel="true" type="text" value=""/> <@ZKUI.GridBox gridName="gridBox6" style="height:255px;width:290px"> <@ZKUI.Grid gridName="grid6" headMenu="false" vo="com.zkteco.zkbiosecurity.ivs.vo.IvsVidAlarmSourceOutItem" nopaging="true" onDataReady="initEditParams6" query="ivsVidAlarm.do?alarmSource&parentDeviceId=${parentDeviceId!}&type=1"/>
<@i18n 'ivs_alarm_linkage_capture'/>
<@ZKUI.Input id="enable4" name="enable4" hideLabel="true" type="checkbox" value=""/> <@ZKUI.Input id="linkageSource4" name="linkageSource4" hideLabel="true" type="checkbox" value=""/> <@ZKUI.GridBox gridName="gridBox4" style="height:255px;width:290px"> <@ZKUI.Grid gridName="grid4" headMenu="false" vo="com.zkteco.zkbiosecurity.ivs.vo.IvsAlarmChannelItem" showColumns="checkbox,name" nopaging="true" onDataReady="initEditParams4" query="ivsChannel.do?list&vidParentDeviceId=${parentDeviceId!}"/>
<@i18n 'ivs_alarm_linkage_presets'/>
<@ZKUI.Input id="enable5" name="enable5" hideLabel="true" type="checkbox" value=""/> <@ZKUI.GridBox gridName="gridBox5" style="height:255px;width:290px"> <@ZKUI.Grid gridName="grid5" headMenu="false" vo="com.zkteco.zkbiosecurity.ivs.vo.IvsAlarmChannelItem" showColumns="checkbox,name" nopaging="true" onDataReady="initEditParams5" query="ivsChannel.do?list&vidParentDeviceId=${parentDeviceId!}" onCheck="reloadPresetsCombo" onCheckA="reloadPresetsAll"/>
<@i18n 'ivs_alarm_linkage_email'/>
<@ZKUI.Input id="enable9" name="enable9" hideLabel="true" type="checkbox" value=""/> <@ZKUI.Input id="email9" name="email9" hideLabel="true" type="text" value=""/> <@ZKUI.GridBox gridName="gridBox9" style="height:255px;width:290px"> <@ZKUI.Grid gridName="grid9" headMenu="false" vo="com.zkteco.zkbiosecurity.ivs.vo.IvsAlarmChannelItem" showColumns="checkbox,name" nopaging="true" onDataReady="initEditParams9" query="ivsChannel.do?list&vidParentDeviceId=${parentDeviceId!}"/>
<@ZKUI.Input id="selectDevice9" name="selectDevice9" hideLabel="true" type="checkbox" value=""/>
<#else> parentDeviceType == "2" && '${isEdit}'>
<@i18n 'ivs_conventional_linkage'/>
<@ZKUI.Combo width="50" id="buzzer" empty="false" hideLabel="true" name="buzzer" readonly="true" value="">
<@ZKUI.Input id="showMessage" name="showMessage" hideLabel="true" type="checkbox" value=""/>
<@ZKUI.Input id="fullScreen" name="fullScreen" hideLabel="true" type="checkbox" value=""/>
<@ZKUI.Input id="sendEmail" name="sendEmail" hideLabel="true" type="checkbox" value=""/>
<@i18n 'ivs_linkage_alarm_output'/>
<@ZKUI.ComboTree id="alarmOut" name="alarmOut" url="ivsVidAlarm.do/linkage?getNvr800AlarmChannelTree&id=${cacheId}&type=0" value="${alarmOutValue}" hideLabel="true" width="150" needCheckAll="true" isTree="false"/>
<@ZKUI.Combo width="150" id="latchTime" empty="false" hideLabel="true" name="latchTime" readonly="true" value="">
<@i18n 'ivs_linkage_video_snapshot'/>
<@ZKUI.Input id="recordEnable" name="recordEnable" hideLabel="true" type="checkbox" value=""/>
<@ZKUI.ComboTree id="recordChannel" name="recordChannel" url="ivsVidAlarm.do/linkage?getNvr800AlarmChannelTree&id=${cacheId}&type=1" value="${recordChannelValue}" hideLabel="true" width="150" needCheckAll="true" isTree="false"/>
<@ZKUI.Combo width="150" id="postRecording" empty="false" hideLabel="true" name="postRecording" readonly="true" value="">
<@ZKUI.Input id="snapEnable" name="snapEnable" hideLabel="true" type="checkbox" value=""/>