Testing colspan
This commit is contained in:
@@ -85,12 +85,27 @@
|
||||
}
|
||||
});
|
||||
|
||||
$('#treeGeneralLedger').treegrid(
|
||||
{
|
||||
onLoadSuccess: function() {
|
||||
alertify.success("OnLoadSuccess");
|
||||
|
||||
$("td field:txDescription").attr("colSpan", 4);
|
||||
/*
|
||||
$("td > span.tx-description").each(function() {
|
||||
var parent = $(this).parent();
|
||||
|
||||
})*/
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
$('#<%= DropYears.ClientID %>').change(function() {
|
||||
reloadData();
|
||||
reloadInspectData();
|
||||
});
|
||||
|
||||
$('#<%= DropMonths.ClientID %>').change(function() {
|
||||
reloadData();
|
||||
reloadInspectData();
|
||||
});
|
||||
|
||||
$('#ButtonAddTransactionRow').click(function() {
|
||||
@@ -146,7 +161,7 @@
|
||||
|
||||
function onAccountSelected(newAccountId) {
|
||||
accountId = newAccountId;
|
||||
reloadData();
|
||||
reloadInspectData();
|
||||
}
|
||||
|
||||
function addTransactionRow() {
|
||||
@@ -189,7 +204,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
function reloadData() {
|
||||
function reloadInspectData() {
|
||||
var selectedYear = $('#<%= DropYears.ClientID %>').val();
|
||||
var selectedMonth = $('#<%= DropMonths.ClientID %>').val();
|
||||
|
||||
@@ -352,7 +367,7 @@
|
||||
<tr>
|
||||
<th data-options="field:'id',width:90"><asp:Label ID="LabelTreeHeaderId" runat="server" Text="ID#"/></th>
|
||||
<th data-options="field:'datetime',width:90,sortable:true"><asp:Label ID="LabelTreeHeaderDateTime" runat="server" Text="XYZ DateTime" /></th>
|
||||
<th data-options="field:'description',width:220"><asp:Label ID="LabelTreeHeaderDescriptionAccount" runat="server" Text="XYZ Description, Account" /></th>
|
||||
<th data-options="field:'txDescription',width:220"><asp:Label ID="LabelTreeHeaderDescriptionAccount" runat="server" Text="XYZ Description, Account" /></th>
|
||||
<th data-options="field:'deltaPos',width:70,align:'right'"><asp:Label ID="LabelTreeHeaderDeltaPositive" runat="server" Text="XYZ Debit" /></th>
|
||||
<th data-options="field:'deltaNeg',width:70,align:'right'"><asp:Label ID="LabelTreeHeaderDeltaNegative" runat="server" Text="XYZ Credit" /></th>
|
||||
<th data-options="field:'balance',width:80,align:'right'"><asp:Label ID="LabelTreeHeaderBalance" runat="server" Text="XYZ Balance" /></th>
|
||||
|
||||
@@ -126,7 +126,7 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers
|
||||
string description = transaction.Description;
|
||||
|
||||
result.Append("{" + String.Format(
|
||||
"\"id\":\"<span class='weight-more-emphasis'>{0:N0}</span>\",\"datetime\":\"<span class='weight-more-emphasis'>{1:MMM-dd HH:mm}</span>\",\"description\":\"<span class='weight-more-emphasis'>{2}</span>\"," +
|
||||
"\"id\":\"<span class='weight-more-emphasis'>{0:N0}</span>\",\"datetime\":\"<span class='weight-more-emphasis'>{1:MMM-dd HH:mm}</span>\",\"txDescription\":\"<span class='weight-more-emphasis tx-description'>{2}</span>\"," +
|
||||
"\"state\":\"open\",\"children\":[",
|
||||
row.Transaction.OrganizationSequenceId,
|
||||
row.TransactionDateTime,
|
||||
|
||||
Reference in New Issue
Block a user