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

📄 stufflist.aspx

📁 尚洋仓库管理系统,对仓库
💻 ASPX
📖 第 1 页 / 共 5 页
字号:
				        </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 title="库存量">库存量</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 title="备注">大类</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 title="备注">备注</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="rptStuff" runat="server">
                        <ItemTemplate>
                            <tr style="height:22; white-space:nowrap;background-Color:#ffffff" onmouseover="javascript:RowMouseOver(this);" onmouseout="javascript:RowMouseOut(this);" onclick="javascript:chooseTr(this);" ondblclick="javascript:modifyRecord();">
                                <td class="td1"> <%#DataBinder.Eval(Container.DataItem, "PKID") %>&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, "Specification") %>&nbsp;</td>
                                <td class="td1"><%#DataBinder.Eval(Container.DataItem, "unit")%>&nbsp;</td>
                                <td class="td1"><%#DataBinder.Eval(Container.DataItem,"StuffType") %>&nbsp;</td>
                                <td class="td1"> <%#DataBinder.Eval(Container.DataItem, "StuffTypeName") %>&nbsp;</td>
                                <td class="td1"><%#DataBinder.Eval(Container.DataItem, "UnitPrice")%>&nbsp;</td>
                                <td class="td1"><%#DataBinder.Eval(Container.DataItem,"Stock") %>&nbsp;</td>
                                <td class="td1" ><%#DataBinder.Eval(Container.DataItem,"Sort") %>&nbsp;</td>
                                <td class="td1"><%#DataBinder.Eval(Container.DataItem,"Remark") %>&nbsp;</td>
                               
                            </tr>
                        </ItemTemplate>
                        
                </asp:Repeater>
		        </table>
        </div>  
            </td>
            </tr>
        </table>
        <!--=================================================================================-->
        <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 id="popDiv" 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:280;height:320;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="280" height="320"  bgcolor="#e6e6e6" >
                <tr id="trfirst" 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('popDiv').style.display='none'"/></td>
                </tr>
                <tr  onmousedown="vbs:window.event.cancelBubble=true">
                    <td valign="middle" align="center">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span  align="center" style="width:280;border-top:solid 1px #999999;border-left:solid 1px #999999;border-right:solid 1px #ffffff;border-bottom:solid 1px #ffffff;" >
                        <table height="250"  border=0 style="width:280;border-top:solid 1px #ffffff;border-left:solid 1px #ffffff;border-right:solid 1px #999999;border-bottom:solid 1px #999999;">
                            <tr>
                                <td>
                                    编号(自动):
                                </td>
                                <td>
                                    <input class="textBox" id="txtId" readonly style="background-Color:#f6f6f6"/>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    物料编号:
                                </td>
                                <td>
                                    <input class="textBox" id="txtNewStuffNo"/>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    物料名称:
                                </td>
                                <td>
                                    <input class="textBox" id="txtNewStuffName"/>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    物料类型:
                                </td>
                                <td>
                                    <span class=outside style="width:52">
                                    <div class=inset style="width:50">
                                        <select hidefocus id="sltNewSort" onchange="javascript:linkage(this,document.all('sltNewCategory'));" style="width:51" onchange="javascript:linkage(this,document.all('sltNewCategory'));">   
                                                <option selected value=""></option>
                                              <option   value="原料">原料 </option>  
                                              <option value="辅料">辅料 </option>
                                            </select>
                                            
                                        </div>
                                    </span> 
                                    <span class=outside style="width:102">
                                    <div class=inset style="width:100">
                                        <select hidefocus id="sltNewCategory" style="width:101">   
                                                <option selected value=""></option>
                                            </select>
                                            
                                        </div>
                                    </span>  
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    物料规格:
                                </td>
                                <td>
                                    <input class="textBox" id="txtNewSpecification"/>
                                </td>
                            </tr>
                            
                            <tr>
                                <td>
                                    单&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;位:
                                </td>
                                <td>
                                     <span class=outside style="width:62">
                                    <div class=inset style="width:60">
                                        <select hidefocus id="sltNewUnit" style="width:61" onchange="javascript:linkage(this,document.all('sltCategory'));">   
                                                <option selected value=""></option>
                                            </select>
                                            
                                        </div>
                                    </span> 
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    单&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;价:
                                </td>
                                <td>
                                    <input class="textBox" id="txtNewPrice"/>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    库&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;存:
                                </td>
                                <td>
                                    <input class="textBox" id="txtNewStock"/>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注:
                                </td>
                                <td>
                                    <input class="textBox" id="txtNewNote"/>
                                </td>
                            </tr>
                            
                        </table>
                        </span><br />
                        <input type=button  value="保    存" style="border:none;width:100;height:25;background-image:url('../images/button.gif');font-size:12px;" onclick="javascript:save2(document.all('tb1'));"/>&nbsp;&nbsp;&nbsp;&nbsp;
                        <input type=button value="取    消" style="border:none;width:100;height:25;background-image:url('../images/button.gif');font-size:12px;" onclick="vbs:hideDiv document.all('popDiv')"/>
                        
                    </td>
                </tr>
            </table>
        </div>
        <!----------------------------------------------弹出层(新增类别)------------------------------------------------------->
        <div id="divCategory" 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:280;height:180;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="280" height="180"  bgcolor="#e6e6e6" >
                <tr id="tr1" 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('divCategory').style.display='none'"/></td>
                </tr>
                <tr  onmousedown="vbs:window.event.cancelBubble=true">
                    <td valign="middle" align="center">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <span  align="center" style="width:280;border-top:solid 1px #999999;border-left:solid 1px #999999;border-right:solid 1px #ffffff;border-bottom:solid 1px #ffffff;" >
                        <table height="90"  border=0 style="width:280;border-top:solid 1px #ffffff;border-left:solid 1px #ffffff;border-right:solid 1px #999999;border-bottom:solid 1px #999999;">
                            <tr>
                                <td>编号(自动):</td>
                                <td>
                                    <input class="textBox" id="txtAddCategoryId" style="background-Color:#f6f6f6" value="999" ReadOnly/>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    所属大类:
                                </td>
                                <td>
                                    <div class=outside style="width:152">
                                    <div class=inset style="width:150">
                                        <select hidefocus id="sltAddCategory" onchange="javascript:linkage(this,document.all('sltNewCategory'));" style="width:151" onchange="javascript:linkage(this,document.all('sltNewCategory'));">   
                                                <option selected value=""></option>
                                              <option   value="原料">原料 </option>  
                                              <option value="辅料">辅料 </option>
                                            </select>
                                            
                                        </div>
                                    </div> 
                                </td>
                            </tr>
                            <tr>
                                <td>小类名称:</td>
                                <td>
                                    <input class="textBox" id="txtAddCategory" />
                                </td>
                            </tr>
                            <tr style="display:none">
                                <td>说&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;明:</td>
                                <td>
                                    <input class="textBox" id="txtAddRemark" />
                                </td>
                            </tr>
                            
                        </table>
                     </span>
                     <br />
                        <input type=button  value="保    存" style="border:none;width:100;height:25;background-image:url('../images/button.gif');font-size:12px;" onclick="javascript:saveCategory(document.all('tb1'));"/>&nbsp;&nbsp;&nbsp;&nbsp;
                        <input type=button value="取    消" style="border:none;width:100;height:25;background-image:url('../images/button.gif');font-size:12px;" onclick="vbs:hideDiv document.all('divCategory')"/>
                        
                   </td>
                </tr>
            </table>
       </div>
    </form>
