123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144 |
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "ExecutablePlanList";
- Guid? graduationApplyID = new Guid(Request["graduationApplyID"]);
- }
- @section scripts{
- <script type="text/javascript">
- var nonSelect = "@DropdownList.SELECT_ALL";
- //未提交
- var notSubmited = "@((int)EMIS.ViewModel.EM_ExecuteStatus.NotSubmited)";
- //刷新
- function reload() {
- $("#dgExecutablePlanList").cmsXDataTable("load", $.getDataGridParams("dgExecutablePlanList"));
- }
- //设置列颜色为红色
- function SetRedColumn(index, row, value) {
- return " <span style=\"color: red;\">" + value + "</span>";
- }
- //设置相应的行颜色为红色
- function SetRedGrid(rowIndex, rowData) {
- if (rowData.RecordStatus == notSubmited) {
- return "color: red;";
- } else {
- return "";
- }
- }
- //Excel导出
- function ExecutablePlanListExcel() {
- $("#formQuery").submit();
- }
- </script>
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- <form id="formQuery" method="post" action="@Url.Content("~/GraduationApply/ExecutablePlanListExcel?graduationApplyID=" + graduationApplyID)">
- @Html.PositionCondition("ExecutablePlanGraduationApply")
- <div class="search_keyword">
- <div class="search_input">
- <ul>
- <li class="sn" style="padding-left: 5px;">学年学期:</li>
- <li class="sv">
- @Html.DropdownList(new DropdownListOptions
- {
- ID = "SchoolyearDropdown",
- Name = "SchoolyearDropdown",
- BindType = DropdownListBindType.SelectAll,
- ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"),
- OnSelect = "reload"
- }, new Dictionary<string, string> { { "data-condition", "dgExecutablePlanList" } })
- </li>
- <li class="sn" style="padding-left: 5px;">课程类型:</li>
- <li class="sv">
- @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_CourseType, DropdownListBindType.SelectAll,
- new ComboGridOptions
- {
- ID = "DictionaryCourseType",
- Name = "DictionaryCourseType",
- OnSelect = "reload"
- }, new Dictionary<string, string> { { "data-condition", "dgExecutablePlanList" } })
- </li>
- <li class="sn" style="padding-left: 5px;">开课学期:</li>
- <li class="sv">
- @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Startterm, DropdownListBindType.SelectAll,
- new ComboGridOptions
- {
- ID = "DictionaryStartterm",
- Name = "DictionaryStartterm",
- OnSelect = "reload"
- }, new Dictionary<string, string> { { "data-condition", "dgExecutablePlanList" } })
- </li>
- </ul>
- <ul>
- <li class="sn" style="padding-left: 5px;color:red;">学位课程:</li>
- <li class="sv">
- @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions()
- {
- ID = "DictionaryIsMainCourse",
- Name = "DictionaryIsMainCourse",
- BindType = DropdownListBindType.SelectAll,
- //SelectedValue = (int)EMIS.ViewModel.CF_GeneralPurpose.IsYes,
- OnSelect = "reload"
- }, new Dictionary<string, string> { { "data-condition", "dgExecutablePlanList" } })
- </li>
- <li class="sn" style="padding-left: 5px;color:red;">处理方式:</li>
- <li class="sv">
- @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_HandleMode, new DropdownListOptions()
- {
- BindType = DropdownListBindType.SelectAll,
- ID = "DictionaryHandleMode",
- Name = "DictionaryHandleMode",
- //SelectedValue = (int)EMIS.ViewModel.CF_HandleMode.RequiredCourse,
- OnSelect = "reload"
- }, new Dictionary<string, string> { { "data-condition", "dgExecutablePlanList" } })
- </li>
- <li class="sn" style="padding-left: 5px;color:red;">计划状态:</li>
- <li class="sv">
- @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.EM_ExecuteStatus, new DropdownListOptions()
- {
- ID = "DictionaryExecutablePlanStatus",
- Name = "DictionaryExecutablePlanStatus",
- BindType = DropdownListBindType.SelectAll,
- SelectedValue = (int)EMIS.ViewModel.EM_ExecuteStatus.Submited,
- OnSelect = "reload"
- }, new Dictionary<string, string> { { "data-condition", "dgExecutablePlanList" } })
- </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("EPDetail")</div>
- </div>
- </form>
- <div class="search_list">
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new CheckBoxFieldColumn{ HeaderText="", FieldName="ExecutablePlanID" },
- new BoundFieldColumn { FieldName="GrademajorName", HeaderText="年级专业名称", Align=AlignStyle.Center, Width=0.06, OverflowLength=6 },
- new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.08 },
- new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.06 },
- new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.1, OverflowLength=10 },
- new BoundFieldColumn { FieldName="CourseTypeName", HeaderText="课程类型", Align=AlignStyle.Center, OrderFieldName="CourseTypeID", Width=0.05 },
- new BoundFieldColumn { FieldName="Credit", HeaderText="课程学分", Align=AlignStyle.Center, Width=0.04 },
- new BoundFieldColumn { FieldName="IsMainCourseName", HeaderText="学位课程", OrderFieldName="IsMainCourse", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetRedColumn" },
- new BoundFieldColumn { FieldName="StarttermName", HeaderText="开课学期", OrderFieldName="StarttermID", Align=AlignStyle. Center, Width=0.04 },
- new BoundFieldColumn { FieldName="Totalhours", HeaderText="总学时", OrderFieldName="Totalhours", Align=AlignStyle.Center, Width=0.03 },
- new BoundFieldColumn { FieldName="HandleModeName", HeaderText="处理方式", OrderFieldName="HandleModeID", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetRedColumn" },
- new BoundFieldColumn { FieldName="ExecuteStatusName", HeaderText="计划状态", OrderFieldName="ExecuteStatus", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetRedColumn" },
- new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.03, OverflowLength=3 }
- },
- CustomerRowStyleFun = "SetRedGrid",
- IsPostBack = true,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/GraduationApply/ExecutablePlanList?graduationApplyID=" + graduationApplyID),
- ID = "dgExecutablePlanList",
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- })
- </div>
- </div>
|