public ActionResult YearHistory()
        {
            var tab          = new Tab();
            var yearCategory = CategoryFactory.GetYearCategory("BelongYear", 5, 1, false, "年度");

            yearCategory.SetDefaultItem(DateTime.Now.Year.ToString());
            yearCategory.Multi = false;
            tab.Categories.Add(yearCategory);

            tab.IsDisplay = true;
            ViewBag.Tab   = tab;
            var state      = YesOrNo.Yes.ToString();
            var list       = S_KPI_IndicatorConfig.GetCurrentVersionIndicatorConfig(IndicatorOrgType.Person);
            var writeFiels = string.Empty;

            foreach (var item in list)
            {
                writeFiels += item.IndicatorCode + ",";
            }
            ViewBag.IndicatorConfig = list;
            ViewBag.WriteFields     = writeFiels.TrimEnd(',');


            //业务字段
            //var categoryList = S_KPI_Category.GetCurrentVersionCategories(IndicatorOrgType.Person);
            //var categoryFields = "";
            //foreach (var category in categoryList)
            //    categoryFields += category.Code + ",";
            //categoryFields = categoryFields.TrimEnd(',');
            //ViewBag.categoryFields = categoryFields;
            //ViewBag.CategoryList = categoryList;

            return(View());
        }
Example #2
0
        public ActionResult YearHistory()
        {
            var state      = YesOrNo.Yes.ToString();
            var list       = S_KPI_IndicatorConfig.GetCurrentVersionIndicatorConfig(IndicatorOrgType.Company);
            var writeFiels = string.Empty;

            foreach (var item in list)
            {
                writeFiels += item.IndicatorCode + ",";
            }
            ViewBag.IndicatorConfig = list;
            ViewBag.WriteFields     = writeFiels.TrimEnd(',');
            return(View());
        }