@{ Layout = null; } @using Itlead.Architecture.Contract; @using Itlead.Architecture.Contract.DataContract; @using System.Text.RegularExpressions; 选课
@{ HttpCookie cookie = Request.Cookies["user"]; if (cookie == null) { } Guid UserId = Guid.Parse(cookie["UserId"].ToString()); List orderList = MyBasicLib.Utilities.ServiceInvoker.Invoke("alipayOrderService", s => s.GetByUserId(UserId)); foreach (var item in orderList) { if (item.Status != 0) { if (item.IsCourse) { SpecialCourseData special = MyBasicLib.Utilities.ServiceInvoker.Invoke("specialCourseService", s => s.GetCourse(item.CourseID)); if (special != null) { var lessoncount = MyBasicLib.Utilities.ServiceInvoker.Invoke("courseService", s => s.LessionCount(special.SpecialCourseId)); } } else { New_LearningData learning = MyBasicLib.Utilities.ServiceInvoker.Invoke("New_LearningService", s => s.Get(item.CourseID.ToString())); if (learning != null) { var lessoncount = 0; if (!string.IsNullOrEmpty(learning.lessonids)) { lessoncount = 1; if (learning.lessonids.IndexOf(",") != -1) { lessoncount = learning.lessonids.Split(',').Length; } } else { lessoncount = 0; } } } } } }
@{Html.RenderAction("TYfooter", "Tool", new { PageType = "Course" }); }