⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 radinput.js

📁 Telerik是很大的第三方软件制造商
💻 JS
📖 第 1 页 / 共 3 页
字号:
function DatePickerGregorianCalendar(){}DatePickerGregorianCalendar.prototype.O= function (o){var I=o.getFullYear(); return (((I%4==0) && (I%100!=0)) || (I%400==0))?366: 355; };DatePickerGregorianCalendar.prototype.A=[31,28,31,30,31,30,31,31,30,31,30,31]; DatePickerGregorianCalendar.prototype.U= function (o){if (this.O(o)==366 && o.getMonth()==1){return 29; }return this.A[o.getMonth()]; };;function RadDateInput(Z,z){ this.EmptyMessage=""; this.AllowEmpty= false; this.RangeValidation= false; this.W=RadDateInput.w(); this.V=RadDateInput.w(); this.V.setFullYear(1,0,1); this.v=RadDateInput.w(); this.v.setFullYear(9999,11,31); this.T=RadDateInput.w(); this.t=RadDateInput.w(); this.S=new DatePickerGregorianCalendar(); this.R(Z,z); this.r= false; this.Q=null; var P=this ; var N= function (){P.n(); P.M(); P.r= true; P.m(); P.r= false; P.Visualise(); };if (this.field.addEventListener){ this.field.addEventListener("\x62\x6cur",N, false); this.field.form.addEventListener("\x73ubmi\x74",N, false); }else { this.field.attachEvent("onblur",N); this.field.form.attachEvent("onsubmit",N); }}RadDateInput.w= function (){var L=new Date(); L.setHours(0,0,0,0); return L; };RadDateInput.prototype=new RadMaskedTextBox(); RadDateInput.prototype.SetMaxDate= function (l){ this.t=RadDateInput.K(l); };RadDateInput.prototype.GetMaxDate= function (){return RadDateInput.k(this.t); };RadDateInput.prototype.GetMinDate= function (){return RadDateInput.k(this.T); };RadDateInput.prototype.J= function (){return this.W.getTime()!=this.H.getTime(); };RadDateInput.prototype.SetMinDate= function (l){ this.T=RadDateInput.K(l); };RadDateInput.prototype.Clear= function (){ this.SetDate(RadDateInput.k(this.T)); };RadDateInput.prototype.h= function (G){if (!this.g){if (this.F() && this.AllowEmpty){ this.field.value=this.GetPrompt(); }else { this.field.value=G; }}else {if (this.f){ this.field.value=this.D(); }else if (this.HideOnBlur && this.F()){ this.field.value=this.C(); }else {if (this.AllowEmpty && this.F()){ this.field.value=this.GetPrompt(); }else { this.field.value=G; }}}};RadDateInput.K= function (value){var c=Date.parse(value); var L=RadDateInput.w(); L.setTime(c); return L; };RadDateInput.B= {o0: 0,FullYear: 1,O0: 2,l0: 3,i0: 4,I0: 5,o1: 6,O1: 7,l1: 8,i1: 9 };RadDateInput.prototype.I1= function (){if (this.F()){ this.o2.value=""; }else { this.o2.value=this.W.getFullYear()+"\x2d"+(this.W.getMonth()+1)+"\x2d"+this.W.getDate()+" "+this.W.getHours()+":"+this.W.getMinutes()+"\x3a"+this.W.getSeconds(); }};RadDateInput.prototype.O2= function (){if (this.F()){ this.l2.value=""; }else { this.l2.value=this.W.getFullYear()+"-"+(this.W.getMonth()+1)+"\x2d"+this.W.getDate();}};RadDateInput.prototype.i2= function (I2,o3,O3){if (this.r || this.l3){return; } this.r= true; var i3=this.W; this.n(); if (I2.I3){I2.I3(i3); } this.o4(); this.r= false; };RadDateInput.prototype.SetDate= function (O4){ this.r= true; this.l4(O4); this.o4(); this.Visualise(); this.r= false; };RadDateInput.prototype.l4= function (l){ this.i3=RadDateInput.k(this.W); this.W=l; if (!this.RangeValidation){ this.M(); }else { this.i4(); }};RadDateInput.prototype.M= function (){ this.W.setTime(Math.min(this.t.getTime(),this.W.getTime())); this.W.setTime(Math.max(this.T.getTime(),this.W.getTime())); };RadDateInput.prototype.i4= function (){ this.W.setTime(Math.min(this.v.getTime(),this.W.getTime())); this.W.setTime(Math.max(this.V.getTime(),this.W.getTime())); };RadDateInput.prototype.I4= function (){if (typeof(this.OnClientDateChanged)=="\146unction"){ this.OnClientDateChanged(this, {OldDate: this.i3,NewDate: this.W } ); }else if (typeof(window[this.OnClientDateChanged])=="\x66uncti\x6f\x6e"){window[this.OnClientDateChanged](this, {OldDate: this.i3,NewDate: this.W } ); }if (this.Q!=null){ this.Q(this, {OldDate: this.i3,NewDate: this.W } ); }};RadDateInput.prototype.GetDate= function (){return RadDateInput.k(this.W); };RadDateInput.k= function (o5){var O5=RadDateInput.w(); O5.setTime(o5.getTime()); return O5; };RadDateInput.prototype.InitializePartTypes= function (l5,i5){var I5=RadDateInput.o6(); for (var i=0; i<l5.length; i++){for (var j=0; j<l5[i].length; j++){for (var O6 in I5[i]){ this.l6[l5[i][j]][O6]=I5[i][O6]; }}}if (i5.length){for (var i=0; i<i5.length; i++){for (var j=0; j<i5[i].length; j++){for (var O6 in I5[i]){ this.f[i5[i][j]][O6]=I5[i][O6]; }}}} this.n(); this.o4(); };RadDateInput.prototype.o4= function (){for (var i=0; i<this.l6.length; i++){var I2=this.l6[i]; if (I2.i6){I2.i6(this.W); }}};RadDateInput.prototype.I6= function (){for (var i=0; i<this.f.length; i++){var I2=this.f[i]; if (I2.i6){I2.i6(this.W); }}};RadDateInput.prototype.m= function (){for (var i=0; i<this.l6.length; i++){var I2=this.l6[i]; if (I2.o7){I2.o7(this.W); }else if (I2.i6){I2.i6(this.W); }}};RadDateInput.prototype.O7= function (){ this.H=RadDateInput.k(this.W); };RadDateInput.prototype.l7= function (){var i7=this ; setTimeout( function (){i7.SetDate(i7.H); i7.Visualise(); } ,10); };RadDateInput.prototype.n= function (){var I7=this.GetDate(); var o8=[I7.getFullYear(),I7.getMonth(),I7.getDate(),I7.getHours(),I7.getMinutes(),I7.getSeconds(),-1,-1]; for (var i=0; i<this.l6.length; i++){var I2=this.l6[i]; if (I2.O8){I2.O8(o8); }}var l8=RadDateInput.w(); l8.setFullYear(o8[0],o8[1]); o8[2]=Math.min(o8[2],this.S.U(l8)); I7.setFullYear(o8[0],o8[1],o8[2]); if (o8[6]!=-1 && o8[7]!=-1){if (o8[7]){o8[6]=parseInt(o8[6])+12; }I7.setHours(o8[6],o8[4],o8[5]); }else {I7.setHours(o8[3],o8[4],o8[5]); } this.l4(I7); };RadDateInput.prototype.C= function (){return this.EmptyMessage; };RadDateInput.prototype.D= function (){ this.I6(); return this.i8(this.f); };RadDateInput.prototype.F= function (){return this.I8(this.W,this.T) || this.I8(this.W,this.V); };RadDateInput.prototype.I8= function (o9,O9){return o9.getTime()==O9.getTime(); };RadDateInput.o6= function (){if (this.l9==null){ this.l9=[RadDateInputMixins.o0,RadDateInputMixins.FullYear,RadDateInputMixins.O0,RadDateInputMixins.l0,RadDateInputMixins.i0,RadDateInputMixins.I0,RadDateInputMixins.o1,RadDateInputMixins.O1,RadDateInputMixins.l1,RadDateInputMixins.i1]; }return this.l9; };RadDateInput.prototype.AttachCalendar= function (i9){if (window[i9] && !window[i9].tagName){ this.RadCalendar=window[i9]; this.Q=RadDateInput.I9; if (this.RadCalendar.RadDateInput){return true; } this.RadCalendar.RadDateInput=this ; this.RadCalendar.OnDateSelected=RadDateInput.oa; this.Oa(); return true; }return false; };RadDateInput.prototype.SetCalendar= function (i9){var i7=this ; var la= function (){var ia=i7.AttachCalendar(i9); if (ia== false){alert("\x43\x61\x6enot f\x69\x6ed Ra\x64Calend\x61\162\x20with I\x44\x20\x3d "+i9); }};if (window.attachEvent){window.attachEvent("\x6fnload",la); }else if (window.addEventListener){window.addEventListener("load",la, false); }};RadDateInput.prototype.Oa= function (){var W=this.GetDate(); var O4=new Array(); O4[0]=W.getFullYear(); O4[1]=W.getMonth()+1; O4[2]=W.getDate(); var Ia=this.RadCalendar.OnDateSelected; this.RadCalendar.OnDateSelected=null; var navigate= true; var ob=this.Ob; if (ob){navigate=O4[0]!=ob[0] || O4[1]!=ob[1]; this.RadCalendar.UnselectDate(this.Ob, false); }if (this.AllowEmpty && this.F()){if (this.Ob){ this.RadCalendar.UnselectDate(this.Ob, false); }}else {if (this.RadCalendar.SelectDate(O4,navigate)== false){var i3=RadDateInput.w(); i3.setFullYear(ob[0],ob[1]-1,ob[2]); var lb=this.Q; this.Q=null; this.SetDate(i3); this.Q=lb; }else { this.Ob=O4; }} this.RadCalendar.OnDateSelected=Ia; };RadDateInput.I9= function (ib,Ib){ib.Oa(); };RadDateInput.oa= function (Ib){var W=RadDateInput.w(); var ob=Ib.Date; W.setFullYear(ob[0],ob[1]-1,ob[2]); var Ia=this.RadDateInput.Q; this.RadDateInput.Ob=ob; this.RadDateInput.Q=null; this.RadDateInput.SetDate(W); this.RadDateInput.m(); this.RadDateInput.Q=Ia; };;function RadDateInputMixins(){}RadDateInputMixins.o0= {O8:function (o8){var value=this.GetValue().toString(); if (value.length==1)value="0"+value; o8[0]="20"+value; } ,i6:function (o){ this.value=o.getFullYear().toString().substr(2); }} ; RadDateInputMixins.FullYear= {O8:function (o8){o8[0]=this.GetValue(); } ,i6:function (o){ this.value=o.getFullYear().toString(); }} ; RadDateInputMixins.O0= {O8:function (o8){o8[1]=this.oc?this.Oc(): this.GetValue()-1; } ,o7:function (o){if (this.oc){ this.lc(o.getMonth()); }else { this.value=o.getMonth()+1; }} ,i6:function (o){if (this.oc){ this.lc(o.getMonth()); }else { this.value=o.getMonth()+1; }} ,I3:function (){if (this.ic==0){return; }var Ic=this.ic*12; var value=this.oc?this.Oc(): this.GetValue()-1; var od=this.Od.W; od.setMonth(value+Ic); this.Od.l4(od); }} ; RadDateInputMixins.l0= {O8:function (o8){o8[2]=this.GetValue(); } ,o7:function (o){ this.value=o.getDate(); this.ld=this.Od.S.U(o); } ,i6:function (o){ this.value=o.getDate(); this.ld=this.Od.S.U(o); } ,I3:function (){if (this.ic==0){return; }var Ic=this.ic==1?this.ld: -this.ld; var od=this.Od.W; od.setDate(this.value+Ic); this.Od.l4(od); }} ; RadDateInputMixins.i0= {O8:function (o8){} ,i6:function (o){ this.lc(o.getDay()); } ,I3:function (i3){var move=i3.getDay()-this.Oc()-(this.ic*7); var od=this.Od.W; od.setDate(this.Od.W.getDate()-move); this.Od.l4(od); }} ; RadDateInputMixins.I0= {O8:function (o8){o8[6]=11-this.Oc(); } ,i6:function (o){ this.lc(11-(o.getHours()%12)); } ,I3:function (){var Ic=this.ic*12; var od=this.Od.W; od.setHours(this.Od.W.getHours()-Ic); this.Od.l4(od); }} ; RadDateInputMixins.o1= {O8:function (o8){o8[3]=this.GetValue(); } ,i6:function (o){ this.value=o.getHours(); } ,I3:function (){var Ic=this.ic*24; var od=this.Od.W; od.setHours(this.Od.W.getHours()+Ic); this.Od.l4(od); }} ; RadDateInputMixins.O1= {O8:function (o8){o8[7]=this.Oc(); } ,i6:function (o){ this.lc(o.getHours()>=12?1: 0); }} ; RadDateInputMixins.l1= {O8:function (o8){o8[4]=this.GetValue(); } ,i6:function (o){ this.value=o.getMinutes(); } ,I3:function (){var Ic=this.ic*60; var od=this.Od.W; od.setMinutes(this.Od.W.getMinutes()+Ic); this.Od.l4(od); }} ; RadDateInputMixins.i1= {O8:function (o8){o8[5]=this.GetValue(); } ,i6:function (o){ this.value=o.getSeconds(); } ,I3:function (){var Ic=this.ic*60; var od=this.Od.W; od.setSeconds(this.Od.W.getSeconds()+Ic); this.Od.l4(od); }} ;;function RadDigitMaskPart(){} ; RadDigitMaskPart.prototype=new RadMaskPart(); RadDigitMaskPart.prototype.GetValue= function (){return this.value.toString(); } ; RadDigitMaskPart.prototype.oe= function (){return true; } ; RadDigitMaskPart.prototype.Oe= function (){if (this.value.toString()==""){return this.PromptChar; }return this.value.toString(); } ; RadDigitMaskPart.prototype.le= function (value,Ic){if (isNaN(parseInt(value))){ this.Od.ie(this,this.GetValue(),value); return false; }return true; } ; RadDigitMaskPart.prototype.SetValue= function (value,Ic){if (value=="" || value==this.PromptChar || value==" "){ this.value=""; return true; }if (this.le(value,Ic)){ this.value=parseInt(value); }return true; } ;;function RadEnumerationMaskPart(Ie){ this.of(Ie); this.Of=-1; this.If=0; this.ic=0; this.og(); } ; RadEnumerationMaskPart.prototype=new RadMaskPart(); RadEnumerationMaskPart.prototype.of= function (Ie){ this.length=0; this.oc=Ie; this.Og=[]; for (var i=0; i<this.oc.length; i++){ this.length=Math.max(this.length,this.oc[i].length); this.Og[this.oc[i]]=i; }};RadEnumerationMaskPart.prototype.le= function (){return true; } ; RadEnumerationMaskPart.prototype.lg= function (Od){ this.Od=Od; this.ig(Od.AllowEmptyEnumerations); } ; RadEnumerationMaskPart.prototype.ig= function (Ig){if (Ig){ this.value=""; this.selectedIndex=-1; }else { this.value=this.oc[0]; this.selectedIndex=0; }} ; RadEnumerationMaskPart.prototype.og= function (){ this.oh=[]; for (i=0; i<this.length; i++){ this.oh[i]=""; } this.Oh= true; } ; RadEnumerationMaskPart.prototype.oe= function (){return true; } ; RadEnumerationMaskPart.prototype.ShowHint= function (lh){var i7=this ; for (var i=0; i<this.oc.length; i++){var ih=document.createElement("a"); ih.index=i; ih.onclick= function (){i7.lc(this.index); i7.Od.Visualise(); return false; };ih.innerHTML=this.oc[i]; ih.href="j\x61\x76\x61sc\x72ipt:voi\x64\x280)"; lh.appendChild(ih); }return true; } ; RadEnumerationMaskPart.prototype.Ih= function (){ this.oi=0; };RadEnumerationMaskPart.prototype.Oi= function (){ this.If++; };RadEnumerationMaskPart.prototype.ii= function (value,Ic){if (this.Of==Ic){if (this.oh[Ic]==value){ this.Oi(); }else { this.og(); }}else { this.Ih(); } this.Of=Ic; this.oh[Ic]=value; };RadEnumerationMaskPart.prototype.Ii= function (){if (this.Od.AllowEmptyEnumerations){ this.lc(-1); }};RadEnumerationMaskPart.prototype.SetValue= function (value,Ic){Ic-=this.Ic; this.ii(value,Ic); var oj=new CompletionList(this.oc,this.PromptChar); var Oj=oj.lj(this.oh,Ic); if (Oj.length>0){var ij=this.Og[Oj[this.If%Oj.length]]; this.lc(ij); }else { this.Ii(); return false; }return true; } ; RadEnumerationMaskPart.prototype.Oe= function (){var Ij=this.value; while (Ij.length<this.length){Ij+=this.PromptChar; }return Ij; } ; RadEnumerationMaskPart.prototype.ok= function (){return this.length; } ; RadEnumerationMaskPart.prototype.Oc= function (){return this.selectedIndex; } ; RadEnumerationMaskPart.prototype.lc= function (index,Ok){var o3=this.value; if (this.Od.AllowEmptyEnumerations){if (index<-1){index=this.oc.length+index+1; this.ic=-1; }else if (index>=this.oc.length){index=index-this.oc.length-1; this.ic=1; }}else {if (index<0){index=this.oc.length+index; this.ic=-1; }else if (index>=this.oc.length){index=index-this.oc.length; this.ic=1; }} this.selectedIndex=index; this.value=index==-1?"": this.oc[index]; if (typeof(Ok)!="\x75\x6e\x64efine\x64"){if (Ok){ this.Od.lk(this,o3,this.value); }else { this.Od.ik(this,o3,this.value); }} this.Od.i2(this,o3,this.value); this.ic=0; } ; RadEnumerationMaskPart.prototype.Ik= function (e){ this.Od.ll(); var il=new MaskedEventWrap(e,this.Od.field); if (il.Il()){ this.lc(this.selectedIndex+1, false); this.Od.Visualise(); this.Od.om(il); return true; }else if (il.Om()){ this.lc(this.selectedIndex-1, true); this.Od.Visualise(); this.Od.om(il); return true; }} ; RadEnumerationMaskPart.prototype.Im= function (e){ this.Od.ll(); var il=new MaskedEventWrap(e,this.Od.field); this.lc(this.selectedIndex-e.wheelDelta/120); this.Od.Visualise(); this.Od.om(il); return false; } ; function CompletionList(options,On){ this.options=options; this.On=On; } ; CompletionList.prototype.lj= function (In,Ic){var Oj=this.options; for (var oo=0; oo<=Ic; oo++){var Oo=In[oo].toLowerCase(); Oj=this.Io(Oj,oo,Oo); }return Oj; } ; CompletionList.prototype.Io= function (Oj,op,Op){var lp=[]; for (var ip=0; ip<Oj.length; ip++){var Ip=Oj[ip]; var oq=Ip.charAt(op).toLowerCase(); if (this.Oq(Op,oq)){lp[lp.length]=Ip; }}return lp; };CompletionList.prototype.Oq= function (Oo,oq){return Oo==this.On || Oo==" " || Oo==oq; } ;;function RadFreeMaskPart(){} ; RadFreeMaskPart.prototype=new RadMaskPart(); RadFreeMaskPart.prototype.oe= function (){return true; } ; RadFreeMaskPart.prototype.Oe= function (){if (this.value.toString()==""){return this.PromptChar; }return this.value; } ; RadFreeMaskPart.prototype.SetValue= function (value,Ic){ this.value=value; return true; } ;;function RadInputHint(parent,z){ this.lq=parent; this.z=z; }RadInputHint.prototype.Show= function (iq,Iq){if (iq){var or=this.Or(this.lq.field); this.Container=document.createElement("\x64i\x76"); if (iq.ShowHint(this.Container)){ this.Container.className="Hin\x74\x5f"+this.z; document.body.appendChild(this.Container); this.Container.style.position="a\x62\x73olute"; if (Iq){ this.Container.style.left=Iq.left+this.lr()+"\x70\x78"; this.Container.style.top=or.Y+or.Height+"px"; }else { this.Container.style.left=or.X+"\x70x"; this.Container.style.top=or.Y+or.Height+"p\x78"; } this.ir(); this.lq.Ir(this ); }else { this.Container=null; }}};RadInputHint.prototype.os= function (){if (this.Os){ this.Os.style.visibility="h\x69dden"; }};RadInputHint.prototype.ir= function (){if (window.opera){return; }if (!this.Os){ this.Os=document.createElement("\x49FRAME"); this.Os.src="\x6aavascript:f\x61lse;"; this.Os.frameBorder=0; this.Os.id=this.Container.parentNode.id+"\x4fverla\x79"; this.Os.style.position="\x61bsolute"; this.Os.style.visibility="hidden"; this.Os.style.border="1px solid r\x65\x64"; this.Os.style.filter="\x70rogid:DXIma\x67\x65Tra\x6e\x73f\x6f\162\x6d.Micros\x6f\146t\x2eAl\x70ha(sty\x6ce=0,op\x61city=\x30\051"; this.Os.ls= false; this.Container.parentNode.insertBefore(this.Os,this.Container); }var or=this.Or(this.Container); this.Os.style.cssText=this.Container.style.cssText; this.Os.style.left=or.X+"\x70x"; this.Os.style.top=or.Y+"\x70x"; this.Os.style.width=or.Width+"\x70\170"; this.Os.style.height=or.Height+"px"; this.Os.style.visibility="v\x69\x73ible"; };RadInputHint.prototype.is= function (node){var x=0; var Is=node; while (Is.parentNode && Is.parentNode.tagName!="\x42ODY"){if (typeof(Is.parentNode.scrollLeft)=="nu\x6d\x62er"){x+=Is.parentNode.scrollLeft; }Is=Is.parentNode; }return x; } ; RadInputHint.prototype.ot= function (node){var y=0; var Is=node; while (Is.parentNode && Is.parentNode.tagName!="BOD\x59"){if (typeof(Is.parentNode.scrollTop)=="\x6e\x75mber"){y+=Is.parentNode.scrollTop; }Is=Is.parentNode; }return y; } ; RadInputHint.prototype.lr= function (){var width=0; if (typeof(document.body.scrollLeft)=="number"){width+=document.body.scrollLeft; }if (typeof(document.documentElement.scrollLeft)=="n\x75\x6dber"){width+=document.documentElement.scrollLeft; }return width; };RadInputHint.prototype.Ot= function (){var height=0; if (typeof(document.body.scrollTop)=="\x6eumber"){height+=document.body.scrollTop; }if (typeof(document.documentElement.scrollTop)=="\x6e\x75mber"){height+=document.documentElement.scrollTop; }return height; };RadInputHint.prototype.lt= function (node){var x=0; var Is=node; while (Is.offsetParent && Is.offsetParent.tagName!="\x42ODY"){if (typeof(Is.offsetParent.scrollLeft)=="number"){x+=Is.offsetParent.scrollLeft; }Is=Is.offsetParent; }return x; } ; RadInputHint.prototype.it= function (node){var y=0; var Is=node; while (Is.offsetParent && Is.offsetParent.tagName!="\x42ODY"){if (typeof(Is.offsetParent.scrollTop)=="\x6eumber"){y+=Is.offsetParent.scrollTop; }Is=Is.offsetParent; }return y; } ; RadInputHint.prototype.Hide= function (){if (this.Container){ this.os(); this.Container.parentNode.removeChild(this.Container); this.Container=null; }};RadInputHint.prototype.Or= function (It){var width=It.offsetWidth; var height=It.offsetHeight; var x=0; var y=0; var node=It; while (node.offsetParent){x+=node.offsetLeft; y+=node.offsetTop; node=node.offsetParent; }var offsetX=0; var offsetY=0; if (window.opera){x-=this.lt(It); y-=this.it(It); }else {x-=this.is(It); y-=this.ot(It); }return {X:x,Y:y,Width:width,Height:height } ; };;function RadLiteralMaskPart(ou){ this.ou=ou; } ; RadLiteralMaskPart.prototype=new RadMaskPart(); RadLiteralMaskPart.prototype.Oe= function (){return this.ou; } ; RadLiteralMaskPart.prototype.ok= function (){if (this.Od.Ou){return this.ou.length-(this.ou.split("\015\x0a").length-1); }return this.ou.length; } ; RadLiteralMaskPart.prototype.GetValue= function (){return ""; } ; RadLiteralMaskPart.prototype.oe= function (){if (this.lu!=null){return this.lu.oe(); }} ; RadLiteralMaskPart.prototype.SetValue= function (value,Ic){Ic-=this.Ic; return value==this.ou.charAt(Ic) || !value; } ; RadLiteralMaskPart.prototype.le= function (value,Ic){Ic-=this.Ic; if (value==this.ou.charAt(Ic))return true; if (!value)return true; if (this.lu!=null){return this.lu.le(value,Ic+this.ok()); }} ;;function RadLowerMaskPart(){ this.test=/^[\x41-\x5a\x61-\x7a]{1}$/; } ; RadLowerMaskPart.prototype=new RadMaskPart(); RadLowerMaskPart.prototype.le= function (value,Ic){if (value.match(this.test)==null){ this.Od.ie(this,this.GetValue(),value); return false; }return true; } ; RadLowerMaskPart.prototype.Oe= function (){if (this.value.toString()==""){return this.PromptChar; }return this.value.toString(); } ; RadLowerMaskPart.prototype.SetValue= function (value,Ic){if (value==""){ this.value=""; return true; }if (value.match(this.test)!=null){ this.value=value.toLowerCase(); }else { this.Od.ie(this,this.GetValue(),value); }return true; } ;;if (typeof(window.RadInputNamespace)=="\x75\x6edefined"){window.RadInputNamespace=new Object(); } ; RadInputNamespace.AppendStyleSheet= function (iu,Iu){var ov=(navigator.appName=="\x4dicrosoft I\x6e\x74ern\x65\x74\x20\x45xpl\x6f\162\x65\162") && ((navigator.userAgent.toLowerCase().indexOf("mac")!=-1) || (navigator.appVersion.toLowerCase().indexOf("\x6dac")!=-1)); var Ov=(navigator.userAgent.toLowerCase().indexOf("\x73afari")!=-1); if (ov || Ov){document.write("\x3c"+"link"+" rel=\x27\x73tyl\x65\163\x68\x65e\x74\x27 ty\x70\145=\x27\164e\x78t/cs\x73\047\x20hre\x66\075\x27"+Iu+"\x27\x3e"); }else {var lv=document.createElement("\x4c\x49NK"); lv.rel="\x73tylesheet"; lv.type="\x74ext/cs\x73"; lv.href=Iu; document.getElementById(iu+"StyleSh\x65\x65tHol\x64\x65r").appendChild(lv); }} ; function RadMaskedTextBox(){if (arguments.length){ this.R(arguments[0],arguments[1]); }} ; RadMaskedTextBox.prototype.R= function (Z,z){ this.PromptChar="\137"; this.DisplayPromptChar="_"; this.ReadOnly= false; this.DisplayFormatPosition=0; this.HideOnBlur= false; this.ResetCaretOnFocus= false; this.EmptyMessage=""; this.AutoPostBack= false; this.AllowEmptyEnumerations= false; this.ShowHint= false; this.RoundNumericRanges= true; this.FocusOnStartup= false; this.l6=[]; this.iv=[]; this.Iv=[]; this.value=""; this.g= true; this.o2=document.getElementById(Z+"\x5fValu\x65"); this.l2=document.getElementById(Z); this.field=document.getElementById(Z+"_T\x65\x78tBox"); this.field.o3=this.field.value; this.ID=Z; this.ow=null; this.length=0; this.Ow=0; this.l3= false; this.lw=""; this.Hint=new RadInputHint(this,z); this.iw=this.field.tagName.toLowerCase()=="textarea"; this.Iw=navigator.userAgent.indexOf("Safari")>-1; this.Ou=navigator.userAgent.indexOf("\x47ecko")>-1; this.ox(); if (window.attachEvent && !window.opera){var field=this.field; var Ox= function (){for (var lx in field){if (typeof(field[lx])=="\x66unc\x74\x69on"){field[lx]=null; }}};window.attachEvent("\x6fnunload",Ox); }if (z){ this.field.ix="\x4fver_"+z; this.field.Ix="\x46ocus\x5f"+z; this.field.oy=this.field.className?this.field.className: "Defa\x75\x6ct_"+z; this.field.Oy="Error_"+z; this.field.className=this.field.oy; }else {var ly=this.field.className; this.field.ix=ly; this.field.Ix=ly; this.field.oy=ly; this.field.Oy=ly; } this.field.iy= false; };RadMaskedTextBox.prototype.Initialize= function (){ this.Visualise(); if (this.FocusOnStartup){ this.Focus(); } this.O7(); };RadMaskedTextBox.prototype.O7= function (){ this.H=this.field.value; };RadMaskedTextBox.prototype.Focus= function (){ this.field.focus(); this.field.selectionStart=this.field.selectionEnd=0; };RadMaskedTextBox.prototype.Iy= function (index){return this.iv[index]; };RadMaskedTextBox.prototype.oz= function (className){ this.field.Oz=className; if (this.field.disabled){ this.field.className=this.field.Oz; }} ; RadMaskedTextBox.prototype.lz= function (className){ this.field.Ix=className; } ; RadMaskedTextBox.prototype.iz= function (className){ this.field.Oy=className; } ; RadMaskedTextBox.prototype.Iz= function (className){ this.field.ix=className; } ; RadMaskedTextBox.prototype.o10= function (l6,O10){var l10; var i10=[]; var length=0; for (var j=0; j<l6.length; j++){l10=l6[j]; l10.PromptChar=O10; l10.lg(this ); l10.index=this.l6.length; i10[i10.length]=l10; if (i10.length>1){i10[i10.length-2].lu=l10; }l10.lu=null; var I10=l10.ok(); l10.Ic=length; length+=I10; }return i10; };RadMaskedTextBox.prototype.SetMask= function (){ this.l6=this.o10(arguments,this.PromptChar); for (var i=0; i<this.l6.length; i++){var I10=this.l6[i].ok(); for (var j=this.length; j<this.length+I10; j++){ this.iv[j]=this.l6[i]; } this.length+=I10; }} ; RadMaskedTextBox.prototype.SetDisplayMask= function (){ this.f=this.o10(arguments,this.DisplayPromptChar); for (var i=0; i<this.f.length; i++){var I2=this.f[i]; var I10=I2.ok(); if (I2.ou){continue; }for (var j=this.Ow; j<this.Ow+I10; j++){ this.Iv[j]=this.f[i]; } this.Ow+=I10; }};RadMaskedTextBox.prototype.SetValue= function (value){ this.l3= true; this.o11(value,0,this.length); this.l3= false; this.Visualise(); } ; RadMaskedTextBox.prototype.O11= function (e){var l11=this.i11(this.ow.I11,e.I11);e.selectionStart=l11[0]; e.selectionEnd=l11[0]; this.ow.selectionStart=l11[1]; this.ow.selectionEnd=l11[2]; };RadMaskedTextBox.prototype.o12= function (e){if (this.ReadOnly){ this.Visualise(); return false; }if (this.ow==null)return; var i,j; if (this.Iw){ this.O11(e); }if (this.ow.I11.length>e.I11.length){if (e.selectionStart==this.field.value.length){ this.iv[this.iv.length-1].SetValue("",this.iv.length-1); }if (this.ow.selectionEnd>e.selectionStart){i=this.ow.selectionEnd; while (i-->e.selectionStart){ this.iv[i].SetValue("",i); }}else {i=this.ow.selectionEnd+1; while (i-->e.selectionStart){ this.iv[i].SetValue("",i); e.selectionEnd++; }}}var O12=this.ow.selectionStart; var l12=Math.min(e.selectionStart,this.length); var i12=e.I11.substr(O12,l12-O12); var I12=this.o11(i12,O12,l12); e.selectionEnd+=I12; this.om(e); } ; RadMaskedTextBox.prototype.o13= function (iv,O13,value,l13,i13){var Oo; var i=0; var j=l13; var I13=0; while (i<i13 && j<O13){Oo=value.charAt(i); if (Oo==this.PromptChar){Oo=""; }if (iv[j].SetValue(Oo,j)){i++; }else {I13++; }j++; }return I13; };RadMaskedTextBox.prototype.o14= function (value,l13,i13){ this.o13(this.Iv,this.Ow,value,l13,i13); };RadMaskedTextBox.prototype.o11= function (value,l13,i13){var I12=this.o13(this.iv,this.length,value,l13,i13); this.Visualise(); return I12; };RadMaskedTextBox.prototype.O14= function (position){if (!this.field.iy)return; this.ll(); if (document.all && !window.opera){ this.field.select(); l14=document.selection.createRange(); var i14=this.field.value.substr(0,position).split("\015\012").length-1; l14.move("\x63haracter",position-i14); l14.select(); }else { this.field.selectionStart=position; this.field.selectionEnd=position; }};RadMaskedTextBox.prototype.om= function (I14){ this.O14(I14.selectionEnd); } ; RadMaskedTextBox.prototype.GetValue= function (){var ia=[]; for (var i=0; i<this.l6.length; i++){ia[i]=this.l6[i].GetValue(); }return ia.join(""); };RadMaskedTextBox.prototype.GetValueWithLiterals= function (){var ia=[]; for (var i=0; i<this.l6.length; i++){ia[i]=this.l6[i].ou || this.l6[i].GetValue(); }return ia.join(""); };RadMaskedTextBox.prototype.i8= function (l6){var ia=[]; for (var i=0; i<l6.length; i++){ia[i]=l6[i].Oe(); }return ia.join(""); };RadMaskedTextBox.prototype.o15= function (){return this.i8(this.l6); };RadMaskedTextBox.prototype.GetPrompt= function (){var O15=new RegExp(".","\x67"); var ia=[]; for (var i=0; i<this.l6.length; i++){ia[i]=this.l6[i].ou || this.l6[i].Oe().replace(O15,this.PromptChar); }return ia.join(""); };RadMaskedTextBox.prototype.Visualise= function (){var I11=this.o15(); var value=this.GetValue(); this.l3= true; var o3=this.lw; this.h(I11); this.value=value; this.I1(); this.O2(); this.l3= false; this.lw=this.field.value; if (o3!=this.field.value){ this.I4(null,o3,this.field.value); }} ; RadMaskedTextBox.prototype.h= function (G){if (this.g){if (this.HideOnBlur && this.F()){ this.field.value=this.C(); }else if (this.f && this.f.length){ this.field.value=this.D(); }else { this.field.value=G; }}else { this.field.value=G; }};RadMaskedTextBox.prototype.I1= function (){ this.o2.value=this.o15(); };RadMaskedTextBox.prototype.O2= function (){if (this.F()){ this.l2.value=""; }else { this.l2.value=this.GetValueWithLiterals(); }};RadMaskedTextBox.prototype.l7= function (){ this.SetValue(this.H); this.Visualise(); };RadMaskedTextBox.prototype.J= function (){return this.field.value!=this.field.o3; };RadMaskedTextBox.prototype.ox= function (){var l15=this ; var field=this.field; field.l15=l15; field.i15= function (){if (document.createEventObject){if (event){var I15=document.createEventObject(event); }else {var I15=document.createEventObject(); }I15.propertyName="\x76\x61\x6cue"; this.fireEvent("onproperty\x63\x68an\x67\x65",I15); }};if (window.attachEvent){field.form.attachEvent("\x6fnreset", function (){l15.l7(); } ); }else {field.form.addEventListener("reset", function (){l15.l7(); } , false); }var o16= function (){field.i15(); return l15.OnKeyDown(event); };var O16= function (){return l15.l16(event); };var onMouseDown= function (e){field.i15(); field.l15.i16(e); } ; var onMouseOut= function (){if (!field.iy){field.className=field.oy; }};var onMouseOver= function (){field.i15(); if (!field.iy){field.className=field.ix; }};var onFocus= function (e){field.iy= true; field.className=field.Ix; field.l15.I16(); field.i15(); field.l15.i16(e); } ; var onMouseUp= function (e){field.i15(); field.l15.o17(e); field.l15.i16(e); field.l15.DisplayHint(); };var O17= function (){if (l15.ReadOnly){return false; }if (field.selectionStart==field.value.length){return false; }setTimeout( function (){field.i15();} ,1); };var onKeyUp= function (){field.i15(); field.l15.DisplayHint(); };var onBlur= function (){field.iy= false; field.className=field.oy; field.l15.l17(); var i17=field.l15; window.setTimeout( function (){i17.Hint.Hide(); } ,200); if (field.l15.AutoPostBack && l15.J()){eval(l15.AutoPostBackCode); }field.o3=field.value; };var I17= function (name,l15){if (field.attachEvent){field.attachEvent("on"+name,l15); }else if (field.addEventListener){field.addEventListener(name,l15, false); }};I17("keyup",onKeyUp); I17("focus",onFocus); I17("mousedo\x77n",onMouseDown); I17("mo\x75\x73eover",onMouseOver); I17("m\x6f\x75seout",onMouseOut); I17("\x6d\x6fuseup",onMouseUp); I17("blur",onBlur); if (field.attachEvent && !window.opera){field.attachEvent("\x6fnkeydown",o16); field.attachEvent("\x6fnkeypress",O16); field.attachEvent("onpaste",O17); field.attachEvent("\x6fnproperty\x63\150\x61\x6ege", function (){l15.o18(); } ); field.attachEvent("onm\x6f\x75sewhee\x6c", function (){return field.l15.O18(event); } ); }else {var l18= function (e){if (!l15.OnKeyDown(e)){e.preventDefault(); }};var i18= function (e){if (!l15.l16(e)){e.preventDefault(); }};var I18= function (e){l15.o17(e); };field.addEventListener("key\x64own",l18, false); field.addEventListener("k\x65\x79press",i18, false); field.addEventListener("blur",onBlur, false); field.addEventListener("\x69nput",I18, false); }if (window.opera){var o19= function (){return l15.o17( {} ); } ; setInterval(o19,10); }} ; RadMaskedTextBox.prototype.C= function (){return this.EmptyMessage; };RadMaskedTextBox.prototype.D= function (){var value=this.value; while (value.length<this.Ow){if (this.DisplayFormatPosition){value=this.PromptChar+value; }else {value+=this.PromptChar; }} this.o14(value,0,this.Ow); return this.i8(this.f); };RadMaskedTextBox.prototype.F= function (){return this.value==""; };RadMaskedTextBox.prototype.l17= function (){ this.g= true; this.Visualise(); };RadMaskedTextBox.prototype.I16= function (){ this.g= false; if ((this.HideOnBlur && this.F()) || this.f){ this.Visualise(); this.field.select(); }if (this.ResetCaretOnFocus){ this.O19(); }};RadMaskedTextBox.prototype.O19= function (){ this.O14(0); };RadMaskedTextBox.prototype.o18= function (){if (this.l3)return; if (event.propertyName=="\x76a\x6c\x75e"){var e=event; var l15=this ; var l19= function (){l15.o17(e); };this.ll(); if (this.field.selectionStart>0 || this.field.selectionEnd>0){l19(); }else {setTimeout(l19,1); }}};RadMaskedTextBox.prototype.O18= function (e){if (this.ReadOnly){return false; } this.ll(); var iq=this.iv[this.field.selectionStart]; if (iq==null){return true; }return iq.Im(e); };RadMaskedTextBox.prototype.OnKeyDown= function (e){if (!e)e=window.event; if (this.i19(e)){return true; }var iq=this.iv[this.field.selectionStart]; var keyCode=e.which?e.which:e.keyCode; if (this.ReadOnly && (keyCode==46 || keyCode==8 || keyCode==38 || keyCode==40)){return false; }if (keyCode==13){return true; }if (iq==null && keyCode!=8){return true; }if (iq!=null){if (iq.Ik(e)){return false; }}var selectionEnd=this.field.selectionEnd; var I19= false; if ((keyCode==46) && selectionEnd<this.field.value.length && !window.opera){iq.SetValue("",this.field.selectionStart); selectionEnd++; I19= true; }else if (keyCode==8 && selectionEnd && !window.opera){ this.iv[this.field.selectionStart-1].SetValue("",this.field.selectionStart-1); selectionEnd--; I19= true; }if (I19){return this.o1a(e,selectionEnd); } this.O1a(e); return true; };RadMaskedTextBox.prototype.l16= function (e){if (this.ReadOnly){return false; }if (!e)e=window.event; if (this.i19(e)){return true; }var iq=this.iv[this.field.selectionStart]; if (iq==null){return true; }if (this.Ou || window.opera){if (e.which==8){return false; }if (!e.which){ this.O1a(e); return true; }}var selectionEnd=this.field.selectionEnd; var keyCode=e.which?e.which:e.keyCode; if (keyCode==13){return true; }var ou=String.fromCharCode(keyCode); if (iq.le(ou)){while (selectionEnd<this.field.value.length){if (this.iv[selectionEnd].SetValue(ou,selectionEnd)){selectionEnd++; break; }selectionEnd++; }}return this.o1a(e,selectionEnd); };RadMaskedTextBox.prototype.o1a= function (e,selectionEnd){ this.Visualise(); var I14=new MaskedEventWrap(this.field,e); I14.selectionEnd=selectionEnd; this.om(I14); return false; };RadMaskedTextBox.prototype.i19= function (e){ this.ll(); if (this.field.selectionStart!=this.field.selectionEnd){ this.O1a(e); return true; }if (e.ctrlKey || e.altKey || this.Iw){ this.O1a(e); return true; }return false; };RadMaskedTextBox.prototype.o17= function (e){if (this.l3){return true; }if (!e)e=window.event; this.ll(); var l1a=new MaskedEventWrap(e,this.field); if (l1a.I11!=this.lw){ this.o12(l1a); }return true; };RadMaskedTextBox.prototype.i16= function (e){if (this.l3){return true; }if (!e)e=window.event; this.O1a(e); return true; };RadMaskedTextBox.prototype.DisplayHint= function (){if (!this.ShowHint)return; this.ll(); var iq=this.iv[this.field.selectionStart]; this.Hint.Hide(); var Iq=null; if (document.selection){var i1a=document.selection.createRange(); if (i1a.getBoundingClientRect){Iq=i1a.getBoundingClientRect(); }} this.Hint.Show(iq,Iq); };RadMaskedTextBox.prototype.O1a= function (e){ this.ll(); this.ow=new MaskedEventWrap(e,this.field); } ; RadMaskedTextBox.prototype.ll= function (){if (document.selection && !window.opera){var I1a=document.selection.createRange(); if (I1a.parentElement()!=this.field)return; var s=I1a.duplicate(); if (this.iw){s.moveToElementText(this.field); }else {s.move("cha\x72acte\x72",-this.field.value.length); }s.setEndPoint("End\x54\x6fStart",I1a); this.field.selectionStart=s.text.length; this.field.selectionEnd=this.field.selectionStart+I1a.text.length; if (this.iw){}}} ; RadMaskedTextBox.prototype.i11= function (o1b,O1b){var i; var l1b,i1b,I1b; i=0; while (o1b.charAt(i)==O1b.charAt(i) && i<o1b.length){i++; }i1b=i; o1b=o1b.substr(i1b).split("").reverse().join(""); O1b=O1b.substr(i1b).split("").reverse().join(""); i=0; while (o1b.charAt(i)==O1b.charAt(i) && i<o1b.length){i++; }l1b=i1b+O1b.length-i; I1b=o1b.length-i+i1b; return [l1b,i1b,I1b]; } ; function RadInputEventArgs(){}RadMaskedTextBox.prototype.o1c= function (O1c,l10,o3,O3){if (typeof(O1c)=="\x66unc\x74\x69on"){O1c(this, {CurrentPart:l10,OldValue:o3,NewValue:O3 } ); }else if (typeof(window[O1c])=="fun\x63\x74ion"){window[O1c](this, {CurrentPart:l10,OldValue:o3,NewValue:O3 } ); }else if (O1c){ throw new Error("No such fun\x63\x74ion\x3a\x20"+O1c); }};RadMaskedTextBox.prototype.i2= function (l10,o3,O3){ this.o1c(this.OnClientEnumerationChanged,l10,o3,O3); };RadMaskedTextBox.prototype.lk= function (l10,o3,O3){ this.o1c(this.OnClientMoveUp,l10,o3,O3); } ; RadMaskedTextBox.prototype.ik= function (l10,o3,O3){ this.o1c(this.OnClientMoveDown,l10,o3,O3); } ; RadMaskedTextBox.prototype.I4= function (l10,o3,O3){ this.o1c(this.OnClientValueChanged,l10,o3,O3); } ; RadMaskedTextBox.prototype.Ir= function (l10){ this.o1c(this.OnClientShowHint,l10,this.field.value,this.field.value); };RadMaskedTextBox.prototype.ie= function (l10,o3,O3){ this.o1c(this.OnClientError,l10,o3,O3); var l1c=this.field.Ix; this.field.className=this.field.Oy; var Od=this ; var restore= function (){if (Od.field.className==Od.field.Oy)Od.field.className=l1c; };setTimeout(restore,100); } ; function MaskedEventWrap(e,field){ this.event=e; this.selectionStart=field.selectionStart; this.selectionEnd=field.selectionEnd; this.I11=field.value; } ; MaskedEventWrap.prototype.Om= function (){return this.event.keyCode==38; };MaskedEventWrap.prototype.Il= function (){return this.event.keyCode==40; };function rdmskd(){return new RadDigitMaskPart(); } ; function rdmskl(i1c){return new RadLiteralMaskPart(i1c); } ; function rdmske(Ie){return new RadEnumerationMaskPart(Ie); } ; function rdmskr(I1c,o1d,O1d,l1d){return new RadNumericRangeMaskPart(I1c,o1d,O1d,l1d); } ; function rdmsku(){return new RadUpperMaskPart(); } ; function rdmsklw(){return new RadLowerMaskPart(); } ; function rdmskp(){return new RadPasswordMaskPart(); } ; function rdmskf(){return new RadFreeMaskPart(); } ; function i1d(I1d){document.body.appendChild(document.createTextNode(I1d)); document.body.appendChild(document.createElement("br")); } ; function o1e(O1e){for (var i in O1e){i1d(i+" = "+O1e[i]); }};function RadMaskPart(){ this.value=""; this.index=-1; this.type=-1; this.PromptChar="_"; } ; RadMaskPart.prototype.Ik= function (I15){return false; } ; RadMaskPart.prototype.Im= function (l1e){return true; } ; RadMaskPart.prototype.lg= function (Od){ this.Od=Od; } ; RadMaskPart.prototype.GetValue= function (){return this.value.toString(); } ; RadMaskPart.prototype.Oe= function (){return ""; } ; RadMaskPart.prototype.SetValue= function (value,Ic){return true; } ; RadMaskPart.prototype.le= function (value,Ic){return true; } ; RadMaskPart.prototype.oe= function (){return false; } ; RadMaskPart.prototype.ShowHint= function (lh){return false; } ; RadMaskPart.prototype.ok= function (){return 1; } ;;function RadNumericRangeMaskPart(I1c,o1d,O1d,l1d){ this.ld=o1d; this.i1e=I1c; this.length=Math.max(this.i1e.toString().length,this.ld.toString().length); this.O1d=O1d; this.l1d=l1d; this.I1e=this.i1e<0 || this.ld<0; this.value=I1c; this.ic=0; } ; RadNumericRangeMaskPart.prototype=new RadMaskPart(); RadNumericRangeMaskPart.prototype.lg= function (Od){ this.Od=Od; this.Oe(); };RadNumericRangeMaskPart.prototype.oe= function (){return true; };RadNumericRangeMaskPart.prototype.le= function (value,Ic){if ((value=="-" || value=="+") && this.i1e<0){return true; }if (isNaN(parseInt(value))){ this.Od.ie(this,this.GetValue(),value); return false; }return true; } ; RadNumericRangeMaskPart.prototype.o1f= function (value,Ic){return this.O1f.substr(0,Ic)+value.toString()+this.O1f.substr(Ic+1,this.O1f.length); };RadNumericRangeMaskPart.prototype.l1f= function (value){var i1f=this.O1d?"": "0"; while (value.indexOf(this.PromptChar)>-1){value=value.replace(this.PromptChar,i1f); }return value; };RadNumericRangeMaskPart.prototype.SetValue= function (value,Ic){if (value==""){value=0; }if (isNaN(parseInt(value)) && value!="+" && value!="-"){return true; }Ic-=this.Ic; var I1f=this.o1f(value,Ic); I1f=this.l1f(I1f); if (I1f.indexOf("-")!=-1 && I1f.indexOf("-")>0){I1f=I1f.replace("-","\x30"); }if (isNaN(parseInt(I1f)))I1f=0; if (this.Od.RoundNumericRanges){I1f=Math.min(this.ld,I1f); I1f=Math.max(this.i1e,I1f); this.o1g(I1f); }else {if (I1f<=this.ld && I1f>=this.i1e){ this.o1g(I1f); this.Oe(); }else {return false; }} this.Oe(); return true; } ; RadNumericRangeMaskPart.prototype.o1g= function (value){var o3=this.value; this.value=value; this.Od.i2(this,o3,value); if (o3>value){ this.Od.ik(this,o3,value); }else { this.Od.lk(this,o3,value); } this.ic=0; };RadNumericRangeMaskPart.prototype.Oe= function (){var O1g=""; var l1g=Math.abs(this.value).toString(); if (this.O1d){if (this.value<0){O1g+=this.PromptChar; }O1g+=l1g; while (O1g.length<this.length){O1g+=this.Od.PromptChar; }}else {var i1g=this.l1d?"0": this.Od.PromptChar; if (this.value<0){l1g="-"+l1g; }while (O1g.length<this.length-l1g.length){O1g+=i1g; }O1g+=l1g; } this.O1f=O1g; return O1g; } ; RadNumericRangeMaskPart.prototype.ok= function (){return this.length; } ; RadNumericRangeMaskPart.prototype.Ik= function (e){ this.Od.ll(); var il=new MaskedEventWrap(e,this.Od.field); if (il.Il()){ this.I1g(); this.Od.om(il); return true; }else if (il.Om()){ this.o1h(); this.Od.om(il); return true; }} ; RadNumericRangeMaskPart.prototype.o1h= function (){var O1h=this.value; O1h++; if (O1h>this.ld){O1h=this.i1e; this.ic=1; } this.o1g(O1h); this.Od.Visualise(); };RadNumericRangeMaskPart.prototype.I1g= function (){var O1h=this.value; O1h--; if (O1h<this.i1e){O1h=this.ld; this.ic=-1; } this.o1g(O1h); this.Od.Visualise(); };RadNumericRangeMaskPart.prototype.Im= function (e){var O1h=this.value; O1h=parseInt(O1h)+parseInt(e.wheelDelta/120); var il=new MaskedEventWrap(e,this.Od.field); if (O1h<this.i1e){O1h=this.ld-(this.i1e-O1h-1); this.ic=-1; }if (O1h>this.ld){O1h=this.i1e+(O1h-this.ld-1); this.ic=1; } this.o1g(O1h); this.Od.Visualise(); this.Od.om(il); return false; } ;;function RadPasswordMaskPart(){} ; RadPasswordMaskPart.prototype=new RadMaskPart(); RadPasswordMaskPart.prototype.oe= function (){return true; } ; RadPasswordMaskPart.prototype.Oe= function (){if (this.value.toString()==""){return this.PromptChar; }return "\052"; } ; RadPasswordMaskPart.prototype.SetValue= function (value,Ic){ this.value=value; return true; } ;;function RadUpperMaskPart(){ this.test=/^[\x41-\x5a\x61-\x7a]{1}$/; } ; RadUpperMaskPart.prototype=new RadMaskPart(); RadUpperMaskPart.prototype.le= function (value,Ic){if (value.match(this.test)==null){ this.Od.ie(this,this.GetValue(),value); return false; }return true; } ; RadUpperMaskPart.prototype.Oe= function (){if (this.value.toString()==""){return this.PromptChar; }return this.value.toString(); } ; RadUpperMaskPart.prototype.SetValue= function (value,Ic){if (value==""){ this.value=""; return true; }if (value.match(this.test)!=null){ this.value=value.toUpperCase(); }else { this.Od.ie(this,this.GetValue(),value); }return true; } ;;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -