StudentDistributeDetail.cshtml 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. }
  6. @section scripts{
  7. <script src="../../Scripts/Business/TeachingMaterial/TeachersOrder.js" type="text/javascript"></script>
  8. <script type="text/javascript">
  9. //发放学生明细信息Excel导出
  10. function StudentDistributeDetail_Export() {
  11. $("#formQuery").submit();
  12. }
  13. </script>
  14. }
  15. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  16. <div class="p_title">
  17. @* <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  18. 发放学生信息列表
  19. </div>*@
  20. <form id="formQuery" method="post" action="@Url.Content("~/StudentDistribute/StudentDistributeDetailExcel?studentDistributeID="+Request.Params["studentDistributeID"])">
  21. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("StuDetail")</div>
  22. </form>
  23. </div>
  24. <div class="search_list">
  25. @Html.DataGrid(new DataGridOptions
  26. {
  27. Columns = new List<DataGridColumn>()
  28. {
  29. new CheckBoxFieldColumn{ HeaderText="", FieldName="StudentDistributeID" },
  30. new BoundFieldColumn { FieldName="StudentNo", HeaderText="学号", Align=AlignStyle.Center, Width=0.12 },
  31. new BoundFieldColumn { FieldName="StudentName", HeaderText="姓名", Align=AlignStyle.Center, Width=0.05 },
  32. //new BoundFieldColumn { FieldName="", HeaderText="年级专业名称", Align=AlignStyle.Center, Width=0.08, OverflowLength=6 },
  33. //new BoundFieldColumn { FieldName="", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.08, OverflowLength=6 },
  34. new BoundFieldColumn { FieldName="TeachingMaterialCode", HeaderText="教材编号", Align=AlignStyle.Center, Width=0.06 },
  35. new BoundFieldColumn { FieldName="TeachingMaterialName", HeaderText="教材名称", Align=AlignStyle.Center, Width=0.08, OverflowLength=6 },
  36. //new BoundFieldColumn { FieldName="StudentDistributeNo", HeaderText="出库编号", Align=AlignStyle.Center, Width=0.08 },
  37. new BoundFieldColumn { FieldName="Price", HeaderText="单价", Align=AlignStyle.Center, Width=0.04 },
  38. new BoundFieldColumn { FieldName="DistributeQty", HeaderText="数量", Align=AlignStyle.Center, Width=0.04 },
  39. new BoundFieldColumn { FieldName="DiscountStr", HeaderText="折扣率", Align=AlignStyle.Center, Width=0.04 },
  40. new BoundFieldColumn { FieldName="DiscountPriceStr", HeaderText="折合价", Align=AlignStyle.Center, Width=0.04 },
  41. new BoundFieldColumn { FieldName="TotalPriceStr", HeaderText="码洋",Align=AlignStyle.Center, Width=0.04 },
  42. new BoundFieldColumn { FieldName="TotalDollarStr", HeaderText="总价", Align=AlignStyle.Center, Width=0.04 },
  43. //new BoundFieldColumn { FieldName="RecipientUser", HeaderText="签收人", Align=AlignStyle.Center, Width=0.04 },
  44. //new BoundFieldColumn { FieldName="ModifyTime", HeaderText="签收日期", Align=AlignStyle.Center,Formatter= Formatter.OnlyYearMonthDay, Width=0.08 },
  45. //new BoundFieldColumn { FieldName="StockOutUserName", HeaderText="出库人", Align=AlignStyle.Center, Width=0.04 },
  46. //new BoundFieldColumn { FieldName="CreateTime", HeaderText="出库日期", Align=AlignStyle.Center,Formatter= Formatter.OnlyYearMonthDay, Width=0.08 },
  47. new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.05, OverflowLength=3 }
  48. },
  49. PageSize =50,
  50. IsCheckOnSelect = true,
  51. DataSourceUrl = Url.Content("~/StudentDistribute/StudentDistributeDetail?studentDistributeID=" + ViewBag.StudentDistributeID),
  52. IsPostBack = true,
  53. ID = "dgStudentDistributeDetail",
  54. IsPagination = true,
  55. IsShowRowNumbers = true,
  56. IsSingleSelect = false
  57. })
  58. </div>
  59. </div>