OpenObjectBatchAdd.cshtml 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. @model EMIS.ViewModel.StudentManage.OnlineChecking.OpenObjectView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @using EMIS.Utility;
  5. @{
  6. ViewBag.Title = "OpenObjectBatchAdd";
  7. }
  8. @section scripts{
  9. <script src="~/Scripts/Business/StudentManage/OnlineChecking/OpenObjectBatchAdd.js" type="text/javascript"></script>
  10. <script type="text/javascript">
  11. var nonSelect = "@DropdownList.SELECT_ALL";
  12. var educationName = '@EMIS.Utility.RSL.Get("EducationName")';
  13. </script>
  14. }
  15. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  16. @using (Ajax.BeginForm(new AjaxOptions
  17. {
  18. //生成成功后不关闭弹出页面(OnSuccess = "EMISFunction.FormSuccessNoClose")
  19. OnSuccess = "formSuccessReloadNoClose",
  20. OnBegin = "EMISFunction.FormSubmit",
  21. OnComplete = "EMISFunction.FormComplete"
  22. }))
  23. {
  24. <div class="p_SearchTitle">
  25. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  26. 查询条件</div>
  27. </div>
  28. @Html.PositionCondition("OpenObjectSelect")
  29. <div class="search_keyword">
  30. <div class="search_input">
  31. <ul>
  32. <li class="sn" style="padding-left: 5px;color:red;">@Html.RSLabel("EducationName"):</li>
  33. <li class="sv">
  34. @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Education, (x => x.EducationID), DropdownListBindType.PleaseSelect,
  35. new ComboGridOptions
  36. {
  37. ID = "DictionaryEducation",
  38. Name = "DictionaryEducation",
  39. OnSelect = "reload"
  40. }, new Dictionary<string, string> { { "data-condition", "dgSchoolyearNumDicNoAddList" } })
  41. </li>
  42. <li class="sn" style="padding-left: 5px;color:red;">开始时间:</li>
  43. <li class="sv">
  44. @Html.TextBoxFor(x => x.Starttime, new TextBoxOptions() { TextBoxType = TextBoxType.DateTime })
  45. </li>
  46. <li class="sn" style="padding-left: 5px;color:red;">结束时间:</li>
  47. <li class="sv">
  48. @Html.TextBoxFor(x => x.Endtime, new TextBoxOptions() { TextBoxType = TextBoxType.DateTime })
  49. </li>
  50. </ul>
  51. </div>
  52. </div>
  53. <div class="p_title">
  54. <div style="float: left; margin-left: 6px; line-height: 30px; font-size: 12px;">
  55. 开放学年列表
  56. </div>
  57. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("BatchAdd")</div>
  58. </div>
  59. <div class="search_list">
  60. @Html.Hidden("schoolyearNumIDList")
  61. <table cellpadding="0" cellspacing="0" id="specialtytable">
  62. <tr>
  63. <td>
  64. @Html.DataGrid(new DataGridOptions
  65. {
  66. Columns = new List<DataGridColumn>()
  67. {
  68. new CheckBoxFieldColumn{ HeaderText="", FieldName="DictionaryItemID" },
  69. new BoundFieldColumn { FieldName="OrderNo", HeaderText="序号", Align=AlignStyle.Center, Width=0.02 },
  70. new BoundFieldColumn { FieldName="Name", HeaderText="名称", Align=AlignStyle.Center, Width=0.08 },
  71. new BoundFieldColumn { FieldName="Code", HeaderText="代码", Align=AlignStyle.Center, Width=0.1 }
  72. //new BoundFieldColumn { FieldName="Value", HeaderText="值", Align=AlignStyle.Center, Width=0.03, CustomFormatFun="SetRedColumn" },
  73. //new BoundFieldColumn { FieldName="DictionaryName", HeaderText="类型名称", Align=AlignStyle.Center, Width=0.06 }
  74. },
  75. IsPostBack = true,
  76. //IsAutoLoad = false,
  77. IsCheckOnSelect = true,
  78. DataSourceUrl = Url.Content("~/OpenObject/SchoolyearNumNoAddList"),
  79. ID = "dgSchoolyearNumDicNoAddList",
  80. IsPagination = true,
  81. IsShowRowNumbers = true,
  82. IsSingleSelect = false
  83. })
  84. </td>
  85. </tr>
  86. </table>
  87. </div>
  88. }
  89. </div>