Exemplo n.º 1
0
        public ActionResult view(RecruitFaq recruitFaq)
        {
            RecruitFaq item = recruitFaqService.findRecruitFaq(recruitFaq);

            ViewBag.item = item;
            return(View("~/Views/Recruit/RecruitFaq/view.cshtml"));
        }
Exemplo n.º 2
0
        public RedirectToRouteResult modifyProc(RecruitFaq recruitFaq)
        {
            HttpFileCollectionBase multipartRequest = Request.Files;

            recruitFaq.updateId = System.Web.HttpContext.Current.User.Identity.Name;
            recruitFaqService.updateRecruitFaq(recruitFaq);
            return(RedirectToAction("list"));
        }
Exemplo n.º 3
0
        public ActionResult list(RecruitFaq recruitFaq)
        {
            searchService.setSearchSession(Request, Session);
            searchService.setPagination(recruitFaq, 20, recruitFaqService.findAllCount(recruitFaq));
            ViewBag.list       = recruitFaqService.findAll(recruitFaq);
            ViewBag.pagination = recruitFaq;

            return(View("~/Views/Recruit/RecruitFaq/list.cshtml"));
        }
Exemplo n.º 4
0
        public RedirectToRouteResult registerProc(RecruitFaq recruitFaq)
        {
            HttpFileCollectionBase multipartRequest = Request.Files;

            recruitFaq.regId = System.Web.HttpContext.Current.User.Identity.Name;
            recruitFaqService.insertRecruitFaq(recruitFaq);


            return(RedirectToAction("list", (RouteValueDictionary)Session["searchMap"]));
        }
Exemplo n.º 5
0
 public void deleteRecruitFaq(RecruitFaq recruitFaq)
 {
     try {
         Mapper.Instance().BeginTransaction();
         recruitFaqDao.deleteRecruitFaq(recruitFaq);
         Mapper.Instance().CommitTransaction();
     }
     catch (Exception e)
     {
         Mapper.Instance().RollBackTransaction();
     }
 }
Exemplo n.º 6
0
        public void insertRecruitFaq(RecruitFaq recruitFaq)
        {
            validation(recruitFaq);
            int masterIdx = sequenceService.getSequenceMasterIdx();

            recruitFaq.idx = masterIdx;
            try {
                Mapper.Instance().BeginTransaction();
                recruitFaqDao.insertRecruitFaq(recruitFaq);
                Mapper.Instance().CommitTransaction();
            }
            catch (Exception e)
            {
                Mapper.Instance().RollBackTransaction();
            }
        }
Exemplo n.º 7
0
 private void validation(RecruitFaq recruitFaq)
 {
     if (String.IsNullOrWhiteSpace(recruitFaq.title))
     {
         throw new CustomException("필수 값이 없습니다.");
     }
     if (String.IsNullOrWhiteSpace(recruitFaq.contents))
     {
         throw new CustomException("필수 값이 없습니다.");
     }
     if ("Y".Equals(recruitFaq.engYn))
     {
         if (String.IsNullOrWhiteSpace(recruitFaq.titleEng))
         {
             throw new CustomException("필수 값이 없습니다.");
         }
         if (String.IsNullOrWhiteSpace(recruitFaq.contentsEng))
         {
             throw new CustomException("필수 값이 없습니다.");
         }
     }
 }
Exemplo n.º 8
0
 public IList <RecruitFaq> findAll(RecruitFaq recruitFaq)
 {
     return(Mapper.Instance().QueryForList <RecruitFaq>("recruitFaq.findAll", recruitFaq));
 }
Exemplo n.º 9
0
 public int findAllCount(RecruitFaq recruitFaq)
 {
     return(recruitFaqDao.findAllCount(recruitFaq));
 }
Exemplo n.º 10
0
 public RecruitFaq findRecruitFaq(RecruitFaq recruitFaq)
 {
     return(Mapper.Instance().QueryForObject <RecruitFaq>("recruitFaq.findRecruitFaq", recruitFaq));
 }
Exemplo n.º 11
0
 public int findAllCount(RecruitFaq recruitFaq)
 {
     return(Mapper.Instance().QueryForObject <int>("recruitFaq.findAllCount", recruitFaq));
 }
Exemplo n.º 12
0
 public RecruitFaq findRecruitFaq(RecruitFaq recruitFaq)
 {
     return(recruitFaqDao.findRecruitFaq(recruitFaq));
 }
Exemplo n.º 13
0
 public IList <RecruitFaq> findAll(RecruitFaq recruitFaq)
 {
     return(recruitFaqDao.findAll(recruitFaq));
 }
Exemplo n.º 14
0
 public RedirectToRouteResult delete(RecruitFaq recruitFaq)
 {
     recruitFaqService.deleteRecruitFaq(recruitFaq);
     return(RedirectToAction("list"));
 }
Exemplo n.º 15
0
 public void updateRecruitFaq(RecruitFaq recruitFaq)
 {
     Mapper.Instance().Update("recruitFaq.updateRecruitFaq", recruitFaq);
 }
Exemplo n.º 16
0
 public void insertRecruitFaq(RecruitFaq recruitFaq)
 {
     Mapper.Instance().Insert("recruitFaq.insertRecruitFaq", recruitFaq);
 }
Exemplo n.º 17
0
 public void deleteRecruitFaq(RecruitFaq recruitFaq)
 {
     Mapper.Instance().Delete("recruitFaq.deleteRecruitFaq", recruitFaq);
 }