|
|
@ -31,12 +31,13 @@ |
|
|
xtype: 'panel', |
|
|
xtype: 'panel', |
|
|
border: false, |
|
|
border: false, |
|
|
frame: false, |
|
|
frame: false, |
|
|
html: '<table width="100%" border=0><tr><td class="small_prop_logo" id="adam"> </td></tr></table>' |
|
|
|
|
|
|
|
|
width: 160, |
|
|
|
|
|
html: '<table width="128px" border=0><tr><td class="medium_prop_logo" id="adam"> </td></tr></table>' |
|
|
},{ |
|
|
},{ |
|
|
xtype: 'form', |
|
|
xtype: 'form', |
|
|
border: false, |
|
|
border: false, |
|
|
frame: false, |
|
|
frame: false, |
|
|
labelWidth: 150, |
|
|
|
|
|
|
|
|
labelWidth: 100, |
|
|
labelAlign: 'right', |
|
|
labelAlign: 'right', |
|
|
width: '100%', |
|
|
width: '100%', |
|
|
items:[{ |
|
|
items:[{ |
|
|
@ -44,6 +45,9 @@ |
|
|
border: false, |
|
|
border: false, |
|
|
frame: false, |
|
|
frame: false, |
|
|
html: '<table width="100%" border=0><tr><td class="small_prop_title" align="center" style="font-size: 14px; font-weight: bold;">{$Labels->GetLabel('_MODBUS_RTU_')}:{$SC['label']}</td><td><img id="scae_onl_sts" src="/style/assets/bul_gray.png"></td></tr></table>' |
|
|
html: '<table width="100%" border=0><tr><td class="small_prop_title" align="center" style="font-size: 14px; font-weight: bold;">{$Labels->GetLabel('_MODBUS_RTU_')}:{$SC['label']}</td><td><img id="scae_onl_sts" src="/style/assets/bul_gray.png"></td></tr></table>' |
|
|
|
|
|
},{ |
|
|
|
|
|
xtype: 'spacer', |
|
|
|
|
|
height: 5 |
|
|
},{ |
|
|
},{ |
|
|
xtype: 'textfield', |
|
|
xtype: 'textfield', |
|
|
id: 'sca_label', |
|
|
id: 'sca_label', |
|
|
@ -100,7 +104,7 @@ |
|
|
value: '{$SC['port']}', |
|
|
value: '{$SC['port']}', |
|
|
listeners:{ |
|
|
listeners:{ |
|
|
change: function( a, c, b ){ |
|
|
change: function( a, c, b ){ |
|
|
doPlatformOperation( {$SC['platform_id']}, 16, c, true ); |
|
|
|
|
|
|
|
|
doScadaOperation( {$SC['platform_id']}, {$SC['id']}, 16, c, true ); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}] |
|
|
}] |
|
|
@ -131,6 +135,7 @@ |
|
|
html: 'AUX Signal' |
|
|
html: 'AUX Signal' |
|
|
},{ |
|
|
},{ |
|
|
xtype: 'combo', |
|
|
xtype: 'combo', |
|
|
|
|
|
id: 'sce_cb_o_1', |
|
|
lazyRender: true, |
|
|
lazyRender: true, |
|
|
mode: 'local', |
|
|
mode: 'local', |
|
|
forceSelection: true, |
|
|
forceSelection: true, |
|
|
@ -140,21 +145,22 @@ |
|
|
store: new Ext.data.ArrayStore({ |
|
|
store: new Ext.data.ArrayStore({ |
|
|
fields: ['mode','mode_txt'], |
|
|
fields: ['mode','mode_txt'], |
|
|
data: [ |
|
|
data: [ |
|
|
[-1,'{$Labels->GetLabel('__DISABLED__')}'], |
|
|
|
|
|
[0,'Coil D1'],[1,'Coil D2'],[2,'Coil D3'],[3,'Coil D4'] |
|
|
|
|
|
|
|
|
[0,'{$Labels->GetLabel('__DISABLED__')}'], |
|
|
|
|
|
[1,'Coil D1'],[2,'Coil D2'],[3,'Coil D3'],[4,'Coil D4'] |
|
|
] |
|
|
] |
|
|
}), |
|
|
}), |
|
|
valueField: 'mode', |
|
|
valueField: 'mode', |
|
|
displayField: 'mode_txt', |
|
|
displayField: 'mode_txt', |
|
|
value: '{$SC['crossbar_a']}', |
|
|
|
|
|
|
|
|
value: '0', |
|
|
width: 120, |
|
|
width: 120, |
|
|
listeners:{ |
|
|
listeners:{ |
|
|
select: function( a, c, b ){ |
|
|
select: function( a, c, b ){ |
|
|
//doPlatformOperation( {$SC['platform_id']}, 12, b, true );
|
|
|
|
|
|
|
|
|
doScadaOperation( {$SC['platform_id']}, {$SC['id']}, 21, b, false ); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
},{ |
|
|
},{ |
|
|
xtype: 'combo', |
|
|
xtype: 'combo', |
|
|
|
|
|
id: 'sce_cb_o_2', |
|
|
lazyRender: true, |
|
|
lazyRender: true, |
|
|
mode: 'local', |
|
|
mode: 'local', |
|
|
forceSelection: true, |
|
|
forceSelection: true, |
|
|
@ -164,21 +170,22 @@ |
|
|
store: new Ext.data.ArrayStore({ |
|
|
store: new Ext.data.ArrayStore({ |
|
|
fields: ['mode','mode_txt'], |
|
|
fields: ['mode','mode_txt'], |
|
|
data: [ |
|
|
data: [ |
|
|
[-1,'{$Labels->GetLabel('__DISABLED__')}'], |
|
|
|
|
|
[0,'Coil D1'],[1,'Coil D2'],[2,'Coil D3'],[3,'Coil D4'] |
|
|
|
|
|
|
|
|
[0,'{$Labels->GetLabel('__DISABLED__')}'], |
|
|
|
|
|
[1,'Coil D1'],[2,'Coil D2'],[3,'Coil D3'],[4,'Coil D4'] |
|
|
] |
|
|
] |
|
|
}), |
|
|
}), |
|
|
valueField: 'mode', |
|
|
valueField: 'mode', |
|
|
displayField: 'mode_txt', |
|
|
displayField: 'mode_txt', |
|
|
value: '{$SC['crossbar_b']}', |
|
|
|
|
|
|
|
|
value: '0', |
|
|
width: 120, |
|
|
width: 120, |
|
|
listeners:{ |
|
|
listeners:{ |
|
|
select: function( a, c, b ){ |
|
|
select: function( a, c, b ){ |
|
|
//doPlatformOperation( {$SC['platform_id']}, 12, b, true );
|
|
|
|
|
|
|
|
|
doScadaOperation( {$SC['platform_id']}, {$SC['id']}, 22, b, false ); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
},{ |
|
|
},{ |
|
|
xtype: 'combo', |
|
|
xtype: 'combo', |
|
|
|
|
|
id: 'sce_cb_o_3', |
|
|
lazyRender: true, |
|
|
lazyRender: true, |
|
|
mode: 'local', |
|
|
mode: 'local', |
|
|
forceSelection: true, |
|
|
forceSelection: true, |
|
|
@ -188,21 +195,22 @@ |
|
|
store: new Ext.data.ArrayStore({ |
|
|
store: new Ext.data.ArrayStore({ |
|
|
fields: ['mode','mode_txt'], |
|
|
fields: ['mode','mode_txt'], |
|
|
data: [ |
|
|
data: [ |
|
|
[-1,'{$Labels->GetLabel('__DISABLED__')}'], |
|
|
|
|
|
[0,'Coil D1'],[1,'Coil D2'],[2,'Coil D3'],[3,'Coil D4'] |
|
|
|
|
|
|
|
|
[0,'{$Labels->GetLabel('__DISABLED__')}'], |
|
|
|
|
|
[1,'Coil D1'],[2,'Coil D2'],[3,'Coil D3'],[4,'Coil D4'] |
|
|
] |
|
|
] |
|
|
}), |
|
|
}), |
|
|
valueField: 'mode', |
|
|
valueField: 'mode', |
|
|
displayField: 'mode_txt', |
|
|
displayField: 'mode_txt', |
|
|
value: '{$SC['crossbar_c']}', |
|
|
|
|
|
|
|
|
value: '0', |
|
|
width: 120, |
|
|
width: 120, |
|
|
listeners:{ |
|
|
listeners:{ |
|
|
select: function( a, c, b ){ |
|
|
select: function( a, c, b ){ |
|
|
//doPlatformOperation( {$SC['platform_id']}, 12, b, true );
|
|
|
|
|
|
|
|
|
doScadaOperation( {$SC['platform_id']}, {$SC['id']}, 23, b, false ); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
},{ |
|
|
},{ |
|
|
xtype: 'combo', |
|
|
xtype: 'combo', |
|
|
|
|
|
id: 'sce_cb_o_4', |
|
|
lazyRender: true, |
|
|
lazyRender: true, |
|
|
mode: 'local', |
|
|
mode: 'local', |
|
|
forceSelection: true, |
|
|
forceSelection: true, |
|
|
@ -212,32 +220,23 @@ |
|
|
store: new Ext.data.ArrayStore({ |
|
|
store: new Ext.data.ArrayStore({ |
|
|
fields: ['mode','mode_txt'], |
|
|
fields: ['mode','mode_txt'], |
|
|
data: [ |
|
|
data: [ |
|
|
[-1,'{$Labels->GetLabel('__DISABLED__')}'], |
|
|
|
|
|
[0,'Coil D1'],[1,'Coil D2'],[2,'Coil D3'],[3,'Coil D4'] |
|
|
|
|
|
|
|
|
[0,'{$Labels->GetLabel('__DISABLED__')}'], |
|
|
|
|
|
[1,'Coil D1'],[2,'Coil D2'],[3,'Coil D3'],[4,'Coil D4'] |
|
|
] |
|
|
] |
|
|
}), |
|
|
}), |
|
|
valueField: 'mode', |
|
|
valueField: 'mode', |
|
|
displayField: 'mode_txt', |
|
|
displayField: 'mode_txt', |
|
|
value: '{$SC['crossbar_d']}', |
|
|
|
|
|
|
|
|
value: '0', |
|
|
width: 120, |
|
|
width: 120, |
|
|
listeners:{ |
|
|
listeners:{ |
|
|
select: function( a, c, b ){ |
|
|
select: function( a, c, b ){ |
|
|
//doPlatformOperation( {$SC['platform_id']}, 12, b, true );
|
|
|
|
|
|
|
|
|
doScadaOperation( {$SC['platform_id']}, {$SC['id']}, 24, b, false ); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
},{ |
|
|
},{ |
|
|
xtype: 'spacer', |
|
|
xtype: 'spacer', |
|
|
height: 10, |
|
|
height: 10, |
|
|
colspan: 4 |
|
|
colspan: 4 |
|
|
},{ |
|
|
|
|
|
xtype: 'panel', |
|
|
|
|
|
colspan: 4, |
|
|
|
|
|
bodyCssClass:'_infoPanel', bodyStyle: 'font-size: 10px; background-color: #000; text-align: center;', |
|
|
|
|
|
html: 'TEST MODBUS MODULE COILS' |
|
|
|
|
|
},{ |
|
|
|
|
|
xtype: 'spacer', |
|
|
|
|
|
height: 5, |
|
|
|
|
|
colspan: 4 |
|
|
|
|
|
},{ |
|
|
},{ |
|
|
xtype: 'button', |
|
|
xtype: 'button', |
|
|
id: 'sc_tbtn_1', |
|
|
id: 'sc_tbtn_1', |
|
|
@ -246,6 +245,7 @@ |
|
|
width: '80%', |
|
|
width: '80%', |
|
|
text: 'Test D1', |
|
|
text: 'Test D1', |
|
|
pressed: {$P1}, |
|
|
pressed: {$P1}, |
|
|
|
|
|
disabled: true, |
|
|
handler: function( b, e ){ |
|
|
handler: function( b, e ){ |
|
|
b.disable(); |
|
|
b.disable(); |
|
|
if( b.pressed ){ |
|
|
if( b.pressed ){ |
|
|
@ -262,6 +262,7 @@ |
|
|
allowDepress: true, |
|
|
allowDepress: true, |
|
|
text: 'Test D2', |
|
|
text: 'Test D2', |
|
|
pressed: {$P2}, |
|
|
pressed: {$P2}, |
|
|
|
|
|
disabled: true, |
|
|
handler: function( b, e ){ |
|
|
handler: function( b, e ){ |
|
|
b.disable(); |
|
|
b.disable(); |
|
|
if( b.pressed ){ |
|
|
if( b.pressed ){ |
|
|
@ -278,6 +279,7 @@ |
|
|
width: '80%', |
|
|
width: '80%', |
|
|
text: 'Test D3', |
|
|
text: 'Test D3', |
|
|
pressed: {$P3}, |
|
|
pressed: {$P3}, |
|
|
|
|
|
disabled: true, |
|
|
handler: function( b, e ){ |
|
|
handler: function( b, e ){ |
|
|
b.disable(); |
|
|
b.disable(); |
|
|
if( b.pressed ){ |
|
|
if( b.pressed ){ |
|
|
@ -294,6 +296,7 @@ |
|
|
width: '80%', |
|
|
width: '80%', |
|
|
text: 'Test D4', |
|
|
text: 'Test D4', |
|
|
pressed: {$P4}, |
|
|
pressed: {$P4}, |
|
|
|
|
|
disabled: true, |
|
|
handler: function( b, e ){ |
|
|
handler: function( b, e ){ |
|
|
b.disable(); |
|
|
b.disable(); |
|
|
if( b.pressed ){ |
|
|
if( b.pressed ){ |
|
|
@ -302,6 +305,130 @@ |
|
|
doPlatformOperation( {$SC['platform_id']}, 18, ({$CCCV} & ( ~8 ) ), false ); |
|
|
doPlatformOperation( {$SC['platform_id']}, 18, ({$CCCV} & ( ~8 ) ), false ); |
|
|
}; |
|
|
}; |
|
|
} |
|
|
} |
|
|
|
|
|
},{ |
|
|
|
|
|
xtype: 'spacer', |
|
|
|
|
|
height: 5, |
|
|
|
|
|
colspan: 4 |
|
|
|
|
|
},{ |
|
|
|
|
|
xtype: 'panel', |
|
|
|
|
|
bodyCssClass:'_infoPanel', bodyStyle: 'font-size: 10px; background-color: #000; text-align: center;', |
|
|
|
|
|
html: 'DI 0 <img id="sce_in_1_img" width="8px" src="/style/assets/sm_ico_gw.png">' |
|
|
|
|
|
},{ |
|
|
|
|
|
xtype: 'panel', |
|
|
|
|
|
bodyCssClass:'_infoPanel', bodyStyle: 'font-size: 10px; background-color: #000; text-align: center;', |
|
|
|
|
|
html: 'DI 1 <img id="sce_in_2_img" width="8px" src="/style/assets/sm_ico_gw.png">' |
|
|
|
|
|
},{ |
|
|
|
|
|
xtype: 'panel', |
|
|
|
|
|
bodyCssClass:'_infoPanel', bodyStyle: 'font-size: 10px; background-color: #000; text-align: center;', |
|
|
|
|
|
html: 'DI 2 <img id="sce_in_3_img" width="8px" src="/style/assets/sm_ico_gw.png">' |
|
|
|
|
|
},{ |
|
|
|
|
|
xtype: 'panel', |
|
|
|
|
|
bodyCssClass:'_infoPanel', bodyStyle: 'font-size: 10px; background-color: #000; text-align: center;', |
|
|
|
|
|
html: 'DI 3 <img id="sce_in_4_img" width="8px" src="/style/assets/sm_ico_gw.png">' |
|
|
|
|
|
},{ |
|
|
|
|
|
xtype: 'spacer', |
|
|
|
|
|
height: 5, |
|
|
|
|
|
colspan: 4 |
|
|
|
|
|
},{ |
|
|
|
|
|
xtype: 'combo', |
|
|
|
|
|
id: 'sce_cb_i_1', |
|
|
|
|
|
lazyRender: true, |
|
|
|
|
|
mode: 'local', |
|
|
|
|
|
forceSelection: true, |
|
|
|
|
|
triggerAction: 'all', |
|
|
|
|
|
editable: false, |
|
|
|
|
|
disableKeyFilter: true, |
|
|
|
|
|
store: new Ext.data.ArrayStore({ |
|
|
|
|
|
fields: ['mode','mode_txt'], |
|
|
|
|
|
data: [ |
|
|
|
|
|
[0,'{$Labels->GetLabel('__DISABLED__')}'], |
|
|
|
|
|
[1,'Upper Track'],[2,'Bottom Track'],[3,'Both'] |
|
|
|
|
|
] |
|
|
|
|
|
}), |
|
|
|
|
|
valueField: 'mode', |
|
|
|
|
|
displayField: 'mode_txt', |
|
|
|
|
|
value: '-1', |
|
|
|
|
|
width: 120, |
|
|
|
|
|
listeners:{ |
|
|
|
|
|
select: function( a, c, b ){ |
|
|
|
|
|
//doPlatformOperation( {$SC['platform_id']}, 12, b, true );
|
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
},{ |
|
|
|
|
|
xtype: 'combo', |
|
|
|
|
|
id: 'sce_cb_i_2', |
|
|
|
|
|
lazyRender: true, |
|
|
|
|
|
mode: 'local', |
|
|
|
|
|
forceSelection: true, |
|
|
|
|
|
triggerAction: 'all', |
|
|
|
|
|
editable: false, |
|
|
|
|
|
disableKeyFilter: true, |
|
|
|
|
|
store: new Ext.data.ArrayStore({ |
|
|
|
|
|
fields: ['mode','mode_txt'], |
|
|
|
|
|
data: [ |
|
|
|
|
|
[0,'{$Labels->GetLabel('__DISABLED__')}'], |
|
|
|
|
|
[1,'Upper Track'],[2,'Bottom Track'],[3,'Both'] |
|
|
|
|
|
] |
|
|
|
|
|
}), |
|
|
|
|
|
valueField: 'mode', |
|
|
|
|
|
displayField: 'mode_txt', |
|
|
|
|
|
value: '-1', |
|
|
|
|
|
width: 120, |
|
|
|
|
|
listeners:{ |
|
|
|
|
|
select: function( a, c, b ){ |
|
|
|
|
|
//doPlatformOperation( {$SC['platform_id']}, 12, b, true );
|
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
},{ |
|
|
|
|
|
xtype: 'combo', |
|
|
|
|
|
id: 'sce_cb_i_3', |
|
|
|
|
|
lazyRender: true, |
|
|
|
|
|
mode: 'local', |
|
|
|
|
|
forceSelection: true, |
|
|
|
|
|
triggerAction: 'all', |
|
|
|
|
|
editable: false, |
|
|
|
|
|
disableKeyFilter: true, |
|
|
|
|
|
store: new Ext.data.ArrayStore({ |
|
|
|
|
|
fields: ['mode','mode_txt'], |
|
|
|
|
|
data: [ |
|
|
|
|
|
[0,'{$Labels->GetLabel('__DISABLED__')}'], |
|
|
|
|
|
[1,'Upper Track'],[2,'Bottom Track'],[3,'Both'] |
|
|
|
|
|
] |
|
|
|
|
|
}), |
|
|
|
|
|
valueField: 'mode', |
|
|
|
|
|
displayField: 'mode_txt', |
|
|
|
|
|
value: '-1', |
|
|
|
|
|
width: 120, |
|
|
|
|
|
listeners:{ |
|
|
|
|
|
select: function( a, c, b ){ |
|
|
|
|
|
//doPlatformOperation( {$SC['platform_id']}, 12, b, true );
|
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
},{ |
|
|
|
|
|
xtype: 'combo', |
|
|
|
|
|
id: 'sce_cb_i_4', |
|
|
|
|
|
lazyRender: true, |
|
|
|
|
|
mode: 'local', |
|
|
|
|
|
forceSelection: true, |
|
|
|
|
|
triggerAction: 'all', |
|
|
|
|
|
editable: false, |
|
|
|
|
|
disableKeyFilter: true, |
|
|
|
|
|
store: new Ext.data.ArrayStore({ |
|
|
|
|
|
fields: ['mode','mode_txt'], |
|
|
|
|
|
data: [ |
|
|
|
|
|
[0,'{$Labels->GetLabel('__DISABLED__')}'], |
|
|
|
|
|
[1,'Upper Track'],[2,'Bottom Track'],[3,'Both'] |
|
|
|
|
|
] |
|
|
|
|
|
}), |
|
|
|
|
|
valueField: 'mode', |
|
|
|
|
|
displayField: 'mode_txt', |
|
|
|
|
|
value: '-1', |
|
|
|
|
|
width: 120, |
|
|
|
|
|
listeners:{ |
|
|
|
|
|
select: function( a, c, b ){ |
|
|
|
|
|
//doPlatformOperation( {$SC['platform_id']}, 12, b, true );
|
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
}] |
|
|
}] |
|
|
},{ |
|
|
},{ |
|
|
xtype: 'spacer', |
|
|
xtype: 'spacer', |
|
|
@ -317,14 +444,10 @@ |
|
|
}], |
|
|
}], |
|
|
listeners: { |
|
|
listeners: { |
|
|
afterrender: function( panel ){ |
|
|
afterrender: function( panel ){ |
|
|
console.log('Panel is Rendered'); |
|
|
|
|
|
|
|
|
fetchScadaEditorStatus(); |
|
|
}, |
|
|
}, |
|
|
beforedestroy: function(panel) { |
|
|
beforedestroy: function(panel) { |
|
|
// Return false to halt destruction
|
|
|
|
|
|
console.log('Panel is about to be destroyed'); |
|
|
|
|
|
}, |
|
|
|
|
|
destroy: function(panel) { |
|
|
|
|
|
console.log('Panel has been destroyed'); |
|
|
|
|
|
|
|
|
stopScadaEditorStatusUpdate(); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|