示例#1
0
 public ActionResult Index()
 {
     ViewBag.Branch       = CommonHelper.ToSelectItemList(ch.GetBranch());
     ViewBag.FileCategory = CommonHelper.ToSelectItemList(ch.GetFileCategory());
     //ViewBag.Branch = CommonHelper.ToSelectItemList(ch.GetBranch());
     //ViewBag.Department = CommonHelper.ToSelectItemList(ch.GetDepartment());
     return(View());
 }
示例#2
0
        public ActionResult Index()
        {
            ViewBag.Branch       = CommonHelper.ToSelectItemList(ch.GetBranch());
            ViewBag.FileCategory = CommonHelper.ToSelectItemList(ch.GetFileCategory());
            List <GridModel> gm = new List <GridModel>();

            uh.GetUploadedFiles().ToList().ForEach(X =>
            {
                gm.Add(new GridModel
                {
                    BranchName       = X.BranchName,
                    CompanyName      = X.CompanyName,
                    Id               = X.Id,
                    DepartmentName   = X.DepartmentName,
                    FileCategoryName = X.FileCategoryName,
                    FileTypeName     = X.FileTypeName
                });
            });
            return(View(gm));
        }