<%@ Page Title="" Language="C#" MasterPageFile="~/SignBox/Site1.Master" AutoEventWireup="true" CodeBehind="PickingHandOversList.aspx.cs" Inherits="GxHub.Wms.Abroad.Web.SignBox.PickingHandOversList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">

        //使用checkbox当做全选反选
        function check_all_not() {
            var check = document.getElementById("checkboxAll").checked;
            //alert(check);
            if (check == true) {
                checkAll();
            }
            else {
                checkReverse();
            }

        }
        function checkAll() {
            $(".check").each(function () {
                $(this).attr("checked", true);
            });
        }
        //反选
        function checkReverse() {
            $(".check").each(function () {
                $(this).attr("checked", !($(this).attr("checked")));
            });
        }
        function checkRemove() {
            $(".check").each(function () {
                $(this).attr("checked", false);
            });
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <yee:PageTitle ID="ptTitle" runat="server">
        <ShortCuts>
            <a href="ConfirmPickingHandOrder.aspx">拣货单确认</a>
            <a href="PickingHandOverDetail.aspx">发起新的交接</a>
        </ShortCuts>
    </yee:PageTitle>
    <yee:MessageBox ID="msg" runat="server">
    </yee:MessageBox>

    <div class="query">
        <table cellpadding="0" cellspacing="0" border="0">
            <tr>
                <td>
                    <%=GetText("客户代号") %>
                </td>
                <td>
                    <asp:TextBox ID="txtCustCode" runat="server"></asp:TextBox>
                </td>

                <td>
                    <%=GetText("配送流水号") %>
                </td>
                <td>
                    <asp:TextBox ID="txtOrderNo" runat="server"></asp:TextBox>
                </td>

                <td>
                    <%=GetText("仓储中心") %>
                </td>
                <td>
                    <yee:UserWarehousesDropDownList ID="ddlWarehouse" runat="server" WarehouseType="海外仓储">
                    </yee:UserWarehousesDropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    <%=GetText("日期") %>
                </td>
                <td>
                    <yee:DatePicker ID="dtFrom" runat="server" IsRequired="false" />
                    -<yee:DatePicker ID="dtTo" runat="server" IsRequired="false" />
                </td>
                <td>
                    <%=GetText("状态") %>
                </td>
                <td>
                    <asp:RadioButtonList ID="rblStatuId" runat="server" RepeatDirection="Horizontal"></asp:RadioButtonList>
                </td>
                <td colspan="2"></td>
                <td>
                    <yee:Button ID="btnSearch" runat="server" CssClass="button" OnClick="btnSearch_Click" />
                </td>
            </tr>
        </table>
    </div>
    <yee:Button ID="btnCombine" runat="server" OnClick="btnCombine_Click" Text="合并拣货单" />
    <asp:Repeater ID="rptList" runat="server" OnItemCommand="rptList_ItemCommand" OnItemDataBound="rptList_ItemDataBound">
        <HeaderTemplate>
            <table cellpadding="0" class="table" cellspacing="0" border="0" id="table2" style="text-align: center;">
                <tr>
                    <td class="tbheader">
                        <input type="checkbox" id="checkboxAll" onclick="check_all_not()" /></td>
                    <td class="tbheader">
                        <%=GetText("流水号") %>
                    </td>
                    <td class="tbheader">
                        <%=GetText("仓库名称") %>
                    </td>
                    <td class="tbheader">
                        <%=GetText("操作人") %>
                    </td>
                    <td class="tbheader">
                        <%=GetText("操作时间") %>
                    </td>
                    <td class="tbheader">
                        <%=GetText("状态") %>
                    </td>
                    <td class="tbheader">
                        <%=GetText("确认人") %>
                    </td>
                    <td class="tbheader">
                        <%=GetText("确认时间") %>
                    </td>
                    <td class="tbheader">
                        <%=GetText("备注") %>
                    </td>
                    <td class="tbheader">
                        <%=GetText("操作") %>
                    </td>
                </tr>
        </HeaderTemplate>
        <ItemTemplate>
            <tr class="tbrow">
                <td class="tbpost">
                    <input id="cb" type="checkbox" class="check" runat="server" value='<%#Eval("UniqueId") %>' />
                </td>
                <td class="tbpost">
                    <%# Eval("SerialNo")%>
                </td>
                <td class="tbpost">
                    <%#Eval("WareHouseName") %>
                </td>
                <td class="tbpost">
                    <%# Eval("CreatedByName")%>
                </td>
                <td class="tbpost">
                    <%# Eval("CreatedOn")%>
                </td>
                <td class="tbpost">
                    <%# Eval("StatuName")%>
                </td>
                <td class="tbpost">
                    <%# Eval("CheckedByName")%>
                </td>
                <td class="tbpost">
                    <%# Eval("CheckedOn","{0:d}")%>
                </td>
                <td class="tbpost">
                    <%# Eval("Remark")%>
                </td>
                <td class="tbpost">
                    <asp:LinkButton ID="lbnLink" runat="server" CommandArgument='<%#Eval("UniqueId") %>' CommandName="detail" Text="拣货单详情"></asp:LinkButton>
                </td>
            </tr>
        </ItemTemplate>
        <AlternatingItemTemplate>
            <tr class="tbrowalter">
                <td class="tbpost">
                    <input id="cb" type="checkbox" class="check" runat="server" value='<%#Eval("UniqueId") %>' />
                </td>
                <td class="tbpost">
                    <%# Eval("SerialNo")%>
                </td>
                <td class="tbpost">
                    <%#Eval("WareHouseName") %>
                </td>
                <td class="tbpost">
                    <%# Eval("CreatedByName")%>
                </td>
                <td class="tbpost">
                    <%# Eval("CreatedOn")%>
                </td>
                <td class="tbpost">
                    <%# Eval("StatuName")%>
                </td>
                <td class="tbpost">
                    <%# Eval("CheckedByName")%>
                </td>
                <td class="tbpost">
                    <%# Eval("CheckedOn","{0:d}")%>
                </td>
                <td class="tbpost">
                    <%# Eval("Remark")%>
                </td>
                <td class="tbpost">
                    <asp:LinkButton ID="lbnLink" runat="server" CommandArgument='<%#Eval("UniqueId") %>' CommandName="detail" Text="拣货单详情"></asp:LinkButton>
                </td>
            </tr>
        </AlternatingItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater>

    <yee:Pager ID="Pager1" runat="server" PageSize="20" PagerType="1" OnPageIndex_Changed="Pager1_PageIndex_Changed"
        PageIndex="0" />
</asp:Content>