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

📄 newporeport.aspx

📁 尚洋仓库管理系统,对仓库
💻 ASPX
📖 第 1 页 / 共 3 页
字号:
        <div id="divClientList" onmousedown="vbs:Login_Win_Down me" onmousemove="vbs:Login_Win_Move me" onmouseup="vbs:Login_Win_Up me" 
        style="display:none;left:0;top:0;position:absolute;width:660;height:430;border-top:solid 1px #000000;border-left:solid 1px #000000;border-bottom:solid 1px #000000;border-right:solid 1px #000000;z-index:10;">
            <table cellpadding="0" cellspacing="0" border="0" width="650" height="430"  bgcolor="#e6e6e6" >
                <tr id="tr2" height="22" style="background-image:url('../images/tr.gif')">
                    <td style="text-indent:1em;font-weight:bold">选择物料明细</td>
                    <td align=right><img src="../images/close.gif" onmousedown="vbs:window.event.cancelBubble=true" onclick="vbs:document.all('divClientList').style.display='none'"/></td>
                </tr>
                <tr  onmousedown="vbs:window.event.cancelBubble=true">
                    <td valign="middle" align="center" colspan="2">
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<iframe id="frmClient" src="" frameborder="0" width="650" height="400" style="overflow-x:hidden; overflow-y:hidden" ></iframe>                        
                   </td>
                </tr>
            </table>
       </div>
       <input type=hidden id="txtDetails" />
    </body>
</html>

	<script langauge=javascript>
	    function showList()
	    {
	        document.all("divClientList").style.display="none";
	        showDiv(document.all("divStuffList"));
	    }
	    function showSupplierList()
	    {
	        document.all("divStuffList").style.display="none";
	        showDiv(document.all("divClientList"));
	    }
	</script>
	<script language=vbscript>
    titleResize
    
    function CompareDate(b,e) 
        CompareDate=datevalue(e)<datevalue(b)
        
    end function
   '剪切函数
   function vbTrim(str)
      vbTrim=trim(str)
   end function
   sub validate(byval retValue,byref isAvailable,byref msg)
        tmp=split(retValue,"|")
        isAvailable=tmp(0)
        msg=tmp(1)
    end sub
    ' VBScript 文件

dim spanLeft,spanTop,moveTD,tdField
	spanLeft=0:spantop=0
	'dim tableStr
	'tablestr="<table STYLE='table-layout: fixed' border=0  height=100% cellpadding=0 cellspacing=0><tr><td class=td2 >title2</td><td class=td2 noWrap style='height:19;width:3' onmouseover=""vbs:me.style.cursor='E-resize'"" onmousedown=""vbs:tz me""><img style='LEFT: 0px; POSITION: relative' height=100%  src='a/.gif' width=3 title='调整表格宽度' ></td></tr></table>"
	
	sub tz(objTD)
	    'msgbox objTD.outerHTML
	    'exit sub
		set objTD=objTD.parentElement.Cells(0)
		dim objElement
		dim Totaloffset:Totaloffset=0
		set objElement=objTD.parentElement
		do while objElement.tagName<>"BODY"
			Totaloffset=Totaloffset+objElement.offsetLeft	
			set objElement=objElement.parentElement
		Loop

		span2.style.pixelLeft=	objTD.offsetLeft+Totaloffset-span1.scrollLeft-span1.parentElement.offsetLeft-4
		span2.style.pixeltop=objTD.offsetTop+document.all("span1").offsetTop
		
		span2.style.pixelwidth=objTD.parentElement.Cells(1).offsetLeft-objTD.parentElement.Cells(0).offsetLeft+6
		span2.style.pixelheight=span1.clientHeight
		span2.style.display="inline"
		span2.setCapture
		set moveTD=objTD
		tdField=objTD.parentElement.parentElement.parentElement.parentElement.cellindex		
	end sub
	
	sub retPosition()
		spanleft=1
		spantop=2
	end sub
	
	sub M_Move()
		Dim PixelLeft,tempwidth
		PixelLeft=TotalOffsetLeft(moveTD)
		tempwidth=window.event.clientX-pixelLeft+span1.scrollLeft+span1.parentElement.offsetLeft
		if tempwidth<5 then tempwidth=5
		span2.style.pixelwidth=tempwidth
		'window.status=window.event.clientX-pixelLeft		
	end sub
	
	sub M_up
		span2.releaseCapture
		
		for dcc_i=0 to tb1.rows.length-2
			tb1.rows(dcc_i).cells(tdField).style.pixelwidth=span2.style.pixelwidth
			tb1.rows(dcc_i).cells(tdField).style.height="22px"
			tb1.rows(dcc_i).cells(tdField).style.whiteSpace="nowrap"
			tb1.rows(dcc_i).cells(tdField).style.wordBreak="break-All"
			
			tb1.rows(dcc_i).cells(tdField).style.textOverflow="ellipsis"
			tb1.rows(dcc_i).cells(tdField).style.wordWrap="break-word"
		next
		'msgbox tb1.rows(0).cells(tdField).childNodes(0).outerHTML
		'tb1.rows(0).cells(tdField).innerHTML=""
		'tb1.rows(0).cells(tdField).innerHTML=tablestr
		span2.style.display="none"
		titleResize
		
	end sub
	
	Function TotalOffsetLeft(byval obj)
		Dim Templeft,tempobj
		tempLeft=0
		set tempobj=moveTD
		do while tempobj.tagName<>"BODY"
			TempLeft=TempLeft+tempobj.offsetLeft
			set tempobj=tempobj.parentElement
		loop
		set tempobj=nothing
		TotalOffsetLeft=templeft
	end function
	
	sub titleResize
		span3.innerHTML="<table border=0  cellspacing=0 cellpadding=0 id='tb2' STYLE='table-layout: fixed;border-left:buttonface 1px solid;'>" & tb1.rows(0).outerHTML  & "</table>"
		
		HScroll
	end sub
	
	sub HScroll
		on error resume next
		span3.style.left=span1.offsetLeft
		span3.style.top=span1.offsetTop+1
		span3.style.width=span1.offsetWidth-(span1.offsetWidth-span1.clientWidth)
		
		for iii=0 to document.all("tb2").Rows(0).cells.length-1
			document.all("tb2").Rows(0).cells(iii).style.width=tb1.rows(0).cells(iii).offsetwidth
		next
		span3.scrollLeft=span1.scrollLeft
		'if err.number<>0 then msgbox "err"
