133 lines
4.9 KiB
Plaintext
133 lines
4.9 KiB
Plaintext
@using WX.CRM.WebHelper;
|
||
@using WX.CRM.Model.Entity;
|
||
@{
|
||
ViewBag.Title = "退款订单";
|
||
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>
|
||
年:<select id="SltYear">
|
||
<option>2016</option>
|
||
<option>2017</option>
|
||
<option>2018</option>
|
||
<option>2019</option>
|
||
<option>2020</option>
|
||
<option>2021</option>
|
||
<option>2022</option>
|
||
<option>2023</option>
|
||
<option>2024</option>
|
||
<option>2025</option>
|
||
<option>2026</option>
|
||
<option>2027</option>
|
||
<option>2028</option>
|
||
<option>2029</option>
|
||
<option>2030</option>
|
||
</select>
|
||
月:<select id="SltMonth">
|
||
<option>01</option>
|
||
<option>02</option>
|
||
<option>03</option>
|
||
<option>04</option>
|
||
<option>05</option>
|
||
<option>06</option>
|
||
<option>07</option>
|
||
<option>08</option>
|
||
<option>09</option>
|
||
<option>10</option>
|
||
<option>11</option>
|
||
<option>12</option>
|
||
</select>
|
||
</li>
|
||
<li>@Html.Action("UserComBoxByRole", "Control", new {controlName = "nb1", onLoadSucced = "onLoadSucced()", roleCodes = ViewBag.roleCodes, saledeptid = "", salegroupid = ViewBag.userGroupId, iseid = "0", inneruserid = ViewBag.inneruserid})</li>
|
||
<li>订单ID:<input type="text" name="txt_OrderId" style="width:150px" /></li>
|
||
</ul>
|
||
</div>
|
||
@Html.Raw(ViewBag.gridTable)
|
||
</div>
|
||
<script type="text/javascript">
|
||
function Appendzero(obj) {
|
||
if (obj < 10) return "0" + "" + obj;
|
||
else return obj;
|
||
}
|
||
function string2date(str){
|
||
return new Date(Date.parse(str.replace(/-/g, "/")));
|
||
}
|
||
$(function () {
|
||
var m = string2date("@ViewBag.Month");
|
||
$("#SltYear").val(m.getFullYear());
|
||
$("#SltMonth").val(Appendzero(m.getMonth() + 1));
|
||
|
||
$('#tablist').tablegrid({
|
||
url: '/WeiXin/SzzyOrderRefundThree/Detail',
|
||
height: $(window).height() - 110,
|
||
loadNow: true,
|
||
data: GetControlValue,
|
||
onLoadError: function () {
|
||
$.messager.alert("警告", "信息加载失败!", "error");
|
||
}
|
||
});
|
||
|
||
$(window).resize(function () {//自动适应大小
|
||
$('#tablist').tablegrid('resize', {
|
||
height: $(window).height() - 110
|
||
});
|
||
});
|
||
});
|
||
function frameReturnByClose() {
|
||
$("#modalwindow").window('close');
|
||
}
|
||
function frameReturnByReload(flag) {
|
||
$("#tablist").tablegrid("Load");
|
||
}
|
||
function frameReturnByMes(mes) {
|
||
$.messageBox5s('提示', mes);
|
||
}
|
||
$("#btnQuery").click(function () {
|
||
$('#tablist').tablegrid("Search");
|
||
});
|
||
//function loadtablegrid() {
|
||
// $('#tablist').tablegrid({
|
||
// url: '/WeiXin/SzzyOrderRefund/Detail',
|
||
// height: $(window).height() - 110,
|
||
// loadNow: true,
|
||
// data: GetControlValue,
|
||
// onLoadError: function () {
|
||
// $.messager.alert("警告", "信息加载失败!", "error");
|
||
// }
|
||
// });
|
||
//}
|
||
function GetControlValue() {
|
||
var year = $("#SltYear").val();
|
||
var mon = $("#SltMonth").val();
|
||
var yearmonth = year + "-" + mon + "-01";
|
||
return { month: yearmonth, saleDeptId: $("#nb1_uc_org_depts").val(), groupId: $("#nb1_uc_org_groups").val(), userId: $("#nb1_uc_org_ids").val()};
|
||
}
|
||
function onLoadSucced() {
|
||
$('#tablist').tablegrid("Search");
|
||
}
|
||
|
||
function GetRefundInfo(orderId) {
|
||
if (orderId != undefined && orderId.length != 0 && orderId != 0) {
|
||
$("#modalwindow").html(GetIframeHtml("/WeiXin/SzzyOrderRefundThree/Info?orderId=" + orderId + "&Ieguid=" + GetGuid()));
|
||
$("#modalwindow").window({ title: '退款信息', width: 830, height: 550, iconCls: 'icon-edit' }).window('open');
|
||
} else { $.messageBox5s('提示', '@Suggestion.PlaseChooseToOperatingRecords'); }
|
||
}
|
||
|
||
</script>
|
||
@*ToolBar事件处理*@
|
||
<script type="text/javascript">
|
||
function GetIframeHtml(src) {
|
||
return "<iframe width='100%' height='98%' scrolling='no' frameborder='0'' src='" + src + "'></iframe>";
|
||
}
|
||
//获取datagrid头部及字段
|
||
function getDataGridHeader() {
|
||
var columns = $('#tablist').tablegrid("getAllHead");
|
||
return columns;
|
||
}
|
||
</script>
|