<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FWUpdate.aspx.cs" Inherits="GigaTech.CMS.Web.Apps.Common.DMZ.FWUpdate" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body style="background-color:white">
    <form id="form1" runat="server">
    <div>
     <asp:FileUpload ID="FileUpload1" runat="server" accept=".txt,.pkg,.bin,.apk,.mp4,.zip" /><p></p>
<asp:Button ID="btnUpload" runat="server" Text="開始上傳" OnClick="UploadFile" />
<hr />
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false" EmptyDataText = "No files uploaded">
    <Columns>
        <asp:BoundField DataField="Text" HeaderText="File Name" />
        <asp:TemplateField>
            <ItemTemplate>
                <asp:LinkButton ID="lnkDownload" Text = "Download" CommandArgument = '<%# Eval("Value") %>' runat="server" OnClick = "DownloadFile"></asp:LinkButton>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField>
            <ItemTemplate>
                <asp:LinkButton ID = "lnkDelete" Text = "Delete" CommandArgument = '<%# Eval("Value") %>' runat = "server" OnClick = "DeleteFile" />
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
</asp:GridView>
    </div>
 
        </p>
           <asp:Button ID="Button2" runat="server" ForeColor="Red" OnClick="Button_FWUpdate2_Click" Text="通知所有設備進行更新作業" Font-Size="16pt" />

         </p>        

        <hr />

         <div>        
      <asp:DropDownList ID="DropDownList1" runat="server"  AutoPostBack="True"  onselectedindexchanged="itemSelected">
        </asp:DropDownList>
        <asp:Button ID="Button1" runat="server"  OnClick="Button_OK_Click" Text="OK"  />
          </p>
        <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="false" EmptyDataText = "硬體版本 No data">
    <Columns>        
        <asp:TemplateField HeaderText= "Hardware Version" >
            <ItemTemplate>
               <asp:CheckBox runat="server" ID="HWVersion" Text='<%# Eval("Value") %>' /> 
            </ItemTemplate>
        </asp:TemplateField>
       <%-- asp:BoundField DataField="Text" HeaderText="Version" /  --%>
    </Columns>
</asp:GridView>        
        </p>
         <asp:GridView ID="GridView3" runat="server" AutoGenerateColumns="false" EmptyDataText = "軟體版本 No data">
    <Columns>        
        <asp:TemplateField HeaderText="Software Version">
            <ItemTemplate>
               <asp:CheckBox runat="server" ID="SWVersion" Text='<%# Eval("Value") %>' /> 
            </ItemTemplate>
        </asp:TemplateField>
       <%-- asp:BoundField DataField="Text" HeaderText="Version" /  --%>
    </Columns>
</asp:GridView>

    </div>
</p>
        <asp:Button ID="Button_FWUpdate" runat="server" ForeColor="Red" OnClick="Button_FWUpdate_Click" Text="通知所有設備進行更新作業"  Font-Size="16pt" />


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