<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Stock-taking.aspx.cs" Inherits="ComResProSystem.Stock_taking" %>

<!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>
    <style type="text/css">
        body
        {
            margin: 0px;
            padding: 0px;
            font-size: 12px;
        }
       .table{border-collapse:collapse; height:24px; line-height:24px;  text-align:center;}
       .table tr {border-right:solid 1px #FFF; border-left:solid 1px #000000;}
       .table tr td{border:solid 1px #000000;}
    </style>
    <script src="My97DatePicker/WdatePicker.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
     <div style="background-image: url(Image/tab/tab_05.gif); height: 25px; background-repeat: repeat-x">
            <img src="Image/tab/311.gif" alt="" /><span style="font-size: 12px; color: #1F4A65;
             font-weight: bold;">物料盘点</span>
     </div>
     <table  class="table" align="center">
                <tr>
                    <td>
                       请选择操作类型:
                    </td>
                    <td align="left">
                        <asp:DropDownList ID="Dd_Type" runat="server" 
                            onselectedindexchanged="Dd_Type_SelectedIndexChanged" AutoPostBack="true">
                        <asp:ListItem>库存盘点</asp:ListItem>
                        <asp:ListItem>入库记录</asp:ListItem>
                        <asp:ListItem>出库记录</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td>
                   请选择产品名称:
                    </td>
                    <td>
                        <asp:DropDownList ID="Dd_ProName" runat="server">
                        </asp:DropDownList>
                    </td>
                    </tr>
                    <tr>
                    <td>
                      请选择起止时间
                    </td>
                    <td>
                        <asp:TextBox ID="Tb_Begin" runat="server" Width="125px" Enabled="false" onfocus="WdatePicker({isShowClear:false,readOnly:true,dateFmt:'yyyy-MM-dd HH:mm:ss'})"></asp:TextBox>---
                        <asp:TextBox ID="Tb_End" runat="server" Width="125px" Enabled="false" onfocus="WdatePicker({isShowClear:false,readOnly:true,dateFmt:'yyyy-MM-dd HH:mm:ss'})"></asp:TextBox>
                    </td>
                    <td colspan="2">
                        <asp:ImageButton ID="Ibt_Submit" runat="server" 
                            ImageUrl="~/Image/Bt_Select.gif" onclick="Ibt_Submit_Click"/></td>
                </tr>
            </table>
        <div align="center" style=" margin-top:20px">
            <asp:GridView ID="Gv_Total" runat="server" AutoGenerateColumns="False" Width="80%"
                CellPadding="4" ForeColor="#333333" GridLines="None">
                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            <Columns>
            <asp:TemplateField HeaderText="编号">
            <ItemTemplate>
            <%#Container.DataItemIndex+1%>
            </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="产品名称">
            <ItemTemplate>
            <%#Eval("ProName") %>
            </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="产品数量">
             <ItemTemplate>
            <%#Eval("ProCount")%>
            </ItemTemplate>
            </asp:TemplateField>
            </Columns>
                <EditRowStyle BackColor="#999999" />
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                <SortedAscendingCellStyle BackColor="#E9E7E2" />
                <SortedAscendingHeaderStyle BackColor="#506C8C" />
                <SortedDescendingCellStyle BackColor="#FFFDF8" />
                <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
            </asp:GridView>
            <asp:GridView ID="Gv_ProIn" runat="server" AutoGenerateColumns="False" 
                CellPadding="4" ForeColor="#333333" GridLines="None" Width="80%">
                <AlternatingRowStyle BackColor="White" />
            <Columns>
            <asp:TemplateField HeaderText="编号">
            <ItemTemplate>
            <%#Container.DataItemIndex+1 %>
            </ItemTemplate>
            </asp:TemplateField>
             <asp:TemplateField HeaderText="产品名称">
            <ItemTemplate>
            <%#Eval("ProName")%>
            </ItemTemplate>
            </asp:TemplateField>
             <asp:TemplateField HeaderText="数量">
            <ItemTemplate>
              <%#Eval("ProCount")%>
            </ItemTemplate>
            </asp:TemplateField>
             <asp:TemplateField HeaderText="申请人">
            <ItemTemplate>
             <%#Eval("ProPerName")%>
            </ItemTemplate>
            </asp:TemplateField>
             <asp:TemplateField HeaderText="审核人">
            <ItemTemplate>
              <%#Eval("ProPerInName")%>
            </ItemTemplate>
            </asp:TemplateField> 
            <asp:TemplateField HeaderText="入库时间">
            <ItemTemplate>
              <%#Eval("ProInTime")%>
            </ItemTemplate>
            </asp:TemplateField>
            </Columns>
                <EditRowStyle BackColor="#2461BF" />
                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="#EFF3FB" />
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                <SortedAscendingCellStyle BackColor="#F5F7FB" />
                <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                <SortedDescendingCellStyle BackColor="#E9EBEF" />
                <SortedDescendingHeaderStyle BackColor="#4870BE" />
            </asp:GridView>
            <asp:GridView ID="Gv_ProOut" runat="server" AutoGenerateColumns="False" 
                CellPadding="4" ForeColor="#333333" GridLines="None" Width="80%">
                <AlternatingRowStyle BackColor="White" />
            <Columns>
            <asp:TemplateField HeaderText="编号">
            <ItemTemplate>
            <%#Container.DataItemIndex+1 %>
            </ItemTemplate>
            </asp:TemplateField>
             <asp:TemplateField HeaderText="产品名称">
            <ItemTemplate>
            <%#Eval("ProName")%>
            </ItemTemplate>
            </asp:TemplateField>
             <asp:TemplateField HeaderText="数量">
            <ItemTemplate>
              <%#Eval("ProCount")%>
            </ItemTemplate>
            </asp:TemplateField>
             <asp:TemplateField HeaderText="申请人">
            <ItemTemplate>
             <%#Eval("PersonName")%>
            </ItemTemplate>
            </asp:TemplateField>
             <asp:TemplateField HeaderText="审核人">
            <ItemTemplate>
              <%#Eval("ProOutPreName")%>
            </ItemTemplate>
            </asp:TemplateField> 
            <asp:TemplateField HeaderText="出库时间">
            <ItemTemplate>
              <%#Eval("ProOutTime")%>
            </ItemTemplate>
            </asp:TemplateField>
            </Columns>
                <EditRowStyle BackColor="#2461BF" />
                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="#EFF3FB" />
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                <SortedAscendingCellStyle BackColor="#F5F7FB" />
                <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                <SortedDescendingCellStyle BackColor="#E9EBEF" />
                <SortedDescendingHeaderStyle BackColor="#4870BE" />
            </asp:GridView>
        </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
