/
ivan
/
ModMas
Обзор
Документация
Войти
/
ivan
/
ModMas
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
ModuleMaster/lcm/forecast.aspx
180 строк
7 KB
i.krivokon
Initial commit
13 мар 2026, 13:49
13 мар 2026, 13:49
00d9fb6
Код
Авторство
О чём код?
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="forecast.aspx.vb" Inherits="r" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Production status</title> <script src="../Scripts/jquery-1.9.1.min.js"></script> <script src="../Scripts/bootstrap.js"></script> <script src="../Scripts/popover.js"></script> <style> #blink { -webkit-animation: blink 2s linear infinite; animation: blink 2s linear infinite; } @-webkit-keyframes blink { 50% { color: rgb(255, 0, 0); } } @keyframes blink { 50% { color: rgb(255, 0, 0); } } @font-face { font-family: "Agency FB"; src: url('../fonts/AGENCYB.TTF'); } html, body, form { width: 100%; height: 100%; background-color: transparent; font-family: 'Agency FB', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; font-size: 18pt !important; margin: 0; } table { width: 100%; height: 100%; text-align : center; } #report td { height: 7%; font-size: 20pt; } .remark { font-size: 20pt !important; } .time { font-size: 40pt !important; } th{ background-color: steelblue; color: white; font-size: 26pt; } .footer td{ background-color: steelblue; color: white; font-size: 26pt; } caption { color: White; font-weight: bold; background-color: DarkGray; } </style> </head> <body> <form id="form1" runat="server"> <div> <%-- FITST TABLE ------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------------- --%> <div class ="center"> <table border ="1" style="width:500px;" align="center"> <tr> <td colspan="2"> Gather statistic </td> <td colspan="2"> Forecast period </td> </tr> <tr> <td> <asp:Label runat="server" ID="Label1" Text="From week: "></asp:Label> <input type="week" id="stat_week_from" runat="server"/><br /> </td> <td> <asp:Label runat="server" ID="Label2" Text="To week: "></asp:Label> <input type="week" id="stat_week_end" runat="server"/><br /> </td> <td> <asp:Label runat="server" ID="Label3" Text="From week: "></asp:Label> <input type="week" id="forecast_week_from" runat="server"/><br /> </td> <td> <asp:Label runat="server" ID="Label4" Text="To week: "></asp:Label> <input type="week" id="forecast_week_end" runat="server"/><br /> </td> </tr> <tr> <td colspan="4">Panel: <input type="text" name="panel" id="panel" runat="server"/><br /> </td> </tr> <tr> <td colspan="4"> <button type="button" id="go">Make forecast</button> <asp:ImageButton ID="ibExcelDownload" runat="server" Height="27px" CssClass="vcenter" ImageUrl="http://serkweb.serk.lan:8080/modulemaster/Images/Microsoft%20Office%202003%20Excel.png" /> </td> </tr> </table> <asp:GridView ID="report" runat="server" CellPadding="4" ForeColor="#333333" Style="margin: 0 auto;" AutoGenerateColumns="true" HorizontalAlign="Center" EditIndex="-1"> <AlternatingRowStyle BackColor="White" /> <EditRowStyle BackColor="#2461BF" /> <EmptyDataRowStyle BackColor="Red" /> <FooterStyle BackColor="#229EE5" Font-Bold="True" ForeColor="White" /> <HeaderStyle BackColor="#229EE5" Font-Bold="True" ForeColor="White" /> <PagerSettings Mode="NumericFirstLast" PageButtonCount="5" /> <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" /> <RowStyle BackColor="#EFF3FB" HorizontalAlign="Center" VerticalAlign="Middle" /> <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" /> <SortedAscendingCellStyle BackColor="#F5F7FB" /> <SortedAscendingHeaderStyle BackColor="#6D95E1" /> <SortedDescendingCellStyle BackColor="#E9EBEF" /> <SortedDescendingHeaderStyle BackColor="#4870BE" /> <%-- <Columns> <asp:BoundField DataField="year" Visible="true" HeaderText="Year" /> </Columns>--%> </asp:GridView> <asp:SqlDataSource ID="queue" runat="server" ConnectionString="<%$ ConnectionStrings:CATVConnectionStringBigTimeOut %>"></asp:SqlDataSource> </div> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> </form> </body> <script type="text/javascript"> $("#go").click(function () { console.log($("#panel").val()); if ($("#panel").val() == "") { if (confirm("Full forecast can take up to 5 minutes. Are you sure you want to run without defining panel's code?")) { $("#form1").submit() } } else { $("#form1").submit() } }) </script> </html>