Browse Source

3dDisplayEngine company.js 唐峰 commit at 2021-04-19

唐峰 4 năm trước cách đây
mục cha
commit
0d0d84c4aa
1 tập tin đã thay đổi với 157 bổ sung0 xóa
  1. 157 0
      3dDisplayEngine/buildingJs/company.js

+ 157 - 0
3dDisplayEngine/buildingJs/company.js

@@ -2363,3 +2363,160 @@ Ext.onReady(function() {
         }, {
             xtype: 'textfield',
             id: 'fa_factory_queryJson',
+            name: 'queryJson',
+            hidden: true
+        }],
+        buttons: [{
+            text: '保存',
+            iconCls: 'ok_btn',
+            handler: function() {
+                var form = this.up('form').getForm();
+                if (form.isValid()) {
+                    var query = new Object();
+                    query.company_code = Ext.getCmp('fa_company_code').getValue();
+                    var jsonstr = Ext.JSON.encode(query);
+                    Ext.getCmp('fa_factory_queryJson').setValue(jsonstr);
+                    Ext.Msg.alert('操作成功', '已保存', function(btn, txt) {
+                        //					clear_modify_form();
+                    });
+                    //					form.submit({
+                    //						method:'post',
+                    //						success: function(form, action) {
+                    //							Ext.Msg.alert('操作成功', '已保存', function(btn,txt){
+                    ////								clear_modify_form();
+                    //							});
+                    //						},
+                    //						failure: function(form, action) {
+                    //							Ext.Msg.alert('操作成功', '已保存', function(btn,txt){
+                    ////								clear_modify_form();
+                    //							});
+                    //
+                    ////							Ext.Msg.alert('操作失败', action.Msg , function(btn,txt){
+                    ////								clear_modify_form();
+                    ////							});
+                    //						}
+                    //					});
+                    this.up('window').hide();
+                }
+            }
+        }, {
+            text: '关闭',
+            iconCls: 'cancel_btn',
+            handler: function() {
+                this.up('window').hide();
+            }
+        }]
+    });
+
+    modifywin = function() {
+        Ext.create('Ext.window.Window', {
+            title: '楼层平面图上传',
+            height: 250,
+            width: 400,
+            modal: true,
+            layout: 'fit',
+            items: ModifyForm,
+            closeAction: 'hide'
+        }).show();
+    }
+    var radiogroup = new Ext.create('Ext.form.RadioGroup', {
+        fieldLabel: '误报',
+        id: 'uf_r_clwb',
+        width: 300,
+        items: [{
+            name: 'uf_r_clwb',
+            inputValue: '1',
+            boxLabel: '是'
+        }, {
+            name: 'uf_r_clwb',
+            inputValue: '0',
+            boxLabel: '否',
+            checked: true
+        }]
+    });
+    var radiogroup2 = new Ext.create('Ext.form.RadioGroup', {
+        fieldLabel: '处理范围',
+        id: 'uf_r_clfw',
+        width: 300,
+        items: [{
+            name: 'uf_r_clfw',
+            inputValue: '1',
+            boxLabel: '批量'
+        }, {
+            name: 'uf_r_clfw',
+            inputValue: '0',
+            boxLabel: '单一',
+            checked: true
+        }]
+    });
+    var clear_modify_form = function() {
+        Ext.getCmp('uf_company_name').setValue('');
+        Ext.getCmp('uf_name').setValue('');
+        Ext.getCmp('uf_device_code').setValue('');
+        Ext.getCmp('uf_id').setValue('');
+        Ext.getCmp('uf_status').setValue('');
+        Ext.getCmp('uf_dwtype').setValue('');
+        Ext.getCmp('uf_fullname').setValue('');
+        Ext.getCmp('uf_clwb').setValue('');
+        Ext.getCmp('uf_clr').setValue('');
+        Ext.getCmp('uf_clsj').setValue('');
+        Ext.getCmp('uf_clnr').setValue('');
+    }
+    //	var picPanel = Ext.create('Ext.panel.Panel',{
+    //		id:'picPanel',
+    //		region:'left',
+    //		width:300,
+    //		html:'<div id="alarm_pic"></div>'
+    //	});
+    var alarmInfoForm = Ext.create('Ext.form.Panel', {
+        id: 'alarmInfoForm',
+        //		width:400,
+        labelWidth: 55,
+        url: basePath + 'iot/frontpage/updateAlarm',
+        region: 'center',
+        defaultType: 'textfield',
+        bodyPadding: 15,
+        items: [{
+            fieldLabel: '单位名称',
+            id: 'uf_company_name',
+            name: 'uf_company_name',
+            anchor: '90%'
+        }, {
+            fieldLabel: '监控设备',
+            id: 'uf_name',
+            name: 'uf_name',
+            anchor: '100%'
+        }, {
+            fieldLabel: '设备编号',
+            id: 'uf_device_code',
+            name: 'uf_device_code',
+            hidden: true
+        }, {
+            fieldLabel: '记录编号',
+            id: 'uf_id',
+            name: 'uf_id',
+            hidden: true
+        }, {
+            fieldLabel: '设备编号',
+            id: 'uf_status',
+            name: 'uf_status',
+            hidden: true
+        }, {
+            fieldLabel: '设备类型',
+            id: 'uf_dwtype',
+            name: 'uf_dwtype',
+            hidden: true
+        }, {
+            fieldLabel: '报告信息',
+            id: 'uf_fullname',
+            name: 'uf_fullname',
+            xtype: 'textareafield',
+            maxLength: 250,
+            cols: 4,
+            anchor: '100%'
+        }, {
+            fieldLabel: '误报',
+            id: 'uf_clwb',
+            name: 'uf_clwb',
+            maxLength: 200,
+            anchor: '65%'