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

<%@ 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 id="Head1" 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" />

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

    <style type="text/css">
        .cbStates-list
        {
            width: 298px;
            font: 11px tahoma,arial,helvetica,sans-serif;
        }
        .cbStates-list th
        {
            font-weight: bold;
        }
        .cbStates-list td, .cbStates-list th
        {
            padding: 3px;
        }
    </style>
</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">
                                                            <tr>
                                                                <td>
                                                                    主题 ：<span style="color: Red">*</span>
                                                                </td>
                                                                <td style="padding-top: 2px; padding-bottom: 2px">
                                                                    <ext:TextField ID="ZT" runat="server" Width="215"  ReadOnly="true" >
                                                                    </ext:TextField>
                                                                </td>
                                                                <td>
                                                                    负责人 ：<span style="color: Red">*</span>
                                                                </td>
                                                                <td style="padding-top: 2px; padding-bottom: 2px">
                                                                    <ext:ComboBox ID="FZR" runat="server" Width="145" DisplayField="Name" ValueField="LoginAccount"
                                                                      ReadOnly="true"    TypeAhead="true" Mode="Local" ForceSelection="true" TriggerAction="All" ItemSelector="div.list-item"
                                                                        SelectOnFocus="true">
                                                                        <Store>
                                                                            <ext:Store ID="SFZR" 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>
                                                                    客户 ：<span style="color: Red">*</span>
                                                                </td>
                                                                <td style="padding-top: 2px; padding-bottom: 2px">
                                                                    <ext:ComboBox ID="KH" 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="SKH" 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>
                                                        <td style="padding-top: 2px; padding-bottom: 2px">
                                                            <ext:ComboBox ID="LXR" runat="server" Width="145" DisplayField="XM" ValueField="Id"
                                                               ReadOnly="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>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                纪念日类型 ：
                                                            </td>
                                                            <td style="padding-top: 2px; padding-bottom: 2px">
                                                                <ext:ComboBox ID="JNRLX" 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="SJNRLX" 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="Template2" runat="server">
                                                                        <Html>
                                                                        <tpl for=".">
						                                <div class="list-item">
							                                 <h3>{FLName}</h3>							
						                                </div>
					                                </tpl>
                                                                        </Html>
                                                                    </Template>
                                                                </ext:ComboBox>
                                                            </td>
                                                            <td>
                                                                日历类型 ：
                                                            </td>
                                                            <td style="padding-top: 2px; padding-bottom: 2px">
                                                                <ext:RadioGroup ID="RLLX" runat="server" Width="110"  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>
                                                                    </Items>
                                                                </ext:RadioGroup>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                纪念日：
                                                            </td>
                                                            <td>
                                                                <table>
                                                                    <tr>
                                                                        <td>
                                                                            <ext:ComboBox ID="Year" runat="server" Width="70" EmptyText="年"  ReadOnly="true" >
                                                                            </ext:ComboBox>
                                                                        </td>
                                                                        <td>
                                                                            <ext:ComboBox ID="Month" runat="server" Width="70" EmptyText="月"  ReadOnly="true" >
                                                                            </ext:ComboBox>
                                                                            <ext:ComboBox ID="Month1" runat="server" Hidden="true" Width="70" EmptyText="月"  ReadOnly="true" >
                                                                                <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="五月" />
                                                                                    <ext:ListItem Text="六月" Value="六月" />
                                                                                    <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>
                                                                            </ext:ComboBox>
                                                                        </td>
                                                                        <td>
                                                                            <ext:Panel ID="Panel2" runat="server" Border="false">
                                                                                <Content>
                                                                                    <table>
                                                                                        <tr>
                                                                                            <td style="padding-top: 2px; padding-bottom: 2px">
                                                                                                <ext:ComboBox ID="Day" runat="server" Width="70" EmptyText="日"  ReadOnly="true" >
                                                                                                </ext:ComboBox>
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </Content>
                                                                            </ext:Panel>
                                                                            <ext:ComboBox ID="Day1" runat="server" Hidden="true" Width="70" EmptyText="日"  ReadOnly="true" >
                                                                                <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="初六" />
                                                                                    <ext:ListItem Text="初七" Value="初七" />
                                                                                    <ext:ListItem Text="初八" Value="初八" />
                                                                                    <ext:ListItem Text="初九" Value="初九" />
                                                                                    <ext:ListItem Text="初十" Value="初十" />
                                                                                    <ext:ListItem Text="十一" Value="十一" />
                                                                                    <ext:ListItem Text="十二" Value="十二" />
                                                                                    <ext:ListItem Text="十三" Value="十三" />
                                                                                    <ext:ListItem Text="十四" Value="十四" />
                                                                                    <ext:ListItem Text="十五" Value="十五" />
                                                                                    <ext:ListItem Text="十六" Value="十六" />
                                                                                    <ext:ListItem Text="十七" Value="十七" />
                                                                                    <ext:ListItem Text="十八" Value="十八" />
                                                                                    <ext:ListItem Text="十九" Value="十九" />
                                                                                    <ext:ListItem Text="二十" Value="二十" />
                                                                                    <ext:ListItem Text="二十一" Value="二十一" />
                                                                                    <ext:ListItem Text="二十二" Value="二十二" />
                                                                                    <ext:ListItem Text="二十三" Value="二十三" />
                                                                                    <ext:ListItem Text="二十四" Value="二十四" />
                                                                                    <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>
                                                                            </ext:ComboBox>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                            <td>
                                                                提醒日期 ：
                                                            </td>
                                                            <td style="padding-top: 2px; padding-bottom: 2px">
                                                                <ext:TriggerField runat="server" ID="TXRQ" TriggerIcon="Date" Width="100" Editable="false"  ReadOnly="true" >
                                                                    <Listeners>
                                                                        <Focus Handler="WdatePicker({minDate:'%y-%M-{%d}',startDate:'%y-%M-01',dateFmt:'yyyy-MM-dd',alwaysUseStartDate:true});" />
                                                                        <TriggerClick Handler="WdatePicker({el:'TXRQ',minDate:'%y-%M-{%d}',startDate:'%y-%M-01',dateFmt:'yyyy-MM-dd',alwaysUseStartDate:true});" />
                                                                    </Listeners>
                                                                </ext:TriggerField>
                                                            </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>
                                                                    <ext:HtmlEditor ID="BZ" runat="server" Height="190"  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>
