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.
DS7/DSWeb/CRM/SaleProfitReport.aspx

386 lines
17 KiB
Plaintext

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SaleProfitReport.aspx.cs" Inherits="DSWeb.CRM.SaleProfitReport" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>业务员业绩报表</title>
<script src="../js/m97date/wdatepicker.js" type="text/javascript"></script>
<link rel="STYLESHEET" type="text/css" href="../theme/button/default/Fee.css" />
<!--按钮条-->
<style type="text/css">
.btn-content0
{
width: 100%;
height: 30px;
background: url( "../images/content-header.gif" );
cursor: default;
}
.btncss
{
width:100px;
BORDER-RIGHT: #2C59AA 1px solid;
PADDING-RIGHT: 2px; BORDER-TOP: #2C59AA 1px solid;
PADDING-LEFT: 2px; FONT-SIZE: 12px; FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#ffffff, EndColorStr=#C3DAF5);
BORDER-LEFT: #2C59AA 1px solid; CURSOR: hand; COLOR: black; PADDING-TOP: 2px;
BORDER-BOTTOM: #2C59AA 1px solid;
}
</style>
<!--Grid-->
<link rel="STYLESHEET" type="text/css" href="../theme/dhtmlxgrid.css" />
<link rel="STYLESHEET" type="text/css" href="../theme/page.css" />
<script src="../js/dhtmlxcommon.js" type="text/javascript"></script>
<script src="../js/dhtmlxgrid.js" type="text/javascript"></script>
<script src="../js/dhtmlxgridcell.js" type="text/javascript"></script>
<script src="../js/dhtmlxcombo.js" type="text/javascript"></script>
<script src="../js/dhtmlxgrid_keymap_excel.js" type="text/javascript"></script>
<script src="../js/dhtmlxgrid_drag.js" type="text/javascript"></script>
<script src="../js/dhtmlxgrid_group.js" type="text/javascript"></script>
<script src="../js/dhtmlxgrid_mcol.js" type="text/javascript"></script>
<script src="../js/jsGridSaleProfitReport.js" type="text/javascript"></script>
<script type="text/javascript" src="../js/browser.js" ></script>
<script type="text/javascript" src="../js/TCombo.js" ></script>
<script src="../js/json2.js" type="text/javascript"></script>
<style type="text/css">
#divh
{
position: absolute;
z-index: 1001;
left: 40%;
top: 30%;
width: 300px;
margin-left: -200px;
border: solid 6px #ddd;
}
.box
{
border: solid 1px #999;
font-size: 14px;
}
#tit
{
border-bottom: solid 1px #999;
background-color: #cccccc;
padding: 6px;
font-weight: bold;
}
#bod
{
background-color: #ffffff;
padding: 20px;
}
#bot
{
border-top: solid 1px #999;
background-color: #cccccc;
text-align: right;
}
.menu
{
position: absolute;
z-index: 101;
width: 150px;
border: solid 1px #999;
padding: 2px;
background-color: #ffffff;
}
.menu a
{
padding: 5px 6px;
font-size: 12px;
color: #000000;
cursor: default;
text-decoration: none;
padding-top: 1px;
width: 90px;
}
.menu a:hover
{
background-color: #507cd1;
color: #ffffff;
}
.regular
{
text-decoration: none;
cursor: default;
margin-right: 20px;
}
.imgLeftButton
{
background-image: url(../images/icons/edit_right.gif);
height: 19px;
width: 19px;
margin-left: 22px;
margin-bottom: 30px;
}
.imgLeftHoverButton
{
background-image: url(../images/icons/edit_righthover.gif);
height: 19px;
width: 19px;
margin-left: 22px;
margin-bottom: 30px;
}
.imgRightButton
{
background-image: url(../images/icons/edit_left.gif);
height: 19px;
width: 19px;
margin-left: 22px;
}
.imgRightHoverButton
{
background-image: url(../images/icons/edit_lefthover.gif);
height: 19px;
width: 19px;
margin-left: 22px;
}
.imgUpButton
{
background-image: url(../images/icons/edit_up.gif);
height: 19px;
width: 19px;
margin-left: 22px;
margin-bottom: 30px;
}
.imgUpHoverButton
{
background-image: url(../images/icons/edit_uphover.gif);
height: 19px;
width: 19px;
margin-left: 22px;
margin-bottom: 30px;
}
.imgDownButton
{
background-image: url(../images/icons/edit_down.gif);
height: 19px;
width: 19px;
margin-left: 22px;
}
.imgDownHoverButton
{
background-image: url(../images/icons/edit_downhover.gif);
height: 19px;
width: 19px;
margin-left: 22px;
}
.enterButton
{
display: block;
float: left;
margin: 0 7px 0 0;
background-color: #d5d5d5;
border: 1px solid #dedede;
border-top: 1px solid #eee;
border-left: 1px solid #eee;
font-family: "Lucida Grande" , Tahoma, Arial, Verdana, sans-serif;
font-size: 12px;
line-height: 130%;
text-decoration: none;
font-weight: bold;
color: #565656;
cursor: default;
padding: 5px 10px 6px 7px; /* Links */
width: 60px;
text-align: center;
margin-top: 8px;
margin-left: 20px;
}
.enterButton:hover
{
background-color: #dff4ff;
border: 1px solid #c2e1ef;
color: #336699;
}
.enterButton:active
{
background-color: #6299c5;
border: 1px solid #6299c5;
color: #fff;
}
.dvMenu
{
display: block;
background-color: #ffffff;
border: 1px solid #dedede;
border-top: 1px solid #eee;
border-left: 1px solid #eee;
font-family: "Lucida Grande" , Tahoma, Arial, Verdana, sans-serif;
font-size: 12px;
line-height: 130%;
text-decoration: none;
font-weight: bold;
color: #565656;
cursor: default;
padding: 8px 0px 6px 7px; /* Links */
width: 95%;
text-align: center;
}
.dvMenu:hover
{
background-color: #dff4ff;
border: 1px solid #c2e1ef;
color: #336699;
}
.dvMenu:active
{
background-color: #6299c5;
border: 1px solid #6299c5;
color: #fff;
}
.txtTab{border:1px solid #A0A0A4; border-color:#6699CC;}
</style>
<!--自定义下拉框-->
<link href="../theme/dhtmlxcombo.css" type="text/css" rel="Stylesheet" media="screen" />
<script type="text/javascript" src="../js/dhtmlxcommon.js"></script>
<script type="text/javascript" src="../js/dhtmlxcombo.js"></script>
<script type="text/javascript" src="../js/dhtmlxcombo_whp.js"></script>
<script type="text/javascript">
window.dhx_globalImgPath="../images/";
</script>
<!--GridEnd-->
<script language="javascript" type="text/javascript">
//回车键控制
document.onkeypress=function()
{
if(event.keyCode==13)
{
ShowDetailSelect();
}
}
</script>
</head>
<body onload="getonload();" style="border: 0px; width: 100%; height: 100%; overflow:hidden;">
<form id="form1" runat="server">
<div style="width: 100%; vertical-align: text-bottom;" class="btn-content0">
<div class="btn-blank"></div>
<div class="xbtn-img" id=divexcel runat=server onclick="setExcel()">
<div class="btnimg"><img src="../images/icons/excel.gif" width="16px" height="16px" title="导出" class="cssfont"/></div>
</div>
</div>
<div style="margin-top:10px;">
<table style="width:100%; border:0; padding:0;">
<tr>
<td style="width:10px;" height="20px"></td>
<td style="width:60px;"><div style="width:60px; text-align:right;" class="cssfont">业务类型:</div></td>
<td style="width:112px;">
<asp:DropDownList ID="ddlBSTYPE" runat="server" Width="82px" Height=22px></asp:DropDownList>
</td>
<td style="width:60px;"><div style="width:60px; text-align:right;" class="cssfont">提单号:</div></td>
<td style="width:112px;">
<input id="tbNO" type="text" class="txtTab" style="width:80px; height:18px;"/>
</td>
<td style="width:60px;"><div style="width:60px; text-align:right;" class="cssfont">业务日期:</div></td>
<td style="width:112px;">
<asp:TextBox ID="tbETD" runat="server" CssClass="txtTab" onclick="WdatePicker()" ReadOnly="True" Width="80px" Height=18px></asp:TextBox>
</td>
<td width="40px"><div style="width:40px;text-align:center;" class="cssfont">至</div></td>
<td style="width:112px;">
<asp:TextBox ID="tbETD2" runat="server" onclick="WdatePicker()" CssClass="txtTab" ReadOnly="True" Width="80px" Height=18px></asp:TextBox>
</td>
<td><div style="width:60px;text-align:right;" class="cssfont">商品名称:</div></td>
<td>
<select id="ddlGOODSNAME" runat=server class="txtTab" style="width:80px"></select>
</td>
<td valign="middle" style="width:100px;">
<input id="btISJHCU" runat="server" type="button" value="查询" onclick="ShowDetailSelect();" style="width:50px; height:20px;" class="btncss"/>
</td>
<td width="30%"></td>
</tr>
<tr>
<td style="width:10px;"></td>
<td style="width:60px;"><div style="width:60px;text-align:right;" class="cssfont">委托单位:</div></td>
<td style="width:112px;">
<select id="ddlCUSTOMERNAME" runat=server class="txtTab" style="width:80px"></select>
</td>
<td style="width:60px;"><div style="width:60px;text-align:right;" class="cssfont">揽货人:</div></td>
<td style="width:80px;">
<select id="ddlSALE" runat=server class="txtTab" style="width:82px"></select>
</td>
<td style="width:60px;"><div style="width:60px; text-align:right;" class="cssfont">船名:</div></td>
<td>
<select id="ddlVESSEL" runat="server" class="txtTab" style="width:82px"></select>
</td>
<td><div style="width:40px;text-align:right;" class="cssfont">航次:</div></td>
<td>
<input id="hd_comboVOYNO" type="text" class="txtTab" style="width:80px; height:18px;"/>
</td>
<td><div style="width:60px;text-align:right;" class="cssfont">分部名称:</div></td>
<td>
<select id="list_subcompany" runat="server" class="txtTab" style="width:80px"></select>
</td>
<td valign="middle" style="width:100px;">
<input id="Button1" runat="server" type="button" value="清空" onclick="ShowDelSelect();" style="width:50px; height:20px;" class="btncss"/>
</td>
<td width="30%"></td>
</tr>
</table>
</div>
<div oncontextmenu="return false">
<div id="mygrid_container_log" style="width: 100%; height: 340px;" runat="server" class="cssfont"></div>
<div id="pager" style="width: 100%; margin: 0px; padding: 4px; border: 0px solid #999;">
</div>
<div id="info" style="text-align: center; width: 100%; margin: 0 2px; padding: 4px;
border: 1px solid #999; display: none;">
</div>
<div>
<input type="hidden" id="hid_id" runat="server" />
<input type="hidden" id="hid_sel" runat="server" />
<input type="hidden" id="hid_userid" runat="server" />
<input type="hidden" id="hdUserID" runat="server"/>
<input type="hidden" id="hd_comboCUSTOMERNAME" runat="server"/>
<input type="hidden" id="hd_comboSALE" runat="server"/>
<input type="hidden" id="hd_comboVESSEL" runat="server" />
<input type="hidden" id="hd_comboSubcompany" runat="server" />
<input type="hidden" id="h_uid" runat="server" />
<input type="hidden" id="hdNAMES" runat="server" />
<input type="hidden" id="hdSQL" runat="server" />
<input type="hidden" id="hd_comboGOODSNAME" runat="server"/>
<asp:ImageButton ID="ibExcel" runat="server" onclick="ibExcel_Click" ImageUrl="../images/icons/excel.gif" ToolTip="导出" CssClass="cssfont" style="display:none;"/>
<input type="hidden" id="hid_setting" runat="server" />
<input type="hidden" id="hid_header" runat="server" />
<div id="dvSaveState" runat="server">
</div>
<div id="divh" style="display: none;">
<div class="box">
<div id="tit">
</div>
<div id="bod">
</div>
<div id="bot">
</div>
</div>
</div>
</div>
</div>
<div id="dvGain">
<table style="border-width:0 1px 1px 0;padding:2px;">
<tr>
<td><div id="div1" runat="server" class="feeTitle" style="width:100px;">应收RMB</div></td>
<td><div id="divSumFee1" runat="server" class="feePayAmount" style="width:100%; text-align:left;"></div></td>
<td><div id="div2" runat="server" class="feeTitle" style="width:70px;">应付RMB</div></td>
<td><div id="divSumFee2" runat="server" class="feePayAmount" style="width:100%; text-align:left;"></div></td>
<td><div id="div3" runat="server" class="feeTitle" style="width:70px;">应收合计:</div></td>
<td><div id="divSumFee3" runat="server" class="feePayAmount" style="width:100%; text-align:left;"></div></td>
<td><div id="div4" runat="server" class="feeTitle" style="width:70px;">RMB利润</div></td>
<td><div id="divSumFee4" runat="server" class="feePayAmount" style="width:100%; text-align:left;"></div></td>
<td><div id="div5" runat="server" class="feeTitle" style="width:70px;">利润合计:</div></td>
<td><div id="divSumFee5" runat="server" class="feePayAmount" style="width:100%; text-align:left;"></div></td>
</tr>
<tr>
<td><div id="div6" runat="server" class="feeTitle" style="width:100px;">应收USD</div></td>
<td><div id="divSumFee6" runat="server" class="feePayAmount" style="width:100%; text-align:left;"></div></td>
<td><div id="div7" runat="server" class="feeTitle" style="width:70px;">应付USD</div></td>
<td><div id="divSumFee7" runat="server" class="feePayAmount" style="width:100%; text-align:left;"></div></td>
<td><div id="div8" runat="server" class="feeTitle" style="width:70px;">应付合计:</div></td>
<td><div id="divSumFee8" runat="server" class="feePayAmount" style="width:100%; text-align:left;"></div></td>
<td><div id="div9" runat="server" class="feeTitle" style="width:70px;">USD利润</div></td>
<td><div id="divSumFee9" runat="server" class="feePayAmount" style="width:100%; text-align:left;"></div></td>
<td><div id="div10" runat="server" class="feeTitle" style="width:70px;">利润率:</div></td>
<td><div id="divSumFee10" runat="server" class="feePayAmount" style="width:100%; text-align:left;"></div></td>
</tr>
</table>
</div>
</form>
</body>
</html>