diff --git a/o2web/source/x_component_Selector/Identity.js b/o2web/source/x_component_Selector/Identity.js index d320af19ce53b0213de41cd2a3191565a7aa714d..65da0246409212405e5c0c58d205cc9352f9ca0c 100644 --- a/o2web/source/x_component_Selector/Identity.js +++ b/o2web/source/x_component_Selector/Identity.js @@ -23,6 +23,10 @@ MWF.xApplication.Selector.Identity = new Class({ this.className = "Identity"; }, loadSelectItems : function(){ + if( this.options.disabled ){ + this.afterLoadSelectItem(); + return; + } if( this.className === "Identity" && (this.options.isCheckStatus || this.options.showSelectedCount )) { var unitList = []; diff --git a/o2web/source/x_component_Selector/IdentityWidthDuty.js b/o2web/source/x_component_Selector/IdentityWidthDuty.js index 49793b69cbcd8f6f8a5b798e5e9413ab77aafe1d..8fc4793b4528f242e124d9336d72ae4e7fa68039 100644 --- a/o2web/source/x_component_Selector/IdentityWidthDuty.js +++ b/o2web/source/x_component_Selector/IdentityWidthDuty.js @@ -24,8 +24,11 @@ MWF.xApplication.Selector.IdentityWidthDuty = new Class({ this.className = "IdentityWidthDuty" }, loadSelectItems: function(addToNext){ - var afterLoadSelectItemFun = this.afterLoadSelectItem.bind(this); + if( this.options.disabled ){ + this.afterLoadSelectItem(); + return; + } if( this.options.resultType === "person" ){ if( this.titleTextNode ){ diff --git a/o2web/source/x_component_Selector/IdentityWidthDutyCategoryByUnit.js b/o2web/source/x_component_Selector/IdentityWidthDutyCategoryByUnit.js index 6f9b79bea38de4a936714e230eb0854335fe27b4..ff0816e0cb420f4e45d4fe237f64f271bfce3f25 100644 --- a/o2web/source/x_component_Selector/IdentityWidthDutyCategoryByUnit.js +++ b/o2web/source/x_component_Selector/IdentityWidthDutyCategoryByUnit.js @@ -33,6 +33,10 @@ MWF.xApplication.Selector.IdentityWidthDutyCategoryByUnit = new Class({ this.options.title = MWF.xApplication.Selector.LP.selectPerson; } } + if( this.options.disabled ){ + this.afterLoadSelectItem(); + return; + } if (this.options.dutys.length){ this.loadInclude( function () { diff --git a/o2web/source/x_component_Selector/Unit.js b/o2web/source/x_component_Selector/Unit.js index 3cd26254b9ca82632c5e418245381ca194b7bf11..3c1c797b4cd7a4120119866ba198a290e37678da 100644 --- a/o2web/source/x_component_Selector/Unit.js +++ b/o2web/source/x_component_Selector/Unit.js @@ -21,6 +21,12 @@ MWF.xApplication.Selector.Unit = new Class({ this.className = "Unit"; }, loadSelectItems: function(addToNext){ + + if( this.options.disabled ){ + this.afterLoadSelectItem(); + return; + } + var afterLoadSelectItemFun = this.afterLoadSelectItem.bind(this); if (this.options.units.length){ diff --git a/o2web/source/x_component_Selector/UnitWithType.js b/o2web/source/x_component_Selector/UnitWithType.js index 8020f6d69f049cfd0d5ea5f1591582999ecb01d6..537d9ce9091525e752a598243b86be574a5194ed 100644 --- a/o2web/source/x_component_Selector/UnitWithType.js +++ b/o2web/source/x_component_Selector/UnitWithType.js @@ -21,6 +21,12 @@ MWF.xApplication.Selector.UnitWithType = new Class({ this.className = "UnitWithType"; }, loadSelectItems: function(addToNext){ + + if( this.options.disabled ){ + this.afterLoadSelectItem(); + return; + } + var afterLoadSelectItemFun = this.afterLoadSelectItem.bind(this); var data = {}; diff --git a/o2web/source/x_component_process_Work/Processor.js b/o2web/source/x_component_process_Work/Processor.js index a7ab6e3700054f492f83cf956111e2e12abb5819..b79d61f9772029ce3fc7bf19b5aea2baae99ccae 100644 --- a/o2web/source/x_component_process_Work/Processor.js +++ b/o2web/source/x_component_process_Work/Processor.js @@ -1725,13 +1725,15 @@ if( MWF.xApplication.process.Xform && MWF.xApplication.process.Xform.Form ){ if (this.json.identityRange!=="all"){ if ( !identityOpt.noUnit && (!identityOpt.units || !identityOpt.units.length) ){ this.form.notice(MWF.xApplication.process.Xform.LP.noIdentitySelectRange, "error", this.node); - return false; + identityOpt.disabled = true; + // return false; } } if ( !identityOpt.noUnit && this.json.dutyRange && this.json.dutyRange!=="all"){ if (!identityOpt.dutys || !identityOpt.dutys.length){ this.form.notice(MWF.xApplication.process.Xform.LP.noIdentityDutySelectRange, "error", this.node); - return false; + identityOpt.disabled = true; + // return false; } } if( this.ignoreOldData ){ @@ -1748,7 +1750,8 @@ if( MWF.xApplication.process.Xform && MWF.xApplication.process.Xform.Form ){ if (this.json.unitRange!=="all"){ if ( !unitOpt.units || !unitOpt.units.length){ this.form.notice(MWF.xApplication.process.Xform.LP.noUnitSelectRange, "error", this.node); - return false; + unitOpt.disabled = true; + // return false; } } if( this.ignoreOldData ){ diff --git a/o2web/source/x_component_process_Xform/Org.js b/o2web/source/x_component_process_Xform/Org.js index 069c78ad6d48a0358b8f80c94bcc1adb37b37a1d..fefb0af0913ba62d1e157997ef1aaaa54ab9a2a7 100644 --- a/o2web/source/x_component_process_Xform/Org.js +++ b/o2web/source/x_component_process_Xform/Org.js @@ -166,13 +166,15 @@ MWF.xApplication.process.Xform.Org = MWF.APPOrg = new Class({ if (this.json.identityRange!=="all"){ if ( !identityOpt.noUnit && (!identityOpt.units || !identityOpt.units.length) ){ this.form.notice(MWF.xApplication.process.Xform.LP.noIdentitySelectRange, "error", this.node); - return false; + identityOpt.disabled = true; + // return false; } } if ( !identityOpt.noUnit && this.json.dutyRange && this.json.dutyRange!=="all"){ if (!identityOpt.dutys || !identityOpt.dutys.length){ this.form.notice(MWF.xApplication.process.Xform.LP.noIdentityDutySelectRange, "error", this.node); - return false; + identityOpt.disabled = true; + // return false; } } identityOpt.values = (this.json.isInput) ? [] : values; @@ -186,7 +188,8 @@ MWF.xApplication.process.Xform.Org = MWF.APPOrg = new Class({ if (this.json.unitRange!=="all"){ if ( !unitOpt.units || !unitOpt.units.length){ this.form.notice(MWF.xApplication.process.Xform.LP.noUnitSelectRange, "error", this.node); - return false; + unitOpt.disabled = true; + // return false; } } unitOpt.values = (this.json.isInput) ? [] : values;