/
ivan
/
ModMas
Обзор
Документация
Войти
/
ivan
/
ModMas
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
ModuleMaster/demurrage/cont_details.aspx
143 строки
5 KB
i.krivokon
Initial commit
13 мар 2026, 13:49
13 мар 2026, 13:49
00d9fb6
Код
Авторство
О чём код?
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Cont_details.aspx.vb" Inherits="Xml_viewTable" EnableEventValidation="false" ValidateRequest="false" MaintainScrollPositionOnPostback="true" %> <%@ Register Src="~/UserControls/editableGridNew.ascx" TagName="editableGridNew" TagPrefix="uc1" %> <%@ Register Src="~/UserControls/graphForTable.ascx" TagPrefix="uc1" TagName="graphForTable" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Module Master Table Viever</title> </head> <body> <form id="form1" runat="server"> <div> <asp:ScriptManager ID="ScriptManager1" runat="server"> <Scripts> <asp:ScriptReference Path="~/Scripts/jquery-1.9.1.min.js" /> </Scripts> </asp:ScriptManager> <uc1:editableGridNew ID="edTableToView" runat="server" TableId="1695" /> <asp:PlaceHolder ID="gridcommandhandlerscript" runat="server"></asp:PlaceHolder> </div> <asp:Panel runat="server" ID="pnlDataUpload" CssClass="borderRadius popup hidden" Width="500px"> <div id="dvHeaderDataUpload" style="font-weight: bold;"> <table style="width: 100%; cursor: move;"> <tr> <td style="width: 100%; text-align: center;">Data upload from Excel<br /> <span style="color: Navy; font-size: small;">First download excel form for this table, arrange your data in excel according to the given format and copy/paste data from excel to text box below (without header). </span> </td> <td style="padding-left: 10px"> <asp:Image runat="server" ID="CancelDataUpload" CssClass="closepopup" ImageUrl="~/Images/cancel.png" /> </td> </tr> </table> </div> <hr /> <table style="width: 100%; display: none;"> <tr> <td>Select your decimal notation format: </td> <td> <asp:RadioButtonList ID="rblDecimalNotation" runat="server" RepeatDirection="Horizontal"> <asp:ListItem Value="1" Selected="True">0.000</asp:ListItem> <asp:ListItem Value="0">0,000</asp:ListItem> </asp:RadioButtonList> </td> <td>Select your date format: </td> <td> <asp:RadioButtonList ID="rblDateFormat" runat="server" RepeatDirection="Horizontal"> <asp:ListItem Value="0" Selected="True">dd.MM.yyyy</asp:ListItem> <asp:ListItem Value="1">yyyy-MM-dd</asp:ListItem> </asp:RadioButtonList> </td> </tr> </table> <hr /> <table class="center centerAlign "> <tr> <td> <asp:ImageButton ID="bUpload" CssClass="closepopup" runat="server" ImageUrl="~/Images/Buttons/24/Download.png" ToolTip="Upload" /> </td> </tr> <tr> <td> <asp:Literal ID="ltrUploadResults" runat="server"></asp:Literal> </td> </tr> </table> <asp:TextBox ID="txtDataToUpload" runat="server" TextMode="MultiLine" Height="242px" Width="500px"></asp:TextBox> </asp:Panel> </form> </body> </html> <script type="text/javascript"> //Bulk data upload $("#edTableToView_edTableToView_ACTION_UPLOAD_ACTION").click(function () { hidePopups(); var targetId = "pnlDataUpload"; event.preventDefault(); $("#" + targetId).removeClass("hidden"); centerPopup($("#" + targetId)); }) // -- POPUP MANAGEMENT function hidePopups() { $(".popup").each(function () { $(this).addClass("hidden"); }) } ///////////////////////// //function centerPopup(popup) { // if (typeof ($("#pnlAddNewItem")) != "undefined") { // popup.removeClass("hidden"); // popup.css("position", "absolute"); // popup.css("top", (($(window).height() - popup.outerHeight()) / 2) + $(window).scrollTop() + "px"); // popup.css("left", (($(window).width() - popup.outerWidth()) / 2) + $(window).scrollLeft() + "px"); // $("#pnlAddNewItem").center(); // } //} </script>