123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- @model EMIS.ViewModel.EvaluationManage.EvaluationSetting.EvaluationTypeView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Edit";
- var isEnable = Request["type"] == "detail" ? false : true;
- var isDisable = Request["type"] == "detail" ? false : (Request["type"] == "edit" ? false : true);
- }
- @section scripts{
- <script src="~/Scripts/Business/EvaluationManage/EvaluationSetting/EvaluationTypeEdit.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.EvaluationTypeID)
- <table cellpadding="0" cellspacing="0" id="collegePrioritytable">
- <tr>
- <td>
- @Html.LabelFor(x => x.Name):
- </td>
- <td colspan="3">
- @Html.TextBoxFor(x => x.Name, new TextBoxOptions() { IsEnabled = isEnable }, new Dictionary<string, string> { { "style", "width:65%;" } })
- </td>
- </tr>
- <tr>
- <td style="color:red;">
- @Html.LabelFor(x => x.IsStudent):
- </td>
- <td>
- @if (!isEnable)
- {
- @Html.CheckBoxFor(x => x.IsStudent, new Dictionary<string, object>() { { "disabled", isEnable } })
- }
- else
- {
- @Html.CheckBoxFor(x => x.IsStudent)
- }
- </td>
- <td style="color:red;">
- @Html.LabelFor(x => x.Number):
- </td>
- <td>
- @Html.TextBoxFor(x => x.Number, new TextBoxOptions { IsEnabled = isEnable })
- </td>
- </tr>
- <tr>
- <td>
- @Html.LabelFor(x => x.StartTime):
- </td>
- <td>
- @Html.TextBoxFor(x => x.StartTime, new TextBoxOptions
- {
- TextBoxType = TextBoxType.DateTime,
- IsEnabled = isEnable
- })
- </td>
- <td>
- @Html.LabelFor(x => x.EndTime):
- </td>
- <td>
- @Html.TextBoxFor(x => x.EndTime, new TextBoxOptions
- {
- TextBoxType = TextBoxType.DateTime,
- IsEnabled = isEnable
- })
- </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: 20px" },
- { "disabled", "true" }
- })
- }
- else
- {
- @Html.TextAreaFor(x => x.Remark, new Dictionary<string, object> { { "style", "width: 90%;min-height: 20px" } })
- }
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
|