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

<%@ 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>联系人详细信息</title>
    <link href="../FlowPage/css/main.css" rel="stylesheet" type="text/css" />
    <link href="../FlowPage/css/ext-all.css" rel="stylesheet" type="text/css" />
</head>
<body  style="background-color: #565656">
    <form id="form1" runat="server">
    <ext:ResourceManager ID="ResourceManager1" runat="server" DirectMethodNamespace="DirectMethod">
    </ext:ResourceManager>
    <ext:Panel ID="PList" runat="server" Region="Center" Border="false">
        <Content>
            <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">
                                        <ext:Panel ID="Panel8" runat="server" Title="<span style='font-size: 12px;'>联系人信息</span>"
                                            FormGroup="true" AutoScroll="false">
                                            <Content>
                                                <table cellspacing="9" style="text-align: left">
                                                    <tr>
                                                        <td>
                                                            姓名 ：<span style="color: Red">*</span>
                                                        </td>
                                                        <td style="padding-top: 2px; padding-bottom: 2px">
                                                            <ext:TextField ID="XM" runat="server" Width="215" ReadOnly="true">
                                                            </ext:TextField>
                                                        </td>
                                                        <td>
                                                            称呼 ：
                                                        </td>
                                                        <td style="padding-top: 2px; padding-bottom: 2px">
                                                            <ext:RadioGroup ID="CH" runat="server" Width="330" ReadOnly="true">
                                                                <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>
                                                                </Items>
                                                            </ext:RadioGroup>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            英文名 ：
                                                        </td>
                                                        <td style="padding-top: 2px; padding-bottom: 2px">
                                                            <ext:TextField ID="YWM" runat="server" Width="215" ReadOnly="true">
                                                            </ext:TextField>
                                                        </td>
                                                        <td>
                                                            职位/部门 ：
                                                        </td>
                                                        <td style="padding-top: 2px; padding-bottom: 2px">
                                                            <ext:TextField ID="ZWBM" runat="server" Width="215" ReadOnly="true">
                                                            </ext:TextField>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            客户名称 ：<span style="color: Red">*</span>
                                                        </td>
                                                        <td style="padding-top: 2px; padding-bottom: 2px">
                                                            <ext:ComboBox ID="cbKHMC" runat="server" Width="231" DisplayField="KHMC" ValueField="Id"
                                                             ReadOnly="true"   TypeAhead="true" Mode="Local" ForceSelection="true" TriggerAction="All" ItemSelector="tr.list-item"
                                                                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();" />
                                            </listeners>
                                                </ext:ComboBox>
                                                <td>
                                                    办公电话：
                                                </td>
                                                <td style="padding-top: 2px; padding-bottom: 2px">
                                                    <ext:TextField ID="BGDH" runat="server" Width="215" ReadOnly="true">
                                                    </ext:TextField>
                                                </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        手机 ：
                                                    </td>
                                                    <td style="padding-top: 2px; padding-bottom: 2px">
                                                        <ext:TextField ID="SJ" runat="server" Width="215" ReadOnly="true">
                                                        </ext:TextField>
                                                    </td>
                                                    <td>
                                                        传真：
                                                    </td>
                                                    <td style="padding-top: 2px; padding-bottom: 2px">
                                                        <ext:TextField ID="CZ" runat="server" Width="215" ReadOnly="true">
                                                        </ext:TextField>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        Email ：
                                                    </td>
                                                    <td style="padding-top: 2px; padding-bottom: 2px">
                                                        <ext:TextField ID="Email" runat="server" Width="215" ReadOnly="true">
                                                        </ext:TextField>
                                                    </td>
                                                    <td>
                                                        客户来源 ：
                                                    </td>
                                                    <td style="padding-top: 2px; padding-bottom: 2px">
                                                        <ext:ComboBox ID="cbKHLY" runat="server" Width="215" DisplayField="FLName" ValueField="Id"
                                                         ReadOnly="true"    TypeAhead="true" Mode="Local" ForceSelection="true" TriggerAction="All" ItemSelector="div.list-item"
                                                            SelectOnFocus="true">
                                                            <Store>
                                                                <ext:Store ID="SKHLY" runat="server">
                                                                    <Reader>
                                                                        <ext:JsonReader IDProperty="Id">
                                                                            <Fields>
                                                                                <ext:RecordField Name="FLName" />
                                                                                <ext:RecordField Name="Id" />
                                                                            </Fields>
                                                                        </ext:JsonReader>
                                                                    </Reader>
                                                                </ext:Store>
                                                            </Store>
                                                            <Template ID="Template3" runat="server">
                                                                <Html>
                                                                <tpl for=".">
						                                <div class="list-item">
							                                 <h3>{FLName}</h3>							
						                                </div>
					                                </tpl>
                                                                </Html>
                                                            </Template>
                                                        </ext:ComboBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        首要联系人 ：
                                                    </td>
                                                    <td style="padding-top: 2px; padding-bottom: 2px">
                                                        <ext:RadioGroup ID="SYLXR" runat="server" Width="120" ReadOnly="true">
                                                            <Items>
                                                                <ext:Radio ID="Radio7" BoxLabel=" <span style='font-size: 14px'>是</span>" runat="server"
                                                                    Checked="true">
                                                                </ext:Radio>
                                                                <ext:Radio ID="Radio8" BoxLabel=" <span style='font-size: 14px'>否</span>" runat="server">
                                                                </ext:Radio>
                                                            </Items>
                                                        </ext:RadioGroup>
                                                    </td>
                                                    <td>
                                                        负责人 ：<span style="color: Red">*</span>
                                                    </td>
                                                    <td style="padding-top: 2px; padding-bottom: 2px">
                                                        <ext:ComboBox ID="cbFZR" runat="server" Width="215" DisplayField="Name" ValueField="LoginAccount"
                                                           ReadOnly="true" TypeAhead="true" Mode="Local" ForceSelection="true" TriggerAction="All" EmptyText="选择一个负责人"
                                                            ItemSelector="div.list-item" SelectOnFocus="true">
                                                            <Store>
                                                                <ext:Store ID="Store1" 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>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        家庭电话 ：
                                                    </td>
                                                    <td style="padding-top: 2px; padding-bottom: 2px">
                                                        <ext:TextField ID="JTDH" runat="server" Width="215" ReadOnly="true">
                                                        </ext:TextField>
                                                    </td>
                                                    <td>
                                                        QQ：
                                                    </td>
                                                    <td style="padding-top: 2px; padding-bottom: 2px">
                                                        <ext:TextField ID="QQ" runat="server" Width="215" ReadOnly="true">
                                                        </ext:TextField>
                                                    </td>
                                                </tr>
                                                </table>
                                            </Content>
                                        </ext:Panel>
                                        <ext:Panel ID="Panel1" runat="server" Title="<span style='font-size: 12px;'>描述信息</span>"
                                            FormGroup="true" AutoScroll="false">
                                            <Content>
                                                <table cellspacing="9">
                                                    <tr>
                                                        <td>
                                                            描述 ：
                                                        </td>
                                                        <td style="padding-top: 2px; padding-bottom: 2px">
                                                            <ext:HtmlEditor ID="MS" runat="server" Height="140" Width="600" ReadOnly="true">
                                                            </ext:HtmlEditor>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </Content>
                                        </ext:Panel>
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <div style="background-image: url('../FlowPage/icon/1.png'); width: 880px; height: 10px">
                        </div>
                    </td>
                </tr>
            </table>
        </Content>
    </ext:Panel>
    </form>
</body>
</html>
