List.cshtml 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. @model EMIS.ViewModel.PaymentManage.StudentCountRateView
  2. @using Bowin.Web.Controls.Mvc;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "List";
  6. }
  7. @section scripts{
  8. <script src="../../Scripts/Business/PaymentManage/StudentCountRate.js" type="text/javascript"></script>
  9. }
  10. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  11. @Html.Position()
  12. <div class="p_SearchTitle">
  13. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  14. 查询条件
  15. </div>
  16. </div>
  17. <div class="p_title">
  18. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  19. 标准人数系数
  20. </div>
  21. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("CommonList")</div>
  22. </div>
  23. <div class="search_keyword">
  24. @using (Ajax.BeginForm("CommonSave", "StudentCountRate", new AjaxOptions
  25. {
  26. OnSuccess = "EMISFunction.FormSuccess",
  27. OnBegin = "EMISFunction.FormSubmit",
  28. OnComplete = "EMISFunction.FormComplete"
  29. }, new { id = "fmCommonStudentCount" }))
  30. {
  31. <div class="search_input">
  32. <table cellpadding="0" cellspacing="0">
  33. @Html.HiddenFor(x => x.StudentCountRateID)
  34. <tr>
  35. <td>
  36. @Html.LabelFor(x => x.BaseStudentCount)
  37. </td>
  38. <td>
  39. @Html.TextBoxFor(x => x.BaseStudentCount)
  40. </td>
  41. <td>
  42. @Html.LabelFor(x => x.Limit)
  43. </td>
  44. <td>
  45. @Html.TextBoxFor(x => x.Limit)
  46. </td>
  47. </tr>
  48. </table>
  49. </div>
  50. }
  51. </div>
  52. <div class="p_title">
  53. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  54. 人数系数列表
  55. </div>
  56. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  57. </div>
  58. <div class="search_list">
  59. @Html.DataGrid(new DataGridOptions
  60. {
  61. Columns = new List<DataGridColumn>()
  62. {
  63. new CheckBoxFieldColumn{ HeaderText="", FieldName="StudentCountRateID" },
  64. new BoundFieldColumn { FieldName="TitleDesc", HeaderText="职称", Align=AlignStyle.Center },
  65. new BoundFieldColumn { FieldName="BaseStudentCount", HeaderText="基准人数", Align=AlignStyle.Center },
  66. new BoundFieldColumn { FieldName="Limit", HeaderText="系数上限", Align=AlignStyle.Center, CustomFormatFun="CMSFunction.DataTableFormatter.TwoDigit" }
  67. },
  68. IsCheckOnSelect = true,
  69. DataSourceUrl = Url.Content("~/StudentCountRate/List"),
  70. ID = "dgStudentCountRateList",
  71. IsPagination = true,
  72. IsShowRowNumbers = true,
  73. IsSingleSelect = false
  74. })
  75. </div>
  76. </div>