StockOutDetail.cshtml 5.5 KB

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