123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 |
- @using Bowin.Web.Controls.Mvc;
- @using EMIS.Entities;
- @using EMIS.Web.Controls;
- @{
- ViewBag.Title = "List";
-
- ComboGridOptions cgopProject = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "ExaminationProjectID",
- ID = "ExaminationProjectID",
- Name = "ExaminationProjectID",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="Name", HeaderText="项目名称", Align=AlignStyle.Center ,Width=0.3}
- },
- PageSize = 5,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/CertisfierDistribute/ProjectListViewGrid"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- ,
- OnSelect = "reload"
- };
-
- }
- @section scripts{
- <script type="text/javascript">
- //刷新
- function reload() {
- $("#dgList").cmsXDataTable("load", $.getDataGridParams("dgList"));
- }
- //查看
- function viewProject(rowindex, rowdata) {
- var mnu = $.SystemGeneral.getUrlParam("MNU");
- var url = CMS_SystemConfig.VirtualDirectoryPath + '/ChargeProject/ProjectEdit';
- //TODO:临时性加参数控制、屏蔽列表进入无保存按钮权限 2016年10月24日16:56:17~
- var redirectTo = url + "?ExaminationProjectID=" + rowdata.ExaminationProjectID + "&MNU=" + mnu + "&Type=1";
- $.popupTopWindow("项目信息信息", redirectTo, 750, 450, null, null);
- }
- //修改领取方式
- function Update() {
- var rows = $("#dgList").cmsXDataTable("getSelections");
- if (rows.length == 0) {
- $.messager.alert("系统信息", "请选择您要修改的信息。");
- return;
- }
- if (rows.length >1) {
- $.messager.alert("系统信息", "请选择单条信息修改。");
- return;
- }
- var item = rows[0];
- if (item.DistributeStateName != "待领证") {
- $.messager.alert("系统信息", "只能修改待领证状态的信息!");
- return;
- }
- var mnu = $.SystemGeneral.getUrlParam("MNU");
- var url = CMS_SystemConfig.VirtualDirectoryPath + '/CertisfierDistribute/StuEdit';
- var redirectTo = url + "?ID=" + item.CertisfierDistributeID + "&MNU=" + mnu + "&DistributeTypeID=" + item.DistributeTypeID;
- $.popupTopWindow("修改领取方式", redirectTo, 500, 250, null, null);
- }
- </script>
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- @Html.Position()
- <form id="formQuery" method="post" action="@Url.Content("~/CertisfierDistribute/Excel")">
- <div class="search_keyword">
- <div class="search_input">
- <ul>
- <li class="sn" style="padding-left: 5px;">项目名称:</li>
- <li class="sv">
- @Html.ComboGrid(cgopProject, new Dictionary<string, string> { { "data-condition", "dgList" } })
- </li>
- <li class="sn" style="padding-left: 5px;">领取状态:</li>
- <li class="sv">
- @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.ER_CertisfierDistributeStatus, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "RecordStatus", Name = "RecordStatus", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
- </li>
- <li class="sn" style="padding-left: 5px;">领取方式:</li>
- <li class="sv">
- @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.ER_CertisfierDistributeType, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "DistributeTypeID", Name = "DistributeTypeID", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgList" } })
- </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("List")</div>
- </div>
- </form>
- @Html.PositionBatchModify()
- <div class="search_list">
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new CheckBoxFieldColumn{ HeaderText="", FieldName="CertisfierDistributeID"},
- new BoundFieldColumn { FieldName="Schoolyear", HeaderText="学年学期", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="ProjectName", HeaderText="考试项目", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="CertificatesTypeName", HeaderText="证件类型", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="IDNumber", HeaderText="证件号码", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="DistributeStateName", HeaderText="领取状态", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="DistributeTypeName", HeaderText="领取方式", Align=AlignStyle.Center},
- new BoundFieldColumn { FieldName="ContactPerson", HeaderText="联系人", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="ContactNo", HeaderText="联系电话", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="DeliveryNoteNo", HeaderText="邮寄单号", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="Distributer", HeaderText="领取人", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="DistributeTime", HeaderText="领取时间", Align=AlignStyle.Center, Formatter= Formatter.CHSOnlyYearMonthDay },
- new BoundFieldColumn { FieldName="No", HeaderText="领取单号", Align=AlignStyle.Center },
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/CertisfierDistribute/StuList"),
- ID = "dgList",
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- })
- </div>
- <form id="formEms" method="post" action="@Url.Content("~/CertisfierDistribute/EmsExcel")">
- </form>
- </div>
- <iframe id="frmPrintDetail" width="0" height="0"></iframe>
|