<%@ Page Language="C#" AutoEventWireup="true"  MasterPageFile="~/MasterPage.master" CodeFile="RepBed.aspx.cs" Inherits="RepBed" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<asp:Content ID="content" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <script type="text/javascript">
    function Printpreview(DivID)
    {
        var prtContent = document.getElementById(DivID);
        var WinPrint = window.open('','','letf=0,top=0,width=1100,height=2000,toolbar=0,scrollbars=1,status=0');
        WinPrint.document.write(prtContent.innerHTML);
        WinPrint.document.close();
        WinPrint.focus();
    }
    
    
    function Print(DivID)
    {
        var prtContent = document.getElementById(DivID);
        var WinPrint = window.open('','','letf=0,top=0,width=1100,height=1000,toolbar=0,scrollbars=1,status=0');
        WinPrint.document.write(prtContent.innerHTML);
        WinPrint.document.close();
        WinPrint.focus();
        WinPrint.print();
        WinPrint.close();
    }
    
    
    </script>

   <center>
   <TABLE style="WIDTH: 740px" align=center><TBODY><TR><TD 
style="WIDTH: 69px;"><asp:Label id="Label6" runat="server" Width="94px" Text="" Height="4px" Font-Size="Small" CssClass="NormalLabel" BackColor="White"></asp:Label></TD><TD 
style="WIDTH: 37px"><asp:DropDownList id="dropCent" runat="server" Width="202px" Height="18px" OnSelectedIndexChanged="dropCent_SelectedIndexChanged1" AutoPostBack="True">
                </asp:DropDownList></TD><TD 
