Beispiel #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));
        }
        //到我的最愛頁面

        public ActionResult toMyFavoriteView()
        {
            SJM.SearchJob sjm = new SJM.SearchJob();
            ViewBag.DWorkType   = sjm.getWorkType();
            ViewBag.DCityName   = sjm.getCityName();
            ViewBag.DCjob_Name1 = sjm.getCjob_Name1();
            return(View("MyFavoriteView"));
        }
        public ActionResult deleteMyFavorite(string user_ID, int job_ID)
        {
            string msg = "";

            SJM.SearchJob sjm = new SJM.SearchJob();
            msg = sjm.delMyFavorite(user_ID, job_ID);
            return(Content(msg));
        }
Beispiel #4
0
        public ActionResult SendJobListData(SJM.SearchJobModel searchModel)
        {
            SJM.SearchJob             sjm     = new SJM.SearchJob();
            List <SJM.SearchJobModel> sjModel = new List <SJM.SearchJobModel>();

            sjModel = sjm.jobList(searchModel);

            return(Json(this.Json(sjModel), JsonRequestBehavior.AllowGet));
        }
        public ActionResult SendJobListData(SJM.SearchJobModel searchModel)
        {
            SJM.SearchJob             sjm     = new SJM.SearchJob();
            List <SJM.SearchJobModel> sjModel = new List <SJM.SearchJobModel>();

            sjModel = sjm.jobList(searchModel);

            return(this.Json(sjModel));
        }
 // GET: Home
 public ActionResult Index()
 {
     // 搜尋職缺欄位內容種類
     SJM.SearchJob sjm = new SJM.SearchJob();
     ViewBag.WorkType   = sjm.getWorkType();
     ViewBag.CityName   = sjm.getCityName();
     ViewBag.Cjob_Name1 = sjm.getCjob_Name1();
     return(View("HomePageView"));
 }
        public ActionResult memberToMyFavoriteView()
        {
            SJM.SearchJob             sjm     = new SJM.SearchJob();
            List <SJM.SearchJobModel> sjModel = new List <SJM.SearchJobModel>();
            string userID = Session["suserID"].ToString();

            sjModel = sjm.myFavorite(userID);

            return(this.Json(sjModel));
            //return View("MyFavoriteView");
        }
        // 到JobList頁面
        // 傳入 搜尋職缺model,執行 [查看職缺清單] 功能
        // 回傳 職缺清單
        public ActionResult Index(SJM.SearchJobModel searchModel)
        {
            // 搜尋職缺欄位內容種類
            SJM.SearchJob sjm = new SJM.SearchJob();
            ViewBag.DWorkType   = sjm.getWorkType();
            ViewBag.DCityName   = sjm.getCityName();
            ViewBag.DCjob_Name1 = sjm.getCjob_Name1();

            ViewBag.CityName   = searchModel.CityName;
            ViewBag.Wk_Type    = searchModel.Wk_Type;
            ViewBag.CompName   = searchModel.CompName;
            ViewBag.Cjob_Name1 = searchModel.Cjob_Name1;

            ViewBag.SearchJobCol = searchModel;

            return(View("JobListView"));
        }
        //到職缺細項頁面
        // 傳入 職缺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));
        }