fix allegati: conteggio e size...
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,8 +1,8 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_fileUpload.ascx.cs" Inherits="WebSCR.WebUserControls.mod_fileUpload" %>
|
||||
|
||||
|
||||
<div runat="server" id="divOpenNew">
|
||||
<asp:HyperLink runat="server" ID="hlOpenNew" NavigateUrl="~/showFile" Target="_blank">Mostra Allegati</asp:HyperLink>
|
||||
<div runat="server" id="divOpenNew" class="bg-info" style="text-align: center; margin: auto; font-size:2.5em;">
|
||||
<b><asp:HyperLink runat="server" ID="hlOpenNew" NavigateUrl="~/showFile" Target="_blank"><%: numAllegati %> Allegati</asp:HyperLink></b>
|
||||
</div>
|
||||
|
||||
<div runat="server" id="divNormal">
|
||||
|
||||
@@ -55,6 +55,22 @@ namespace WebSCR.WebUserControls
|
||||
{
|
||||
grView.DataBind();
|
||||
}
|
||||
|
||||
public int numAllegati
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
try
|
||||
{
|
||||
answ = DtProxy.man.taFile.getByImpegno(memLayer.ML.QSI("idxImpegno")).Rows.Count;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
|
||||
protected void Upload(object sender, EventArgs e)
|
||||
{
|
||||
string filename = Path.GetFileName(FileUpload1.PostedFile.FileName);
|
||||
|
||||
@@ -401,16 +401,6 @@ namespace WebSCR.WebUserControls
|
||||
|
||||
refreshDetail();
|
||||
mod_giornata.doUpdate();
|
||||
#if false
|
||||
// 2016.02.03 semplificato udpate a SOLO disp periodo (zona)
|
||||
// faccio udpate SOLO SE è variata la zona...
|
||||
if (mod_dispPeriodo.Zona != mod_filtroZona.Zona)
|
||||
{
|
||||
mod_dispPeriodo.Zona = mod_filtroZona.Zona;
|
||||
mod_dispPeriodo.doUpdate();
|
||||
}
|
||||
|
||||
#endif
|
||||
}
|
||||
/// <summary>
|
||||
/// refresh detail
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user