123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- @model EMIS.ViewModel.CultureplanManage.CourseMaterial.ClubCourseView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @using EMIS.Utility;
- @{
- ViewBag.Title = "BatchAdd";
- }
- @section scripts{
- <script src="~/Scripts/Business/CultureplanManage/ClubCourseBatchAdd.js" type="text/javascript"></script>
- <script type="text/javascript">
- var nonSelect = "@DropdownList.SELECT_ALL";
- </script>
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- @using (Ajax.BeginForm(new AjaxOptions
- {
- //生成成功后不关闭弹出页面(OnSuccess = "EMISFunction.FormSuccessNoClose")
- OnSuccess = "formSuccessReloadNoClose",
- OnBegin = "EMISFunction.FormSubmit",
- OnComplete = "EMISFunction.FormComplete"
- }))
- {
- <div class="p_SearchTitle">
- <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
- 查询条件</div>
- </div>
- @Html.PositionCondition("CourseNoClubSelect")
- <div class="search_keyword">
- <div class="search_input">
- <ul>
- <li class="sn" style="padding-left: 5px;">课程级别:</li>
- <li class="sv">
- @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_CourseLevel, DropdownListBindType.SelectAll,
- new ComboGridOptions
- {
- ID = "DictionaryCourseLevel",
- Name = "DictionaryCourseLevel",
- OnSelect = "reload"
- }, new Dictionary<string, string> { { "data-condition", "dgCourseNoClubList" } })
- </li>
- <li class="sn" style="padding-left: 5px;">课程科类:</li>
- <li class="sv">
- @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_CourseScience, DropdownListBindType.SelectAll,
- new ComboGridOptions
- {
- ID = "DictionaryCourseScience",
- Name = "DictionaryCourseScience",
- OnSelect = "reload"
- }, new Dictionary<string, string> { { "data-condition", "dgCourseNoClubList" } })
- </li>
- <li class="sn" style="padding-left: 5px;color:red;">是否启用:</li>
- <li class="sv">
- @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions
- {
- ID = "DictionaryIsEnable",
- Name = "DictionaryIsEnable",
- BindType = DropdownListBindType.SelectAll,
- //SelectedValue = (int)EMIS.ViewModel.CF_GeneralPurpose.IsYes,
- OnSelect = "reload"
- }, new Dictionary<string, string> { { "data-condition", "dgCourseNoClubList" } })
- </li>
- </ul>
- </div>
- </div>
- <div class="p_title">
- <div style="float: left; margin-left: 6px; line-height: 30px; font-size: 12px;">
- 课程信息列表
- </div>
- <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("BatchAdd")</div>
- </div>
- <div class="search_list">
- @Html.Hidden("CourseNoClubList")
- <table cellpadding="0" cellspacing="0" id="specialtyPlantable">
- <tr>
- <td>
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new CheckBoxFieldColumn{ HeaderText="", FieldName="CoursematerialID" },
- new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Handle="edit", Width=0.06 },
- new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.1, OverflowLength=15 },
- new BoundFieldColumn { FieldName="Abbreviation", HeaderText="课程简称", Align=AlignStyle.Center, Width=0.08, OverflowLength=10 },
- new BoundFieldColumn { FieldName="CourseLevelName", HeaderText="课程级别", Align=AlignStyle.Center, OrderFieldName="CourseLevelID", Width=0.04 },
- new BoundFieldColumn { FieldName="CourseScienceName", HeaderText="课程科类", Align=AlignStyle.Center, OrderFieldName="CourseScienceID", Width=0.04 },
- new BoundFieldColumn { FieldName="ClassName", HeaderText="上课类型", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetRedColumn" },
- new BoundFieldColumn { FieldName="IsEnableName", HeaderText="是否启用", Align=AlignStyle.Center, OrderFieldName="IsEnable", Width=0.04, CustomFormatFun="SetRedColumn" }
- },
- CustomerRowStyleFun = "SetRedGrid",
- IsPostBack = true,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/ClubCourse/CourseNoClubList"),
- ID = "dgCourseNoClubList",
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- })
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
|