ChangeOrderQty.cshtml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. @using EMIS.Web.Controls;
  2. @using Bowin.Web.Controls.Mvc;
  3. @model EMIS.ViewModel.TeachingMaterial.StudentsOrderView
  4. @{
  5. ViewBag.Title = "Edit";
  6. List<DropdownListItem> listAction = ViewData["listAction"] as List<DropdownListItem>;
  7. string studentsOrderID = ViewData["StudentsOrderID"] as string;
  8. var schoolYearIDs = ViewData["schoolYearIDs"] == null ? "-1" : ViewData["schoolYearIDs"].ToString();
  9. var teachingMaterialPoolIDs = ViewData["teachingMaterialPoolIDs"] == null ? "-1" : ViewData["teachingMaterialPoolIDs"].ToString();
  10. }
  11. @section scripts{
  12. <script src="~/Scripts/Business/TeachingMaterial/StudentOrderEdit.js" type="text/javascript"></script>
  13. <script type="text/javascript">
  14. $(document).ready(function () {
  15. var JsonDate = top.$("#@(Request["WindowID"])").data("inputData");
  16. $("#hid_JsonStr").val(JsonDate);//将json字符串赋值给隐藏域
  17. });
  18. </script>
  19. }
  20. @{
  21. var years = Request.Params["years"];
  22. var tmps = Request.Params["tmps"];
  23. }
  24. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  25. @using (Ajax.BeginForm(new AjaxOptions { Url = "/StudentsOrder/ChangeOrderQty", OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" }))
  26. {
  27. <div class="p_title">
  28. @* <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  29. 修改征订数量</div>*@
  30. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
  31. </div>
  32. <div class="search_list">
  33. @Html.Hidden("hid_teachersOrderIDs", studentsOrderID)
  34. @Html.Hidden("hid_JsonStr")
  35. @Html.Hidden("hid_schoolYearIDs", schoolYearIDs)
  36. @Html.Hidden("hid_teachingMaterialPoolIDs", teachingMaterialPoolIDs)
  37. <table cellpadding="0" cellspacing="0">
  38. <tr>
  39. <td>
  40. @Html.Label("征订数量"):
  41. </td>
  42. <td>@Html.TextBoxFor(x=>x.OrderQty)
  43. </td>
  44. </tr>
  45. </table>
  46. </div>
  47. }
  48. </div>