StuList.cshtml 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "List";
  6. ComboGridOptions cgopProject = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "ExaminationProjectID",
  10. ID = "ExaminationProjectID",
  11. Name = "ExaminationProjectID",
  12. GridOptions = new DataGridOptions
  13. {
  14. Columns = new List<DataGridColumn>()
  15. {
  16. new BoundFieldColumn { FieldName="Name", HeaderText="项目名称", Align=AlignStyle.Center ,Width=0.3}
  17. },
  18. PageSize = 5,
  19. IsCheckOnSelect = true,
  20. DataSourceUrl = Url.Content("~/CertisfierDistribute/ProjectListViewGrid"),
  21. IsPagination = true,
  22. IsShowRowNumbers = true,
  23. IsSingleSelect = false
  24. }
  25. ,
  26. OnSelect = "reload"
  27. };
  28. }
  29. @section scripts{
  30. <script type="text/javascript">
  31. //刷新
  32. function reload() {
  33. $("#dgList").cmsXDataTable("load", $.getDataGridParams("dgList"));
  34. }
  35. //查看
  36. function viewProject(rowindex, rowdata) {
  37. var mnu = $.SystemGeneral.getUrlParam("MNU");
  38. var url = CMS_SystemConfig.VirtualDirectoryPath + '/ChargeProject/ProjectEdit';
  39. //TODO:临时性加参数控制、屏蔽列表进入无保存按钮权限 2016年10月24日16:56:17~
  40. var redirectTo = url + "?ExaminationProjectID=" + rowdata.ExaminationProjectID + "&MNU=" + mnu + "&Type=1";
  41. $.popupTopWindow("项目信息信息", redirectTo, 750, 450, null, null);
  42. }
  43. //修改领取方式
  44. function Update() {
  45. var rows = $("#dgList").cmsXDataTable("getSelections");
  46. if (rows.length == 0) {
  47. $.messager.alert("系统信息", "请选择您要修改的信息。");
  48. return;
  49. }
  50. if (rows.length >1) {
  51. $.messager.alert("系统信息", "请选择单条信息修改。");
  52. return;
  53. }
  54. var item = rows[0];
  55. if (item.DistributeStateName != "待领证") {
  56. $.messager.alert("系统信息", "只能修改待领证状态的信息!");
  57. return;
  58. }
  59. var mnu = $.SystemGeneral.getUrlParam("MNU");
  60. var url = CMS_SystemConfig.VirtualDirectoryPath + '/CertisfierDistribute/StuEdit';
  61. var redirectTo = url + "?ID=" + item.CertisfierDistributeID + "&MNU=" + mnu + "&DistributeTypeID=" + item.DistributeTypeID;
  62. $.popupTopWindow("修改领取方式", redirectTo, 500, 250, null, null);
  63. }
  64. </script>
  65. }
  66. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  67. @Html.Position()
  68. <form id="formQuery" method="post" action="@Url.Content("~/CertisfierDistribute/Excel")">
  69. <div class="search_keyword">
  70. <div class="search_input">
  71. <ul>
  72. <li class="sn" style="padding-left: 5px;">项目名称:</li>
  73. <li class="sv">
  74. @Html.ComboGrid(cgopProject, new Dictionary<string, string> { { "data-condition", "dgList" } })
  75. </li>
  76. <li class="sn" style="padding-left: 5px;">领取状态:</li>
  77. <li class="sv">
  78. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.ER_CertisfierDistributeStatus, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "RecordStatus", Name = "RecordStatus", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
  79. </li>
  80. <li class="sn" style="padding-left: 5px;">领取方式:</li>
  81. <li class="sv">
  82. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.ER_CertisfierDistributeType, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "DistributeTypeID", Name = "DistributeTypeID", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
  83. </li>
  84. </ul>
  85. </div>
  86. </div>
  87. <div class="p_title">
  88. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  89. 证书领取列表
  90. </div>
  91. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  92. </div>
  93. </form>
  94. @Html.PositionBatchModify()
  95. <div class="search_list">
  96. @Html.DataGrid(new DataGridOptions
  97. {
  98. Columns = new List<DataGridColumn>()
  99. {
  100. new CheckBoxFieldColumn{ HeaderText="", FieldName="CertisfierDistributeID"},
  101. new BoundFieldColumn { FieldName="Schoolyear", HeaderText="学年学期", Align=AlignStyle.Center },
  102. new BoundFieldColumn { FieldName="ProjectName", HeaderText="考试项目", Align=AlignStyle.Center },
  103. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center },
  104. new BoundFieldColumn { FieldName="CertificatesTypeName", HeaderText="证件类型", Align=AlignStyle.Center },
  105. new BoundFieldColumn { FieldName="IDNumber", HeaderText="证件号码", Align=AlignStyle.Center },
  106. new BoundFieldColumn { FieldName="DistributeStateName", HeaderText="领取状态", Align=AlignStyle.Center },
  107. new BoundFieldColumn { FieldName="DistributeTypeName", HeaderText="领取方式", Align=AlignStyle.Center},
  108. new BoundFieldColumn { FieldName="ContactPerson", HeaderText="联系人", Align=AlignStyle.Center },
  109. new BoundFieldColumn { FieldName="ContactNo", HeaderText="联系电话", Align=AlignStyle.Center },
  110. new BoundFieldColumn { FieldName="DeliveryNoteNo", HeaderText="邮寄单号", Align=AlignStyle.Center },
  111. new BoundFieldColumn { FieldName="Distributer", HeaderText="领取人", Align=AlignStyle.Center },
  112. new BoundFieldColumn { FieldName="DistributeTime", HeaderText="领取时间", Align=AlignStyle.Center, Formatter= Formatter.CHSOnlyYearMonthDay },
  113. new BoundFieldColumn { FieldName="No", HeaderText="领取单号", Align=AlignStyle.Center },
  114. },
  115. IsCheckOnSelect = true,
  116. DataSourceUrl = Url.Content("~/CertisfierDistribute/StuList"),
  117. ID = "dgList",
  118. IsPagination = true,
  119. IsShowRowNumbers = true,
  120. IsSingleSelect = false,
  121. })
  122. </div>
  123. <form id="formEms" method="post" action="@Url.Content("~/CertisfierDistribute/EmsExcel")">
  124. </form>
  125. </div>
  126. <iframe id="frmPrintDetail" width="0" height="0"></iframe>