Update degli installers alla 337 x fix gestione terminalino con meno click
git-svn-id: https://keyhammer.ath.cx/svn/GMW/trunk@344 365432ac-a1b5-4ffd-bb28-6d3099d32164
This commit is contained in:
+2
-2
@@ -62,8 +62,8 @@
|
||||
<add key="appName" value="GMW" />
|
||||
<add key="SiteName" value="Ambivere"/>
|
||||
<add key="mainRev" value="1.0" />
|
||||
<add key="minRev" value="335"/>
|
||||
<add key="copyRight" value="SteamWare © 2010" />
|
||||
<add key="minRev" value="337"/>
|
||||
<add key="copyRight" value="SteamWare © 2010-2011" />
|
||||
<add key="_allowForceUser" value="true" />
|
||||
<add key="_safePages" value="jumper.aspx#unauthorized.aspx#allegati.aspx#forceUser.aspx#login.aspx#test.aspx#istruzioni.aspx#Test.aspx" />
|
||||
<add key="_commonPages" value="menu.aspx#chLang.aspx" />
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -2169,6 +2169,11 @@
|
||||
Represents the strongly named DataTable class.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:SteamWare.DataLayer_generic.serieTimeValDataTable">
|
||||
<summary>
|
||||
Represents the strongly named DataTable class.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:SteamWare.DataLayer_generic.VocabolarioRow">
|
||||
<summary>
|
||||
Represents strongly named DataRow class.
|
||||
@@ -2199,6 +2204,11 @@
|
||||
Represents strongly named DataRow class.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:SteamWare.DataLayer_generic.serieTimeValRow">
|
||||
<summary>
|
||||
Represents strongly named DataRow class.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:SteamWare.DataLayer_generic.VocabolarioRowChangeEvent">
|
||||
<summary>
|
||||
Row event argument class
|
||||
@@ -2229,6 +2239,11 @@
|
||||
Row event argument class
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:SteamWare.DataLayer_generic.serieTimeValRowChangeEvent">
|
||||
<summary>
|
||||
Row event argument class
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:SteamWare.DataLayer_genericTableAdapters.VocabolarioTableAdapter">
|
||||
<summary>
|
||||
Represents the connection and commands used to retrieve and save data.
|
||||
|
||||
Binary file not shown.
@@ -7,8 +7,8 @@
|
||||
<add key="appName" value="GMW"/>
|
||||
<add key="SiteName" value="Ambivere"/>
|
||||
<add key="mainRev" value="1.0"/>
|
||||
<add key="minRev" value="335"/>
|
||||
<add key="copyRight" value="SteamWare © 2010"/>
|
||||
<add key="minRev" value="337"/>
|
||||
<add key="copyRight" value="SteamWare © 2010-2011"/>
|
||||
<add key="_allowForceUser" value="true" />
|
||||
<add key="_safePages" value="jumper.aspx#unauthorized.aspx#allegati.aspx#forceUser.aspx#login.aspx#test.aspx#istruzioni.aspx#Test.aspx"/>
|
||||
<add key="_commonPages" value="menu.aspx#chLang.aspx" />
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -392,3 +392,14 @@
|
||||
font-size: x-small;
|
||||
font-weight:bold;
|
||||
}
|
||||
|
||||
.btnPrendiInCarico
|
||||
{
|
||||
width: 80px;
|
||||
height:20px;
|
||||
border: solid 2px red;
|
||||
background-color: #FFCCAA;
|
||||
white-space:pre;
|
||||
font-size: x-small;
|
||||
font-weight:bold;
|
||||
}
|
||||
@@ -58,8 +58,8 @@
|
||||
<add key="appName" value="GMW_Term" />
|
||||
<add key="SiteName" value="Ambivere"/>
|
||||
<add key="mainRev" value="1.0" />
|
||||
<add key="minRev" value="336" />
|
||||
<add key="copyRight" value="SteamWare © 2010" />
|
||||
<add key="minRev" value="337" />
|
||||
<add key="copyRight" value="SteamWare © 2010-2011" />
|
||||
<add key="_allowForceUser" value="true" />
|
||||
<add key="_safePages" value="jumper.aspx#unauthorized.aspx#allegati.aspx#forceUser.aspx#login.aspx#test.aspx#istruzioni.aspx#Test.aspx" />
|
||||
<add key="_commonPages" value="menu.aspx#chLang.aspx" />
|
||||
@@ -103,6 +103,12 @@
|
||||
<add key="IdxPosNewWip" value="84"/>
|
||||
<add key="IdxPosNewFinito" value="84"/>
|
||||
|
||||
<!--Permette prelievo/deposito da terminalino senza sparare barcode (con img frecce) -->
|
||||
<add key ="PrelDepoTermEnabled" value="true"/>
|
||||
|
||||
<!--codice per barcode chiusura lista prelievo-->
|
||||
<add key ="closeCodeLdp" value="clz"/>
|
||||
|
||||
<!--Setup stampa-->
|
||||
<!--<add key="printerCartTara" value="Brother HL-4050CDN"/>-->
|
||||
<add key="printerCartTara" value="\\Vostro410\PDFCreator" />
|
||||
|
||||
@@ -116,7 +116,7 @@ namespace GMW_Term.WebUserControls
|
||||
verificaCella();
|
||||
break;
|
||||
default:
|
||||
lblData.Text = traduci("Code Not Recognized") + ": " + txtScansione;
|
||||
lblData.Text = traduci("CodeNotRecognized") + ": " + txtScansione;
|
||||
txtInput.Text = "";
|
||||
break;
|
||||
}
|
||||
@@ -128,49 +128,74 @@ namespace GMW_Term.WebUserControls
|
||||
/// </summary>
|
||||
private void chekListaPrelievo()
|
||||
{
|
||||
// verifico se al lista di prelievo sia valida ed attivabile
|
||||
if (MagClass.magazzino.listaPrelevabile(txtScansione))
|
||||
// verifica preliminare: se sia una chiamata di tipo "chiudi lista" e la lista sia quella dell'utente...
|
||||
bool isCloseCmd = false;
|
||||
try
|
||||
{
|
||||
// verifico se l'utente ha delle lsite di prelievo attive e quindi NON PUO prenderne in carico altre
|
||||
if (!MagClass.magazzino.userHasActiveLP)
|
||||
isCloseCmd = txtScansione.EndsWith(memLayer.ML.confReadString("closeCodeLdp"));
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
if (isCloseCmd)
|
||||
{
|
||||
string codLista = txtScansione.Replace(memLayer.ML.confReadString("closeCodeLdp"), "");
|
||||
// controllo se sia la lista di prelievo assegnata all'utente
|
||||
bool isUserList = (codLista == MagClass.magazzino.codListaAttivaUtente);
|
||||
if (isUserList)
|
||||
{
|
||||
// indico la lista come attiva
|
||||
GMW_data.MagClass.magazzino.iniziaListaPrelievo(memLayer.ML.StringSessionObj("CodCS"), txtScansione, MagClass.magazzino.CodSoggCurrUser);
|
||||
// salvo in sessione che voglio mostrare il dettaglio della lista appena presa in carico
|
||||
memLayer.ML.setSessionVal("showDetListaPre", true, false);
|
||||
|
||||
//// mando alla pagina liste di prelievo
|
||||
//Response.Redirect("~/ListePrelievo.aspx");
|
||||
if (eh_scannedListaPrelievo != null)
|
||||
{
|
||||
eh_scannedListaPrelievo(this, new EventArgs());
|
||||
}
|
||||
// chiudo!
|
||||
GMW_data.MagClass.magazzino.completaListaPrelievo(memLayer.ML.StringSessionObj("CodCS"), codLista, MagClass.magazzino.CodSoggCurrUser);
|
||||
// indico che la lista indicata è stata chiusa
|
||||
lblData.Text = string.Format("{0}: {1}", traduci("ListClosed"), codLista);
|
||||
}
|
||||
else
|
||||
{
|
||||
// indico l'errore: operatore già con una lista attiva
|
||||
lblData.Text = "!!!" + traduci("List Still Open");
|
||||
// indico che il codice di chiusura NON è valido xché non ha in carico la lista indicata
|
||||
lblData.Text = string.Format("!!! {0}: {1}", traduci("ListNotCloseable"), codLista);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// se la lista è quella in carico rimando a quella
|
||||
if (txtScansione == MagClass.magazzino.codListaAttivaUtente)
|
||||
// verifico se al lista di prelievo sia valida ed attivabile
|
||||
if (MagClass.magazzino.listaPrelevabile(txtScansione))
|
||||
{
|
||||
// salvo in sessione che voglio mostrare il dettaglio della lista appena presa in carico
|
||||
memLayer.ML.setSessionVal("showDetListaPre", true, false);
|
||||
|
||||
//// mando alla pagina liste di prelievo
|
||||
//Response.Redirect("~/ListePrelievo.aspx");
|
||||
if (eh_scannedListaPrelievo != null)
|
||||
// verifico se l'utente ha delle lsite di prelievo attive e quindi NON PUO prenderne in carico altre
|
||||
if (!MagClass.magazzino.userHasActiveLP)
|
||||
{
|
||||
eh_scannedListaPrelievo(this, new EventArgs());
|
||||
// indico la lista come attiva
|
||||
GMW_data.MagClass.magazzino.iniziaListaPrelievo(memLayer.ML.StringSessionObj("CodCS"), txtScansione, MagClass.magazzino.CodSoggCurrUser);
|
||||
// salvo in sessione che voglio mostrare il dettaglio della lista appena presa in carico
|
||||
memLayer.ML.setSessionVal("showDetListaPre", true, false);
|
||||
|
||||
if (eh_scannedListaPrelievo != null)
|
||||
{
|
||||
eh_scannedListaPrelievo(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// indico l'errore: operatore già con una lista attiva
|
||||
lblData.Text = string.Format("!!! {0}: {1}", traduci("ListStillOpen"), MagClass.magazzino.codListaAttivaUtente);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// indico l'errore: lista non valida o non attivabile
|
||||
lblData.Text = string.Format("!!!" + "{0}" + traduci("Not Downloadable"), txtScansione);
|
||||
// se la lista è quella in carico rimando a quella
|
||||
if (txtScansione == MagClass.magazzino.codListaAttivaUtente)
|
||||
{
|
||||
// salvo in sessione che voglio mostrare il dettaglio della lista appena presa in carico
|
||||
memLayer.ML.setSessionVal("showDetListaPre", true, false);
|
||||
|
||||
if (eh_scannedListaPrelievo != null)
|
||||
{
|
||||
eh_scannedListaPrelievo(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// indico l'errore: lista non valida o non attivabile
|
||||
lblData.Text = string.Format("!!! {0}: {1}", traduci("NotDownloadable"), txtScansione);
|
||||
}
|
||||
}
|
||||
}
|
||||
txtInput.Text = "";
|
||||
|
||||
@@ -37,36 +37,43 @@
|
||||
CausesValidation="False" CommandArgument="ShowDetail" OnClick="imgAzioneLista_Click"
|
||||
CommandName="Update" ToolTip='<%# tooltipTipo(Eval("CodTipoLista")) %>' />
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center" />
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Dest/Data" SortExpression="Destinatario">
|
||||
<ItemTemplate>
|
||||
<div>
|
||||
<div style="float: left;">
|
||||
<b>
|
||||
<asp:Label ID="lblDestinatario" runat="server" Text='<%# trimma(Eval("Destinatario").ToString(), 10) %>' />
|
||||
</b>
|
||||
<asp:LinkButton ID="lnkDest" runat="server" CommandName="Update" CommandArgument="ShowDetail"
|
||||
CausesValidation="False" OnClick="lnk_Click">
|
||||
<div>
|
||||
<div style="float: left;">
|
||||
<b>
|
||||
<asp:Label ID="lblDestinatario" runat="server" Text='<%# trimma(Eval("Destinatario").ToString(), 10) %>' />
|
||||
</b>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<div style="float: left; white-space: nowrap; font-size: xx-small">
|
||||
<asp:Label ID="lblDataCreaz" runat="server" Text='<%# Eval("DataCreaz","{0:dd/MM HH:mm}") %>' />
|
||||
</div>
|
||||
<br />
|
||||
<div style="float: left; white-space: nowrap; font-size: xx-small">
|
||||
<asp:Label ID="lblDataCreaz" runat="server" Text='<%# Eval("DataCreaz","{0:dd/MM HH:mm}") %>' />
|
||||
</div>
|
||||
</asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Part/qta" SortExpression="Particolare">
|
||||
<ItemTemplate>
|
||||
<div>
|
||||
<div style="float: left;">
|
||||
<b>
|
||||
<asp:Label ID="Label1" runat="server" Text='<%# Eval("Particolare") %>' />
|
||||
</b>
|
||||
<asp:LinkButton ID="lnkPart" runat="server" CommandName="Update" CommandArgument="ShowDetail"
|
||||
CausesValidation="False" OnClick="lnk_Click">
|
||||
<div>
|
||||
<div style="float: left;">
|
||||
<b>
|
||||
<asp:Label ID="Label1" runat="server" Text='<%# Eval("Particolare") %>' />
|
||||
</b>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<div style="float: left;">
|
||||
<asp:Label ID="lblPrelevati" runat="server" Text='<%# Eval("Prelevato","{0:0}") %>' />
|
||||
<asp:Label ID="lblTotale" runat="server" Text='<%# Eval("QtaTot","/ {0:0}") %>' />
|
||||
</div>
|
||||
<br />
|
||||
<div style="float: left;">
|
||||
<asp:Label ID="lblPrelevati" runat="server" Text='<%# Eval("Prelevato","{0:0}") %>' />
|
||||
<asp:Label ID="lblTotale" runat="server" Text='<%# Eval("QtaTot","/ {0:0}") %>' />
|
||||
</div>
|
||||
</asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="StatoLista" SortExpression="CodStatoLista" ItemStyle-HorizontalAlign="Center">
|
||||
@@ -74,10 +81,11 @@
|
||||
<asp:ImageButton runat="server" ID="imgCodStatoLista" ImageUrl='<%# pathImgStato(Eval("CodStatoLista")) %>'
|
||||
CausesValidation="False" CommandArgument='<%# cmdArgStato(Eval("CodStatoLista")) %>'
|
||||
ToolTip='<%# cmdArgStato(Eval("CodStatoLista")) %>' OnClick="imgAzioneLista_Click"
|
||||
CommandName="Update" Enabled='<%# enabledStato(Eval("CodStatoLista")) %>' />
|
||||
CommandName="Update" Enabled='<%# enabledStato(Eval("CodStatoLista"), Eval("CodLista")) %>' />
|
||||
<cc1:ConfirmButtonExtender ID="cbeCambia" runat="server" ConfirmText='<%# traduci(cmdArgStato(Eval("CodStatoLista")))%>'
|
||||
TargetControlID="imgCodStatoLista" />
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center" />
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
@@ -104,6 +112,11 @@
|
||||
<div>
|
||||
<asp:Button ID="btnBarcode" runat="server" OnClick="btnBarcode_Click" CssClass="btnBarcodeSmall" />
|
||||
<asp:Button ID="btnCloseDet" runat="server" OnClick="btnCloseDet_Click" CssClass="btnHome" />
|
||||
<asp:Button ID="btnPrendiInCarico" runat="server" OnClick="btnPrendiInCarico_Click"
|
||||
CommandArgument="" CssClass="btnPrendiInCarico"
|
||||
Visible='<%# enabledPrendiInCarico() %>' />
|
||||
<cc1:ConfirmButtonExtender ID="cbeCambiaStato" runat="server" ConfirmText='<%# traduci(cmdArgStato(Eval("CodStatoLista")))%>'
|
||||
TargetControlID="btnPrendiInCarico" />
|
||||
</div>
|
||||
<div id="smallGridDetail" style="text-align: left; padding: 0px 0px 0px 0px;">
|
||||
<asp:GridView ID="grViewDetail" runat="server" AllowPaging="True" AllowSorting="True"
|
||||
|
||||
@@ -416,38 +416,12 @@ namespace GMW_Term.WebUserControls
|
||||
switch (_comando)
|
||||
{
|
||||
case "IniziaListaPrelievo":
|
||||
GMW_data.MagClass.magazzino.iniziaListaPrelievo(memLayer.ML.StringSessionObj("CodCS"), codLista, CodSoggetto);
|
||||
updateOds();
|
||||
grView.EditIndex = -1;
|
||||
grView.DataBind();
|
||||
// sollevo evento nuovo valore...
|
||||
if (eh_nuovoValore != null)
|
||||
{
|
||||
eh_nuovoValore(this, new EventArgs());
|
||||
}
|
||||
iniziaListaPrelievo(codLista, CodSoggetto);
|
||||
// blocco update!
|
||||
e.Cancel = true;
|
||||
break;
|
||||
case "CompletaListaPrelievo":
|
||||
esitoOperazione esitoCompleta = GMW_data.MagClass.magazzino.completaListaPrelievo(memLayer.ML.StringSessionObj("CodCS"), codLista, CodSoggetto);
|
||||
if (esitoCompleta == esitoOperazione.ok)
|
||||
{
|
||||
updateOds();
|
||||
grView.EditIndex = -1;
|
||||
grView.DataBind();
|
||||
// sollevo evento nuovo valore...
|
||||
if (eh_nuovoValore != null)
|
||||
{
|
||||
eh_nuovoValore(this, new EventArgs());
|
||||
}
|
||||
// tolgo dalla session la lista prelievo attuale...
|
||||
memLayer.ML.emptySessionVal("CodLista_sel");
|
||||
}
|
||||
else if (esitoCompleta == esitoOperazione.errore_noUdc)
|
||||
{
|
||||
GMW_data.MagClass.magazzino.attivaListaPrelievo(memLayer.ML.StringSessionObj("CodCS"), codLista, CodSoggetto);
|
||||
logger.lg.scriviLog(string.Format("Lista di prelievo {0} rilasciata poiché senza UDC prelevati da aprte dell'opertore {1}", codLista, CodSoggetto), tipoLog.INFO);
|
||||
}
|
||||
completaListaPrelievo(codLista, CodSoggetto);
|
||||
// blocco update!
|
||||
e.Cancel = true;
|
||||
break;
|
||||
@@ -462,6 +436,50 @@ namespace GMW_Term.WebUserControls
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// compelta e chiude x operatore la lista di prelievo
|
||||
/// </summary>
|
||||
/// <param name="codLista"></param>
|
||||
/// <param name="CodSoggetto"></param>
|
||||
private void completaListaPrelievo(string codLista, string CodSoggetto)
|
||||
{
|
||||
esitoOperazione esitoCompleta = GMW_data.MagClass.magazzino.completaListaPrelievo(memLayer.ML.StringSessionObj("CodCS"), codLista, CodSoggetto);
|
||||
if (esitoCompleta == esitoOperazione.ok)
|
||||
{
|
||||
updateOds();
|
||||
grView.EditIndex = -1;
|
||||
grView.DataBind();
|
||||
// sollevo evento nuovo valore...
|
||||
if (eh_nuovoValore != null)
|
||||
{
|
||||
eh_nuovoValore(this, new EventArgs());
|
||||
}
|
||||
// tolgo dalla session la lista prelievo attuale...
|
||||
memLayer.ML.emptySessionVal("CodLista_sel");
|
||||
}
|
||||
else if (esitoCompleta == esitoOperazione.errore_noUdc)
|
||||
{
|
||||
GMW_data.MagClass.magazzino.attivaListaPrelievo(memLayer.ML.StringSessionObj("CodCS"), codLista, CodSoggetto);
|
||||
logger.lg.scriviLog(string.Format("Lista di prelievo {0} rilasciata poiché senza UDC prelevati da aprte dell'opertore {1}", codLista, CodSoggetto), tipoLog.INFO);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// prende in carico ed inizia la lista di prelievo
|
||||
/// </summary>
|
||||
/// <param name="codLista"></param>
|
||||
/// <param name="CodSoggetto"></param>
|
||||
private void iniziaListaPrelievo(string codLista, string CodSoggetto)
|
||||
{
|
||||
GMW_data.MagClass.magazzino.iniziaListaPrelievo(memLayer.ML.StringSessionObj("CodCS"), codLista, CodSoggetto);
|
||||
updateOds();
|
||||
grView.EditIndex = -1;
|
||||
grView.DataBind();
|
||||
// sollevo evento nuovo valore...
|
||||
if (eh_nuovoValore != null)
|
||||
{
|
||||
eh_nuovoValore(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// in caso di aggiornamento verifico se sia salvato un comando inizia o completa lista prelievo...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
@@ -526,8 +544,17 @@ namespace GMW_Term.WebUserControls
|
||||
memLayer.ML.setSessionVal("CodLista_sel", codLista);
|
||||
// mostro dettaglio lista (e relativi buttons)
|
||||
pnlDetail.Visible = true;
|
||||
updateBtnPrendiInCarico(codLista);
|
||||
|
||||
// nascondo elenco lista prelievo
|
||||
pnlMaster.Visible = false;
|
||||
setBarcodeBtn();
|
||||
}
|
||||
/// <summary>
|
||||
/// fix visibilità button barcode
|
||||
/// </summary>
|
||||
private void setBarcodeBtn()
|
||||
{
|
||||
// button x barcode: visibile solo se c'è una lista di prelievo attiva...
|
||||
if (MagClass.magazzino.userHasActiveLP)
|
||||
{
|
||||
@@ -539,6 +566,26 @@ namespace GMW_Term.WebUserControls
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// aggiorna il button della lista di prelievo
|
||||
/// </summary>
|
||||
/// <param name="codLista"></param>
|
||||
private void updateBtnPrendiInCarico(string codLista)
|
||||
{
|
||||
// sistemo testo e tooltip del button x prendere in carico/chiudere...
|
||||
int codStatoLista = 0;
|
||||
try
|
||||
{
|
||||
codStatoLista = MagClass.magazzino.taElencoListePrelievo.getByCodLista(codLista)[0].CodStatoLista;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
btnPrendiInCarico.Text = "[4]-" + traduci(string.Format("txt_{0}", cmdArgStato(codStatoLista)));
|
||||
btnPrendiInCarico.AccessKey = "4";
|
||||
btnPrendiInCarico.ToolTip = traduci(cmdArgStato(codStatoLista));
|
||||
btnPrendiInCarico.CommandArgument = cmdArgStato(codStatoLista);
|
||||
cbeCambiaStato.ConfirmText = traduci(cmdArgStato(codStatoLista));
|
||||
}
|
||||
/// <summary>
|
||||
/// chiamato post modifica valore check/selezione nel selettore filtro stato
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
@@ -620,21 +667,35 @@ namespace GMW_Term.WebUserControls
|
||||
/// - se utente ne ha in carico una può solo chiuderla
|
||||
/// - altrimenti può prendere in carico una nuova
|
||||
/// </summary>
|
||||
/// <param name="codStato"></param>
|
||||
/// <param name="codStato">stato della lista</param>
|
||||
/// <param name="codLista">codice identificativo della lista</param>
|
||||
/// <returns></returns>
|
||||
public bool enabledStato(object codStato)
|
||||
public bool enabledStato(object codStato, object codLista)
|
||||
{
|
||||
int stato = Convert.ToInt32(codStato);
|
||||
bool answ = false;
|
||||
// se la lista non è in carico all'utente è ovviamente NON abilitato...
|
||||
bool listaInCarico = false;
|
||||
try
|
||||
{
|
||||
listaInCarico = MagClass.magazzino.codListaAttivaUtente == codLista.ToString();
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
|
||||
switch (stato)
|
||||
{
|
||||
case 1:
|
||||
answ = !MagClass.magazzino.userHasActiveLP;
|
||||
answ = !MagClass.magazzino.userHasActiveLP; // può prendere in carico SE non ne ha altre...
|
||||
break;
|
||||
case 2:
|
||||
answ = MagClass.magazzino.userHasActiveLP;
|
||||
if (listaInCarico)
|
||||
{
|
||||
answ = MagClass.magazzino.userHasActiveLP; // può chiudere se ce l'ha attiva...
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
return answ;
|
||||
}
|
||||
|
||||
@@ -726,6 +787,7 @@ namespace GMW_Term.WebUserControls
|
||||
{
|
||||
bool ListaInPrelievo = memLayer.ML.isInSessionObject("CodListaAttiva");
|
||||
bool ListaSelOk = (memLayer.ML.StringSessionObj("CodListaAttiva") == memLayer.ML.StringSessionObj("CodLista_sel"));
|
||||
bool buttonsEnabled = memLayer.ML.confReadBool("PrelDepoTermEnabled");
|
||||
return (ListaInPrelievo && ListaSelOk);
|
||||
}
|
||||
}
|
||||
@@ -794,8 +856,6 @@ namespace GMW_Term.WebUserControls
|
||||
/// <param name="e"></param>
|
||||
protected void btnCloseDet_Click(object sender, EventArgs e)
|
||||
{
|
||||
//pnlDetail.Visible = false;
|
||||
//grView.Visible = true;
|
||||
// ricarico x evitare proliferazione "_" su prima colonna
|
||||
Response.Redirect("~/ListePrelievo.aspx");
|
||||
}
|
||||
@@ -827,7 +887,12 @@ namespace GMW_Term.WebUserControls
|
||||
SteamWare.memLayer.ML.setSessionVal("nextObjCommand", "annullaPrelievo");
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// effettua trim della stringa
|
||||
/// </summary>
|
||||
/// <param name="testo"></param>
|
||||
/// <param name="maxChar"></param>
|
||||
/// <returns></returns>
|
||||
public string trimma(string testo, int maxChar)
|
||||
{
|
||||
string answ = testo;
|
||||
@@ -838,5 +903,69 @@ namespace GMW_Term.WebUserControls
|
||||
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// cliccato link x dettaglio dest o particolare
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void lnk_Click(object sender, EventArgs e)
|
||||
{
|
||||
LinkButton lnkb = (LinkButton)sender;
|
||||
SteamWare.memLayer.ML.setSessionVal("nextObjCommand", lnkb.CommandArgument);
|
||||
}
|
||||
/// <summary>
|
||||
/// verifica se sia abilitata la presa in carico delal lista di prelievo
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public bool enabledPrendiInCarico()
|
||||
{
|
||||
bool answ = false;
|
||||
// carico i dati che mi servono...
|
||||
string codLista = memLayer.ML.StringSessionObj("CodLista_sel");
|
||||
int codStatoLista = 0;
|
||||
try
|
||||
{
|
||||
codStatoLista = MagClass.magazzino.taElencoListePrelievo.getByCodLista(codLista)[0].CodStatoLista;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
try
|
||||
{
|
||||
answ = enabledStato(codStatoLista, codLista);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// esegue la presa in carico o la chiusura delal lista di prelievo
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnPrendiInCarico_Click(object sender, EventArgs e)
|
||||
{
|
||||
// leggo valori da sessione
|
||||
string codLista = memLayer.ML.StringSessionObj("CodLista_sel");
|
||||
// leggo il comando ed il soggetto...
|
||||
Button btn = (Button)sender;
|
||||
string _comando = btn.CommandArgument;
|
||||
string CodSoggetto = MagClass.magazzino.CodSoggCurrUser;
|
||||
// controllo cosa fare
|
||||
switch (_comando)
|
||||
{
|
||||
case "IniziaListaPrelievo":
|
||||
iniziaListaPrelievo(codLista, CodSoggetto);
|
||||
break;
|
||||
case "CompletaListaPrelievo":
|
||||
completaListaPrelievo(codLista, CodSoggetto);
|
||||
// ricarico x evitare proliferazione "_" su prima colonna
|
||||
Response.Redirect("~/ListePrelievo.aspx");
|
||||
break;
|
||||
}
|
||||
// aggiorno visualizzazione
|
||||
updateBtnPrendiInCarico(codLista);
|
||||
setBarcodeBtn();
|
||||
grViewDetail.DataBind();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -112,6 +112,24 @@ namespace GMW_Term.WebUserControls {
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnCloseDet;
|
||||
|
||||
/// <summary>
|
||||
/// btnPrendiInCarico control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnPrendiInCarico;
|
||||
|
||||
/// <summary>
|
||||
/// cbeCambiaStato control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::AjaxControlToolkit.ConfirmButtonExtender cbeCambiaStato;
|
||||
|
||||
/// <summary>
|
||||
/// grViewDetail control.
|
||||
/// </summary>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@@ -7,8 +7,8 @@
|
||||
<add key="appName" value="GMW_Term"/>
|
||||
<add key="SiteName" value="Ambivere"/>
|
||||
<add key="mainRev" value="1.0"/>
|
||||
<add key="minRev" value="336"/>
|
||||
<add key="copyRight" value="SteamWare © 2010"/>
|
||||
<add key="minRev" value="337"/>
|
||||
<add key="copyRight" value="SteamWare © 2010-2011" />
|
||||
<add key="_allowForceUser" value="true" />
|
||||
<add key="_safePages" value="jumper.aspx#unauthorized.aspx#allegati.aspx#forceUser.aspx#login.aspx#test.aspx#istruzioni.aspx#Test.aspx"/>
|
||||
<add key="_commonPages" value="menu.aspx#chLang.aspx" />
|
||||
@@ -52,6 +52,12 @@
|
||||
<add key="IdxPosNewWip" value="84"/>
|
||||
<add key="IdxPosNewFinito" value="84"/>
|
||||
|
||||
<!--Permette prelievo/deposito da terminalino senza sparare barcode (con img frecce) -->
|
||||
<add key ="PrelDepoTermEnabled" value="true"/>
|
||||
|
||||
<!--codice per barcode chiusura lista prelievo-->
|
||||
<add key ="closeCodeLdp" value="clz"/>
|
||||
|
||||
<!--Setup stampa-->
|
||||
<!--<add key="printerCartTara" value="Brother HL-4050CDN"/>-->
|
||||
<add key="printerCartTara" value="\\Vostro410\PDFCreator"/>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -330,14 +330,14 @@
|
||||
{
|
||||
"Name" = "8:Microsoft Visual Studio"
|
||||
"ProductName" = "8:GMW_Term"
|
||||
"ProductCode" = "8:{A0F61B97-AE51-4A05-98E0-FD6D524EFB93}"
|
||||
"PackageCode" = "8:{779D3101-7377-4B65-90E8-80F2A3F38F7D}"
|
||||
"ProductCode" = "8:{52061C1D-DFC5-419A-ABBE-A415A30E8D94}"
|
||||
"PackageCode" = "8:{FC2D8483-5BBD-4483-9F7E-4F9748CC7C24}"
|
||||
"UpgradeCode" = "8:{B348C50D-8DAD-4430-AEF0-60800C94CB78}"
|
||||
"RestartWWWService" = "11:TRUE"
|
||||
"RemovePreviousVersions" = "11:TRUE"
|
||||
"DetectNewerInstalledVersion" = "11:TRUE"
|
||||
"InstallAllUsers" = "11:FALSE"
|
||||
"ProductVersion" = "8:1.0.336"
|
||||
"ProductVersion" = "8:1.0.337"
|
||||
"Manufacturer" = "8:SteamWare s.r.l."
|
||||
"ARPHELPTELEPHONE" = "8:+39-035460560"
|
||||
"ARPHELPLINK" = "8:http://www.steamware.net"
|
||||
|
||||
Binary file not shown.
@@ -88,8 +88,8 @@
|
||||
<add key="welcomeApp" value="GMW_welcomeApp" />
|
||||
<add key="appName" value="GMW"/>
|
||||
<add key="mainRev" value="1.0"/>
|
||||
<add key="minRev" value="335"/>
|
||||
<add key="copyRight" value="SteamWare © 2010"/>
|
||||
<add key="minRev" value="337"/>
|
||||
<add key="copyRight" value="SteamWare © 2010-2011"/>
|
||||
<add key="_allowForceUser" value="true" />
|
||||
<add key="_safePages" value="jumper.aspx#unauthorized.aspx#allegati.aspx#forceUser.aspx#login.aspx#test.aspx#istruzioni.aspx#Test.aspx"/>
|
||||
<add key="_commonPages" value="menu.aspx#chLang.aspx" />
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace GMW_WS
|
||||
/// <summary>
|
||||
/// WebService per gestione sw bilance
|
||||
/// </summary>
|
||||
[WebService(Namespace = "http://www.steamware.net/", Description = "Web Services che funziona da collettore di tutte le richieste delle applicazioni per le bilance integrate a <b>GMW</b> v.1.0.335")]
|
||||
[WebService(Namespace = "http://www.steamware.net/", Description = "Web Services che funziona da collettore di tutte le richieste delle applicazioni per le bilance integrate a <b>GMW</b> v.1.0.337")]
|
||||
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
|
||||
[System.ComponentModel.ToolboxItem(false)]
|
||||
public class bilance : System.Web.Services.WebService
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -6,8 +6,8 @@
|
||||
<add key="welcomeApp" value="GMW_welcomeApp" />
|
||||
<add key="appName" value="GMW"/>
|
||||
<add key="mainRev" value="1.0"/>
|
||||
<add key="minRev" value="335"/>
|
||||
<add key="copyRight" value="SteamWare © 2010"/>
|
||||
<add key="minRev" value="337"/>
|
||||
<add key="copyRight" value="SteamWare © 2010-2011"/>
|
||||
<add key="_allowForceUser" value="true" />
|
||||
<add key="_safePages" value="jumper.aspx#unauthorized.aspx#allegati.aspx#forceUser.aspx#login.aspx#test.aspx#istruzioni.aspx#Test.aspx"/>
|
||||
<add key="_commonPages" value="menu.aspx#chLang.aspx" />
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -344,14 +344,14 @@
|
||||
{
|
||||
"Name" = "8:Microsoft Visual Studio"
|
||||
"ProductName" = "8:GMW_WS"
|
||||
"ProductCode" = "8:{DCB31FBD-9350-4A6E-AE6A-73847C77AC0B}"
|
||||
"PackageCode" = "8:{624B02CC-1330-4015-A97B-471CC57F00FA}"
|
||||
"ProductCode" = "8:{E7F7B0FF-B447-4DFF-B1A8-C7898773591D}"
|
||||
"PackageCode" = "8:{F09F29AB-CCC8-4A27-81ED-8D9384842D1F}"
|
||||
"UpgradeCode" = "8:{BA470335-3D4B-4C20-8152-90A5F0F14FE0}"
|
||||
"RestartWWWService" = "11:TRUE"
|
||||
"RemovePreviousVersions" = "11:TRUE"
|
||||
"DetectNewerInstalledVersion" = "11:TRUE"
|
||||
"InstallAllUsers" = "11:FALSE"
|
||||
"ProductVersion" = "8:1.0.335"
|
||||
"ProductVersion" = "8:1.0.337"
|
||||
"Manufacturer" = "8:SteamWare s.r.l."
|
||||
"ARPHELPTELEPHONE" = "8:+39-035460560"
|
||||
"ARPHELPLINK" = "8:http://www.steamware.net"
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -349,14 +349,14 @@
|
||||
{
|
||||
"Name" = "8:Microsoft Visual Studio"
|
||||
"ProductName" = "8:GMW"
|
||||
"ProductCode" = "8:{D8D1082F-BA7C-4166-B232-60B05475DCF7}"
|
||||
"PackageCode" = "8:{CE41FDCC-9385-4711-A8CD-13A2AAE900CB}"
|
||||
"ProductCode" = "8:{FAA72B3C-8593-4441-AD51-93841B7832E8}"
|
||||
"PackageCode" = "8:{E30221A4-9D39-4729-9DE2-C46A951B1C89}"
|
||||
"UpgradeCode" = "8:{C9BC0732-DC92-4336-BAC9-A05A5D2A97C0}"
|
||||
"RestartWWWService" = "11:TRUE"
|
||||
"RemovePreviousVersions" = "11:TRUE"
|
||||
"DetectNewerInstalledVersion" = "11:TRUE"
|
||||
"InstallAllUsers" = "11:FALSE"
|
||||
"ProductVersion" = "8:1.0.335"
|
||||
"ProductVersion" = "8:1.0.337"
|
||||
"Manufacturer" = "8:SteamWare s.r.l."
|
||||
"ARPHELPTELEPHONE" = "8:+39-035460560"
|
||||
"ARPHELPLINK" = "8:http://www.steamware.net"
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user