123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180 |
- @using Bowin.Web.Controls.Mvc;
- @using EMIS.Web.Controls;
- @{
- ViewBag.Title = "List";
- //参评类型
- ComboGridOptions cgopEvaluationParticipateType = new ComboGridOptions
- {
- TextField = "ParticipateTypeName",
- ValueField = "EvaluationParticipateTypeID",
- ID = "EvaluationParticipateTypeDropdown",
- Name = "EvaluationParticipateTypeDropdown",
- OnSelect = "queryEvaluationParticipateType",
- 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 = "queryEvaluationType",
- 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
- }
- };
- //评价表名
- ComboGridOptions cgopEvaluationTable = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "EvaluationTableID",
- ID = "EvaluationTableDropdown",
- Name = "EvaluationTableDropdown",
- OnSelect = "queryEvaluationTable",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="Code", HeaderText="编号", Align=AlignStyle.Center, Width=0.06 },
- new BoundFieldColumn { FieldName="Name", HeaderText="评价表名", Align=AlignStyle.Center, Width=0.2 },
- //new BoundFieldColumn { FieldName="ParticipateTypeName", HeaderText="参评类型", Align=AlignStyle.Center, Width=0.06, OrderFieldName="ParticipateTypeID" },
- new BoundFieldColumn { FieldName="IsStudentName", HeaderText="学生用", Align=AlignStyle.Center, Width=0.04, OrderFieldName="IsStudent", CustomFormatFun="SetRedColumn" },
- //new BoundFieldColumn { FieldName="EvaluationTypeName", HeaderText="评价类型", Align=AlignStyle.Center, Width=0.06 },
- new BoundFieldColumn { FieldName="IsEnabledName", HeaderText="是否启用", Align=AlignStyle.Center, Width=0.04, OrderFieldName="IsEnabled", CustomFormatFun="SetRedColumn" }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/EvaluationTable/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- };
- //评价指标
- ComboGridOptions cgopEvaluationTarget = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "EvaluationTargetID",
- ID = "EvaluationTargetDropdown",
- Name = "EvaluationTargetDropdown",
- OnSelect = "reload",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="Code", HeaderText="指标编号", Align=AlignStyle.Center, Width=0.08 },
- new BoundFieldColumn { FieldName="Name", HeaderText="指标名称", Align=AlignStyle.Center, Width=0.12 },
- new BoundFieldColumn { FieldName="EvaluationTableName", HeaderText="评价表名", Align=AlignStyle.Center, Width=0.12 },
- new BoundFieldColumn { FieldName="EvaluationNormName", HeaderText="评分标准", Align=AlignStyle.Center, Width=0.08 }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/EvaluationTarget/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- }
- @section scripts{
- <script src="~/Scripts/Business/EvaluationManage/EvaluationTable/EvaluationProject.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("~/EvaluationTarget/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", "dgEvaluationProjectList" } })
- </li>
- <li class="sn" style="padding-left: 5px;">评价类型:</li>
- <li class="sv">
- @Html.ComboGrid(cgopEvaluationType, new Dictionary<string, string> { { "data-condition", "dgEvaluationProjectList" } })
- </li>
- <li class="sn" style="padding-left: 5px;color: red;">评价表名:</li>
- <li class="sv">
- @Html.ComboGrid(cgopEvaluationTable, new Dictionary<string, string> { { "data-condition", "dgEvaluationProjectList" } })
- </li>
- <li class="sn" style="padding-left: 5px;color: red;">评价指标:</li>
- <li class="sv">
- @Html.ComboGrid(cgopEvaluationTarget, new Dictionary<string, string> { { "data-condition", "dgEvaluationProjectList" } })
- </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="EvaluationProjectID" },
- new BoundFieldColumn { FieldName="OrderNo", HeaderText="次序", Align=AlignStyle.Center, Width=0.03 },
- 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="EvaluationTargetCode", HeaderText="指标编号", Align=AlignStyle.Center, Width=0.04 },
- new BoundFieldColumn { FieldName="EvaluationTargetName", HeaderText="指标名称", Align=AlignStyle.Center, Width=0.1 },
- //new BoundFieldColumn { FieldName="EvaluationTableCode", HeaderText="评价表编号", Align=AlignStyle.Center, Width=0.05 },
- new BoundFieldColumn { FieldName="EvaluationTableName", HeaderText="评价表名", Align=AlignStyle.Center, Width=0.1, CustomFormatFun="SetRedColumn" },
- 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 },
- //new BoundFieldColumn { FieldName="EvaluationTypeCode", HeaderText="评价类型编号", Align=AlignStyle.Center, Width=0.06 },
- new BoundFieldColumn { FieldName="EvaluationTypeName", HeaderText="评价类型", Align=AlignStyle.Center, Width=0.05 },
- new BoundFieldColumn { FieldName="TeachingModeIDListName", HeaderText="授课方式", Align=AlignStyle.Center, OrderFieldName="", Width=0.05, OverflowLength=8, CustomFormatFun="SetRedColumn" },
- new BoundFieldColumn { FieldName="EvaluationNormName", HeaderText="评分标准", Align=AlignStyle.Center, Width=0.05 },
- new BoundFieldColumn { FieldName="NormTypeName", HeaderText="评分类型", Align=AlignStyle.Center, OrderFieldName="NormTypeID", Width=0.04 },
- new BoundFieldColumn { FieldName="Weight", HeaderText="权重", Align=AlignStyle.Center, Width=0.03, 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.08, Formatter= Formatter.LongDate }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/EvaluationProject/List"),
- ID = "dgEvaluationProjectList",
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- })
- </div>
- </div>
|