@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 LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center }, 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", "dgStockOutList" } })
  • 领书日期:
  • @Html.TextBox(new TextBoxOptions { TextBoxType = TextBoxType.Date, Value = DateTime.Now.AddMonths(-8).ToString(), ID = "StartStockInTime", Name = "StartStockInTime", OnChange = "QueryStartStockInTimeList" } , new Dictionary { { "data-condition", "dgStockOutList" } })
  • 截止日期:
  • @Html.TextBox(new TextBoxOptions { TextBoxType = TextBoxType.Date, Value = DateTime.Now.ToString(), ID = "EndStockInTime", Name = "EndStockInTime", OnChange = "QueryEndStockInTimeList" }, new Dictionary { { "data-condition", "dgStockOutList" } })
个人领书列表
@Html.ContextMenuBar("List")
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="StockOutID" }, new LinkButtonColumn { FieldName="StockOutNo", HeaderText="出库单据号", Align=AlignStyle.Center, Handle="StockOutDetailView", 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="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("~/StockOut/List"), ID = "dgStockOutList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })