<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="payadd.aspx.cs" Inherits="Web.cg.show.payadd"  validateRequest="false"%>

<!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>OA标题页</title>
    <link href="../../css/css.css" rel="stylesheet" type="text/css" />
      <meta charset="utf-8" />
    <link rel="stylesheet" href="../../kindeditor/themes/default/default.css" />
	<link rel="stylesheet" href="../../kindeditor/plugins/code/prettify.css" />
	<script charset="utf-8" src="../../kindeditor/kindeditor-all.js"></script>
	<script charset="utf-8" src="../../kindeditor/lang/zh-CN.js"></script>
	<script charset="utf-8" src="../../kindeditor/plugins/code/prettify.js"></script>
        <script type="text/javascript" src="/css/popcalendar.js"></script>
	<script>
	    KindEditor.ready(function (K) {
	        var editor1 = K.create('#content1', {
	            cssPath: '../../kindeditor/plugins/code/prettify.css',
	            uploadJson: '../../kindeditor/asp.net/upload_json.ashx',
	            fileManagerJson: '../../kindeditor/asp.net/file_manager_json.ashx',
	            allowFileManager: true,
	            afterCreate: function () {
	                var self = this;
	                K.ctrl(document, 13, function () {
	                    self.sync();
	                    K('form[name=example]')[0].submit();
	                });
	                K.ctrl(self.edit.doc, 13, function () {
	                    self.sync();
	                    K('form[name=example]')[0].submit();
	                });
	            }
	        });
	        prettyPrint();
	    });
	</script>
</head>
<body>
    <form id="fom" runat="server">
        <div id ="main-c-03-right" >
            <table cellpadding="0"; cellspacing ="0"; style =" width :100%;background-image: url('../../css/images/right_top.png'); background-repeat :repeat-x" >
                <tr>
        <td class  ="main-c-03-right02-top">
                	   <!--这里添加页面标题 -->
                      	    项目管理
                      	</td>

                </tr>
            </table>
            <div id="main-c-03-right02-main">
  <asp:Panel ID="plZong" runat="server" Visible="true">   
<!--栏目开始 -->
       <div class ="lanmubiaoti ">付款管理</div>  
          
            <!--这里添加内容 -->
                                 <div style =" text-align :right ; padding-bottom :10px">
            <asp:LinkButton ID="linkpayadd" runat="server" onclick="linkpayadd_Click" 
                >编辑付款</asp:LinkButton>
                    &nbsp;&nbsp;  
                            <asp:LinkButton ID="linkpayedit" runat="server" onclick="linkpayedit_Click" 
                >付款更新</asp:LinkButton>
        </div>
            <div>
                项目&nbsp; ：<asp:DropDownList ID="ddlContract" runat="server" AutoPostBack="True" 
                    onselectedindexchanged="ddlContract_SelectedIndexChanged">
                </asp:DropDownList>
            </div>
		<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                            BorderWidth="1px" CssClass="gv" onrowdatabound="GridView1_RowDataBound" 
                            
          onselectedindexchanging="GridView1_SelectedIndexChanging" Width="100%">
                            <RowStyle BorderWidth="1px" CssClass="gvrow" />
                            <Columns>
                                  <asp:BoundField DataField="payid" HeaderText="付款编号" ReadOnly="True" />

                               

                    <asp:TemplateField HeaderText="标题" ShowHeader="False">
                    <ItemTemplate>
                        <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" 
                            CommandName="Select" Text='<%# Bind("title") %>'></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                                                   <asp:BoundField DataField="conid" HeaderText="合同号" ReadOnly="True" />
                                    <asp:BoundField DataField="palnpaydate" HeaderText="计划支付日期" ReadOnly="True" />
                                     <asp:BoundField DataField="money" HeaderText="金额" ReadOnly="True" />
                                     <asp:BoundField DataField="cumulativescale" HeaderText="累计支付比例(%)" ReadOnly="True" />
                                <asp:BoundField DataField="managername" HeaderText="管理人" ReadOnly="True" />
                                  <asp:BoundField DataField="state" HeaderText="状态" ReadOnly="True" />
                                  <asp:CommandField HeaderText="操作" SelectText="修改" ShowSelectButton="True" />
                            </Columns>
                            <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
                        </asp:GridView>

                 
