<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ActionEdit.aspx.cs" Inherits="OAWeb.crm.action.ActionEdit"
    EnableEventValidation="false" ValidateRequest="false" EnableViewState="true" %>

<%@ Register Src="/UserControls/UcActionList.ascx" TagName="UcActionList" TagPrefix="uc1" %>
<!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" id="Head1">
    <title>编辑活动记录</title>
    <link href="../../Css/global.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/js/jquery-1.8.0.min.js"></script>
    <script src="/js/artDialog/artDialog.js?skin=default" type="text/javascript"></script>
    <script src="/js/artDialog/plugins/iframeTools.source.js" type="text/javascript"></script>
    <link href="/App_Themes/Default/default.css" rel="stylesheet" type="text/css" />
    <script src="/Js/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script src="/Js/common.js" type="text/javascript"></script>
    <script type="text/javascript" language="javascript">
        function OpenWin() {

            OpenRadioDialog('/Dialog/CustomerDialog.aspx', '选择客户', CallbackFun);
           
            return false;
        }

        function CallbackFun(text, value) {
            $('#<%=txtCustomerName.ClientID %>').val(text);
            $('#<%=txtCustomerID.ClientID %>').val(value);

            document.getElementById('<% =Button1.ClientID %>').click();
        }     
    </script>
    <style type="text/css">
        .tb
        {
            border: 0px;
            width: 99%;
            margin-top: 5px;
            margin-bottom: 0px;
            margin-left: auto;
            margin-right: auto;
            background-color: #E1E1E1;
            border-collapse: separate;
            border-spacing: 1px;
        }
        .tb td
        {
            padding: 3px;
        }
        .data-caption
        {
            background-color: #F1F1F1;
            text-align: left;
            line-height: 22px;
            padding-left: 8px;
            font-weight: bold;
            font-size: 14px;
        }
        .pager-bar
        {
            border: 1px solid #E1E1E1;
            background-color: #F1F1F1;
            width: 99%;
            margin-left: auto;
            margin-right: auto;
            margin-top: 1px;
            margin-bottom: 3px;
            line-height: 25px;
        }
        
        .data-label
        {
            background-color: White;
        }
        .data-field
        {
            background-color: White;
        }
        .HiddenBtn
        {
        	display:none;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div style="width: 700px; overflow-y: scroll">
        <table class="tb">
            
            <tr>
                <td class="data-label">
                    <span style="color: Red;">*</span>客户名称：
                </td>
                <td class="data-field">
                    <asp:TextBox runat="server" ID="txtCustomerName" Width="180px" ReadOnly="true"></asp:TextBox>
                    <asp:Button ID="btnSelect" runat="server" Text="..." OnClick="btnSelect_Click" Width="20px" />
                    <asp:Button ID="Button1" runat="server" Text="Button"  OnClick="btnSelect_Click" CssClass="HiddenBtn"  />

                </td>
            </tr>
            <tr>
                <td class="data-label">
                    <span style="color: Red;">*</span>联系人：
                </td>
                <td class="data-field">
                    <asp:DropDownList ID="ddlContactMan" runat="server" OnSelectedIndexChanged="ddlContactMan_SelectedIndexChanged"
                        AutoPostBack="True">
                    </asp:DropDownList>
                    &nbsp;<asp:Button ID="btnAdd" runat="server" Text="+" Visible="false" OnClick="btnAdd_Click" />
                    &nbsp;<asp:TextBox ID="txtContactManInfo" runat="server" Visible="false"></asp:TextBox>
                </td>
            </tr>
             <tr>
                <td class="data-label">
                    <span style="color: Red;">*</span>方向：
                </td>
                <td class="data-field">
                    <asp:DropDownList ID="ddlIsIn" runat="server">
                    <asp:ListItem Value="0">-请选择-</asp:ListItem>
                    <asp:ListItem Value="True">呼入</asp:ListItem>
                    <asp:ListItem Value="False">呼出</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="data-label">
                    <span style="color: Red;">*</span>活动方式：
                </td>
                <td class="data-field">
                    <asp:DropDownList ID="ddlActionTypeID" runat="server">
                    </asp:DropDownList>
                    &nbsp;=
                    <asp:TextBox ID="txtActionTypeInfo" runat="server"></asp:TextBox>
                    (通讯工具号码或会面地点)
                </td>
            </tr>
            <tr>
                <td class="data-label">
                    <span style="color: Red;">*</span>活动主题：
                </td>
                <td class="data-field">
                    <asp:TextBox runat="server" ID="txtTopic" Width="300px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="data-label">
                    <span style="color: Red;">*</span>活动内容：
                </td>
                <td class="data-field">
                    <asp:TextBox runat="server" ID="txtContent" Width="300px" Height="78px" TextMode="MultiLine"></asp:TextBox>
                </td>
            </tr>
             <tr>
                <td class="data-label">
                    附件：
                </td>
                <td class="data-field">
                    <asp:FileUpload ID="FileUpload1" runat="server" />
                    <a style=" margin-left:15px;" id="LinkFile" runat="server" target="_blank"></a>
                </td>
            </tr>
            <tr>
                <td class="data-label">
                    <span style="color: Red;">*</span>活动时间：
                </td>
                <td class="data-field">
                    <asp:TextBox ID="txtSolveStartDate" runat="server" onfocus="WdatePicker()" Width="117px"></asp:TextBox>
                    <asp:DropDownList ID="ddlHour" runat="server" ToolTip="小时" Width="40px">
                    </asp:DropDownList>
                    <asp:DropDownList ID="ddlMinutes" runat="server" ToolTip="分" Width="40px">
                    </asp:DropDownList>
                    
                </td>
            </tr>
            <tr>
                <td class="data-label">
                    <span style="color: Red;">*</span>花费时间：
                </td>
                <td class="data-field">
                    <asp:TextBox ID="txtSpendTime" runat="server" Width="64px"></asp:TextBox>
                    分钟
                </td>
            </tr>
            <tr>
                <td class="data-label">
                    下次回访时间：
                </td>
                <td class="data-field">
                    <asp:TextBox ID="txtNextContactTime" runat="server" onfocus="WdatePicker()" Width="100px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="data-label">
                    创建人：
                </td>
                <td class="data-field">
                    <asp:Label ID="lblCreateInfo" runat="server" Text=""></asp:Label>
                </td>
            </tr>
            <tr>
                <td colspan="2" align="center" class="data-label">
                    <asp:Button CssClass="btn_77px" runat="server" ID="btnSave" Text="提 交" OnClick="btnSave_Click" />
                    &nbsp;<asp:Button runat="server" CssClass="btn_77px" ID="btnCannal" Text="返 回" OnClick="btnCannal_Click" />
                </td>
            </tr>
        </table>
        <uc1:UcActionList ID="UcActionList1" runat="server"  Visible="false" />
        <asp:HiddenField ID="txtCustomerID" runat="server" EnableViewState="false" />
    </div>
    </form>
</body>
</html>
