📄 report_agent.asp
字号:
SQL6=SQL6&" and chilp_types = '特串'"
'show_wtype="特串"
case "17"
SQL6=SQL6&" and sort = '正码过关'"
'show_wtype="正码过关"
case "18"
SQL6=SQL6&" and sort = '十二生肖'"
'show_wtype="生肖"
case "19"
SQL6=SQL6&" and sort = '一肖'"
'show_wtype="一肖"
case "20"
SQL6=SQL6&" and sort = '特码补牌'"
'show_wtype="特码补牌"
case else
'show_wtype="全部"
end select
SQL6=SQL6&" ) i "'response.write SQL6
Set Rs6=Conn.Execute(SQL6)
If Not Rs6.Eof Then
Showmember_detail=Rs6.GetRows(-1)
%>
<TR class=m_rig>
<TD><%=Showmember(0,I)%>(人民币)</TD>
<TD><%=Showmember_detail(5,0)%></TD>
<TD><a href="report_member.asp?AgentName=<%=request("AgentName")%>&member=<%=Showmember(0,I)%>&wtype=<%=request("wtype")%>&pay_type=<%=request("pay_type")%>&bet_type=<%=request("bet_type")%>&DATE_START=<%=request("DATE_START")%>&DATE_END=<%=request("DATE_END")%>"><%=replace(formatnumber(Showmember_detail(0,0),2),",","")%></A></TD>
<TD><%=replace(formatnumber(Showmember_detail(1,0),2,-1),",","")%></TD>
<TD><%=replace(formatnumber(Showmember_detail(2,0),2,-1),",","")%></TD>
<TD><%=replace(formatnumber(Showmember_detail(1,0)+Showmember_detail(2,0),2,-1),",","")%></TD>
<TD><%'=formatnumber(self_cuts,2,-1)%>1.00</TD>
<TD><%=replace(formatnumber((Showmember_detail(1,0)+Showmember_detail(2,0)),2,-1),",","")%></TD>
</TR>
<%end if
count_num=count_num+Showmember_detail(5,0)
sum_money=sum_money+Showmember_detail(0,0)
mem_result=mem_result+Showmember_detail(1,0)
mem_ds=mem_ds+Showmember_detail(2,0)
result=result+Showmember_detail(1,0)+Showmember_detail(2,0)
next%>
<TR class=m_rig_re>
<TD> </TD>
<TD><%=count_num%></TD>
<TD><%=replace(formatnumber(sum_money,2,-1),",","")%></TD>
<TD><%=replace(formatnumber(mem_result,2,-1),",","")%></TD>
<TD><%=replace(formatnumber(mem_ds,2,-1),",","")%></TD>
<TD class=m_rig_to><FONT color=#ffffff><%=replace(formatnumber(result,2,-1),",","")%></FONT></TD><TD></TD>
<TD></TD></TR></TBODY></TABLE>
<BR>
<TABLE class=m_tab cellSpacing=1 cellPadding=0 width=800 border=0>
<TBODY>
<TR class=m_title_reall>
<TD width=120>代理商</TD>
<TD width=70>笔数</TD>
<TD width=110>金额</TD>
<TD width=110>代理商</TD>
<TD width=80>退水</TD>
<TD width=110>结果</TD>
<TD width=60>成数</TD>
<TD>备注</TD></TR>
<TR class=m_rig>
<TD><%=Manager%></TD>
<TD><%=count_num%></TD>
<TD><%=replace(formatnumber(sum_money,2,-1),",","")%></TD>
<TD><%=replace(formatnumber(ShowAgent(1,0),2,-1),",","")%></TD>
<TD><%=replace(formatnumber(ShowAgent(4,0),2,-1),",","")%></TD>
<TD><%=replace(formatnumber(result+ShowAgent(4,0)-mem_ds,2,-1),",","")%></TD>
<TD><%'=formatnumber(self_cuts,2,-1)%>1.00</TD>
<TD> </TD></TR></TBODY></TABLE>
<%else%>
<TABLE class=m_tab cellSpacing=1 cellPadding=0 width=800 bgColor=#000000
border=0>
<TBODY>
<TR class=m_title_reall>
<TD colSpan=8>信用额度</TD></TR>
<TR class=m_title_reall>
<TD width=120>会员</TD>
<TD width=70>笔数</TD>
<TD width=110>金额</TD>
<TD width=110>会员</TD>
<TD width=80>代理商金额</TD>
<TD width=110>代理商</TD>
<TD width=60>币值</TD>
<TD>成数</TD></TR>
<%AgentName=request("AgentName")
SQL6="SELECT sum_m = isnull(SUM(sum_m), 0), mem_result = isnull(SUM(mem_result), 0), mem_ds = isnull(SUM(mem_ds), 0), ag_result = isnull(SUM(ag_result), 0),ag_ds = isnull(SUM(ag_ds), 0), re = COUNT(*) FROM (SELECT sum_m,mem_ds = CASE WHEN banlance = 0 or amount='和局' THEN 0 ELSE sum_m * rake/100 END,mem_result = CASE WHEN banlance = 0 THEN 0 ELSE CASE WHEN result = 0 THEN - sum_m WHEN result > 0 THEN (CASE WHEN sort = '连码' THEN sum_m / count_l * rate * result - sum_m ELSE sum_m * (rate - 1) END) END END,ag_ds = CASE WHEN banlance = 0 or amount='和局' THEN 0 ELSE sum_m * dai_ds/100 END,ag_result = CASE WHEN banlance = 0 or amount='和局' THEN 0 ELSE CASE WHEN result = 0 THEN - sum_m * dai_zc / 100 WHEN result > 0 THEN (CASE WHEN sort = '连码' THEN (sum_m / count_l * rate * result - sum_m) * dai_zc / 100 ELSE sum_m * (rate - 1) * dai_zc / 100 END) END END FROM m_chilp WHERE chilp_time >='"&date_start&"' and chilp_time <='"&date_end&"' AND Agent_first = '"&AgentName&"'"
select case trim(request("wtype"))
case "1"
SQL6=SQL6&" and sort = '特别号' and chilp_value<>'单' and chilp_value<>'双' and chilp_value<>'大' and chilp_value<>'小' and chilp_value<>'合单' and chilp_value<>'合双'"
'show_wtype="特别号"
case "2"
SQL6=SQL6&" and sort = '特别号' and (chilp_value='单' or chilp_value='双')"
'show_wtype="特别号:单双"
case "3"
SQL6=SQL6&" and sort = '特别号' and (chilp_value='大' or chilp_value='小')"
'show_wtype="特别号:大小"
case "4"
SQL6=SQL6&" and sort = '特别号' and (chilp_value='合单' or chilp_value='合双')"
'show_wtype="特别号:合数单双"
case "5"
'show_wtype="色波"
SQL6=SQL6&" and sort = '色波'"
case "6"
SQL6=SQL6&" and sort = '正码' and chilp_value<>'总单' and chilp_value<>'总双' and chilp_value<>'总大' and chilp_value<>'总小'"
'show_wtype="正码"
case "7"
SQL6=SQL6&" and (chilp_value = '总单' or chilp_value = '总双')"
'show_wtype="总和:单双"
case "8"
SQL6=SQL6&" and (chilp_value = '总大' or chilp_value = '总小')"
'show_wtype="总和:大小"
case "9"
SQL6=SQL6&" and sort = '正码1-6' and (chilp_value='单' or chilp_value='双')"
'show_wtype="正码1-6:单双"
case "10"
SQL6=SQL6&" and sort = '正码1-6' and (chilp_value='大' or chilp_value='小')"
'show_wtype="正码1-6:大小"
case "11"
SQL6=SQL6&" and sort = '正码1-6' and (chilp_value='红波' or chilp_value='绿波' or chilp_value='蓝波')"
'show_wtype="正码1-6:色波"
case "12"
SQL6=SQL6&" and chilp_types = '三全中'"
'show_wtype="三全中"
case "13"
SQL6=SQL6&" and chilp_types = '三中二'"
'show_wtype="三中二"
case "14"
SQL6=SQL6&" and chilp_types = '二全中'"
'show_wtype="二全中"
case "15"
SQL6=SQL6&" and chilp_types = '二中特'"
'show_wtype="二中特"
case "16"
SQL6=SQL6&" and chilp_types = '特串'"
'show_wtype="特串"
case "17"
SQL6=SQL6&" and sort = '正码过关'"
'show_wtype="正码过关"
case "18"
SQL6=SQL6&" and sort = '十二生肖'"
'show_wtype="生肖"
case "19"
SQL6=SQL6&" and sort = '一肖'"
'show_wtype="一肖"
case "20"
SQL6=SQL6&" and sort = '特码补牌'"
'show_wtype="特码补牌"
case else
'show_wtype="全部"
end select
SQL6=SQL6&" ) i "
'response.write SQL6
Set Rs6=Conn.Execute(SQL6)
If Not Rs6.Eof Then
ShowAgent=Rs6.GetRows(-1)
end if
'if ShowAgent(5,0)>0 then
SQL6="select member from m_chilp where chilp_time >='"&date_start&"' and chilp_time <='"&date_end&"' AND Agent_first='"&AgentName&"' group by member "
Set Rs6=Conn.Execute(SQL6)
If Not Rs6.Eof Then
Showmember=Rs6.GetRows(-1)
end if
count_num=0
sum_money=0
mem_result=0
mem_ds=0
result=0
%>
<%for I=0 to ubound(Showmember,2)%>
<%SQL6="SELECT sum_m = isnull(SUM(sum_m), 0), mem_result = isnull(SUM(mem_result), 0),mem_ds = isnull(SUM(mem_ds), 0), ag_ds = isnull(SUM(ag_ds), 0),zong_ds = isnull(SUM(zong_ds), 0), re = COUNT(*) FROM (SELECT sum_m,mem_ds = CASE WHEN banlance = 0 or amount='和局' THEN 0 ELSE sum_m * rake / 100 END, mem_result = CASE WHEN banlance = 0 THEN 0 ELSE CASE WHEN result = 0 THEN - sum_m WHEN result > 0 THEN (CASE WHEN sort = '连码' THEN sum_m / count_l* rate * result - sum_m ELSE sum_m * (rate - 1) END) END END, ag_ds = CASE WHEN banlance = 0 or amount='和局' THEN 0 ELSE sum_m * dai_ds / 100 END, zong_ds = CASE WHEN banlance = 0 or amount='和局' THEN 0 ELSE sum_m * zong_ds / 100 END FROM m_chilp WHERE chilp_time >='"&date_start&"' and chilp_time <='"&date_end&"' AND member = '"&Showmember(0,I)&"'"
select case trim(request("wtype"))
case "1"
SQL6=SQL6&" and sort = '特别号' and chilp_value<>'单' and chilp_value<>'双' and chilp_value<>'大' and chilp_value<>'小' and chilp_value<>'合单' and chilp_value<>'合双'"
'show_wtype="特别号"
case "2"
SQL6=SQL6&" and sort = '特别号' and (chilp_value='单' or chilp_value='双')"
'show_wtype="特别号:单双"
case "3"
SQL6=SQL6&" and sort = '特别号' and (chilp_value='大' or chilp_value='小')"
'show_wtype="特别号:大小"
case "4"
SQL6=SQL6&" and sort = '特别号' and (chilp_value='合单' or chilp_value='合双')"
'show_wtype="特别号:合数单双"
case "5"
'show_wtype="色波"
SQL6=SQL6&" and sort = '色波'"
case "6"
SQL6=SQL6&" and sort = '正码' and chilp_value<>'总单' and chilp_value<>'总双' and chilp_value<>'总大' and chilp_value<>'总小'"
'show_wtype="正码"
case "7"
SQL6=SQL6&" and (chilp_value = '总单' or chilp_value = '总双')"
'show_wtype="总和:单双"
case "8"
SQL6=SQL6&" and (chilp_value = '总大' or chilp_value = '总小')"
'show_wtype="总和:大小"
case "9"
SQL6=SQL6&" and sort = '正码1-6' and (chilp_value='单' or chilp_value='双')"
'show_wtype="正码1-6:单双"
case "10"
SQL6=SQL6&" and sort = '正码1-6' and (chilp_value='大' or chilp_value='小')"
'show_wtype="正码1-6:大小"
case "11"
SQL6=SQL6&" and sort = '正码1-6' and (chilp_value='红波' or chilp_value='绿波' or chilp_value='蓝波')"
'show_wtype="正码1-6:色波"
case "12"
SQL6=SQL6&" and chilp_types = '三全中'"
'show_wtype="三全中"
case "13"
SQL6=SQL6&" and chilp_types = '三中二'"
'show_wtype="三中二"
case "14"
SQL6=SQL6&" and chilp_types = '二全中'"
'show_wtype="二全中"
case "15"
SQL6=SQL6&" and chilp_types = '二中特'"
'show_wtype="二中特"
case "16"
SQL6=SQL6&" and chilp_types = '特串'"
'show_wtype="特串"
case "17"
SQL6=SQL6&" and sort = '正码过关'"
'show_wtype="正码过关"
case "18"
SQL6=SQL6&" and sort = '十二生肖'"
'show_wtype="生肖"
case "19"
SQL6=SQL6&" and sort = '一肖'"
'show_wtype="一肖"
case "20"
SQL6=SQL6&" and sort = '特码补牌'"
'show_wtype="特码补牌"
case else
'show_wtype="全部"
end select
SQL6=SQL6&" ) i "
'response.write SQL6
Set Rs6=Conn.Execute(SQL6)
If Not Rs6.Eof Then
Showmember_detail=Rs6.GetRows(-1)
%>
<TR class=m_rig>
<TD><%=Showmember(0,I)%>(人民币)</TD>
<TD><%=Showmember_detail(5,0)%></TD>
<TD><a href="report_member.asp?AgentName=<%=request("AgentName")%>&member=<%=Showmember(0,I)%>&wtype=<%=request("wtype")%>&pay_type=<%=request("pay_type")%>&bet_type=<%=request("bet_type")%>&DATE_START=<%=request("DATE_START")%>&DATE_END=<%=request("DATE_END")%>"><%=replace(formatnumber(Showmember_detail(0,0),2,-1),",","")%></A></TD>
<TD><%=Showmember_detail(1,0)+Showmember_detail(2,0)%></TD>
<TD><%=Showmember_detail(1,0)+Showmember_detail(3,0)%></TD>
<TD><%=Showmember_detail(1,0)+Showmember_detail(3,0)%></TD>
<TD>(人民币)<%=Showmember_detail(1,0)+Showmember_detail(2,0)%></TD>
<TD>0.00</TD></TR>
<%end if
count_num=count_num+Showmember_detail(5,0)
sum_money=sum_money+Showmember_detail(0,0)
mem_result=mem_result+Showmember_detail(1,0)
mem_ds=mem_ds+Showmember_detail(2,0)
dai_ds=dai_ds+Showmember_detail(3,0)
result=result+Showmember_detail(1,0)+Showmember_detail(2,0)
next%>
<TR class=m_rig_to>
<TD> </TD>
<TD><%=count_num%></TD>
<TD><%=replace(formatnumber(sum_money,2,-1),",","")%></TD>
<TD><%=replace(formatnumber(mem_result+mem_ds,2,-1),",","")%></TD>
<TD><%=replace(formatnumber(mem_result+dai_ds,2,-1),",","")%></TD>
<TD><%=replace(formatnumber(mem_result+dai_ds,2,-1),",","")%></TD>
<TD></TD>
<TD></TD></TR></TBODY></TABLE><br>
<TABLE class=m_tab cellSpacing=1 cellPadding=0 width=800 border=0>
<TBODY>
<TR class=m_title_reall>
<TD width=120>代理商</TD>
<TD width=70>笔数</TD>
<TD width=110>金额</TD>
<TD width=110>代理商</TD>
<TD width=80>退水</TD>
<TD width=110>结果</TD>
<TD width=60>成数</TD>
<TD>备注</TD></TR>
<TR class=m_rig>
<TD><%=Manager%></TD>
<TD><%=count_num%></TD>
<TD><%=replace(formatnumber(sum_money,2,-1),",","")%></TD>
<TD><%=replace(formatnumber(ShowAgent(1,0),2,-1),",","")%></TD>
<TD><%=replace(formatnumber(ShowAgent(4,0),2,-1),",","")%></TD>
<TD><%=replace(formatnumber((ShowAgent(1,0)+ShowAgent(4,0)),2,-1),",","")%></TD>
<TD><%'="0"&self_cuts%>1.00</TD>
<TD> </TD></TR></TBODY></TABLE><%end if%></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -