// cached javascript var PhongHoc = { getRoomList:function(callback,context){return new ajax_request(this.url + '?_method=getRoomList&_session=no','',callback, context);}, getBuildingList:function(callback,context){return new ajax_request(this.url + '?_method=getBuildingList&_session=no','',callback, context);}, getRoomByBuildingID:function(ID,callback,context){return new ajax_request(this.url + '?_method=getRoomByBuildingID&_session=no','ID=' + enc(ID),callback, context);}, getBuildingRoom:function(callback,context){return new ajax_request(this.url + '?_method=getBuildingRoom&_session=no','',callback, context);}, getTiet:function(from,to,callback,context){return new ajax_request(this.url + '?_method=getTiet&_session=no','from=' + enc(from)+ '\r\nto=' + enc(to),callback, context);}, getRoomInfo:function(from,to,rooms,callback,context){return new ajax_request(this.url + '?_method=getRoomInfo&_session=no','from=' + enc(from)+ '\r\nto=' + enc(to)+ '\r\nrooms=' + enc(rooms),callback, context);}, GetListDetailInfobyOnLyRoom:function(startdate,enddate,roomId,callback,context){return new ajax_request(this.url + '?_method=GetListDetailInfobyOnLyRoom&_session=no','startdate=' + enc(startdate)+ '\r\nenddate=' + enc(enddate)+ '\r\nroomId=' + enc(roomId),callback, context);}, getDetail:function(day,roomID,tiet,callback,context){return new ajax_request(this.url + '?_method=getDetail&_session=no','day=' + enc(day)+ '\r\nroomID=' + enc(roomID)+ '\r\ntiet=' + enc(tiet),callback, context);}, GetBusyExamListRoom:function(startdate,enddate,rooms,callback,context){return new ajax_request(this.url + '?_method=GetBusyExamListRoom&_session=no','startdate=' + enc(startdate)+ '\r\nenddate=' + enc(enddate)+ '\r\nrooms=' + enc(rooms),callback, context);}, GetSemester:function(callback,context){return new ajax_request(this.url + '?_method=GetSemester&_session=no','',callback, context);}, GetExamListRoomInfo:function(from,to,rooms,callback,context){return new ajax_request(this.url + '?_method=GetExamListRoomInfo&_session=no','from=' + enc(from)+ '\r\nto=' + enc(to)+ '\r\nrooms=' + enc(rooms),callback, context);}, GetBusyRoomDetail:function(from,thu,rooms,tiet,callback,context){return new ajax_request(this.url + '?_method=GetBusyRoomDetail&_session=no','from=' + enc(from)+ '\r\nthu=' + enc(thu)+ '\r\nrooms=' + enc(rooms)+ '\r\ntiet=' + enc(tiet),callback, context);}, GetTeachingPeriodBySemester:function(semester,callback,context){return new ajax_request(this.url + '?_method=GetTeachingPeriodBySemester&_session=no','semester=' + enc(semester),callback, context);}, getBusyRoom:function(from,to,rooms,callback,context){return new ajax_request(this.url + '?_method=getBusyRoom&_session=no','from=' + enc(from)+ '\r\nto=' + enc(to)+ '\r\nrooms=' + enc(rooms),callback, context);}, GetExamDetail:function(IDExam,callback,context){return new ajax_request(this.url + '?_method=GetExamDetail&_session=no','IDExam=' + enc(IDExam),callback, context);}, url:'/CMCSoft.IU.Web.Info/ajax/CMCSoft.IU.Web.Info.PhongHoc,CMCSoft.IU.Web.Info.ashx' } function HtmlControl(id) { var ele = null; if(typeof(id) == 'object') ele = id; else ele = document.getElementById(id); if(ele == null) return null; var _o = ele.cloneNode(true); var _op = document.createElement('SPAN'); _op.appendChild(_o); this._source = _op.innerHTML; } HtmlControl.prototype.toString = function(){ return this._source; } function HtmlControlUpdate(func, parentId) { var f,i,ff,fa=''; var ele = document.getElementById(parentId); if(ele == null) return; var args = []; for(i=0; i 2) for(i=2; i9999||year<1970||month<1||month>12||day<0||day>31||hours<0||hours>23||minutes<0||minutes>59||seconds<0||seconds>59)throw("ArgumentException");this.Year = year;this.Month = month;this.Day = day;this.Hours = hours;this.Minutes = minutes;this.Seconds = seconds;} DateTime.prototype.toString = function(){return digi(this.Year,4) + digi(this.Month,2) + digi(this.Day,2) + digi(this.Hours,2) + digi(this.Minutes,2) + digi(this.Seconds,2);}