<%@ page language="C#" masterpagefile="AdminIndexMaster.master" autoeventwireup="true" inherits="HL_Admin_Admin_GroupEdit, HoWaveVGO" title="修改会员组设置" debug="true" enableEventValidation="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true"></asp:ScriptManager>
<table class="adminheading">
   <tr>
      <th class="menus" >会员组设置</th>     
      <td align="right">
        <asp:Label ID="Label1" runat="server" Text="&nbsp;&nbsp;&nbsp;查看会员组"></asp:Label>
               <asp:DropDownList ID="SelectGroup" runat="server" AutoPostBack="True" DataSourceID="ObjectDataSource1"
                   DataTextField="GroupName" DataValueField="GroupID">
               </asp:DropDownList>
       &nbsp;&nbsp;
               <a href="Admin_Group.aspx">返回列表</a>
      </td>
      <td class="rtdw"></td>
   </tr>
</table>
  <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetGroups" TypeName="GroupBLL"/>
  <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" DeleteMethod="DeleteGroup"
                   InsertMethod="AddGroup" SelectMethod="GetGroupByGroupID" TypeName="GroupBLL"
                   UpdateMethod="UpdateGroup">
                   <DeleteParameters>
                       <asp:Parameter Name="GroupID" Type="Int32" />
                   </DeleteParameters>
                   <UpdateParameters>
                       <asp:Parameter Name="GroupID" Type="Int32" />
                       <asp:Parameter Name="GroupName" Type="String" />
                       <asp:Parameter Name="GroupIntro" Type="String" />
                       <asp:Parameter Name="GroupType" Type="Int32" />
                       <asp:Parameter Name="SendMessage" Type="Int32" />
                       <asp:Parameter Name="MaxMessage" Type="Int32" />
                       <asp:Parameter Name="AllowUploadSize" Type="Int32" />
                       <asp:Parameter Name="ShoppingDiscount" Type="Int32" />
                       <asp:Parameter Name="OverDraft" Type="Int32" />
                       <asp:Parameter Name="ReCharge" Type="Boolean" />
                       <asp:Parameter Name="Transfer" Type="Boolean" />
                       <asp:Parameter Name="TransferCharge" Type="Int32" />
                       <asp:Parameter Name="AllowAnswerLibrary" Type="Boolean" />
                       <asp:Parameter Name="AllowReadLibrary" Type="Boolean" />
                       <asp:Parameter Name="AllowQuestion" Type="Boolean" />
                       <asp:Parameter Name="AllowSycharArticle" Type="String" />
                       <asp:Parameter Name="AllowRss" Type="Boolean" />
                       <asp:Parameter Name="GroupMemberNum" Type="Int32" />
                   </UpdateParameters>
                   <SelectParameters>
                       <asp:ControlParameter ControlID="SelectGroup" DefaultValue="1" Name="ID" PropertyName="SelectedValue"
                           Type="Int32" />
                   </SelectParameters>
                   <InsertParameters>
                       <asp:Parameter Name="GroupName" Type="String" />
                       <asp:Parameter Name="GroupIntro" Type="String" />
                       <asp:Parameter Name="GroupType" Type="Int32" />
                       <asp:Parameter Name="SendMessage" Type="Int32" />
                       <asp:Parameter Name="MaxMessage" Type="Int32" />
                       <asp:Parameter Name="AllowUploadSize" Type="Int32" />
                       <asp:Parameter Name="ShoppingDiscount" Type="Int32" />
                       <asp:Parameter Name="OverDraft" Type="Int32" />
                       <asp:Parameter Name="ReCharge" Type="Boolean" />
                       <asp:Parameter Name="Transfer" Type="Boolean" />
                       <asp:Parameter Name="TransferCharge" Type="Int32" />
                       <asp:Parameter Name="AllowAnswerLibrary" Type="Boolean" />
                       <asp:Parameter Name="AllowReadLibrary" Type="Boolean" />
                       <asp:Parameter Name="AllowQuestion" Type="Boolean" />
                       <asp:Parameter Name="AllowSycharArticle" Type="String" />
                       <asp:Parameter Name="AllowRss" Type="Boolean" />
                       <asp:Parameter Name="GroupMemberNum" Type="Int32" />
                   </InsertParameters>
  </asp:ObjectDataSource>
  <table cellpadding="0" cellspacing="0" border="0" width="100%" id="AdminChannelShow">
    
     <tr>
        <td valign="top">
            
               <br />
               <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                   <ContentTemplate>
