<%@ Page Language="C#" AutoEventWireup="true" CodeFile="sel_jjz_jjfw.aspx.cs" Inherits="Admin_sel_jjz_jjfw" StylesheetTheme="Default" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>集结站集结时间表</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table class="Table1" border="1" bordercolor="#5555dd" style="width: 800px">
            <tr>
                <td style=" height: 17px;width: 100px">
                                <asp:Label ID="Label5" runat="server" Text="集结站:"></asp:Label></td>
                <td style=" height: 17px;width: 100px">
                    <asp:DropDownList ID="DropDownList1" runat="server" Height="20px"
                        Width="100px">
                    </asp:DropDownList></td>
                <td style=" height: 17px;width: 100px">
                    <asp:Label ID="Label1" runat="server" Text="起始日期:"></asp:Label></td>
                <td style=" height: 17px;width: 100px">
                    <asp:TextBox ID="TextBox5" runat="server" Width="100px" Height="15px"></asp:TextBox></td>
                <td style=" height: 17px;width: 89px">
                    <asp:Label ID="Label2" runat="server" Text="结束日期:"></asp:Label></td>
                <td style=" height: 17px;width: 87px">
                    <asp:TextBox ID="TextBox6" runat="server" Height="15px" Width="100px"></asp:TextBox></td>
                <td style=" height: 17px;width: 100px">
                    <asp:Label ID="Label3" runat="server" Text="棚车百分比:" Width="74px"></asp:Label></td>
                <td style="width: 100px; height: 17px">
                    <asp:TextBox ID="TextBox1" runat="server" Width="100px" Height="15px"></asp:TextBox></td>
            </tr>
            <tr>
                <td style="width: 100px; height: 17px">
                    <asp:Label ID="Label4" runat="server" Text="平车百分比:"></asp:Label></td>
                <td style="width: 100px; height: 17px">
                    <asp:TextBox ID="TextBox2" runat="server" Width="100px" Height="15px"></asp:TextBox></td>
                <td style="height: 17px; width: 100px;">
                                <asp:Label ID="Label6" runat="server" Text="运行时间:"></asp:Label></td>
                <td style="height: 17px; width: 100px;">
                                <asp:TextBox ID="TextBox3" runat="server" Width="100px" Height="15px"></asp:TextBox></td>
                <td style="width: 100px; height: 17px">
                                <asp:Label ID="Label7" runat="server" Text="挂运次数:" Width="60px"></asp:Label></td>
                <td style="height: 17px; width: 100px;">
                                <asp:TextBox ID="TextBox4" runat="server" Width="100px" Height="15px"></asp:TextBox></td>
                <td style="height: 17px" colspan="2">
                    <asp:Label ID="Label229" runat="server" Width="180px"></asp:Label></td>
            </tr>
            <tr>
                <td style="width: 100px; height: 17px">
                    <asp:Label ID="Label228" runat="server" Text="选择集结范围:" Width="84px"></asp:Label></td>
                <td colspan="2" style="height: 17px; width: 200px;">
                    <asp:DropDownList ID="DropDownList2" runat="server" Width="200px">
                    </asp:DropDownList></td>
                <td style="height: 17px; width: 100px;">
                    <asp:Label ID="Label8" runat="server" Text="集界范围:"></asp:Label></td>
                <td colspan="2" rowspan="6" style="height: 117px; width: 200px;">
                    <asp:ListBox ID="ListBox1" runat="server" Height="117px" Width="200px">
                    </asp:ListBox></td>
                <td style="width: 100px; height: 17px">
                </td>
                <td style="width: 100px; height: 17px">
                </td>
            </tr>
            <tr>
                <td style="width: 100px; height: 17px">
                </td>
                <td style="width: 100px; height: 17px">
                </td>
                <td style="width: 100px; height: 17px">
                </td>
                <td style="width: 100px; height: 17px">
                </td>
                <td style="width: 100px; height: 17px">
                </td>
                <td style="width: 100px; height: 17px">
                </td>
            </tr>
            <tr>
                <td style="width: 100px; height: 17px">
                </td>
                <td style="width: 100px; height: 17px">
                </td>
                <td style="height: 17px; width: 100px;">
                </td>
                <td style="height: 17px; width: 100px;">
                </td>
                <td style="width: 100px; height: 17px">
                </td>
                <td style="width: 100px; height: 17px">
                </td>
            </tr>
            <tr>
                <td style="width: 100px; height: 17px">
                </td>
                <td style="width: 100px; height: 17px">
                </td>
                <td style="width: 100px; height: 17px">
                </td>
                <td style="width: 100px; height: 17px">
                </td>
                <td style="width: 100px; height: 17px">
                </td>
                <td style="width: 100px; height: 17px">
                </td>
            </tr>
            <tr>
                <td style="width: 100px; height: 17px">
                </td>
                <td style="width: 100px; height: 17px">
                </td>
                <td style="width: 100px; height: 17px">
                </td>
                <td style="width: 100px; height: 17px">
                </td>
                <td style="width: 100px; height: 17px">
                </td>
                <td style="width: 100px; height: 17px">
                </td>
            </tr>
            <tr>
                <td style="width: 100px; height: 17px">
                </td>
                <td style="width: 100px; height: 17px">
                </td>
                <td style="width: 100px; height: 17px">
                </td>
                <td style="width: 100px; height: 17px">
                </td>
                <td style="width: 100px; height: 17px">
                </td>
                <td style="width: 100px; height: 17px">
                </td>
            </tr>
            <tr>
                <td style="width: 100px; height: 17px">
                </td>
                <td style="width: 100px; height: 17px">
                </td>
                <td style="width: 100px; height: 17px" align="center">
                    <asp:Button ID="Button3" runat="server" Text="选择" Height="20px" Width="80px" OnClick="Button3_Click" /></td>
                <td style="width: 100px; height: 17px" align="center">
                    <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="删除集结范围" Width="100px" Height="20px" /></td>
                <td style="width: 89px; height: 17px" align="center">
                    <asp:Button ID="Button4" runat="server" OnClick="Button4_Click" Text="清空集结范围" /></td>
                <td style="height: 17px; width: 87px;" align="center">
                    <asp:Button ID="Button2" runat="server" Text="生成集结时间表" Width="100px" Height="20px" OnClick="Button2_Click" /></td>
                <td style="width: 100px; height: 17px">
                </td>
                <td style="width: 100px; height: 17px">
                </td>
            </tr>
        </table>
    
    </div>
