QuestionLibaryTree.cshtml 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMISOnline.Entities;
  3. @using EMISOnline.Web.Controls;
  4. @{
  5. ViewBag.Title = "QuestionLibaryTree";
  6. Layout = null;
  7. }
  8. <div class="p_title">
  9. <div style="float: left; margin-left: 10px; color: #333; line-height: 35px; font-size: 12px;">
  10. 题库</div>
  11. <div style="margin-right: 10px; float: right; line-height: 30px; font-size: 12px;">
  12. @Html.Button(new ButtonOptions() { ID = "btnSaveLibary", Text = "保 存" })
  13. </div>
  14. </div>
  15. <div style="margin: 20px; height: 300px; overflow: auto">
  16. @Html.Tree(new TreeOptions
  17. {
  18. ID = "ulTree",
  19. ItemSourceUrl = Url.Content("~/PaperSetting/ListQuesLibTree"),
  20. CssClass = "m_video_tree",
  21. IsCheckTree = true,
  22. }, null)
  23. </div>
  24. <script type="text/javascript">
  25. $(function () {
  26. $('#btnSaveLibary').click(function () {
  27. var nodes = $('#ulTree').tree('getChecked');
  28. builderLibarys(nodes);
  29. $('#dialog').dialog('close');
  30. });
  31. })
  32. </script>