<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="m_repair.aspx.cs" Inherits="Web.m.wx.m_repair" %>
<!DOCTYPE html>
<html>
<head id="Head1" runat="server">
    <title>OA标题页</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="format-detection" content="telephone=no" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<link type="text/css" rel="stylesheet" href="../css/reset.css" />
<link type="text/css" rel="stylesheet" href="../css/base.css" />
<script type="text/javascript" src="../js/jquery.min.js"></script>
<style type="text/css">
   #newsArticle img{width:100%!important;height:auto!important;max-width:640px;}
  </style>
</head>
<body class="bg2">
    <form id="fom" runat="server">
    <section id="container">
    <div class="space-10"></div>
    <section class="bg-fff pad9 marLR9 opacity summary">
      <h3 class="color-black bold lineH17 padLR3"> 
      <!--此处添加标题（小字）-->
      <asp:Label ID="lbbiaoti" runat="server" ></asp:Label> 
      	</h3>
    <div class="space-10"></div>
        <h2 class="f17 color-black bold lineH22 padLR3">
        <!--此处添加标题（大字）-->
        维修处理
        </h2>
        <div class="padLR3 oh"><span class="fr pointer fontSize" id="fontSize">大字</span></div>
        <article class="newsArticle" id="newsArticle">
            <div class="tc onePic">
          </div>
            <div class="color-black padLR6 marB5">
   <!--此处添加正文-->
  <div class ="rh25 "><asp:RadioButtonList ID="rbl1" runat="server" 
                    RepeatDirection="Horizontal" ValidationGroup="checked" 
                  AutoPostBack="True" onselectedindexchanged="btnQuery2_Click">
            <asp:ListItem  >已申请</asp:ListItem>
            <asp:ListItem  Selected="True" >处理中</asp:ListItem>
            </asp:RadioButtonList></div> 
