123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Edit";
- //List<DropdownListItem> listdlt = new List<DropdownListItem> { new DropdownListItem { Text = "通过", Value = (int)EMIS.ViewModel.CF_ScoreState.Approved }, new DropdownListItem { Text = "驳回", Value = (int)EMIS.ViewModel.CF_ScoreState.Rebut } };
- List<DropdownListItem> listAction = ViewData["listAction"] as List<DropdownListItem>;
- List<DropdownListItem> firstListAction = ViewData["firstListAction"] as List<DropdownListItem>;
- var firstListActionValue = (firstListAction.FirstOrDefault() == null ? null : firstListAction.FirstOrDefault().Value);
- //var defaultAction = listAction.FirstOrDefault(x => x.Text == "同意" || x.Text == "通过");
- //var defaultActionValue = (defaultAction == null ? null : defaultAction.Value);
- }
- @section scripts{
- <script type="text/javascript">
- function ScoreAudit_Pass() {
- var d = top.$('#@Request["WindowID"]').data("inputData");
- $("[name='FinalExaminationIDs']").val(d.join(','));
- $(document.forms[0]).submit();
- }
- </script>
- }
- @using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" }))
- {
- <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("Edit")</div>
- </div>
- <div class="search_list">
- @Html.Hidden("FinalExaminationIDs")
- <table cellpadding="0" cellspacing="0" id="specialtytable">
- <tr>
- <td style="padding: 0px 0px 0px 10px;">
- 处理动作:
- </td>
- <td>@*@Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.None, ID = "ddlAction", Name = "Action", ItemList = listdlt,
- SelectedValue = (int)EMIS.ViewModel.CF_ScoreState.Approved })*@
- @Html.DropdownList(new DropdownListOptions {
- BindType = DropdownListBindType.None,
- ID = "ddlAction",
- Name = "Action",
- ItemList = listAction,
- SelectedValue = firstListActionValue
- })
- </td>
- </tr>
- <tr>
- <td style="padding: 10px 0px 0px 10px;">
- 处理意见:
- </td>
- <td style="padding: 10px 0px 0px 0px;">@Html.TextArea("Opinioncomment", "", 5, 30, new { })
- </td>
- </tr>
- </table>
- </div>
- }
|