123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126 |
- @model EMIS.ViewModel.DQPSystem.SOCDocView
- @using EMIS.Web.Controls;
- @using Bowin.Common.JSON;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Edit";
- }
- @section scripts{
- <script type="text/javascript" src="~/Scripts/Business/DQPSystem/SOCDocEdit.js"></script>
- }
- <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" }))
- {
- <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.HiddenFor(x => x.DocumentID)
- @Html.Hidden("hidRoleData", Model.RoleList.ToJson())
- @Html.Hidden("hidDepartmentData", Model.DepartmentList.ToJson())
- <table cellpadding="0" cellspacing="0" id="levelSettingTable">
- <tr>
- <td>@Html.LabelFor(x => x.Title):
- </td>
- <td colspan="3">@Html.TextBoxFor(x => x.Title, new TextBoxOptions { }, new Dictionary<string, string> { { "style", "width: 95%;" } })
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.SOCDocTypeID):
- </td>
- <td>
- @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.DQP_SOCDocType, (x => x.SOCDocTypeID), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect })
- </td>
- <td>@Html.LabelFor(x => x.IsShow):
- </td>
- <td>
- @Html.CheckBoxFor(x => x.IsShow)
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.Content):
- </td>
- <td colspan="3">
- <div>
- @Html.RichTextFor(x => x.Content, new RichTextOptions { Width = 830 })
- </div>
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.RoleType):
- </td>
- <td colspan="3">
- <table cellpadding="0" cellspacing="0" border="0">
- <tr>
- <td width="80">
- <span>
- @Html.CheckBoxFor(x => x.RoleType, new Dictionary<string, object> { { "onclick", "changeRoleType()" } })
- 所有角色
- </span>
- </td>
- <td>
- @Html.ContextMenuBar("Edit-RoleViewGrid")
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new CheckBoxFieldColumn{ HeaderText="", FieldName="RoleID"},
- new BoundFieldColumn { FieldName="RoleName", HeaderText="角色名称", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- IsPostBack = true,
- IsAutoLoad = false,
- ID = "dgRoleList",
- IsPagination = false,
- MaxHeight = 200,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- IsShowHeader = false
- })
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.CollegeType):
- </td>
- <td colspan="3">
- <table cellpadding="0" cellspacing="0" border="0">
- <tr>
- <td width="80">
- <span>
- @Html.CheckBoxFor(x => x.CollegeType, new Dictionary<string, object> { { "onclick", "changeCollegeType()" } })
- 所有部门
- </span>
- </td>
- <td>
- @Html.ContextMenuBar("Edit-CollegeViewGrid")
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new CheckBoxFieldColumn{ HeaderText="", FieldName="DepartmentID"},
- new BoundFieldColumn { FieldName="Name", HeaderText="名称", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- IsPostBack = true,
- IsAutoLoad = false,
- ID = "dgDepartmentList",
- IsPagination = false,
- MaxHeight = 200,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- IsShowHeader = false
- })
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
|