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

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<script>
    function CheckForm() {

        if ($("#<%=txtTitle.ClientID  %>").val() == "" || $("#<%=txtTitle.ClientID  %>").val() == "要做什么") {
            alert("请输入标题");
            return false;
        }

        if ( $("#<%=txtTimePlanEnd.ClientID  %>").val() == "") {
            alert("请输入结束时间");
            return false;
        }
        if ($("#" + "<%=ddlAssigneeId.ClientID  %>").val() == "0") {
            alert("请选择负责人");
            return false;
        }
        var WorkHour = $("#<%=txtPlanWorkHour.ClientID  %>").val();
        if (WorkHour != "") {
            var reg = new RegExp("^([+]?)\\d*\\.?\\d+$");

            if (!reg.test(WorkHour)) {
                alert("请输入正确的计划工时");
                return false;
            }
        }
        return true;
    }
</script>
    <div class="form" style="width: 500px; padding: 10px;">
        <table cellpadding="0" cellspacing="0" border="0" class="table_form">
            <tr>
                <td class="right">
                    客户：
                </td>
                <td>
                    <asp:TextBox ID="txtCustomerName" runat="server" Width="350px" Text="" ReadOnly="true"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="right">
                    标题：
                </td>
                <td>
                    <asp:TextBox ID="txtTitle" runat="server" Width="350px" Text=""></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="right">
                    时间期限：
                </td>
                <td>
                    
                    <asp:TextBox ID="txtTimePlanEnd" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="right">
                    负责人：
                </td>
                <td>
                    <asp:DropDownList ID="ddlAssigneeId" runat="server">
                    </asp:DropDownList>
                    <span style="  margin-left:30px;">
                    <asp:CheckBox ID="cbSMS" runat="server" /> 发送短信 
                    <asp:CheckBox ID="cbEmail" runat="server" /> 发送邮件 
                    
                    </span>
                    <a style=" margin-left:30px" href="javascript:void(0)" id="LinkTem" runat="server">模板管理</a>
                </td>
            </tr>
            <tr>
                <td class="right">
                    内容：
                </td>
                <td>
                    <asp:TextBox ID="txtDescription" runat="server" Height="77px" Width="350px" Text=""></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="right">
                    其他：
                </td>
                <td>
                    <asp:FileUpload ID="FileUpload1" runat="server" />
                    <span style="margin-left: 10px">计划工时
                        <asp:TextBox ID="txtPlanWorkHour" runat="server" Width="30px"></asp:TextBox></span>
                    <span style="margin-left: 10px;">优先级</span>
                    <asp:DropDownList ID="ddlPriority" runat="server">
                        <asp:ListItem Value="1">高</asp:ListItem>
                        <asp:ListItem Value="2" Selected="True">中</asp:ListItem>
                        <asp:ListItem Value="3">低</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <asp:Button ID="btnChange" runat="server" Text="提 交" OnClientClick="return CheckForm()" OnClick="btnChange_Click" CssClass="btn_77px" />
                    <input id="btnClose" type="button" value=" 返 回 " onclick="art.dialog.close();return false;"
                        class="btn_77px" />
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
