@model EMIS.ViewModel.EducationManage.EducationMissionOpenControlView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @using EMIS.Utility; @{ ViewBag.Title = "EducationMissionOpenControlBatchAdd"; //校区 ComboGridOptions cgopCampus = new ComboGridOptions { TextField = "Name", ValueField = "CampusID", ID = "CampusDropdown", Name = "CampusDropdown", OnSelect = "queryCampus", GridOptions = new DataGridOptions { Columns = new List() { //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center, Width=0.12 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Campus/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; //院系所 ComboGridOptions cgopCollege = new ComboGridOptions { TextField = "Name", ValueField = "CollegeID", ID = "CollegeDropdown", Name = "CollegeDropdown", OnSelect = "reload", GridOptions = new DataGridOptions { Columns = new List() { //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/College/ListOnlyCollege"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; } @section scripts{ }
@using (Ajax.BeginForm(new AjaxOptions { //生成成功后不关闭弹出页面(OnSuccess = "EMISFunction.FormSuccessNoClose") OnSuccess = "formSuccessReloadNoClose", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
查询条件
@Html.PositionCondition("EduOpenControlSelect")
  • @EMIS.Utility.RSL.Get("Campus"):
  • @Html.ComboGrid(cgopCampus, new Dictionary { { "data-condition", "dgCollegeNoAddList" } })
  • @EMIS.Utility.RSL.Get("College"):
  • @Html.ComboGrid(cgopCollege, new Dictionary { { "data-condition", "dgCollegeNoAddList" } })
  • 单位类别:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_UnitCategory, new DropdownListOptions() { ID = "DictionaryUnitCategory", Name = "DictionaryUnitCategory", BindType = DropdownListBindType.SelectAll, SelectedValue = (int)EMIS.ViewModel.CF_UnitCategory.College, OnSelect = "reload" }, new Dictionary { { "data-condition", "dgCollegeNoAddList" } })
  • 学年学期:
  • @Html.DropdownListFor((x => x.SchoolyearID), new DropdownListOptions { TextField = "Text", ValueField = "Value", ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), BindType = DropdownListBindType.None, SelectedValue = BaseExtensions.GetCurrentSchoolYearID(), OnSelect = "reload" }, new Dictionary { { "data-condition", "dgCollegeNoAddList" } })
  • 开始日期:
  • @Html.TextBoxFor(x => x.StartDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date })
  • 结束日期:
  • @Html.TextBoxFor(x => x.EndDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date })
@EMIS.Utility.RSL.Get("College")信息列表
@Html.ContextMenuBar("BatchAdd")
@Html.Hidden("collegeIDList")
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="CollegeID" }, new BoundFieldColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="SimpleName", HeaderText="简称", Align=AlignStyle.Center, Width=0.05, OverflowLength=5 }, new BoundFieldColumn { FieldName="UnitCategoryName", HeaderText="单位类别", Align=AlignStyle.Center, OrderFieldName="UnitCategoryID", Width=0.04, CustomFormatFun="SetRedColumn" }, //new BoundFieldColumn { FieldName="Officephone", HeaderText="办公电话", Align=AlignStyle.Center, Width=0.08 }, //new BoundFieldColumn { FieldName="CampusNo", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="CampusName", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center, Width=0.06 }, new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.03, OverflowLength=3 } }, IsPostBack = true, //IsAutoLoad = false, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/EducationMissionOpenControl/CollegeNoAddList"), ID = "dgCollegeNoAddList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })
}