Edit.cshtml 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. @model EMIS.ViewModel.ScoreManage.ScoreFormulaView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. }
  7. @section scripts{
  8. <script src="~/Scripts/Business/ScoreManage/ScoreFormulaEdit.js" type="text/javascript"></script>
  9. }
  10. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  11. @using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" }))
  12. {
  13. <div class="p_title">
  14. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  15. </div>
  16. @if (Request["isView"] != "1")
  17. {
  18. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  19. }
  20. </div>
  21. <div class="search_list">
  22. @Html.HiddenFor(x => x.ScoreFormulaID)
  23. <table cellpadding="0" cellspacing="0" id="buildingstable">
  24. <tr>
  25. <td>@Html.LabelFor(x => x.Name):</td>
  26. <td colspan="3">
  27. @Html.TextBoxFor(x => x.Name)
  28. </td>
  29. </tr>
  30. <tr>
  31. <td rowspan="3"><label>总分公式明细:</label></td>
  32. <td colspan="3">
  33. <div style="line-height: 30px; font-size: 12px; text-align: left;">@Html.ContextMenuBar("Settings")</div>
  34. </td>
  35. </tr>
  36. <tr>
  37. <td colspan="3">
  38. @Html.DataGrid(new DataGridOptions
  39. {
  40. Columns = new List<DataGridColumn>()
  41. {
  42. new CheckBoxFieldColumn { FieldName="ScoreFormulaDetailID" },
  43. new DictionaryDropdownListColumn { FieldName="ScoreType", HeaderText="分数类型", Align=AlignStyle.Center, DictionaryType = EMIS.ViewModel.DictionaryItem.CF_ScoreType },
  44. new CheckButtonColumn { FieldName="IsRequirePass", HeaderText="是否必须通过", Align=AlignStyle.Center },
  45. new TextBoxColumn { FieldName="PassScoreStr", HeaderText="必须通过成绩", Align=AlignStyle.Center },
  46. new TextBoxColumn { FieldName="Percentage", HeaderText="百分比", Align=AlignStyle.Center, IsRequired = true, Validator = new OnlyNumberValidator() }
  47. },
  48. IsCheckOnSelect = true,
  49. DataSourceUrl = Url.Content("~/ScoreFormula/ScoreFormulaDetailList?scoreFormulaID=" + Model.ScoreFormulaID),
  50. IsPostBack = true,
  51. ID = "dgScoreFormulaDetailList",
  52. IsPagination = true,
  53. IsShowRowNumbers = true,
  54. IsSingleSelect = false
  55. })
  56. </td>
  57. </tr>
  58. </table>
  59. </div>
  60. }
  61. </div>