ExecutablePlanController.cs 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using System.Web.Mvc;
  6. using System.Text;
  7. using Bowin.Common.Utility;
  8. using Bowin.Common.Data;
  9. using Bowin.Common.JSON;
  10. using Bowin.Web.Controls.Mvc;
  11. using Bowin.Common.Exceptions;
  12. using EMIS.Utility;
  13. using EMIS.Entities;
  14. using EMIS.ViewModel;
  15. using EMIS.Web.Controls;
  16. using EMIS.ViewModel.EducationManagement;
  17. using EMIS.ViewModel.CultureplanManage.PlanManagement;
  18. using EMIS.CommonLogic.EducationManage;
  19. namespace EMIS.Web.Controllers.EducationManage
  20. {
  21. [Authorization]
  22. public class ExecutablePlanController : Controller
  23. {
  24. public IExecutablePlanServices ExecutablePlanServices { get; set; }
  25. /// <summary>
  26. /// 执行计划页面
  27. /// </summary>
  28. /// <returns></returns>
  29. public ActionResult List()
  30. {
  31. return View();
  32. }
  33. /// <summary>
  34. /// 执行计划页面列表查询
  35. /// </summary>
  36. /// <param name="pararms"></param>
  37. /// <returns></returns>
  38. [HttpPost]
  39. public ActionResult List(QueryParamsModel pararms)
  40. {
  41. ConfiguretView configuretView = ConfiguretExtensions.GetConfiguretermsView(pararms);
  42. var schoolyearID = pararms.getExtraGuid("SchoolyearDropdown");
  43. var campusID = pararms.getExtraGuid("CampusDropdown");
  44. var collegeID = pararms.getExtraGuid("CollegeDropdown");
  45. var yearID = pararms.getExtraInt("DictionarySchoolyear") == DropdownList.SELECT_ALL ? null : pararms.getExtraInt("DictionarySchoolyear");
  46. var standardID = pararms.getExtraInt("DictionaryStandard") == DropdownList.SELECT_ALL ? null : pararms.getExtraInt("DictionaryStandard");
  47. var educationID = pararms.getExtraInt("DictionaryEducation") == DropdownList.SELECT_ALL ? null : pararms.getExtraInt("DictionaryEducation");
  48. var learningformID = pararms.getExtraInt("DictionaryLearningform") == DropdownList.SELECT_ALL ? null : pararms.getExtraInt("DictionaryLearningform");
  49. var learnSystem = pararms.getExtraString("DictionaryLearnSystem");
  50. var grademajorID = pararms.getExtraGuid("GrademajorComboGrid");
  51. var coursematerialID = pararms.getExtraGuid("CourseComboGrid");
  52. var isMainCourse = pararms.getExtraInt("DictionaryIsMainCourse") == DropdownList.SELECT_ALL ? null : pararms.getExtraInt("DictionaryIsMainCourse");
  53. var teachingModeID = pararms.getExtraInt("DictionaryTeachingMode") == DropdownList.SELECT_ALL ? null : pararms.getExtraInt("DictionaryTeachingMode");
  54. var handleModeID = pararms.getExtraInt("DictionaryHandleMode") == DropdownList.SELECT_ALL ? null : pararms.getExtraInt("DictionaryHandleMode");
  55. var planTypeID = pararms.getExtraInt("DictionaryPlanType") == DropdownList.SELECT_ALL ? null : pararms.getExtraInt("DictionaryPlanType");
  56. var inSchoolStatus = pararms.getExtraInt("DictionaryInschoolStatus") == DropdownList.SELECT_ALL ? null : pararms.getExtraInt("DictionaryInschoolStatus");
  57. var approvalStatus = pararms.getExtraInt("DictionaryApprovalStatus") == DropdownList.SELECT_ALL ? null : pararms.getExtraInt("DictionaryApprovalStatus");
  58. return base.Json(ExecutablePlanServices.GetExecutablePlanViewGrid(configuretView, schoolyearID, campusID, collegeID,
  59. yearID, standardID, educationID, learningformID, learnSystem, grademajorID, coursematerialID, isMainCourse,
  60. teachingModeID, handleModeID, planTypeID, inSchoolStatus, approvalStatus, (int)pararms.page, (int)pararms.rows));
  61. }
  62. /// <summary>
  63. /// 执行计划统计报表
  64. /// </summary>
  65. /// <returns></returns>
  66. public ActionResult Report()
  67. {
  68. return View();
  69. }
  70. /// <summary>
  71. /// 复制新增
  72. /// </summary>
  73. /// <param name="executablePlanID"></param>
  74. /// <returns></returns>
  75. public ActionResult CopyAdd(Guid executablePlanID)
  76. {
  77. ExecutablePlanView executablePlanView = new ExecutablePlanView();
  78. executablePlanView = ExecutablePlanServices.GetExecutablePlanView(executablePlanID);
  79. return View("Edit", executablePlanView);
  80. }
  81. /// <summary>
  82. /// 复制新增
  83. /// </summary>
  84. /// <param name="executablePlanView"></param>
  85. /// <returns></returns>
  86. [HttpPost]
  87. public ActionResult CopyAdd(ExecutablePlanView executablePlanView)
  88. {
  89. executablePlanView.ExecutablePlanID = Guid.Empty;
  90. return this.Edit(executablePlanView);
  91. }
  92. /// <summary>
  93. /// 编辑(新增、修改,业务主键:学年学期ID、年级专业ID、课程信息ID)
  94. /// </summary>
  95. /// <param name="executablePlanID"></param>
  96. /// <returns></returns>
  97. public ActionResult Edit(Guid? executablePlanID)
  98. {
  99. ExecutablePlanView executablePlanView = new ExecutablePlanView();
  100. if (executablePlanID.HasValue && executablePlanID != Guid.Empty)
  101. {
  102. executablePlanView = ExecutablePlanServices.GetExecutablePlanView(executablePlanID);
  103. }
  104. else
  105. {
  106. executablePlanView.SourceTypeID = (int)EM_SourceType.RequiredCourse;
  107. executablePlanView.SchoolyearID = BaseExtensions.GetCurrentSchoolYearID();
  108. executablePlanView.CourseStructureID = (int)CF_CourseStructure.ClassroomTeaching;
  109. executablePlanView.CourseCategoryID = (int)CF_CourseCategory.Publiccourse;
  110. executablePlanView.CourseQualityID = (int)CF_CourseQuality.Required;
  111. executablePlanView.Credit = 0;
  112. executablePlanView.TheoryCourse = 0;
  113. executablePlanView.Practicehours = 0;
  114. executablePlanView.Trialhours = 0;
  115. executablePlanView.Totalhours = 0;
  116. executablePlanView.TheoryWeeklyNum = 0;
  117. executablePlanView.PracticeWeeklyNum = 0;
  118. executablePlanView.TrialWeeklyNum = 0;
  119. executablePlanView.SchoolweeksNum = 0;
  120. executablePlanView.WeeklyHours = 0;
  121. executablePlanView.WeeklyNum = 0;
  122. executablePlanView.StartWeeklyNum = 1;
  123. executablePlanView.EndWeeklyNum = 16;
  124. executablePlanView.IsNeedMaterial = false;
  125. executablePlanView.CourseFineID = (int)CF_CourseFine.No;
  126. executablePlanView.TeachinglanguageID = (int)CF_Teachinglanguage.Chinese;
  127. executablePlanView.ExaminationModeID = (int)CF_ExaminationMode.WrittenExam;
  128. executablePlanView.ResultTypeID = (int)CF_ResultType.Percentage;
  129. executablePlanView.HandleModeID = (int)CF_HandleMode.RequiredCourse;
  130. executablePlanView.ResultTypeID = (int)CF_ResultType.Percentage;
  131. }
  132. return View(executablePlanView);
  133. }
  134. /// <summary>
  135. /// 编辑(新增、修改,业务主键:学年学期ID、年级专业ID、课程信息ID)
  136. /// </summary>
  137. /// <param name="executablePlanView"></param>
  138. /// <returns></returns>
  139. [HttpPost]
  140. public ActionResult Edit(ExecutablePlanView executablePlanView)
  141. {
  142. try
  143. {
  144. ExecutablePlanServices.ExecutablePlanEdit(executablePlanView);
  145. return Json(new ReturnMessage()
  146. {
  147. IsSuccess = true,
  148. Message = "保存成功。"
  149. });
  150. }
  151. catch (Exception ex)
  152. {
  153. return Json(new ReturnMessage()
  154. {
  155. IsSuccess = false,
  156. Message = "保存失败:" + ex.Message
  157. });
  158. }
  159. }
  160. /// <summary>
  161. /// 根据专业计划信息批量新增(业务主键:学年学期ID、年级专业ID、课程信息ID)
  162. /// </summary>
  163. /// <returns></returns>
  164. [HttpGet]
  165. public ActionResult ExecutablePlanBatchAdd()
  166. {
  167. ExecutablePlanView executablePlanView = new ExecutablePlanView();
  168. return View(executablePlanView);
  169. }
  170. /// <summary>
  171. /// 根据专业计划信息批量新增(业务主键:学年学期ID、年级专业ID、课程信息ID)
  172. /// </summary>
  173. /// <param name="executablePlanView"></param>
  174. /// <returns></returns>
  175. public ActionResult ExecutablePlanBatchAdd(ExecutablePlanView executablePlanView)
  176. {
  177. try
  178. {
  179. var specialtyPlanViewList = Request["specialtyPlanViewList"].JsonToObject<List<SpecialtyPlanView>>();
  180. string result = ExecutablePlanServices.ExecutablePlanBatchAdd(specialtyPlanViewList, executablePlanView);
  181. return Json(new ReturnMessage()
  182. {
  183. IsSuccess = true,
  184. Message = "生成成功" + result + "。"
  185. });
  186. }
  187. catch (Exception ex)
  188. {
  189. return Json(new ReturnMessage()
  190. {
  191. IsSuccess = false,
  192. Message = "生成失败,原因:" + ex.Message
  193. });
  194. }
  195. }
  196. /// <summary>
  197. /// 查询对应的未新增专业计划信息SpecialtyPlanView
  198. /// </summary>
  199. /// <param name="pararms"></param>
  200. /// <returns></returns>
  201. [HttpPost]
  202. public ActionResult SpecialtyPlanNoAddList(QueryParamsModel pararms)
  203. {
  204. ConfiguretView configuretView = ConfiguretExtensions.GetConfiguretermsView(pararms);
  205. var schoolyearID = pararms.getExtraGuid("SchoolyearDropdown");
  206. var campusID = pararms.getExtraGuid("CampusDropdown");
  207. var collegeID = pararms.getExtraGuid("CollegeDropdown");
  208. var yearID = pararms.getExtraInt("DictionarySchoolyear") == DropdownList.SELECT_ALL ? null : pararms.getExtraInt("DictionarySchoolyear");
  209. var standardID = pararms.getExtraInt("DictionaryStandard") == DropdownList.SELECT_ALL ? null : pararms.getExtraInt("DictionaryStandard");
  210. var educationID = pararms.getExtraInt("DictionaryEducation") == DropdownList.SELECT_ALL ? null : pararms.getExtraInt("DictionaryEducation");
  211. var learningformID = pararms.getExtraInt("DictionaryLearningform") == DropdownList.SELECT_ALL ? null : pararms.getExtraInt("DictionaryLearningform");
  212. var learnSystem = pararms.getExtraString("DictionaryLearnSystem");
  213. var grademajorID = pararms.getExtraGuid("GrademajorComboGrid");
  214. var coursematerialID = pararms.getExtraGuid("CourseComboGrid");
  215. var teachingModeID = pararms.getExtraInt("DictionaryTeachingMode") == DropdownList.SELECT_ALL ? null : pararms.getExtraInt("DictionaryTeachingMode");
  216. var handleModeID = pararms.getExtraInt("DictionaryHandleMode") == DropdownList.SELECT_ALL ? null : pararms.getExtraInt("DictionaryHandleMode");
  217. return base.Json(ExecutablePlanServices.GetSpecialtyPlanViewNoAddGrid(configuretView, schoolyearID, campusID, collegeID,
  218. yearID, standardID, educationID, learningformID, learnSystem, grademajorID, coursematerialID, teachingModeID,
  219. handleModeID, (int)pararms.page, (int)pararms.rows));
  220. }
  221. /// <summary>
  222. /// 删除
  223. /// </summary>
  224. /// <param name="executablePlanIDs"></param>
  225. /// <returns></returns>
  226. [HttpPost]
  227. public ActionResult Delete(string executablePlanIDs)
  228. {
  229. try
  230. {
  231. List<Guid?> list = executablePlanIDs.Split(',').Where(x => !string.IsNullOrEmpty(x))
  232. .Select(x => (Guid?)new Guid(x)).ToList();
  233. ExecutablePlanServices.ExecutablePlanDelete(list);
  234. return base.Json(new ReturnMessage { IsSuccess = true, Message = "删除成功。" });
  235. }
  236. catch (Exception ex)
  237. {
  238. return base.Json(new ReturnMessage { IsSuccess = false, Message = "删除失败,原因:" + ex.Message });
  239. }
  240. }
  241. /// <summary>
  242. /// 执行计划提交
  243. /// </summary>
  244. /// <param name="executablePlanIDs"></param>
  245. /// <returns></returns>
  246. [HttpPost]
  247. public ActionResult ExecutablePlanSubmit(string executablePlanIDs)
  248. {
  249. try
  250. {
  251. List<Guid?> list = executablePlanIDs.Split(',').Where(x => !string.IsNullOrEmpty(x))
  252. .Select(x => (Guid?)new Guid(x)).ToList();
  253. string result = ExecutablePlanServices.ExecutablePlanSubmit(list);
  254. return Json(new ReturnMessage()
  255. {
  256. IsSuccess = true,
  257. Message = "提交成功" + result + "。"
  258. });
  259. }
  260. catch (Exception ex)
  261. {
  262. return Json(new ReturnMessage()
  263. {
  264. IsSuccess = false,
  265. Message = "提交失败,原因:" + ex.Message
  266. });
  267. }
  268. }
  269. /// <summary>
  270. /// 查询对应的授课方式List
  271. /// </summary>
  272. /// <param name="pararms"></param>
  273. /// <returns></returns>
  274. [HttpPost]
  275. public ActionResult TeachingModeTypeList(QueryParamsModel pararms)
  276. {
  277. List<string> list = new List<string>();
  278. var executablePlanID = Request["executablePlanID"].ParseStrTo<Guid>();
  279. if (executablePlanID.HasValue && executablePlanID != Guid.Empty)
  280. {
  281. list = ExecutablePlanServices.GetTeachingModeTypeList(executablePlanID);
  282. }
  283. else
  284. {
  285. list.Add(((int)EMIS.ViewModel.CF_TeachingMode.Theory).ToString());
  286. }
  287. return base.Json(list);
  288. }
  289. /// <summary>
  290. /// 查询对应的授课地点List
  291. /// </summary>
  292. /// <param name="pararms"></param>
  293. /// <returns></returns>
  294. [HttpPost]
  295. public ActionResult TeachingPlaceList(QueryParamsModel pararms)
  296. {
  297. List<string> list = new List<string>();
  298. var executablePlanID = Request["executablePlanID"].ParseStrTo<Guid>();
  299. if (executablePlanID.HasValue && executablePlanID != Guid.Empty)
  300. {
  301. list = ExecutablePlanServices.GetTeachingPlaceList(executablePlanID);
  302. }
  303. else
  304. {
  305. list.Add(((int)EMIS.ViewModel.EM_TeachingPlace.Multimedia).ToString());
  306. }
  307. return base.Json(list);
  308. }
  309. /// <summary>
  310. /// 查询对应的执行计划范围信息
  311. /// </summary>
  312. /// <returns></returns>
  313. public ActionResult PlanRangeList()
  314. {
  315. return View();
  316. }
  317. /// <summary>
  318. /// 查询对应的执行计划范围信息
  319. /// </summary>
  320. /// <param name="pararms"></param>
  321. /// <returns></returns>
  322. [HttpPost]
  323. public ActionResult PlanRangeList(QueryParamsModel pararms)
  324. {
  325. ConfiguretView configuretView = ConfiguretExtensions.GetConfiguretermsView(pararms);
  326. var executablePlanID = Request["executablePlanID"].ParseStrTo<Guid>();
  327. var classmajorID = pararms.getExtraGuid("ClassmajorDropdown");
  328. var inSchoolStatus = pararms.getExtraInt("DictionaryInschoolStatus") == DropdownList.SELECT_ALL ? null : pararms.getExtraInt("DictionaryInschoolStatus");
  329. return Json(ExecutablePlanServices.GetPlanRangeViewGrid(configuretView, executablePlanID,
  330. classmajorID, inSchoolStatus, (int)pararms.page, (int)pararms.rows));
  331. }
  332. /// <summary>
  333. /// 执行计划范围信息Excel导出
  334. /// </summary>
  335. /// <returns></returns>
  336. [HttpPost]
  337. public ActionResult PlanRangeListExcel()
  338. {
  339. return null;
  340. }
  341. /// <summary>
  342. /// 查询对应的执行计划人数信息
  343. /// </summary>
  344. /// <returns></returns>
  345. public ActionResult PlanStudentList()
  346. {
  347. return View();
  348. }
  349. /// <summary>
  350. /// 查询对应的执行计划人数信息
  351. /// </summary>
  352. /// <param name="pararms"></param>
  353. /// <returns></returns>
  354. [HttpPost]
  355. public ActionResult PlanStudentList(QueryParamsModel pararms)
  356. {
  357. ConfiguretView configuretView = ConfiguretExtensions.GetConfiguretermsView(pararms);
  358. var executablePlanID = Request["executablePlanID"].ParseStrTo<Guid>();
  359. var classmajorID = pararms.getExtraGuid("ClassmajorDropdown");
  360. var inSchoolStatus = pararms.getExtraInt("DictionaryInschoolStatus") == DropdownList.SELECT_ALL ? null : pararms.getExtraInt("DictionaryInschoolStatus");
  361. return Json(ExecutablePlanServices.GetBaseStudentViewGrid(configuretView, executablePlanID,
  362. classmajorID, inSchoolStatus, (int)pararms.page, (int)pararms.rows));
  363. }
  364. /// <summary>
  365. /// 执行计划人数信息Excel导出
  366. /// </summary>
  367. /// <returns></returns>
  368. [HttpPost]
  369. public ActionResult PlanStudentListExcel()
  370. {
  371. return null;
  372. }
  373. /// <summary>
  374. /// Excel导出
  375. /// </summary>
  376. /// <returns></returns>
  377. [HttpPost]
  378. public ActionResult Excel()
  379. {
  380. NpoiExcelHelper neh = new NpoiExcelHelper();
  381. ConfiguretView configuretView = ConfiguretExtensions.GetConfiguretermsView(null);
  382. var schoolyearID = Request.Form["SchoolyearDropdown"] == DropdownList.SELECT_ALL.ToString() ? null : Request.Form["SchoolyearDropdown"].ParseStrTo<Guid>();
  383. var campusID = Request.Form["CampusDropdown"].ParseStrTo<Guid>();
  384. var collegeID = Request.Form["CollegeDropdown"].ParseStrTo<Guid>();
  385. var yearID = Request.Form["DictionarySchoolyear"].ParseStrTo<int>() == DropdownList.SELECT_ALL ? null : Request.Form["DictionarySchoolyear"].ParseStrTo<int>();
  386. var standardID = Request.Form["DictionaryStandard"].ParseStrTo<int>() == DropdownList.SELECT_ALL ? null : Request.Form["DictionaryStandard"].ParseStrTo<int>();
  387. var educationID = Request.Form["DictionaryEducation"].ParseStrTo<int>() == DropdownList.SELECT_ALL ? null : Request.Form["DictionaryEducation"].ParseStrTo<int>();
  388. var learningformID = Request.Form["DictionaryLearningform"].ParseStrTo<int>() == DropdownList.SELECT_ALL ? null : Request.Form["DictionaryLearningform"].ParseStrTo<int>();
  389. var learnSystem = Request.Form["DictionaryLearnSystem"].ToString();
  390. var grademajorID = Request.Form["GrademajorComboGrid"].ParseStrTo<Guid>();
  391. var coursematerialID = Request.Form["CourseComboGrid"].ParseStrTo<Guid>();
  392. var isMainCourse = Request.Form["DictionaryIsMainCourse"].ParseStrTo<int>() == DropdownList.SELECT_ALL ? null : Request.Form["DictionaryIsMainCourse"].ParseStrTo<int>();
  393. var teachingModeID = Request.Form["DictionaryTeachingMode"].ParseStrTo<int>() == DropdownList.SELECT_ALL ? null : Request.Form["DictionaryTeachingMode"].ParseStrTo<int>();
  394. var handleModeID = Request.Form["DictionaryHandleMode"].ParseStrTo<int>() == DropdownList.SELECT_ALL ? null : Request.Form["DictionaryHandleMode"].ParseStrTo<int>();
  395. var planTypeID = Request.Form["DictionaryPlanType"].ParseStrTo<int>() == DropdownList.SELECT_ALL ? null : Request.Form["DictionaryPlanType"].ParseStrTo<int>();
  396. var inschoolStatus = Request.Form["DictionaryInschoolStatus"].ParseStrTo<int>() == DropdownList.SELECT_ALL ? null : Request.Form["DictionaryInschoolStatus"].ParseStrTo<int>();
  397. var approvalStatus = Request.Form["DictionaryApprovalStatus"].ParseStrTo<int>() == DropdownList.SELECT_ALL ? null : Request.Form["DictionaryApprovalStatus"].ParseStrTo<int>();
  398. var dt = ExecutablePlanServices.GetExecutablePlanViewList(configuretView, schoolyearID, campusID, collegeID, yearID,
  399. standardID, educationID, learningformID, learnSystem, grademajorID, coursematerialID, isMainCourse, teachingModeID,
  400. handleModeID, planTypeID, inschoolStatus, approvalStatus)
  401. .Select(x => new
  402. {
  403. x.SchoolyearCode,
  404. x.CollegeCode,
  405. x.CollegeName,
  406. x.GradeID,
  407. x.GrademajorCode,
  408. x.GrademajorName,
  409. x.SchoolyearNumName,
  410. x.SchoolcodeName,
  411. x.StarttermName,
  412. x.CourseCode,
  413. x.CourseName,
  414. x.CourseStructureName,
  415. x.CourseCategoryName,
  416. x.CourseTypeName,
  417. x.CourseQualityName,
  418. Credit = x.Credit.HasValue ? x.Credit.Value.ToString("#.#") : null,
  419. x.TheoryCourse,
  420. x.Practicehours,
  421. x.Trialhours,
  422. x.Totalhours,
  423. x.TheoryWeeklyNum,
  424. x.PracticeWeeklyNum,
  425. x.TrialWeeklyNum,
  426. x.SchoolweeksNum,
  427. x.WeeklyHours,
  428. x.WeeklyNum,
  429. x.StartWeeklyNum,
  430. x.EndWeeklyNum,
  431. x.DepartmentName,
  432. x.IsSpecialtycoreName,
  433. x.IsCooperationName,
  434. x.IsRequiredName,
  435. x.IsElectiveName,
  436. x.IsNetworkCourseName,
  437. x.IsMainCourseName,
  438. x.IsNeedMaterialName,
  439. x.CourseFineName,
  440. x.PracticeTypeName,
  441. x.TeachinglanguageName,
  442. x.ExaminationModeName,
  443. x.ResultTypeName,
  444. x.HandleModeName,
  445. x.ClassGroupingName,
  446. x.TeachingModeIDListName,
  447. x.TeachingPlaceIDListName,
  448. x.PlanRange,
  449. x.StudentCount,
  450. x.PlanTypeName,
  451. x.ExecuteStatusName,
  452. x.SourceTypeName,
  453. x.DefaultClassName,
  454. x.Remark
  455. }).ToTable();
  456. string[] liststring = {
  457. "学年学期", RSL.Get("CollegeCode"), RSL.Get("CollegeName"), "年级", "年级专业编号", "年级专业名称",
  458. "开课学年", "学期", "开课学期", "课程代码", "课程名称", "课程结构", "课程属性", "课程类型",
  459. "课程性质", "课程学分", "理论学时", "实践学时", "实验学时", "总学时", "理论周次", "实践周次",
  460. "实验周次", "总周次", "周学时", "每周次数", "开始周次", "结束周次", "开课教研室", "是否专业核心",
  461. "是否合作开发", RSL.Get("IsRequired"), "是否网上选修", "是否网络课程", "是否学位课程", "是否需要教材",
  462. "精品课程", "实践类型", "授课语言", "考试方式", "成绩类型", "处理方式", "上课类型", "授课方式",
  463. "授课地点", "计划范围", "人数", "计划类型", "执行状态", "计划来源", "默认班级名称", "备注"
  464. };
  465. neh.Export(dt, liststring, "执行计划信息" + DateTime.Now.ToString("yyyyMMdd"));
  466. return Json(new ReturnMessage()
  467. {
  468. IsSuccess = true,
  469. Message = "导出成功。"
  470. });
  471. }
  472. }
  473. }