/
ivan
/
ModMas
Обзор
Документация
Войти
/
ivan
/
ModMas
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
ModuleMaster/modulemaster.aspx
133 строки
5 KB
i.krivokon
Initial commit
13 мар 2026, 13:49
13 мар 2026, 13:49
00d9fb6
Код
Авторство
О чём код?
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="ModuleMaster.aspx.vb" Inherits="ModuleMaster" EnableEventValidation ="false" %> <%@ Register Src="UserControls/editableGrid.ascx" TagName="editableGrid" TagPrefix="uc1" %> <!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</title> <link rel="shortcut icon" type="image/x-icon" href="~/favicon.ico" /> <style type ="text/css"> body { font-family: Calibri; font-size: 12px; } #tblBody td { vertical-align : top; text-align: center; } #tblBody { width: 99%; } .style1 { width: 49px; height: 57px; } .style2 { font-size: x-large; font-weight: bold; background-color: #3399FF; } </style> </head> <body> <form id="form1" runat="server"> <div> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <table id ="tblBody"> <tr> <td class="style2"> Module </td> <td class="style2"> </td> <td class="style2"> Table </td> <td class="style2"> </td> <td class="style2"> Fields </td> <td class="style2"> Fields Values</td> </tr> <tr> <td> <uc1:editableGrid ID="edModule" runat="server" UserDataStoragePrefix="[UserModules].[dbo]." AttachmentsStoragePrefix="[UserModulesAttachments].[dbo]." tableName="ModuleMaster" Visible="true" /> <asp:DropDownList runat="server" ID ="ddlModules" DataSourceID="sdsModules" DataTextField="text" DataValueField="value" Visible ="false" ></asp:DropDownList> <%--<asp:SqlDataSource ID="sdsModules" runat="server" ConnectionString="<%$ ConnectionStrings:homeConString %>" SelectCommand="SELECT [ModuleName] as text, id as value FROM [UserModules].[dbo].[ModuleMaster] Where Enabled = 'Y' Order by ModuleName"></asp:SqlDataSource>--%> <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Images/Refresh.png" Visible="false" /> </td> <td style="vertical-align : middle;"> <img alt="" class="style1" src="Images/Arrows/arrow_orange_right.jpg" /></td> <td> <asp:UpdatePanel ID="UpdatePanel2" runat="server"> <ContentTemplate > <asp:Label ID="lblModuleName" runat="server"></asp:Label> <asp:HiddenField ID="hfModuleID" runat="server"></asp:HiddenField> </ContentTemplate> </asp:UpdatePanel> <uc1:editableGrid ID="edTable" runat="server" UserDataStoragePrefix="[UserModules].[dbo]." AttachmentsStoragePrefix="[UserModulesAttachments].[dbo]." tableName="MODULETABLES" /> </td> <td style="vertical-align: middle;"> <img alt="" class="style1" src="Images/Arrows/arrow_orange_right.jpg" /></td> <td> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate > <asp:Label ID="lblTableName" runat="server"></asp:Label> <asp:HiddenField ID="hfTableId" runat="server"></asp:HiddenField> </ContentTemplate> </asp:UpdatePanel> <uc1:editableGrid ID="edFields" runat="server" UserDataStoragePrefix="[UserModules].[dbo]." AttachmentsStoragePrefix="[UserModulesAttachments].[dbo]." tableName="TABLEFIELDS" /> </td> <td> <uc1:editableGrid ID="edFieldsValues" runat="server" UserDataStoragePrefix="[UserModules].[dbo]." AttachmentsStoragePrefix="[UserModulesAttachments].[dbo]." tableName="FieldsValues" /> </td> </tr> <tr> <td colspan="6"> <asp:UpdatePanel runat ="server" ID ="upTableViewlink" UpdateMode ="Always" > <ContentTemplate > <asp:HyperLink ID="lnkTableView" runat="server" Target="_blank"></asp:HyperLink> </ContentTemplate> </asp:UpdatePanel> </td> </tr> <tr> <td colspan="6"> <hr /> <uc1:editableGrid ID="edResultingTable" runat="server" PageSize="10" Width="80%" /> </td> </tr> <tr> <td colspan="6" class="style2 "> </td> </tr> </table> </div> </form> </body> </html>