coo.mvc.static.dwz.dwz.min.js Maven / Gradle / Ivy
function Map(){this.elements=new Array,this.size=function(){return this.elements.length},this.isEmpty=function(){return this.elements.length<1},this.clear=function(){this.elements=new Array},this.put=function(t,e){this.remove(t),this.elements.push({key:t,value:e})},this.remove=function(t){try{for(i=0;it||t>=this.elements.length?null:this.elements[t]},this.containsKey=function(t){try{for(i=0;i");t.css("line-height","inherit"),t.addClass("fa");var e=$(this).attr("class").split(" ");for(var a in e)e[a].startsWith("fa-")&&(t.addClass(e[a]),$(this).removeClass(e[a]));$(this).is(":empty")||$(this).prepend(" "),$(this).prepend(t)}),$("div.slider").each(function(){var t=$(this),e={width:t.attr("width")||"100%",height:t.attr("height")||"100%",responsive:!0,nexttext:'',prevtext:''};t.bjqs(e)}),$.fn.viewSource&&$("a.viewsource",$p).viewSource(),$.each(DWZ.regPlugins,function(t,e){e($p)})}function validateCallback(t,e,a){var i=$(t);if(!i.valid())return!1;var n=function(){$.ajax({type:t.method||"POST",url:i.attr("action"),data:i.serializeArray(),dataType:"json",cache:!1,success:e||DWZ.ajaxDone,error:DWZ.ajaxError})};return a?alertMsg.confirm(a,{okCall:n}):n(),!1}function iframeCallback(t,e){var a=$(t),i=$("#callbackframe");return a.valid()?(0==i.size()&&(i=$("").appendTo("body")),t.ajax||a.append(''),t.target="callbackframe",void _iframeResponse(i[0],e||DWZ.ajaxDone)):!1}function _iframeResponse(t,e){var a=$(t),i=$(document);i.trigger("ajaxStart"),a.bind("load",function(){if(a.unbind("load"),i.trigger("ajaxStop"),"javascript:'%3Chtml%3E%3C/html%3E';"!=t.src&&"javascript:'';"!=t.src){var n=t.contentDocument||t.document;if(!(n.readyState&&"complete"!=n.readyState||n.body&&"false"==n.body.innerHTML)){var r;if(n.XMLDocument)r=n.XMLDocument;else if(n.body)try{r=a.contents().find("body").text(),r=jQuery.parseJSON(r)}catch(s){r=n.body.innerHTML}else r=n;e(r)}}})}function allAjaxDone(t){DWZ.ajaxDone(t),t[DWZ.keys.statusCode]==DWZ.statusCode.ok&&(_reloadDiv(t),_closeDialog(t),_reloadDialog(t),_reloadNavTab(t),_closeNavTab(t))}function ajaxSearch(t){var e=$(t),a=e.attr("rel");return a?_reloadDiv({reloadDiv:[a]}):e.unitBox().hasClass("dialogContent")?_reloadDialog({reloadDialog:[""]}):_reloadNavTab({reloadNavTab:[""]}),!1}function _closeNavTab(t){for(var e=_parseToResults(t.closeNavTab),a=0;a0))return e;if(e=$("#"+t,navTab.getCurrentPanel()),e.length>0)return e;throw new Error("当前页面未找到[id="+t+"的元素。")}function _parseToResults(t){var e=[];if(t)for(var a=0;a=0&&this.lastIndexOf(t)===e},replaceSuffix:function(t){return this.replace(/\[[0-9]+\]/,"["+t+"]").replace("#index#",t)},trans:function(){return this.replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"')},encodeTXT:function(){return this.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll(" "," ")},replaceAll:function(t,e){return this.replace(new RegExp(t,"gm"),e)},replaceTm:function(t){return t?this.replace(RegExp("({[A-Za-z_]+[A-Za-z0-9_]*})","g"),function(e){return t[e.replace(/[{}]+/g,"")]}):this},replaceTmById:function(t){var e=t||$(document);return this.replace(RegExp("({[A-Za-z_]+[A-Za-z0-9_]*})","g"),function(t){var a=e.find("#"+t.replace(/[{}]+/g,""));return a.val()?a.val():t})},isFinishedTm:function(){return!new RegExp("{[A-Za-z_]+[A-Za-z0-9_]*}").test(this)},skipChar:function(t){return this&&0!==this.length?this.charAt(0)===t?this.substring(1).skipChar(t):this:""},isValidPwd:function(){return new RegExp(/^([_]|[a-zA-Z0-9]){6,32}$/).test(this)},isValidMail:function(){return new RegExp(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/).test(this.trim())},isSpaces:function(){for(var t=0;t|\/\\]/g,"\\$&")},toJson:function(){return this.length>0?$.parseJSON('{"'+decodeURI(this.replace(/&/g,'","').replace(/=/g,'":"'))+'"}'):{}},cleanParams:function(){var t=this.indexOf("?");return-1==t?this:this.substring(0,t)},getParams:function(){var t=this.indexOf("?");if(-1==t)return{};var e=this.substring(t+1);return e.toJson()}})}(),function(){function LZ(t){return(0>t||t>9?"":"0")+t}function formatDate(t,e){e+="";var a,i="",n=0,r="",s="",o=t.getYear()+"",l=t.getMonth()+1,c=t.getDate(),d=t.getDay(),a=t.getHours(),h=t.getMinutes(),u=t.getSeconds(),f={};for(o.length<4&&(o=""+(o-0+1900)),f.y=""+o,f.yyyy=o,f.yy=o.substring(2,4),f.M=l,f.MM=LZ(l),f.MMM=MONTH_NAMES[l-1],f.NNN=MONTH_NAMES[l+11],f.d=c,f.dd=LZ(c),f.E=DAY_NAMES[d+7],f.EE=DAY_NAMES[d],f.H=a,f.HH=LZ(a),0==a?f.h=12:a>12?f.h=a-12:f.h=a,f.hh=LZ(f.h),a>11?f.K=a-12:f.K=a,f.k=a+1,f.KK=LZ(f.K),f.kk=LZ(f.k),a>11?f.a="PM":f.a="AM",f.m=h,f.mm=LZ(h),f.s=u,f.ss=LZ(u);n=a;n--){var r=t.substring(e,e+n);if(r.length70?1900+(c-0):2e3+(c-0))}else if("MMM"==o||"NNN"==o){d=0;for(var v=0;v11)){d=v+1,d>12&&(d-=12),n+=m.length;break}}if(1>d||d>12)return 0}else if("EE"==o||"E"==o)for(var v=0;vd||d>12)return 0;n+=d.length}else if("dd"==o||"d"==o){if(h=_getInt(t,n,o.length,2),null==h||1>h||h>31)return 0;n+=h.length}else if("hh"==o||"h"==o){if(u=_getInt(t,n,o.length,2),null==u||1>u||u>12)return 0;n+=u.length}else if("HH"==o||"H"==o){if(u=_getInt(t,n,o.length,2),null==u||0>u||u>23)return 0;n+=u.length}else if("KK"==o||"K"==o){if(u=_getInt(t,n,o.length,2),null==u||0>u||u>11)return 0;n+=u.length}else if("kk"==o||"k"==o){if(u=_getInt(t,n,o.length,2),null==u||1>u||u>24)return 0;n+=u.length,u--}else if("mm"==o||"m"==o){if(f=_getInt(t,n,o.length,2),null==f||0>f||f>59)return 0;n+=f.length}else if("ss"==o||"s"==o){if(p=_getInt(t,n,o.length,2),null==p||0>p||p>59)return 0;n+=p.length}else if("a"==o){if("am"==t.substring(n,n+2).toLowerCase())g="AM";else{if("pm"!=t.substring(n,n+2).toLowerCase())return 0;g="PM"}n+=2}else{if(t.substring(n,n+o.length)!=o)return 0;n+=o.length}}if(n!=t.length)return 0;if(2==d)if(c%4==0&&c%100!=0||c%400==0){if(h>29)return 0}else if(h>28)return 0;return(4==d||6==d||9==d||11==d)&&h>30?0:(12>u&&"PM"==g?u=u-0+12:u>11&&"AM"==g&&(u-=12),new Date(c,d-1,h,u,f,p))}function replaceTmEval(data){return data.replace(RegExp("({[A-Za-z0-9_+-]*})","g"),function($1){return eval("("+$1.replace(/[{}]+/g,"")+")")})}var MONTH_NAMES=new Array("January","February","March","April","May","June","July","August","September","October","November","December","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"),DAY_NAMES=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sun","Mon","Tue","Wed","Thu","Fri","Sat");Date.prototype.formatDate=function(t){return formatDate(this,t)},String.prototype.parseDate=function(t){return this.length0&&(r=l[0]),l.length>1&&(s=l[1]-1),l.length>2&&(o=l[2]),new Date(r,s,o).formatDate("yyyy-MM-dd")}}();var DWZ={regPlugins:[],keyCode:{ENTER:13,ESC:27,END:35,HOME:36,SHIFT:16,TAB:9,LEFT:37,RIGHT:39,UP:38,DOWN:40,DELETE:46,BACKSPACE:8},eventType:{pageClear:"pageClear",resizeGrid:"resizeGrid"},isOverAxis:function(t,e,a){return t>e&&e+a>t},isOver:function(t,e,a,i,n,r){return this.isOverAxis(t,a,n)&&this.isOverAxis(e,i,r)},pageInfo:{pageNum:"pageNum",numPerPage:"numPerPage",orderField:"orderField",orderDirection:"orderDirection"},statusCode:{ok:"200",error:"300",timeout:"301"},keys:{statusCode:"statusCode",message:"message"},ui:{sbar:!0,hideMode:"display"},dialogWidth:{SSS:300,SS:400,S:500,M:700,L:900,XL:1100},dialogHeight:{SSS:250,SS:300,S:400,M:500,L:600,XL:700},frag:{dialogFrag:'',dialogProxy:'',taskbar:' ',dwzFrag:' 数据加载中,请稍等...',pagination:'',alertBoxFrag:' #title#
#message# #butFragment#
',alertButFrag:' #butMsg# ',calendarFrag:' ×
- 日
- 一
- 二
- 三
- 四
- 五
- 六
日期列表选项
: : - ∧
- ∨
- 0
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 0
- 5
- 10
- 15
- 20
- 25
- 30
- 35
- 40
- 45
- 50
- 55
- 0
- 10
- 20
- 30
- 40
- 50
',navTabCM:' ',dialogCM:' - 关闭弹出窗口
- 关闭其它弹出窗口
- 关闭全部弹出窗口
',externalFrag:''},_msg:{statusCode_503:"服务器当前负载过大或者正在维护。",validateFormError:"{0}项内容填写有误,请检查更正。",sessionTimout:"会话超时,请重新登录。",alertSelectMsg:"请选择要操作的记录。",forwardConfirmMsg:"继续下一步。",dwzTitle:"DWZ富客户端框架",mainTabTitle:"我的首页"},_set:{loginUrl:"",loginTitle:"",debug:!1},msg:function(t,e){var a=function(t,e){e=e||[];for(var a=t||"",i=0;i您访问的页面未找到。 "):"500"==t.status?alertMsg.error("服务器暂时繁忙,请稍候重试或与管理员联系。"):"403"==t.status?alertMsg.error("您没有执行该操作的权限,请与管理员联系。"):alertMsg.error("Http status: "+t.status+" "+t.statusText+"ajaxOptions: "+e+"thrownError: "+a+""+t.responseText+""):"404"==t.status?alert("您访问的页面未找到。"):"500"==t.status?alert("服务器暂时繁忙,请稍候重试或与管理员联系。"):"403"==t.status?alert("您没有执行该操作的权限,请与管理员联系。"):alert("Http status: "+t.status+" "+t.statusText+"ajaxOptions: "+e+"thrownError: "+a+""+t.responseText+"")},ajaxDone:function(t){var e=t[DWZ.keys.statusCode],a=t[DWZ.keys.message];switch(e){case DWZ.statusCode.error:a&&alertMsg&&alertMsg.error(a);break;case DWZ.statusCode.timeout:alertMsg?alertMsg.error(a||DWZ.msg("sessionTimout"),{okCall:DWZ.loadLogin}):DWZ.loadLogin();break;case DWZ.statusCode.ok:a&&alertMsg&&alertMsg.correct(a)}},init:function(t){var e=$.extend({loginUrl:"login.html",loginTitle:null,callback:null,debug:!1,statusCode:{},keys:{}},t);this._set.loginUrl=e.loginUrl,this._set.loginTitle=e.loginTitle,this._set.debug=e.debug,$.extend(DWZ.statusCode,e.statusCode),$.extend(DWZ.keys,e.keys),$.extend(DWZ.pageInfo,e.pageInfo),$.extend(DWZ.ui,e.ui),jQuery.isFunction(e.callback)&&e.callback();var a=$(document);a.isBind(DWZ.eventType.pageClear)||a.bind(DWZ.eventType.pageClear,function(t){var e=t.target;$.fn.xheditor&&$("textarea.editor",e).xheditor(!1)})},openNavMenu:function(t){var e=t||0;$("a",$("#navMenu")).eq(e).click()},hideSideBar:function(){var t=$("#sidebar"),e=$("#sidebar > .toggleCollapse > div");"none"!=t.css("display")&&e.click()},showSideBar:function(){var t=$("#sidebar_s"),e=$("#sidebar_s > .collapse > .toggleCollapse > div");"none"!=t.css("display")&&e.click()}};!function(t){t.setRegional=function(e,a){t.regional||(t.regional={}),t.regional[e]=a},t.fn.extend({ajaxUrl:function(e){var a=t(this);a.trigger(DWZ.eventType.pageClear),t.ajax({type:e.type||"GET",dataType:"html",url:e.url,data:e.data,cache:!1,success:function(i){var n=DWZ.jsonEval(i);n[DWZ.keys.statusCode]==DWZ.statusCode.error?n[DWZ.keys.message]&&alertMsg.error(n[DWZ.keys.message]):(a.html(i).initUI(),t.isFunction(e.callback)&&e.callback(i)),n[DWZ.keys.statusCode]==DWZ.statusCode.timeout&&(t.pdialog&&t.pdialog.checkTimeout(),navTab&&navTab.checkTimeout(),alertMsg.error(n[DWZ.keys.message]||DWZ.msg("sessionTimout"),{okCall:function(){DWZ.loadLogin()}}))},error:DWZ.ajaxError,statusCode:{503:function(t,e,a){alert(DWZ.msg("statusCode_503")||a)}}})},loadUrl:function(e,a,i){t(this).ajaxUrl({url:e,data:a,callback:i})},initUI:function(){return this.each(function(){t.isFunction(initUI)&&initUI(this)})},layoutH:function(e){return this.each(function(){var a=t(this);e||(e=a.parents("div.layoutBox:first"));var i=e.height(),n=parseInt(a.attr("layoutH")),r=i-n>50?i-n:50;a.isTag("table")?a.removeAttr("layoutH").wrap(''):a.height(r).css("overflow","auto")})},hoverClass:function(e,a){var i=e||"hover";return this.each(function(){var e,n=t(this);n.hover(function(){e&&clearTimeout(e),n.addClass(i)},function(){e=setTimeout(function(){n.removeClass(i)},a||10)})})},focusClass:function(e){var a=e||"textInputFocus";return this.each(function(){t(this).focus(function(){t(this).addClass(a)}).blur(function(){t(this).removeClass(a)})})},inputAlert:function(){return this.each(function(){function e(){return i.parent().find("label.alt")}function a(t){var e=i.position();return{width:i.width(),top:e.top+"px",left:e.left+"px",opacity:t||.5}}var i=t(this);if(e().size()<1){i.attr("id")||i.attr("id",i.attr("name")+"_"+Math.round(1e4*Math.random()));var n=t('").appendTo(i.parent());n.css(a(.5)).show(),i.val()&&n.hide()}i.focus(function(){e().css(a(.3))}).blur(function(){t(this).val()||e().show().css("opacity",.5)}).keydown(function(){e().hide()})})},isTag:function(e){return e?t(this)[0].tagName.toLowerCase()==e:!1},isBind:function(e){var a=t(this).data("events");return a&&e&&a[e]},log:function(t){return this.each(function(){console&&console.log("%s: %o",t,this)})},viewSource:function(){t(this).each(function(){t(this).click(function(t){t.preventDefault(),window.open("view-source:"+this.href)})})},unitBox:function(){return t(this).closest("div.unitBox")},getPagerForm:function(){var e=t(this).find(".pagerForm");if(0===e.length&&(e=t(this).unitBox().find(".pagerForm")),e.length>1)throw new Error("获取pagerForm时,查找到多个pagerForm,请检查代码解决冲突。");return 0===e.length?null:e},serializeJson:function(){var e={},a=t(this).serializeArray();return t.isEmptyObject(a)||jQuery.each(a,function(t,a){e[a.name]=a.value}),e}})}(jQuery),function($){if($.validator){var match=function(t,e,a){if(t){if(e instanceof RegExp)return e.test(t);a=a||"g";var i=new RegExp(e,a);return i.test(t)}return!0},getTarget=function(t,e){var a=$(t).closest("form"),i=a.find("[name="+e+"]");return 0==i.length&&(i=$(e,a)),i};$.validator.addMethod("alphanumeric",function(t,e){return this.optional(e)||match(t,/^\w+$/i)},"请输入字母、数字、下划线。"),$.validator.addMethod("lettersonly",function(t,e){return this.optional(e)||match(t,/^[a-z]+$/i)},"请输入字母。"),$.validator.addMethod("phone",function(t,e){return this.optional(e)||match(t,/^[0-9 \(\)]{7,30}$/)},"请输入正确格式的电话号码。"),$.validator.addMethod("postcode",function(t,e){return this.optional(e)||match(t,/^[0-9 A-Za-z]{5,20}$/)},"请输入正确格式的邮政编码。"),$.validator.addMethod("date",function(t,e){t=t.replace(/\s+/g,"");var a=$(e),i=a.attr("dateFmt")||"yyyy-MM-dd";return!t||t.parseDate(i)},"请输入正确格式的日期。"),$.validator.addMethod("time",function(t,e){t=t.replace(/\s+/g,"");var a=$(e),i=a.attr("timeFmt")||"HH:mm";return!t||t.parseDate(i)},"请输入正确格式的时间。"),$.validator.addMethod("price",function(t,e){return this.optional(e)||match(t,/^\d+[\.]?\d{0,2}$/)},"请输入正确格式的价格。"),$.validator.addMethod("params",function(t,e){return this.optional(e)||match(t,/^\s*[^\s=]+[ ]*=[ ]*[^\s=]+\s*$|^\s*[^\s=]+[ ]*=[ ]*[^\s=]+\s*\n+(\s*[^\s=]+[ ]*=[ ]*[^\s=]+\s*\n)*(\s*[^\s=]+[ ]*=[ ]*[^\s=]+\s*)$/g)},"请输入正确格式的参数。"),$.validator.addMethod("eqTo",function(t,e,a){var i=getTarget(e,a);return t===i.val()},"请再次输入相同的值。"),
$.validator.addMethod("gtTo",function(t,e,a){var i=getTarget(e,a);return t&&i.val()?parseFloat(t)>parseFloat(i.val()):!0},"截止值必须大于起始值。"),$.validator.addMethod("geTo",function(t,e,a){var i=getTarget(e,a);return t&&i.val()?parseFloat(t)>=parseFloat(i.val()):!0},"截止值必须大于等于起始值。"),$.validator.addMethod("ltTo",function(t,e,a){var i=getTarget(e,a);return t&&i.val()?parseFloat(t)n.val().parseDate(s):!0},"截止日期必须大于起始日期。"),$.validator.addMethod("geToDate",function(t,e,a){var i=$(e),n=getTarget(e,a),r=i.attr("dateFmt")||"yyyy-MM-dd",s=n.attr("dateFmt")||"yyyy-MM-dd";return i.val()&&n.val()?i.val().parseDate(r)>=n.val().parseDate(s):!0},"截止日期必须大于等于起始日期。"),$.validator.addMethod("gtToTime",function(t,e,a){var i=$(e),n=getTarget(e,a),r=i.attr("timeFmt")||"HH:mm",s=n.attr("timeFmt")||"HH:mm";return i.val()&&n.val()?i.val().parseDate(r)>n.val().parseDate(s):!0},"截止时间必须大于起始时间。"),$.validator.addMethod("geToTime",function(t,e,a){var i=$(e),n=getTarget(e,a),r=i.attr("timeFmt")||"HH:mm",s=n.attr("timeFmt")||"HH:mm";return i.val()&&n.val()?i.val().parseDate(r)>=n.val().parseDate(s):!0},"截止时间必须大于等于起始时间。"),$.validator.addMethod("customvalid",function(value,element,params){try{return eval("("+params+")")}catch(e){return!1}},"请修正该字段信息。"),$.validator.addClassRules({date:{date:!0},alphanumeric:{alphanumeric:!0},lettersonly:{lettersonly:!0},phone:{phone:!0},postcode:{postcode:!0},time:{time:!0},price:{price:!0},params:{params:!0}}),$.validator.setDefaults({errorElement:"span",errorPlacement:function(t,e){t.addClass("fa fa-bell-o red test"),e.attr("title",t.text()),e.hasClass("hideError")||(e.is("input:checkbox")&&e.parent().is("label.unit")?e.parent().parent().append(t):e.parent().append(t)),t.empty()}}),$.validator.autoCreateRanges=!0,$.validator.prototype.showLabel=function(t,e){var a=this.errorsFor(t);a.length?(a.removeClass(this.settings.validClass).addClass(this.settings.errorClass),a.html(e).attr("title",e)):(a=$("<"+this.settings.errorElement+">"),a.attr("for",this.idOrName(t)),a.addClass(this.settings.errorClass),a.html(e||"").attr("title",e||""),this.settings.wrapper&&(a=a.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.append(a).length||(this.settings.errorPlacement?this.settings.errorPlacement(a,$(t)):a.insertAfter(t))),!e&&this.settings.success&&(a.text("").attr("title",""),"string"==typeof this.settings.success?a.addClass(this.settings.success):this.settings.success(a,t)),this.toShow=this.toShow.add(a)}}}(jQuery),function(t){t.fn.cssv=function(e){var a=t(this).css(e);return 1*a.substring(0,a.indexOf("px"))},t.fn.jBar=function(e){var a=t.extend({container:"#container",collapse:".collapse",toggleBut:".toggleCollapse div",sideBar:"#sidebar",sideBar2:"#sidebar_s",splitBar:"#splitBar",splitBar2:"#splitBarProxy"},e);return this.each(function(){var i=this,n=t(a.sideBar2,i),r=t(a.sideBar,i);t(a.toggleBut,r).click(function(){DWZ.ui.sbar=!1,t(a.splitBar).hide();var e=n.cssv("left")+n.outerWidth(),i=e-r.outerWidth(),s=t(a.container).cssv("left")-(r.outerWidth()-n.outerWidth()),o=r.outerWidth()-n.outerWidth()+t(a.container).outerWidth();return t(a.container).animate({left:s,width:o},50,function(){r.animate({left:i},500,function(){r.hide(),n.show().css("left",-50).animate({left:5},200),t(window).trigger(DWZ.eventType.resizeGrid)})}),t(a.collapse,n).click(function(){function e(){t(a.container).unbind("click",e),DWZ.ui.sbar||r.animate({left:i},500,function(){r.hide()})}var s=n.cssv("left")+n.outerWidth();return r.is(":hidden")?(t(a.toggleBut,r).hide(),r.show().animate({left:s},500),t(a.container).click(e)):r.animate({left:i},500,function(){r.hide()}),!1}),!1}),t(a.toggleBut,n).click(function(){return DWZ.ui.sbar=!0,n.animate({left:-25},200,function(){r.show()}),r.animate({left:5},800,function(){t(a.splitBar).show(),t(a.toggleBut,r).show();var e=5+r.outerWidth()+t(a.splitBar).outerWidth(),i=t(a.container).outerWidth()-(e-t(a.container).cssv("left"));t(a.container).css({left:e,width:i}),t(a.collapse,n).unbind("click"),t(window).trigger(DWZ.eventType.resizeGrid)}),!1}),t(a.splitBar).mousedown(function(i){t(a.splitBar2).each(function(){var n=t(this);return setTimeout(function(){n.show()},100),n.css({visibility:"visible",left:t(a.splitBar).css("left")}),n.jDrag(t.extend(e,{obj:t("#sidebar"),move:"horizontal",event:i,stop:function(){t(this).css("visibility","hidden");var e=t(this).cssv("left")-t(a.splitBar).cssv("left"),i=r.outerWidth()+e,n=t(a.container).cssv("left")+e,s=t(a.container).outerWidth()-e;r.css("width",i),t(a.splitBar).css("left",t(this).css("left")),t(a.container).css({left:n,width:s})}})),!1})})})}}(jQuery),function(t){t.fn.jDrag=function(e){return"string"==typeof e&&"destroy"==e?this.each(function(){t(this).unbind("mousedown",t.rwdrag.start),t.data(this,"pp-rwdrag",null)}):this.each(function(){var a=t(this);if(t.data(t.rwdrag,"pp-rwdrag",{options:t.extend({el:a,obj:a},e)}),e.event)t.rwdrag.start(e.event);else{var i=e.selector;t(i,obj).bind("mousedown",t.rwdrag.start)}})},t.rwdrag={start:function(e){document.onselectstart=function(t){return!1};var a=t.data(this,"pp-rwdrag"),i=a.options.el[0];t.data(i,"pp-rwdrag",{options:a.options}),t.rwdrag.current||(t.rwdrag.current={el:i,oleft:parseInt(i.style.left)||0,otop:parseInt(i.style.top)||0,ox:e.pageX||e.screenX,oy:e.pageY||e.screenY},t(document).bind("mouseup",t.rwdrag.stop).bind("mousemove",t.rwdrag.drag))},drag:function(e){if(!e)var e=window.event;var a=t.rwdrag.current,i=t.data(a.el,"pp-rwdrag"),n=a.oleft+(e.pageX||e.clientX)-a.ox,r=a.otop+(e.pageY||e.clientY)-a.oy;if(1>r&&(r=0),"horizontal"==i.options.move)i.options.minW&&n>=t(i.options.obj).cssv("left")+i.options.minW&&i.options.maxW&&n<=t(i.options.obj).cssv("left")+i.options.maxW?a.el.style.left=n+"px":i.options.scop&&(i.options.relObj?n-parseInt(i.options.relObj.style.left)>i.options.cellMinW&&(a.el.style.left=n+"px"):a.el.style.left=n+"px");else if("vertical"==i.options.move)a.el.style.top=r+"px";else{var s=i.options.selector?t(i.options.selector,i.options.obj):t(i.options.obj);n>=2*-s.outerWidth()/3&&r>=0&&n+s.outerWidth()/3li",$this).each(function(){var t=$(this),e=!t.prev()[0],a=!t.next()[0];t.genTree({icon:$this.hasClass("treeFolder"),ckbox:$this.hasClass("treeCheck"),options:op,level:0,exp:cnum>1?e?op.firstExp:a?op.lastExp:op.exp:op.endExp,coll:cnum>1?e?op.firstColl:a?op.lastColl:op.coll:op.endColl,showSub:!$this.hasClass("collapse")&&($this.hasClass("expand")||(cnum>1?!!e:!0)),isLast:cnum>1?!!a:!0})}),setTimeout(function(){if($this.hasClass("treeCheck")){var checkFn=eval($this.attr("oncheck"));checkFn&&$.isFunction(checkFn)&&$("div.ckbox",$this).each(function(){var t=$(this);t.click(function(){var e=$(t).hasClass("checked"),a=[];if(e){var i=$(t).parent().parent(),n=$("input",i);n.size()>1?$(n).each(function(){a[a.length]={name:$(this).attr("name"),value:$(this).val(),text:$(this).attr("text")}}):a={name:n.attr("name"),value:n.val(),text:n.attr("text")}}checkFn({checked:e,items:a})})})}$("a",$this).click(function(t){$("div."+op.selected,$this).removeClass(op.selected);var e=$(this).parent().addClass(op.selected),a=$(this).parents("li:first"),i=a.attr("target");return i&&(0==$("#"+i,$this).size()&&$this.prepend(''),$("#"+i,$this).val(a.attr("rel"))),$(".ckbox",e).trigger("click"),t.stopPropagation(),$(document).trigger("click"),$(this).attr("target")?void 0:!1})},1)})},subTree:function(t,e){return this.each(function(){$(">li",this).each(function(){var a=$(this),i=!a.next()[0];a.genTree({icon:t.icon,ckbox:t.ckbox,exp:i?t.options.lastExp:t.options.exp,coll:i?t.options.lastColl:t.options.coll,options:t.options,level:e,space:i?null:t.space,showSub:t.showSub,isLast:i})})})},genTree:function(t){function e(t,e){if(t>0){var a=e.parent().parent(),i=a.next()[0]?"line":"indent",n="";if(t>1){for(var r=$(">div>div",a).filter(":first"),s="";t>1;)s=s+"",r=r.next(),t--;n=s+n}$(">div",e).prepend(n)}}var a=$.extend({icon:t.icon,ckbox:t.ckbox,exp:"",coll:"",showSub:!1,level:0,options:null,isLast:!1},t);return this.each(function(){var t=$(this),i=$(">ul",t),n=t.parent().prev(),r="unchecked";a.ckbox&&$(">.checked",n).size()>0&&(r="checked"),i.size()>0?(t.children("a,span").wrapAll(""),$(">div",t).prepend(""+(a.ckbox?"":"")+(a.icon?"":"")),a.showSub?i.show():i.hide(),$(">div>div:first,>div>a",t).click(function(){var e=$(">li:first",i);e.children(":first").isTag("a")&&i.subTree(a,a.level+1);var n=$(this),r=n.isTag("a"),n=r?$(">div>div",t).eq(a.level):n;return r&&!i.is(":hidden")||(n.toggleClass(a.exp).toggleClass(a.coll),a.icon&&$(">div>div:last",t).toggleClass(a.options.folderExp).toggleClass(a.options.folderColl)),i.is(":hidden")?i.slideDown("fast"):r?"":i.slideUp("fast"),!1}),e(a.level,t),a.showSub&&i.subTree(a,a.level+1)):(t.children().wrapAll(""),$(">div",t).prepend(""+(a.ckbox?"":"")+(a.icon?"":"")),e(a.level,t),a.isLast&&$(t).addClass("last")),a.ckbox&&t._check(a),$(">div",t).mouseover(function(){$(this).addClass("hover")}).mouseout(function(){$(this).removeClass("hover")}),$.browser.msie&&$(">div",t).click(function(){return $("a",this).trigger("click"),!1})})},_check:function(t){var e=$(this),a=$(">div>.ckbox",e),i=e.find("a"),n=i.attr("tname"),r=i.attr("tvalue"),s="text='"+i.text()+"' ";n&&(s+="name='"+n+"' "),r&&(s+="value='"+r+"' "),a.append("").click(function(){var t=a.hasClass("checked"),i=t?"unchecked":"checked",n=t?"checked":"unchecked";return a.removeClass(n).removeClass(t?"":"indeterminate").addClass(i),$("input",a).attr("checked",!t),$(">ul",e).find("li").each(function(){var e=$("div.ckbox",this);e.removeClass(n).removeClass(t?"":"indeterminate").addClass(i).find("input").attr("checked",!t)}),$(e)._checkParent(),!1});var o=i.attr("checked")||!1;o&&(a.find("input").attr("checked",!0),a.removeClass("unchecked").addClass("checked"),$(e)._checkParent())},_checkParent:function(){if(!$(this).parent().hasClass("tree")){var t=$(this).parent().parent(),e=$(">ul",t),a=e.find(">li>a").size()+e.find("div.ckbox").size(),i=e.find("div.checked").size(),n=i==a?"checked":0!=i?"indeterminate":"unchecked",r=i==a?"indeterminate":0!=i?"checked":"indeterminate";$(">div>.ckbox",t).removeClass("unchecked").removeClass("checked").removeClass(r).addClass(n);var s=$(":checkbox",t);"checked"==n?s.attr("checked","checked"):"unchecked"==n&&s.removeAttr("checked"),t._checkParent()}}})}(jQuery),function(t){function e(t,e){return function(){return t.apply(e,arguments)}}function a(e){if(t.data(this,"dwz-accordion")){var a=t.data(this,"dwz-accordion"),i=a.options;i.running=e?0:--i.running,i.running||(i.clearStyle&&i.toShow.add(i.toHide).css({height:"",overflow:""}),t(this).triggerHandler("change.dwz-accordion",[i.data],i.change))}}function i(e){var a=o.get(e);if(a){var i=t(a).parent(),n=i.height()-t(".accordionHeader",a).size()*t(".accordionHeader:first-child",a).outerHeight()-2,r=i.children().not(a);t.each(r,function(e){n-=t(r[e]).outerHeight()}),t(".accordionContent",a).height(n)}}function n(i,n,r,s,o){var l=t.data(this,"dwz-accordion").options;l.toShow=i,l.toHide=n,l.data=r;var c=e(a,this);l.running=0==n.size()?i.size():n.size(),l.animated?!l.alwaysOpen&&s?t.dwz.accordion.animations[l.animated]({toShow:jQuery([]),toHide:n,complete:c,down:o,autoheight:l.autoheight}):t.dwz.accordion.animations[l.animated]({toShow:i,toHide:n,complete:c,down:o,autoheight:l.autoheight}):(!l.alwaysOpen&&s?i.toggle():(n.hide(),i.show()),c(!0))}function r(e){var a=t.data(this,"dwz-accordion").options;if(a.disabled)return!1;if(!e.target&&!a.alwaysOpen){a.active.find("h2").toggleClass(a.selectedClass);var i=a.active.next(),r={instance:this,options:a,newHeader:jQuery([]),oldHeader:a.active,newContent:jQuery([]),oldContent:i},s=a.active=t([]);return n.call(this,s,i,r),!1}var o=t(e.target);if(o.parents(a.header).length)for(;!o.is(a.header);)o=o.parent();var l=o[0]==a.active[0];if(a.running||a.alwaysOpen&&l)return!1;if(o.is(a.header)){a.active.find("h2").toggleClass(a.selectedClass),l||o.find("h2").addClass(a.selectedClass);var s=o.next(),i=a.active.next(),r={instance:this,options:a,newHeader:o,oldHeader:a.active,newContent:s,oldContent:i},c=a.headers.index(a.active[0])>a.headers.index(o[0]);return a.active=l?t([]):o,n.call(this,s,i,r,l,c),!1}}function s(e,a){return void 0!=a?"number"==typeof a?e.filter(":eq("+a+")"):e.not(e.not(a)):a===!1?t([]):e.filter(":eq(0)")}var o=new Map;t.dwz=t.dwz||{},t(window).resize(function(){setTimeout(function(){for(var t=0;tli[theme]"),i=function(i){t("head").find("link[href^='"+a.themeBase+"']").each(function(){var e=t(this).attr("href"),n=e.substring(e.lastIndexOf("/"));t(this).attr("href",a.themeBase+"/"+i+n)}),e.find(">div").removeClass("selected"),e.filter("[theme="+i+"]").find(">div").addClass("selected"),t.isFunction(t.cookie)&&t.cookie("dwz_theme",i)};if(e.each(function(e){var a=t(this),n=a.attr("theme");a.addClass(n).click(function(){i(n)})}),t.isFunction(t.cookie)){var n=t.cookie("dwz_theme");n&&i(n)}})}})}(jQuery),function(t){function e(e){e.addClass("selected"),t(document).bind("click",{box:e},i)}function a(e){e.removeClass("selected"),t(document).unbind("click",i)}function i(t){a(t.data.box)}t.fn.navMenu=function(){return this.each(function(){var e=t(this);e.find("li>a").click(function(){var a=t(this);return t.post(a.attr("href"),{},function(i){try{var n=t.parseJSON(i);DWZ.ajaxDone(n)}catch(r){t("#sidebar").find(".accordion").remove().end().append(i).initUI(),e.find("li").removeClass("selected"),a.parent().addClass("selected")}},"html"),!1})})},t.fn.switchEnv=function(){return this.each(function(){var i=t(this);i.click(function(){return i.hasClass("selected")?a(i):e(i),!1}),i.find(">ul>li>a").click(function(t){t.stopPropagation()})})}}(jQuery),$.setRegional("alertMsg",{title:{error:"Error",info:"Information",warn:"Warning",correct:"Successful",confirm:"Confirmation"},butMsg:{ok:"OK",yes:"Yes",no:"No",cancel:"Cancel"}});var alertMsg={_boxId:"#alertMsgBox",_bgId:"#alertBackground",_closeTimer:null,_types:{error:"error",info:"info",warn:"warn",correct:"correct",confirm:"confirm"},_getTitle:function(t){return $.regional.alertMsg.title[t]},_keydownOk:function(t){return t.keyCode==DWZ.keyCode.ENTER&&t.data.target.trigger("click"),!1},_keydownEsc:function(t){t.keyCode==DWZ.keyCode.ESC&&t.data.target.trigger("click")},_open:function(t,e,a){$(this._boxId).remove();var i="";if(a)for(var n=0;n ').appendTo("body").hide()),n||(n=t('').appendTo("body").hide()),r=r||[],r.push({id:a,shadow:o.shadow,bindings:o.bindings||{},ctrSub:o.ctrSub});var l=r.length-1;return t(this).bind("contextmenu",function(t){return e(l,this,t,o),!1}),this}})}(jQuery);var navTab={componentBox:null,_tabBox:null,_prevBut:null,_nextBut:null,_panelBox:null,_moreBut:null,_moreBox:null,_currentIndex:0,_op:{id:"navTab",stTabBox:".navTab-tab",stPanelBox:".navTab-panel",mainTabId:"main",close$:"a.close",prevClass:"tabsLeft",nextClass:"tabsRight",stMore:".tabsMore",stMoreLi:"ul.tabsMoreList"},init:function(t){$.History&&$.History.init("#container");var e=this;$.extend(this._op,t),this.componentBox=$("#"+this._op.id),this._tabBox=this.componentBox.find(this._op.stTabBox),this._panelBox=this.componentBox.find(this._op.stPanelBox),this._prevBut=this.componentBox.find("."+this._op.prevClass),this._nextBut=this.componentBox.find("."+this._op.nextClass),this._moreBut=this.componentBox.find(this._op.stMore),this._moreBox=this.componentBox.find(this._op.stMoreLi),this._prevBut.click(function(){e._scrollPrev()}),this._nextBut.click(function(){e._scrollNext()}),this._moreBut.click(function(){return e._moreBox.show(),!1}),$(document).click(function(){e._moreBox.hide()}),this._contextmenu(this._tabBox),this._contextmenu(this._getTabs()),this._init(),this._ctrlScrollBut()},_init:function(){var t=this;this._getTabs().each(function(e){$(this).unbind("click").click(function(){t._switchTab(e)}),$(this).find(navTab._op.close$).unbind("click").click(function(){t._closeTab(e)})}),this._getMoreLi().each(function(e){$(this).find(">a").unbind("click").click(function(){t._switchTab(e)})}),this._switchTab(this._currentIndex)},_contextmenu:function(t){var e=this;t.contextMenu("navTabCM",{bindings:{reload:function(t){t.data("flag",1),e._reload(t,!0)},closeCurrent:function(t){var a=t.attr("tabid");a?e.closeTab(a):e.closeCurrentTab()},closeOther:function(t){var a=e._indexTabId(t.attr("tabid"));e._closeOtherTab(a>0?a:e._currentIndex)},closeAll:function(){e.closeAllTab()}},ctrSub:function(t,a){var i=a.find("[rel='reload']"),n=a.find("[rel='closeCurrent']"),r=a.find("[rel='closeOther']"),s=a.find("[rel='closeAll']"),o=e._getTabs();o.size()<2&&(n.addClass("disabled"),r.addClass("disabled"),s.addClass("disabled")),0==e._currentIndex||t.attr("tabid")==e._op.mainTabId?(n.addClass("disabled"),i.addClass("disabled")):2==o.size()&&r.addClass("disabled")}})},_getTabs:function(){return this._tabBox.find("> li")},_getPanels:function(){return this._panelBox.find("> div")},_getMoreLi:function(){return this._moreBox.find("> li")},_getTab:function(t){var e=this._indexTabId(t);return e>=0?this._getTabs().eq(e):void 0},getPanel:function(t){var e=this._indexTabId(t);return e>=0?this._getPanels().eq(e):void 0},_getTabsW:function(t,e){return this._tabsW(this._getTabs().slice(t,e))},_tabsW:function(t){var e=0;return t.each(function(){e+=$(this).outerWidth(!0)}),e},_indexTabId:function(t){if(!t)return-1;var e=-1;return this._getTabs().each(function(a){return $(this).attr("tabid")==t?void(e=a):void 0}),e},_getLeft:function(){return this._tabBox.position().left},_getScrollBarW:function(){return this.componentBox.width()-55},_visibleStart:function(){for(var t=this._getLeft(),e=0,a=this._getTabs(),i=0;i=0)return i;e+=a.eq(i).outerWidth(!0)}return 0},_visibleEnd:function(){for(var t=this._getLeft(),e=0,a=this._getTabs(),i=0;ithis._getScrollBarW())return i;return a.size()},_scrollPrev:function(){var t=this._visibleStart();t>0&&this._scrollTab(-this._getTabsW(0,t-1))},_scrollNext:function(){var t=this._visibleEnd();t=this._visibleEnd()&&this._scrollTab(this._getScrollBarW()-this._getTabs().eq(this._currentIndex).outerWidth(!0)-this._getTabsW(0,this._currentIndex))},_ctrlScrollBut:function(){var t=this._tabsW(this._getTabs());this._getScrollBarW()>t?(this._prevBut.hide(),this._nextBut.hide(),this._tabBox.parent().removeClass("tabsPageHeaderMargin")):(this._prevBut.show().removeClass("tabsLeftDisabled"),this._nextBut.show().removeClass("tabsRightDisabled"),this._tabBox.parent().addClass("tabsPageHeaderMargin"),this._getLeft()>=0?this._prevBut.addClass("tabsLeftDisabled"):this._getLeft()<=this._getScrollBarW()-t&&this._nextBut.addClass("tabsRightDisabled"))},_switchTab:function(t){var e=this._getTabs().removeClass("selected").eq(t).addClass("selected");"offsets"==DWZ.ui.hideMode?this._getPanels().css({position:"absolute",top:"-100000px",left:"-100000px"}).eq(t).css({position:"",top:"",left:""}):this._getPanels().hide().eq(t).show(),this._getMoreLi().removeClass("selected").eq(t).addClass("selected"),this._currentIndex=t,this._scrollCurrent(),this._reload(e)},_closeTab:function(t,e){if(this._getTabs().eq(t).remove(),this._getPanels().eq(t).trigger(DWZ.eventType.pageClear).remove(),this._getMoreLi().eq(t).remove(),this._currentIndex>=t&&this._currentIndex--,e){var a=this._indexTabId(e);a>0&&(this._currentIndex=a)}this._init(),this._scrollCurrent(),this._reload(this._getTabs().eq(this._currentIndex))},closeTab:function(t){var e=this._indexTabId(t);e>0&&this._closeTab(e)},closeCurrentTab:function(t){this._currentIndex>0&&this._closeTab(this._currentIndex,t)},closeAllTab:function(){this._getTabs().filter(":gt(0)").remove(),this._getPanels().filter(":gt(0)").trigger(DWZ.eventType.pageClear).remove(),this._getMoreLi().filter(":gt(0)").remove(),this._currentIndex=0,this._init(),this._scrollCurrent()},_closeOtherTab:function(t){if(t=t||this._currentIndex,t>0){var e=":eq("+t+")";this._getTabs().not(e).filter(":gt(0)").remove(),this._getPanels().not(e).filter(":gt(0)").trigger(DWZ.eventType.pageClear).remove(),this._getMoreLi().not(e).filter(":gt(0)").remove(),this._currentIndex=1,this._init(),this._scrollCurrent()}else this.closeAllTab()},_loadUrlCallback:function(t){t.find("[layoutH]").layoutH(),t.find(":button.close").click(function(){navTab.closeCurrentTab()})},_reload:function(t){var e={url:t.attr("url"),data:t.data("data")||{},callback:t.data("callback"),flag:t.data("flag")},a=this.getPanel(t.attr("tabid"));if(e.flag&&e.url&&a)if(t.data("flag",null),t.hasClass("external"))navTab.openExternal(e.url,a);else{var i=a.getPagerForm();i&&$.extend(e.data,i.serializeJson()),$.extend(e.data,e.url.getParams()),a.ajaxUrl({type:"POST",url:e.url.cleanParams(),data:e.data,callback:function(t){navTab._loadUrlCallback(a),$.isFunction(e.callback)&&e.callback(t)}})}},reload:function(t){var e=$.extend({id:"",url:"",data:{},callback:null},t),a=e.id?this._getTab(e.id):this._getTabs().eq(this._currentIndex);e.url?a.attr("url",e.url):e.url=a.attr("url"),$.isEmptyObject(e.data)?e.data=a.data("data")||{}:a.data("data",e.data),a.data("callback",e.callback),a.data("flag",1),e.id||this._reload(a)},getCurrentPanel:function(){return this._getPanels().eq(this._currentIndex)},checkTimeout:function(){var t=DWZ.jsonEval(this.getCurrentPanel().html());t&&t[DWZ.keys.statusCode]==DWZ.statusCode.timeout&&this.closeCurrentTab()},openExternal:function(t,e){var a=navTab._panelBox.height();e.html(DWZ.frag.externalFrag.replaceAll("{url}",t).replaceAll("{height}",a+"px"))},openTab:function(t,e,a){var i=$.extend({title:"New Tab",type:"GET",data:{},fresh:!0,external:!1},a),n=this._indexTabId(t);if(n>=0){var r=this._getTabs().eq(n),s=r.attr("tabid")==this._op.mainTabId?"> span > span":"> span";r.find(">a").attr("title",i.title).find(s).html(i.title);var o=this._getPanels().eq(n);(i.fresh||r.attr("url")!=e)&&(r.attr("url",e),i.external||e.isExternalUrl()?(r.addClass("external"),navTab.openExternal(e,o)):(r.removeClass("external"),o.ajaxUrl({type:i.type,url:e,data:i.data,callback:function(){navTab._loadUrlCallback(o)}}))),this._currentIndex=n}else{var l='#title#close ';this._tabBox.append(l.replaceAll("#tabid#",t).replaceAll("#title#",i.title)),this._panelBox.append(''),this._moreBox.append('#title# '.replaceAll("#title#",i.title));var c=this._getTabs(),r=c.filter(":last"),o=this._getPanels().filter(":last");i.external||e.isExternalUrl()?(r.addClass("external"),navTab.openExternal(e,o)):(r.removeClass("external"),o.ajaxUrl({type:i.type,url:e,data:i.data,callback:function(){navTab._loadUrlCallback(o)}})),$.History&&setTimeout(function(){$.History.addHistory(t,function(t){var e=navTab._indexTabId(t);e>=0&&navTab._switchTab(e)},t)},10),this._currentIndex=c.size()-1,this._contextmenu(c.filter(":last").hoverClass("hover"))}this._init(),this._scrollCurrent(),this._getTabs().eq(this._currentIndex).attr("url",e)}};!function(t){t.fn.extend({tabs:function(e){function a(e){var r=e.add(t("> *",e)),s=t(n.stTabHeader,r),o=t(n.stTab+" li",s),l=t(n.stTabPanel+" > *",r);o.unbind().find("a").unbind(),s.find("."+n.prevClass).unbind(),s.find("."+n.nextClass).unbind(),o.each(function(r){n.currentIndex==r?t(this).addClass("selected"):t(this).removeClass("selected"),"hover"==n.eventType?t(this).hover(function(t){i(e,r)}):t(this).click(function(t){i(e,r)}),t("a",this).each(function(){t(this).hasClass(n.ajaxClass)?t(this).click(function(t){var e=l.eq(r);this.href&&!e.attr("loaded")&&e.loadUrl(this.href,{},function(){e.find("[layoutH]").layoutH(),e.attr("loaded",!0)}),t.preventDefault()}):t(this).hasClass(n.closeClass)&&t(this).click(function(t){return o.eq(r).remove(),l.eq(r).remove(),r==n.currentIndex?n.currentIndex=r+1 *",e)),r=t(n.stTabHeader,i),s=t(n.stTab+" li",r),o=t(n.stTabPanel+" > *",i),l=s.eq(a),c=o.eq(a);n.reverse&&l.hasClass("selected")?(s.removeClass("selected"),o.hide()):(n.currentIndex=a,s.removeClass("selected"),l.addClass("selected"),o.hide().eq(n.currentIndex).show()),c.attr("inited")||c.attr("inited",1e3).find("input[type=text]").filter("[alt]").inputAlert()}var n=t.extend({reverse:!1,eventType:"click",currentIndex:0,stTabHeader:"> .tabsHeader",stTab:">.tabsHeaderContent>ul",stTabPanel:"> .tabsContent",ajaxClass:"j-ajax",closeClass:"close",prevClass:"tabsLeft",
nextClass:"tabsRight"},e);return this.each(function(){a(t(this))})}})}(jQuery),function(t){t.fn.extend({jresize:function(e){return"string"==typeof e&&"destroy"==e?this.each(function(){var e=this;t("div[class^='resizable']",e).each(function(){t(this).hide()})}):this.each(function(){var e=t(this),a=t(".resizable");t("div[class^='resizable']",e).each(function(){var i=this;t(i).mousedown(function(n){return t.pdialog.switchDialog(e),t.resizeTool.start(a,e,n,t(i).attr("tar")),!1}).show()})})}}),t.resizeTool={start:function(e,a,i,n){t.pdialog.initResize(e,a,n),t.data(e[0],"layer-drag",{options:t.extend(t.pdialog._op,{target:n,dialog:a,stop:t.resizeTool.stop})}),t.layerdrag.start(e[0],i,t.pdialog._op)},stop:function(){var e=t.data(arguments[0],"layer-drag");t.pdialog.resizeDialog(arguments[0],e.options.dialog,e.options.target),t("body").css("cursor",""),t(arguments[0]).hide()}},t.layerdrag={start:function(e,a,i){return t.layerdrag.current||(t.layerdrag.current={el:e,oleft:parseInt(e.style.left)||0,owidth:parseInt(e.style.width)||0,otop:parseInt(e.style.top)||0,oheight:parseInt(e.style.height)||0,ox:a.pageX||a.screenX,oy:a.pageY||a.clientY},t(document).bind("mouseup",t.layerdrag.stop),t(document).bind("mousemove",t.layerdrag.drag)),t.layerdrag.preventEvent(a)},drag:function(e){if(!e)var e=window.event;var a=t.layerdrag.current,i=t.data(a.el,"layer-drag"),n=(e.pageX||e.screenX)-a.ox,r=(e.pageY||e.clientY)-a.oy;if((e.pageY||e.clientY)<=0||(e.pageY||e.clientY)>=t(window).height()-t(".dialogHeader",t(i.options.dialog)).outerHeight())return!1;var s=i.options.target,o=a.owidth,l=a.oheight;return"n"!=s&&"s"!=s&&(o+=s.indexOf("w")>=0?-n:n),o>=t.pdialog._op.minW&&(s.indexOf("w")>=0&&(a.el.style.left=a.oleft+n+"px"),"n"!=s&&"s"!=s&&(a.el.style.width=o+"px")),"w"!=s&&"e"!=s&&(l+=s.indexOf("n")>=0?-r:r),l>=t.pdialog._op.minH&&(s.indexOf("n")>=0&&(a.el.style.top=a.otop+r+"px"),"w"!=s&&"e"!=s&&(a.el.style.height=l+"px")),t.layerdrag.preventEvent(e)},stop:function(e){var a=t.layerdrag.current,i=t.data(a.el,"layer-drag");return t(document).unbind("mousemove",t.layerdrag.drag),t(document).unbind("mouseup",t.layerdrag.stop),i.options.stop&&i.options.stop.apply(a.el,[a.el]),t.layerdrag.current=null,t.layerdrag.preventEvent(e)},preventEvent:function(t){return t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),!1}}}(jQuery),function(t){t.pdialog={_op:{height:300,width:580,minH:40,minW:50,total:20,max:!1,mask:!0,resizable:!1,drawable:!0,maxable:!1,minable:!1,fresh:!0},_current:null,_zIndex:42,getCurrent:function(){return this._current},reload:function(e,a){var i=t.extend({data:{},dialogId:"",callback:null},a),n=i.dialogId&&t("body").data(i.dialogId)||this._current;if(n){e=e||n.data("url");var r=n.find(".dialogContent"),s=r.getPagerForm();s&&t.extend(i.data,s.serializeJson()),t.extend(i.data,e.getParams()),r.ajaxUrl({type:"POST",url:e,data:i.data,callback:function(e){r.find("[layoutH]").layoutH(r),t(".pageContent",n).width(t(n).width()-14),t(":button.close",n).click(function(){return t.pdialog.close(n),!1}),t.isFunction(i.callback)&&i.callback(e)}})}},open:function(e,a,i,n){var r=t.extend({},t.pdialog._op,n),s=t("body").data(a);if(s){if(s.is(":hidden")&&s.show(),r.fresh||e!=t(s).data("url")){s.data("url",e),s.find(".dialogHeader").find("h1").html(i),this.switchDialog(s);var o=s.find(".dialogContent");o.loadUrl(e,{},function(){o.find("[layoutH]").layoutH(o),t(".pageContent",s).width(t(s).width()-14),t("button.close").click(function(){return t.pdialog.close(s),!1})})}}else{t("body").append(DWZ.frag.dialogFrag),s=t(">.dialog:last-child","body"),s.data("id",a),s.data("url",e),n.close&&s.data("close",n.close),n.param&&s.data("param",n.param),t.fn.bgiframe&&s.bgiframe(),s.find(".dialogHeader").find("h1").html(i),t(s).css("zIndex",t.pdialog._zIndex+=2),t("div.shadow").css("zIndex",t.pdialog._zIndex-3).show(),t.pdialog._init(s,n),t(s).click(function(){t.pdialog.switchDialog(s)}),r.resizable&&s.jresize(),r.drawable&&s.dialogDrag(),t("a.close",s).click(function(e){return t.pdialog.close(s),!1}),r.maxable?t("a.maximize",s).show().click(function(e){return t.pdialog.switchDialog(s),t.pdialog.maxsize(s),s.jresize("destroy").dialogDrag("destroy"),!1}):t("a.maximize",s).hide(),t("a.restore",s).click(function(e){return t.pdialog.restore(s),s.jresize().dialogDrag(),!1}),r.minable?t("a.minimize",s).show().click(function(e){return t.pdialog.minimize(s),!1}):t("a.minimize",s).hide(),t("div.dialogHeader a",s).mousedown(function(){return!1}),t("div.dialogHeader",s).dblclick(function(){t("a.restore",s).is(":hidden")?t("a.maximize",s).trigger("click"):t("a.restore",s).trigger("click")}),r.max&&(t.pdialog.maxsize(s),s.jresize("destroy").dialogDrag("destroy")),t("body").data(a,s),t.pdialog._current=s,t.pdialog.attachShadow(s);var o=t(".dialogContent",s);o.loadUrl(e,{},function(){o.find("[layoutH]").layoutH(o),t(".pageContent",s).width(t(s).width()-14),t("button.close").click(function(){return t.pdialog.close(s),!1})})}r.mask?(t(s).css("zIndex",1e3),t("a.minimize",s).hide(),t(s).data("mask",!0),t("#dialogBackground").show()):r.minable&&t.taskBar.addDialog(a,i)},switchDialog:function(e){var a=t(e).css("zIndex");if(t.pdialog.attachShadow(e),t.pdialog._current){var i=t(t.pdialog._current).css("zIndex");t(t.pdialog._current).css("zIndex",a),t(e).css("zIndex",i),t("div.shadow").css("zIndex",i-1),t.pdialog._current=e}t.taskBar.switchTask(e.data("id"))},attachShadow:function(e){var a=t("div.shadow");a.is(":hidden")&&a.show(),a.css({top:parseInt(t(e)[0].style.top)-2,left:parseInt(t(e)[0].style.left)-4,height:parseInt(t(e).height())+8,width:parseInt(t(e).width())+8,zIndex:parseInt(t(e).css("zIndex"))-1}),t(".shadow_c",a).children().andSelf().each(function(){t(this).css("height",t(e).outerHeight()-4)})},_init:function(e,a){var i=t.extend({},this._op,a),n=i.height>i.minH?i.height:i.minH,r=i.width>i.minW?i.width:i.minW;(isNaN(e.height())||e.height()0?s:0})},initResize:function(e,a,i){t("body").css("cursor",i+"-resize"),e.css({top:t(a).css("top"),left:t(a).css("left"),height:t(a).css("height"),width:t(a).css("width")}),e.show()},repaint:function(e,a){var i=t("div.shadow");"w"!=e&&"e"!=e&&(i.css("height",i.outerHeight()+a.tmove),t(".shadow_c",i).children().andSelf().each(function(){t(this).css("height",t(this).outerHeight()+a.tmove)})),"n"!=e&&"nw"!=e&&"ne"!=e||i.css("top",a.otop-2),!a.owidth||"n"==e&&"s"==e||i.css("width",a.owidth+8),e.indexOf("w")>=0&&i.css("left",a.oleft-4)},resizeTool:function(e,a,i){t("div[class^='resizable']",i).filter(function(){return"w"==t(this).attr("tar")||"e"==t(this).attr("tar")}).each(function(){t(this).css("height",t(this).outerHeight()+a)})},resizeDialog:function(e,a,i){var n=parseInt(e.style.left),r=parseInt(e.style.top),s=parseInt(e.style.height),o=parseInt(e.style.width);if("n"==i||"nw"==i?tmove=parseInt(t(a).css("top"))-r:tmove=s-parseInt(t(a).css("height")),t(a).css({left:n,width:o,top:r,height:s}),t(".dialogContent",a).css("width",o-12+"px"),t(".pageContent",a).css("width",o-14+"px"),"w"!=i&&"e"!=i){var l=t(".dialogContent",a);l.css({height:s-t(".dialogHeader",a).outerHeight()-t(".dialogFooter",a).outerHeight()-6}),l.find("[layoutH]").layoutH(l),t.pdialog.resizeTool(i,tmove,a)}t.pdialog.repaint(i,{oleft:n,otop:r,tmove:tmove,owidth:o}),t(window).trigger(DWZ.eventType.resizeGrid)},close:function(e){"string"==typeof e&&(e=t("body").data(e));var a=e.data("close"),i=!0;if(a&&t.isFunction(a)){var n=e.data("param");if(n&&""!=n?(n=DWZ.jsonEval(n),i=a(n)):i=a(),!i)return}t(e).hide(),t("div.shadow").hide(),t(e).data("mask")?t("#dialogBackground").hide():t(e).data("id")&&t.taskBar.closeDialog(t(e).data("id")),t("body").removeData(t(e).data("id")),t(e).trigger(DWZ.eventType.pageClear).remove()},closeCurrent:function(){this.close(t.pdialog._current)},checkTimeout:function(){var e=t(".dialogContent",t.pdialog._current),a=DWZ.jsonEval(e.html());a&&a[DWZ.keys.statusCode]==DWZ.statusCode.timeout&&this.closeCurrent()},maxsize:function(e){t(e).data("original",{top:t(e).css("top"),left:t(e).css("left"),width:t(e).css("width"),height:t(e).css("height")}),t("a.maximize",e).hide(),t("a.restore",e).show();var a=t(window).width(),i=t(window).height()-34;t(e).css({top:"0px",left:"0px",width:a+"px",height:i+"px"}),t.pdialog._resizeContent(e,a,i)},restore:function(e){var a=t(e).data("original"),i=parseInt(a.width),n=parseInt(a.height);t(e).css({top:a.top,left:a.left,width:i,height:n}),t.pdialog._resizeContent(e,i,n),t("a.maximize",e).show(),t("a.restore",e).hide(),t.pdialog.attachShadow(e)},minimize:function(e){t(e).hide(),t("div.shadow").hide();var a=t.taskBar.getTask(t(e).data("id"));t(".resizable").css({top:t(e).css("top"),left:t(e).css("left"),height:t(e).css("height"),width:t(e).css("width")}).show().animate({top:t(window).height()-60,left:a.position().left,width:a.outerWidth(),height:a.outerHeight()},250,function(){t(this).hide(),t.taskBar.inactive(t(e).data("id"))})},_resizeContent:function(e,a,i){var n=t(".dialogContent",e);n.css({width:a-12+"px",height:i-t(".dialogHeader",e).outerHeight()-t(".dialogFooter",e).outerHeight()-6}),n.find("[layoutH]").layoutH(n),t(".pageContent",e).css("width",a-14+"px"),t(window).trigger(DWZ.eventType.resizeGrid)}}}(jQuery),function(t){t.fn.dialogDrag=function(e){return"string"==typeof e&&"destroy"==e?this.each(function(){var e=this;t("div.dialogHeader",e).unbind("mousedown")}):this.each(function(){var e=t(this);t("div.dialogHeader",e).mousedown(function(a){return t.pdialog.switchDialog(e),e.data("task",!0),setTimeout(function(){e.data("task")&&t.dialogDrag.start(e,a)},100),!1}).mouseup(function(t){return e.data("task",!1),!1})})},t.dialogDrag={currId:null,_init:function(e){this.currId=(new Date).getTime();var a=t("#dialogProxy");a.size()||(a=t(DWZ.frag.dialogProxy),t("body").append(a)),t("h1",a).html(t(".dialogHeader h1",e).text())},start:function(e,a){this._init(e);var i=t("#dialogProxy");return i.css({left:e.css("left"),top:e.css("top"),height:e.css("height"),width:e.css("width"),zIndex:parseInt(e.css("zIndex"))+1}).show(),t("div.dialogContent",i).css("height",t("div.dialogContent",e).css("height")),i.data("dialog",e),e.css({left:"-10000px",top:"-10000px"}),t(".shadow").hide(),t(i).jDrag({selector:".dialogHeader",stop:this.stop,event:a}),!1},stop:function(){var e=t(arguments[0]),a=e.data("dialog");t(a).css({left:t(e).css("left"),top:t(e).css("top")}),t.pdialog.attachShadow(a),t(e).hide()}}}(jQuery),function(t){var e={cursor:"move",sortBoxs:"div.sortDrag",replace:!1,items:"> *",selector:"",zIndex:1e3},a={start:function(t,e,a,i){var n=this._createPlaceholder(e),r=e.clone(),s=e.position();return r.data("$sortBox",t).data("op",i).data("$item",e).data("$placeholder",n),r.addClass("sortDragHelper").css({position:"absolute",top:s.top+t.scrollTop(),left:s.left,zIndex:i.zIndex,width:e.width()+"px",height:e.height()+"px"}).jDrag({selector:i.selector,drag:this.drag,stop:this.stop,event:a}),e.before(n).before(r).hide(),!1},drag:function(e,i){var n=t(arguments[0]),r=n.data("$sortBox"),s=n.data("$placeholder"),o=r.find(n.data("op").items).filter(":visible").filter(":not(.sortDragPlaceholder, .sortDragHelper)"),l=n.position(),c=(o.eq(0).position(),a._getOverSortBox(n,i));if(c.length>0&&c[0]!=r[0])s.appendTo(c),n.data("$sortBox",c);else for(var d=0;du.top+10)h.after(s);else if(l.top<=u.top){h.before(s);break}}},stop:function(){var a=t(arguments[0]),i=a.data("$sortBox"),n=a.data("$item"),r=a.data("$placeholder"),s=r.position();a.animate({top:s.top+i.scrollTop()+"px",left:s.left+"px"},{complete:function(){a.data("op").replace&&($srcBox=n.parents(e.sortBoxs+":first"),$destBox=r.parents(e.sortBoxs+":first"),$srcBox[0]!=$destBox[0]&&($replaceItem=r.next(),$replaceItem.size()>0&&$replaceItem.insertAfter(n))),n.insertAfter(r).show(),r.remove(),a.remove()},duration:300})},_createPlaceholder:function(e){return t("<"+e[0].nodeName+' class="sortDragPlaceholder"/>').css({width:e.outerWidth()+"px",height:e.outerHeight()+"px",marginTop:e.css("marginTop"),marginRight:e.css("marginRight"),marginBottom:e.css("marginBottom"),marginLeft:e.css("marginLeft")})},_getOverSortBox:function(a,i){var n=a.position(),r=n.top+a.height()/2,s=n.left+a.width()/2;return t(e.sortBoxs).filter(":visible").filter(function(){var e=t(this),a=e.position(),i=e.height(),n=e.width();return DWZ.isOver(r,s,a.top,a.left,i,n)})}};t.fn.sortDrag=function(i){return this.each(function(){var n=t.extend({},e,i),r=t(this);r.attr("selector")&&(n.selector=r.attr("selector")),r.find(n.items).each(function(e){var i=t(this),s=i;n.selector&&(s=i.find(n.selector).css({cursor:n.cursor})),s.mousedown(function(t){a.start(r,i,t,n),t.preventDefault()})})})}}(jQuery),function(t){t.fn.extend({cssTable:function(e){return this.each(function(){var e=t(this),a=e.find("tbody>tr"),i=e.parent(),n=e.hasClass("nowrap");n||a.hoverClass("hover"),a.each(function(e){var r=t(this);n||e%2!=1||r.addClass("trbg"),r.click(function(){n||(a.filter(".selected").removeClass("selected"),r.addClass("selected"));var e=r.attr("target");e&&(0==t("#"+e,i).size()&&i.prepend(''),t("#"+e,i).val(r.attr("rel")))})}),e.find("thead [orderField]").orderBy({asc:e.attr("asc")||"asc",desc:e.attr("desc")||"desc"})})}})}(jQuery),function(t){t.fn.jTable=function(e){return this.each(function(){function a(){t("div.j-resizeGrid").each(function(){var e=t(this).innerWidth();e&&t("div.gridScroller",this).width(e+"px")})}for(var i=t(this),n=i.attr("nowrapTD"),r=i.width(),s=[],o=i.parent().addClass("j-resizeGrid"),l=t(this).attr("layoutH"),c=i.find("thead>tr:last-child").find("th"),d=0,h=c.size();h>d;d++){var u=t(c[d]),f=[],p=u.innerWidth()-100*u.innerWidth()/r-2;f[0]=parseInt(p),f[1]=u.attr("align"),s[s.length]=f}t(this).wrap("");var g=i.parent().html(i.html()),v=g.find("thead");v.wrap("
");var m=t(">tr:last-child",v),b=t(">th",m);t("th",v).each(function(){var e=t(this);e.html(""+e.html()+"")}),b.each(function(e){var a=t(this),i=s[e];a.addClass(i[1]).hoverClass("hover").removeAttr("align").removeAttr("width").width(i[0])}).filter("[orderField]").orderBy({asc:i.attr("asc")||"asc",desc:i.attr("desc")||"desc"});var x=g.find(">tbody"),k=l?" layoutH='"+l+"'":"";x.wrap("
");var y=t(">tr:first-child",x),_=x.find(">tr");_.hoverClass().each(function(){for(var e=t(this),a=t(">td",this),i=0;i"+r.html()+"