List.cshtml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. }
  6. @section scripts{
  7. <script src="~/Scripts/Business/ScoreManage/CreditFormula.js" type="text/javascript"></script>
  8. }
  9. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  10. @Html.Position()
  11. <div class="p_SearchTitle">
  12. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  13. 查询条件
  14. </div>
  15. </div>
  16. <div class="search_keyword">
  17. <div class="search_input">
  18. <ul>
  19. <li class="sn" style="padding-left: 5px;">公式名称:</li>
  20. <li class="sv">
  21. @Html.TextBox(new TextBoxOptions { Name = "textName" }, new Dictionary<string, string> { { "data-condition", "dgCreditFormulatList" } })
  22. </li>
  23. <li class="sn" style="padding-left: 20px;"><a href="javascript:void(0)" class="easyui-linkbutton"
  24. data-options="iconCls:'icon-search'" onclick="reload();">查询</a></li>
  25. </ul>
  26. </div>
  27. </div>
  28. <div class="p_title">
  29. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  30. 学分公式设置列表
  31. </div>
  32. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  33. </div>
  34. <div class="search_list">
  35. @Html.DataGrid(new DataGridOptions
  36. {
  37. Columns = new List<DataGridColumn>()
  38. {
  39. new CheckBoxFieldColumn{ HeaderText="", FieldName="CreditFormulaID" },
  40. new LinkButtonColumn { FieldName="Name", HeaderText="公式名称", Align=AlignStyle.Center , Handle="edit" },
  41. new BoundFieldColumn { FieldName="Scores", HeaderText="分数", Align=AlignStyle.Center }
  42. },
  43. IsCheckOnSelect = true,
  44. DataSourceUrl = Url.Content("~/CreditFormula/List"),
  45. ID = "dgCreditFormulatList",
  46. IsPagination = true,
  47. IsShowRowNumbers = true,
  48. IsSingleSelect = false
  49. })
  50. </div>
  51. </div>