ASPxSchedulerFormType=_aspxCreateClass(null,{});ASPxSchedulerFormType.None="None",ASPxSchedulerFormType.Appointment="Appointment",ASPxSchedulerFormType.AppointmentInplace="AppointmentInplace",ASPxSchedulerFormType.GotoDate="GotoDate";ASPxSchedulerFormVisibility=_aspxCreateClass(null,{});ASPxSchedulerFormVisibility.None="None",ASPxSchedulerFormVisibility.PopupWindow="PopupWindow",ASPxSchedulerFormVisibility.FillControlArea="FillControlArea";ASPxSchedulerDateTimeHelper=_aspxCreateClass(null,{});ASPxSchedulerDateTimeHelper.DaySpan=24*60*60*1000;ASPxSchedulerDateTimeHelper.TruncToDate=function(dateTime){return new Date(dateTime.getYear(),dateTime.getMonth(),dateTime.getDate());}
ASPxSchedulerUtils=_aspxCreateClass(null,{});ASPxSchedulerUtils.IsAppointmentResourcesEmpty=function(appointmentResources){if(appointmentResources.length==0)return true;if(appointmentResources.length==1&&appointmentResources[0]=="null")return true;else return false;}
ASPxClientSchedulerRelatedControlBase=_aspxCreateClass(ASPxClientControl,{constructor:function(name){this.constructor.prototype.constructor.call(this,name);this.schedulerControlId="";this.standalone=true;},GetMainElement:function(){if(!_aspxIsExistsElement(this.mainElement))this.mainElement=_aspxGetElementById(this.name+"_mainCell");return this.mainElement;},CreateLoadingDiv:function(parentNode,offsetNode){if(this.standalone)return this.constructor.prototype.CreateLoadingDiv.call(this,parentNode,offsetNode);return null;},GetLoadingDiv:function(){return _aspxGetElementById(this.schedulerControlId+"_LD");}});function aspxSchedulerSetRecurrenceControlsVisibility(controlsIds,recurrenceControlContainerId,visibleIndex){var count=controlsIds.length;for(var i=0;i<count;i++){var ctl=_aspxGetElementById(controlsIds[i]);if(_aspxIsExistsElement(ctl)){_aspxSetElementDisplay(ctl,visibleIndex==i);}}
var container=_aspxGetElementById(recurrenceControlContainerId);if(_aspxIsExists(container.rbcControlsSizeCorrected)){if(container.rbcControlsSizeCorrected[visibleIndex])return;}else{container.rbcControlsSizeCorrected=[];}
container.rbcControlsSizeCorrected[visibleIndex]=true;if(_aspxIsExistsElement(container))aspxGetControlCollection().AdjustControls(container,__aspxCheckSizeCorrectedFlag);}
function aspxSchedulerChangeElementVisibility(id){var ctl=_aspxGetElementById(id);if(_aspxIsExistsElement(ctl))_aspxSetElementDisplay(ctl,!_aspxGetElementDisplay(ctl));}
function _aspxArrayClone(src){return new Array(src);}
function _aspxArrayContains(array,element){return _aspxArrayIndexOf(array,element)>=0;}
function _aspxArrayEqual(array1,array2){var count1=array1.length;var count2=array2.length;if(count1!=count2)return false;for(var i=0;i<count1;i++)if(array1[i]!=array2[i])return false;return true;}
ASPxSchedulerMeasurer={SetOptimalDayNumberHeaderContent:function(headers,dates){var count=headers.length;if(count<=0)return;this.EnsureFormatter();this.formatter.SetFormatString("d MMMM yyyy");for(var i=0;i<count;i++){var header=headers[i];header.setAttribute("title",this.formatter.Format(dates[i]));headers[i].innerHTML=dates[i].getDate();}},SetOptimalDayOfWeekHeadersContent:function(headers,days){if(headers.length<=0)return;this.EnsureFormatter();var measureDiv=this.CreateMeasureDiv(headers[0]);var headerTexts=[];var headerContentWidths=[];var count=headers.length;var firstDay=days[0];var compressed=(days[1]==1)?true:false;var correction=0;for(var i=0;i<count;i++){var day=(firstDay+i+correction)%7;if(compressed){if(day==6)day=8;else if(day==0){correction++;day++;}}
this.SetOptimalDayOfWeekHeader(headers[i],day,measureDiv);}
document.body.removeChild(measureDiv);},SetOptimalDayOfWeekHeader:function(header,day,measureDiv){var fullDayName=this.GetDayName(day);measureDiv.innerHTML=fullDayName;var width=measureDiv.clientWidth;var desiredWidth=header.clientWidth;if(width<=desiredWidth)header.innerHTML=fullDayName;else header.innerHTML=this.GetAbbrDayName(day);header.setAttribute("title",fullDayName);},GetDayName:function(day){var dayNames=__aspxDateFormatInfo.dayNames;return(day==8)?dayNames[6]+"/"+dayNames[0]:dayNames[day];},GetAbbrDayName:function(day){var dayNames=__aspxDateFormatInfo.abbrDayNames;return(day==8)?dayNames[6]+"/"+dayNames[0]:dayNames[day];},SetOptimalHeadersContent:function(headers,dates,formats){if(headers.length<=0)return;this.EnsureFormatter();var measureDiv=this.CreateMeasureDiv(headers[0]);var headerTexts=[];var headerContentWidths=[];this.InitializeHeadersIntermediateInfo(headers,headerTexts,headerContentWidths);var count=formats.length;for(var i=count-1;i>=0;i--){this.formatter.SetFormatString(formats[i]);this.SetOptimalHeadersContentCore(headers,dates,headerTexts,headerContentWidths,measureDiv);}
this.SetNewHeadersContent(headers,headerTexts,dates);document.body.removeChild(measureDiv);},InitializeHeadersIntermediateInfo:function(headers,headerTexts,headerContentWidths){var count=headers.length;for(var i=0;i<count;i++){_aspxArrayPush(headerTexts,"&hellip;");_aspxArrayPush(headerContentWidths,-1);}},SetNewHeadersContent:function(headers,headerTexts,dates){var count=headers.length;this.formatter.SetFormatString("d MMMM yyyy");for(var i=0;i<count;i++){var header=headers[i];header.setAttribute("title",this.formatter.Format(dates[i]));header.innerHTML=headerTexts[i];}},SetOptimalHeadersContentCore:function(headers,dates,headerTexts,headerContentWidths,measureDiv){var count=headers.length;for(var i=count-1;i>=0;i--){var text=this.formatter.Format(dates[i]);measureDiv.innerHTML=text;var width=measureDiv.clientWidth;var desiredWidth=headers[i].clientWidth;if(width<=desiredWidth){if(width>headerContentWidths[i]){headerContentWidths[i]=width;headerTexts[i]=text;}}}},CreateMeasureDiv:function(element){var result=document.createElement("div");document.body.appendChild(result);result.style.cssText=element.style.cssText;result.style.position="absolute";result.style.top="-100px";result.style.width="";result.className=element.className;return result;},EnsureFormatter:function(){if(!_aspxIsExists(this.formatter))this.formatter=new ASPxDateFormatter();}}
function _aspxSetSchedulerDivDisplay(appointmentDiv,visible){appointmentDiv.style.display=visible?"block":"none";} 