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

📄 addsale.asp

📁 漂亮的模板,商店销售统计,日销售,月销售统计,销售录入
💻 ASP
📖 第 1 页 / 共 3 页
字号:
				rsq("CustomerTelephone") = mCustomerTelephone
				rsq("Oweddeadline") = mOweddeadline
				rsq("saletime") = now()
				rsq("saleyear") = year(now())
				rsq("salemonth") = month(now())
				rsq("saleday") = day(now())
			rsq.update		
			rsq.Close
set rsq = nothing
if trim(request.form("saleOwed"))<>0 then	
sqlC="select * from owed where (id is null)"
set rsC=server.CreateObject("ADODB.RecordSet")
rsC.open sqlC,conn,1,3
rsC.addnew
rsC("Whoowed") = mCustomers
rsC("Timeowed") = now()
rsC("Oweddeadline") = mOweddeadline
rsC("Owedreasons") = mOwedreasons
rsC("Owedunits") = mCustomerunits
rsC("saleOwed") = msaleOwed
rsC("Designation") = mDesignation
rsC("Salesman") = mSalesman
rsC("saleTotal") = msaleTotal
rsC.update
rsC.close
set rsC=nothing
end if
			Response.Write("<Script Language='Javascript'>")
			Response.Write("alert('帐目数据已经成功保存了!');")
			Response.Write("</Script>")
			
		end if
 

end sub

if Trim(Request.Form("action"))<>"" then
   call produceForm()
end if

%>
<HTML><HEAD><TITLE><%=rsa("Systemname")%></TITLE>
<META http-equiv=Content-Type content="text/html; charset=GBK">
<script language="JavaScript">
<!--

function saveIt()
{
if (document.mail.Salestypes.value=="")
	{
		alert("请选择销售类型");
		document.mail.Salestypes.focus();
		return false;
	}
	if (document.mail.Price.value=="")
	{
		alert("请输入单价");
		document.mail.Price.focus();
		return false;
	}
	if (document.mail.Volume.value=="")
	{
		alert("请输入数量");
		document.mail.Volume.focus();
		return false;
	}
	if (document.mail.saleOwed.value=="")
	{
		alert("赊欠不能为空");
		document.mail.saleOwed.focus();
		return false;
	}
		if (document.mail.Expenditure.value=="")
	{
		alert("开支不能为空");
		document.mail.Expenditure.focus();
		return false;
	}
	if (document.mail.Generateratio.value=="")
	{
		alert("请选择提成百分比");
		document.mail.Generateratio.focus();
		return false;
	}
	if (document.mail.Salesman.value=="")
	{
		alert("请选择销售员");
		document.mail.Salesman.focus();
		return false;
	}
	if (document.mail.Designation.value=="")
	{
		alert("请输入品名");
		document.mail.Designation.focus();
		return false;
	}
	 if (document.mail.saleOwed.value!=0&&document.mail.Customers.value=="")
	{
		alert('该帐务有赊欠,请仔细填写客户名字');
		document.mail.Customers.focus();
		return false;
	}
	if (document.mail.Customertypes.value=="")
	{
		alert("请请选择客户类型");
		document.mail.Customertypes.focus();
		return false;
	}
	if (document.mail.Payment.value=="")
	{
		alert("请请选择付费类型");
		document.mail.Payment.focus();
		return false;
	}
	 if (document.mail.saleOwed.value!=0&&document.mail.CustomerTelephone.value=="")
	{
		alert('该帐务有赊欠,请仔细填写客户电话');
		document.mail.CustomerTelephone.focus();
		return false;
	}
	 if (document.mail.saleOwed.value!=0&&document.mail.Oweddeadline.value=="")
	{
		alert('该帐务有赊欠,请仔细填写赊欠期限');
		document.mail.Oweddeadline.focus();
		return false;
	}
	 waiting.style.visibility = "visible";
	  document.mail.submit();
}
//-->
</script>
<script language="JavaScript">
<!--
function senfe(){
        document.getElementById("saleTotal").value=Number(document.getElementById("Price").value)*Number(document.getElementById("Volume").value)*Number(document.getElementById("Currency").value);
		document.getElementById("Revenue").value=Number(document.getElementById("saleTotal").value)-Number(document.getElementById("saleOwed").value)-Number(document.getElementById("Expenditure").value);

}
//-->
</script>
<SCRIPT language=javascript src="java/JavaScript.js"></SCRIPT>
<LINK href="../css/style.css" type=text/css rel=stylesheet>
<STYLE>.Div_LongTable2 {
	OVERFLOW-Y: visible; OVERFLOW-X: auto; WIDTH: 755px
}
</STYLE>

