// cached javascript var AjaxDB = { getProvinceList:function(provicne_id,province_name,site_id,callback,context){return new ajax_request(this.url + '?_method=getProvinceList&_session=no','provicne_id=' + enc(provicne_id)+ '\r\nprovince_name=' + enc(province_name)+ '\r\nsite_id=' + enc(site_id),callback, context);}, GetCityList:function(pID,siteID,callback,context){return new ajax_request(this.url + '?_method=GetCityList&_session=no','pID=' + enc(pID)+ '\r\nsiteID=' + enc(siteID),callback, context);}, getCityList:function(province_id,city_name,callback,context){return new ajax_request(this.url + '?_method=getCityList&_session=no','province_id=' + enc(province_id)+ '\r\ncity_name=' + enc(city_name),callback, context);}, GetCountyList:function(pID,callback,context){return new ajax_request(this.url + '?_method=GetCountyList&_session=no','pID=' + enc(pID),callback, context);}, getCountyList:function(city_id,county_name,callback,context){return new ajax_request(this.url + '?_method=getCountyList&_session=no','city_id=' + enc(city_id)+ '\r\ncounty_name=' + enc(county_name),callback, context);}, GetHospitalList:function(pID,callback,context){return new ajax_request(this.url + '?_method=GetHospitalList&_session=no','pID=' + enc(pID),callback, context);}, HospitalList:function(pID,inputname,callback,context){return new ajax_request(this.url + '?_method=HospitalList&_session=no','pID=' + enc(pID)+ '\r\ninputname=' + enc(inputname),callback, context);}, getHospitalList:function(county_id,unit_name,callback,context){return new ajax_request(this.url + '?_method=getHospitalList&_session=no','county_id=' + enc(county_id)+ '\r\nunit_name=' + enc(unit_name),callback, context);}, GetHospitalListByName:function(inputname,callback,context){return new ajax_request(this.url + '?_method=GetHospitalListByName&_session=no','inputname=' + enc(inputname),callback, context);}, getDictionaryList:function(kind_id,dict_name,callback,context){return new ajax_request(this.url + '?_method=getDictionaryList&_session=no','kind_id=' + enc(kind_id)+ '\r\ndict_name=' + enc(dict_name),callback, context);}, getDictionaryList2:function(kind_id,dict_name,parent_id,callback,context){return new ajax_request(this.url + '?_method=getDictionaryList2&_session=no','kind_id=' + enc(kind_id)+ '\r\ndict_name=' + enc(dict_name)+ '\r\nparent_id=' + enc(parent_id),callback, context);}, DepartListTwo:function(Dept_id,callback,context){return new ajax_request(this.url + '?_method=DepartListTwo&_session=no','Dept_id=' + enc(Dept_id),callback, context);}, getDeptList:function(dept_level,dept_name,parent_id,callback,context){return new ajax_request(this.url + '?_method=getDeptList&_session=no','dept_level=' + enc(dept_level)+ '\r\ndept_name=' + enc(dept_name)+ '\r\nparent_id=' + enc(parent_id),callback, context);}, CheckLoginName:function(loginName,UserID,callback,context){return new ajax_request(this.url + '?_method=CheckLoginName&_session=no','loginName=' + enc(loginName)+ '\r\nUserID=' + enc(UserID),callback, context);}, CheckIdCardSole:function(IdCard,callback,context){return new ajax_request(this.url + '?_method=CheckIdCardSole&_session=no','IdCard=' + enc(IdCard),callback, context);}, CheckIdCardSole2:function(IdCard,callback,context){return new ajax_request(this.url + '?_method=CheckIdCardSole2&_session=no','IdCard=' + enc(IdCard),callback, context);}, CheckIdCard:function(IdCard,RealName,UserID,callback,context){return new ajax_request(this.url + '?_method=CheckIdCard&_session=no','IdCard=' + enc(IdCard)+ '\r\nRealName=' + enc(RealName)+ '\r\nUserID=' + enc(UserID),callback, context);}, SendSmsValidateCode:function(mobile,img_code,callback,context){return new ajax_request(this.url + '?_method=SendSmsValidateCode&_session=no','mobile=' + enc(mobile)+ '\r\nimg_code=' + enc(img_code),callback, context);}, SendSmsValidateCodeForCheck:function(mobile,callback,context){return new ajax_request(this.url + '?_method=SendSmsValidateCodeForCheck&_session=no','mobile=' + enc(mobile),callback, context);}, SendSmsValidateCodeBySupplyInfo:function(person_id,phone_old,mobile,callback,context){return new ajax_request(this.url + '?_method=SendSmsValidateCodeBySupplyInfo&_session=no','person_id=' + enc(person_id)+ '\r\nphone_old=' + enc(phone_old)+ '\r\nmobile=' + enc(mobile),callback, context);}, GetUserMobile:function(person_id,mobile,callback,context){return new ajax_request(this.url + '?_method=GetUserMobile&_session=no','person_id=' + enc(person_id)+ '\r\nmobile=' + enc(mobile),callback, context);}, url:'/ajax/AjaxDB,App_Code.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);} function TimeSpan(){this.Days=0;this.Hours=0;this.Minutes=0;this.Seconds=0;this.Milliseconds=0;} TimeSpan.prototype.toString = function(){return this.Days+'.'+this.Hours+':'+this.Minutes+':'+this.Seconds+'.'+this.Milliseconds;}