@using Bowin.Web.Controls.Mvc; @using EMIS.Web.Controls; @{ ViewBag.Title = "List"; ComboGridOptions optCreateCollege = new ComboGridOptions { TextField = "Name", ValueField = "CollegeID", Name = "cgbCreateCollege", ID = "cgbCreateCollege", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/College/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; } @section scripts{ }
@Html.Position()
查询条件
@Html.PositionCondition()
  • 文献类型:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.DQP_SOCDocType, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "ddlSOCDocType", ID = "ddlSOCDocType", OnSelect = "reload" }, new Dictionary { { "data-condition", "dgSOCDocumentList" } })
  • 发布部门:
  • @Html.ComboGrid(optCreateCollege, new Dictionary { { "data-condition", "dgSOCDocumentList" } })
参考文献
@Html.DataGrid(new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="SOCDocTypeDesc", HeaderText="文献类型", Align=AlignStyle.Center, Width=60 }, new LinkButtonColumn { FieldName="Title", HeaderText="标题", Align=AlignStyle.Center, Width=250, Handle="SOCDoc_View" }, new BoundFieldColumn { FieldName="CreateCollegeName", HeaderText="部门", Align=AlignStyle.Center, Width=100 }, new BoundFieldColumn { FieldName="CreateUserName", HeaderText="发布人", Align=AlignStyle.Center, Width=50 }, new BoundFieldColumn { FieldName="CreateTime", HeaderText="发布时间", Align=AlignStyle.Center, Width=60, Formatter=Formatter.OnlyYearMonthDay } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/SOCDoc/UserList"), ID = "dgSOCDocumentList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })