Completata versione x prelievo UDC su lista
git-svn-id: https://keyhammer.ath.cx/svn/GMW/trunk@190 365432ac-a1b5-4ffd-bb28-6d3099d32164
This commit is contained in:
@@ -259,7 +259,8 @@
|
||||
<asp:Button ID="btnRettifica" runat="server" Width="100px" OnClick="btnRettifica_Click" />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Button ID="btnPreleva" runat="server" Width="100px" />
|
||||
<asp:Button ID="btnPreleva" runat="server" Width="100px"
|
||||
onclick="btnPreleva_Click" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -39,6 +39,57 @@ namespace GMW_Term.WebUserControls
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// CodLista della lsita di prelievo correntemente attiva
|
||||
/// </summary>
|
||||
protected string _CodLista
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj("CodLista_sel");
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("CodLista_sel", value);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Particolare dell'UDC correntemente selezionato
|
||||
/// </summary>
|
||||
protected string _PartUdc
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
try
|
||||
{
|
||||
answ = MagClass.magazzino.taDettUDC.getByFullUdc(_UDC, _CodCS)[0].Particolare;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Particolare della Lista di Prelievo correntemente attiva
|
||||
/// </summary>
|
||||
protected string _PartLdP
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
if (_CodLista != "")
|
||||
{
|
||||
try
|
||||
{
|
||||
answ = MagClass.magazzino.taElencoListePrelievo.getByCodLista(_CodLista)[0].Particolare;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// testo contenuto nella textbox
|
||||
/// </summary>
|
||||
public string txtScansione
|
||||
@@ -137,7 +188,7 @@ namespace GMW_Term.WebUserControls
|
||||
btnRettifica.Enabled = true;
|
||||
btnChiudi.Enabled = true;
|
||||
// button preleva abilitato SOLO SE c'è una lista di prelievo attiva per l'utente e per il particolare corrente...
|
||||
if (memLayer.ML.BoolSessionObj("ListaPrelievoAttiva"))
|
||||
if (_CodLista != "" && (_PartLdP == _PartUdc))
|
||||
{
|
||||
btnPreleva.Enabled = true;
|
||||
}
|
||||
@@ -455,14 +506,14 @@ namespace GMW_Term.WebUserControls
|
||||
protected void btnDeposita_Click(object sender, EventArgs e)
|
||||
{
|
||||
// nasconde/mostra panels
|
||||
resetinputPanel();
|
||||
resetInputPanel();
|
||||
editAttivo = tipoEditUdc.deposito;
|
||||
setupBtnChiudi();
|
||||
}
|
||||
/// <summary>
|
||||
/// resetta panel input
|
||||
/// </summary>
|
||||
private void resetinputPanel()
|
||||
private void resetInputPanel()
|
||||
{
|
||||
pnlButtons.Visible = false;
|
||||
pnlInput.Visible = true;
|
||||
@@ -478,7 +529,7 @@ namespace GMW_Term.WebUserControls
|
||||
protected void btnSposta_Click(object sender, EventArgs e)
|
||||
{
|
||||
// nasconde/mostra panels
|
||||
resetinputPanel();
|
||||
resetInputPanel();
|
||||
editAttivo = tipoEditUdc.spostamento;
|
||||
setupBtnChiudi();
|
||||
}
|
||||
@@ -535,10 +586,23 @@ namespace GMW_Term.WebUserControls
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// associa l'UDC corrente alla lsita di prelievo attualmente in essere...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnPreleva_Click(object sender, EventArgs e)
|
||||
{
|
||||
MagClass.magazzino.confermaUdcPrelevatoPerLista(_CodLista, _UDC);
|
||||
// nasconde/mostra panels
|
||||
resetInputPanel();
|
||||
editAttivo = tipoEditUdc.nd;
|
||||
setupBtnChiudi();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user