Fixed layout problem with dropdown controls
This commit is contained in:
@@ -57,6 +57,7 @@
|
||||
<Compile Include="Enums\FinancialValidationType.cs" />
|
||||
<Compile Include="Enums\GeographyLevel.cs" />
|
||||
<Compile Include="Enums\InvalidMembershipType.cs" />
|
||||
<Compile Include="Enums\LayoutDirection.cs" />
|
||||
<Compile Include="Enums\MailAuthorType.cs" />
|
||||
<Compile Include="Enums\MembershipPaymentStatus.cs" />
|
||||
<Compile Include="Enums\ObjectOptionalDataType.cs" />
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Swarmops.Common.Enums
|
||||
{
|
||||
public enum LayoutDirection
|
||||
{
|
||||
Unknown = 0,
|
||||
Horizontal,
|
||||
Vertical
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,8 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" Inherits="Swarmops.Frontend.Controls.Base.DropDown" CodeFile="DropDown.ascx.cs" %>
|
||||
<%@ Import Namespace="System.Threading" %>
|
||||
<%@ Import Namespace="Swarmops.Common.Enums" %>
|
||||
|
||||
<script language="javascript" type="text/javascript">
|
||||
<script language="javascript" type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#<%=this.ClientID %>_DropControl').combobox({
|
||||
editable: false,
|
||||
@@ -82,4 +83,6 @@
|
||||
</script>
|
||||
|
||||
|
||||
<div class="stacked-input-control"><span id="<%=this.ClientID %>_SpanDrop"><asp:DropDownList ID="DropControl" runat="server" /></span></div>
|
||||
<% if (this.Direction == LayoutDirection.Vertical){ %><div class="stacked-input-control"><% } %>
|
||||
<span id="<%=this.ClientID %>_SpanDrop"><asp:DropDownList ID="DropControl" runat="server" /></span>
|
||||
<% if (this.Direction == LayoutDirection.Vertical) { %></div><% } %>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using Swarmops.Common.Enums;
|
||||
|
||||
|
||||
namespace Swarmops.Frontend.Controls.Base
|
||||
@@ -31,8 +32,16 @@ namespace Swarmops.Frontend.Controls.Base
|
||||
get { return this.DropControl; }
|
||||
}
|
||||
|
||||
public LayoutDirection Layout { get; set; }
|
||||
|
||||
protected void Page_Load (object sender, EventArgs e)
|
||||
{
|
||||
if (this.Layout == LayoutDirection.Unknown)
|
||||
{
|
||||
this.Layout = LayoutDirection.Vertical;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ComboBudgets.ascx.cs" Inherits="Swarmops.Controls.Financial.ComboBudgets" %>
|
||||
<%@ Import Namespace="System.Threading" %>
|
||||
<%@ Import Namespace="Swarmops.Common.Enums" %>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
@@ -65,4 +66,6 @@
|
||||
|
||||
</script>
|
||||
|
||||
<div class="stacked-input-control"><span id="<%=this.ClientID %>_SpanBudgets"><select class="easyui-combotree" url="<%=this.DataUrl %>" name="DropBudgets" id="<%=this.ClientID %>_DropBudgets" animate="true" style="width:324px"></select></span></div>
|
||||
<% if (this.Layout == LayoutDirection.Vertical) { %><div class="stacked-input-control"><% } %>
|
||||
<span id="<%=this.ClientID %>_SpanBudgets"><select class="easyui-combotree" url="<%=this.DataUrl %>" name="DropBudgets" id="<%=this.ClientID %>_DropBudgets" animate="true" style="width:324px"></select></span>
|
||||
<% if (this.Layout == LayoutDirection.Vertical) { %></div><% } %>
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using Swarmops.Common.Enums;
|
||||
using Swarmops.Frontend;
|
||||
|
||||
namespace Swarmops.Controls.Financial
|
||||
@@ -44,8 +45,14 @@ namespace Swarmops.Controls.Financial
|
||||
((PageV5Base) this.Page).RegisterControl (EasyUIControl.Tree | EasyUIControl.Combo | EasyUIControl.ComboBox);
|
||||
}
|
||||
|
||||
public LayoutDirection Layout { get; set; }
|
||||
|
||||
protected void Page_Load (object sender, EventArgs e)
|
||||
{
|
||||
if (this.Layout == LayoutDirection.Unknown)
|
||||
{
|
||||
this.Layout = LayoutDirection.Vertical;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -305,7 +305,7 @@
|
||||
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="PlaceHolderMain" Runat="Server">
|
||||
|
||||
<h2><asp:Label ID="LabelHeaderInspect" runat="server" /> <Swarmops5:ComboBudgets ID="DropBudgets" OnClientSelect=" onAccountSelected " ListType="All" runat="server" /> <asp:Label ID="LabelHeaderInspectFor" runat="server" /> <asp:DropDownList runat="server" ID="DropYears"/> <asp:DropDownList runat="server" ID="DropMonths"/></h2>
|
||||
<h2><asp:Label ID="LabelHeaderInspect" runat="server" /> <Swarmops5:ComboBudgets Layout="Horizontal" ID="DropBudgets" OnClientSelect=" onAccountSelected " ListType="All" runat="server" /> <asp:Label ID="LabelHeaderInspectFor" runat="server" /> <asp:DropDownList runat="server" ID="DropYears"/> <asp:DropDownList runat="server" ID="DropMonths"/></h2>
|
||||
|
||||
<table id="gridLedgers" class="easyui-datagrid" style="width: 680px; height: 500px"
|
||||
data-options="rownumbers:false,singleSelect:false,nowrap:false,fitColumns:true,fit:false,showFooter:false,loading:false,selectOnCheck:true,checkOnSelect:true,url:'Json-InspectLedgerData.aspx'"
|
||||
@@ -344,7 +344,7 @@
|
||||
|
||||
<div id="divEditTransaction">
|
||||
<h2><asp:Label ID="LabelAddTransactionRowsHeader" runat="server" /></h2>
|
||||
<span class="content"><h2 style="border-bottom: none"><asp:Label ID="LabelAddRowAccount" runat="server" /><Swarmops5:ComboBudgets ID="BudgetAddRow" ListType="All" runat="server" />, <asp:Label ID="LabelAddRowAmount" runat="server" /> <Swarmops5:CurrencyTextBox ID="TextInsertAmount" runat="server" /> <span class="elementFloatFar"><input id="ButtonAddTransactionRow" type="button" value='#AddRow#'/></span></h2></span>
|
||||
<span class="content"><h2 style="border-bottom: none"><asp:Label ID="LabelAddRowAccount" runat="server" /><Swarmops5:ComboBudgets ID="BudgetAddRow" ListType="All" runat="server" Layout="Horizontal" />, <asp:Label ID="LabelAddRowAmount" runat="server" /> <Swarmops5:CurrencyTextBox ID="TextInsertAmount" runat="server" /> <span class="elementFloatFar"><input id="ButtonAddTransactionRow" type="button" value='#AddRow#'/></span></h2></span>
|
||||
|
||||
</div>
|
||||
<div id="divTransactionTracking">
|
||||
|
||||
Reference in New Issue
Block a user