<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PostOutBill.aspx.cs" Inherits="SWTraining.Service.PostOutBill" 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 runat="server">
    <title></title>
    <link id="linkStyle" runat="server" href="../Themes/Orange/css.css" rel="stylesheet"
        type="text/css" />
</head>
<body>
    <iframe id="PrintWeb" width="0" height="0"></iframe>
    <form id="form1" runat="server">
    <br />
    <table class="table" cellspacing="0">
        <tr>
            <th colspan="2">
                退货明细单
            </th>
        </tr>
        <tr>
            <td>
                已选产品：
            </td>
            <td>
                <div style="width: 60%">
                    <asp:GridView ID="GridView1" runat="server" CssClass="smallgridview" AutoGenerateColumns="False"
                        DataKeyNames="BillItemID" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowEditing="GridView1_RowEditing"
                        OnRowUpdating="GridView1_RowUpdating" OnRowDeleting="GridView1_RowDeleting">
                        <Columns>
                            <asp:BoundField DataField="ProductID" ReadOnly="True" HeaderText="编号" />
                            <asp:TemplateField HeaderText="收费项目">
                                <ItemTemplate>
                                    <asp:Label ID="labProductName" runat="server" Text='<%# Eval("ProductName") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="单价">
                                <ItemTemplate>
                                    <asp:Label ID="labUnitPrice" runat="server" Text='<%# Eval("UnitPrice","{0:c2}") %>'></asp:Label>
                                </ItemTemplate>
                                <EditItemTemplate>
                                    <asp:TextBox ID="tbxUnitPrice" runat="server" Text='<%# Eval("UnitPrice") %>' Width="60"></asp:TextBox>
                                </EditItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="数量">
                                <ItemTemplate>
                                    <asp:Label ID="labAmount" runat="server" Text='<%# Eval("Amount") %>'></asp:Label>
                                </ItemTemplate>
                                <EditItemTemplate>
                                    <asp:TextBox ID="tbxAmount" runat="server" Text='<%# Eval("Amount") %>' Width="60"></asp:TextBox>
                                </EditItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="单位">
                                <ItemTemplate>
                                    <asp:Label ID="labUnitName" runat="server" Text='<%# Eval("UnitName") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="合计">
                                <ItemTemplate>
                                    <asp:Label ID="labTotalPrice" runat="server" Text='<%# Bind("TotalPrice","{0:c2}") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="仓库">
                                <ItemTemplate>
                                    <asp:Label ID="labStoreroomName" runat="server" Text='<%# Bind("StoreroomName") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="所属单号">
                                <ItemTemplate>
                                    <asp:HyperLink ID="hlkBillID" runat="server" NavigateUrl='<%# string.Format("PostSellBill.aspx?StudentID={0}&BillID={1}",int.Parse(Request.QueryString["StudentID"]),Eval("BillID"))%>'><%# Eval("BillID") %></asp:HyperLink>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:CommandField HeaderText="编辑" EditText="编辑" CancelText="取消" UpdateText="更新" ShowEditButton="true" />
                            <asp:TemplateField HeaderText="删除">
                                <ItemTemplate>
                                    <asp:LinkButton ID="lbnDelete" runat="server" Text="删除" CommandName="Delete"></asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                单号：
            </td>
            <td>
                <asp:TextBox ID="tbxBillID" runat="server" Width="184px" Enabled="False"></asp:TextBox>
                <asp:Label ID="Label3" runat="server" ForeColor="red" Text="*" ToolTip="必填项"></asp:Label><asp:CheckBox
                    ID="cbxAutoID" runat="server" AutoPostBack="True" Checked="True" OnCheckedChanged="cbxAutoID_CheckedChanged"
                    Text="自动" />
            </td>
        </tr>
        <tr>
            <td>
                日期：
            </td>
            <td>
                <asp:TextBox ID="tbxDateAndTime" runat="server" Width="152px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                总价：
            </td>
            <td>
                <asp:TextBox ID="tbxTotalPay" runat="server" Enabled="False"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                优惠：
            </td>
            <td>
                <asp:TextBox ID="tbxFavourable" runat="server" OnTextChanged="tbxFavourable_TextChanged"
                    AutoPostBack="True">0</asp:TextBox>
                折扣：<asp:DropDownList ID="ddlDiscount" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlDiscount_SelectedIndexChanged">
                    <asp:ListItem Text="" Value="10"></asp:ListItem>
                    <asp:ListItem>9</asp:ListItem>
                    <asp:ListItem>8</asp:ListItem>
                    <asp:ListItem>7</asp:ListItem>
                    <asp:ListItem>6</asp:ListItem>
                    <asp:ListItem>5</asp:ListItem>
                    <asp:ListItem>4</asp:ListItem>
                    <asp:ListItem>3</asp:ListItem>
                    <asp:ListItem>2</asp:ListItem>
                    <asp:ListItem>1</asp:ListItem>
                    <asp:ListItem>0</asp:ListItem>
                </asp:DropDownList>
                .<asp:DropDownList ID="ddlDiscountDecimal" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlDiscount_SelectedIndexChanged">
                    <asp:ListItem Value="0"> </asp:ListItem>
                    <asp:ListItem Text="">1</asp:ListItem>
                    <asp:ListItem>2</asp:ListItem>
                    <asp:ListItem>3</asp:ListItem>
                    <asp:ListItem>4</asp:ListItem>
                    <asp:ListItem>5</asp:ListItem>
                    <asp:ListItem>6</asp:ListItem>
                    <asp:ListItem>7</asp:ListItem>
                    <asp:ListItem>8</asp:ListItem>
                    <asp:ListItem>9</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
                金额：
            </td>
            <td>
                <asp:TextBox ID="tbxPayed" runat="server" ReadOnly="True"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                备注：
            </td>
            <td>
                <asp:TextBox ID="tbxRemark" runat="server" Width="387px" Height="53px" TextMode="MultiLine"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                办理点：
            </td>
            <td>
                <asp:DropDownList ID="ddlPostSchool" runat="server" DataTextField="SchoolName" DataValueField="SchoolID">
                </asp:DropDownList>
            </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 causesvalidation="false" type="button" runat="server" onclick="back()" value="返回" />
                <asp:HyperLink ID="hlkPayment" runat="server" NavigateUrl="StuPayment.aspx" Target="_blank">查看账户</asp:HyperLink>
            </td>
        </tr>
    </table>
    <br />
    <br />
    &nbsp;&nbsp;&nbsp;
    <br />
    </form>
</body>
</html>
