1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- @using Bowin.Web.Controls.Mvc;
- @using EMIS.Web.Controls;
- @{
- ViewBag.Title = "GraduationConditionList";
- Guid? graduationConditionPackageID = new Guid(Request["GraduationConditionPackageID"]);
- }
- @section scripts{
- <script type="text/javascript">
- //获取选中的数据(All)
- function validChooseAll() {
- var d = [];
- $.each($("#dgGraduationConditionList").cmsXDataTable("getSelections"), function (index) {
- d.push(this);
- });
- return d;
- }
- //选中
- function GraduationCondition_Confirm() {
- var listData = validChooseAll();
- if (listData.length < 1) {
- $.messager.alert("系统提示", "请选择毕业条件。");
- return;
- }
- top.$("#@(Request["WindowID"])").data("resultData", validChooseAll());
- top.$("#@(Request["WindowID"])").dialog("close");
- }
- </script>
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- <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;">
- <div class="current_navbar toolbar">
- <div class="func_info">
- <a class="easyui-linkbutton" href="javascript:GraduationCondition_Confirm()" data-options="iconCls:'icon-ok',plain:'true'"
- onfocus="this.blur()">选中</a>
- </div>
- </div>
- </div>
- </div>
- <form id="formQuery" method="post">
- @*@Html.PositionCondition("GraduationConditionSelect", null)*@
- </form>
- <div class="search_list">
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new CheckBoxFieldColumn{ HeaderText="", FieldName="GraduationConditionID" },
- new BoundFieldColumn { FieldName="OrderNo", HeaderText="序号", Align=AlignStyle.Center, Width=0.02 },
- new BoundFieldColumn { FieldName="Title", HeaderText="条件名称", Align=AlignStyle.Center, Width=0.2 },
- new CheckButtonColumn { FieldName="IsEnable", HeaderText="启用状态", Align=AlignStyle.Center, Width=0.04, EnableFieldName="false" }
- },
- PageSize = 15,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/GraduationConditionPackage/GraduationConditionList?GraduationConditionPackageID=" + graduationConditionPackageID),
- ID = "dgGraduationConditionList",
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- })
- </div>
- </div>
|