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

<!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/css.css" rel="stylesheet" type="text/css" />
    <meta http-equiv="Content-Type" content="text/html; charset=GB2312" />
    <script type="text/javascript" src="../../css/popcalendar.js"></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 style ="width :720px; height :34px;  background-image: url('../../css/images/atghtj.png');	background-repeat: no-repeat;
                	background-position: left top;"><div id="main-c-03-right02-top">
                	   <!--这里添加页面标题 -->
                      	    报修查询
                      	
                	</div></td>
                </tr>
            </table>
            <div id="main-c-03-right02-main">
             <div style ="text-align :left ">  <div>
    起始日期: <asp:textbox id="date1" runat="server" Width="100px"  
              ToolTip="点击输入框右侧的日期图标选择日期" onclick="popUpCalendar(this,this,'yyyy-mm-dd')"></asp:textbox>
                                 
        &nbsp;终止日期: <asp:textbox id="date2" runat="server" Width="100px"    
              ToolTip="点击输入框右侧的日期图标选择日期" onclick="popUpCalendar(this,this,'yyyy-mm-dd')"></asp:textbox>
                                                          
       &nbsp;&nbsp;<asp:Button ID="btQuery2" runat="server" onclick="btnQuery2_Click" 
                  Text="提交查询" ValidationGroup="cha" />
          
              <asp:RequiredFieldValidator ID="RequiredFieldValidator1" 
                  runat="server" ControlToValidate="date1" Display="Dynamic" 
                  ErrorMessage="起始日期必填！" ValidationGroup="cha" ForeColor="Red"></asp:RequiredFieldValidator>
              <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                  ControlToValidate="date2" Display="Dynamic" ErrorMessage="终止日期必填！" 
                          ValidationGroup="cha" ForeColor="Red"></asp:RequiredFieldValidator>
              <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                  ControlToValidate="date1" Display="Dynamic" ErrorMessage="请填正确日期格式：如2001-01-01" 
                  ValidationExpression="\d{4}-\d{2}-\d{2}" ValidationGroup="cha" 
                  ForeColor="Red"></asp:RegularExpressionValidator>
              <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" 
                  ControlToValidate="date2" Display="Dynamic" ErrorMessage="请填正确日期格式：如2001-01-01" 
                  ValidationExpression="\d{4}-\d{2}-\d{2}" ValidationGroup="cha" 
                  ForeColor="Red"></asp:RegularExpressionValidator>
                 </div> </div> 
