Viewing dox should work in inb, outb lists

This commit is contained in:
Rick Falkvinge
2017-11-30 16:33:35 +01:00
parent e64c67421a
commit bd40d9886e
4 changed files with 39 additions and 4 deletions
@@ -44,7 +44,7 @@ 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-hot-256px.png';\\\" onmouseout=\\\"this.src='/Images/Icons/iconshock-search-256px.png';\\\" baseid='{6}' class='LocalViewDox' style='cursor:pointer' height='20' width='20' />";
"<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='I{6}' class='LocalViewDox' style='cursor:pointer' height='20' width='20' />";
result.Append ("{\"rows\":[");
@@ -42,7 +42,7 @@ public partial class Pages_v5_Finance_Json_ListInvoicesOutbound : DataV5Base
StringBuilder result = new StringBuilder (16384);
string hasDoxString =
"<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' height='20' width='20' />";
"<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='O{6}' class='LocalViewDox' style='cursor:pointer' height='20' width='20' />";
result.Append ("{\"rows\":[");
@@ -58,6 +58,27 @@
$('div.radioOption').slideUp();
$('div#radioOption' + pickedButtonName).slideDown();
});
$("a.FancyBox_Gallery").fancybox({
'overlayShow': true,
'transitionIn': 'fade',
'transitionOut': 'fade',
'type': 'image',
'opacity': true
});
$('#tableInboundInvoices').datagrid(
{
onLoadSuccess: function() {
$(".LocalViewDox").click(function() {
$("a.FancyBox_Gallery[rel='" + $(this).attr("baseid") + "']").first().click();
});
}
}
);
});
@@ -140,7 +161,7 @@
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PlaceHolderMain" Runat="Server">
<h2><asp:Label runat="server" ID="LabelListInboundInvoicesHeader" Text="XYZ List Inbound Invoices" /></h2>
<table id="TableInboundInvoices" class="easyui-datagrid" style="width:680px;height:400px"
<table id="tableInboundInvoices" class="easyui-datagrid" style="width:680px;height:400px"
data-options="rownumbers:false,singleSelect:false,fit:false,fitWidth:true,loading:false,selectOnCheck:true,checkOnSelect:true,url:'Json-ListInvoicesInbound.aspx'"
idField="itemId">
<thead>
@@ -58,6 +58,20 @@
$('div.radioOption').slideUp();
$('div#radioOption' + pickedButtonName).slideDown();
});
$('#tableOutboundInvoices').datagrid
(
{
onLoadSuccess: function () {
$(".LocalViewDox").click(function () {
$("a.FancyBox_Gallery[rel='" + $(this).attr("baseid") + "']").first().click();
});
}
}
);
});
@@ -95,7 +109,7 @@
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PlaceHolderMain" Runat="Server">
<h2><asp:Label runat="server" ID="LabelListInboundInvoicesHeader" Text="XYZ List Inbound Invoices" /></h2>
<table id="TableInboundInvoices" class="easyui-datagrid" style="width:680px;height:400px"
<table id="TableOutboundInvoices" class="easyui-datagrid" style="width:680px;height:400px"
data-options="rownumbers:false,singleSelect:false,fit:false,fitWidth:true,loading:false,selectOnCheck:true,checkOnSelect:true,url:'Json-ListInvoicesOutbound.aspx'"
idField="itemId">
<thead>