<%@ Page Title="" Language="C#" MasterPageFile="~/BackStage/HelperMaster.Master" AutoEventWireup="true" CodeBehind="Frm_AddPtypeData.aspx.cs" Inherits="AndroidSevice.Web.WLTGL.Frm_AddPtypeData" %>
<%@ Register assembly="AspNetPager" namespace="Wuqi.Webdiyer" tagprefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">
        function sAlert(info) {
            var message = info;
            layer.alert(message, 8); //风格一，layer弹出层特效
            parent.location.reload(); //刷新父页面
        }
        function sAlertMes(info) {
            var message = info;
            layer.alert(message, 8); //风格一，layer弹出层特效
        }
        function sAlertok(info) {
            layer.alert(info, { closeBtn: 0
            }, function () {
                parent.location.reload(); //刷新父页面
            });
        }
        function sAlertOut(info) {
            layer.alert(info, { closeBtn: 0
            }, function () {
                window.location.href = '../../default.aspx'; //刷新父页面
            });
        }
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="container-fluid">
				<div class="row-fluid">
					<div class="span12">
						<div class="widget-box">
							<div class="widget-title">
								<span class="icon">
									<i class="icon-th-list"></i>
								</span>
								<h5>商品选择</h5>
							</div>
							<div class="widget-content2">
                            <table id="query" class="table table-bordered table-striped table-hover">
                                    <tbody>
                                    <tr>
										<td>
                                           <select class="selectstyle" name="selType" id="selType" style="width:150px">
                                                <option value="0">按商品编号查询</option>
                                                <option value="1">按商品全名查询</option>
                                                <option value="2">按商品拼音码查询</option>
                                           </select>            
                                            <input type="text" name="condition" id="condition" style="width:300px" value="<%=_condition %>"/>               
                                        </td>
                                        <td>
                                            <button type="submit" name="sub" value="sub" class="btn" >查询</button>
                                            <asp:HiddenField ID="HiddenField1" runat="server" Visible="false"  />
                                        </td>
									</tr>
                                    </tbody>
							 </table>
                             <table id="wew" class="table table-bordered table-striped table-hover">
                                    <thead>
										<tr>
											<th style="width:20px">选择</th>
											<th>编号</th>
                                            <th>名称</th>
                                            <th>规格</th>
                                            <th>型号</th>
										</tr>
									</thead>
                                    <tbody>
                                    <%
                                        if (dtList != null && dtList.Rows.Count != 0)
                                        {
                                            for (int i = 0; i < dtList.Rows.Count; i++)
                                            {
                                    %>
                                    <tr>
											<td style="width:20px"><input type="checkbox" name="lodecheck" value=<%=dtList.Rows[i]["TypeID_"].ToString()+":"+dtList.Rows[i]["sonnum"].ToString()%> /></td>
                                            <td><%=dtList.Rows[i]["usercode"].ToString()%></td>
                                            <td><a href="Frm_AddPtypeData.aspx?sel=sel&btypeid=<%=dtList.Rows[i]["typeid_"].ToString()%>&parid=<%=dtList.Rows[i]["parid"].ToString() %>"><%=dtList.Rows[i]["fullname"].ToString()%></a></td>
                                            <td><%=dtList.Rows[i]["Standard"].ToString()%></td>
                                            <td><%=dtList.Rows[i]["TYPE"].ToString()%></td>
									</tr>
                                    <%
                                            }
                                        }
                                    %>
                                    </tbody>
							</table>
						</div>
                         <div class="pager">
                            <webdiyer:aspnetpager ID="AspNetPagerLode" runat="server" FirstPageText="首页" 
                            LastPageText="尾页" PrevPageText="上一页" NextPageText="下一页" 
                            onpagechanging="AspNetPagerLode_PageChanging"
                            PageSize="20" AlwaysShow="True" />
							</div>
                        <div class="form-actions" style="text-align:center ">
                            <a href="#"><button type="submit" value="mit" name="mit" class="btn" >确定选择</button></a>
                            <a href="Frm_AddPtypeData.aspx?page=return&btypeid=<%=_btypeid %>"><button type="button"  class="btn" >返回上层</button></a>
                        </div>
					</div>
				</div>
			</div>
</div>
</asp:Content>
