123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- @model EMIS.ViewModel.SystemView.DictionaryItemView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Edit";
- var isEdit = (Request["DictionaryItemID"] ?? "") == "" || Request["isCodeAdd"] == "1";
- var isEditable = Model.IsEditable;
- //字典类型
- ComboGridOptions cgopDictionary = new ComboGridOptions
- {
- TextField = "DictionaryName",
- ValueField = "DictionaryCode",
- ID = "DictionaryDropdown",
- Name = "DictionaryDropdown",
- IsEnabled = isEdit,
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- //new BoundFieldColumn { FieldName="DictionaryCode",HeaderText="类型代码", Align=AlignStyle.Center, Width=0.2 },
- new BoundFieldColumn { FieldName="DictionaryName",HeaderText="类型名称", Align=AlignStyle.Center, Width=0.12 }
- },
- PageSize = 5,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Dictionary/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
-
- }
- @section scripts{
- <script src="~/Scripts/Business/System/DictionaryItemEdit.js" type="text/javascript"></script>
- <script type="text/javascript">
- </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;">
- @if (ViewBag.Type != "1")//控制列表进入、屏蔽按钮权限
- {
- @Html.ContextMenuBar("Edit")
- }
- </div>
- </div>
- <div class="search_list">
- <table cellpadding="0" cellspacing="0">
- @Html.HiddenFor(x => x.DictionaryItemID)
- <tr >
- <td>
- @Html.LabelFor(x => x.DictionaryName):
- </td>
- <td>
- @Html.ComboGridFor(x => x.DictionaryCode, cgopDictionary)
- </td>
- <td>
- @Html.LabelFor(x => x.OrderNo):
- </td>
- <td>
- @Html.TextBoxFor(x => x.OrderNo)
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Code):
- </td>
- <td>
- @Html.TextBoxFor(x => x.Code, new TextBoxOptions() { IsEnabled = isEdit })
- </td>
- <td>
- @Html.LabelFor(x => x.Name):
- </td>
- <td>
- @Html.TextBoxFor(x => x.Name)
- </td>
- </tr>
- <tr>
- <td style="color: red;">
- @Html.LabelFor(x => x.Value):
- </td>
- <td>
- @Html.TextBoxFor(x => x.Value, new TextBoxOptions() { IsEnabled = isEdit })
- </td>
- <td style="color: red;">
- @Html.LabelFor(x => x.IsVisible):
- </td>
- <td>
- @Html.CheckBoxFor(x => x.IsVisible)
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
|