Edit.cshtml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. @model EMIS.ViewModel.PaymentManage.WorktimeRateView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. ComboGridOptions optCollege = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "CollegeID",
  10. GridOptions = new DataGridOptions
  11. {
  12. Columns = new List<DataGridColumn>()
  13. {
  14. new BoundFieldColumn { FieldName="Name", HeaderText=EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  15. },
  16. IsCheckOnSelect = true,
  17. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  18. IsPagination = true,
  19. IsShowRowNumbers = true,
  20. IsSingleSelect = false,
  21. }
  22. };
  23. }
  24. @section scripts{
  25. <script src="~/Scripts/Business/PaymentManage/WorktimeRateEdit.js" type="text/javascript"></script>
  26. }
  27. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  28. @using (Ajax.BeginForm(new AjaxOptions
  29. {
  30. OnSuccess = "FormSuccess",
  31. OnBegin = "EMISFunction.FormSubmit",
  32. OnComplete = "EMISFunction.FormComplete"
  33. }))
  34. {
  35. <div class="p_title">
  36. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  37. 工作量系数
  38. </div>
  39. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  40. </div>
  41. <div class="search_list">
  42. <table cellpadding="0" cellspacing="0">
  43. <tr>
  44. <td>@Html.LabelFor(x => x.PaymentLevelID):
  45. </td>
  46. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.TP_PaymentLevel, (x => x.PaymentLevelID), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect })
  47. </td>
  48. <td>@Html.LabelFor(x => x.CollegeID):
  49. </td>
  50. <td>@Html.ComboGridFor(x => x.CollegeID, optCollege)
  51. </td>
  52. </tr>
  53. <tr>
  54. <td>@Html.LabelFor(x => x.StudentCountStart):
  55. </td>
  56. <td>@Html.TextBoxFor(x => x.StudentCountStart)
  57. </td>
  58. <td>@Html.LabelFor(x => x.StudentCountEnd):
  59. </td>
  60. <td>@Html.TextBoxFor(x => x.StudentCountEnd)
  61. </td>
  62. </tr>
  63. <tr>
  64. <td>@Html.LabelFor(x => x.TeachingModeID):
  65. </td>
  66. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_TeachingMode, (x => x.TeachingModeID), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect })
  67. </td>
  68. <td>@Html.LabelFor(x => x.TeachingMethodID):
  69. </td>
  70. <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.EM_TeachingMethod, (x => x.TeachingMethodID), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect })
  71. </td>
  72. </tr>
  73. <tr>
  74. <td>@Html.LabelFor(x => x.WorktimeRate):
  75. </td>
  76. <td>@Html.TextBoxFor(x => x.WorktimeRate)
  77. </td>
  78. <td>
  79. <label></label>
  80. </td>
  81. <td>
  82. <label></label>
  83. </td>
  84. </tr>
  85. </table>
  86. </div>
  87. }
  88. </div>