@using Bowin.Web.Controls.Mvc; @using EMIS.Web.Controls; @{ ViewBag.Title = "List"; ComboGridOptions Psop = new ComboGridOptions { TextField = "UnitName", ValueField = "PublishID", ID = "PublishDropdown", Name = "PublishDropdown", OnSelect = "QueryPublishDropdownList", GridOptions = new DataGridOptions { Columns = new List() { // new BoundFieldColumn { FieldName="UnitCode", HeaderText="单位编号", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="UnitName", HeaderText="出版单位", 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() { // 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 } }; } @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", "dgStockInList" } })
  • 供应商:
  • @Html.ComboGrid(Psop, new Dictionary { { "data-condition", "dgStockInList" } })
  • 入库日期:
  • @Html.TextBox(new TextBoxOptions { TextBoxType = TextBoxType.Date, Value = DateTime.Now.AddMonths(-8).ToString(), ID = "StartStockInTime", Name = "StartStockInTime", OnChange = "QueryStartStockInTimeList" } , new Dictionary { { "data-condition", "dgStockInList" } })
  • 截止日期:
  • @Html.TextBox(new TextBoxOptions { TextBoxType = TextBoxType.Date, Value = DateTime.Now.ToString(), ID = "EndStockInTime", Name = "EndStockInTime", OnChange = "QueryEndStockInTimeList" }, new Dictionary { { "data-condition", "dgStockInList" } })
  • 是否入库:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "LateDropdown", ID = "LateDropdown", OnSelect = "QueryLateDropdownList" }, new Dictionary { { "data-condition", "dgStockInList" } })
教材入库列表
@Html.ContextMenuBar("List")
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="StorageID" }, new LinkButtonColumn { FieldName="StockInDocumentNo", HeaderText="入库单据号", Align=AlignStyle.Center, Handle="StockInDetailView", Width=0.05 }, new BoundFieldColumn { FieldName="SchoolyearName", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.05 }, new BoundFieldColumn { FieldName="StockInDJTime", HeaderText="入库单据日期",Align=AlignStyle.Center,Formatter= Formatter.OnlyYearMonthDay, Width=0.04 }, new BoundFieldColumn { FieldName="SupplierName", HeaderText="供应商", Align=AlignStyle.Center, Width=0.08 }, new BoundFieldColumn { FieldName="HandlerUserName", HeaderText="经手人", Align=AlignStyle.Center, Width=0.02 }, new BoundFieldColumn { FieldName="StockInSumMoneyStr", HeaderText="入库总金额(¥)", Align=AlignStyle.Center, Width=0.03 }, new BoundFieldColumn { FieldName="RecordStatusName", HeaderText="是否入库", Align=AlignStyle.Center, Width=0.02 }, new BoundFieldColumn { FieldName="Desc", HeaderText="备注", Align=AlignStyle.Center, Width=0.03, OverflowLength=6 } }, PageSize = 30, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/StockIn/List"), ID = "dgStockInList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })