01.code/LanweiUI/appCss/Application.js
(开头部分) 220KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
require({cache:{"app/global":function(){define([],function(){var l={basePath:window.dev?CONTEXT_PATH:CDN_PATH,imagePath:(window.dev?"http://customer.com:8080/src":CDN_PATH+"/release")+"/app/resource/themes/default/images/",swfPath:"swf",sm2swfPath:(window.dev?"/src":"/release")+"/app/resource/swf/",userId:"",userName:"",user:{},FORBIDDEN_FILES_TYPE:"wmv avi dat asf rm rmvb ram mpg mpeg".split(" "),apiVersion:"v2/web",role:3,FORBIDDEN_FILES_TYPE:"wmv avi dat asf rm rmvb ram mpg mpeg 3gp mov mp4 m4v dvix dv dat mkv flv vob qt cpk fli flc".split(" "),
PREVIEW_FILES_TYPE:"pdf txt png jpg bmp gif doc ppt xls xlsx docx pptx".split(" "),PICTURE_TYPE:["png","jpg","bmp","gif"]};l.avatar=l.imagePath+"m.png";l.sm2swfPath=l.basePath+l.sm2swfPath;return l})},"app/url":function(){define(["dojo/_base/declare","./global"],function(l,k){var f={init:"init",createAuth:"user/createUserAuth",hasNewFollow:"workrecord/latestrecord",workRead:"workrecord/read",customerAnalyse:"report/addweekcustomers",reportProgress:"report/progressCount",customerList:"customer/condition",
customer:"customer",customerProcess:"customer/process",wrCustomer:"customer/list",customerSearch:"customer/search",workListIndex:"workrecord/follows",updateName:"user/userinfo",workList:"workrecord",workListSearch:"workrecord/condition",workListForCustomer:"workrecord/listByCustomer",analysisdata:"report/analysisdata",addCustomersAnalysis:"report/addCustomersAnalysis",boss:"privilege/boss",addBoss:"privilege/addBoss",contact:"contact",privilegeSearch:"sysreluser/allusers",privilegeUpdate:"privilege/update",
inviteRefuseinvite:"invite/refuseinvite",inviteInviteauth:"invite/inviteauth",listOfCustomer:"contact/listOfCustomer",delRemindtime:"workrecord/remindtime",follow:"customer/follow",logout:"privilege/logout",reportEnum:"report/enums",attachmentDownload:"workrecord/download",attamentUpload:"workrecord/attamentUpload",attamentUploadForCustomer:"customer/attamentUpload",attamentListForCustomer:"customer/attachments",attament:"customer/attament",newAttamentUpload:"customer/attamentUploadOnly",newAttamentUploadForSave:"customer/attamentSave",
guide:"userSetting/loginGuide",saveHistory:"condition/favorite",configList:"condition/configList?entityType\x3dCustomer",searchCollectList:"condition/favoriteList?entityType\x3dCustomer",searchCollectDel:"condition/favoriteDelete",configSave:"condition/config",checkAudioReady:"workrecord/convertInfo",metaData:"dynattr/metadata",inviteList:"invite/records",inviteUnauth:"sysreluser/disable",inviteUnauthTrans:"sysreluser/disableTransData",customerImportExcel:"import/upload",customerImportExcelTemplate:"import/excel/template",
customerImportList:"import/records",customerImportHead:"import/record/head",customerImportDetail:"import/record/details",customerImportSingle:"import/text",customerMove:"privilege/translist",waitMoveOwnerList:"sysreluser/alltranusers",setBoss:"sysreluser/changeBoss",customerImportStatus:"import/records/status",customerImportRunTask:"import/task",customerImportDeleteOne:"import/record/detail/remove",customerImportDeleteAll:"import/record/remove",hierarchyUsers:"sysreluser/getHierarchyUsers",ownerList:"sysreluser/allSubordinate",
statusEnum:"services/metadata/enum/statusEnum",saleStatus:"data/treeGrid.json",customerProgress:"report/customerProgress",workrecordProgress:"report/workrecordProgress",transbyonwer:"privilege/transbyonwer",transbyconditon:"privilege/transbyconditon",transbycustomerid:"privilege/transbycustomerid",orglist:"user/orglist",switchorg:"user/switch/org",todoPhraseList:"todoTips/list",todoRemindList:"todoWork/getTodoRemindType",todo:"todoWork",todoList:"todoWork/list",todoStatus:"todoWork/handle",todoFuture:"todoWork/future",
baidu:"user/marketAnalysisUrl",provideHas:"user/getOrgBindingPartner",provideDetail:"user/getPartnerInfoById",provideBind:"user/bindingOrgPartner",saveHierarchyUsers:"sysreluser/saveHierarchyUsers",phoneIsBind:"user/getBindingMobile",phoneHas:"user/bindingMobileExists",phoneCode:"user/sendBindingMobileMsg",bindMobile:"user/bindingMobile",inviteSend:"invite/send",profile:"userSetting",atSearch:"user/atUser",comment:"comment"},g={},e="";window.dev&&window.HOST&&(e=HOST+CONTEXT_PATH+"/");g._baseurl=
e;for(var b in f)g[b]=e+"business/"+k.apiVersion+"/"+f[b];g.authSession="services/auth/session";return g})},"app/common":function(){define("put-selector/put dojo/_base/kernel chanjet/util/query dojo/_base/lang dojo/dom-construct chanjet/util/common chanjet/widget/Dialog dojo/cookie".split(" "),function(l,k,f,g,e,b,d,c){l={nofind:function(a,b){a.src=App.imagePath+(b||"m.png");a.onerror=null},mixinIf:function(a,b){for(var c in b)c in a||(a[c]=b[c]);return a},alert:function(a,b){var c=new d({title:b||
"\u63d0\u793a",content:a||"","class":"dialog-alert",bottomButtons:[{label:"\u786e\u5b9a",sTag:"ok",baseClass:"whiteButton"}],buttonClick:function(a,b,c,m){"ok"==c&&m.close()}});c.show();return c},confirm:function(a,b,c){b=b||"\u63d0\u793a";c=g.mixin({confirm:function(){},cancel:function(){}},c||{});var e=c.labels,n,f;e&&(e=e.split(","),n=e[0],f=e[1]);a=new d({"class":"confirm "+c.cls||"",title:b,bottomButtons:[{label:n||"\u53d6\u6d88",baseClass:"whiteButton"},{label:f||"\u786e\u8ba4",sTag:"ok",baseClass:"whiteButton"}],
content:a||"",buttonClick:function(a,b,m,d){"ok"==m?(b.set("label",b.label+"\u4e2d..."),b.set("disabled",!0),c.confirm(d,b)):(c.cancel(d,b),d.close())}});a.show();return a},stopTip:function(){if(App.tipsHandle){window.clearTimeout(App.tipsHandle);App.tipsHandle=null;var a=f("#tips");a.style("display","none");a.html("")}},tip:function(a,b){b=b||{};var c=b.timeout,d=b.cls,e=f("#tips");e.removeClass();d&&e.addClass(d);null!=App.tipsHandle&&clearTimeout(App.tipsHandle);e.html(a);e.style("display","block");
0!=c&&(c||(c=3E3),e.style({left:(document.body.offsetWidth-e[0].offsetWidth)/2+"px"}),App.tipsHandle=setTimeout(function(){e.style("display","none");e.html("")},c))},logout:function(){},strlen:function(a){var b=a.match(/[^\x00-\xff]/ig);return a.length+(!b?0:b.length)},substr:function(a,b,c){a=a.slice(0,b);if(/[^\x00-\xff]/.test(a)){for(var d=this.strlen(a);d>b;)d-=App.strlen(a.charAt(a.length-1)),a=a.slice(0,-1);d<b&&c&&(a+=this.charAt(a.length))}return a},bdstatEvent:function(a){App.shieldDemo?
-1!==["demo","newdemo","chanjetdemo"].indexOf(document.location.hostname.split(".")[0])&&_hmt.push(["_trackEvent",a,"click","",""]):_hmt.push(["_trackEvent",a,"click","",""])},trimHTML:function(a){return a?a.toString().replace(/<[^>]*>/g,""):""},download:function(a){window.open(""+(URL.attachmentDownload+"?url\x3d"+a))},escapeQuote:function(a){return a.replace(/</ig,"\x26lt;").replace(/>/ig,"\x26gt;")},getDocumentScrollY:function(){return void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||
document.body.parentNode||document.body).scrollTop},escape:function(a){return(a?a:"").replace(/</g,"\x26lt;").replace(/>/g,"\x26gt;").replace("/\x26/g","\x26amp;").replace(/"/g,"\x26quot;")},unescape:function(a){return(a?a:"").replace(/</g,"\x3c").replace(/>/g,"\x3e").replace(/&/g,"\x26").replace(/"/g,'"')},removeAdminPermission:function(){k.destroy(App.header.settingNode)},sessionStorage:function(){return window.sessionStorage?{get:function(a){return sessionStorage.getItem(a)},set:function(a,
b){sessionStorage.setItem(a,b)},del:function(a){sessionStorage.removeItem(a)}}:{get:function(a){return c(a)},set:function(a,b){c(a,b)},del:function(a){c(a,null,{expires:-1})}}},getImageWithSize:function(a,b){var c=a.split(".").pop();return"big"==b?a+".big."+c:"normal"==b?a+".middle."+c:"small"==b?a+".small."+c:a},getAvatarWithSize:function(a,b){return"big"==b?a:"normal"==b?a+"64.jpg":"small"==b?a+"32.jpg":a},getFileIcon:function(a,b){return this._getFileIcon("."+a)},_pic_suffix:function(a){if(-1<
a.indexOf(".")){var b=a.lastIndexOf(".");a=a.substring(b,a.length)+"|";a=a.toLowerCase();if(-1<".jpeg|.gif|.jpg|.png|.bmp|.pic|".indexOf(a))return!0}return!1},_getFileIcon:function(a){var b="tw_otherIcon";if(-1<a.indexOf(".")){var c=a.lastIndexOf(".");a=a.substring(c,a.length)+"|";a=a.toLowerCase();if(-1<".doc|.docx|.excel|.ppt|.pptx|.txt|.xls|.xlsx|.jpg|.jpeg|.bmp|.gig|.png|.tif|.rgb|.dib|.eps|.jpe|.pcx|.bmp|.gif|.mp3|.mp4|.wav|.rmvb|.rm|.wmv|.asf|.mov|.divx|.mpeg|.dv-avi|.navi|.avi|.mva|.pdf|".indexOf(a))switch(a){case ".doc|":b=
"tw_wordIcon";break;case ".docx|":b="tw_wordIcon";break;case ".xls|":b="tw_excelIcon";break;case ".xlsx|":b="tw_excelIcon";break;case ".excel|":b="tw_excelIcon";break;case ".ppt|":b="tw_pptIcon";break;case ".pptx|":b="tw_pptIcon";break;case ".txt|":b="tw_txtIcon";break;case ".jpg|":b="tw_imageIcon";break;case ".jpeg|":b="tw_imageIcon";break;case ".bmp|":b="tw_imageIcon";break;case ".gig|":b="tw_imageIcon";break;case ".png|":b="tw_imageIcon";break;case ".tif|":b="tw_imageIcon";break;case ".rgb|":b=
"tw_imageIcon";break;case ".dib|":b="tw_imageIcon";break;case ".eps|":b="tw_imageIcon";break;case ".jpe|":b="tw_imageIcon";break;case ".pcx|":b="tw_imageIcon";break;case ".gif|":b="tw_imageIcon";break;case ".mp3|":b="tw_videoIcon";break;case ".mp4|":b="tw_videoIcon";break;case ".wav|":b="tw_videoIcon";break;case ".rmvb|":b="tw_videoIcon";break;case ".rm|":b="tw_videoIcon";break;case ".wmv|":b="tw_videoIcon";break;case ".asf|":b="tw_videoIcon";break;case ".mov|":b="tw_videoIcon";break;case ".divx|":b=
"tw_videoIcon";break;case ".mpeg|":b="tw_videoIcon";break;case ".dv-avi|":b="tw_videoIcon";break;case ".navi|":b="tw_videoIcon";break;case ".avi|":b="tw_videoIcon";break;case ".mva|":b="tw_videoIcon";break;case ".pdf|":b="tw_pdfIcon"}}return b}};g.mixin(l,b);return l})},"put-selector/put":function(){(function(l){var k,f=/[-+,> ]/;l([],k=function(g,e){function b(e){function x(){k&&(p&&k!=p)&&(p==e&&(n||(n=f.test(v)&&g.createDocumentFragment()))||p).insertBefore(k,q||null)}for(var n,s,q,p,k,u=arguments,
y=u[0],t=0;t<u.length;t++){var v=u[t];if("object"==typeof v){s=!1;if(v instanceof Array){k=g.createDocumentFragment();for(var l=0;l<v.length;l++)k.appendChild(b(v[l]));v=k}if(v.nodeType)k=v,x(),p=v,q=0;else for(l in v)k[l]=v[l]}else if(s)s=!1,k.appendChild(g.createTextNode(v));else{1>t&&(e=null);s=!0;if(y=v.replace(d,function(d,n,f,s,F,L){n&&(x(),"-"==n||"+"==n?(p=(q=k||p).parentNode,k=null,"+"==n&&(q=q.nextSibling)):("\x3c"==n?p=k=(k||p).parentNode:(","==n?p=e:k&&(p=k),k=null),q=0),k&&(p=k));if((d=
!f&&s)||!k&&(f||F))"$"==d?(d=u[++t],p.appendChild(g.createTextNode(d))):(d=d||b.defaultTag,(n=m&&u[t+1]&&u[t+1].name)&&(d="\x3c"+d+' name\x3d"'+n+'"\x3e'),k=a&&~(c=d.indexOf("|"))?g.createElementNS(a[d.slice(0,c)],d.slice(c+1)):g.createElement(d));if(f)if("$"==s&&(s=u[++t]),"#"==f)k.id=s;else if(n=(d=k.className)&&(" "+d+" ").replace(" "+s+" "," "),"."==f)k.className=d?(n+s).substring(1):s;else if("!"==v){var y;m?b("div",k,"\x3c").innerHTML="":(y=k.parentNode)&&y.removeChild(k)}else n=n.substring(1,
n.length-1),n!=d&&(k.className=n);F&&("$"==L&&(L=u[++t]),"style"==F?k.style.cssText=L:(f="!"==F.charAt(0)?(F=F.substring(1))&&"removeAttribute":"setAttribute",L=""===L?F:L,a&&~(c=F.indexOf("|"))?k[f+"NS"](a[F.slice(0,c)],F.slice(c+1),L):k[f](F,L)));return""}))throw new SyntaxError("Unexpected char "+y+" in "+v);x();p=y=k||p}}e&&n&&e.appendChild(n);return y}f=e||f;var d=/(?:\s*([-+ ,<>]))?\s*(\.|!\.?|#)?([-\w%$|]+)?(?:\[([^\]=]+)=?['"]?([^\]'"]*)['"]?\])?/g,c,a=!1;g=g||document;var m="object"==typeof g.createElement;
b.addNamespace=function(b,c){g.createElementNS?(a||(a={}))[b]=c:g.namespaces.add(b,c)};b.defaultTag="div";b.forDocument=k;return b})})(function(l,k,f){f=f||k;"function"===typeof define?define([],function(){return f()}):"undefined"==typeof window?require("./node-html")(module,f):put=f()})},"chanjet/util/query":function(){define(["dojo/query","dojo/_base/lang","dojo/dom-attr","dojo/NodeList-manipulate","dojo/NodeList-traverse"],function(l,k,f){k.extend(l.NodeList,{hide:function(f){return 0==this.length?
this:"visibility"==f?this.style("visibility","hidden"):this.style("display","none")},show:function(f){return 0==this.length?this:"visibility"==f?this.style("visibility","visible"):"inline"==f?this.style("display",""):this.style("display","block")},toArray:function(){var f=[];this.forEach(function(e){f.push(e)});return f},attri:function(g,e){var b=arguments.length;if(1==b){if(b=this[0])return f.get(b,g)||""}else 2==b&&this.forEach(function(b){f.set(b,g,e)});return this}});return l})},"dojo/NodeList-manipulate":function(){define(["./query",
"./_base/lang","./_base/array","./dom-construct","./NodeList-dom"],function(l,k,f,g){function e(a){var b="";a=a.childNodes;for(var c=0,d;d=a[c];c++)8!=d.nodeType&&(b=1==d.nodeType?b+e(d):b+d.nodeValue);return b}function b(a){for(;a.childNodes[0]&&1==a.childNodes[0].nodeType;)a=a.childNodes[0];return a}function d(a,b){"string"==typeof a?(a=g.toDom(a,b&&b.ownerDocument),11==a.nodeType&&(a=a.childNodes[0])):1==a.nodeType&&a.parentNode&&(a=a.cloneNode(!1));return a}var c=l.NodeList;k.extend(c,{_placeMultiple:function(a,
b){for(var c="string"==typeof a||a.nodeType?l(a):a,d=[],e=0;e<c.length;e++)for(var f=c[e],q=this.length,p=q-1,k;k=this[p];p--)0<e&&(k=this._cloneNode(k),d.unshift(k)),p==q-1?g.place(k,f,b):f.parentNode.insertBefore(k,f),f=k;d.length&&(d.unshift(0),d.unshift(this.length-1),Array.prototype.splice.apply(this,d));return this},innerHTML:function(a){return arguments.length?this.addContent(a,"only"):this[0].innerHTML},text:function(a){if(arguments.length){for(var b=0,c;c=this[b];b++)1==c.nodeType&&(g.empty(c),
c.appendChild(c.ownerDocument.createTextNode(a)));return this}for(var d="",b=0;c=this[b];b++)d+=e(c);return d},val:function(a){if(arguments.length){for(var b=k.isArray(a),c=0,d;d=this[c];c++){var e=d.nodeName.toUpperCase(),g=d.type,q=b?a[c]:a;if("SELECT"==e){e=d.options;for(g=0;g<e.length;g++){var p=e[g];p.selected=d.multiple?-1!=f.indexOf(a,p.value):p.value==q}}else"checkbox"==g||"radio"==g?d.checked=d.value==q:d.value=q}return this}if((d=this[0])&&1==d.nodeType){a=d.value||"";if("SELECT"==d.nodeName.toUpperCase()&&
d.multiple){a=[];e=d.options;for(g=0;g<e.length;g++)p=e[g],p.selected&&a.push(p.value);a.length||(a=null)}return a}},append:function(a){return this.addContent(a,"last")},appendTo:function(a){return this._placeMultiple(a,"last")},prepend:function(a){return this.addContent(a,"first")},prependTo:function(a){return this._placeMultiple(a,"first")},after:function(a){return this.addContent(a,"after")},insertAfter:function(a){return this._placeMultiple(a,"after")},before:function(a){return this.addContent(a,
"before")},insertBefore:function(a){return this._placeMultiple(a,"before")},remove:c.prototype.orphan,wrap:function(a){if(this[0]){a=d(a,this[0]);for(var c=0,e;e=this[c];c++){var f=this._cloneNode(a);e.parentNode&&e.parentNode.replaceChild(f,e);b(f).appendChild(e)}}return this},wrapAll:function(a){if(this[0]){a=d(a,this[0]);this[0].parentNode.replaceChild(a,this[0]);a=b(a);for(var c=0,e;e=this[c];c++)a.appendChild(e)}return this},wrapInner:function(a){if(this[0]){a=d(a,this[0]);for(var b=0;b<this.length;b++){var c=
this._cloneNode(a);this._wrap(k._toArray(this[b].childNodes),null,this._NodeListCtor).wrapAll(c)}}return this},replaceWith:function(a){a=this._normalize(a,this[0]);for(var b=0,c;c=this[b];b++)this._place(a,c,"before",0<b),c.parentNode.removeChild(c);return this},replaceAll:function(a){a=l(a);for(var b=this._normalize(this,this[0]),c=0,d;d=a[c];c++)this._place(b,d,"before",0<c),d.parentNode.removeChild(d);return this},clone:function(){for(var a=[],b=0;b<this.length;b++)a.push(this._cloneNode(this[b]));
return this._wrap(a,this,this._NodeListCtor)}});c.prototype.html||(c.prototype.html=c.prototype.innerHTML);return c})},"dojo/NodeList-traverse":function(){define(["./query","./_base/lang","./_base/array"],function(l,k,f){var g=l.NodeList;k.extend(g,{_buildArrayFromCallback:function(e){for(var b=[],d=0;d<this.length;d++){var c=e.call(this[d],this[d],b);c&&(b=b.concat(c))}return b},_getUniqueAsNodeList:function(e){for(var b=[],d=0,c;c=e[d];d++)1==c.nodeType&&-1==f.indexOf(b,c)&&b.push(c);return this._wrap(b,
null,this._NodeListCtor)},_getUniqueNodeListWithParent:function(e,b){var d=this._getUniqueAsNodeList(e),d=b?l._filterResult(d,b):d;return d._stash(this)},_getRelatedUniqueNodes:function(e,b){return this._getUniqueNodeListWithParent(this._buildArrayFromCallback(b),e)},children:function(e){return this._getRelatedUniqueNodes(e,function(b,d){return k._toArray(b.childNodes)})},closest:function(e,b){return this._getRelatedUniqueNodes(null,function(d,c){do if(l._filterResult([d],e,b).length)return d;while(d!=
b&&(d=d.parentNode)&&1==d.nodeType);return null})},parent:function(e){return this._getRelatedUniqueNodes(e,function(b,d){return b.parentNode})},parents:function(e){return this._getRelatedUniqueNodes(e,function(b,d){for(var c=[];b.parentNode;)b=b.parentNode,c.push(b);return c})},siblings:function(e){return this._getRelatedUniqueNodes(e,function(b,d){for(var c=[],a=b.parentNode&&b.parentNode.childNodes,e=0;e<a.length;e++)a[e]!=b&&c.push(a[e]);return c})},next:function(e){return this._getRelatedUniqueNodes(e,
function(b,d){for(var c=b.nextSibling;c&&1!=c.nodeType;)c=c.nextSibling;return c})},nextAll:function(e){return this._getRelatedUniqueNodes(e,function(b,d){for(var c=[],a=b;a=a.nextSibling;)1==a.nodeType&&c.push(a);return c})},prev:function(e){return this._getRelatedUniqueNodes(e,function(b,d){for(var c=b.previousSibling;c&&1!=c.nodeType;)c=c.previousSibling;return c})},prevAll:function(e){return this._getRelatedUniqueNodes(e,function(b,d){for(var c=[],a=b;a=a.previousSibling;)1==a.nodeType&&c.push(a);
return c})},andSelf:function(){return this.concat(this._parent)},first:function(){return this._wrap(this[0]&&[this[0]]||[],this)},last:function(){return this._wrap(this.length?[this[this.length-1]]:[],this)},even:function(){return this.filter(function(e,b){return 0!=b%2})},odd:function(){return this.filter(function(e,b){return 0==b%2})}});return g})},"chanjet/util/common":function(){define(["put-selector/put","dojo/_base/kernel","dojo/dom-construct","./query"],function(l,k,f,g){return{showLoading:function(e,
b,d){e=e||document.body;b=b||{};var c=b.msg||"\u6b63\u5728\u52a0\u8f7d\u4e2d...";h=b.top?b.top+"px":"50%";w=b.left?b.left+"px":"50%";var a=f.toDom('\x3cdiv style\x3d"top:'+h+";left:"+w+';" class\x3d"x-loading g-loading"\x3e\x3cdiv class\x3d"icon-con"\x3e\x3cimg class\x3d"loading-icon" src\x3d"'+App.imagePath+'loading2.gif"\x3e\x3c/div\x3e\x3cdiv class\x3d"loading-text"\x3e'+c+"\x3c/div\x3e\x3c/div\x3e"),m=f.toDom('\x3cdiv class\x3d"el-mask g-mask"\x3e\x3c/div\x3e');d&&(m.style.position="absolute");
l(d||document.body,m);l(e,a);var r=g(a);r.remove=function(){k.destroy(a);k.destroy(m);r=null};setTimeout(function(){r&&r.remove()},6E4);return r},hideLoading:function(){g(".x-loading").remove();g(".g-mask").remove()}}})},"chanjet/widget/Dialog":function(){define("dojo/_base/declare dijit/form/Button chanjet/widget/Form dojo/_base/lang dojo/aspect dojo/dom-class dojo/dom-attr dojo/on".split(" "),function(l,k,f,g,e,b,d,c){return l("chanjet.widget.Dialog",[f],{bottomButtons:[{label:"\u53d6\u6d88",baseClass:"grayButton"},
{label:"\u786e\u8ba4",sTag:"ok",baseClass:"blueButton"}],style:"width:350px;",contentMaxHeight:"300px",contentMinHeight:"100px",showInfoIcon:!1,autoDestroy:!0,_setContentAttr:function(a){a&&(a=this.showInfoIcon?"\x3cdiv class\x3d'chanjetContentDialog'\x3e\x3cspan class\x3d'chanjetContentInfoDialog'\x3e\x3c/span\x3e\x3cspan style\x3d'padding-left:10px;'\x3e"+a+"\x3c/span\x3e\x3c/div\x3e":"\x3cdiv class\x3d'chanjetContentDialog'\x3e"+a+"\x3c/div\x3e",this.inherited(arguments))},_createBottomButtons:function(){this._bottomButtonslist=
[];for(var a=0;a<this.bottomButtons.length;a++){var e=new k(this.bottomButtons[a]);this.BottomNode.appendChild(e.domNode);var f="cancel";this.bottomButtons[a].sTag&&(f=this.bottomButtons[a].sTag);"ok"==f?b.add(e.domNode,"sureClass"):b.add(e.domNode,"cancelClass");d.set(e.domNode,"sTag",f);var g=this;c(e,"click",function(a){a=this.get("label");g.buttonClick(a,this,d.get(this.domNode,"sTag"),g)});this._bottomButtonslist.push(e)}},postCreate:function(){this.inherited(arguments)},hide:function(){if(!this.isDestroy)try{this.inherited(arguments)}catch(a){}},
onCancel:function(){if(this.autoDestroy)return this.isDestroy=!0,this.destroy(),!1},close:function(){this.onCancel()}})})},"dijit/form/Button":function(){define("require dojo/_base/declare dojo/dom-class dojo/has dojo/_base/kernel dojo/_base/lang dojo/ready ./_FormWidget ./_ButtonMixin dojo/text!./templates/Button.html".split(" "),function(l,k,f,g,e,b,d,c,a,m){g("dijit-legacy-requires")&&d(0,function(){l(["dijit/form/DropDownButton","dijit/form/ComboButton","dijit/form/ToggleButton"])});d=k("dijit.form.Button"+
(g("dojo-bidi")?"_NoBidi":""),[c,a],{showLabel:!0,iconClass:"dijitNoIcon",_setIconClassAttr:{node:"iconNode",type:"class"},baseClass:"dijitButton",templateString:m,_setValueAttr:"valueNode",_setNameAttr:function(a){this.valueNode&&this.valueNode.setAttribute("name",a)},_fillContent:function(a){if(a&&(!this.params||!("label"in this.params)))if(a=b.trim(a.innerHTML))this.label=a},_setShowLabelAttr:function(a){this.containerNode&&f.toggle(this.containerNode,"dijitDisplayNone",!a);this._set("showLabel",
a)},setLabel:function(a){e.deprecated("dijit.form.Button.setLabel() is deprecated. Use set('label', ...) instead.","","2.0");this.set("label",a)},_setLabelAttr:function(a){this.inherited(arguments);!this.showLabel&&!("title"in this.params)&&(this.titleNode.title=b.trim(this.containerNode.innerText||this.containerNode.textContent||""))}});g("dojo-bidi")&&(d=k("dijit.form.Button",d,{_setLabelAttr:function(a){this.inherited(arguments);this.titleNode.title&&this.applyTextDir(this.titleNode,this.titleNode.title)},
_setTextDirAttr:function(a){this._created&&this.textDir!=a&&(this._set("textDir",a),this._setLabelAttr(this.label))}}));return d})},"dijit/form/_FormWidget":function(){define("dojo/_base/declare dojo/sniff dojo/_base/kernel dojo/ready ../_Widget ../_CssStateMixin ../_TemplatedMixin ./_FormWidgetMixin".split(" "),function(l,k,f,g,e,b,d,c){k("dijit-legacy-requires")&&g(0,function(){require(["dijit/form/_FormValueWidget"])});return l("dijit.form._FormWidget",[e,d,b,c],{setDisabled:function(a){f.deprecated("setDisabled("+
a+") is deprecated. Use set('disabled',"+a+") instead.","","2.0");this.set("disabled",a)},setValue:function(a){f.deprecated("dijit.form._FormWidget:setValue("+a+") is deprecated. Use set('value',"+a+") instead.","","2.0");this.set("value",a)},getValue:function(){f.deprecated(this.declaredClass+"::getValue() is deprecated. Use get('value') instead.","","2.0");return this.get("value")},postMixInProperties:function(){this.nameAttrSetting=this.name&&!k("msapp")?'name\x3d"'+this.name.replace(/"/g,"\x26quot;")+
'"':"";this.inherited(arguments)},_setTypeAttr:null})})},"dijit/_Widget":function(){define("dojo/aspect dojo/_base/config dojo/_base/connect dojo/_base/declare dojo/has dojo/_base/kernel dojo/_base/lang dojo/query dojo/ready ./registry ./_WidgetBase ./_OnDijitClickMixin ./_FocusMixin dojo/uacss ./hccss".split(" "),function(l,k,f,g,e,b,d,c,a,m,r,x,n){function s(){}function q(a){return function(b,c,e,m){return b&&"string"==typeof c&&b[c]==s?b.on(c.substring(2).toLowerCase(),d.hitch(e,m)):a.apply(f,
arguments)}}l.around(f,"connect",q);b.connect&&l.around(b,"connect",q);l=g("dijit._Widget",[r,x,n],{onClick:s,onDblClick:s,onKeyDown:s,onKeyPress:s,onKeyUp:s,onMouseDown:s,onMouseMove:s,onMouseOut:s,onMouseOver:s,onMouseLeave:s,onMouseEnter:s,onMouseUp:s,constructor:function(a){this._toConnect={};for(var b in a)this[b]===s&&(this._toConnect[b.replace(/^on/,"").toLowerCase()]=a[b],delete a[b])},postCreate:function(){this.inherited(arguments);for(var a in this._toConnect)this.on(a,this._toConnect[a]);
delete this._toConnect},on:function(a,b){return this[this._onMap(a)]===s?f.connect(this.domNode,a.toLowerCase(),this,b):this.inherited(arguments)},_setFocusedAttr:function(a){this._focused=a;this._set("focused",a)},setAttribute:function(a,c){b.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(a,c)},attr:function(a,c){if(k.isDebug){var d=arguments.callee._ach||(arguments.callee._ach={}),e=(arguments.callee.caller||"unknown caller").toString();
d[e]||(b.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+e,"","2.0"),d[e]=!0)}return 2<=arguments.length||"object"===typeof a?this.set.apply(this,arguments):this.get(a)},getDescendants:function(){b.deprecated(this.declaredClass+"::getDescendants() is deprecated. Use getChildren() instead.","","2.0");return this.containerNode?c("[widgetId]",this.containerNode).map(m.byNode):[]},_onShow:function(){this.onShow()},onShow:function(){},onHide:function(){},
onClose:function(){return!0}});e("dijit-legacy-requires")&&a(0,function(){require(["dijit/_base"])});return l})},"dijit/registry":function(){define(["dojo/_base/array","dojo/sniff","dojo/_base/window","./main"],function(l,k,f,g){var e={},b={},d={length:0,add:function(c){if(b[c.id])throw Error("Tried to register widget with id\x3d\x3d"+c.id+" but that id is already registered");b[c.id]=c;this.length++},remove:function(c){b[c]&&(delete b[c],this.length--)},byId:function(c){return"string"==typeof c?
b[c]:c},byNode:function(c){return b[c.getAttribute("widgetId")]},toArray:function(){var c=[],a;for(a in b)c.push(b[a]);return c},getUniqueId:function(c){var a;do a=c+"_"+(c in e?++e[c]:e[c]=0);while(b[a]);return"dijit"==g._scopeName?a:g._scopeName+"_"+a},findWidgets:function(c,a){function d(c){for(c=c.firstChild;c;c=c.nextSibling)if(1==c.nodeType){var f=c.getAttribute("widgetId");f?(f=b[f])&&e.push(f):c!==a&&d(c)}}var e=[];d(c);return e},_destroyAll:function(){g._curFocus=null;g._prevFocus=null;g._activeStack=
[];l.forEach(d.findWidgets(f.body()),function(b){b._destroyed||(b.destroyRecursive?b.destroyRecursive():b.destroy&&b.destroy())})},getEnclosingWidget:function(c){for(;c;){var a=1==c.nodeType&&c.getAttribute("widgetId");if(a)return b[a];c=c.parentNode}return null},_hash:b};return g.registry=d})},"dijit/main":function(){define(["dojo/_base/kernel"],function(l){return l.dijit})},"dijit/_WidgetBase":function(){define("require dojo/_base/array dojo/aspect dojo/_base/config dojo/_base/connect dojo/_base/declare dojo/dom dojo/dom-attr dojo/dom-class dojo/dom-construct dojo/dom-geometry dojo/dom-style dojo/has dojo/_base/kernel dojo/_base/lang dojo/on dojo/ready dojo/Stateful dojo/topic dojo/_base/window ./Destroyable dojo/has!dojo-bidi?./_BidiMixin ./registry".split(" "),
function(l,k,f,g,e,b,d,c,a,m,r,x,n,s,q,p,z,u,y,t,v,A,D){function B(a){return function(b){c[b?"set":"remove"](this.domNode,a,b);this._set(a,b)}}n.add("dijit-legacy-requires",!s.isAsync);n.add("dojo-bidi",!1);n("dijit-legacy-requires")&&z(0,function(){l(["dijit/_base/manager"])});var C={};g=b("dijit._WidgetBase",[u,v],{id:"",_setIdAttr:"domNode",lang:"",_setLangAttr:B("lang"),dir:"",_setDirAttr:B("dir"),"class":"",_setClassAttr:{node:"domNode",type:"class"},style:"",title:"",tooltip:"",baseClass:"",
srcNodeRef:null,domNode:null,containerNode:null,ownerDocument:null,_setOwnerDocumentAttr:function(a){this._set("ownerDocument",a)},attributeMap:{},_blankGif:g.blankGif||l.toUrl("dojo/resources/blank.gif"),_introspect:function(){var a=this.constructor;if(!a._setterAttrs){var b=a.prototype,c=a._setterAttrs=[],a=a._onMap={},d;for(d in b.attributeMap)c.push(d);for(d in b)/^on/.test(d)&&(a[d.substring(2).toLowerCase()]=d),/^_set[A-Z](.*)Attr$/.test(d)&&(d=d.charAt(4).toLowerCase()+d.substr(5,d.length-
9),(!b.attributeMap||!(d in b.attributeMap))&&c.push(d))}},postscript:function(a,b){this.create(a,b)},create:function(a,b){this._introspect();this.srcNodeRef=d.byId(b);this._connects=[];this._supportingWidgets=[];this.srcNodeRef&&"string"==typeof this.srcNodeRef.id&&(this.id=this.srcNodeRef.id);a&&(this.params=a,q.mixin(this,a));this.postMixInProperties();this.id||(this.id=D.getUniqueId(this.declaredClass.replace(/\./g,"_")),this.params&&delete this.params.id);this.ownerDocument=this.ownerDocument||
(this.srcNodeRef?this.srcNodeRef.ownerDocument:document);this.ownerDocumentBody=t.body(this.ownerDocument);D.add(this);this.buildRendering();var c;if(this.domNode){this._applyAttributes();var e=this.srcNodeRef;e&&(e.parentNode&&this.domNode!==e)&&(e.parentNode.replaceChild(this.domNode,e),c=!0);this.domNode.setAttribute("widgetId",this.id)}this.postCreate();c&&delete this.srcNodeRef;this._created=!0},_applyAttributes:function(){var a={},b;for(b in this.params||{})a[b]=this._get(b);k.forEach(this.constructor._setterAttrs,
function(b){if(!(b in a)){var c=this._get(b);c&&this.set(b,c)}},this);for(b in a)this.set(b,a[b])},postMixInProperties:function(){},buildRendering:function(){this.domNode||(this.domNode=this.srcNodeRef||this.ownerDocument.createElement("div"));if(this.baseClass){var b=this.baseClass.split(" ");this.isLeftToRight()||(b=b.concat(k.map(b,function(a){return a+"Rtl"})));a.add(this.domNode,b)}},postCreate:function(){},startup:function(){this._started||(this._started=!0,k.forEach(this.getChildren(),function(a){!a._started&&
(!a._destroyed&&q.isFunction(a.startup))&&(a.startup(),a._started=!0)}))},destroyRecursive:function(a){this._beingDestroyed=!0;this.destroyDescendants(a);this.destroy(a)},destroy:function(a){function b(c){c.destroyRecursive?c.destroyRecursive(a):c.destroy&&c.destroy(a)}this._beingDestroyed=!0;this.uninitialize();k.forEach(this._connects,q.hitch(this,"disconnect"));k.forEach(this._supportingWidgets,b);this.domNode&&k.forEach(D.findWidgets(this.domNode,this.containerNode),b);this.destroyRendering(a);
D.remove(this.id);this._destroyed=!0},destroyRendering:function(a){this.bgIframe&&(this.bgIframe.destroy(a),delete this.bgIframe);this.domNode&&(a?c.remove(this.domNode,"widgetId"):m.destroy(this.domNode),delete this.domNode);this.srcNodeRef&&(a||m.destroy(this.srcNodeRef),delete this.srcNodeRef)},destroyDescendants:function(a){k.forEach(this.getChildren(),function(b){b.destroyRecursive&&b.destroyRecursive(a)})},uninitialize:function(){return!1},_setStyleAttr:function(a){var b=this.domNode;q.isObject(a)?
x.set(b,a):b.style.cssText=b.style.cssText?b.style.cssText+("; "+a):a;this._set("style",a)},_attrToDom:function(b,d,e){e=3<=arguments.length?e:this.attributeMap[b];k.forEach(q.isArray(e)?e:[e],function(e){var m=this[e.node||e||"domNode"];switch(e.type||"attribute"){case "attribute":q.isFunction(d)&&(d=q.hitch(this,d));e=e.attribute?e.attribute:/^on[A-Z][a-zA-Z]*$/.test(b)?b.toLowerCase():b;m.tagName?c.set(m,e,d):m.set(e,d);break;case "innerText":m.innerHTML="";m.appendChild(this.ownerDocument.createTextNode(d));
break;case "innerHTML":m.innerHTML=d;break;case "class":a.replace(m,d,this[b])}},this)},get:function(a){var b=this._getAttrNames(a);return this[b.g]?this[b.g]():this._get(a)},set:function(a,b){if("object"===typeof a){for(var c in a)this.set(c,a[c]);return this}c=this._getAttrNames(a);var d=this[c.s];if(q.isFunction(d))var e=d.apply(this,Array.prototype.slice.call(arguments,1));else{var d=this.focusNode&&!q.isFunction(this.focusNode)?"focusNode":"domNode",m=this[d]&&this[d].tagName,f;if(f=m)if(!(f=
后面还有 363 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
