ComplianceServer/oldcode/WEB/Views/WeiXin/JZOrder/HgRecord.cshtml

123 lines
3.9 KiB
Plaintext

@using WX.CRM.WebHelper;
@{
ViewBag.Title = "HgRecord";
Layout = "~/Views/Shared/_Index_LayoutEdit.cshtml";
}
<link href="/Content/data_grid_list.css" rel="stylesheet" />
<script src="/Scripts/op/jquery.tablegrid.js"></script>
<style>
.formContent {
height:auto;
}
.layui-table td, .layui-table th {
padding: 5px 15px;
}
</style>
<script type="text/javascript">
if (window["context"] == undefined) {
if (!window.location.origin) {
window.location.origin = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ':' + window.location.port : '');
}
window["context"] = location.origin + "/V6.0";
}
$(function () {
$('#tablist').tablegrid({
url: '/WeiXin/JZOrder/GetCsvrRecordList?resid=@ViewBag.resid',
height: $(window).height() - 250,
loadNow: true,
onLoadError: function () {
$.messager.alert("警告", "信息加载失败!", "error");
}
});
$(window).resize(function () {//自动适应大小
$('#tablist').tablegrid('resize', {
height: $(window).height() - 250
});
});
$("#btnSave").click(function () {
if ($("#CreateForm").valid()) {
$.r_ajax({
url: "/WeiXin/JZOrder/HgRecordSave",
type: "POST",
data: {"orderId":@ViewBag.orderid,"resid":"@ViewBag.resid","recordId":$('#recordId').val(),"content":$('#txt_content').val()},
dataType: "json",
loading: true,
success: function (data) {
if (data.type == 1) {
window.parent.postMessage({ message: data.message }, '*');
//window.parent.frameReturnByMes(data.message);
//window.parent.frameReturnByReload(true);
//window.parent.frameReturnByClose()
}
else {
//$.messager.alert("警告", data.message, "error");
window.parent.postMessage({ message: data.message }, '*');
}
}
});
}
return false;
});
});
function selectRecordId(val){
$('#recordId').val(val);
}
</script>
<div class="mvctool bgb">
@Html.ToolButtonPlain("btnSave", "icon-save", "保存", false, "")
</div>
@using (Html.BeginForm("HgRecord", "JZOrder", null, FormMethod.Post, new { Id = "CreateForm" }))
{
@Html.ValidationSummary(true)
<table class="fromEditTable ">
<tbody>
<tr>
<td style="width:120px;">
订单号
</td>
<td style="width:260px">
@ViewBag.orderid
</td>
<td>
</td>
</tr>
<tr>
<td style="width:100px;">
录音ID
</td>
<td style="width:260px">
<input disabled value="" id="recordId" type="text" class="layui-input" />
</td>
<td>
请从下面的列表中选择录音ID
</td>
</tr>
<tr>
<td style="width:100px;">
点评
</td>
<td style="width:260px" colspan="2">
<textarea id="txt_content" name="txt_content" style="width: 360px;height:50px;min-height:50px;"></textarea>
</td>
</tr>
</tbody>
</table>
}
<div class="bas_datagrid" style="height:300px;">
@Html.Raw(ViewBag.gridTable)
</div>
<script>
</script>