Mini.Crm/Mini.Web/Areas/Admin/Views/BasParameter/Edit.cshtml

132 lines
5.8 KiB
Plaintext

@model Air.Model.AirB2bDomain.Bas_Parameter
@using Air.WebHelper;
@{
ViewBag.Title = "Edit";
Layout = "~/Areas/Admin/Views/Shared/_Index_LayoutEdit.cshtml";
}
<script type="text/javascript">
$(function () {
$("#btnSave").click(function () {
if ($("#CreateForm").valid()) {
$.r_ajax({
url: "Edit",
type: "Post",
data: $("#CreateForm").serialize(),
dataType: "json",
loading: true,
success: function (data) {
if (data.type == 1) {
window.parent.frameReturnByMes(data.message);
window.parent.frameReturnByReload(true);
window.parent.frameReturnByClose()
}
else {
window.parent.frameReturnByMes(data.message);
}
}
});
}
return false;
});
});
function SaveChild() {
$("#btnSave").click();
}
</script>
<div style="border: 1px #cccccc solid;width:100%;height:100%;">
<div class="mvctool bgb">
@Html.ToolButtonPlain("btnSave", "icon-save", "保存", false, "")
@Html.ToolButtonPlain("btnClose", "icon-remove", "关闭", false, "onClick='window.parent.frameReturnByClose()'")
</div>
<div style=" height: 90%; width: 100%;overflow-y: auto">
@using (Html.BeginForm("Edit", "BasParameter", null, FormMethod.Post, new { Id = "CreateForm" }))
{
@Html.ValidationSummary(true)
@Html.HiddenFor(model => model.PKID)
<table class="fromEditTable setTextWidth300">
<tbody>
<tr>
<td width="60px" style="width:100px;">
参数键:
</td>
<td style="width:310px">
@Html.TextBoxFor(m => m.ParaKey)
@Html.Hidden("hid_option", Request.QueryString["Option"])
</td>
<td style="width:120px">
@Html.ValidationMessageFor(m => m.ParaKey)
</td>
</tr>
<tr>
<td width="60px" style="width:100px;">
参数名:
</td>
<td style="width:310px">
@Html.TextBoxFor(m => m.ParaName)
</td>
<td style="width:120px">
@Html.ValidationMessageFor(m => m.ParaName)
</td>
</tr>
<tr>
<td width="60px" style="width:100px;">
参数分组:
</td>
<td style="width:310px">
@*@Html.DropDownListFor(m => m.map_GROUPID, new WX.CRM.WEB.Handler.ControlResource().GetBas_parameterGroupList(), new { style = "width:305px" })*@
@Html.DropDownListFor(m => m.GroupId, (IEnumerable<SelectListItem>)ViewBag.ParameterGroupList, new { style = "width:305px" })
</td>
<td width="120px">
@Html.ValidationMessageFor(m => m.GroupId)
</td>
</tr>
<tr>
<td width="60px" style="width:100px;">
参数值:
</td>
<td style="width:310px">
@*@Html.TextBoxFor(m => m.map_PARAVALUE)*@
@Html.TextAreaFor(m => m.ParaValue)
</td>
<td style="width:120px">
@Html.ValidationMessageFor(m => m.ParaValue)
</td>
</tr>
<tr>
<td width="60px" style="width:100px;">
参数类型:
</td>
<td style="width:310px">
@Html.TextBoxFor(m => m.ParaType)
</td>
<td style="width:120px">
@Html.ValidationMessageFor(m => m.ParaType)
</td>
</tr>
<tr>
<td width="60px" style="width:100px;">
备注:
</td>
<td style="width:310px">
@*@Html.TextBoxFor(m => m.map_REMARK)*@
@Html.TextAreaFor(m => m.Remark)
</td>
<td style="width:120px">
@Html.ValidationMessageFor(m => m.Remark)
</td>
</tr>
<tr>
<td width="60px" style="width:100px;">
编辑页面:
</td>
<td colspan="2">
@Html.TextBoxFor(m => m.EditForm)
</td>
</tr>
</tbody>
</table>
}
</div>
</div>