SelectGoodsFormData.aspx
上传用户:simon2hong
上传日期:2021-11-18
资源大小:16746k
文件大小:3k
源码类别:

OA系统

开发平台:

C#

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="SelectGoodsFormData.aspx.cs" Inherits="SelectForm_SelectGoodsFormData" %>
  2. <%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml" >
  5. <head runat="server">
  6.     <title>无标题页</title>
  7.     <link href="../css/main.css" type="text/css" rel="stylesheet" />
  8.     <script type="text/javascript">
  9.         function RtValue(rtstr)
  10.         {
  11.             window.returnValue=rtstr;
  12.             window.close()
  13.         }
  14.         function OnTreeNodeChecked()   
  15.         {        
  16.             var Obj=event.srcElement; 
  17.             if(Obj.tagName == "A" || Obj.tagName== "a")    
  18.             {          
  19.                 alert(Obj.id);//访问被点击结点的值,同样可以通过Obj.innerText设置它的值   
  20.                 window.returnValue=Obj.id; 
  21.                 window.close();
  22.                 return;
  23.             }   
  24.         }  
  25.     </script>
  26. </head>
  27. <body bottommargin="0" leftmargin="0" topmargin="0" rightmargin="0">
  28.     <form runat="server" id="fm1">
  29.         <table border="0" cellpadding="0" cellspacing="0" style="width: 234px; height: 221px;" >
  30.             <tr>
  31.                 <td style="width: 100%" valign="top">  
  32.                    <div style="OVERFLOW: auto; width:232px;  HEIGHT: 316px;  " id="z" align="center">
  33.                         <asp:GridView ID="GridView1" CssClass="usertableborder" runat="server" AutoGenerateColumns="False" OnRowDataBound="GridView1_RowDataBound" Width="87%">
  34.                             <Columns>
  35.                                 <asp:BoundField DataField="YPMC" HeaderText="物品名称" DataFormatString="&lt;a style=quot;cursor:pointer quot;  onclick=&quot;RtValue('{0}')&quot;&gt;{0}&lt;/a&gt;" HtmlEncode="False">
  36.                                     <HeaderStyle Width="200px" />
  37.                                     <ItemStyle HorizontalAlign="Center" />
  38.                                 </asp:BoundField>
  39.                             </Columns>
  40.                             <RowStyle CssClass="usertablerow2" />
  41.                             <AlternatingRowStyle CssClass="usertablerow1" />
  42.                         </asp:GridView>
  43.                     </div>
  44.                     &nbsp;<webdiyer:AspNetPager ID="AspNetPager1" runat="server" PageSize="20" OnPageChanging="AspNetPager1_PageChanging" NumericButtonCount="5"></webdiyer:AspNetPager>  
  45.                 </td>
  46.             </tr>
  47.         </table>
  48.     </form>
  49. </body>
  50. </html>