completata gestione filtraggio da stato schede...
This commit is contained in:
@@ -255,40 +255,7 @@ namespace CMS_SC.WebUserControls
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
#if false
|
||||
/// <summary>
|
||||
/// save + edit del record precedente (se possibile)
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnUp_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (grView.EditIndex > 0)
|
||||
{
|
||||
// salvo
|
||||
grView.UpdateRow(grView.EditIndex, false);
|
||||
// seleziono nuovo record x edit
|
||||
grView.EditIndex = grView.EditIndex - 1;
|
||||
//grView.FindControl("txtValoreMis").Focus();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// save + edit del record successivo (se possibile)
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnDown_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (grView.EditIndex < pageSize - 1)
|
||||
{
|
||||
// salvo
|
||||
grView.UpdateRow(grView.EditIndex, false);
|
||||
// seleziono nuovo record x edit
|
||||
grView.EditIndex = grView.EditIndex + 1;
|
||||
//grView.FindControl("txtValoreMis").Focus();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// save del record
|
||||
/// </summary>
|
||||
@@ -311,15 +278,66 @@ namespace CMS_SC.WebUserControls
|
||||
grView.DataBind();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#if false
|
||||
protected void lbFileMan_DataBinding(object sender, EventArgs e)
|
||||
/// <summary>
|
||||
/// recupera codice scheda/vers da scheda/vers/num
|
||||
/// </summary>
|
||||
/// <param name="codSchedaVers"></param>
|
||||
/// <returns></returns>
|
||||
protected string getPathDoc(string codSchedaVers)
|
||||
{
|
||||
LinkButton lnkBtn = (LinkButton)sender;
|
||||
lnkBtn.Attributes.Add("target", "_blank");
|
||||
//lnkBtn.Attributes.Add("onClick", "window.open (this.href, 'Files', 'height=500,width=400,scrollbars'); return false");
|
||||
}
|
||||
#endif
|
||||
string answ = "";
|
||||
string codScheda = "";
|
||||
if (codSchedaVers != "")
|
||||
{
|
||||
try
|
||||
{
|
||||
codScheda = codSchedaVers.Substring(0, codSchedaVers.LastIndexOf("."));
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
if (codScheda != "")
|
||||
{
|
||||
try
|
||||
{
|
||||
answ = DtProxy.man.taASC.getByCodScheda(codScheda)[0].Path;
|
||||
}
|
||||
catch
|
||||
{
|
||||
answ = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// verifica se ci sia un doc da mostrare...
|
||||
/// </summary>
|
||||
/// <param name="codSchedaVers"></param>
|
||||
/// <returns></returns>
|
||||
public bool hasDoc(object _currCodSchedaVers)
|
||||
{
|
||||
bool answ = false;
|
||||
string pathDoc = getPathDoc(_currCodSchedaVers.ToString());
|
||||
if (pathDoc != "")
|
||||
{
|
||||
answ = DtProxy.notNullDocPath(pathDoc);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// link URL doc da mostrare...
|
||||
/// </summary>
|
||||
/// <param name="codSchedaVers"></param>
|
||||
/// <returns></returns>
|
||||
public string urlDoc(object _currCodSchedaVers)
|
||||
{
|
||||
string answ = "";
|
||||
string pathDoc = getPathDoc(_currCodSchedaVers.ToString());
|
||||
if (pathDoc != "")
|
||||
{
|
||||
answ = DtProxy.getDocPath(pathDoc);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user