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

📄 delegation.aspx

📁 尚洋仓库管理系统,对仓库
💻 ASPX
📖 第 1 页 / 共 2 页
字号:
<%@ page language="C#" autoeventwireup="true" inherits="BaseInfo_Delegation, App_Web_eihb9n8s" %>
<html>
    <head>
       
	    <link rel="stylesheet" href="../css/master.css" type="text/css" />
        
        <script language=javascript src="JScript.js"></script>
        <style>
           
        </style>
    </head>
    <body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" class="div">
    
    <form id="Form1" runat="server">
                <div style="font-size:2px;height:2px">&nbsp;</div>
         <!--=================================================================================-->
        <span id=span3 style="z-index:4;position:absolute;left:0;top:0;border-top:0px inset;border-left:1px inset;border-bottom:none;border-right:1px inset;overflow-y:hidden;overflow-x:hidden;padding-right:0"></span>
        <!--=================================================================================-->
        <div  id="span1" style="width:820; overflow-x:auto;overflow-y:auto;height:160;background-color:f6f6f6;border-top:#752d2d 1px solid;border-left:#752d2d 1px solid;border-bottom:#752d2d 1px solid;border-right:#752d2d 1px solid;"onscroll="vbs:HScroll">
            <table border=0  cellspacing=0 cellpadding=0 id=tb1 STYLE="table-layout: fixed; background-Color:#ffffff;border-left:buttonface 1px solid;">
		        <tr style="background-image:url('../images/tr.gif');height:22px">
		            <td class="td1" style="width:50">
				        <table border=0 width=100% height=100% cellpadding=0 cellspacing=0 STYLE="table-layout: fixed">
					        <tr>
						        <td noWrap class=td2>物料ID</td>
						        <td  noWrap class=td2 style="height:22;width:3" onmouseover="vbs:me.style.cursor='E-resize'" onmousedown="vbs:tz me"><img style="LEFT: 1px; POSITION: relative" height=100%  src="a/.gif" width=3 title="调整表格宽度" ></td>						
					        </tr>
				        </table>
			        </td>
			        <td class="td1" style="width:70">
				        <table border=0 width=100% height=100% cellpadding=0 cellspacing=0 STYLE="table-layout: fixed">
					        <tr>
						        <td noWrap class=td2>物料编号</td>
						        <td  noWrap class=td2 style="height:22;width:3" onmouseover="vbs:me.style.cursor='E-resize'" onmousedown="vbs:tz me"><img style="LEFT: 1px; POSITION: relative" height=100%  src="a/.gif" width=3 title="调整表格宽度" ></td>						
					        </tr>
				        </table>
			        </td>
			        
			        <td class="td1"  style="width:150">
				        <table border=0 width=100% height=100% cellpadding=0 cellspacing=0 STYLE="table-layout: fixed">
					        <tr>
						        <td noWrap class=td2>物料名称</td>		
						        <td  noWrap class=td2 style="height:22;width:3" onmouseover="vbs:me.style.cursor='E-resize'" onmousedown="vbs:tz me"><img style="LEFT: 1px; POSITION: relative" height=100%  src="a/.gif" width=3 title="调整表格宽度" ></td>						
					        </tr>
				        </table>
			        </td>
			        <td class="td1"  style="width:150">
				        <table border=0 width=100% height=100% cellpadding=0 cellspacing=0 STYLE="table-layout: fixed">
					        <tr>
						        <td noWrap class=td2>物料规格</td>		
						        <td  noWrap class=td2 style="height:22;width:3" onmouseover="vbs:me.style.cursor='E-resize'" onmousedown="vbs:tz me"><img style="LEFT: 1px; POSITION: relative" height=100%  src="a/.gif" width=3 title="调整表格宽度" ></td>						
					        </tr>
				        </table>
			        </td>
			        <td class="td1" style="width:60">
				        <table border=0 width=100% height=100% cellpadding=0 cellspacing=0 STYLE="table-layout: fixed">
					        <tr>
						        <td noWrap class=td2>产出数量</td>		
						        <td  noWrap class=td2 style="height:22;width:3" onmouseover="vbs:me.style.cursor='E-resize'" onmousedown="vbs:tz me"><img style="LEFT: 1px; POSITION: relative" height=100%  src="a/.gif" width=3 title="调整表格宽度" ></td>						
					        </tr>
				        </table>
			        </td>			
    			   <td class="td1" style="width:0">
				        <table border=0 width=100% height=100% cellpadding=0 cellspacing=0 STYLE="table-layout: fixed">
					        <tr>
						        <td noWrap class=td2>单价</td>		
						        <td  noWrap class=td2 style="height:22;width:3" onmouseover="vbs:me.style.cursor='E-resize'" onmousedown="vbs:tz me"><img style="LEFT: 1px; POSITION: relative" height=100%  src="a/.gif" width=3 title="调整表格宽度" ></td>						
					        </tr>
				        </table>
			        </td>
			        <td class="td1" style="width:60">
				        <table border=0 width=100% height=100% cellpadding=0 cellspacing=0 STYLE="table-layout: fixed">
					        <tr>
						        <td noWrap class=td2>单位</td>		
						        <td  noWrap class=td2 style="height:22;width:3" onmouseover="vbs:me.style.cursor='E-resize'" onmousedown="vbs:tz me"><img style="LEFT: 1px; POSITION: relative" height=100%  src="a/.gif" width=3 title="调整表格宽度" ></td>						
					        </tr>
				        </table>
			        </td>
			        <td class="td1" style="width:0">
				        <table border=0 width=100% height=100% cellpadding=0 cellspacing=0 STYLE="table-layout: fixed">
					        <tr>
						        <td noWrap class=td2>金额</td>		
						        <td  noWrap class=td2 style="height:22;width:3" onmouseover="vbs:me.style.cursor='E-resize'" onmousedown="vbs:tz me"><img style="LEFT: 1px; POSITION: relative" height=100%  src="a/.gif" width=3 title="调整表格宽度" ></td>						
					        </tr>
				        </table>
			        </td>
			        
		        </tr>
	            <asp:Repeater ID="rptDetails" runat="server">
                        <ItemTemplate>
                            <tr style="height:20; white-space:nowrap;background-Color:#ffffff" onmouseover="javascript:RowMouseOver(this);" onmouseout="javascript:RowMouseOut(this);" onclick="javascript:modifyRecord(this);">
                                <td class="td1"> <%#DataBinder.Eval(Container.DataItem, "StuffId") %>&nbsp;</td>
                                <td class="td1"><%#DataBinder.Eval(Container.DataItem, "StuffNo")%>&nbsp;</td>
                                <td class="td1"><%#DataBinder.Eval(Container.DataItem,"StuffName") %>&nbsp;</td>
                               <td class="td1"><%#DataBinder.Eval(Container.DataItem,"StuffSpec") %>&nbsp;</td>
                               <td class="td1"><%#DataBinder.Eval(Container.DataItem,"Quantity") %>&nbsp;</td>
                               <td class="td1">0</td>
                               <td class="td1"><%#DataBinder.Eval(Container.DataItem,"Unit") %>&nbsp;</td>
                               <td class="td1">0</td>
                            </tr>
                        </ItemTemplate>
                </asp:Repeater>
		        </table>
        </div>  
        <!--=================================================================================-->
        <span id=span2 style="border-right:#229900 1px solid;border-left:#cc0000 1px solid;display:none;z-index:10;left:0px;width:0px;position:absolute;top:0px;height:0" onmousemove="vbs:M_Move" onmouseup="vbs:m_up"></span>
        
        <!--=================================================================================-->
        
        
        
        <!--====================================添加明细=============================================-->
        <div style="display:block;overflow-x:auto;width:820; overflow-y:auto;height:55;background-color:#f6f6f6;border-top:#752d2d 0px solid;border-left:#752d2d 1px solid;border-bottom:#752d2d 1px solid;border-right:#752d2d 1px solid;">            
            <table cellpadding="0" cellspacing="0" width="815" style="cursor:default" border=0 style="padding:2px 1px 1px 1px">
                <tr height=30>
                    <td align="left" colspan="6">
                        <span onmouseover="javascript:changeBorder_In(this);" onmouseout="javascript:changeBorder_Out(this);" class="MainMenu"style="display:none"><img src="../images/add.gif">&nbsp;新增明细</span>&nbsp;&nbsp;
                        <span class="MainMenu" onclick="javascript:modifyRecord();" onmouseout="javascript:changeBorder_Out(this);"
                            onmouseover="javascript:changeBorder_In(this);" style="display: none"><img src="../images/modify.gif" >&nbsp;修改明细</span>&nbsp;&nbsp;
                        <span onmouseover="javascript:changeBorder_In(this);" onmouseout="javascript:changeBorder_Out(this);" class="MainMenu" onclick="javascript:deleteDetails();"><img src="../images/delete.gif">&nbsp;删除明细</span>&nbsp;&nbsp;
                        <span onmouseover="javascript:changeBorder_In(this);" onmouseout="javascript:changeBorder_Out(this);" class="MainMenu"  onclick="javascript:addToPurchaseOrder(document.all('tb1'));"><img src="../images/save.gif">&nbsp;添加至明细</span>&nbsp;&nbsp;
                        
                    </td>
                </tr>
                <tr>
                    <td>
                        物料编号:<input class="textBox2" id="txtStuffNo" style="background-Color:#f6f6f6;width:75" readonly/><input type=hidden id="txtId" />
                        <span onclick="javascript:showList(0);"; onmouseover="javascript:changeBorder_In2(this);" onmouseout="javascript:changeBorder_Out2(this);" style="border-top:solid 1px #c6c6c6;border-left:solid 1px #c6c6c6;border-bottom:solid 1px #3d3d3d;border-right:solid 1px #3d3d3d;"><img src="../images/search.gif"/>物料&nbsp;</span>
                        <span onclick="javascript:showList(1);"; onmouseover="javascript:changeBorder_In2(this);" onmouseout="javascript:changeBorder_Out2(this);" style="border-top:solid 1px #c6c6c6;border-left:solid 1px #c6c6c6;border-bottom:solid 1px #3d3d3d;border-right:solid 1px #3d3d3d;"><img src="../images/search.gif"/>半成品&nbsp;</span>
                    </td>
                    <td>产出数量:<input class="textBox2" id="txtQuantity" style="width:50;"/></td>
                    <td>物料名称:<input class="textBox2" id="txtStuffName" style="background-Color:#f6f6f6;width:90" readonly/></td>
                    <td>物料规格:<input class="textBox2" id="txtStuffSpec"  style="background-Color:#f6f6f6;width:100" readonly/></td>
                    
                
                    
                    <td style="display:none">物料单价:<input class="textBox2" id="txtPrice"  style="width:120;"/></td>
                    <td>物料单位:<input class="textBox2" id="txtUnit"  style="background-Color:#f6f6f6;width:50" readonly/></td>
                </tr>
            </table>
        </div>
        </form> 
          
       <input type=hidden id="txtDetails" />
    </body>
</html>


	<script langauge=javascript>
	    function showList(flag)
	    {
	        if(flag==0)//物料
	        {
	            //document.all("frmStuff").src="StuffList.aspx";
	            window.showModalDialog("SpecialStuffList.aspx",document,"dialogHeight:500px;dialogWidth:650px;scroll:no;status:no;unadorned:yes;edge:sunken");
	        }
	        else
	            window.showModalDialog("SpecialSemiproductList.aspx",document,"dialogHeight:500px;dialogWidth:785px;scroll:no;status:no;unadorned:yes;edge:sunken");
	        //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-1
			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

⌨️ 快捷键说明

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