<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="orderTypeCreate.aspx.cs" Inherits="ZYDN.Web.system.shop.shop" %>

<!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 href="../../system/skins/CSS/main.css" rel="stylesheet" type="text/css" />
   <link href="../../system/skins/CSS/Sys.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div style="margin:2px auto; width:550px;">
    <div>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" OnRowUpdating="GridView1_RowUpdating" DataKeyNames="ID" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowDeleting="GridView1_RowDeleting" OnRowEditing="GridView1_RowEditing">
            <Columns>
                <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" ReadOnly="True"
                    SortExpression="ID" >
                    <HeaderStyle CssClass="GridViewTitle" />
                </asp:BoundField>
                <asp:BoundField DataField="TypeName" HeaderText="名称" SortExpression="TypeName" >
                    <ControlStyle Width="65px" />
                    <HeaderStyle CssClass="GridViewTitle" />
                </asp:BoundField>
                <asp:BoundField DataField="TimeStart" HeaderText="起始时间" SortExpression="TimeStart" >
                    <ControlStyle Width="65px" />
                    <HeaderStyle CssClass="GridViewTitle" />
                </asp:BoundField>
                <asp:BoundField DataField="TimeEnd" HeaderText="结束时间" SortExpression="TimeEnd" >
                    <ControlStyle Width="65px" />
                    <HeaderStyle CssClass="GridViewTitle" />
                </asp:BoundField>     
                <asp:TemplateField>
                                <HeaderTemplate>
                                   启用数量
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="CheckBox1" runat="server" OnCheckedChanged="CheckBox1_CheckedChanged" Width="35" />
                                </ItemTemplate>
                    <HeaderStyle CssClass="GridViewTitle" />
                            </asp:TemplateField>
                <asp:BoundField DataField="TypePrice" HeaderText="价格单价" SortExpression="TypePrice" >
                    <ControlStyle Width="40px" />
                    <HeaderStyle CssClass="GridViewTitle" />
                </asp:BoundField>
                <asp:TemplateField HeaderText="有效期限" SortExpression="Expiration">
                    <EditItemTemplate>
                        <asp:TextBox ID="TexExpiration" runat="server" Text='<%# Bind("Expiration") %>'></asp:TextBox>天
                    </EditItemTemplate>
                    <ControlStyle Width="40px" />
                    <HeaderStyle CssClass="GridViewTitle" />
                    <ItemTemplate>
                        <asp:Label ID="LabExpiration" runat="server" Text='<%# Bind("Expiration") %>'></asp:Label>天
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:CommandField ShowEditButton="True" >
                    <HeaderStyle CssClass="GridViewTitle" />
                </asp:CommandField>
                <asp:CommandField ShowDeleteButton="True" >
                    <HeaderStyle CssClass="GridViewTitle" />
                </asp:CommandField>
                
                </Columns>
            <EditRowStyle HorizontalAlign="Center" />
            <RowStyle HorizontalAlign="Center" />
            <PagerStyle HorizontalAlign="Center" />
        </asp:GridView>
        </div><br>
        <table border="0" cellpadding="0" cellspacing="0" style="border-color:Gray; border-style:solid; border-width:1px; width:548px; height:100px;">
        <tr>
                <td colspan="6">
                <div style=" padding-top:3px;text-align:center; margin:0; border-bottom-color:Gray; border-bottom-style:solid; border-bottom-width:1px; width:548px; height:20px;">
                    新增订单类型
                    </div>
                </td>
                
            </tr>
            <tr align="center" class="titleRow">
                <td>
                    名称
                </td>
                <td align="center">
                    起始时间名称
                </td>
                <td align="center">
                    结束时间名称
                </td>
                <td align="center">
                    启用数量
                </td>
                <td align="center">
                    价格单位
                </td>
                <td>
                    订单有效期限
                </td>
            </tr>
            <tr class="tabRowCss">
                <td>
                    <asp:TextBox  ID="TypeName" runat="server" Width="65" ToolTip="填写订单类型名"></asp:TextBox>
                </td>
                <td>
                    <asp:TextBox ID="TimeStart" runat="server" Width="65" ToolTip="填写起始时间的名称"></asp:TextBox>
                </td>
                <td>
                    <asp:TextBox ID="TimeEnd" runat="server" Width="65" ToolTip="填写结束时间的名称"></asp:TextBox>
                </td>
                <td>
                    <asp:CheckBox ID="Num" runat="server" Text=""></asp:CheckBox>
                </td>
                <td>
                    <asp:TextBox  ID="TypePrice" runat="server" Width="65" ToolTip="填写价格的单位" >元</asp:TextBox>
                </td>
                <td>
                    <asp:TextBox ID="Expiration" runat="server" Width="65" ToolTip="订单的有效期限1-7天">1</asp:TextBox>天
                </td>
            </tr>
            <tr>
                <td colspan="6" style="text-align:center;width:550px;">
                    <asp:Button ID="Button1" runat="server" Text="提交" OnClick="Button1_Click" /> 
                    <input id="Reset1" type="reset" value="重置" />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
