@using Bowin.Web.Controls.Mvc; @using EMIS.Web.Controls; @{ ViewBag.Title = "ClassmajorList"; //ComboGridOptions cgop = new ComboGridOptions //{ // TextField = "Name", // ValueField = "CampusID", // OnSelect = "QueryCampusComboGridList", // Name = "CampusDropdown", // ID = "CampusDropdown", // GridOptions = new DataGridOptions // { // Columns = new List() // { // // new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center }, // new BoundFieldColumn { FieldName="Name", HeaderText="校区名称", Align=AlignStyle.Center } // }, // IsCheckOnSelect = true, // DataSourceUrl = Url.Content("~/Campus/List"), // IsPagination = true, // IsShowRowNumbers = true, // IsSingleSelect = false, // } //}; //ComboGridOptions cgopCollege = new ComboGridOptions //{ // TextField = "Name", // ValueField = "CollegeID", // OnSelect = "QueryCollegeComboGridList", // Name = "CollegeDropdown", // ID = "CollegeDropdown", // GridOptions = new DataGridOptions // { // Columns = new List() // { // // new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center }, // new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center } // }, // IsCheckOnSelect = true, // DataSourceUrl = Url.Content("~/College/List"), // IsPagination = true, // IsShowRowNumbers = true, // IsSingleSelect = false, // } //}; //ComboGridOptions cgopGrademajor = new ComboGridOptions //{ // TextField = "Name", // ValueField = "GrademajorID", // Name = "GrademajorComboGrid", // ID = "GrademajorComboGrid", // OnSelect = "reload", // GridOptions = new DataGridOptions // { // Columns = new List() // { // // new LinkButtonColumn { FieldName="Code", HeaderText="年级专业代码", Align=AlignStyle.Center }, // new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Align=AlignStyle.Center } // }, // IsCheckOnSelect = true, // DataSourceUrl = Url.Content("~/Grademajor/List"), // IsPagination = true, // IsShowRowNumbers = true, // IsSingleSelect = false // } //}; } @section scripts{ }
@*
班级信息列表
*@
@*
@Html.PositionCondition("ClassmajorSelect")
  • 校区:
  • @Html.ComboGrid(cgop, new Dictionary { { "data-condition", "dgClassmajorList" } })
  • @EMIS.Utility.RSL.Get("College"):
  • @Html.ComboGrid(cgopCollege, new Dictionary { { "data-condition", "dgClassmajorList" } })
  • 年级:
  • @Html.SchoolYearDropDownList(new DropdownListOptions { Name = "DictionarySchoolyear", BindType = DropdownListBindType.SelectAll, OnSelect = "QueryLearningformDropdownList" }, new Dictionary { { "data-condition", "dgClassmajorList" } })
  • 年级专业:
  • @Html.ComboGrid(cgopGrademajor, new Dictionary { { "data-condition", "dgClassmajorList" } })
  • 专业名称:
  • @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Standard, DropdownListBindType.SelectAll, new ComboGridOptions { Name = "DictionaryStandard", OnSelect = "QueryStandardDropdownList" }, new Dictionary { { "data-condition", "dgClassmajorList" } })
  • @Html.RSLabel("EducationID"):
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Education, new DropdownListOptions { Name = "DictionaryEducation", BindType = DropdownListBindType.SelectAll, OnSelect = "QueryEducationDropdownList" }, new Dictionary { { "data-condition", "dgClassmajorList" } })
  • 学习形式:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Learningform, new DropdownListOptions { Name = "DictionaryLearningform", BindType = DropdownListBindType.SelectAll, OnSelect = "QueryLearningformDropdownList" }, new Dictionary { { "data-condition", "dgClassmajorList" } })
班级信息列表
@Html.ContextMenuBar("List")
*@ @* @Html.PositionBatchModify()*@
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="ClassmajorID" }, new BoundFieldColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center, Width=0.08 }, new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.12 }, //new BoundFieldColumn { FieldName="yearID", HeaderText="年级", Align=AlignStyle.Center, Width=0.03 }, //new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.06 }, //new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center, Width=0.03 }, new BoundFieldColumn { FieldName="EducationName", HeaderText=EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center, Width=0.05 }, new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center, Width=0.05 }, //new BoundFieldColumn { FieldName="GraduatingSemesterCode", HeaderText="毕业学期", Align=AlignStyle.Center, Width=0.08 }, //new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.1 }, //new BoundFieldColumn { FieldName="AssistantUserName", HeaderText="辅导员", Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="StudentCount", HeaderText="人数", Align=AlignStyle.Center, Width=0.02 } }, PageSize = 20, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/OptionalCourseSetting/ChooseClassList?GrademajorID=" + ViewBag.GrademajorID), ID = "dgClassmajorList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })