1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- @using Bowin.Web.Controls.Mvc;
- @using EMIS.Web.Controls;
- @{
- ViewBag.Title = "List";
- //校区
- ComboGridOptions cgopCampus = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "CampusID",
- Name = "CampusDropdown",
- ID = "CampusDropdown",
- OnSelect = "queryCampus",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- //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,
- }
- };
- }
- @section scripts{
- <script src="~/Scripts/Business/UniversityManage/AdministrativeOrgan/College.js" type="text/javascript"></script>
- <script type="text/javascript">
- var nonSelect = "@DropdownList.SELECT_ALL";
- var EMIS_CollegeLabel = '@EMIS.Utility.RSL.Get("College")';
- </script>
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- @Html.Position()
- <div class="p_SearchTitle">
- <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">查询条件</div>
- </div>
- <form id="formQuery" method="post" action="@Url.Content("~/College/Excel")">
- @Html.PositionCondition()
- <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.ComboGrid(cgopCampus, new Dictionary<string, string> { { "data-condition", "dgCollegeList" } })
- </li>
- <li class="sn" style="padding-left: 5px;color:red;">单位类别:</li>
- <li class="sv">
- @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_UnitCategory, DropdownListBindType.SelectAll,
- new ComboGridOptions
- {
- ID = "DictionaryUnitCategory",
- Name = "DictionaryUnitCategory",
- OnSelect = "reload"
- }, new Dictionary<string, string> { { "data-condition", "dgCollegeList" } })
- </li>
- </ul>
- </div>
- </div>
- </form>
- <div class="p_title">
- <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">@EMIS.Utility.RSL.Get("College")信息列表</div>
- <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
- </div>
- @Html.PositionBatchModify()
- <div class="search_list">
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new CheckBoxFieldColumn{ HeaderText="", FieldName="CollegeID" },
- new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Handle="edit", Width=0.06 },
- new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.12 },
- new BoundFieldColumn { FieldName="SimpleName", HeaderText="简称", Align=AlignStyle.Center, Width=0.05, OverflowLength=5 },
- new BoundFieldColumn { FieldName="PoliticalManagerName", HeaderText="党务负责人", Align=AlignStyle.Center, Width=0.05 },
- new BoundFieldColumn { FieldName="AdministrativeManagerName", HeaderText="行政负责人", Align=AlignStyle.Center, Width=0.05 },
- new BoundFieldColumn { FieldName="UnitCategoryName", HeaderText="单位类别", Align=AlignStyle.Center, OrderFieldName="UnitCategoryID", Width=0.05 },
- //new BoundFieldColumn { FieldName="FoundDate", HeaderText="建立年月", Align=AlignStyle.Center, Width=0.06, Formatter = Formatter.OnlyYearMonthDay },
- 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.05 },
- new BoundFieldColumn { FieldName="CampusName", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center, Width=0.06, OverflowLength=6 },
- new LinkButtonColumn { FieldName="DepartmentCount", HeaderText="教研室数", Align=AlignStyle.Center, Handle="editDepartmentCount", Width=0.04 },
- new LinkButtonColumn { FieldName="StaffCount", HeaderText="教师人数", Align=AlignStyle.Center, Handle="editStaffCount", Width=0.04 },
- new LinkButtonColumn { FieldName="FacultymajorCount", HeaderText="院系专业数", Align=AlignStyle.Center, Handle="editFacultymajorCount", Width=0.05 },
- new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.03, OverflowLength=5 }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/College/List"),
- ID = "dgCollegeList",
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- })
- </div>
- </div>
|