123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "CollegeList";
- Guid? campusID = new Guid(Request["campusID"]);
- }
- @section scripts{
- <script type="text/javascript">
- var nonSelect = "@DropdownList.SELECT_ALL";
- //刷新
- function reload() {
- $("#dgCollegeList").cmsXDataTable("load", $.getDataGridParams("dgCollegeList"));
- }
- //设置列颜色为红色
- function SetRedColumn(index, row, value) {
- return " <span style=\"color: red;\">" + value + "</span>";
- }
- //Excel导出
- function CampusCollege_DetailExport() {
- $("#formQuery").submit();
- }
- </script>
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- <form id="formQuery" method="post" action="@Url.Content("~/Campus/CollegeListExcel?campusID=" + campusID)">
- @Html.PositionCondition("CampusCollege")
- <div class="search_keyword">
- <div class="search_input">
- <ul>
- <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>
- <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("ColDetail")</div>
- </div>
- </form>
- <div class="search_list">
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new CheckBoxFieldColumn{ HeaderText="", FieldName="CollegeID" },
- new BoundFieldColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, 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.08, OverflowLength=6 },
- //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.08, Formatter = Formatter.OnlyYearMonthDay },
- new BoundFieldColumn { FieldName="Officephone", HeaderText="办公电话", Align=AlignStyle.Center, Width=0.08 },
- new BoundFieldColumn { FieldName="DepartmentCount", HeaderText="教研室数", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetRedColumn" },
- new BoundFieldColumn { FieldName="StaffCount", HeaderText="教师人数", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetRedColumn" },
- new BoundFieldColumn { FieldName="FacultymajorCount", HeaderText="院系专业数", Align=AlignStyle.Center, Width=0.05, CustomFormatFun="SetRedColumn" },
- //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 BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.03, OverflowLength=6 }
- },
- IsPostBack = true,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Campus/CollegeList?campusID=" + campusID),
- ID = "dgCollegeList",
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- })
- </div>
- </div>
|