/
ivan
/
ModMas
Обзор
Документация
Войти
/
ivan
/
ModMas
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
ModuleMaster/purchasing/mat_comparison_data_upload.aspx
116 строк
4 KB
i.krivokon
Initial commit
13 мар 2026, 13:49
13 мар 2026, 13:49
00d9fb6
Код
Авторство
О чём код?
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="mat_comparison_data_upload.aspx.vb" Inherits="mat_comparison_data_upload" EnableEventValidation="false" ValidateRequest="false" MaintainScrollPositionOnPostback="true" %> <%@ Register Src="~/UserControls/editableGrid.ascx" TagName="editableGrid" 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>Data upload</title> <style type="text/css"> .tableData { font-size: 10px; } #tblFilters td { text-align: center; border-collapse: collapse; } #tblFilters { margin: 0 auto; background: #9fce55; border-top: 3px solid #84a564; margin-bottom: 1px; } body { font-family: Arial; font-size: 10px; } .comboBoxInsideModalPopup { position: relative; } .comboBoxInsideModalPopup ul { position: absolute !important; left: 2px !important; top: 2px !important; } .Popup { border: 1px solid Black; background-color: LightYellow; Width: 342px; height: 70px; position: absolute; left: 36%; top: 181px; display : none; } </style> </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:editableGrid ID="edTableToView" runat="server" tableid ="399"/> <asp:Panel ID="FileUploadPanel" ClientIDMode ="Static" runat="server" CssClass="Popup" > <table style="width: 100%"> <tr> <td colspan="2"> <b>Select file to upload (file name: SOP_UPLOAD.TXT):</b> <asp:FileUpload ID="FileUpload1" ClientIDMode ="Static" runat="server" /> </td> </tr> <tr> <td style="text-align : right"> <asp:ImageButton ID="ok" runat="server" ImageUrl="~/Images/Ok.png" /> </td> <td style="text-align : left"> <asp:Image ID="cancelFileUpload" runat="server" ImageUrl="~/Images/Cancel.png" Style="cursor: pointer;" /> </td> </tr> </table> <script type ="text/javascript"> $("#cancelFileUpload").click(function () { //alert("cancel!"); clearFileUpload(); $("#FileUploadPanel").hide(); }); $("#edTableToView_edTableToView_ACTION_DATA_UPLOAD_ACTION").click(function (event) { //alert("cancel!"); event.preventDefault(); $("#FileUploadPanel").show(); }); function clearFileUpload() { var fu = document.getElementById("<%= FileUpload1.ClientID%>"); //if (fu != null) { // try { // fu.setAttribute("type", "input"); // fu.setAttribute("type", "file"); // } // catch (ex) { fu.outerHTML = fu.outerHTML; // } //} } </script> </asp:Panel> </div> </form> </body> </html>