<%@ page language="C#" autoeventwireup="true" inherits="Admin_Set_CustomerEvent, App_Web_fz39milv" %>


<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>客户来源</title>
    <link href="../../CSS/All.css" rel="stylesheet" type="text/css" />
    <link href="../../CSS/pager.css" rel="stylesheet" type="text/css" />
    <script src="../../JS/xzOper.js" type="text/javascript"></script>
    <script src="../../JS/jquery.min.js" type="text/javascript"></script>
    <script src="../../JS/Popup.js" type="text/javascript"></script>

    <style>
    .popupPanel{
        z-index: 101;
        left: 200px;  width: 364px; 
        position: absolute;
        top: 190px; 
        height: 63px; 
        display:none;
        background-color: whitesmoke; 
        border-right: #5d7b9d 10px solid;
        border-top: #5d7b9d 10px solid; 
        border-left: #5d7b9d 10px solid; 
        border-bottom: #5d7b9d 10px solid;
    }
     .close{
        border-right: medium none;
        border-top: medium none; float: right; border-left: medium none; border-bottom: medium none;
        background-color: darkgray
    }
    </style>
</head>
<body>
    <form id="Myform" runat="server">
        <div class="title" >
            客户事件</div>
        <div >
            <br />
            <fieldset>
            <legend>新增</legend>
            
            <label>
                【事件：】</label><asp:TextBox ID="txtType" runat="server" Width="187px" MaxLength="50"></asp:TextBox>&nbsp;
            <asp:Button ID="btnSubmit" runat="server" Text="新增" OnClick="btnSubmit_Click" CssClass="btn" OnClientClick="return CheckInsert();" />
            </fieldset>
        </div>    
        <fieldset>
        <legend>内容区域</legend>
        <div id="contentDiv" style="overflow-x:auto">
        <asp:GridView
            ID="tableView" runat="server" AutoGenerateColumns="False" 
             EmptyDataText="没有可显示的数据记录。" Width="100%" BorderStyle="Solid" BorderColor="#5D7B9D" DataKeyNames="CID" OnRowDataBound="tableView_RowDataBound">
             <Columns>
                 <asp:TemplateField HeaderText="选择"> 
                     <ItemTemplate>
                         <asp:CheckBox ID="CBSelect" runat="server" />
                     </ItemTemplate>
                       <HeaderStyle Width="35px" />
                     <ItemStyle Width="35px"    />
                 </asp:TemplateField>
                 <asp:TemplateField HeaderText="操作" SortExpression="EID">
                     <ItemTemplate>
                     <asp:Literal ID="litEdit" runat="server"></asp:Literal>
                        
                     </ItemTemplate>
                     <HeaderStyle Height="30px" Width="50px"  Wrap="False"/>
                     <ItemStyle Height="30px" Width="50px"   Wrap="False" />
                 </asp:TemplateField>
                 <asp:TemplateField HeaderText="客户事件">
                     <ItemTemplate>
                         <asp:Label ID="Label1" runat="server" Text='<%# Bind("Type") %>'></asp:Label>
                     </ItemTemplate>
                 </asp:TemplateField>
            </Columns>
                  <FooterStyle CssClass="GridViewFooterStyle" />
                 <RowStyle CssClass="GridViewRowStyle" />   
                 <SelectedRowStyle CssClass="GridViewSelectedRowStyle" />
                 <PagerStyle CssClass="GridViewPagerStyle" />
                 <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                 <HeaderStyle CssClass="GridViewHeaderStyle" />
                 
        </asp:GridView>
        </div>
        <div style="border-top:ridge 1px #F6F6F6; margin-top:10px" >
        
            <input id="btnOpposite" class="btn" onclick="Opposite('contentDiv')" type="button" value="反选" />
            &nbsp;&nbsp;
            <asp:Button ID="btnDSelect" runat="server" CssClass="btn" OnClick="btnDeleteSelectAll_Click"
                OnClientClick="if(confirm('确定删除所有选中吗？')){return isSelect('contentDiv');}else{return false;}"
                Text="删除选中" /></div>  
      </fieldset>
    <webdiyer:aspnetpager id="PagerButtom" runat="server" alwaysshow="True" cssclass="paginator"
                currentpagebuttonclass="cpb" custominfohtml="当前第%CurrentPageIndex%/%PageCount%页 共%RecordCount%条记录 每页%PageSize%条 "
                firstpagetext="首页" lastpagetext="尾页" layouttype="Table" nextpagetext="下一页" numericbuttoncount="5"
                onpagechanged="Pager_PageChanged" pagesize="25" prevpagetext="上一页" showcustominfosection="Left"
                showpageindexbox="Always"></webdiyer:aspnetpager>
                
        <div id="EditPanel" class="popupPanel" style="height: 136px" >
           <table border="0" cellspacing="5" height="100%" width="100%">
                <tr>
                    <td colspan="3" >
                        <div id="_addCoursePanelDorp" style="width: 100%; height: 25px; background-color: whitesmoke; border-bottom: gray 1px solid;">
                            <input id="btnAddCourseClose" onclick='$("#EditPanel").hide();'  class="close" type="button" value="关闭" />
                        </div>
                      
                    </td>
                </tr>
                <tr>
                    <td style="width: 20%">
                        <span  class="title_1">编辑事件：</span>
                    </td>
                    <td valign="top" style="width: 51%">
                        &nbsp;<asp:TextBox ID="txtEditType" runat="server" Width="166px"></asp:TextBox></td>
                    <td valign="top" width="24%">
                     <asp:Button ID="btnEditSubmit" runat="server" Text="提交" Width="65px" OnClick="btnEditSubmit_Click" /></td>
                </tr>
                <tr>
                    <td colspan="3" style="height: 23px; " align="center" >
                    </td>
                </tr>
            </table>
      </div>
        <asp:HiddenField ID="hfCurrentID" runat="server" />
        <script>
        function setCutID(value,type){
            $('#hfCurrentID').val(value)
            $('#txtEditType').val(type);
        }
         function CheckInsert(){
               var Type = $("#<%=txtType.ClientID %>" );
               if($.trim(Type.val())==""){
                   alert(" 该输入不能为空！" );
                   Type.get(0).focus();
                   return false;
               }
               return true;
        }
        </script>
    </form>
</body>
</html>