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

<!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>
	    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="linkmaintenanceadd" runat="server" onclick="linkmaintenanceadd_Click" 
                >添加维保</asp:LinkButton>
                    &nbsp;&nbsp;  
                            <asp:LinkButton ID="linkmaintenance" runat="server" onclick="linkmaintenance_Click" 
                >维保记录</asp:LinkButton>
        </div>
            <div>
                <asp:DropDownList ID="ddlPm" runat="server" AutoPostBack="True" 
                    onselectedindexchanged="ddlPm_SelectedIndexChanged">
                </asp:DropDownList>
            </div>
		<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                            BorderWidth="1px" CssClass="gv" onrowdatabound="GridView1_RowDataBound" 
                            
          onselectedindexchanging="GridView1_SelectedIndexChanging" Width="100%" 
          onrowcreated="GridView1_RowCreated">
                            <RowStyle BorderWidth="1px" CssClass="gvrow" />
                            <Columns>
                                  <asp:BoundField DataField="id" HeaderText="id" ReadOnly="True" />
                              <asp:BoundField DataField="managerdate" 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="managername" HeaderText="管理人" ReadOnly="True" />
                            </Columns>
                            <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
                        </asp:GridView>

                 
<!--栏目开始 -->

            <!--这里添加内容 -->
            <table border="0"  class ="tablezong"  cellpadding="0" cellspacing="0" id="table_NoticeView" runat ="server"  visible ="false"  >
      <tr>
        <td   style ="text-align :left ">

            <table  style =" width :700px "    border = "0"  cellpadding ="" cellspacing ="0">
                <tr>
                    <td style =" background-color :White " >
                    <div style = " font-size :large ; font-weight :bold ; text-align :center;width :700px;  padding :20px 5px 5px 5px  " id = "viewbiaoti" runat ="server" ></div>
      
                    <div id ="viewneirong" runat ="server"  style ="width :700px; padding :5px 5px 5px 5px"  ></div>
</td>
                </tr>
                <tr>
                    <td  style =" padding :20px 5px 5px 5px" >
                        <asp:Label ID="lbFujian" runat="server" Text="附件："></asp:Label>
                        <asp:BulletedList ID="BulletedList1" runat="server" DisplayMode="LinkButton"  onclick="BulletedList1_Click"></asp:BulletedList>
                    </td>
                </tr>
   

                <tr>
                    <td style=" text-align :center; padding:20px 20px 20px 20px ">
                        <asp:Button ID="btBack" runat="server" onclick="btBack_Click" Text="返回" />
                    </td>
                </tr>
            </table>
</td>
      </tr>
    </table>





            <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>
                    </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>

                </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>


