Cosmetics

This commit is contained in:
Rick Falkvinge
2017-09-22 20:36:29 +02:00
parent 481e2ebd64
commit 809e3d81ec
3 changed files with 13 additions and 6 deletions
@@ -36,10 +36,12 @@ public partial class Pages_v5_Finance_Json_ListInvoicesInbound : DataV5Base
StringBuilder result = new StringBuilder (16384);
string hasDoxString =
"<img src='/Images/Icons/iconshock-search-256px.png' onmouseover=\\\"this.src='/Images/Icons/iconshock-search-256px-hot.png';\\\" onmouseout=\\\"this.src='/Images/Icons/iconshock-search-256px.png';\\\" baseid='{5}' class='LocalViewDox' style='cursor:pointer' />";
"<img src='/Images/Icons/iconshock-search-256px.png' onmouseover=\\\"this.src='/Images/Icons/iconshock-search-hot-256px.png';\\\" onmouseout=\\\"this.src='/Images/Icons/iconshock-search-256px.png';\\\" baseid='{6}' class='LocalViewDox' style='cursor:pointer' />";
result.Append ("{\"rows\":[");
DateTime dueDateFormatBreakDate = DateTime.Today.AddDays(-240);
foreach (InboundInvoice invoice in _invoices)
{
result.Append("{");
@@ -54,11 +56,13 @@ public partial class Pages_v5_Finance_Json_ListInvoicesInbound : DataV5Base
//"<img id=\\\"IconUndo{5}\\\" class=\\\"LocalIconUndo LocalNew\\\" baseid=\\\"{5}\\\" height=\\\"18\\\" width=\\\"24\\\" />" +
"</span>\"",
"#" + invoice.Identity.ToString("N0"),
JsonSanitize(invoice.DueDate.ToString("MMM-dd")),
JsonSanitize(invoice.DueDate.ToString(invoice.DueDate < dueDateFormatBreakDate ? "YYYY-MMM" : "MMM-dd")),
JsonSanitize(invoice.Supplier),
JsonSanitize(invoice.Budget.Name),
JsonSanitize((invoice.AmountCents/100.0).ToString("N2")),
GetProgressTicks(invoice));
GetProgressTicks(invoice),
invoice.Identity); // Item #6 is only present in hasDoxString above
result.Append("},");
}
@@ -184,11 +184,11 @@
<thead>
<tr>
<th data-options="field:'item',width:60"><asp:Label ID="LabelGridHeaderItem" runat="server" Text="XYZ Item"/></th>
<th data-options="field:'dueDate',width:80"><asp:Label ID="LabelGridHeaderDueDate" runat="server" Text="XYZ DueDate" /></th>
<th data-options="field:'sender',width:130,sortable:true"><asp:Label ID="LabelGridHeaderBeneficiary" runat="server" Text="XYZ Beneficiary" /></th>
<th data-options="field:'dueDate',width:20"><asp:Label ID="LabelGridHeaderDueDate" runat="server" Text="XYZ DueDate" /></th>
<th data-options="field:'sender',width:140,sortable:true"><asp:Label ID="LabelGridHeaderBeneficiary" runat="server" Text="XYZ Beneficiary" /></th>
<th data-options="field:'budget',width:140,sortable:true"><asp:Label ID="LabelGridHeaderBudget" runat="server" Text="XYZ Budget" /></th>
<th data-options="field:'amount',width:100,align:'right',sortable:true,order:'asc'"><asp:Label ID="LabelGridHeaderRequested" runat="server" Text="XYZ Requested" /></th>
<th data-options="field:'progress',width:66,align:'center'"><asp:Label ID="LabelGridHeaderProgress" runat="server" Text="XYZ Progress" /></th>
<th data-options="field:'progress',width:76,align:'center'"><asp:Label ID="LabelGridHeaderProgress" runat="server" Text="XYZ Progress" /></th>
<th data-options="field:'dox',width:40,align:'center'"><asp:Label ID="LabelGridHeaderDocs" runat="server" Text="Doxyz" /></th>
<th data-options="field:'actions',width:53,align:'center'"><asp:Label ID="LabelGridHeaderActions" runat="server" Text="XYZAction" /></th>
</tr>
+3
View File
@@ -874,6 +874,9 @@
<Content Include="Images\Icons\iconshock-redshirt-128px.png" />
<Content Include="Images\Icons\iconshock-search-16px.png" />
<Content Include="Images\Icons\iconshock-search-24px.png" />
<Content Include="Images\Icons\iconshock-search-256px.png" />
<Content Include="Images\Icons\iconshock-search-disabled-256px.png" />
<Content Include="Images\Icons\iconshock-search-hot-256px.png" />
<Content Include="Images\Icons\iconshock-settings-16px.png" />
<Content Include="Images\Icons\iconshock-soldier-128px.png" />
<Content Include="Images\Icons\iconshock-star-gold-64px.png" />