|
@@ -1637,3 +1637,162 @@ var fill_uiwin = function(json) {
|
|
data.push(obj);
|
|
data.push(obj);
|
|
}
|
|
}
|
|
var themecolor = ((theme == '') || (theme == 'access')) ? '#ffffff' : '#000000';
|
|
var themecolor = ((theme == '') || (theme == 'access')) ? '#ffffff' : '#000000';
|
|
|
|
+ Highcharts.chart('detail_area', {
|
|
|
|
+ chart: {
|
|
|
|
+ type: 'column',
|
|
|
|
+ backgroundColor: 'rgba(0,0,0,0)'
|
|
|
|
+ },
|
|
|
|
+ title: {
|
|
|
|
+ text: '用户传输装置报告类型统计',
|
|
|
|
+ style: { fontSize: '14px', color: themecolor, fontWeight: 'bold' },
|
|
|
|
+ },
|
|
|
|
+ xAxis: {
|
|
|
|
+ type: 'category',
|
|
|
|
+ labels: {
|
|
|
|
+ style: { fontSize: '12px', color: themecolor, fontWeight: 'bold' }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ yAxis: {
|
|
|
|
+ title: {
|
|
|
|
+ text: '报告计次',
|
|
|
|
+ style: { fontSize: '14px', color: themecolor, fontWeight: 'bold' }
|
|
|
|
+ },
|
|
|
|
+ labels: {
|
|
|
|
+ style: { fontSize: '12px', color: themecolor, fontWeight: 'bold' }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ legend: {
|
|
|
|
+ enabled: false
|
|
|
|
+ },
|
|
|
|
+ exporting: {
|
|
|
|
+ enabled: false
|
|
|
|
+ },
|
|
|
|
+ credits: {
|
|
|
|
+ enabled: false
|
|
|
|
+ },
|
|
|
|
+ series: [{
|
|
|
|
+ name: '报告计次',
|
|
|
|
+ data: data,
|
|
|
|
+ dataLabels: {
|
|
|
|
+ enabled: true,
|
|
|
|
+ rotation: -90,
|
|
|
|
+ align: 'right',
|
|
|
|
+ format: '{point.y}',
|
|
|
|
+ style: { fontSize: '14px', color: themecolor, fontWeight: 'bold' },
|
|
|
|
+ y: 10
|
|
|
|
+ },
|
|
|
|
+ colorByPoint: true
|
|
|
|
+ }]
|
|
|
|
+
|
|
|
|
+ });
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+var show_userinfo_detail = function(devId) {
|
|
|
|
+ var device_id = devId;
|
|
|
|
+ Ext.create('Ext.window.Window', {
|
|
|
|
+ id: 'detail_userinfo_win',
|
|
|
|
+ title: '<div id="detail_userinfo_title">用户传输装置信息</div>',
|
|
|
|
+ bodyStyle: 'background-color:rgba(0,0,0,0.0);',
|
|
|
|
+ height: 400,
|
|
|
|
+ width: 1110,
|
|
|
|
+ modal: true,
|
|
|
|
+ layout: {
|
|
|
|
+ type: 'table',
|
|
|
|
+ columns: 6,
|
|
|
|
+ tableAttrs: {
|
|
|
|
+ style: {
|
|
|
|
+ width: '100%'
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ buttons: [{
|
|
|
|
+ text: '查岗',
|
|
|
|
+ handler: function() {
|
|
|
|
+ var query = new Object();
|
|
|
|
+ query.V_LOGINNAME = V_LOGINNAME;
|
|
|
|
+ query.V_PASSWORD = V_PASSWORD;
|
|
|
|
+ query.DEVICE_ID = devId;
|
|
|
|
+ query.CMD = 91;
|
|
|
|
+ query.LIMIT = 10;
|
|
|
|
+ var qjson = Ext.JSON.encode(query);
|
|
|
|
+ var url = ((company_code == "10012") ? "http://47.103.74.123:8080/YtIoT/cgi-bin/DPAction2.cgi?t=" : "http://47.103.74.123:8080/YtIoT/cgi-bin/DPAction.cgi?t=") + (new Date().getTime());
|
|
|
|
+ $.ajax({
|
|
|
|
+ type: 'POST',
|
|
|
|
+ url: url,
|
|
|
|
+ data: qjson,
|
|
|
|
+ success: function(result) {
|
|
|
|
+ var json = eval('(' + result + ')');
|
|
|
|
+ if (json.RESULT == '1') {
|
|
|
|
+ Ext.Msg.alert('操作信息', '命令已下发');
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ }, {
|
|
|
|
+ text: '清空',
|
|
|
|
+ handler: function() {
|
|
|
|
+ var query = new Object();
|
|
|
|
+ query.V_LOGINNAME = V_LOGINNAME;
|
|
|
|
+ query.V_PASSWORD = V_PASSWORD;
|
|
|
|
+ query.DEVICE_ID = devId;
|
|
|
|
+ query.CMD = 92;
|
|
|
|
+ query.LIMIT = 0;
|
|
|
|
+ var qjson = Ext.JSON.encode(query);
|
|
|
|
+ var url = ((company_code == "10012") ? "http://47.103.74.123:8080/YtIoT/cgi-bin/DPAction2.cgi?t=" : "http://47.103.74.123:8080/YtIoT/cgi-bin/DPAction.cgi?t=") + (new Date().getTime());
|
|
|
|
+ $.ajax({
|
|
|
|
+ type: 'POST',
|
|
|
|
+ url: url,
|
|
|
|
+ data: qjson,
|
|
|
|
+ success: function(result) {
|
|
|
|
+ var json = eval('(' + result + ')');
|
|
|
|
+ if (json.RESULT == '1') {
|
|
|
|
+ Ext.Msg.alert('操作信息', '命令已下发');
|
|
|
|
+ fill_uiwin(json);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ }, {
|
|
|
|
+ text: '查询',
|
|
|
|
+ handler: function() {
|
|
|
|
+ var query = new Object();
|
|
|
|
+ query.V_LOGINNAME = V_LOGINNAME;
|
|
|
|
+ query.V_PASSWORD = V_PASSWORD;
|
|
|
|
+ query.DEVICE_ID = devId;
|
|
|
|
+ query.CMD = 93;
|
|
|
|
+ query.PARAM = 0;
|
|
|
|
+ var qjson = Ext.JSON.encode(query);
|
|
|
|
+ var url = ((company_code == "10012") ? "http://47.103.74.123:8080/YtIoT/cgi-bin/DPAction2.cgi?t=" : "http://47.103.74.123:8080/YtIoT/cgi-bin/DPAction.cgi?t=") + (new Date().getTime());
|
|
|
|
+ $.ajax({
|
|
|
|
+ type: 'POST',
|
|
|
|
+ url: url,
|
|
|
|
+ data: qjson,
|
|
|
|
+ success: function(result) {
|
|
|
|
+ var json = eval('(' + result + ')');
|
|
|
|
+ if (json.RESULT == '1') {
|
|
|
|
+ fill_uiwin(json);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ }, {
|
|
|
|
+ text: '关闭',
|
|
|
|
+ handler: function() {
|
|
|
|
+ Ext.getCmp('detail_userinfo_win').destroy();
|
|
|
|
+ }
|
|
|
|
+ }],
|
|
|
|
+ tbar: ['->', {
|
|
|
|
+ xtype: 'checkbox',
|
|
|
|
+ boxLabel: '语音推送',
|
|
|
|
+ id: 'userinfo_pushtts',
|
|
|
|
+ checked: true,
|
|
|
|
+ hidden: true,
|
|
|
|
+ handler: function() {
|
|
|
|
+ if (!fillvalue) {
|
|
|
|
+ var pushtts = Ext.getCmp('userinfo_pushtts').getValue();
|
|
|
|
+ Ext.create('Ext.window.Window', {
|
|
|
|
+ id: 'detail_userinfo_pushset_win',
|
|
|
|
+ title: '请验证身份',
|
|
|
|
+ width: 320,
|
|
|
|
+ height: 240,
|