<%@ page language="C#" autoeventwireup="true" inherits="general_Contract_Lead_Contract, CrmCommand" %>

<!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">
    <title>无标题页</title>
      <script  src="../../Javascript/Trim.js" type="text/javascript">
    </script>
        <script src="../../Javascript/canlendar.js" type="text/javascript"></script>
    <script src="../../Javascript/formCheck.js" type="text/javascript"></script>
    <script type="text/javascript">
    function Check()
    {
        var txtbirday=document.getElementById("txtbirday").value;//日期
         var TxtNum=document.getElementById("TxtNum").value;//数量
        if(!Trim(txtbirday))
        {
          alert('日期不能为空!')
        }
    	else if(!isMath(TrimStr(TxtNum)))
    	{
    	    alert('您输入的数量必须是数字!'); 
    	    return false;
    	}
    	else if(TrimStr(TxtNum) != "")
    	{
    	   var num = parseInt(TrimStr(TxtNum)); 
    	   if(num>100)
    	   {
    	       alert('一次申请的合同不能超过100!'); 
    	    return false;
    	   }
    	}
        else
        {
         return true;
        }
    }
    </script>
   
</head>
<body class ="bodycolor" leftmargin="0" topmargin="0">
    <form id="form1" runat="server">
    <table class="small" cellSpacing="1" cellPadding="1"  bgcolor="black" border="0" align=center style="width: 662px">
            <tr>
                <td class="TableData"　style="width: 140px;">
                    申请人:</td>
                <td class="TableData"　style="width: 668px; height: 24px;">
                    <asp:Label ID="LblCheckPeople" runat="server" Text="Label"></asp:Label></td>
            </tr>
            <tr >
                <td class="TableData" style="width: 140px; height: 14px">
                    合同类型:</td>
                <td class="TableData" style="width: 668px; height: 14px">
                    <asp:DropDownList ID="DropType" runat="server">
                    </asp:DropDownList></td>
            </tr>
            <tr >
                <td class="TableData" style="width: 140px">
                    预领日期:</td>
                <td class="TableData" style="width: 668px">
                    <input id="txtbirday" runat="server" 
                        readonly="readonly" type="text" class="BigInput" /><img border="0" onclick='popUpCalendar(document.getElementById("txtbirday"), document.getElementById("txtbirday"), "yyyy-mm-dd")'
                src="../../App_Themes/Green/images/Calendar.gif" style="width: 24px; height: 23px" />
                   </td>
            </tr>
            <tr>
                <td class="TableData" style="width: 140px; height: 26px;">
                    预领数量:</td>
                <td class="TableData"　style="height: 26px;">
                    <asp:TextBox ID="TxtNum" CssClass="BigInput" runat="server"></asp:TextBox>份</td>
            </tr>
        <tr>
            <td class="TableData" style="width: 140px">
                申请原因:</td>
            <td class="TableData" style="width: 668px">
                <asp:TextBox ID="TxtRemark" CssClass="BigInput" runat="server" Height="70px" TextMode="MultiLine" Width="397px" BorderStyle="Solid" BorderColor="Silver" BorderWidth="1px"></asp:TextBox></td>
        </tr>
            <tr>
                <td class="TableData"　 colspan="2" style="height: 9px" align="center">
                    <asp:Button ID="Button7" runat="server" CssClass="BigButton" Height="26px"
                         Text="提交" Width="46px" OnClientClick="return Check()" OnClick="Button7_Click" />
                    <input id="Reset1" style="height: 25px" type="reset" value="重置" class="BigButton" /></td>
            </tr>
        </table>  
         <div id="ShowJs" runat="Server"> </div>
    </form>
</body>
</html>
