ComplianceServer/oldcode/WEB/Views/WeiXin/SzzyOrderRefund/Edit.cshtml

83 lines
3.0 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("Edit", "SzzyOrderRefund", null, FormMethod.Post, new { Id = "CreateForm" }))
{
@Html.ValidationSummary(true)
@Html.HiddenFor(m => m.PKID)
<table class="fromEditTable ">
<tr>
<td style="width: 120px;">订单ID</td>
<td style="width:310px">@Html.TextBoxFor(m => m.SZZYORDERID)</td>
<td></td>
</tr>
<tr>
<td style="width:120px;">退款金额:</td>
<td style="width:310px">@Html.TextBoxFor(m => m.REFUND)</td>
<td width="120px"></td>
</tr>
<tr>
<td style="width:120px;">退款时间:</td>
<td style="width:310px">
@Html.TextBoxFor(m => m.REFUNDTIME, new
{
Value = (Model.REFUNDTIME == DateTime.MinValue ? DateTime.Now.ToString("yyyy-MM-dd") : Model.REFUNDTIME.ToString("yyyy-MM-dd")),
ControlToValidate = "REFUNDTIME",
ErrorMessage = "*日期格式不对",
ValidationExpression = "\\d{4}-\\d{1,2}-\\d{1,2}",
onclick = "WdatePicker()",
@class = "Wdate"
})
</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/Edit",
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>