コード例 #1
0
        public ActionResult CalendarPrint(long scheduleId)
        {
            var viewModel = new CalendarPrintViewModel();
            var dataRow   = CRCDataAccess.GetSchedule(scheduleId, CRCUser.UserId);

            dataRow.MapTo(viewModel);
            return(View(viewModel));
        }
コード例 #2
0
        public ActionResult Calendar(long scheduleId)
        {
            var viewModel = new CalendarViewModel();
            var dataRow   = CRCDataAccess.GetSchedule(scheduleId, CRCUser.UserId);

            dataRow.MapTo(viewModel);
            //if(CRCUser.IsInRole(CRCUserRoles.CRCManager)) viewModel.ReadOnly = false;

            return(View(viewModel));
        }