public string GetFirstCalendarType(HttpContext context) { BCtrl_CalendarType bll = new BCtrl_CalendarType(); List <CalendarTypeEntity> list = bll.QueryFirstCalendarType(); return(StringUti.ToUnicode(JsonObj <object> .ToJsonString(list))); }
public string GetSecondCalendarType(HttpContext context) { int parentCalendarTypeID = 0; if (int.TryParse(context.Request.Form["pid"], out parentCalendarTypeID) && parentCalendarTypeID > 0) { BCtrl_CalendarType bll = new BCtrl_CalendarType(); List <CalendarTypeEntity> list = bll.QuerySecondCalendarType(parentCalendarTypeID); return(StringUti.ToUnicode(JsonObj <object> .ToJsonString(list))); } else { return(null); } }