Esempio n. 1
0
        public ActionResult Edit(Guid?id)
        {
            var item = new ProjectInfo();

            if (id.HasValue)
            {
                item = _iProjectInfoService.GetById(id.Value);
            }
            ViewBag.UserId             = _iUserInfo.UserId;
            ViewBag.SysDepartment      = _iSysDepartmentService.GetAll();
            ViewBag.ProjectInfoStateId = _iProjectInfoStateService.SelectList(item.ProjectInfoStateId);
            ViewBag.CustomerId         = new SelectList(_iCustomerService.GetAll().Select(a => new { a.Id, a.CustomerName }), "Id",
                                                        "CustomerName", item.CustomerId);
            return(View(item));
        }
        public ActionResult Details(Guid id)
        {
            ProjectInfo item = _iProjectInfoService.GetById(id);

            ViewBag.UserId = _iUserInfo.UserId;
            return(View(item));
        }
Esempio n. 3
0
        //根据项目id查询成员
        public ActionResult InProject(Guid itemId, int pageIndex = 1, int pageSize = 10)
        {
            var model = _iProjectInfoService.GetById(itemId).ProjectUsers.Where(a => !a.Follow).Select(a => a.SysUser).AsQueryable();

            return(GetModelDetail(model, pageIndex, pageSize));
        }
 public ResponseResult <ProjectInfoDto> Get([FromUri] int id)
 {
     return(_projectInfoService.GetById(id).Success());
 }