<?xml version="1.0" encoding="UTF-8"?>
|
<ViewConfig>
|
<Arguments/>
|
<Context/>
|
<Model>
|
<DataType name="dtMain">
|
<Property name="creationType">com.ld.igds.models.SecVideoMac</Property>
|
<PropertyDef name="id">
|
<Property></Property>
|
<Property name="label">ID</Property>
|
</PropertyDef>
|
<PropertyDef name="companyId">
|
<Property></Property>
|
<Property name="label">组织编码</Property>
|
</PropertyDef>
|
<PropertyDef name="deptId">
|
<Property></Property>
|
<Property name="label">所属分库</Property>
|
<Property name="mapping">
|
<Property name="mapValues">${dorado.getDataProvider("deptPR#loadParents").getResult()}</Property>
|
<Property name="keyProperty">id</Property>
|
<Property name="valueProperty">name</Property>
|
</Property>
|
</PropertyDef>
|
<PropertyDef name="code">
|
<Property></Property>
|
<Property name="label">设备编码</Property>
|
<Property name="required">true</Property>
|
</PropertyDef>
|
<PropertyDef name="name">
|
<Property></Property>
|
<Property name="label">设备名称</Property>
|
<Property name="required">true</Property>
|
</PropertyDef>
|
<PropertyDef name="loginId">
|
<Property></Property>
|
<Property name="label">帐号</Property>
|
<Property name="required">true</Property>
|
</PropertyDef>
|
<PropertyDef name="pwd">
|
<Property></Property>
|
<Property name="label">密码</Property>
|
<Property name="required">true</Property>
|
</PropertyDef>
|
<PropertyDef name="brand">
|
<Property></Property>
|
<Property name="label">设备品牌</Property>
|
</PropertyDef>
|
<PropertyDef name="sn">
|
<Property></Property>
|
<Property name="label">设备序列号</Property>
|
</PropertyDef>
|
<PropertyDef name="producer">
|
<Property></Property>
|
<Property name="label">厂商信息</Property>
|
</PropertyDef>
|
<PropertyDef name="telephone">
|
<Property></Property>
|
<Property name="label">厂商电话</Property>
|
</PropertyDef>
|
<PropertyDef name="ipIn">
|
<Property></Property>
|
<Property name="label">内网IP</Property>
|
</PropertyDef>
|
<PropertyDef name="portIn">
|
<Property name="dataType">Integer</Property>
|
<Property name="label">内网端口</Property>
|
</PropertyDef>
|
<PropertyDef name="ipOut">
|
<Property></Property>
|
<Property name="label">外网IP</Property>
|
</PropertyDef>
|
<PropertyDef name="portOut">
|
<Property name="dataType">Integer</Property>
|
<Property name="label">外网端口</Property>
|
</PropertyDef>
|
<PropertyDef name="httpIn">
|
<Property></Property>
|
<Property name="label">内网地址</Property>
|
</PropertyDef>
|
<PropertyDef name="httpOut">
|
<Property></Property>
|
<Property name="label">外网地址</Property>
|
</PropertyDef>
|
<PropertyDef name="updateTime">
|
<Property name="dataType">Date</Property>
|
<Property name="label">更新时间</Property>
|
</PropertyDef>
|
<PropertyDef name="updateUser">
|
<Property></Property>
|
<Property name="label">更新人</Property>
|
</PropertyDef>
|
<PropertyDef name="remark">
|
<Property></Property>
|
<Property name="label">备注</Property>
|
</PropertyDef>
|
</DataType>
|
</Model>
|
<View layout="padding:5;regionPadding:5">
|
<ClientEvent name="onClick">
|
/**
|
* 预览视频
|
*/
|
showVideo = function(){
|
var cur = view.get("#dsMain.data:#");
|
if (cur.get("httpIn")) {
|
window.open(cur.get("httpIn"),"_blank");
|
}else{
|
$alert("没有配置内网方位连接,无法访问!!");
|
}
|
};
|

