123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- @using Bowin.Web.Controls.Mvc;
- @using EMIS.Web.Controls;
- @{
- string Daytime = DateTime.Now.AddMonths(8).ToLongDateString();
- ViewBag.Title = "List";
- 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 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
- }
- };
- }
- @section scripts{
- <script src="../../Scripts/Business/TeachingMaterial/StockInDetail.js" type="text/javascript"></script>
- <script type="text/javascript">
- function StockOut_Export() {
- $("#formQuery").submit();
- }
- </script>
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- <form id="formQuery" method="post" action="@Url.Content("~/InventoryManagement/StockOutExcel?teachingMaterialPoolID=" + ViewBag.teachingMaterialPoolID + "&schoolyearID=" + ViewBag.schoolyearID + "&discountPrice=" + ViewBag.discountPrice)">
- <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_StockOut")</div>
- </div>
- </form>
- <div class="search_list">
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
-
- new CheckBoxFieldColumn{ HeaderText="", FieldName="StockOutDetailID" },
- new BoundFieldColumn { FieldName="SchoolyearName", HeaderText="学年学期", Align=AlignStyle.Center},
- new BoundFieldColumn { FieldName="StockOutNo", HeaderText="出库单据号", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="GetBookNo", HeaderText="领书人", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="TeachingMaterialCode", HeaderText="教材编号", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="TeachingMaterialName", HeaderText="教材名称", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="StockOutTypeNameStr", HeaderText="出库类型", Align=AlignStyle.Center },
-
- //new BoundFieldColumn { FieldName="PublishName", HeaderText="供应商", Align=AlignStyle.Center },
- //new BoundFieldColumn { FieldName="PublishName", HeaderText="出版单位", Align=AlignStyle.Center },
- // new BoundFieldColumn { FieldName="PublishTime", HeaderText="版本时间", Align=AlignStyle.Center},
- //new BoundFieldColumn { FieldName="Author", HeaderText="作者", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="Quantity", HeaderText="数量", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="Price", HeaderText="单价", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="DiscountStr", HeaderText="折扣率", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="DiscountPriceStr", HeaderText="折合价", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="TotalPriceStr", HeaderText="码洋", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="TotalDollarStr", HeaderText="总价", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="RecipientUserName", HeaderText="签收人", Align=AlignStyle.Center },
- // new BoundFieldColumn { FieldName="RecipientUserName", HeaderText="入库人" , Align=AlignStyle.Center},
- new BoundFieldColumn { FieldName="StockOutTime", HeaderText="出库日期",Align=AlignStyle.Center,Formatter= Formatter.OnlyYearMonthDay },
- new BoundFieldColumn { FieldName="Desc", HeaderText="出库说明" , Align=AlignStyle.Center}
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/InventoryManagement/StockOutDetail?teachingMaterialPoolID=" + ViewBag.teachingMaterialPoolID + "&schoolyearID=" + ViewBag.schoolyearID + "&discountPrice=" + ViewBag.discountPrice),
- ID = "dgStockOutDetailList",
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- })
- </div>
- </div>
|