<%@ Page Language="C#" AutoEventWireup="true" Theme="Default" EnableViewState="true"  MasterPageFile="~/Dialog/DialogMaster.Master" CodeBehind="OpportunityView2.aspx.cs" Inherits="OAWeb.crm.opportunity.OpportunityView2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <style>
        .tb
        {
            background-color: #E1E1E1;
            border: 0 none;
            border-collapse: separate;
            border-spacing: 1px;
            width: 100%;
        }
        
        .TableBorder
        {
            padding: 10px;
        }
        
        .st12pt
        {
            padding: 5px;
        }
        
        .TableBorder td
        {
            padding: 5px;
        }
    </style>
    <div style="width: 700px; height: 500px; overflow-y: scroll; margin-left:10px;">
        <table style="width: 98%; border-collapse: collapse" class="TableBorder" border="1"
            cellspacing="0" bordercolor="#e6e6e6" cellpadding="3">
            <tr class="AlterColor">
                <td bgcolor="#E1E1E1" align="left">
                    <table border="0" width="100%" cellspacing="0" cellpadding="5">
                        <tr>
                            <td width="811" style="text-align: center" class="st12pt">
                                <b><font size="4">销售机会：<asp:Label ID="lblTitle" runat="server" Text=""></asp:Label></font></b>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    <table style="width: 100%;">
                        <tr>
                            <td style="width: 80%;">
                                <table style="width: 100%; border-collapse: collapse" class="TableBorder" border="1"
                                    cellspacing="0" bordercolor="#e6e6e6" cellpadding="3">
                                    <tr>
                                        <td class="st12pt" align="center" width="100%" colspan="4">
                                            <p align="center">
                                                <asp:Button ID="btnEdit" runat="server" Text="编辑" Width="70px" Enabled="False" />
                                                &nbsp;&nbsp;<asp:Button ID="btnOpen" runat="server" Text="开启机会" Width="70px" Enabled="False"
                                                    OnClick="btnOpen_Click" />
                                                &nbsp;
                                                <asp:Button ID="btnEnd" runat="server" Text="结束机会" Width="70px" Enabled="False" />&nbsp;
                                                <asp:Button ID="btnClose" runat="server" Text="关闭机会" Width="70px" Enabled="False"
                                                    OnClick="btnClose_Click" />&nbsp;
                                                <asp:Button ID="Button1" runat="server" Text="关闭窗口" Width="70px" OnClientClick="CloseReload();return false;" />
                                            </p>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="st12pt" align="left" width="100%" colspan="4" bgcolor="#DDDDDD">
                                            <b><font size="4">基本信息</font></b>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="st12pt" align="right" width="15%" bgcolor="#F0F0F0">
                                            机会名称
                                        </td>
                                        <td class="st12pt" align="left" width="35%">
                                            <asp:Label ID="lblTopic" runat="server" Text=""></asp:Label>
                                        </td>
                                        <td class="st12pt" align="right" width="15%" bgcolor="#F0F0F0">
                                            负责人
                                        </td>
                                        <td class="st12pt" align="left" width="35%">
                                            <asp:Label ID="lblTrackUser" runat="server"></asp:Label>
                                            <asp:LinkButton ID="lbtnTrackUser" runat="server" Visible="false" OnClick="lbtnTrackUser_Click">/我要领用</asp:LinkButton>
                                            [<asp:LinkButton ID="lbtnChange" runat="server" Enabled="false" OnClick="lbtnChange_Click">更改</asp:LinkButton>
                                            ]<asp:DropDownList ID="ddlEmployee" runat="server" Visible="false">
                                            </asp:DropDownList>
                                            <asp:Button ID="btnSureChange" runat="server" Text="√" Visible="false" OnClick="btnSureChange_Click"
                                                Width="30px" />
                                            <asp:Button ID="btnCancel" runat="server" Text="X" OnClick="btnCancel_Click" Visible="false"
                                                Width="30px" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="st12pt" align="right" width="15%" bgcolor="#F0F0F0">
                                            机会编号
                                        </td>
                                        <td align="left" width="35%">
                                            <asp:Label ID="lblOpportunityCode" runat="server" Text=""></asp:Label>
                                        </td>
                                        <td class="st12pt" align="right" width="15%" bgcolor="#F0F0F0">
                                            关注产品
                                        </td>
                                        <td class="st12pt" align="left" width="35%">
                                            <asp:Label ID="lblProduct" runat="server"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="st12pt" align="right" width="15%" bgcolor="#F0F0F0">
                                            客户名称
                                        </td>
                                        <td class="st12pt" align="left" width="35%">
                                            <asp:LinkButton ID="lbtnCustomer" runat="server"></asp:LinkButton>
                                        </td>
                                        <td class="st12pt" align="right" width="15%" bgcolor="#F0F0F0">
                                            联系人
                                        </td>
                                        <td class="st12pt" align="left" width="35%">
                                            <asp:LinkButton ID="lbtnContact" runat="server"></asp:LinkButton>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="st12pt" align="right" width="15%" bgcolor="#F0F0F0">
                                            预约签约日期
                                        </td>
                                        <td class="st12pt" align="left" width="35%">
                                            <asp:Label ID="lblExpectDate" runat="server" Text=""></asp:Label>
                                        </td>
                                        <td class="st12pt" align="right" width="15%" bgcolor="#F0F0F0">
                                            类别
                                        </td>
                                        <td class="st12pt" align="left" width="35%">
                                            <asp:Label ID="lblBizTypeID" runat="server" Text=""></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="st12pt" align="right" width="15%" bgcolor="#F0F0F0">
                                            预计金额
                                        </td>
                                        <td class="st12pt" align="left" width="35%">
                                            <asp:Label ID="lblExpectMoney" runat="server" Text=""></asp:Label>
                                        </td>
                                        <td class="st12pt" align="right" width="15%" bgcolor="#F0F0F0">
                                            可能性
                                        </td>
                                        <td class="st12pt" align="left" width="35%">
                                            <asp:Label ID="lblProbability" runat="server" Text=""></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="st12pt" align="right" width="15%" bgcolor="#F0F0F0">
                                            重要程度
                                        </td>
                                        <td class="st12pt" align="left" width="35%">
                                            <asp:Label ID="lblHotLevel" runat="server" Text=""></asp:Label>
                                        </td>
                                        <td class="st12pt" align="right" width="15%" bgcolor="#F0F0F0">
                                            机会阶段
                                        </td>
                                        <td class="st12pt" align="left" width="35%">
                                            <asp:Label ID="lblPhaseID" runat="server" Text=""></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="st12pt" align="right" width="15%" bgcolor="#F0F0F0">
                                            机会有效期
                                        </td>
                                        <td class="st12pt" align="left" width="35%">
                                            <asp:Label ID="lblEffectDate" runat="server" Text=""></asp:Label>
                                            <asp:Label ID="lblIsEffect" runat="server" ForeColor="Red"></asp:Label>
                                        </td>
                                        <td class="st12pt" align="right" width="15%" bgcolor="#F0F0F0">
                                            机会状态
                                        </td>
                                        <td class="st12pt" align="left" width="35%">
                                            <asp:Label ID="lblState" runat="server" Text=""></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="st12pt" align="right" width="15%" bgcolor="#F0F0F0">
                                            来源线索：
                                        </td>
                                        <td class="st12pt" align="left" width="35%">
                                            <asp:HyperLink ID="hyplnkCustomerClue" runat="server"></asp:HyperLink>
                                        </td>
                                        <td class="st12pt" align="right" width="15%" bgcolor="#F0F0F0">
                                            失败原因
                                        </td>
                                        <td class="st12pt" align="left" width="35%">
                                            <asp:Label ID="lblReason" runat="server" Text=""></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="st12pt" align="right" width="15%" bgcolor="#F0F0F0">
                                            描述
                                        </td>
                                        <td class="st12pt" align="left" width="85%" colspan="3">
                                            <asp:Label ID="lblRemark" runat="server" Text=""></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="st12pt" align="left" width="100%" colspan="4">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="st12pt" align="left" width="100%" colspan="4" bgcolor="#DDDDDD">
                                            <b>系统信息</b>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="st12pt" align="right" width="15%" bgcolor="#F0F0F0">
                                            创建人
                                        </td>
                                        <td class="st12pt" align="left" width="35%">
                                            <asp:Label ID="lblCreateDate" runat="server" Text=""></asp:Label>
                                            <asp:Label ID="lblCreateUser" runat="server" Text=""></asp:Label>
                                        </td>
                                        <td class="st12pt" align="right" width="15%" bgcolor="#F0F0F0">
                                            上次修改人
                                        </td>
                                        <td class="st12pt" align="left" width="35%">
                                            <asp:Label ID="lblModifyDate" runat="server" Text=""></asp:Label>
                                            <asp:Label ID="lblModifyMan" runat="server" Text=""></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="st12pt" align="left" colspan="4">
                                        </td>
                                    </tr>
                                    <%--<tr>
                                    <td class="st12pt" valign="top" align="left" width="100%" colspan="4" bgcolor="#E0E0E0">
                                        <b>附件</b>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="st12pt" valign="top" align="left" width="100%" colspan="4">
                                        <div align="center">
                                            <table style="width: 100%; height: 100%" border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                    <td valign="top" width="57" align="middle" bgcolor="#E6E6E6">
                                                        <b>序号</b>
                                                    </td>
                                                    <td valign="top" width="173" align="middle" bgcolor="#E6E6E6">
                                                        <b>附件</b>
                                                    </td>
                                                    <td valign="top" width="205" align="middle" bgcolor="#E6E6E6">
                                                        <b>描述</b>
                                                    </td>
                                                    <td valign="top" width="82" align="middle" bgcolor="#E6E6E6">
                                                        <b>创建人</b>
                                                    </td>
                                                    <td valign="top" width="149" align="middle" bgcolor="#E6E6E6">
                                                        <b>创建日期</b>
                                                    </td>
                                                    <td valign="top" width="107" align="middle" bgcolor="#E6E6E6">
                                                        <b>操作</b>
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                    </td>
                                </tr>--%>
                                </table>
                                <%--<uc6:UcContactList ID="UcContactList1" runat="server" />
                            <uc2:UcActionList ID="UcActionList1" runat="server" />
                              <uc7:LeftMenu ID="LeftMenu1" runat="server" />--%>
                            </td>
                            <td valign="top" style="padding-left: 5px;">
                                <table style="width: 100%; border-collapse: collapse" class="TableBorder" border="1"
                                    cellspacing="0" bordercolor="#e6e6e6" cellpadding="3">
                                    <tr>
                                        <td class="st12pt" align="left" valign="top">
                                            <b>操作</b>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="padding-left: 10px" align="left">
                                            <img src="../../images/kb.gif">
                                            <asp:LinkButton ID="lbtnAction" runat="server">创建活动记录</asp:LinkButton>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="padding-left: 10px" align="left">
                                            <img src="../../images/Paste.gif"><asp:LinkButton ID="lbtnEnclosure" runat="server"
                                                Enabled="false">创建附件</asp:LinkButton>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="padding-left: 10px" align="left">
                                            <img src="../../images/grid2xls.gif">
                                            <asp:LinkButton ID="lbtnStock" runat="server" Enabled="false">创建报价单</asp:LinkButton>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="padding-left: 10px" align="left">
                                            <img src="../../images/Copy.gif"><asp:LinkButton ID="lbtnInvoice" runat="server">创建合同订单</asp:LinkButton>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="padding-left: 10px" align="left">
                                            <img src="../../images/kb.gif">
                                            <a href="javascript:void(0)" onclick="javascript:window.opener.window.location.href=window.opener.window.location.href;window.close();">
                                                返回列表</a>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
