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

📄 elsepaymentlist.asp

📁 一个比较完整的企业erp系统
💻 ASP
字号:
<%@language="vbscript" codepage="936"%>
<%response.buffer = true%>
<%Public HOME_PATH:HOME_PATH = "../"%>
<!--#include file="../db.asp"-->
<!--#include file="../inc/function.asp"-->
<%
Response.Expires = -1
Response.ExpiresAbsolute = Now() - 1
Response.cachecontrol = "no-cache"
if isLogin = false then
   Response.Write viewinfo("LoginC","","")
   Response.end
end if

 Call DateSearch(DateStar,DateEnd,DateSQL,"ALL",Dateinfo)

 uid = GetText("uid","G","number",1,10,0)
 SQL = "select * from supplier where uid = " & uid & ""
 set c01 = new CL01
     c01.Supplierinfo

	 SQL = "select identifyCode from usertype where uTypeid = (select uTypeSelect from usertype where uTypeid = " & USutypeid & ")"
	 identifyCode = isNumber(SelectZD(SQL,3),"int",0)
	 if identifyCode = 0 then
	    identifyCodeName = "客户"
		LengedTitle = "客户(" & USLinkman & "-" & USFullName & ")的其他支付记录"
		oiPayment = "收款人"
		TitleA = "相关支付记录"
	 else
	    identifyCodeName = "商家"
 		LengedTitle = "给商家(" & USLinkman & "-" & USFullName & ")的其他付款记录"
		oiPayment = "付款人"
		TitleA = "相关付款记录"
    end if
     Public title:title = LengedTitle
%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title><%=title%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<link href="<%=HOME_PATH%>css/style01.css" rel="stylesheet" type="text/css">
<script type = 'text/javascript' src = '<%=HOME_PATH%>js/layer00.js'></script>
<script type = 'text/javascript' src = '<%=HOME_PATH%>js/dateselect.js'></script>
<script language="JavaScript" type = 'text/javascript'>
<!--
function checked_(s) {
   if(form.selAnnounce.length==undefined){
      if(form.selAnnounce.checked == true) {
         selid_.className = 'clicked';
      }else{
         selid_.className = '';
      }
   }else{
      if(form.selAnnounce[s].checked == true) {
         selid_[s].className = 'clicked';
      }else{
         selid_[s].className = '';
      }
   }

}

function clicked_(s) {
 var td_len = td_.length;
 if (td_len == undefined) { 
    td_.className = 'clicked';
    form.box_.checked = true;

    }else{
		for(i_ = 0 ; i_<td_len;i_++) {
			if(s!=i_) {
			   td_[i_].className = 'tempF';
			   form.box_[i_].checked = false;
			}else{
			   td_[i_].className = 'clicked';
			   form.box_[i_].checked = true;
			}
		}
    }
}

function che(sel) {
   if(sel=='del') {
      var che_len = document.form.box_.length
      var sel_len = document.form.selAnnounce.length
	  var vinfo = '';
      var vinfo_ = '';
	  var vinfobox = '';
	  var vinfobox_ = '';
	  var vinfosel = '';
	  var vinfosel_ = '';

      if(sel_len==undefined) {
		 var selAnnounceCheck = document.form.selAnnounce.checked
		 var selAnnounceValue = document.form.selAnnounce.value ;
		 var box_Check = document.form.box_.checked ;
		 var box_Value = document.form.box_.value ;
	  	 if(selAnnounceCheck == true) {
			vinfosel = selAnnounceValue ;
		 }else{
			vinfosel = '';
		 }

		 if(box_Check == true) {
			vinfobox = box_Value ;
		 }else{
			vinfobox = '';
		 }

			vinfosel_+=vinfobox
			vinfobox_+=vinfobox

	  }else{

	     for(i_sel = 0; i_sel < sel_len ; i_sel++) {
		     var selAnnounceCheck = document.form.selAnnounce[i_sel].checked
			 var selAnnounceValue = document.form.selAnnounce[i_sel].value + "," ;
		     var box_Check = document.form.box_[i_sel].checked ;
		     var box_Value = document.form.box_[i_sel].value ;

		     if(selAnnounceCheck == true) {
			    vinfosel = selAnnounceValue ;
			 }else{
			    vinfosel = '';
			 }

			 if(box_Check == true) {
			    vinfobox = box_Value ;
			 }else{
			    vinfobox = '';
			 }
			vinfosel_+=vinfosel
			vinfobox_+=vinfobox
		 }
      }



	  if (!vinfosel_ == '') {vinfo_ = vinfosel_;}else{vinfo_ = vinfobox_;}
      if(vinfo_!='') {
		 var vinfo_Split = vinfo_.split(",")
			 vinfo_SplitLen = vinfo_Split.length
		 var str_ = '';
		 for(i = 0 ; i < vinfo_SplitLen-1;i++) {
             if(i!==vinfo_SplitLen-2) {
				str = vinfo_Split[i] + "," ;
			 }else{
				str = vinfo_Split[i] 
			 }

			str_+=str
         }
	  if(str_ == '')str_ = vinfo_ ;
		 document.form.Execute.value = str_ ;
	     con =  confirm('即将删除记录:\n' + str_ + '\n是否继续?');
		 if(con) {form.submit();}else{return false;}
	  }else{
	   return false;
      }

   }
	     
}

