Example #1
0
        //加载一个排程
        public void LoadSchedule()
        {
            var item = _programScheduleService.QueryableToEntity(x => x.id > 0);

            if (item != null)
            {
                schedule = _programScheduleService.GetCompositeById(item.id);//加载完整信息
            }
        }
        public string Get(string details, int id)
        {
            string result = "";

            if (details == "details")
            {
                result = _programScheduleService.GetDetailsById(id);
            }
            else if (details == "union_details")
            {
                result = JsonConvert.SerializeObject(_programScheduleService.GetCompositeById(id));
            }
            return(result);
        }