/
ivan
/
ModMas
Обзор
Документация
Войти
/
ivan
/
ModMas
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
ModuleMaster/pc/st_1.aspx
249 строк
10 KB
i.krivokon
Initial commit
13 мар 2026, 13:49
13 мар 2026, 13:49
00d9fb6
Код
Авторство
О чём код?
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="ST_1.aspx.vb" Inherits="capa" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>ST_1</title> <script src="../Scripts/jquery-1.9.1.min.js"></script> <script src="../Scripts/bootstrap.js"></script> <script src="../Scripts/popover.js"></script> <style> .spinner { position: relative ; top: 0; left: 0; right: 0; bottom: 0; margin: auto; } .spinner_big { position: absolute ; top: 0; left: 0; right: 0; bottom: 0; margin: auto; } #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: 5%;*/ font-size: 12pt; } .remark { font-size: 20pt !important; } .time { font-size: 40pt !important; } th{ background-color: steelblue; color: white; font-size: 16pt; } .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 ------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------------- --%> <table border="1" style="width:auto;" align="center"> <tr> <td style="text-align: right; vertical-align: bottom"> <asp:Label ID="Label1" runat="server" Text="Input model: "></asp:Label> <asp:TextBox ID="Model" runat="server"></asp:TextBox> <asp:Button ID="Process" runat="server" Text="Make calculation" /> <asp:ImageButton ID="ibExcelDownload" runat ="server" Height ="27" Width ="27" ImageUrl ="~/Images/Microsoft%20Office%202003%20Excel.png" CssClass="vcenter" /> <asp:Image ID="spinner" runat="server" ImageUrl="../Images/Gears/giphy.gif" Style="display: inline" ClientIDMode="Static" class="spinner" Height="30px" Visible="false" /> </td> </tr> </table> </br> <asp:Image ID="spinner_big" runat="server" ImageUrl="../Images/Gears/giphy.gif" Style="display:none" ClientIDMode="Static" class="spinner_big" /> <asp:HiddenField ID="HiddenField1" runat="server"/> <table border="0" align="center"><tr><td><asp:Label ID="Label2" runat="server" Text="Total by location" text-align="center"></asp:Label></td></tr></table> <asp:GridView ID="Table1" runat="server" CellPadding="4" ForeColor="#333333" Style="margin: 0 auto; width: 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" /> </asp:GridView> <table border="0" align="center"><tr><td><asp:Label ID="Label3" runat="server" Text="Total by HS code" text-align="center"></asp:Label></td></tr></table> <asp:GridView ID="Table2" runat="server" CellPadding="4" ForeColor="#333333" Style="margin: 0 auto; width: 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" /> </asp:GridView> <table border="0" align="center"><tr><td><asp:Label ID="Label4" runat="server" Text="Raw data" text-align="center"></asp:Label></td></tr></table> <asp:GridView ID="report" runat="server" CellPadding="4" ForeColor="#333333" Style="margin: 0 auto; width: 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" /> </asp:GridView> <asp:SqlDataSource ID="queue" runat="server" ConnectionString="<%$ ConnectionStrings:CATVConnectionString %>" SelectCommand="" /> <asp:SqlDataSource ID="queue1" runat="server" ConnectionString="<%$ ConnectionStrings:CATVConnectionString %>" SelectCommand="" /> <asp:SqlDataSource ID="queue2" runat="server" ConnectionString="<%$ ConnectionStrings:CATVConnectionString %>" SelectCommand="" /> </div> <script type="text/javascript"> var timeID_stock; var timeID_sop; var timeID; $(document).ready(function () { //timeID_stock = setInterval(Stock_changed, 60000); //timeID_sop = setInterval(SOP_changed, 60000); timeID = setInterval(Check_lock, 10000); }) ///Нажатие кнопки выгрузки стока $("#Process").click(function () { alert('The necessary data will be extracted from G-ERP. It can takes up to 15 minutes. The page will be reloaded automatically when it\'s done'); $("#spinner_big").css("display", "inline"); //clearInterval(timeID_stock); //clearInterval(timeID_sop); clearInterval(timeID); //$("#form1").submit() }) function Check_lock() { //alert('Handler started'); var request = $.ajax({ url: ("../handlers/ST_1_wa_lock.ashx"), data: { } }); request.done(lock_check_ok); request.fail(lock_check_fail); }; function lock_check_ok(result) { if (result == 'locked' && $("#HiddenField1").val() == 'unlocked') { $("#spinner_big").css("display", "inline") clearInterval(timeID); window.location.replace(window.location.href); //alert("Stock changed"); } if (result == 'unlocked' && $("#HiddenField1").val() == 'locked') { clearInterval(timeID); window.location.replace(window.location.href); //alert("Stock is the same"); } }; function lock_check_fail(result) { alert("Handler end up with error"); }; </script> </form> </body> </html>