⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dx_dispose_refund.asp

📁 功能介绍: 1、产品入库
💻 ASP
字号:
<!--#include file="Inc/Config.asp"-->
<!--#include file="inc/Dx_admin_check.asp"-->
<!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>
<title><%=WebName%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="Css/style.css" rel="stylesheet" type="text/css">

<style>
body {
	background-color:#FFFFFF;
}
</style>
<script language="javascript" src="Js/Fun.js"></script>
<script language="javascript" src="Js/Date.js"></script>
<script language="javascript" src="Ajax/Ajax_func.js"></script>
<script language="javascript">
var opList="";
function collapse(img,objName,listId){   
	var obj;
	opList="buy"+listId;
	obj = document.getElementById(objName);
	if (img.src.indexOf('open') != -1)
	{
		img.src = img.src.replace('open', 'close');
		obj.style.display = 'none';
	}
	else
	{
		img.src = img.src.replace('close', 'open');
		obj.style.display = '';
		send_request("GET","dx_OutListItem.asp?dx_OutList_id="+listId+"",null,"text",Feedback);

	}
}
function Feedback() {
	if (http_request.readyState == 4) { // 判断对象状态
		if (http_request.status == 200) { // 信息已经成功返回,开始处理信息
		    //alert(http_request.responseText);//alert(http_request.responseText);
			//alert(opList);
		    document.getElementById(opList).innerHTML=http_request.responseText;		     
		     
			}
			else { //页面不正常
			alert("您所请求的页面有异常。");
		}
	 }
}

</script>

<script language=javascript>
function preview() { 
	bdhtml=window.document.body.innerHTML; 
	sprnstr="<!--startprint-->"; 
	eprnstr="<!--endprint-->"; 
	prnhtml=bdhtml.substr(bdhtml.indexOf(sprnstr)+17); 
	prnhtml=prnhtml.substring(0,prnhtml.indexOf(eprnstr)); 
	window.document.body.innerHTML=prnhtml; 
	window.print(); 
	window.document.body.innerHTML=bdhtml; 
}
</script>
</HEAD>

<BODY>
<%
if request.Form.count>0 then
id=replace(request("ID")," ","")
  if id<>"" then
  id=split(id,",")
  for i=0 to ubound(id)
  sqltt="delete from [dx_OutList] where dx_OutList_id="&id(i)
  conn.execute(sqltt)
  sqltt="delete from [dx_OutDepot] where dx_OutDepot_list="&id(i)
  conn.execute(sqltt)
  next
  Call ShowErr("删除成功","dx_OutList.asp")
  end if
end if
if session("Dx_Admin")="Dx_Admin" then
%>
<br><center><img src="Images/note.gif" align="absmiddle">&nbsp;<font color="#FF0000">你不具备此权限,请与管理员联系!</font></center>
<%  
response.end
end if
%>
<script>
function CheckAll(form)  {
  for (var i=0;i<form.elements.length;i++){
    var e = form.elements[i];
    if (e.name != 'chkall')       e.checked = form.chkall.checked; 
   }
  }
</script>


<table width="100%" border="0" cellpadding="0" cellspacing="2" align="center">
<form name="form2" action="" method="post">
  <tr> 
    <td width="5%" height="21">&nbsp;<img src="Images/print.jpg" align="absmiddle" style="cursor:hand;" onClick="preview();window.close()"></td>
	<td width="95%" align="right">
	  <%
	  if request.form.count>0 then
	  startdate=request.form("startdate")
	  enddate=request.form("enddate")
	     if startdate="" or enddate="" then
		 startdate=date()-90
		 enddate=date()+1
		 end if
	  else
	  startdate=date()-90
	  enddate=date()+1 
	  end if
	  %>
      <input name="startdate" value="<%=startdate%>" style="width:100px" onClick="setDay(this);">
	  <img src="Images/date.gif" align="absmiddle" style="cursor:pointer;">
	  结束日期:
      <input name="enddate" value="<%=enddate%>" style="width:100px" onClick="setDay(this);">
      <img src="Images/date.gif" align="absmiddle" style="cursor:pointer;" />
      <input type="submit" value=" 查询 " class="button">&nbsp;
	</td>
  </tr>
</form>  
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#C4D8ED">
<tr>
<td><img src="Images/r_1.gif" alt="" /></td>
<td width="100%" background="Images/r_0.gif">
  <table cellpadding="0" cellspacing="0" width="100%">
    <tr>
      <td>&nbsp;退货记录查询</td>
	  <td align="right">&nbsp;</td>
    </tr>
  </table>
