124 lines
4.6 KiB
Plaintext
124 lines
4.6 KiB
Plaintext
@using WX.CRM.WebHelper;
|
|
@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/Details",
|
|
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;
|
|
});
|
|
|
|
//发送 用户名短信
|
|
$("#btnSensms").click(function () {
|
|
var Orderid = '@ViewBag.Orderid';
|
|
var resid = '@ViewBag.resid';
|
|
var AppUserName = '@ViewBag.AppUserName';
|
|
var PCUserName = '@ViewBag.PCUserName';
|
|
//alert(resid + "--" + AppUserName + "--" + PCUserName);
|
|
if (resid != "") {
|
|
$.getJSON("/Level2/Leve2Order/SendUsernameSms?AppUserName=" + AppUserName + "&PCUserName=" + PCUserName + "&resid=" + resid + "&Orderid=" + Orderid + "&randnum=" + Math.floor(Math.random() * 1000 + 1), function (data) {
|
|
$.messageBox5s('提示', data.message);
|
|
});
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
|
|
@using (Html.BeginForm("Details", "Leve2Order", null, FormMethod.Post, new { Id = "CreateForm" }))
|
|
{
|
|
<div class="formContent">
|
|
|
|
<table class="fromEditTable setTextWidth300">
|
|
<tr>
|
|
<td colspan="4"> @Html.ToolButtonPlain("btnSensms", "icon-lookup", "发送用户名短信", false, "")</td>
|
|
|
|
</tr>
|
|
<tr>
|
|
<td style=" width:100px;">@Html.LabelFor(model => model.ORDERID)</td>
|
|
<td>
|
|
@Html.DisplayTextFor(model => model.ORDERID)
|
|
|
|
</td>
|
|
<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.USERNAME)</td>
|
|
<td>@Html.Raw(ViewBag.USERNAME) </td>
|
|
<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.PRODUCTCODE)
|
|
|
|
</td>
|
|
<td>@Html.Raw(ViewBag.productname)</td>
|
|
<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.ORDERID)</td>
|
|
<td>@Html.DisplayTextFor(model => model.ORDERID)</td>
|
|
<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.BOOKNUM)</td>
|
|
<td>@Html.DisplayTextFor(model => model.BOOKNUM)</td>
|
|
<td style=" width:100px;">@Html.LabelFor(model => model.OTIME)</td>
|
|
<td>@Html.DisplayTextFor(model => model.OTIME)</td>
|
|
</tr>
|
|
<tr>
|
|
<td style=" width:100px;">@Html.LabelFor(model => model.ISPAYED)</td>
|
|
<td>@Html.Raw(ViewBag.ispayed)</td>
|
|
<td></td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
|
|
</div>
|
|
<div class="bas_datagrid">
|
|
@Html.Raw(ViewBag.orderModuleTable)
|
|
@Html.Raw(ViewBag.orderWebPayTable)
|
|
</div>
|
|
<div style="visibility:hidden">
|
|
@Html.TextBoxFor(model => model.ORDERID)
|
|
@Html.TextBoxFor(model => model.USERNAME)
|
|
@Html.TextBoxFor(model => model.ISOPEN)
|
|
</div>
|
|
|
|
}
|
|
|