Index.cshtml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. @model EMIS.ViewModel.RetakeManage.RetakeParameterView
  2. @using Bowin.Web.Controls.Mvc;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "List";
  6. //收费项目
  7. ComboGridOptions cgopChargeProject = new ComboGridOptions
  8. {
  9. ID = "ChargeProjectComboGrid",
  10. Name = "ChargeProjectComboGrid",
  11. TextField = "ChrageProjectName",
  12. ValueField = "ChargeProjectID",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. new BoundFieldColumn { FieldName="ChrageProjectName", HeaderText="收费项目", Align=AlignStyle.Center, Width=0.2 }
  18. },
  19. IsCheckOnSelect = true,
  20. DataSourceUrl = Url.Content("~/ChargeProject/List"),
  21. IsPagination = true,
  22. IsShowRowNumbers = true,
  23. IsSingleSelect = false
  24. }
  25. };
  26. }
  27. @section scripts{
  28. <script src="~/Scripts/Business/RetakeManage/RetakeParamter.js" type="text/javascript"></script>
  29. @* <script type="text/javascript">
  30. </script>*@
  31. }
  32. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  33. @using (Ajax.BeginForm(new AjaxOptions
  34. {
  35. OnSuccess = "EMISFunction.FormSuccess",
  36. OnBegin = "EMISFunction.FormSubmit",
  37. OnComplete = "EMISFunction.FormComplete"
  38. }))
  39. {
  40. @Html.Position()
  41. <div class="p_title">
  42. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  43. 参数设定信息</div>
  44. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Index")</div>
  45. </div>
  46. <div style="position: relative; top: 0px;">
  47. <table cellpadding="0" cellspacing="1" style="width: 100%;">
  48. <tr style="border:1px solid #D6D6D6; height:30px;">
  49. <th style=" background-color:#e8e8e8; border:1px solid #D6D6D6; text-align:center; width: 100px;">
  50. @Html.LabelFor(x => x.SchoolyearID):
  51. </th>
  52. <td style="border:1px solid #D6D6D6; text-align:left;">
  53. @Html.DropdownListFor(x => x.SchoolyearID, new DropdownListOptions()
  54. {
  55. BindType = DropdownListBindType.PleaseSelect,
  56. ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid")
  57. })
  58. </td>
  59. </tr>
  60. <tr style="border:1px solid #D6D6D6; height:30px;">
  61. <th style=" background-color:#e8e8e8; border:1px solid #D6D6D6; text-align:center; width: 100px;">
  62. @Html.LabelFor(x => x.ExamsCategoryID):
  63. </th>
  64. <td style="border:1px solid #D6D6D6; text-align:left;">
  65. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ExamsCategory, x => x.ExamsCategoryID, new DropdownListOptions()
  66. {
  67. BindType = DropdownListBindType.PleaseSelect
  68. })
  69. </td>
  70. </tr>
  71. <tr style="border:1px solid #D6D6D6; height:30px;">
  72. <th style=" background-color:#e8e8e8; border:1px solid #D6D6D6; text-align:center; width: 100px;">
  73. @Html.LabelFor(x => x.RetakeChargeProjectID):
  74. </th>
  75. <td style="border:1px solid #D6D6D6; text-align:left;">
  76. @Html.ComboGridFor(x => x.RetakeChargeProjectID, cgopChargeProject)
  77. </td>
  78. </tr>
  79. <tr style="border:1px solid #D6D6D6; height:30px;">
  80. <th style=" background-color:#e8e8e8; border:1px solid #D6D6D6; text-align:center; width: 100px;">
  81. @Html.LabelFor(x => x.IsRetakeChargeControl):
  82. </th>
  83. <td style="border:1px solid #D6D6D6; text-align:left; color: red;">
  84. @Html.CheckBoxFor(x => x.IsRetakeChargeControl) (选中表示控制)
  85. </td>
  86. </tr>
  87. <tr style="border:1px solid #D6D6D6; height:30px;">
  88. <th style=" background-color:#e8e8e8; border:1px solid #D6D6D6; text-align:center; width: 100px; color: red;">
  89. 预查考试性质:
  90. </th>
  91. <td style="border:1px solid #D6D6D6; text-align:left;">
  92. @Html.DataGrid(new DataGridOptions
  93. {
  94. Columns = new List<DataGridColumn>()
  95. {
  96. new BoundFieldColumn { FieldName="ExamsCategoryDesc", HeaderText="考试性质", Align=AlignStyle.Center, Width=0.1 },
  97. new CheckButtonColumn{ HeaderText="是否选中", FieldName="IsSelected", Align=AlignStyle.Center, Width=0.1 }
  98. },
  99. IsCheckOnSelect = true,
  100. IsPostBack = true,
  101. DataSourceUrl = Url.Content("~/RetakeParameter/RetakeExamsCategoryList"),
  102. ID = "dgRetakeExamsCategoryList",
  103. IsPagination = true,
  104. IsShowRowNumbers = true,
  105. IsSingleSelect = false
  106. })
  107. </td>
  108. </tr>
  109. </table>
  110. </div>
  111. }
  112. </div>