/
ivan
/
ModMas
Обзор
Документация
Войти
/
ivan
/
ModMas
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
ModuleMaster/usercontrols/formulaeditor.ascx
115 строк
5 KB
i.krivokon
Initial commit
13 мар 2026, 13:49
13 мар 2026, 13:49
00d9fb6
Код
Авторство
О чём код?
<%@ Control Language="VB" AutoEventWireup="false" CodeFile="formulaEditor.ascx.vb" Inherits="UserControls_formulaEditor" %> <%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %> <style type="text/css"> .FormulaPopup { position: absolute; background-color: LightYellow; z-index: 100; text-align: center; padding: 5px; left: 45%; top: 150px; border: solid 2px #1d005c; -moz-border-radius-topleft: 17px; -moz-border-radius-topright: 17px; -moz-border-radius-bottomleft: 17px; -moz-border-radius-bottomright: 17px; -webkit-border-top-left-radius: 17px; -webkit-border-top-right-radius: 17px; -webkit-border-bottom-left-radius: 17px; -webkit-border-bottom-right-radius: 17px; border-top-left-radius: 17px; border-top-right-radius: 17px; border-bottom-left-radius: 17px; border-bottom-right-radius: 17px; } .style1 { width: 24px; height: 17px; position: relative; top: 0px; height: 50%; } .comboBoxInsideModalPopup { position: relative; } .comboBoxInsideModalPopup ul { position: absolute !important; left: 2px !important; top: 2px !important; } </style> <asp:UpdatePanel runat="server" ID="upFormulaEditor" UpdateMode="Conditional" style="position: relative; text-align: center;"> <ContentTemplate> <asp:HiddenField ID="hfFieldID" runat="server" Value="0" /> <asp:HiddenField ID="hfTableId" runat="server" Value="0" /> <asp:HiddenField ID="hfFormula" runat="server" Value="" /> <%--<asp:HiddenField ID="hfBackFormula" runat="server" Value="" />--%> <%--<asp:SqlDataSource ID="sdsFiledsList" runat="server" ConnectionString="<%$ ConnectionStrings:SERKIntranetConnectionString %>" SelectCommand="select FieldName, DBFieldName from usermodules.dbo.tablefields where tableid=@tableid and (fieldType='NUMBER' or fieldType='FORMULA')"> <SelectParameters> <asp:ControlParameter ControlID="hfTableId" Name="tableid" PropertyName="Value" /> </SelectParameters> </asp:SqlDataSource>--%> <asp:Panel ID="pnlYesNo" runat="server" CssClass="FormulaPopup"> <strong>Construct formula</strong> <hr /> <asp:Table runat="server" ID="tblFormula" Style="width: 100%; border-style: none; border-collapse: collapse; margin: 10px 0 10px 0;" BorderColor="#3366FF" BorderStyle="Solid" Font-Bold="True"> </asp:Table> <asp:Panel runat="server" ID="pnlAddRemove"> <asp:Panel runat="server" ID="pnlControls"> <%--<asp:ComboBox ID="ComboBox1" runat="server"> </asp:ComboBox>--%> <table Style="margin: 0 auto;"> <tr> <td> <asp:ComboBox runat="server" ID="ddlFieldsList" CssClass="comboBoxInsideModalPopup" Width ="100px" DataValueField="DBFieldName"> </asp:ComboBox> </td> <td> <asp:ImageButton runat="server" ID="lbAdd" Text="+" Font-Bold="true" ForeColor="Black" ImageUrl="~/Images/Buttons/add.png"></asp:ImageButton> </td> <td> <asp:ImageButton runat="server" ID="lbRemove" Text="-" Font-Bold="true" ForeColor="Black" ImageUrl="~/Images/Buttons/minus.png"></asp:ImageButton> </td> </tr> </table> </asp:Panel> <asp:Label runat="server" ID="lblFormulaStatus"></asp:Label> <table style="width: 100%; border-style: none; border-collapse: collapse;"> <tr> <td> <asp:ImageButton ID="btnYes" runat="server" Text="Yes" ImageUrl="~/Images/ok.png" /> </td> <td> <asp:ImageButton ID="btnNo" runat="server" Text="No" ImageUrl="~/Images/cancel.png" /> </td> </tr> </table> </asp:Panel> </asp:Panel> </ContentTemplate> </asp:UpdatePanel> <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="upFormulaEditor" style="text-align: center;"> <ProgressTemplate> <img alt="" class="style1" src="../Images/gif/255.gif" /> </ProgressTemplate> </asp:UpdateProgress>