Browse Source

凌云集团更改公司

peiguo 5 years ago
parent
commit
ca9e96c06e

+ 30 - 0
admin-ui/app/whepi/scan/specialPersonnel.js

@@ -3,6 +3,18 @@ define(function (require) {
 
             var $grid1, $form;
 
+            // 弹框的方式
+            var widgets = {
+                // 搜索分类检索
+                selectTableUnit: {
+                    url: 'app/whepi/home/selectLYbumen.js',
+                    bind: {
+                        unitId: 'unitId',
+                        unit: 'unit',
+                    },
+                },
+            };
+
             // 输入搜索文本后点击回车按钮查询列表
             function enterQueryGrid1(e) {
                 if (e.keyCode === 13) {
@@ -58,6 +70,24 @@ define(function (require) {
                         labelWidth: 'auto',
                         events: {keydown: enterQueryGrid1}, width: 350
                     },
+                    {xtype: 'hidden', name: 'unitId'},
+                    {
+                        xtype: 'searchbox',
+                        label: '部门',
+                        labelWidth: 'auto',
+                        name: 'unit',
+                        prompt: "部门",
+                        width: 250,
+                        widget: widgets.selectTableUnit,// 弹出框方法
+                        onChange: function (value) {
+                            if (!isNotNullOrEmpty(value)) {
+                                $form.formSet({
+                                    unitId : ''
+                                })
+                            }
+                            queryGrid1();
+                        },
+                    },
                     {
                         xtype: 'textbox',
                         label: '电话',

+ 30 - 0
admin-ui/app/whepi/scan/specialPersonnelHC.js

@@ -3,6 +3,18 @@ define(function (require) {
 
             var $grid1, $form;
 
+            // 弹框的方式
+            var widgets = {
+                // 搜索分类检索
+                selectTableUnit: {
+                    url: 'app/whepi/home/selectLYbumen.js',
+                    bind: {
+                        unitId: 'unitId',
+                        unit: 'unit',
+                    },
+                },
+            };
+
             // 输入搜索文本后点击回车按钮查询列表
             function enterQueryGrid1(e) {
                 if (e.keyCode === 13) {
@@ -65,6 +77,24 @@ define(function (require) {
                         labelWidth: 'auto',
                         events: {keydown: enterQueryGrid1}, width: 350
                     },
+                    {xtype: 'hidden', name: 'unitId'},
+                    {
+                        xtype: 'searchbox',
+                        label: '部门',
+                        labelWidth: 'auto',
+                        name: 'unit',
+                        prompt: "部门",
+                        width: 250,
+                        widget: widgets.selectTableUnit,// 弹出框方法
+                        onChange: function (value) {
+                            if (!isNotNullOrEmpty(value)) {
+                                $form.formSet({
+                                    unitId : ''
+                                })
+                            }
+                            queryGrid1();
+                        },
+                    },
                     {
                         xtype: 'textbox',
                         label: '电话',

+ 18 - 0
admin-ui/app/whepi/scan/specialPersonnelLY.js

@@ -65,6 +65,24 @@ define(function (require) {
                         labelWidth: 'auto',
                         events: {keydown: enterQueryGrid1}, width: 350
                     },
+                    {xtype: 'hidden', name: 'unitId'},
+                    {
+                        xtype: 'searchbox',
+                        label: '部门',
+                        labelWidth: 'auto',
+                        name: 'unit',
+                        prompt: "部门",
+                        width: 250,
+                        widget: widgets.selectTableUnit,// 弹出框方法
+                        onChange: function (value) {
+                            if (!isNotNullOrEmpty(value)) {
+                                $form.formSet({
+                                    unitId : ''
+                                })
+                            }
+                            queryGrid1();
+                        },
+                    },
                     {
                         xtype: 'textbox',
                         label: '电话',

+ 30 - 0
admin-ui/app/whepi/scan/specialPersonnelLY2.js

@@ -3,6 +3,18 @@ define(function (require) {
 
             var $grid1, $form;
 
+            // 弹框的方式
+            var widgets = {
+                // 搜索分类检索
+                selectTableUnit: {
+                    url: 'app/whepi/home/selectLYbumen.js',
+                    bind: {
+                        unitId: 'unitId',
+                        unit: 'unit',
+                    },
+                },
+            };
+
             // 输入搜索文本后点击回车按钮查询列表
             function enterQueryGrid1(e) {
                 if (e.keyCode === 13) {
@@ -65,6 +77,24 @@ define(function (require) {
                         labelWidth: 'auto',
                         events: {keydown: enterQueryGrid1}, width: 350
                     },
+                    {xtype: 'hidden', name: 'unitId'},
+                    {
+                        xtype: 'searchbox',
+                        label: '部门',
+                        labelWidth: 'auto',
+                        name: 'unit',
+                        prompt: "部门",
+                        width: 250,
+                        widget: widgets.selectTableUnit,// 弹出框方法
+                        onChange: function (value) {
+                            if (!isNotNullOrEmpty(value)) {
+                                $form.formSet({
+                                    unitId : ''
+                                })
+                            }
+                            queryGrid1();
+                        },
+                    },
                     {
                         xtype: 'textbox',
                         label: '电话',

+ 30 - 0
admin-ui/app/whepi/scan/specialPersonnelLYSix.js

@@ -3,6 +3,18 @@ define(function (require) {
 
             var $grid1, $form;
 
+            // 弹框的方式
+            var widgets = {
+                // 搜索分类检索
+                selectTableUnit: {
+                    url: 'app/whepi/home/selectLYbumen.js',
+                    bind: {
+                        unitId: 'unitId',
+                        unit: 'unit',
+                    },
+                },
+            };
+
             // 输入搜索文本后点击回车按钮查询列表
             function enterQueryGrid1(e) {
                 if (e.keyCode === 13) {
@@ -65,6 +77,24 @@ define(function (require) {
                         labelWidth: 'auto',
                         events: {keydown: enterQueryGrid1}, width: 350
                     },
+                    {xtype: 'hidden', name: 'unitId'},
+                    {
+                        xtype: 'searchbox',
+                        label: '部门',
+                        labelWidth: 'auto',
+                        name: 'unit',
+                        prompt: "部门",
+                        width: 250,
+                        widget: widgets.selectTableUnit,// 弹出框方法
+                        onChange: function (value) {
+                            if (!isNotNullOrEmpty(value)) {
+                                $form.formSet({
+                                    unitId : ''
+                                })
+                            }
+                            queryGrid1();
+                        },
+                    },
                     {
                         xtype: 'textbox',
                         label: '电话',

+ 6 - 0
whepi-web/src/main/resources/mapper/OutUserMapper.xml

@@ -24,6 +24,9 @@
             <if test="tuType != null and tuType !=''">
                 and u.tu_type = #{tuType}
             </if>
+            <if test="unitId != null and unitId !=''">
+                and uu.unit_id = #{unitId}
+            </if>
         </where>
         order by u.time_update desc
     </select>
@@ -50,6 +53,9 @@
             <if test="tuType != null and tuType !=''">
                 and u.tu_type = #{tuType}
             </if>
+            <if test="unitId != null and unitId !=''">
+                and uu.unit_id = #{unitId}
+            </if>
         </where>
         order by u.time_update desc
     </select>