StockInDetailList.cshtml 5.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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. var stockId = ViewData["stockInID"] == null ? Guid.Empty.ToString() : ViewData["stockInID"];
  7. ComboGridOptions Psop = new ComboGridOptions
  8. {
  9. TextField = "UnitName",
  10. ValueField = "PublishID",
  11. ID = "PublishDropdown",
  12. Name = "PublishDropdown",
  13. OnSelect = "QueryPublishDropdownList",
  14. GridOptions = new DataGridOptions
  15. {
  16. Columns = new List<DataGridColumn>()
  17. {
  18. new BoundFieldColumn { FieldName="UnitName", Align=AlignStyle.Center }
  19. },
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/Publisher/List"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false
  25. }
  26. };
  27. ComboGridOptions Csop = new ComboGridOptions
  28. {
  29. TextField = "CourseName",
  30. ValueField = "CoursematerialID",
  31. ID = "CourseDropdown",
  32. Name = "CourseDropdown",
  33. OnSelect = "QueryCourseDropdownList",
  34. GridOptions = new DataGridOptions
  35. {
  36. Columns = new List<DataGridColumn>()
  37. {
  38. new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center },
  39. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center }
  40. },
  41. IsCheckOnSelect = true,
  42. DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
  43. IsPagination = true,
  44. IsShowRowNumbers = true,
  45. IsSingleSelect = false
  46. }
  47. };
  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. @* @Html.Position()*@
  54. <form id="formQuery" method="post" action="@Url.Content("~/StockIn/StockInDetailExcel?stockId=" + stockId)">
  55. </form>
  56. <div class="p_title">
  57. @* <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  58. 教材入库明细列表
  59. </div>*@
  60. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Detail")</div>
  61. </div>
  62. <div class="search_list">
  63. @Html.DataGrid(new DataGridOptions
  64. {
  65. Columns = new List<DataGridColumn>()
  66. {
  67. new CheckBoxFieldColumn{ HeaderText="", FieldName="StockInDetailID" },
  68. new BoundFieldColumn { FieldName="SchoolyearName", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.1 },
  69. new BoundFieldColumn { FieldName="StockInDocumentNo", HeaderText="入库单据号", Align=AlignStyle.Center, Width=0.1 },
  70. //new BoundFieldColumn { FieldName="StockInNumber", HeaderText="入库编号", Align=AlignStyle.Center, Width=0.06 },
  71. new BoundFieldColumn { FieldName="TeachingMaterialCode", HeaderText="教材编号", Align=AlignStyle.Center, Width=0.06 },
  72. new BoundFieldColumn { FieldName="TeachingMaterialName", HeaderText="教材名称", Align=AlignStyle.Center, Width=0.12 },
  73. //new BoundFieldColumn { FieldName="PublishName", HeaderText="供应商", Align=AlignStyle.Center, Width=0.08},
  74. //new BoundFieldColumn { FieldName="PublishTime", HeaderText="版本时间",Align=AlignStyle.Center, Width=0.06 },
  75. //new BoundFieldColumn { FieldName="Author", HeaderText="作者", Align=AlignStyle.Center, Width=0.04 },
  76. new BoundFieldColumn { FieldName="Price", HeaderText="单价", Align=AlignStyle.Center, Width=0.03 },
  77. new BoundFieldColumn { FieldName="Quantity", HeaderText="数量", Align=AlignStyle.Center, Width=0.03 },
  78. new BoundFieldColumn { FieldName="Discount", HeaderText="折扣率", Align=AlignStyle.Center, Width=0.04 },
  79. new BoundFieldColumn { FieldName="DiscountPrice", HeaderText="折合价", Align=AlignStyle.Center, Width=0.04 },
  80. new BoundFieldColumn { FieldName="TotalPrice", HeaderText="码洋", Align=AlignStyle.Center, Width=0.03 },
  81. new BoundFieldColumn { FieldName="TotalDollar", HeaderText="总价", Align=AlignStyle.Center, Width=0.03 },
  82. //new BoundFieldColumn { FieldName="HandlerUserName", HeaderText="经手人", Align=AlignStyle.Center, Width=0.05 },
  83. //new BoundFieldColumn { FieldName="StockInUserName", HeaderText="入库人", Align=AlignStyle.Center, Width=0.05 },
  84. new BoundFieldColumn { FieldName="StockInTime", HeaderText="入库日期",Align=AlignStyle.Center,Formatter= Formatter.OnlyYearMonthDay, Width=0.08 }
  85. },
  86. PageSize = 50,
  87. IsCheckOnSelect = true,
  88. DataSourceUrl = Url.Content("~/StockIn/StockInDetailList?stockId=" + stockId),
  89. ID = "dgStockInDetailList",
  90. IsPagination = true,
  91. IsShowRowNumbers = true,
  92. IsSingleSelect = false
  93. })
  94. </div>
  95. </div>