<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="Vote_Reporting.aspx.cs" Inherits="Vote.Admin.Vote_Reporting" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

        
    

 <div class="result-wrap">


 
    


        
 <div class="result-wrap">
    <asp:DropDownList runat="server" ID="ddl_votesubject" AutoPostBack="True" OnSelectedIndexChanged="ddl_votesubject_SelectedIndexChanged"></asp:DropDownList>



            <div class="result-content">
                <ul class="sys-info-list">
                    <li>
                        目前投票个数：<asp:Label runat="server" id="lbl_total"  ForeColor="Red" Font-Bold="true"></asp:Label>个 <br />
                         
                        共有投票人数： <asp:Label runat="server" ID="lbl_totalpeople" ForeColor="Red" Font-Bold="true"></asp:Label>人;

                   已经参与投票人 ：<asp:Label runat="server" id="lbl_people" ForeColor="Red" Font-Bold="true"></asp:Label>人;
                        还未投票人数：<asp:Label runat="server" ID="lbl_unvotepeople" ForeColor="Red" Font-Bold="true"></asp:Label>
                       
                         </li>

                    </ul>
                </div>
     <hr />
     <b>还未投票人员列表(此数据仅针对采用“<font color=red>根据员工号可以投票</font>”方式有效)</b>

     <asp:SqlDataSource ID="SqlDataSource1" 
         SelectCommand=" select vote_users.* from vote_users inner join vote_subjects_users on vote_users.id=vote_subjects_users.uid where sid=@sid
 
and staffcode not in ( select distinct(votekey) from vote_votingdetail  where sid=@sid   ) "
          ConnectionString='<%$ConnectionStrings:ConnectionString %>'
          runat="server">

         <SelectParameters>
             <asp:ControlParameter ControlID="ddl_votesubject" Name="sid" />
         </SelectParameters>
     </asp:SqlDataSource>

     <asp:GridView ID="GridView1" AllowPaging="true" PageSize="100"
        
          CssClass="table" GridLines="None" DataSourceID="SqlDataSource1" runat="server">

       
     </asp:GridView>
     </div>
     </div>


</asp:Content>
