123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- @model EMIS.ViewModel.EvaluationManage.EvaluationTable.EvaluationNormDetailView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "DetailEdit";
- var isEnable = Request["type"] == "detail" ? false : true;
- }
- @section scripts{
- <script type="text/javascript">
- var nonSelect = "@DropdownList.SELECT_ALL";
- $(function () {
- var data = top.$("#@(Request["WindowID"])").data("inputData");
- if (data) {
- $("#OrderNo").val(data.OrderNo);
- $("#Name").val(data.Name);
- $("#Weight").val(data.Weight);
- $("#Remark").val(data.Remark);
- }
- });
- //选择
- function validChoose() {
- var normDetail = new Object();
- normDetail.RowIndex = $.SystemGeneral.getUrlParam("RowIndex");
- normDetail.OrderNo = $("#OrderNo").val();
- normDetail.Name = $("#Name").val();
- normDetail.Weight = $("#Weight").val();
- normDetail.Remark = $("#Remark").val();
- return normDetail;
- }
- //确定
- function EvaluationNormDetail_Save() {
- var $form = $(document.forms[0])
- var validateState = $form.valid();
- if (validateState) {
- top.$("#@(Request["WindowID"])").data("resultData", validChoose());
- top.$("#@(Request["WindowID"])").dialog("close");
- }
- }
- </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("DetailEdit")
- }
- </div>
- </div>
- <div class="search_list">
- @Html.HiddenFor(x => x.EvaluationNormDetailID)
- <table cellpadding="0" cellspacing="0" id="evaluationnormdetailtable">
- <tr>
- <td>
- @Html.LabelFor(x => x.OrderNo):
- </td>
- <td>
- @Html.TextBoxFor(x => x.OrderNo, new TextBoxOptions() { IsEnabled = isEnable })
- </td>
- <td style="color: red;">
- @Html.LabelFor(x => x.Name):
- </td>
- <td>
- @Html.TextBoxFor(x => x.Name, new TextBoxOptions() { IsEnabled = isEnable })
- </td>
- </tr>
- <tr>
- <td style="color: red;">
- @Html.LabelFor(x => x.Weight):
- </td>
- <td colspan="3">
- @Html.TextBoxFor(x => x.Weight, new TextBoxOptions() { 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>
|