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

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<%@ 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" />
</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="Panel2" 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="CPMC" 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:TextField ID="CPBM" runat="server" Width="215" ReadOnly="true">
                                                                    </ext:TextField>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    产品类别：
                                                                </td>
                                                                <td style="padding-top: 2px; padding-bottom: 2px">
                                                                    <ext:ComboBox ID="CPLB" runat="server" Width="215" DisplayField="Name" ValueField="Id"
                                                                      ReadOnly="true"   TypeAhead="true" Mode="Local" ForceSelection="true" TriggerAction="All" ItemSelector="div.list-item"
                                                                        SelectOnFocus="true">
                                                                        <Store>
                                                                            <ext:Store ID="SCPLB" runat="server">
                                                                                <Reader>
                                                                                    <ext:JsonReader IDProperty="Id">
                                                                                        <Fields>
                                                                                            <ext:RecordField Name="Name" />
                                                                                            <ext:RecordField Name="Id" />
                                                                                        </Fields>
                                                                                    </ext:JsonReader>
                                                                                </Reader>
                                                                            </ext:Store>
                                                                        </Store>
                                                                        <Template ID="Template15" runat="server">
                                                                            <Html>
                                                                            <tpl for=".">
						                                    <div class="list-item">
							                                     <h3>{Name}</h3>							
						                                    </div>
					                                    </tpl>
                                                                            </Html>
                                                                        </Template>
                                                                    </ext:ComboBox>
                                                                </td>
                                                                <td>
                                                                    型号 ：
                                                                </td>
                                                                <td style="padding-top: 2px; padding-bottom: 2px">
                                                                    <ext:TextField ID="XH" runat="server" Width="215"  ReadOnly="true">
                                                                    </ext:TextField>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    单位：
                                                                </td>
                                                                <td style="padding-top: 2px; padding-bottom: 2px">
                                                                    <ext:ComboBox ID="DW" runat="server" Width="215" DisplayField="Name" ValueField="Id"
                                                                       ReadOnly="true"  TypeAhead="true" Mode="Local" ForceSelection="true" TriggerAction="All" ItemSelector="div.list-item"
                                                                        SelectOnFocus="true">
                                                                        <Store>
                                                                            <ext:Store ID="SDW" runat="server">
                                                                                <Reader>
                                                                                    <ext:JsonReader IDProperty="Id">
                                                                                        <Fields>
                                                                                            <ext:RecordField Name="Name" />
                                                                                            <ext:RecordField Name="Id" />
                                                                                        </Fields>
                                                                                    </ext:JsonReader>
                                                                                </Reader>
                                                                            </ext:Store>
                                                                        </Store>
                                                                        <Template ID="Template1" runat="server">
                                                                            <Html>
                                                                            <tpl for=".">
						                                    <div class="list-item">
							                                     <h3>{Name}</h3>							
						                                    </div>
					                                    </tpl>
                                                                            </Html>
                                                                        </Template>
                                                                    </ext:ComboBox>
                                                                </td>
                                                                <td>
                                                                    安全库存量：
                                                                </td>
                                                                <td style="padding-top: 2px; padding-bottom: 2px">
                                                                    <ext:TextField ID="AQKCL" runat="server" Width="215"  ReadOnly="true">
                                                                    </ext:TextField>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    供应商名称：
                                                                </td>
                                                                <td style="padding-top: 2px; padding-bottom: 2px">
                                                                    <ext:ComboBox ID="GYSMC" runat="server" Width="232" DisplayField="Name" ValueField="Id"
                                                                       ReadOnly="true"  TypeAhead="true" Mode="Local" ForceSelection="true" TriggerAction="All" ItemSelector="tr.list-item"
                                                                        MinChars="1" ListWidth="400" PageSize="10" SelectOnFocus="true">
                                                                        <Store>
                                                                            <ext:Store ID="SGYSMC" runat="server">
                                                                                <Reader>
                                                                                    <ext:JsonReader IDProperty="Id">
                                                                                        <Fields>
                                                                                            <ext:RecordField Name="CS" />
                                                                                            <ext:RecordField Name="Name" />
                                                                                            <ext:RecordField Name="HY" />
                                                                                            <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>
                                          <th>行业</th>
                                    </tr>
                            </tpl>
                            <tr class="list-item">
                                <td style="padding:3px 0px;">{Name}</td>
                                <td>{CS}</td>  <td>{HY}</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:TextField ID="ZL" runat="server" Width="215"  ReadOnly="true">
                                                            </ext:TextField>
                                                        </td>
                                                        </tr> </table>
                                                    </Content>
                                                </ext:Panel>
                                                <ext:Panel ID="Panel3" 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:TextField ID="JYCJJ" runat="server" Width="115"  ReadOnly="true">
                                                                    </ext:TextField>
                                                                </td>
                                                                <td>
                                                                    单价：
                                                                </td>
                                                                <td style="padding-top: 2px; padding-bottom: 2px">
                                                                    <ext:TextField ID="DJ" runat="server" Width="115"  ReadOnly="true">
                                                                    </ext:TextField>
                                                                </td>
                                                                <td>
                                                                    成本价：
                                                                </td>
                                                                <td style="padding-top: 2px; padding-bottom: 2px">
                                                                    <ext:TextField ID="CBJ" runat="server" Width="115"  ReadOnly="true">
                                                                    </ext:TextField>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </Content>
                                                </ext:Panel>
                                                <ext:Panel ID="Panel5" 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" Width="600" Height="160">
                                                                    </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>