</td>
<td><img src="Images/r_2.gif" alt="" /></td>
</tr>
<tr>
<td></td>
<td>
<!--startprint-->
<table align="center" cellpadding="4" cellspacing="1" class="toptable grid" border="1">
<form name="form1" action="" method="post"> 
  <tr align="center">
    <td class="category" width="10">&nbsp;</td>
    <td class="category" height="30"><a href="#" class="title">出货单编号<img src="Images/up2.gif" border="0" hspace="2" align="absmiddle"><img src="Images/down2.gif" border="0" hspace="2" align="absmiddle"></a></td>
	<td class="category">消费者</td>
	<td class="category">操作者</td>
	<td class="category">操作时间</td>
    <td class="category">删除</td>
  </tr>
  <%
    sql="select * from dx_OutList,dx_consumer where dx_consumer.dx_consumer_id=dx_OutList.dx_OutList_consumer and dx_OutList_id in (select distinct dx_OutDepot_list from [dx_OutDepot] where dx_OutDepot_dispose=1) and (dx_OutList_time-#"&startdate&"#>=0 and dx_OutList_time-#"&enddate&"#<=0)order by dx_OutList_id "
  rs.open sql,conn,1,1
  if rs.eof then
  %> 
  <tr align="center" onMouseOver="this.className='highlight'" onMouseOut="this.className=''">
    <td colspan="13" height="25" align="center" style="color:red"><b>没有找到记录</b></td>
  </tr>
  <%else
    page_size=10
    rs.pagesize=page_size
	page_now=1
	if trim(request.QueryString("page"))<>"" then
	page_now=cint(trim(request.QueryString("page")))
	end if
	if page_now>rs.pagecount or page_now<0 then
	page_now=1
	end if
	rs.absolutepage=page_now
	i=1
    while not rs.eof and i<page_size+1
  %>
  <tr onMouseOver="this.className='highlight'" onMouseOut="this.className=''" onDblClick="javascript:var win=window.open('print_sell.asp?OutList_id=<%=rs("dx_OutList_id")%>','详细信息','width=853,height=470,top=176,left=161,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,scrollbars=yes'); win.focus()">
    <td align="center">
	<img src="Images/folder_close.gif" style="cursor:hand" onClick="collapse(this,'box<%=rs("dx_OutList_id")%>',<%=rs("dx_OutList_id")%>)"/>	</td>
	<td align="center" height="25"><%=rs("dx_OutList_id")%></td>
	<td align="center"><%=rs("dx_consumer_name")%></td>
	<td align="center"><%=rs("dx_OutList_user")%></td>
	<td align="center"><%=rs("dx_OutList_time")%></td>	
    <td align="center"><input type="checkbox" name="ID" value="<%=rs("dx_OutList_id")%>" style="border:0"></td>	
  </tr>
  <tr id="box<%=rs("dx_OutList_id")%>" style="display:none;">
  <td colspan="13" class="category">
	<div id="buy<%=rs("dx_OutList_id")%>"></div>  </td>
  </tr>
  <%
  rs.movenext
  i=i+1
  wend
  end if
  %>
  <tr>
    <td colspan="13" height="30" class="category">
	<table cellpadding=0 cellspacing=0 width="100%">
	<tr>
	<td width="20%" align="left" style="color:#FF0000;">&nbsp;双击查看打印单</td>  
	<td width="80%" align="right">
	<div id="bottom_pagebox">
当前第<%=page_now%>页
  <%if page_now=1 then%>首页
  <%else%><a href="dx_OutList.asp?page=1">首页</a>
  <%end if%>
  <%if page_now>1 and rs.pagecount>1 then%>
  <a href="dx_OutList.asp?page=<%=page_now-1%>">上一页</a>
  <%else%>上一页
  <%end if%>				
  <%if page_now<rs.pagecount then%> 
  <a href="dx_OutList.asp?page=<%=page_now+1%>">下一页</a>
  <%else%>下一页
  <%end if%>				
  <%if page_now<>rs.pagecount then%> 
  <a href="dx_OutList.asp?page=<%=rs.pagecount%>">尾页</a>
  <%else%>尾页
  <%end if%>
  共<%=rs.pagecount%>页/<%=article_count%>篇</div>
  <%rs.close%>

		
		<input name="chkall" type="checkbox" id="chkall" value="select" onClick="CheckAll(this.form)" style="border:0"> 全选
		<input type="submit" value="删 除" onClick="return confirm('此操作无法恢复!!!请慎重!!!\n\n确定要删除所选择的退货记录吗?')" class="button">	</td>
  </tr></table></td></tr>
</form>   
</table>
<!--endprint-->
</td>
<td></td>
</tr>
<tr>
<td><img src="Images/r_4.gif" alt="" /></td>
<td></td>
<td><img src="Images/r_3.gif" alt="" /></td>
</tr>
</table>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -