<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="Web.dc.open._default"  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" />
</head>
<body>
    <form id="fom" runat="server">
        <div id ="main-c-03-right" >
            
            <div id="main-c-03-right02-main">
            
            
<!--栏目开始 -->
<div id = "zong" runat ="server" >

<div style =" margin-top :10px; margin-bottom :10px">
    <asp:Label ID="Label12" runat="server" ></asp:Label>
&nbsp;<asp:DropDownList ID="ddlProject" runat="server" 
        AutoPostBack="True" onselectedindexchanged="ddlProject_SelectedIndexChanged">
    </asp:DropDownList>
    <asp:Label ID="lbStaffid" runat="server" Visible ="false" ></asp:Label>
</div> 
<div style =" text-align :center; font-size :22px; font-weight :bold ;  margin-bottom :20px; ">
    <asp:Label ID="lbTitle" runat="server"  ></asp:Label></div>

       <div id ="divRemarks" runat ="server"  style ="width :100%; padding :5px 5px 5px 5px"  ></div>
            <!--这里添加内容 -->

    <asp:Panel ID="Panel1" runat="server">
            <asp:DataList ID="DataList1" runat="server" Width="100%" CellPadding="4" 
                    ForeColor="#333333" 
        onitemdatabound="DataList1_ItemDataBound">
                   <AlternatingItemStyle BackColor="White" />
                   <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                   <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                   <ItemStyle BackColor="#E3EAEB" CssClass="td10" />
                   <ItemTemplate>
                    <div class ="div5 "><asp:Label ID="lbOrder" runat="server" Text='<%# Bind("columnorder") %>' ></asp:Label><asp:Label ID="Label5" runat="server" Text='<%# Bind("projectname") %>' ></asp:Label> 
                        <asp:Label ID="lbProjectId" runat="server" Text='<%# Bind("projectid") %>'  Visible ="false" ></asp:Label> 
                  &nbsp;<asp:Label ID="Label11" runat="server" Text='<%# Eval("remarks")==""?"":"("+Eval("remarks")+")" %>' ></asp:Label>
                    <asp:Label ID="lbNecessary" runat="server" Text='（必填）' ForeColor ="Red" Visible ="false"  ></asp:Label>
                         <asp:Label ID="lbNecessary1" runat="server" Text='<%# Bind("necessary") %>' ForeColor ="Red" Visible ="false"  ></asp:Label>
                              <asp:Label ID="lbRepeat" runat="server" Text='<%# Bind("repeat") %>' ForeColor ="Red" Visible ="false"  ></asp:Label>
                      </div> 
                       
                    <asp:Label ID="lbColumnname" runat="server" Text='<%# Bind("columnname") %>' Visible ="false" ></asp:Label>
                    <asp:Label ID="Lablecolumntype" runat="server" Text='<%# Bind("columntype") %>' Visible ="false" ></asp:Label>
                    <div><asp:TextBox ID="tbItem" runat="server"  Width ="100%" TextMode="MultiLine" Height="40px" Visible ="false" ></asp:TextBox></div>
                    <asp:RadioButtonList ID="rbItem" runat="server" Visible ="false"  CssClass="item"></asp:RadioButtonList>
                    <asp:CheckBoxList ID="cbItem" runat="server" Visible ="false"  CssClass="item"></asp:CheckBoxList>
                    <asp:DropDownList ID="ddlItem" runat="server" Visible ="false" CssClass ="item"></asp:DropDownList>

                       <asp:Calendar ID="cldItem" Visible ="false"  runat="server" BackColor="White" BorderColor="Black" BorderStyle="Solid" CellSpacing="1" Font-Names="Verdana" Font-Size="9pt" ForeColor="Black" Height="250px" NextPrevFormat="ShortMonth" Width="330px">
        <DayHeaderStyle Font-Bold="True" Font-Size="8pt" ForeColor="#333333" Height="8pt" />
        <DayStyle BackColor="#CCCCCC" />
        <NextPrevStyle Font-Bold="True" Font-Size="8pt" ForeColor="White" />
        <OtherMonthDayStyle ForeColor="#999999" />
        <SelectedDayStyle BackColor="#333399" ForeColor="White" />
        <TitleStyle BackColor="#333399" BorderStyle="Solid" Font-Bold="True" Font-Size="12pt" ForeColor="White" Height="12pt" />
        <TodayDayStyle BackColor="#999999" ForeColor="White" />
    </asp:Calendar>

