123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137 |
- @using Bowin.Web.Controls.Mvc;
- @using EMIS.Web.Controls;
- @{
- ViewBag.Title = "List";
- //参评类型
- ComboGridOptions cgopEvaluationParticipateType = new ComboGridOptions
- {
- TextField = "ParticipateTypeName",
- ValueField = "EvaluationParticipateTypeID",
- Name = "EvaluationParticipateTypeDropdown",
- ID = "EvaluationParticipateTypeDropdown",
- OnSelect = "reload",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="ParticipateTypeName", HeaderText="参评类型", Align=AlignStyle.Center, Width=0.1, OrderFieldName="ParticipateTypeID" },
- new BoundFieldColumn { FieldName="IsStudentName", HeaderText="学生用", Align=AlignStyle.Center, Width=0.05, OrderFieldName="IsStudent", CustomFormatFun="SetRedColumn"}
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/EvaluationParticipateType/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- };
- //评价类型
- ComboGridOptions cgopEvaluationType = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "EvaluationIntTypeID",
- ID = "EvaluationTypeDropdown",
- Name = "EvaluationTypeDropdown",
- OnSelect = "reload",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="Code", HeaderText="编号", Align=AlignStyle.Center, Width=0.05 },
- new BoundFieldColumn { FieldName="Name", HeaderText="名称", Align=AlignStyle.Center, Width=0.08 },
- new BoundFieldColumn { FieldName="TeachingModeIDListName", HeaderText="授课方式", Align=AlignStyle.Center, Width=0.08, OrderFieldName="", CustomFormatFun="SetRedColumn" }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/EvaluationIntType/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- }
- @section scripts{
- <script src="~/Scripts/Business/EvaluationManage/EvaluationTable/EvaluationTable.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;">
- @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("~/EvaluationTable/Excel")">
- @Html.PositionCondition()
- <div class="search_keyword">
- <div class="search_input">
- <ul>
- <li class="sn" style="padding-left: 5px;">参评类型:</li>
- <li class="sv">
- @Html.ComboGrid(cgopEvaluationParticipateType, new Dictionary<string, string> { { "data-condition", "dgEvaluationTableList" } })
- </li>
- <li class="sn" style="padding-left: 5px;">评价类型:</li>
- <li class="sv">
- @Html.ComboGrid(cgopEvaluationType, new Dictionary<string, string> { { "data-condition", "dgEvaluationTableList" } })
- </li>
- <li class="sn" style="padding-left: 5px;color: red;">学生用:</li>
- <li class="sv">
- @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, DropdownListBindType.SelectAll,
- new ComboGridOptions
- {
- ID = "IsStudentDropdown",
- Name = "IsStudentDropdown",
- OnSelect = "reload"
- }, new Dictionary<string, string> { { "data-condition", "dgEvaluationTableList" } })
- </li>
- <li class="sn" style="padding-left: 5px;color: red;">是否启用:</li>
- <li class="sv">
- @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, DropdownListBindType.SelectAll,
- new ComboGridOptions
- {
- ID = "IsEnabledDropdown",
- Name = "IsEnabledDropdown",
- OnSelect = "reload"
- }, new Dictionary<string, string> { { "data-condition", "dgEvaluationTableList" } })
- </li>
- </ul>
- </div>
- </div>
- </form>
- <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("List")</div>
- </div>
- @Html.PositionBatchModify()
- <div class="search_list">
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new CheckBoxFieldColumn{ HeaderText="", FieldName="EvaluationTableID" },
- new LinkButtonColumn { FieldName="Code", HeaderText="编号", Align=AlignStyle.Center, Handle="edit", Width=0.05 },
- new BoundFieldColumn { FieldName="Name", HeaderText="评价表名", Align=AlignStyle.Center, Width=0.12 },
- new BoundFieldColumn { FieldName="ParticipateTypeName", HeaderText="参评类型", Align=AlignStyle.Center, Width=0.04, OrderFieldName="ParticipateTypeID" },
- new BoundFieldColumn { FieldName="IsStudentName", HeaderText="学生用", Align=AlignStyle.Center, OrderFieldName="IsStudent", Width=0.03, CustomFormatFun="SetRedColumn" },
- //new BoundFieldColumn { FieldName="EvaluationTypeCode", HeaderText="评价类型编号", Align=AlignStyle.Center, Width=0.06 },
- new BoundFieldColumn { FieldName="EvaluationTypeName", HeaderText="评价类型", Align=AlignStyle.Center, Width=0.04 },
- new BoundFieldColumn { FieldName="TeachingModeIDListName", HeaderText="授课方式", Align=AlignStyle.Center, OrderFieldName="", Width=0.08, CustomFormatFun="SetRedColumn", OverflowLength=8 },
- new BoundFieldColumn { FieldName="Weight", HeaderText="权重", Align=AlignStyle.Center, Width=0.03, CustomFormatFun="SetRedColumn" },
- new LinkButtonColumn { FieldName="TargetCount", HeaderText="指标个数", Align=AlignStyle.Center, Handle="editTarget", Width=0.04 },
- new LinkButtonColumn { FieldName="ProjectCount", HeaderText="项目个数", Align=AlignStyle.Center, Handle="editProject", Width=0.04 },
- new BoundFieldColumn { FieldName="IsEnabledName", HeaderText="是否启用", Align=AlignStyle.Center, OrderFieldName="IsEnabled", Width=0.04, CustomFormatFun="SetRedColumn" },
- new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.03, OverflowLength=5 }
- //new BoundFieldColumn { FieldName="CreateUserName", HeaderText="创建人", Align=AlignStyle.Center, Width=0.04 },
- //new BoundFieldColumn { FieldName="ModifyUserName", HeaderText="修改人", Align=AlignStyle.Center, Width=0.04 },
- //new BoundFieldColumn { FieldName="ModifyTime", HeaderText="修改时间", Align=AlignStyle.Center, Width=0.06, Formatter= Formatter.LongDate }
- },
- CustomerRowStyleFun="SetRedGrid",
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/EvaluationTable/List"),
- ID = "dgEvaluationTableList",
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- })
- </div>
- </div>
|