Fix visibilità docs assegnati a schede...
This commit is contained in:
@@ -109,7 +109,7 @@ namespace CMS_SC_Data
|
||||
/// <summary>
|
||||
/// verifica se CI SIA il documento...
|
||||
/// </summary>
|
||||
/// <param name="docPath"></param>
|
||||
/// <param name="docPath">The document path.</param>
|
||||
/// <returns></returns>
|
||||
public static bool notNullDocPath(object docPath)
|
||||
{
|
||||
@@ -120,7 +120,7 @@ namespace CMS_SC_Data
|
||||
try
|
||||
{
|
||||
docFilePath = string.Format(memLayer.ML.confReadString("urlSchede"), docPath);
|
||||
answ = fileMover.obj.fileExist(docFilePath);
|
||||
answ = fileMover.obj.fileExist(docFilePath.Replace(docPath.ToString(), ""), docPath.ToString());
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -2427,6 +2427,14 @@
|
||||
<param name="_nomeFile"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:SteamWare.fileMover.fileExist(System.String,System.String)">
|
||||
<summary>
|
||||
verifica se il file indicato esista in _path
|
||||
</summary>
|
||||
<param name="_path"></param>
|
||||
<param name="_nomeFile"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:SteamWare.fileMover.eliminaFile(System.String)">
|
||||
<summary>
|
||||
elimina il file indicato dalla directory di lavoro
|
||||
|
||||
Binary file not shown.
@@ -40,12 +40,13 @@
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
<div class="col-xs-6">
|
||||
<asp:DropDownList runat="server" ID="ddlSelScheda" DataSourceID="odsScheda" DataTextField="label" DataValueField="value" AutoPostBack="True" OnSelectedIndexChanged="ddlSelScheda_SelectedIndexChanged"></asp:DropDownList>
|
||||
<asp:DropDownList runat="server" ID="ddlSelScheda" DataSourceID="odsScheda" DataTextField="label" DataValueField="value" AutoPostBack="True" OnSelectedIndexChanged="ddlSelScheda_SelectedIndexChanged" Width="60%"></asp:DropDownList>
|
||||
<asp:ObjectDataSource ID="odsScheda" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByConditio" TypeName="CMS_SC_Data.DS_UtilityTableAdapters.v_selSchedaTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="ddlDossier" Name="conditio" PropertyName="SelectedValue" Type="Int32" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<asp:HyperLink runat="server" ID="hlDoc" Width="35%" Target="_blank"><i class="fa fa-external-link fa-2x"></i></asp:HyperLink>
|
||||
</div>
|
||||
<div class="col-xs-2">
|
||||
<%--<asp:DropDownList runat="server" ID="ddlFase" DataSourceID="odsFase" DataTextField="label" DataValueField="value" AutoPostBack="True" OnSelectedIndexChanged="ddlFase_SelectedIndexChanged" OnDataBound="ddlFase_DataBound" AppendDataBoundItems="true">
|
||||
|
||||
@@ -42,6 +42,27 @@ namespace CMS_SC
|
||||
mod_collaudi.CodSchedaVers = CodSchedaVers;
|
||||
mod_collaudi.Fase = Fase;
|
||||
mod_collaudi.doUpdate();
|
||||
// se ho schema mostro link (eventuale) al doc...
|
||||
hlDoc.Visible = false;
|
||||
if (CodSchedaVers != "")
|
||||
{
|
||||
string path = "";
|
||||
try
|
||||
{
|
||||
string CodScheda = CodSchedaVers.Substring(0, CodSchedaVers.LastIndexOf("."));
|
||||
path = DtProxy.man.taASC.getByCodScheda(CodScheda)[0].Path;
|
||||
}
|
||||
catch
|
||||
{
|
||||
path = "";
|
||||
}
|
||||
if (path != "")
|
||||
{
|
||||
hlDoc.ToolTip = path;
|
||||
hlDoc.NavigateUrl = DtProxy.getDocPath(path);
|
||||
hlDoc.Visible = DtProxy.notNullDocPath(path);
|
||||
}
|
||||
}
|
||||
}
|
||||
protected int IdxDossier
|
||||
{
|
||||
|
||||
Generated
+9
@@ -75,6 +75,15 @@ namespace CMS_SC {
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource odsScheda;
|
||||
|
||||
/// <summary>
|
||||
/// hlDoc control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HyperLink hlDoc;
|
||||
|
||||
/// <summary>
|
||||
/// ddlFase control.
|
||||
/// </summary>
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
TODO's
|
||||
|
||||
- fare schema funzioni/utenti
|
||||
- check:non mostra link documento (DEVE mostrarlo ovunque ci sia un riferimento alla SC)
|
||||
- aggiunta SC a dossier: se c'è già deve creare #2, #3, ...
|
||||
- SC in dossier: cancellabile (con btn come aggiungi, x SuperUser) SE non ci sono istanze misurazioni
|
||||
- Misurazioni in collaudi: eliminabile in blocco x intera SC SE NON CI SONO MISURAZIONI
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -2427,6 +2427,14 @@
|
||||
<param name="_nomeFile"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:SteamWare.fileMover.fileExist(System.String,System.String)">
|
||||
<summary>
|
||||
verifica se il file indicato esista in _path
|
||||
</summary>
|
||||
<param name="_path"></param>
|
||||
<param name="_nomeFile"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:SteamWare.fileMover.eliminaFile(System.String)">
|
||||
<summary>
|
||||
elimina il file indicato dalla directory di lavoro
|
||||
|
||||
Reference in New Issue
Block a user