<div id= "viewlist" runat ="server" >
  <div class ="rh25 ">职工号、身份证号或姓名：</div>  <div class ="rh30 ">  <asp:TextBox ID="tbStaff" runat="server" 
          ValidationGroup="checked" Width="100%" Height="24px"></asp:TextBox></div> 
           <div class ="rh25 ">   部门：<asp:DropDownList ID="ddlDepartment" runat="server" AutoPostBack="True" 
                  onselectedindexchanged="btnQuery2_Click">
             </asp:DropDownList>     </div> 
                    <div class ="rh30 ">    <asp:Button ID="btQuery2" runat="server" onclick="btnQuery2_Click" 
                  Text="提交查询" ValidationGroup="num2" /><asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" 
            ControlToValidate="tbStaff" Display="Dynamic" ErrorMessage="输入的人员编号或姓名不对！" 
            ValidationExpression="^[^%&gt;&lt;'&amp;*=!&quot;?]{0,25}$" 
                 ValidationGroup="num2" ForeColor="Red"></asp:RegularExpressionValidator>  </div> 

       <asp:Label ID="lbInfo" runat="server" ForeColor="Red"></asp:Label> 
               <asp:DataList ID="DataList1" runat="server" Width="100%" CellPadding="4" 
                    ForeColor="#333333" ondeletecommand="DataList1_DeleteCommand">
                   <AlternatingItemStyle BackColor="White" />
                   <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                   <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                   <ItemStyle BackColor="#E3EAEB" />
                   <ItemTemplate>

                   <table border = "1" class ="table" cellpadding ="0" cellspacing ="0" style ="width :100%">
                   <tr>
                   <td class ="rh25 ">id</td>
                   <td class ="rh25 "><asp:Label ID="Labela1" runat="server" Text='<%# Bind("id") %>'></asp:Label>&nbsp;</td>
                   </tr>
                   
                   <tr>
                   <td class ="rh25 ">申报人编号</td>
                   <td class ="rh25 "><asp:Label ID="Label12" runat="server" Text='<%# Bind("staffid") %>'></asp:Label>&nbsp;</td>
                   </tr>

                   <tr>
                   <td class ="rh25 ">姓名</td>
                   <td class ="rh25 "><asp:Label ID="Label13" runat="server" Text='<%# Bind("staff") %>'></asp:Label>&nbsp;</td>
                   </tr>


                                      <tr>
                   <td class ="rh25 ">部门</td>
                   <td class ="rh25 "><asp:Label ID="Label6" runat="server" Text='<%# Bind("department") %>'></asp:Label>&nbsp;</td>
                   </tr>

                   <tr>
                   <td class ="rh25 ">提交时间</td>
                   <td class ="rh25 "><asp:Label ID="Label7" runat="server" Text='<%# Bind("reportdate") %>'></asp:Label>&nbsp;</td>
                   </tr>

                   
                   <tr>
                   <td class ="rh25 ">问题描述</td>
                   <td class ="rh25 "><asp:Label ID="Label8" runat="server" Text='<%# Bind("trouble") %>'></asp:Label>&nbsp;</td>
                   </tr>

                                      <tr>
                   <td class ="rh25 ">处理状态</td>
                   <td class ="rh25 "><asp:Label ID="Label9" runat="server" Text='<%# Bind("repairstate") %>'></asp:Label>&nbsp;</td>
                   </tr>





                   <tr>
                   <td class ="rh25 ">开始处理时间</td>
                   <td class ="rh25 ">
                   <asp:Label ID="lbrepairdatestar_e" runat="server" Text='<%# Eval("repairdatestar").ToString().Trim().Length <5?"": Eval("repairdatestar").ToString().Trim().Substring(0, 4)=="1900"?"":Eval("repairdatestar") %>' ></asp:Label>
                   </td>
                   </tr>

                   <tr>
                   <td class ="rh25 ">结束处理时间</td>
                   <td class ="rh25 "> 
                      <asp:Label ID="lbrepairdateend_e" runat="server" Text='<%# Eval("repairdateend").ToString().Trim().Length <5?"": Eval("repairdateend").ToString().Trim().Substring(0, 4)=="1900"?"":Eval("repairdateend") %>' ></asp:Label>
                   &nbsp;</td>
                   </tr>

                   <tr>
                   <td class ="rh25 ">维修时长（分钟）</td>
                   <td class ="rh25 "> <asp:Label ID="Label1" runat="server" Text='<%# Bind("duration") %>'></asp:Label>&nbsp;</td>
                   </tr>

                   <tr>
                   <td class ="rh25 ">维修备注</td>
                   <td class ="rh25 "> <asp:Label ID="Label2" runat="server" Text='<%# Bind("repairnote") %>'></asp:Label>&nbsp;</td>
                   </tr> 

                   <tr>
                   <td class ="rh25 ">维修人</td>
                   <td class ="rh25 "> <asp:Label ID="Label3" runat="server" Text='<%# Bind("repairman") %>'   ></asp:Label>&nbsp;</td>
                   </tr>

                                      <tr>
                   <td class ="rh25 ">操作</td>
                   <td class ="rh25 "> 

      <asp:Button ID="Button1" runat="server" Text="处理" CausesValidation="False" CommandName="Delete"></asp:Button>
                   
                   </td>
                   </tr>
                   </table> 
                   <div class ="space-10 "></div>
                       
                   </ItemTemplate>
                   <SelectedItemStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
                </asp:DataList>
                </div>

                     <table border = "1" class ="table" cellpadding ="0" cellspacing ="0" style ="width :100%; background-color :White ; margin-top :10px;" id ="viewrepair" runat ="server" visible ="false">
                <tr>
                    <td style ="width:60px"  class ="rh25 ">
                        报修人</td>
                    <td class ="rh25 " colspan="3">
                        <asp:Label ID="lbDepartment" runat="server"></asp:Label>
                                                    &nbsp;<asp:Label ID="lbZhengjian" runat="server"></asp:Label>
                                                    &nbsp;<asp:Label ID="lbName" runat="server"></asp:Label>
                                                    </td>
                </tr>
                <tr>
                    <td class ="rh25">
                        提交时间</td>
                    <td class ="rh25" colspan="3">
                        <asp:Label ID="lbReportdate" runat="server"></asp:Label>
                                                    </td>
                </tr>
                <tr>
                    <td class ="rh25">
                        开始处理</td>
                    <td class ="rh25" colspan="3">
                        <asp:Label ID="lbReapairdatestar" runat="server"></asp:Label>
                                                    </td>
                </tr>
                <tr>
                    <td  class ="rh25">
                        问题描述</td>
                    <td class ="style1" colspan="3">
                        <asp:Label ID="lbTrouble" runat="server"></asp:Label>
                    &nbsp;</td>
                </tr>
                <tr>
                    <td class ="rh25 " >
                        处理状态</td>
                    <td class ="rh25" colspan="3">
  
        
        <asp:RadioButtonList ID="rbl2" runat="server" 
                    RepeatDirection="Horizontal">

            </asp:RadioButtonList>
                                </td>
                </tr>
                <tr>
                    <td class ="rh25 " >
                        结束处理</td>
                    <td class ="rh25" colspan="3">
  
        
                        <asp:Label ID="lbRepairdateend" runat="server"></asp:Label>
                                </td>
                </tr>
                <tr>
                    <td class ="rh25 " >
                        维修时长</td>
                    <td class ="rh25" colspan="3">
                        <asp:TextBox ID="tbDuration" runat="server" Width="80px"></asp:TextBox>
                        分钟
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                                ControlToValidate="tbDuration" Display="Dynamic" ErrorMessage="请输入整数。" 
                                                ValidationExpression="^\+?[0-9]*$" 
                                                ValidationGroup="EditJilu" ForeColor="Red"></asp:RegularExpressionValidator>
                        </td>
                </tr>
                <tr>
                    <td class ="rh25 " >
        维修备注
                    </td>
                    <td class ="rh25" colspan="3">
        <asp:TextBox ID="tbRepairnote" runat="server" Width="100%" Rows="5" TextMode="MultiLine"></asp:TextBox>
                          <div>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" 
                            ControlToValidate="tbRepairnote" Display="Dynamic" ErrorMessage="不能超过100个字" 
                            ValidationExpression="^[\S\s]{0,100}$" ValidationGroup="EditJilu" 
                                  ForeColor="Red"></asp:RegularExpressionValidator></div> 
                    </td>
                </tr>
                <tr>
                    <td class ="rh25 ">
                        共同完成<br />
                        <asp:CheckBox ID="cbChoose_OtherReapairman" runat="server" AutoPostBack="True" 
                            oncheckedchanged="cbChoose_OtherReapairman_CheckedChanged" Text="全选" />
                    </td>
                    <td class ="rh25 " colspan="3">
                        <asp:CheckBoxList ID="cblOtherReapairman" runat="server" RepeatColumns="6" 
                            RepeatDirection="Horizontal">
                        </asp:CheckBoxList>
                        <asp:Label ID="lbParticipant" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class ="rh25 ">
        <asp:Label ID="lbEditId" runat="server" Visible="False"></asp:Label>
                    </td>
                    <td class ="rh25 ">
        <asp:Button ID="Button2" runat="server" onclick="Button2_Click" Text="提交" 
                            ValidationGroup="EditJilu" />
                    </td>
                    <td class ="rh25 " style =" text-align:center ;">
                        <asp:Button ID="Button3" runat="server" Text="返回" onclick="Button3_Click" />
                    </td>
                    <td class ="rh25 " style =" text-align :right ;">
                        <asp:Button ID="btDel" runat="server" Text="删除" onclick="btDel_Click" />
                    </td>
                </tr>
            </table>
       
   <!--正文结束-->     
           </div>
        </article>
            <div class="space-20"></div>
        <div class="space-30">
                <div class="mhome">
                    <asp:ImageButton ID="imgBHome" runat="server" ImageUrl="~/m/images/home.png" 
                        Height="30px" Width="30px" onclick="imgBHome_Click"></asp:ImageButton></div>
        <div  class ="mexit">
            <asp:ImageButton ID="imgBExit" runat="server" ImageUrl="~/m/images/exit.png" 
                Height="30px" Width="30px" onclick="imgBExit_Click"></asp:ImageButton></div>
        </div>
       
  
    </section><!--summary end-->
    <div class="space-20"></div>
</section><!--container end-->
<script type="text/javascript" src="../js/base.js"></script>
        </form>
    </body>
</html>