</body>
</html>
<script language=javascript>
    function modifyRecord()
    {
        //改为赋值给父窗口
        try
        {
        userOperate="modify";
        
        var parentDocument=document.parentWindow.parent.document;
        
        parentDocument.all("txtId").value=vbTrim(currentTR.cells[0].outerText);
        parentDocument.all("txtStuffNo").value=vbTrim(currentTR.cells[1].outerText);
        parentDocument.all("txtStuffName").value=vbTrim(currentTR.cells[2].outerText);
        parentDocument.all("txtStuffSpec").value=vbTrim(currentTR.cells[3].outerText);
        parentDocument.all("txtPrice").value=vbTrim(currentTR.cells[7].outerText);
        parentDocument.all("txtUnit").value=vbTrim(currentTR.cells[4].outerText);
        parentDocument.all("divStuffList").style.display="none";
        parentDocument.all("txtQuantity").value="0";
        parentDocument.all("txtStock").value=vbTrim(currentTR.cells[8].outerText);
        
        return;
        }
        catch(e)
        {
        
        }
        return;
        if(currentTR==null||document.all("tb1").rows.length==1)
        {
            alert("请先选择要修改的");
            return;
        }
        userOperate="modify";
        BindUnit(document.all("sltNewUnit"));
        selectSltValue(document.all("sltNewUnit"),vbTrim(currentTR.cells[4].outerText));
        selectSltValue(document.all("sltNewSort"),vbTrim(currentTR.cells[9].outerText));

⌨️ 快捷键说明

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