コード例 #1
0
        //顯示班表細項
        public ActionResult GetSchedule_detail_Partial(int Volunteer_no, string Service_period_name, string Worktime)
        {
            Volunteer_Index_Schedule VIS = new Volunteer_Index_Schedule();
            var detail = VIS.GetSchedule(Volunteer_no, Service_period_name, Worktime);

            return(PartialView(detail));
        }
コード例 #2
0
 //取得月曆的顯示
 public ActionResult GetCalendar(int id = 0, string month = "")
 {
     if (id != 0)
     {
         ActivityHistoryModel AHM = new ActivityHistoryModel();
         return(Json(AHM.GetHistoryActivity(id), JsonRequestBehavior.AllowGet));
     }
     else if (month != "")
     {
         Volunteer_Index_Schedule VIS = new Volunteer_Index_Schedule();
         var workschedule             = VIS.GetWorkTime(Convert.ToInt32(Session["UserID"]), month);
         return(Json(workschedule, JsonRequestBehavior.AllowGet));
     }
     else
     {
         return(new EmptyResult());
     }
 }