Exemplo n.º 1
0
        public ActionResult ResourceAuthorIndex()
        {
            ResourceAuthorModel db = new ResourceAuthorModel();

            db.ResourceAuthorList = _iResourceAuthorService.GetResourceAuthorList();
            return(View(db));
        }
Exemplo n.º 2
0
        public ActionResult IssueIndex(ResourceIssueModel db)
        {
            //ResourceIssueModel db = new ResourceIssueModel();
            ViewBag.ResourceList = new SelectList(_iSetupService.GetResourceSetupList(), "ResourceId", "ResourceName");
            ViewBag.Author       = new SelectList(_iResourceAuthorService.GetResourceAuthorList(), "AuthorId", "Author");
            ViewBag.Publisher    = new SelectList(_iResourcePublicationService.GetResourcePublicationList(), "PublicationId", "Publisher");
            ViewBag.GradeNameEng = new SelectList(_iSetupService.GetGradeList(), "GradeId", "GradeNameEng");
            ViewBag.Subject      = new SelectList(_iSetupService.GetSubjectList(), "SubjectId", "SubjectName");
            if (db.ResourceId > 0)
            {
                db.GetResourceIssueList = _iResourceIssue.GetSearchedResourceCopy(db);
            }

            return(View(db));
        }
        public ActionResult CreateResourceSetup(int?ResourceId)
        {
            ResourceSetupModel rsModel = new ResourceSetupModel();


            ViewBag.ResourceTypeNameList  = new SelectList(_iResourceService.GetResourceTypeList(), "ResourceTypeId", "ResourceTypeName");
            ViewBag.ResourcePublisherList = new SelectList(_iResourcePublicationService.GetResourcePublicationList(), "PublicationId", "Publisher");
            ViewBag.ResourceAuthorList    = new SelectList(_iResourceAuthorService.GetResourceAuthorList(), "AuthorId", "Author");
            ViewBag.ResourceGradeNameList = new SelectList(_iSetupService.GetGradeList(), "GradeId", "GradeNameEng");
            ViewBag.ResourceSubjectList   = new SelectList(_iSetupService.GetSubjectList(), "SubjectId", "SubjectName");



            if (ResourceId != null)
            {
                rsModel = _iSetupService.GetResourceSetupList().Where(x => x.ResourceId == ResourceId).FirstOrDefault();
            }
            return(PartialView("_CreateResourceSetup", rsModel));
        }