@model EMIS.ViewModel.StudentManage.OnlineChecking.OpenObjectView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @using EMIS.Utility; @{ ViewBag.Title = "OpenObjectBatchAdd"; } @section scripts{ }
@using (Ajax.BeginForm(new AjaxOptions { //生成成功后不关闭弹出页面(OnSuccess = "EMISFunction.FormSuccessNoClose") OnSuccess = "formSuccessReloadNoClose", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
查询条件
@Html.PositionCondition("OpenObjectSelect")
  • @Html.RSLabel("EducationName"):
  • @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Education, (x => x.EducationID), DropdownListBindType.PleaseSelect, new ComboGridOptions { ID = "DictionaryEducation", Name = "DictionaryEducation", OnSelect = "reload" }, new Dictionary { { "data-condition", "dgSchoolyearNumDicNoAddList" } })
  • 开始时间:
  • @Html.TextBoxFor(x => x.Starttime, new TextBoxOptions() { TextBoxType = TextBoxType.DateTime })
  • 结束时间:
  • @Html.TextBoxFor(x => x.Endtime, new TextBoxOptions() { TextBoxType = TextBoxType.DateTime })
开放学年列表
@Html.ContextMenuBar("BatchAdd")
@Html.Hidden("schoolyearNumIDList")
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="DictionaryItemID" }, new BoundFieldColumn { FieldName="OrderNo", HeaderText="序号", Align=AlignStyle.Center, Width=0.02 }, new BoundFieldColumn { FieldName="Name", HeaderText="名称", Align=AlignStyle.Center, Width=0.08 }, new BoundFieldColumn { FieldName="Code", HeaderText="代码", Align=AlignStyle.Center, Width=0.1 } //new BoundFieldColumn { FieldName="Value", HeaderText="值", Align=AlignStyle.Center, Width=0.03, CustomFormatFun="SetRedColumn" }, //new BoundFieldColumn { FieldName="DictionaryName", HeaderText="类型名称", Align=AlignStyle.Center, Width=0.06 } }, IsPostBack = true, //IsAutoLoad = false, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/OpenObject/SchoolyearNumNoAddList"), ID = "dgSchoolyearNumDicNoAddList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })
}