fix caricamento dati da path e nome (incompleto x path storici)
This commit is contained in:
@@ -70,7 +70,8 @@
|
||||
<div class="clearDiv">
|
||||
<div class="divSx half">
|
||||
<asp:Label runat="server" ID="lblDataDoc" Text="Data Documento" CssClass="labelInput" /><br />
|
||||
<asp:TextBox runat="server" ID="txtDataDoc" Width="8em" ToolTip="Data Documento" TabIndex="9" />
|
||||
<asp:TextBox runat="server" ID="txtDataDoc" Width="8em" ToolTip="Data Documento" TabIndex="9" AutoPostBack="True"
|
||||
ontextchanged="txtDataDoc_TextChanged" />
|
||||
<asp:CalendarExtender runat="server" FirstDayOfWeek="Monday" ID="ceDataDoc" TargetControlID="txtDataDoc" />
|
||||
</div>
|
||||
<div class="divDx half">
|
||||
@@ -92,7 +93,7 @@
|
||||
<%--
|
||||
<div class="divSx" style="background-color: #FF3C3C; width: 100%; color: White; vertical-align: middle;
|
||||
padding: -2px;">--%>
|
||||
<asp:CheckBox runat="server" ID="chkIsRed" Text="Classificato (Red)" TabIndex="12" />
|
||||
<asp:CheckBox runat="server" ID="chkIsRed" Text="Classificato (Red)" TabIndex="12" AutoPostBack="True" oncheckedchanged="chkIsRed_CheckedChanged" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearDiv" style="background-color: #333; color: White; margin-top: 40px;">
|
||||
|
||||
@@ -74,6 +74,7 @@ namespace ETS_WS.WebUserControls
|
||||
lblFullPath.Text = pathSel.Replace("//", "/").Replace("//", "/").Replace("//", "/");
|
||||
// verifico attivazione button submin (ovvero ci sono tutti i valori...)
|
||||
btnSubmit.Visible = (tacCommesse.valore != "" && tacFasi.valore != "" && tacFonti.label != "" && txtOggetto.Text != "");
|
||||
showProto();
|
||||
}
|
||||
/// <summary>
|
||||
/// fornisce la stringa del path generato dalle selezioni
|
||||
@@ -86,8 +87,25 @@ namespace ETS_WS.WebUserControls
|
||||
string commessa = utils.cleanPathName(tacCommesse.valore);
|
||||
string fase = utils.cleanPathName(tacFasi.valore);
|
||||
string fonte = utils.cleanPathName(tacFonti.label);
|
||||
string oggetto = utils.cleanPathName(txtOggetto.Text);
|
||||
return string.Format("/{0}/{1}/{2}/{3}/", commessa, fase, fonte, oggetto); //!!!FARE!!! con nuovo formato file!!!!
|
||||
DateTime dataDoc = DateTime.Now;
|
||||
try
|
||||
{
|
||||
dataDoc=Convert.ToDateTime(txtDataDoc.Text);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
string aammgg = dataDoc.ToString("yyMMdd");
|
||||
string InOut = rblInOut.SelectedValue;
|
||||
string comPath = "";
|
||||
if (!chkIsRed.Checked)
|
||||
{
|
||||
comPath = "comunicazioni";
|
||||
}
|
||||
else
|
||||
{
|
||||
comPath = "comunicazioni_red";
|
||||
}
|
||||
return string.Format("/{0}/{1}/{2}/{3}/{4}/{5}/", commessa, comPath, fase, InOut, fonte, aammgg);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
@@ -96,6 +114,13 @@ namespace ETS_WS.WebUserControls
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void rblProto_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
showProto();
|
||||
}
|
||||
/// <summary>
|
||||
/// controlla visualizzazione protocollo
|
||||
/// </summary>
|
||||
private void showProto()
|
||||
{
|
||||
// decido se mostrare il protocollo...
|
||||
bool showProto = false;
|
||||
@@ -105,8 +130,10 @@ namespace ETS_WS.WebUserControls
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
#if false
|
||||
//clbProto.Visible = showProto;
|
||||
#endif
|
||||
lblNumProto.Visible = showProto;
|
||||
//clbProto.Visible = showProto;
|
||||
if (showProto)
|
||||
{
|
||||
saveProto();
|
||||
@@ -127,8 +154,10 @@ namespace ETS_WS.WebUserControls
|
||||
catch
|
||||
{ }
|
||||
lblNumProto.Text = string.Format("{0}-{1}", nrProto, anno);
|
||||
clbProto.text4copy = lblNumProto.Text;
|
||||
clbProto.text4btn = "Copia";
|
||||
#if false
|
||||
//clbProto.text4copy = lblNumProto.Text;
|
||||
//clbProto.text4btn = "Copia";
|
||||
#endif
|
||||
}
|
||||
/// <summary>
|
||||
/// cambio selezione IN/OUT
|
||||
@@ -137,7 +166,9 @@ namespace ETS_WS.WebUserControls
|
||||
/// <param name="e"></param>
|
||||
protected void rblInOut_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
// non faccio nulla...
|
||||
saveMetaData();
|
||||
// aggiorno
|
||||
updateVisual();
|
||||
}
|
||||
/// <summary>
|
||||
/// aggiorna dati e sposta file
|
||||
@@ -214,5 +245,27 @@ namespace ETS_WS.WebUserControls
|
||||
// salvo IN/OUT
|
||||
utils.obj.setSessionVal("metaInOut", rblInOut.SelectedValue);
|
||||
}
|
||||
/// <summary>
|
||||
/// aggiornamento data doc
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void txtDataDoc_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
saveMetaData();
|
||||
// aggiorno
|
||||
updateVisual();
|
||||
}
|
||||
/// <summary>
|
||||
/// update x check tipo classificazione "RED"
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void chkIsRed_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
saveMetaData();
|
||||
// aggiorno
|
||||
updateVisual();
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Reference in New Issue
Block a user