Пример #1
0
        //到職缺細項頁面
        // 傳入 職缺PK,執行 [查看職缺細項] 功能
        // 回傳 整筆資料或部分資料(list的JobModel型態)
        public ActionResult toJobDetailView(int JobID)
        {
            SJM.SearchJob sjm     = new SJM.SearchJob();
            JM.JobModel   jmModel = new JM.JobModel();
            jmModel = sjm.jobDetail(JobID);

            return(View("JobDetailView", jmModel));
        }
Пример #2
0
        //到職缺細項頁面
        // 傳入 職缺PK,執行 [查看職缺細項] 功能
        // 回傳 整筆資料或部分資料(list的JobModel型態)

        //for test 12/16

        //public ActionResult toJobDetailView(string jobID)
        public ActionResult toJobDetailView(int jobID)
        {
            SJM.SearchJob sjm     = new SJM.SearchJob();
            JM.JobModel   jmModel = new JM.JobModel();
            string        userID  = "";

            if (Session["suserID"] != null)
            {
                userID = Session["suserID"].ToString();
            }
            jmModel = sjm.jobDetail(jobID, userID);
            //jmModel = sjm.jobDetail(1);

            // 搜尋職缺欄位內容種類
            ViewBag.DWorkType   = sjm.getWorkType();
            ViewBag.DCityName   = sjm.getCityName();
            ViewBag.DCjob_Name1 = sjm.getCjob_Name1();

            return(View("JobDetailView", jmModel));
        }