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

📄 outward_2.asp

📁 物流管理系统
💻 ASP
📖 第 1 页 / 共 3 页
字号:
  function GetPinming()
    {
    document.output1.pinming.length = 0; 
    var locationid = document.output1.biglocation.options[document.output1.biglocation.selectedIndex].value;
    var i;
			
			document.output1.pinming.options[0] = new Option('========产品品名========','');
			for (i=0;i < onecount3; i++)
			    {
			    if (subcat3[i][0] == locationid)
			            document.output1.pinming.options[document.output1.pinming.length] = new Option(subcat3[i][1], subcat3[i][0]);
			    }
    }
 function ChangePinming()
    {
    document.output1.smalllocation.length = 0; 
    var locationid = document.output1.biglocation.options[document.output1.biglocation.selectedIndex].value;
    var locationid2 = document.output1.pinming.options[document.output1.pinming.selectedIndex].value;
    var locationid3 = document.output1.pinming.options[document.output1.pinming.selectedIndex].text;
     if (locationid2 == "")
		{
			changelocation(document.output1.biglocation.options[document.output1.biglocation.selectedIndex].value); 
    
		}


	 		var i;
			document.output1.smalllocation.options[0] = new Option('========产品编号========','');
			for (i=0;i < onecount; i++)
			    {
			    if (subcat[i][3] == locationid3) 
					if (subcat[i][1] == locationid2)
			            document.output1.smalllocation.options[document.output1.smalllocation.length] = new Option(subcat[i][0], subcat[i][2]);
			    }

    }      
    
 function GetGuest(locationid)
    {
    document.output1.outw_where.length = 0; 
    var locationid=locationid;
    var i;
    document.output1.outw_where.options[0] = new Option('========请选择客户========','');
    for (i=0;i < onecount2; i++)
        {  
            document.output1.outw_where.options[document.output1.outw_where.length] = new Option(subcat2[i][1], subcat2[i][2]);
        }
    } 
 function search(locationid,typeid)
    {
    var locationid=locationid;
    var typeid = typeid;
    var i;
    var u;
    u = 0;
    for (i=0;i < onecount2; i++)
        {	if (typeid == 1)
				{
				if (subcat2[i][0] == locationid)
            
            {	
                document.output1.guest_code.value = subcat2[i][0];
                document.output1.guest_code.style.background = "#E7E4E6";
                document.output1.guest_pycode.value = subcat2[i][7];
                document.output1.guest_pycode.style.background = "#E7E4E6";
                document.output1.guest_address.value = subcat2[i][3];
                document.output1.guest_address.readOnly = true;
                document.output1.guest_address.style.background = "#E7E4E6";
                document.output1.guest_city.value = subcat2[i][4];
                document.output1.guest_city.readOnly = true;
                document.output1.guest_city.style.background = "#E7E4E6";
                document.output1.guest_contact.value = subcat2[i][5];
                document.output1.guest_contact.readOnly = true;
                document.output1.guest_contact.style.background = "#E7E4E6";
                document.output1.guest_tel.value = subcat2[i][6];
                document.output1.guest_tel.readOnly = true;
                document.output1.guest_tel.style.background = "#E7E4E6";
                document.output1.outw_where.selectedIndex = i+1;
                u = 1;
                sky();
            } 
            }
            else if (typeid == 2)
				{
				if (subcat2[i][7] == locationid)
                
            {	
                document.output1.guest_code.value = subcat2[i][0];
                document.output1.guest_code.style.background = "#E7E4E6";
                document.output1.guest_pycode.style.background = "#E7E4E6";
                document.output1.guest_address.value = subcat2[i][3];
                document.output1.guest_address.readOnly = true;
                document.output1.guest_address.style.background = "#E7E4E6";
                document.output1.guest_city.value = subcat2[i][4];
                document.output1.guest_city.readOnly = true;
                document.output1.guest_city.style.background = "#E7E4E6";
                document.output1.guest_contact.value = subcat2[i][5];
                document.output1.guest_contact.readOnly = true;
                document.output1.guest_contact.style.background = "#E7E4E6";
                document.output1.guest_tel.value = subcat2[i][6];
                document.output1.guest_tel.readOnly = true;
                document.output1.guest_tel.style.background = "#E7E4E6";
                document.output1.outw_where.selectedIndex = i+1;
                u = 1;
                sky();
            } 
            
            } 
        }
    if (u == 0)
		{
		document.output1.outw_where.selectedIndex = 0;
		if (typeid == 1)
		alert("没有找到客户编号为" + locationid + "相应的记录!");
		else if (typeid == 2)
		alert("没有找到客户的拼音编码为" + locationid + "相应的记录!");
		set();
		}
    if (<%=direct%>==0)
	eval("window.document.output1.ok.disabled = true");
        
    }
 function set()
{
				document.output1.guest_code.value = "";
                document.output1.guest_code.readOnly = false;
                document.output1.guest_code.style.background = "#FFFFFF";
                document.output1.guest_pycode.value = "";
                document.output1.guest_pycode.readOnly = false;
                document.output1.guest_pycode.style.background = "#FFFFFF";
                document.output1.guest_address.value = "";
                document.output1.guest_address.readOnly = false;
                document.output1.guest_address.style.background = "#FFFFFF";
                document.output1.guest_city.value = "";
                document.output1.guest_city.readOnly = false;
                document.output1.guest_city.style.background = "#FFFFFF";
                document.output1.guest_contact.value = "";
                document.output1.guest_contact.readOnly = false;
                document.output1.guest_contact.style.background = "#FFFFFF";
                document.output1.guest_tel.value = "";
                document.output1.guest_tel.readOnly = false;
                document.output1.guest_tel.style.background = "#FFFFFF";
                document.output1.guest_code.focus();
}
 function init()
{
	document.onkeydown=keydown;
}

