Update con gestione completa e corretta della visualizzazione di magazzino, aggiunte figure blu di sfondo

git-svn-id: https://keyhammer.ath.cx/svn/GMW/trunk@85 365432ac-a1b5-4ffd-bb28-6d3099d32164
This commit is contained in:
samuele
2010-06-03 16:15:22 +00:00
parent 79302168ec
commit fcec3d87f7
10 changed files with 47 additions and 9 deletions
+2
View File
@@ -568,6 +568,8 @@
<Content Include="images\bg_bright.jpg" />
<Content Include="images\bg_dark.jpg" />
<Content Include="images\bluGrad32.png" />
<Content Include="images\blu_20.png" />
<Content Include="images\blu_80.png" />
<Content Include="images\cancel.png" />
<Content Include="images\cancel_l.png" />
<Content Include="images\cancel_m.png" />
+12 -5
View File
@@ -118,21 +118,21 @@
.cellaVerde
{
text-align: center;
font-size: 7pt;
font-size: 8pt;
height: 80px;
background-image: url(images/verde_80.png);
}
.cellaGialla
{
text-align: center;
font-size: 7pt;
font-size: 8pt;
height: 80px;
background-image: url(images/giallo_80.png);
}
.cellaRossa
{
text-align: center;
font-size: 7pt;
font-size: 8pt;
height: 80px;
background-image: url(images/rosso_80.png);
color: White;
@@ -140,15 +140,22 @@
.cellaGrigia
{
text-align: center;
font-size: 7pt;
font-size: 8pt;
height: 80px;
background-image: url(images/grigio_80.png);
color: White;
}
.cellaBlu
{
text-align: center;
font-size: 8pt;
height: 80px;
background-image: url(images/blu_80.png);
}
.cellaBianca
{
text-align: center;
font-size: 7pt;
font-size: 8pt;
font-weight: bold;
}
/*group search provider*/
@@ -68,6 +68,7 @@ namespace GMW.WebUserControls
/// </summary>
private void aggiornaCelleOccupate()
{
string ParticolareSel = memLayer.ML.StringSessionObj("Particolare_sel");
// ottengo elenco dettaglio UDC che occupano il blocco...
DS_magazzino.v_UdcDetailDataTable tabUdc = MagClass.magazzino.taDettUDC.getUdcDetailByIdxBlocco(IdxBlocco);
// SE ci sono righe aggiorno il blocco...
@@ -76,7 +77,16 @@ namespace GMW.WebUserControls
// ...sovrascrivo valori di default
foreach (DS_magazzino.v_UdcDetailRow riga in tabUdc)
{
BloccoCelle[riga.X - 1, riga.Y - 1].Css = "cellaRossa";
// controllo se nella cella ci sia il aprticolare selezionato...
if (ParticolareSel == riga.Particolare)
{
BloccoCelle[riga.X - 1, riga.Y - 1].Css = "cellaBlu";
}
else
{
// se NON C'E' alcun particolare selezionato ...
BloccoCelle[riga.X - 1, riga.Y - 1].Css = "cellaRossa";
}
BloccoCelle[riga.X - 1, riga.Y - 1].Label = string.Format("{0:#}", riga.Qta);
BloccoCelle[riga.X - 1, riga.Y - 1].ToolTip = string.Format("{2} - {0} {1:#}pz", riga.UDC, riga.Qta, riga.Particolare);
}
@@ -87,6 +97,7 @@ namespace GMW.WebUserControls
/// </summary>
private void disegnaTabella()
{
tblBlocco.Rows.Clear();
// metto prima riga con indicazione valori NUMERICI delle colonne
setupRigaConteggioX();
// ciclo nel mio array e creo di conseguenza le celle di tabella
@@ -37,6 +37,8 @@ namespace GMW.WebUserControls
{
base.OnInit(e);
mod_filtroBlock.eh_selValore += new EventHandler(mod_filtroBlock_eh_selValore);
mod_paretoUdcBlocco1.eh_selValore += new EventHandler(mod_paretoUdcBlocco1_eh_selValore);
mod_paretoUdcBlocco1.eh_resetSelezione += new EventHandler(mod_paretoUdcBlocco1_eh_resetSelezione);
if (!Page.IsPostBack)
{
lnkReturn.Text = traduci("TornaStatoMag");
@@ -59,6 +61,22 @@ namespace GMW.WebUserControls
updateControlli();
}
}
void mod_paretoUdcBlocco1_eh_resetSelezione(object sender, EventArgs e)
{
// aggiorno la visualizzazione del magazzino!
mod_dettCelleBlocco1.doUpdate();
}
/// <summary>
/// aggiorna in caso di selezione valore x un dato Particolare
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
void mod_paretoUdcBlocco1_eh_selValore(object sender, EventArgs e)
{
// aggiorno la visualizzazione del magazzino!
mod_dettCelleBlocco1.doUpdate();
}
void mod_filtroBlock_eh_selValore(object sender, EventArgs e)
{
// salvo in sessione il valore selezionato...
@@ -18,7 +18,7 @@
<asp:TemplateField ShowHeader="False">
<HeaderTemplate>
<asp:Button ID="btnReset" runat="server" Text='<%# traduci("Reset") %>' OnClick="btnReset_Click"
Visible="false" />
Visible="true" />
</HeaderTemplate>
<ItemTemplate>
<asp:ImageButton ID="imgSelect" runat="server" CausesValidation="False" CommandName="Select"
@@ -207,8 +207,8 @@ namespace GMW.WebUserControls
// salvo in session il valore selezionato...
SteamWare.memLayer.ML.setSessionVal(string.Format("{0}_sel", _idxGridView), grView.SelectedValue, true);
// salvo anche codBlocco...
string codBlocco = MagClass.magazzino.taBlocchi.getByIdx(Convert.ToInt32(grView.SelectedValue))[0].CodMag;
SteamWare.memLayer.ML.setSessionVal("CodMag_sel", codBlocco, true);
string codMag = MagClass.magazzino.taBlocchi.getByIdx(memLayer.ML.IntSessionObj("IdxBlocco_sel"))[0].CodMag;
SteamWare.memLayer.ML.setSessionVal("CodMag_sel", codMag, true);
// sollevo evento nuovo valore...
if (eh_selValore != null)
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 1010 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.