<%@ page language="C#" masterpagefile="AdminIndexMaster.master" autoeventwireup="true" inherits="HL_Admin_Admin_UserDetail, HoWaveVGO" title="会员信息" enableEventValidation="false" %>

 
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">  
  
<script src="Js/tabpane.js"  type="text/javascript"></script> 
<script type="text/javascript">
function ChangeNumToText(Num)
{
  
    switch (Num)
    {
       case 0:
         document.write("未验证会员");
         break;
       case 1:
         document.write("注册会员");
         break;
    }
}

</script>  

 <table class="adminheading">                       
      <tr>
        <th class="user" nowrap="nowrap">
         <a href="Admin_Passport.aspx" target="_self">用户管理</a></th>
         <td align="right"><div style="width:50px"><a href="Admin_Passport.aspx">返回</a></div></td>
      </tr>                        
   </table>
 <div>
   
  <div class="tab-page" id="UserDetailPane">  
  <script type="text/javascript">
    var tabPane1 = new WebFXTabPane( document.getElementById( "UserDetailPane" ), 1 )
  </script>       

      <asp:ScriptManager id="ScriptManager1" runat="server">
      </asp:ScriptManager>
     <asp:FormView ID="UserSelfInfo" runat="server" DataKeyNames="UserID"  DataSourceID="ObjectDataSource2" DefaultMode="Edit" Width="100%" 
         OnItemUpdating="UserSelfInfo_ItemUpdating"  OnDataBound="UserSelfInfo_DataBound" OnItemUpdated="UserSelfInfo_ItemUpdated" >
         <EditItemTemplate>
             <div class="tab-page" id="self-info">
                   <h2 class="tab">个人信息</h2>
                   <script type="text/javascript">
                         tabPane1.addTabPage( document.getElementById( "self-info" ) );
                    </script>      
                      
                    <table width="100%" border="0" class="adminform">
                        <tr>
                            <td align="right" class="text_area" width="15%">
                                编号</td>
                            <td class="row0" width="35%"　>
                                <asp:Textbox ID="Textbox1" Text='<%# Bind("Userid") %>' ReadOnly="true" runat="server" /></td>
                            <td class="text_area" width="15%">
                                用户名称</td>
                            <td width="35%">
                                <asp:Textbox ID="Textbox3" Text='<%# Bind("UserName") %>' ReadOnly="true" runat="server" /></td>
                        </tr>
                    <tr>
                      <td width="15%" align="right" class="text_area">真实姓名</td>
                      <td width="35%" class="row0"><asp:Textbox ID="TrueName" Text='<%# Bind("TrueName") %>' runat="server" /></td>
                      <td width="15%" class="text_area">籍贯</td>
                      <td width="35%"><asp:Textbox ID="ComeFrom" Text='<%# Bind("ComeFrom") %>' runat="server" /></td>
                    </tr>
                    <tr>
                      <td align="right" class="text_area">生日</td>
                      <td class="row0"><asp:TextBox ID="Birthday" Text='<%# Bind("Birthday") %>' runat="server" /></td>
                      <td class="text_area">民族</td>
                      <td><asp:Textbox ID="Nation" Text='<%# Bind("Nation") %>' runat="server" /></td>
                    </tr>
                    <tr>
                      <td align="right" class="text_area">身份证号</td>
                      <td class="row0"><asp:TextBox ID="IDCard" Text='<%# Bind("IDCard") %>' runat="server" /></td>
                      
                      <td class="text_area">婚姻情况</td>
                      <td>
                         <asp:DropDownList ID="Marriage" runat="server" SelectedValue='<%#Bind("Marriage") %>'>
                            <asp:ListItem Text="" Value="" />
                            <asp:ListItem Text="未婚" Value="0" />
                            <asp:ListItem Text="已婚" Value="1" />
                            <asp:ListItem Text="离异" Value="2" />
                         </asp:DropDownList>
                     </td>
                    </tr>
                    <tr>
                      <td align="right" class="text_area">学历</td>
                      <td class="row0">
                          <asp:DropDownList ID="Eductation" runat="server" SelectedValue='<%#Bind("Eductation") %>'>
                            <asp:ListItem Text="未知" Value="" />
                            <asp:ListItem Text="小学" Value="小学" />
                            <asp:ListItem Text="初中" Value="初中" />
                            <asp:ListItem Text="高中" Value="高中" /> 
                            <asp:ListItem Text="中专" Value="中专" />
                            <asp:ListItem Text="大专" Value="大专" />
                            <asp:ListItem Text="本科" Value="本科" />   
                            <asp:ListItem Text="硕士" Value="硕士" />
                            <asp:ListItem Text="博士" Value="博士" />                                                
                         </asp:DropDownList>
                       </td>
                      <td class="text_area">毕业学校</td>
                      <td><asp:TextBox ID="GraduteSchool" Text='<%# Bind("GraduteSchool") %>' runat="server" /></td>
                    </tr>
                    <tr>
                      <td align="right" class="text_area">家庭情况</td>
                      <td class="row0"><asp:TextBox ID="Family" Text='<%# Bind("Family") %>' runat="server" /></td>
                      <td class="text_area">兴趣</td>
                      <td><asp:TextBox ID="Interests" Text='<%# Bind("Interests") %>' runat="server" /></td>
                    </tr>
                    <tr>
                      <td align="right" class="text_area">创建日期</td>
                      <td class="row0"><asp:TextBox ID="CreateTime" Text='<%# Bind("CreateTime") %>' runat="server" /></td>                      
                      <td class="text_area">更新日期</td>
                      <td><asp:TextBox ID="UpdateTime" Text='<%# Bind("UpdateTime") %>' runat="server" /></td>
                    </tr>
                    <tr>
                      <td align="right" class="text_area" style="height: 29px">个人介绍</td>
                      <td class="row0" style="height: 29px"><asp:TextBox ID="intro" Text='<%# Bind("intro") %>' runat="server" /></td>                      
                      <td class="text_area" style="height: 29px">收入</td>
                      <td style="height: 29px"><asp:TextBox ID="InCome" Text='<%# Bind("InCome") %>' runat="server" /></td>
                    </tr>
               
                  </table>
                </div>
                <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:HowaveConnectionString %>"
                      SelectCommand="SELECT Country FROM [HL_Country]">
                </asp:SqlDataSource>
                
                <div class="tab-page" id="contact-info">
                   <h2 class="tab">联系信息</h2>
                   <script type="text/javascript">
                         tabPane1.addTabPage( document.getElementById( "contact-info" ) );
                    </script>                   
                    <table width="100%" border="0" class="adminform">
                    <tr>
                      <td width="15%" align="right" class="text_area">国家</td>
                      <td width="35%" class="row0">
                        <asp:DropDownList ID="ddlCountry" runat="server"  DataSourceID="SqlDataSource3"
                          DataTextField="Country" DataValueField="Country" SelectedValue='<%# Bind("Country") %>' AppendDataBoundItems="true">
                              <asp:ListItem Value="" Text=""></asp:ListItem>
                          </asp:DropDownList></td>
                      <td width="15%" class="text_area">省/市/自治区</td>
                      <td width="35%">
                          &nbsp;&nbsp;
                          <div style="float: left">
                              <asp:DropDownList ID="Province" runat="server" AppendDataBoundItems="True" AutoPostBack="True"
                                  DataSourceID="Objectprovince" DataTextField="Province" DataValueField="Province"
                                  Width="80px" OnSelectedIndexChanged="Province_SelectedIndexChanged" SelectedValue='<%# Bind("Province") %>'>
                                  
                              </asp:DropDownList>省
                          </div>
                          <div style="float: left">
                              &nbsp;</div>
                          <asp:ObjectDataSource ID="Objectprovince" runat="server" SelectMethod="GetAllProvince"
                              TypeName="Shop_City"></asp:ObjectDataSource>
                          <asp:ObjectDataSource ID="Objectcity" runat="server" SelectMethod="GetCity" TypeName="Shop_City">
                              <SelectParameters>
                                  <asp:ControlParameter ControlID="Province" DefaultValue=" " Name="Province" PropertyName="SelectedValue"
                                      Type="String" />
                              </SelectParameters>
                          </asp:ObjectDataSource>
                            
                         </td>
                    </tr>
                    <tr>
                      <td class="text_area">邮编</td>
                      <td><asp:Textbox ID="ZipCode" Text='<%# Bind("ZipCode") %>' runat="server" /></td>
                      <td align="right" class="text_area">
                          城市</td>
                      <td class="row0">
                          <asp:UpdatePanel id="UpdatePanel1" runat="server">
                              <contenttemplate>
                              <asp:DropDownList id="City" runat="server" Width="80px" DataSourceID="Objectcity" 
                              AppendDataBoundItems="True" DataValueField="City" DataTextField="City">
                              </asp:DropDownList>市 
                              </contenttemplate>
                              <triggers>
                              <asp:AsyncPostBackTrigger ControlID="Province" EventName="SelectedIndexChanged"></asp:AsyncPostBackTrigger>
                              </triggers>
                          </asp:UpdatePanel>
                          <asp:HiddenField ID="H_City" runat="server" Value='<%# Eval("City") %>' />
                        </td>
                    </tr>
                    <tr>
                      
                      <td class="text_area">家庭电话</td>
                      <td><asp:TextBox ID="HomePhone" Text='<%# Bind("HomePhone") %>' runat="server" /></td>
                      <td align="right" class="text_area">详细地址</td>
                      <td class="row0"><asp:TextBox ID="Address" Text='<%# Bind("Address") %>' runat="server" /></td>
                      
                    </tr>
                    <tr>
                      <td align="right" class="text_area">移动电话</td>
                      <td class="row0"><asp:TextBox ID="Mobile" Text='<%# Bind("MobilePhone") %>' runat="server" /></td>
                      <td class="text_area">传真</td>
                      <td><asp:TextBox ID="Fax" Text='<%# Bind("Fax") %>' runat="server" /></td>
                    </tr>
                    <tr>
                      <td align="right" class="text_area">OICQ</td>
                      <td class="row0"><asp:TextBox ID="OICQ" Text='<%# Bind("OICQ") %>' runat="server" /></td>
                      <td class="text_area">ICQ</td>
                      <td><asp:TextBox ID="ICQ" Text='<%# Bind("ICQ") %>' runat="server" /></td>
                    </tr>
                    <tr>
                      <td align="right" class="text_area">MSN</td>
                      <td class="row0"><asp:TextBox ID="MSN" Text='<%# Bind("MSN") %>' runat="server" /></td>                      
                      <td class="text_area">个人主页</td>
                      <td><asp:TextBox ID="HomePage" Text='<%# Bind("HomePage") %>' runat="server" /></td>
                    </tr>
                     <tr>
                      <td align="right" class="text_area">淘宝旺旺</td>
                      <td class="row0"><asp:TextBox ID="Taobaowangwang" Text='<%# Bind("Taobaowangwang") %>' runat="server" /></td>                      
                      <td align="right" class="text_area">公司名称</td>
                      <td ><asp:TextBox ID="CompanyName" Text='<%# Bind("CompanyName") %>' runat="server" /></td>     
                    </tr>                                      
                  </table>
                </div>
                <div class="tab-page" id="shopInfo">
                   <h2 class="tab">商城信息</h2>
                   <script type="text/javascript">
                         tabPane1.addTabPage( document.getElementById( "shopInfo" ) );
                    </script> 
                    <table width="100%" border="0" class="adminform">
                         <tr>
                             <td align="right" class="text_area">买家信用</td>
                             <td class="row0"><asp:TextBox ID="BuyCrediet" Text='<%# Bind("BuyCrediet") %>' runat="server" /></td>                      
                             <td class="text_area">卖家信用</td>
                             <td><asp:TextBox ID="SaleCrediet" Text='<%# Bind("SaleCrediet") %>' runat="server" /></td>
                        </tr>
                         <tr>
                             <td align="right" class="text_area">认证类型</td>
                             <td class="row0">
                             <asp:Label ID="renzheng" runat="server" Text='<%# ((int)(Eval("AuthenticationType")) == 1) ? "身份证 |" : ""%>'></asp:Label>
                             <asp:Label ID="Label1" runat="server" Text='<%# ((int)(Eval("CompanyIdentify")) == 1) ? "企业 |" : ""%>'></asp:Label>
                             <asp:Label ID="Label2" runat="server" Text='<%# ((int)(Eval("MobileIdentify")) == 1) ? "手机 |" : ""%>'></asp:Label>
                             <asp:Label ID="Label3" runat="server" Text='<%# ((int)(Eval("BandShopIdentify")) == 1) ? "品牌店铺 |" : ""%>'></asp:Label>
                             <asp:Label ID="Label4" runat="server" Text='<%# ((int)(Eval("OtherIdentify1")) == 1) ? "先赔后付 |" : ""%>'></asp:Label>
                             <asp:Label ID="Label5" runat="server" Text='<%# ((int)(Eval("OtherIdentify2")) == 1) ? "支付宝 |" : ""%>'></asp:Label>
                             </td>                      
                             <td class="text_area">店铺编号</td>
                             <td><asp:TextBox ID="ShopID" Text='<%# Bind("ShopID") %>' runat="server" /></td>
                         </tr>
                    </table>     
                    
                 </div>  
                 <div style="text-align:center">
                    <asp:Button ID="UserDetailButton" Text="更新个人信息" CausesValidation="true" CommandName="Update" runat="server" />
                     <asp:Button ID="Button1" Text="返回" CausesValidation="false"  runat="server" OnClick="Button1_Click" />
                 </div> 
             </EditItemTemplate>         
          </asp:FormView> 
  </div>
  
