예제 #1
0
        public ViewResult CfXnManager(string id, string errorMsg = "")
        {
            if (!string.IsNullOrEmpty(errorMsg))
            {
                ViewBag.ErrorMsg = errorMsg;
            }

            var result = bll.GetXNCFInfo(id);;

            if (result.Any() == false)
            {
                // 添加测试数据
                //result.Add(new WWCFXNInfo { C_CHARACTER_ID = "1", C_ITEM_NAME = "test", C_TYPE = "成分" });
                //result.Add(new WWCFXNInfo { C_CHARACTER_ID = "2", C_ITEM_NAME = "test", C_TYPE = "性能" });
            }
            ViewBag.SourceList = result;
            ViewBag.WWCid      = id;
            return(View());
        }