TG.WXCRM.V4/WEB/Views/Level2/RefundApplay/L2_ModRefundMoney.cshtml

78 lines
2.5 KiB
Plaintext

@{
ViewBag.Title = "L2_ModRefundMoney";
Layout = "~/Views/Shared/_Index_LayoutEdit.cshtml";
}
@using WX.CRM.WebHelper;
@model WX.CRM.Model.Entity.L2_SOFT_REFUNDAPPLAY
@Styles.Render("~/Content/data_grid_list.css")
<div class="mvctool bgb">
@Html.ToolButtonPlain("btnSave", "icon-save", "保存", false, "")
</div>
@using (Html.BeginForm("L2_ModRefundMoney", "RefundApplay", null, FormMethod.Post, new { Id = "CreateForm" }))
{
<div class="formContent">
<table class="fromEditTable setTextWidth300">
<tr>
<td style=" width:100px;">用户名</td>
<td>@Html.DisplayFor(model => model.USERNAME)</td>
</tr>
<tr>
<td style=" width:100px;">订单号</td>
<td>@Html.DisplayTextFor(model => model.ORDERID)</td>
</tr>
<tr>
<td style=" width:100px;">订单天数</td>
<td>@Html.DisplayTextFor(model => model.TOTALDAYS)</td>
</tr>
<tr>
<td style=" width:100px;">订单金额</td>
<td>@Html.DisplayFor(model => model.TOTALPRICE)</td>
</tr>
<tr>
<td style=" width:100px;">退款金额</td>
<td style=" width:100px;">
@Html.TextBoxFor(m => m.REFUNDAMOUNT)
</td>
</tr>
</table>
</div>
<div style="visibility:hidden">
@Html.TextBoxFor(model => model.PKID)
@Html.TextBoxFor(model => model.ORDERSTATUS)
</div>
}
<script type="text/javascript">
$(function () {
$("#btnSave").click(function () {
if ($("#CreateForm").valid()) {
$.r_ajax({
url: "/Level2/RefundApplay/L2_RefundModMoneyClick",
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>