</div>
<%--<div id="MainMenu">
	<div class="TabMenu">
		<!--一级导航-->				
       <ul id="M1" >
          <li><a href="javascript:GetUserOrder('bank','','OrderOtherInfo')"  onclick="setButtonActive(0)">订单记录</a></li>
          <li><a href="javascript:GetUserOrder('invoice','','OrderOtherInfo')"  onclick="setButtonActive(1)">支付记录</a></li>
          <li><a href="javascript:GetUserOrder('deliver','','OrderOtherInfo')"  onclick="setButtonActive(2)">发退货记录</a></li> 　
       </ul>
    </div>
    <div style="border:#6493C8 2px solid">
        <div id="OrderOtherInfo" style="width:98%; height:100px; text-align:center; vertical-align:middle;"></div> 
    </div> 
  </div>--%>

  


    <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" SelectMethod="GetUserByUserID"
        TypeName="Howave_UserInfo" UpdateMethod="UpdateUserInfoByUserID" OldValuesParameterFormatString="{0}">
        <UpdateParameters>
            <asp:Parameter Name="UserID" Type="Int32" />
            <asp:Parameter Name="TrueName" Type="String" />
            <asp:Parameter Name="IDCard" Type="String" />
            <asp:Parameter Name="Province" Type="String" />
            <asp:Parameter Name="City" Type="String" />
            <asp:Parameter Name="Birthday" Type="DateTime" />
            <asp:Parameter Name="ComeFrom" Type="String" />
            <asp:Parameter Name="Country" Type="String" />
            <asp:Parameter Name="Eductation" Type="String" />
            <asp:Parameter Name="Family" Type="String" />
            <asp:Parameter Name="Fax" Type="String" />
            <asp:Parameter Name="GraduteSchool" Type="String" />
            <asp:Parameter Name="HomePage" Type="String" />
            <asp:Parameter Name="InCome" Type="String" />
            <asp:Parameter Name="intro" Type="String" />
            <asp:Parameter Name="Interests" Type="String" />
            <asp:Parameter Name="Marriage" Type="Int32" />
            <asp:Parameter Name="Nation" Type="String" />
            <asp:Parameter Name="Address" Type="String" />
            <asp:Parameter Name="ZipCode" Type="String" />
            <asp:Parameter Name="OICQ" Type="String" />
            <asp:Parameter Name="MSN" Type="String" />
            <asp:Parameter Name="Taobaowangwang" Type="String" />
            <asp:Parameter Name="MobilePhone" Type="String" />
            <asp:Parameter Name="HomePhone" Type="String" />
            <asp:Parameter Name="ICQ" Type="String" />
            <asp:Parameter Name="CompanyName" Type="String" />
            <asp:Parameter Name="CreateTime" Type="DateTime" />
            <asp:Parameter Name="UpdateTime" Type="DateTime" />
            <asp:Parameter Name="BuyCrediet" Type="Int32" />
            <asp:Parameter Name="SaleCrediet" Type="Int32" />
            <asp:Parameter Name="ShopID" Type="Int32" />
            <asp:Parameter Name="Identify" Type="Int32" />
            <asp:Parameter Name="UserIdentifyType" Type="Int32" />
            <asp:Parameter Name="AuthenticationType" Type="Int32" />
            <asp:Parameter Name="RegTime" Type="DateTime" />
            <asp:Parameter Name="UserName" Type="String" />
        </UpdateParameters>
        <SelectParameters>
            <asp:QueryStringParameter DefaultValue="0" Name="UserID" QueryStringField="UserID"
                Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
    
    <script type="text/javascript" src="Js/getdate.js"></script>
</asp:Content>