<asp:FormView id="FormView1" runat="server" DataSourceID="ObjectDataSource2" AllowPaging="True" width="100%" DefaultMode="Edit" DataKeyNames="GroupID"><EditItemTemplate>
<TABLE class="nick" width="100%"><TBODY><TR><TD class="tit" colSpan=2>会员组设置</TD></TR><TR><TD class="ltd">会员组名</TD><TD class="rtd"><asp:TextBox id="GroupName" runat="server" Text='<%# Bind("GroupName") %>' __designer:wfdid="w198"></asp:TextBox></TD></TR><TR><TD class="ltd">会员组说明</TD><TD class="rtd"><asp:TextBox id="GroupIntros" runat="server" Text='<%# Bind("GroupIntro") %>' Width="400px" __designer:wfdid="w199"></asp:TextBox></TD></TR><TR><TD class="ltd">会员组类型</TD><TD class="rtd"><asp:DropDownList id="GroupType" runat="server" SelectedValue='<%#Bind("GroupType") %>' __designer:wfdid="w200">
                                     <asp:ListItem Text="未验证用户" Value="0"/>
                                     <asp:ListItem Text="注册会员" Value="1"/>
                                     <asp:ListItem Text="VIP会员" Value="2"/>
                                     <asp:ListItem Text="商业客户" Value="3"/>
                                     <asp:ListItem Text="代理商" Value="4"/>   
                                   </asp:DropDownList> </TD></TR><TR><TD class="ltd">短消息权限</TD><TD class="rtd">每次最多可同时向<asp:TextBox id="TextBox1" runat="server" Text='<%# Bind("SendMessage") %>' width="50px" __designer:wfdid="w201"></asp:TextBox>发送短消息<asp:RangeValidator id="RangeValidator2" runat="server" __designer:wfdid="w218" Type="Integer" MaximumValue="999999999" MinimumValue="0" ControlToValidate="TextBox1" ErrorMessage="必须为整数"></asp:RangeValidator><asp:RequiredFieldValidator id="RequiredFieldValidator2" runat="server" __designer:wfdid="w219" ControlToValidate="TextBox1" ErrorMessage="不能空"></asp:RequiredFieldValidator><BR />最多可收藏<asp:TextBox id="TextBox6" runat="server" Text='<%# Bind("MaxMessage") %>' width="50px" __designer:wfdid="w202"></asp:TextBox>条短消息 <asp:RangeValidator id="RangeValidator1" runat="server" __designer:wfdid="w220" Type="Integer" MaximumValue="999999999" MinimumValue="0" ControlToValidate="TextBox6" ErrorMessage="必须为整数"></asp:RangeValidator><asp:RequiredFieldValidator id="RequiredFieldValidator1" runat="server" __designer:wfdid="w221" ControlToValidate="TextBox6" ErrorMessage="不能空"></asp:RequiredFieldValidator></TD></TR><TR><TD class="ltd">上传权限</TD><TD class="rtd">每次允许上传最大<asp:TextBox id="TextBox2" runat="server" Text='<%# Bind("AllowUploadSize") %>' width="50px" __designer:wfdid="w203"></asp:TextBox>KB的文件<asp:RangeValidator id="RangeValidator3" runat="server" __designer:wfdid="w222" Type="Double" MaximumValue="999999999" MinimumValue="0" ControlToValidate="TextBox2" ErrorMessage="必须为非负数"></asp:RangeValidator><asp:RequiredFieldValidator id="RequiredFieldValidator3" runat="server" __designer:wfdid="w223" ControlToValidate="TextBox2" ErrorMessage="不能空"></asp:RequiredFieldValidator></TD></TR><TR><TD class="ltd">购物权限</TD><TD class="rtd">购物可享受<asp:TextBox id="TextBox3" runat="server" Text='<%# Bind("ShoppingDiscount") %>' width="50px" __designer:wfdid="w204"></asp:TextBox>% 折扣的优惠<asp:RangeValidator id="RangeValidator4" runat="server" __designer:wfdid="w224" Type="Integer" MaximumValue="999999999" MinimumValue="0" ControlToValidate="TextBox3" ErrorMessage="必须为非负数"></asp:RangeValidator><asp:RequiredFieldValidator id="RequiredFieldValidator4" runat="server" __designer:wfdid="w225" ControlToValidate="TextBox3" ErrorMessage="不能空"></asp:RequiredFieldValidator><BR />允许最大透支<asp:TextBox id="TextBox4" runat="server" Text='<%# Bind("OverDraft") %>' width="50px" __designer:wfdid="w205"></asp:TextBox>元 <asp:RangeValidator id="RangeValidator5" runat="server" __designer:wfdid="w226" Type="Double" MaximumValue="999999999" MinimumValue="0" ControlToValidate="TextBox4" ErrorMessage="必须为非负数"></asp:RangeValidator><asp:RequiredFieldValidator id="RequiredFieldValidator5" runat="server" __designer:wfdid="w227" ControlToValidate="TextBox4" ErrorMessage="不能空"></asp:RequiredFieldValidator></TD></TR><TR><TD class="ltd">社区银行权限</TD><TD class="rtd"><asp:CheckBox id="ReCharge" runat="server" Text="允许使用社区银行充值" Checked='<%# Bind("ReCharge") %>' __designer:wfdid="w206"></asp:CheckBox> <BR /><asp:CheckBox id="Transfer" runat="server" Text="允许自助货币转换" Checked='<%# Bind("Transfer") %>' __designer:wfdid="w207"></asp:CheckBox> <BR />每次转换收取手续费<asp:TextBox id="TextBox5" runat="server" Text='<%# Bind("TransferCharge") %>' width="50px" __designer:wfdid="w208"></asp:TextBox>元 <asp:RangeValidator id="RangeValidator6" runat="server" __designer:wfdid="w228" Type="Double" MaximumValue="999999999" MinimumValue="0" ControlToValidate="TextBox5" ErrorMessage="必须为非负数"></asp:RangeValidator><asp:RequiredFieldValidator id="RequiredFieldValidator6" runat="server" __designer:wfdid="w229" ControlToValidate="TextBox5" ErrorMessage="不能空"></asp:RequiredFieldValidator></TD></TR><TR><TD class="ltd">知识库权限</TD><TD class="rtd"><asp:CheckBox id="AllowReadLibrary" runat="server" Text="允许查看知识库" Checked='<%# Bind("AllowReadLibrary") %>' __designer:wfdid="w209"></asp:CheckBox> <BR /><asp:CheckBox id="AllowQuestion" runat="server" Text="允许提出问题" Checked='<%# Bind("AllowQuestion") %>' __designer:wfdid="w210"></asp:CheckBox> <BR /><asp:CheckBox id="AllowAnswerLibrary" runat="server" Text="允许解答问题" Checked='<%# Bind("AllowAnswerLibrary") %>' __designer:wfdid="w211"></asp:CheckBox> <BR /></TD></TR><TR><TD class="ltd">同步权限</TD><TD class="rtd"><asp:CheckBoxList id="AllowSycharArticle" runat="server" __designer:wfdid="w212">
                                      <asp:ListItem Text="不开放" Value="0" />
                                      <asp:ListItem Text="开启文章同步" Value="1" />
                                      <asp:ListItem Text="开启论坛帖子同步" Value="2" />
                                      <asp:ListItem Text="开启博客日志同步" Value="3" />
                                 </asp:CheckBoxList> <BR /></TD></TR><TR><TD class="ltd">聚合空间权限</TD><TD class="rtd"><asp:CheckBox id="AllowRss" runat="server" Text="启用聚合空间" Checked='<%# Bind("AllowRss") %>' __designer:wfdid="w213"></asp:CheckBox> </TD></TR><TR><TD>&nbsp;</TD><TD class="rtd"><asp:Button id="UpdateButton" runat="server" Text="更新" CommandName="Update" CausesValidation="True" __designer:wfdid="w214"></asp:Button> <asp:Button id="UpdateCancelButton" runat="server" Text="取消" CommandName="Cancel" CausesValidation="False" __designer:wfdid="w215"></asp:Button> <asp:Button id="Button1" runat="server" Text="新增" CommandName="new" CausesValidation="False" __designer:wfdid="w216"></asp:Button> <asp:Button id="Button2" runat="server" Text="删除" CommandName="delete" CausesValidation="False" OnClientClick="return confirm('您真的要删除?')" __designer:wfdid="w217"></asp:Button> </TD></TR></TBODY></TABLE>
