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

73 lines
2.4 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@model Air.Model.AirB2bDomain.Bas_ParameterGroup
@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: "/Admin/BasParameterGroup/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;
});
});
</script>
<div class="mvctool bgb">
@Html.ToolButtonPlain("btnSave", "icon-save", "保存", false, "")
</div>
@using (Html.BeginForm("Edit", "BasParameterGroup", null, FormMethod.Post, new { Id = "CreateForm" }))
{
@Html.ValidationSummary(true)
@Html.HiddenFor(m=>m.CreateUser)
@Html.HiddenFor(m=>m.Ctime)
<table class="fromEditTable setTextWidth300">
<tbody>
<tr>
<td width="60px" style="width:100px;">
分组ID
</td>
<td style="width:310px">
@Html.TextBoxFor(m => m.GroupId, Request.QueryString["Option"] == "update" ? new { Readonly = "true" } :new object())
@Html.Hidden("hid_option", Request.QueryString["Option"])
</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.GroupName)
</td>
<td width="120px">
@Html.ValidationMessageFor(m => m.GroupName)
</td>
</tr>
</tbody>
</table>
}