<%@ page language="C#" autoeventwireup="true" inherits="Programmer_ProgressNew, App_Web_wasovt3g" %>


<!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="../CSS/All.css" rel="stylesheet" type="text/css" />
         <script src="../JS/jquery.min.js" type="text/javascript"></script>
         <script src="../JS/Calendar.js" type="text/javascript"></script>
          <script src="../JS/jquery.MultiFile.pack.js" type="text/javascript"></script>
    <style>
        .division th {
        background:none repeat scroll 0 0 #E2E8EB;
        border-right:1px solid #CCCCCC;
        font-size:10pt;
        text-align:right;
        font-weight:500;
        width:140px;

        }
        .division {
            background:none repeat scroll 0 0 #FFFFFF;
            border-color:#CCCCCC #BEC6CE #BEC6CE #CCCCCC;
            border-style:solid;
            border-width:1px 2px 2px 1px;
            line-height:150%;
            padding:5px;
            white-space:normal;
            margin:5;
       }
       .division td, .division th{
            border-color:#FFFFFF #DBE2E7 #DDDDDD #FFFFFF;
            border-left:1px solid #FFFFFF;
            border-right:1px solid #DBE2E7;
            border-style:solid;
            border-width:1px;

       }
       h5{
        margin:0;
        padding:5px;
        background-color:#E2E8EB;
        font-size:11pt;
       }
       .division .font1{
        font-weight: bold;
        color: #696969
       }
     
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div >
            <h5>
                设置新的进度</h5>
            <div class="division">
                <table border="0" cellpadding="0" cellspacing="0"  width="100%">
                    <tr>
                        <th style="width: 96px">
                            &nbsp;设置最新进度：</th>
                        <td>
                            <asp:TextBox ID="txtProgress" runat="server" MaxLength="3" Width="143px"></asp:TextBox>
                            %<asp:Button ID="btnSubmit" runat="server" CssClass="btn" OnClick="btnSubmit_Click"
                                Text="提交并返回" /></td>
                    </tr>
                </table>
            </div>
            <h5>
                进度设置列表</h5>
            <div class="division">
                <table border="0" cellpadding="0" cellspacing="0"  width="100%">
                    <tr>
                        <td>
                            <div style="border: 3px solid rgb(153, 153, 153);  padding:10px" >
                            
                                <asp:GridView ID="TableView" runat="server" AutoGenerateColumns="False"
                                    EmptyDataText="没有可显示的数据记录。">
                                    <Columns>
                                        <asp:BoundField DataField="IDate" HeaderText="时间" DataFormatString="{0:yyyy-MM-dd}"  />
                                        <asp:BoundField DataField="Progress" HeaderText="进度"  DataFormatString="{0}%" />
                                        <asp:BoundField DataField="Beizhu" HeaderText="功能描述"/>
                                    </Columns>
                                </asp:GridView>
                            </div>
                        </td>
                        <td>
                        
                    </tr>
                </table>
            </div>
        <div align="center" style="width: 100%; background-color: lightgrey">
            <asp:Button ID="btnback" runat="server" CssClass="btn" OnClick="btnback_Click" Text="返回"
                Width="115px" />
        </div>
        <div  onclick="$(this).hide()" id="cuePanel" style="z-index: 101; position: absolute; 
           border:1px solid #E6594E; background-color: #FCEAE8;  padding:7px; display:none;
            color:#E6594E;">
            <span id="operCue"></span>
        </div>
            
        </div>
    </form>
<script>
function isInt(sText){
      var reg =/^\d*$/;
      return sText.match(reg);
}

function cue(obj,txt){
       var Y = obj.offset().top;
       var X = obj.offset().left;
       var p = $("#cuePanel");

       p.css("top",Y);
       p.css("left",X);
       $("#operCue").text(txt);
       p .show();
}
function isEmpty(obj){
     var input= $("#"+obj+"");
     if($.trim(input.val())==""){
            input.get(0).focus();
            cue(input,"请填写！");
            return true;
     }
     return false;
}
function isIValid(obj){
    var input= $("#"+obj+"");
    if(!isInt($.trim(input.val()))){
        input.get(0).focus();
        cue(input,"输入无效！");return true;
    }
    return false;
}
function CheckInsert(){
       if(isEmpty("txtProgress"))return false;
       if(isEmpty("txtProgress"))return false;
       return true;
    
}</script>
</body>
</html>
