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

📄 product_list.aspx

📁 金苹果进销存管理系统V1.2 运行环境: ASP.NET + SQL Server 2000
💻 ASPX
字号:
<%@ Page language="c#" Codebehind="product_list.aspx.cs" AutoEventWireup="false" Inherits="jpgSoftware_SM.product.product_list" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>产品列表</title>
		<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<link href="../styCss/sty1.css" rel="stylesheet" type="text/css">
		<link href="../styCss/fontsty.css" rel="stylesheet" type="text/css">
		<script language="javascript" type=text/javascript>
		   function editProduct(menuStr)
		   {  
		     if(menuStr!='NaN')
		     {
		        window.showModalDialog('selectModalDialog.aspx?product_Edit.aspx?id='+menuStr,'','dialogWidth:660px;dialogHeight:600px;help:no;scroll:no;status:no');
		     }
		     else
		     {
		       alert('传入错误参数');
		     }
		     window.location.href = location.href; 
		   }
		   
		   function deleteProduct(menuStr)
		   {
		   
		        if(window.confirm('确定要删除该产品吗?'))
		        {
		           window.showModalDialog('selectModalDialog.aspx?product_Delete.aspx?'+menuStr,'','dialogWidth:510px;dialogHeight:150px;help:yes;scroll:no;status:no');
		        }
		        else
		        {
		          return false;
		        }
		     window.location.href = location.href;
		   }
		   
		     
		  function addProduct()
		   {
		        window.showModalDialog('selectModalDialog.aspx?product_Add.aspx','','dialogWidth:680px;dialogHeight:600px;help:no;scroll:no;status:yes');
		      window.location.href = location.href;
		      
		   }
		   
		  function addProductGroup()
		   {
		       window.showModalDialog('selectModalDialog.aspx?product_groupAdd.aspx','','dialogWidth:500px;dialogHeight:300px;help:0;scroll:0;status:0');
		       window.location.href = location.href;
		     
		   }
		   
		  
		  function viewProduct(productStr)
		   {  
               window.showModalDialog('selectModalDialog.aspx?product_view.aspx?id='+productStr,'','dialogWidth:660px;dialogHeight:630px;help:no;scroll:auto;status:no');
           }
		      
		
		   
		 var SelEmpl = '';
			function SelectEmpl(eid)
			{
				if (SelEmpl != '')
				{
					document.all['NM'+SelEmpl].style.backgroundColor = '';
					document.all['NM'+SelEmpl].style.color = '';
				}
				
				SelEmpl = eid;				
				document.all['NM'+eid].style.backgroundColor = 'gold';
				document.all['NM'+SelEmpl].style.color = 'black';
				
				//------------------------------------
				var returnValue1="";
				var reportID = "";
				var TableRows=document.Form1.all["storageTable"].rows;
			    var ids = eid-1;
					if(TableRows[ids].cells[0].childNodes[0].tagName=="INPUT")
					{
						
					 returnValue1 = TableRows[ids].cells[0].childNodes[0].value;
							
					}
				
			}
		</script>
	</HEAD>
	<body MS_POSITIONING="GridLayout" topmargin="0" leftmargin="0">
		<form id="Form1" method="post" runat="server">
			<table height="5">
				<tr>
					<td></td>
				</tr>
			</table>
			<table width="760" height="98%" border="0" cellpadding="0" cellspacing="0" class="hTable_cro">
				<tr>
					<td valign="top">
						<table width="100%" cellpadding="0" cellspacing="0" id=storageTable>
							<tr>
								<td height="20" colspan="7" align="center" background="../Image/titleLine.gif" class="whitFont">产品列表</td>
							</tr>
							<asp:repeater id="productListRp" runat="server">
								<HeaderTemplate>
									<tr class="table_botLine" align="center">
										<td class="table_botLine table_topLine ">图标</td>
										<td class="table_botLine table_leftLine table_topLine">产品编号</td>
										<td class="table_botLine table_leftLine table_topLine">产品中文名</td>
										<td class="table_botLine table_leftLine table_topLine">产品英文名</td>
										<td class="table_botLine table_leftLine table_topLine">型号</td>
										<td class="table_botLine table_leftLine table_topLine">规格</td>
										<td class="table_botLine table_leftLine table_topLine ">事件</td>
									</tr>
								</HeaderTemplate>
								<ItemTemplate>
									<tr id="NM<%#DataBinder.Eval(Container.DataItem,"FormID")%>" onMouseOver="this.bgColor='LemonChiffon'"   onMouseOut="this.bgColor=''" onClick="javascript:SelectEmpl('<%#DataBinder.Eval(Container.DataItem,"FormID")%>')"
									ondblclick="javascript:viewProduct('<%#DataBinder.Eval(Container.DataItem,"FormID")%>')">
										<td width="79" class="table_botLine  ">&nbsp;</td>
										<td width="136" class="table_botLine  table_leftLine">&nbsp;&nbsp;<%#DataBinder.Eval(Container.DataItem,"pCode")%>
										</td>
										<td width="286" class="table_botLine  table_leftLine">&nbsp;&nbsp;<%#DataBinder.Eval(Container.DataItem,"pCName")%>
										</td>
										<td width="365" class="table_botLine  table_leftLine">&nbsp;&nbsp;<%#DataBinder.Eval(Container.DataItem,"pEName")%>
										</td>
										<td width="127" class="table_botLine  table_leftLine">&nbsp;&nbsp;<%#DataBinder.Eval(Container.DataItem,"productType")%>
										
										<td width="114" class="table_botLine  table_leftLine">&nbsp;&nbsp;<%#DataBinder.Eval(Container.DataItem,"specs")%>
										</td>
										<td width="131" class="table_botLine  table_leftLine " align=center> <a href="#" onClick="javascript:editProduct('<%#DataBinder.Eval(Container.DataItem,"FormID")%>')"><img src=../Image/edit.gif width=16 height=15 border=0 alt="编辑产品">
												</a>  |  <a href="#" onClick="javascript:deleteProduct('<%#DataBinder.Eval(Container.DataItem,"FormID")%>')"><img src=../Image/delete.gif width=12 height=13 border=0 alt="删除产品"></a></td>
									</tr>
								</ItemTemplate>
								<FooterTemplate>
													<tr>
													<td height="25" width=79 align=right  > <img src=../Image/add.gif width=14 height=14 onClick="javascript:addProduct()" alt="新建产品"> 新 建</td>
												<td height="20" colspan=4  ><img src=../Image/add.gif width=14 height=14 onClick="javascript:addProductGroup()" alt="新建产品组"> 新建产品组</td>
												
										        </tr>
							  </FooterTemplate>
							</asp:repeater></table>
					</td>
				</tr>
		  </table>
		</form>
	</body>
</HTML>

⌨️ 快捷键说明

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