예제 #1
0
        public static string GetShikinSyuushiKeisansyoSummaryCaption(models.query.ShikinSyuushi.SummaryItem item)
        {
            switch (item)
            {
            case models.query.ShikinSyuushi.SummaryItem.JigyouSyuunyuu:
                return(Properties.Resources.CaptionJigyouSyuunyuuKei + "(1)");

            case models.query.ShikinSyuushi.SummaryItem.JigyouShisyutsu:
                return(Properties.Resources.CaptionJigyouShisyutsuKei + "(2)");

            case models.query.ShikinSyuushi.SummaryItem.JigyouSyuushi:
                return(Properties.Resources.CaptionJigyouSyuushiSagaku + "(3)=(1)-(2)");

            case models.query.ShikinSyuushi.SummaryItem.ShisetsuSyuunyuu:
                return(Properties.Resources.CaptionShisetsuSyuunyuuKei + "(4)");

            case models.query.ShikinSyuushi.SummaryItem.ShisetsuShisyutsu:
                return(Properties.Resources.CaptionShisetsuShisyutsuKei + "(5)");

            case models.query.ShikinSyuushi.SummaryItem.ShisetsuSyuushi:
                return(Properties.Resources.CaptionShisetsuSyuushiSagaku + "(6)=(4)-(5)");

            case models.query.ShikinSyuushi.SummaryItem.SonotaSyuunyuu:
                return(Properties.Resources.CaptionSonotaSyuunyuuKei + "(7)");

            case models.query.ShikinSyuushi.SummaryItem.SonotaShisyutsu:
                return(Properties.Resources.CaptionSonotaShisyutsuKei + "(8)");

            case models.query.ShikinSyuushi.SummaryItem.SonotaSyuushi:
                return(Properties.Resources.CaptionSonotaSyuushiSagaku + "(9)=(7)-(8)");
            }
            return("");
        }
예제 #2
0
        public ShikinSyuushiUchiwakeRow GetSummaryRow(models.query.ShikinSyuushi.SummaryItem item, int startKaikeiKubun, int endKaikeiKubun)
        {
            var uchiwakeRow = new ShikinSyuushiUchiwakeRow(-1, -1, (int)item);

            long sum = 0;
            long naibuTorihikiSyoukyoGaku = 0;

            for (int kaikeiKubun = 0; kaikeiKubun < shikinSyuushiList.Count; kaikeiKubun++)
            {
                long taisyaku = shikinSyuushiList[kaikeiKubun].SummaryRows[(int)item].Taisyaku;
                sum += taisyaku;
                naibuTorihikiSyoukyoGaku += shikinSyuushiList[kaikeiKubun].SummaryRows[(int)item].NaibuTorihikiSyoukyoGaku;

                if (kaikeiKubun >= startKaikeiKubun)
                {
                    uchiwakeRow.SetCol(kaikeiKubun - startKaikeiKubun + (int)StaticCols.NumStaticCols, taisyaku);
                }
            }
            uchiwakeRow.SetCol((int)StaticCols.Summary, sum);
            uchiwakeRow.SetCol((int)StaticCols.NaibuTorihikiSyoukyoGaku, naibuTorihikiSyoukyoGaku);
            uchiwakeRow.SetCol((int)StaticCols.HoujinSummary, sum - naibuTorihikiSyoukyoGaku);

            return(uchiwakeRow);
        }