ComplianceServer/oldcode/WEB/Views/WeiXin/SzzyOrderRefundThree/Add.cshtml

72 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 WX.CRM.Model.Entity.WX_SZZYORDER_REFUND
@using WX.CRM.WebHelper;
@{
ViewBag.Title = "退款订单录入";
Layout = "~/Views/Shared/_Index_LayoutEdit.cshtml";
}
<div class="mvctool bgb">
@Html.ToolButtonPlain("btnSave", "icon-save", "保存", false, "")
</div>
@using (Html.BeginForm("Add", "SzzyOrderRefund", null, FormMethod.Post, new { Id = "CreateForm" }))
{
@Html.ValidationSummary(true)
<table class="fromEditTable ">
<tr>
<td style="width: 120px;">订单ID</td>
<td style="width:310px"><input type="text" name="SZZYORDERID" id="SZZYORDERID"/></td>
<td></td>
</tr>
<tr>
<td style="width:120px;">退款金额:</td>
<td style="width:310px"><input type="text" name="REFUND" id="REFUND" /></td>
<td width="120px"></td>
</tr>
<tr>
<td style="width:120px;">退款时间:</td>
<td style="width:310px">@Html.WdatePickerText("REFUNDTIME", "")</td>
<td width="120px"></td>
</tr>
<tr>
<td style="width:120px;">备注:</td>
<td style="width:310px">@Html.TextAreaFor(m => m.REMARK, new { style = "width:300px;height:50px" })</td>
<td width="120px"></td>
</tr>
</table>
}
<script type="text/javascript">
$(function () {
$("#btnSave").click(function () {
if ($("#CreateForm").valid()) {
$.r_ajax({
url: "/WeiXin/SzzyOrderRefund/Add",
type: "Post",
data: $("#CreateForm").serialize(),
dataType: "json",
loading: true,
success: function (data) {
if (data.result == "ok") {
//window.parent.frameReturnByMes(data.message);
window.parent.frameReturnByClose();
window.parent.frameReturnByMes('退款单添加成功');
window.parent.frameReturnByReload(false);
}
else {
$.messager.alert("警告", data.message, "error");
}
}
});
}
return false;
});
$("#btnQuery").click(function () {
$('#tablist').tablegrid("Search");
});
});
</script>