Edit.cshtml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. @model EMIS.ViewModel.PaymentManage.StaffStandardView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. ComboGridOptions cgopCollege = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "CollegeID",
  10. OnSelect = "queryDepartment",
  11. GridOptions = new DataGridOptions
  12. {
  13. Columns = new List<DataGridColumn>()
  14. {
  15. new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Width=0.1, Align=AlignStyle.Center },
  16. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Width=0.3, Align=AlignStyle.Center }
  17. },
  18. OnLoadSuccessFun = "queryDepartment",
  19. IsCheckOnSelect = true,
  20. DataSourceUrl = Url.Content("~/College/List"),
  21. IsPagination = true,
  22. IsShowRowNumbers = true,
  23. IsSingleSelect = false
  24. }
  25. };
  26. ComboGridOptions cgopDepartment = new ComboGridOptions
  27. {
  28. TextField = "Name",
  29. ValueField = "DepartmentID",
  30. OnSelect = "queryUser",
  31. GridOptions = new DataGridOptions
  32. {
  33. Columns = new List<DataGridColumn>()
  34. {
  35. new LinkButtonColumn { FieldName="No", HeaderText="教研室代码", Width=0.1, Align=AlignStyle.Center },
  36. new BoundFieldColumn { FieldName="Name", HeaderText="教研室名称", Width=0.3, Align=AlignStyle.Center }
  37. },
  38. OnLoadSuccessFun = "queryUser",
  39. IsCheckOnSelect = true,
  40. DataSourceUrl = Url.Content("~/Department/List"),
  41. IsPagination = true,
  42. IsShowRowNumbers = true,
  43. IsSingleSelect = false
  44. }
  45. };
  46. ComboGridOptions cgopUser = new ComboGridOptions
  47. {
  48. TextField = "Name",
  49. ValueField = "UserID",
  50. GridOptions = new DataGridOptions
  51. {
  52. Columns = new List<DataGridColumn>()
  53. {
  54. new BoundFieldColumn { FieldName="Name", HeaderText="教师名字", Width=0.1, Align=AlignStyle.Center }
  55. },
  56. IsCheckOnSelect = true,
  57. DataSourceUrl = Url.Content("~/Staff/List"),
  58. IsPagination = true,
  59. IsShowRowNumbers = true,
  60. IsSingleSelect = false
  61. }
  62. };
  63. }
  64. @section scripts{
  65. <script src="~/Scripts/Business/PaymentManage/StaffStandardEdit.js" type="text/javascript"></script>
  66. <script type="text/javascript">
  67. var nonSelect = "@DropdownList.SELECT_ALL";
  68. </script>
  69. }
  70. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  71. @using (Ajax.BeginForm(new AjaxOptions
  72. {
  73. OnSuccess = "EMISFunction.FormSuccess",
  74. OnBegin = "EMISFunction.FormSubmit",
  75. OnComplete = "EMISFunction.FormComplete"
  76. }))
  77. {
  78. <div class="p_title">
  79. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;"></div>
  80. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  81. </div>
  82. <div class="search_list">
  83. @Html.HiddenFor(x => x.StaffStandardID)
  84. <table cellpadding="0" cellspacing="0" id="stafftable">
  85. <tr>
  86. <td>@Html.LabelFor(x => x.CollegeID):</td>
  87. <td>@Html.ComboGridFor(x => x.CollegeID, cgopCollege)</td>
  88. <td>@Html.LabelFor(x => x.DepartmentID):</td>
  89. <td>@Html.ComboGridFor(x => x.DepartmentID, cgopDepartment)</td>
  90. </tr>
  91. <tr>
  92. <td>@Html.LabelFor(x => x.UserID):</td>
  93. <td>@Html.ComboGridFor(x => x.UserID, cgopUser)</td>
  94. <td>@Html.LabelFor(x => x.Amount):</td>
  95. <td>@Html.TextBoxFor(x => x.Amount)</td>
  96. </tr>
  97. </table>
  98. </div>
  99. }
  100. </div>