Bladeren bron

Merge branch 'feature/attendancece_js_0104' into 'wrdp'

考勤,修复前端切换考勤策略保存不成功的问题

See merge request o2oa/o2oa!2820
o2null 5 jaren geleden
bovenliggende
commit
9bd5674b24

+ 2 - 2
o2web/source/x_component_Attendance/Explorer.js

@@ -767,7 +767,6 @@ MWF.xApplication.Attendance.Explorer.PopupForm = new Class({
         this.cancelActionNode.addEvent("click", function(e){
         this.cancelActionNode.addEvent("click", function(e){
             this.cancel(e);
             this.cancel(e);
         }.bind(this));
         }.bind(this));
-
         if( this.isNew || this.isEdited){
         if( this.isNew || this.isEdited){
 
 
             this.okActionNode = new Element("div", {
             this.okActionNode = new Element("div", {
@@ -789,7 +788,8 @@ MWF.xApplication.Attendance.Explorer.PopupForm = new Class({
         delete this;
         delete this;
     },
     },
     ok: function(e){
     ok: function(e){
-        var data = this.form.getResult(true,",",true,false,true);
+        debugger
+        var data = this.form.getResult(false,",",true,false,true);
         if( data ){
         if( data ){
             this._ok( data, function( json ){
             this._ok( data, function( json ){
                 if( json.type == "ERROR" ){
                 if( json.type == "ERROR" ){

+ 3 - 2
o2web/source/x_component_Attendance/ScheduleExplorer.js

@@ -85,7 +85,7 @@ MWF.xApplication.Attendance.ScheduleExplorer.Schedule = new Class({
     Extends: MWF.xApplication.Attendance.Explorer.PopupForm,
     Extends: MWF.xApplication.Attendance.Explorer.PopupForm,
     options : {
     options : {
         "width": 600,
         "width": 600,
-        "height": 500,
+        "height": 600,
         "hasTop" : true,
         "hasTop" : true,
         "hasBottom" : true,
         "hasBottom" : true,
         "title" : "",
         "title" : "",
@@ -125,7 +125,7 @@ MWF.xApplication.Attendance.ScheduleExplorer.Schedule = new Class({
 
 
         this.formTableArea.set("html",html);
         this.formTableArea.set("html",html);
         MWF.xDesktop.requireApp("Template", "MForm", function(){
         MWF.xDesktop.requireApp("Template", "MForm", function(){
-
+            debugger
             var ob = Object;
             var ob = Object;
             this.form = new MForm( this.formTableArea, this.data, {
             this.form = new MForm( this.formTableArea, this.data, {
                 onPostLoad: function(){
                 onPostLoad: function(){
@@ -207,6 +207,7 @@ MWF.xApplication.Attendance.ScheduleExplorer.Schedule = new Class({
     },
     },
     _ok: function( data, callback ){
     _ok: function( data, callback ){
         //checkDate
         //checkDate
+        debugger
         var dateList = [];
         var dateList = [];
         var signProxy = data.signProxy;
         var signProxy = data.signProxy;
         if(signProxy!=1){
         if(signProxy!=1){