TG.WXCRM.V4/WEB/Views/WeiXin/SzzyOrderRefund/refundContract.cshtml

89 lines
3.2 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.

@using WX.CRM.WebHelper;
@{
ViewBag.Title = "refundContract";
Layout = "~/Views/Shared/_Index_Layout2.cshtml";
}
<div class="mvctool">
@Html.ToolButton("btnQuery", "icon-search", "查询", true)
</div>
<div class="bas_datagrid">
<div id="tb" style="padding:5px;height:auto" class="grid_toolbar">
<ul class="toolBar_ul">
<li>
事业部:
@if (ViewBag.DeptList != null)
{
<select id="businessId" name="slt_businessId" style="width:170px">
<option value="">请选择</option>
@foreach (var item in ViewBag.DeptList as List<SelectListItem>)
{
<option value="@item.Value" selected="@item.Selected">@item.Text</option>
}
</select>
}
</li>
<li>订单ID<input type="text" name="txt_orderId" id="txt_orderId" style="width:150px" /></li>
<li>退款时间:@Html.WdatePickerText("txt_sTime", new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1).ToString("yyyy-MM-dd"))-@Html.WdatePickerText("txt_eTime", new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1).AddMonths(1).AddDays(-1).ToString("yyyy-MM-dd"))</li>
</ul>
</div>
@Html.Raw(ViewBag.gridTable)
</div>
<script type="text/javascript">
$(function () {
loadtablegrid();
$(window).resize(function () {//自动适应大小
$('#tablist').tablegrid('resize', {
height: $(window).height() - 110
});
});
$("#btnQuery").click(function () {
$('#tablist').tablegrid("Search");
});
//导出
$("#btnExport").click(function () {
Export();
});
});
function frameReturnByClose() {
$("#modalwindow").window('close');
}
function frameReturnByReload(flag) {
$("#tablist").tablegrid("Load");
}
function frameReturnByMes(mes) {
$.messageBox5s('提示', mes);
}
function loadtablegrid() {
$('#tablist').tablegrid({
url: '/WeiXin/SzzyOrderRefund/refundContract',
height: $(window).height() - 110,
loadNow: true,
onLoadError: function () {
$.messager.alert("警告", "信息加载失败!", "error");
}
});
}
function ViewContract(orderId, id) {
if (!orderId) {
alert("参数错误!");
return;
}
$("#modalwindow").html(GetIframeHtml("/WeiXin/SzzyOrderRefund/ViewContract?orderId=" + orderId + "&id=" + id + "&Ieguid=" + GetGuid()));
$("#modalwindow").window({ title: '退款协议', width: 830, height: 550, iconCls: 'icon-edit' }).window('open');
}
function GetIframeHtml(src) {
return "<iframe width='100%' height='98%' scrolling='yes' frameborder='0'' src='" + src + "'></iframe>";
}
//导出
function Export() {
var param = "&businessId=" + $("#businessId").val() + "&orderId=" + $("#txt_orderId").val() + "&stime=" + $("#txt_sTime").val() + "&etime=" + $("#txt_eTime").val();
window.open("/weixin/SzzyOrderRefund/refundContractExport?" + param);
}
</script>