completato filtro redattore
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
<add key="appName" value="ETS-WS" />
|
||||
<add key="SiteName" value="ETS" />
|
||||
<add key="mainRev" value="1.0" />
|
||||
<add key="minRev" value="95" />
|
||||
<add key="minRev" value="96" />
|
||||
<add key="copyRight" value="SteamWare, ETS © 2012" />
|
||||
<add key="tempUplDir" value="~/TempUploads" />
|
||||
<add key="archiveDir" value="~/ArchivioDocs" />
|
||||
|
||||
@@ -50,6 +50,7 @@ namespace ETS_WS.WebUserControls
|
||||
tacCommesse.eh_valSelezionato += new EventHandler(tacCommesse_eh_valSelezionato);
|
||||
tacFasi.eh_valSelezionato += new EventHandler(tacFasi_eh_valSelezionato);
|
||||
tacFonti.eh_valSelezionato += new EventHandler(tacFonti_eh_valSelezionato);
|
||||
tacRedattore.eh_valSelezionato += new EventHandler(tacRedattore_eh_valSelezionato);
|
||||
mod_periodoAnalisi1.eh_doUpdate += new EventHandler(mod_periodoAnalisi1_eh_doUpdate);
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
@@ -64,6 +65,15 @@ namespace ETS_WS.WebUserControls
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// salvo ricerca redattore
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
void tacRedattore_eh_valSelezionato(object sender, EventArgs e)
|
||||
{
|
||||
updateVisual();
|
||||
}
|
||||
/// <summary>
|
||||
/// cambiato periodo
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
@@ -132,12 +142,13 @@ namespace ETS_WS.WebUserControls
|
||||
{
|
||||
DateTime inizio = Convert.ToDateTime(utils.obj.StringSessionObj("_inizio"));
|
||||
DateTime fine = Convert.ToDateTime(utils.obj.StringSessionObj("_fine"));
|
||||
string commessa = utils.obj.StringSessionObj("srcCommessa");
|
||||
string fase = utils.obj.StringSessionObj("srcFase");
|
||||
string fonte = utils.obj.StringSessionObj("srcFonte");
|
||||
string InOut = utils.obj.StringSessionObj("srcInOut");
|
||||
string redattore = utils.obj.StringSessionObj("srcRedattore");
|
||||
string ricercaLibera = txtSearchAll.Text.Trim();
|
||||
string commessa = utils.emptyToStar(utils.obj.StringSessionObj("srcCommessa"));
|
||||
string fase = utils.emptyToStar(utils.obj.StringSessionObj("srcFase"));
|
||||
string fonte = utils.emptyToStar(utils.obj.StringSessionObj("srcFonte"));
|
||||
string InOut = utils.emptyToStar(utils.obj.StringSessionObj("srcInOut"));
|
||||
string redattore = utils.emptyToStar(utils.obj.StringSessionObj("srcRedattore"));
|
||||
string ricercaLibera = utils.emptyToStar(txtSearchAll.Text.Trim());
|
||||
// ricerca!
|
||||
lblTotRec.Text = utils.obj.taDoc.getBySearch_Count_only(inizio, fine, commessa, fase, fonte, InOut, redattore, ricercaLibera).ToString();
|
||||
}
|
||||
|
||||
@@ -238,7 +249,7 @@ namespace ETS_WS.WebUserControls
|
||||
if (chkRedattore.Checked)
|
||||
{
|
||||
tacRedattore.contextKey = string.Format("{0}#{1}", utils.obj.StringSessionObj("_inizio"), utils.obj.StringSessionObj("_fine"));
|
||||
chkRedattore.Text = "Elimina Filtro Redattore";
|
||||
chkRedattore.Text = "Elim. Redattore";
|
||||
tacRedattore.setFocus();
|
||||
}
|
||||
else
|
||||
|
||||
Binary file not shown.
Binary file not shown.
+14
-1
@@ -432,7 +432,20 @@ namespace ETS_Data
|
||||
{
|
||||
return originalName.Trim().Replace("&", "e").Replace(".", "").Replace(",", "").Replace(";", "").Replace(":", "").Replace("/", "-").Replace(@"\", "-");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// restituisce, in caso di null o stringa vuota, il carattere "*"
|
||||
/// </summary>
|
||||
/// <param name="original"></param>
|
||||
/// <returns></returns>
|
||||
public static string emptyToStar(string original)
|
||||
{
|
||||
string answ = original;
|
||||
if ((original == null) || (original == ""))
|
||||
{
|
||||
answ = "*";
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user