123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149 |
- @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="UnitCode", HeaderText="单位编号", Align=AlignStyle.Center, Width=0.1 },
- new BoundFieldColumn { FieldName="UnitName", HeaderText="出版单位", Align=AlignStyle.Center, Width=0.2 }
- },
- 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 LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.1 },
- new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.3 }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- ComboGridOptions MaterialCode = new ComboGridOptions
- {
- TextField = "TeachingMaterialName",
- ValueField = "TeachingMaterialPoolID",
- ID = "TeachingMaterialDropdown",
- Name = "TeachingMaterialDropdown",
- OnSelect = "QueryTeachingMaterialDropdownList",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- //new BoundFieldColumn { FieldName="TeachingMaterialCode",HeaderText="教材编号", Align=AlignStyle.Center, Width=0.1 },
- new BoundFieldColumn { FieldName="TeachingMaterialName",HeaderText="教材名称", Align=AlignStyle.Center, Width=0.3 }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/TeachingMaterialPool/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- }
- @section scripts{
- <script src="../../Scripts/Business/TeachingMaterial/StockOutStatistics.js" type="text/javascript"></script>
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- @Html.Position()
- <div class="p_SearchTitle">
- <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
- 查询条件
- </div>
- </div>
- <form id="formQuery" method="post" action="@Url.Content("~/StockOutStatistics/Excel")">
- @Html.PositionCondition()
- <div class="search_keyword">
- <div class="search_input">
- <ul>
- <li class="sn" style="padding-left: 5px;">学年学期:</li>
- <li class="sv">
- @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), ID = "SchoolYearDropdown", Name = "SchoolYearDropdown", OnSelect = "QuerySchoolYearDropdownList",SelectedValue =@ViewBag.SchoolYearID }, new Dictionary<string, string> { { "data-condition", "dgStockOutStatisticsList" } })
- </li>
- <li class="sn" style="padding-left: 5px;">教材名称:</li>
- <li class="sv">
- @Html.ComboGrid(MaterialCode, new Dictionary<string, string> { { "data-condition", "dgStockOutStatisticsList" } })
- </li>
- <li class="sn" style="padding-left: 5px;">出版单位:</li>
- <li class="sv">
- @Html.ComboGrid(Psop, new Dictionary<string, string> { { "data-condition", "dgStockOutStatisticsList" } })
- </li>
- <li class="sn" style="padding-left: 5px;">出库类型:</li>
- <li class="sv">
- @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_StockOutType, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "StockOutTypeDropdown", ID = "StockOutTypeDropdown", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgStockOutStatisticsList" } })
- </li>
- </ul>
- </div>
- </div>
- </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("List")</div>
- </div>
- <div class="search_list">
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new CheckBoxFieldColumn{ HeaderText="", FieldName="StockInDetailID", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="SchoolyearName", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.08},
- //new BoundFieldColumn { FieldName="StockOutNo", HeaderText="出库单据号", Align=AlignStyle.Center, Width=0.08 },
- //new BoundFieldColumn { FieldName="StockOutNumber", HeaderText="出库编号", Align=AlignStyle.Center, Width=0.08 },
- new BoundFieldColumn { FieldName="StockOutTypeName", HeaderText="出库类型", Align=AlignStyle.Center, Width=0.05 },
- new BoundFieldColumn { FieldName="TeachingMaterialCode", HeaderText="教材编号", Align=AlignStyle.Center,Width=0.05 },
- new BoundFieldColumn { FieldName="TeachingMaterialName", HeaderText="教材名称", Align=AlignStyle.Center, Width=0.12 },
- new BoundFieldColumn { FieldName="ISBN", HeaderText="ISBN", Align=AlignStyle.Center,Width=0.1 },
- //new BoundFieldColumn { FieldName="PublishName", HeaderText="出版单位", Align=AlignStyle.Center,Width=0.1 },
- //new BoundFieldColumn { FieldName="PublishTime", HeaderText="版本时间",Align=AlignStyle.Center,Width=0.1 },
- new BoundFieldColumn { FieldName="Author", HeaderText="作者", Align=AlignStyle.Center,Width=0.05, OverflowLength=4 },
- new BoundFieldColumn { FieldName="Price", HeaderText="单价(¥)", Align=AlignStyle.Center, Width=0.04 },
- new BoundFieldColumn { FieldName="Quantity", HeaderText="总数量", Align=AlignStyle.Center, Width=0.03 },
- new BoundFieldColumn { FieldName="DiscountStr", HeaderText="折扣率", Align=AlignStyle.Center, Width=0.04 },
- new BoundFieldColumn { FieldName="DiscountPriceStr", HeaderText="折合价(¥)", Align=AlignStyle.Center, Width=0.06 },
- new BoundFieldColumn { FieldName="TotalPriceStr", HeaderText="码洋(¥)", Align=AlignStyle.Center , Width=0.04},
- new BoundFieldColumn { FieldName="TotalDollarStr", HeaderText="实洋(¥)", Align=AlignStyle.Center, Width=0.04 },
- //new BoundFieldColumn { FieldName="HandlerUserName", HeaderText="经手人", Align=AlignStyle.Center, Width=0.04 },
- //new BoundFieldColumn { FieldName="StockInUserName", HeaderText="出库人" ,Align=AlignStyle.Center, Width=0.04},
- //new BoundFieldColumn { FieldName="StockInTime", HeaderText="出库日期",Align=AlignStyle.Center, Width=0.04, Formatter= Formatter.OnlyYearMonthDay }
- },
- PageSize = 50,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/StockOutStatistics/List"),
- ID = "dgStockOutStatisticsList",
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- })
- </div>
- </div>
|