|
/**
|
* 预览视频2
|
*/
|
showVideo2 = function(){
|
var cur = view.get("#dsMain.data:#");
|
if (cur.get("httpOut")) {
|
window.open(cur.get("httpOut"),"_blank");
|
}else{
|
$alert("没有配置外网方位连接,无法访问!!");
|
}
|
};</ClientEvent>
|
<Property name="packages">font-awesome,css-common</Property>
|
<DataSet id="dsMain">
|
<Property name="loadMode">lazy</Property>
|
<Property name="dataProvider">securityPR#listVodeo</Property>
|
<Property name="dataType">[dtMain]</Property>
|
</DataSet>
|
<Container layout="regionPadding:10" layoutConstraint="top">
|
<Property name="exClassName">bg-color</Property>
|
<Property name="contentOverflow">hidden</Property>
|
<Property name="height">55</Property>
|
<Label layoutConstraint="left">
|
<Property name="text">菜单栏:</Property>
|
</Label>
|
<Button layoutConstraint="left">
|
<ClientEvent name="onClick">view.get("#dsMain").insert();
|
view.get("#dialogMain").show();</ClientEvent>
|
<Property name="caption">新增</Property>
|
<Property name="exClassName">btn-default</Property>
|
<Property name="iconClass">fa fa-plus</Property>
|
</Button>
|
<Button layoutConstraint="left">
|
<ClientEvent name="onClick">var data = view.get("#dsMain.data:#");
|
if(data){
|
view.get("#dialogMain").show();
|
}</ClientEvent>
|
<Property name="caption">调整</Property>
|
<Property name="exClassName">btn-warm</Property>
|
<Property name="iconClass">fa fa-pencil</Property>
|
</Button>
|
<Button layoutConstraint="left">
|
<ClientEvent name="onClick">var data = view.get("#dsMain.data:#");
|
if(!data){
|
return;
|
}
|
view.get("#ajaxDel").set("parameter",data).execute(function(result){
|
if(result){
|
$alert(result);
|
return;
|
}else{
|
data.remove();
|
}
|
});</ClientEvent>
|
<Property name="caption">删除</Property>
|
<Property name="exClassName">btn-warn</Property>
|
<Property name="iconClass">fa fa-minus</Property>
|
</Button>
|
<Button layoutConstraint="left">
|
<ClientEvent name="onClick">view.get("#dsMain").flushAsync();
|
</ClientEvent>
|
<Property name="caption">刷新</Property>
|
<Property name="exClassName">btn-default</Property>
|
<Property name="iconClass">fa fa-refresh</Property>
|
</Button>
|
</Container>
|
<Container layout="regionPadding:10" layoutConstraint="center">
|
<Property name="exClassName">bg-color</Property>
|
<DataGrid layoutConstraint="center padding:5px">
|
<ClientEvent name="onDataRowDoubleClick">var data = view.get("#dsMain.data:#");
|
if(data){
|
view.get("#dialogMain").show();
|
}</ClientEvent>
|
<Property name="dataSet">dsMain</Property>
|
<Property name="readOnly">true</Property>
|
<RowNumColumn/>
|
<DataColumn name="name">
|
<Property name="property">name</Property>
|
<Property name="align">center</Property>
|
</DataColumn>
|
<DataColumn name="brand">
|
<Property name="property">brand</Property>
|
<Property name="align">center</Property>
|
</DataColumn>
|
<DataColumn name="producer">
|
<Property name="property">producer</Property>
|
<Property name="align">center</Property>
|
</DataColumn>
|
<DataColumn name="ipIn">
|
<Property name="property">ipIn</Property>
|
<Property name="align">center</Property>
|
</DataColumn>
|
<DataColumn name="portIn">
|
<Property name="property">portIn</Property>
|
<Property name="align">center</Property>
|
</DataColumn>
|
<DataColumn name="updateTime">
|
<Property name="property">updateTime</Property>
|
<Property name="align">center</Property>
|
</DataColumn>
|
<DataColumn name="updateUser">
|
<Property name="property">updateUser</Property>
|
<Property name="align">center</Property>
|
</DataColumn>
|
<DataColumn>
|
<ClientEvent name="onRenderCell">arg.dom.innerHTML = "<a href='javascript:;' onClick='showVideo()'>内网访问</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href='javascript:;' onClick='showVideo2()'>外网访问</a>";</ClientEvent>
|
<Property name="caption">远程访问</Property>
|
<Property name="align">center</Property>
|
<Editor/>
|
</DataColumn>
|
</DataGrid>
|
</Container>
|
<Dialog id="dialogMain" layout="padding:5;regionPadding:10">
|
<Property name="height">450</Property>
|
<Property name="width">85%</Property>
|
<Property name="caption">硬盘录像机信息</Property>
|
<Property name="iconClass">fa fa-flag-o</Property>
|
<Property name="closeable">false</Property>
|
<Buttons>
|
<Button>
|
<ClientEvent name="onClick">var data = view.get("#dsMain.data:#");
|
if(data.validate() != 'ok'){
|
$notify("数据校验失败!!");
|
return;
|
}
|
view.get("#uaAction").set("parameter",data).execute(function(){
|
self.get("parent").hide();
|
});</ClientEvent>
|
<Property name="caption">确认</Property>
|
<Property name="iconClass">fa fa-check-circle</Property>
|
<Property name="width">90</Property>
|
</Button>
|
<Button>
|
<ClientEvent name="onClick">view.get("#dsMain.data:#").cancel();
|
self.get("parent").hide();</ClientEvent>
|
<Property name="caption">取消</Property>
|
<Property name="iconClass">fa fa-times-circle</Property>
|
<Property name="width">90</Property>
|
</Button>
|
</Buttons>
|
<Children>
|
<AutoForm>
|
<Property name="dataSet">dsMain</Property>
|
<Property name="cols">*,*,*</Property>
|
<Property name="labelWidth">110</Property>
|
<Property name="labelAlign">right</Property>
|
<Property name="labelSeparator">:</Property>
|
<AutoFormElement>
|
<Property name="name">code</Property>
|
<Property name="property">code</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">name</Property>
|
<Property name="property">name</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">sn</Property>
|
<Property name="property">sn</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">loginId</Property>
|
<Property name="property">loginId</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">pwd</Property>
|
<Property name="property">pwd</Property>
|
<Property name="editorType">PasswordEditor</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">brand</Property>
|
<Property name="property">brand</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">ipIn</Property>
|
<Property name="property">ipIn</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">portIn</Property>
|
<Property name="property">portIn</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">producer</Property>
|
<Property name="property">producer</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">ipOut</Property>
|
<Property name="property">ipOut</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">portOut</Property>
|
<Property name="property">portOut</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement>
|
<Property name="name">telephone</Property>
|
<Property name="property">telephone</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement layoutConstraint="colSpan:2">
|
<Property name="name">httpIn</Property>
|
<Property name="property">httpIn</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement layoutConstraint="colSpan:2">
|
<Property name="name">httpOut</Property>
|
<Property name="property">httpOut</Property>
|
<Editor/>
|
</AutoFormElement>
|
<AutoFormElement layoutConstraint="colSpan:3">
|
<Property name="name">remark</Property>
|
<Property name="property">remark</Property>
|
<Property name="editorType">TextArea</Property>
|
<Editor/>
|
</AutoFormElement>
|
</AutoForm>
|
</Children>
|
<Tools/>
|
</Dialog>
|
<UpdateAction id="uaAction">
|
<Property name="dataResolver">securityPR#saveVideo</Property>
|
<UpdateItem>
|
<Property name="dataSet">dsMain</Property>
|
<Property name="dataPath">[#current]</Property>
|
</UpdateItem>
|
</UpdateAction>
|
<AjaxAction id="ajaxDel">
|
<Property name="confirmMessage">确定要删除吗?</Property>
|
<Property name="service">securityPR#delVideo</Property>
|
</AjaxAction>
|
</View>
|
</ViewConfig>
|