Edit.cshtml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. @model EMIS.ViewModel.ScoreManage.ResultTypeDetailView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Add";
  6. var item = ViewBag.ListItem;
  7. ComboGridOptions cgopResultType = new ComboGridOptions
  8. {
  9. TextField = "ResultsName",
  10. ValueField = "ResultsTypeID",
  11. Name = "ResultTypeDropdown",
  12. ID = "ResultTypeDropdown",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. //new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center },
  18. new BoundFieldColumn { FieldName="ResultsName", HeaderText="成绩类型", Align=AlignStyle.Center }
  19. },
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/ResultsType/List"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false,
  25. }
  26. };
  27. //DropdownListOptions cgopOperator = new DropdownListOptions
  28. //{
  29. // TextField = "key",
  30. // ValueField = "value",
  31. // Name = "OperatorDropdown",
  32. // ID = "OperatorDropdown",
  33. // GridOptions = new DropdownListOptions
  34. // {
  35. // Columns = new List<DataGridColumn>()
  36. // {
  37. // //new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center },
  38. // new BoundFieldColumn { FieldName="value", HeaderText="", Align=AlignStyle.Center }
  39. // },
  40. // IsCheckOnSelect = true,
  41. // DataSourceUrl = Url.Content("~/ResultTypeDetail/GetOperator"),
  42. // IsPagination = true,
  43. // IsShowRowNumbers = true,
  44. // IsSingleSelect = false,
  45. // }
  46. //};
  47. }
  48. @section scripts{
  49. <script src="~/Scripts/Business/ScoreManage/ResultTypeDetailAdd.js" type="text/javascript"></script>
  50. }
  51. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  52. @using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" }))
  53. {
  54. <div class="p_title">
  55. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  56. </div>
  57. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  58. </div>
  59. <div class="search_list">
  60. <table cellpadding="0" cellspacing="0" id="levelSettingTable">
  61. @Html.HiddenFor(x => x.ResultTypeDetailID)
  62. <tr>
  63. <td style ="width: 120px">@Html.LabelFor(x => x.ResultTypeID):
  64. </td>
  65. <td>
  66. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ResultType, (x => x.ResultTypeID))
  67. </td>
  68. <td>@Html.LabelFor(x => x.Name):
  69. </td>
  70. <td>
  71. @Html.TextBoxFor(x => x.Name)
  72. </td>
  73. </tr>
  74. <tr>
  75. <td style ="width: 120px">@Html.Label("分数段"):
  76. </td>
  77. <td colspan = "3">
  78. @Html.TextBoxFor(x => x.MinScore, new { style = "width:70px;" })
  79. @Html.MinOrEqualDropDownListFor(x => x.MinScoreOperator, new DropdownListOptions { BindType = DropdownListBindType.None, ItemList = item, TextField = "Text", ValueField = "Value", Height = 50, Width = 70 })
  80. 总成绩
  81. @Html.MinOrEqualDropDownListFor(x => x.MaxScoreOperator, new DropdownListOptions { BindType = DropdownListBindType.None, ItemList = item, TextField = "Text", ValueField = "Value", Height = 50, Width = 70 })
  82. @Html.TextBoxFor(x => x.MaxScore, new { style = "width:70px;" })
  83. </td>
  84. </tr>
  85. <tr>
  86. <td style ="width: 120px">@Html.LabelFor(x => x.Score):
  87. </td>
  88. <td colspan = "3">
  89. @Html.TextBoxFor(x => x.Score)
  90. </td>
  91. </tr>
  92. <tr>
  93. <td>@Html.LabelFor(x => x.Remark):
  94. </td>
  95. <td colspan = "3">
  96. @Html.TextAreaFor(x => x.Remark)
  97. </td>
  98. </tr>
  99. </table>
  100. </div>
  101. }
  102. </div>