You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
169 lines
6.2 KiB
Plaintext
169 lines
6.2 KiB
Plaintext
2 months ago
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Supplier.aspx.cs" Inherits="TradeManage.TongJi.Supplier" %>
|
||
|
|
||
|
<!DOCTYPE html>
|
||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||
|
<head id="Head1">
|
||
|
<title>分析</title>
|
||
|
<link rel="stylesheet" type="text/css" href="../themes/default/easyui.css" />
|
||
|
<link rel="stylesheet" type="text/css" href="../themes/icon.css" />
|
||
|
<link rel="stylesheet" type="text/css" href="../themes/New.css" />
|
||
|
<link rel="stylesheet" type="text/css" href="../themes/DataGrid.css" />
|
||
|
<script src="../Scripts/jquery.min.js" type="text/javascript"></script>
|
||
|
<script src="../Scripts/MicrosoftAjax.js" type="text/javascript"></script>
|
||
|
<script src="../Scripts/jquery.easyui.min.js" type="text/javascript"></script>
|
||
|
<script src="../Scripts/DataGrid.js" type="text/javascript"></script>
|
||
|
<script src="../Scripts/DataPager.js" type="text/javascript"></script>
|
||
|
<script src="../Scripts/jquery.bgiframe.min.js" type="text/javascript"></script>
|
||
|
<script src="../Scripts/Global.js" type="text/javascript"></script>
|
||
|
<script src="../Scripts/WindowLoad.js" type="text/javascript"></script>
|
||
|
<script src="../Scripts/DatePicker/WdatePicker.js" type="text/javascript"></script>
|
||
|
<link rel="stylesheet" type="text/css" href="../Scripts/fancybox/jquery.fancybox-1.3.4.css" media="screen" />
|
||
|
<script src="../Scripts/MaskedTextBox.js" type="text/javascript"></script>
|
||
|
<script type="text/javascript" src="../Scripts/fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
|
||
|
<script type="text/javascript" src="../Scripts/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
|
||
|
<script type="text/javascript" src="../Scripts/highcharts.js"></script>
|
||
|
<script type="text/javascript" src="../Scripts/exporting.js"></script>
|
||
|
<script type="text/javascript">
|
||
|
|
||
|
var WindowLoadModel = new WindowLoad();
|
||
|
$(document).ready(function () {
|
||
|
WindowLoadModel.ApplicationPath = "../";
|
||
|
WindowLoadModel.ControlID = "WindowLoad";
|
||
|
WindowLoadModel.Isbgiframe = true;
|
||
|
WindowLoadModel.Load();
|
||
|
ajaxInit(WindowLoadModel);
|
||
|
|
||
|
$("#btn_sch").bind("click", function () {
|
||
|
|
||
|
ReadData();
|
||
|
|
||
|
});
|
||
|
|
||
|
});
|
||
|
|
||
|
function ReadData() {
|
||
|
if ($("#txt_Supplier").val() == "") {
|
||
|
alert("请输入供应商");
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
var param = new Object();
|
||
|
|
||
|
param.Supplier = $("#txt_Supplier").val();
|
||
|
|
||
|
WindowLoadModel.Show();
|
||
|
$.ajax({
|
||
|
url: "TJ_CountServer.asmx/GetSupplierData",
|
||
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
||
|
//async: false,
|
||
|
success: function (data) {
|
||
|
WindowLoadModel.Hide();
|
||
|
if (data.d != null && data.d != "") {
|
||
|
$("#tb1").html(data.d);
|
||
|
}
|
||
|
|
||
|
}
|
||
|
});
|
||
|
|
||
|
}
|
||
|
|
||
|
function Rowsp(rowindex)
|
||
|
{
|
||
|
var content = "";
|
||
|
var rowspan = 1;
|
||
|
var trindx = -1;
|
||
|
$("#tb1 td[rowindex=" + rowindex + "]").each(function (i) {
|
||
|
if (content == $(this).html())
|
||
|
{
|
||
|
rowspan++;
|
||
|
$(this).hide();
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
if (rowspan > 1 && trindx>-1)
|
||
|
$("#tb1 td[rowindex=" + rowindex + "][rowtr=" + trindx + "]").attr("rowspan", rowspan);
|
||
|
trindx = $(this).attr("rowtr");
|
||
|
rowspan = 1;
|
||
|
|
||
|
}
|
||
|
|
||
|
content = $(this).html();
|
||
|
|
||
|
});
|
||
|
if (rowspan > 1 && trindx > -1)
|
||
|
$("#tb1 td[rowindex=" + rowindex + "][rowtr=" + trindx + "]").attr("rowspan", rowspan);
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
function ExportData() {
|
||
|
if ($("#txt_Supplier").val() == "") {
|
||
|
alert("请输入供应商");
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
var param = new Object();
|
||
|
param.Supplier = $("#txt_Supplier").val();
|
||
|
|
||
|
var fname ="供应商编码.xls";
|
||
|
$.ajax({
|
||
|
url: "TJ_CountServer.asmx/GetSupplierExcel",
|
||
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
||
|
async: false,
|
||
|
success: function (data) {
|
||
|
|
||
|
params = { FilePath: data.d, FileName: fname };
|
||
|
|
||
|
window.location = "../GlobalAshx/DownFile.ashx?" + jQuery.param(params);
|
||
|
}
|
||
|
});
|
||
|
|
||
|
}
|
||
|
|
||
|
</script>
|
||
|
|
||
|
</head>
|
||
|
<body class="headbody">
|
||
|
|
||
|
<div class="title_ico">
|
||
|
报表
|
||
|
</div>
|
||
|
|
||
|
<table border="1" cellpadding="0" cellspacing="0" style="width: 99%;" align="center" class="tableAll">
|
||
|
|
||
|
<tr>
|
||
|
<td class="f1" width="13%" >供应商:</td>
|
||
|
<td width="22%">
|
||
|
<input id="txt_Supplier" class="editTextbox" style="width: 120px;" type="text" /></td>
|
||
|
<td class="f1" width="10%"> </td>
|
||
|
<td >
|
||
|
</td>
|
||
|
<td class="f1" width="10%">
|
||
|
<input id="btn_sch" class="btnClass btnClassFind" type="button" value="查询" />
|
||
|
<input id="cmdOut" class="btnClass btnClassExcelTemplate" onclick="ExportData();" type="button" value="导出报表" /></td>
|
||
|
|
||
|
|
||
|
</tr>
|
||
|
|
||
|
|
||
|
<tr>
|
||
|
<td valign="top" colspan="5">
|
||
|
<%-- 共3页 第<select id="select_page1" class="selectClass" style="width:50px" name="D4">
|
||
|
</select>页 每页<input id="txt_Num1" class="editTextbox" style="width:50px;" type="text" value="100"/>条 <br />--%>
|
||
|
<div style="width:100%"><table class="DataGridTableStyle" style="width:100%" id="tb1"></table></div>
|
||
|
<%-- <br />
|
||
|
共3页 第<select id="select_page" class="selectClass" style="width:50px" name="D4">
|
||
|
</select>页 每页<input id="txt_Num" class="editTextbox" style="width:50px;" type="text" value="100"/>条--%>
|
||
|
</td>
|
||
|
</tr>
|
||
|
|
||
|
|
||
|
</table>
|
||
|
|
||
|
</body>
|
||
|
</html>
|
||
|
|
||
|
|
||
|
|
||
|
|