|
@@ -2520,3 +2520,97 @@ Ext.onReady(function() {
|
|
|
name: 'uf_clwb',
|
|
|
maxLength: 200,
|
|
|
anchor: '65%'
|
|
|
+ }, radiogroup, radiogroup2, {
|
|
|
+ fieldLabel: '处理人',
|
|
|
+ id: 'uf_clr',
|
|
|
+ name: 'uf_clr',
|
|
|
+ maxLength: 120,
|
|
|
+ anchor: '65%'
|
|
|
+ }, {
|
|
|
+ fieldLabel: '处理时间',
|
|
|
+ id: 'uf_clsj',
|
|
|
+ name: 'uf_clsj',
|
|
|
+ maxLength: 200,
|
|
|
+ anchor: '80%'
|
|
|
+ }, {
|
|
|
+ fieldLabel: '处理内容',
|
|
|
+ id: 'uf_clnr',
|
|
|
+ name: 'uf_clnr',
|
|
|
+ xtype: 'textareafield',
|
|
|
+ maxLength: 250,
|
|
|
+ cols: 4,
|
|
|
+ anchor: '100%'
|
|
|
+ }, {
|
|
|
+ id: 'fm_queryJson',
|
|
|
+ name: 'queryJson',
|
|
|
+ hidden: true
|
|
|
+ }],
|
|
|
+ buttons: [{
|
|
|
+ text: '处理',
|
|
|
+ id: 'confirmBtn',
|
|
|
+ disabled: (V_LOGINNAME == 'guest' ? true : false),
|
|
|
+ iconCls: 'ok_btn',
|
|
|
+ handler: function() {
|
|
|
+ var form = this.up('form').getForm();
|
|
|
+ if (form.isValid()) {
|
|
|
+ var queryJson = new Object();
|
|
|
+ queryJson.V_LOGINNAME = V_LOGINNAME;
|
|
|
+ queryJson.V_PASSWORD = V_PASSWORD;
|
|
|
+ queryJson.dwtype = Ext.getCmp('uf_dwtype').getValue();;
|
|
|
+ queryJson.id = Ext.getCmp('uf_id').getValue();
|
|
|
+ queryJson.status = Ext.getCmp('uf_status').getValue();
|
|
|
+ queryJson.name = Ext.getCmp('uf_name').getValue();
|
|
|
+ queryJson.device_code = Ext.getCmp('uf_device_code').getValue();
|
|
|
+ queryJson.confirmAll = Ext.getCmp('uf_r_clfw').getChecked()[0].boxLabel == '单一' ? '0' : '1';
|
|
|
+ queryJson.clwb = Ext.getCmp('uf_r_clwb').getChecked()[0].boxLabel == '否' ? '0' : '1';
|
|
|
+ queryJson.clnr = Ext.getCmp('uf_clnr').getValue();
|
|
|
+ var jsonstr = Ext.JSON.encode(queryJson);
|
|
|
+ Ext.getCmp('fm_queryJson').setValue(jsonstr);
|
|
|
+ form.submit({
|
|
|
+ method: 'post',
|
|
|
+ success: function(form, action) {
|
|
|
+ Ext.Msg.alert('操作成功', '已确认' + action.result.activerow + '条记录', function(btn, txt) {
|
|
|
+ clear_modify_form();
|
|
|
+ var div = window.top.$("#history_alarm_list").content;
|
|
|
+ div.storeReload2();
|
|
|
+ });
|
|
|
+ },
|
|
|
+ failure: function(form, action) {
|
|
|
+ Ext.Msg.alert('操作失败', action.Msg, function(btn, txt) {
|
|
|
+ clear_modify_form();
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ this.up('window').close();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }, {
|
|
|
+ text: '关闭',
|
|
|
+ iconCls: 'cancel_btn',
|
|
|
+ handler: function() {
|
|
|
+ this.up('window').close();
|
|
|
+ }
|
|
|
+ }]
|
|
|
+ });
|
|
|
+ vAlarmInfoWin = Ext.create('Ext.window.Window', {
|
|
|
+ id: 'VAlarmInfoWin',
|
|
|
+ title: '详细信息: <span id="VInfoWin_Title"></span>',
|
|
|
+ height: 400,
|
|
|
+ width: 400,
|
|
|
+ layout: 'border',
|
|
|
+ closable: false,
|
|
|
+ modal: true,
|
|
|
+ closeAction: 'hide',
|
|
|
+ items: [{
|
|
|
+ id: 'picPanel',
|
|
|
+ region: 'west',
|
|
|
+ width: 300,
|
|
|
+ html: '<div id="alarm_pic"></div>'
|
|
|
+ }, alarmInfoForm]
|
|
|
+ }).hide();
|
|
|
+ getCompanyInfo();
|
|
|
+ $(window).resize(function() {
|
|
|
+ body_resize();
|
|
|
+ });
|
|
|
+ body_resize();
|
|
|
+});
|