Browse Source

ACK button for devices 1 and 3

master
Evgeny Gagua 3 years ago
parent
commit
601b3989bc
  1. 2
      lib/1.json
  2. 31
      lib/controller/dash/node_1.js
  3. 18
      lib/controller/dash/node_3.js
  4. 2
      lib/controller/getDashBoardItems.php
  5. 31
      lib/javascript/jsapi_dynamic/rgoose_devices.js

2
lib/1.json
File diff suppressed because it is too large
View File

31
lib/controller/dash/node_1.js

@ -237,28 +237,23 @@
},{
xtype: 'spacer',
height: 3
},{
xtype: 'button',
text: 'Set Acknowledge',
id: 'DACK_%%%NODEID%%%',
width: '100%',
disabled: true,
iconCls: 'ctrl_panel_drawscan_sm',
handler: function(){
startAdd2DACK( %%%NODEID%%% );
}
},{
xtype: 'spacer',
height: 3
},{
},,{
xtype: 'button',
text: 'Clear Acknowledge',
id: 'DNACK_%%%NODEID%%%',
width: '100%',
enableToggle: true,
id: 'cp_ack_btn_%%%NODEID%%%',
text: '%%%LABEL%%%ACKNOLAGE%%%',
iconCls: 'ctrl_panel_clean_sm',
iconAlign: 'left',
disabled: true,
iconCls: 'ctrl_panel_drawscan_sm',
handler: function(){
clear2DACK( %%%NODEID%%% );
if( Ext.getCmp('cp_ack_btn_%%%NODEID%%%').pressed){
//doMaskOperation( %%%NODEID%%%, 1, 4 );
doAckOperation( %%%NODEID%%%, 1 );
} else {
//doMaskOperation( %%%NODEID%%%, 0, 4 );
doAckOperation( %%%NODEID%%%, 0 );
};
}
}/*,{
xtype: 'panel',

18
lib/controller/dash/node_3.js

@ -237,6 +237,24 @@
},{
xtype: 'spacer',
height: 3
},{
xtype: 'button',
width: '100%',
enableToggle: true,
id: 'cp_ack_btn_%%%NODEID%%%',
text: '%%%LABEL%%%ACKNOLAGE%%%',
iconCls: 'ctrl_panel_clean_sm',
iconAlign: 'left',
disabled: true,
handler: function(){
if( Ext.getCmp('cp_ack_btn_%%%NODEID%%%').pressed){
//doMaskOperation( %%%NODEID%%%, 1, 4 );
doAckOperation( %%%NODEID%%%, 1 );
} else {
//doMaskOperation( %%%NODEID%%%, 0, 4 );
doAckOperation( %%%NODEID%%%, 0 );
};
}
}/*,{
xtype: 'panel',
title: 'Detection Sensitivity',

2
lib/controller/getDashBoardItems.php

@ -9,7 +9,7 @@
$TPL = str_replace('%%%LABEL%%%STUBACKGROUND%%%', $Labels->GetLabel('_STUDY_BACKGROUND_') , $TPL );
$TPL = str_replace('%%%LABEL%%%MASKEDITOR%%%', $Labels->GetLabel('_MASK_EDITOR_') , $TPL );
$TPL = str_replace('%%%LABEL%%%MASKMNGR%%%', $Labels->GetLabel('_MASK_MANAGER_') , $TPL );
//$TPL = str_replace('%%%LABEL%%%MASKMNGR%%%', $Labels->GetLabel('_MASK_MANAGER_') , $TPL );
$TPL = str_replace('%%%LABEL%%%ACKNOLAGE%%%', $Labels->GetLabel('_DEV_ACK_BTN_') , $TPL );
return $TPL;
};

31
lib/javascript/jsapi_dynamic/rgoose_devices.js

@ -2008,6 +2008,37 @@ function doMaskOperation( NodeID, Cmd, Mid = 0, LRFID = 0 ){
failure: failureAJAXFunction
});
}
function doAckOperation( NodeID, Cmd ){
if( Cmd ){
Ext.Msg.show({
title:'<?=$Labels->GetLabel("_INFO_MSG_");?>',
msg: '<?=$Labels->GetLabel("_DEV_ACK_START_");?>',
buttons: Ext.Msg.YESNOCANCEL,
fn: function( btn ){
if( btn == 'ok' ){
alert('OK');
};
},
//animEl: 'elId',
icon: Ext.MessageBox.QUESTION
});
} else {
Ext.Msg.show({
title:'<?=$Labels->GetLabel("_INFO_MSG_");?>',
msg: '<?=$Labels->GetLabel("_DEV_ACK_STOP_");?>',
buttons: Ext.Msg.YESNOCANCEL,
fn: function( btn ){
if( btn == 'ok' ){
alert('OK');
};
},
//animEl: 'elId',
icon: Ext.MessageBox.QUESTION
});
};
}
var ME_max_range = 100;
function showMaskEditor( fromDevTool, DevType, NodeID ){
//alert( "DevType: "+DevType + " Dev Map size: "+ absDrawMapSizes[DevType][0]+"x"+absDrawMapSizes[DevType][1] );

Loading…
Cancel
Save