97 lines
5.6 KiB
Plaintext
97 lines
5.6 KiB
Plaintext
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_DocsArchive.ascx.cs" Inherits="MedAP.WebUserControl.mod_DocsArchive" %>
|
|
|
|
<script type="text/javascript">
|
|
//function printPartOfPage(elementId) {
|
|
// var printContent = document.getElementById(elementId);
|
|
// var windowUrl = '';
|
|
// var uniqueName = new Date();
|
|
// var windowName = 'Print' + uniqueName.getTime();
|
|
|
|
// var printWindow = window.open(windowUrl, windowName, 'left=50,top=50,width=0,height=0');
|
|
|
|
// printWindow.document.write(printContent.innerHTML);
|
|
// printWindow.document.close();
|
|
// printWindow.focus();
|
|
// printWindow.print();
|
|
// printWindow.close();
|
|
//}
|
|
function PrintUrl(idxDoc) {
|
|
var actPath = document.URL;
|
|
actPath = actPath.replace('DocArchive', 'Print') + '?tipoDoc=FATT&idxDoc=' + idxDoc;
|
|
//var printWindow = window.open(actPath.replace('PREN', 'PREN_Print'), '_blank', 'height=600,width=800');
|
|
var printWindow = window.open(actPath, '_blank ', 'height=800,width=800');
|
|
setTimeout(function () {
|
|
printWindow.print();
|
|
printWindow.close();
|
|
}, 500);
|
|
return false;
|
|
}
|
|
</script>
|
|
<div id="printArea">
|
|
<asp:GridView ID="grView" runat="server" AutoGenerateColumns="False" DataSourceID="ods" AllowPaging="True" CssClass="table table-striped table-condensed" DataKeyNames="idxDoc" Width="100%" OnSelectedIndexChanged="grView_SelectedIndexChanged" OnSorting="grView_Sorting" OnPageIndexChanged="grView_PageIndexChanged">
|
|
<PagerStyle CssClass="active GridPager" />
|
|
<PagerSettings Mode="NumericFirstLast" />
|
|
<SelectedRowStyle CssClass="info" />
|
|
<Columns>
|
|
<asp:TemplateField>
|
|
<HeaderTemplate>
|
|
<asp:LinkButton ID="lbReset" runat="server" CssClass="btn btn-default btn-xs" OnClick="lbReset_Click" Visible="true"><i class="fa fa-refresh" aria-hidden="true"></i> RESET</asp:LinkButton>
|
|
</HeaderTemplate>
|
|
<ItemTemplate>
|
|
<asp:LinkButton runat="server" ID="lbIdxDoc1" CommandArgument='<%# Eval("idxDoc") %>' CausesValidation="False" CommandName="Select">
|
|
<asp:Label ID="lblNum" runat="server" Text='<%# Eval("num","<b>{0:000}</b>") %>' />/<asp:Label ID="lblanno" runat="server" Text='<%# Eval("anno") %>' />
|
|
<div class="fontSmall"><asp:Label ID="lblEmesso" runat="server" Text='<%# Eval("emesso", "{0:yyyy.MM.dd}") %>'></asp:Label></div>
|
|
</asp:LinkButton></ItemTemplate><ItemStyle Width="15%" />
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="numero" ItemStyle-Width="70%">
|
|
<ItemTemplate>
|
|
<asp:LinkButton runat="server" ID="lbIdxDoc2" CommandArgument='<%# Eval("idxDoc") %>' CausesValidation="False" CommandName="Select">
|
|
<div runat="server" class="row">
|
|
<div class="col-xs-8 text-left">
|
|
<asp:Label ID="lblcodCli" runat="server" Text='<%# Eval("RagSoc","<b>{0}</b>") %>' ToolTip='<%# Eval("RagSoc") %>' />
|
|
</div>
|
|
<div class="col-xs-4 text-right text-nowrap">
|
|
<asp:Label ID="lblTipo" runat="server" Text='<%# Eval("tipo") %>' ToolTip='<%# Eval("tipo") %>' />
|
|
</div>
|
|
<div class="col-xs-12 max30em text-left fontSmall">
|
|
<asp:Label ID="lblDescrizione" runat="server" CssClass="docNote " Text='<%# Bind("Descrizione") %>' ToolTip='<%# Bind("Descrizione") %>' />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</asp:LinkButton></ItemTemplate><ItemStyle Width="60%"></ItemStyle>
|
|
</asp:TemplateField>
|
|
<asp:TemplateField HeaderText="STAMPA" ItemStyle-Width="5%">
|
|
<ItemTemplate>
|
|
<asp:LinkButton runat="server" ID="lbtPrintPdf" OnClientClick='<%# Eval("idxDoc","PrintUrl({0});") %>'><i class="fa fa-print fa-2x" aria-hidden="true"></i></asp:LinkButton></ItemTemplate></asp:TemplateField><asp:TemplateField HeaderText="importo" SortExpression="netto" ItemStyle-Width="15%">
|
|
<ItemTemplate>
|
|
<div class="row text-nowrap">
|
|
<div class="col-xs-12 text-right">
|
|
<asp:LinkButton runat="server" ID="lbIdxDoc3" CommandArgument='<%# Eval("idxDoc") %>' CausesValidation="False" CommandName="Select">
|
|
<asp:Label ID="lblNetto" runat="server" Text='<%# Eval("netto", "<b>{0:C2}</b>") %>' />
|
|
</asp:LinkButton></div></div><div class="row fontStd text-nowrap">
|
|
</div>
|
|
</ItemTemplate>
|
|
<ItemStyle Width="25%"></ItemStyle>
|
|
</asp:TemplateField>
|
|
</Columns>
|
|
</asp:GridView>
|
|
</div>
|
|
<asp:ObjectDataSource runat="server" ID="ods" OldValuesParameterFormatString="original_{0}" SelectMethod="DocumentiFilt" SelectCountMethod="DocumentiFiltCount" TypeName="MedAP_data.MedAPModel" EnablePaging="true">
|
|
<SelectParameters>
|
|
<asp:ControlParameter ControlID="hfIdxCli" DefaultValue="0" Name="idxCli" PropertyName="Value" Type="Int32" />
|
|
<asp:Parameter DefaultValue="0" Name="startRowIndex" Type="Int32" />
|
|
<asp:Parameter DefaultValue="10" Name="maximumRows" Type="Int32" />
|
|
</SelectParameters>
|
|
</asp:ObjectDataSource>
|
|
<asp:HiddenField runat="server" ID="hfAnno" Value="0" />
|
|
<asp:HiddenField runat="server" ID="hfIdxCli" Value="0" />
|
|
<asp:HiddenField runat="server" ID="hfTipo" Value="*" />
|
|
<asp:HiddenField runat="server" ID="hfGruppo" Value="*" />
|
|
<asp:HiddenField runat="server" ID="hfRagSoc" Value="*" />
|
|
<asp:HiddenField runat="server" ID="hfInizio" Value="1900-01-01" />
|
|
<asp:HiddenField runat="server" ID="hfFine" Value="9999-12-31" />
|
|
<asp:HiddenField runat="server" ID="hfAperta" Value="0" />
|
|
<asp:HiddenField runat="server" ID="hfSearch" Value="*" />
|
|
<asp:HiddenField runat="server" ID="hfIdxDoc" Value="0" />
|
|
<asp:HiddenField runat="server" ID="hfCurrSort" Value="0" />
|