StockOutDetailList.cshtml 5.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. ComboGridOptions Psop = new ComboGridOptions
  6. {
  7. TextField = "UnitName",
  8. ValueField = "PublishID",
  9. ID = "PublishDropdown",
  10. Name = "PublishDropdown",
  11. OnSelect = "QueryPublishDropdownList",
  12. GridOptions = new DataGridOptions
  13. {
  14. Columns = new List<DataGridColumn>()
  15. {
  16. new BoundFieldColumn { FieldName="UnitName", Align=AlignStyle.Center, Width=0.1 }
  17. },
  18. IsCheckOnSelect = true,
  19. DataSourceUrl = Url.Content("~/Publisher/List"),
  20. IsPagination = true,
  21. IsShowRowNumbers = true,
  22. IsSingleSelect = false
  23. }
  24. };
  25. ComboGridOptions Csop = new ComboGridOptions
  26. {
  27. TextField = "CourseName",
  28. ValueField = "CoursematerialID",
  29. ID = "CourseDropdown",
  30. Name = "CourseDropdown",
  31. OnSelect = "QueryCourseDropdownList",
  32. GridOptions = new DataGridOptions
  33. {
  34. Columns = new List<DataGridColumn>()
  35. {
  36. new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.1 },
  37. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.2 }
  38. },
  39. IsCheckOnSelect = true,
  40. DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
  41. IsPagination = true,
  42. IsShowRowNumbers = true,
  43. IsSingleSelect = false
  44. }
  45. };
  46. string Daytime = DateTime.Now.AddMonths(8).ToLongDateString();
  47. var stockOutId = ViewData["stockOutID"] == null ? Guid.Empty.ToString() : ViewData["stockOutID"];
  48. }
  49. @section scripts{
  50. <script src="../../Scripts/Business/TeachingMaterial/StockInDetail.js" type="text/javascript"></script>
  51. }
  52. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  53. <form id="formQuery" method="post" action="@Url.Content("~/StockOut/StockOutDetailExcel?stockOutId=" + stockOutId)">
  54. </form>
  55. <div class="p_title">
  56. @*<div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  57. 个人领书明细
  58. </div>*@
  59. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Detail")</div>
  60. </div>
  61. <div class="search_list">
  62. @Html.DataGrid(new DataGridOptions
  63. {
  64. Columns = new List<DataGridColumn>()
  65. {
  66. new CheckBoxFieldColumn{ HeaderText="", FieldName="StockOutDetailID" },
  67. new BoundFieldColumn { FieldName="SchoolyearName", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.08 },
  68. new BoundFieldColumn { FieldName="StockOutNo", HeaderText="出库单据号", Align=AlignStyle.Center, Width=0.06 },
  69. new BoundFieldColumn { FieldName="TeachingMaterialCode", HeaderText="教材编号", Align=AlignStyle.Center, Width=0.06 },
  70. new BoundFieldColumn { FieldName="TeachingMaterialName", HeaderText="教材名称", Align=AlignStyle.Center, Width=0.1, OverflowLength=10 },
  71. //new BoundFieldColumn { FieldName="PublishName", HeaderText="出版单位", Align=AlignStyle.Center, Width=0.08 },
  72. //new BoundFieldColumn { FieldName="PublishTime", HeaderText="版本时间",Align=AlignStyle.Center, Width=0.08 },
  73. //new BoundFieldColumn { FieldName="Author", HeaderText="作者", Align=AlignStyle.Center, Width=0.04 },
  74. new BoundFieldColumn { FieldName="Price", HeaderText="单价", Align=AlignStyle.Center, Width=0.03 },
  75. new BoundFieldColumn { FieldName="Quantity", HeaderText="数量", Align=AlignStyle.Center, Width=0.04 },
  76. new BoundFieldColumn { FieldName="DiscountStr", HeaderText="折扣率", Align=AlignStyle.Center, Width=0.04 },
  77. new BoundFieldColumn { FieldName="DiscountPriceStr", HeaderText="折合价", Align=AlignStyle.Center, Width=0.04 },
  78. new BoundFieldColumn { FieldName="TotalPriceStr", HeaderText="码洋", Align=AlignStyle.Center, Width=0.04 },
  79. new BoundFieldColumn { FieldName="TotalDollarStr", HeaderText="总价", Align=AlignStyle.Center, Width=0.04 },
  80. new BoundFieldColumn { FieldName="GetBookNo", HeaderText="领书人", Align=AlignStyle.Center, Width=0.05 },
  81. new BoundFieldColumn { FieldName="RecipientUserName", HeaderText="签收人", Align=AlignStyle.Center, Width=0.05 },
  82. //new BoundFieldColumn { FieldName="StockOutUserName", HeaderText="经手人" , Align=AlignStyle.Center, Width=0.05 },
  83. new BoundFieldColumn { FieldName="StockOutTime", HeaderText="出库日期",Align=AlignStyle.Center,Formatter= Formatter.OnlyYearMonthDay, Width=0.08 }
  84. },
  85. PageSize = 30,
  86. IsCheckOnSelect = true,
  87. DataSourceUrl = Url.Content("~/StockOut/StockOutDetailList?stockOutId=" + stockOutId),
  88. ID = "dgStockOutDetailList",
  89. IsPagination = true,
  90. IsShowRowNumbers = true,
  91. IsSingleSelect = false
  92. })
  93. </div>
  94. </div>