@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() { 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() { new BoundFieldColumn { FieldName="LibraryName",HeaderText="书库名称", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Library/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; } @section scripts{ }
@Html.Position()
查询条件
@Html.PositionCondition()
  • 学年学期:
  • @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), ID = "SchoolYearDropdown", Name = "SchoolYearDropdown", OnSelect = "QuerySchoolYearDropdownList",SelectedValue =@ViewBag.SchoolYearID }, new Dictionary { { "data-condition", "dgTeacherRetailList" } })
  • 零售日期:
  • @Html.TextBox(new TextBoxOptions { TextBoxType = TextBoxType.Date, Value = DateTime.Now.AddMonths(-8).ToString() , ID = "StartStockInTime", Name = "StartStockInTime", OnChange = "QueryStartStockInTimeList" } , new Dictionary { { "data-condition", "dgTeacherRetailList" } }) 至 @Html.TextBox(new TextBoxOptions { TextBoxType = TextBoxType.Date, Value = DateTime.Now.ToString(), ID = "EndStockInTime", Name = "EndStockInTime", OnChange = "QueryEndStockInTimeList" }, new Dictionary { { "data-condition", "dgTeacherRetailList" } })
教材零售列表
@Html.ContextMenuBar("List")
@Html.DataGrid(new DataGridOptions { Columns = new List() { 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 })