12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- @model EMIS.ViewModel.SystemView.RoleView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Edit";
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- @using (Ajax.BeginForm(new AjaxOptions
- {
- OnSuccess = "EMISFunction.FormSuccess",
- OnBegin = "EMISFunction.FormSubmit",
- OnComplete = "EMISFunction.FormComplete"
- }))
- {
- @Html.HiddenFor(x => x.TypeID, new { Value = ((int)EMIS.ViewModel.SYS_RoleType.Student).ToString() })
- <div class="p_title">
- <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;"></div>
- @if (Request["isView"] != "1")
- {
- <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Edit")</div>
- }
- </div>
- <div class="search_list popupWindowContent">
- <table cellpadding="0" cellspacing="0" id="departmenttable">
- <tr>
- <td>@Html.LabelFor(x => x.OrderNo):
- </td>
- <td>@Html.TextBoxFor(x => x.OrderNo)
- </td>
- <td>@Html.LabelFor(x => x.RoleName):
- </td>
- <td>@Html.TextBoxFor(x => x.RoleName)
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.StudentType):
- </td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_STUDENTTYPE, (x => x.StudentType), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect })
- </td>
- <td></td>
- <td></td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.Description):
- </td>
- <td>@Html.TextAreaFor(x => x.Description, new Dictionary<string, string> { { "style", "width:500px;" } })
- </td>
- <td></td>
- <td></td>
- </tr>
- </table>
- </div>
- }
- </div>
- @section scripts{
- <script type="text/javascript">
- function Role_Save() {
- var roleID = $.SystemGeneral.getUrlParam("RoleID");
- var studentTypeID = $("#StudentType").combobox("getValue");
- var roleName = $("#RoleName").val();
- $.post('/Role/StudentVerification', { roleID: roleID, studentTypeID: studentTypeID, roleName: roleName }, function (data) {
- if (data == "成功") {
- $(document.forms[0]).submit();
- } else {
- $.messager.alert("系统提示", data);
- }
- });
- }
- </script>
- }
|