<!--栏目开始 -->

            <!--这里添加内容 -->
            <table  style =" width :100%" border = "1" class ="table " cellpadding ="0" cellspacing ="0">
                <tr>
                    <td class="tabletd_right " style="width:80px">
                        项目编号</td>
                   <td class="tabletd_left ">
                        <asp:Label ID="lbConid" runat="server" ></asp:Label>
                        <asp:Label ID="lbPayid" runat="server"></asp:Label>
                        <asp:Button ID="btDel" runat="server" onclick="btDel_Click"  Visible ="false" 
                            Text="删除" />
                    </td>
                </tr>
                <tr>
                    <td class="tabletd_right " style="width:80px">
                        项目名称</td>
                    <td class="tabletd_left ">
                        <asp:Label ID="lbConname" runat="server" ></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="tabletd_right " style="width:80px">
                        标题</td>
                    <td class="tabletd_left ">
                        <asp:TextBox ID="tbTitle" runat="server" MaxLength="25" Width="500px"></asp:TextBox>
                        <span style="color :Red ">（必填）</span>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" 
                            ControlToValidate="tbTitle" Display="Dynamic" ErrorMessage="标题不能为空。" 
                            ForeColor="Red" ValidationGroup="AddNotice"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class ="tabletd_right " >
                        支付依据</td>
                    <td class ="tabletd_left ">

                       <textarea id="content1" cols="100" rows="8" style="width:100%;height:200px;visibility:hidden;" runat="server"></textarea>
                   </td>
                </tr>
                <tr>
                    <td class ="tabletd_right ">
                        添加附件</td>
                    <td class ="tabletd_left ">
                        <asp:FileUpload ID="FileUpload1" runat="server" />
                        <asp:Button ID="btUpload" runat="server" Text="上传" onclick="btUpload_Click" />
                        
                        单个附件不大于50M<div>
                            <asp:Label ID="lbFileNameList" runat="server" Text="已经上传的文件：" Visible="False"></asp:Label>
                            <asp:CheckBoxList ID="cblFileList" runat="server">
                            </asp:CheckBoxList>
                        </div>
                    </td>
                </tr>

                <tr>
                    <td class="tabletd_right ">
                        支付金额</td>
                    <td class="tabletd_left ">
                        <asp:TextBox ID="tbMoney" runat="server" MaxLength="25" Width="64px">0</asp:TextBox>
                        元<asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" 
                            ControlToValidate="tbMoney" Display="Dynamic" ErrorMessage="金额不能为空。" 
                            ForeColor="Red" ValidationGroup="AddNotice"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="tabletd_right ">
                        累计支付比例</td>
                    <td class="tabletd_left ">
                        <asp:TextBox ID="tbCumulativescale" runat="server" MaxLength="25" Width="64px">0</asp:TextBox>
                        %<asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" 
                            ControlToValidate="tbCumulativescale" Display="Dynamic" 
                            ErrorMessage="支付比例不能为空。" ForeColor="Red" ValidationGroup="AddNotice"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="tabletd_right ">
                        计划支付日期</td>
                    <td class="tabletd_left ">
                        <asp:TextBox ID="tbPlanpay" runat="server" 
                            onclick="popUpCalendar(this,this,'yyyy-mm-dd')" ToolTip="点击输入框右侧的日期图标选择日期" 
                            Width="100px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" 
                            ControlToValidate="tbPlanpay" Display="Dynamic" ErrorMessage="日期不能为空。" 
                            ForeColor="Red" ValidationGroup="AddNotice"></asp:RequiredFieldValidator>
                    </td>
                </tr>

                <tr>
                    <td class="tabletd_right ">
                        状态</td>
                    <td class="tabletd_left ">
                        <asp:DropDownList ID="ddlState" runat="server">
                            <asp:ListItem>计划</asp:ListItem>
                            <asp:ListItem>待审核</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>

                </table>

            
   <div class = "td10"  style = " text-align :center ">
                        <asp:Button ID="btAddNotice" runat="server" onclick="btAddNotice_Click" 
                            Text="提交" ValidationGroup="AddNotice" />
                    </div> 
<!--栏目结束 -->
</asp:Panel> 
            </div>
            </div> 
        </form>
    </body>
</html>


