Ejemplo n.º 1
0
        public string GetFirstCalendarType(HttpContext context)
        {
            BCtrl_CalendarType        bll  = new BCtrl_CalendarType();
            List <CalendarTypeEntity> list = bll.QueryFirstCalendarType();

            return(StringUti.ToUnicode(JsonObj <object> .ToJsonString(list)));
        }
Ejemplo n.º 2
0
        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);
            }
        }