profoundjs 7.25.0 → 7.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/htdocs/profoundui/proddata/js/atrium.js +204 -200
- package/htdocs/profoundui/proddata/js/coder-url-rewriter.js +10 -0
- package/htdocs/profoundui/proddata/js/designer.js +3787 -3778
- package/htdocs/profoundui/proddata/js/genie.js +2271 -2263
- package/htdocs/profoundui/proddata/js/runtime.js +1027 -1024
- package/htdocs/profoundui/proddata/js/signon.js +35 -34
- package/package.json +6 -6
- package/profound.jse +1 -1
- package/setup/pjsdist.savf +0 -0
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
window.pui||(window.pui={});window.pui.baseVersion="6";window.pui.fixPackVersion="35.0";window.pui.version=window.pui.baseVersion+"."+window.pui.fixPackVersion;function b(c){this.onready=this.onfail=this.onsuccess=this.cacheBuster=this.suppressAlert=this.password=this.user=this.async=this.url=this.reqData=this.postData=this.method=null;this.headers={};this.params=null;this.sendAsBinary=!0;var a=this.overrideMimeType=null,d=null,e=null,f=null,g="undefined"!=typeof pui&&"undefined"!=typeof pui.alert?pui.alert:alert,h=this;b.defaultHeaders&&(this.headers=b.defaultHeaders);if("object"==typeof c)for(var l in c)"undefined"!=typeof this[l]&&(this[l]=c[l]);else this.url=
|
|
2
|
-
c;if(window.XMLHttpRequest)a=new XMLHttpRequest;else if(window.ActiveXObject)a=new ActiveXObject("Microsoft.XMLHTTP");else{g("Ajax request error: Unsupported browser.");return}this.send=this.send=function(){function
|
|
3
|
-
h.onfail)h.onfail(h);f=!1}}var k,
|
|
2
|
+
c;if(window.XMLHttpRequest)a=new XMLHttpRequest;else if(window.ActiveXObject)a=new ActiveXObject("Microsoft.XMLHTTP");else{g("Ajax request error: Unsupported browser.");return}this.send=this.send=function(){function n(){if(4==a.readyState){d=0===a.status?F?"Request aborted.":"Request failed. Check the browser console for more details.":a.status+" - "+a.statusText;if(null!=h.onready)h.onready(h);if(200==a.status){if(e=!0,null!=h.onsuccess)h.onsuccess(h)}else if(e=!1,1!=h.suppressAlert&&g(d),null!=
|
|
3
|
+
h.onfail)h.onfail(h);f=!1}}var k,m=null,r=null,p=null;if(null==h.method)m="GET";else if("string"==typeof h.method||"GET"==h.method.toUpperCase()&&"POST"==h.method.toUpperCase()&&"PUT"==h.method.toUpperCase()&&"DELETE"==h.method.toUpperCase())m=h.method.toUpperCase();else{g('Invalid value for property: "method".');return}if("POST"==m||"PUT"==m||"DELETE"==m)if(null!=h.reqData?p=h.reqData:null!=h.postData&&(p=h.postData),null!=p){if("string"!=typeof p){g('Invalid value for property: "postData".');return}}else p=
|
|
4
4
|
"";if(null==h.async)r=!0;else{if(1!=h.async&&0!=h.async){g('Invalid value for property: "async".');return}r=h.async}if("string"!=typeof h.url)g('Invalid value for property: "url".');else if(null!=h.user&&"string"!=typeof h.user)g('Invalid value for property: "user".');else if(null!=h.password&&"string"!=typeof h.password)g('Invalid value for property: "password".');else if(null!=h.onsuccess&&"function"!=typeof h.onsuccess)g('Invalid value for event: "onsuccess".');else if(null!=h.onfail&&"function"!=
|
|
5
5
|
typeof h.onfail)g('Invalid value for event: "onfail".');else if(null!=h.onready&&"function"!=typeof h.onready)g('Invalid value for event: "onready".');else{var q=!0;if(null!=p)for(k in h.headers)"CONTENT-TYPE"==k.toUpperCase()&&-1==h.headers[k].toLowerCase().indexOf("www-form-urlencoded")&&(q=!1);var t=h.url,v=h.params;if("object"==typeof v){var u="";for(k in v){var z=v[k],B=[];"object"==typeof z?null!=z.length&&0<z.length&&(B=z):B.push(z);for(z=0;z<B.length;z++)""!=u&&(u+="&"),u+=encodeURIComponent(k)+
|
|
6
|
-
"="+encodeURIComponent(B[z])}""!=u&&(!q||"POST"!=
|
|
7
|
-
"application/x-www-form-urlencoded");"string"==typeof h.overrideMimeType&&"function"==typeof a.overrideMimeType&&a.overrideMimeType(h.overrideMimeType)}catch(G){g(G);return}f=!0;var F=!1;1==r&&(a.onload=
|
|
8
|
-
this.getStatus=this.ka=function(){return a.status};this.getStatusText=this.wb=function(){return a.statusText};this.getStatusMessage=this.vb=function(){return d};this.getAllResponseHeaders=this.getAllResponseHeaders=function(){if(e)try{return a.getAllResponseHeaders()}catch(
|
|
9
|
-
f)try{a.abort()}catch(
|
|
10
|
-
function M(c,a){var d=null,e=!1;if(1==arguments.length&&"object"==typeof arguments[0]){var f=arguments[0];f.async=null;f.onsuccess=null;1==f.saveResponse&&(e=!0);if("function"==typeof f.handler){var g=!0;var h=f.handler}else g=!1}else null!=a&&"function"==typeof a?(g=!0,h=a):g=!1;f=new b(arguments[0]);f.async=g;f.onsuccess=function(l){l=l.ja();e&&"object"==typeof pui&&(pui.savedJSON=l);try{d=eval("("+l+")")}catch(
|
|
6
|
+
"="+encodeURIComponent(B[z])}""!=u&&(!q||"POST"!=m&&"PUT"!=m&&"DELETE"!=m?(q=t.split("?"),t=2==q.length&&""!=q[1]?q[0]+"?"+q[1]+"&"+u:t+("?"+u)):p=(null!=p&&""!=p?p+"&":"")+u)}"GET"!==m||null!==h.cacheBuster&&!0!==h.cacheBuster||(t=pui.addUrlCacheBuster(t));try{"string"==typeof h.user&&"string"==typeof h.password?a.open(m,t,r,h.user,h.password):a.open(m,t,r);t=!1;var E=h.headers;for(k in E)a.setRequestHeader(k,E[k]),"CONTENT-TYPE"==k.toUpperCase()&&(t=!0);if("POST"==m||"PUT"==m||"DELETE"==m)t||a.setRequestHeader("Content-type",
|
|
7
|
+
"application/x-www-form-urlencoded");"string"==typeof h.overrideMimeType&&"function"==typeof a.overrideMimeType&&a.overrideMimeType(h.overrideMimeType)}catch(G){g(G);return}f=!0;var F=!1;1==r&&(a.onload=n,a.onerror=n,a.onabort=function(){F=!0;n()});if(1==h.sendAsBinary)try{a.sendAsBinary(p)}catch(G){a.send(p)}else a.send(p);1!=r&&n()}};this.ok=this.ok=function(){return null!=e?e:!1};this.getResponseText=this.ja=function(){return a.responseText};this.getResponseXML=this.qc=function(){return a.responseXML};
|
|
8
|
+
this.getStatus=this.ka=function(){return a.status};this.getStatusText=this.wb=function(){return a.statusText};this.getStatusMessage=this.vb=function(){return d};this.getAllResponseHeaders=this.getAllResponseHeaders=function(){if(e)try{return a.getAllResponseHeaders()}catch(n){g(n)}};this.getResponseHeader=this.getResponseHeader=function(n){if(e)try{return a.getResponseHeader(n)}catch(k){g(k)}};this.setRequestHeader=this.setRequestHeader=function(n,k){h.headers[n]=k};this.abort=this.abort=function(){if(!0===
|
|
9
|
+
f)try{a.abort()}catch(n){g(n)}}}function K(c,a){var d="";if(1==arguments.length&&"object"==typeof arguments[0]){var e=arguments[0];e.async=null;e.onsuccess=null;if("function"==typeof e.handler){var f=!0;var g=e.handler}else f=!1}else null!=a&&"function"==typeof a?(f=!0,g=a):f=!1;e=new b(arguments[0]);e.async=f;e.onsuccess=function(h){d+=h.ja();1==f&&g(d)};e.send();if(0==f)return d}
|
|
10
|
+
function M(c,a){var d=null,e=!1;if(1==arguments.length&&"object"==typeof arguments[0]){var f=arguments[0];f.async=null;f.onsuccess=null;1==f.saveResponse&&(e=!0);if("function"==typeof f.handler){var g=!0;var h=f.handler}else g=!1}else null!=a&&"function"==typeof a?(g=!0,h=a):g=!1;f=new b(arguments[0]);f.async=g;f.onsuccess=function(l){l=l.ja();e&&"object"==typeof pui&&(pui.savedJSON=l);try{d=eval("("+l+")")}catch(n){h(null,n);return}1==g&&h(d)};f.send();if(0==g)return d}
|
|
11
11
|
"undefined"==typeof window.pui&&(window.pui={});window.RPGspRequest=b;window.pui.Ajax=b;window.pui.AjaxRequest=b;window.ajax=K;
|
|
12
12
|
window.ajaxXML=function(c,a){var d=null;if(1==arguments.length&&"object"==typeof arguments[0]){var e=arguments[0];e.async=null;e.onsuccess=null;e.onfail=null;e.onsuccess=null;if("function"==typeof e.handler){var f=!0;var g=e.handler}else f=!1}else null!=a&&"function"==typeof a?(f=!0,g=a):f=!1;e=new b(arguments[0]);e.async=f;e.onsuccess=function(h){d=h.qc();1==f&&g(d)};e.send();if(0==f)return d};window.ajaxJSON=M;
|
|
13
13
|
window.ajaxSubmit=function(c,a){var d="",e="undefined"!=typeof pui&&"undefined"!=typeof pui.alert?pui.alert:alert;if("object"==typeof c)var f=c;else f=document.getElementById(c),null==f&&(f=document.forms[c]);if(null!=f)var g=f.tagName;if(null==f||null==g||"FORM"!=g.toUpperCase())return e("Ajax request error: Invalid form object."),"";if(""==c.action)return e("Ajax request error: Invalid form action."),"";for(c=0;c<f.elements.length;c++)if(e=f.elements[c],null!=e.name&&""!=e.name){g=!1;if("INPUT"==
|
|
14
|
-
e.tagName){var h=e.type;h=h.toLowerCase();"hidden"==h&&(g=!0);"password"==h&&(g=!0);"text"==h&&(g=!0);pui.hf(h)&&(g=!0);""==h&&(g=!0);("checkbox"==h||"radio"==h)&&e.checked&&(g=!0)}"TEXTAREA"==e.tagName&&(g=!0);"SELECT"==e.tagName&&(g=!0);g&&(""!=d&&(d+="&"),d+=e.name+"="+encodeURIComponent(e.value))}f=new b(f.action);f.method="POST";f.postData=d;var l="";if(null!=a&&"function"==typeof a)var
|
|
14
|
+
e.tagName){var h=e.type;h=h.toLowerCase();"hidden"==h&&(g=!0);"password"==h&&(g=!0);"text"==h&&(g=!0);pui.hf(h)&&(g=!0);""==h&&(g=!0);("checkbox"==h||"radio"==h)&&e.checked&&(g=!0)}"TEXTAREA"==e.tagName&&(g=!0);"SELECT"==e.tagName&&(g=!0);g&&(""!=d&&(d+="&"),d+=e.name+"="+encodeURIComponent(e.value))}f=new b(f.action);f.method="POST";f.postData=d;var l="";if(null!=a&&"function"==typeof a)var n=!0;else n=!1,f.async=!1;f.onsuccess=function(k){l+=k.ja();1==n&&a(l)};f.send();if(0==n)return l};"undefined"==typeof window.pui&&(window.pui={});
|
|
15
15
|
function aa(){if(null==document.getElementById("PCCommandApplet")){var c=document.createElement("applet");c.id="PCCommandApplet";c.archive="/profoundui/proddata/applet/PCIntegration.jar";c.code="com.profoundlogic.genie.PCIntegration";c.style.height="0px";c.style.width="0px";if("function"==typeof eval("runCommandCb")){var a=document.createElement("param");a.setAttribute("name","callback");a.setAttribute("value","runCommandCb");c.appendChild(a)}document.body.appendChild(c)}}
|
|
16
16
|
window.copyToClipboardCb=function(){copyToClipboardCb(pui.gd);pui.gd=null};function ba(c){c=null!=c&&"object"==typeof c?c:document.getElementById(c);if(null==c)return"";var a="";"div"==c.tagName.toLowerCase()&&(a=c.firstChild,a=null!=a&&null!=a.tagName&&"A"==a.tagName?a.innerHTML:c.innerHTML);if("INPUT"==c.tagName&&"checkbox"==c.type)return!0===c.indeterminate?c.indeterminateValue:c.checked&&null!=c.nb?c.nb:c.checked||null==c.De?c.checked:c.De;if("INPUT"==c.tagName&&"radio"==c.type)return c.checked;"TEXTAREA"==c.tagName?a=c.value:"INPUT"==c.tagName?a=c.value:"SELECT"==c.tagName&&
|
|
17
17
|
(a=c.selectedIndex,a=0<=a?c.options[a].value:c.O&&c.O.Wa&&c.O.Wa.value?c.O.Wa.value:c.value);null!=c.Ha&&(a=c.Ha.getValue());null!=c.Ja&&(a=c.Ja.getValue());null!=c.ye&&(a=c.ye.getValue());null!=c.slider&&(a=String(c.value));null!=c.Ea&&(a="",c.Ea.Xd&&null!=c.Ea.de?a=c.Ea.de:c.Ea.Xd||null==c.Ea.be||(a=c.Ea.be));c.O&&c.O.Pb&&"function"===typeof c.O.Pb.getPropertyValue&&(a=c.O.Pb.getPropertyValue("value"));for(a=a.replace(/ /g," ");-1!=a.indexOf(String.fromCharCode(160));)a=a.replace(String.fromCharCode(160),
|
|
@@ -22,40 +22,41 @@ pui.pc=function(c){c=c||window.event;var a={x:0,y:0};null!=c&&null!=c.touches&&1
|
|
|
22
22
|
function P(){var c={};var a=location.search.substring(1,location.search.length);if(0==a.length)return c;a=a.replace(/\+/g," ");a=a.split("&");for(var d=0;d<a.length;d++){var e=a[d].split("="),f=decodeURIComponent(e[0]),g="";2==e.length&&(g=decodeURIComponent(e[1]));c[f]=g}return c}"undefined"!=typeof applyDesignProperty&&(window.Oe=applyDesignProperty);
|
|
23
23
|
pui.Vb={encode:function(c){for(var a="",d=0;d<c.length;d++){var e=c.codePointAt(d);65535<e&&d++;128>e?a+=String.fromCharCode(e):(2048>e?a+=String.fromCharCode(e>>6|192):(65536>e?a+=String.fromCharCode(e>>12|224):(a+=String.fromCharCode(e>>18|240),a+=String.fromCharCode(e>>12&63|128)),a+=String.fromCharCode(e>>6&63|128)),a+=String.fromCharCode(e&63|128))}return a},decode:function(c){for(var a="",d=0,e,f,g,h;d<c.length;)e=c.charCodeAt(d),128>e?(a+=String.fromCharCode(e),d++):224>e?(f=c.charCodeAt(d+
|
|
24
24
|
1),a+=String.fromCharCode((e&31)<<6|f&63),d+=2):240>e?(f=c.charCodeAt(d+1),g=c.charCodeAt(d+2),a+=String.fromCharCode((e&15)<<12|(f&63)<<6|g&63),d+=3):(f=c.charCodeAt(d+1),g=c.charCodeAt(d+2),h=c.charCodeAt(d+3),a+=String.fromCodePoint((e&7)<<18|(f&63)<<12|(g&63)<<6|h&63),d+=4);return a}};
|
|
25
|
-
pui.G={ia:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(c){var a="",d=0;for(c=pui.Vb.encode(c);d<c.length;){var e=c.charCodeAt(d++);var f=c.charCodeAt(d++);var g=c.charCodeAt(d++);var h=e>>2;e=(e&3)<<4|f>>4;var l=(f&15)<<2|g>>6;var
|
|
25
|
+
pui.G={ia:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(c){var a="",d=0;for(c=pui.Vb.encode(c);d<c.length;){var e=c.charCodeAt(d++);var f=c.charCodeAt(d++);var g=c.charCodeAt(d++);var h=e>>2;e=(e&3)<<4|f>>4;var l=(f&15)<<2|g>>6;var n=g&63;isNaN(f)?l=n=64:isNaN(g)&&(n=64);a=a+this.ia.charAt(h)+this.ia.charAt(e)+this.ia.charAt(l)+this.ia.charAt(n)}return a},decode:function(c){var a="",d=0;for(c=c.replace(/[^A-Za-z0-9+/=]/g,"");d<c.length;){var e=this.ia.indexOf(c.charAt(d++));
|
|
26
26
|
var f=this.ia.indexOf(c.charAt(d++));var g=this.ia.indexOf(c.charAt(d++));var h=this.ia.indexOf(c.charAt(d++));e=e<<2|f>>4;f=(f&15)<<4|g>>2;var l=(g&3)<<6|h;a+=String.fromCharCode(e);64!=g&&(a+=String.fromCharCode(f));64!=h&&(a+=String.fromCharCode(l))}return a=pui.Vb.decode(a)}};
|
|
27
27
|
pui.downloadJSON=function(){if(pui.pf)pui.saveRecording();else if(null==pui.savedJSON)pui.alert("JSON is not available.");else{var c=pui.savedJSON;if("object"===typeof JSON&&"function"===typeof JSON.parse&&"function"===typeof JSON.stringify)try{c=JSON.stringify(JSON.parse(pui.savedJSON),null," ")}catch(a){}pui.Md("text/plain","json.txt",c)}};
|
|
28
|
-
pui.saveRecording=function(c){for(var a=null,d=0;d<pui.ea.payloads.length;d++)!a&&pui.ea.responses[d].ra&&(a=pui.ea.responses[d].ra.Bf),pui.ea.payloads[d].response=pui.ea.responses[d];var e=P().testid;(d=e)||(d=prompt("Enter recording name"));if(d)if(pui.pjsServer)0===pui.ea.payloads.length?pui.alert("No recording to save."):(a={id:e,appuser:a,payloads:pui.ea.payloads},d={"Content-Type":"application/json"},sessionStorage["atrium-token"]&&(d.Authorization="Basic "+sessionStorage["atrium-token"]),fetch(
|
|
29
|
-
{method:"POST",headers:d,body:JSON.stringify(a)}).then(function(g){g.ok?(window.parent&&window.parent.Atrium&&window.parent.Atrium.api&&"function"===typeof window.parent.Atrium.api.reloadNavParent&&window.parent.Atrium.api.reloadNavParent("test-"+e),pui.ea={payloads:[],responses:[]},"function"===typeof c?c():pui.alert("Recording saved.")):pui.alert("Failed to save recording.")})["catch"](function(g){pui.alert("Error: Unable to save recording.");console.error("Fetch error:",
|
|
30
|
-
payloads:pui.ea.payloads});var f=d;f.endsWith(".json")||(f+=".json");pui["recording path"]?(d=[],d.push({name:"path",value:pui["recording path"]+f}),d.push({name:"text",value:"1"}),d.push({name:"replace",value:"Y"}),d.push({name:"json",value:a,fileName:f}),a=new pui.Le,a.Me(d),d=O("PUI0001109.pgm"),d=d.replace("/auth",""),a.send(d,function(g){var h;200!=g.ka()&&(h=g.vb());h||(g=eval("("+g.ja()+")"),g.success||(h=g.errorText));h?pui.alert(h):(pui.alert("Recording saved."),
|
|
31
|
-
pui.
|
|
28
|
+
pui.saveRecording=function(c){for(var a=null,d=0;d<pui.ea.payloads.length;d++)!a&&pui.ea.responses[d].ra&&(a=pui.ea.responses[d].ra.Bf),pui.ea.payloads[d].response=pui.ea.responses[d];var e=P().testid;(d=e)||(d=prompt("Enter recording name"));if(d)if(pui.pjsServer)0===pui.ea.payloads.length?pui.alert("No recording to save."):(a={id:e,appuser:a,payloads:pui.ea.payloads},d={"Content-Type":"application/json"},sessionStorage["atrium-token"]&&(d.Authorization="Basic "+sessionStorage["atrium-token"]),fetch((pui.serverURL||
|
|
29
|
+
"")+"/auto-testing/save-recording",{method:"POST",headers:d,body:JSON.stringify(a)}).then(function(g){g.ok?(window.parent&&window.parent.Atrium&&window.parent.Atrium.api&&"function"===typeof window.parent.Atrium.api.reloadNavParent&&window.parent.Atrium.api.reloadNavParent("test-"+e),pui.ea={payloads:[],responses:[]},"function"===typeof c?c():pui.alert("Recording saved.")):pui.alert("Failed to save recording.")})["catch"](function(g){pui.alert("Error: Unable to save recording.");console.error("Fetch error:",
|
|
30
|
+
g)}));else{a=JSON.stringify({user:a,payloads:pui.ea.payloads});var f=d;f.endsWith(".json")||(f+=".json");pui["recording path"]?(d=[],d.push({name:"path",value:pui["recording path"]+f}),d.push({name:"text",value:"1"}),d.push({name:"replace",value:"Y"}),d.push({name:"json",value:a,fileName:f}),a=new pui.Le,a.Me(d),d=O("PUI0001109.pgm"),d=d.replace("/auth",""),a.send(d,function(g){var h;200!=g.ka()&&(h=g.vb());h||(g=eval("("+g.ja()+")"),g.success||(h=g.errorText));h?pui.alert(h):(pui.alert("Recording saved."),
|
|
31
|
+
pui.ea={payloads:[],responses:[]})})):pui.Md("text/plain",f,a)}};
|
|
32
|
+
pui.clearRecording=function(c){var a=P().testid;if(pui.pjsServer){a={id:a};var d={"Content-Type":"application/json"};sessionStorage["atrium-token"]&&(d.Authorization="Basic "+sessionStorage["atrium-token"]);fetch((pui.serverURL||"")+"/auto-testing/clear-recording",{method:"POST",headers:d,body:JSON.stringify(a)}).then(function(e){"function"===typeof c&&c(e)})["catch"](function(e){"function"===typeof c&&c(null,e)})}else"function"===typeof c&&c()};
|
|
32
33
|
pui.keepAlive=function(){if("genie"!=context||1!=pui.v.Ta){if("dspf"==context)var c=null==pui.v?O("PUI0001200.pgm"):O("PUI0002110.pgm");else if("genie"==context)c=window.DOCUMENT_URI;else return!1;null!=pui.Hb&&""!=pui.Hb&&(c+="/"+pui.Hb);if(null!=pui.overrideSubmitUrl&&"function"==typeof pui.overrideSubmitUrl)try{c=pui.overrideSubmitUrl(c)}catch(d){}"genie"==context&&pui.Kc(pui.v.Ta=!0);"dspf"==context&&(pui.Kb=!1);pui.vf();var a={keepalive:"1"};pui.isCloud&&(a.workspace_id=pui.md.Je.id);K({url:pui.Ne(c),
|
|
33
34
|
method:"post",params:a,sendAsBinary:!1,suppressAlert:!0,handler:function(){pui.Vd();"genie"==context&&pui.Kc(pui.v.Ta=!1);"dspf"==context&&(pui.Kb=!0);for(var d=0;d<pui.yb.length;d++)pui.yb[d].unMask()},onfail:function(d){null!=pui.onoffline||pui["suppress comm errors"]||pui.alert(pui.ff(d));pui.Vd();"genie"==context&&pui.Kc(pui.v.Ta=!1);"dspf"==context&&(pui.Kb=!0);for(d=0;d<pui.yb.length;d++)pui.yb[d].unMask();if(null!=pui.onoffline)pui.onoffline()}});return!0}};
|
|
34
35
|
pui.getWindowSize=function(){if(document.body&&document.body.offsetWidth){var c=document.body.offsetWidth;var a=document.body.offsetHeight}"CSS1Compat"==document.compatMode&&document.documentElement&&document.documentElement.offsetWidth&&(c=document.documentElement.offsetWidth,a=document.documentElement.offsetHeight);window.innerWidth&&window.innerHeight&&(c=window.innerWidth,a=window.innerHeight);window.visualViewport&&window.visualViewport.width&&window.visualViewport.height&&(c=window.visualViewport.width,
|
|
35
36
|
a=window.visualViewport.height);document.documentElement&&document.documentElement.clientWidth&&(c=document.documentElement.clientWidth,a=document.documentElement.clientHeight);null==c&&null!=screen&&(c=screen.width);null==a&&null!=screen&&(a=screen.height);null==c&&(c=800);null==a&&(a=600);return{width:c,height:a}};pui.openURL=function(c){window.open(c)};
|
|
36
37
|
pui.Eb=function(c){return null==c||"string"!=typeof c?"":"http:"==c.substr(0,5).toLowerCase()||"https:"==c.substr(0,6).toLowerCase()||"data:"==c.substr(0,5).toLowerCase()?c:null!=pui.serverURL?pui.serverURL+c:window.cordova&&"/"==c.substr(0,1)?c.substr(1):c};
|
|
37
38
|
pui.animate=function(c){var a=c.element;"string"==typeof a&&(a=document.getElementById(a));if(null!=a){var d=c.effect;if("fly in left"==d||"fly in right"==d||"fly out left"==d||"fly out right"==d)var e="left";else if("fly in up"==d||"fly in down"==d||"fly out up"==d||"fly out down"==d)e="top";else if("fade in"==d||"fade out"==d)e="opacity";else if(e=c.properties,null==e&&(e=c.property,null==e))return;"string"==typeof e&&(e=[e]);var f=c.duration;null==f&&(f="500ms");"s"!=f.substr(f.length-1,1)&&(f+=
|
|
38
|
-
"s");var g=1E3*parseInt(f);2<f.length&&"ms"==f.substr(f.length-2,2)&&(g=parseInt(f));var h=c.type;null==h&&(h="ease");var l=c.from,
|
|
39
|
-
a.offsetHeight;l+="px";
|
|
40
|
-
k;setTimeout(function(){if("string"==typeof
|
|
39
|
+
"s");var g=1E3*parseInt(f);2<f.length&&"ms"==f.substr(f.length-2,2)&&(g=parseInt(f));var h=c.type;null==h&&(h="ease");var l=c.from,n=c.to;switch(d){case "fly in right":l=-a.offsetWidth;l+="px";n="0px";break;case "fly in left":l=a.offsetWidth;l+="px";n="0px";break;case "fly out left":n=-a.offsetWidth;n+="px";l="0px";break;case "fly out right":n=a.offsetWidth;n+="px";l="0px";break;case "fly out down":n=a.offsetHeight;n+="px";l="0px";break;case "fly out up":n=-a.offsetHeight;n+="px";l="0px";break;case "fly in up":l=
|
|
40
|
+
a.offsetHeight;l+="px";n="0px";break;case "fly in down":l=-a.offsetHeight;l+="px";n="0px";break;case "fade in":l="0";n="100";break;case "fade out":l="100",n="0"}if(null!=n){var k="";for(d=0;d<e.length;d++){var m=e[d];""!=k&&(k+=", ");k+=m+" "+f+" "+h}var r=["transition","MozTransition","WebkitTransition","msTransition","OTransition"];if(null!=l){if("string"==typeof l||"number"==typeof l)l=[l];for(d=0;d<e.length;d++)m=e[d],a.style[m]=l[d]}setTimeout(function(){for(var p=0;p<r.length;p++)a.style[r[p]]=
|
|
41
|
+
k;setTimeout(function(){if("string"==typeof n||"number"==typeof n)n=[n];for(var q=0;q<e.length;q++)a.style[e[q]]=n[q];setTimeout(function(){for(var t=0;t<r.length;t++)a.style[r[t]]="";if(null!=c.oncomplete)c.oncomplete()},g)},1)},1)}}};pui.getActiveElement=function(){return"genie"==context?lastActiveElement:pui.activeElement};pui.fieldExit=function(c){var a=pui.getActiveElement();if(null!=a){var d=!1;null!=c&&(d=!0);"genie"==context?fieldExit(a,d):pui.Ze(a)}};pui.gotoNextElement=function(c){Q(c,!0)};
|
|
41
42
|
pui.gotoPreviousElement=function(c){Q(c,!1)};
|
|
42
43
|
function Q(c,a){a=a?1:-1;var d=document.querySelectorAll("INPUT,SELECT,TEXTAREA"),e=d.length;if(!(2>e)){c=Array.prototype.indexOf.call(d,c);for(var f=c+a,g;f!==c;)if(f===e)f=0;else if(-1===f)f=e-1;else{var h=g=d[f];null!=g&&null!=g.Ha&&(h=g.Ha.getBox());null!=g&&null!=g.Ja&&(h=g.Ja.getBox());if(h.readOnly||h.disabled||"hidden"===h.style.visibility||"-1"===h.tabIndex||!h.clientHeight||!h.clientWidth)f+=a;else{try{h.focus();if(document.activeElement!=h){f+=a;continue}setTimeout(function(){pui["highlight on focus"]&&
|
|
43
44
|
"function"==typeof h.select&&h.select();pui.sf(null,h)},0)}catch(l){}break}}}}pui.showCalendar=function(c){var a=c;"string"==typeof c&&(a=document.getElementById(c));if(null!=a&&"object"==typeof a){var d=a.Qe;null!=d&&(null!=d.click&&"function"==typeof d.click?d.click():null!=d.onclick&&"function"==typeof d.onclick&&setTimeout(function(){d.onclick()},250))}};pui.getComputedStyle=function(c){var a=null;window.getComputedStyle?a=window.getComputedStyle(c):c.currentStyle&&(a=c.currentStyle);return a};
|
|
44
|
-
pui.upload=function(c,a){var d,e=c.dir,f=!0===c.overwrite,g;"number"==typeof c.slimit&&(g=c.slimit);var h;"number"==typeof c.flimit&&(h=c.flimit);var l="";"string"==typeof c.altname&&(l=c.altname);var
|
|
45
|
-
ArrayBuffer?
|
|
46
|
-
typeof c.generateNames&&k.append("generateNames",c.generateNames);for(d=0;d<
|
|
45
|
+
pui.upload=function(c,a){var d,e=c.dir,f=!0===c.overwrite,g;"number"==typeof c.slimit&&(g=c.slimit);var h;"number"==typeof c.flimit&&(h=c.flimit);var l="";"string"==typeof c.altname&&(l=c.altname);var n;typeof c.allowedTypes&&c.allowedTypes instanceof Array&&(n=c.allowedTypes);null==h&&(h=c.files.length);if(null==g||null==n){var k=[];for(d=0;d<c.files.length;d++){var m=c.files[d];var r="undefined"!=typeof m.type&&""!=m.type?m.type:"application/octet-stream";-1==pui.Pe(k,r)&&k.push(r);m=m.data&&m.data instanceof
|
|
46
|
+
ArrayBuffer?m.data.byteLength:m.size;m=Math.ceil(m/1048576);if(null==p||m>p)var p=m}null==g&&(g=p);null==n&&(n=k)}p=O("PUI0009109.PGM");p+="?AUTH="+encodeURIComponent(pui.Fb?pui.Fb:pui.appJob.auth);"widget"!==c.mode&&(p+="&mode=ajax");c.id&&(p+="&id="+encodeURIComponent(c.id));p+="&r="+Math.floor(1E9*Math.random());pui.isCloud&&(p+="&workspace_id="+pui.md.Je.id);k=new FormData;k.append("dir",e);k.append("overwrite",f?"1":"0");k.append("flimit",h);k.append("slimit",g);k.append("altname",l);"string"==
|
|
47
|
+
typeof c.generateNames&&k.append("generateNames",c.generateNames);for(d=0;d<n.length;d++)k.append("type",n[d]);for(d=0;d<c.files.length;d++){m=c.files[d];if(m.data&&m.data instanceof ArrayBuffer){try{var q=new Blob([m.data])}catch(v){e=new window.WebKitBlobBuilder,e.append(m.data),q=e.getBlob()}k.append("file",q)}else k.append("file",m);k.append("filename",m.name)}var t=new XMLHttpRequest;t.open("POST",p,!0);t.onreadystatechange=function(){if(4==t.readyState){var v=!0;if(200==t.status){try{var u=
|
|
47
48
|
eval("("+t.responseText+")")}catch(B){v=!1;var z="Server response missing or invalid."}u&&(v=u.success,v||(u.key?(z=pui.getLanguageText("runtimeMsg","upload "+u.key),"file limit"==u.key&&(z=z.replace("&1",h)),"size limit"==u.key&&(z=z.replace("&1",g))):z=u.error))}else v=!1,z=t.status+" - "+t.statusText+".",0==t.status&&""==t.statusText&&(z="The FILE could not be found in the system.");"function"==typeof a&&a(v,z)}};"function"==typeof c.onabort&&(t.onabort=c.onabort);"function"==typeof c.onprogress&&
|
|
48
49
|
"upload"in t&&(t.upload.onprogress=c.onprogress);"function"==typeof c.onload&&(t.onload=c.onload);t.send(k);return t};pui.getCookie=function(c){var a=document.cookie.split(";"),d="",e;for(e=0;e<a.length;e++){var f=a[e].split("=");var g=f[0].replace(/^\s+|\s+$/g,"");if(g==c)return 1<f.length&&(d=unescape(f[1].replace(/^\s+|\s+$/g,""))),d}return null};
|
|
49
50
|
pui.setCookie=function(c,a,d,e,f,g,h){var l=new Date;l.setTime(l.getTime());d&&(d*=864E5);l=new Date(l.getTime()+d);document.cookie=c+"="+escape(a)+(d?";expires="+l.toGMTString():"")+(e?";path="+e:"")+(f?";domain="+f:"")+(g?";secure":"")+(h?";SameSite="+h:"")};pui.deleteCookie=function(c,a,d,e,f){pui.getCookie(c)&&(document.cookie=c+"="+(a?";path="+a:"")+(d?";domain="+d:"")+";expires=Thu, 01-Jan-1970 00:00:01 GMT"+(e?";Secure":"")+(f?";SameSite="+f:""))};
|
|
50
51
|
pui.refresh=function(c){null==c&&(c={});var a=c.url;c=c.skin;pui.setCookie("puiRefreshId",pui.Hb,null,"/",null,null,"Strict");pui.wf=!0;pui.ve=!1;pui.od=!1;if(null!=c){c="skin="+encodeURIComponent(c);a=window.location.href;var d=a.split("?");a=d[0];d=d[1];null==d&&(d="");d=d.split("&");for(var e=!1,f=0;f<d.length;f++)5<=d[f].length&&"skin="==d[f].substr(0,5).toLowerCase()&&(d[f]=c,e=!0);e||(1==d.length&&""==d[0]?d[0]=c:d.push(c));d=d.join("&");a=a+"?"+d}null!=a?window.location.href=a:window.location.reload()};
|
|
51
52
|
pui.downloadURL=function(c){if(null==pui||null==pui.appJob||null==pui.appJob.auth||""==pui.appJob.auth)return pui.is_ie?"":"data:text/html,<!DOCTYPE html><html><body><p>To download, please connect to a Profound UI session.</p></body></html>";var a=!0===c.inline;if(null==c.id)return"";var d=O("PUI0009110.PGM");d+="?id="+encodeURIComponent(c.id);null!=c.contentType&&(d+="&type="+encodeURIComponent(c.contentType));a&&(d+="&inline=1");d=d+"&usehttprc=0&AUTH="+encodeURIComponent(pui.Fb?pui.Fb:pui.appJob.auth);
|
|
52
53
|
return d+="&r="+Math.floor(1E9*Math.random())};pui.download=function(c){var a=pui.downloadURL(c);c=!0===c.inline;if(null==pui||null==pui.appJob||null==pui.appJob.auth||""==pui.appJob.auth)c=!0;c?pui.openURL(a):pui.link(a)};
|
|
53
|
-
pui.downloadFile=function(c){if("undefined"===typeof c||null==c||"string"!==typeof c.id||1>c.id.length)pui.alert("Error downloading file. \n\n No file path given",null,"Error","Close");else{var a=pui.downloadURL(c),d=c.id,e=new XMLHttpRequest;e.responseType="blob";e.open("GET",a,!0);e.send();var f=null,g=null,h=null,l=null;e.onprogress=function(
|
|
54
|
+
pui.downloadFile=function(c){if("undefined"===typeof c||null==c||"string"!==typeof c.id||1>c.id.length)pui.alert("Error downloading file. \n\n No file path given",null,"Error","Close");else{var a=pui.downloadURL(c),d=c.id,e=new XMLHttpRequest;e.responseType="blob";e.open("GET",a,!0);e.send();var f=null,g=null,h=null,l=null;e.onprogress=function(n){var k=pui.extractFileNameFromContentDisposition(e.getResponseHeader("Content-Disposition"));if(d.split("/").pop()==k||"error.txt"!=k)"undefined"===typeof e.onprogress.diaglogShown&&
|
|
54
55
|
(e.onprogress.diaglogShown=!0,f=document.createElement("dialog"),document.body.appendChild(f),g=document.createElement("p"),f.appendChild(g),h=document.createElement("button"),h.innerHTML="OK",h.onclick=function(){f.close();f.remove()},l=document.createElement("button"),l.innerHTML="Cancel",l.id="cancelButton",l.onclick=function(){e.abort();f.close();f.remove()},f.appendChild(l),g.innerHTML="Downloading file: "+d+"<br> Starting download...",f.showModal(),e.onprogress.lastTime=Date.now()),Date.now()>
|
|
55
|
-
e.onprogress.lastTime+2E3&&(g.innerHTML="Downloading file: "+d+"<br>"+
|
|
56
|
-
|
|
57
|
-
break;case "csv":
|
|
58
|
-
"boolean"===typeof c.inline&&c.inline&&r.includes(
|
|
56
|
+
e.onprogress.lastTime+2E3&&(g.innerHTML="Downloading file: "+d+"<br>"+n.type+" "+(n.loaded/1048576).toFixed(4)+" mb loaded",e.onprogress.lastTime=Date.now())};e.onloadend=function(){null!=f&&(f.querySelector("button[id='cancelButton']").remove(),f.appendChild(h),g.innerHTML="File "+d+" downloaded successfully.")};e.onreadystatechange=function(){if(4==e.readyState&&200==e.status){var n=pui.extractFileNameFromContentDisposition(e.getResponseHeader("Content-Disposition"));if(d.split("/").pop()!=n&&"error.txt"==
|
|
57
|
+
n){var k=new FileReader;k.onload=function(){pui.alert("Error downloading file: "+d+"\n\n"+k.result,null,"Error","Close");console.log(k.result)};k.readAsText(e.response)}else{var m=null;if("string"===typeof c.contentType&&0<c.contentType.length)m=c.contentType;else if(m=e.getResponseHeader("Content-Type").split(";")[0],"string"===typeof m&&"application/octet-stream"==m){var r=n.split(".").pop();if("string"===typeof r)switch(r.toLowerCase()){case "pdf":m="application/pdf";break;case "txt":m="text/plain";
|
|
58
|
+
break;case "csv":m="text/csv";break;case "json":m="application/json";break;case "xml":m="application/xml";break;case "html":m="text/html";break;case "htm":m="text/html";break;case "jpg":m="image/jpeg";break;case "jpeg":m="image/jpeg";break;case "png":m="image/png";break;case "gif":m="image/gif"}}r="application/pdf text/plain text/csv application/json application/xml text/html image/jpeg image/png image/gif".split(" ");var p=new File([e.response],n,{type:m});p=URL.createObjectURL(p);var q=document.createElement("a");
|
|
59
|
+
"boolean"===typeof c.inline&&c.inline&&r.includes(m)?q.target="_blank":q.download=n;q.name=n;q.href=p;document.body.appendChild(q);q.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window}));document.body.removeChild(q)}}}}};pui.extractFileNameFromContentDisposition=function(c){c=/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/.exec(c);return null!=c&&c[1]?c[1].replace(/['"]/g,""):null};
|
|
59
60
|
pui.focusOnContainer=function(){window.parent!=window&&pui.Ie(window.parent)&&window.parent.ae||setTimeout(function(){null==pui.T&&(pui.T=document.createElement("input"),pui.T.type=pui.is_touch?"button":"text",pui.T.readOnly=!0,pui.T.style.position="absolute",pui.T.style.left="-999px",pui.T.style.top="-999px",pui.T.style.width="10px",pui.T.style.borderStyle="none",pui.T.style.backgroundColor="transparent",pui.Ec&&pui.Ec.appendChild(pui.T));pui.Wd=!0;pui.T.focus();setTimeout(function(){pui.Wd=!1},
|
|
60
61
|
0)},1)};pui.addCSS=function(c){var a=document.getElementsByTagName("head")[0],d=document.createElement("style");d.type="text/css";pui.is_old_ie?d.styleSheet.cssText=c:d.innerHTML=c;a.appendChild(d)};pui.loadCSS=function(c){if(null!=pui.Rd(c))return!1;var a=document.getElementsByTagName("head")[0],d=document.createElement("link");d.setAttribute("rel","stylesheet");d.setAttribute("type","text/css");d.setAttribute("media","screen");d.setAttribute("href",pui.Eb(c));a.appendChild(d);return!0};
|
|
61
62
|
pui.removeCSS=function(c){var a=document.getElementsByTagName("head")[0],d=pui.Rd(c);if(null==d){d=a.getElementsByTagName("style");for(var e=0;e<d.length;e++){var f=d[e];if(f.innerHTML==c||null!=f.styleSheet&&f.styleSheet.cssText==c)return a.removeChild(f),!0}return!1}a.removeChild(d);return!0};
|
|
@@ -68,38 +69,38 @@ pui.Ie(window.parent)&&window.parent.ae?console.log("Suppressed alert: "+c):aler
|
|
|
68
69
|
pui.set=function(c,a){c="object"==typeof c?c:document.getElementById(c);if(null!=c){if("DIV"==c.tagName)null!=c.slider?c.slider.setValue(a):null!=c.Ha?c.Ha.setValue(a):null!=c.Ja?c.Ja.setValue(a):c.button&&c.button.Be?c.button.Be.innerHTML=a:c.O&&c.O.Pb?applyProperty(c,"value",a):c.innerHTML=a;else if("INPUT"==c.tagName||"SELECT"==c.tagName||"TEXTAREA"==c.tagName)"INPUT"==c.tagName&&"checkbox"==c.type?c.checked="boolean"==typeof a?a:null!=c.nb&&a==c.nb?!0:!1:("genie"==context&&a!=c.value&&pui.v.mf(c),
|
|
69
70
|
c.value=a,null!=c.hd&&(c.hd.value=a));if("dspf"==context||pui.Ee&&null==c.sb){c.modified=!0;pui.Af(c);var d=c.Cf;null!=c.id&&-1==c.id.indexOf(".")&&null!=c.Ad&&(pui.We[c.Ad]=!0);null!=d&&(d.hide(),d.$e=!0,pui.rf(c,d.cf()))}"genie"==context&&null!=c.sb&&null!=c.sb.idx&&(pui.response[c.sb.idx]=c);pui.Re(c);c.O&&c.O.Wa&&(c.O.Wa.value=a)}};
|
|
70
71
|
pui.getActiveContainer=function(){if("genie"==context){for(var c=1,a=document.getElementById("window"+c);a;){var d=document.getElementById("window"+ ++c);if(d)a=d;else break}if(a)return a}else if("dspf"==context&&pui.Yd)return pui.Yd;return pui.Ec};pui.getDisplayType=function(){return pui.Ee?"5250-handler":"dspf"==context?"rdf":"5250"};
|
|
71
|
-
function R(c){function a(){if(!(
|
|
72
|
-
e,M(v);else{if(0==
|
|
72
|
+
function R(c){function a(){if(!(m>=k.length)){q=k[m].command;t=k[m].wait;m+=1;if("function"==typeof pui.onPCCommand)try{var u=pui.onPCCommand(q,t);if(null==u||1==u){setTimeout(a,0);return}}catch(B){showFailureMessage(q)}p="?cmd="+encodeURIComponent(q)+"&wait="+(t?"1":"0");if(1==h||2==h)l?(v.params.cmd=q,v.params.sign=1,v.params.hashalg="string"===typeof pui["pccmd hash sign algorithm"]?pui["pccmd hash sign algorithm"].toUpperCase():"SHA-512",v.handler=f,M(v)):d("");else if(3==h)v.params.cmd=q,v.handler=
|
|
73
|
+
e,M(v);else{if(0==m&&0<k.length){u=[];for(var z=0;z<k.length;z++)u.push("("+k[z].Ue+")");q=u.join(" && ")}try{n.runCommand(q)}catch(B){u='Unable to execute "'+q+'".\n\n',null!=B&&(u+=B.name+":\n\n"+B.message+"."),alert(u)}}}}function d(u){if(2==h){var z=new Image;z.onload=a;z.onerror=function(){console.log("PC Command Listener image mode failure.");g(q)};z.src=r+p+"&type=image&rnd="+String(Math.random())+String((new Date).getTime())+u}else{u=new pui.Ajax(r+p+u);u.method="GET";u.async=t?!1:!0;u.suppressAlert=
|
|
73
74
|
!0;u.onfail=function(B){200!=B.ka()&&(console.log("PC Command Listener comm. failure: "+B.vb()),g(q))};u.onsuccess=function(B){try{var E=JSON.parse(B.ja());if(!E.success&&"string"===typeof E.error){console.log("PC Command Listener failure.",E.error);g(q);return}}catch(F){}a()};try{u.send()}catch(B){console.log("PC Command Listener failure.",B),g(q)}}}function e(u,z){try{if(z)throw z;if(null==u)throw Error("Empty response from PCCMD crypt program.");if(null!=u.error||"string"===typeof u.error&&0<u.error.length)throw Error("PCCMD crypt error: "+
|
|
74
75
|
String(u.error));if("string"!==typeof u.cmd||0==u.cmd.length)throw Error("PCCMD crypt response was missing a command.");var B="puilaunch:"+encodeURIComponent(u.cmd),E=document.createElement("iframe");E.style.display="none";E.src=B;document.body.appendChild(E);setTimeout(function(){null!=E&&null!=E.parentNode&&document.body.removeChild(E);E=null;a()},5E3)}catch(F){console.log(F)}}function f(u,z){try{if(z)throw z;if("object"!==typeof u||null===u)throw Error("Empty response");if(!0!==u.success)throw"string"===
|
|
75
76
|
typeof u.error&&0<u.error.length?u.error:"Unknown error";z="";"string"===typeof u.sig&&0<u.sig.length&&(z="&sig="+encodeURIComponent(u.sig));d(z)}catch(B){console.log(B),g(q)}}function g(u){console.log("Command: "+u);u=pui.getLanguageText("runtimeMsg","pccommand error");!1!==pui["alert pccommand errors"]?alert(u):console.log(u);console.log("Visit https://docs.profoundlogic.com/x/aQFK for more information on supporting STRPCCMD.")}var h=1,l=!1;pui["use pc listener"]&&(h=1);null!=window.HTTPS&&"ON"==
|
|
76
|
-
window.HTTPS&&1==h&&(h=2);pui["pc listener mode"]&&(h=parseInt(pui["pc listener mode"]));if("string"==typeof pui["pc command mode"])switch(pui["pc command mode"]){case "applet":h=0;break;case "listener":case "listener_m1":h=1;break;case "listener_m1s":h=1;l=!0;break;case "listener_m2":h=2;break;case "listener_m2s":h=2;l=!0;break;case "launcher":h=3;break;default:h=1,console.log("Unsupported pc command mode:",pui["pc command mode"])}if(0==h){var
|
|
77
|
-
c;aa();return}}var k=[],
|
|
77
|
+
window.HTTPS&&1==h&&(h=2);pui["pc listener mode"]&&(h=parseInt(pui["pc listener mode"]));if("string"==typeof pui["pc command mode"])switch(pui["pc command mode"]){case "applet":h=0;break;case "listener":case "listener_m1":h=1;break;case "listener_m1s":h=1;l=!0;break;case "listener_m2":h=2;break;case "listener_m2s":h=2;l=!0;break;case "launcher":h=3;break;default:h=1,console.log("Unsupported pc command mode:",pui["pc command mode"])}if(0==h){var n=document.getElementById("PCCommandApplet");if(!n){pui.Zb=
|
|
78
|
+
c;aa();return}}var k=[],m=0;k="string"==typeof c?[{command:c,wait:!1}]:c;c=parseInt(pui["pc listener port"],10);isNaN(c)&&(c="80");var r="http://localhost:"+c+"/",p="",q,t,v={url:O("PUI0009117.pgm"),method:"post",params:{auth:pui.appJob&&pui.appJob.auth?pui.appJob.auth:""},async:!0};a()}window.runCommandCb=function(){R(pui.Zb);pui.Zb=null};pui.runPCCommand=R;
|
|
78
79
|
pui.isServerBusy=function(){if("undefined"==typeof context)return!1;if("dspf"==context&&!1===pui.Kb||"genie"==context&&!0===pui.v.Ta)return!0;for(var c=document.getElementsByTagName("iframe"),a=0;a<c.length;a++){var d=c[a].contentWindow;if(null!=d){var e=null;try{e=d.O}catch(f){}if(null!=e&&"object"===typeof e&&"function"===typeof e.isServerBusy&&e.isServerBusy())return!0}}return!1};
|
|
79
80
|
pui.showLastError=function(){if(0==errors.length)alert("No errors have been reported.");else{var c=errors.length-1;alert("Operation: "+errors[c].nf+"\nId: "+errors[c].id+"\n\nMessage: "+errors[c].text+"\n"+errors[c].yf)}};
|
|
80
81
|
pui.editCode=function(c,a){function d(D,C){var w=" nn/n nn/nn nn/nn/n nn/nn/nn nnn/nn/nn nn/nn/nnnn nnn/nn/nnnn".split(" ");"*ymd"===l.dateEdit&&(w[8]="nnnn/nn/nn",w[9]="nnnnn/nn/nn");w=w[F];D=String(D);D=D.replace(".","");D=D.replace(",","");D=D.replace("-","");D="0000000000"+D;D=D.substr(D.length-C);C="/";null!=l.dateEditSeparator&&(C=l.dateEditSeparator);for(var x=!1,A=0,y="",H=0;H<w.length;H++){var J=w.substr(H,1),I=w.substr(H+1,1);if("/"===J||"/"===I)x=!0;"/"===J?J=C:(J=D.substr(A,1),A+=1,
|
|
81
|
-
"0"===J?x||(J=" "):x=!0);y+=J}return y}function e(D,C,w){for(D+="";D.length<C;)D+=w;return D}var f=null,g=0,h=null,l={},
|
|
82
|
-
|
|
82
|
+
"0"===J?x||(J=" "):x=!0);y+=J}return y}function e(D,C,w){for(D+="";D.length<C;)D+=w;return D}var f=null,g=0,h=null,l={},n=2;"number"===typeof arguments[n]&&(f=arguments[n],n++,"number"===typeof arguments[n]&&(g=arguments[n],n++));"string"===typeof arguments[n]&&(h=arguments[n],n++);"object"===typeof arguments[n]&&(l=arguments[n],n++);var k=!1;"*astfill"===h&&(k=!0,h=null);var m=!1,r=null,p=!1,q=n=!1;n=" ";pui.ra&&"string"===typeof pui.ra.decimalFormat&&(n=pui.ra.decimalFormat);var t="I"===n||"J"===
|
|
83
|
+
n,v="J"===n;null!=l.decimalEdit&&(t=","===l.decimalEdit||"0,"===l.decimalEdit,v="0."===l.decimalEdit||"0,"===l.decimalEdit);"1"<=a&&"4">=a&&(r="999.00");"A"<=a&&"D">=a&&(r="999.00CR");"J"<=a&&"M">=a&&(r="999.00-");"N"<=a&&"Q">=a&&(r="-999.00");if("1"==a||"A"==a||"J"==a||"N"==a||"2"==a||"B"==a||"K"==a||"O"==a)p=!0;n="1"==a||"A"==a||"J"==a||"N"==a||"3"==a||"C"==a||"L"==a||"P"==a?!0:!1;"Z"==a&&(r="999.00");if("X"===a||"Z"===a)q=!0;"X"===a&&(m=!0);"5"<=a&&"9">=a&&pui.alert("User-defined edit code not supported: "+
|
|
83
84
|
a+".");"1"<=a&&"9">=a||"A"<=a&&"D">=a||"J"<=a&&"Q">=a||"X"<=a&&"Z">=a||pui.alert("Invalid edit code: "+a+".");var u=(c||0)+"",z=parseFloat(u,10)||0;var B=u.replace(/\..*/,"");"-0"===B&&(B="-");""!=B&&"-"!=B||!v||(B="0");var E=u;-1==E.indexOf(".")&&(E+=".");E=E.replace(/.*\./,"");var F=B.length;3>F&&(F=3);var G=E.length;"number"===typeof f&&(F=f);"number"===typeof g&&(G=g);if("Y"==a)return(3>F||9<F)&&pui.alert("Length not valid for edit code Y."),d(z,F);f=".";t&&(f=",");q&&(f="");0<G&&(E=e(E,G,"0"),
|
|
84
|
-
"0"!==B||v||(B=""),u=B+f+E);var L=" ";
|
|
85
|
+
"0"!==B||v||(B=""),u=B+f+E);var L=" ";m&&(L="0");k&&(L="*");if(p){for(g=/(\d+)(\d{3})/;g.test(B);)B=B.replace(g,"$1"+(t?".":",")+"$2");u=B+(0<G?f+E:"")}t=0>z;u=u.replace(/-/g,"");"(999.00)"===r?t&&(u="("+u+")"):"999.00-"===r?u=t?u+"-":u+" ":"999.00CR"===r?u=t?u+"CR":u+" ":"-999.00"===r&&t&&(u="-"+u);h&&(u="EUR"==h?u+" EUR":"$"==h?"-"==u.substr(0,1)?"-"+h+u.substr(1):h+u:h+u);n||0===z&&(u="");(function(){var D=F;D+=G&&!q?1:0;p&&(D+=parseInt((F-G-1)/3));"999.00CR"===r&&(D+=2);"999.00-"===r&&(D+=1);
|
|
85
86
|
"-999.00"===r&&(D+=1);"string"===typeof h&&(D+=h.length);var C=u;for(C+="";C.length<D;)C=L+C;u=C})();return u};
|
|
86
|
-
pui.editWord=function(c,a,d){function e(){if(0<v.length){var B=v.substr(v.length-1,1);v=v.substr(0,v.length-1);"0"==B&&0==v.length&&z&&(B=u?"*":" ")}else B="0",z&&(B=" "),u&&(B="*");return B}var f;c=String(c);var g={};"object"===typeof d&&(g=d);d="$";null!=g.currencySymbol&&(d=g.currencySymbol);var h=a.indexOf("0")+1,l=a.indexOf("*")+1;if(0==h||0!=l&&l<h)h=l;var
|
|
87
|
-
0<=a.substr(
|
|
88
|
-
t.length&&(f=t[1].replace(/[^ ]/g,"").length);var v=isNaN(Number(c))?"0":String(c);v=v.replace("-","");t=v.split(".");g=t[0];a="";
|
|
89
|
-
!0),z&&0==v.length&&(
|
|
87
|
+
pui.editWord=function(c,a,d){function e(){if(0<v.length){var B=v.substr(v.length-1,1);v=v.substr(0,v.length-1);"0"==B&&0==v.length&&z&&(B=u?"*":" ")}else B="0",z&&(B=" "),u&&(B="*");return B}var f;c=String(c);var g={};"object"===typeof d&&(g=d);d="$";null!=g.currencySymbol&&(d=g.currencySymbol);var h=a.indexOf("0")+1,l=a.indexOf("*")+1;if(0==h||0!=l&&l<h)h=l;var n=-1;for(f=a.length-1;0<=f;--f)if(f+1==h||" "==a.substr(f,1)){n=f;break}l=a.substr(0,n+1);var k="",m="",r=!1,p=!1,q=0<=a.substr(n+1).indexOf("-")||
|
|
88
|
+
0<=a.substr(n+1).indexOf("CR");for(f=n+1;f<a.length;f++){var t=a.substr(f,1);if("CR"==a.substr(f,2))p=!0,f++;else if("-"==t)p=!0;else if("&"!=t&&("*"!=t||p))if("A"<=t.toUpperCase()&&"Z">=t.toUpperCase()&&q&&!p)a=a.substr(0,f)+" "+a.substr(f+1);else{k=a.substring(n+1,f);m=a.substr(f);r=!0;break}}r||(k=a.substr(n+1));t=".";f=" ";pui.ra&&"string"===typeof pui.ra.decimalFormat&&(f=pui.ra.decimalFormat);"string"===typeof g.decimalFormat&&(f=g.decimalFormat);if("I"===f||"J"===f)t=",";f=0;t=l.split(t);1<
|
|
89
|
+
t.length&&(f=t[1].replace(/[^ ]/g,"").length);var v=isNaN(Number(c))?"0":String(c);v=v.replace("-","");t=v.split(".");g=t[0];a="";n=null;1<t.length&&(a=t[1]);if(null==n||isNaN(n))n=f;for(;a.length>n;)a=a.substr(0,a.length-1);for(;n>a.length;)a+="0";for(v=g+a;"0"==v.substr(0,1);)v=v.substr(1);g="";var u=n=!1,z=a=!1;0==h&&(z=!0);for(f=l.length-1;0<=f;--f)r=t=l.substr(f,1)," "==t?r=e():"&"==t?r=" ":"0"==t&&f+1==h?r=e():"*"==t?(u=!0,r=e()):t==d?f+2==h&&(r=e(),a=!0):n&&(r=" ",u&&(r="*")),g=r+g,f<=h&&(z=
|
|
90
|
+
!0),z&&0==v.length&&(n=!0);k=k.replace(/&/g," ");k=k.replace(/\*/g," ");0<=c&&(k=k.replace("CR"," "),k=k.replace("-"," "));g=g+k+m;c=g.length-1;g=ca(g);u&&"*"!=g.substr(0,1)&&(g="*"+g);for(a&&(g=d+g);g.length<=c;)g=" "+g;return g};
|
|
90
91
|
pui.getRadioGroupValue=function(c){if("string"!==typeof c||"object"!==typeof pui.Cc)return null;for(var a=null,d=pui.Xe,e=d.length-1;0<=e;e--){var f=d[e].toUpperCase()+"."+c.toUpperCase();if("undefined"!==typeof pui.Cc[f]){a=pui.Cc[f];break}}if(null==a)return null;c=null;for(d=0;d<a.length;d++)if(e=a[d],e.checked&&null!=e.radioValue){c=e.radioValue;break}return c};pui.xe=function(){for(var c=document.getElementById("auth-form"),a=document.cookie.split("; "),d=!1,e=0;e<a.length;e++){var f=a[e].split("=");if(unescape(f[0])=="pui-signon-"+c.action&&"1"==unescape(f[1])){d=!0;break}}if("undefined"!=typeof Storage){a=P();if(a.workstnid)sessionStorage["atrium-params-workstnid"]=a.workstnid;else try{delete sessionStorage["atrium-params-workstnid"]}catch(g){}if(a.suffixid)sessionStorage["atrium-params-suffixid"]=a.suffixid;else try{delete sessionStorage["atrium-params-suffixid"]}catch(g){}if(a.duplicateid)sessionStorage["atrium-params-duplicateid"]=
|
|
91
|
-
a.duplicateid;else try{delete sessionStorage["atrium-params-duplicateid"]}catch(g){}}if(d)location.href=c.action;else{if(d=document.getElementById("auth-box"))d.style.display="";c.elements["auth-user"].focus()}};
|
|
92
|
+
a.duplicateid;else try{delete sessionStorage["atrium-params-duplicateid"]}catch(g){}}if(d)location.href=c.getAttribute("action")||c.action;else{if(d=document.getElementById("auth-box"))d.style.display="";c.elements["auth-user"].focus()}};
|
|
92
93
|
pui.we=function(){var c=document.getElementById("auth-form"),a=c.elements["auth-user"].value,d=c.elements["auth-password"].value,e=document.getElementById("auth-message"),f={"server unavailable":"The server could not be reached at {connectorURL}.<br>Please check your network connection and try again.","error authenticating":"An error occurred while authenticating the user."},g="";e.innerHTML="";if(""==N(a))return e.innerHTML=authMessages["user required"],c.elements["auth-user"].focus(),!1;if(""==
|
|
93
|
-
N(d))return e.innerHTML=authMessages["password required"],c.elements["auth-password"].focus(),!1;if(pui.pjsServer){var h="Basic "+btoa(N(a)+":"+N(d));fetch("/profoundui/atrium/authenticate",{method:"POST",headers:{Authorization:h}}).then(function(l){l.ok?(document.cookie=escape("pui-signon-"+
|
|
94
|
-
l.status?l.json().then(function(
|
|
95
|
-
delete localStorage["pui-http-auth-invalid"];var l=new pui.Ajax("/profoundui/pui0005010.pgm");l.async=!0;l.method="POST";pui.setReqAuth(l,a,d);l.suppressAlert=!0;l.onready=function(
|
|
96
|
-
m+="&back="+encodeURIComponent(location.href),location.href=m):(document.cookie=escape("pui-signon-"+
|
|
94
|
+
N(d))return e.innerHTML=authMessages["password required"],c.elements["auth-password"].focus(),!1;if(pui.pjsServer){var h="Basic "+btoa(N(a)+":"+N(d));fetch((pui.serverURL||"")+"/profoundui/atrium/authenticate",{method:"POST",headers:{Authorization:h}}).then(function(l){l.ok?(l=c.getAttribute("action")||c.action,document.cookie=escape("pui-signon-"+l)+"=1; path=/",sessionStorage.setItem("atrium-token",btoa(N(a)+":"+N(d))),location.href=l):401===l.status?(e.innerHTML=authMessages["invalid credentials"],
|
|
95
|
+
c.elements["auth-user"].focus()):503===l.status?l.json().then(function(n){g=authMessages["server unavailable"]||f["server unavailable"];e.innerHTML=g.replace(/{connectorURL}/,n.system);c.elements["auth-user"].focus()}):(g=authMessages["error authenticating"]||f["error authenticating"],e.innerHTML=g,c.elements["auth-user"].focus())})["catch"](function(l){g=authMessages["error authenticating"]||f["error authenticating"];e.innerHTML=g;c.elements["auth-user"].focus();console.error("Error during Atrium authentication:",
|
|
96
|
+
l)});return!1}pui.Aa(function(){localStorage["pui-http-auth-invalid"]&&delete localStorage["pui-http-auth-invalid"];var l=new pui.Ajax("/profoundui/pui0005010.pgm");l.async=!0;l.method="POST";pui.setReqAuth(l,a,d);l.suppressAlert=!0;l.onready=function(n){if(200==n.ka()){var k=eval("("+n.ja()+")");n=k.days;var m=!1;1==k.warn&&(0==n?(m=authMessages["password expired"],pui.alert(m),m=!0):(m=authMessages["password pending expiration"],m=m.replace(/{DAYS}/g,n),m=confirm(m)));n=c.getAttribute("action")||
|
|
97
|
+
c.action;m?(m="/profoundui/changepass?user="+encodeURIComponent(a),m+="&next="+encodeURIComponent(n),m+="&back="+encodeURIComponent(location.href),location.href=m):(document.cookie=escape("pui-signon-"+n)+"=1; path=/",location.href=n)}else e.innerHTML=authMessages["invalid credentials"],c.elements["auth-user"].focus()};l.send()});return!1};
|
|
97
98
|
pui.Aa=function(c){if("undefined"!==typeof T&&T.pjsServer)sessionStorage.removeItem("atrium-token"),c();else{var a=new pui.Ajax("/profoundui/pui0005010.pgm");a.async="function"===typeof c?!0:!1;a.method="POST";pui.setReqAuth(a,"PUI_SIGNOFF_USER","PUI_SIGNOFF_USER");a.suppressAlert=!0;"function"===typeof c&&(a.onready=function(){"function"==typeof c&&c()});a.send()}};window.pui.signOn=pui.we;window.pui.clearCredentials=pui.Aa;window.pui.signOnInit=pui.xe;
|
|
98
99
|
pui.ge=function(){var c=P(),a=document.getElementById("change-user"),d=document.getElementById("change-current"),e=a,f=document.getElementById("change-cancel");"undefined"!=typeof c.user&&(a.value=c.user.toUpperCase(),a.readOnly=!0,a.className+=" read-only",e=d);"undefined"==typeof c.back&&(f.style.display="none");document.getElementById("change-box").style.display="block";e.focus()};pui.fe=function(){var c=P();"undefined"!=typeof c.back&&(location.href=c.back)};
|
|
99
100
|
pui.kd=function(){if("undefined"===typeof T||!T.pjsServer){var c=P(),a=document.getElementById("change-form"),d=a.elements["change-user"].value,e=a.elements["change-current"].value,f=a.elements["change-new"].value,g=a.elements["change-confirm"].value,h=document.getElementById("change-message");h.innerHTML="";if(""==N(d))return h.innerHTML=passMessages["user required"],a.elements["change-user"].focus(),!1;if(""==N(e))return h.innerHTML=passMessages["current required"],a.elements["change-current"].focus(),
|
|
100
101
|
!1;if(""==N(f))return h.innerHTML=passMessages["new required"],a.elements["change-new"].focus(),!1;if(""==N(g))return h.innerHTML=passMessages["confirm required"],a.elements["change-confirm"].focus(),!1;if(f!=g)return h.innerHTML=passMessages["must match"],a.elements["change-new"].focus(),!1;g=new pui.Ajax("/profoundui/pui0005011.pgm");g.async=!0;g.method="POST";g.params={};g.params.user=d;g.params.current=e;g.params["new"]=f;g.suppressAlert=!0;g.onready=function(l){if(200!=l.ka())h.innerHTML="HTTP "+
|
|
101
|
-
l.ka()+" - "+l.wb()+".",a.elements["change-user"].focus();else{try{var
|
|
102
|
-
k.async=!0;k.method="POST";pui.setReqAuth(k,d,f);k.suppressAlert=!0;k.onready=function(
|
|
102
|
+
l.ka()+" - "+l.wb()+".",a.elements["change-user"].focus();else{try{var n=eval("("+l.ja()+")");if("boolean"!=typeof n.success)throw Error("Invalid response format: 'success' is not a boolean.");if(!n.success&&"string"!=typeof n.error)throw Error("Invalid response format: 'error' is not a string.");}catch(k){n={success:!1,error:"The server response is missing or invalid."}}0==n.success?(h.innerHTML=n.error,a.elements["change-user"].focus()):(pui.alert(passMessages.success),pui.Aa(function(){var k=new pui.Ajax("/profoundui/pui0005010.pgm");
|
|
103
|
+
k.async=!0;k.method="POST";pui.setReqAuth(k,d,f);k.suppressAlert=!0;k.onready=function(m){200==m.ka()?"undefined"!=typeof c.next&&(location.href=c.next):(pui.alert("HTTP "+m.ka()+" - "+m.wb()+"."),a.elements["change-user"].focus())};k.send()}))}};g.send();return!1}};
|
|
103
104
|
pui.setReqAuth=function(c,a,d){var e=-1!=navigator.userAgent.indexOf("Edge"),f=!e&&-1!=navigator.userAgent.indexOf("Chrome");e=!e&&-1!=navigator.userAgent.indexOf("Safari")&&!f;var g=-1!=navigator.userAgent.indexOf("Firefox");e||f||g?(c.user=encodeURIComponent(a),c.password=encodeURIComponent(d)):(c.user=a,c.password=d)};window.pui.passInit=pui.ge;window.pui.passCancel=pui.fe;window.pui.changePass=pui.kd;function U(c){var a={};switch(c){case "runtimeMsg":a.closeMessage="This will end your session.";a["no connection message"]="Unable to reach server. Check your connection and try again.";a["upload file limit"]="Limit of &1 file(s) exceeded.";a["upload size limit"]="Limit of &1MB per file exceeded";a["upload no files"]="No files selected.";a["upload duplicate file"]="Duplicate files selected.";a["upload file exists"]="One or more files already exist on the file system.";a["upload prevented"]="Operation prevented by exit program.";
|
|
104
105
|
a["upload input limit"]="Total input size limit exceeded.";a["upload no session"]="Not connected to a valid session.";a["upload timeout"]="Transaction timed out.";a["upload invalid response"]="The server response is missing or invalid.";a["upload cancelled"]="Upload canceled.";a["close browser text"]="To complete the log off process, please close your browser window.";a["session ended text"]="Your session has ended.";a["outside ucs2"]="Characters are outside of UCS-2 range.";a["invalid number"]="&1 is not a valid number.";
|
|
105
106
|
a["invalid length"]="&1 has an incorrect data length or decimal position.";a["invalid decimal"]="&1 has too many decimal places. (max: &2)";a["invalid choice"]='"&1" is invalid. Valid choices are: "&2" or "&3".';a["invalid date"]='"&1" is not a valid date. Example format: &2';a["invalid time"]='"&1" is not a valid time. Example format: &2';a["invalid time stamp"]='"&1" is not a valid time stamp. Example format: &2';a["invalid percent"]="&1 is not a valid decimal.";a["invalid digits"]='"&1" contains too many digits. Max: &2';
|
|
@@ -790,14 +791,14 @@ pui.getLanguageText=function(c,a,d){var e=pui.language;if(null==e||""==N(e)){e="
|
|
|
790
791
|
"upload file limit"==a&&(f=f.replace("{FILE_LIMIT}","&1")));"excel export text"==a&&"undefined"!=typeof pui.runtimeText[e]["csv export text"]&&(f=pui.runtimeText[e]["csv export text"]);if("runtimeText"==c){var g=a;"excel export text"==a&&(g="csv export text");var h="close browser text;csv export text;filter text;reset data;next link text;previous link text;remove filters text;session ended text;sort ascending text;sort descending text".split(";");for(e=0;e<h.length;e++)g==h[e]&&"undefined"!=typeof pui[h[e]]&&
|
|
791
792
|
(f=pui[h[e]])}if("runtimeMsg"==c)for(c=["closeMessage","no connection message"],e=0;e<c.length;e++)a==c[e]&&"undefined"!=typeof pui[c[e]]&&(f=pui[c[e]]);if(null!=d)for(e=1;e<=d.length;e++)f=f.replace("&"+e,d[e-1]);return f};pui.runtimeMsg.en_US=U("runtimeMsg");pui.runtimeText.en_US=U("runtimeText");pui.runtimeMsg.en_UK=V("runtimeMsg");pui.runtimeText.en_UK=V("runtimeText");pui.runtimeMsg.de_DE=W("runtimeMsg");pui.runtimeText.de_DE=W("runtimeText");pui.runtimeMsg.es_ES=X("runtimeMsg");
|
|
792
793
|
pui.runtimeText.es_ES=X("runtimeText");pui.runtimeMsg.es_MX=Y("runtimeMsg");pui.runtimeText.es_MX=Y("runtimeText");pui.runtimeMsg.fr_CA=da("runtimeMsg");pui.runtimeText.fr_CA=da("runtimeText");pui.runtimeMsg.fr_FR=ea("runtimeMsg");pui.runtimeText.fr_FR=ea("runtimeText");pui.runtimeMsg.he_IL=fa("runtimeMsg");pui.runtimeText.he_IL=fa("runtimeText");pui.runtimeMsg.it_IT=ha("runtimeMsg");pui.runtimeText.it_IT=ha("runtimeText");pui.runtimeMsg.ja_JP=ia("runtimeMsg");pui.runtimeText.ja_JP=ia("runtimeText");
|
|
793
|
-
pui.runtimeMsg.nl_NL=ja("runtimeMsg");pui.runtimeText.nl_NL=ja("runtimeText");pui.runtimeMsg.pt_BR=ma("runtimeMsg");pui.runtimeText.pt_BR=ma("runtimeText");pui.runtimeMsg.pt_PT=na("runtimeMsg");pui.runtimeText.pt_PT=na("runtimeText");pui.runtimeMsg.zh_HK=oa("runtimeMsg");pui.runtimeText.zh_HK=oa("runtimeText");var T={};window.Atrium=T;T.g={};T.g.bf={};T.g.i={};T.g.i.l={};T.g.i.groups={};T.g.i.C={};T.g.i.v={};T.h={};T.data={};T.action={};T.api={};window["Atrium.api"]=T.api;T.HTTP_HOST=null;T.HTTPS=null;T.THEMES=null;T.EXT_PATH=null;T.USE_VLDL=null;T.CUSTOM=null;T.CLEAR_CREDENTIALS=null;T.AULANG="";T.Ub="ontouchstart"in window;T.m="/profoundui/proddata/images/icons/";T.K="Atrium-nav-filter";T.ib=0;T.Qa=1;T.qa=2;T.Pc=0;T.Mc=1;T.V="N";T.za="T";T.ga="H";T.Oc="2";T.Nc="1";T.Ke="0";T.ha="0";
|
|
794
|
-
T.oa="3";T.Pa="4";T.hb="5";T.P="6";T.U="7";T.ya="T";T.pa="A";T.Na="0";T.na="1";T.ab="2";T.eb="3";T.bb="4";T.g.Ma=null;T.g.ta=null;T.g.Ga=null;T.g.N=null;T.g.j=null;T.g.ca=null;T.g.D=null;T.g.toolbar=null;T.g.F=null;T.g.I=null;T.g.X=null;T.g.sa=null;T.g.i.M=null;T.l={};T.l.ACBTITLE=null;T.l.ACBAN=null;T.l.ACBANHGHT=null;T.l.ACBANURL=null;T.l.ACTHEME=null;T.l.ACUTHEME=null;T.l.ACNTITLE=null;T.l.ACNWIDTH=null;T.l.ACNTYPE=null;T.l.ACSCLICK=null;T.B={};T.B.AUUSER=null;T.B.AUGROUP=null;
|
|
795
|
-
T.B.AUEDIT=null;T.B.AUNAME=null;T.B.AUPROF=null;T.B.AGNAME=null;T.B.AULANG=null;"true"!=pui.getCookie("initMFA")&&(pui.setCookie("initMFA","true",null,"/",null,null,"Strict"),pui.setCookie("authMFA","false",null,"/",null,null,"Strict"));T.items={};T.items.C=[];T.items.toolbar=[];T.items.L=[];T.A={};T.A.parent={title:"member of",text:"member of hlp"};T.A.AGNAME={title:"group name",text:"group name hlp"};T.A.inherit={title:"inherit settings",text:"inherit settings hlp"};
|
|
794
|
+
pui.runtimeMsg.nl_NL=ja("runtimeMsg");pui.runtimeText.nl_NL=ja("runtimeText");pui.runtimeMsg.pt_BR=ma("runtimeMsg");pui.runtimeText.pt_BR=ma("runtimeText");pui.runtimeMsg.pt_PT=na("runtimeMsg");pui.runtimeText.pt_PT=na("runtimeText");pui.runtimeMsg.zh_HK=oa("runtimeMsg");pui.runtimeText.zh_HK=oa("runtimeText");var T={};window.Atrium=T;T.g={};T.g.bf={};T.g.i={};T.g.i.l={};T.g.i.groups={};T.g.i.C={};T.g.i.v={};T.h={};T.data={};T.action={};T.api={};window["Atrium.api"]=T.api;T.HTTP_HOST=null;T.HTTPS=null;T.THEMES=null;T.EXT_PATH=null;T.USE_VLDL=null;T.CUSTOM=null;T.CLEAR_CREDENTIALS=null;T.AULANG="";T.Ub="ontouchstart"in window;T.m=(T.serverURL||"")+"/profoundui/proddata/images/icons/";T.K="Atrium-nav-filter";T.ib=0;T.Qa=1;T.qa=2;T.Pc=0;T.Mc=1;T.V="N";T.za="T";T.ga="H";T.Oc="2";T.Nc="1";T.Ke="0";T.ha="0";
|
|
795
|
+
T.ba="1";T.Fa="2";T.oa="3";T.Pa="4";T.hb="5";T.P="6";T.U="7";T.ya="T";T.pa="A";T.Na="0";T.na="1";T.ab="2";T.eb="3";T.bb="4";T.g.Ma=null;T.g.ta=null;T.g.Ga=null;T.g.N=null;T.g.j=null;T.g.ca=null;T.g.D=null;T.g.toolbar=null;T.g.F=null;T.g.I=null;T.g.X=null;T.g.sa=null;T.g.i.M=null;T.l={};T.l.ACBTITLE=null;T.l.ACBAN=null;T.l.ACBANHGHT=null;T.l.ACBANURL=null;T.l.ACTHEME=null;T.l.ACUTHEME=null;T.l.ACNTITLE=null;T.l.ACNWIDTH=null;T.l.ACNTYPE=null;T.l.ACSCLICK=null;T.B={};T.B.AUUSER=null;T.B.AUGROUP=null;
|
|
796
|
+
T.B.AUROLE=null;T.B.AUEDIT=null;T.B.AUNAME=null;T.B.AUPROF=null;T.B.AGNAME=null;T.B.AULANG=null;"true"!=pui.getCookie("initMFA")&&(pui.setCookie("initMFA","true",null,"/",null,null,"Strict"),pui.setCookie("authMFA","false",null,"/",null,null,"Strict"));T.items={};T.items.C=[];T.items.toolbar=[];T.items.L=[];T.A={};T.A.parent={title:"member of",text:"member of hlp"};T.A.AGNAME={title:"group name",text:"group name hlp"};T.A.inherit={title:"inherit settings",text:"inherit settings hlp"};
|
|
796
797
|
T.A.AUNAME={title:"user name",text:"user name hlp"};T.A.accessRole={title:"access role",text:"access role hlp"};T.A.AUEDIT={title:"can edit profile",text:"can edit profile hlp"};T.A.AUPROF={title:"user profile",text:"user profile hlp"};T.A.password={title:"password",text:"password hlp"};T.A.confirmPass={title:"conf password",text:"conf password hlp"};T.A.ACBTITLE={title:"browser title",text:"browser title hlp"};T.A.ACBAN={title:"show banner",text:"show banner hlp"};
|
|
797
798
|
T.A.ACBANHGHT={title:"banner height",text:"banner height hlp"};T.A.ACBANURL={title:"banner url",text:"banner url hlp"};T.A.ACTHEME={title:"theme",text:"theme hlp"};T.A.ACUTHEME={title:"allow sel theme",text:"allow sel theme hlp"};T.A.ACSEARCH={title:"show menu search",text:"show menu search hlp"};T.A.ACFAV={title:"show fav sys",text:"show fav sys hlp"};T.A.ACSHOWFAV={title:"show fav start",text:"show fav start hlp"};T.A.ACLIMIT={title:"limit num sessn",text:"limit num sessn hlp"};
|
|
798
799
|
T.A.ACTIMEOUT={title:"atrium timeout",text:"atrium timeout hlp"};T.A.ACSHOWHOME={title:"show hmpg start",text:"show hmpg start hlp"};T.A.ACHOMEURL={title:"home page url",text:"home page url hlp"};T.A.ACNTITLE={title:"navi pnl title",text:"navi pnl title hlp"};T.A.ACNWIDTH={title:"navi pnl width",text:"navi pnl width hlp"};T.A.ACNTYPE={title:"navi type",text:"navi type hlp"};T.A.ACSCLICK={title:"single click nav",text:"single click nav hlp"};T.A.ACCURLIB={title:"current library",text:"current library hlp"};
|
|
799
800
|
T.A.ACJOBD={title:"job descr",text:"job descr hlp"};T.A.ACJOBDLIB={title:"job descr lib",text:"job descr lib hlp"};T.A.ANTEXT={title:"item name",text:"item name hlp"};T.A.ANACTNTYPE={title:"action type",text:"action type hlp"};T.A.ANACTN={title:"url",text:"url hlp"};T.A.ANGURL={title:"genie url",text:"genie url hlp"};T.A.ANWINDOW={title:"open as",text:"open as hlp"};T.A.ANONCE={title:"opens once only",text:"opens once only hlp"};T.A.ANICON={title:"icon",text:"icon hlp"};
|
|
800
|
-
T.A.ANPARM={title:"parameter",text:"parameter hlp"};T.A.ANKEYWORDS={title:"keywords",text:"keywords hlp"};T.dimensions={};T.m="steel"==T.l.ACTHEME?"/profoundui/proddata/images/FlatIcons/":"/profoundui/proddata/images/icons/";T.g.init=function(){localStorage["pui-http-auth-invalid"]?(Ext.util.Cookies.set(escape("pui-signon-"+location.href),""),pui.Aa(function(){delete localStorage["pui-http-auth-invalid"];location.reload()})):(sessionStorage["atrium-token"]&&(Ext.Ajax.defaultHeaders={Authorization:"Basic "+sessionStorage["atrium-token"]}),Ext.MessageBox.buttonText.ok=pui.getLanguageText("runtimeText","ok"),Ext.MessageBox.buttonText.no=pui.getLanguageText("runtimeText","no"),Ext.MessageBox.buttonText.yes=pui.getLanguageText("runtimeText",
|
|
801
|
+
T.A.ANPARM={title:"parameter",text:"parameter hlp"};T.A.ANKEYWORDS={title:"keywords",text:"keywords hlp"};T.dimensions={};T.m="steel"==T.l.ACTHEME?(T.serverURL||"")+"/profoundui/proddata/images/FlatIcons/":(T.serverURL||"")+"/profoundui/proddata/images/icons/";T.g.init=function(){localStorage["pui-http-auth-invalid"]?(Ext.util.Cookies.set(escape("pui-signon-"+location.href),""),pui.Aa(function(){delete localStorage["pui-http-auth-invalid"];location.reload()})):(sessionStorage["atrium-token"]&&(Ext.Ajax.defaultHeaders={Authorization:"Basic "+sessionStorage["atrium-token"]}),Ext.MessageBox.buttonText.ok=pui.getLanguageText("runtimeText","ok"),Ext.MessageBox.buttonText.no=pui.getLanguageText("runtimeText","no"),Ext.MessageBox.buttonText.yes=pui.getLanguageText("runtimeText",
|
|
801
802
|
"yes"),Ext.MessageBox.buttonText.cancel=pui.getLanguageText("runtimeText","cancel"),Ext.BLANK_IMAGE_URL="/"+T.EXT_PATH+"/resources/images/default/s.gif",Ext.SSL_SECURE_URL="/html/blank.html",Ext.QuickTips.init(),Ext.Ajax.timeout=3E5,Ext.Ajax.method="POST",Ext.Ajax.extraParams={},Ext.getBody().on("contextmenu",function(c){c.stopEvent()}),window.onblur=function(){Ext.menu.MenuMgr.hideAll()},Ext.isIE7&&-1!=navigator.userAgent.indexOf("Trident/4.0")&&Ext.getBody().addClass("Atrium-ie8Compat"),Ext.override(Ext.form.Radio,
|
|
802
803
|
{setValue:function(c){"boolean"==typeof c?Ext.form.Radio.superclass.setValue.call(this,c):this.getCheckEl().select("input[name="+this.el.dom.name+"]").each(function(a){a.dom.value==c?Ext.getCmp(a.dom.id).setValue(!0):Ext.getCmp(a.dom.id).setValue(!1)},this);return this}}),Ext.override(Ext.form.Field,{Xa:function(c){this.rendered&&this.el.up(".x-form-item",10,!0).child(".x-form-item-label").update(c);this.fieldLabel=c}}),T.g.yd())};
|
|
803
804
|
T.g.yd=function(){T.g.xd();T.g.wd();T.g.qd();T.g.zd();T.g.sd();T.g.Ma=new Ext.Viewport({layout:"border",items:[T.g.ta,T.g.N,T.g.Ga]});T.g.j=new Ext.LoadMask(T.g.Ma.getEl(),{msgCls:"x-mask-loading atrium-screenMask"});T.g.j.ce=T.g.j.show;T.g.j.show=function(){T.g.j.ce();var c=Ext.getBody().child("div.atrium-screenMask",!0);c.previousSibling.style.zIndex=5E6;c.style.zIndex=5000001};T.g.j.msg=pui.getLanguageText("runtimeText","please wait");T.g.j.show();Ext.Ajax.request({url:T.h.s("PUI0003001.pgm"),
|
|
@@ -806,11 +807,12 @@ T.g.xd=function(){T.g.D=new Ext.TabPanel({hidden:!0,id:"Atrium-tabPanel",enableT
|
|
|
806
807
|
T.g.wd=function(){T.g.ta=new Ext.Panel({id:"Atrium-northPanel",region:"north",height:0,border:!1})};T.g.qd=function(){T.g.Ga=new Ext.Panel({id:"Atrium-centerPanel",region:"center",layout:"fit",border:!1})};T.g.zd=function(){T.g.N=new Ext.TabPanel({id:"Atrium-westPanel",region:"west",split:!0,margins:"0 0 0 5",border:!1,collapsible:!0,hidden:!0})};
|
|
807
808
|
T.kb=function(c){if(T.promptCloseBrowser){for(var a=document.getElementsByTagName("iframe"),d=!1,e=0,f=0;f<a.length;f++){0<=a[f].className.indexOf("selector")&&e++;try{var g=a[f].contentWindow.pui;null!==g&&"object"===typeof g&&"function"===typeof g.isServerBusy&&(d=!0)}catch(h){}}if(1===T.promptCloseBrowser&&d||2===T.promptCloseBrowser&&0<e||3===T.promptCloseBrowser)return a="string"===typeof T.closeBrowserMessage?T.closeBrowserMessage:pui.getLanguageText("runtimeMsg","close browser text AT"),c.returnValue=
|
|
808
809
|
a}};T.unload=function(){T.h.Ac();for(var c=T.g.D.items.getCount(),a,d=0;d<c;d++){a=T.g.D.items.itemAt(d);try{a.destroy()}catch(e){}}"1"===T.l.ACTIMEOUT&&(Ext.util.Cookies.set(escape("pui-signon-"+location.href),""),localStorage["pui-http-auth-invalid"]="1",T.g.ec(),pui.Aa())};
|
|
809
|
-
T.g.ob=function(){window.addEventListener?(window.addEventListener("beforeunload",T.kb,!1),window.addEventListener("unload",T.unload,!1)):window.attachEvent&&(window.attachEvent("onbeforeunload",T.kb),window.attachEvent("onunload",T.unload));T.m="steel"===T.l.ACTHEME?"/profoundui/proddata/images/FlatIcons/":"/profoundui/proddata/images/icons/";T.g.Fc(T.l.ACTHEME);document.title=T.l.ACBTITLE;T.g.pd();T.g.createToolbar();T.g.lc();T.g.kc();T.g.Wb();T.g.Hc();T.g.Ma.doLayout();
|
|
810
|
-
T.g.
|
|
810
|
+
T.g.ob=function(){window.addEventListener?(window.addEventListener("beforeunload",T.kb,!1),window.addEventListener("unload",T.unload,!1)):window.attachEvent&&(window.attachEvent("onbeforeunload",T.kb),window.attachEvent("onunload",T.unload));T.m="steel"===T.l.ACTHEME?(T.serverURL||"")+"/profoundui/proddata/images/FlatIcons/":(T.serverURL||"")+"/profoundui/proddata/images/icons/";T.g.Fc(T.l.ACTHEME);document.title=T.l.ACBTITLE;T.g.pd();T.g.createToolbar();T.g.lc();T.g.kc();T.g.Wb();T.g.Hc();T.g.Ma.doLayout();
|
|
811
|
+
T.g.j.hide();null!=T.g.I&&T.g.Va(T.g.I.getRootNode());T.g.te();if("function"==typeof T.onload)T.onload()};
|
|
812
|
+
T.g.pd=function(){null!=T.g.ca&&(T.g.ca.ownerCt.remove(T.g.ca),T.g.ca.destroy(),T.g.ca=null);"1"==T.l.ACBAN&&(T.g.ca=new Ext.Panel({id:"Atrium-banner",bodyBorder:!1,border:!1,hideBorders:!0,collapsible:!1,height:T.l.ACBANHGHT,html:'<iframe src="'+T.l.ACBANURL+'" style="width: 100%; height: '+T.l.ACBANHGHT+'px; border-style: none; overflow: hidden; margin: 0px;" scrolling="no" ></iframe>'}),T.g.ta.add(T.g.ca));T.g.ta.doLayout()};
|
|
811
813
|
T.g.createToolbar=function(){null!=T.g.toolbar&&(T.g.toolbar.ownerCt.remove(T.g.toolbar),T.g.toolbar.destroy(),T.g.toolbar=null);var c=[];c.push(new Ext.Toolbar.TextItem({text:pui.getLanguageText("runtimeText","user")+": "+T.B.AUNAME,cls:"atrium-toolbar-user"}),new Ext.Toolbar.Spacer,new Ext.Toolbar.Spacer);var a=[];"1"==T.l.ACSHOWHOME&&a.push({text:pui.getLanguageText("runtimeText","home page"),icon:T.m+"house.png",iconCls:"atrium-toolbar-home-icon",cls:"x-btn-text-icon atrium-toolbar-home-button",
|
|
812
814
|
handler:function(){null!=T.g.X?T.g.D.activate(T.g.X):T.g.Hc()}});T.CUSTOM||T.B.AUROLE!=T.Qa&&T.B.AUROLE!=T.qa||a.push({text:pui.getLanguageText("runtimeText","control panel"),icon:T.m+"cog_edit.png",iconCls:"atrium-toolbar-controlpanel-icon",cls:"x-btn-text-icon atrium-toolbar-controlpanel-button",handler:function(){T.g.i.rd()}});T.CUSTOM||"1"!=T.B.AUEDIT||a.push({text:pui.getLanguageText("runtimeText","my settings"),icon:T.m+"user_edit.png",iconCls:"atrium-toolbar-mysettings-icon",cls:"x-btn-text-icon atrium-toolbar-mysettings-button",
|
|
813
|
-
handler:function(){T.g.ud()}});if(!T.CUSTOM&&"1"==T.l.ACUTHEME){for(var d=[],e=0;e<T.THEMES.length;e++)d.push(new Ext.menu.CheckItem({text:T.THEMES[e][1],La:T.THEMES[e][0],group:"theme",listeners:{checkchange:function(f,g){1==g&&f.La!=T.l.ACTHEME&&(T.g.Fc(f.La),Ext.Ajax.request({url:T.h.s("PUI0003016.pgm"),params:{theme:f.La},callback:function(h,l,
|
|
815
|
+
handler:function(){T.g.ud()}});if(!T.CUSTOM&&"1"==T.l.ACUTHEME){for(var d=[],e=0;e<T.THEMES.length;e++)d.push(new Ext.menu.CheckItem({text:T.THEMES[e][1],La:T.THEMES[e][0],group:"theme",listeners:{checkchange:function(f,g){1==g&&f.La!=T.l.ACTHEME&&(T.g.Fc(f.La),Ext.Ajax.request({url:T.h.s("PUI0003016.pgm"),params:{theme:f.La},callback:function(h,l,n){T.data.u(n,function(k,m){0==k?(""==m.heading&&(m.heading=pui.getLanguageText("runtimeMsg","unable to save theme")),T.h.o(m)):T.l.ACTHEME=f.La})}}))}}}));
|
|
814
816
|
a.push({text:pui.getLanguageText("runtimeText","theme"),icon:T.m+"palette.png",iconCls:"atrium-toolbar-theme-icon",cls:"x-btn-text-icon atrium-toolbar-theme-button",menu:new Ext.menu.Menu({items:d,listeners:{beforeshow:function(f){f=f.items;for(var g,h=0;h<f.getCount();h++)g=f.itemAt(h),g.La==T.l.ACTHEME?g.setChecked(!0):g.setChecked(!1)}},defaults:{clickHideDelay:0}})})}T.l.AUROLE==T.qa&&a.push({text:pui.getLanguageText("runtimeText","about atrium"),handler:T.g.Qc,icon:T.m+"help.png",iconCls:"atrium-toolbar-help-icon",
|
|
815
817
|
cls:"x-btn-text-icon atrium-toolbar-help-button"});0<a.length&&c.push({text:pui.getLanguageText("runtimeText","settings"),iconCls:"atrium-toolbar-settings-button",cls:"x-btn-text-icon atrium-toolbar-settings-table",items:a,menu:new Ext.menu.Menu({items:a,defaults:{clickHideDelay:0}})});c.push(new Ext.Toolbar.Fill);0<T.items.C.length&&"1"==T.l.ACFAV&&c.push(new Ext.Toolbar.Button({id:"Atrium-addFavButton",text:" "+pui.getLanguageText("runtimeText","add to favorites"),cls:"x-btn-text-icon",icon:T.m+
|
|
816
818
|
"star.png",iconCls:"atrium-toolbar-favorites-button",handler:function(){var f=T.g.I.getRootNode(),g=T.g.D.getActiveTab();T.g.Yb(f,g.title,!1,g.Da,g.icon)},disabled:!0}),new Ext.Toolbar.Separator);c.push(new Ext.Toolbar.Button({id:"Atrium-exitButton",text:" "+pui.getLanguageText("runtimeText","exit"),cls:"x-btn-text-icon",icon:T.m+"door_out.png",iconCls:"atrium-toolbar-exit-button",handler:function(){T.g.close()}}));T.g.toolbar=new Ext.Toolbar({id:"Atrium-toolbar",height:30,items:c});c=0;null!=
|
|
@@ -829,26 +831,26 @@ T.g.ad=function(c,a){var d=a.ANTYPE==T.U&&""!=a.ANACTNTYPE&&""!=a.ANACTN;c.add({
|
|
|
829
831
|
T.g.Rc=function(c){c=new Ext.tree.TreePanel({layout:"fit",title:c.ANTEXT,rootVisible:!1,useArrows:!0,autoHeight:!0,enableDD:!0,root:new Ext.tree.TreeNode({id:c.ANITEM,expanded:!0}),loader:new Ext.tree.TreeLoader({dataUrl:T.h.s("PUI0003007.pgm"),nodeParameter:"parent",baseParams:{filter:""},listeners:{beforeload:function(a){"undefined"!=typeof Storage&&sessionStorage[T.K]&&(a.baseParams.filter=sessionStorage[T.K])},load:function(a,d,e){T.data.u(e,function(f,g){if(f)for(f=g.nav,g=0;g<f.length;g++)f[g].ANTEXT=
|
|
830
832
|
pui.G.decode(f[g].ANTEXT),T.g.Ra(d,f[g]);else T.h.o(g)})},loadexception:function(a,d,e){T.data.u(e,function(f,g){T.h.o(g)})}}}),autoScroll:!1,icon:""!=c.ANICON?c.ANICON:null,listeners:{expand:function(){T.g.F.hide();T.g.F.show();T.g.F.doLayout()}}});c.getSelectionModel().on("selectionchange",T.g.sc);c.on("contextmenu",T.g.jc);c.on("beforemovenode",T.g.ac);c.on("movenode",T.g.wc);T.g.F.add(c)};
|
|
831
833
|
T.g.Ra=function(c,a){var d=!1;a.ANTYPE==T.ba&&""!=a.ANACTNTYPE&&""!=a.ANACTN&&(d=!0);for(var e=1,f=c.parentNode;null!=f;)e+=1,f=f.parentNode;c=1==T.testingMode&&1==d?c.appendChild(new Ext.tree.AsyncTreeNode({id:a.ANITEM,text:a.ANTEXT,icon:""!=a.ANICON?a.ANICON:null,cls:"Atrium-navLevel"+e+" testing-mode-folder",leaf:!1,expanded:!1,tc:!0,draggable:!1,allowDrop:!0,actionType:1==d?a.ANACTNTYPE:null,action:1==d?a.ANACTN:null,newWindow:1==d&&"1"==a.ANWINDOW?!0:null,once:1==d&&"1"==a.ANONCE?!0:null,parm:1==
|
|
832
|
-
d?a.ANPARM:null,loader:new Ext.tree.TreeLoader({dataUrl:"/auto-testing/test-list",autoLoad:!1,baseParams:{parentId:a.ANITEM},processResponse:function(g,h,l){"function"==typeof l&&l(this,h)},listeners:{load:function(g,h,l){g=Ext.decode(l.responseText);if(Array.isArray(g))for(l=0;l<g.length;l++){var
|
|
834
|
+
d?a.ANPARM:null,loader:new Ext.tree.TreeLoader({dataUrl:(T.serverURL||"")+"/auto-testing/test-list",autoLoad:!1,baseParams:{parentId:a.ANITEM},processResponse:function(g,h,l){"function"==typeof l&&l(this,h)},listeners:{load:function(g,h,l){g=Ext.decode(l.responseText);if(Array.isArray(g))for(l=0;l<g.length;l++){var n=g[l],k=n.status;h.appendChild(new Ext.tree.TreeNode({id:"test-"+n.id,text:n.text,leaf:!0,cls:"atrium-test-status-"+k,icon:Ext.BLANK_IMAGE_URL,qtip:"Test Id: "+n.id+"\nStatus: "+k.charAt(0).toUpperCase()+
|
|
833
835
|
k.slice(1),status:k,Ca:!0,draggable:!0,allowDrop:!1}))}}}})})):c.appendChild(new Ext.tree.AsyncTreeNode({id:a.ANITEM,text:a.ANTEXT,icon:""!=a.ANICON?a.ANICON:null,actionType:1==d?a.ANACTNTYPE:null,action:1==d?a.ANACTN:null,newWindow:1==d&&"1"==a.ANWINDOW?!0:null,once:1==d&&"1"==a.ANONCE?!0:null,parm:1==d?a.ANPARM:null,cls:"Atrium-navLevel"+e,leaf:a.ANTYPE==T.ba?!0:!1,draggable:!1,allowDrop:!1}));if(d&&(1!=T.testingMode||1!=d))c.on(T.Ub||"1"==T.l.ACSCLICK?"click":"dblclick",T.action.doAction)};
|
|
834
|
-
T.g.Fc=function(c){var a=document.getElementById("Atrium-theme"),d=a.href,e="";""!=c&&(e="/profoundui/userdata/atrium themes/css/xtheme-"+c+".css");e!=d&&(a.href=e)};
|
|
835
|
-
T.g.close=function(c){function a(){function l(){Ext.getBody().update('<div id="close-browser-msg" style="width: 95%; text-align: center; font-size: 200%;"><br/>'+pui.getLanguageText("runtimeMsg",!0===c?"session timed out":"close browser text")+"</div>");try{if("function"===typeof T.onclose)T.onclose();window.close()}catch(
|
|
836
|
+
T.g.Fc=function(c){var a=document.getElementById("Atrium-theme"),d=a.href,e="";""!=c&&(e=(T.serverURL||"")+"/profoundui/userdata/atrium themes/css/xtheme-"+c+".css");e!=d&&(a.href=e)};
|
|
837
|
+
T.g.close=function(c){function a(){function l(){Ext.getBody().update('<div id="close-browser-msg" style="width: 95%; text-align: center; font-size: 200%;"><br/>'+pui.getLanguageText("runtimeMsg",!0===c?"session timed out":"close browser text")+"</div>");try{if("function"===typeof T.onclose)T.onclose();window.close()}catch(n){}}T.h.Ac();window.removeEventListener&&(window.removeEventListener("beforeunload",T.kb,!1),window.removeEventListener("unload",T.unload,!1));T.g.D.destroy();"1"===T.l.ACTIMEOUT&&
|
|
836
838
|
(localStorage["pui-http-auth-invalid"]="1",T.g.ec(c));1==T.CLEAR_CREDENTIALS||"1"===T.l.ACTIMEOUT?(Ext.util.Cookies.set(escape("pui-signon-"+location.href),""),localStorage["pui-http-auth-invalid"]&&delete localStorage["pui-http-auth-invalid"],pui.Aa(l)):l()}if(!0===c)a();else{for(var d=document.getElementsByTagName("iframe"),e=!1,f=0,g=0;g<d.length;g++){0<=d[g].className.indexOf("selector")&&f++;try{var h=d[g].contentWindow.pui;if(null!==h&&"object"===typeof h&&"function"===typeof h.isServerBusy){if(h.isServerBusy())return!1;
|
|
837
839
|
e=!0}}catch(l){}}1===T.promptCloseTab&&e||2===T.promptCloseTab&&0<f||3===T.promptCloseTab?(d="string"===typeof T.closeAllTabsMessage?T.closeAllTabsMessage:pui.getLanguageText("runtimeMsg","close all tabs"),Ext.MessageBox.show({msg:d,buttons:Ext.MessageBox.YESNO,fn:function(l){"yes"===l&&a()}})):a()}};T.g.Qc=function(){T.h.J(pui.getLanguageText("runtimeText","about atrium msg"))};
|
|
838
840
|
T.g.ud=function(){var c={id:T.B.AUUSER,ua:T.B.AUGROUP,mode:"Edit",title:pui.getLanguageText("runtimeText","my settings")};T.g.i.l.Ia(c)};
|
|
839
841
|
T.g.Hc=function(){null!=T.g.X&&(T.g.D.remove(T.g.X),T.g.X=null);if("1"==T.l.ACSHOWHOME){for(var c=null,a=0;a<T.items.L.length;a++)T.items.L[a].ANITEM==T.l.ACHOMEURL&&(c=T.items.L[a]);null!=c&&(a={attributes:{}},a.attributes.actionType=c.ANACTNTYPE,a.attributes.action=c.ANACTN,a.attributes.id=c.ANITEM,a.attributes.newWindow=c.ANWINDOW,a.attributes.text=c.ANTEXT,a.attributes.once=c.ANONCE,a.attributes.parm=c.ANPARM,T.action.doAction(a))}};
|
|
840
|
-
T.g.nc=function(c){function a(
|
|
841
|
-
this.getCount()&&(h.getSelectionModel().selectFirstRow(),h.body.focus())},loadexception:function(
|
|
842
|
-
renderer:function(
|
|
843
|
-
text:pui.getLanguageText("runtimeText","open selected item"),disabled:!0,handler:function(
|
|
844
|
-
"of")+" {2}"}),listeners:{rowdblclick:function(
|
|
842
|
+
T.g.nc=function(c){function a(n,k){n=n.get("item");l.close();T.api.launchItem(n,null,null,k)}var d=25,e=800,f=670;800>T.g.Ma.getWidth()&&(e=600,f=460,d=15);var g="";"undefined"!=typeof Storage&&sessionStorage[T.K]&&(g=sessionStorage[T.K]);c=new Ext.data.Store({autoDestroy:!0,baseParams:{query:pui.G.encode(c),lang:T.B.AULANG,filter:g},proxy:new Ext.data.HttpProxy({url:T.h.s("PUI0003030.pgm"),method:"POST"}),reader:new Ext.data.JsonReader({root:"data",fields:["item","text","keywords"]}),listeners:{load:function(){0<
|
|
843
|
+
this.getCount()&&(h.getSelectionModel().selectFirstRow(),h.body.focus())},loadexception:function(n,k,m){T.data.u(m,function(r,p){""==p.heading&&(p.heading=pui.getLanguageText("runtimeMsg","unable to load x",[pui.getLanguageText("runtimeText","search results")]));T.h.o(p,function(){l.close()})})}}});var h=new Ext.grid.GridPanel({enableColumnHide:!1,enableColumnMove:!1,enableColumnResize:!0,enableHdMenu:!1,stripeRows:!0,loadMask:!0,columns:[{header:pui.getLanguageText("runtimeText","item"),dataIndex:"text",
|
|
844
|
+
renderer:function(n){return pui.G.decode(n)}},{header:pui.getLanguageText("runtimeText","keywords"),dataIndex:"keywords",renderer:function(n){return pui.G.decode(n)}}],store:c,viewConfig:{emptyText:"",autoFill:!0,forceFit:!0},selModel:new Ext.grid.RowSelectionModel({singleSelect:!0,listeners:{selectionchange:function(){this.hasSelection()?Ext.getCmp("atrium-nav-go-button").enable():Ext.getCmp("atrium-nav-go-button").disable()}}}),tbar:new Ext.Toolbar({items:[{id:"atrium-nav-go-button",icon:T.m+"application_go.png",
|
|
845
|
+
text:pui.getLanguageText("runtimeText","open selected item"),disabled:!0,handler:function(n,k){a(h.getSelectionModel().getSelected(),k.browserEvent)}}]}),bbar:new Ext.PagingToolbar({store:c,pageSize:d,displayInfo:!0,beforePageText:pui.getLanguageText("runtimeText","page"),afterPageText:pui.getLanguageText("runtimeText","of")+" {0}",emptyMsg:pui.getLanguageText("runtimeText","no results to dsp"),displayMsg:pui.getLanguageText("runtimeText","displaying results")+" {0} - {1} "+pui.getLanguageText("runtimeText",
|
|
846
|
+
"of")+" {2}"}),listeners:{rowdblclick:function(n,k,m){a(this.getSelectionModel().getSelected(),m)},keypress:function(n){var k=n.getKey();13!=k&&10!=k||!this.getSelectionModel().hasSelection()||a(this.getSelectionModel().getSelected(),n)}}}),l=new Ext.Window({layout:"fit",title:pui.getLanguageText("runtimeText","search results"),width:e,height:f,modal:!0,resizable:!1,items:[h],buttons:[{text:pui.getLanguageText("runtimeText","close"),handler:function(){l.close()}}]});l.show();h.store.load({params:{start:0,
|
|
845
847
|
limit:d}})};
|
|
846
848
|
T.g.kc=function(){function c(d,e){for(var f=0;f<e.length;f++)e[f].isLeaf()||e[f].eachChild(function(g){d.unselect(g);c(d,g.childNodes)})}null!=T.g.I&&(T.g.I.ownerCt.remove(T.g.I),T.g.I.destroy(),T.g.I=null);if(1>T.items.C.length)T.g.N.hide();else if("1"==T.l.ACFAV){var a={movenode:function(d,e,f,g){T.g.pe(g)}};a[T.Ub||"1"==T.l.ACSCLICK?"click":"dblclick"]=function(d,e){d.isLeaf()&&(T.action.doAction(d,e),e.stopEvent())};T.g.I=T.g.N.add(new Ext.tree.TreePanel({title:pui.getLanguageText("runtimeText","favorites"),
|
|
847
849
|
enableDD:!0,root:new Ext.tree.TreeNode({id:"0"}),autoScroll:!0,rootVisible:!1,tbar:new Ext.Toolbar({items:[{id:"Atrium-fav-newButton",tooltip:pui.getLanguageText("runtimeText","new folder"),icon:T.m+"folder_add.png",iconCls:"atrium-fav-add-button",handler:function(){var d=T.g.I.getSelectionModel().getSelectedNodes();d=0==d.length||d[0].isLeaf()?T.g.I.getRootNode():d[0];var e=pui.getLanguageText("runtimeText","new folder");T.g.Yb(d,e,!0)}},new Ext.Toolbar.Spacer,{id:"Atrium-fav-renameButton",tooltip:pui.getLanguageText("runtimeText",
|
|
848
850
|
"rename"),icon:T.m+"change.png",iconCls:"atrium-fav-edit-button",disabled:!0,handler:function(){var d=T.g.I.getSelectionModel().getSelectedNodes();T.g.Nd(d[0])}},new Ext.Toolbar.Spacer,{id:"Atrium-fav-removeButton",tooltip:pui.getLanguageText("runtimeText","rmv from favorites"),icon:T.m+"delete_circle.png",iconCls:"atrium-fav-delete-button",disabled:!0,handler:function(){var d=T.g.I.getSelectionModel().getSelectedNodes();T.g.ke(d)}}]}),selModel:new Ext.tree.MultiSelectionModel({listeners:{selectionchange:function(d,
|
|
849
851
|
e){var f=Ext.getCmp("Atrium-fav-newButton"),g=Ext.getCmp("Atrium-fav-renameButton"),h=Ext.getCmp("Atrium-fav-removeButton");f.disable();g.disable();h.disable();c(d,e);0!=e.length&&1!=e.length||f.enable();1==e.length&&g.enable();0<e.length&&h.enable()}}}),listeners:a}));"1"===T.l.ACFAV&&"1"===T.l.ACSHOWFAV&&T.g.N.setActiveTab(T.Mc)}};
|
|
850
|
-
T.g.Va=function(c,a,d){function e(g){for(var h=0;h<g.length;h++){var l=g[h];l.text=pui.G.decode(l.text);l.navText&&(l.navText=pui.G.decode(l.navText));l.children instanceof Array&&e(l.children)}}T.g.j.show();var f="";"undefined"!=typeof Storage&&sessionStorage[T.K]&&(f=sessionStorage[T.K]);Ext.Ajax.request({url:T.h.s("PUI0003031.pgm"),method:"POST",params:{mode:"list",parent:c.id,filter:f},callback:function(g,h,l){T.data.u(l,function(
|
|
851
|
-
d()}):(c.removeAll(!0),c.appendChild(k),T.g.j.hide())):(T.g.j.hide(),T.h.o(k))})}})};T.g.Yb=function(c,a,d,e,f){f=f||"";T.g.j.show();Ext.Ajax.request({url:T.h.s("PUI0003031.pgm"),method:"POST",params:{mode:"add",parent:c.id,text:pui.G.encode(a),folder:1==d?"1":"0",item:0==d?e:"",icon:f},callback:function(g,h,l){T.data.u(l,function(
|
|
852
|
+
T.g.Va=function(c,a,d){function e(g){for(var h=0;h<g.length;h++){var l=g[h];l.text=pui.G.decode(l.text);l.navText&&(l.navText=pui.G.decode(l.navText));l.children instanceof Array&&e(l.children)}}T.g.j.show();var f="";"undefined"!=typeof Storage&&sessionStorage[T.K]&&(f=sessionStorage[T.K]);Ext.Ajax.request({url:T.h.s("PUI0003031.pgm"),method:"POST",params:{mode:"list",parent:c.id,filter:f},callback:function(g,h,l){T.data.u(l,function(n,k){n?(e(k),a?c.expand(!1,!1,function(){c.removeAll(!0);c.appendChild(k);
|
|
853
|
+
d()}):(c.removeAll(!0),c.appendChild(k),T.g.j.hide())):(T.g.j.hide(),T.h.o(k))})}})};T.g.Yb=function(c,a,d,e,f){f=f||"";T.g.j.show();Ext.Ajax.request({url:T.h.s("PUI0003031.pgm"),method:"POST",params:{mode:"add",parent:c.id,text:pui.G.encode(a),folder:1==d?"1":"0",item:0==d?e:"",icon:f},callback:function(g,h,l){T.data.u(l,function(n,k){n?(T.g.N.activate(T.g.I),T.g.Va(c,!0,function(){if(d){var m=c.childNodes[c.childNodes.length-1];T.g.I.getSelectionModel().select(m)}T.g.j.hide()})):(T.g.j.hide(),T.h.o(k))})}})};
|
|
852
854
|
T.g.ke=function(c){T.g.j.show();for(var a={mode:"remove"},d=0;d<c.length;d++)a["id"+(d+1)]=c[d].id;Ext.Ajax.request({url:T.h.s("PUI0003031.pgm"),method:"POST",params:a,callback:function(e,f,g){T.data.u(g,function(h,l){if(h){for(h=0;h<c.length;h++)c[h].parentNode.removeChild(c[h],!0);T.g.j.hide()}else T.g.j.hide(),T.h.o(l)})}})};
|
|
853
855
|
T.g.le=function(c,a,d){T.g.j.show();Ext.Ajax.request({url:T.h.s("PUI0003031.pgm"),method:"POST",params:{mode:"rename",id:c.id,text:pui.G.encode(a.trim())},callback:function(e,f,g){T.data.u(g,function(h,l){h?(c.setText(a),T.g.j.hide()):(T.g.j.hide(),T.h.o(l,function(){c.setText(d)}))})}})};
|
|
854
856
|
T.g.pe=function(c){T.g.j.show();for(var a={mode:"reorder",parent:c.id},d=0;d<c.childNodes.length;d++)a["child"+(d+1)]=c.childNodes[d].id;Ext.Ajax.request({url:T.h.s("PUI0003031.pgm"),method:"POST",params:a,callback:function(e,f,g){T.data.u(g,function(h,l){h?T.g.j.hide():(T.g.j.hide(),T.h.o(l,function(){T.g.Va(T.g.I.getRootNode())}))})}})};
|
|
@@ -860,7 +862,7 @@ T.g.dc=function(c,a){Ext.Ajax.request({url:T.h.s("PUI0003037.pgm"),params:{id:a.
|
|
|
860
862
|
T.g.Bb(a),!0}else return T.g.Bb(a),!0;else return pui.setCookie("authMFA","false",null,"/",null,null,"Strict"),T.g.j.hide(),T.h.o(h),!1})}})};var Z=0;
|
|
861
863
|
T.g.Ic=function(c,a,d,e,f){var g=T.g.Ua("MFARegHelp",e.AUPROF,""),h=new Ext.Window({title:"<h3>Two-Factor Authentication</h3>",html:T.g.Ua("MFAreg",e.AUPROF,f),width:pui.flatlook?310:350,height:pui.flatlook?355:405,resizable:!1,modal:!0,bodyStyle:{"padding-top":"00px","padding-left":"00px","white-space":"normal","text-align":"left"},buttonAlign:"center",buttons:[{text:"OK",id:"OKBtn",handler:function(){T.g.cc("reg",c,a,d,e,h)}},{text:"Cancel",handler:function(){pui.setCookie("authMFA","false",null,
|
|
862
864
|
"/",null,null,"Strict");h.close();T.h.o("MFA Registration Canceled.");return!1}},{text:"<div><img id='mfa.ui.helpBtn' src="+T.m+"help.png></div>",width:"20px",handler:function(){(new Ext.Window({title:"Mobile Authenticator Help",html:g,width:pui.flatlook?555:605,height:pui.flatlook?200:250,resizable:!1,layout:"fit",modal:!0})).show()}}],listeners:{afterrender:function(){document.getElementById("i1").focus();document.getElementById("i1").select();QRCode(document.getElementById("qrcode"),{text:c,width:100,
|
|
863
|
-
height:100,Se:"#000000",Te:"#ffffff",Ve:QRCode.CorrectLevel.H});addEventListener("keydown",function(
|
|
865
|
+
height:100,Se:"#000000",Te:"#ffffff",Ve:QRCode.CorrectLevel.H});addEventListener("keydown",function(n){keyEvent=n;void 0!==n.key&&"Enter"===n.key&&(n.preventDefault(),document.getElementById("OKBtn").click())});codes=document.getElementsByClassName("atrium-ui-mfa-code");for(var l=0;l<codes.length;l++)codeId=codes[l].id,codes[l].addEventListener("keyup",function(n){T.g.$b(n)});T.g.Jc()}}});h.show()};
|
|
864
866
|
T.g.Gc=function(c,a,d,e){pui.setCookie("authMFA","false",null,"/",null,null,"Strict");var f=T.g.Ua("MFAAuthHelp",d.AUPROF,""),g=new Ext.Window({title:"<h3>Two-Factor Authentication</h3>",html:T.g.Ua("MFAauth",d.AUPROF,e),width:pui.flatlook?220:270,height:pui.flatlook?210:260,resizable:!1,modal:!0,bodyStyle:{"padding-top":"20px","padding-left":"20px","white-space":"normal","text-align":"left"},buttonAlign:"center",buttons:[{text:"OK",id:"OKBtn",handler:function(){T.g.cc("auth","",c,a,d,g)}},{text:"Cancel",
|
|
865
867
|
handler:function(){pui.setCookie("authMFA","false",null,"/",null,null,"Strict");g.close();T.h.o("MFA Authorization Canceled.");return!1}},{text:"<div><img id='mfa.ui.helpBtn' src="+T.m+"help.png></div>",width:"20px",handler:function(){(new Ext.Window({width:pui.flatlook?380:425,height:pui.flatlook?100:150,resizable:!1,html:f,layout:"fit",title:"Mobile Authenticator Help",modal:!0})).show()}}],listeners:{afterrender:function(){document.getElementById("i1").focus();document.getElementById("i1").select();
|
|
866
868
|
addEventListener("keydown",function(l){keyEvent=l;document.getElementById("userToken").focus();void 0!==l.key&&"Enter"===l.key&&(l.preventDefault(),document.getElementById("OKBtn").click())});codes=document.getElementsByClassName("atrium-ui-mfa-code");for(var h=0;h<codes.length;h++)codeId=codes[h].id,codes[h].addEventListener("keyup",function(l){T.g.$b(l)});T.g.Jc()}}});g.show()};
|
|
@@ -877,58 +879,60 @@ d+"</div>";break;case "MFAauth":e="<div class='atrium-ui-heading'> Enter the 6 d
|
|
|
877
879
|
e+="<input id='i5' class='atrium-ui-mfa-code' type='text' maxlength='1' size='1'> ";e+="<input id='i6' class='atrium-ui-mfa-code' type='text' maxlength='1' size='1'> ";e+="<input id='i7' class='atrium-ui-mfa-code atrium-ui-hidden'>";e+="</div>";e+="<div id='time' class='atrium-ui-time atrium-ui-time-auth'> </div>";e=e+("<div class='atrium-ui-acct atrium-ui-acct-auth'>Account Name: ProfoundUI Atrium: "+a+"</div><div id='errorMsg' class='atrium-ui-error' type='text' value=''>")+(d+"</div>");
|
|
878
880
|
break;case "MFARegHelp":e="<div class='help-wdw-hdr-sm'>Help text:</div><div class='help-wdw-hdr'><b>Mobile authenticator app</b></div><ol type='0' class='help-wdw-text'>";e+="<li>1. Download any <b>mobile authenticator app</b> on your phone from Google Play<br> or App store, or open an authenticator app that you already have on your phone.</li>";e+="<li>2. Scan the QR code on the screen with your authenticator app to register<br> your account with the app.</li>";
|
|
879
881
|
e+="<li>3. Enter the six-digit code shown on the authenticator app.</li>";break;case "MFAAuthHelp":e="<div class='help-wdw-hdr-sm'>Help text:</div><div class='help-wdw-hdr'><b>Mobile authenticator app</b></div><ol type='0' class='help-wdw-text'>",e+="<li>Enter the six-digit code shown on the authenticator app.</li>"}return e};
|
|
880
|
-
T.g.pb=function(){var c;T.l.ACNTYPE===T.ya?
|
|
881
|
-
|
|
882
|
-
setTimeout(function(){var
|
|
883
|
-
100)},afterrender:function(){
|
|
884
|
-
T.g.rc=function(c){c.select();var a=[{text:"New Test...",icon:"/profoundui/proddata/images/FlatIcons/16x16/add.png",handler:T.g.pb},{text:"Work with Test",icon:"/profoundui/proddata/images/FlatIcons/view.png",handler:function(){var e=c.attributes.id.replace("test-","");T.action.R("/auto-testing/work-with-test?testid="+e,!1,"Work with Test ("+c.attributes.text+")",null,!1,!0)}},{text:"Rename...",icon:"/profoundui/proddata/images/FlatIcons/change.png",
|
|
885
|
-
icon:"/profoundui/proddata/images/FlatIcons/delete_circle.png",handler:function(){T.g.Jd(c)}}];if("recorded"===c.attributes.status||"validated"===c.attributes.status)a.splice(1,0,{text:("validated"===c.attributes.status?"Revalidate":"Validate")+(T.recordEnv?"":"..."),icon:"/profoundui/proddata/images/FlatIcons/launch.png",handler:function(){var e=c.id.replace("test-",""),f=T.recordEnv;f?T.action.R(
|
|
886
|
-
null,!1,!0):T.g.Lb(function(g){f=g.get("envname");T.action.R("/auto-testing/work-with-test?testid="+e+"&action=validate&env="+f,!1,"Validating Test ("+c.text+")",null,!1,!0)})}}),a.splice(2,0,{text:"Rerecord",icon:"/profoundui/proddata/images/FlatIcons/record.png",handler:function(){var e=c.id.replace("test-",""),f=T.recordEnv;f?T.action.R(
|
|
887
|
-
e+"&action=rerecord&env="+f,!1,"Rerecord Test ("+c.text+")",null,!1,!0)})}});"new"===c.attributes.status&&a.splice(1,0,{text:"Record",icon:"/profoundui/proddata/images/FlatIcons/record.png",handler:function(e,f){e={attributes:{xf:!0}};Object.assign(e.attributes,c.parentNode.attributes);e.attributes.Ib={macro:"puilauncher",
|
|
888
|
-
icon:"/profoundui/proddata/images/FlatIcons/16x16/launch-session.png",handler:function(){T.g.Lb(function(e){var f=c.id.replace("test-","");e=e.get("envname");T.action.R("/auto-testing/work-with-test?testid="+f+"&action=run&env="+e,!1,"Work with Run ("+c.text+")",null,!1,!0)})}}),
|
|
889
|
-
0,{text:"
|
|
890
|
-
handler:function(){T.g.Qd(c)}}):a.push({text:"Disable",icon:"/profoundui/proddata/images/FlatIcons/disable.png",handler:function(){T.g.Ld(c)}});return new Ext.menu.Menu({items:a})};
|
|
891
|
-
T.g.Jd=function(c){Ext.Msg.confirm('Delete "'+c.attributes.text+'"',"Are you sure you want to delete this test?",function(a){"yes"===a&&(T.g.j.msg=pui.getLanguageText("runtimeText","please wait"),T.g.j.show(),Ext.Ajax.request({url:"/auto-testing/delete-test",method:"POST",jsonData:{id:c.id.replace("test-","")},success:function(d){Ext.decode(d.responseText).success?c.remove():Ext.Msg.alert("Error","Failed to delete test.");T.g.j.hide()},failure:function(){T.g.j.hide();Ext.Msg.alert("Error",
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
T.g.
|
|
895
|
-
T.g.
|
|
896
|
-
|
|
897
|
-
T.g.
|
|
898
|
-
T.g.
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
Ext.
|
|
907
|
-
T.g.
|
|
908
|
-
|
|
882
|
+
T.g.pb=function(c){var a=c;a||(T.l.ACNTYPE===T.ya?a=T.g.F.getSelectionModel().getSelectedNode():T.l.ACNTYPE===T.pa&&T.g.F.items.each(function(f){if(f=f.getSelectionModel().getSelectedNode())return a=f,!1}));if(a){a.attributes.Ca&&(a=a.parentNode);var d=new Ext.FormPanel({labelWidth:100,frame:!1,bodyStyle:{padding:"10px"},items:[{xtype:"displayfield",fieldLabel:"Menu Item",value:a.text,name:"menuItem",width:250},{xtype:"textfield",fieldLabel:"Test Description",name:"testDescription",allowBlank:!1,
|
|
883
|
+
width:250}]}),e=new Ext.Window({title:"New Test",width:400,height:145,layout:"fit",shadow:!1,modal:!0,resizable:!1,items:[d],buttons:[{text:"Create",handler:function(){if(d.getForm().isValid()){var f=d.getForm().findField("testDescription").getValue(),g=a.id;T.g.j.msg=pui.getLanguageText("runtimeText","please wait");T.g.j.show();Ext.Ajax.request({url:(T.serverURL||"")+"/auto-testing/create-test",method:"POST",jsonData:{itemId:g,description:f},success:function(h){var l=Ext.decode(h.responseText).testId;
|
|
884
|
+
l?a.reload(function(){a.expand();setTimeout(function(){var n=a.findChild("id","test-"+l);n?n.select():console.warn("Newly created test item not found in tree.");T.g.j.hide()})}):(Ext.MessageBox.alert("Error","Failed to create test. No test ID was returned."),T.g.j.hide())},failure:function(h){var l;try{(l=JSON.parse(h.responseText).error)||(l="Uknown error")}catch(n){l="Uknown error"}T.g.j.hide();Ext.MessageBox.alert("Error","Failed to create test. "+l+".")}});e.close()}}},{text:"Cancel",handler:function(){e.close()}}],
|
|
885
|
+
listeners:{show:function(){d.getForm().findField("testDescription").focus(!1,100)},afterrender:function(){d.getForm().getEl().on("keydown",function(f){f.getKey()===f.ENTER&&e.buttons[0].handler()})}}});c=Ext.getCmp("Atrium-nav-new-test-button");e.show();c?e.alignTo(c.getEl(),"tl-bl?",[0,10]):e.center()}else Ext.Msg.alert("Error","No item selected.")};
|
|
886
|
+
T.g.rc=function(c){c.select();var a=[{text:"New Test...",icon:(T.serverURL||"")+"/profoundui/proddata/images/FlatIcons/16x16/add.png",handler:function(){T.g.pb(c)}},{text:"Work with Test",icon:(T.serverURL||"")+"/profoundui/proddata/images/FlatIcons/view.png",handler:function(){var e=c.attributes.id.replace("test-","");T.action.R((T.serverURL||"")+"/auto-testing/work-with-test?testid="+e,!1,"Work with Test ("+c.attributes.text+")",null,!1,!0)}},{text:"Rename...",icon:(T.serverURL||"")+"/profoundui/proddata/images/FlatIcons/change.png",
|
|
887
|
+
handler:function(){T.g.oe(c)}},{text:"Delete...",icon:(T.serverURL||"")+"/profoundui/proddata/images/FlatIcons/delete_circle.png",handler:function(){T.g.Jd(c)}}];if("recorded"===c.attributes.status||"validated"===c.attributes.status)a.splice(1,0,{text:("validated"===c.attributes.status?"Revalidate":"Validate")+(T.recordEnv?"":"..."),icon:(T.serverURL||"")+"/profoundui/proddata/images/FlatIcons/launch.png",handler:function(){var e=c.id.replace("test-",""),f=T.recordEnv;f?T.action.R((T.serverURL||"")+
|
|
888
|
+
"/auto-testing/work-with-test?testid="+e+"&action=validate&env="+f,!1,"Validating Test ("+c.text+")",null,!1,!0):T.g.Lb(function(g){f=g.get("envname");T.action.R((T.serverURL||"")+"/auto-testing/work-with-test?testid="+e+"&action=validate&env="+f,!1,"Validating Test ("+c.text+")",null,!1,!0)})}}),a.splice(2,0,{text:"Rerecord",icon:(T.serverURL||"")+"/profoundui/proddata/images/FlatIcons/record.png",handler:function(){var e=c.id.replace("test-",""),f=T.recordEnv;f?T.action.R((T.serverURL||"")+"/auto-testing/work-with-test?testid="+
|
|
889
|
+
e+"&action=rerecord&env="+f,!1,"Rerecord Test ("+c.text+")",null,!1,!0):T.g.Lb(function(g){f=g.get("envname");T.action.R((T.serverURL||"")+"/auto-testing/work-with-test?testid="+e+"&action=rerecord&env="+f,!1,"Rerecord Test ("+c.text+")",null,!1,!0)})}});"new"===c.attributes.status&&a.splice(1,0,{text:"Record",icon:(T.serverURL||"")+"/profoundui/proddata/images/FlatIcons/record.png",handler:function(e,f){e={attributes:{xf:!0}};Object.assign(e.attributes,c.parentNode.attributes);e.attributes.Ib={macro:"puilauncher",
|
|
890
|
+
testid:c.attributes.id.replace("test-",""),puilib:T.profounduiLibrary,record:"1",autotest:"1"};T.action.doAction(e,f)}});if("validated"===c.attributes.status&&(a.splice(1,0,{text:"Run Test...",icon:(T.serverURL||"")+"/profoundui/proddata/images/FlatIcons/16x16/launch-session.png",handler:function(){T.g.Lb(function(e){var f=c.id.replace("test-","");e=e.get("envname");T.action.R((T.serverURL||"")+"/auto-testing/work-with-test?testid="+f+"&action=run&env="+e,!1,"Work with Run ("+c.text+")",null,!1,!0)})}}),
|
|
891
|
+
T.DEV&&T.pjsLoggingEnv)){a.splice(2,0,{text:"Execution Diffs...",icon:(T.serverURL||"")+"/profoundui/proddata/images/FlatIcons/configuration.png",handler:function(){T.g.ue(c)}});var d=["Improve Performance","Fix Bug"];0<d.length&&a.splice(3,0,{text:"AI Tasks",icon:(T.serverURL||"")+"/profoundui/proddata/images/FlatIcons/16x16/ai.png",menu:new Ext.menu.Menu({items:d.map(function(e){return{text:e,icon:(T.serverURL||"")+"/profoundui/proddata/images/FlatIcons/16x16/ai.png",handler:function(){alert("AI Task: "+
|
|
892
|
+
e)}}})})})}"new"!==c.attributes.status&&a.splice(1,0,{text:"Work with Run...",icon:(T.serverURL||"")+"/profoundui/proddata/images/FlatIcons/video-demos.png",handler:function(){T.g.Mb(c)}});"disabled"===c.attributes.status?a.push({text:"Enable",icon:(T.serverURL||"")+"/profoundui/proddata/images/FlatIcons/enable.png",handler:function(){T.g.Qd(c)}}):a.push({text:"Disable",icon:(T.serverURL||"")+"/profoundui/proddata/images/FlatIcons/disable.png",handler:function(){T.g.Ld(c)}});return new Ext.menu.Menu({items:a})};
|
|
893
|
+
T.g.Jd=function(c){Ext.Msg.confirm('Delete "'+c.attributes.text+'"',"Are you sure you want to delete this test?",function(a){"yes"===a&&(T.g.j.msg=pui.getLanguageText("runtimeText","please wait"),T.g.j.show(),Ext.Ajax.request({url:(T.serverURL||"")+"/auto-testing/delete-test",method:"POST",jsonData:{id:c.id.replace("test-","")},success:function(d){Ext.decode(d.responseText).success?c.remove():Ext.Msg.alert("Error","Failed to delete test.");T.g.j.hide()},failure:function(){T.g.j.hide();Ext.Msg.alert("Error",
|
|
894
|
+
"Failed to delete test.")}}))})};
|
|
895
|
+
T.g.oe=function(c){Ext.Msg.prompt("Rename Test","Enter new test name:",function(a,d){"ok"===a&&d&&(T.g.j.msg=pui.getLanguageText("runtimeText","please wait"),T.g.j.show(),Ext.Ajax.request({url:(T.serverURL||"")+"/auto-testing/rename-test",method:"POST",jsonData:{id:c.id.replace("test-",""),text:d},success:function(e){Ext.decode(e.responseText).success?c.setText(d):Ext.Msg.alert("Error","Failed to rename test.");T.g.j.hide()},failure:function(){T.g.j.hide();Ext.Msg.alert("Error","Failed to rename test.")}}))},
|
|
896
|
+
this,!1,c.attributes.text)};T.g.Qd=function(c){T.g.j.msg=pui.getLanguageText("runtimeText","please wait");T.g.j.show();Ext.Ajax.request({url:(T.serverURL||"")+"/auto-testing/enable-test",method:"POST",jsonData:{id:c.id.replace("test-","")},success:function(a){Ext.decode(a.responseText).success?c.parentNode.reload():Ext.Msg.alert("Error","Failed to enable test.");T.g.j.hide()},failure:function(){T.g.j.hide();Ext.Msg.alert("Error","Failed to enable test.")}})};
|
|
897
|
+
T.g.Ld=function(c){T.g.j.msg=pui.getLanguageText("runtimeText","please wait");T.g.j.show();Ext.Ajax.request({url:(T.serverURL||"")+"/auto-testing/disable-test",method:"POST",jsonData:{id:c.id.replace("test-","")},success:function(a){Ext.decode(a.responseText).success?c.parentNode.reload():Ext.Msg.alert("Error","Failed to disable test.");T.g.j.hide()},failure:function(){T.g.j.hide();Ext.Msg.alert("Error","Failed to disable test.")}})};
|
|
898
|
+
T.g.sc=function(c,a){var d=T.g.F.getTopToolbar();d.items.each(function(e){e.Ba&&d.remove(e)});1==T.testingMode&&a&&(a.attributes.tc?(d.add(new Ext.Toolbar.Spacer({Ba:!0})),d.add(new Ext.Toolbar.Spacer({Ba:!0})),d.add({id:"Atrium-nav-new-test-button",text:"New Test...",icon:(T.serverURL||"")+"/profoundui/proddata/images/FlatIcons/16x16/add.png",iconCls:"atrium-nav-new-test-button",handler:function(){T.g.pb(a)},Ba:!0})):a.attributes.Ca&&(d.add(new Ext.Toolbar.Spacer({Ba:!0})),d.add(new Ext.Toolbar.Spacer({Ba:!0})),
|
|
899
|
+
c=T.g.rc(a),d.add({text:"Actions",icon:(T.serverURL||"")+"/profoundui/proddata/images/FlatIcons/chart_organisation.png",menu:c,Ba:!0})));d.doLayout()};
|
|
900
|
+
T.g.jc=function(c,a){c&&c.attributes.Ca?(a.stopEvent(),T.g.rc(c).showAt(a.getXY())):c&&c.attributes.tc&&(a.stopEvent(),c.select(),(new Ext.menu.Menu({items:[{text:"New Test...",icon:(T.serverURL||"")+"/profoundui/proddata/images/FlatIcons/16x16/add.png",handler:function(){T.g.pb(c)}},{text:"Refresh",icon:(T.serverURL||"")+"/profoundui/proddata/images/FlatIcons/refresh.png",handler:function(){c.reload()}}]})).showAt(a.getXY()))};T.g.ac=function(c,a,d,e){return a.attributes.Ca&&d===e?!0:!1};
|
|
901
|
+
T.g.wc=function(c,a,d,e){if(d===e&&a.attributes.Ca){var f=[];e.eachChild(function(g){g.attributes.Ca&&f.push(g.id.replace("test-",""))});T.g.j.msg="Reordering tests...";T.g.j.show();c={};c.parentId=e.id.replace("folder-","");c.testItems=f;Ext.Ajax.request({url:(T.serverURL||"")+"/auto-testing/reorder-tests",method:"POST",jsonData:c,success:function(){T.g.j.hide()},failure:function(){T.g.j.hide();Ext.Msg.alert("Error","Failed to reorder tests.")}})}};
|
|
902
|
+
T.g.Lb=function(c){var a=window.location.protocol+"//"+window.location.hostname,d=new Ext.data.JsonStore({url:(T.serverURL||"")+"/auto-testing/env-list",root:"data",idProperty:"id",fields:[{name:"id",type:"string"},{name:"envname",type:"string"},{name:"envdesc",type:"string"},{name:"jobdesc",type:"string"},{name:"pjsprotol",type:"string"},{name:"pjshost",type:"string"},{name:"pjsport",type:"string"}],autoLoad:!0,listeners:{load:function(g){g.filterBy(function(h){return 0===(h.get("pjsprotol")+"://"+
|
|
903
|
+
h.get("pjshost")).toLowerCase().indexOf(a.toLowerCase())})}}}),e=new Ext.grid.GridPanel({store:d,columns:[{header:"Environment ID",dataIndex:"id",width:120,sortable:!0},{header:"Environment Name",dataIndex:"envname",width:150,sortable:!0},{header:"Description",dataIndex:"envdesc",width:200,sortable:!0},{header:"Job Description",dataIndex:"jobdesc",width:150,sortable:!0},{header:"Server URL",dataIndex:"pjsprotol",width:200,renderer:function(g,h,l){g=l.get("pjsprotol");h=l.get("pjshost");l=l.get("pjsport");
|
|
904
|
+
return g+"://"+h+":"+l},sortable:!0}],stripeRows:!0,loadMask:!0,autoScroll:!0,listeners:{rowdblclick:function(g,h){g=g.getStore().getAt(h);f.close();c(g)}}}),f=new Ext.Window({title:"Select an Environment",layout:"fit",width:800,height:400,modal:!0,items:[e],buttons:[{text:"Select",handler:function(){var g=e.getSelectionModel().getSelected();g?(f.close(),c(g)):Ext.Msg.alert("No Selection","Please select an environment.")}},{text:"Close",handler:function(){f.close()}}]});f.show()};
|
|
905
|
+
T.g.Mb=function(c,a,d,e){function f(k){k=k.get("arid");var m=c.attributes.text;"function"===typeof e?e(k):T.action.R((T.serverURL||"")+"/auto-testing/work-with-test?runid="+k,!1,"Work with Run ("+m+")",null,!1,!0);n.close()}var g=c.id.replace("test-",""),h=new Ext.data.JsonStore({url:(T.serverURL||"")+"/auto-testing/run-list",root:"data",totalProperty:"total",idProperty:"arid",remoteSort:!0,fields:[{name:"arid",type:"string"},{name:"armode",type:"string"},{name:"araction",type:"string"},{name:"arenv",
|
|
906
|
+
type:"string"},{name:"arstart",type:"date",convert:function(k){return k?T.h.ee(k):null}},{name:"aruser",type:"string"},{name:"arstatus",type:"string"}],sortInfo:{field:"arstart",direction:"DESC"}});h.baseParams={testId:g};a&&(h.baseParams.env=a);d&&(h.baseParams.action=d);var l=new Ext.grid.GridPanel({store:h,columns:[{header:"Run ID",dataIndex:"arid",width:150,sortable:!0},{header:"Mode",dataIndex:"armode",width:80,sortable:!0},{header:"Action",dataIndex:"araction",width:80,sortable:!0},{header:"Environment",
|
|
907
|
+
dataIndex:"arenv",width:100,sortable:!0},{header:"Date/Time",dataIndex:"arstart",width:150,renderer:Ext.util.Format.dateRenderer("Y-m-d H:i:s"),sortable:!0},{header:"User",dataIndex:"aruser",width:100,sortable:!0},{header:"Status",dataIndex:"arstatus",width:150,sortable:!0}],stripeRows:!0,loadMask:!0,bbar:new Ext.PagingToolbar({pageSize:25,store:h,displayInfo:!0,displayMsg:"Displaying runs {0} - {1} of {2}",emptyMsg:"No runs to display"}),listeners:{rowdblclick:function(k,m){k=k.getStore().getAt(m);
|
|
908
|
+
f(k)}}}),n=new Ext.Window({title:'Select a Test Run for "'+c.attributes.text+'"',layout:"fit",width:800,height:400,items:[l],modal:!0,buttons:[{text:"Delete Run...",handler:function(){var k=l.getSelectionModel().getSelected();k?Ext.Msg.confirm("Confirm Delete","Are you sure you want to delete this run?",function(m){"yes"===m&&(T.g.j.msg=pui.getLanguageText("runtimeText","please wait"),T.g.j.show(),Ext.Ajax.request({url:(T.serverURL||"")+"/auto-testing/delete-run",method:"POST",params:{id:k.get("arid")},
|
|
909
|
+
success:function(r){T.g.j.hide();try{var p=Ext.decode(r.responseText);p.success?h.reload():Ext.Msg.alert("Error",p.error||"Failed to delete the run.")}catch(q){Ext.Msg.alert("Error","Invalid server response.")}},failure:function(){T.g.j.hide();Ext.Msg.alert("Error","Server error occurred.")}}))}):Ext.Msg.alert("No Selection","Please select a run to delete.")},style:"background-color: #e64d3e; border-color: darkred; padding-left: 10px; padding-right: 10px;"},{xtype:"tbspacer",width:10},{text:"Select",
|
|
910
|
+
handler:function(){var k=l.getSelectionModel().getSelected();k?f(k):Ext.Msg.alert("No Selection","Please select a run to proceed.")}},{text:"Close",handler:function(){n.close()}}]});n.show();h.load({params:{start:0,kf:25}})};
|
|
911
|
+
T.g.ue=function(c){function a(q){if(1>m.getSelectionModel().getSelections().length)Ext.Msg.alert("Create New Run","Please select the program(s) you want to collect executions logs for.");else{r.show();Ext.getCmp("exeDiffsWindow").items.first().doLayout();e(!0);var t=q?T.rpgLoggingEnv:T.pjsLoggingEnv;if(t){var v=c.id.replace("test-","");t=(T.serverURL||"")+"/auto-testing/run?test="+encodeURIComponent(v)+"&action=logrun&env="+encodeURIComponent(t)+"&atrium-token="+encodeURIComponent(sessionStorage["atrium-token"]||
|
|
912
|
+
"");v=window.location;t=("https:"===v.protocol?"wss://":"ws://")+v.host+t;try{var u=new WebSocket(t)}catch(z){Ext.Msg.alert("Error","Unable to create WebSocket: "+z.message);e(!1);return}u.onopen=function(){Ext.get("exeDiffs-runStatus").update("Starting new test run...<br/>");u.send(JSON.stringify({action:"start"}))};u.onmessage=function(z){z=JSON.parse(z.data);d(u,z,q)};u.onclose=function(){};u.onerror=function(z){z=z.message||"WebSocket error occurred.";Ext.get("exeDiffs-runStatus").update(Ext.get("exeDiffs-runStatus").dom.innerHTML+
|
|
909
913
|
"<br/><span style='color:red'>"+Ext.util.Format.htmlEncode(z)+"</span>");e(!1)}}else Ext.Msg.alert("Error","No logging environment is defined for "+(q?"RPG":"Profound.js")+"."),e(!1)}}function d(q,t,v){function u(B){B=z.dom.innerHTML+Ext.util.Format.htmlEncode(B)+"<br/>";z.update(B);r.body.dom.scrollTop=r.body.dom.scrollHeight}var z=Ext.get("exeDiffs-runStatus");switch(t.type){case "initRun":u("Initializing test run in "+t.data.af+" environment...");break;case "runStarted":u("Run started. Run ID: "+
|
|
910
914
|
t.data.Dc);v?(h=t.data.Dc,Ext.getCmp("rpgRunField").setValue(h)):(l=t.data.Dc,Ext.getCmp("pjsRunField").setValue(l));break;case "stepStarted":u("Step "+t.data.se+" started...");break;case "stepCompleted":u("Step "+t.data.se+" completed. UI OK? "+t.data.zf+", Data OK? "+t.data.Ye);break;case "runEnded":u("Run ended. Status: "+t.data.status);e(!1);f();q.close();break;case "runError":u("Error: "+(t.data&&t.data.error?t.data.error:"Unknown error"));e(!1);q.close();break;case "log":u(t.data);break;default:u("Received: "+
|
|
911
|
-
t.type)}}function e(q){Ext.getCmp("programGrid").setDisabled(q);Ext.getCmp("rpgCreateBtn").setDisabled(q);Ext.getCmp("rpgSelectBtn").setDisabled(q);Ext.getCmp("pjsCreateBtn").setDisabled(q);Ext.getCmp("pjsSelectBtn").setDisabled(q);Ext.getCmp("exDiffViewerBtn").setDisabled(q);Ext.getCmp("codeCoverageViewerBtn").setDisabled(q)}function f(){var q=Ext.getCmp("exDiffViewerBtn"),t=Ext.getCmp("codeCoverageViewerBtn"),v=0<
|
|
912
|
-
t.disable()}var g="Execution Diffs - "+c.text,h="",l="",
|
|
913
|
-
height:100,autoScroll:!0,html:"<div style='font-size:12px; color:#333; line-height:1.4;' id='exeDiffs-runStatus'></div>"});k=new Ext.form.TextField({id:"rpgRunField",readOnly:!0,flex:1,style:"border: 1px solid #aaa; height: 22px;"});
|
|
914
|
-
"add.png",tooltip:"Create New Run",margins:"0 0 0 5",style:"background-color: transparent;",handler:function(){a(!0)}},{xtype:"button",id:"rpgSelectBtn",icon:T.m+"view.png",tooltip:"Select Existing Run...",margins:"0 0 0 5",style:"background-color: transparent;",handler:function(){T.g.Mb(c,T.rpgLoggingEnv,"logrun",function(q){h=q;Ext.getCmp("rpgRunField").setValue(h);f()})}}]});
|
|
915
|
-
|
|
916
|
-
items:[
|
|
917
|
-
l)}},{text:"Close",handler:function(){p.close()}}],listeners:{show:f}});
|
|
915
|
+
t.type)}}function e(q){Ext.getCmp("programGrid").setDisabled(q);Ext.getCmp("rpgCreateBtn").setDisabled(q);Ext.getCmp("rpgSelectBtn").setDisabled(q);Ext.getCmp("pjsCreateBtn").setDisabled(q);Ext.getCmp("pjsSelectBtn").setDisabled(q);Ext.getCmp("exDiffViewerBtn").setDisabled(q);Ext.getCmp("codeCoverageViewerBtn").setDisabled(q)}function f(){var q=Ext.getCmp("exDiffViewerBtn"),t=Ext.getCmp("codeCoverageViewerBtn"),v=0<m.getSelectionModel().getSelections().length;h&&l&&v?q.enable():q.disable();l&&v?t.enable():
|
|
916
|
+
t.disable()}var g="Execution Diffs - "+c.text,h="",l="",n=new Ext.data.ArrayStore({fields:["program"],data:[["MYPGM1"],["MYPGM2"],["MYPGM3"],["MYPGM4"]]}),k=new Ext.grid.CheckboxSelectionModel({width:28,checkOnly:!1}),m=new Ext.grid.GridPanel({id:"programGrid",store:n,sm:k,columns:[k,{header:"Select Program(s)",dataIndex:"program",width:385}],forceFit:!0,height:120,border:!0}),r=new Ext.Panel({border:!0,style:"margin-top:10px; padding:5px; border:1px solid #ccc; background-color:#fafafa;",hidden:!0,
|
|
917
|
+
height:100,autoScroll:!0,html:"<div style='font-size:12px; color:#333; line-height:1.4;' id='exeDiffs-runStatus'></div>"});k=new Ext.form.TextField({id:"rpgRunField",readOnly:!0,flex:1,style:"border: 1px solid #aaa; height: 22px;"});n=new Ext.form.TextField({id:"pjsRunField",readOnly:!0,flex:1,style:"border: 1px solid #aaa; height: 22px;"});k=new Ext.Panel({layout:"hbox",border:!1,items:[{xtype:"label",text:"RPG OA Run:",width:90,style:"line-height:22px;"},k,{xtype:"button",id:"rpgCreateBtn",icon:T.m+
|
|
918
|
+
"add.png",tooltip:"Create New Run",margins:"0 0 0 5",style:"background-color: transparent;",handler:function(){a(!0)}},{xtype:"button",id:"rpgSelectBtn",icon:T.m+"view.png",tooltip:"Select Existing Run...",margins:"0 0 0 5",style:"background-color: transparent;",handler:function(){T.g.Mb(c,T.rpgLoggingEnv,"logrun",function(q){h=q;Ext.getCmp("rpgRunField").setValue(h);f()})}}]});n=new Ext.Panel({layout:"hbox",border:!1,items:[{xtype:"label",text:"Profound.js Run:",width:90,style:"line-height: 22px;"},
|
|
919
|
+
n,{xtype:"button",id:"pjsCreateBtn",icon:T.m+"add.png",tooltip:"Create New Run",margins:"0 0 0 5",style:"background-color: transparent;",handler:function(){a(!1)}},{xtype:"button",id:"pjsSelectBtn",icon:T.m+"view.png",tooltip:"Select Existing Run...",margins:"0 0 0 5",style:"background-color: transparent;",handler:function(){T.g.Mb(c,T.pjsLoggingEnv,"logrun",function(q){l=q;Ext.getCmp("pjsRunField").setValue(l);f()})}}]});n=new Ext.Panel({layout:{type:"vbox",align:"stretch"},border:!1,bodyStyle:"padding:10px",
|
|
920
|
+
items:[m,{xtype:"spacer",height:10},k,{xtype:"spacer",height:5},n,r]});var p=new Ext.Window({id:"exeDiffsWindow",title:g,layout:"fit",width:450,height:400,modal:!0,items:[n],buttons:[{id:"exDiffViewerBtn",text:"Diff Viewer...",disabled:!0,handler:function(){Ext.Msg.alert("Info","Launching Execution Diff Viewer.<br/><br/>RPG OA Run Id: "+h+"<br/>PJS Run Id: "+l)}},{id:"codeCoverageViewerBtn",text:"Code Coverage...",disabled:!0,handler:function(){Ext.Msg.alert("Info","Launching Code Coverage Viewer.<br/><br/>PJS Run Id: "+
|
|
921
|
+
l)}},{text:"Close",handler:function(){p.close()}}],listeners:{show:f}});m.getSelectionModel().on("selectionchange",f);p.show()};Ext.onReady(T.g.init);T.g.i.rd=function(){var c=null,a=[];a.push(T.g.i.groups.td());T.B.AUROLE==T.qa&&(c=T.g.i.C.vd(),a.push(c),a.push(T.g.i.v.create()));T.g.i.M=new Ext.Window({title:pui.getLanguageText("runtimeText","control panel"),maximized:!0,resizable:!1,modal:!0,la:!1,layout:"fit",items:[new Ext.TabPanel({items:a,listeners:{tabchange:function(d,e){if(!0===T.g.i.Ka&&e==c){Ext.getCmp("Atrium-cp-navitemMacro").getStore().reload();try{T.g.i.Ka=!1,delete T.g.i.Ka}catch(f){}}}}})],buttons:[{text:pui.getLanguageText("runtimeText",
|
|
918
922
|
"close"),handler:function(){T.g.i.M.close();T.g.i.M.destroy();T.g.i.M=null}}],listeners:{show:function(){T.g.i.M.items.itemAt(0).items.itemAt(0).show()},close:function(){1==T.g.i.M.la&&(T.g.j.msg=pui.getLanguageText("runtimeText","please wait"),T.g.j.show(),T.data.Cb({top:"1"},function(d,e){T.g.j.hide();0==d?(""==e.heading&&(e.heading=pui.getLanguageText("runtimeMsg","unable to load x",[pui.getLanguageText("runtimeText","navigation items")])),T.h.o(e)):(T.items.C=e.C,T.items.toolbar=e.toolbar,T.items.L=
|
|
919
923
|
e.L,T.g.ob())}))}}});T.g.i.M.show()};T.g.i.l.defaults={};T.g.i.l.defaults.Td=100;T.g.i.l.defaults.Ud=75;T.g.i.l.defaults.Fe=110;T.g.i.l.defaults.Ge=50;T.g.i.l.defaults.Zd=70;T.g.i.l.defaults.ed=95;T.g.i.l.defaults.fd=165;T.g.i.l.defaults.$d=170;T.g.i.l.defaults.nd=475;
|
|
920
|
-
T.g.i.l.Ia=function(c){var a=new Ext.Window({title:c.title,modal:!0,maximized:!0,resizable:!1,closable:!1,layout:"fit",listeners:{beforeclose:function(){"function"==typeof c.callback&&c.callback(!0,C.Ob)}}}),d=T.h.W("cp_set_col_width",T.g.i.l.defaults.nd),e=T.B.AUROLE==T.ib?!0:!1,f=T.B.AUROLE==T.Qa?!0:!1,g=T.B.AUROLE==T.qa?!0:!1,h=T.B.AUUSER==c.id?!0:!1,l=1==c.global?!0:!1,
|
|
921
|
-
c.mode&&(p=d)):l?r=110:
|
|
922
|
-
maxLength:128,autocreate:{tag:"input",type:"text",autocomplete:"off",maxlength:128},allowBlank:!1,blankText:pui.getLanguageText("runtimeMsg","required"),readOnly:l?!0:!1,style:l?"border-style:none;background-image:none;margin-top:0.5px;":null}));u=h?c.id:g?"0":T.B.AUGROUP;var z="0";
|
|
923
|
-
null,hideTrigger:"Add"!=c.mode?!0:!1,forceSelection:!0,displayField:"AGNAME",valueField:"AGGROUP",emptyText:pui.getLanguageText("runtimeText","none"),minChars:0,triggerAction:"all",store:new Ext.data.Store({autoDestroy:!0,autoLoad:!0,baseParams:{id:u,omitId:z},proxy:new Ext.data.HttpProxy({url:T.h.s("PUI0003003.pgm"),method:"POST"}),reader:new Ext.data.JsonReader({root:"data",fields:["AGGROUP","AGNAME"]}),listeners:{load:function(w){if(
|
|
924
|
+
T.g.i.l.Ia=function(c){var a=new Ext.Window({title:c.title,modal:!0,maximized:!0,resizable:!1,closable:!1,layout:"fit",listeners:{beforeclose:function(){"function"==typeof c.callback&&c.callback(!0,C.Ob)}}}),d=T.h.W("cp_set_col_width",T.g.i.l.defaults.nd),e=T.B.AUROLE==T.ib?!0:!1,f=T.B.AUROLE==T.Qa?!0:!1,g=T.B.AUROLE==T.qa?!0:!1,h=T.B.AUUSER==c.id?!0:!1,l=1==c.global?!0:!1,n=1==c.group?!0:!1,k=c.group||c.global?!1:!0,m=84,r=179,p=2*d+15;k?f?(m=110,r=231,h&&(m=127,r=222)):g&&(m=110,r=257,"Edit"===
|
|
925
|
+
c.mode&&(p=d)):l?r=110:n&&(r=136);var q=r+345,t=[],v=T.h.W("cp_set_grplbl_width",T.g.i.l.defaults.Td),u=T.h.W("cp_set_grplbl_width_sm",T.g.i.l.defaults.Ud);v=new Ext.form.FieldSet({title:pui.getLanguageText("runtimeText","group")+(n?"":" "+pui.getLanguageText("runtimeText","membership")),autoHeight:!0,width:p,labelWidth:h&&!g?u:v,defaults:{msgTarget:"side"},x:15,y:15});t.push(v);(n||l)&&v.add(new Ext.form.TextField({width:230,name:"AGNAME",fieldLabel:pui.getLanguageText("runtimeText","group name"),
|
|
926
|
+
maxLength:128,autocreate:{tag:"input",type:"text",autocomplete:"off",maxlength:128},allowBlank:!1,blankText:pui.getLanguageText("runtimeMsg","required"),readOnly:l?!0:!1,style:l?"border-style:none;background-image:none;margin-top:0.5px;":null}));u=h?c.id:g?"0":T.B.AUGROUP;var z="0";n&&"Edit"==c.mode&&(z=c.id);var B=new Ext.form.ComboBox({width:230,hiddenName:"parent",fieldLabel:pui.getLanguageText("runtimeText","member of"),mode:"remote",readOnly:"Add"!=c.mode?!0:!1,style:"Add"!=c.mode?"border-style:none;background-image:none;margin-top:0.5px;":
|
|
927
|
+
null,hideTrigger:"Add"!=c.mode?!0:!1,forceSelection:!0,displayField:"AGNAME",valueField:"AGGROUP",emptyText:pui.getLanguageText("runtimeText","none"),minChars:0,triggerAction:"all",store:new Ext.data.Store({autoDestroy:!0,autoLoad:!0,baseParams:{id:u,omitId:z},proxy:new Ext.data.HttpProxy({url:T.h.s("PUI0003003.pgm"),method:"POST"}),reader:new Ext.data.JsonReader({root:"data",fields:["AGGROUP","AGNAME"]}),listeners:{load:function(w){if(n&&1==g){var x=new (Ext.data.Record.create([{name:"AGGROUP"},
|
|
924
928
|
{name:"AGNAME"}]))({AGGROUP:"0",AGNAME:""});w.insert(0,x)}}}}),listeners:{select:function(){var w=C.getForm().findField("inherit"),x=!1;1==w.getValue()&&(x=!0);w.setValue(!0);x&&C.getForm().findField("inherit").fireEvent("check",w,!0);C.tb()},beforequery:function(){if("Add"!=c.mode)return!1}}});if(null!=c.ua){var E=B.store;E.addListener("load",function(){var w=E.getCount();if(0<w){for(var x,A,y=0;y<w;y++)if(A=E.getAt(y),A.get("AGGROUP")==c.ua){x=A;break}null!=x&&(w=x.get(B.displayField),x=x.get(B.valueField),
|
|
925
929
|
B.lastSelectionText=w,B.hiddenField=x,Ext.form.ComboBox.superclass.setValue.call(B,w),B.value=x)}},E,{single:!0})}v.add(B);!f&&!g||l||v.add(new Ext.form.Checkbox({fieldLabel:pui.getLanguageText("runtimeText","inherit settings"),name:"inherit",inputValue:"1",listeners:{check:function(w,x){w=C.getForm();var A=1==x?"disable":"enable";var y=G.items.items.concat(navSet.items.items);L&&(y=y.concat(L.items.items));for(var H=0;H<y.length;H++)y[H][A]();1==x&&1==C.loaded&&(A=w.findField("parent").getValue(),
|
|
926
|
-
C.xc(A));0==x&&(x=w.findField("ACBAN"),0==x.getValue()&&x.fireEvent("check",x,x.getValue()),x=w.findField("ACSHOWHOME"),0==x.getValue()&&x.fireEvent("check",x,x.getValue()))}}}));if(k&&(
|
|
927
|
-
maxLength:128,autoCreate:{tag:"input",type:"text",autocomplete:"off",maxlength:128},readOnly:e?!0:!1,style:e?"border-style:none;background-image:none;margin-top:0.5px;":null,allowBlank:!1,blankText:pui.getLanguageText("runtimeMsg","required")})),
|
|
928
|
-
null,allowBlank:"Add"==c.mode?!1:!0,blankText:pui.getLanguageText("runtimeMsg","required")})),g&&
|
|
930
|
+
C.xc(A));0==x&&(x=w.findField("ACBAN"),0==x.getValue()&&x.fireEvent("check",x,x.getValue()),x=w.findField("ACSHOWHOME"),0==x.getValue()&&x.fireEvent("check",x,x.getValue()))}}}));if(k&&(m=new Ext.form.FieldSet({title:pui.getLanguageText("runtimeText","user"),autoHeight:!0,width:p,labelWidth:T.h.W("cp_set_usrlbl_width",T.g.i.l.defaults.Fe),defaults:{msgTarget:"side"},x:15,y:m}),t.push(m),m.add(new Ext.form.TextField({fieldLabel:pui.getLanguageText("runtimeText","user name"),name:"AUNAME",width:230,
|
|
931
|
+
maxLength:128,autoCreate:{tag:"input",type:"text",autocomplete:"off",maxlength:128},readOnly:e?!0:!1,style:e?"border-style:none;background-image:none;margin-top:0.5px;":null,allowBlank:!1,blankText:pui.getLanguageText("runtimeMsg","required")})),m.add(new Ext.form.TextField({fieldLabel:pui.getLanguageText("runtimeText","user profile"),name:"AUPROF",width:230,maxLength:128,autoCreate:{tag:"input",type:"text",autocomplete:"off",maxlength:128},readOnly:"Add"!=c.mode?!0:!1,style:"Add"!=c.mode?"border-style:none;background-image:none;margin-top:0.5px;":
|
|
932
|
+
null,allowBlank:"Add"==c.mode?!1:!0,blankText:pui.getLanguageText("runtimeMsg","required")})),g&&m.add(new Ext.form.RadioGroup({fieldLabel:pui.getLanguageText("runtimeText","access role"),name:"accessRole",columns:[T.h.W("cp_set_usrrdo_width",T.g.i.l.defaults.Ge),T.h.W("cp_set_mgrrdo_width",T.g.i.l.defaults.Zd),T.h.W("cp_set_admrdo_width",T.g.i.l.defaults.ed)],items:[new Ext.form.Radio({name:"AUROLE",inputValue:"0",value:"0",boxLabel:pui.getLanguageText("runtimeText","user"),checked:!0,listeners:{check:function(w,
|
|
929
933
|
x){if(1==x)try{var A=C.getForm().findField("AUEDIT");null!=A&&(A.setValue(!1),A.enable())}catch(y){}}}}),new Ext.form.Radio({name:"AUROLE",inputValue:"1",value:"1",boxLabel:pui.getLanguageText("runtimeText","manager"),listeners:{check:function(w,x){if(1==x)try{var A=C.getForm().findField("AUEDIT");null!=A&&(A.setValue(!0),A.disable())}catch(y){}}}}),new Ext.form.Radio({name:"AUROLE",inputValue:"2",value:"2",boxLabel:pui.getLanguageText("runtimeText","administrator"),listeners:{check:function(w,x){if(1==
|
|
930
|
-
x)try{var A=C.getForm().findField("AUEDIT");null!=A&&(A.setValue(!0),A.disable())}catch(y){}}}})]})),(g||f&&!h)&&
|
|
931
|
-
autocomplete:"off",maxlength:128},allowBlank:!0})),
|
|
934
|
+
x)try{var A=C.getForm().findField("AUEDIT");null!=A&&(A.setValue(!0),A.disable())}catch(y){}}}})]})),(g||f&&!h)&&m.add(new Ext.form.Checkbox({name:"AUEDIT",fieldLabel:pui.getLanguageText("runtimeText","can edit profile"),inputValue:"1"})),1==T.USE_VLDL&&(m.add(new Ext.form.TextField({fieldLabel:pui.getLanguageText("runtimeText","password"),name:"password",width:230,maxLength:100,minLength:6,minLengthText:pui.getLanguageText("runtimeMsg","password must be"),autoCreate:{tag:"input",type:"password",
|
|
935
|
+
autocomplete:"off",maxlength:128},allowBlank:!0})),m.add(new Ext.form.TextField({fieldLabel:"Confirm password",name:"confirmPass",width:230,maxLength:100,minLength:6,minLengthText:pui.getLanguageText("runtimeMsg","password must be"),autoCreate:{tag:"input",type:"password",autocomplete:"off",maxlength:128},allowBlank:!0}))),g)){e=new Ext.data.Store({autoDestroy:!0,proxy:new Ext.data.HttpProxy({url:T.h.s("PUI0003032.pgm"),method:"POST"}),reader:new Ext.data.JsonReader({root:"data",fields:["id","name"]}),
|
|
932
936
|
listeners:{loadexception:function(w,x,A){T.data.u(A,function(y,H){""==H.heading&&(H.heading=pui.getLanguageText("runtimeMsg","unable to load x",[pui.getLanguageText("runtimeText","supplemental groups")]));T.h.o(H)})}}});var F=new Ext.grid.EditorGridPanel({title:pui.getLanguageText("runtimeText","supplemental groups"),width:d,x:d+30,y:22,height:227,loadMask:!0,clicksToEdit:2,store:e,columns:[{header:pui.getLanguageText("runtimeText","group name"),sortable:!0,width:d-5,dataIndex:"name"}],tbar:new Ext.Toolbar({items:[{text:pui.getLanguageText("runtimeText",
|
|
933
937
|
"add"),icon:T.m+"add.png",handler:function(){T.g.i.l.$c(F)}},{text:pui.getLanguageText("runtimeText","remove"),disabled:!0,icon:T.m+"delete_circle.png",handler:function(){for(var w=F.getSelectionModel().getSelections(),x=0;x<w.length;x++)F.getStore().remove(w[x])}}]}),selModel:new Ext.grid.RowSelectionModel({listeners:{selectionchange:function(w){w=w.getSelections();var x=F.getTopToolbar().items.itemAt(1);if(0==w.length)x.disable();else{for(var A=!1,y=0;y<w.length;y++)if("0"==w[y].get("type")){A=
|
|
934
938
|
!0;break}A?x.disable():x.enable()}}}})});t.push(F);F.getStore().load({params:{user:c.id}})}var G=new Ext.form.FieldSet({title:pui.getLanguageText("runtimeText","appearance"),labelWidth:T.h.W("cp_set_applbl_width",T.g.i.l.defaults.fd),width:d,autoHeight:!0,x:15,y:r,defaults:{msgTarget:"side"}});t.push(G);G.add(new Ext.form.TextField({width:230,name:"ACBTITLE",fieldLabel:pui.getLanguageText("runtimeText","browser title"),maxLength:128,autoCreate:{tag:"input",type:"text",autocomplete:"off",maxlength:128},
|
|
@@ -952,10 +956,10 @@ D.getStore(),w=w.getSelected(),w=x.indexOf(w),0<w&&A.enable(),w<x.getCount()-1&&
|
|
|
952
956
|
"no libraries in list")},stripeRows:!0,tbar:new Ext.Toolbar({items:[{text:pui.getLanguageText("runtimeText","add"),icon:T.m+"add.png",tooltip:pui.getLanguageText("runtimeMsg","add libl entry"),handler:function(){var w=D.getSelectionModel(),x=D.getStore();Ext.MessageBox.prompt(pui.getLanguageText("runtimeMsg","add libl entry"),pui.getLanguageText("runtimeText","library")+":",function(A,y){if("ok"==A)if(y=Ext.util.Format.trim(y.toUpperCase()),T.h.Ab(y))if(0<x.queryBy(function(J){return J.get("library")==
|
|
953
957
|
y}).getCount())T.h.o(pui.getLanguageText("runtimeMsg","x is already in list",[y]));else{var H=[[y]];A=0;0<w.getCount()?A=x.indexOf(w.getSelected())+1:0<x.getCount()&&(A=x.getCount());x.loadData(H,!0);H=x.getAt(x.getCount()-1);x.remove(H);x.insert(A,H);w.selectRow(A)}else T.h.o(pui.getLanguageText("runtimeMsg","x is not valid libname",[y]))})}},{text:pui.getLanguageText("runtimeText","up"),icon:T.m+"arrow_up.png",tooltip:pui.getLanguageText("runtimeText","move up"),disabled:!0,handler:function(){var w=
|
|
954
958
|
D.getSelectionModel(),x=D.getStore(),A=w.getSelected(),y=x.indexOf(A);x.remove(A);x.insert(y-1,[A]);w.selectRecords([A])}},{text:pui.getLanguageText("runtimeText","down"),icon:T.m+"arrow_down.png",tooltip:pui.getLanguageText("runtimeText","move down"),disabled:!0,handler:function(){var w=D.getSelectionModel(),x=D.getStore(),A=w.getSelected(),y=x.indexOf(A);x.remove(A);x.insert(y+1,[A]);w.selectRecords([A])}},{text:pui.getLanguageText("runtimeText","remove"),icon:T.m+"delete_circle.png",tooltip:pui.getLanguageText("runtimeText",
|
|
955
|
-
"remove"),disabled:!0,handler:function(){var w=D.getSelectionModel(),x=D.getStore(),A=w.getSelected(),y=x.indexOf(A);x.remove(A);x=x.getCount();0<x&&x>=y&&w.selectRow(0<y?y-1:0)}}]}),hidden:!0});L.add(D)}var C=new Ext.form.FormPanel({url:T.h.s("PUI0003005.pgm"),baseParams:{id:c.id,user:k?"1":"0",group:
|
|
959
|
+
"remove"),disabled:!0,handler:function(){var w=D.getSelectionModel(),x=D.getStore(),A=w.getSelected(),y=x.indexOf(A);x.remove(A);x=x.getCount();0<x&&x>=y&&w.selectRow(0<y?y-1:0)}}]}),hidden:!0});L.add(D)}var C=new Ext.form.FormPanel({url:T.h.s("PUI0003005.pgm"),baseParams:{id:c.id,user:k?"1":"0",group:n?"1":"0",global:l?"1":"0",parentId:""},monitorValid:!0,bodyStyle:"padding: 15px;",autoScroll:!0,layout:"absolute",items:t,fa:[],Ob:[],loaded:!1,listeners:{beforeaction:function(w){var x;T.g.j.msg=pui.getLanguageText("runtimeMsg",
|
|
956
960
|
"saving");T.g.j.show();C.baseParams.parentId=w.findField("parent").getValue();if((x=C.getForm().findField("libl_method"))&&"list"==x.getValue()){var A=D.getStore(),y=A.getCount();C.baseParams.libl_count=y;for(x=0;x<y;x++)C.baseParams["libl_entry"+(x+1)]=Ext.util.Format.trim(A.getAt(x).get("library"))}if("undefined"!==typeof F&&F.store)for(x=0;x<F.store.getCount();x++)C.baseParams["supgroup"+(x+1)]=F.store.getAt(x).get("id");k&&(C.baseParams.enc_AUNAME=pui.G.encode(w.findField("AUNAME").getValue()))},
|
|
957
961
|
actionfailed:function(w,x){T.data.u(x.response,function(A,y){T.g.j.hide();T.h.o(y,function(){C.tb()})})},actioncomplete:function(w){function x(){a.close();T.g.j.msg=pui.getLanguageText("runtimeText","please wait");T.g.j.show();T.data.Db({id:T.B.AUUSER},function(H,J){T.g.j.hide();if(0==H)""==J.heading&&(J.heading=pui.getLanguageText("runtimeMsg","unable to load new sett")),T.h.o(J);else{for(var I in J)"undefined"!=typeof T.B[I]?T.B[I]=J[I]:"undefined"!=typeof T.l[I]&&(T.l[I]=J[I]);T.g.ob()}})}var A=
|
|
958
|
-
w.findField("AUPROF");A&&(T.g.i.groups.va=A.getValue());-1==C.Ob.indexOf(w.findField("parent").getValue())&&C.Ob.push(w.findField("parent").getValue());w="x updated";if(
|
|
962
|
+
w.findField("AUPROF");A&&(T.g.i.groups.va=A.getValue());-1==C.Ob.indexOf(w.findField("parent").getValue())&&C.Ob.push(w.findField("parent").getValue());w="x updated";if(n){var y=pui.getLanguageText("runtimeText","group");"Add"==c.mode&&(w="x added")}else k?h?(y=pui.getLanguageText("runtimeText","settings"),w="x saved"):(y=pui.getLanguageText("runtimeText","user"),"Add"==c.mode&&(w="x added")):l&&(y=pui.getLanguageText("runtimeText","global settings"));y=pui.getLanguageText("runtimeMsg",w,[y]);T.g.j.hide();
|
|
959
963
|
"Add"==c.mode?(y+="<br /><br />"+pui.getLanguageText("runtimeMsg","would you like add ano"),Ext.MessageBox.confirm("Atrium",y,function(H){"yes"==H?C.Sc():x()})):T.h.J(y,x)},beforedestroy:function(){C.qb()}},keys:[{key:Ext.EventObject.ENTER,handler:function(){1==C.getForm().isValid()&&C.getForm().submit()},stopEvent:!0}],buttonAlign:"right",buttons:[{formBind:!0,text:pui.getLanguageText("runtimeText","save"),handler:function(){1==C.getForm().isValid()&&C.getForm().submit()}},{text:pui.getLanguageText("runtimeText",
|
|
960
964
|
"cancel"),handler:function(){a.close()}}],tb:function(){for(var w=0;w<C.getForm().items.getCount();w++)if(field=C.getForm().items.itemAt(w),0==field.readOnly&&0==field.disabled&&"textfield"==field.getXType()){field.focus.defer(300,field);break}},jb:function(){var w;for(w in T.A){var x=C.find("name",w)[0];null!=x&&"hidden"!=x.getXType()&&(x=x.getEl().up("div.x-form-element").prev(),Ext.QuickTips.register({target:x,title:pui.getLanguageText("runtimeText",T.A[w].title),text:pui.getLanguageText("runtimeText",
|
|
961
965
|
T.A[w].text)}),C.fa.push(x))}},qb:function(){for(var w=0;w<C.fa.length;w++)Ext.QuickTips.unregister(C.fa[w])},Sc:function(){var w=C.getForm();c.group?(w.findField("AGNAME").setValue(""),w.findField("AGNAME").focus()):(w.findField("AUNAME").setValue(""),w.findField("AUPROF").setValue(""),null!=C.find("name","accessRole")[0]&&C.find("name","accessRole")[0].setValue(T.ib),w.findField("AUEDIT").setValue(!1),w.findField("AUNAME").focus());w.clearInvalid()},xc:function(w,x){T.g.j.msg=pui.getLanguageText("runtimeMsg",
|
|
@@ -963,96 +967,96 @@ T.A[w].text)}),C.fa.push(x))}},qb:function(){for(var w=0;w<C.fa.length;w++)Ext.Q
|
|
|
963
967
|
0==I.getValue()&&I.fireEvent("check",I,I.getValue());I=J.findField("ACSHOWHOME");0==I.getValue()&&I.fireEvent("check",I,I.getValue());if(y=C.getForm().findField("libl_method")){D.getStore().removeAll();y=J.findField("libl_method");if(""!=H.ACJOBD)y.setValue("jobd");else if(""!=H.ACLIBL){y.setValue("list");J=H.ACLIBL.split(" ");var S=[];for(I=0;I<J.length;I++){var ka=Ext.util.Format.trim(J[I].toUpperCase()),la=[ka];T.h.Ab(ka)&&-1==S.indexOf(la)&&S.push(la)}D.getStore().loadData(S,!1)}else y.setValue("default");
|
|
964
968
|
y.fireEvent("select",y,y.getStore().getAt(y.getStore().find("return",y.getValue())),y.getStore().find("return",y.getValue()))}null!=C.find("name","accessRole")[0]&&null!=H.AUROLE&&C.find("name","accessRole")[0].items.itemAt(0).setValue(H.AUROLE);0==C.fa.length&&C.jb();C.loaded=!0;T.g.j.hide();C.tb()}})}});a.add(C);a.show();C.xc(c.id,c.ua)};
|
|
965
969
|
T.g.i.l.$c=function(c){function a(){var f=d.getSelectionModel().getSelected(),g=f.get("id");-1!=c.getStore().findExact("id",g)?(f=f.get("name"),T.h.o(pui.getLanguageText("runtimeMsg","already in suppl grp x",[f]),function(){d.getGridEl().focus()})):(c.store.add(f),e.close())}var d=new Ext.grid.GridPanel({loadMask:!0,store:new Ext.data.Store({autoDestroy:!0,autoLoad:!0,proxy:new Ext.data.HttpProxy({method:"POST",url:T.h.s("PUI0003034.pgm")}),reader:new Ext.data.JsonReader({root:"data",fields:["name",
|
|
966
|
-
"id"]}),listeners:{loadexception:function(f,g,h){T.data.u(h,function(l,
|
|
970
|
+
"id"]}),listeners:{loadexception:function(f,g,h){T.data.u(h,function(l,n){""==n.heading&&(n.heading=pui.getLanguageText("runtimeMsg","unable to load x",[pui.getLanguageText("runtimeText","groups")]));T.h.o(n,function(){e.close()})})},load:function(f){0<f.getCount()&&(d.getSelectionModel().selectFirstRow(),d.getGridEl().focus())}}}),columns:[{header:pui.getLanguageText("runtimeText","group name"),sortable:!0,width:600,dataIndex:"name"}],selModel:new Ext.grid.RowSelectionModel({singleSelect:!0,listeners:{selectionchange:function(f){var g=
|
|
967
971
|
d.getTopToolbar().items.itemAt(0);1==f.getSelections().length?g.enable():g.disable()}}}),tbar:new Ext.Toolbar({items:[{text:pui.getLanguageText("runtimeText","select"),icon:T.m+"arrow_right.png",disabled:!0,handler:a}]}),keys:[{key:Ext.EventObject.ENTER,fn:function(f,g){1==d.getSelectionModel().getSelections().length&&a();g.stopEvent()}}],listeners:{rowdblclick:function(f,g,h){1==d.getSelectionModel().getSelections().length&&a();h.stopEvent()}}}),e=new Ext.Window({title:pui.getLanguageText("runtimeText",
|
|
968
972
|
"add usr to supp grp"),modal:!0,maximized:!1,height:300,width:400,resizable:!0,layout:"fit",items:[d],buttonAlign:"right",buttons:[{text:pui.getLanguageText("runtimeText","close"),handler:function(){e.close()}}]});e.show()};T.g.i.groups.defaults={};T.g.i.groups.defaults.He=200;T.g.i.groups.defaults.Df=50;T.g.i.groups.va=null;T.g.i.groups.ma=null;
|
|
969
973
|
T.g.i.groups.td=function(){function c(r){if(!l)return!0;r=r.data;return r.AUPROF.match(l)||r.AUNAME.match(l)?!0:!1}if(T.B.AUROLE==T.qa){var a="0";var d=pui.getLanguageText("runtimeText","all groups");var e=null}else a=T.B.AUGROUP,d=T.B.AGNAME,e=T.m+"group.png";a=new Ext.tree.AsyncTreeNode({id:a,text:d,icon:e,expanded:!0,allowDrag:!1,allowDrop:!0});var f=new Ext.tree.DefaultSelectionModel({listeners:{selectionchange:function(r,p){r=g.getTopToolbar().items.itemAt(0);var q=g.getTopToolbar().items.itemAt(1),
|
|
970
|
-
t=g.getTopToolbar().items.itemAt(2),v=Ext.getCmp("filterUserTextBox");null==p?(r.disable(),q.disable(),t.disable(),v.disable()):(r.enable(),q.enable(),v.enable(),"0"==p.id?t.disable():t.enable());null==p?(
|
|
971
|
-
[p.text])),
|
|
974
|
+
t=g.getTopToolbar().items.itemAt(2),v=Ext.getCmp("filterUserTextBox");null==p?(r.disable(),q.disable(),t.disable(),v.disable()):(r.enable(),q.enable(),v.enable(),"0"==p.id?t.disable():t.enable());null==p?(n.setTitle(pui.getLanguageText("runtimeText","users")),n.getStore().removeAll(),n.getTopToolbar().items.itemAt(0).disable(),k.hide()):(n.getStore().load({params:{group:p.id}}),n.getTopToolbar().items.itemAt(3).enable(),"0"!=p.id?(n.setTitle(pui.getLanguageText("runtimeText","users w primary grp",
|
|
975
|
+
[p.text])),n.getTopToolbar().items.itemAt(0).enable(),T.B.AUROLE==T.qa&&(k.show(),k.setTitle(pui.getLanguageText("runtimeText","users w suppl grp",[p.text])),k.getStore().load({params:{group:p.id}}))):(n.setTitle(pui.getLanguageText("runtimeText","users",[p.text])),n.getTopToolbar().items.itemAt(0).disable(),k.hide()));m.syncSize()}}}),g=new Ext.tree.TreePanel({region:"west",split:!0,collapsible:!0,width:T.h.W("cp_grp_westpnl_width",T.g.i.groups.defaults.He),title:pui.getLanguageText("runtimeText",
|
|
972
976
|
"groups"),selModel:f,autoScroll:!0,enableDD:!0,tbar:new Ext.Toolbar({items:[{text:pui.getLanguageText("runtimeText","add"),cls:"x-btn-text-icon",icon:T.m+"group_add.png",handler:function(){var r=f.getSelectedNode();T.g.i.groups.Tc(r,g)},disabled:!0},{text:pui.getLanguageText("runtimeText","edit"),cls:"x-btn-text-icon",icon:T.m+"group_edit.png",handler:function(){var r=f.getSelectedNode();T.g.i.groups.Od(r,g)},disabled:!0},{text:pui.getLanguageText("runtimeText","delete"),cls:"x-btn-text-icon",icon:T.m+
|
|
973
977
|
"group_delete.png",handler:function(){var r=f.getSelectedNode(),p=pui.getLanguageText("runtimeText","delete x",[pui.getLanguageText("runtimeText","group")]),q=pui.getLanguageText("runtimeMsg","msg del group",[r.text]);Ext.MessageBox.confirm(p,q,function(t){"yes"==t&&T.g.i.groups.Bd(r)})},disabled:!0},new Ext.Toolbar.Fill,{icon:T.m+"arrow_refresh.png",handler:function(){function r(t){return t?t&&t.parentNode&&"0"!==t.parentNode.id?r(t.parentNode):t.text:null}Ext.getCmp("filterUserTextBox").setValue("");
|
|
974
978
|
l=null;var p=g.getSelectionModel().getSelectedNode();g.getSelectionModel().unselect(p,!0);var q=r(p);g.loader.load(g.root,function(){g.root.expand();if(q)for(var t=Object.keys(g.nodeHash),v=0;v<t.length;v++){var u=g.nodeHash[t[v]];if(u.text==q){u.expand();g.getSelectionModel().select(u);break}}})}}]}),root:a,loader:new Ext.tree.TreeLoader({url:T.h.s("PUI0003004.pgm"),baseAttrs:{icon:T.m+"group.png"},listeners:{loadexception:function(r,p,q){T.data.u(q,function(t,v){v.heading=pui.getLanguageText("runtimeMsg",
|
|
975
979
|
"unable to load x",[pui.getLanguageText("runtimeText","groups")]);T.h.o(v)})}}}),dropConfig:{allowContainerDrop:!1,onNodeDrop:function(r,p,q,t){var v=r.node;if(t.selections){if("0"==v.id)return!1;r=pui.getLanguageText("runtimeMsg","conf reassign users 1");r=1==t.selections.length?r+pui.getLanguageText("runtimeMsg","conf reassign users 2a",[t.selections[0].get("AUPROF")]):r+pui.getLanguageText("runtimeMsg","conf reassign users 2b");r+=pui.getLanguageText("runtimeMsg","conf reassign users 3",[v.text]);
|
|
976
980
|
Ext.MessageBox.confirm(pui.getLanguageText("runtimeText","reassign x",[pui.getLanguageText("runtimeText","users")]),r,function(u){"yes"==u&&T.g.i.groups.ie(v,t.selections)})}else if(t.node){if(v==t.node||"0"!=v.id&&(1==v.isAncestor(t.node)||1==t.node.isAncestor(v)))return!1;r=pui.getLanguageText("runtimeMsg","conf reassign group",[t.node.text,v.text]);Ext.MessageBox.confirm(pui.getLanguageText("runtimeText","reassign x",[pui.getLanguageText("runtimeText","group")]),r,function(u){"yes"==u&&T.g.i.groups.he(v,
|
|
977
|
-
t.node)})}q.stopEvent();return!1}}}),h=new Ext.data.Store({autoDestroy:!0,proxy:new Ext.data.HttpProxy({url:T.h.s("PUI0003006.pgm"),method:"POST"}),reader:new Ext.data.JsonReader({root:"data",fields:"AUGROUP AUUSER AUPROF AUNAME AUROLE AGNAME".split(" ")}),listeners:{load:function(r){if(0<r.getCount()){r.each(function(z){z.set("AUNAME",pui.G.decode(z.get("AUNAME")));z.commit()});h.filterBy(c);
|
|
978
|
-
t=0;t<this.data.items.length;t++){var v=this.data.items[t];if(v.data.AUPROF.match(q)){p=v;r=t;break}}p||T.g.i.groups.ma||(p=this.data.items[r]);p&&
|
|
981
|
+
t.node)})}q.stopEvent();return!1}}}),h=new Ext.data.Store({autoDestroy:!0,proxy:new Ext.data.HttpProxy({url:T.h.s("PUI0003006.pgm"),method:"POST"}),reader:new Ext.data.JsonReader({root:"data",fields:"AUGROUP AUUSER AUPROF AUNAME AUROLE AGNAME".split(" ")}),listeners:{load:function(r){if(0<r.getCount()){r.each(function(z){z.set("AUNAME",pui.G.decode(z.get("AUNAME")));z.commit()});h.filterBy(c);n.getGridEl().focus();r=0;var p=null;if(T.g.i.groups.va)for(var q=new RegExp("^"+T.g.i.groups.va+"$","i"),
|
|
982
|
+
t=0;t<this.data.items.length;t++){var v=this.data.items[t];if(v.data.AUPROF.match(q)){p=v;r=t;break}}p||T.g.i.groups.ma||(p=this.data.items[r]);p&&n.getSelectionModel().selectRecords([p]);if(T.g.i.groups.ma){var u=0;null!=T.g.i.groups.ma.top&&(u=parseInt(T.g.i.groups.ma.top));setTimeout(function(){n.getView().scroller.scrollTo("top",u||0)},200)}T.g.i.groups.va="";T.g.i.groups.ma=null}},loadexception:function(r,p,q){n.getStore().removeAll();T.data.u(q,function(t,v){""==v.heading&&(v.heading=pui.getLanguageText("runtimeMsg",
|
|
979
983
|
"unable to load x",[pui.getLanguageText("runtimeText","users")]));T.h.o(v)})}},remoteSort:!1,sortInfo:{field:"AUPROF",direction:"ASC"}});a={defaultSortable:!0,columns:[{header:pui.getLanguageText("runtimeText","user profile"),dataIndex:"AUPROF",width:185},{header:pui.getLanguageText("runtimeText","user name"),dataIndex:"AUNAME",width:Ext.isIE?230:235},{header:pui.getLanguageText("runtimeText","access role"),dataIndex:"AUROLE",width:100,renderer:function(r){return r==T.ib?pui.getLanguageText("runtimeText",
|
|
980
|
-
"user"):r==T.Qa?pui.getLanguageText("runtimeText","manager"):r==T.qa?pui.getLanguageText("runtimeText","administrator"):r}},{header:pui.getLanguageText("runtimeText","primary group"),dataIndex:"AGNAME",width:185}]};var l=null,
|
|
981
|
-
var r=f.getSelectedNode();T.g.i.groups.cd(r,
|
|
982
|
-
p=pui.getLanguageText("runtimeMsg","conf delete users 1");if(1==r.length){p+=pui.getLanguageText("runtimeMsg","conf delete users 2a",[r[0].get("AUPROF")]);var q=pui.getLanguageText("runtimeText","user")}else p+=pui.getLanguageText("runtimeMsg","conf delete users 2b"),q=pui.getLanguageText("runtimeText","users");q=pui.getLanguageText("runtimeText","delete x",[q]);Ext.MessageBox.confirm(q,p,function(t){"yes"==t&&T.g.i.groups.Kd(r,
|
|
984
|
+
"user"):r==T.Qa?pui.getLanguageText("runtimeText","manager"):r==T.qa?pui.getLanguageText("runtimeText","administrator"):r}},{header:pui.getLanguageText("runtimeText","primary group"),dataIndex:"AGNAME",width:185}]};var l=null,n=new Ext.grid.GridPanel({xtype:"panel",flex:2,title:pui.getLanguageText("runtimeText","users"),tbar:new Ext.Toolbar({items:[{text:pui.getLanguageText("runtimeText","add"),icon:T.m+"user_add.png",disabled:!0,handler:function(){T.g.i.groups.va="";T.g.i.groups.ma=n.getView().scroller.getScroll();
|
|
985
|
+
var r=f.getSelectedNode();T.g.i.groups.cd(r,n,k)}},{text:pui.getLanguageText("runtimeText","edit"),icon:T.m+"user_edit.png",disabled:!0,handler:function(){T.g.i.groups.va="";T.g.i.groups.ma=n.getView().scroller.getScroll();var r=n.getSelectionModel().getSelected();T.g.i.groups.oc(r,n,k)}},{text:pui.getLanguageText("runtimeText","delete"),icon:T.m+"user_delete.png",disabled:!0,handler:function(){T.g.i.groups.va="";T.g.i.groups.ma=n.getView().scroller.getScroll();var r=n.getSelectionModel().getSelections(),
|
|
986
|
+
p=pui.getLanguageText("runtimeMsg","conf delete users 1");if(1==r.length){p+=pui.getLanguageText("runtimeMsg","conf delete users 2a",[r[0].get("AUPROF")]);var q=pui.getLanguageText("runtimeText","user")}else p+=pui.getLanguageText("runtimeMsg","conf delete users 2b"),q=pui.getLanguageText("runtimeText","users");q=pui.getLanguageText("runtimeText","delete x",[q]);Ext.MessageBox.confirm(q,p,function(t){"yes"==t&&T.g.i.groups.Kd(r,n,k)})}},{icon:T.m+"arrow_refresh.png",disabled:!0,handler:function(){var r=
|
|
983
987
|
g.getSelectionModel().getSelectedNode();g.getSelectionModel().unselect(r,!0);g.getSelectionModel().select(r)}},"-",new Ext.form.TextField({id:"filterUserTextBox",style:"padding-right:25px;margin:1px -25px 0px 10px",emptyText:pui.getLanguageText("runtimeText","user")+" "+pui.getLanguageText("runtimeText","filter text"),disabled:!0,listeners:{afterrender:function(r){r.getEl().dom.addEventListener("input",function(p){p=p.target.value.trim();Ext.getCmp("filterUserTextBoxClearButton").setVisible(null!==
|
|
984
|
-
p);l=p?new RegExp(p,"i"):null;h.filterBy(c)})}}}),{id:"filterUserTextBoxClearButton",tooltip:pui.getLanguageText("runtimeText","upload clear text"),style:"margin-top:1px;background-color:transparent;border-color:transparent;",icon:T.m+"cleartext.png",hidden:!0,handler:function(r){r.hide();Ext.getCmp("filterUserTextBox").setValue("");l=null;h.filterBy(c)}}]}),cm:new Ext.grid.ColumnModel(a),sm:new Ext.grid.RowSelectionModel({singleSelect:!1,listeners:{selectionchange:function(r){var p=
|
|
985
|
-
q=
|
|
988
|
+
p);l=p?new RegExp(p,"i"):null;h.filterBy(c)})}}}),{id:"filterUserTextBoxClearButton",tooltip:pui.getLanguageText("runtimeText","upload clear text"),style:"margin-top:1px;background-color:transparent;border-color:transparent;",icon:T.m+"cleartext.png",hidden:!0,handler:function(r){r.hide();Ext.getCmp("filterUserTextBox").setValue("");l=null;h.filterBy(c)}}]}),cm:new Ext.grid.ColumnModel(a),sm:new Ext.grid.RowSelectionModel({singleSelect:!1,listeners:{selectionchange:function(r){var p=n.getTopToolbar().items.itemAt(1),
|
|
989
|
+
q=n.getTopToolbar().items.itemAt(2);r=r.getSelections();0>=r.length?(p.disable(),q.disable()):1==r.length?(p.enable(),q.enable()):1<r.length&&(p.disable(),q.enable())}}}),loadMask:!0,store:h,viewConfig:{emptyText:pui.getLanguageText("runtimeMsg","no users")},enableDragDrop:!0,ddText:"{0} selected user{1}",listeners:{afterrender:function(r){r.getView().dragZone.addToGroup("TreeDD");Ext.getDom("filterUserTextBox").spellcheck=!1}}});d=new Ext.data.Store({autoDestroy:!0,proxy:new Ext.data.HttpProxy({url:T.h.s("PUI0003035.pgm"),
|
|
986
990
|
method:"POST"}),reader:new Ext.data.JsonReader({root:"data",fields:"AUGROUP AUUSER AUPROF AUNAME AUROLE AGNAME".split(" ")}),listeners:{load:function(r){r.each(function(p){p.set("AUNAME",pui.G.decode(p.get("AUNAME")));p.commit()})},loadexception:function(r,p,q){T.data.u(q,function(t,v){""==v.heading&&(v.heading="Unable to load supplemental users.");T.h.o(v)})}}});var k=new Ext.grid.GridPanel({xtype:"panel",flex:2,title:pui.getLanguageText("runtimeText","supplemental groups"),loadMask:!0,hidden:!0,
|
|
987
|
-
clicksToEdit:2,store:d,tbar:new Ext.Toolbar({items:[{text:pui.getLanguageText("runtimeText","edit"),icon:T.m+"user_edit.png",disabled:!0,handler:function(){var r=k.getSelectionModel().getSelected();T.g.i.groups.oc(r,
|
|
988
|
-
items:[
|
|
991
|
+
clicksToEdit:2,store:d,tbar:new Ext.Toolbar({items:[{text:pui.getLanguageText("runtimeText","edit"),icon:T.m+"user_edit.png",disabled:!0,handler:function(){var r=k.getSelectionModel().getSelected();T.g.i.groups.oc(r,n,k)}}]}),cm:new Ext.grid.ColumnModel(a),sm:new Ext.grid.RowSelectionModel({singleSelect:!0,listeners:{selectionchange:function(r){var p=k.getTopToolbar().items.itemAt(0);1==r.getSelections().length?p.enable():p.disable()}}})}),m=new Ext.Panel({border:!1,layout:{type:"vbox"},region:"center",
|
|
992
|
+
items:[n,k]});return new Ext.Panel({title:pui.getLanguageText("runtimeText","users")+"/"+pui.getLanguageText("runtimeText","groups"),layout:"border",items:[g,m]})};T.g.i.groups.Tc=function(c,a){c={id:"0",ua:c.id,mode:"Add",group:!0,title:pui.getLanguageText("runtimeText","add x",[pui.getLanguageText("runtimeText","group")]),callback:function(d,e){function f(g){if(!(g>=e.length)){var h=a.getNodeById(e[g]);null!=h&&a.loader.load(h,function(){a.expandPath(h.getPath());g++;f(g)})}}f(0)}};T.g.i.l.Ia(c)};
|
|
989
993
|
T.g.i.groups.Od=function(c,a){c={id:c.id,ua:null!=c.parentNode?c.parentNode.id:"0",mode:"Edit",group:"0"!=c.id?!0:!1,global:"0"==c.id?!0:!1,title:pui.getLanguageText("runtimeText","edit x",[pui.getLanguageText("runtimeText","group")]),callback:function(d,e){var f;0<e.length&&(f=a.getNodeById(e[0]));if(null!=f){var g=f.isExpanded();a.loader.load(f,function(){g&&a.expandPath(f.getPath())})}}};T.g.i.l.Ia(c)};
|
|
990
994
|
T.g.i.groups.Bd=function(c){var a=pui.getLanguageText("runtimeText","group");T.g.j.msg=pui.getLanguageText("runtimeMsg","deleting x",[a]);T.g.j.show();var d={};c.id==T.B.AUGROUP?(T.g.j.hide(),T.h.o(pui.getLanguageText("runtimeMsg","cannot delete own grp"))):(d.group="1",d.id1=c.id,Ext.Ajax.request({url:T.h.s("PUI0003008.pgm"),params:d,callback:function(e,f,g){T.data.u(g,function(h,l){Ext.getCmp("Atrium-cp-navTree")&&Ext.getCmp("Atrium-cp-navTree").getSelectionModel().clearSelections();Ext.getCmp("Atrium-cp-toolbarTree")&&
|
|
991
995
|
Ext.getCmp("Atrium-cp-toolbarTree").getSelectionModel().clearSelections();0==h?""==l.heading&&(l.heading=pui.getLanguageText("runtimeMsg","unable to delete x",[a]),T.g.j.hide(),T.h.o(l)):(h=pui.getLanguageText("runtimeMsg","x deleted",[a]),T.g.j.hide(),T.h.J(h,function(){c.remove()}))})}}))};
|
|
992
996
|
T.g.i.groups.cd=function(c,a,d){c={id:"0",ua:c.id,mode:"Add",title:pui.getLanguageText("runtimeText","add x",[pui.getLanguageText("runtimeText","user")]),callback:function(){a.getStore().reload();d.getStore().reload()}};T.g.i.l.Ia(c)};T.g.i.groups.oc=function(c,a,d){c={id:c.get("AUUSER"),ua:c.get("AUGROUP"),mode:"Edit",title:pui.getLanguageText("runtimeText","edit x",[pui.getLanguageText("runtimeText","user")]),callback:function(){a.getStore().reload();d.getStore().reload()}};T.g.i.l.Ia(c)};
|
|
993
|
-
T.g.i.groups.Kd=function(c,a,d){T.g.j.msg=pui.getLanguageText("runtimeMsg","deleting x",[pui.getLanguageText("runtimeText","users")]);T.g.j.show();var e={},f=!1;e.user="1";for(var g=0;g<c.length;g++){var h=c[g].get("AUUSER");if(h==T.B.AUUSER){f=!0;break}e["id"+(g+1)]=h}1==f?(T.g.j.hide(),T.h.o(pui.getLanguageText("runtimeMsg","cannot delete own usr"))):Ext.Ajax.request({url:T.h.s("PUI0003008.pgm"),params:e,callback:function(l,
|
|
994
|
-
Ext.getCmp("Atrium-cp-toolbarTree")&&Ext.getCmp("Atrium-cp-toolbarTree").getSelectionModel().clearSelections();0==
|
|
997
|
+
T.g.i.groups.Kd=function(c,a,d){T.g.j.msg=pui.getLanguageText("runtimeMsg","deleting x",[pui.getLanguageText("runtimeText","users")]);T.g.j.show();var e={},f=!1;e.user="1";for(var g=0;g<c.length;g++){var h=c[g].get("AUUSER");if(h==T.B.AUUSER){f=!0;break}e["id"+(g+1)]=h}1==f?(T.g.j.hide(),T.h.o(pui.getLanguageText("runtimeMsg","cannot delete own usr"))):Ext.Ajax.request({url:T.h.s("PUI0003008.pgm"),params:e,callback:function(l,n,k){T.data.u(k,function(m,r){Ext.getCmp("Atrium-cp-navTree")&&Ext.getCmp("Atrium-cp-navTree").getSelectionModel().clearSelections();
|
|
998
|
+
Ext.getCmp("Atrium-cp-toolbarTree")&&Ext.getCmp("Atrium-cp-toolbarTree").getSelectionModel().clearSelections();0==m?""==r.heading&&(r.heading=pui.getLanguageText("runtimeMsg","unable to delete x",[pui.getLanguageText("runtimeText","users")]),T.g.j.hide(),T.h.o(r,function(){a.getStore().reload();d.getStore().reload()})):(m=1==c.length?'"'+c[0].get("AUPROF")+'" ':pui.getLanguageText("runtimeText","users"),m=pui.getLanguageText("runtimeMsg","x deleted",[m]),T.h.J(m,function(){T.g.j.hide();a.getStore().reload();
|
|
995
999
|
d.getStore().reload()}))})}})};
|
|
996
|
-
T.g.i.groups.he=function(c,a){T.g.j.msg=pui.getLanguageText("runtimeMsg","reassigning x",[pui.getLanguageText("runtimeText","group")]);T.g.j.show();var d={group:"1"};d.toGroup=c.id;d.id1=a.id;Ext.Ajax.request({url:T.h.s("PUI0003009.pgm"),params:d,callback:function(e,f,g){T.g.j.hide();T.data.u(g,function(h,l){var
|
|
997
|
-
[
|
|
1000
|
+
T.g.i.groups.he=function(c,a){T.g.j.msg=pui.getLanguageText("runtimeMsg","reassigning x",[pui.getLanguageText("runtimeText","group")]);T.g.j.show();var d={group:"1"};d.toGroup=c.id;d.id1=a.id;Ext.Ajax.request({url:T.h.s("PUI0003009.pgm"),params:d,callback:function(e,f,g){T.g.j.hide();T.data.u(g,function(h,l){var n=pui.getLanguageText("runtimeText","group");0==h?""==l.heading&&(l.heading=pui.getLanguageText("runtimeMsg","unable to reassn x",[n]),T.h.o(l)):(h=pui.getLanguageText("runtimeMsg","x reassigned",
|
|
1001
|
+
[n]),T.h.J(h,function(){a.remove();c.getOwnerTree().loader.load(c,function(){c.expand()})}))})}})};
|
|
998
1002
|
T.g.i.groups.ie=function(c,a){var d,e=!1;for(d=0;d<a.length;d++)if(a[d].get("AUUSER")==T.B.AUUSER){e=!0;break}if(T.B.AUROLE==T.Qa&&1==e)T.h.o(pui.getLanguageText("runtimeMsg","not auth reassign prf"));else{T.g.j.msg=pui.getLanguageText("runtimeMsg","reassigning x",[pui.getLanguageText("runtimeText","users")]);T.g.j.show();var f={user:"1"};f.toGroup=c.id;for(d=0;d<a.length;d++)f["id"+(d+1)]=a[d].get("AUUSER");Ext.Ajax.request({url:T.h.s("PUI0003009.pgm"),params:f,callback:function(g,h,l){T.g.j.hide();
|
|
999
|
-
T.data.u(l,function(
|
|
1003
|
+
T.data.u(l,function(n,k){var m=pui.getLanguageText("runtimeText","user");1<a.length&&(m=pui.getLanguageText("runtimeText","users"));0==n?""==k.heading&&(k.heading=pui.getLanguageText("runtimeMsg","unable to reassn x",[m]),T.h.o(k)):(e&&(T.B.AUGROUP=c.id),n=pui.getLanguageText("runtimeMsg","x reassigned",[m]),T.h.J(n,function(){c.select()}))})}})}};T.g.i.C.vd=function(){function c(){0==l.rendered&&(n.add(l),n.doLayout());l.show()}function a(k,m,r){switch(r.attributes.ANTYPE){case T.ha:var p="chart_organisation.png";break;case T.ba:p="application_go.png";var q=!1;break;case T.Fa:p="application_go.png";q=!1;break;case T.oa:p="bullet_green.png";var t=pui.getLanguageText("runtimeText","separator bar");q=!1;break;case T.Pa:p="bullet_green.png";t=pui.getLanguageText("runtimeText","spacer");q=!1;break;case T.hb:p="bullet_green.png";t=pui.getLanguageText("runtimeText",
|
|
1000
1004
|
"fill");q=!1;break;case T.P:p="chart_organisation.png";break;case T.U:p="application_go.png",q=!1}null!=q&&(r.attributes.allowDrop=q);null!=p&&(r.attributes.icon=T.m+p);null!=t&&r.setText(t);if(!r.leaf)r.on("append",a)}var d=new Ext.tree.TreePanel({id:"Atrium-cp-navTree",title:pui.getLanguageText("runtimeText","navigation items"),enableDD:!0,autoScroll:!0,ddGroup:"navDD",root:new Ext.tree.AsyncTreeNode({expanded:!0,allowDrag:!1,allowDrop:!1,children:[{text:pui.getLanguageText("runtimeText","navigation panel"),
|
|
1001
|
-
ANSECT:"N",expanded:!0,allowDrag:!1,allowDrop:!0,listeners:{append:a}},{text:pui.getLanguageText("runtimeText","home pages"),ANSECT:"H",expanded:!0,allowDrag:!1,allowDrop:!1,listeners:{append:a}}]}),rootVisible:!1,loader:new Ext.tree.TreeLoader({dataUrl:T.h.s("PUI0003010.pgm"),baseParams:{section:"",node:""},nodeParameter:"",listeners:{beforeload:function(k,
|
|
1002
|
-
|
|
1003
|
-
handler:function(k){var
|
|
1004
|
-
(q==T.ha||p.attributes.ANSECT==T.ga?
|
|
1005
|
-
r=k.target,p=r.attributes.ANTYPE,q=k.point,t=!1;if(
|
|
1006
|
-
ANSECT:"T",listeners:{append:a},expanded:!0}),rootVisible:!0,loader:new Ext.tree.TreeLoader({dataUrl:T.h.s("PUI0003010.pgm"),baseParams:{section:"T"}}),selModel:new Ext.tree.DefaultSelectionModel({listeners:{selectionchange:function(k,
|
|
1007
|
-
|
|
1008
|
-
"button"),Z:T.Fa,icon:T.m+"application_go.png"},{text:pui.getLanguageText("runtimeText","pulldown menu"),Z:T.P,icon:T.m+"chart_organisation.png"},{text:pui.getLanguageText("runtimeText","pulldown menu item"),Z:T.U,icon:T.m+"application_go.png"},{text:pui.getLanguageText("runtimeText","separator bar"),Z:T.oa,icon:T.m+"bullet_green.png"},{text:pui.getLanguageText("runtimeText","spacer"),Z:T.Pa,icon:T.m+"bullet_green.png"}],listeners:{beforeshow:function(k){for(var
|
|
1009
|
-
q=p.attributes.ANTYPE,t=0;t<k.items.getCount();t++)
|
|
1010
|
-
listeners:{nodedragover:function(k){var
|
|
1005
|
+
ANSECT:"N",expanded:!0,allowDrag:!1,allowDrop:!0,listeners:{append:a}},{text:pui.getLanguageText("runtimeText","home pages"),ANSECT:"H",expanded:!0,allowDrag:!1,allowDrop:!1,listeners:{append:a}}]}),rootVisible:!1,loader:new Ext.tree.TreeLoader({dataUrl:T.h.s("PUI0003010.pgm"),baseParams:{section:"",node:""},nodeParameter:"",listeners:{beforeload:function(k,m){m.parentNode==d.getRootNode()?k.baseParams.node="0":k.baseParams.node=m.id;k.baseParams.section=m.attributes.ANSECT}}}),selModel:new Ext.tree.DefaultSelectionModel({listeners:{selectionchange:function(k,
|
|
1006
|
+
m){null!=m&&e.getSelectionModel().clearSelections();k=d.getTopToolbar().items.itemAt(1);null!=m&&m.parentNode!=d.getRootNode()?(k.enable(),c(),g.uc(m),h.getStore().load({params:{item:m.id}})):(1==l.rendered&&l.hide(),k.disable());k=d.getTopToolbar().items.itemAt(0);null==m||m.parentNode!=d.getRootNode()&&m.attributes.ANTYPE!=T.ha?k.disable():k.enable()}}}),tbar:new Ext.Toolbar({items:[{text:pui.getLanguageText("runtimeText","add"),icon:T.m+"add.png",cls:"x-btn-text-icon",disabled:!0,menu:new Ext.menu.Menu({defaults:{clickHideDelay:0,
|
|
1007
|
+
handler:function(k){var m=d.getSelectionModel().getSelectedNode();null==m&&(m=d.getRootNode());T.g.i.C.addItem(m,k.initialConfig.Z)}},items:[{text:pui.getLanguageText("runtimeText","menu group"),Z:T.ha,icon:T.m+"chart_organisation.png"},{text:pui.getLanguageText("runtimeText","menu item"),Z:T.ba,icon:T.m+"application_go.png"}],listeners:{beforeshow:function(k){for(var m,r,p=d.getSelectionModel().getSelectedNode(),q=p.attributes.ANTYPE,t=0;t<k.items.getCount();t++)m=k.items.itemAt(t),r=m.Z,r==T.ba&&
|
|
1008
|
+
(q==T.ha||p.attributes.ANSECT==T.ga?m.show():m.hide()),r==T.ha&&(p.attributes.ANSECT==T.V?m.show():m.hide())}}})},{text:pui.getLanguageText("runtimeText","delete"),disabled:!0,icon:T.m+"delete_circle.png",cls:"x-btn-text-icon",handler:function(){var k=d.getSelectionModel().getSelectedNode();T.g.i.C.fc(k)}},new Ext.Toolbar.Fill,{icon:T.m+"arrow_refresh.png",handler:function(){d.loader.load(d.getRootNode(),function(){d.getRootNode().expand()})}}]}),listeners:{nodedragover:function(k){var m=k.dropNode,
|
|
1009
|
+
r=k.target,p=r.attributes.ANTYPE,q=k.point,t=!1;if(m.attributes.ANTYPE==T.ba)if("append"==q){if(r==m.parentNode||p!=T.ha)t=!0}else if(null==r.parentNode||r.parentNode.attributes.ANTYPE!=T.ha)t=!0;k.cancel=t},movenode:T.g.i.C.Bc}}),e=new Ext.tree.TreePanel({id:"Atrium-cp-toolbarTree",title:pui.getLanguageText("runtimeText","toolbar items"),enableDD:!0,ddGroup:"toolbarDD",allowDrag:!1,allowDrop:!0,autoScroll:!0,root:new Ext.tree.AsyncTreeNode({id:"0",text:pui.getLanguageText("runtimeText","toolbar"),
|
|
1010
|
+
ANSECT:"T",listeners:{append:a},expanded:!0}),rootVisible:!0,loader:new Ext.tree.TreeLoader({dataUrl:T.h.s("PUI0003010.pgm"),baseParams:{section:"T"}}),selModel:new Ext.tree.DefaultSelectionModel({listeners:{selectionchange:function(k,m){null!=m&&d.getSelectionModel().clearSelections();k=e.getTopToolbar().items.itemAt(1);null!=m&&m!=e.getRootNode()?k.enable():k.disable();k=e.getTopToolbar().items.itemAt(0);null==m||m!=e.getRootNode()&&m.attributes.ANTYPE!=T.P?k.disable():k.enable();null!=m&&m!=e.getRootNode()&&
|
|
1011
|
+
m.attributes.ANTYPE!=T.Pa&&m.attributes.ANTYPE!=T.oa&&m.attributes.ANTYPE!=T.hb?(c(),g.uc(m),h.getStore().load({params:{item:m.id}})):1==l.rendered&&l.hide()}}}),tbar:new Ext.Toolbar({items:[{text:pui.getLanguageText("runtimeText","add"),icon:T.m+"add.png",cls:"x-btn-text-icon",disabled:!0,menu:new Ext.menu.Menu({defaults:{clickHideDelay:0,handler:function(k){var m=e.getSelectionModel().getSelectedNode();null==m&&(m=e.getRootNode());T.g.i.C.addItem(m,k.initialConfig.Z)}},items:[{text:pui.getLanguageText("runtimeText",
|
|
1012
|
+
"button"),Z:T.Fa,icon:T.m+"application_go.png"},{text:pui.getLanguageText("runtimeText","pulldown menu"),Z:T.P,icon:T.m+"chart_organisation.png"},{text:pui.getLanguageText("runtimeText","pulldown menu item"),Z:T.U,icon:T.m+"application_go.png"},{text:pui.getLanguageText("runtimeText","separator bar"),Z:T.oa,icon:T.m+"bullet_green.png"},{text:pui.getLanguageText("runtimeText","spacer"),Z:T.Pa,icon:T.m+"bullet_green.png"}],listeners:{beforeshow:function(k){for(var m,r,p=e.getSelectionModel().getSelectedNode(),
|
|
1013
|
+
q=p.attributes.ANTYPE,t=0;t<k.items.getCount();t++)m=k.items.itemAt(t),r=m.Z,p==e.getRootNode()?r==T.U?m.hide():m.show():q==T.P?r==T.P||r==T.U?m.show():m.hide():m.hide()}}})},{text:pui.getLanguageText("runtimeText","delete"),disabled:!0,icon:T.m+"delete_circle.png",cls:"x-btn-text-icon",handler:function(){var k=e.getSelectionModel().getSelectedNode();T.g.i.C.fc(k)}},new Ext.Toolbar.Fill,{icon:T.m+"arrow_refresh.png",handler:function(){e.loader.load(e.getRootNode(),function(){e.getRootNode().expand()})}}]}),
|
|
1014
|
+
listeners:{nodedragover:function(k){var m=k.dropNode,r=k.target,p=m.attributes.ANTYPE,q=r.attributes.ANTYPE,t=k.point,v=!1;if(p!=T.P&&p!=T.U){if("append"==t||null==r.parentNode||r.parentNode!=e.getRootNode())v=!0}else if(p==T.U)if("append"==t){if(r==m.parentNode||q!=T.P)v=!0}else if(null==r.parentNode||r.parentNode.attributes.ANTYPE!=T.P)v=!0;k.cancel=v},movenode:T.g.i.C.Bc}}),f=new Ext.Panel({region:"west",layout:"accordion",split:!0,collapsible:!0,border:!1,width:200,items:[d,e]}),g=new Ext.form.FormPanel({region:"north",
|
|
1011
1015
|
url:T.h.s("PUI0003011.pgm"),baseParams:{mode:"edit"},fa:[],title:pui.getLanguageText("runtimeText","item details"),labelWidth:150,bodyStyle:"padding: 10px",autoHeight:!0,monitorValid:!0,defaults:{msgTarget:"side"},items:[new Ext.form.TextField({fieldLabel:pui.getLanguageText("runtimeText","item number"),name:"ANITEM",readOnly:!0,style:"border-style:none;background-image:none;cursor:default;"}),new Ext.form.ComboBox({fieldLabel:pui.getLanguageText("runtimeText","item type"),hiddenName:"ANTYPE",width:230,
|
|
1012
1016
|
editable:!1,forceSelection:!0,mode:"local",readOnly:!0,hideTrigger:!0,style:"border-style:none;background-image:none;cursor:default;",displayField:"display",valueField:"value",store:new Ext.data.ArrayStore({fields:["value","display"]})}),new Ext.form.TextField({name:"ANTEXT",fieldLabel:pui.getLanguageText("runtimeText","item name"),width:230,allowBlank:!1,blankText:pui.getLanguageText("runtimeMsg","required")}),new Ext.form.ComboBox({hiddenName:"ANACTNTYPE",fieldLabel:pui.getLanguageText("runtimeText",
|
|
1013
1017
|
"action type"),width:230,mode:"local",editable:!1,forceSelection:!0,valueField:"value",displayField:"display",value:"0",triggerAction:"all",store:new Ext.data.ArrayStore({autoDestroy:!0,fields:["value","display"],data:[[T.na,pui.getLanguageText("runtimeText","genie macro")],[T.ab,pui.getLanguageText("runtimeText","rdf application")],[T.Na,pui.getLanguageText("runtimeText","web application")],[T.eb,pui.getLanguageText("runtimeText","pc command")],[T.bb,pui.getLanguageText("runtimeText","launcher command")]]}),
|
|
1014
|
-
listeners:{select:function(k,
|
|
1015
|
-
mode:"remote",editable:!0,forceSelection:!0,minChars:0,triggerAction:"all",displayField:"AMNAME",valueField:"AMID",allowBlank:!1,blankText:pui.getLanguageText("runtimeMsg","required"),emptyText:pui.getLanguageText("runtimeMsg","typeselect macro name"),store:new Ext.data.Store({autoDestroy:!0,proxy:new Ext.data.HttpProxy({url:T.h.s("PUI0003021.pgm"),method:"POST"}),reader:new Ext.data.JsonReader({root:"data",fields:["AMID","AMNAME"]})}),listeners:{select:function(k,
|
|
1016
|
-
"loading"),"x-mask-loading"),g.Ya(T.na,g.getForm().findField("ANSECT").getValue()==T.ga,g.getForm().findField("ANSECT").getValue(),g.getForm().findField("ANTYPE").getValue()),Ext.Ajax.request({url:T.h.s("PUI0003025.pgm"),method:"POST",params:{AMAID:
|
|
1018
|
+
listeners:{select:function(k,m){k=m.get("value");g.Ya(k,g.getForm().findField("ANSECT").getValue()==T.ga,g.getForm().findField("ANSECT").getValue(),g.getForm().findField("ANTYPE").getValue());if(m.get("value")==T.na){k=g.getForm().findField("ANGACTN");m=k.getValue();var r=k.store.findExact(k.valueField,m);-1!=r&&(m=k.store.getAt(r),k.fireEvent("select",k,m,r))}}}}),new Ext.form.ComboBox({id:"Atrium-cp-navitemMacro",hiddenName:"ANGACTN",fieldLabel:pui.getLanguageText("runtimeText","macro"),width:230,
|
|
1019
|
+
mode:"remote",editable:!0,forceSelection:!0,minChars:0,triggerAction:"all",displayField:"AMNAME",valueField:"AMID",allowBlank:!1,blankText:pui.getLanguageText("runtimeMsg","required"),emptyText:pui.getLanguageText("runtimeMsg","typeselect macro name"),store:new Ext.data.Store({autoDestroy:!0,proxy:new Ext.data.HttpProxy({url:T.h.s("PUI0003021.pgm"),method:"POST"}),reader:new Ext.data.JsonReader({root:"data",fields:["AMID","AMNAME"]})}),listeners:{select:function(k,m){null!=m&&(g.getEl().mask(pui.getLanguageText("runtimeMsg",
|
|
1020
|
+
"loading"),"x-mask-loading"),g.Ya(T.na,g.getForm().findField("ANSECT").getValue()==T.ga,g.getForm().findField("ANSECT").getValue(),g.getForm().findField("ANTYPE").getValue()),Ext.Ajax.request({url:T.h.s("PUI0003025.pgm"),method:"POST",params:{AMAID:m.get("AMID")},callback:function(r,p,q){T.data.u(q,function(t,v){g.getEl().unmask();if(0==t)""==v.heading&&(v.heading=pui.getLanguageText("runtimeMsg","unable to load macr var"),T.h.o(v));else{for(var u,z,B=[],E=0,F=0;F<v.length;F++)-1==B.indexOf(v[F].AMAVAR)&&
|
|
1017
1021
|
(t=g.getForm().findField("VAR"+E),u=g.getForm().findField("VARNAME"+E),E++,null!=t&&null!=u&&(z=t.getEl().up("div.x-form-element").prev(),z.update(v[F].AMAVAR+":"),u.enable(),u.setValue(v[F].AMAVAR),t.enable(),t.getEl().up("div.x-form-item").setDisplayed(!0)),B.push(v[F].AMAVAR));l.doLayout()}})}}))},invalid:function(){g.Ya(T.na,g.getForm().findField("ANSECT").getValue()==T.ga,g.getForm().findField("ANSECT").getValue(),g.getForm().findField("ANTYPE").getValue())}}}),new Ext.form.TextField({name:"ANDSPFLIB",
|
|
1018
1022
|
fieldLabel:pui.getLanguageText("runtimeText","dspf program library"),width:230,allowBlank:!1,blankText:pui.getLanguageText("runtimeMsg","required")}),new Ext.form.TextField({name:"ANDSPFPGM",fieldLabel:pui.getLanguageText("runtimeText","dspf program"),width:230,allowBlank:!1,blankText:pui.getLanguageText("runtimeMsg","required")}),new Ext.form.TextField({name:"ANPARM",fieldLabel:pui.getLanguageText("runtimeText","parameter"),width:230}),new Ext.form.TextField({name:"ANACTN",fieldLabel:pui.getLanguageText("runtimeText",
|
|
1019
1023
|
"url"),width:230,allowBlank:!1,blankText:pui.getLanguageText("runtimeMsg","required")}),new Ext.form.TextField({name:"ANPCCMD",fieldLabel:pui.getLanguageText("runtimeText","pc command"),width:230,allowBlank:!1,blankText:pui.getLanguageText("runtimeMsg","required")}),new Ext.form.TextField({name:"ANLAUNCHERCMD",fieldLabel:pui.getLanguageText("runtimeText","launcher command"),width:230,allowBlank:!1,blankText:pui.getLanguageText("runtimeMsg","required")}),new Ext.form.TextField({name:"ANGURL",fieldLabel:pui.getLanguageText("runtimeText",
|
|
1020
1024
|
"genie url"),width:230,allowBlank:!0}),new Ext.form.TextField({name:"VAR0",fieldLabel:pui.getLanguageText("runtimeText","variable name x",[1]),width:230}),new Ext.form.TextField({name:"VAR1",fieldLabel:pui.getLanguageText("runtimeText","variable name x",[2]),width:230}),new Ext.form.TextField({name:"VAR2",fieldLabel:pui.getLanguageText("runtimeText","variable name x",[3]),width:230}),new Ext.form.TextField({name:"VAR3",fieldLabel:pui.getLanguageText("runtimeText","variable name x",[4]),width:230}),
|
|
1021
1025
|
new Ext.form.TextField({name:"VAR4",fieldLabel:pui.getLanguageText("runtimeText","variable name x",[5]),width:230}),new Ext.form.Hidden({name:"VARNAME0"}),new Ext.form.Hidden({name:"VARNAME1"}),new Ext.form.Hidden({name:"VARNAME2"}),new Ext.form.Hidden({name:"VARNAME3"}),new Ext.form.Hidden({name:"VARNAME4"}),new Ext.form.ComboBox({hiddenName:"ANWINDOW",fieldLabel:pui.getLanguageText("runtimeText","open as"),width:230,mode:"local",editable:!1,forceSelection:!0,valueField:"value",displayField:"display",
|
|
1022
1026
|
value:"0",triggerAction:"all",store:new Ext.data.ArrayStore({autoDestroy:!0,fields:["value","display"],data:[["0",pui.getLanguageText("runtimeText","a tab in the portal")],["1",pui.getLanguageText("runtimeText","a new browser wind")]]})}),new Ext.form.Checkbox({fieldLabel:pui.getLanguageText("runtimeText","opens once only"),name:"ANONCE",inputValue:"1"}),new Ext.form.TextField({name:"ANICON",fieldLabel:pui.getLanguageText("runtimeText","icon"),width:230}),new Ext.form.TextField({name:"ANKEYWORDS",
|
|
1023
|
-
fieldLabel:pui.getLanguageText("runtimeText","keywords"),width:230}),new Ext.form.Hidden({name:"ANSECT"})],buttonAlign:"left",buttons:[{text:pui.getLanguageText("runtimeText","update"),formBind:!0,handler:function(){var k=g.getForm();1==k.isValid()&&k.submit()}}],keys:[{key:Ext.EventObject.ENTER,fn:function(k,
|
|
1024
|
-
"saving");T.g.j.show()},actioncomplete:function(k){T.h.J(pui.getLanguageText("runtimeMsg","x updated",[pui.getLanguageText("runtimeText","item")]),function(){T.g.i.M.la=!0;var
|
|
1025
|
-
|
|
1026
|
-
"ANICON"],z=["ANACTNTYPE"],B=["ANPCCMD"],E=["ANLAUNCHERCMD"],F=["ANACTN"],G=["ANGURL","ANGACTN"],L=["ANDSPFLIB","ANDSPFPGM","ANPARM"];for(q=0;q<t.length;q++){var D=g.getForm().findField(t[q]);D.disable();D.clearInvalid();"hidden"!=D.getXType()&&D.getEl().up("div.x-form-item").setDisplayed(!1)}
|
|
1027
|
-
D.getXType()&&D.getEl().up("div.x-form-item").setDisplayed(!0);if(r===T.V&&p===T.ba||r===T.za&&(p===T.Fa||p===T.U))D=g.getForm().findField("ANKEYWORDS"),D.enable(),D.getEl().up("div.x-form-item").setDisplayed(!0);g.getForm().clearInvalid();l.doLayout()},qe:function(){for(var k=g.getForm(),
|
|
1028
|
-
uc:function(k){0==g.fa.length&&g.jb();var
|
|
1027
|
+
fieldLabel:pui.getLanguageText("runtimeText","keywords"),width:230}),new Ext.form.Hidden({name:"ANSECT"})],buttonAlign:"left",buttons:[{text:pui.getLanguageText("runtimeText","update"),formBind:!0,handler:function(){var k=g.getForm();1==k.isValid()&&k.submit()}}],keys:[{key:Ext.EventObject.ENTER,fn:function(k,m){k=g.getForm();1==k.isValid()&&k.submit();m.stopEvent()}}],listeners:{beforeaction:function(k){g.baseParams.enc_ANKEYWORDS=pui.G.encode(k.findField("ANKEYWORDS").getValue());T.g.j.msg=pui.getLanguageText("runtimeMsg",
|
|
1028
|
+
"saving");T.g.j.show()},actioncomplete:function(k){T.h.J(pui.getLanguageText("runtimeMsg","x updated",[pui.getLanguageText("runtimeText","item")]),function(){T.g.i.M.la=!0;var m=k.findField("ANSECT").getValue(),r;m==T.V||m==T.ga?r=d:m==T.za&&(r=e);m=r.getLoader();var p=r.getNodeById(k.findField("ANITEM").getValue());if(null!=p){var q=p.parentNode,t=p.id,v=p.isExpanded();m.load(q,function(){q.expand(!1,!0,function(){var u=r.getNodeById(t);null!=u&&(v&&u.expand(),u.select())})})}})},actionfailed:function(k,
|
|
1029
|
+
m){T.data.u(m.response,function(r,p){""==p.heading&&(p.heading=pui.getLanguageText("runtimeMsg","unable to update x",[pui.getLanguageText("runtimeText","item")]));T.g.j.hide();T.h.o(p)})},destroy:function(){g.qb()}},Ya:function(k,m,r,p){var q,t="ANACTNTYPE ANACTN ANPCCMD ANLAUNCHERCMD ANGACTN ANGURL ANDSPFLIB ANDSPFPGM ANONCE ANWINDOW ANICON ANKEYWORDS VAR0 VAR1 VAR2 VAR3 VAR4 VARNAME0 VARNAME1 VARNAME2 VARNAME3 VARNAME4 ANPARM".split(" "),v=["ANACTNTYPE","ANWINDOW","ANONCE","ANICON"],u=["ANACTNTYPE",
|
|
1030
|
+
"ANICON"],z=["ANACTNTYPE"],B=["ANPCCMD"],E=["ANLAUNCHERCMD"],F=["ANACTN"],G=["ANGURL","ANGACTN"],L=["ANDSPFLIB","ANDSPFPGM","ANPARM"];for(q=0;q<t.length;q++){var D=g.getForm().findField(t[q]);D.disable();D.clearInvalid();"hidden"!=D.getXType()&&D.getEl().up("div.x-form-item").setDisplayed(!1)}m&&(v=z);k=k==T.eb?B.concat(u):k==T.Na?F.concat(v):k==T.na?G.concat(v):k==T.ab?L.concat(v):k==T.bb?E.concat(v):["ANICON"];if(null!=k)for(q=0;q<k.length;q++)D=g.getForm().findField(k[q]),D.enable(),"hidden"!=
|
|
1031
|
+
D.getXType()&&D.getEl().up("div.x-form-item").setDisplayed(!0);if(r===T.V&&p===T.ba||r===T.za&&(p===T.Fa||p===T.U))D=g.getForm().findField("ANKEYWORDS"),D.enable(),D.getEl().up("div.x-form-item").setDisplayed(!0);g.getForm().clearInvalid();l.doLayout()},qe:function(){for(var k=g.getForm(),m=0;5>m;m++){var r=k.findField("VAR"+m),p=k.findField("VARNAME"+m);if(r){r.setValue("");r.disable();var q=r.getEl();q&&"hidden"!==r.getXType()&&q.up("div.x-form-item").setDisplayed(!1)}p&&(p.setValue(""),p.disable())}},
|
|
1032
|
+
uc:function(k){0==g.fa.length&&g.jb();var m=g.getForm(),r=m.findField("ANTYPE").store;k.attributes.ANSECT==T.za?r.loadData([[T.Fa,pui.getLanguageText("runtimeText","button")],[T.P,pui.getLanguageText("runtimeText","pulldown menu")],[T.U,pui.getLanguageText("runtimeText","pulldown menu item")],[T.oa,pui.getLanguageText("runtimeText","separator bar")],[T.oa,pui.getLanguageText("runtimeText","spacer")],[T.oa,pui.getLanguageText("runtimeText","fill")]]):(k.attributes.ANSECT==T.V||k.attributes.ANSECT==
|
|
1029
1033
|
T.ga)&&r.loadData([[T.ha,pui.getLanguageText("runtimeText","menu group")],[T.ba,pui.getLanguageText("runtimeText","menu item")]]);r=k.attributes.ANTYPE;if(r==T.ba||r==T.Fa||r==T.U)var p=k.zb?T.Na:k.attributes.ANACTNTYPE;g.Ya(p,k.attributes.ANSECT==T.ga,k.attributes.ANSECT,k.attributes.ANTYPE);g.qe();if(k.attributes.ANACTNTYPE==T.na){p=0;for(r=[];null!=k.attributes["VAR"+p];)-1==r.indexOf(k.attributes["VARNAME"+p])&&(g.getForm().findField("VAR"+p).enable(),g.getForm().findField("VARNAME"+p).enable(),
|
|
1030
|
-
g.getForm().findField("VAR"+p).getEl().up("div.x-form-element").prev().update(k.attributes["VARNAME"+p]+":"),g.getForm().findField("VAR"+p).getEl().up("div.x-form-item").setDisplayed(!0),r.push(k.attributes["VARNAME"+p])),p++;l.doLayout()}for(r=0;r<
|
|
1031
|
-
this.da.$a),u=this.getAt(v);this.da.fireEvent("select",this.da,u,v)},p.store,{single:"true"}),p.store.load();else{var t=k.attributes[q];"ANKEYWORDS"===q&&(t=pui.G.decode(t));p.setValue(t);"checkbox"==p.getXType()&&p.fireEvent("check",p,p.getValue())}}k.zb?(
|
|
1032
|
-
Ext.QuickTips.register({target:
|
|
1033
|
-
fields:"item id name type allow profile".split(" ")}),listeners:{load:function(k){k.each(function(
|
|
1034
|
-
(k=pui.getLanguageText("runtimeText","all users groups"),
|
|
1035
|
-
|
|
1036
|
-
"type"),sortable:!0,width:80,dataIndex:"type",renderer:function(k){"0"==k?k="":"1"==k?k=pui.getLanguageText("runtimeText","group"):"2"==k&&(k=pui.getLanguageText("runtimeText","user"));return k}},{header:pui.getLanguageText("runtimeText","access"),sortable:!0,dataIndex:"allow",renderer:function(k,
|
|
1034
|
+
g.getForm().findField("VAR"+p).getEl().up("div.x-form-element").prev().update(k.attributes["VARNAME"+p]+":"),g.getForm().findField("VAR"+p).getEl().up("div.x-form-item").setDisplayed(!0),r.push(k.attributes["VARNAME"+p])),p++;l.doLayout()}for(r=0;r<m.items.getCount();r++){p=m.items.itemAt(r);var q=p.getName();if("undefined"!=typeof k.attributes[q])if("combo"==p.getXType()&&"remote"==p.mode)p.$a=k.attributes[q],p.store.da=p,p.store.addListener("load",function(){this.da.setValue(this.da.$a);var v=this.findExact(this.da.valueField,
|
|
1035
|
+
this.da.$a),u=this.getAt(v);this.da.fireEvent("select",this.da,u,v)},p.store,{single:"true"}),p.store.load();else{var t=k.attributes[q];"ANKEYWORDS"===q&&(t=pui.G.decode(t));p.setValue(t);"checkbox"==p.getXType()&&p.fireEvent("check",p,p.getValue())}}k.zb?(m.findField("ANTEXT").selectText(),k.zb=!1):m.findField("ANTEXT").focus();m.clearInvalid()},jb:function(){var k;for(k in T.A){var m=g.find("name",k)[0];null==m&&(m=g.find("hiddenName",k)[0]);null!=m&&"hidden"!=m.getXType()&&(m=m.getEl().up("div.x-form-element").prev(),
|
|
1036
|
+
Ext.QuickTips.register({target:m,title:pui.getLanguageText("runtimeText",T.A[k].title),text:pui.getLanguageText("runtimeText",T.A[k].text)}),g.fa.push(m))}},qb:function(){for(var k=0;k<g.fa.length;k++)Ext.QuickTips.unregister(g.fa[k])}}),h=new Ext.grid.EditorGridPanel({region:"center",title:pui.getLanguageText("runtimeText","permissions"),loadMask:!0,clicksToEdit:2,store:new Ext.data.Store({autoDestroy:!0,proxy:new Ext.data.HttpProxy({url:T.h.s("PUI0003012.pgm"),method:"POST"}),reader:new Ext.data.JsonReader({root:"data",
|
|
1037
|
+
fields:"item id name type allow profile".split(" ")}),listeners:{load:function(k){k.each(function(m){m.set("name",pui.G.decode(m.get("name")));m.commit()})},loadexception:function(k,m,r){T.data.u(r,function(p,q){""==q.heading&&(q.heading=pui.getLanguageText("runtimeMsg","unable to load x",[pui.getLanguageText("runtimeText","permissions")]));T.h.o(q)})}}}),columns:[{header:pui.getLanguageText("runtimeText","user/group name"),sortable:!0,width:500,dataIndex:"name",renderer:function(k,m,r){"0"==r.get("type")&&
|
|
1038
|
+
(k=pui.getLanguageText("runtimeText","all users groups"),m.attr='style="font-style:italic;color:gray;"');return k},editor:new Ext.form.ComboBox({mode:"remote",editable:!0,forceSelection:!0,minChars:0,displayField:"name",valueField:"id",store:new Ext.data.Store({autoDestroy:!0,proxy:new Ext.data.HttpProxy({method:"POST",url:T.h.s("PUI0003013.pgm")}),reader:new Ext.data.JsonReader({root:"data",fields:["name","id","type"]}),listeners:{load:function(k){k.each(function(m){m.set("name",pui.G.decode(m.get("name")));
|
|
1039
|
+
m.commit()})}}}),triggerAction:"all",tpl:new Ext.XTemplate('<tpl for="."><div class="search-item">','<span class="search-column1" style="width: 400px;"><span style="font-weight:bold;">Name: </span>{name}</span>','<span class="search-column2"><span style="font-weight:bold;">Type: </span>{type}</span>',"</div></tpl>"),itemSelector:"div.search-item",listeners:{beforequery:function(k){k.query=pui.G.encode(k.query.toUpperCase())}}})},{header:pui.getLanguageText("runtimeText",
|
|
1040
|
+
"type"),sortable:!0,width:80,dataIndex:"type",renderer:function(k){"0"==k?k="":"1"==k?k=pui.getLanguageText("runtimeText","group"):"2"==k&&(k=pui.getLanguageText("runtimeText","user"));return k}},{header:pui.getLanguageText("runtimeText","access"),sortable:!0,dataIndex:"allow",renderer:function(k,m){if("1"==k){k=pui.getLanguageText("runtimeText","allow");var r="green"}else k=pui.getLanguageText("runtimeText","disallow"),r="red";m.attr='style="color:'+r+';"';return k},editor:new Ext.form.ComboBox({mode:"local",
|
|
1037
1041
|
editable:!1,forceSelection:!0,displayField:"display",valueField:"value",store:new Ext.data.ArrayStore({fields:["value","display"],data:[["0",pui.getLanguageText("runtimeText","disallow")],["1",pui.getLanguageText("runtimeText","allow")]]}),triggerAction:"all"})},{header:pui.getLanguageText("runtimeText","user profile"),sortable:!0,dataIndex:"profile",width:200}],tbar:new Ext.Toolbar({items:[{text:pui.getLanguageText("runtimeText","add"),icon:T.m+"add.png",handler:function(){T.g.i.C.Xc(h)}},{text:pui.getLanguageText("runtimeText",
|
|
1038
|
-
"delete"),disabled:!0,icon:T.m+"delete_circle.png",handler:function(){var k=pui.getLanguageText("runtimeMsg","confirm del sel x",[pui.getLanguageText("runtimeMsg","permission settings")]);Ext.MessageBox.confirm(pui.getLanguageText("runtimeMsg","confirm delete"),k,function(
|
|
1039
|
-
k.length)
|
|
1040
|
-
"unable to update x",[pui.getLanguageText("runtimeText","permissions")])),T.h.o(u,function(){h.getStore().rejectChanges()})):(h.getStore().commitChanges(),h.getStore().reload(),T.g.i.M.la=!0)})}})}}}),l=new Ext.Panel({layout:"border",items:[g,h],border:!1}),
|
|
1041
|
-
items:[f,
|
|
1042
|
-
T.g.i.C.addItem=function(c,a){T.g.j.msg=pui.getLanguageText("runtimeMsg","adding x",[pui.getLanguageText("runtimeText","navigation item")]);T.g.j.show();var d=c.getOwnerTree();var e=c.attributes.ANSECT!=T.V&&c.attributes.ANSECT!=T.ga||c.parentNode!=d.getRootNode()?c.id:"0";Ext.Ajax.request({url:T.h.s("PUI0003011.pgm"),params:{mode:"add",parent:e,section:c.attributes.ANSECT,itemType:a},callback:function(f,g,h){T.data.u(h,function(l,
|
|
1043
|
-
0==l?(""==
|
|
1042
|
+
"delete"),disabled:!0,icon:T.m+"delete_circle.png",handler:function(){var k=pui.getLanguageText("runtimeMsg","confirm del sel x",[pui.getLanguageText("runtimeMsg","permission settings")]);Ext.MessageBox.confirm(pui.getLanguageText("runtimeMsg","confirm delete"),k,function(m){"yes"==m&&T.g.i.C.Hd(h.getSelectionModel().getSelections(),h.getStore())})}}]}),selModel:new Ext.grid.RowSelectionModel({listeners:{selectionchange:function(k){k=k.getSelections();var m=h.getTopToolbar().items.itemAt(1);if(0==
|
|
1043
|
+
k.length)m.disable();else{for(var r=!1,p=0;p<k.length;p++)if("0"==k[p].get("type")){r=!0;break}r?m.disable():m.enable()}}}}),listeners:{beforeedit:function(k){"name"==k.field&&"0"==k.record.get("id")&&(k.cancel=!0)},afteredit:function(k){var m=k.record,r=k.value;Ext.Ajax.request({url:T.h.s("PUI0003014.pgm"),params:{mode:"update",item:m.get("item"),id:m.get("id"),allow:m.get("allow"),newId:"name"==k.field?r:""},callback:function(p,q,t){T.data.u(t,function(v,u){0==v?(""==u.heading&&(u.heading=pui.getLanguageText("runtimeMsg",
|
|
1044
|
+
"unable to update x",[pui.getLanguageText("runtimeText","permissions")])),T.h.o(u,function(){h.getStore().rejectChanges()})):(h.getStore().commitChanges(),h.getStore().reload(),T.g.i.M.la=!0)})}})}}}),l=new Ext.Panel({layout:"border",items:[g,h],border:!1}),n=new Ext.Panel({layout:"fit",region:"center",border:!1,html:'<div style="margin: 10px;">'+pui.getLanguageText("runtimeMsg","choose a nav or toolbar")+"</div>"});return new Ext.Panel({title:pui.getLanguageText("runtimeText","navigation"),layout:"border",
|
|
1045
|
+
items:[f,n]})};
|
|
1046
|
+
T.g.i.C.addItem=function(c,a){T.g.j.msg=pui.getLanguageText("runtimeMsg","adding x",[pui.getLanguageText("runtimeText","navigation item")]);T.g.j.show();var d=c.getOwnerTree();var e=c.attributes.ANSECT!=T.V&&c.attributes.ANSECT!=T.ga||c.parentNode!=d.getRootNode()?c.id:"0";Ext.Ajax.request({url:T.h.s("PUI0003011.pgm"),params:{mode:"add",parent:e,section:c.attributes.ANSECT,itemType:a},callback:function(f,g,h){T.data.u(h,function(l,n){function k(){var m=c.findChild("ANITEM",n.ANITEM);m.zb=!0;m.select()}
|
|
1047
|
+
0==l?(""==n.heading&&(n.heading=pui.getLanguageText("runtimeMsg","unable to add x",[pui.getLanguageText("runtimeText","navigation item")])),T.g.j.hide(),T.h.o(n)):(T.g.j.hide(),T.g.i.M.la=!0,1==c.isLoaded()?d.loader.load(c,function(){c.expand(!1,!0,k)}):c.expand(!1,!0,k))})}})};
|
|
1044
1048
|
T.g.i.C.fc=function(c){var a=pui.getLanguageText("runtimeMsg","confirm del sel x",[pui.getLanguageText("runtimeText","item")]);c.leaf||(a+=" "+pui.getLanguageText("runtimeMsg","any child items will"));Ext.MessageBox.confirm(pui.getLanguageText("runtimeMsg","confirm delete"),a,function(d){"yes"==d&&T.g.i.C.Dd(c)})};
|
|
1045
1049
|
T.g.i.C.Dd=function(c){T.g.j.msg=pui.getLanguageText("runtimeMsg","deleting x",[pui.getLanguageText("runtimeText","item")]);T.g.j.show();var a=c.getOwnerTree().getLoader(),d=c.parentNode;Ext.Ajax.request({url:T.h.s("PUI0003011.pgm"),params:{mode:"delete",id:c.id},callback:function(e,f,g){T.data.u(g,function(h,l){0==h?(""==l.heading&&(l.heading=pui.getLanguageText("runtimeMsg","unable to delete x",[pui.getLanguageText("runtimeText","item")])),T.g.j.hide(),T.h.o(l)):(T.g.j.hide(),T.g.i.M.la=!0,T.h.J(pui.getLanguageText("runtimeMsg",
|
|
1046
1050
|
"x deleted",[pui.getLanguageText("runtimeText","item")]),function(){a.load(d,function(){d.expand()})}))})}})};
|
|
1047
1051
|
T.g.i.C.Xc=function(c){function a(){var f=c.getStore().getAt(0).get("item"),g=d.getSelectionModel().getSelected().get("id");-1!=c.getStore().findExact("id",g)?(f=d.getSelectionModel().getSelected().get("name"),T.h.o(pui.getLanguageText("runtimeMsg","x is already in list",[f]),function(){d.getGridEl().focus()})):(T.g.j.msg=pui.getLanguageText("runtimeMsg","adding x",[pui.getLanguageText("runtimeText","permissions")]),T.g.j.show(),Ext.Ajax.request({url:T.h.s("PUI0003014.pgm"),params:{mode:"add",item:f,
|
|
1048
|
-
id:g,allow:"1"},callback:function(h,l,
|
|
1049
|
-
autoLoad:!0,proxy:new Ext.data.HttpProxy({method:"POST",url:T.h.s("PUI0003013.pgm")}),reader:new Ext.data.JsonReader({root:"data",fields:["name","type","id","profile"]}),listeners:{loadexception:function(f,g,h){T.data.u(h,function(l,
|
|
1052
|
+
id:g,allow:"1"},callback:function(h,l,n){T.g.j.hide();T.data.u(n,function(k,m){0==k?(""==m.heading&&(m.heading=pui.getLanguageText("runtimeMsg","unable to add x",[pui.getLanguageText("runtimeText","permissions")])),T.h.o(m,function(){d.getGridEl().focus()})):(e.close(),T.g.i.M.la=!0,T.h.J(pui.getLanguageText("runtimeMsg","x added",[pui.getLanguageText("runtimeText","permissions")]),function(){c.getStore().reload()}))})}}))}var d=new Ext.grid.GridPanel({loadMask:!0,store:new Ext.data.Store({autoDestroy:!0,
|
|
1053
|
+
autoLoad:!0,proxy:new Ext.data.HttpProxy({method:"POST",url:T.h.s("PUI0003013.pgm")}),reader:new Ext.data.JsonReader({root:"data",fields:["name","type","id","profile"]}),listeners:{loadexception:function(f,g,h){T.data.u(h,function(l,n){l=pui.getLanguageText("runtimeText","users")+"/"+pui.getLanguageText("runtimeText","groups");""==n.heading&&(n.heading=pui.getLanguageText("runtimeMsg","unable to load x",[l]));T.h.o(n,function(){e.close()})})},load:function(f){0<f.getCount()&&(f.each(function(g){g.set("name",
|
|
1050
1054
|
pui.G.decode(g.get("name")));g.commit()}),d.getSelectionModel().selectFirstRow(),d.getGridEl().focus())}}}),columns:[{header:pui.getLanguageText("runtimeText","user/group name"),sortable:!0,width:600,dataIndex:"name"},{header:pui.getLanguageText("runtimeText","type"),sortable:!0,dataIndex:"type"},{header:pui.getLanguageText("runtimeText","user profile"),width:200,sortable:!0,dataIndex:"profile"}],selModel:new Ext.grid.RowSelectionModel({singleSelect:!0,listeners:{selectionchange:function(f){var g=
|
|
1051
1055
|
d.getTopToolbar().items.itemAt(0);1==f.getSelections().length?g.enable():g.disable()}}}),tbar:new Ext.Toolbar({items:[{text:pui.getLanguageText("runtimeText","select"),icon:T.m+"arrow_right.png",disabled:!0,handler:a}]}),keys:[{key:Ext.EventObject.ENTER,fn:function(f,g){1==d.getSelectionModel().getSelections().length&&a();g.stopEvent()}}],listeners:{rowdblclick:function(f,g,h){1==d.getSelectionModel().getSelections().length&&a();h.stopEvent()}}}),e=new Ext.Window({title:pui.getLanguageText("runtimeText",
|
|
1052
1056
|
"add usrgrp perm"),modal:!0,maximized:!0,resizable:!0,layout:"fit",items:[d],buttonAlign:"right",buttons:[{text:pui.getLanguageText("runtimeText","close"),handler:function(){e.close()}}]});e.show()};
|
|
1053
|
-
T.g.i.C.Hd=function(c,a){for(var d={mode:"delete"},e=0;e<c.length;e++)d["item"+(e+1)]=c[e].get("item"),d["id"+(e+1)]=c[e].get("id");T.g.j.msg=pui.getLanguageText("runtimeMsg","deleting x",[pui.getLanguageText("runtimeText","permissions")]);T.g.j.show();Ext.Ajax.request({url:T.h.s("PUI0003014.pgm"),params:d,callback:function(f,g,h){T.g.j.hide();T.data.u(h,function(l,
|
|
1054
|
-
T.h.o(
|
|
1055
|
-
T.g.i.C.Bc=function(c,a,d,e){a={mode:"reorder"};e.attributes.ANSECT==T.V&&e.parentNode==c.getRootNode()?a.parent="0":a.parent=e.id;for(d=0;d<e.childNodes.length;d++)a["child"+(d+1)]=e.childNodes[d].id;Ext.Ajax.request({url:T.h.s("PUI0003011.pgm"),params:a,callback:function(f,g,h){T.data.u(h,function(l,
|
|
1057
|
+
T.g.i.C.Hd=function(c,a){for(var d={mode:"delete"},e=0;e<c.length;e++)d["item"+(e+1)]=c[e].get("item"),d["id"+(e+1)]=c[e].get("id");T.g.j.msg=pui.getLanguageText("runtimeMsg","deleting x",[pui.getLanguageText("runtimeText","permissions")]);T.g.j.show();Ext.Ajax.request({url:T.h.s("PUI0003014.pgm"),params:d,callback:function(f,g,h){T.g.j.hide();T.data.u(h,function(l,n){0==l?(""==n.heading&&(n.heading=pui.getLanguageText("runtimeMsg","unable to delete x",[pui.getLanguageText("runtimeText","permissions")])),
|
|
1058
|
+
T.h.o(n,function(){a.reload()})):(T.g.i.M.la=!0,T.h.J(pui.getLanguageText("runtimeMsg","x deleted",[pui.getLanguageText("runtimeText","permissions")]),function(){a.reload()}))})}})};
|
|
1059
|
+
T.g.i.C.Bc=function(c,a,d,e){a={mode:"reorder"};e.attributes.ANSECT==T.V&&e.parentNode==c.getRootNode()?a.parent="0":a.parent=e.id;for(d=0;d<e.childNodes.length;d++)a["child"+(d+1)]=e.childNodes[d].id;Ext.Ajax.request({url:T.h.s("PUI0003011.pgm"),params:a,callback:function(f,g,h){T.data.u(h,function(l,n){0==l?(""==n.heading&&(n.heading=pui.getLanguageText("runtimeMsg","unable to reorder items")),T.h.o(n,function(){c.getLoader().load(c.getRootNode(),function(){c.getRootNode().expand()})})):T.g.i.M.la=
|
|
1056
1060
|
!0})}})};T.wa="0";T.Sb="1";T.aa="+";T.fb="5";T.Rb="0";T.Oa="1";T.xa="2";T.gb="3";T.Tb="4";T.Qb="5";
|
|
1057
1061
|
T.g.i.v.create=function(){var c=new Ext.tree.TreePanel({title:pui.getLanguageText("runtimeText","screens"),split:!0,collapsible:!1,animCollapse:!1,autoScroll:!0,flex:1,root:new Ext.tree.AsyncTreeNode({text:pui.getLanguageText("runtimeText","screens"),expandable:!0,expanded:!0}),loader:new Ext.tree.TreeLoader({url:T.h.s("PUI0003017.PGM"),baseParams:{tree:"1"},baseAttrs:{icon:T.m+"application_form.png",listeners:{contextmenu:function(p,q){0==p.isSelected()&&p.select();(new Ext.menu.Menu({items:[{text:pui.getLanguageText("runtimeText",
|
|
1058
1062
|
"rename"),icon:T.m+"textfield_rename.png",handler:function(){d.triggerEdit(p)}},{text:pui.getLanguageText("runtimeText","delete"),icon:T.m+"delete_circle.png",handler:function(){T.g.i.v.ic(c.getSelectionModel().getSelectedNodes())}}]})).showAt(q.getXY())}}}}),tbar:new Ext.Toolbar({items:[{text:pui.getLanguageText("runtimeText","add"),icon:T.m+"add.png",cls:"x-btn-text-icon",handler:function(){T.g.i.v.Yc(c)}},{text:pui.getLanguageText("runtimeText","delete"),disabled:!0,icon:T.m+"delete_circle.png",
|
|
@@ -1067,7 +1071,7 @@ q){if(""==Ext.util.Format.trim(q))return!1;p=e.getRootNode().childNodes;for(var
|
|
|
1067
1071
|
sortable:!0},{header:pui.getLanguageText("runtimeText","field column"),dataIndex:"AICOL",width:80,editor:new Ext.form.NumberField({autoCreate:{tag:"input",type:"text",autocomplete:"off",maxlength:3},width:70,minValue:0,maxValue:131,allowBlank:!1,blankText:pui.getLanguageText("runtimeMsg","required"),allowDecimals:!1,allowNegative:!1}),sortable:!0},{header:pui.getLanguageText("runtimeText","value"),dataIndex:"AIVALUE",width:500,editor:new Ext.form.TextField({allowBlank:!1,blankText:pui.getLanguageText("runtimeMsg",
|
|
1068
1072
|
"required")}),sortable:!0}],store:new Ext.data.Store({autoDestroy:!0,proxy:new Ext.data.HttpProxy({url:T.h.s("PUI0003018.pgm"),method:"POST"}),reader:new Ext.data.JsonReader({root:"data",fields:["AIIDENID","AIROW","AICOL","AIVALUE"]}),listeners:{loadexception:function(p,q,t){T.data.u(t,function(v,u){l.getStore().removeAll();""==u.heading&&(u.heading=pui.getLanguageText("runtimeMsg","unable to load x",[pui.getLanguageText("runtimeText","screen ids")]));T.h.o(u)})}}}),tbar:new Ext.Toolbar({items:[{text:pui.getLanguageText("runtimeText",
|
|
1069
1073
|
"add"),icon:T.m+"add.png",cls:"x-btn-text-icon",handler:function(){var p=l.getStore().lastOptions.params.ASID;T.g.i.v.Uc(p,l)}},{text:pui.getLanguageText("runtimeText","delete"),disabled:!0,icon:T.m+"delete_circle.png",cls:"x-btn-text-icon",handler:function(){var p=l.getSelectionModel(),q=pui.getLanguageText("runtimeText","screen id");1<p.getSelections().length&&(q=pui.getLanguageText("runtimeText","screen ids"));p=pui.getLanguageText("runtimeMsg","confirm del sel x",[q]);Ext.MessageBox.confirm(pui.getLanguageText("runtimeMsg",
|
|
1070
|
-
"confirm delete"),p,function(t){"yes"==t&&T.g.i.v.Cd(l)})}}]}),selModel:new Ext.grid.RowSelectionModel({listeners:{selectionchange:function(p){var q=l.getTopToolbar().items.itemAt(1);0<p.getSelections().length?q.enable():q.disable()}}}),listeners:{afteredit:function(p){T.g.i.v.Pd(p.record,p.grid)}}}),
|
|
1074
|
+
"confirm delete"),p,function(t){"yes"==t&&T.g.i.v.Cd(l)})}}]}),selModel:new Ext.grid.RowSelectionModel({listeners:{selectionchange:function(p){var q=l.getTopToolbar().items.itemAt(1);0<p.getSelections().length?q.enable():q.disable()}}}),listeners:{afteredit:function(p){T.g.i.v.Pd(p.record,p.grid)}}}),n=new Ext.Panel({layout:"fit",border:!1,items:[l]}),k=new Ext.grid.GridPanel({id:"Atrium-macroGroupGrid",title:pui.getLanguageText("runtimeText","actions"),region:"center",hideHeaders:!0,loadMask:!0,
|
|
1071
1075
|
stripeRows:!0,autoExpandColumn:"actionText",colModel:new Ext.grid.ColumnModel({columns:[{xtype:"actioncolumn",dataIndex:"deleteIcon",width:26,icon:T.m+"action_delete.png",tooltip:pui.getLanguageText("runtimeText","delete x",[pui.getLanguageText("runtimeText","action")]),handler:function(p,q){q=p.getStore().getAt(q);T.g.i.v.Ed(p,q)},getClass:function(p,q,t){if(""===t.get("AMAACTN"))return"x-hide-display"}},{xtype:"actioncolumn",dataIndex:"editIcon",width:26,icon:T.m+"change.png",tooltip:pui.getLanguageText("runtimeText",
|
|
1072
1076
|
"edit x",[pui.getLanguageText("runtimeText","action")]),handler:function(p,q){var t=p.getStore().getAt(q);k.getSelectionModel().selectRow(q);T.g.i.v.Xb(p,t)},getClass:function(p,q,t){return""===t.get("AMAACTN")?"x-hide-display":""}},{header:pui.getLanguageText("runtimeText","screen"),dataIndex:"AMSSCRNSEQ",groupRenderer:function(p,q,t,v,u,z){v=z.data.items.filter(function(B){return B.json.AMSSCRNSEQ===p});q=0;1<v.length?q=v.length:v[0].json.AMAACTNSEQ&&(q=1);v=1==t.get("AMSONCE");return t.get("AMSSCRNSEQ")+
|
|
1073
1077
|
" - "+t.get("ASNAME")+" ("+q+" "+pui.getLanguageText("runtimeText",1===q?"action":"actions")+") "+(v?pui.getLanguageText("runtimeText","detect once"):"")}},{id:"actionText",header:"Action",dataIndex:"actionText",renderer:function(p,q,t,v,u,z){var B=t.get("AMAACTN");p=t.get("AMAVARTYPE");u=t.get("AMAVAR");var E=t.get("AMAROW"),F=t.get("AMACOL");t=t.get("AMSSCRNSEQ");if(""===B)return pui.getLanguageText("runtimeMsg","ready to add");if(0<v&&(v=z.getAt(v-1),v.get("AMSSCRNSEQ")===t&&v.get("AMAACTN")===
|
|
@@ -1081,57 +1085,57 @@ k.getView().collapseAllGroups()},disabled:!0},{itemId:"expand",text:pui.getLangu
|
|
|
1081
1085
|
"arrow_refresh.png",cls:"x-btn-text-icon",handler:function(){k.getStore().reload()}}]}),selModel:new Ext.grid.RowSelectionModel({listeners:{selectionchange:function(p){for(var q=k.getTopToolbar(),t=q.getComponent("dltscr"),v=p.getSelections(),u=v.map(function(C){return C.data.AMSSCRNSEQ}),z=[],B=0;B<u.length;B++)-1===z.indexOf(u[B])&&z.push(u[B]);0<z.length?t.enable():t.disable();t=q.getComponent("addact");B=q.getComponent("moveu");var E=q.getComponent("moved"),F=q.getComponent("collapse");q=q.getComponent("expand");
|
|
1082
1086
|
p=p.grid.getStore();var G=p.getCount();if(0<G){var L=p.getAt(0).get("AMSSCRNSEQ"),D=p.getAt(G-1).get("AMSSCRNSEQ");F.enable();q.enable()}else F.disable(),q.disable();0<G&&1===z.length?(t.enable(),v[0].data.AMSSCRNSEQ===L?B.disable():B.enable(),v[0].data.AMSSCRNSEQ===D?E.disable():E.enable()):(t.disable(),B.disable(),E.disable());z=Ext.getCmp("btnDetectOnceChk");0==u.length?(z.disable(),z.setText(T.g.i.v.ub(!1))):(z.enable(),z.setText(T.g.i.v.ub("1"==v[0].data.AMSONCE)))},rowselect:function(p,q,t){t=
|
|
1083
1087
|
t.get("AMSSCRNSEQ");var v=p.grid.getStore().findExact("AMSSCRNSEQ",t),u=p.grid.getStore().getCount();for(q+=1;q<u;q++){var z=p.grid.getStore().getAt(q);if(t!==z.get("AMSSCRNSEQ")){u=q-1;break}}p.suspendEvents();p.selectRange(v,u,!0);p.resumeEvents()},rowdeselect:function(p,q,t){t=t.get("AMSSCRNSEQ");var v=p.grid.getStore().find("AMSSCRNSEQ",t),u=p.grid.getStore().getCount();for(q+=1;q<u;q++){var z=p.grid.getStore().getAt(q);if(t!==z.get("AMSSCRNSEQ")){u=q-1;break}}p.suspendEvents();p.deselectRange(v,
|
|
1084
|
-
u);p.resumeEvents()}}})}),
|
|
1088
|
+
u);p.resumeEvents()}}})}),m=new Ext.Panel({layout:"fit",border:!1,items:[k]}),r=new Ext.Panel({layout:"card",region:"center",border:!1,activeItem:0,items:[{border:!1,html:'<div style="margin: 10px;">'+pui.getLanguageText("runtimeMsg","choose scrn macro")+"</div>"},n,m]});return new Ext.Panel({title:pui.getLanguageText("runtimeText","genie macros"),layout:"border",items:[h,r]})};
|
|
1085
1089
|
T.g.i.v.Yc=function(c){var a=new Ext.form.FormPanel({autoHeight:!0,labelWidth:80,bodyStyle:"padding: 10px 0px 10px 10px",width:320,defaults:{msgTarget:"side"},monitorValid:!0,items:[new Ext.form.TextField({fieldLabel:pui.getLanguageText("runtimeText","screen name"),name:"ASNAME",width:200,allowBlank:!1,blankText:pui.getLanguageText("runtimeMsg","required")})],buttonAlign:"right",buttons:[{text:pui.getLanguageText("runtimeText","add"),formBind:!0,handler:function(){1==a.getForm().isValid()&&a.getForm().submit()}},
|
|
1086
1090
|
{text:pui.getLanguageText("runtimeText","cancel"),handler:function(){d.close()}}],keys:[{key:Ext.EventObject.ENTER,fn:function(e,f){1==a.getForm().isValid()&&(a.getForm().submit(),f.stopEvent())}}],listeners:{beforeaction:function(e){var f=pui.getLanguageText("runtimeText","screen");T.g.j.msg=pui.getLanguageText("runtimeMsg","adding x",[f]);T.g.j.show();var g=e.findField("ASNAME");Ext.Ajax.request({url:T.h.s("PUI0003019.pgm"),method:"POST",params:{mode:"add",ASNAME:g.getValue()},callback:function(h,
|
|
1087
|
-
l,
|
|
1091
|
+
l,n){T.data.u(n,function(k,m){T.g.j.hide();0==k?(""==m.heading&&(m.heading=pui.getLanguageText("runtimeMsg","unable to add x",[f])),T.h.o(m,function(){g.focus()})):(d.close(),T.h.J(pui.getLanguageText("runtimeMsg","x added",[f]),function(){c.getLoader().load(c.getRootNode(),function(){c.getRootNode().expand(!1,!0,function(){var r=c.getNodeById(m.ASID);null!=r&&r.select()})})}))})}});return!1}}}),d=new Ext.Window({title:pui.getLanguageText("runtimeText","add x",[pui.getLanguageText("runtimeText","screen")]),
|
|
1088
1092
|
layout:"fit",modal:!0,resizable:!1,maximizable:!1,autoHeight:!0,items:[a],listeners:{show:function(){var e=a.getForm().items.itemAt(0);e.focus.defer(250,e)}}});d.show()};
|
|
1089
1093
|
T.g.i.v.ic=function(c){for(var a=pui.getLanguageText("runtimeMsg","confirm del sel x",[pui.getLanguageText("runtimeText","screens")])+"<br /><br />",d=0;d<c.length;d++)0!=d&&(a+="<br />"),a+='<span style="font-weight:bold;">'+c[d].text+"</span>";Ext.MessageBox.confirm(pui.getLanguageText("runtimeMsg","confirm delete"),a,function(e){"yes"==e&&T.g.i.v.Id(c)})};
|
|
1090
|
-
T.g.i.v.Id=function(c){var a=1<c.length?pui.getLanguageText("runtimeText","screens"):pui.getLanguageText("runtimeText","screen");T.g.j.msg=pui.getLanguageText("runtimeMsg","deleting x",[a]);T.g.j.show();for(var d={mode:"delete"},e=0;e<c.length;e++)d["ASID"+(e+1)]=c[e].id;Ext.Ajax.request({url:T.h.s("PUI0003019.pgm"),method:"POST",params:d,callback:function(f,g,h){T.data.u(h,function(l,
|
|
1094
|
+
T.g.i.v.Id=function(c){var a=1<c.length?pui.getLanguageText("runtimeText","screens"):pui.getLanguageText("runtimeText","screen");T.g.j.msg=pui.getLanguageText("runtimeMsg","deleting x",[a]);T.g.j.show();for(var d={mode:"delete"},e=0;e<c.length;e++)d["ASID"+(e+1)]=c[e].id;Ext.Ajax.request({url:T.h.s("PUI0003019.pgm"),method:"POST",params:d,callback:function(f,g,h){T.data.u(h,function(l,n){T.g.j.hide();0==l?(""==n.heading&&(n.heading=pui.getLanguageText("runtimeMsg","unable to delete x",[a])),T.h.o(n)):
|
|
1091
1095
|
(a=1<c.length?pui.getLanguageText("runtimeText","screens"):pui.getLanguageText("runtimeText","screen"),T.h.J(pui.getLanguageText("runtimeMsg","x deleted",[a]),function(){var k=c[0].getOwnerTree();k.getSelectionModel().clearSelections();k.getLoader().load(k.getRootNode(),function(){k.getRootNode().expand()})}))})}})};
|
|
1092
1096
|
T.g.i.v.ne=function(c,a){Ext.Ajax.request({url:T.h.s("PUI0003019.pgm"),method:"POST",params:{mode:"edit",ASID:c.id,ASNAME:a},callback:function(d,e,f){T.data.u(f,function(g,h){0==g&&(""==h.heading&&(h.heading=pui.getLanguageText("runtimeMsg","unable to rename x",[pui.getLanguageText("runtimeText","screen")])),T.h.o(h))})}})};
|
|
1093
1097
|
T.g.i.v.Uc=function(c,a){var d=new Ext.form.FormPanel({autoHeight:!0,labelWidth:80,bodyStyle:"padding: 10px 0px 10px 10px",width:320,defaults:{msgTarget:"side"},monitorValid:!0,items:[new Ext.form.NumberField({fieldLabel:pui.getLanguageText("runtimeText","field row"),name:"AIROW",autoCreate:{tag:"input",type:"text",autocomplete:"off",maxlength:2},width:70,minValue:1,maxValue:27,allowBlank:!1,blankText:pui.getLanguageText("runtimeMsg","required"),allowDecimals:!1,allowNegative:!1}),new Ext.form.NumberField({fieldLabel:pui.getLanguageText("runtimeText",
|
|
1094
1098
|
"field column"),name:"AICOL",autoCreate:{tag:"input",type:"text",autocomplete:"off",maxlength:3},width:70,minValue:0,maxValue:131,allowBlank:!1,blankText:pui.getLanguageText("runtimeMsg","required"),allowDecimals:!1,allowNegative:!1}),new Ext.form.TextField({fieldLabel:pui.getLanguageText("runtimeText","field value"),name:"AIVALUE",width:200,allowBlank:!1,blankText:pui.getLanguageText("runtimeMsg","required")})],buttonAlign:"right",buttons:[{text:pui.getLanguageText("runtimeText","add"),formBind:!0,
|
|
1095
1099
|
handler:function(){1==d.getForm().isValid()&&d.getForm().submit()}},{text:pui.getLanguageText("runtimeText","cancel"),handler:function(){e.close()}}],keys:[{key:Ext.EventObject.ENTER,fn:function(f,g){1==d.getForm().isValid()&&(d.getForm().submit(),g.stopEvent())}}],listeners:{beforeaction:function(){var f=pui.getLanguageText("runtimeText","identifier");T.g.j.msg=pui.getLanguageText("runtimeMsg","adding x",[f]);T.g.j.show();Ext.Ajax.request({url:T.h.s("PUI0003020.pgm"),method:"POST",params:{mode:"add",
|
|
1096
|
-
ASID:c,AIROW:d.getForm().findField("AIROW").getValue(),AICOL:d.getForm().findField("AICOL").getValue(),AIVALUE:d.getForm().findField("AIVALUE").getValue()},callback:function(g,h,l){T.data.u(l,function(
|
|
1100
|
+
ASID:c,AIROW:d.getForm().findField("AIROW").getValue(),AICOL:d.getForm().findField("AICOL").getValue(),AIVALUE:d.getForm().findField("AIVALUE").getValue()},callback:function(g,h,l){T.data.u(l,function(n,k){T.g.j.hide();0==n?(""==k.heading&&(k.heading=pui.getLanguageText("runtimeMsg","unable to add x",[f])),T.h.o(k,function(){d.getForm().findField("AIROW").focus()})):(e.close(),T.h.J(pui.getLanguageText("runtimeMsg","x added",[f]),function(){a.getStore().reload()}))})}});return!1}}}),e=new Ext.Window({title:pui.getLanguageText("runtimeText",
|
|
1097
1101
|
"add x",[pui.getLanguageText("runtimeText","screen id")]),layout:"fit",modal:!0,resizable:!1,maximizable:!1,autoHeight:!0,items:[d],listeners:{show:function(){var f=d.getForm().items.itemAt(0);f.focus.defer(250,f)}}});e.show()};
|
|
1098
|
-
T.g.i.v.Cd=function(c){var a=c.getSelectionModel().getSelections(),d=1<a.length?pui.getLanguageText("runtimeText","identifiers"):pui.getLanguageText("runtimeText","identifier");T.g.j.msg=pui.getLanguageText("runtimeMsg","deleting x",[d]);T.g.j.show();for(var e={mode:"delete",AISCRNID:c.getStore().lastOptions.params.ASID},f=0;f<a.length;f++)e["AIIDENID"+(f+1)]=a[f].get("AIIDENID");Ext.Ajax.request({url:T.h.s("PUI0003020.pgm"),method:"POST",params:e,callback:function(g,h,l){T.data.u(l,function(
|
|
1099
|
-
0==
|
|
1102
|
+
T.g.i.v.Cd=function(c){var a=c.getSelectionModel().getSelections(),d=1<a.length?pui.getLanguageText("runtimeText","identifiers"):pui.getLanguageText("runtimeText","identifier");T.g.j.msg=pui.getLanguageText("runtimeMsg","deleting x",[d]);T.g.j.show();for(var e={mode:"delete",AISCRNID:c.getStore().lastOptions.params.ASID},f=0;f<a.length;f++)e["AIIDENID"+(f+1)]=a[f].get("AIIDENID");Ext.Ajax.request({url:T.h.s("PUI0003020.pgm"),method:"POST",params:e,callback:function(g,h,l){T.data.u(l,function(n,k){T.g.j.hide();
|
|
1103
|
+
0==n?(""==k.heading&&(k.heading=pui.getLanguageText("runtimeMsg","unable to delete x",[d])),T.h.o(k,function(){c.getStore().reload()})):T.h.J(pui.getLanguageText("runtimeMsg","x deleted",[d]),function(){c.getStore().reload()})})}})};
|
|
1100
1104
|
T.g.i.v.Pd=function(c,a){Ext.Ajax.request({url:T.h.s("PUI0003020.pgm"),method:"POST",params:{mode:"edit",AISCRNID:a.getStore().lastOptions.params.ASID,AIIDENID:c.get("AIIDENID"),AIROW:c.get("AIROW"),AICOL:c.get("AICOL"),AIVALUE:c.get("AIVALUE")},callback:function(d,e,f){T.data.u(f,function(g,h){0==g?(""==h.heading&&(h.heading=pui.getLanguageText("runtimeMsg","unable to update x",[pui.getLanguageText("runtimeText","identifier")])),T.h.o(h,function(){a.getStore().reload()})):a.getStore().commitChanges()})}})};
|
|
1101
1105
|
T.g.i.v.Vc=function(c){var a=new Ext.form.FormPanel({autoHeight:!0,labelWidth:80,bodyStyle:"padding: 10px 0px 10px 10px",width:320,defaults:{msgTarget:"side"},monitorValid:!0,items:[new Ext.form.TextField({fieldLabel:pui.getLanguageText("runtimeText","macro name"),name:"AMNAME",width:200,allowBlank:!1,blankText:pui.getLanguageText("runtimeMsg","required")})],buttonAlign:"right",buttons:[{text:pui.getLanguageText("runtimeText","add"),formBind:!0,handler:function(){1==a.getForm().isValid()&&a.getForm().submit()}},
|
|
1102
1106
|
{text:pui.getLanguageText("runtimeText","cancel"),handler:function(){d.close()}}],keys:[{key:Ext.EventObject.ENTER,fn:function(e,f){1==a.getForm().isValid()&&(a.getForm().submit(),f.stopEvent())}}],listeners:{beforeaction:function(e){var f=pui.getLanguageText("runtimeText","macro");T.g.j.msg=pui.getLanguageText("runtimeMsg","adding x",[f]);T.g.j.show();var g=e.findField("AMNAME");Ext.Ajax.request({url:T.h.s("PUI0003022.pgm"),method:"POST",params:{mode:"add",AMNAME:g.getValue()},callback:function(h,
|
|
1103
|
-
l,
|
|
1107
|
+
l,n){T.data.u(n,function(k,m){T.g.j.hide();0==k?(""==m.heading&&(m.heading=pui.getLanguageText("runtimeMsg","unable to add x",[f])),T.h.o(m,function(){g.focus()})):(d.close(),T.h.J(pui.getLanguageText("runtimeMsg","x added",[f]),function(){c.getLoader().load(c.getRootNode(),function(){c.getRootNode().expand(!1,!0,function(){var r=c.getNodeById(m.AMID);null!=r&&r.select()})})}),T.g.i.Ka=!0)})}});return!1}}}),d=new Ext.Window({title:pui.getLanguageText("runtimeText","add x",[pui.getLanguageText("runtimeText",
|
|
1104
1108
|
"macro")]),layout:"fit",modal:!0,resizable:!1,maximizable:!1,autoHeight:!0,items:[a],listeners:{show:function(){var e=a.getForm().items.itemAt(0);e.focus.defer(250,e)}}});d.show()};
|
|
1105
1109
|
T.g.i.v.me=function(c,a){Ext.Ajax.request({url:T.h.s("PUI0003022.pgm"),method:"POST",params:{mode:"edit",AMID:c.id,AMNAME:a},callback:function(d,e,f){T.data.u(f,function(g,h){0==g&&(""==h.heading&&(h.heading=pui.getLanguageText("runtimeMsg","unable to rename x",[pui.getLanguageText("runtimeText","macro")])),T.h.o(h));T.g.i.Ka=!0})}})};
|
|
1106
1110
|
T.g.i.v.hc=function(c){for(var a=pui.getLanguageText("runtimeMsg","confirm del sel x",[pui.getLanguageText("runtimeText","macros")])+"<br /><br />",d=0;d<c.length;d++)0!=d&&(a+="<br />"),a+='<span style="font-weight:bold;">'+c[d].text+"</span>";Ext.MessageBox.confirm(pui.getLanguageText("runtimeMsg","confirm delete"),a,function(e){"yes"==e&&T.g.i.v.Gd(c)})};
|
|
1107
|
-
T.g.i.v.Gd=function(c){var a=1<c.length?pui.getLanguageText("runtimeText","macros"):pui.getLanguageText("runtimeText","macro");T.g.j.msg=pui.getLanguageText("runtimeMsg","deleting x",[a]);T.g.j.show();for(var d={mode:"delete"},e=0;e<c.length;e++)d["AMID"+(e+1)]=c[e].id;Ext.Ajax.request({url:T.h.s("PUI0003022.pgm"),method:"POST",params:d,callback:function(f,g,h){T.data.u(h,function(l,
|
|
1111
|
+
T.g.i.v.Gd=function(c){var a=1<c.length?pui.getLanguageText("runtimeText","macros"):pui.getLanguageText("runtimeText","macro");T.g.j.msg=pui.getLanguageText("runtimeMsg","deleting x",[a]);T.g.j.show();for(var d={mode:"delete"},e=0;e<c.length;e++)d["AMID"+(e+1)]=c[e].id;Ext.Ajax.request({url:T.h.s("PUI0003022.pgm"),method:"POST",params:d,callback:function(f,g,h){T.data.u(h,function(l,n){T.g.j.hide();0==l?(""==n.heading&&(n.heading=pui.getLanguageText("runtimeMsg","unable to delete x",[a])),T.h.o(n)):
|
|
1108
1112
|
(T.h.J(pui.getLanguageText("runtimeMsg","x deleted",[a]),function(){var k=c[0].getOwnerTree();k.getSelectionModel().clearSelections();k.getLoader().load(k.getRootNode(),function(){k.getRootNode().expand()})}),T.g.i.Ka=!0)})}})};
|
|
1109
1113
|
T.g.i.v.Wc=function(c){var a=new Ext.form.FormPanel({autoHeight:!0,labelWidth:80,bodyStyle:"padding: 10px 0px 10px 10px",width:350,defaults:{msgTarget:"side"},monitorValid:!0,items:[new Ext.form.ComboBox({fieldLabel:pui.getLanguageText("runtimeText","screen"),hiddenName:"AMSSCRNID",width:230,allowBlank:!1,blankText:pui.getLanguageText("runtimeMsg","required"),mode:"remote",editable:!0,forceSelection:!0,triggerAction:"all",emptyText:pui.getLanguageText("runtimeText","select")+"...",displayField:"ASNAME",
|
|
1110
1114
|
valueField:"ASID",minChars:0,store:new Ext.data.Store({autoDestroy:!0,proxy:new Ext.data.HttpProxy({url:T.h.s("PUI0003017.pgm"),method:"post"}),reader:new Ext.data.JsonReader({root:"data",fields:["ASID","ASNAME"]}),listeners:{loadexception:function(e,f,g){T.data.u(g,function(h,l){""==l.heading&&(l.heading=pui.getLanguageText("runtimeMsg","unable to load scrn lst"));T.h.o(l)})}}})}),new Ext.form.Checkbox({fieldLabel:pui.getLanguageText("runtimeText","detect once"),name:"AMSONCE",inputValue:"1",value:"1"})],
|
|
1111
1115
|
buttonAlign:"right",buttons:[{text:pui.getLanguageText("runtimeText","add"),formBind:!0,handler:function(){1==a.getForm().isValid()&&a.getForm().submit()}},{text:pui.getLanguageText("runtimeText","cancel"),handler:function(){d.close()}}],keys:[{key:Ext.EventObject.ENTER,fn:function(e,f){1==a.getForm().isValid()&&(a.getForm().submit(),f.stopEvent())}}],listeners:{beforeaction:function(e){var f=pui.getLanguageText("runtimeText","screen");T.g.j.msg=pui.getLanguageText("runtimeMsg","adding x",[f]);T.g.j.show();
|
|
1112
|
-
var g=e.findField("AMSSCRNID");Ext.Ajax.request({url:T.h.s("PUI0003024.pgm"),method:"POST",params:{mode:"addScreen",AMSSCRNID:g.getValue(),AMSONCE:1==e.findField("AMSONCE").getValue()?"1":"0",AMSID:c.getStore().lastOptions.params.AMID},callback:function(h,l,
|
|
1116
|
+
var g=e.findField("AMSSCRNID");Ext.Ajax.request({url:T.h.s("PUI0003024.pgm"),method:"POST",params:{mode:"addScreen",AMSSCRNID:g.getValue(),AMSONCE:1==e.findField("AMSONCE").getValue()?"1":"0",AMSID:c.getStore().lastOptions.params.AMID},callback:function(h,l,n){T.data.u(n,function(k,m){T.g.j.hide();0==k?(""==m.heading&&(m.heading=pui.getLanguageText("runtimeMsg","unable to add x",[f])),T.h.o(m,function(){g.focus()})):(d.close(),k=c.getStore().getCount(),0===k?c.getStore().$=1:(k=c.getStore().getAt(k-
|
|
1113
1117
|
1),c.getStore().$=Number(k.get("AMSSCRNSEQ"))+1),c.getStore().reload())})}});return!1}}}),d=new Ext.Window({title:pui.getLanguageText("runtimeText","add x",[pui.getLanguageText("runtimeText","screen")]),layout:"fit",modal:!0,resizable:!1,maximizable:!1,autoHeight:!0,items:[a],listeners:{show:function(){var e=a.getForm().items.itemAt(0);e.focus.defer(250,e)}}});d.show()};
|
|
1114
1118
|
T.g.i.v.Xb=function(c,a){var d=a?!0:!1,e=pui.getLanguageText("runtimeText","action"),f=new Ext.form.FormPanel({autoHeight:!0,labelWidth:80,bodyStyle:"padding: 10px 0px 10px 10px",width:350,defaults:{msgTarget:"side"},monitorValid:!0,items:[new Ext.form.ComboBox({id:"comboBoxAction",fieldLabel:e,hiddenName:"AMAACTN",width:230,mode:"local",editable:!1,forceSelection:!0,triggerAction:"all",displayField:"display",valueField:"value",value:d?a.get("AMAACTN"):T.wa,store:new Ext.data.ArrayStore({autoDestroy:!0,
|
|
1115
1119
|
fields:["value","display"],data:[[T.wa,pui.getLanguageText("runtimeText","write value in field")],[T.aa,pui.getLanguageText("runtimeText","set selection field")],[T.Sb,pui.getLanguageText("runtimeText","press a key")],[T.fb,pui.getLanguageText("runtimeText","close browser wintab")]]}),listeners:{select:function(){var h=f.getForm().findField("AMAACTN").getValue(),l={};h==T.fb?(l.AMAVAR=!0,l.AMAVARTYPE=!0):(l.AMAVAR=!1,l.AMAVARTYPE=!1);h!=T.wa&&h!=T.aa?(l.AMAROW=!0,l.AMACOL=!0):(l.AMAROW=!1,l.AMACOL=
|
|
1116
|
-
!1);for(var
|
|
1117
|
-
|
|
1120
|
+
!1);for(var n,k,m,r=0;r<f.getForm().items.getCount();r++){n=f.getForm().items.itemAt(r);var p=n.getName();"hidden"!=n.xtype&&null!=l[p]&&(1==l[p]?(k=!1,m="disable",n.setValue("")):(k=!0,m="enable"),n[m](),n.getEl().up("div.x-form-item").setDisplayed(k));null!=p&&"AMAVAR"==p&&(h==T.aa?n.Xa(pui.getLanguageText("runtimeText","selection field choice")+":"):n.Xa(pui.getLanguageText("runtimeText","action data")+":"));null!=p&&"AMAVARTYPE"==p&&(h==T.aa?n.Xa(pui.getLanguageText("runtimeText","value")+":"):
|
|
1121
|
+
n.Xa(pui.getLanguageText("runtimeText","data type")+":"))}l=[[T.Rb,pui.getLanguageText("runtimeText","a literal value")],[T.Oa,pui.getLanguageText("runtimeText","a variable value")]];h==T.wa&&(l.push([T.xa,pui.getLanguageText("runtimeText","cur user profile")]),l.push([T.gb,pui.getLanguageText("runtimeText","result js expr")]));h==T.aa&&(l=[[T.Tb,pui.getLanguageText("runtimeText","msg action selected")],[T.Qb,pui.getLanguageText("runtimeText","msg action deselected")]]);f.getForm().findField("AMAVARTYPE").store.loadData(l);
|
|
1118
1122
|
l=d?a.get("AMAVARTYPE"):"0";d||h!=T.aa||(l=T.Tb);f.getForm().findField("AMAVARTYPE").setValue(l);f.getForm().clearInvalid();g.syncSize()}}}),new Ext.form.NumberField({fieldLabel:pui.getLanguageText("runtimeText","field row"),name:"AMAROW",width:70,autoCreate:{tag:"input",type:"text",autocomplete:"off",maxlength:2},allowBlank:!1,blankText:pui.getLanguageText("runtimeMsg","required"),minValue:1,maxValue:27,value:d?a.get("AMAROW"):void 0,allowNegative:!1,allowDecimals:!1}),new Ext.form.NumberField({fieldLabel:pui.getLanguageText("runtimeText",
|
|
1119
1123
|
"field column"),name:"AMACOL",width:70,autoCreate:{tag:"input",type:"text",autocomplete:"off",maxlength:3},allowBlank:!1,blankText:pui.getLanguageText("runtimeMsg","required"),minValue:0,maxValue:131,value:d?a.get("AMACOL"):void 0,allowNegative:!1,allowDecimals:!1}),new Ext.form.TextField({fieldLabel:pui.getLanguageText("runtimeText",d&&a.get("AMAACTN")===T.aa?"selection field choice":"action data"),name:"AMAVAR",width:230,allowBlank:d&&a.get("AMAVARTYPE")===T.xa?!0:!1,blankText:pui.getLanguageText("runtimeMsg",
|
|
1120
1124
|
"required"),value:d?a.get("AMAVAR"):void 0,autoCreate:{tag:"input",type:"text",autocomplete:"off",maxlength:128}}),new Ext.form.ComboBox({id:"comboBoxDataType",fieldLabel:pui.getLanguageText("runtimeText",d&&a.get("AMAACTN")===T.aa?"value":"data type"),hiddenName:"AMAVARTYPE",width:230,mode:"local",editable:!1,forceSelection:!0,triggerAction:"all",displayField:"display",valueField:"value",value:d?a.get("AMAVARTYPE"):"0",store:new Ext.data.ArrayStore({autoDestroy:!0,fields:["value","display"],data:[[T.Rb,
|
|
1121
1125
|
pui.getLanguageText("runtimeText","a literal value")],[T.Oa,pui.getLanguageText("runtimeText","a variable value")],[T.xa,pui.getLanguageText("runtimeText","cur user profile")],[T.gb,pui.getLanguageText("runtimeText","result js expr")]]}),listeners:{select:function(h,l){h=l.get("value");l=f.getForm().findField("AMAVAR");h==T.xa?(l.setValue(""),l.disable(),l.getEl().up("div.x-form-item").setDisplayed(!1)):(l.enable(),l.getEl().up("div.x-form-item").setDisplayed(!0));g.syncSize()}}}),new Ext.form.Hidden({name:"AMAID",
|
|
1122
1126
|
value:c.getStore().lastOptions.params.AMID}),new Ext.form.Hidden({name:"AMASCRNSEQ",value:c.getSelectionModel().getSelections()[0].get("AMSSCRNSEQ")}),new Ext.form.Hidden({name:"AMAACTNSEQ",value:d?a.get("AMAACTNSEQ"):null}),new Ext.form.Hidden({name:"old_AMAACTN",value:d?a.get("AMAACTN"):null}),new Ext.form.Hidden({name:"old_AMAROW",value:d?a.get("AMAROW"):null}),new Ext.form.Hidden({name:"old_AMACOL",value:d?a.get("AMACOL"):null}),new Ext.form.Hidden({name:"old_AMAVARTYPE",value:d?a.get("AMAVARTYPE"):
|
|
1123
1127
|
null}),new Ext.form.Hidden({name:"old_AMAVAR",value:d?a.get("AMAVAR"):null})],buttonAlign:"right",buttons:[{text:pui.getLanguageText("runtimeText",d?"edit":"add"),formBind:!0,handler:function(){1==f.getForm().isValid()&&f.getForm().submit()}},{text:pui.getLanguageText("runtimeText","cancel"),handler:function(){g.close()}}],keys:[{key:Ext.EventObject.ENTER,fn:function(h,l){1==f.getForm().isValid()&&(f.getForm().submit(),l.stopEvent())}}],listeners:{beforeaction:function(h){T.g.j.msg=pui.getLanguageText("runtimeMsg",
|
|
1124
|
-
d?"reassigning x":"adding x",[e]);T.g.j.show();for(var l={mode:d?"updateAction":"addAction"},
|
|
1125
|
-
c.getStore().reload())})}});return!1},afterlayout:function(h){if(h.layoutPending&&d){a.get("AMAACTN")!==T.wa&&(h=Ext.getCmp("comboBoxAction"),h.fireEvent("select"));var l=a.get("AMAVARTYPE");if(l===T.xa){h=Ext.getCmp("comboBoxDataType");l=h.store.findExact("value",l);var
|
|
1128
|
+
d?"reassigning x":"adding x",[e]);T.g.j.show();for(var l={mode:d?"updateAction":"addAction"},n=0;n<h.items.getCount();n++)l[h.items.itemAt(n).getName()]=h.items.itemAt(n).getValue();Ext.Ajax.request({url:T.h.s("PUI0003024.pgm"),method:"POST",params:l,callback:function(k,m,r){T.data.u(r,function(p,q){T.g.j.hide();0==p?(""==q.heading&&(q.heading=pui.getLanguageText("runtimeMsg",d?"unable to update x":"unable to add x",[e])),T.h.o(q,function(){h.items.itemAt(0).focus()})):(g.close(),c.getStore().$=c.getSelectionModel().getSelections()[0].get("AMSSCRNSEQ"),
|
|
1129
|
+
c.getStore().reload())})}});return!1},afterlayout:function(h){if(h.layoutPending&&d){a.get("AMAACTN")!==T.wa&&(h=Ext.getCmp("comboBoxAction"),h.fireEvent("select"));var l=a.get("AMAVARTYPE");if(l===T.xa){h=Ext.getCmp("comboBoxDataType");l=h.store.findExact("value",l);var n=h.store.getAt(l);h.fireEvent("select",h,n,l)}}}}}),g=new Ext.Window({title:pui.getLanguageText("runtimeText",d?"edit x":"add x",[pui.getLanguageText("runtimeText","action")]),layout:"fit",modal:!0,resizable:!1,maximizable:!1,autoHeight:!0,
|
|
1126
1130
|
items:[f],listeners:{show:function(){var h=f.getForm().items.itemAt(0);h.focus.defer(250,h)}}});g.show()};
|
|
1127
1131
|
T.g.i.v.Fd=function(c){var a=c.getSelectionModel().getSelections(),d=1<a.length?pui.getLanguageText("runtimeText","screens"):pui.getLanguageText("runtimeText","screen");T.g.j.msg=pui.getLanguageText("runtimeMsg","deleting x",[d]);T.g.j.show();for(var e={mode:"deleteScreens",AMSID:c.getStore().lastOptions.params.AMID},f=0,g=0;g<a.length;g++)if(0==g||a[g-1].get("AMSSCRNSEQ")!==a[g].get("AMSSCRNSEQ"))f+=1,e["AMSSCRNSEQ"+f]=a[g].get("AMSSCRNSEQ"),e["AMSSCRNID"+f]=a[g].get("AMSSCRNID"),e["AMSONCE"+f]=
|
|
1128
|
-
a[g].get("AMSONCE");Ext.Ajax.request({url:T.h.s("PUI0003024.pgm"),method:"POST",params:e,callback:function(h,l,
|
|
1132
|
+
a[g].get("AMSONCE");Ext.Ajax.request({url:T.h.s("PUI0003024.pgm"),method:"POST",params:e,callback:function(h,l,n){T.data.u(n,function(k,m){T.g.j.hide();0==k?(""==m.heading&&(m.heading=pui.getLanguageText("runtimeMsg","unable to delete x",[d])),T.h.o(m,function(){c.getStore().reload()})):T.h.J(pui.getLanguageText("runtimeMsg","x deleted",[d]),function(){c.getStore().reload()})})}})};
|
|
1129
1133
|
T.g.i.v.Ed=function(c,a){Ext.MessageBox.confirm(pui.getLanguageText("runtimeMsg","confirm delete"),pui.getLanguageText("runtimeMsg","confirm del sel x",[pui.getLanguageText("runtimeText","action")]),function(d){if("yes"==d){var e=pui.getLanguageText("runtimeText","action");T.g.j.msg=pui.getLanguageText("runtimeMsg","deleting x",[e]);T.g.j.show();var f=c.getStore(),g=a.get("AMSSCRNSEQ");Ext.Ajax.request({url:T.h.s("PUI0003024.pgm"),method:"POST",params:{mode:"deleteAction",AMAID:f.lastOptions.params.AMID,
|
|
1130
|
-
AMASCRNSEQ:g,AMAACTNSEQ:a.get("AMAACTNSEQ"),AMAACTN:a.get("AMAACTN"),AMAROW:a.get("AMAROW"),AMACOL:a.get("AMACOL"),AMAVARTYPE:a.get("AMAVARTYPE"),AMAVAR:a.get("AMAVAR")},callback:function(h,l,
|
|
1131
|
-
T.g.i.v.vc=function(c,a){var d=Ext.getCmp("Atrium-macroGroupGrid");Ext.Ajax.request({url:T.h.s("PUI0003024.pgm"),method:"POST",params:{mode:"moveScreen",direction:c,AMSID:d.getStore().lastOptions.params.AMID,AMSSCRNSEQ:a.get("AMSSCRNSEQ"),AMSSCRNID:a.get("AMSSCRNID"),AMSONCE:a.get("AMSONCE")},callback:function(e,f,g){T.data.u(g,function(h,l){0==h?(""==l.heading&&(l.heading=pui.getLanguageText("runtimeMsg","cannot move screen")),T.h.o(l,function(){var
|
|
1132
|
-
c?
|
|
1133
|
-
T.g.i.v.Ce=function(c){var a=c.getSelectionModel().getSelections();if(0<a.length){var d=a[0].data.AMSSCRNSEQ,e=c.getStore();Ext.Ajax.request({url:T.h.s("PUI0003024.pgm"),method:"POST",params:{mode:"updateMacroScreen",AMSID:e.lastOptions.params.AMID,AMSSCRNSEQ:d,AMSONCE:"0"==a[0].data.AMSONCE?"1":"0"},callback:function(f,g,h){T.data.u(h,function(l,
|
|
1134
|
-
[l])),T.h.o(
|
|
1134
|
+
AMASCRNSEQ:g,AMAACTNSEQ:a.get("AMAACTNSEQ"),AMAACTN:a.get("AMAACTN"),AMAROW:a.get("AMAROW"),AMACOL:a.get("AMACOL"),AMAVARTYPE:a.get("AMAVARTYPE"),AMAVAR:a.get("AMAVAR")},callback:function(h,l,n){T.data.u(n,function(k,m){T.g.j.hide();0==k?(""==m.heading&&(m.heading=pui.getLanguageText("runtimeMsg","unable to delete x",[e])),T.h.o(m,function(){f.$=g;f.reload()})):T.h.J(pui.getLanguageText("runtimeMsg","x deleted",[e]),function(){f.$=g;f.reload()})})}})}})};
|
|
1135
|
+
T.g.i.v.vc=function(c,a){var d=Ext.getCmp("Atrium-macroGroupGrid");Ext.Ajax.request({url:T.h.s("PUI0003024.pgm"),method:"POST",params:{mode:"moveScreen",direction:c,AMSID:d.getStore().lastOptions.params.AMID,AMSSCRNSEQ:a.get("AMSSCRNSEQ"),AMSSCRNID:a.get("AMSSCRNID"),AMSONCE:a.get("AMSONCE")},callback:function(e,f,g){T.data.u(g,function(h,l){0==h?(""==l.heading&&(l.heading=pui.getLanguageText("runtimeMsg","cannot move screen")),T.h.o(l,function(){var n=Number(a.get("AMSSCRNSEQ"));d.getStore().$="UP"===
|
|
1136
|
+
c?n-1:n+1;d.getStore().reload()})):(h=Number(a.get("AMSSCRNSEQ")),d.getStore().$="UP"===c?h-1:h+1,d.getStore().reload())})}})};
|
|
1137
|
+
T.g.i.v.Ce=function(c){var a=c.getSelectionModel().getSelections();if(0<a.length){var d=a[0].data.AMSSCRNSEQ,e=c.getStore();Ext.Ajax.request({url:T.h.s("PUI0003024.pgm"),method:"POST",params:{mode:"updateMacroScreen",AMSID:e.lastOptions.params.AMID,AMSSCRNSEQ:d,AMSONCE:"0"==a[0].data.AMSONCE?"1":"0"},callback:function(f,g,h){T.data.u(h,function(l,n){T.g.j.hide();0==l?(""==n.heading&&(l=pui.getLanguageText("runtimeText","detect once"),n.heading=pui.getLanguageText("runtimeMsg","unable to update x",
|
|
1138
|
+
[l])),T.h.o(n,function(){e.reload()})):(e.$=d,e.reload())})}})}};T.g.i.v.ub=function(c){return c?pui.getLanguageText("runtimeText","detect always"):pui.getLanguageText("runtimeText","detect once")};T.h.s=function(c){return T.serverURL?T.serverURL+"/profoundui/"+c:"/profoundui/"+c};
|
|
1135
1139
|
T.h.o=function(c,a){var d="";if("string"==typeof c)d=c;else if(""!=c.heading&&(d=c.heading+"<br /><br />"),d+=c.text,""!=c.text2){var e=c.text2.indexOf("Recovery . . . :");-1!=e&&0!=e&&(c.text2=c.text2.substr(0,e-1)+"<br /><br />"+c.text2.substr(e));d+="<br /><br />"+c.text2}T.g.j.hide();Ext.MessageBox.details=!1;Ext.MessageBox.show({title:"Error",msg:d,icon:Ext.MessageBox.ERROR,buttons:Ext.MessageBox.OK,fn:"function"==typeof a?a:Ext.emptyFn})};
|
|
1136
1140
|
T.h.J=function(c,a){T.g.j.hide();Ext.MessageBox.show({title:"Profound UI Atrium",msg:c,icon:Ext.MessageBox.INFO,buttons:Ext.MessageBox.OK,fn:"function"==typeof a?a:Ext.emptyFn})};T.h.getState=function(){var c=pui.getCookie("Atrium-"+location.origin);if(null!=c)try{c=Ext.util.JSON.decode(c)}catch(a){c=null}if(null==c||"number"!=typeof c.sessions)c={uf:0};return c};T.h.saveState=function(c){pui.setCookie("Atrium-"+location.origin,Ext.util.JSON.encode(c),null,"/",null,null,"Strict")};
|
|
1137
1141
|
T.h.Zc=function(){var c=T.h.getState();c.sessions+=1;T.h.saveState(c)};T.h.Ac=function(){var c=T.h.getState();--c.sessions;0>c.sessions&&(c.sessions=0);T.h.saveState(c)};T.h.Ab=function(c){return c.match(/^[a-zA-Z$@#][a-zA-Z0-9._$@#]{0,9}$/)};
|
|
@@ -1140,33 +1144,33 @@ T.h.lf=function(){function c(e){e=document.getElementById(e);if(e instanceof HTM
|
|
|
1140
1144
|
10))}catch(e){d.textContent=e.message}};T.h.mb=function(c,a,d,e,f,g,h){"undefined"===typeof a&&(a=0);"undefined"===typeof d&&(d=30);"undefined"===typeof e&&(e=null);"undefined"===typeof f&&(f=6);"undefined"===typeof g&&(g=T.h.lb);"undefined"===typeof h&&(h=64);null===e&&(e=Date.now());a=Math.floor((e-a)/d);d=[];for(e=0;8>e;e++,a=Math.floor(a/256))d.push(a&255);d.reverse();return T.h.bc(c,d,f,g,h)};
|
|
1141
1145
|
T.h.bc=function(c,a,d,e,f){"undefined"===typeof d&&(d=6);"undefined"===typeof e&&(e=T.h.lb);"undefined"===typeof f&&(f=64);if(!(1<=d&&9>=d))throw new RangeError("Invalid number of digits");e=T.h.jd(c,a,e,f);f=e[e.length-1]%16;for(c=a=0;4>c;c++)a|=e[f+c]<<8*(3-c);e=1;for(c=0;c<d;c++)e*=10;for(c=((a&2147483647)%e).toString();c.length<d;)c="0"+c;return c};
|
|
1142
1146
|
T.h.jd=function(c,a,d,e){if(1>e)throw new RangeError("Invalid block size");c.length>e&&(c=d(c));for(c=c.slice();c.length<e;)c.push(0);var f=c.map(function(g){return g^54});for(e=0;e<a.length;e++)f.push(a[e]);a=d(f);c=c.map(function(g){return g^92});for(e=0;e<a.length;e++)c.push(a[e]);return d(c)};
|
|
1143
|
-
T.h.lb=function(c){var a,d=[];var e=0;for(a=8*c.length;8>e;e++,a>>>=8)d.push(a&255);d.reverse();c=c.slice();for(c.push(128);0!=(c.length+8)%64;)c.push(0);for(e=0;e<d.length;e++)c.push(d[e]);d=[1732584193,4023233417,2562383102,271733878,3285377520];for(e=0;e<c.length;e+=64){var f=[];for(a=0;64>a;a++)0==a%4&&f.push(0),f[Math.floor(a/4)]|=c[e+a]<<8*(3-a%4);for(a=f.length;80>a;a++){var g=f[a-3]^f[a-8]^f[a-14]^f[a-16];f.push(g<<1|g>>>31)}var h=d[0],l=d[1],
|
|
1144
|
-
20)){case 0:p=l&
|
|
1147
|
+
T.h.lb=function(c){var a,d=[];var e=0;for(a=8*c.length;8>e;e++,a>>>=8)d.push(a&255);d.reverse();c=c.slice();for(c.push(128);0!=(c.length+8)%64;)c.push(0);for(e=0;e<d.length;e++)c.push(d[e]);d=[1732584193,4023233417,2562383102,271733878,3285377520];for(e=0;e<c.length;e+=64){var f=[];for(a=0;64>a;a++)0==a%4&&f.push(0),f[Math.floor(a/4)]|=c[e+a]<<8*(3-a%4);for(a=f.length;80>a;a++){var g=f[a-3]^f[a-8]^f[a-14]^f[a-16];f.push(g<<1|g>>>31)}var h=d[0],l=d[1],n=d[2],k=d[3],m=d[4];f.forEach(function(r,p){switch(Math.floor(p/
|
|
1148
|
+
20)){case 0:p=l&n|~l&k;var q=1518500249;break;case 1:p=l^n^k;q=1859775393;break;case 2:p=l&n^l&k^n&k;q=2400959708;break;case 3:p=l^n^k;q=3395469782;break;default:throw Error("Assertion error");}r=(h<<5|h>>>27)+p+m+r+q>>>0;m=k;k=n;n=l<<30|l>>>2;l=h;h=r});d[0]=d[0]+h>>>0;d[1]=d[1]+l>>>0;d[2]=d[2]+n>>>0;d[3]=d[3]+k>>>0;d[4]=d[4]+m>>>0}c=[];for(a=0;a<d.length;a++)for(e=3;0<=e;e--)c.push(d[a]>>>8*e&255);return c};
|
|
1145
1149
|
T.h.mc=function(c){for(var a=[],d=0,e=0,f=0;f<c.length;f++)if(" "!=c[f]){var g="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".indexOf(c[f].toUpperCase());if(-1==g)throw new RangeError("Invalid Base32 string");d=d<<5|g;e+=5;8<=e&&(e-=8,a.push(d>>>e),d&=(1<<e)-1)}return a};T.h.tf=function(){try{return T.h.ze(),T.h.Ae(),!0}catch(c){return alert("Self-check failed: "+c.message),!1}};
|
|
1146
1150
|
T.h.ze=function(){for(var c=[[0,"284755224"],[1,"094287082"],[2,"137359152"],[3,"726969429"],[4,"640338314"],[5,"868254676"],[6,"918287922"],[7,"082162583"],[8,"673399871"],[9,"645520489"]],a=[49,50,51,52,53,54,55,56,57,48,49,50,51,52,53,54,55,56,57,48],d=0;d<c.length;d++){for(var e=[],f=0;8>f;f++,c[d][0]=Math.floor(c[d][0]/256))e.push(c[d][0]&255);e.reverse();if(T.h.bc(a,e,9)!=c[d][1])throw Error("Value mismatch");}};
|
|
1147
1151
|
T.h.Ae=function(){for(var c=[[59,"94287082"],[1111111109,"07081804"],[1111111111,"14050471"],[1234567890,"89005924"],[2E9,"69279037"],[2E10,"65353130"]],a=[49,50,51,52,53,54,55,56,57,48,49,50,51,52,53,54,55,56,57,48],d=0;d<c.length;d++)if(T.h.mb(a,0,30,c[d][0],8)!=c[d][1])throw Error("Value mismatch");};
|
|
1148
1152
|
T.h.Nb=function(c,a){if("object"!==typeof a)return c;a=Object.assign({},a);var d=c.split("?"),e=d[0];c={};if(1<d.length){d=d[1].split("&");for(var f=0;f<d.length;f++){var g=d[f].split("=");c[g[0]]=decodeURIComponent(g[1])}}for(var h in a)if(h.startsWith("var")&&a["value"+h.slice(3)]){d="value"+h.slice(3);for(f=1;c["var"+f]||c["value"+f];)f++;c["var"+f]=a[h];c["value"+f]=a[d];delete a[d]}else h.startsWith("value")||(c[h]=a[h]);a=e;e=!0;for(h in c)a+=e?"?":"&",a+=h+"="+encodeURIComponent(c[h]),e=!1;
|
|
1149
|
-
return a};T.h.ee=function(c){return(c=/(\d{4})-(\d{2})-(\d{2})-(\d{2})\.(\d{2})\.(\d{2})\.(\d{6})/.exec(c))?new Date(parseInt(c[1],10),parseInt(c[2],10)-1,parseInt(c[3],10),parseInt(c[4],10),parseInt(c[5],10),parseInt(c[6],10),Math.floor(parseInt(c[7],10)/1E3)):null};T.data.loadData=function(c,a){var d={},e={},f={};"object"==typeof c.l&&(e=c.l);"object"==typeof c.C&&(f=c.C);T.data.Db(e,function(g,h){1==g?(d.l=h,d.l.ACNTYPE==T.pa&&"1"==f.top&&(f.max_depth="2"),"1"===d.l.ACTIMEOUT&&(d.l.ACLIMIT=1),T.data.Cb(f,function(l,
|
|
1153
|
+
return a};T.h.ee=function(c){return(c=/(\d{4})-(\d{2})-(\d{2})-(\d{2})\.(\d{2})\.(\d{2})\.(\d{6})/.exec(c))?new Date(parseInt(c[1],10),parseInt(c[2],10)-1,parseInt(c[3],10),parseInt(c[4],10),parseInt(c[5],10),parseInt(c[6],10),Math.floor(parseInt(c[7],10)/1E3)):null};T.data.loadData=function(c,a){var d={},e={},f={};"object"==typeof c.l&&(e=c.l);"object"==typeof c.C&&(f=c.C);T.data.Db(e,function(g,h){1==g?(d.l=h,d.l.ACNTYPE==T.pa&&"1"==f.top&&(f.max_depth="2"),"1"===d.l.ACTIMEOUT&&(d.l.ACLIMIT=1),T.data.Cb(f,function(l,n){1==l?(d.items=n,a(!0,d)):a(!1,n)})):a(!1,h)})};
|
|
1150
1154
|
T.data.Db=function(c,a){Ext.Ajax.request({url:T.h.s("PUI0003002.pgm"),params:c,callback:function(d,e,f){T.data.u(f,function(g,h){0==g&&""==h.heading&&(h.heading=pui.getLanguageText("runtimeMsg","unable to load x",[pui.getLanguageText("runtimeText","settings")]));h.AUNAME&&(h.AUNAME=pui.G.decode(h.AUNAME));a(g,h)})}})};
|
|
1151
|
-
T.data.Cb=function(c,a){var d={},e;for(e in c)d[e]=c[e];"undefined"!=typeof Storage&&sessionStorage[T.K]&&(d.filter=sessionStorage[T.K]);T.l.ACNTYPE&&T.l.ACNTYPE==T.pa&&"1"==d.top&&(d.max_depth="2");Ext.Ajax.request({url:T.h.s("PUI0003007.pgm"),params:d,callback:function(f,g,h){T.data.u(h,function(l,
|
|
1152
|
-
pui.G.decode(
|
|
1155
|
+
T.data.Cb=function(c,a){var d={},e;for(e in c)d[e]=c[e];"undefined"!=typeof Storage&&sessionStorage[T.K]&&(d.filter=sessionStorage[T.K]);T.l.ACNTYPE&&T.l.ACNTYPE==T.pa&&"1"==d.top&&(d.max_depth="2");Ext.Ajax.request({url:T.h.s("PUI0003007.pgm"),params:d,callback:function(f,g,h){T.data.u(h,function(l,n){if(1==l){var k={};k.toolbar=n.toolbar;k.L=n.homepages;k.C=n.nav;n=k;var m;for(m=0;m<n.toolbar.length;m++)n.toolbar[m].ANTEXT=pui.G.decode(n.toolbar[m].ANTEXT);for(m=0;m<n.L.length;m++)n.L[m].ANTEXT=
|
|
1156
|
+
pui.G.decode(n.L[m].ANTEXT);for(m=0;m<n.C.length;m++)n.C[m].ANTEXT=pui.G.decode(n.C[m].ANTEXT)}else k=n,""==k.heading&&(k.heading=pui.getLanguageText("runtimeMsg","unable to load x",[pui.getLanguageText("runtimeText","navigation items")]));a(l,k)})}})};
|
|
1153
1157
|
T.data.u=function(c,a){var d=null,e=!1;if(200!=c.status)c={id:String(c.status),text:"HTTP "+c.status+" - "+c.statusText+".",text2:"",heading:""},a(!1,c);else{try{d=Ext.util.JSON.decode(c.responseText)}catch(f){c={id:"CPF9897",text:pui.getLanguageText("runtimeMsg","upload invalid response"),text2:f.name+": "+f.message+".",heading:""};a(!1,c);return}"boolean"!=typeof d.success?e=!0:0==d.success&&("object"!=typeof d.error?e=!0:"string"!=typeof d.error.id?e=!0:"string"!=typeof d.error.text?e=!0:"string"!=
|
|
1154
|
-
typeof d.error.text2?e=!0:"string"!=typeof d.error.heading&&(e=!0));1==e?(c={id:"CPF9897",text:pui.getLanguageText("runtimeMsg","upload invalid response"),text2:pui.getLanguageText("runtimeMsg","unrecognized format"),heading:""},a(!1,c)):1==d.success?"object"==typeof d.data?a(!0,d.data):a(!0):a(!1,d.error||d.errors)}};T.action.doAction=function(c,a,d){if(c.attributes)var e=c.attributes;else c.initialConfig&&(e=c.initialConfig);!0===T["skip launch check"]?T.action.Gb(c,a,d):Ext.Ajax.request({url:T.h.s("PUI0003036.pgm"),params:{id:e.id},callback:function(f,g,h){T.data.u(h,function(l,
|
|
1155
|
-
T.action.Gb=function(c,a,d){if(c.attributes)var e=c.attributes;else c.initialConfig&&(e=c.initialConfig);var f=e.action;var g=e.actionType;var h=e.id;"undefined"!=typeof e.navItem&&(h=e.navItem);var l=1==e.newWindow;a&&a.ctrlKey&&(l=!l);a=e.text;"undefined"!=typeof e.navText&&(a=e.navText);var
|
|
1158
|
+
typeof d.error.text2?e=!0:"string"!=typeof d.error.heading&&(e=!0));1==e?(c={id:"CPF9897",text:pui.getLanguageText("runtimeMsg","upload invalid response"),text2:pui.getLanguageText("runtimeMsg","unrecognized format"),heading:""},a(!1,c)):1==d.success?"object"==typeof d.data?a(!0,d.data):a(!0):a(!1,d.error||d.errors)}};T.action.doAction=function(c,a,d){if(c.attributes)var e=c.attributes;else c.initialConfig&&(e=c.initialConfig);!0===T["skip launch check"]?T.action.Gb(c,a,d):Ext.Ajax.request({url:T.h.s("PUI0003036.pgm"),params:{id:e.id},callback:function(f,g,h){T.data.u(h,function(l,n){l?n.ANLSTATE==T.Oc?Ext.Msg.alert("Atrium",n.ANLTEXT):n.ANLSTATE==T.Nc?Ext.MessageBox.confirm("Atrium",n.ANLTEXT,function(k){"yes"==k&&T.action.Gb(c,a,d)}):T.action.Gb(c,a,d):Ext.Msg.alert("Atrium: "+n.id,n.text)})}})};
|
|
1159
|
+
T.action.Gb=function(c,a,d){if(c.attributes)var e=c.attributes;else c.initialConfig&&(e=c.initialConfig);var f=e.action;var g=e.actionType;var h=e.id;"undefined"!=typeof e.navItem&&(h=e.navItem);var l=1==e.newWindow;a&&a.ctrlKey&&(l=!l);a=e.text;"undefined"!=typeof e.navText&&(a=e.navText);var n=e.once;var k=e.parm;"undefined"==typeof e.parm&&(k=null);var m="";null!=T.B.AULANG&&""!=N(T.B.AULANG)&&(m=T.B.AULANG);if(n){n=T.g.D.items.getCount();for(var r,p=0;p<n;p++)if(r=T.g.D.items.itemAt(p),r.initialConfig.Da&&
|
|
1156
1160
|
r.initialConfig.Da==h){T.g.D.activate(r);return}}if(g==T.eb)R(f);else if(g==T.Na){if(k=f.match(/^(script:|js:)(.*)/,"i"))try{if(f=eval(k[2]),"string"!=typeof f){null!==f&&!1!==f&&console.log(pui.getLanguageText("runtimeMsg","invalid script url"));return}}catch(t){console.log(pui.getLanguageText("runtimeMsg","unable eval script url"));console.log(t);return}c.attributes&&(f=T.h.Nb(f,c.attributes.Ib));T.action.R(f,l,a,h,0,d,e.icon)}else if(g==T.na)f=T.h.s("PUI0003028.pgm")+"?ANITEM="+h,T.pjsServer&&
|
|
1157
|
-
(f="/profoundui/PUI0003028.pgm?auth="+encodeURIComponent(sessionStorage["atrium-token"])+"&ANITEM="+h),c.attributes&&(f=T.h.Nb(f,c.attributes.Ib)),"undefined"!=typeof Storage&&(sessionStorage["atrium-params-workstnid"]&&(f+="&workstnid="+encodeURIComponent(sessionStorage["atrium-params-workstnid"])),sessionStorage["atrium-params-suffixid"]&&(f+="&suffixid="+encodeURIComponent(sessionStorage["atrium-params-suffixid"])),sessionStorage["atrium-params-duplicateid"]&&(f+="&duplicateid="+
|
|
1158
|
-
sessionStorage[T.K]&&(f+="&filter="+encodeURIComponent(sessionStorage[T.K]))),T.action.R(f,l,a,h,0,d,e.icon);else if(g==T.bb)f="/profoundui/auth/genie?macro=puilauncher&navid="+h,T.profounduiLibrary&&(f+="&puilib="+T.profounduiLibrary),c.attributes&&(f=T.h.Nb(f,c.attributes.Ib)),"undefined"!=typeof Storage&&(sessionStorage["atrium-params-workstnid"]&&(f+="&workstnid="+encodeURIComponent(sessionStorage["atrium-params-workstnid"])),
|
|
1159
|
-
sessionStorage["atrium-params-duplicateid"]&&(f+="&duplicateid="+encodeURIComponent(sessionStorage["atrium-params-duplicateid"])),sessionStorage[T.K]&&(f+="&filter="+encodeURIComponent(sessionStorage[T.K]))),T.action.R(f,l,a,h,0,d,e.icon);else if(g==T.ab){f="/profoundui/auth/start?atrium_item="+h;"undefined"!=typeof T["rich display url"]&&(f=T["rich display url"]+
|
|
1160
|
-
11).toLowerCase()&&(q=k.substr(11));"script:"==String(k).substr(0,7).toLowerCase()&&(q=k.substr(7));if(null==q||""==N(q))c=k;else try{c=eval(q)}catch(t){pui.Lc||(pui.Lc=!0,setTimeout(function(){pui.alert("Expression '"+N(q)+"' contains an error:\n\n"+t.message);pui.Lc=!1},1))}f+="&p1="+encodeURIComponent(c)+"&l1=256"}"undefined"!=typeof Storage&&(sessionStorage["atrium-params-workstnid"]&&
|
|
1161
|
-
(f+="&suffixid="+encodeURIComponent(sessionStorage["atrium-params-suffixid"])),sessionStorage["atrium-params-duplicateid"]&&(f+="&duplicateid="+encodeURIComponent(sessionStorage["atrium-params-duplicateid"])));""!=
|
|
1162
|
-
T.action.R=function(c,a,d,e,f,g,h){if(null!=T.onlaunch&&"function"==typeof T.onlaunch){var l={url:c,newWindow:a,text:d,itemId:e,firstTab:f,closable:g,icon:h};if(!1===T.onlaunch(l))return;g=l.closable;c=l.url;a=l.newWindow;d=l.text;e=l.itemId;f=l.firstTab;h=l.icon}l=!1;for(var
|
|
1163
|
-
a="";"ontouchstart"in window&&(a="-webkit-overflow-scrolling:touch;overflow:auto;");
|
|
1164
|
-
"function"===typeof p.isServerBusy&&p.isServerBusy())return!1;if(!T.promptCloseTab)return!0;if(
|
|
1165
|
-
buttons:Ext.MessageBox.YESNOCANCEL,fn:function(u){if("yes"===u){var z=[];q.hasUnsavedAnnotations&&q.hasUnsavedAnnotations()&&z.push(q.saveAllAnnotations||q.saveAnnotations);q.hasUnsavedRules&&q.hasUnsavedRules()&&z.push(q.saveAllRules||q.saveRules);var B=function(E){if(E>=z.length)k.destroy();else z[E](function(F){F&&B(E+1)})};B(0)}else"no"===u&&k.destroy()}}),!1}catch(u){}return!
|
|
1166
|
-
pui.getLanguageText("runtimeMsg","close tab"),Ext.MessageBox.show({msg:r,buttons:Ext.MessageBox.YESNO,fn:function(u){"yes"===u&&k.destroy()}}),!1):!0},beforedestroy:function(k){k=k.getEl().child("iframe.selector",!0).contentWindow;try{k.pui&&k.pui.unload&&k.pui.unload()}catch(
|
|
1161
|
+
(f=(T.serverURL||"")+"/profoundui/PUI0003028.pgm?auth="+encodeURIComponent(sessionStorage["atrium-token"])+"&ANITEM="+h),c.attributes&&(f=T.h.Nb(f,c.attributes.Ib)),"undefined"!=typeof Storage&&(sessionStorage["atrium-params-workstnid"]&&(f+="&workstnid="+encodeURIComponent(sessionStorage["atrium-params-workstnid"])),sessionStorage["atrium-params-suffixid"]&&(f+="&suffixid="+encodeURIComponent(sessionStorage["atrium-params-suffixid"])),sessionStorage["atrium-params-duplicateid"]&&(f+="&duplicateid="+
|
|
1162
|
+
encodeURIComponent(sessionStorage["atrium-params-duplicateid"])),sessionStorage[T.K]&&(f+="&filter="+encodeURIComponent(sessionStorage[T.K]))),T.action.R(f,l,a,h,0,d,e.icon);else if(g==T.bb)f=(T.serverURL||"")+"/profoundui/auth/genie?macro=puilauncher&navid="+h,T.profounduiLibrary&&(f+="&puilib="+T.profounduiLibrary),c.attributes&&(f=T.h.Nb(f,c.attributes.Ib)),"undefined"!=typeof Storage&&(sessionStorage["atrium-params-workstnid"]&&(f+="&workstnid="+encodeURIComponent(sessionStorage["atrium-params-workstnid"])),
|
|
1163
|
+
sessionStorage["atrium-params-suffixid"]&&(f+="&suffixid="+encodeURIComponent(sessionStorage["atrium-params-suffixid"])),sessionStorage["atrium-params-duplicateid"]&&(f+="&duplicateid="+encodeURIComponent(sessionStorage["atrium-params-duplicateid"])),sessionStorage[T.K]&&(f+="&filter="+encodeURIComponent(sessionStorage[T.K]))),T.action.R(f,l,a,h,0,d,e.icon);else if(g==T.ab){f=(T.serverURL||"")+"/profoundui/auth/start?atrium_item="+h;"undefined"!=typeof T["rich display url"]&&(f=T["rich display url"]+
|
|
1164
|
+
"?atrium_item="+h);if(null!=k&&""!=k){c="";var q=null;"js:"==String(k).substr(0,3).toLowerCase()&&(q=k.substr(3));"javascript:"==String(k).substr(0,11).toLowerCase()&&(q=k.substr(11));"script:"==String(k).substr(0,7).toLowerCase()&&(q=k.substr(7));if(null==q||""==N(q))c=k;else try{c=eval(q)}catch(t){pui.Lc||(pui.Lc=!0,setTimeout(function(){pui.alert("Expression '"+N(q)+"' contains an error:\n\n"+t.message);pui.Lc=!1},1))}f+="&p1="+encodeURIComponent(c)+"&l1=256"}"undefined"!=typeof Storage&&(sessionStorage["atrium-params-workstnid"]&&
|
|
1165
|
+
(f+="&workstnid="+encodeURIComponent(sessionStorage["atrium-params-workstnid"])),sessionStorage["atrium-params-suffixid"]&&(f+="&suffixid="+encodeURIComponent(sessionStorage["atrium-params-suffixid"])),sessionStorage["atrium-params-duplicateid"]&&(f+="&duplicateid="+encodeURIComponent(sessionStorage["atrium-params-duplicateid"])));""!=m&&(f+="&lang="+encodeURIComponent(m));T.action.R(f,l,a,h,0,d,e.icon)}};
|
|
1166
|
+
T.action.R=function(c,a,d,e,f,g,h){if(null!=T.onlaunch&&"function"==typeof T.onlaunch){var l={url:c,newWindow:a,text:d,itemId:e,firstTab:f,closable:g,icon:h};if(!1===T.onlaunch(l))return;g=l.closable;c=l.url;a=l.newWindow;d=l.text;e=l.itemId;f=l.firstTab;h=l.icon}l=!1;for(var n=0;n<T.items.L.length;n++)if(T.items.L[n].ANITEM==e){l=!0;break}if(1==a)return c=window.open(c,"_blank"),T.g.rb.push(c),c;!0===T.g.D.hidden&&(T.g.D.show(),0===T.g.Ga.items.getCount()&&(T.g.Ga.add(T.g.D),T.g.Ga.doLayout()));
|
|
1167
|
+
a="";"ontouchstart"in window&&(a="-webkit-overflow-scrolling:touch;overflow:auto;");n='<iframe class="selector" src="'+c+'" style="width: 100%; height: 100%; border-style: none;"></iframe>';f=f?0:T.g.D.items.getCount();c=T.g.D.insert(f,new Ext.Panel({title:d,closable:null!=g?g:!0,Da:e,html:n,atriumAction:c,bodyStyle:a,hideMode:"offsets",icon:h,listeners:{beforeclose:function(k){var m=k.getEl().child("iframe.selector",!0),r=m.contentWindow,p=null;try{p=r.pui}catch(u){}if(null!=p&&"object"===typeof p&&
|
|
1168
|
+
"function"===typeof p.isServerBusy&&p.isServerBusy())return!1;if(!T.promptCloseTab)return!0;if(m=m&&m.src&&m.src.includes("/auto-testing/work-with-test"))try{var q=r.pui&&r.pui.autoTesting,t=q&&q.hasUnsavedAnnotations&&q.hasUnsavedAnnotations(),v=q&&q.hasUnsavedRules&&q.hasUnsavedRules();if(t||v)return Ext.MessageBox.show({title:"Unsaved "+(t&&v?"Annotations and Rules":t?"Annotations":"Rules"),msg:"There are unsaved "+(t&&v?"annotation and rule":t?"annotation":"rule")+" changes. Save before closing?",
|
|
1169
|
+
buttons:Ext.MessageBox.YESNOCANCEL,fn:function(u){if("yes"===u){var z=[];q.hasUnsavedAnnotations&&q.hasUnsavedAnnotations()&&z.push(q.saveAllAnnotations||q.saveAnnotations);q.hasUnsavedRules&&q.hasUnsavedRules()&&z.push(q.saveAllRules||q.saveRules);var B=function(E){if(E>=z.length)k.destroy();else z[E](function(F){F&&B(E+1)})};B(0)}else"no"===u&&k.destroy()}}),!1}catch(u){}return!m&&(1===T.promptCloseTab&&null!=p&&"object"===typeof p||1<T.promptCloseTab)?(r="string"===typeof T.closeTabMessage?T.closeTabMessage:
|
|
1170
|
+
pui.getLanguageText("runtimeMsg","close tab"),Ext.MessageBox.show({msg:r,buttons:Ext.MessageBox.YESNO,fn:function(u){"yes"===u&&k.destroy()}}),!1):!0},beforedestroy:function(k){k=k.getEl().child("iframe.selector",!0).contentWindow;try{k.pui&&k.pui.unload&&k.pui.unload()}catch(m){}}}}));T.g.D.activate(c);l&&(T.g.X=c,T.g.X.addListener("destroy",function(){T.g.X=null}));return c};
|
|
1167
1171
|
T.action.ld=function(c){for(var a=T.g.D.items.getCount(),d,e,f=0;f<a;f++)if(d=T.g.D.items.itemAt(f),e=d.getEl().child("iframe.selector",!0),c==e.contentWindow||c.parent==e.contentWindow){T.g.D.remove(d);break}};T.api.launchURL=function(c,a,d){null==d&&(d=!0);return T.action.R(c,!1,a,null,!1,d)};T.api.closeTab=function(c,a){if(null!=a){c=T.g.D;for(var d=c.items.getCount(),e=0;e<d;e++)if(c.items.itemAt(e)==a){c.remove(a);break}}else T.action.ld(c)};
|
|
1168
|
-
T.api.launchItem=function(c,a,d,e){var f=null;"object"==typeof c&&(e=c,c=e.itemId,a=e.closable,d=e.callback,f=e.parm,e=e.event);var g=null==e?{ctrlKey:!1}:{ctrlKey:e.ctrlKey};e="";"undefined"!=typeof Storage&&sessionStorage[T.K]&&(e=sessionStorage[T.K]);Ext.Ajax.request({url:T.h.s("PUI0003029.pgm"),params:{item:c,filter:e},callback:function(h,l,
|
|
1169
|
-
k.attributes.newWindow="1"==
|
|
1172
|
+
T.api.launchItem=function(c,a,d,e){var f=null;"object"==typeof c&&(e=c,c=e.itemId,a=e.closable,d=e.callback,f=e.parm,e=e.event);var g=null==e?{ctrlKey:!1}:{ctrlKey:e.ctrlKey};e="";"undefined"!=typeof Storage&&sessionStorage[T.K]&&(e=sessionStorage[T.K]);Ext.Ajax.request({url:T.h.s("PUI0003029.pgm"),params:{item:c,filter:e},callback:function(h,l,n){T.data.u(n,function(k,m){k&&""!=m.ANACTN?(k={attributes:{}},k.attributes.action=m.ANACTN,k.attributes.actionType=m.ANACTNTYPE,k.attributes.id=m.ANITEM,
|
|
1173
|
+
k.attributes.newWindow="1"==m.ANWINDOW,k.attributes.text=m.ANTEXT,k.attributes.once="1"==m.ANONCE,k.attributes.parm=f||m.ANPARM,T.action.doAction(k,g,a),setTimeout(function(){for(var r,p=T.g.D.items.getCount(),q=0;q<p;q++){var t=m.ANITEM;tabItem=T.g.D.items.itemAt(q);tabItem.initialConfig.Da&&tabItem.initialConfig.Da==t&&(r=T.g.D.items.itemAt(q))}"function"==typeof d&&d(!0,r)},500)):"function"==typeof d&&d(!1)})}})};
|
|
1170
1174
|
T.api.activateTab=function(c){for(var a=T.g.D,d=a.items.getCount(),e=0;e<d;e++)if(a.items.itemAt(e)==c){a.activate(c);break}};T.api.closeAllTabs=function(c,a){null==a&&(a=!0);c=T.api.getCurrentTab(c);for(var d=T.g.D,e,f=d.items.getCount()-1;0<=f;f--)e=d.items.itemAt(f),e!=c&&(null!=T.g.X&&e==T.g.X&&a||d.remove(e))};
|
|
1171
1175
|
T.api.getCurrentTab=function(c){for(var a=T.g.D,d=a.items.getCount(),e,f,g=0;g<d;g++){e=a.items.itemAt(g);f=e.getEl().child("iframe.selector",!0);f=f.contentWindow;if(f==c)return e;for(;null!=f&&f.parent!=f;)if(f=f.parent,f==c)return e}};T.api.getUser=function(){return T.B.AUPROF};T.api.runPCCommand=R;T.api.refreshNavPanel=T.g.yc;T.api.reloadNavParent=T.g.je;T.api.setMenuFilter=function(c){"undefined"!=typeof Storage&&(sessionStorage[T.K]=c)};
|
|
1172
1176
|
T.api.breakMessagesShow=function(c,a){if(!(null==c||0>c.length||null==a||0>=a.length)){if("function"==typeof T["brkmsg handler"])return T["brkmsg handler"](c,a);if(0===c.length)null!=T.S&&"object"===typeof T.S&&T.S.hide&&(T.S.hide(),T.S=null);else{var d=c[c.length-1],e={title:"",body:""};try{"function"===typeof T.breakMessageFormat?T.breakMessageFormat(d,e):(e.title=d.date+" "+d.time+"<br>"+d.jobNum+"/"+d.jobUserName+"/"+d.jobName,e.body=a+": "+d.msg)}catch(f){console.log(f)}T.S=Ext.MessageBox.show({title:e.title,
|