<META content="MSHTML 6.00.2900.3020" name=GENERATOR></HEAD>
<BODY leftMargin=4 topMargin=12 
onload="">
<DIV id=waiting 
style="Z-INDEX: 10; LEFT: 20px; VISIBILITY: hidden; POSITION: absolute; TOP: 220px">
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
    <TD width="30%"></TD>
    <TD bgColor=#ff9900>
      <TABLE height=70 cellSpacing=2 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD align=middle bgColor=#eeeeee>正在将数据写入系统, 
    请稍候...</TD></TR></TBODY></TABLE></TD>
    <TD width="30%"></TD></TR></TBODY></TABLE></DIV>
<TABLE cellSpacing=0 cellPadding=0 width="99%" align=right border=0>
  <TBODY>
  <TR>
    <TD> 
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD>
            <TABLE class=Bg_Rim cellSpacing=0 cellPadding=0 width="100%">
              <TBODY>
              <TR>
                <TD class=Bg_BgColor vAlign=top>
                 

                  <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                    <TBODY>
                    <TR>
                      <TD class=TitleBg>
                        <TABLE cellSpacing=0 cellPadding=0 width="100%" 
border=0>
                          <TBODY>
                          <TR height=22>
                            <TD width="15%">&nbsp;</TD>
                            <TD width="15%">&nbsp;</TD>
                            <TD width="18%">&nbsp;</TD>
                            <TD width="20%">&nbsp;</TD>
                            <TD width="32%">&nbsp;</TD>
                          </TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
 <form name="mail"  method="post" action="addsale.asp?action=addnew" ID="mail">
                  <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                    <TBODY>
                    <TR>
                      <TD>
                        <TABLE cellSpacing=0 cellPadding=0 width="100%" 
border=0>
                          <TBODY>
                          <TR>
                            <TD 
                            onmouseup="with(findObj('TopArea'))if(style.display=='none'){style.display='';}else{style.display='none';}" 
                            class=CrossbandBg align=middle><IMG height=8 
                              src="../images/ArrowDisplay.gif" width=10 
                              border=0></TD></TR></TBODY></TABLE></TD></TR>
                    <TR id=TopArea>
                      <TD class=TopArea><INPUT type=hidden value=0.0 
                        name=nowfee> <INPUT type=hidden name=factfee> 
                        <TABLE cellSpacing=0 cellPadding=0 width="100%" 
border=0>
                          <TBODY>
                          <TR>
                            <TD align=middle width="9%" height=32><IMG 
                              height=20 
                              src="../images/Ico_CircleBlue1.gif" 
                            width=20></TD>
                            <TD class=AreaName width="34%">
							<%if saleid=0 then %>
							<%=year(now()) & "年" & month(now()) & "月" & day(now()) & "日"%>==&gt;做账
							<%end if%>
							<%if saleid<>0 then %>
							<%=now()%>==&gt;帐目修改
							<%end if%>
							</TD>
                            <TD class=AreaName align=right width="17%">单位:元人民币                            
                            <TD class=AreaName align=middle width="40%"><%=now()%></TD>
                          </TR></TBODY></TABLE>
                        <TABLE cellSpacing=0 cellPadding=0 width="96%" 
                        align=center border=0>
                          <TBODY>
                          <TR>
                            <TD class=DashedFrame_Angle_1><IMG height=1 
                              width=1></TD>
                            <TD class=DashedFrame_Top><IMG height=1 
width=1></TD>
                            <TD class=DashedFrame_Angle_2><IMG height=1 
                              width=1></TD></TR>
                          <TR>
                            <TD class=DashedFrame_Left><IMG height=1 
                            width=1></TD>
                            <TD class=DashedFrame_Bg>
                              <TABLE cellSpacing=0 cellPadding=0 width="96%" 
                              align=center border=0>
                                <TBODY>
                                <TR>

⌨️ 快捷键说明

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