<%@ page language="C#" masterpagefile="../ShopMasterPage/MyShopMasterPage.master" autoeventwireup="true" inherits="Shop_Member_Shop_UpdateOrderByBuy, HoWaveVGO" title="Update Page" enableEventValidation="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
  <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true"/>
  <div class="pageTitle">
        <b><%=OrderName %> 信 息</b>（<%=OrderName %>编号：<%=OrderFormNum %>）
        <asp:Literal ID="LabOrderFromID" runat="server" Visible="False" />
        <asp:Literal ID="H_PRODUCTID" runat="server" Visible="False"/>
        <asp:Literal ID="H_RegularBus" runat="server" Visible="False"/>
        <asp:Literal ID="H_TeamBuyLeavel" runat="server" Visible="False"/>
  </div>
    <table  class="ShopOrderStyle">
        <tr>
           <td>买家： <a href="../../Shop/Shop1/Shop_ShopIntro.aspx?UserID=<%=UserID %>"><%=UserTureName%></a></td>
           <td>卖家： <a href="../../Shop/Shop1/Shop_ShopIntro.aspx?UserID=<%=SalerID %>"><%=SalerTureName%></a></td>
           <td></td>
           <td>下单时间：<font color="red"><%=InputTime.ToShortDateString()%></font></td>
           <td></td>
        </tr>
        <tr>
            <td><asp:CheckBox ID="CheckNeedInvoice" runat="server" Enabled="False" Text="需要发票" /></td>
            <td><asp:CheckBox ID="CheckInvoied" runat="server" Enabled="False" Text="已开发票" /></td>
            <td><b>订单状态：</b><asp:Literal ID="OrderStatus" runat="server" /></td>            
            <td><b>付款状态：</b><asp:Literal ID="PayStatus" runat="server" /></td>
            <td><b>物流状态：</b><asp:Literal ID="DeliverStatus" runat="server" /></td>
        </tr>
    </table>
     <table  class="ShopOrderStyle">
        <tr>
            <td class="OrderTitle">收货人姓名：</td>
            <td><asp:TextBox ID="TxtConnetionName" runat="server"/> </td>
            <td class="OrderTitle">联系电话：</td>
            <td><asp:TextBox ID="TxtPhone" runat="server" /> </td>
        </tr>
        <tr>
            <td class="OrderTitle">收货人地址：</td>
            <td><asp:TextBox ID="TxtAddress" runat="server"/> </td>
            <td class="OrderTitle">邮政编码：</td>
            <td><asp:TextBox ID="TxtZipCode" runat="server" /> 
                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="TxtZipCode"
                    ErrorMessage="邮政编码格式不正确" ValidationExpression="\d{6}" Display="Dynamic"/>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxtZipCode"
                    ErrorMessage="不允许空值"  Display="Dynamic"/></td>
        </tr>
        <tr>
            <td class="OrderTitle">收货人邮箱：</td>
            <td><asp:TextBox ID="TxtEmail" runat="server"/> 
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" Display="Dynamic" runat="server" ControlToValidate="TxtEmail"
                    ErrorMessage="邮箱格式不正确" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator></td>
            <td class="OrderTitle">收货人手机：</td>
            <td><asp:TextBox ID="TxtMobile" runat="server"/> </td>
        </tr>
        <tr>
            <td class="OrderTitle">支付方式：</td>
            <td><asp:DropDownList ID="DropPayType" runat="server" OnDataBound="DropPayType_OnDataBound" DataSourceID="ObjectDataSource1"
                    DataTextField="TypeName" DataValueField="TypeName">
                </asp:DropDownList></td>
            <td class="OrderTitle">送货方式：</td>
            <td><asp:DropDownList ID="DropDeliverType" runat="server" OnDataBound="DropDeliverType_OnDataBound" DataSourceID="ObjectDataSource2"
                    DataTextField="TypeName" DataValueField="TypeName" >
                </asp:DropDownList>
                
            </td>
        </tr>
        <tr>
           <td class="OrderTitle">发票信息：</td>
           <td><asp:TextBox ID="TxtInvoiceContent" runat="server" TextMode="MultiLine" /> </td>
           <td class="OrderTitle">开始服务日期：</td>
           <td><asp:TextBox ID="TxtBeginDate" runat="server" ReadOnly="True" /> </td>
        </tr>
        <tr>
            <td class="OrderTitle">是否需要发票：</td>
            <td><asp:CheckBox ID="CheckInvoice" runat="server" Text="需要发票" /></td>
            <td class="OrderTitle">备注/留言：</td>
            <td><asp:TextBox ID="TxtRemark" runat="server" TextMode="MultiLine"/></td>
        </tr>
    </table>
     <table  class="ShopOrderStyle">
        <tr>
            <th>商 品 名 称</th>
            <th>单位</th>
            <th>数量</th>
            <th><%=PriceName %></th>
            <th>实价</th>
            <th>指定价</th>
            <th>金 额</th>
            <th>预付定金</th>
            <th colspan="2">服务期限</th>
        </tr>
        <tr class="ShopProductOrderStyle">
           <td><asp:Literal ID="TxtproductName" runat="server"/></td>
           <td><asp:Literal ID="TxtPunit" runat="server" /> </td>
           <td><asp:TextBox ID="TxtAmount" runat="server" Width="34px" AutoPostBack="True" OnTextChanged="TxtAmount_TextChanged"/></td>
           <td><asp:Literal ID="TxtPrice_Original" runat="server" /></td>
           <td><asp:Literal ID="TxtPrice" runat="server" /></td>
           <td><asp:TextBox ID="TxtTurePrice" runat="server"/></td>
           <td><asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
               
                <asp:Literal ID="TxtMoneyGoods" runat="server" />
             
                 </ContentTemplate>
                    <Triggers>
                    <asp:AsyncPostBackTrigger  ControlID="TxtAmount" />
                   </Triggers>
                </asp:UpdatePanel>
                </td>
                <td>
              <asp:UpdatePanel ID="UpdatePanel21" runat="server" >
                    <ContentTemplate>
               
                <asp:Literal ID="TxtTempSubScriptionRate" runat="server" />
             
                 </ContentTemplate>
                    <Triggers>
                    <asp:AsyncPostBackTrigger  ControlID="TxtAmount" />
                    </Triggers>
                </asp:UpdatePanel>
                </td>
            <td>
                <asp:DropDownList ID="DropServiceTime" runat="server" >
                    <asp:ListItem Value="1">一年</asp:ListItem>
                    <asp:ListItem Value="2">二年</asp:ListItem>
                    <asp:ListItem Value="3">三年</asp:ListItem>
                    <asp:ListItem Value="4">四年</asp:ListItem>
                    <asp:ListItem Value="5">五年</asp:ListItem>
                    <asp:ListItem Value="6">终身</asp:ListItem>
                </asp:DropDownList></td>
            <td></td>
        </tr>                  
    </table>
     <asp:RequiredFieldValidator ID="Rv3" runat="server" ControlToValidate="TxtAmount"   ErrorMessage="商品数量不允许空值" />
     <asp:RangeValidator ID="Rav1" runat="server" ControlToValidate="TxtAmount" ErrorMessage="商品数量格式不对" MaximumValue="99999" MinimumValue="0" Type="Double" />
     <asp:Literal ID="err_tips" runat="server" Visible="false" />                           
    <div style="width:98%;  text-align:center; margin:5px auto;">
         <asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="保存" />
         <asp:Button ID="Button1" runat="server" Text="返回" OnClick="Button1_Click" CausesValidation="False" />
    </div>
    <div class="ShopOrderTips">
       <br />
       <b>注：</b>“<font color="blue">原价</font>”指商品的原始零售价，“<font color="green">实价</font>”指系统根据
       <span style="color: #0000ff; text-decoration: underline">最终价格计算公式表</span> 自动计算出来的商品最终价格，“<font
        color="red">指定价</font>”指管理员手动指定的最终价格。商品的最终销售价格以“指定价”为准。
        <br />
     </div> 
     <asp:HiddenField ID="old_qy" runat="server" />  
     <asp:HiddenField ID="H_ComeUrl" runat="server" />
     <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetPayTypeByUserIDTypeIDStatus"
                            TypeName="Shop_PayType">
            <SelectParameters>
                <asp:Parameter DefaultValue="0" Name="UserID"  Type="Int32" />
                <asp:Parameter DefaultValue="-1" Name="Typeid" Type="Int32" />
                <asp:Parameter DefaultValue="-1" Name="Status" Type="Int32" />
            </SelectParameters>
        </asp:ObjectDataSource>

    <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" SelectMethod="GetDeliverTypeByUserIDTypeIDStatus"
            TypeName="Shop_DeliverType">
            <SelectParameters>
                <asp:Parameter DefaultValue="0" Name="UserID"  Type="Int32" />
                <asp:Parameter DefaultValue="-1" Name="Typeid" Type="Int32" />
                <asp:Parameter DefaultValue="-1" Name="Status" Type="Int32" />
            </SelectParameters>
        </asp:ObjectDataSource>
</asp:Content>



