コード例 #1
0
        public CELGenerateAppearanceDay(GCAL.ContentServer content)
        {
            GPLocationProvider locProv          = null;
            GPGregorianTime    startWesternTime = null;
            GPGregorianTime    endWesternTime   = null;

            locProv = content.getLocationWithPostfix("");

            if (locProv == null)
            {
                locProv = GPAppHelper.getMyLocation();
            }

            startWesternTime = new GPGregorianTime(locProv);
            startWesternTime.setDate(content.getInt("startyear", startWesternTime.getYear()),
                                     content.getInt("startmonth", startWesternTime.getMonth()),
                                     content.getInt("startday", startWesternTime.getDay()));
            startWesternTime.setDayHours(content.getInt("starthour", startWesternTime.getHour()) / 24.0 + content.getInt("startmin", startWesternTime.getMinuteRound()) / 1440.0);

            SetData(locProv, startWesternTime);
            SyncExecute();

            StringBuilder sb = new StringBuilder();

            FormaterHtml.WriteAppDayHTML_BodyTable(CalculatedObject as GPAppDayResults, sb);
            HtmlText = sb.ToString();
        }