<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="True" Inherits="Kesion.NET.WebSite.Admin_UserAutoUpdate" Title="Untitled Page" CodeBehind="KS.UserAutoUpdate.aspx.cs" %>
<%@ Import Namespace="Kesion.Publics" %>
<%@ Import Namespace="Kesion.Cache" %>
<%@ Import Namespace="System.Xml" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="Kesion.BLL" %>

<asp:Content ID="Content1" ContentPlaceHolderID="KSContent" Runat="Server">

	<script>
        function showUser(id, groupname) {
            location.href = 'KS.User.Aspx?type=1&groupname='+groupname+'&gid=' + id;
           // parent.openWin('查看用户组[' + groupname + ']下的用户', 'user/KS.User.Aspx?type=1&groupid=' + id, false, 900, 520);
        }
    </script>
    <asp:Panel ID="ListPanel" runat="server" Width="100%">
    
    <div id="manage_top" class="menu_top_fixed">
        <ul class="titleTab">
            <li><a href="KS.UserGroup.aspx">用户组管理</a></li>
            <li><a href="KS.UserDepartMent.aspx">用户部门管理</a></li>
            <li class="curr"><a href="KS.UserAutoUpdate.aspx">用户组升级设置</a></li>
        </ul>
    </div>
    <div class="menu_top_fixed_height"></div>
    <div class="content-area">   
    <div class="myTitle">用户组升级设置</div>
        <KS:KSGV ID="List" cssclass="CTable" runat="server" GridLines="None" AutoGenerateColumns="False" EmptyDataText="<div class='empty'>没有添加任何用户组</div>" PagerType="CustomNumeric" Width="99%" OnRowDataBound="List_RowDataBound">
            <HeaderStyle CssClass="CTitle" />
            <Columns>
                <asp:BoundField DataField="groupid" HeaderText="ID">
                    <itemstyle horizontalalign="Center" width="25px" />
                </asp:BoundField>
                <asp:BoundField DataField="groupname" HtmlEncode="false" HeaderText="用户组名称">
                    <itemstyle horizontalalign="Center" width="120px" />
                </asp:BoundField>
                <asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderText="是否允许自动升级" >
                    <itemtemplate>
                        <asp:HiddenField ID="hdID" Value='<%#Eval("groupid") %>' runat="server" />
                        <asp:HiddenField ID="AutoUpdate1" runat="server" Value='<%# Eval("AutoUpdate") %>' />
                        <asp:RadioButtonList ID="AutoUpdate" runat="server" RepeatDirection="Horizontal">
                            <asp:ListItem Value="1">允许</asp:ListItem>
                            <asp:ListItem Selected Value="0">不允许</asp:ListItem>
                        </asp:RadioButtonList>
                    </itemtemplate>
                </asp:TemplateField>
              	<asp:TemplateField HeaderText="所需积分">
                    <itemtemplate>
                      	<asp:TextBox CssClass="textbox" ID="AutoUpdateScore" Width="50px" style="text-align:center" Text='<%#Eval("AutoUpdateScore") %>' runat="server"></asp:TextBox>
                    </itemtemplate>
                    <itemstyle horizontalalign="Center"  />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="发表文档">
                    <itemtemplate>
                      	<asp:TextBox CssClass="textbox" ID="AutoUpdateText" Width="50px" style="text-align:center" Text='<%#Eval("AutoUpdateText") %>' runat="server"></asp:TextBox>
                    </itemtemplate>
                    <itemstyle horizontalalign="Center"  />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="累计充值">
                    <itemtemplate>
                        <asp:TextBox CssClass="textbox" ID="AutoUpdateCharge" Width="50px" style="text-align:center" Text='<%# Kesion.APPCode.Public.ReturnShopPrice(Utils.StrToDecimal( Eval("AutoUpdateCharge"))) %>' runat="server"></asp:TextBox>
                    </itemtemplate>
                    <itemstyle horizontalalign="Center"  />
                </asp:TemplateField>
            </Columns>
            <EditRowStyle CssClass="emptycss" />
        </KS:KSGV>

        <div class="listedit"><asp:Button ID="BtnDel" runat="server" Text="批量保存"  CssClass="button" OnClick="savebutton_Click" /></div>
        
     </div>
	 <KS:Page runat="server" ID="Page1" />
    </asp:Panel>
  </div>  

    
   </div> 
</asp:Content>

