ComplianceServer/oldcode/WEB/Views/Level2/Leve2Order/OpenOrderDetails.cshtml

118 lines
3.8 KiB
Plaintext

@using WX.CRM.WebHelper;
@using WX.CRM.Common
@model WX.CRM.WEB.ViewModel.Level2.Soft_OrderDetail
@{
ViewBag.Title = "Details";
Layout = "~/Views/Shared/_Index_LayoutEdit.cshtml";
}
@Styles.Render("~/Content/data_grid_list.css")
<style>
fieldset {
margin: 10px;
width: inherit;
}
</style>
<script type="text/javascript">
$(function () {
$("#btnSave").click(function () {
if ($("#CreateForm").valid()) {
$.r_ajax({
url: "/Level2/Leve2Order/OpenOrderDetails",
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("Details", "Leve2Order", null, FormMethod.Post, new { Id = "CreateForm" }))
{
<div class="formContent">
<table class="fromEditTable setTextWidth300">
<tr>
<td style=" width:100px;">@Html.LabelFor(model => model.ORDERID)</td>
<td>
@Html.DisplayTextFor(model => model.ORDERID)
</td>
</tr>
<tr>
<td style=" width:100px;">@Html.LabelFor(model => model.USERNAME)</td>
<td>
@Html.Raw(PhoneHelper.FormatPhoneUserName(Utility.DecryptUrlDecode(Model.USERNAME)))
</td>
</tr>
<tr>
<td style=" width:100px;">@Html.LabelFor(model => model.PRODUCTCODE)</td>
<td>@Html.Raw(ViewBag.productname)</td>
</tr>
<tr>
<td style=" width:100px;">@Html.LabelFor(model => model.ORDERID)</td>
<td>@Html.DisplayTextFor(model => model.ORDERID)</td>
</tr>
<tr>
<td style=" width:100px;">@Html.LabelFor(model => model.BOOKNUM)</td>
<td>@Html.DisplayTextFor(model => model.BOOKNUM)</td>
</tr>
<tr>
<td style=" width:100px;">@Html.LabelFor(model => model.TOTALDAYS)</td>
<td>@Html.DisplayTextFor(model => model.TOTALDAYS)</td>
</tr>
<tr>
<td style=" width:100px;">@Html.LabelFor(model => model.TOTALPRICE)</td>
<td>@Html.DisplayTextFor(model => model.TOTALPRICE)</td>
</tr>
<tr>
<td style=" width:100px;">@Html.LabelFor(model => model.ORDERSTATUS)</td>
<td>@Html.Raw(ViewBag.OrderStatu)</td>
</tr>
<tr>
<td style=" width:100px;">@Html.LabelFor(model => model.ISOPEN)</td>
<td>
@Html.Raw(ViewBag.isopen)
</td>
</tr>
<tr>
<td style=" width:100px;">@Html.LabelFor(model => model.OTIME)</td>
<td>@Html.DisplayTextFor(model => model.OTIME)</td>
</tr>
</table>
</div>
<div class="bas_datagrid">
@Html.Raw(ViewBag.orderModuleTable)
</div>
<div style="visibility:hidden">
@Html.TextBoxFor(model => model.ORDERID)
@Html.TextBoxFor(model => model.USERNAME)
@Html.TextBoxFor(model => model.ISOPEN)
</div>
}