123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 |
- @using Bowin.Web.Controls.Mvc;
- @using EMIS.Web.Controls;
- @{
- ViewBag.Title = "List";
- 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", HeaderText="课程名称", 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",HeaderText="书库名称", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Library/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
-
-
- }
- @section scripts{
- <script src="../../Scripts/Business/TeachingMaterial/TeacherRetail.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("~/TeacherRetail/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", "dgTeacherRetailList" } })
- </li>
- <li class="sn" style="padding-left: 5px;">零售日期:</li>
- <li class="sv">
- <li class="sv">
- @Html.TextBox(new TextBoxOptions
- {
- TextBoxType = TextBoxType.Date,
- Value = DateTime.Now.AddMonths(-8).ToString()
- ,
- ID = "StartStockInTime",
- Name = "StartStockInTime",
- OnChange = "QueryStartStockInTimeList"
- }
- , new Dictionary<string, string> { { "data-condition", "dgTeacherRetailList" } })
- 至
- @Html.TextBox(new TextBoxOptions
- {
- TextBoxType = TextBoxType.Date,
- Value = DateTime.Now.ToString(),
- ID = "EndStockInTime",
- Name = "EndStockInTime",
- OnChange = "QueryEndStockInTimeList"
- }, new Dictionary<string, string> { { "data-condition", "dgTeacherRetailList" } })
- </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="StockOutID" },
- new LinkButtonColumn { FieldName="StockOutNo", HeaderText="出库单据号", Align=AlignStyle.Center, Handle="TeacherRetailDetailView", Width=0.06 },
- new BoundFieldColumn { FieldName="SchoolyearName", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.06 },
- new BoundFieldColumn { FieldName="StockOutTypeName", HeaderText="出库类型", Align=AlignStyle.Center, Width=0.04 },
- new BoundFieldColumn { FieldName="StockOutTime", HeaderText="零售日期",Align=AlignStyle.Center,Formatter= Formatter.OnlyYearMonthDay, Width=0.06 },
- new BoundFieldColumn { FieldName="GetBookNo", HeaderText="零售对象", Align=AlignStyle.Center, Width=0.04 },
- //new BoundFieldColumn { FieldName="RecipientUserName", HeaderText="签收人", Align=AlignStyle.Center, Width=0.04 },
- new BoundFieldColumn { FieldName="StockOutSumMoney", HeaderText="单据总金额(¥)", Align=AlignStyle.Center, Width=0.05 },
- new BoundFieldColumn { FieldName="StockOutUserName", HeaderText="经手人", Align=AlignStyle.Center, Width=0.04 },
- new BoundFieldColumn { FieldName="RecordStatusName", HeaderText="是否出库",Align=AlignStyle.Center, Width=0.04 },
- new BoundFieldColumn { FieldName="LibraryName", HeaderText="书库名称", Align=AlignStyle.Center, IsHidden=true, Width=0.04 },
- new BoundFieldColumn { FieldName="Desc", HeaderText="领书说明", Align=AlignStyle.Center, Width=0.04, OverflowLength=5 }
- },
- PageSize = 30,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/TeacherRetail/List"),
- ID = "dgTeacherRetailList",
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- })
- </div>
- </div>
|