见下一页

解决方案 »

  1.   

    <asp:DataList ID="DataList1" runat="server" Width="820px" >
                <HeaderTemplate>
                    <table class="Table1" border="1" bordercolor="#5555dd" style="width: 800px">
                        <tr>
                            <td align="center" colspan="24" rowspan="1">
                                <asp:Label ID="Label35" runat="server" Font-Bold="True" Font-Size="20pt" Text='()空车集结站集结时间表'></asp:Label></td>
                        </tr>
                        <tr>
                            <td colspan="2" rowspan="2" style="width: 60px; height: 16px" align="center">
                                <asp:Label ID="Label9" runat="server" Text="集结范围"></asp:Label></td>
                            <td rowspan="2" style="width: 15px; height: 16px" align="center">
                                <asp:Label ID="Label10" runat="server" Text="车种"></asp:Label></td>
                            <td style="height: 16px;width:80px;" align="center" colspan="2">
                                <asp:Label ID="Label11" runat="server" Text="来车数量"></asp:Label></td>
                            <td style="height: 16px; width: 240px;" align="center" colspan="8">
                                <asp:Label ID="Label12" runat="server" Text="第一天"></asp:Label></td>
                            <td style="height: 16px; width: 240px;" align="center" colspan="8">
                                <asp:Label ID="Label13" runat="server" Text="第二天"></asp:Label></td>
                            <td rowspan="2" style="width: 40px" align="center">
                                <asp:Label ID="Label32" runat="server" Text="运行时间"></asp:Label></td>
                            <td rowspan="2" style="width: 40px" align="center">
                                <asp:Label ID="Label33" runat="server" Text="挂运次数"></asp:Label></td>
                            <td style="width: 40px;" rowspan="2" align="center">
                                <asp:Label ID="Label34" runat="server" Text="间隔时间"></asp:Label></td>
                        </tr>
                        <tr>
                            <td style="height: 16px; width: 40px;" align="center">
                                <asp:Label ID="Label14" runat="server" Text="重变空"></asp:Label></td>
                            <td style="height: 16px; width: 40px;" align="center">
                                <asp:Label ID="Label15" runat="server" Text="原空车"></asp:Label></td>
                            <td style="height: 16px; width: 30px;" align="center">
                                <asp:Label ID="Label16" runat="server" Text="3"></asp:Label></td>
                            <td style="height: 16px; width: 30px;" align="center">
                                <asp:Label ID="Label17" runat="server" Text="6"></asp:Label></td>
                            <td style="height: 16px; width: 30px;" align="center">
                                <asp:Label ID="Label18" runat="server" Text="9"></asp:Label></td>
                            <td style="height: 16px; width: 30px;" align="center">
                                <asp:Label ID="Label19" runat="server" Text="12"></asp:Label></td>
                            <td style="height: 16px; width: 30px;" align="center">
                                <asp:Label ID="Label20" runat="server" Text="15"></asp:Label></td>
                            <td style="height: 16px; width: 30px;" align="center">
                                <asp:Label ID="Label21" runat="server" Text="18"></asp:Label></td>
                            <td style="height: 16px; width: 30px;" align="center">
                                <asp:Label ID="Label22" runat="server" Text="21"></asp:Label></td>
                            <td style="height: 16px; width: 30px;" align="center">
                                <asp:Label ID="Label23" runat="server" Text="24"></asp:Label></td>
                            <td style="height: 16px; width: 30px;" align="center">
                                <asp:Label ID="Label24" runat="server" Text="27"></asp:Label></td>
                            <td style="height: 16px; width: 30px;" align="center">
                                <asp:Label ID="Label25" runat="server" Text="30"></asp:Label></td>
                            <td style="height: 16px; width: 30px;" align="center">
                                <asp:Label ID="Label26" runat="server" Text="33"></asp:Label></td>
                            <td style="height: 16px; width: 30px;" align="center">
                                <asp:Label ID="Label27" runat="server" Text="36"></asp:Label></td>
                            <td style="height: 16px; width: 30px;" align="center">
                                <asp:Label ID="Label28" runat="server" Text="39"></asp:Label></td>
                            <td style="height: 16px; width: 30px;" align="center">
                                <asp:Label ID="Label29" runat="server" Text="42"></asp:Label></td>
                            <td style="height: 16px; width: 30px;" align="center">
                                <asp:Label ID="Label30" runat="server" Text="45"></asp:Label></td>
                            <td style="height: 16px; width: 30px;" align="center">
                                <asp:Label ID="Label31" runat="server" Text="48"></asp:Label></td>
                        </tr>
                    </table>
                </HeaderTemplate>
    见下一页
      

  2.   

    <ItemTemplate>
                    <table class="Table1" border="1" bordercolor="#5555dd" style="width: 800px">
                        <tr>
                            <td rowspan="4" style="height: 64px;width: 60px" align="center" colspan="2">
                                <asp:Label ID="Label37" runat="server" Text='<%# Eval("jjfw") %>'></asp:Label></td>
                            <td rowspan="2" style="width: 15px; height: 32px" align="center">
                                <asp:Label ID="Label38" runat="server" Text="棚"></asp:Label></td>
                            <td style="width: 40px;" align="right" rowspan="2">
                                <asp:Label ID="Label39" runat="server" Text='<%# Eval("pzbk") %>'></asp:Label></td>
                            <td style="width: 40px;" align="right" rowspan="2">
                                <asp:Label ID="Label40" runat="server" Text='<%# Eval("pybk") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label41" runat="server" Text='<%# Eval("pz3") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label42" runat="server" Text='<%# Eval("pz6") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label43" runat="server" Text='<%# Eval("pz9") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label44" runat="server" Text='<%# Eval("pz12") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label45" runat="server" Text='<%# Eval("pz15") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label46" runat="server" Text='<%# Eval("pz18") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label47" runat="server" Text='<%# Eval("pz21") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label48" runat="server" Text='<%# Eval("pz24") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label49" runat="server" Text='<%# Eval("pz27") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label50" runat="server" Text='<%# Eval("pz30") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label51" runat="server" Text='<%# Eval("pz33") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label52" runat="server" Text='<%# Eval("pz36") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label53" runat="server" Text='<%# Eval("pz39") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label54" runat="server" Text='<%# Eval("pz42") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label55" runat="server" Text='<%# Eval("pz45") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label56" runat="server" Text='<%# Eval("pz48") %>'></asp:Label></td>
                            <td rowspan="4" style="width: 40px; height: 16px" align="right">
                                <asp:Label ID="Label57" runat="server" Text='<%# Eval("yxsj") %>'></asp:Label></td>
                            <td rowspan="4" style="width: 40px; height: 16px" align="right">
                                <asp:Label ID="Label58" runat="server" Text='<%# Eval("gycs") %>'></asp:Label></td>
                            <td rowspan="4" style="width: 40px; height: 16px" align="right">
                                <asp:Label ID="Label59" runat="server" Text='<%# Eval("jgsj") %>'></asp:Label></td>
                        </tr>
                        见下页
      

  3.   

    <tr>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label62" runat="server" Text='<%# Eval("py3") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label63" runat="server" Text='<%# Eval("py6") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label64" runat="server" Text='<%# Eval("py9") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label65" runat="server" Text='<%# Eval("py12") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label66" runat="server" Text='<%# Eval("py15") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label67" runat="server" Text='<%# Eval("py18") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label68" runat="server" Text='<%# Eval("py21") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label69" runat="server" Text='<%# Eval("py24") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label70" runat="server" Text='<%# Eval("py27") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label71" runat="server" Text='<%# Eval("py30") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label72" runat="server" Text='<%# Eval("py33") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label73" runat="server" Text='<%# Eval("py36") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label74" runat="server" Text='<%# Eval("py39") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label75" runat="server" Text='<%# Eval("py42") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label76" runat="server" Text='<%# Eval("py45") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label77" runat="server" Text='<%# Eval("py48") %>'></asp:Label></td>
                        </tr>
                        <tr>
                            <td rowspan="2" style="width: 15px; height: 32px" align="center">
                                <asp:Label ID="Label36" runat="server" Text="平"></asp:Label></td>
                            <td style="width: 40px;" align="right" rowspan="2">
                                <asp:Label ID="Label78" runat="server" Text='<%# Eval("nzbk") %>'></asp:Label></td>
                            <td style="width: 40px;" align="right" rowspan="2">
                                <asp:Label ID="Label79" runat="server" Text='<%# Eval("nybk") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label80" runat="server" Text='<%# Eval("nz3") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label81" runat="server" Text='<%# Eval("nz6") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label82" runat="server" Text='<%# Eval("nz9") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label83" runat="server" Text='<%# Eval("nz12") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label84" runat="server" Text='<%# Eval("nz15") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label85" runat="server" Text='<%# Eval("nz18") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label86" runat="server" Text='<%# Eval("nz21") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label87" runat="server" Text='<%# Eval("nz24") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label88" runat="server" Text='<%# Eval("nz27") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label89" runat="server" Text='<%# Eval("nz30") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label90" runat="server" Text='<%# Eval("nz33") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label91" runat="server" Text='<%# Eval("nz36") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label92" runat="server" Text='<%# Eval("nz39") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label93" runat="server" Text='<%# Eval("nz42") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label94" runat="server" Text='<%# Eval("nz45") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label95" runat="server" Text='<%# Eval("nz48") %>'></asp:Label></td>
                        </tr>
                       见下页
      

  4.   

     <tr>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label98" runat="server" Text='<%# Eval("ny3") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label99" runat="server" Text='<%# Eval("ny6") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label100" runat="server" Text='<%# Eval("ny9") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label101" runat="server" Text='<%# Eval("ny12") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label102" runat="server" Text='<%# Eval("ny15") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label103" runat="server" Text='<%# Eval("ny18") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label104" runat="server" Text='<%# Eval("ny21") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label105" runat="server" Text='<%# Eval("ny24") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label106" runat="server" Text='<%# Eval("ny27") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label107" runat="server" Text='<%# Eval("ny30") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label108" runat="server" Text='<%# Eval("ny33") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label109" runat="server" Text='<%# Eval("ny36") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label110" runat="server" Text='<%# Eval("ny39") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label111" runat="server" Text='<%# Eval("ny42") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label112" runat="server" Text='<%# Eval("ny45") %>'></asp:Label></td>
                            <td style="width: 30px; height: 16px" align="right">
                                <asp:Label ID="Label113" runat="server" Text='<%# Eval("ny48") %>'></asp:Label></td>
                        </tr>
     </table>
                </ItemTemplate>
            </asp:DataList>
        </form>
    </body>
    </html>
      

  5.   

    问题出在 ((Label)this.DataList1.FindControl("Label35")).Text  
    ((Label)this.DataList1.FindControl("Label35"))的结果是null,当然就无法获取text属性。