<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OrderFormBatchConsignment.aspx.cs"
    Inherits="DreamerShop.Admin.OrderFormBatchConsignment" %>

<%@ Register TagPrefix="uc1" TagName="LanguagesDeal" Src="LanguagesDeal.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<SCRIPT language="javascript" id="clientEventHandlersJS">

    function selall() {
        var a = document.getElementsByTagName("input");

        var str;
        var len;
        var state;
        for (var i = 0; i < a.length; i++) {
            if (a[i].type == "checkbox") {
                str = a[i].id;
                len = str.lastIndexOf("ckSelAll");
                if ((len * 1) >= 1) {
                    state = a[i].checked;
                    break;
                }
            }
        }
        for (var i = 0; i < a.length; i++) {
            if (a[i].type == "checkbox") {
                str = a[i].id;
                len = str.lastIndexOf("ckSelItem");
                if ((len * 1) >= 1)
                    a[i].checked = state;
            }
        }
    }
    //-->
</SCRIPT>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../StyleSheet1.css" rel="stylesheet">
    <link href="../StyleSheet2.css" rel="stylesheet">
</head>
<body>
    <form id="form1" runat="server">
    <uc1:LanguagesDeal ID="myLanguagesDeal" Visible="False" runat="server"></uc1:LanguagesDeal>
    <table cellspacing="0" cellpadding="0" width="100%" border="0">
        <tr>
            <td class="p12black">
                <span class="p9orange">
                    <img height="11" src="IMAGES/icon_1.gif" width="12" align="absMiddle">&nbsp;<%=myLanguagesDeal.GetMyString("TextBillManage")%>
                    --&gt;<%=myLanguagesDeal.GetMyString("TextOFBatchConsignment")%></span>
            </td>
            <td width="200">
            </td>
            <td width="100">
                <table>
                    <tr>
                        <td valign="bottom" nowrap>
                            <asp:ImageButton ID="ibtReturn" runat="server" 
                                ImageUrl="../Images/Admin/fb-cancel.gif" onclick="ibtReturn_Click">
                            </asp:ImageButton><%=myLanguagesDeal.GetMyString("TextReturn")%>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <hr noshade size="1">
    <asp:DataGrid ID="dgList" runat="server" Width="100%" CssClass="table-shangxia" DataKeyField="OFID"
        AutoGenerateColumns="False" AllowPaging="false" 
        onitemdatabound="dgList_ItemDataBound">
        <HeaderStyle HorizontalAlign="Center" BackColor="#F1F1F1"></HeaderStyle>
        <Columns>
            <asp:BoundColumn DataField="OFID" HeaderText="TextOFNumber">
                <HeaderStyle></HeaderStyle>
                <ItemStyle HorizontalAlign="Center" ></ItemStyle>
            </asp:BoundColumn>
            <asp:BoundColumn DataField="OFMoneySum" HeaderText="OrderFormMoney">
                <HeaderStyle></HeaderStyle>
                <ItemStyle HorizontalAlign="Center"></ItemStyle>
            </asp:BoundColumn>
            <asp:BoundColumn DataField="OFSendMode" HeaderText="TextSendMode">
                <HeaderStyle></HeaderStyle>
                <ItemStyle HorizontalAlign="Center"></ItemStyle>
            </asp:BoundColumn>
            <asp:TemplateColumn HeaderText="TextOFConsignNumber">
                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                <ItemTemplate>
                    <asp:TextBox ID="txtConsignNum" runat="server" Width="80px" CssClass=" wenbenkuang"></asp:TextBox>
                </ItemTemplate>
            </asp:TemplateColumn>
            <asp:TemplateColumn HeaderText="TextExpressCorp">
                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                <ItemTemplate>
                    <asp:DropDownList ID="drlConsignExpressCorp" runat="server">
                    </asp:DropDownList>
                </ItemTemplate>
            </asp:TemplateColumn>
            <asp:TemplateColumn HeaderText="OFConsignInMan">
                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                <ItemTemplate>
                    <asp:TextBox ID="txtConsignInUserName" runat="server" Width="80px" CssClass=" wenbenkuang"
                        MaxLength="120" Text='<%# DataBinder.Eval(Container.DataItem, "RecevierName")%>'></asp:TextBox>
                </ItemTemplate>
            </asp:TemplateColumn>
            <asp:TemplateColumn HeaderText="OFConsignInManTel">
                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                <ItemTemplate>
                    <asp:TextBox ID="txtConsignInTel" runat="server" Width="80px" CssClass=" wenbenkuang"
                        MaxLength="120" Text='<%# DataBinder.Eval(Container.DataItem, "Tel")%>'></asp:TextBox>
                </ItemTemplate>
            </asp:TemplateColumn>
			<asp:TemplateColumn HeaderText="OFConsignInAddress">
                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                <ItemTemplate>
                    <asp:TextBox ID="txtConsignInAddress" runat="server" Width="80px" CssClass=" wenbenkuang"
                        MaxLength="120" Text='<%# DataBinder.Eval(Container.DataItem, "Address")%>'></asp:TextBox>
                </ItemTemplate>
            </asp:TemplateColumn>
            <asp:TemplateColumn HeaderText="TextRemark">
                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                <ItemTemplate>
                    <asp:TextBox ID="txtConsignRemark" runat="server" Width="80px" CssClass=" wenbenkuang"
                        MaxLength="250"></asp:TextBox>
                </ItemTemplate>
            </asp:TemplateColumn>
            <asp:BoundColumn DataField="OFState" HeaderText="OrderFormState">
                <HeaderStyle></HeaderStyle>
                <ItemStyle HorizontalAlign="Center" ></ItemStyle>
            </asp:BoundColumn>
            <asp:BoundColumn DataField="ExpressPrint" HeaderText="TextExpressPrint">
                <HeaderStyle></HeaderStyle>
                <ItemStyle HorizontalAlign="Center"></ItemStyle>
            </asp:BoundColumn>
            <asp:TemplateColumn>
                <HeaderStyle></HeaderStyle>
                <HeaderTemplate>
                    <asp:CheckBox ID="ckSelAll" runat="server" onClick="selall()"></asp:CheckBox>
                </HeaderTemplate>
                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                <ItemTemplate>
                    <asp:CheckBox ID="ckSelItem" runat="server"></asp:CheckBox>
                </ItemTemplate>
            </asp:TemplateColumn>
        </Columns>
        <PagerStyle NextPageText="下一页" PrevPageText="上一页" HorizontalAlign="Right" Visible="False">
        </PagerStyle>
    </asp:DataGrid>
    <table cellspacing="1" cellpadding="5" width="650"   border="0">
        <tr>
            <td align="right" width="10">
            </td>
            <td class="pad">
                <asp:Button ID="btSubmit" runat="server" CssClass="go-wenbenkuang" Text="提交信息" 
                    onclick="btSubmit_Click" Height="25" Width="120" ></asp:Button>
            </td>
        </tr>
        <tr bgcolor="#ffffff">
            <td align="right" width="107">
            </td>
            <td class="pad">
                <asp:Label ID="lbInfo" runat="server" ForeColor="Red"></asp:Label>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
