@using Bowin.Web.Controls.Mvc; @using EMIS.Entities; @using EMIS.Web.Controls; @using EMIS.Utility; @{ ViewBag.Title = "List"; } @section scripts{ }
@Html.Position() @using (Ajax.BeginForm(new AjaxOptions { Url = @Url.Content("~/InSchoolSetting/Edit?MNU=" + Request["MNU"]), OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
查询条件
@Html.PositionCondition()
  • 在校状态:
  • @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_InschoolStatus, DropdownListBindType.SelectAll, new ComboGridOptions { ID = "DictionaryInSchoolStatus", Name = "DictionaryInSchoolStatus", OnSelect = "reload" }, new Dictionary { { "data-condition", "dgInSchoolSettingList" } })
  • 是否选中:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions { ID = "DictionaryIsSelected", Name = "DictionaryIsSelected", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary { { "data-condition", "dgInSchoolSettingList" } })
  • 可否显示:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions { ID = "DictionaryIsDisplay", Name = "DictionaryIsDisplay", BindType = DropdownListBindType.SelectAll, SelectedValue = (int)EMIS.ViewModel.CF_GeneralPurpose.IsYes, OnSelect = "reload" }, new Dictionary { { "data-condition", "dgInSchoolSettingList" } })
在校设定列表
@Html.ContextMenuBar("List")
@*@Html.PositionBatchModify()*@
@Html.DataGrid(new DataGridOptions { Columns = new List() { //new CheckBoxFieldColumn{ HeaderText="", FieldName="InSchoolSettingID" }, new BoundFieldColumn { FieldName="InSchoolStatusID", HeaderText="类型代码", Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="InSchoolStatusName", HeaderText="在校状态", Align=AlignStyle.Center, Width=0.05, CustomFormatFun="SetRedColumn" }, new CheckButtonColumn { FieldName="IsSelected", HeaderText="是否选中", Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="IsDisplayName", HeaderText="可否显示", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetRedColumn" }, new BoundFieldColumn { FieldName="CreateUserName", HeaderText="创建人", Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="ModifyUserName", HeaderText="修改人", Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="ModifyTime", HeaderText="修改时间", Align=AlignStyle.Center, Width=0.06, Formatter= Formatter.LongDate } }, IsCheckOnSelect = true, IsPostBack = true, DataSourceUrl = Url.Content("~/InSchoolSetting/List"), ID = "dgInSchoolSettingList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })
}