Completata gestione navigazione tra magazzino e mappe (con click su select...)
git-svn-id: https://keyhammer.ath.cx/svn/GMW/trunk@47 365432ac-a1b5-4ffd-bb28-6d3099d32164
This commit is contained in:
@@ -306,8 +306,6 @@ namespace GMW.WebUserControls
|
||||
DataColumnCollection colonne = tabella.Columns;
|
||||
return colonne;
|
||||
}
|
||||
#if false
|
||||
|
||||
/// <summary>
|
||||
/// inizializzazione valori di default
|
||||
/// </summary>
|
||||
@@ -315,29 +313,9 @@ namespace GMW.WebUserControls
|
||||
protected override void OnInit(EventArgs e)
|
||||
{
|
||||
base.OnInit(e);
|
||||
_idxGridView = "idxMaker";
|
||||
_tabCache = "tabMaker";
|
||||
_idxGridView = "CodMag";
|
||||
//_tabCache = "tabMaker";
|
||||
}
|
||||
/// <summary>
|
||||
/// setta selected alla riga il cui valore key è in session
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void grView_RowDataBound(object sender, GridViewRowEventArgs e)
|
||||
{
|
||||
// se riga di dati...
|
||||
if (e.Row.RowType == DataControlRowType.DataRow)
|
||||
{
|
||||
// ottengo la riga tipizzata...
|
||||
System.Data.DataRowView _drv = (System.Data.DataRowView)e.Row.DataItem;
|
||||
GTD_data.DS_applicazione.AnagMakerRow riga = (GTD_data.DS_applicazione.AnagMakerRow)_drv.Row;
|
||||
if (SteamWare.memLayer.ML.StringSessionObj(_idxGridView) == riga.idxMaker.ToString())
|
||||
{
|
||||
grView.SelectedIndex = e.Row.RowIndex;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
/// <summary>
|
||||
/// svuoto da cache post update
|
||||
/// </summary>
|
||||
@@ -349,7 +327,6 @@ namespace GMW.WebUserControls
|
||||
//SteamWare.memLayer.ML.emptyCacheVal("_tabAnagMaker");
|
||||
//SteamWare.memLayer.ML.emptyCacheVal("_tabSelMakers");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// determina se sia eliminabile il record (=non usato)
|
||||
/// </summary>
|
||||
@@ -365,12 +342,11 @@ namespace GMW.WebUserControls
|
||||
if (MagClass.magazzino.taMappe.getByCodMag(memLayer.ML.StringSessionObj("CodCS"), idxObj.ToString()).Rows.Count > 0)
|
||||
{
|
||||
answ = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -313,18 +313,31 @@ namespace GMW.WebUserControls
|
||||
protected override void OnInit(EventArgs e)
|
||||
{
|
||||
base.OnInit(e);
|
||||
_idxGridView = "IdxMappa";
|
||||
Mod_filtro1.eh_selValore += new EventHandler(Mod_filtro1_eh_selValore);
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
Mod_filtro1.ods = odsFiltro;
|
||||
}
|
||||
// se ho in cache il valore del CodMag applico filtro...
|
||||
if (memLayer.ML.isInSessionObject("CodMag_sel"))
|
||||
{
|
||||
Mod_filtro1.valore = memLayer.ML.StringSessionObj("CodMag_sel");
|
||||
fixCheckOds();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// evento selezione valore su filtro
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
void Mod_filtro1_eh_selValore(object sender, EventArgs e)
|
||||
{
|
||||
fixCheckOds();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// aggiorna l'ods da filtraggio attivo
|
||||
/// </summary>
|
||||
private void fixCheckOds()
|
||||
{
|
||||
if (Mod_filtro1.valore == "*")
|
||||
@@ -336,8 +349,6 @@ namespace GMW.WebUserControls
|
||||
ods.FilterExpression = "(CodMag LIKE '%{0}%' OR DescMappa LIKE '%{0}%' ) AND CodMag = '{1}'";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// setta selected alla riga il cui valore key è in session
|
||||
/// </summary>
|
||||
@@ -345,20 +356,17 @@ namespace GMW.WebUserControls
|
||||
/// <param name="e"></param>
|
||||
protected void grView_RowDataBound(object sender, GridViewRowEventArgs e)
|
||||
{
|
||||
#if false
|
||||
// se riga di dati...
|
||||
if (e.Row.RowType == DataControlRowType.DataRow)
|
||||
{
|
||||
// ottengo la riga tipizzata...
|
||||
System.Data.DataRowView _drv = (System.Data.DataRowView)e.Row.DataItem;
|
||||
GTD_data.DS_applicazione.AnagMakerRow riga = (GTD_data.DS_applicazione.AnagMakerRow)_drv.Row;
|
||||
if (SteamWare.memLayer.ML.StringSessionObj(_idxGridView) == riga.idxMaker.ToString())
|
||||
GMW_data.DS_magazzino.MappeRow riga = (GMW_data.DS_magazzino.MappeRow)_drv.Row;
|
||||
if (SteamWare.memLayer.ML.StringSessionObj(_idxGridView) == riga.IdxMappa.ToString())
|
||||
{
|
||||
grView.SelectedIndex = e.Row.RowIndex;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// svuoto da cache post update
|
||||
@@ -371,7 +379,6 @@ namespace GMW.WebUserControls
|
||||
//SteamWare.memLayer.ML.emptyCacheVal("_tabAnagMaker");
|
||||
//SteamWare.memLayer.ML.emptyCacheVal("_tabSelMakers");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// determina se sia eliminabile il record (=non usato)
|
||||
/// </summary>
|
||||
|
||||
@@ -11,7 +11,12 @@ namespace GMW
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
mod_anagMagazzini1.eh_selValore += new EventHandler(mod_anagMagazzini1_eh_selValore);
|
||||
}
|
||||
|
||||
void mod_anagMagazzini1_eh_selValore(object sender, EventArgs e)
|
||||
{
|
||||
Response.Redirect("anagMappe.aspx");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user