style="WIDTH: 52px;"><asp:Label id="Label7" runat="server" Width="51px" Text="" Height="13px" CssClass="NormalLabel" BackColor="White"></asp:Label></TD><TD 
style="WIDTH: 100px"><asp:DropDownList id="DropHosp" runat="server" Width="189px" OnSelectedIndexChanged="DropHosp_SelectedIndexChanged1" AutoPostBack="True">
                </asp:DropDownList>
       <tr>
           <td style="width: 69px">
               <asp:Label ID="Label2" runat="server" BackColor="White" CssClass="NormalLabel" Font-Bold="True"
                   Font-Size="Small" Height="1px" Text="" Width="56px"></asp:Label></td>
           <td align="right" colspan="3">
               <asp:DropDownList ID="cmbMonth" runat="server" AutoPostBack="True" Height="21px"
                   OnSelectedIndexChanged="cmbMonth_SelectedIndexChanged" Width="89px">
               </asp:DropDownList>
               <asp:Label ID="Label30" runat="server" Text="Label"></asp:Label></td>
       </tr>
   </TABLE> 
                <table align="center">
        <tr>
            <td colspan="4">
                <asp:Label ID="Label1" runat="server" CssClass="labelhead" Text="  "></asp:Label></td>
        </tr>
        <tr>
            <td style="width: 70px; height: 41px">
                <asp:Label ID="Label5" runat="server" CssClass="productlabel" Text="    "
                    Width="192px"></asp:Label></td>
            <td style="width: 100px; height: 41px">
                <asp:CheckBox ID="Chkins" runat="server" /></td>
            <td style="width: 100px; height: 41px">
                <asp:Label ID="Label3" runat="server" CssClass="productlabel" Text="     "
                    Width="208px"></asp:Label></td>
            <td style="width: 100px; height: 41px">
                <asp:CheckBox ID="chkInterunused" runat="server" Height="23px" Width="133px" /></td>
        </tr>
        <tr>
            <td style="width: 70px">
                <asp:Label ID="Label4" runat="server" CssClass="productlabel" Text="   )ICU_CCU_MICU)"
                    Width="269px"></asp:Label></td>
            <td style="width: 100px">
                <asp:CheckBox ID="ChkKidney" runat="server" Width="103px" /></td>
            <td style="width: 100px">
            </td>
            <td style="width: 100px">
            </td>
        </tr>
        <tr>
            <td colspan="4">
                <asp:Label ID="Label8" runat="server" CssClass="labelhead" Text=" "></asp:Label></td>
        </tr>
        <tr>
            <td style="width: 70px">
                <asp:Label ID="Label9" runat="server" CssClass="productlabel" Text=" "
                    Width="76px"></asp:Label></td>
            <td style="width: 100px">
                <asp:CheckBox ID="ChkEmercy" runat="server" Width="106px" /></td>
            <td style="width: 100px">
                <asp:Label ID="Label10" runat="server" CssClass="productlabel" Text=" "
                    Width="155px"></asp:Label></td>
            <td style="width: 100px">
                <asp:CheckBox ID="chkWea" runat="server" Width="103px" /></td>
        </tr>
        <tr>
            <td style="width: 70px">
                <asp:Label ID="Label11" runat="server" CssClass="productlabel" Text="  "
                    Width="160px"></asp:Label></td>
            <td style="width: 100px">
                <asp:CheckBox ID="chkResDr" runat="server" Width="105px" /></td>
            <td style="width: 100px">
                <asp:Label ID="Label28" runat="server" CssClass="productlabel" Text="  "></asp:Label></td>
            <td style="width: 100px">
                <asp:CheckBox ID="chkResNurs" runat="server" Width="108px" /></td>
        </tr>
        <tr>
           
            <td style="width: 100px">
                <asp:Button ID="ButtonSrch" runat="server" CssClass="button" Text="" OnClick="ButtonSrch_Click" /></td>
        </tr>
       </table>
       
     <table align="center" dir="rtl">
        <tr>
      
            <td valign="top" dir="rtl" >
                <div id="MyPrintDiv" align="center" dir="rtl">
                   
                    <table align="center">
                        <tr>
                            <td valign="top" style="width: 100px; height: 324px;" dir="rtl">
       <asp:Label ID="LblShowDep" runat="server" Text="Label" ForeColor="Orange" Visible="False" Width="254px" Font-Bold="True"></asp:Label>
                    <asp:GridView ID="gridshow" runat="server" CellPadding="2" GridLines="None"
                    Height="9px" Width="304px" AutoGenerateColumns="False" BorderStyle="Ridge" CaptionAlign="Right" Font-Size="Small" PageSize="5" BackColor="White" BorderColor="White" BorderWidth="2px" CellSpacing="1">
                    <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                    <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                    <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                    <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
                        <Columns>
                            <asp:TemplateField>
                                <HeaderTemplate>
                                </HeaderTemplate>
                     <ItemTemplate>
                     
                   
                  <table>
                  <tr bgcolor="yellow" >
                   
                   <td>  : 
                   <asp:Label ID="Label27" BackColor="AntiqueWhite" runat="server" Text='<%# Eval("HospNam") %>'></asp:Label></td>
                                </tr>
                                <td> <asp:Label ID="Label29" BackColor="AntiqueWhite" runat="server" Text='<%# Eval("Month") %>'></asp:Label></td>
                  <tr>
                  <td>
                  
                                        <asp:Label ID="Label18" runat="server"  Width="210px" Text="   :" ></asp:Label>  </td>
                                      <td>  <asp:Label ID="Label3" runat="server" Text='<%# Eval("No_Interused") %>'></asp:Label></td>
                  
                
                  
                  </tr>
                 
                  
                   
                    <tr>
                                        <td>  <asp:Label ID="Label19" runat="server"  Width="220px"  Text="      "></asp:Label></td>
                                    <td>  <asp:Label ID="Label4" runat="server" Text='<%# Eval("No_Interunused") %>'></asp:Label>
                              </td>    </tr>   
                              
                              <tr >
                                    <td>
                                        <asp:Label ID="Label20" runat="server"  Width="233px"  Text="   (ICU-CCU_MICU):"></asp:Label></td>
                                       <td> <asp:Label ID="Label12" runat="server" Text='<%# Eval("NoKidney1") %>'></asp:Label>
                                    </td>
                                </tr>
                                 <tr>
                                    <td bgcolor="silver">
                                       <asp:Label ID="Label22" runat="server"  Width="220px"  Text=" :"></asp:Label></td>
                                       
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                       <asp:Label ID="Label23" runat="server"  Width="220px"  Text=" "></asp:Label></td>
                                       <td> <asp:Label ID="Label14" runat="server" Text='<%# Eval("No_Emercy") %>'></asp:Label>
                                    </td>
                                </tr>
                                 <tr>
                                    <td>
                                          <asp:Label ID="Label24" runat="server"  Width="220px"  Text=" "></asp:Label></td>
                                        <td><asp:Label ID="Label15" runat="server" Text='<%# Eval("No_Wea") %>'></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                         <asp:Label ID="Label25" runat="server"  Width="220px"  Text="  :"></asp:Label></td>
                                        <td><asp:Label ID="Label16" runat="server" Text='<%# Eval("No_ResDr") %>'></asp:Label>
                                    </td>
                                </tr>
                                 <tr>
                                    <td>
                                         <asp:Label ID="Label26" runat="server"  Width="220px"  Text="  "></asp:Label></td>
                                       <td> <asp:Label ID="Label17" runat="server" Text='<%# Eval("No_ResNurs") %>'></asp:Label>
                                    </td></tr>
                              <tr bgcolor="yellow" >
                                    <td>
                                         <asp:Label ID="Label21" runat="server"  Width="220px"  Text="  :"></asp:Label></td>
                                         <td><asp:Label ID="Label13" runat="server" Text='<%# Eval("TotalBed") %>'></asp:Label>
                                    </td>
                                </tr>
                  </table>
                    </ItemTemplate>
                     </asp:TemplateField>
                     </Columns>
                    
                </asp:GridView>
                            </td>
                        </tr>
                    </table>
                    </div>
            </td>
        </tr>
        <tr>
            <td align="right">
                <table align="center" >
                    <tr>
                        <td >
                            <a href="#" onclick="Print('MyPrintDiv');">Print</a>
                        </td>
                        <td width="5"> </td>
                        <td>
                            <a href="#" onclick="Printpreview('MyPrintDiv');">Print Preview</a>
                           </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
                   
        
    <table cellpadding="0" cellspacing="0" style="width: 100%; height: 100%">
        <tr>
            <td style="width: 100px">
                </td>
        </tr>
    </table>
               
               
</asp:Content>
   