function keydown(locationid)
{
	key = event.keyCode;
	var locationid = locationid;
	if (key == 13) //enter
		if (locationid == 1)
			{
			if (document.output1.city.value != "")
				GetGuest();
			search(document.output1.guest_code.value,1);
			}
		else if (locationid == 2)
			{
			if (document.output1.city.value != "")
				GetGuest();
			search(document.output1.guest_pycode.value,2);
			}
}    

function changecity(locationid)
    {
    document.output1.outw_where.length = 0; 
    var locationid=locationid;
    var i;
    if (locationid == "")
		GetGuest();
    document.output1.outw_where.options[0] = new Option('========客户名称=======','');
    for (i=0;i < onecount2; i++)
        {	
            if (subcat2[i][4] == locationid)
            {   
                document.output1.outw_where.options[document.output1.outw_where.length] = new Option(subcat2[i][1], subcat2[i][2]);
            }
            
        }
    set();
          
    }  

function changelocation(locationid)
    {
    GetPinming();
    document.output1.smalllocation.length = 0; 
    var locationid=locationid;
    var i;
    document.output1.smalllocation.options[0] = new Option('========产品编号========','');
    for (i=0;i < onecount; i++)
        {
            if (subcat[i][1] == locationid)
            { 
                document.output1.smalllocation.options[document.output1.smalllocation.length] = new Option(subcat[i][0], subcat[i][2]);
            }        
        }
   
        
    }    
</script>
<script language=vbscript>
<!--
Sub datacheck()
  if trim(output1.smalllocation.value)=empty then
   msgbox "「产品编号」必须选择!", 64, "请选择产品编号!"
     document.output1.smalllocation.focus()
     Exit Sub
  End if
if output1.outw_no.value=empty then
   msgbox "「数量」不得为空白!", 64, "请输入数量!"
     document.output1.outw_no.focus()
     Exit Sub
  End if
if not isNumeric(trim(output1.outw_no.value)) then
   msgbox "请检查数量的正确性!(要为数字)!", 64, "请输入数量!"
     document.output1.outw_no.focus()
     Exit Sub
  end if
  if  trim(output1.outw_no.value) <= 0 then
		msgbox "请检查数量的正确性!(要为大于0)!", 64, "请输入数量!"
     document.output1.outw_no.focus()
     Exit Sub   
  End if
  
  if trim(output1.outw_type.value)=empty then
   msgbox "「出库方式」必须选择!", 64, "请选择出库方式!"
     document.output1.outw_type.focus()
     Exit Sub
  End if
     if trim(output1.outw_where.value)=0 then
   msgbox "「目的地」必须选择!", 64, "请选择目的地!"
     document.output1.outw_where.focus()
     Exit Sub
  End if
if trim(output1.yuji_time.value)=empty then
   msgbox "「时限要求」不得为空白!", 64, "请输入正确的时间!"
     document.output1.yuji_time.focus()
     Exit Sub
  End if

if isdate(trim(output1.yuji_time.value)) = false then
   msgbox "「时限要求」格式不对!", 64, "请输入正确的时间格式!"
     document.output1.yuji_time.focus()
     Exit Sub
  End if 
  
output1.Submit
End Sub
-->
</script>
</head><BODY >
<body topmargin="0" onload="javascript:document.output1.dc_id.focus()">

<%
Showtitle(title)
  
%>

<form action="save_outward_2.asp" method="POST" name="output1">
<p align=center><font color=red>请在以下的表格中填入相关的数据</font>
<p>
<table align=center border=0>
  <tr>
   <td nowrap align=right><font color=blue>委托单号SRA:</td>
   <td><%
   		Response.Write outw_sra_cookies
       %></td>
 </tr>

⌨️ 快捷键说明

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