<%--矩阵选择--%>
              <asp:GridView ID="gvMatrix" runat="server"   Visible ="false" 
                BorderWidth="1px" CssClass="gv" 
                 cellspacing="1" AutoGenerateColumns="False" >
            <RowStyle BorderWidth="1px" CssClass="gvrow" />
            <Columns>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:Label ID="lbProjectText" runat="server" Text='<%# Bind("项目") %>'></asp:Label> 
                        <asp:Label ID="lbProjectValue" runat="server" Text='<%# Bind("id") %>'  Visible ="false"></asp:Label> 
                    </ItemTemplate>
                </asp:TemplateField>

               <asp:TemplateField >
                  <ItemTemplate>
                      <asp:RadioButtonList ID="RadioButtonList1" runat="server"   RepeatDirection="Horizontal" Width ="100%"></asp:RadioButtonList>
                      <asp:CheckBoxList ID="CheckBoxList1" runat="server"   RepeatDirection="Horizontal" Width ="100%"></asp:CheckBoxList>
                  </ItemTemplate>
              </asp:TemplateField>
            </Columns>        
            <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
        </asp:GridView>
                   </ItemTemplate>                    
                </asp:DataList>
   <div class = "td10"  style = " text-align :center "><asp:Button ID="btSave" runat="server" Text="提交" onclick="btSave_Click" /></div> 
    </asp:Panel>


        <asp:Panel ID="Panel2" runat="server" Visible ="false" >
            <asp:DataList ID="DataList2" runat="server" Width="100%" CellPadding="4" 
                    ForeColor="#333333" OnItemDataBound="DataList2_ItemDataBound" >
                   <AlternatingItemStyle BackColor="White" />
                   <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                   <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                   <ItemStyle BackColor="#E3EAEB" CssClass="td10" />
                   <ItemTemplate>
                   <div style ="margin-bottom :10px; color :cadetblue ;">  
                    <asp:Label ID="lbOrder" runat="server" Text='<%# Bind("columnorder") %>' ></asp:Label>
                    <asp:Label ID="lba" runat="server" Text='<%# Bind("projectname") %>' ></asp:Label>
                    <asp:Label ID="lbId" runat="server" Text='<%# Bind("projectid") %>' Visible ="false" ></asp:Label> 
                      <asp:Label ID="lbColumnType" runat="server" Text='<%# Bind("columntype") %>' Visible ="false" ></asp:Label>
                </div> 
                <div>  <asp:Label ID="lbContent" runat="server"></asp:Label><asp:BulletedList ID="blContent" runat="server"></asp:BulletedList>
                    <asp:DataList ID="DataList3" runat="server" Width="100%" CellPadding="4" >
                   <ItemTemplate>           
                    <asp:Image ID="Image1" runat="server"  ImageUrl ='<%# Bind("picname") %>' Width ="192" Height ="108"/>                  
                   </ItemTemplate>
                            </asp:DataList>
                </div>                  
                   </ItemTemplate>
                            </asp:DataList>
            <div style ="text-align :center ;">
            <asp:Button ID="btEdit" runat="server" Text="修改" OnClick="btEdit_Click" />&nbsp;&nbsp;&nbsp; <asp:Button ID="btback" runat="server" Text="完成" OnClick="btback_Click" />
            </div> </asp:Panel>   
   </div >
                <!--栏目结束 -->
                </div>
            </div>          
        </form>
    </body>
</html>