<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PostScrapped.aspx.cs" Inherits="SWTraining.Commodity.PostScrapped" Title="仓库管理-损溢处理" %>

<!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 id="Head1" runat="server">
    <link id="linkStyle" runat="server" href="../Themes/Orange/css.css" rel="stylesheet"
        type="text/css" />
        
            <script type="text/javascript"> 
<!--

        function Focus() {
            if (!document.getElementById("tbxBarcode").disabled) {
                document.getElementById("tbxBarcode").focus();
            }
        }

//--> 
    </script>
</head>

<body onload="Focus();">
    <form id="form1" runat="server">
    <div>
        <table class="table" cellspacing="0">
            <tr>
                <th colspan="2">
                    损溢处理
                </th>
            </tr>
            <tr>
                <td>
                    类型：
                </td>
                <td>
                    <asp:RadioButtonList ID="cblScrappedTypeID" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Value="0">报废</asp:ListItem>
                        <asp:ListItem Value="1">溢出</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td>
                    日期：
                </td>
                <td>
                    <asp:TextBox ID="tbxDateAndTime" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    产品：
                </td>
                <td>
                    <div runat="server" id="divCommodityPost">
                条形码：<asp:TextBox ID="tbxBarcode" runat="server" Width="90px"></asp:TextBox>
                        <asp:DropDownList ID="ddlCommodityType" runat="server" DataTextField="CommodityTypeName"
                            DataValueField="CommodityTypeID" AutoPostBack="True" OnSelectedIndexChanged="ddlCommodityType_SelectedIndexChanged">
                        </asp:DropDownList>
                        <asp:DropDownList ID="ddlCommodity" runat="server" DataTextField="CommodityName" DataValueField="CommodityID"
                            AutoPostBack="True" OnSelectedIndexChanged="ddlCommodity_SelectedIndexChanged">
                        </asp:DropDownList>
                        数量：<asp:TextBox ID="tbxAmount" runat="server" Width="51px"></asp:TextBox>
                        <asp:Label ID="labUnitName" runat="server"></asp:Label>
                        仓库：<asp:DropDownList ID="ddlStoreroom" runat="server" 
                            DataTextField="StoreroomName" DataValueField="StoreroomID">
                        </asp:DropDownList>
                    </div>
                     <div runat="server" id="divCommodityShow" visible="false">
                     名称：<asp:Label ID="labCommodityName" runat="server"></asp:Label><br />
                     数量：<asp:TextBox ID="tbxAmount2" runat="server" Width="81px"></asp:TextBox><br />
                     单位：<asp:Label ID="labUnitName2" runat="server"></asp:Label><br />
                     仓库：<asp:Label ID="labStoreroomName" runat="server"></asp:Label>
                     </div>
                </td>
            </tr>
            <tr>
                <td>
                    备注：
                </td>
                <td>
                    <asp:TextBox ID="tbxRemark" runat="server" Height="59px" TextMode="MultiLine" Width="309px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    录入员：
                </td>
                <td>
                    <asp:DropDownList ID="ddlUser" runat="server" DataTextField="TrueName" DataValueField="UserID">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    <asp:Button ID="btnPost" runat="server" Text="提交" OnClick="btnPost_Click" /> <input id="Button1" causesvalidation="false" type="button" runat="server" onclick="back()" value="返回" />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
