You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
10 KiB
Plaintext
1 line
10 KiB
Plaintext
11 months ago
|
var $dp,WdatePicker;(function(){var aa={$langList:[{name:"en",charset:"UTF-8"},{name:"zh_CN",charset:"UTF-8"},{name:"zh_TW",charset:"UTF-8"}],$skinList:[{name:"default",charset:"gb2312"},{name:"whyGreen",charset:"gb2312"},{name:"blue",charset:"gb2312"},{name:"green",charset:"gb2312"},{name:"simple",charset:"gb2312"},{name:"ext",charset:"gb2312"},{name:"blueFresh",charset:"gb2312"},{name:"twoer",charset:"gb2312"},{name:"YcloudRed",charset:"gb2312"}],$wdate:true,$crossFrame:false,$preLoad:false,$dpPath:"",doubleCalendar:false,enableKeyboard:true,enableInputMask:true,autoUpdateOnChanged:null,weekMethod:"MSExcel",position:{},lang:(window.lang||"auto"),skin:"twoer",dateFmt:"yyyy-MM-dd",realDateFmt:"yyyy-MM-dd",realTimeFmt:"HH:mm:ss",realFullFmt:"%Date %Time",minDate:"0001-01-01 00:00:00",maxDate:"9999-12-31 23:59:59",minTime:"00:00:00",maxTime:"23:59:59",startDate:"",alwaysUseStartDate:false,yearOffset:1911,firstDayOfWeek:1,isShowWeek:false,highLineWeekDay:true,isShowClear:true,isShowToday:true,isShowOK:true,isShowOthers:true,readOnly:false,errDealMode:0,autoPickDate:null,qsEnabled:true,autoShowQS:false,hmsMenuCfg:{H:[1,6],m:[5,6],s:[15,4]},opposite:false,specialDates:null,specialDays:null,disabledDates:null,disabledDays:null,onpicking:null,onpicked:null,onclearing:null,oncleared:null,ychanging:null,ychanged:null,Mchanging:null,Mchanged:null,dchanging:null,dchanged:null,Hchanging:null,Hchanged:null,mchanging:null,mchanged:null,schanging:null,schanged:null,eCont:null,vel:null,elProp:"",errMsg:"",quickSel:[],has:{},getRealLang:function(){var b=aa.$langList;for(var a=0;a<b.length;a++){if(b[a].name==this.lang){return b[a]}}return b[0]}};WdatePicker=af;var Y=window,ad={innerHTML:""},d="document",U="documentElement",I="getElementsByTagName",N,M,ae,ag,Q;var K=navigator.appName;if(K=="Microsoft Internet Explorer"){ae=true}else{if(K=="Opera"){Q=true}else{ag=true}}M=aa.$dpPath||T();if(aa.$wdate){Z(M+"skin/WdatePicker.css")}N=Y;if(aa.$crossFrame){try{while(N.parent!=N&&N.parent[d][I]("frameset").length==0){N=N.parent}}catch(e){}}if(!N.$dp){N.$dp={ff:ag,ie:ae,opera:Q,status:0,defMinDate:aa.minDate,defMaxDate:aa.maxDate}}ai();if(aa.$preLoad&&$dp.status==0){ab(Y,"onload",function(){af(null,true)})}if(!Y[d].docMD){ab(Y[d],"onmousedown",P,true);Y[d].docMD=true}if(!N[d].docMD){ab(N[d],"onmousedown",P,true);N[d].docMD=true}ab(Y,"onunload",function(){if($dp.dd){R($dp.dd,"none")}});function ai(){try{N[d],N.$dp=N.$dp||{}}catch(b){N=Y;$dp=$dp||{}}var a={win:Y,$:function(f){return(typeof f=="string")?Y[d].getElementById(f):f},$D:function(f,g){return this.$DV(this.$(f).value,g)},$DV:function(h,i){if(h!=""){this.dt=$dp.cal.splitDate(h,$dp.cal.dateFmt);if(i){for(var f in i){if(this.dt[f]===undefined){this.errMsg="invalid property:"+f}else{this.dt[f]+=i[f];if(f=="M"){var j=i.M>0?1:0;var g=new Date(this.dt.y,this.dt.M,0).getDate();this.dt.d=Math.min(g+j,this.dt.d)}}}}if(this.dt.refresh()){return this.dt}}return""},show:function(){var g=N[d].getElementsByTagName("div"),h=100000;for(var i=0;i<g.length;i++){var f=parseInt(g[i].style.zIndex);if(f>h){h=f}}this.dd.style.zIndex=h+2;R(this.dd,"block");R(this.dd.firstChild,"")},unbind:function(f){f=this.$(f);if(f.initcfg){O(f,"onclick",function(){af(f.initcfg)});O(f,"onfocus",function(){af(f.initcfg)})}},hide:function(){R(this.dd,"none")},attachEvent:ab};for(var c in a){N.$dp[c]=a[c]}$dp=N.$dp}function ab(c,b,a,g){if(c.addEventListener){var f=b.replace(/on/,"");a._ieEmuEventHandler=function(h){return a(h)};c.addEventListener(f,a._ieEmuEventHandler,g)}else{c.attachEvent(b,a)}}function O(a,b,c){if(a.removeEventListener){var f=b.replace(/on/,"");c._ieEmuEventHandler=function(g){return c(g)};a.removeEventListener(f,c._ieEmuEventHandler,false)}else{a.detachEvent(b,c)}}function S(a,c,f){if(typeof a!=typeof c){return false}if(typeof a=="object"){if(!f){for(var b in a){if(typeof c[b]=="undefined"){return false}if(!S(a[b],c[b],true)){return false}}}return true}else{if(typeof a=="function"&&typeof c=="function"){return a.toString()==c.toString()}else{return a==c}}}function T(){var b,a,f=Y[d][I]("script");for(var c=0;c<f.
|