MDAnalyseDialog.js 2.8 KB

12
  1. //>>built
  2. define("pd/widgets/MDAnalyseDialog",["dojo/_base/declare","dojo/parser","bux/dialogs/BaseDialog","dijit/TitlePane","pd/model/deltaSpec","dojo/string","dojo/dom-construct","dojo/dom-attr","dijit/layout/BorderContainer","dijit/layout/ContentPane"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a){var _b=_1("pd/widgets/MDAnalyseDialog",[_3],{title:PDMSG.ANA.IDS_ANA_DIALOG_TITLE,style:"width: auto; height: auto;",showOnOk:true,_bContainerHeightAuto:true,createDefaultDialogButtons:function(){this.createButtons([{label:BUXMSG.GEN.IDS_GEN_YES_BUTTON,action:dojo.hitch(this,this.onOK),type:"button"},{label:BUXMSG.GEN.IDS_GEN_NO_BUTTON,action:dojo.hitch(this,this.onCancel),type:"button"}]);},postCreate:function(){this.inherited(arguments);this.createDefaultDialogButtons();var _c=true;var _d=_7.toDom("<div style='min-width:500px;'></div>");for(var i=0;i<_5.length;i++){var _e=this.delta[_5[i].name];if(_e.length>0){var bc=new _9({style:"height:100px;"});var _f="<table class='dojoxGridRowTable' cellspacing='0' "+"cellpadding='0' border='0' role='presentation' style='width: 100%;'><tbody>";for(var j=0;j<_e.length;j++){var _10=((j%2)?"dojoxGridRow":"dojoxGridRowSelected");_f+="<tr><td tabindex='-1' "+"style='padding: 3px 3px 3px 13px' class='"+_10+"'>"+_e[j].name;if(_e[j].simpletype&&_e[j].previoustype){_f+="&nbsp;"+_6.substitute(PDMSG.ANA.IDS_ANA_TYPE_CHANGED_FROM_TO,{0:_e[j].previoustype,1:_e[j].simpletype});}_f+="</td></tr>";}_f+="</tbody></table>";var cp=new _a({region:"center",content:_f,"aria-label":_5[i].contentLabel});bc.addChild(cp);var _11=new _4({title:_5[i].label+" ("+_e.length+")",content:bc.domNode,open:false});_8.set(_11.domNode,"aria-label",_5[i].groupLabel);_8.set(_11.containerNode,"role","group");_8.set(_11.containerNode,"aria-label",_5[i].contentLabel);_d.appendChild(_11.domNode);_c=false;}}var _12="<table border='0' role='presentation'><tbody><tr>";if(!_c){_12+="<td class='bux-InformationDialog-Icon bux-informationDialog-warning-icon'>"+"<div class='bux-InformationDialog-Icon'>&nbsp;</div></td>";}_12+="<td><div class='bux-InformationDialog-mainMessage'>";_12+=_c?PDMSG.ANA.IDS_ANA_NO_META_DATA_CHANGES:PDMSG.ANA.IDS_ANA_META_DATA_CHANGES;_12+="</div></td></tr></tbody></table></br>";this.dialogContent.appendChild(_7.toDom(_12));this.dialogContent.appendChild(_d);this.dialogContent.appendChild(_7.toDom("<br/><div class='bux-InformationDialog-mainMessage'>"+(!_c?PDMSG.ANA.IDS_ANA_METADATA_CHANGES_WARNING+"<br/><br/>":"")+PDMSG.ANA.IDS_ANA_PROCEED_CONFIRM+"</div>"));},onOK:function(){if(this.showOnOk!==true){this.hide();}if(this._aButtonObjects&&this._aButtonObjects[0]){this._aButtonObjects[0].focus();}if(this.okHandler){this.okHandler();}},onCancel:function(){this.inherited(arguments);if(this.cancelHandler){this.cancelHandler();}},hide:function(){this.inherited(arguments);this.destroy();}});return _b;});