<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="KHGH.aspx.cs" Inherits="WorkFlow.CRMManger.KHGH" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!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 runat="server">
    <title>客户215</title>
    <link href="../FlowPage/css/main.css" rel="stylesheet" type="text/css" />
    <link href="../FlowPage/css/ext-all.css" rel="stylesheet" type="text/css" />

    <script src="../js/My97DatePicker/WdatePicker.js" type="text/javascript"></script>

    <script type="text/javascript">
     
         var renderTopic = function (value,p,record) {
           return String.format(  '<b><a href="LookGH.aspx?id={1}" target="_blank" title="查看详细信息">{0}</a>', value,record.id);
        }; 
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <ext:ResourceManager ID="ResourceManager1" runat="server" DirectMethodNamespace="DirectMethod">
    </ext:ResourceManager>
    <ext:Viewport ID="Viewport1" runat="server" Layout="border" AutoScroll="true">
        <Items>
            <ext:Panel ID="Panel5" runat="server" Region="North" Split="false" Height="102">
                <Content>
                    <ext:Hidden ID="hidWeek" runat="server">
                    </ext:Hidden>
                    <ext:Hidden ID="hidMonth" runat="server">
                    </ext:Hidden>
                    <ext:Hidden ID="hidGHLX" runat="server">
                    </ext:Hidden>
                    <table width="100%" style="background-color: #565656">
                        <tr>
                            <td align="center">
                                <div style="background-image: url('../FlowPage/icon/1new.png'); width: 880px; height: 10px">
                                </div>
                                <div style="background-image: url('../FlowPage/icon/2.png'); width: 880px; text-align: center">
                                    <table width="100%">
                                        <tr>
                                            <td align="center">
                                                <table cellspacing="9">
                                                    <tr>
                                                        <td style="padding-top: 2px; padding-bottom: 2px">
                                                            查询：
                                                        </td>
                                                        <td style="padding-top: 2px; padding-bottom: 2px">
                                                            <ext:ComboBox ID="ComboBox1" runat="server" SelectedIndex="0" Width="90" Editable="false">
                                                                <Items>
                                                                    <ext:ListItem Text="关怀主题" Value="关怀主题" />
                                                                    <ext:ListItem Text="客户" Value="客户" />
                                                                    <ext:ListItem Text="联系人" Value="联系人" />
                                                                    <ext:ListItem Text="关怀日期" Value="关怀日期" />
                                                                    <ext:ListItem Text="执行人" Value="执行人" />
                                                                    <ext:ListItem Text="创建时间" Value="创建时间" />
                                                                </Items>
                                                                <DirectEvents>
                                                                    <Select OnEvent="Search_Change">
                                                                        <EventMask ShowMask="true" Msg="正在操作中，请稍后..." />
                                                                    </Select>
                                                                </DirectEvents>
                                                            </ext:ComboBox>
                                                        </td>
                                                        <td style="padding-top: 2px; padding-bottom: 2px">
                                                            <ext:ComboBox ID="ZXR" runat="server" Width="215" DisplayField="Name" ValueField="LoginAccount"
                                                                Hidden="true" TypeAhead="true" Mode="Local" ForceSelection="true" TriggerAction="All"
                                                                ItemSelector="div.list-item" SelectOnFocus="true">
                                                                <Store>
                                                                    <ext:Store ID="SZXR" runat="server">
                                                                        <Reader>
                                                                            <ext:JsonReader IDProperty="LoginAccount">
                                                                                <Fields>
                                                                                    <ext:RecordField Name="DepartmentName" />
                                                                                    <ext:RecordField Name="Name" />
                                                                                    <ext:RecordField Name="PostionName" />
                                                                                    <ext:RecordField Name="LoginAccount" />
                                                                                </Fields>
                                                                            </ext:JsonReader>
                                                                        </Reader>
                                                                    </ext:Store>
                                                                </Store>
                                                                <Template ID="Template1" runat="server">
                                                                    <Html>
                                                                    <tpl for=".">
						                                                        <div class="list-item">
							                                                         <h3>{LoginAccount}{Name}</h3>
							                                                         {DepartmentName}, {PostionName}
						                                                        </div>
					                                                        </tpl>
                                                                    </Html>
                                                                </Template>
                                                            </ext:ComboBox>
                                                            <ext:Panel ID="PGHRQ" runat="server" Hidden="true" Border="false">
                                                                <Content>
                                                                    <table cellpadding="0" cellspacing="0">
                                                                        <tr>
                                                                            <td>
                                                                                <ext:TriggerField runat="server" ID="GHRQStart" TriggerIcon="Date" Width="100" Editable="false">
                                                                                    <Listeners>
                                                                                        <Focus Handler="WdatePicker({toDate:'%y-%M-01',dateFmt:'yyyy-MM-dd',alwaysUseStartDate:true});" />
                                                                                        <TriggerClick Handler="WdatePicker({el:'GHRQStart',toDate:'%y-%M-01',dateFmt:'yyyy-MM-dd',alwaysUseStartDate:true});" />
                                                                                    </Listeners>
                                                                                </ext:TriggerField>
                                                                            </td>
                                                                            <td>
                                                                                <span style="margin-left: 3px; margin-right: 3px">至</span>
                                                                            </td>
                                                                            <td>
                                                                                <ext:TriggerField runat="server" ID="GHRQEnd" TriggerIcon="Date" Width="100" Editable="false">
                                                                                    <Listeners>
                                                                                        <Focus Handler="WdatePicker({toDate:'%y-%M-01',dateFmt:'yyyy-MM-dd',alwaysUseStartDate:true});" />
                                                                                        <TriggerClick Handler="WdatePicker({el:'GHRQEnd',toDate:'%y-%M-01',dateFmt:'yyyy-MM-dd',alwaysUseStartDate:true});" />
                                                                                    </Listeners>
                                                                                </ext:TriggerField>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </Content>
                                                            </ext:Panel>
                                                            <ext:Panel ID="PCJRQ" runat="server" Hidden="true" Border="false">
                                                                <Content>
                                                                    <table cellpadding="0" cellspacing="0">
                                                                        <tr>
                                                                            <td>
                                                                                <ext:TriggerField runat="server" ID="CJRQStart" TriggerIcon="Date" Width="100" Editable="false">
                                                                                    <Listeners>
                                                                                        <Focus Handler="WdatePicker({minDate:'%y-%M-{%d}',startDate:'%y-%M-01',dateFmt:'yyyy-MM-dd',alwaysUseStartDate:true});" />
                                                                                        <TriggerClick Handler="WdatePicker({el:'CJRQStart',minDate:'%y-%M-{%d}',startDate:'%y-%M-01',dateFmt:'yyyy-MM-dd',alwaysUseStartDate:true});" />
                                                                                    </Listeners>
                                                                                </ext:TriggerField>
                                                                            </td>
                                                                            <td>
                                                                                <span style="margin-left: 3px; margin-right: 3px">至</span>
                                                                            </td>
                                                                            <td>
                                                                                <ext:TriggerField runat="server" ID="CJRQEnd" TriggerIcon="Date" Width="100" Editable="false">
                                                                                    <Listeners>
                                                                                        <Focus Handler="WdatePicker({minDate:'%y-%M-{%d}',startDate:'%y-%M-01',dateFmt:'yyyy-MM-dd',alwaysUseStartDate:true});" />
                                                                                        <TriggerClick Handler="WdatePicker({el:'CJRQEnd',minDate:'%y-%M-{%d}',startDate:'%y-%M-01',dateFmt:'yyyy-MM-dd',alwaysUseStartDate:true});" />
                                                                                    </Listeners>
                                                                                </ext:TriggerField>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </Content>
                                                            </ext:Panel>
                                                            <ext:TextField ID="GHZT" runat="server" Width="215" EmptyText="输入关怀主题模糊查询">
                                                            </ext:TextField>
                                                            <ext:ComboBox ID="KH" runat="server" Width="215" DisplayField="KHMC" ValueField="Id"
                                                                TypeAhead="true" Mode="Local" ForceSelection="true" TriggerAction="All" ItemSelector="tr.list-item"
                                                                Hidden="true" MinChars="1" ListWidth="300" PageSize="10" SelectOnFocus="true">
                                                                <Store>
                                                                    <ext:Store ID="Store2" runat="server">
                                                                        <Reader>
                                                                            <ext:JsonReader IDProperty="Id">
                                                                                <Fields>
                                                                                    <ext:RecordField Name="KHBH" />
                                                                                    <ext:RecordField Name="KHMC" />
                                                                                    <ext:RecordField Name="Id" />
                                                                                </Fields>
                                                                            </ext:JsonReader>
                                                                        </Reader>
                                                                        <AutoLoadParams>
                                                                            <ext:Parameter Name="start" Value="0" Mode="Raw" />
                                                                            <ext:Parameter Name="limit" Value="10" Mode="Raw" />
                                                                        </AutoLoadParams>
                                                                    </ext:Store>
                                                                </Store>
                                                                <Template ID="Template18" runat="server">
                                                                    <Html>
                                                                    <tpl for=".">
                            <tpl if="[xindex] == 1">
                                <table class="cbStates-list">
                                    <tr>
                                        <th>客户编号</th>
                                        <th>客户名称</th>
                                    </tr>
                            </tpl>
                            <tr class="list-item">
                                <td style="padding:3px 0px;">{KHBH}</td>
                                <td>{KHMC}</td>
                            </tr>
                       <tpl if="[xcount-xindex]==0">
                                                </table>
                                                </tpl> </tpl> </Html> </Template>
                                                <triggers>
                                                <ext:FieldTrigger Icon="Clear" HideTrigger="true" />
                            </triggers>
                                                <listeners>    
                           
                                                <BeforeQuery Handler="this.triggers[0][ this.getRawValue().toString().length == 0 ? 'hide' : 'show']();" />
                                                <TriggerClick Handler="if (index == 0) { this.focus().clearValue(); trigger.hide();}" />
                                                <Select Handler="this.triggers[0].show();DirectMethod.Search()" />
                                            </listeners>
                                                </ext:ComboBox>
                                                <ext:ComboBox ID="LXR" runat="server" Width="100" DisplayField="XM" ValueField="Id"
                                                    Hidden="true" EmptyText="" TypeAhead="true" Mode="Local" ForceSelection="true"
                                                    TriggerAction="All" ItemSelector="div.list-item" SelectOnFocus="true" SelectedIndex="0">
                                                    <Store>
                                                        <ext:Store ID="SLXR" runat="server">
                                                            <Reader>
                                                                <ext:JsonReader IDProperty="Id">
                                                                    <Fields>
                                                                        <ext:RecordField Name="XM" />
                                                                        <ext:RecordField Name="Id" />
                                                                    </Fields>
                                                                </ext:JsonReader>
                                                            </Reader>
                                                        </ext:Store>
                                                    </Store>
                                                    <Template ID="Template3" runat="server">
                                                        <Html>
                                                        <tpl for=".">
                                                                    <div class="list-item">
                                                                         <h3>{XM}</h3>							
                                                                    </div>
                                                                </tpl>
                                                        </Html>
                                                    </Template>
                                                </ext:ComboBox>
                                            </td>
                                            <td style="padding-top: 2px; padding-bottom: 2px">
                                                <ext:Button ID="Button3" runat="server" Text="立即查找" Icon="Zoom" ToolTip="立即查找">
                                                    <DirectEvents>
                                                        <Click OnEvent="SearchInfo_Click">
                                                            <EventMask ShowMask="true" Msg="正在查询中，请稍后..." />
                                                        </Click>
                                                    </DirectEvents>
                                                </ext:Button>
                                            </td>
                                        </tr>
                                    </table>
                                    <table width="100%">
                                        <tr>
                                            <td align="center">
                                                <table>
                                                    <tr>
                                                        <td>
                                                            <img alt="" src="../images/filter.png" />
                                                        </td>
                                                        <td>
                                                            快速查询：
                                                        </td>
                                                        <td>
                                                            <ext:RadioGroup ID="KSCX" runat="server" Width="630">
                                                                <Items>
                                                                    <ext:Radio ID="Radio1" BoxLabel=" <span style='font-size: 14px'>全部关怀</span>" runat="server"
                                                                        Checked="true">
                                                                    </ext:Radio>
                                                                    <ext:Radio ID="Radio2" BoxLabel=" <span style='font-size: 14px'>本周关怀</span>" runat="server">
                                                                    </ext:Radio>
                                                                    <ext:Radio ID="Radio3" BoxLabel=" <span style='font-size: 14px'>本月关怀</span>" runat="server">
                                                                    </ext:Radio>
                                                                    <ext:Radio ID="Radio4" BoxLabel=" <span style='font-size: 14px'>邮件关怀</span>" runat="server">
                                                                    </ext:Radio>
                                                                    <ext:Radio ID="Radio5" BoxLabel=" <span style='font-size: 14px'>电话关怀</span>" runat="server">
                                                                    </ext:Radio>
                                                                    <ext:Radio ID="Radio6" BoxLabel=" <span style='font-size: 14px'>短信关怀</span>" runat="server">
                                                                    </ext:Radio>
                                                                    <ext:Radio ID="Radio7" BoxLabel=" <span style='font-size: 14px'>其它关怀</span>" runat="server">
                                                                    </ext:Radio>
                                                                </Items>
                                                                <Listeners>
                                                                    <Change Handler="DirectMethod.KSCXMethod()" />
                                                                </Listeners>
                                                            </ext:RadioGroup>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                            </td>
                        </tr>
                    </table>
                    </div>
                    <div style="background-image: url('../FlowPage/icon/1.png'); width: 880px; height: 10px">
                    </div>
                    </td> </tr> </table>
                </Content>
            </ext:Panel>
            <ext:Panel ID="Panel1" runat="server" Layout="Fit" Region="Center" Title="">
                <Items>
                    <ext:TabPanel ID="TabPanel1" runat="server" TabPosition="Bottom" Plain="true" Header="false"
                        Border="false" Title="Center">
                        <Items>
                            <ext:Panel ID="Panel2" runat="server" Title="<span style='font-size:14px'>我的关怀</span>"
                                Layout="FitLayout">
                                <TopBar>
                                    <ext:Toolbar ID="Toolbar1" runat="server">
                                        <Items>
                                            <ext:Hidden ID="hidAccount" runat="server">
                                            </ext:Hidden>
                                            <ext:Hidden ID="UpdateId" runat="server">
                                            </ext:Hidden>
                                            <ext:Button ID="Button4" runat="server" Text="新增" Icon="Add" ToolTip="新增关怀">
                                                <DirectEvents>
                                                    <Click OnEvent="Add_Click">
                                                    </Click>
                                                </DirectEvents>
                                            </ext:Button>
                                            <ext:ToolbarSeparator />
                                            <ext:Button ID="btDelete" runat="server" Text="删除" Icon="Delete" ToolTip="删除所选关怀">
                                                <DirectEvents>
                                                    <Click OnEvent="Delete_Click">
                                                        <Confirmation ConfirmRequest="true" Message="删除后不可恢复,确定删除所选的关怀吗?" Title="提示" />
                                                        <EventMask ShowMask="true" Msg="正在删除中，请稍后..." />
                                                    </Click>
                                                </DirectEvents>
                                            </ext:Button>
                                            <ext:ToolbarSeparator />
                                            <ext:Button ID="Button34" runat="server" Text="共享" Icon="DriveNetwork" ToolTip="共享关怀">
                                                <DirectEvents>
                                                    <Click OnEvent="GX_Click">
                                                        <EventMask ShowMask="true" Msg="正在操作中，请稍后..." />
                                                    </Click>
                                                </DirectEvents>
                                            </ext:Button>
                                            <ext:ToolbarSeparator />
                                            <ext:Button ID="Button35" runat="server" Text="取消共享" Icon="DriveNetworkStop" ToolTip="取消共享关怀">
                                                <DirectEvents>
                                                    <Click OnEvent="QXGX_Click">
                                                        <EventMask ShowMask="true" Msg="正在操作中，请稍后..." />
                                                    </Click>
                                                </DirectEvents>
                                            </ext:Button>
                                        </Items>
                                    </ext:Toolbar>
                                </TopBar>
                                <Items>
                                    <ext:GridPanel ID="GridPanel1" runat="server" Frame="true" StripeRows="true" AnimCollapse="false"
                                        Icon="Table" TrackMouseOver="true">
                                        <Store>
                                            <ext:Store ID="Store1" runat="server" OnRefreshData="Store1_RefreshData">
                                                <Reader>
                                                    <ext:JsonReader IDProperty="Id">
                                                        <Fields>
                                                            <ext:RecordField Name="Id" />
                                                            <ext:RecordField Name="GHZT" />
                                                            <ext:RecordField Name="KH" />
                                                            <ext:RecordField Name="LXR" />
                                                            <ext:RecordField Name="GHLX" />
                                                            <ext:RecordField Name="GHRQ" />
                                                            <ext:RecordField Name="ZXR" />
                                                            <ext:RecordField Name="CreateDate" />
                                                            <ext:RecordField Name="GX" />
                                                        </Fields>
                                                    </ext:JsonReader>
                                                </Reader>
                                            </ext:Store>
                                        </Store>
                                        <ColumnModel ID="ColumnModel2" runat="server">
                                            <Columns>
                                                <ext:Column Header="关怀主题 " DataIndex="GHZT" Width="260">
                                                    <Renderer Fn="renderTopic" />
                                                </ext:Column>
                                                <ext:Column Header="客户" DataIndex="KH" Width="230" />
                                                <ext:Column Header="联系人" DataIndex="LXR" Width="70" />
                                                <ext:Column Header="关怀类型" DataIndex="GHLX" Width="70" />
                                                <ext:Column Header="关怀日期" DataIndex="GHRQ" Width="90" />
                                                <ext:Column Header="执行人" DataIndex="ZXR" Width="70" />
                                                <ext:Column Header="创建时间" DataIndex="CreateDate" Width="151" />
                                                <ext:Column Header="<span style='color:red'>是否共享</span>" DataIndex="GX" Width="70" />
                                                <ext:CommandColumn Width="60" Header="工具" Align="Center">
                                                    <Commands>
                                                        <ext:GridCommand Icon="BookAddressesEdit" CommandName="Edit" Text="修改">
                                                        </ext:GridCommand>
                                                    </Commands>
                                                </ext:CommandColumn>
                                            </Columns>
                                        </ColumnModel>
                                        <LoadMask ShowMask="true" />
                                        <DirectEvents>
                                            <Command OnEvent="Command">
                                                <EventMask ShowMask="true" Msg="<span style='font-size: 12px;'>正在操作中，请稍后...</span>"
                                                    MinDelay="10" />
                                                <ExtraParams>
                                                    <ext:Parameter Name="command" Value="command" Mode="Raw" />
                                                    <ext:Parameter Name="Id" Value="record.data.Id" Mode="Raw" />
                                                </ExtraParams>
                                            </Command>
                                        </DirectEvents>
                                        <SelectionModel>
                                            <ext:CheckboxSelectionModel ID="CheckboxSelectionModel2" runat="server" />
                                        </SelectionModel>
                                        <BottomBar>
                                            <ext:PagingToolbar ID="PagingToolbar1" runat="server" PageSize="17" DisplayInfo="true"
                                                BeforePageText="<span style='font-size:12px'>第</span>" AfterPageText="<span style='font-size:12px'>页</span>"
                                                DisplayMsg="<span style='font-size:12px'>显示 {0} - {1}， 共 {2} 条</span>" EmptyMsg="<span style='font-size:12px'>无数据可以显示</span>"
                                                Cls="fontsize" />
                                        </BottomBar>
                                    </ext:GridPanel>
                                </Items>
                            </ext:Panel>
                            <ext:Panel ID="Panel11" runat="server" Title="<span style='font-size:14px'>共享关怀</span>"
                                Layout="FitLayout">
                                <Items>
                                    <ext:GridPanel ID="GridPanel2" runat="server" Frame="true" StripeRows="true" AnimCollapse="false"
                                        Icon="Table" TrackMouseOver="true">
                                        <Store>
                                            <ext:Store ID="Store3" runat="server" OnRefreshData="Store3_RefreshData">
                                                <Reader>
                                                    <ext:JsonReader IDProperty="Id">
                                                        <Fields>
                                                            <ext:RecordField Name="Id" />
                                                            <ext:RecordField Name="GHZT" />
                                                            <ext:RecordField Name="KH" />
                                                            <ext:RecordField Name="LXR" />
                                                            <ext:RecordField Name="GHLX" />
                                                            <ext:RecordField Name="GHRQ" />
                                                            <ext:RecordField Name="ZXR" />
                                                            <ext:RecordField Name="CreateDate" />
                                                        </Fields>
                                                    </ext:JsonReader>
                                                </Reader>
                                            </ext:Store>
                                        </Store>
                                        <ColumnModel ID="ColumnModel1" runat="server">
                                            <Columns>
                                                <ext:Column Header="关怀主题 " DataIndex="GHZT" Width="260">
                                                    <Renderer Fn="renderTopic" />
                                                </ext:Column>
                                                <ext:Column Header="客户" DataIndex="KH" Width="230" />
                                                <ext:Column Header="联系人" DataIndex="LXR" Width="70" />
                                                <ext:Column Header="关怀类型" DataIndex="GHLX" Width="70" />
                                                <ext:Column Header="关怀日期" DataIndex="GHRQ" Width="90" />
                                                <ext:Column Header="执行人" DataIndex="ZXR" Width="70" />
                                                <ext:Column Header="创建时间" DataIndex="CreateDate" Width="151" />
                                            </Columns>
                                        </ColumnModel>
                                        <LoadMask ShowMask="true" />
                                        <SelectionModel>
                                            <ext:CheckboxSelectionModel ID="CheckboxSelectionModel1" runat="server" />
                                        </SelectionModel>
                                        <BottomBar>
                                            <ext:PagingToolbar ID="PagingToolbar2" runat="server" PageSize="17" DisplayInfo="true"
                                                BeforePageText="<span style='font-size:12px'>第</span>" AfterPageText="<span style='font-size:12px'>页</span>"
                                                DisplayMsg="<span style='font-size:12px'>显示 {0} - {1}， 共 {2} 条</span>" EmptyMsg="<span style='font-size:12px'>无数据可以显示</span>"
                                                Cls="fontsize" />
                                        </BottomBar>
                                    </ext:GridPanel>
                                </Items>
                            </ext:Panel>
                        </Items>
                        <DirectEvents>
                            <TabChange OnEvent="ChageTab_Click">
                            </TabChange>
                        </DirectEvents>
                    </ext:TabPanel>
                </Items>
            </ext:Panel>
        </Items>
    </ext:Viewport>
    <ext:Window ID="Window5" runat="server" Closable="True" Resizable="false" Height="500"
        Constrain="true" Icon="Anchor" Title="<span style='font-size:14px'>新增客户关怀</span>"
        Draggable="true" CloseAction="Hide" Width="600" Modal="true" Padding="0" Hidden="true"
        AutoScroll="true" Layout="FitLayout">
        <AutoLoad Mode="IFrame" NoCache="true" ShowMask="true">
        </AutoLoad>
        <Listeners>
            <Hide Handler="DirectMethod.Window5Close();" />
        </Listeners>
    </ext:Window>
    <ext:Window ID="Window1" runat="server" Closable="True" Resizable="false" Height="500"
        Icon="Anchor" Title="<span style='font-size:14px'>共享</span>" Draggable="true"
        Constrain="true" CloseAction="Hide" Width="550" Modal="true" Padding="0" Hidden="true"
        AutoScroll="true" Layout="FitLayout">
        <TopBar>
            <ext:Toolbar ID="Toolbar2" runat="server">
                <Items>
                    <ext:Button ID="Button36" runat="server" Text="保存" Icon="Disk" ToolTip="保存共享人员">
                        <DirectEvents>
                            <Click OnEvent="SaveGX_Click">
                            </Click>
                        </DirectEvents>
                    </ext:Button>
                </Items>
            </ext:Toolbar>
        </TopBar>
        <Content>
            <ext:Panel ID="PList" runat="server" Layout="Fit" Region="Center" Border="false">
                <Items>
                    <ext:GridPanel ID="GridPanel3" runat="server" Frame="true" StripeRows="true" AnimCollapse="false"
                        Icon="Table" TrackMouseOver="true" Border="false">
                        <TopBar>
                            <ext:Toolbar ID="Toolbar3" runat="server">
                                <Content>
                                    <table>
                                        <tr>
                                            <td>
                                                姓名：
                                            </td>
                                            <td>
                                                <ext:TextField ID="txtXMSearch" runat="server" Width="116" EnableKeyEvents="true">
                                                    <Listeners>
                                                        <KeyUp Handler="DirectMethod.XMSearch()" />
                                                    </Listeners>
                                                </ext:TextField>
                                            </td>
                                            <td>
                                                &nbsp;
                                            </td>
                                            <td>
                                                部门：
                                            </td>
                                            <td>
                                                <ext:ComboBox ID="cbBMSearch" runat="server" Width="116" ItemSelector="div.list-item"
                                                    DisplayField="Name" ValueField="Id" Editable="false">
                                                    <Store>
                                                        <ext:Store ID="SBMSearch" runat="server" SerializationMode="Complex">
                                                            <Reader>
                                                                <ext:JsonReader IDProperty="Id">
                                                                    <Fields>
                                                                        <ext:RecordField Name="Id" />
                                                                        <ext:RecordField Name="Name" />
                                                                    </Fields>
                                                                </ext:JsonReader>
                                                            </Reader>
                                                        </ext:Store>
                                                    </Store>
                                                    <Template ID="Template2" runat="server">
                                                        <Html>
                                                        <tpl for=".">
                                                       <div class="list-item">
								                          <h3>{Name}</h3>
								                       </div>				
					                                 </tpl>
                                                        </Html>
                                                    </Template>
                                                    <Listeners>
                                                        <Select Handler="DirectMethod.BMSearch()" />
                                                    </Listeners>
                                                </ext:ComboBox>
                                            </td>
                                            <td>
                                                &nbsp;
                                            </td>
                                            <td>
                                                职务：
                                            </td>
                                            <td>
                                                <ext:ComboBox ID="cbZWSearch" runat="server" Width="116" ItemSelector="div.list-item"
                                                    DisplayField="Name" ValueField="Id" Editable="false">
                                                    <Store>
                                                        <ext:Store ID="SZWSearch" runat="server" SerializationMode="Complex">
                                                            <Reader>
                                                                <ext:JsonReader IDProperty="Id">
                                                                    <Fields>
                                                                        <ext:RecordField Name="Id" />
                                                                        <ext:RecordField Name="Name" />
                                                                    </Fields>
                                                                </ext:JsonReader>
                                                            </Reader>
                                                        </ext:Store>
                                                    </Store>
                                                    <Template ID="Template7" runat="server">
                                                        <Html>
                                                        <tpl for=".">
                                                       <div class="list-item">
								                          <h3>{Name}</h3>
								                       </div>				
					                                 </tpl>
                                                        </Html>
                                                    </Template>
                                                    <Listeners>
                                                        <Select Handler="DirectMethod.ZWSearch()" />
                                                    </Listeners>
                                                </ext:ComboBox>
                                            </td>
                                        </tr>
                                    </table>
                                </Content>
                            </ext:Toolbar>
                        </TopBar>
                        <Store>
                            <ext:Store ID="Store4" runat="server" OnRefreshData="Store4_RefreshData">
                                <Reader>
                                    <ext:JsonReader IDProperty="LoginAccount">
                                        <Fields>
                                            <ext:RecordField Name="LoginAccount" />
                                            <ext:RecordField Name="Name" />
                                            <ext:RecordField Name="DepartmentName" />
                                            <ext:RecordField Name="PostionName" />
                                        </Fields>
                                    </ext:JsonReader>
                                </Reader>
                            </ext:Store>
                        </Store>
                        <ColumnModel ID="ColumnModel3" runat="server">
                            <Columns>
                                <ext:Column Header="编号" DataIndex="LoginAccount" />
                                <ext:Column Header="姓名" DataIndex="Name" Width="60" />
                                <ext:Column Header="部门" DataIndex="DepartmentName" Width="80" />
                                <ext:Column Header="职务" DataIndex="PostionName" Width="80" />
                            </Columns>
                        </ColumnModel>
                        <LoadMask ShowMask="true" />
                        <SelectionModel>
                            <ext:CheckboxSelectionModel ID="CheckboxSelectionModel3" runat="server" />
                        </SelectionModel>
                        <BottomBar>
                            <ext:PagingToolbar ID="PagingToolbar3" runat="server" PageSize="14" DisplayInfo="true"
                                BeforePageText="<span style='font-size:12px'>第</span>" AfterPageText="<span style='font-size:12px'>页</span>"
                                DisplayMsg="<span style='font-size:12px'>显示 {0} - {1}， 共 {2} 条</span>" EmptyMsg="<span style='font-size:12px'>无数据可以显示</span>"
                                Cls="fontsize" />
                        </BottomBar>
                    </ext:GridPanel>
                </Items>
            </ext:Panel>
        </Content>
    </ext:Window>
    </form>
</body>
</html>
