ComplianceServer/oldcode/WEB/Views/Level2/L2OrderModIp/OrderDetail.cshtml

83 lines
2.6 KiB
Plaintext

@using WX.CRM.WebHelper;
@using WX.CRM.Common
@model WX.CRM.WEB.ViewModel.Level2.UpdateOrderIP
@{
ViewBag.Title = "OrderDetail";
Layout = "~/Views/Shared/_Index_LayoutEdit.cshtml";
}
<style>
fieldset {
margin: 10px;
width: inherit;
}
</style>
<script type="text/javascript">
$(function () {
$("#btnSave").click(function () {
if ($("#CreateForm").valid()) {
$.r_ajax({
url: "/Level2/L2OrderModIp/ModIp",
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("ModIp", "L2OrderModIp", null, FormMethod.Post, new { Id = "CreateForm" }))
{
<div class="formContent">
<table class="fromEditTable setTextWidth300">
<tr>
<td style=" width:100px;">订单号</td>
<td>
@Html.DisplayTextFor(model => model.OrderId)
@Html.HiddenFor(model => model.OrderId)
</td>
<td width="120px"></td>
</tr>
<tr>
<td style=" width:100px;">用户名</td>
<td>
@Html.Raw(PhoneHelper.FormatPhoneUserName(Utility.DecryptUrlDecode(Model.Username)))
@Html.HiddenFor(model => model.Username)
</td>
<td width="120px"></td>
</tr>
<tr>
<td style=" width:100px;">旧IP</td>
<td>@Html.DisplayTextFor(model => model.IP)</td>
<td width="120px"></td>
</tr>
<tr>
<td style=" width:100px;">新IP</td>
<td>@Html.TextBoxFor(model => model.IP)</td>
<td width="120px">
@Html.ValidationMessageFor(m => m.IP)
</td>
</tr>
</table>
</div>
}