<%@ Control Language="c#" CodeBehind="CalculatedMemberView.ascx.cs" AutoEventWireup="true"
    Inherits="Zap.BI.Portal.Controls.UserControls.ResourceControls.CalculatedMembers.CalculatedMemberView" %>
<%@ Register TagPrefix="zap" Namespace="Zap.BI.Portal.Controls.UserControls.ResourceControls"
    Assembly="Zap.BI.Portal" %>
<%--Expression Template Instance Editor Stack--%>
<zapWeb:TemplateInstanceStack runat="server" ID="TemplateInstanceStack" />
<%--Query Placeholders--%>
<div runat="server" id="divQueryPlaceholders" style="width: 100%">
    <table style="width: 100%">
        <tr style="height: 31px">
            <td>
            </td>
            <td>
                <table style="width: 100%; border-collapse: collapse;">
                    <tr>
                        <td>
                            <zapWeb:QueryPlaceholder ID="parentQueryPlaceholder" runat="server" Name="<%$ Resources: Controls.UserControls.ResourceControls.CalculatedMembers.CalculatedMemberText, Label_Parent %>"
                                Description="<%$ Resources: Controls.UserControls.ResourceControls.CalculatedMembers.CalculatedMemberText, Description_Parent %>" />
                        </td>
                        <td width="45">
                        </td>
                        <td>
                            <zapWeb:QueryPlaceholder ID="measureGroupPlaceholder" runat="server" Name="<%$ Resources: Controls.UserControls.ResourceControls.CalculatedMembers.CalculatedMemberText, Label_MeasureGroup %>"
                                Description="<%$ Resources: Controls.UserControls.ResourceControls.CalculatedMembers.CalculatedMemberText, Description_MeasureGroup %>" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr style="height: 31px">      
            <td>
            </td>
            <td>
                <zapWeb:QueryPlaceholder ID="overrideSetPlaceholder" runat="server" AutoResize="true"
                                         Name="<%$ Resources: Controls.UserControls.ResourceControls.CalculatedMembers.CalculatedMemberText, Label_DrillthroughOverrideSet %>" />
            </td>
        </tr>
        <tr style="height: 31px">
            <td runat="server" id="tdPlaceholderBin" style="width: 24px;">
                <zapWeb:DesignPlaceholderBin ID="queryPlaceholderBin" runat="server" />
            </td>
            <td>
                <zapWeb:QueryPlaceholder ID="membersPlaceholder" runat="server" AutoResize="true"
                    Name="<%$ Resources: Controls.UserControls.ResourceControls.CalculatedMembers.CalculatedMemberText, Label_Formula %>" />
            </td>
        </tr>        
    </table>
</div>
<table runat="server" ID="propertiesTable" class="calculatedMember-properties">
    <tr>
        <td>
            <asp:Label ID="FormatLabel" runat="server" CssClass="ui-form-label-inline" Text="<%$ Resources: Controls.ControlText, Label_NumberFormat %>" />&nbsp;
            <asp:TextBox ID="Format" runat="server" AutoPostBack="true" OnTextChanged="Format_TextChanged" CssClass="numberFormat ui-input-box" />
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="DisplayFolderLabel" runat="server" CssClass="ui-form-label-inline" Text="<%$ Resources: Controls.ControlText, Label_DisplayFolder %>"
                ToolTip="<%$ Resources: Controls.ControlText, ToolTip_DisplayFolder %>" />&nbsp;
            <asp:TextBox ID="DisplayFolder" runat="server" CssClass="unsavedChangesOnChange ui-input-box" />
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="CalculationOrderLabel" runat="server" CssClass="ui-form-label-inline" Text="<%$ Resources: Controls.UserControls.ResourceControls.ExpressionTemplates.ExpressionTemplateText, Label_CalculationOrderOptional %>"
                ToolTip="<%$ Resources: Controls.UserControls.ResourceControls.ExpressionTemplates.ExpressionTemplateText, ToolTip_CalculationOrder %>" />&nbsp;
            <zapWeb:JavaScriptBootstrap runat="server" ID="calculationOrderBootstrap" />
            <asp:HiddenField runat="server" ID="CalculationOrderHiddenField" />
        </td>
    </tr>
</table>
<zap:PivotTableInteractive runat="server" ID="pivotTable" />