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

<!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" >
            <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">
                  <div style ="color :Red; text-align :left "> <asp:Label ID="lbMessage" runat="server"></asp:Label></div> 
              <asp:Panel ID="Panel1" runat="server">
<!--栏目开始 -->
        <div class ="lanmubiaoti ">查询字段设置</div>
            
            <!--这里添加内容 -->
            
             <div >        <table  border = "0"  cellpadding ="0" cellspacing ="0" style ="width :100%"><tr>
                 <td class=" td_leftnoborder  " style="width :70px">
                     <div>
                         <b>选择模块：</b>
                     </div>
                 </td>
        <td class =" td_leftnoborder  ">                         <asp:RadioButtonList ID="rblProjectA" runat="server" 
                             RepeatDirection ="Horizontal" RepeatColumns ="8" AutoPostBack="True" 
                             onselectedindexchanged="rblProjectA_SelectedIndexChanged" >
                         </asp:RadioButtonList>
  </td>
        </tr> </table> 
      </div> 
                    
               <div style ="margin-top:15px">
            <asp:Panel ID="plAdd" runat="server" >            
                <table style ="width :100%">
                <tr>
                    <td >
                            <b>添加字段：</b><asp:TextBox ID="tbAddField" runat="server" Width ="200px"></asp:TextBox>
                <asp:Button ID="btAddProject" runat="server" Text="添加" 
                    ValidationGroup="AddField" onclick="btAddProject_Click" />   
                    <asp:Label ID="lbAddMessage" runat="server" ForeColor="Red"></asp:Label>                                  
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="tbAddField" Display="Dynamic" 
                    ErrorMessage="名称不能为空。" ValidationGroup="AddField" ForeColor="Red"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ControlToValidate="tbAddField" Display="Dynamic" 
                    ErrorMessage="请不要超过25个字符。" 
                    ValidationExpression="^[^\s]{1,25}$" 
                    ValidationGroup="AddField" ForeColor="Red"></asp:RegularExpressionValidator>

                    </td>

                </tr>
            </table>  
             
              
            </asp:Panel>
                </div>
        <div>

                                </div> 
      <br />
      <table class =" table " cellpadding="0" cellspacing="0"  border ="1" style ="  width :100%"   >
            <tr>
               <td class ="tabletd_right " style ="width :200px">选择部门</td>
               <td class ="tabletd_left " >
                   <asp:RadioButtonList ID="rblDepartment" runat="server" AutoPostBack="True" 
                       onselectedindexchanged="rblDepartment_SelectedIndexChanged" RepeatColumns="8" 
                       RepeatDirection="Horizontal">
                   </asp:RadioButtonList>
                </td>
                   </tr>
                              <tr>
                                  <td class="tabletd_right " style="width :200px">
                                      勾选 所需的查询字段<br /> 
                                      <asp:CheckBox ID="cbChoose" runat="server" AutoPostBack="True" 
                                          oncheckedchanged="cbChoose_CheckedChanged" Text="全选" />
                                      <br />
                                  </td>
                                  <td class="tabletd_left ">
                                      <asp:CheckBoxList ID="cblField" runat="server" RepeatColumns="8" 
                                          RepeatDirection="Horizontal">
                                      </asp:CheckBoxList>
                                      &nbsp;</td>
            </tr>
                              <tr style ="height :30px ">
                                  <td class ="tabletd_right ">
                                      &nbsp;</td>
                                  <td class ="tabletd_left " >
               <asp:Button ID="btSetFieldList" runat="server" onclick="btSetFieldList_Click" Text="提交" />
                                  </td>
                              </tr>
                              </table>   
                                

                                        <asp:GridView ID="GridView2" runat="server" Width="700px" 
                BorderWidth="1px" CssClass="gv" 
                 cellspacing="1" AutoGenerateColumns="False">
            <RowStyle BorderWidth="1px" CssClass="gvrow" />
            <Columns>

                <asp:BoundField DataField="序号" HeaderText="序号" ReadOnly="True"   >
                    <ControlStyle CssClass="hidden" />
                    <FooterStyle CssClass="hidden" />
                    <HeaderStyle CssClass="hidden" />
                    <ItemStyle CssClass="hidden" />
                </asp:BoundField>
                <asp:BoundField DataField="所属模块" HeaderText="所属模块" ReadOnly="True" />
                <asp:BoundField DataField="字段名称" HeaderText="字段名称" ReadOnly="True" />
               <asp:TemplateField HeaderText="字段顺序">
                  <ControlStyle Width="60px" />
                  <ItemTemplate>
                      <asp:TextBox ID="tbFieldid" runat="server" Text='<%#Eval("字段顺序") %>'></asp:TextBox>
                                                                 <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                                ControlToValidate="tbFieldid" Display="Dynamic" ErrorMessage="请输入大于0的整数。" 
                                                ValidationExpression="^\+?[1-9][0-9]*$" ValidationGroup="btMove" ForeColor="Red"></asp:RegularExpressionValidator>
                  </ItemTemplate>
              </asp:TemplateField>
                
                
            </Columns>
            <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
        </asp:GridView>
        <div style ="height :40px;">
            <asp:Button ID="btMove" runat="server" Text="确认排序" onclick="btMove_Click" ValidationGroup="btMove" /></div>
                    <div style ="height :40px;">  <asp:Button ID="btUpField" runat="server" Text="检查修复字段设置" 
                onclick="btUpField_Click" /> </div> 
<!--栏目结束 -->
 
</asp:Panel> 
                </div>
            </div>
        </form>
    </body>
</html>



