public async Task <string> GetPersonalCalViewData(FormCollection form)
        {
            CalendarViewType viewType   = (CalendarViewType)Enum.Parse(typeof(CalendarViewType), form["viewtype"]);
            string           strshowday = form["showdate"];
            DateTime         showdate;
            int  clientzone = Convert.ToInt32(form["timezone"]);
            int  serverzone = TimeHelper.GetTimeZone();
            var  zonediff   = serverzone - clientzone;
            bool b          = DateTime.TryParse(strshowday, out showdate);
            var  jss        = new JavaScriptSerializer();

            jss.MaxJsonLength = Int32.MaxValue;//增加最大长度
            if (!b)
            {
                var ret = new JsonCalendarViewData(new JsonError("NotVolidDateTimeFormat", "错误的时间格式"));
                return(jss.Serialize(ret));
            }
            var format = new CalendarViewFormat(viewType, showdate, DayOfWeek.Monday);
            var qstart = format.StartDate.AddHours(zonediff);
            var qend   = format.EndDate.AddHours(zonediff);
            List <SystemCalendar> list = (await _calendarLogic.QueryCalendars(qstart, qend, CurrentUser.UserId)).ToList();
            var data = new JsonCalendarViewData(ConvertToStringArray(list), format.StartDate, format.EndDate);

            return(jss.Serialize(data));
        }
        /// <summary>
        /// 我的日历
        /// </summary>
        /// <returns></returns>
        public async Task <ViewResultBase> MyCalendar()
        {
            var format = new CalendarViewFormat(CalendarViewType.week, DateTime.Now, DayOfWeek.Monday);

            return(View((await _calendarLogic.QueryCalendars(format.StartDate, format.EndDate, CurrentUser.UserId)).ToList()));
        }