private void loadPMStaff(string stafn) { _repositoryStaff = new RepositoryStaff(); var liststaff = _repositoryStaff.GetListStaff(); List <StatusPaged> liststatus = new List <StatusPaged>(); liststatus.Add(new StatusPaged { Status = "A" }); liststatus.Add(new StatusPaged { Status = "C" }); liststatus.Add(new StatusPaged { Status = "H" }); liststaff.Add(new Staff { StaffId = -1, StaffName = "ALL", StaffPosition = "ALL" }); var staffname = stafn; if (staffname != null) { ViewBag.PMStaff = new SelectList(liststaff, "StaffName", "StaffName", staffname); } else { ViewBag.PMStaff = new SelectList(liststaff, "StaffName", "StaffName", "ALL"); } ViewBag.Status = new SelectList(liststatus, "Status", "Status", "A"); }
private void loadPMStaff(string staffname) { _repositoryStaff = new RepositoryStaff(); var liststaff = _repositoryStaff.GetListStaff(); ViewBag.Responsable = new SelectList(liststaff, "StaffName", "StaffName", staffname); }
private void loadStaf(Project pojeft = null) { var liststaff = _repositoryStaff.GetListStaff(); ViewBag.CMStaff = new SelectList(liststaff, "StaffName", "StaffName"); ViewBag.PMStaff = new SelectList(liststaff, "StaffName", "StaffName"); ViewBag.PDEStaff = new SelectList(liststaff, "StaffName", "StaffName"); ViewBag.SEStaff = new SelectList(liststaff, "StaffName", "StaffName"); ViewBag.QEStaff = new SelectList(liststaff, "StaffName", "StaffName"); ViewBag.DRStaff = new SelectList(liststaff, "StaffName", "StaffName"); }
private void loadPMStaff() { _repositoryStaff = new RepositoryStaff(); var liststaff = _repositoryStaff.GetListStaff(); List <StatusPaged> liststatus = new List <StatusPaged>(); liststatus.Add(new StatusPaged { Status = "A" }); liststatus.Add(new StatusPaged { Status = "C" }); liststatus.Add(new StatusPaged { Status = "H" }); liststaff.Add(new Staff { StaffId = -1, StaffName = "ALL", StaffPosition = "ALL" }); ViewBag.PMStaff = new SelectList(liststaff, "StaffName", "StaffName", "ALL"); ViewBag.Status = new SelectList(liststatus, "Status", "Status", "A"); }