123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- @model EMIS.ViewModel.EvaluationManage.EvaluationSetting.EvaluationNeedView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Edit";
- var isEnable = Request["type"] == "detail" ? false : true;
- }
- @section scripts{
- <script src="~/Scripts/Business/EvaluationManage/EvaluationSetting/EvaluationNeedEdit.js" type="text/javascript"></script>
- <script type="text/javascript">
- var nonSelect = "@DropdownList.SELECT_ALL";
- </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 (Request["type"] != "detail")
- {
- @Html.ContextMenuBar("Edit")
- }
- </div>
- </div>
- <div class="search_list">
- @Html.HiddenFor(x => x.EvaluationNeedID)
- <table cellpadding="0" cellspacing="0" id="evaluationtabletable">
- <tr>
- <td style="color:red;">
- @Html.LabelFor(x => x.Code):
- </td>
- <td>
- @Html.TextBoxFor(x => x.Code, new TextBoxOptions() { IsEnabled = isEnable })
- </td>
- <td>
- @Html.LabelFor(x => x.Title):
- </td>
- <td>
- @Html.TextBoxFor(x => x.Title, new TextBoxOptions() { IsEnabled = isEnable })
- </td>
- </tr>
- <tr>
- <td style="color:red;">
- @Html.LabelFor(x => x.ParticipateTypeID):
- </td>
- <td>
- @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.EM_ParticipateType, (x => x.ParticipateTypeID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable })
- </td>
- <td style="color:red;">
- @Html.LabelFor(x => x.IsEnabledName):
- </td>
- <td>
- @if (!isEnable)
- {
- @Html.CheckBoxFor(x => x.IsEnabled, new Dictionary<string, object>() { { "disabled", isEnable } })
- }
- else
- {
- @Html.CheckBoxFor(x => x.IsEnabled)
- }
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Content):
- </td>
- <td colspan="3">
- @if (!isEnable)
- {
- @Html.TextAreaFor(x => x.Content, new Dictionary<string, object>
- {
- { "style", "width: 90%;min-height: 80px" },
- { "disabled", "true" }
- })
- }
- else
- {
- @Html.TextAreaFor(x => x.Content, new Dictionary<string, object> { { "style", "width: 90%;min-height: 80px" } })
- }
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.Remark):
- </td>
- <td colspan="3">
- @if (!isEnable)
- {
- @Html.TextAreaFor(x => x.Remark, new Dictionary<string, object>
- {
- { "style", "width: 90%;min-height: 30px" },
- { "disabled", "true" }
- })
- }
- else
- {
- @Html.TextAreaFor(x => x.Remark, new Dictionary<string, object> { { "style", "width: 90%;min-height: 30px" } })
- }
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
|