Beispiel #1
0
 public ActionResult Create(Sys_NoticeVO notice)
 {
     try
     {
         // TODO: Add insert logic here
         Sys_NoticeDAC dac = new Sys_NoticeDAC();
         if (dac.InsertSys_Notice(notice))
         {
             return(RedirectToAction("Index")); //인서트가 성공적으로 됐다면. 목록으로 가라 indexview가 목록임.
         }
         else
         {
             return(View("Create", notice)); //인서트가성공안되면 내가 써논 값을 가지고 create를 하기위해서
         }
     }
     catch
     {
         return(View());
     }
 }
Beispiel #2
0
        // GET: Sys_Notice/Edit/5
        public ActionResult Edit(int id)
        {
            Sys_NoticeDAC dac = new Sys_NoticeDAC();

            return(View(dac.GetDetailsSys_Notice(id, false)));
        }
Beispiel #3
0
        /// <summary>
        /// 현재 공지사항 가져오기
        /// </summary>
        /// <param name="Seq"></param>
        /// <returns></returns>
        public Sys_NoticeVO GetCurrentSysNotice(int Seq)
        {
            Sys_NoticeDAC dac = new Sys_NoticeDAC();

            return(dac.GetCurrentSysNotice(Seq));
        }
Beispiel #4
0
        public List <Sys_NoticeVO> GetDayAllSys_notice(string start, string end)
        {
            Sys_NoticeDAC dac = new Sys_NoticeDAC();

            return(dac.GetDayAllSys_notice(start, end));
        }
Beispiel #5
0
        public List <Sys_NoticeVO> GetAllSys_notice()
        {
            Sys_NoticeDAC dac = new Sys_NoticeDAC();

            return(dac.GetAllSys_notice());
        }
Beispiel #6
0
        /// <summary>
        /// 상단 메세지 상세목록
        /// </summary>
        /// <returns></returns>
        public ActionResult Message()
        {
            Sys_NoticeDAC dac = new Sys_NoticeDAC();

            return(PartialView(dac.Sys_noticeAll()));
        }