Add.cshtml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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. <tr>
  62. <td style ="width: 120px">@Html.LabelFor(x => x.ResultTypeID):
  63. </td>
  64. <td>
  65. @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_ResultType,(x => x.ResultTypeID))
  66. </td>
  67. <td>@Html.LabelFor(x => x.Name):
  68. </td>
  69. <td>
  70. @Html.TextBoxFor(x => x.Name)
  71. </td>
  72. </tr>
  73. <tr>
  74. <td style ="width: 120px">@Html.Label("分数段"):
  75. </td>
  76. <td colspan = "3">
  77. @Html.TextBoxFor(x => x.MinScore, new { style = "width:70px;" })
  78. @Html.MinOrEqualDropDownListFor(x => x.MinScoreOperator, new DropdownListOptions { BindType = DropdownListBindType.None, ItemList = item, TextField = "Text", ValueField = "Value", Height = 50, Width = 70 })
  79. 总成绩
  80. @Html.MinOrEqualDropDownListFor(x => x.MaxScoreOperator, new DropdownListOptions { BindType = DropdownListBindType.None, ItemList = item, TextField = "Text", ValueField = "Value", Height = 50, Width = 70 })
  81. @Html.TextBoxFor(x => x.MaxScore, new { style = "width:70px;" })
  82. </td>
  83. </tr>
  84. <tr>
  85. <td style ="width: 120px">@Html.LabelFor(x => x.Score):
  86. </td>
  87. <td colspan = "3">
  88. @Html.TextBoxFor(x => x.Score)
  89. </td>
  90. </tr>
  91. <tr>
  92. <td>@Html.LabelFor(x => x.Remark):
  93. </td>
  94. <td colspan = "3">
  95. @Html.TextAreaFor(x => x.Remark)
  96. </td>
  97. </tr>
  98. </table>
  99. </div>
  100. }
  101. </div>