<!--栏目开始 -->

            <table style ="width :100%" border="0" align="center" cellpadding="0" cellspacing="0" class="ziti04">
               <tr>
                    <td style ="font-weight:bolder;background-image: url('../../css/images/asdfrsg.png'); height :33px; padding-left :20px">
                    <!--这里添加栏目标题 -->
                        报修申请列表
                    
                     &gt;&gt;</td>
    <td style ="background-image: url('../../css/images/asdfrsg.png'); text-align :right  "> 
        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                                                ControlToValidate="tbNum" 
            Display="Dynamic" ErrorMessage="行数不能为空。" 
                                                ValidationGroup="cha"></asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator6" runat="server" 
                                                ControlToValidate="tbNum" 
            Display="Dynamic" ErrorMessage="请输入大于0的整数。" 
                                                
            ValidationExpression="^\+?[1-9][0-9]*$" ToolTip="RowNum" 
                                                ValidationGroup="cha"></asp:RegularExpressionValidator></td>
                    <td style ="background-image: url('../../css/images/asdfrsg.png'); width :164px">
                        每页显示行数：<asp:TextBox ID="tbNum" runat="server" 
                    Width="44px" MaxLength="4">20</asp:TextBox></td>
                    <td  style ="background-image: url('../../css/images/asdfrsg.png'); width :40px" >
                        <asp:Button ID="btnQuery" runat="server" onclick="btnQuery2_Click" Text="确定" ToolTip="RowNum" 
                                                ValidationGroup="cha" /></td>
                </tr>
                <tr>
                    <td height="10" colspan="4" style="font-weight:bolder;">
              
                    
                    </td>
                </tr>
            </table>
            <!--这里添加内容 -->

            				    <asp:Label ID="lbMessage" runat="server" ForeColor="Red"></asp:Label>  
			<asp:GridView ID="GridView1" runat="server" Width="100%" 
                BorderWidth="1px" CssClass="gv" AutoGenerateColumns="False" 
                onrowcreated="GridView1_RowCreated" onrowdatabound="GridView1_RowDataBound" 
                    onselectedindexchanging="GridView1_SelectedIndexChanging" >
            <RowStyle BorderWidth="1px" CssClass="gvrow" />
                  <Columns>
                    <asp:BoundField DataField="id" HeaderText="id" ReadOnly="True" />
                    <asp:BoundField DataField="staffid" HeaderText="申报人证件号" ReadOnly="True" />
                    <asp:BoundField DataField="staff" HeaderText="姓名" ReadOnly="True" />
                    <asp:BoundField DataField="department" HeaderText="部门" ReadOnly="True" />
                    <asp:BoundField DataField="reportdate" HeaderText="提交时间" ReadOnly="True" />
                    <asp:BoundField DataField="trouble" HeaderText="问题描述" ReadOnly="True" />
                    <asp:BoundField DataField="repairstate" HeaderText="处理状态" ReadOnly="True" />

                        <asp:TemplateField HeaderText="开始处理时间">
                        <EditItemTemplate>
                        <asp:Label ID="lbrepairdatestar_e" runat="server" Text='<%# Bind("repairdatestar") %>' ></asp:Label>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="lbrepairdatestar_v" runat="server"></asp:Label>
                            <asp:Label ID="lbrepairdatestar_notv" runat="server" Text='<%# Bind("repairdatestar") %>'  Visible ="false" ></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                        <asp:TemplateField HeaderText="结束处理时间">
                        <EditItemTemplate>
                        <asp:Label ID="lbrepairdateend_e" runat="server" Text='<%# Bind("repairdateend") %>' ></asp:Label>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="lbrepairdateend_v" runat="server"></asp:Label>
                            <asp:Label ID="lbrepairdateend_notv" runat="server" Text='<%# Bind("repairdateend") %>'  Visible ="false" ></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>

                    <asp:BoundField DataField="duration" HeaderText="维修时长（分钟）" ReadOnly="True" />
                    <asp:BoundField DataField="repairnote" HeaderText="维修备注" ReadOnly="True" />
                    <asp:BoundField DataField="repairman" HeaderText="维修人" ReadOnly="True" />
    


                    
                      <asp:TemplateField HeaderText="评价" ShowHeader="False">
                          <ItemTemplate>
                              <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" 
                                  CommandName="Select" Text="评价"></asp:LinkButton>
                                  <asp:Label ID="lbEvaluate" runat="server" Visible ="false" Text="已评"></asp:Label>
                                     <asp:Label ID="lbEvaluate_notv" runat="server" Text='<%# Bind("evaluate") %>'  Visible ="false" ></asp:Label>
                          </ItemTemplate>
                      </asp:TemplateField>
                    
                </Columns>
            <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
        </asp:GridView>
            		<table cellpadding="0" cellspacing="0" style ="width :100%">
              <tr>
                  <td style =" padding-left :5px; text-align :left  "> 
                        <br />
                  </td>
                  <td  id ="allowpage" runat ="server" style ="text-align :right ;  padding-right  :5px">
                      &nbsp;</td>
              </tr>
          </table>
          <table  style =" width :700px" border = "1" class ="table " cellpadding ="0" cellspacing ="0" runat ="server" id ="viewrepair" visible ="false" >
                <tr>
                    <td class ="tabletd_right ">
        <asp:Label ID="lbEditId" runat="server" Visible="False"></asp:Label>
                        问题描述：</td>
                    <td class ="tabletd_left " colspan="3">
                        <asp:Label ID="lbTrouble" runat="server"></asp:Label>
                    &nbsp;</td>
                </tr>
                <tr>
                    <td class ="tabletd_right " >
                        开始处理时间：</td>
                    <td class ="tabletd_left">
                        <asp:Label ID="lbReapairdatestar" runat="server"></asp:Label>
                                </td>
                    <td class ="tabletd_right">
                        结束处理时间：</td>
                    <td class ="tabletd_left">
                        <asp:Label ID="lbRepairdateend" runat="server"></asp:Label>
                                </td>
                </tr>
                <tr>
                    <td class ="tabletd_right " >
                        维修人员：</td>
                    <td class ="tabletd_left">
  
        
                        <asp:Label ID="lbRepairman" runat="server"></asp:Label>
                                </td>
                    <td class ="tabletd_left">
  
        
                        维修时长：</td>
                    <td class ="tabletd_left">
  
        
                        <asp:Label ID="lbDuration" runat="server"></asp:Label>
                                分钟</td>
                </tr>
                <tr>
                    <td class ="tabletd_right " >
        <asp:Label ID="Label3" runat="server" Text="维修备注："></asp:Label>
                    </td>
                    <td class ="tabletd_left" colspan="3">
  
        
                        <asp:Label ID="lbRepairnote" runat="server"></asp:Label>
                                </td>
                </tr>
                <tr>
                    <td class ="tabletd_right ">
                        评价：</td>
                    <td class ="tabletd_left " colspan="2">
                        <asp:RadioButtonList ID="rblEvaluate" runat="server" 
                            RepeatDirection="Horizontal" AutoPostBack="True" 
                            onselectedindexchanged="rblEvaluate_SelectedIndexChanged">
                            <asp:ListItem>好评</asp:ListItem>
                            <asp:ListItem>中评</asp:ListItem>
                            <asp:ListItem>差评</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                    <td class ="tabletd_center ">
        <asp:Button ID="btEvaluate" runat="server" onclick="btEvaluate_Click" Text="提交" 
                            ValidationGroup="EditJilu" />
        <asp:Button ID="btEvaluate_1" runat="server" onclick="btEvaluate_1_Click" Text="提交" 
                            ValidationGroup="EditJilu" Visible="False" />
                    </td>
                </tr>
            </table>
        <asp:Panel ID="plOutput" runat="server" Visible ="false" >
            <div style =" text-align :right ; padding-right:10px">      
                <asp:Button ID="btExcel" runat="server" onclick="btExcel_Click" 
                    Text="导出到EXCEL" />
            </div>
              </asp:Panel>            
<!--栏目结束 -->



                </div>
            </div>
        </form>
    </body>
</html>

