110 lines
3.6 KiB
Plaintext
110 lines
3.6 KiB
Plaintext
@using WX.CRM.WebHelper;
|
|
@model WX.CRM.Model.Entity.L2_SOFT_REFUNDAPPLAY
|
|
@{
|
|
ViewBag.Title = "CreateOrder";
|
|
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/RefundApplay/AddRefundApplay",
|
|
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("CreateOrder", "RefundApplay", 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>
|
|
</tr>
|
|
<tr>
|
|
<td style=" width:100px;">用户名</td>
|
|
<td>
|
|
@Html.DisplayTextFor(model => model.USERNAME)
|
|
@Html.HiddenFor(model => model.USERNAME)
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td style=" width:100px;">产品</td>
|
|
<td>
|
|
@{
|
|
var product = new WX.CRM.WEB.ViewModel.Level2.L2SoftProductHelper().getProduct(Model.PRODUCTCODE);
|
|
string pruductName = product == null ? "" : product.PRODUCTNAME;
|
|
}
|
|
@pruductName
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td style=" width:100px;">订单状态</td>
|
|
<td>
|
|
@{string orderstatus = WX.CRM.Common.Utility.GetEnumNameByValue<WX.CRM.Model.Enum.L2OrderStatus>(Convert.ToInt32(Model.L2ORDERSTATUS)); }
|
|
@orderstatus
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td style=" width:100px;">开通天数</td>
|
|
<td>@Html.DisplayTextFor(model => model.TOTALDAYS)</td>
|
|
</tr>
|
|
<tr>
|
|
<td style=" width:100px;">总金额</td>
|
|
<td>@Html.DisplayTextFor(model => model.TOTALPRICE)</td>
|
|
</tr>
|
|
<tr>
|
|
<td style=" width:100px;">扣除金额</td>
|
|
<td>
|
|
@{decimal amt = Model.TOTALPRICE - Model.REFUNDAMOUNT;
|
|
}
|
|
@amt
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td style=" width:100px;">退款金额</td>
|
|
<td>@Html.DisplayTextFor(model => model.REFUNDAMOUNT)</td>
|
|
</tr>
|
|
<tr>
|
|
<td style=" width:100px;">退款原因</td>
|
|
<td>@Html.TextAreaFor(model => model.REASON)</td>
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
}
|
|
|