</EditItemTemplate>
<InsertItemTemplate>
                          <table width="100%" class="nick">
                          <tr>
                              <td colspan="2" class="tit">新建会员组</td>
                          </tr>
                          <tr>
                              <td class="ltd">会员组名</td>
                              <td class="rtd"><asp:TextBox ID="GroupName" Text='<%# Bind("GroupName") %>' runat="server" /></td>
                          </tr class="tdbg">
                          <tr>
                              <td class="ltd">会员组说明</td>
                              <td class="rtd"><asp:TextBox ID="GroupIntros" Text='<%# Bind("GroupIntro") %>' runat="server" /></td>
                          </tr>
                          <tr>
                              <td class="ltd">会员组类型</td>
                              <td class="rtd">
                                 <asp:DropDownList ID="GroupType"  runat="server" SelectedValue='<%# Bind("GroupType") %>'>
                                     <asp:ListItem Text="未验证用户" Value="0"/>
                                     <asp:ListItem Text="注册会员" Value="1"/>
                                     <asp:ListItem Text="VIP会员" Value="2"/>
                                     <asp:ListItem Text="商业客户" Value="3"/>
                                     <asp:ListItem Text="代理商" Value="4"/>     
                                   </asp:DropDownList>
                              </td>
                          </tr>                         
                          <tr>
                              <td class="ltd">短消息权限</td>
                              <td class="rtd">每次最多可同时向<asp:TextBox ID="TextBox1" Text='<%# Bind("SendMessage") %>' runat="server" />发送短消息<br />
                                  最多可收藏<asp:TextBox ID="TextBox6" Text='<%# Bind("MaxMessage") %>' runat="server" />条短消息
                               </td>
                          </tr>
                          <tr>
                              <td class="ltd">上传权限</td>
                              <td class="rtd">每次允许上传最大<asp:TextBox ID="TextBox2" Text='<%# Bind("AllowUploadSize") %>' runat="server" />KB的文件</td>
                          </tr>
                          <tr>
                              <td class="ltd">购物权限</td>
                              <td class="rtd">购物可享受<asp:TextBox ID="TextBox3" Text='<%# Bind("ShoppingDiscount") %>' runat="server" />%折扣的优惠<br />
                              允许最大透支<asp:TextBox ID="TextBox4" Text='<%# Bind("OverDraft") %>' runat="server" />元
                              </td>
                          </tr>
                          <tr>
                              <td class="ltd">社区银行权限</td>
                              <td class="rtd">
                                  <asp:CheckBox ID="ReCharge" runat="server" Checked='<%# Bind("ReCharge") %>' Text="允许使用社区银行充值" />                                  
                                  <br />                                  
                                   <asp:CheckBox ID="Transfer" runat="server" Checked='<%# Bind("Transfer") %>' Text="允许自助货币转换"/>                                   
                                  <br />
                                  每次转换收取手续费<asp:TextBox ID="TextBox5" Text='<%# Bind("TransferCharge") %>' runat="server" />元
                               </td>
                          </tr>
                          <tr>
                              <td class="ltd">知识库权限</td>
                              <td class="rtd">
                                <asp:CheckBox ID="AllowReadLibrary" runat="server" Checked='<%# Bind("AllowReadLibrary") %>' Text="允许查看知识库"/>                                  
                                  <br />                                  
                                   <asp:CheckBox ID="AllowQuestion" runat="server" Checked='<%# Bind("AllowQuestion") %>' Text="允许提出问题"/>                                  
                                  <br />                                  
                                  <asp:CheckBox ID="AllowAnswerLibrary" runat="server" Checked='<%# Bind("AllowAnswerLibrary") %>' Text="允许解答问题"/>                                  
                                  <br />
                               </td>
                          </tr>
                          <tr>
                              <td class="ltd">同步权限</td>
                              <td class="rtd">
                                 <asp:CheckBoxList ID="SyncharAccess" runat="server" >
                                      <asp:ListItem Text="不开放" Value="0" />
                                      <asp:ListItem Text="开启文章同步" Value="1" />
                                      <asp:ListItem Text="开启论坛帖子同步" Value="2" />
                                      <asp:ListItem Text="开启博客日志同步" Value="3" />
                                 </asp:CheckBoxList>
                                  <br />
                              </td>
                          </tr>
                          <tr>
                              <td class="ltd">聚合空间权限</td>
                              <td class="rtd">
                                 <asp:CheckBox ID="AllowRss" runat="server" Checked='<%# Bind("AllowRss") %>' Text="启用聚合空间"/>                                
                              </td>
                          </tr>
                          <tr>
                          <tr>
                              <td>&nbsp;</td>
                              <td>
                                 <asp:Button ID="InsertButton" runat="server" CausesValidation="True" CommandName="Insert" Text="插入"/>                             
                                 <asp:Button ID="InsertCancelButton" runat="server" CausesValidation="False" CommandName="Cancel" Text="取消"/>
                              </td>
                          </tr>
                      
</InsertItemTemplate>
</asp:FormView> 
</ContentTemplate>
                    <Triggers>
                       <asp:AsyncPostBackTrigger ControlID="SelectGroup" EventName="SelectedIndexChanged" />
                    </Triggers>
             </asp:UpdatePanel>
              
           
        </td>
      </tr>
  </table>           
</asp:Content>

