StockInDetail.cshtml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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 StockIn_Excel() {
  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/StockInExcel?teachingMaterialPoolID=" + ViewBag.teachingMaterialPoolID + "&schoolyearID=" + ViewBag.schoolyearID)">
  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_StockIn")</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="StockInDetailID" },
  70. new BoundFieldColumn { FieldName="SchoolyearName", HeaderText="学年学期", Align=AlignStyle.Center},
  71. new BoundFieldColumn { FieldName="StockInDocumentNo", HeaderText="入库单据号", Align=AlignStyle.Center },
  72. //new BoundFieldColumn { FieldName="StockInNumber", 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="PublishName", HeaderText="供应商", Align=AlignStyle.Center },
  76. //new BoundFieldColumn { FieldName="PublishName", HeaderText="出版单位", Align=AlignStyle.Center },
  77. // new BoundFieldColumn { FieldName="PublishTime", HeaderText="版本时间", Align=AlignStyle.Center},
  78. //new BoundFieldColumn { FieldName="Author", HeaderText="作者", Align=AlignStyle.Center },
  79. new BoundFieldColumn { FieldName="Quantity", HeaderText="数量", Align=AlignStyle.Center },
  80. new BoundFieldColumn { FieldName="Price", HeaderText="单价", Align=AlignStyle.Center },
  81. new BoundFieldColumn { FieldName="Discount", HeaderText="折扣率", Align=AlignStyle.Center },
  82. new BoundFieldColumn { FieldName="DiscountPrice", HeaderText="折合价", Align=AlignStyle.Center },
  83. new BoundFieldColumn { FieldName="TotalPrice", HeaderText="码洋", Align=AlignStyle.Center },
  84. new BoundFieldColumn { FieldName="TotalDollar", HeaderText="总价", Align=AlignStyle.Center },
  85. new BoundFieldColumn { FieldName="HandlerUserName", HeaderText="经手人", Align=AlignStyle.Center },
  86. new BoundFieldColumn { FieldName="StockInTime", HeaderText="入库日期",Align=AlignStyle.Center,Formatter= Formatter.OnlyYearMonthDay }
  87. },
  88. IsCheckOnSelect = true,
  89. DataSourceUrl = Url.Content("~/InventoryManagement/StockInDetail?teachingMaterialPoolID=" + ViewBag.teachingMaterialPoolID + "&schoolyearID=" + ViewBag.schoolyearID + "&discountPrice=" + ViewBag.discountPrice),
  90. ID = "dgStockInDetailList",
  91. IsPagination = true,
  92. IsShowRowNumbers = true,
  93. IsSingleSelect = false
  94. })
  95. </div>
  96. </div>