//-->
</script>
<style>
html{min-width: 776px;}
fieldset {padding:3px;}
.tempF {border-top:solid 0px #fff;border-left:solid 0px #fff;border-right:solid 1px #d6d3ce;border-bottom:solid 1px #d6d3ce;}
.clicked { background-color:#08246B;color:#ffffff;}
.bar{font:12px; background:buttonface;color: #000000;border:1px solid buttonface;cursor:default;behavior:url(<%=HOME_PATH%>css/button.htc);}
</style>
<base target = '_self'>
</head>
<body style = 'margin:0px;background-color:buttonface;' onkeydown = "javascript:if(event.keyCode==116){window.location.reload();}">
<div style = 'text-align:center;'>

 <table cellpadding='0' cellspacing='0' style = 'width:100%;background-color:buttonface;' borderColorLight='#848284' borderColorDark='#ffffff' border = '1' class = 'LinkA'>
   <tr style = 'padding-left:3px;'>
     <td><table border = '0' cellspacing = '0' cellpadding = '3' style ='width:99%;'>
		   <tr>
			 <form method='post' action="<%=SELVAR("FN","supplierview.asp")%>" name = 'formSearch'>
			 <input type = 'hidden' name = 'uid' value = '<%=uid%>'/>
			 <td style = 'width:80px;'><input type = 'text' style = 'width:100%;background-color:transparent;border-style:none;'value = '<%=TitleA%>' readonly/></td>
			 <td style = 'width:80px;'>日期选择:从</td>
			 <td style = 'width:70px;'><input type = 'text' name="DateStar" onfocus="setday(this)" size="10" maxlength="10" readonly style = 'text-align:center;' value = '<%=DateStar%>'/></td>
			 <td style = 'width:30px;text-align:center;'>到</td>
			 <td style = 'width:130px;'><input type = 'text' name="DateEnd" onfocus="setday(this)" size="10" maxlength="10" readonly style = 'text-align:center;'  value = '<%=DateEnd%>'/>
				 <input type="button" value = '搜索' style = 'border-style:none;' onclick="javascript:formSearch.submit();"/>
			 </td></form>
             <form method='post' action="<%=SELVAR("FN","?")%>" name = 'form'>
			 <td style = 'width:auto;'><span style = 'color:bule;'><%=Dateinfo%> 记录</span></td>
             <td style = 'width:35px; height:auto;' valign='bottom'><div class = 'bar' style = 'width:35px; height:33px;'><button style = 'padding:0px;width:35px;height:33px;background-color:transparent;border-style:none;' onclick = "javascript:return che('del');" /><img src="../images/del00.gif" width="35" height="33" border="0" alt="删除"></button></div></td>
		   </tr>
		  </table></td>
	</tr>
	<tr>
	<td style = 'padding:0px;border-style:none;'>

<input type = 'hidden' name = 'uid' value = '<%=uid%>'/>
<input type = 'hidden' name = 'Execute'/>
<input type = 'hidden' name = 'Options' value = 'delete'/>

 <table cellpadding='0' cellspacing='0' borderColorLight='#848284' borderColorDark='#ffffff' border = '1' class = 'LinkA' style = 'width:100%;background-color:buttonface;border:0px solid;'>
   <tr style = 'padding-left:3px;'>
     <td style = 'width:12px;text-align:center;height:20px;padding:0px;'><span style='font-family:webdings;text-align:center;padding:0px;'>8</span></td>
     <td style = 'width:35px;text-align:center;'>序号</td>
     <td style = 'width:80px;'>金额</td>
     <td style = 'width:65px;'>日期</td>
     <td style = 'width:65px;'><%=oiPayment%></td>
     <td style = 'width:65px;'>操作员</td>
     <td style = 'width:auto;'>其他说明</td>
     <td style = 'width:30px;padding:0px;text-align:center;'><input name = '' type = 'button' style = 'border-style:none;' onClick="this.value=sel(this.form.selAnnounce,'反选','全选',selid_,'clicked');" value = '全选' onfocus="this.blur();"/></td>
   </tr>
<%
SQL = "select * from payment where supplierid = " & uid & " " & DateSQL & ""
Rs.Open(SQL),Conn,1,1
if not Rs.eof then
     thisPageSize = 20
     LinkFile = SELVAR("FN","supplierview.asp")
	 LUrl = "uid=" & uid & "&DateStar=" & DateStar & "&DateEnd=" & DateEnd
     PageWrite = PaginatinoGoogle(Rs,noteTotal,thisPageSize,LinkFile,LUrl,LArr)
	 for i_i = 1 to thisPageSize
	     if Rs.eof then exit for
		 paymentid = Rs("paymentid")
		 paymoney = Rs("paymoney")
         thisDate = Rs("thisDate")
		 intotime = Rs("intotime")
		 intoaid = isNumber(Rs("intoaid"),"int",0)
		 selectaid = isNumber(Rs("selectaid"),"int",0)
		 Remark = Rs("Remark")
%>
   <tr style = 'padding-left:3px;background-color:#ffffff;' onclick = "javascript:clicked_(<%=i_i-1%>);">
     <td style = 'padding-left:0px;background-color:buttonface;'>×</td>
     <td style = 'text-align:center;background-color:buttonface;'><%=paymentid%></td>
     <td class = 'tempF' id = 'td_'>¥<%=formatNumber(paymoney,2)%></td>
     <td class = 'tempF'><%=thisDate%></td>
     <td class = 'tempF' style = 'font-family:Arial,宋体;'><%=SelectZD("select loginid from admins where aid = " & selectaid & "","未知")%></td>
     <td class = 'tempF' style = 'font-family:Arial,宋体;'><%=SelectZD("select loginid from admins where aid = " & intoaid & "","未知")%></td>
     <td class = 'tempF'><%=Remark%><input type = 'checkbox' name = 'box_' id = 'box_' value = '<%=paymentid%>' style = 'visibility:hidden;height:10px;'/></td>
     <td style = 'border-top:solid 0px #fff;border-left:solid 0px #fff;border-right:solid 1px #848284;border-bottom:solid 1px #d6d3ce;text-align:center;' id = 'selid_'><input type = 'checkbox' style = 'border-style:none;widht:15px;height:15px;' name = 'selAnnounce' onClick = "javascript:checked_(<%=i_i-1%>);" onfocus="this.blur();" value = '<%=paymentid%>'/></td>
   </tr>
<%
    paymoney_ = paymoney_+paymoney
    Rs.movenext
	next
%>
   <tr>
     <td colspan = '8' style = 'text-align:center;padding:5px;'><%=PageWrite%></td>
   </tr>
   <tr>
     <td colspan = '8' style = 'text-align:left;padding:3px;'>总金额:¥<%=formatnumber(paymoney_,2)%></td>
   </tr>
<%
else
%>
   <tr style = 'background-color:#ffffff;'>
     <td style = 'padding-left:0px;background-color:buttonface;'>×</td>
     <td style = 'text-align:center;background-color:buttonface;'>0</td>
     <td class = 'tempF'>&nbsp;</td>
     <td class = 'tempF'>&nbsp;</td>
     <td class = 'tempF'>&nbsp;</td>
     <td class = 'tempF'>&nbsp;</td>
     <td class = 'tempF'>&nbsp;<input type = 'checkbox' name = 'box_' id = 'box_' value = '' style = 'visibility:hidden;height:10px;'disabled='true'/></td>
     <td style = 'border-top:solid 0px #fff;border-left:solid 0px #fff;border-right:solid 1px #848284;border-bottom:solid 1px #d6d3ce;' id = 'selid_'><input type = 'checkbox' style = 'border-style:none;widht:15px;height:15px;' name = 'selAnnounce' onClick = "javascript:checked_(0);" onfocus="this.blur();" value = '' disabled='true'/></td>
   </tr>
<%
end if
Rs.Close
%>
</table>
</form></td>
	</tr>
 </table>

<%
if trim(Request.Form("Options")) = "delete" then
   Set c01 = new CL01
   SQL = "delete from payment where paymentid in("& c01.splitList(trim(Request.Form("Execute")),",",0) & ")"
   'Response.Write SQL
   Conn.Execute(SQL)
   Set c01 = Nothing
   Response.Write viewinfo("divLoca","正在执行删除操作.请稍候…","")
   Response.Write viewinfo("CloseTime","2000","window.returnValue = 'reload';")
end if
ConnClose()
%>
</body>
</html>

⌨️ 快捷键说明

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