update x gestione smart list

git-svn-id: https://keyhammer.ath.cx/svn/GMW/trunk@408 365432ac-a1b5-4ffd-bb28-6d3099d32164
This commit is contained in:
samuele
2011-12-28 18:15:57 +00:00
parent 81063fa93b
commit 5cea5e7518
37 changed files with 456 additions and 6 deletions
+17
View File
@@ -343,6 +343,23 @@
<Content Include="mazzAppSettingsTK.config" />
</ItemGroup>
<ItemGroup>
<Content Include="images\new_l.png" />
<Content Include="images\new_m.png" />
<Content Include="images\new_s.png" />
<Content Include="images\ui-bg_diagonals-thick_18_b81900_40x40.png" />
<Content Include="images\ui-bg_diagonals-thick_20_666666_40x40.png" />
<Content Include="images\ui-bg_flat_10_000000_40x100.png" />
<Content Include="images\ui-bg_glass_100_f6f6f6_1x400.png" />
<Content Include="images\ui-bg_glass_100_fdf5ce_1x400.png" />
<Content Include="images\ui-bg_glass_65_ffffff_1x400.png" />
<Content Include="images\ui-bg_gloss-wave_35_f6a828_500x100.png" />
<Content Include="images\ui-bg_highlight-soft_100_eeeeee_1x100.png" />
<Content Include="images\ui-bg_highlight-soft_75_ffe45c_1x100.png" />
<Content Include="images\ui-icons_222222_256x240.png" />
<Content Include="images\ui-icons_228ef1_256x240.png" />
<Content Include="images\ui-icons_ef8c08_256x240.png" />
<Content Include="images\ui-icons_ffd27a_256x240.png" />
<Content Include="images\ui-icons_ffffff_256x240.png" />
<Content Include="mazzConnectionStringsTK.config" />
<Content Include="SmartList.aspx" />
<Content Include="WebUserControls\mod_smartList.ascx" />
+2
View File
@@ -1,7 +1,9 @@
<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/CompactBCode.Master" AutoEventWireup="true" CodeBehind="SmartList.aspx.cs" Inherits="GMW_Term.SmartList" %>
<%@ Register src="WebUserControls/mod_smartList.ascx" tagname="mod_smartList" tagprefix="uc1" %>
<%@ Register src="WebUserControls/mod_barcode.ascx" tagname="mod_barcode" tagprefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="body" runat="server">
<uc2:mod_barcode ID="mod_barcode1" runat="server" />
<uc1:mod_smartList ID="mod_smartList1" runat="server" />
</asp:Content>
+24 -2
View File
@@ -1,9 +1,9 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SteamWare;
namespace GMW_Term
{
@@ -11,7 +11,29 @@ namespace GMW_Term
{
protected void Page_Load(object sender, EventArgs e)
{
// imposto valori visibilità barcode specifici (nascondo testo...)
mod_barcode1.showHeaderText = true;
mod_barcode1.showNoteText = true;
// imposto controllo valori scansionati
mod_barcode1.eh_scannedUdc += new EventHandler(mod_barcode1_eh_scannedUdc);
mod_barcode1.eh_scannedUser += new EventHandler(mod_barcode1_eh_scannedUser);
mod_barcode1.eh_resetUser += new EventHandler(mod_barcode1_eh_resetUser);
}
void mod_barcode1_eh_resetUser(object sender, EventArgs e)
{
Response.Redirect("~/Barcode.aspx");
}
void mod_barcode1_eh_scannedUser(object sender, EventArgs e)
{
Response.Redirect("~/Home.aspx");
}
void mod_barcode1_eh_scannedUdc(object sender, EventArgs e)
{
Response.Redirect("~/SmartList.aspx");
}
}
}
+9
View File
@@ -13,6 +13,15 @@ namespace GMW_Term {
public partial class SmartList {
/// <summary>
/// mod_barcode1 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::GMW_Term.WebUserControls.mod_barcode mod_barcode1;
/// <summary>
/// mod_smartList1 control.
/// </summary>
+60
View File
@@ -468,3 +468,63 @@
color: Red;
font-weight: bold;
}
.clearAll
{
clear: both;
height: 0px;
}
.styleBtnComposito
{
font-family: Trebuchet MS, Tahoma, Verdana, Arial, sans-serif;
font-size: 0.9em;
font-weight:bold;
display: inline-block;
position: relative;
padding: 0;
margin: .2em;
text-decoration: none !important;
cursor: pointer;
text-align: center;
zoom: 1;
overflow: visible;
border: solid 1px #696969;
background: #f6f6f6 url(images/ui-bg_glass_100_f6f6f6_1x400.png) 50% 50% repeat-x;
color: Black; /* was #1c94c4 */
-moz-border-radius-topleft: 4px;
-webkit-border-top-left-radius: 4px;
-khtml-border-top-left-radius: 4px;
border-top-left-radius: 4px;
-moz-border-radius-topright: 4px;
-webkit-border-top-right-radius: 4px;
-khtml-border-top-right-radius: 4px;
border-top-right-radius: 4px;
-moz-border-radius-bottomleft: 4px;
-webkit-border-bottom-left-radius: 4px;
-khtml-border-bottom-left-radius: 4px;
border-bottom-left-radius: 4px;
-moz-border-radius-bottomright: 4px;
-webkit-border-bottom-right-radius: 4px;
-khtml-border-bottom-right-radius: 4px;
border-bottom-right-radius: 4px;
padding-top: .2em;
padding-right: .4em;
padding-bottom: .2em;
padding-left: .4em;
}
.styleBtnComposito:hover
{
color: White;
background-image: none;
background-color: #696969;
}
.styleBtnComposito:active
{
position:relative;
top:1px;
color: Yellow;
background-image: none;
background-color: #ACACAC;
}
+4
View File
@@ -116,6 +116,10 @@
<add key ="PrelDepoTermEnabled" value="true"/>
<!--codice per barcode chiusura lista prelievo-->
<add key ="closeCodeLdp" value="CLZ"/>
<!--setup LDP Smart-->
<add key ="LdpSmartTipoLDP" value="00-Smart" />
<add key ="LdpSmartDest" value="C001" />
<add key ="LdpSmartCella" value="LPX010101" />
<!--Setup installazione-->
<add key="passkey" value="pi=314" />
<add key="CodCS" value="SP" />
+1 -1
View File
@@ -3,7 +3,7 @@
<asp:Button ID="btn1" runat="server" CssClass="btnBarcodeBigWide" OnClick="btn1_Click"
AccessKey="1" />
</div>
<div style="clear: both;" height="0px">
<div id="cl1" class="clearAll">
</div>
<div id="3" class="quadro3" style="float: left;">
<asp:Button ID="btn3" runat="server" CssClass="btnListBig" OnClick="btn3_Click1" />
@@ -1,2 +1,51 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_smartList.ascx.cs" Inherits="GMW_Term.WebUserControls.mod_smartList" %>
prova prova prova
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_smartList.ascx.cs"
Inherits="GMW_Term.WebUserControls.mod_smartList" %>
<div style="font-size: normal">
<div>
<div style="float: left;">
<asp:Label runat="server" ID="lblTotColli" />
</div>
<div style="float: right;">
<b>
<asp:Label runat="server" ID="lblNumColli" />
</b>
</div>
</div>
<div id="Div1" class="clearAll">
</div>
<div>
<div style="float: left;">
<asp:Label runat="server" ID="lblParticolari" />
</div>
<div style="float: right;">
<asp:Label runat="server" ID="lblNumPart" />
</div>
</div>
<div id="cl1" class="clearAll">
</div>
<div>
<div class="errore">
<asp:Label runat="server" ID="lblErrore" />
</div>
</div>
<div id="Div3" class="clearAll">
</div>
<div>
<div style="float: left;">
<asp:LinkButton ID="btnGeneraListe" runat="server" OnClick="btnGeneraListe_Click"
CssClass="styleBtnComposito">
<img src="images/new_m.png" style="border-style: none; margin-right: 0.2em;" width="13px"
height="13px" />
<asp:Label ID="lblGeneraListe" runat="server" />
</asp:LinkButton>
</div>
<div style="float: right;">
<asp:LinkButton ID="btnResetListe" runat="server" OnClick="btnResetListe_Click"
CssClass="styleBtnComposito">
<img src="images/cancel_m.png" style="border-style: none; margin-right: 0.2em;" width="13px"
height="13px" />
<asp:Label ID="lblResetListe" runat="server" />
</asp:LinkButton>
</div>
</div>
</div>
@@ -4,14 +4,193 @@ using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SteamWare;
using GMW_data;
namespace GMW_Term.WebUserControls
{
public partial class mod_smartList : System.Web.UI.UserControl
{
/// <summary>
/// elenco UDC letti a barcode da cui creare Smart LDP
/// </summary>
public Dictionary<string, string> elencoUdcSmartLDP
{
get
{
Dictionary<string, string> answ = new Dictionary<string, string>();
try
{
answ = (Dictionary<string, string>)memLayer.ML.objSessionObj("elencoUdcSmartLDP");
}
catch
{ }
return answ;
}
set
{
memLayer.ML.setSessionVal("elencoUdcSmartLDP", value);
}
}
/// <summary>
/// elenco PARTICOLARI per cui creare Smart LDP
/// </summary>
public Dictionary<string, string> elencoParticolariSmartLDP
{
get
{
Dictionary<string, string> answ = new Dictionary<string, string>();
try
{
answ = (Dictionary<string, string>)memLayer.ML.objSessionObj("elencoParticolariSmartLDP");
}
catch
{ }
return answ;
}
set
{
memLayer.ML.setSessionVal("elencoParticolariSmartLDP", value);
}
}
/// <summary>
/// wrapper traduzione termini
/// </summary>
/// <param name="lemma"></param>
/// <returns></returns>
public string traduci(string lemma)
{
return user_std.UtSn.Traduci(lemma);
}
/// <summary>
/// chiamata principale
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Page_Load(object sender, EventArgs e)
{
updatePackListStatus();
}
/// <summary>
/// aggiorna lo stato della packing list corrente
/// </summary>
private void updatePackListStatus()
{
// recupero barcode e controllo sia valido
string barcode = memLayer.ML.StringSessionObj("UDC_sel");
string particolare = "";
bool barcodeOk = MagClass.magazzino.checkUDC(barcode);
Dictionary<string, string> elencoUdc = elencoUdcSmartLDP;
Dictionary<string, string> elencoParticolari = elencoParticolariSmartLDP;
if (barcodeOk)
{
try
{
// calcolo particolare
particolare = MagClass.magazzino.getParticolareByUDC(barcode);
}
catch
{ }
if (particolare != "")
{
/* ***************************************************
* Ricalcola e salva:
* - elenco UDC
* - elenco particolari
* ***************************************************/
// controllo se vada aggiunto UDC
if (!elencoUdc.ContainsKey(barcode))
{
// aggiungo nuovo barcode e salvo
elencoUdc.Add(barcode, particolare);
elencoUdcSmartLDP = elencoUdc;
}
// controllo se vada aggiunto particolare
if (!elencoParticolari.ContainsKey(particolare))
{
// aggiungo nuovo particolare e salvo
elencoParticolari.Add(particolare, particolare);
elencoParticolariSmartLDP = elencoParticolari;
}
lblErrore.Visible = false;
}
}
//update visualizzazione
/* ***************************************************
* Aggiorna:
* - tot UDC
* - tot particolari
* ***************************************************/
lblGeneraListe.Text = traduci("lblGeneraListe");
lblResetListe.Text = traduci("lblResetListe");
lblTotColli.Text = traduci("lblTotColli");
lblNumColli.Text = string.Format("{0} UDC", elencoUdcSmartLDP.Count);
lblParticolari.Text = traduci("lblParticolari");
lblNumPart.Text = string.Format("{0} {1}", elencoParticolariSmartLDP.Count, traduci("particolari"));
#if false
lblListaAttiva.Text = traduci("ListaPrel");
hlListaAttiva.Text = traduci("noListActive");
lblDest.Text = "";
lblProd.Text = "";
lblPezzi.Text = "";
try
{
// leggo una riga...
DS_magazzino.ElencoListePrelievoRow riga = MagClass.magazzino.taElencoListePrelievo.getByCodLista(MagClass.magazzino.codListaAttivaUtente)[0];
lblDest.Text = riga.Destinatario;
lblProd.Text = riga.Particolare;
lblPezzi.Text = string.Format("<b>{0}</b>/{1} pz", riga.Prelevato, riga.QtaTot);
hlListaAttiva.Text = MagClass.magazzino.codListaAttivaUtente;
}
catch
{ }
#endif
// reload pagina?
}
/// <summary>
/// Generazione delle liste di prelievo
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnGeneraListe_Click(object sender, EventArgs e)
{
}
/// <summary>
/// reset UDC x le liste di prelievo
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnResetListe_Click(object sender, EventArgs e)
{
}
#if false
// controllo se barcode è ok x LDP corrente...
if (MagClass.magazzino.verificaDatiUdc(MagClass.magazzino.codListaAttivaUtente, barcode))
{
MagClass.magazzino.confermaUdcPrelevatoPerLista(MagClass.magazzino.codListaAttivaUtente, barcode);
lblErrore.Visible = false;
}
else
{
// salvo errore
lblErrore.Visible = true;
lblErrore.Text = traduci("BarcodeNonValidoLDP");
}
// svuoto barcode selezionato
memLayer.ML.emptySessionVal("Barcode_sel");
#endif
}
}
@@ -12,5 +12,86 @@ namespace GMW_Term.WebUserControls {
public partial class mod_smartList {
/// <summary>
/// lblTotColli 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.Label lblTotColli;
/// <summary>
/// lblNumColli 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.Label lblNumColli;
/// <summary>
/// lblParticolari 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.Label lblParticolari;
/// <summary>
/// lblNumPart 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.Label lblNumPart;
/// <summary>
/// lblErrore 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.Label lblErrore;
/// <summary>
/// btnGeneraListe 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.LinkButton btnGeneraListe;
/// <summary>
/// lblGeneraListe 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.Label lblGeneraListe;
/// <summary>
/// btnResetListe 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.LinkButton btnResetListe;
/// <summary>
/// lblResetListe 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.Label lblResetListe;
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 260 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 251 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 178 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 125 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 129 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

+4
View File
@@ -66,6 +66,10 @@
<add key ="PrelDepoTermEnabled" value="true"/>
<!--codice per barcode chiusura lista prelievo-->
<add key ="closeCodeLdp" value="CLZ"/>
<!--setup LDP Smart-->
<add key ="LdpSmartTipoLDP" value="00-Smart" />
<add key ="LdpSmartDest" value="C001" />
<add key ="LdpSmartCella" value="LPX010101" />
<!--Setup installazione-->
<add key="passkey" value="pi=314" />
<add key="CodCS" value="MA" />
+4
View File
@@ -66,6 +66,10 @@
<add key="PrelDepoTermEnabled" value="true" />
<!--codice per barcode chiusura lista prelievo-->
<add key="closeCodeLdp" value="CLOSE" />
<!--setup LDP Smart-->
<add key ="LdpSmartTipoLDP" value="00-Smart" />
<add key ="LdpSmartDest" value="C001" />
<add key ="LdpSmartCella" value="LPX010101" />
<!--Setup installazione-->
<add key="passkey" value="pi=314" />
<add key="CodCS" value="SP" />
+4
View File
@@ -66,6 +66,10 @@
<add key="PrelDepoTermEnabled" value="true" />
<!--codice per barcode chiusura lista prelievo-->
<add key="closeCodeLdp" value="CLZ" />
<!--setup LDP Smart-->
<add key ="LdpSmartTipoLDP" value="00-Smart" />
<add key ="LdpSmartDest" value="C001" />
<add key ="LdpSmartCella" value="LPX010101" />
<!--Setup installazione-->
<add key="passkey" value="pi=314" />
<add key="CodCS" value="TK" />
Binary file not shown.
+16 -1
View File
@@ -568,7 +568,22 @@ namespace GMW_data
}
return answ;
}
/// <summary>
/// restituisce particolare da UDC
/// </summary>
/// <param name="UDC"></param>
/// <returns></returns>
public string getParticolareByUDC(string UDC)
{
string answ = "";
try
{
answ = (taCartellini.getDetailsUdcByUdc(UDC)[0].Particolare);
}
catch
{ }
return answ;
}
#endregion
#region procedure di verifica e traduzione dati da anagrafiche
Binary file not shown.
Binary file not shown.