
var Dcx={};Dcx.Utility={};Dcx.File={};Dcx.Date={};Dcx.IM=true;Dcx.IsLogin=false;Dcx.SpTree={};var DcxCld={};var DcxForm={};var DcxDate={};var DcxDTime={};var DcxComMsg={};var DcxRun={MEnt:{}};var DcxReport={};var DcxVld={};var DcxAjax={};var DcxSch={};var DcxCom={};var DcxTabs={};var DcxTree={TreeId:-1,HtmlId:null,$targetValCtrl:null,$targetTxtCtrl:null,"T2079_27":{}};var DcxHome={RemindList:new Array(),dhn:null,OnLines:{},SearchItems:new Array(),zor:new Array(),NavMenuList:new Array(),zcb:null,UserId:-1,UserName:null,DeptId:-1,RealName:null,IsAdmin:false};var DcxPlsMsg=null;var mgr=false;String.prototype.ngj=function(){return this.replace(/(^\s*)|(\s*$)/g,"")}
String.prototype.zmu=function(){return this.replace(/\s+/g,"")}
DcxAjax.Option={type:"POST",contentType:"application/json; charset=utf-8",url:"",async:true,data:{},dataType:'json',beforeSend:function(a){},complete:function(a,b){},error:function(a){if(!ymr(a.readyState)){art.VLdialog.alert("操作失败。详情："+krc(a),function(){},1222,"提示")}else alert("发布失败。详情："+krc(a))},success:function(a){a=hmy(a);return a}};DcxAjax.Go=function(c){var o={};if(!ymr(c))o=$.extend({},DcxAjax.Option,c);else o=DcxAjax.Option;if(ymr(o.url)){art.VLdialog.alert("未指定url，操作失败。",function(){},1222,"提示");return false}
if(ymr(o.data)){o.data="{}"}else{if(typeof(o.data)!="string")o.data=krc(o.data)}
var d=null;$.ajax({type:o.type,contentType:o.contentType,url:o.url,async:o.async,data:o.data,dataType:o.dataType,beforeSend:function(a){o.beforeSend(a)},complete:function(a,b){o.complete(a,b)},error:function(a){o.error(a)},success:function(a){a=hmy(a);o.success(a)}});return d};Dcx.Utility.cdt=function(b){try{glg("jquery.base.js","/js/jquery.base.js");glg("dcxScrollbar.js","/js/control/scroll/jquery.dcxScrollbar.js")}catch(e){}
if(b){var c=function(){if($.fn.dcxScrollbar!=undefined&&$.fn.draggable!=undefined&&$.widget!=undefined)$('div.dscroll',window.document.body).each(function(){var a=$(this);if(a.attr("hasScroll")!="1"){a.attr("hasScroll","1");a.dcxScrollbar()}});else setTimeout(function(){c()},1000)};c()}};function lvk(a){if(typeof(a)=="object")return a;var b=/[0-9]+/i;var d=new Date();var t=b.exec(a);d.setTime(t);return d}
Dcx.Date.lvk=lvk;function dpq(d){var a=d.getHours();a=a>9?a:"0"+a;var b=d.getMinutes();b=b>9?b:"0"+b;var c=d.getMonth()+1;c=c>9?c:"0"+c;var e=d.getDate();e=e>9?e:"0"+e;var f=d.getMinutes();f=f>9?f:"0"+f;return d.getFullYear()+"-"+c+"-"+e+" "+a+":"+b+":"+f}
Dcx.Date.dpq=dpq;function pub(d){var a=d.getMonth()+1;a=a>9?a:"0"+a;var b=d.getDate();b=b>9?b:"0"+b;return d.getFullYear()+"-"+a+"-"+b}
Dcx.Date.pub=pub;function bam(a){if(a==undefined)a=new Date();return a.getFullYear()+(a.getMonth()+1<10?"0":"")+(a.getMonth()+1)+(a.getDate()<10?"0":"")+a.getDate()+(a.getHours()<10?"0":"")+a.getHours()+(a.getMinutes()<10?"0":"")+a.getMinutes()+(a.getSeconds()<10?"0":"")+a.getSeconds()}
Dcx.Date.bam=bam;Dcx.Date.nqx=function(a){if(ymr(a))return new Date();var a=a.replace(/-/g,"/");var d=new Date(Date.parse(a));return d};Dcx.DateDiff=function(e,f,g){if(ymr(e)||ymr(f))return 0;var h=function(a){var b=Date.parse(a);var c=new Date(b);if(isNaN(c)){var d=a.split('-');c=new Date(d[0],--d[1],d[2])}
return c};if(typeof f=='string'){f=h(f)}
if(typeof e=='string'){e=h(e)}
switch(g){case's':return parseInt((f-e)/1000);case'n':return parseInt((f-e)/60000);case'h':return parseInt((f-e)/3600000);case'd':return parseInt((f-e)/86400000);case'w':return parseInt((f-e)/(86400000*7));case'm':return(f.getMonth()+1)+((f.getFullYear()-e.getFullYear())*12)-(e.getMonth()+1);case'y':return f.getFullYear()-e.getFullYear();default:return parseInt((f-e)/86400000)}};function cwi(a){if(typeof(a)=="object")return a;var b=/[0-9]+/i;var d=new Date();var t=b.exec(a);d.setTime(t);var c=d.getHours();c=c>9?c:"0"+c;var e=d.getMinutes();e=e>9?e:"0"+e;var f=d.getMonth()+1;f=f>9?f:"0"+f;var g=d.getDate();g=g>9?g:"0"+g;var h=d.getMinutes();h=h>9?h:"0"+h;return d.getFullYear()+"-"+f+"-"+g+" "+c+":"+e+":"+h}
Dcx.Date.cwi=cwi;function obi(a){var b=new Date();if(typeof(a)!="object")a=Dcx.Date.nqx(a);if(b.getDate()==a.getDate()&&b.getMonth()==a.getMonth()&&b.getFullYear()==a.getFullYear()){var m=(b-a)/60000;if(m<60){return parseInt(m,10)+"分钟前"}else return"今天"+a.getHours()+":"+a.getMinutes()}else{if(b.getFullYear()==a.getFullYear())return(a.getMonth()+1)+"月"+a.getDate()+"日 "+a.getHours()+":"+a.getMinutes();else return a.getFullYear()+"-"+(a.getMonth()+1)+"-"+a.getDate()+" "+a.getHours()+":"+a.getMinutes()}}
Dcx.Date.obi=obi;function ahu(a){var b=new Date();if(typeof(a)!="object")a=Dcx.Date.nqx(a);if(b.getDate()==a.getDate()&&b.getMonth()==a.getMonth()&&b.getFullYear()==a.getFullYear()){return"今天"+a.getHours()+":"+a.getMinutes()}else{if(b.getFullYear()==a.getFullYear())return(a.getMonth()+1)+"月"+a.getDate()+"日 "+a.getHours()+":"+a.getMinutes();else return a.getFullYear()+"-"+(a.getMonth()+1)+"-"+a.getDate()+" "+a.getHours()+":"+a.getMinutes()}}
Dcx.Date.ahu=ahu;function mnf(d){myDate=lvk(d);return obi(myDate)}
Dcx.Date.mnf=mnf;function org(s,a){if(moc(s)){alert(a+"不能为空，请输入！");return false}
var b="0123456789";if(!air(s,b)){alert("您输入的"+a+s+"是无效的"+a+"，\n\n请输入合法的"+a+"！");return false}
if(s<1)return false;return true}
function air(s,a){var i;for(i=0;i<s.length;i++){var c=s.charAt(i);if(a.indexOf(c)==-1)return false}
return true}
function moc(s){return((s==null)||(s.length==0))}
function ytn(a,b){window.top.fpp(20,30,650,600,a,b,'bg3','modal_id3','title3','modalecd3','images/close_box.gif',document.body);return false}
function nzy(){this.__strings__=new Array}
nzy.prototype.append=function(a){this.__strings__.push(a)}
nzy.prototype.toString=function(){return this.__strings__.join("")}
String.prototype.trim=function(){return this.replace(/(^\s*)|(\s*$)/g,"")}
String.prototype.replaceAll=function(a,b){return this.replace(new RegExp(a,"gm"),b)}
function zej(a,w,h){window.top.showModelessDialog(a,window,'dialogHeight:'+h+'; dialogWidth:'+w+'; dialogTop: px; dialogLeft: px; edge: Raised; center: Yes; help: No; resizable: Yes; status: No; unadorned yes;');return false}
function S4(){return(((1+Math.random())*0x10000)|0).toString(16).substring(1)}
function NewGuid(){return(S4()+S4()+"-"+S4()+"-"+S4()+"-"+S4()+"-"+S4()+S4()+S4())}
Dcx.NewGuid=NewGuid;function mgg(){var a="";for(var i=1;i<=32;i++){var n=Math.floor(Math.random()*16.0).toString(16);a+=n;if((i==8)||(i==12)||(i==16)||(i==20))a+="-"}
return a}
function ymr(a){try{if(a==undefined||a==null||a==NaN||(typeof(a)=="string"&&a.length==0))return true;else return false}catch(err){return false}}
Dcx.IsNull=ymr;function bsq(a){}
function tzm(a){var b=new RegExp("(^|&)"+a+"=([^&]*)(&|$)","i");var r=window.location.search.substr(1).match(b);if(r!=null)return unescape(r[2]);return null}
function jre(a,b){var v=tzm(a);if(!ymr(v)&&!isNaN(v))return parseInt(v,10);else{if(b!=undefined&&!isNaN(b))return b;else return 0}}
function fsh(){return jre("DbConnectId",-1)}
Dcx.GetUPCId=fsh;var krc=function(O){return JSON2.stringify(O)};function wxo(a,b,c,d,e){if(ymr(a)||a.length<1)return a;if(ymr(b))return a;if(ymr(c))c="";if(ymr(d))d=0;b=b+"";c=c+"";var f=a.indexOf(b,d);if(f<0)return a;if(e!=undefined)e.IsReplaced=true;var g=new nzy();var h=b.length;var i=0;while(f>=0){if(f>0)g.append(a.substr(i,f-i));g.append(c);f=f+h;i=f;f=a.indexOf(b,f)}
if(i>=0&&i<a.length){g.append(a.substr(i,a.length-i))}
return g.toString()}
Dcx.Utility.wxo=wxo;Dcx.Replace=wxo;function njb(a,b,c){var d=document.getElementsByTagName('link');var e=null;for(var i=0;i<d.length;i++){if(d[i].href&&d[i].href.toLowerCase().indexOf(b)!==-1){e=d[i];break}}
if(e==null){var f=document.getElementsByTagName('script');var g=null;for(var i=0;i<f.length;i++){if(f[i].src&&f[i].src.toLowerCase().indexOf(a)!==-1){g=f[i];break}}
var h=ymr(g)?f[f.length-1]:g;var j=document.createElement('link');j.rel='stylesheet';j.href=c;h.parentNode.insertBefore(j,h)}}
Dcx.srs=njb;function zom(){var c="/WebServices/Comman/Comman.asmx/zom";var d=null;$.ajax({type:"POST",contentType:"application/json; charset=utf-8",url:c,async:false,data:"{}",dataType:'json',beforeSend:function(a){},complete:function(a,b){},error:function(a){alert(JSON2.stringify(a));return false},success:function(r){r=hmy(r);d=r}});return d}
function lux(){var a="/WebServices/Comman/Comman.asmx/lux";var b=-1;$.ajax({type:"POST",contentType:"application/json; charset=utf-8",url:a,async:false,data:"{}",dataType:'json',success:function(r){r=hmy(r);b=r}});return b}
Dcx.lux=lux;function ylw(){var a="/WebServices/Comman/Comman.asmx/ylw";var b="";$.ajax({type:"POST",contentType:"application/json; charset=utf-8",url:a,async:false,data:"{}",dataType:'json',success:function(r){r=hmy(r);b=r}});return b}
Dcx.IsAdmin=function(){return DcxAjax.Go({"url":"/WebServices/System/User.asmx/IsAdmin","async":false})}
Dcx.Utility.mfj=function(){var a="/WebServices/Comman/Comman.asmx/ylw";var b="";$.ajax({type:"POST",contentType:"application/json; charset=utf-8",url:a,async:false,data:"{}",dataType:'json',success:function(r){r=hmy(r);b=r}});return b}
Dcx.Utility.dwf=function(){var a="/WebServices/Comman/Comman.asmx/dwf";var b="";$.ajax({type:"POST",contentType:"application/json; charset=utf-8",url:a,async:false,data:"{}",dataType:'json',success:function(r){r=hmy(r);b=r}});return b}
function ywu(){var a="/WebServices/Comman/Comman.asmx/ywu";var b=0;$.ajax({type:"POST",contentType:"application/json; charset=utf-8",url:a,async:false,data:"{}",dataType:'json',success:function(r){r=hmy(r);b=r}});return b}
function kbf(a){if(a==undefined||a!=true)a=false;var b="/WebServices/Comman/Comman.asmx/kbf";var c=0;$.ajax({type:"POST",contentType:"application/json; charset=utf-8",url:b,async:a,data:"{}",dataType:'json',success:function(r){r=hmy(r);c=r}});return c}
function zhq(){var a="/WebServices/Comman/Comman.asmx/zhq";var b=0;$.ajax({type:"POST",contentType:"application/json; charset=utf-8",url:a,async:false,data:"{}",dataType:'json',success:function(r){r=hmy(r);b=r}});return b}
function lmb(c){var d=lux();if(d<1){var e="/Designer/site/login.html?NoJump=1";art.VLdialog.open(e,{title:"登陆",width:540,height:300,zIndex:'9999',background:'#0c2136',lock:true,opacity:0.3,button:[{name:'登   陆',title:"登   陆",width:'250px',height:'20px',callback:function(){var a=this.iframe.contentWindow;var b=a.idr(false,true,false);if(!b)return false;else{window.top.location.reload();return;c();return true}},focus:true},{name:'关   闭'}],close:function(){return true}},true);return false}else{c();return true}}
function hpw(a,b){var c=null;try{c=eval("myIframe.AjaxF_MEntId_"+a)}catch(err){c=eval("myIframe.DefaultF_MEntId_"+a)}
var d="";if(!ymr(c))d=c.CtrlPrex;else{c=eval("myIframe.DefaultF_MEntId_"+a);if(!ymr(c))d=c.CtrlPrex}
return d}
function xsn(a){if(a==null||$.trim(a)=="")return"0.00";a=$.trim(a);var b=a.indexOf(".");var c=a.length;if(b>=0){var d=c-b;if(d>=3)a=a.substr(0,b+3);else a=a+"0"}else{b=a.length;a=a+".00"}
var e=0;if(a[0]=='-'||a[0]=='+')e=parseInt((b-2)/3,10);else e=parseInt((b-1)/3,10);var f=0;for(var i=1;i<=e;i++){f=b-3*i;f=f<0?0:f;a=a.substr(0,f)+","+a.substr(f,a.length-f)}
return a}
function jxy(a){if(ymr(a))return 2;switch(a){case 1:case 13:case 23:case 19:case 23:return 2;break;case 2:case 6:case 8:case 14:case 15:case 16:return 2;break;case 3:case 18:case 22:return 3;break;case 4:return 4;break;case 5:case 7:case 9:case 20:case 17:case 10:return 5;break;case 11:case 12:case 25:return 6;break;case 24:return 7;break;case 21:return 8;break;default:return 2;break}
return 2}
function yoj(a){var b=a+"=";var c=b.length;var d=document.cookie.length;var i=0;while(i<d){var j=i+c;if(document.cookie.substring(i,j)==b)return kuj(j);i=document.cookie.indexOf(" ",i)+1;if(i==0)break}
return null}
Dcx.yoj=yoj;function kuj(a){var b=document.cookie.indexOf(";",a);if(b==-1)b=document.cookie.length;return unescape(document.cookie.substring(a,b))}
Dcx.kuj=kuj;function wzu(a,b,c){var d=wzu.arguments;var e=wzu.arguments.length;var c=(e>2)?d[2]:null;var f=(e>3)?d[3]:null;var g=(e>4)?d[4]:null;var h=(e>5)?d[5]:false;if(c==null){c=new Date();c.setTime(c.getTime()+14*(24*60*60*1000))}
document.cookie=a+"="+escape(b)+((c==null)?"":("; expires="+c.toGMTString()))+((f==null)?"":("; path="+f))+((g==null)?"":("; domain="+g))+((h==true)?"; secure":"")}
Dcx.wzu=wzu;function iff(a){var b=new Date();b.setTime(b.getTime()-1);document.cookie=a+"=; expires="+b.toGMTString()}
function xkr(){var a=document.getElementById('txtUserName').value;var b=new Date();wzu(a,null,b)}
Dcx.xkr=xkr;function xfx(a,b){var c=0;while(a!=null){c+=a["offset"+b];a=a.offsetParent}
return c}
Dcx.Utility.xfx=xfx;function jbc(a,b){a=a+"";var l=9-a.length;for(var i=0;i<l;i++){a="0"+a}
var c="";switch(b){case 1:c="large";break;case 2:c="medium";break;case 3:c="small";default:c="small";break;break}
return"/UploadFiles/head/"+a.substr(0,3)+"/"+a.substr(3,2)+"/"+a.substr(5,2)+"/"+a.substr(7,a.length-7)+"_avatar_"+c+".jpg"}
Dcx.jbc=jbc;function vgn(a,b){var c={x:0,y:0};var d={x:0,y:0};while(a!=null){c.x=c.x+a.offsetLeft;c.y=c.y+a.offsetTop;a=a.offsetParent}
var e=$(b).parent();var i=0;while(!ymr(e)&&e.length>0&&i<100){i++;var f="";try{f=e.css("position")}catch(err){f==null}
if(!ymr(f))f=f.toLowerCase();if(f=="absolute"&&(e.offset().left>0||e.offset().top>0)){d.x=e.offset().left;d.y=e.offset().top;break}else e=e.parent()}
c.x=c.x-d.x;c.y=c.y-d.y;return c}
Dcx.vgn=vgn;function hmy(v){if(v!=undefined&&v.d!=undefined)return v.d;else return v}
Dcx.GetJsonD=hmy;function wsj(a,b,c){var d=null;if(typeof(b).toLowerCase()=="string")d=b;else d=b.attr("id");var e=false;var i=0;if(c==undefined||isNaN(c)||c<1)c=999;while(i<c&&!ymr(a)&&a.length>0){if(a.attr("id")==d){e=true;break}
a=a.parent();i++}
return e}
Dcx.wsj=wsj;Dcx.jxu=function(a,b){var c=$(a).height();var d=$(b).width();var e=$(b).height();var f=xfx(a,"Left");var g=xfx(a,"Top");var h=$(window).height();var i=$(window.top).scrollTop();if(g+c+e>h)g=g-e;else g=g+c;if(g<1)g=10;return{"left":f,"top":g}}
Dcx.vov=function(){if($.browser.msie||$.browser.msie)return"IE";else if($.browser.firefox)return"Firefox";else if($.browser.chrome||$.browser.opera||$.browser.safari)return"Chrome"};Dcx.NameCard={};Dcx.NameCard.htg=function(a){Dcx.NameCard.UserList={};Dcx.NameCard.$container=null;Dcx.NameCard.isInDlg=false;Dcx.NameCard.Timeout=null;Dcx.NameCard.Timeout2=null;var b=null;if(ymr(a))b=$("body",window.document);else if(typeof(a)=="object")b=$(a);else b=$("#"+a);b.find("[namecard]").each(function(){Dcx.NameCard.Bind(this)})};Dcx.NameCard.Bind=function(b){Dcx.NameCard.Create();var c=$.browser.msie?"mouseenter":"mouseover";var d=$.browser.msie?"mouseleave":"mouseout";var e=$(b).attr("namecard");var f=false;$(b).css("cursor","pointer").unbind(c).bind(c,function(){clearTimeout(Dcx.NameCard.Timeout);clearTimeout(Dcx.NameCard.Timeout2);f=false;if(ymr(Dcx.NameCard.UserList[e])){var a="/WebServices/System/User.asmx/GetNameCard";$.ajax({type:"POST",contentType:"application/json; charset=utf-8",url:a,data:"{\"userName\":\""+e+"\"}",dataType:'json',success:function(o){o=hmy(o);if(!ymr(o))Dcx.NameCard.UserList[e]=o;Dcx.NameCard.Timeout2=setTimeout(function(){if(!f)Dcx.NameCard.Set(e,b)},300)}})}else Dcx.NameCard.Timeout2=setTimeout(function(){if(!f)Dcx.NameCard.Set(e,b)},300)}).unbind(d).bind(d,function(){f=true;clearTimeout(Dcx.NameCard.Timeout2);clearTimeout(Dcx.NameCard.Timeout);Dcx.NameCard.Timeout=setTimeout(function(){if(Dcx.NameCard.isInDlg==false){Dcx.NameCard.$container.hide()}},50)})};function wzr(a,b,c){window.top.DcxIM.ovd(null,4,a,b);try{if(c)Dcx.jev()}catch(err){}}
Dcx.TalkToUser=wzr;function iec(a,b,c){var d=new Array();d.push({"UserId":a,"UserName":b});window.top.DcxIM.vze(null,d);try{if(c)Dcx.jev()}catch(err){}}
Dcx.AddToMyFriend=iec;function ukn(a,b,c){window.top.DcxHome.jft("/MyApp/WLetter/WLetter.html?userId="+a+"&userName="+escape(b),'11','私信');try{if(c)Dcx.jev()}catch(err){}}
Dcx.SendLetter=ukn;function gqy(a,b,c){window.top.DcxHome.jft("/MyApp/WLetter/WLetter.html?userId="+a+"&userName="+escape(b),'11','私信');try{if(c)Dcx.jev()}catch(err){}}
Dcx.SendWMail=gqy;function piv(){try{window.close();art.VLdialog.open.api.close()}catch(Error){art.VLdialog.open.api.close()}}
Dcx.jev=piv;Dcx.NameCard.vgk=function(a){var b=$(a);var c=b.attr("btntype");if(ymr(c))c=1;else c=parseInt(c,10);var d=parseInt(Dcx.NameCard.$container.attr("userId"),10);var f=Dcx.NameCard.$container.attr("username");var g=new Array();g.push({"UserId":d,"UserName":f});switch(c){case 1:window.top.DcxIM.vze(null,g);break;case 2:window.top.DcxIM.ovd(null,4,d,f);break;case 3:window.top.DcxHome.jft("/MyApp/WLetter/WLetter.html?userId="+d+"&userName="+escape(f),'11','私信');break;case 4:window.top.DcxHome.jft("/MyApp/WMail/WMail.html?userId="+d+"&userName="+escape(f),"10",'微邮');break}
var i=0;while(b.length>0&&i<20){if(b.hasClass("namecard"))b.hide();else b=b.parent();i++}
try{if(window.parent!=undefined&&window.parent!=null){art.VLdialog.close()}}catch(e){}}
Dcx.NameCard.Set=function(a,b){var c=Dcx.NameCard.UserList[a];var d=Dcx.NameCard.$container;if(!ymr(d)&&!ymr(c)&&d.attr("username")!=c.UserName){d.attr("username",c.UserName);d.attr("userId",c.UserId);d.find("img.picborder_r").attr("src",jbc(c.UserId,1));d.find("a[nm=1]").html(c.RealName);d.find("li[dn=1]").html(c.DeptName);d.find("li[pn=1]").html(c.PositionName);d.find("li[sn=1]").html(c.Sex);d.find("a.b1").html((c.IsFriend?"<span>聊天</span>":"<span>+ 好友</span>")).attr("btntype",(c.IsFriend?"2":"1"))}
if(!ymr(d)){var e=xfx(b,"Left");var f=xfx(b,"Top");var g=$(b).width();var h=$(b).height();var i=$(window).height();var j=$(window).scrollTop();if(f+187+30>i+j)f=f-187;else f=f+h;if(e+350>$(window).width()-40)e=e-350+g;if(e<0)e=0;d.show().css({"left":e+"px","top":f+"px"}).children().show()}};Dcx.NameCard.Create=function(){if(Dcx.NameCard.$container==null){Dcx.NameCard.$container=$("body",window.document).children("div.namecard");if(Dcx.NameCard.$container.length<1){var a=$.browser.msie?"mouseenter":"mouseover";var b=$.browser.msie?"mouseleave":"mouseout";var c='<div class="js-component-menu nui-menu dropdown namecard" style="_overflow:hidden;">'+'<div class="content clearfix">'+'<div class="name_card">'+'<dl class="name clearfix">'+'<dt><a   href="javascript:void(0);"><img class="picborder_r" src="" width="150" height="150"/></a></dt>'+'<dd>'+'<ul class="userdata ">'+'<li>'+'<a class=\"uname\" nm=\"1\" href="javascript:void(0);">姓名</a>'+'</li>'+'<li dn=1>市场部</li><li pn=1>市场经理</li><li sn=1>男</li>'+'</ul>'+'</dd>'+'</dl>'+'<div class="links clearfix"  >'+'<div><a href="javascript:void(0);" onclick=\"javascript:Dcx.NameCard.vgk(this);\" btntype=\"1\" class="W_btn_b b1"><span>+ 好友</span></a></div>';if(DcxHome!=undefined){c=c+'<div><a href="javascript:void(0);" onclick=\"javascript:Dcx.NameCard.vgk(this);\" btntype=\"3\" class="W_btn_b"><span> 发私信</span></a></div>'+'<div><a href="javascript:void(0);" onclick=\"javascript:Dcx.NameCard.vgk(this);\" btntype=\"4\" class="W_btn_b"><span> 发微邮</span></a></div>'};c=c+'</div>'+'</div>'+'   </div>'+'</div>';Dcx.NameCard.$container=$(c);$('body',window.document).append(Dcx.NameCard.$container);Dcx.NameCard.$container.unbind(a).bind(a,function(){Dcx.NameCard.isInDlg=true;clearTimeout(Dcx.NameCard.Timeout)}).unbind(b).bind(b,function(){Dcx.NameCard.isInDlg=false;clearTimeout(Dcx.NameCard.Timeout);Dcx.NameCard.Timeout=setTimeout(function(){if(Dcx.NameCard.isInDlg==false){Dcx.NameCard.$container.hide()}},50)})}}}
Dcx.Utility.hmv=function(a){var b=0;for(var k=0;k<a.length;k++){var c=a.charCodeAt(k);if(c>256){b+=2}else b++}
return b};Dcx.File.trv=function(a){if(ymr(a))return"";var i=a.lastIndexOf("/");if(i<0)i=a.lastIndexOf("\\");if(i>=0)return a.substr(0,i)+"/cmps"+a.substr(i,a.length-i);return"/cmps/"+a};Dcx.File.fxg=function(a){if(ymr(a))return"";a=a.toLowerCase();return a.replace("/cmps/","/")};Dcx.ped=function(a,b){window.open("/ajax/DownLoad.ashx?fileId="+b+"&filePath="+a,"_blank")};Dcx.Utility.ucr=function(a){a=parseInt(a,10);var b=true;if(a>=1024){a=a/1024;b=false}
var c="";var d=a+"";var e=0;var g="";var h="";for(var j=0;j<d.length;j++){if(d.substr(j,1)!=","&&d.substr(j,1)!=".")c=c+d.substr(j,1);else if(d.substr(j,1)=="."){e++;g=c;c=""}}
if(e>0){h="."+c;c=g}
var k="";var f="";if(c.substr(0,1)=="-"||c.substr(0,1)=="+"){f=c.substr(0,1);c=c.substr(1,c.length-1)}
var i=1;for(;i<=c.length/3;i++){var l=c.substr(c.length-3*i,3);if(3*i==c.length)k=l+k;else k=","+l+k}
k=c.substr(0,c.length%3)+k;var m=h.length;if(m==0||m-1==0)h="";else if(m-2==0)h=h+"0";else if(m-3>=0)h=h.substr(0,3);if(b)return f+k+h+"K";else return f+k+h+"M"}
function gtc(a,b,c,d,e,f,g){return dvg(56,a,b,c,d,e,f,g)}
Dcx.SpTree.gtc=gtc;function eez(a,b,c,d,e,f,g){return dvg(55,a,b,c,d,e,f,g)}
Dcx.SpTree.eez=eez;function tkk(a,b,c,d,e,f,g){return dvg(58,a,b,c,d,e,f,g)}
Dcx.SpTree.tkk=tkk;function fpv(a,b,c,d,e,f,g){return dvg(59,a,b,c,d,e,f,g)}
Dcx.SpTree.fpv=fpv;Dcx.SpTree.rgv=function(a,b,c,d,e,f,g){return dvg(19,a,b,c,d,e,f,g)}
function dvg(c,d,e,f,g,h,i,j){if(ymr(c)){alert("请指定树的ID。");return null}
var k=true;if(ymr(j)){k=false}
var l=null;if(ymr(d))d=null;if(ymr(e))e=null;if(ymr(f))f=null;if(ymr(g))g=-1;if(ymr(h))h=1;if(ymr(i))i=false;var m={treeId:c,"treeNodeJSonClick1":d,"treeNodeJSonClick2":e,"bindFieldName":f,"entId":g,"formType":h,"hideTree":i};var n="/WebServices/Control/Control.asmx/GetSuperTreeHtmlByTreeId";$.ajax({type:"POST",contentType:"application/json; charset=utf-8",url:n,"async":k,data:JSON2.stringify(m),dataType:'json',beforeSend:function(a){},complete:function(a,b){},error:function(a){art.VLdialog.alert("获取主页信息失败。详情："+JSON2.stringify(a),function(){},668,"提示");return false},success:function(a){a=hmy(a);if(a==null){art.VLdialog.alert("获取树HTML失败！",function(){},8,"提示");return false}
if(a.IsOK==false){art.VLdialog.alert(a.ErrorMsg,function(){},8,"提示");return false}
if(!ymr(j)){j(a.ReturnValue,c)}
l=a.ReturnValue}});return l}
Dcx.SpTree.ccwHtml=dvg;function glg(a,b,c){var d=document;var e=window;var f=$("head",document).get(0).getElementsByTagName('script');var g=null;if(!ymr(a))a=a.toLowerCase();for(var i=0;i<f.length;i++){if(f[i].src&&f[i].src.toLowerCase().indexOf(a)!==-1){g=f[i];break}}
if(!ymr(g))return true;var h=ymr(g)?f[f.length-1]:g;if(c!=true)c=false;var j=d.createElement('script');j.type='text/javascript';j.src=b;h.parentNode.insertBefore(j,h)}
Dcx.glg=glg;Dcx.srs=function(a,b,c){var d=document.getElementsByTagName('link');var e=null;for(var i=0;i<d.length;i++){if(d[i].href&&d[i].href.toLowerCase().indexOf(a)!==-1){e=d[i];break}}
if(e==null){var f=document.getElementsByTagName('script');var g=null;if(!ymr(c)){for(var i=0;i<f.length;i++){if(f[i].src&&f[i].src.toLowerCase().indexOf(c)!==-1){g=f[i];break}}}
var h=ymr(g)?f[f.length-1]:g;var j=document.createElement('link');j.rel='stylesheet';j.href=b;h.parentNode.insertBefore(j,h)}}
function ugl(a,b,c){var d=$("#div_List_"+c+b);var e=false;if($(a).attr("checked"))e=true;d.children().find("input[IsSysCheck=1]").each(function(m){this.checked=e})}
DcxForm.ugl=ugl;Dcx.exd=function(a){if(ymr(a))a=window.top.DcxHome.UserId;a=a+"";var b="";for(var i=a.length+1;i<=9;i++)b="0"+b;a=b+a;return a.substr(0,3)+"/"+a.substr(3,2)+"/"+a.substr(5,2)+"/"+a.substr(7,2)}
Dcx.qco=function(d,e){if(window.top.DcxHome!=undefined){var f=null;var g=null;var h=0;var i=null;var j=function(){if(f==null||f==undefined){f=tzm("iframeId");if(ymr(f)){var a=tzm("parentUrl");if(!ymr(a)){a=unescape(a);a=wxo(a,"^#%","&").toLowerCase();var k=a.indexOf("iframeid=");if(k>=0){var b=a.indexOf("&",k+6);if(b>=0)f=a.substr(k+9,b-k-9);else f=a.substr(k+9,a.length-k-9)}}}}
if(!ymr(f)){if(ymr(g))g=$(window.top.document).find("#"+f);if(i==null)i=$("body",document);var c=i.height();if(h!=c&&c>h){if(c<500)c=500;c=c+250;g.height(c)}
h=c;setTimeout(function(){j()},1000)}};setTimeout(function(){j()},1000)}}
Dcx.ryk=function(a){if(a==1){return"pic_v2"}else if(a==3){return"pic_v2 v_pic_txt "}else if(a==4){return"pic_v2 v_pic_doc "}else if(a==5){return"ico_fppt"}else if(a==6){return"ico_fexl"}else if(a==7){return"pic_v2 v_pic_pdf"}else if(a==8){return"ico_frar"}else{return"ico_fother"}}
Dcx.Rotate=function(a,b){var d=a;if(!d||!b)return false;var n=d.getAttribute('step');if(n==null)n=0;if(b=='left'){(n==0)?n=3:n--}else if(b=='right'){(n==3)?n=0:n++}
d.setAttribute('step',n);if(document.all){d.style.filter='progid:DXImageTransform.Microsoft.BasicImage(rotation='+n+')';switch(n){case 0:d.parentNode.style.height=d.height;break;case 1:d.parentNode.style.height=d.width;break;case 2:d.parentNode.style.height=d.height;break;case 3:d.parentNode.style.height=d.width;break}}else{var c=document.getElementById('canvas_'+a);if(c==null){d.style.visibility='hidden';d.style.position='absolute';c=document.createElement('canvas');c.setAttribute("id",'canvas_'+a);d.parentNode.appendChild(c)}
var e=c.getContext('2d');switch(n){default:case 0:c.setAttribute('width',d.width);c.setAttribute('height',d.height);e.rotate(0*Math.PI/180);e.drawImage(d,0,0,d.width,d.height);break;case 1:c.setAttribute('width',d.height);c.setAttribute('height',d.width);e.rotate(90*Math.PI/180);e.drawImage(d,0,-d.height,d.width,d.height);break;case 2:c.setAttribute('width',d.width);c.setAttribute('height',d.height);e.rotate(180*Math.PI/180);e.drawImage(d,-d.width,-d.height,d.width,d.height);break;case 3:c.setAttribute('width',d.height);c.setAttribute('height',d.width);e.rotate(270*Math.PI/180);e.drawImage(d,-d.width,0,d.width,d.height);break}}}
function dev(a,b){if(!isNaN(a)){var c=new Number(a);if(!ymr(b))c=c.toFixed(b);return c}else return new Number(0.00)}
Dcx.ToFixed=dev;function uug(a){var b="";var c=a+"";var d=0;var e="";var g="";for(var h=0;h<c.length;h++){if(c.substr(h,1)!=","&&c.substr(h,1)!=".")b=b+c.substr(h,1);else if(c.substr(h,1)=="."){d++;e=b;b=""}}
if(d>0){g="."+b;b=e}
var j="";var f="";if(b.substr(0,1)=="-"||b.substr(0,1)=="+"){f=b.substr(0,1);b=b.substr(1,b.length-1)}
var i=1;for(;i<=b.length/3;i++){var k=b.substr(b.length-3*i,3);if(3*i==b.length)j=k+j;else j=","+k+j}
j=b.substr(0,b.length%3)+j;var l=g.length;if(l==0||l-1==0)g=".00";else if(l-2==0)g=g+"0";else if(l-3>=0)g=g.substr(0,3);return f+j+g}
Dcx.ConvertMoney=uug;function ugl(a,b,c){var d=$("#div_List_"+c+b);var e=false;if($(a).attr("checked"))e=true;d.children().find("input[IsSysCheck=1]").each(function(m){this.checked=e})}
DcxCom.CheckedAll=ugl;function god(b,c){if(c==undefined)c=true;if(c!=true)c=false;if(ymr(b)||isNaN(b))b=0;DcxAjax.Go({"url":"/WebServices/Comman/Comman.asmx/AddSiteVisitLog","data":"{\"pageId\":"+b+",\"isVisit\":"+c+"}",async:true,success:function(a){}});return true}
Dcx.SiteVisit=god;function pcq(a,b){if(b)$(a).find("div.operation").show();else $(a).find("div.operation").hide()}
function bhb(c,d,e){var f="/WebServices/Comman/Comman.asmx/IsLogined";var g=false;$.ajax({type:"POST",contentType:"application/json; charset=utf-8",url:f,async:false,data:"{}",dataType:'json',success:function(r){r=hmy(r);g=r}});if(!g&&e){if(ymr(c))c="登陆到运行端";var h="/Designer/site/login.html?NoJump=1";var i="dcxIframeLogin";var j="<iframe src='"+h+"' name='"+i+"' id='"+i+"' style='width:530px; height:290px; border: 0px none;display:inline;' frameborder='0' ></iframe>";var k=art.VLdialog({"title":c,content:j,background:'#0c2136',top:'100px',opacity:0.2,width:540,height:300,lock:true,button:[{name:'登   陆',callback:function(){var a=$("#"+i).get(0).contentWindow;if(a.isLogining)return false;var b=a.idr(false,false,false);if(!b)return false;else{if(!ymr(d))window.location.href=d;else window.location.reload();return true}},focus:true},{name:'关   闭',callback:function(){return true},focus:false}]})}
return g}
Dcx.Utility.IsLogined=bhb;function qnm(a,b,c,d){var e=jre("DBConnectId",-1);var f=jre("IsDesigningPage",0);window.location.href=a+"?menuId="+b+"&entId="+c+"&dbConnectId="+e+"&isDesigningPage="+f}
Dcx.GoToEntPage=qnm;function tpo(){if(DcxPlsMsg!=null&&!ymr(DcxPlsMsg.SystemUrl))return DcxPlsMsg;var c="/Designer/WebServices/System/Account.asmx/fes";$.ajax({type:"POST",contentType:"application/json; charset=utf-8",url:c,async:false,data:"{}",dataType:'json',beforeSend:function(a){},complete:function(a,b){},error:function(a){alert("获取系统信息失败。详情："+JSON2.stringify(a))},success:function(a){DcxPlsMsg=hmy(a)}});return DcxPlsMsg}
function ifz(){var c=null;var d="/WebServices/Comman/Comman.asmx/ifz";$.ajax({type:"POST",contentType:"application/json; charset=utf-8",url:d,async:false,data:"{}",dataType:'json',beforeSend:function(a){},complete:function(a,b){},error:function(a){alert("获取系统信息失败。详情："+JSON2.stringify(a))},success:function(a){c=hmy(a)}});return c}
function asi(b,c){var d={"id":b,"typeId":c};var e="/WebServices/Cache/Cache.asmx/RemoveCache";$.ajax({type:"POST",contentType:"application/json; charset=utf-8",url:e,data:JSON2.stringify(d),dataType:'json',error:function(a){alert("更新缓存失败。详情："+JSON2.stringify(a))},success:function(a){d=hmy(a)}});return d}
Dcx.RemoveCache=asi;function rch(a,b,c,d,e,f){if(e!=true)e=false;var g={"taskId":a,"value1":b,"value2":c,"value3":d};var h="/WebServices/Comman/Comman.asmx/rch";var i="";$.ajax({type:"POST",contentType:"application/json; charset=utf-8",url:h,async:e,data:JSON2.stringify(g),dataType:'json',success:function(r){r=hmy(r);i=r;if(!ymr(f))f(i)}});return i}
function dis(a,b){if(b==undefined)b=10;var d="";var e=0;var k=0;for(k=0;k<a.length;k++){var c=a.charCodeAt(k);if(c>256){e+=2}else e++;if(e<b||(e==b&&(k==a.length-1)))d=d+a.charAt(k);else{d=d+"..";break}}
return d}
function zat(a){var b=-1;switch(a){case"ListR_":b=1;break;case"GroupR_":b=6;break;case"GroupI_":b=13;break;case"CrossR_":b=7;break;case"MChildR_":b=6;break;case"GraphR_":b=7;break;case"DetailR_":b=8;break;case"SearchF_":b=2;break;case"DefaultF_":b=18;break;case"GraphR_":b=8;break;case"MChildR_":b=16;break;case"DefaultR_":b=19;break;case"AjaxF_":b=3;break;case"ListF_":b=17;break;case"TitleL_":b=9;break;case"BlockL_":b=12;break;case"SummaryL_":b=10;break;case"ImgSummyL_":b=11;break;case"Tree":b=5;break;case"View":b=4;break}
return b}
function las(a){var b=-1;switch(a){case"DefaultR_":b=1;break;case"ListR_":b=2;break;case"GroupR_":b=3;break;case"GroupI_":b=4;break;case"CrossR_":b=5;break;case"MChildR_":b=6;break;case"GraphR_":b=7;break;case"DetailR_":b=8;break;case"SearchF_":b=9;break;case"DefaultF_":b=10;break;case"DynamicF_":b=11;break;case"AjaxF_":b=12;break;case"ListF_":b=13;break;case"TitleL_":b=14;break;case"BlockL_":b=15;break;case"SummaryL_":b=16;break;case"ImgSummyL_":b=17;break;case"Tree":b=18;break;case"View":b=19;break}
return b}
DcxSch.las=las;function pjh(g){try{g=ymr(g)||g.length<1?$(".tab_ul"):g;g.each(function(){var a=$(this);var b=a.find("li");var c=b.length;var d=1;b.each(function(i){if(i==0&&c>1){$(this).addClass("de-selected");d=$(this).attr("tabid");if(!isNaN(d))d=parseInt(d,10);else d=1}else $(this).removeClass("de-selected");$(this).unbind("click").click(function(){eph($(this))})});var e=g.next();var k=0;while(!ymr(e)&&e.length>0){var f=e.attr("tabid");if(!ymr(f)&&!isNaN(f)){f=parseInt(f,10);if(f==d)e.show();else e.hide()}
e=e.next();k++}})}catch(err){}}
DcxTabs.InitAllTab=pjh;function eph(a){try{var b=a.parent();b.find("li").removeClass("de-selected  li-tab").addClass(" li-tab");a.addClass("de-selected").removeClass("li-tab");a.height(29);var c=a.attr("tabid");if(!ymr(c)&&!isNaN(c))c=parseInt(c,10);else return;var d=b.next();while(!ymr(d)&&d.length>0){var e=d.attr("tabid");if(!ymr(e)&&!isNaN(e)){e=parseInt(e,10);if(e==c)d.show();else if(e>0)d.hide()}
d=d.next()}}catch(err){}}
DcxTabs.ClickOnTab=eph;var DcxDDown={};var gui=false;var sat=false;var qwq=null;var fcb="";var rhm="";var dnx=null;var pdx=null;var ejj=null;var rpx=null;var qpu=1;var cuf=null;function qvs(d){if(d==undefined||d==null||$(d).attr("tagName")==undefined){d=this}
var e=$(d);if(!ymr(fcb)&&fcb!=$(d).attr("id")+"NavMore"){sat=false;window.clearTimeout(qwq);window.clearTimeout(rpx);qwq=null;var f=$('#'+fcb);f.hide();var g=f.attr("dealTitle");if(g=="1"){e.removeClass("title-sd");var h=e.find(".icon2");h.removeClass("icon2").addClass("icon1")}
sat=false;gui=false;fcb=null}
if(fcb==($(d).attr("id")+"NavMore")&&gui){sat=false;window.clearTimeout(qwq);qwq=null}
$curTitleObj=$(d);dnx=$curTitleObj;cuf=new Array();for(var i=1;i<arguments.length;i++){cuf.push(arguments[i])}
rhm=e.attr("id")+"NavMore";fcb=rhm;if(gui)return;var f=$('#'+rhm);f.show();ejj=f;var g=f.attr("dealTitle");if(g=="1"){e.addClass("title-sd");var h=e.find(".icon1");h.removeClass("icon1").addClass("icon2")}
gui=true;var j=$.trim(f.attr("left"));if(ymr(j))j=200;else j=parseInt(j,10);var k=$.trim(f.attr("top"));if(ymr(k))k=25;else k=parseInt(k,10);var l=$(d).offset().left-j;var m=f.attr("moveUpDown");if(m=="0"){var n=$(d).offset().top+k;f.css("top",n+"px").css("left",l+"px")}else{var n=$(d).offset().top+k+5;f.css("top",n+"px").css("left",l+"px");n=$(d).offset().top+k;f.stop().animate({'top':n+"px"},100)}
if(e.attr("isClick")=="1"){var o=$.browser.msie?"mouseleave":"mouseout";window.clearTimeout(rpx);e.unbind(o).bind(o,function(){window.clearTimeout(rpx);rpx=window.setTimeout(function(){sat=false;window.clearTimeout(qwq);window.clearTimeout(rpx);qwq=null;var a=$('#'+fcb);a.hide();var b=a.attr("dealTitle");if(b=="1"){e.removeClass("title-sd");var c=e.find(".icon2");c.removeClass("icon2").addClass("icon1")}
sat=false;gui=false;fcb=null},300)})}}
DcxDDown.ShowDDown=qvs;function cld(d){if(d==undefined||d==null||$(d).attr("tagName")==undefined){d=this}
sat=true;fcb=rhm;var e=$(d);qwq=window.setTimeout(function(){if(sat){var a=null;if(fcb!=""){a=$('#'+fcb);a.hide();var b=a.attr("dealTitle");if(b=="1"){e.removeClass("title-sd");var c=e.find(".icon2");if(c.length>0)c.removeClass("icon2").addClass("icon1")}}
sat=false;gui=false}
window.clearTimeout(qwq);qwq=null},400);var e=$(d);var r=Math.floor(Math.random()*41)-20;if($curTitleObj.attr("isClick")=="1"){var f=$.browser.msie?"mouseleave":"mouseout";$curTitleObj.unbind(f)}}
function oro(a,b,c){var d=$.browser.msie?"mouseenter":"mouseover";var e=$.browser.msie?"mouseleave":"mouseout";if(ymr(b))b=a.attr("id")+"NavMore";var f=false;if(c==2)a.attr("isClick",1);a.unbind('click').bind('click',function(){qvs(a.get(0))});if(c!=2){a.unbind(d).bind(d,function(){f=true;setTimeout(function(){if(f==true){f=false;qvs(a.get(0))}},200)}).unbind(e).bind(e,function(){f=false})}
pcl(b,c)}
function pcl(b,c){var d=false;var e=$.browser.msie?"mouseenter":"mouseover";var f=$.browser.msie?"mouseleave":"mouseout";var g=!ymr(b)?$("#"+b):null;if(!ymr(g)){gui=false;sat=false;qwq=null;fcb="";rhm="";pdx=g;g.unbind(e).bind(e,function(){if(c==2){window.clearTimeout(rpx);rpx=null}
if(gui){window.clearTimeout(qwq);qwq=null;return}
gui=true;window.clearTimeout(qwq);sat=false;fcb=rhm;$('#'+rhm).show()}).unbind(f).bind(f,function(){sat=true;qwq=window.setTimeout(function(){chw()},300)}).click(function(){if($.browser.msie)$(this).mouseleave();else $(this).mouseout();d=true;$(this).hide()}).find('div.navIcon').click(function(){}).mouseenter(function(){$(this).css("top","-56px")}).mouseleave(function(){$(this).css("top","0px")});$(document).mouseup(function(a){if(!d){sat=true;chw()}
d=false})}}
DcxDDown.InitDDown=pcl;function chw(){if(sat){if(!ymr(fcb)){var a=$('#'+fcb);a.hide();if(a.attr("dealTitle")=="1"){var b=fcb.replace("NavMore","");var c=$('#'+b);if(!ymr(c)&&c.length>0){c.removeClass("title-sd");var d=c.find(".icon2");if(d.length>0)d.removeClass("icon2").addClass("icon1")}}}
sat=false;gui=false;fcb=null}
window.clearTimeout(qwq);qwq=null}
function npg(a,b){var c=ker(a,b);if(ymr(c))return;var d=c.EntMsg["E"+a];if(ymr(d))return;if(!ymr(d)){var e=d.RecortCount;var f=ixv(a,b);if(d.PageSize<1)d.PageSize=10;var g=parseInt(d.RecortCount/d.PageSize,10)+(d.RecortCount%d.PageSize>0?1:0);var h=d.CurPageIndex;var j=h+9;var k=h-10;if(k<1)k=1;if(j>g)j=g;var l=$("#span_searchReport");if(!ymr(l)&&l.length>0)l.html("共有 <span style='color:#fa900a;font-weight:bold;' >"+e+" </span>条搜索结果&gt;&gt;");var m=new nzy();if(h<2)m.append(" <span class='page-prev'><span>上一页</span></span>");else m.append("<a class='page-prev' title='上一页' onclick=\"javascript:ujh("+a+",'"+b+"','p',-1);\"   href='javascript:void(0);'><span>上一页</span></a>");for(var i=k;i<=j;i++){if(i!=h)m.append("<a class='page-num' onclick=\"javascript:ujh("+a+",'"+b+"','a',"+i+");\"  href='javascript:void(0);'><span>"+i+"</span></a>");else m.append("<span class='page-num'><span>"+i+"</span></span>")}
if(h==g)m.append(" <span class='page-next'><span>下一页</span></span>");else m.append("<a class='page-next' title='下一页' onclick=\"javascript:ujh("+a+",'"+b+"','n');\"   href='javascript:void(0);'><span>下一页</span></a>");var n=f.find("#div_"+b+a+"_Page");n.html(m.toString())}}
function onh(a,b){var c=null;var d=false;if(b=="ListF_")d=true;if(d)c=col(a,b);else c=ker(a,b);if(ymr(c))return;var e=c.EntMsg["E"+a];if(ymr(e))return;var f=e.RecortCount;if(e.PageSize<1)e.PageSize=10;var g=e.RecortCount<=e.PageSize?1:parseInt(e.RecortCount/e.PageSize,10)+(e.RecortCount%e.PageSize>0?1:0);var h=e.CurPageIndex;var j=$("#span_searchReport");if(j.length>0)j.html("共有 <span style='color:#fa900a;font-weight:bold;' >"+f+" </span>条搜索结果&gt;&gt;");var k=null;if(d)k=yvm(a,b);else k=ixv(a,b);var l=k.find("select[isddlpage]");if(ymr(l)||l.length<1){var j=k.find(".list-pagesdown");if(j.length>0)l=j.find("select");if(ymr(l)||l.length<1)return}
var m=l.parent();var i=0;while(i<10&&!ymr(m)&&m.length>0&&m.attr("tagName").toLowerCase()!="li"){m=m.parent();i++}
if(ymr(m)||m.length<1)return;var n=m.find("a[isfirstpage]");var o=m.find("a[isprevpage]");var p=m.find("a[isnextpage]");var q=m.find("a[islastpage]");var r=m.find("span[iscurpage]");var s=m.find("span[ispagecount]");var t=m.find("span[isrecortcount]");if(h==1||g<1){n.removeClass("firstpage").addClass("firstpage_un");o.removeClass("prvpage").addClass("prvpage_un")}else if(h>0&&g>0&&h<=g){n.addClass("firstpage").removeClass("firstpage_un");o.addClass("prvpage").removeClass("prvpage_un")}
if(h==g||g<1){q.removeClass("lastpage").addClass("lastpage_un");p.removeClass("nextpage").addClass("nextpage_un")}else{q.addClass("lastpage").removeClass("lastpage_un");p.addClass("nextpage").removeClass("nextpage_un")}
r.html(h);s.html(g);t.html(f);l.html("");if(ymr(l)||l.length<1)return;var u=parseInt(l.val(),10);if(ymr(u)||isNaN(u)||u!=h){if(h==NaN||h==undefined||h<1)h=1;var v=h-25;var w=h+25;if(v<1){w=w-v;v=1}
if(w>g)w=g;var x=new nzy();for(var i=v;i<=w;i++)x.append("<option value='"+i+"'>"+i+"</option>");l.html(x.toString());l.val(h)}}
DcxForm.DealPage=onh;DcxReport.DealPage=onh;$.extend({deh:function(a,b){var c='jUploadFrame'+a;var d='<iframe id="'+c+'" name="'+c+'" style="position:absolute; top:-9999px; left:-9999px"';if(window.ActiveXObject){if(typeof b=='boolean')d+=' src="'+'javascript:false'+'"';else if(typeof b=='string')d+=' src="'+b+'"'}
d+=' />';var e=$(d);e.appendTo(document.body);return e},pjs:function(a,b){var c='jUploadForm'+a;var d='jUploadFile'+a;var e=$('<form  action="" method="POST" name="'+c+'" id="'+c+'" enctype="multipart/form-data"></form>');var f=$('#'+b);var g=f.clone();f.attr('id',d).before(g).appendTo(e);e.css({'position':'absolute','top':'-1200px','left':'-1200px'}).appendTo('body');return e},bpd:function(f,g){if(g.url==undefined)g.url='/js/Control/AjaxFileUpload/AjaxFileUpload.ashx';if(g.deleteOld==undefined)g.deleteOld=true;if(g.secureuri==undefined)g.secureuri=false;if(g.dataType==undefined)g.dataType='text';g=$.extend({},$.ajaxSettings,g);var h=new Date().getTime();var j='jUploadFrame'+h;var l='jUploadForm'+h;var m=-1;var n=$('<form  action="" method="POST" name="'+l+'" id="'+l+'" enctype="multipart/form-data"></form>');if(ymr(f)||f.length<1)return false;var o=new Array();var p=new nzy();var q=1;for(var i=0;i<f.length;i++){var r=f[i];if(i==0)m=r.EntId;if(!ymr(f)&&f.length>0){for(var k=0;k<r.Items.length;k++){var s=r.Items[k];if(g.deleteOld&&!ymr(s.OldValue)&&s.Value!=s.OldValue)o.push(s.OldValue);if(!ymr(s.Obj)){var t=s.Obj.clone();s.Obj.before(t).appendTo(n);p.append(s.NewFile+"|");q++}
if(!ymr(s.Other)){for(var u in s.Other){if(ymr($.trim(s.Other[u])))continue;var v=$("<input type=\"hidden\" id=\""+u+"\" name=\""+u+"\" value=\""+s.Other[u]+"\" />");v.appendTo(n)}}}}}
var w=$("<input type=\"hidden\" id=\"FileNames\" name=\"FileNames\" value=\""+p.toString()+"\" />");w.appendTo(n);n.css({'position':'absolute','top':'-1200px','left':'-1200px'}).appendTo('body');var x=$.deh(h,g.secureuri);var y=false;var z={};if(g.global){if(!$.active++)$.event.trigger("ajaxStart");$.event.trigger("ajaxSend",[z,g])}
var A=function(a){var b=x.get(0);try{if(b.contentWindow){z.responseText=b.contentWindow.document.body?b.contentWindow.document.body.innerHTML:null;z.responseXML=b.contentWindow.document.XMLDocument?b.contentWindow.document.XMLDocument:b.contentWindow.document}else if(b.contentDocument){z.responseText=b.contentDocument.document.body?b.contentDocument.document.body.innerHTML:null;z.responseXML=b.contentDocument.document.XMLDocument?b.contentDocument.document.XMLDocument:b.contentDocument.document}}catch(e){$.handleError(g,z,null,e)}
if(z||a=="timeout"){y=true;var c;try{c=a!="timeout"?"success":"error";if(c!="error"){var d=$.oql(z,g.dataType);if(g.success)g.success(d,c);if(g.global)$.event.trigger("ajaxSuccess",[z,g])}else $.handleError(g,z,c)}catch(e){c="error";try{$.handleError(g,z,c,e)}catch(ee){}}
if(g.global){$.event.trigger("ajaxComplete",[z,g]);if(!--$.active)$.event.trigger("ajaxStop")}
if(g.complete)g.complete(z,c);$(b).unbind();setTimeout(function(){try{$(b).remove();n.remove()}catch(e){$.handleError(g,z,null,e)}},100);z=null}}
x.load(A);try{n.attr('action',g.url).attr('method','POST').attr('target',j);if(n.encoding)n.attr('encoding','multipart/form-data');else n.attr('enctype','multipart/form-data');if(g.timeout>0){setTimeout(function(){if(!y)A("timeout")},g.timeout)}
n.submit();if(!ymr(o)&&o.length>0){var B="/Designer/WebServices/Comman/Comman.asmx/DeleteFile";$.ajax({type:"POST",contentType:"application/json; charset=utf-8",url:B,data:"{EntId:"+m+",fileNames:"+JSON2.stringify(o)+"}",dataType:'json',beforeSend:function(a){},complete:function(a,b){},error:function(a){return false},success:function(a){a=hmy(a)}})}}catch(e){$.handleError(g,z,null,e)}
return{caa:function(){}}},oql:function(r,a){var b=!a;b=a=="xml"||b?r.responseXML:r.responseText;if(a=="script")$.globalEval(b);if(a=="json"){b=eval(b)}
if(a=="html")$("<div>").html(b).evalScripts();return b}});function aww(a){try{a=$.trim(a);var i=a.lastIndexOf("\\");i=i<0?a.lastIndexOf("/"):i;var b=i<0?a:a.substr(i+1,a.length-i-1);var i=b.lastIndexOf('.');var c="";var e="";if(i>=0){c=b.substr(0,i);e=b.substr(i,b.length-i)}else c="";var d=new Date();var f=d.getFullYear()+"";var g=(d.getMonth()+1)+"";var h=d.getDate()+"";var j=parseInt((Math.random()*100000),10)+"";var k="/UpLoadFiles/user/"+f+"/"+g+"/"+h+"/"+c+"_"+f+g+h+j+e;return k}catch(err){return null}
return null}
Dcx.File.aww=aww;function mch(a){if(ymr(a))return"";try{a=$.trim(a);var i=a.lastIndexOf("\\");i=i<0?a.lastIndexOf("/"):i;var b=i<0?a:a.substr(i+1,a.length-i-1);return b}catch(err){return""}}
Dcx.File.mch=mch;function bhh(a){if(ymr(a))return"";try{a=$.trim(a);var i=a.lastIndexOf("\\");i=i<0?a.lastIndexOf("/"):i;var b=i<0?a:a.substr(i+1,a.length-i-1);var i=b.lastIndexOf('.');var c="";var d="";if(i>=0){d=b.substr(i,b.length-i)}
var k=b.lastIndexOf('_');if(k>=0){c=b.substr(0,k);return c+d}else return b}catch(err){return""}}
function nnt(a){if(ymr(a))return"";try{a=$.trim(a);var i=a.lastIndexOf("\\");i=i<0?a.lastIndexOf("/"):i;return i<0?a:a.substr(i+1,a.length-i-1)}catch(err){return""}}
Dcx.File.nnt=nnt;Dcx.File.zde=function(a){var i=a.lastIndexOf(".");var b=a.substr(i+1,a.length-(i+1)).toLowerCase();var c=0;var d=0;if(i>0){if(b=="txt"){c=3;d=1}else if(b=="doc"||b=="docx"){c=4;d=1}else if(b=="xls"||b=="xlsx"){c=6;d=1}else if(b=="ppt"||b=="pptx"){c=5;d=1}else if(b=="zip"){c=8;d=6}else if(b=="pdf"){c=7;d=1}else if(b=="swf"||b=="flash"){c=11;d=4}else if(b=="mp3"||b=="wma"){c=9;d=4}else if(b=="avi"||b=="wma"||b=="rmvb"||b=="rm"||b=="mp4"||b=="mid"||b=="4gp"){c=10;d=3}else if(b=="gif"||b=="jpeg"||b=="jpg"||b=="bmp"||b=="png"||b=="tiff"||b=="raw"){c=2;d=2}else if(b=="html"||b=="htm"){c=12;d=7}}
return c}
Dcx.File.ljp=function(){var d=new Date();return d.getFullYear()+"/"+(d.getMonth()+1)+"/"+d.getDate()}