'		window.status=err.Description
	end sub' VBScript 文件

    
    
    
function VBparseInt(p)
    VBparseInt=cdbl(replace(p,"px",""))
end function
function VBparseInt2(s)
    VBparseInt2=cdbl(s)
    
end function
 dim Login_Win_Down_Flag,Login_Win_Down_orgX,Login_Win_Down_orgY

   Login_Win_Down_Flag=false
    '================================================================================
    '按下鼠标
    '================================================================================
   Sub Login_Win_Down(DivObj)
        DivObj.setCapture
        Login_Win_Down_Flag=true
        Login_Win_Down_orgX=VBparseInt(window.event.offsetX)        
        Login_Win_Down_orgY=VBparseInt(window.event.offsetY)
        
   End Sub
       '================================================================================
    '移动鼠标
    '================================================================================
   Sub Login_Win_Move(DiVObj)
        if Login_Win_Down_Flag then
            DivObj.style.cursor="move"
            DivObj.style.left=window.event.x-Login_Win_Down_orgX
            
            DivObj.style.top=window.event.y-Login_Win_Down_orgY
        end if
   End Sub
   
   Sub Login_Win_Up(DivObj)
    DivObj.style.cursor="default"
    Login_Win_Down_Flag=false
    DivObj.releaseCapture
   
   End Sub
   
   sub divAlignCenter(div)
    
    div.style.left=(document.body.offsetWidth-VBparseInt(div.style.width))/2
    div.style.top=(document.body.offsetHeight-VBparseInt(div.style.height))/2
    
   end sub
   
   sub showDiv(div)
        
        divAlignCenter div
        div.style.display="block"
   end sub
   
   sub hideDiv(div)
        div.style.display="none"
   
   end sub
   function CheckNumber(val)
        if IsNumeric(val)  then
            CheckNumber=true
        else
            CheckNumber=false
        end if
   end function
   
</script>


<script language="javascript">
    var currentTR=null;
    function addToPurchaseOrder(tb1)
    {
        var isExist;
        if(dataValidate())
        {
            
            var row=tb1.insertRow(tb1.rows.length);
            
            row.style.height="22";
            row.style.whiteSpace="nowrap";
            row.style.backgroundColor="#ffffff";

            addMoveEvent(row);
            addOutEvent(row);
            addClickEvent(row);
            
            var cell=row.insertCell();
            cell.className="td1";
            cell.innerText=document.all("txtId").value;

            cell=row.insertCell();
            cell.className="td1";                
            cell.innerText=document.all("txtStuffNo").value;
            
            cell=row.insertCell();
            cell.className="td1";
            cell.innerText=document.all("txtStuffName").value+" ";
            
            cell=row.insertCell();
            cell.className="td1";
            cell.innerText=document.all("txtStuffSpec").value+" ";
              
              
            cell=row.insertCell();
            cell.className="td1";                
            cell.innerText=document.all("txtQuantity").value;
            
            cell=row.insertCell();
            cell.className="td1";
            cell.innerText=document.all("txtPrice").value+" ";
            
            cell=row.insertCell();
            cell.className="td1";
            cell.innerText=document.all("txtUnit").value+" ";
              
              
            cell=row.insertCell();
            cell.className="td1";
            cell.innerText=document.all("txtPrice").value*document.all("txtQuantity").value;
                
        }
    }

⌨️ 快捷键说明

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