Просмотр исходного кода

考勤,前端修改统计周期设置选部门

luojing 5 лет назад
Родитель
Сommit
8a3a6d576a
1 измененных файлов с 2 добавлено и 10 удалено
  1. 2 10
      o2web/source/x_component_Attendance/StatisticsCycle.js

+ 2 - 10
o2web/source/x_component_Attendance/StatisticsCycle.js

@@ -105,16 +105,8 @@ MWF.xApplication.Attendance.StatisticsCycle.Form = new Class({
             this.form = new MForm( this.formTableArea, this.data, {
             this.form = new MForm( this.formTableArea, this.data, {
                 isEdited : this.isEdited || this.isNew,
                 isEdited : this.isEdited || this.isNew,
                 itemTemplate : {
                 itemTemplate : {
-                    topUnitName : { text: "统计公司",  tType : "unit",unsetDefaultEvent : true, event : {
-                        dblclick : function(item, ev){
-                            item.selectPerson(item.getElements()[0],"","unit")
-                        }
-                    }},
-                    unitName : { text: "统计部门", tType : "unit",unsetDefaultEvent : true, event : {
-                        dblclick : function(item, ev){
-                            item.selectPerson(item.getElements()[0],"","unit")
-                        }
-                    } },
+                    topUnitName : { text:"统计公司", type : "org", orgType : "unit" },
+                    unitName : { text: "统计部门", type : "org", orgType : "unit" },
                     cycleYear : { text: "统计周期年份", type : "select", notEmpty:true, defaultValue : new Date().getFullYear(), selectValue : function(){
                     cycleYear : { text: "统计周期年份", type : "select", notEmpty:true, defaultValue : new Date().getFullYear(), selectValue : function(){
                         var years = [];
                         var years = [];
                         var year = new Date().getFullYear() + 5;
                         var year = new Date().getFullYear() + 5;