123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168 |
- @using Bowin.Web.Controls.Mvc;
- @using EMIS.Web.Controls;
- @{
- ViewBag.Title = "List";
- var teachingMaterialPoolID = ViewData["teachingMaterialPoolID"] == null ? Guid.Empty.ToString() : ViewData["teachingMaterialPoolID"];
- ComboGridOptions Csop = new ComboGridOptions
- {
- TextField = "CourseName",
- ValueField = "CoursematerialID",
- ID = "CourseDropdown",
- Name = "CourseDropdown",
- OnSelect = "QueryCourseDropdownList",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="CourseName", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- ComboGridOptions Library = new ComboGridOptions
- {
- TextField = "LibraryName",
- ValueField = "LibraryID",
- ID = "LibraryDropdown",
- Name = "LibraryDropdown",
- OnSelect = "QueryLibraryDropdownList",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="LibraryName", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Library/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- ComboGridOptions Psop = new ComboGridOptions
- {
- TextField = "UnitName",
- ValueField = "PublishID",
- ID = "PublishDropdown",
- Name = "PublishDropdown",
- OnSelect = "QueryPublishDropdownList",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="UnitName", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Publisher/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- ComboGridOptions MaterialCode = new ComboGridOptions
- {
- TextField = "TeachingMaterialCode",
- ValueField = "TeachingMaterialPoolID",
- ID = "TeachingMaterialDropdown",
- Name = "TeachingMaterialDropdown",
- OnSelect = "QueryTeachingMaterialDropdownList",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="TeachingMaterialCode", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/TeachingMaterialPool/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- ComboGridOptions MaterialName = new ComboGridOptions
- {
- TextField = "TeachingMaterialName",
- ValueField = "TeachingMaterialPoolID",
- ID = "TeachingMaterialDropdown",
- Name = "TeachingMaterialDropdown",
- OnSelect = "QueryTeachingMaterialDropdownList",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="TeachingMaterialName", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/TeachingMaterialPool/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
-
- }
- @section scripts{
- <script src="../../Scripts/Business/TeachingMaterial/TeachingMateriaInventory.js"
- type="text/javascript"></script>
- <script type="text/javascript">
- function Inventory_Excel() {
- $("#formQuery").submit();
- }
- </script>
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- @Html.Position()
- <form id="formQuery" method="post" action="@Url.Content("~/InventoryManagement/InventoryExcel?teachingMaterialPoolID=" + teachingMaterialPoolID)">
- </form>
- <div class="p_title">
- <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
- 库存明细列表
- </div>
- <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Detail_Inventory")</div>
- </div>
- <div class="search_list">
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new CheckBoxFieldColumn{ HeaderText="", FieldName="TeachingMaterialPoolID" },
- new BoundFieldColumn { FieldName="LibraryName", HeaderText="书库名称", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="TeachingMaterialCode", HeaderText="教材编号", Align=AlignStyle.Center},
- new BoundFieldColumn { FieldName="TeachingMaterialName", HeaderText="教材名称", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="CoursematerialCode", HeaderText="课程代码", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="CoursematerialName", HeaderText="课程名称", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="ISBN", HeaderText="ISBN", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="PublishTime", HeaderText="版本时间", Align=AlignStyle.Center},
- new BoundFieldColumn { FieldName="PublishName", HeaderText="出版单位", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="Author", HeaderText="作者", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="IsLateName", HeaderText="是否过期", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="Price", HeaderText="单价", Align=AlignStyle.Center},
- new BoundFieldColumn { FieldName="MinInventory", HeaderText="最小库存量", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="PresentInventory", HeaderText="当前库存量", Align=AlignStyle.Center},
- new BoundFieldColumn { FieldName="Total", HeaderText="码洋", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="ModifyTime", HeaderText="最近响应时间",Align=AlignStyle.Center,Formatter= Formatter.OnlyYearMonthDay },
- new BoundFieldColumn { FieldName="Desc", HeaderText="备注", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/InventoryManagement/InventoryDetail?teachingMaterialPoolID=" + teachingMaterialPoolID),
- ID = "dgTeachingMateriaInventoryList",
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- })
- </div>
- </div>
|