123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- @using Bowin.Web.Controls.Mvc;
- @using EMIS.Web.Controls;
- @{
- ViewBag.Title = "TeacherEdit";
- }
- @section scripts{
- <script type="text/javascript">
- function Teacher_Confirm() {
- $.messager.alert('系统信息', '保存成功。');
- top.$("#@(Request["WindowID"])").dialog("close");
- }
- </script>
- <script src="~/Scripts/Business/SelectCourseManage/OptionalCourseSettingTeacherEdit.js"
- type="text/javascript"></script>
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- <div class="p_title">
- <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
- 选择教师</div>
- <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("TeacherEdit")</div>
- </div>
- <div class="search_list popupWindowContent">
- <div style="float: left; position: absolute; width: 220px;">
- <div class="p_SearchTitle">
- <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
- 教师列表</div>
- </div>
- <div class="search_list">
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="UserID", IsHidden=true },
- new BoundFieldColumn { FieldName="LoginID", HeaderText="教职工号", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="TeachingMethodDesc", Align=AlignStyle.Center },
- new LinkButtonColumn { Text="删除", Handle="delTeacher" }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/OptionalCourseSetting/TeacherList?optionalCourseID=" + Request["OptionalCourseID"]),
- ID = "dgTeacherList",
- IsAutoLoad = true,
- IsPagination = false,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- })
- </div>
- </div>
- <div style="float: left; position: absolute; margin-left: 222px; width: 2px; background-color: #e8e8e8;
- height: 100%;">
- </div>
- <div style="float: right; position: absolute; margin-left: 225px;">
- <div class="p_SearchTitle">
- <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
- 添加教师</div>
- </div>
- <form id="formQuery" method="post">
- <div class="search_keyword">
- <div class="search_input">
- <ul>
- <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("Campus"):</li>
- <li class="sv">
- @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/Campus/CampusDropdownListBanid"), ID = "CampusDropdown", Name = "CampusDropdown", OnSelect = "QueryCampusDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgStaffList" } })
- </li>
- <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
- <li class="sv">
- @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/College/CollegeDropdownListBanid"), ID = "CollegeDropdown", Name = "CollegeDropdown" }, new Dictionary<string, string> { { "data-condition", "dgStaffList" } })
- </li>
- </ul>
- <ul>
- <li class="sn" style="padding-left: 5px;">教职工号:</li>
- <li class="sv">
- @Html.TextBox(new TextBoxOptions() { ID = "LoginID", Name = "LoginID" }, new Dictionary<string, string> { { "data-condition", "dgStaffList" } })
- </li>
- <li class="sn" style="padding-left: 5px;">教师姓名:</li>
- <li class="sv">
- @Html.TextBox(new TextBoxOptions() { ID = "Name", Name = "Name" }, new Dictionary<string, string> { { "data-condition", "dgStaffList" } })
- </li>
- <li class="sn" style="padding-left: 5px;"><a href="javascript:void(0)" class="easyui-linkbutton"
- data-options="iconCls:'icon-search'" onclick="reload();">查询</a> </li>
- </ul>
- </div>
- </div>
- </form>
- <div class="search_list">
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID" },
- new BoundFieldColumn { FieldName="StaffCode", HeaderText="教职工号", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="TitleName", HeaderText="职称", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center },
- new DictionaryDropdownListColumn { FieldName="TeachingMethod", HeaderText="任课方式", Align=AlignStyle.Center,
- DictionaryType = EMIS.ViewModel.DictionaryItem.EM_TeachingMethod }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Staff/ListForTeacherEdit"),
- ID = "dgStaffList",
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- })
- </div>
- </div>
- </div>
- </div>
|