Gestione celle occupate/libere con filtraggio in magazzino

Gestione stampa anime multiple
gestione immagine stato: aggiunte alcune utilizzabili (0, 5, 6, 99...) NON impiegate (ancora)
update vocabolario e db


git-svn-id: https://keyhammer.ath.cx/svn/GMW/trunk@454 365432ac-a1b5-4ffd-bb28-6d3099d32164
This commit is contained in:
samuele
2012-05-18 15:05:46 +00:00
parent abd89f6a2c
commit 60aa5ef586
44 changed files with 1817 additions and 738 deletions
+16
View File
@@ -91,6 +91,13 @@
<Compile Include="anime.aspx.designer.cs">
<DependentUpon>anime.aspx</DependentUpon>
</Compile>
<Compile Include="animeMult.aspx.cs">
<DependentUpon>animeMult.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="animeMult.aspx.designer.cs">
<DependentUpon>animeMult.aspx</DependentUpon>
</Compile>
<Compile Include="chLang.aspx.cs">
<DependentUpon>chLang.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
@@ -344,6 +351,13 @@
<Compile Include="WebUserControls\mod_anime.ascx.designer.cs">
<DependentUpon>mod_anime.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_animeMult.ascx.cs">
<DependentUpon>mod_animeMult.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="WebUserControls\mod_animeMult.ascx.designer.cs">
<DependentUpon>mod_animeMult.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_barPlot.ascx.cs">
<DependentUpon>mod_barPlot.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
@@ -1111,6 +1125,7 @@
<Content Include="WS\AutoCompletamento.asmx" />
</ItemGroup>
<ItemGroup>
<Content Include="animeMult.aspx" />
<Content Include="images\lista_01-PreAnim_l.png" />
<Content Include="images\lista_01-PreAnim_m.png" />
<Content Include="images\lista_01-PreAnim_s.png" />
@@ -1121,6 +1136,7 @@
<Content Include="images\lista_00-Smart_m.png" />
<Content Include="images\lista_00-Smart_s.png" />
<Content Include="Reports\CartellinoAnime.rdlc" />
<Content Include="WebUserControls\mod_animeMult.ascx" />
</ItemGroup>
<ItemGroup>
<Folder Include="logs\" />
+19
View File
@@ -55,6 +55,25 @@ namespace GMW.WS
}
return suggerimenti.ToArray();
}
[System.Web.Services.WebMethod]
public string[] elencoParticolariAnime(string prefixText, int count)
{
// inizializzo risposta
List<string> suggerimenti = new List<string>();
// proseguo SOLO SE min "MinCharAutocomplete" char...
if (count >= memLayer.ML.confReadInt("MinCharAutocomplete"))
{
// elenco candidati
DS_Utility.v_selParticolariDataTable tabParticolari = utils.obj.taSelPart.getByConditioPref("", prefixText);
// aggiungo ogni riga...
foreach (DS_Utility.v_selParticolariRow riga in tabParticolari)
{
suggerimenti.Add(riga.value);
}
}
return suggerimenti.ToArray();
}
[System.Web.Services.WebMethod]
public string[] elencoCelle(string prefixText, int count)
{
+1 -1
View File
@@ -221,7 +221,7 @@
<add key="SP_produzioneConnectionString" value="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=SP_produzione;Persist Security Info=True;User ID=sa;Password=keyhammer"/>
<add key="PermessiConnectionString" value="Data Source=10.74.82.217\sql2008r2;Initial Catalog=SP_GMWTest;Persist Security Info=True;User ID=sa;Password=keyhammer"/>
<add key="UtenteCdcConnectionString" value="Data Source=10.74.82.217\sql2008r2;Initial Catalog=SteamWare_Anagrafica;Persist Security Info=True;User ID=sa;Password=keyhammer"/>
<add key="VocabolarioConnectionString" value="Data Source=10.74.82.217\sql2008r2;Initial Catalog=Mazz_vocabolario;Persist Security Info=True;User ID=sa;Password=keyhammer"/>
<add key="VocabolarioConnectionString" value="Data Source=10.74.82.217\sql2008r2;Initial Catalog=SP_vocabolario;Persist Security Info=True;User ID=sa;Password=keyhammer"/>
</appSettings>
<connectionStrings>
<add name="GMW_data.Properties.Settings.GMWConnectionString" connectionString="Data Source=10.74.82.217\sql2008r2;Initial Catalog=SP_GMWTest;Persist Security Info=True;User ID=sa;Password=keyhammer" providerName="System.Data.SqlClient"/>
+5 -1
View File
@@ -21,7 +21,11 @@
<asp:Label runat="server" ID="lblParticolareAttivo" Font-Size="36pt" Text="- no data -" />
</div>
<div>
<asp:Label runat="server" ID="lblDescrAttivo" Font-Size="28pt" Text="- no data -" />
<asp:Label runat="server" ID="lblDescrAttivo" Font-Size="28pt" Text="- no data -"
ToolTip="particolare" />
&nbsp
<asp:Label runat="server" ID="lblDisegno" Font-Size="28pt" Text="" ForeColor="#FFFFFF"
Font-Bold="true" ToolTip="disegno" />
</div>
<div class="msgBoxBarcode">
<asp:Label runat="server" ID="lblMessaggi" Text="attesa input utente" Font-Size="18pt" />
+6 -1
View File
@@ -30,18 +30,23 @@ namespace GMW.WebUserControls
lblParticolareAttivo.Text = string.Format("Particolare selezionato <b>{0}</b>", currParticolare);
// aggiungo descrizione del particolare
string descr = "";
string disegno = "";
try
{
descr = utils.obj.taSelPart.getByConditioPref("", currParticolare)[0].label;
DS_magazzino.AnagParticolariRow riga = MagClass.magazzino.taAnagPart.likeSearch(currParticolare, memLayer.ML.StringSessionObj("CodCS"))[0];
descr = riga.DescParticolare;
disegno = string.Format("( {0} )", riga.DisegnoGrezzo);
}
catch
{ }
lblDescrAttivo.Text = descr;
lblDisegno.Text = disegno;
}
else
{
lblParticolareAttivo.Text = "...";
lblDescrAttivo.Text = "";
lblDisegno.Text = "";
}
}
/// <summary>
+9
View File
@@ -76,6 +76,15 @@ namespace GMW.WebUserControls {
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblDescrAttivo;
/// <summary>
/// lblDisegno 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 lblDisegno;
/// <summary>
/// lblMessaggi control.
/// </summary>
@@ -0,0 +1,85 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_animeMult.ascx.cs"
Inherits="GMW.WebUserControls.mod_animeMult" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Panel runat="server" ID="pnlAll" CssClass="stileAttesa" Height="100%">
<div style="height: 100%;">
<div style="float: none; text-align: center; margin: auto;">
<div class="fullPageHeader">
<div style="float: left;">
<asp:Label runat="server" ID="lblPostazione" />
</div>
<div style="float: right;">
<asp:Label runat="server" ID="lblPrinter" />
</div>
<div>
<asp:Label runat="server" ID="lblCurrentPage" Text="Pag Corrente" Font-Size="16pt"
ForeColor="White" />
<br />
<asp:HyperLink runat="server" ID="hlMenu" NavigateUrl="~/menu.aspx" Text="Main Menu" />
</div>
</div>
<div>
<asp:Label runat="server" ID="lblParticolareAttivo" Font-Size="36pt" Text="- no data -" />
</div>
<div>
<asp:Label runat="server" ID="lblDescrAttivo" Font-Size="28pt" Text="- no data -"
ToolTip="particolare" />
&nbsp
<asp:Label runat="server" ID="lblDisegno" Font-Size="28pt" Text="" ForeColor="#FFFFFF"
Font-Bold="true" ToolTip="disegno" />
</div>
<div class="msgBoxBarcode">
<asp:Label runat="server" ID="lblMessaggi" Text="attesa input utente" Font-Size="18pt" />
</div>
</div>
<div>
<div style="float: left; padding: 4px; text-align: left; width: 220px; height: 300px;">
<div style="float: left; text-align: center;">
<asp:Label runat="server" ID="lblQtaUDC" />
<br />
<asp:TextBox runat="server" ID="txtQtaUDC" Height="60px" Width="200px" Font-Size="32pt"
Style="text-align: center" TabIndex="4" AutoPostBack="True" />
<br />
<asp:Label runat="server" ID="lblNumUDC" />
<br />
<asp:TextBox runat="server" ID="txtNumUDC" Height="60px" Width="200px" Font-Size="32pt"
Style="text-align: center" TabIndex="5" AutoPostBack="True" />
</div>
</div>
<div style="float: right; padding: 4px; text-align: right; width: 220px; height: 300px;">
<div style="float: right; text-align: center;">
<asp:Label runat="server" ID="lblQta" />
<br />
<asp:TextBox runat="server" ID="txtQta" Height="60px" Width="200px" Font-Size="32pt"
Style="text-align: center" TabIndex="6" AutoPostBack="True" />
</div>
<div style="clear: both;">
<br />
</div>
<asp:Button runat="server" ID="btnStampa" Height="120px" Width="208px" Font-Size="20pt"
OnClick="btnStampa_Click" TabIndex="7" />
</div>
<div style="float: none; padding: 4px; text-align: center; margin: auto;">
<div>
<asp:Label runat="server" ID="lblBarcode" Text="Barcode" />
<br />
<asp:TextBox runat="server" ID="txtBarcode" Height="60px" Width="400px" Font-Size="32pt"
AutoPostBack="True" Style="text-align: center" TabIndex="1" />
<asp:AutoCompleteExtender ID="aceParticolare" runat="server" TargetControlID="txtBarcode"
MinimumPrefixLength="2" CompletionInterval="200" ServicePath="~/WS/AutoCompletamento.asmx"
ServiceMethod="elencoAnime" />
</div>
<div>
<asp:Label runat="server" ID="lblNote" />
<br />
<asp:TextBox runat="server" ID="txtNote" Height="120px" Width="400px" Font-Size="24pt"
TextMode="MultiLine" TabIndex="2" />
<br />
<br />
<asp:Button runat="server" ID="btnEmptyNote" Height="30px" Width="180px" OnClick="btnEmptyNote_Click"
TabIndex="3" />
</div>
</div>
</div>
</div>
</asp:Panel>
@@ -0,0 +1,481 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Net;
using SteamWare;
using GMW_data;
namespace GMW.WebUserControls
{
public partial class mod_animeMult : System.Web.UI.UserControl
{
/// <summary>
/// caricamento pagina
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
calcolaPostazione();
traduciObj();
}
doChecks();
}
/// <summary>
/// controlla particolare selezionato
/// </summary>
private void checkParticolare()
{
if (currParticolare != "")
{
lblParticolareAttivo.Text = string.Format("Particolare selezionato <b>{0}</b>", currParticolare);
// aggiungo descrizione del particolare
string descr = "";
string disegno = "";
try
{
DS_magazzino.AnagParticolariRow riga = MagClass.magazzino.taAnagPart.likeSearch(currParticolare, memLayer.ML.StringSessionObj("CodCS"))[0];
descr = riga.DescParticolare;
disegno = string.Format("( {0} )", riga.DisegnoGrezzo);
}
catch
{ }
lblDescrAttivo.Text = descr;
lblDisegno.Text = disegno;
}
else
{
lblParticolareAttivo.Text = "...";
lblDescrAttivo.Text = "";
lblDisegno.Text = "";
}
}
/// <summary>
/// effettua controlli visibilità
/// </summary>
private void doChecks()
{
checkBarcode();
checkStampa();
checkParticolare();
}
/// <summary>
/// sistemo labels oggetti
/// </summary>
private void traduciObj()
{
// labels
lblPostazione.Text = string.Format("{2}: {0} ({1})", postazione_name, postazione_IP, traduci("postazione"));
lblPrinter.Text = string.Format("{1}: {0}", postazione_printer, traduci("stampante"));
lblQtaUDC.Text = traduci("lblQtaUDC");
lblNumUDC.Text = traduci("lblNumUDC");
lblQta.Text = traduci("lblQuantitaTotale");
lblNote.Text = traduci("lblNote");
lblCurrentPage.Text = traduci(PagCorrente);
//txtBox
txtQta.Text = memLayer.ML.confReadString("QtaImballoAnime");
// buttons
btnStampa.Text = traduci("btnStampa");
btnEmptyNote.Text = traduci("btnEmptyNote");
}
/// <summary>
/// restituisce il nome della pagina corrente
/// </summary>
protected string PagCorrente
{
get
{
string answ = "";
Uri MyUrl = Request.Url;
string delimStr = "/";
char[] delimiter = delimStr.ToCharArray();
string[] finalUrl = MyUrl.LocalPath.ToString().Split(delimiter);
int n = finalUrl.Length;
answ = finalUrl[n - 1].ToString();
DataLayer_AnagGen.PermessiRow riga = (DataLayer_AnagGen.PermessiRow)user_std.UtSn.permessi.Select(string.Format("URL = '{0}'", answ))[0];
answ = riga.NOME;
return answ;
}
}
/// <summary>
/// wrapper traduzione
/// </summary>
/// <param name="lemma"></param>
/// <returns></returns>
public string traduci(object lemma)
{
return user_std.UtSn.Traduci(lemma.ToString());
}
/// <summary>
/// calcola postazione corrente (ip, name, printer)
/// </summary>
private void calcolaPostazione()
{
postazione_IP = Request.UserHostName;
postazione_name = dnsUtils.DetermineCompName(postazione_IP);
// cerco stampante x postazione
postazione_printer = "n.d.";
try
{
DS_Applicazione.ElencoPostazioniDataTable tabPost = DataProxy.obj.taElPost.getByCod(postazione_name);
if (tabPost.Rows.Count > 0)
{
postazione_printer = tabPost[0].stampante;
}
else
{
tabPost = DataProxy.obj.taElPost.getByCod("default");
postazione_printer = tabPost[0].stampante;
}
}
catch
{ }
}
/// <summary>
/// indica name della postazione corrente
/// </summary>
protected string postazione_name
{
get
{
return memLayer.ML.StringSessionObj("postazione_name");
}
set
{
memLayer.ML.setSessionVal("postazione_name", value);
}
}
/// <summary>
/// indica ip della postazione corrente
/// </summary>
protected string postazione_IP
{
get
{
return memLayer.ML.StringSessionObj("postazione_IP");
}
set
{
memLayer.ML.setSessionVal("postazione_IP", value);
}
}
/// <summary>
/// indica stampante associata alla postazione corrente
/// </summary>
protected string postazione_printer
{
get
{
return memLayer.ML.StringSessionObj("postazione_printer");
}
set
{
memLayer.ML.setSessionVal("postazione_printer", value);
}
}
/// <summary>
/// indica il codice articolo correntemente selezionato
/// </summary>
protected string currParticolare
{
get
{
return memLayer.ML.StringSessionObj("currParticolare");
}
set
{
memLayer.ML.setSessionVal("currParticolare", value, memLayer.ML.confReadBool("keepParticolareSel"));
}
}
/// <summary>
/// indica se i caratteri vadano forzati a maiuscoli
/// </summary>
public bool forceUppercase
{
get
{
return memLayer.ML.confReadBool("forceUppercase");
}
}
/// <summary>
/// num pezzi dell'ultimo UDC del particolare generato
/// </summary>
public int pezziUdc
{
get
{
int answ = 0;
try
{
answ = (int)MagClass.magazzino.taCartellini.getLastByParticolare(memLayer.ML.StringSessionObj("CodCS"), currParticolare)[0].Qta;
}
catch
{ }
return answ;
}
}
/// <summary>
/// decodifica il tipo barcode acquisito
/// </summary>
public tipoCodiceBarcode tipoBCode
{
get
{
tipoCodiceBarcode answ = tipoCodiceBarcode.ND;
int trovati = 0;
// controllo non si tratti di un comando...
string preCmd = memLayer.ML.confReadString("prefComandi");
if (barcodeIn.StartsWith(preCmd))
{
answ = tipoCodiceBarcode.Comando;
}
// controllo se sia un anima "A"
else if (barcodeIn.StartsWith("A")) // !!! CONTROLLARE!!!
{
answ = tipoCodiceBarcode.Particolare;
}
else
{
try
{
// cerco tra gitterbox (UDC)...
trovati = MagClass.magazzino.taCartellini.getByUdc(barcodeIn).Rows.Count;
if (trovati > 0)
{
answ = tipoCodiceBarcode.UDC;
}
}
catch
{
}
}
return answ;
}
}
/// <summary>
/// valore barcode
/// </summary>
public string barcodeIn
{
get
{
return txtBarcode.Text.Trim();
}
set
{
txtBarcode.Text = value;
}
}
/// <summary>
/// qta pezzi TOTALE
/// </summary>
public int qta
{
get
{
int qta = 0;
try
{
qta = Convert.ToInt32(txtQta.Text.Trim());
}
catch
{ }
return qta;
}
set
{
txtQta.Text = value.ToString();
}
}
/// <summary>
/// qta pezzi x UDC
/// </summary>
public int qtaUDC
{
get
{
int qtaUDC = 0;
try
{
qtaUDC = Convert.ToInt32(txtQtaUDC.Text.Trim());
}
catch
{ }
return qtaUDC;
}
set
{
txtQtaUDC.Text = value.ToString();
}
}
/// <summary>
/// num UDC
/// </summary>
public int numUDC
{
get
{
int numUDC = 0;
try
{
numUDC = Convert.ToInt32(txtNumUDC.Text.Trim());
}
catch
{ }
return numUDC;
}
set
{
txtNumUDC.Text = value.ToString();
}
}
/// <summary>
/// controlla se ci sia un barcode
/// </summary>
private void checkBarcode()
{
if (barcodeIn != "")
{
lblMessaggi.Text = string.Format("Barcode digitato: {0}", barcodeIn);
switch (tipoBCode)
{
case tipoCodiceBarcode.Particolare:
// imposto il particolare corrente
currParticolare = barcodeIn;
// controllo esista il particolare scansionato
if (DataProxy.obj.taAnagParticolari.getByParticolare(currParticolare).Rows.Count == 0)
{
currParticolare = "";
lblMessaggi.Text += " - codice particolare non valido / non trovato in RILPRO.";
pnlAll.CssClass = "stileComandoKo";
}
else
{
lblMessaggi.Text += " - impostato particolare!";
pnlAll.CssClass = "stileComandoOk";
}
break;
case tipoCodiceBarcode.UDC:
// procedo solo se UDC esistente
if (MagClass.magazzino.checkUDC(barcodeIn))
{
// recupero il particolare dai dati del cartellino preesistente
currParticolare = DataProxy.obj.taCartellini.stp_getByUdc(barcodeIn)[0].Particolare;
// controllo esista il particolare
if (DataProxy.obj.taAnagParticolari.getByParticolare(currParticolare).Rows.Count == 0)
{
currParticolare = "";
lblMessaggi.Text += " - codice particolare da UDC non valido / non trovato in RILPRO.";
pnlAll.CssClass = "stileComandoKo";
}
else
{
lblMessaggi.Text += " - impostato particolare!";
pnlAll.CssClass = "stileComandoOk";
}
}
break;
default:
lblMessaggi.Text += " - codice <b>non riconosciuto</b>!";
pnlAll.CssClass = "stileComandoND";
break;
}
barcodeIn = "";
}
else
{
lblMessaggi.Text = "...attesa barcode...";
}
//grView.DataBind();
txtBarcode.Focus();
}
/// <summary>
/// controllo l'abilitazioen alla stampa UDC:
/// - particolare ok
/// - qta > 0
/// - almeno 1 trattamento
/// altrimenti disabilito btn stampa
/// </summary>
private void checkStampa()
{
bool stampaOk = false;
//controllo siano inseriti valori qta
if (qta > 0 && qtaUDC > 0 && numUDC > 0)
{
// controllo ci siano particolare e qta tornino (numUdc x qtaUdc = qtaTOT)
if (currParticolare != "" && ((numUDC * qtaUDC) == qta))
{
stampaOk = true;
}
}
btnStampa.Enabled = stampaOk;
}
/// <summary>
/// genera i barcode di
/// - trattamenti
/// - nuovo x pezzi liquidi
/// e lancia la relativa stampa
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnStampa_Click(object sender, EventArgs e)
{
string newUdcChild = "";
int qta = memLayer.ML.confReadInt("QtaImballoAnime");
string noteTrim = txtNote.Text.Trim();
try
{
qta = Convert.ToInt32(txtQtaUDC.Text);
}
catch
{ }
for (int i = 0; i < numUDC; i++)
{
// genero cartellino liquidi
try
{
// creo nuovo UDC del trattamento liquidi
newUdcChild = MagClass.magazzino.creaUdc("AN", "", currParticolare, "", "", "", "", "", 0, memLayer.ML.confReadString("CodImballoAnime"), "U", MagClass.magazzino.CodSoggCurrUser, qta, 0, 0, DateTime.Now, 0, "Fin", memLayer.ML.confReadInt("IdxPosizioneAnime"), true, "IdxPosizioneAnime", "UDC_ANIMA", noteTrim, "", DateTime.Now.Year); // !!! "AN" HARD CODED x indicare flusso ANIME
}
catch (Exception exc)
{
logger.lg.scriviLog(string.Format("Errore creazione UDC: {0}", exc), tipoLog.EXCEPTION);
}
// se ho cart liquidi genero (se non ci sono) cart trattamenti
if (newUdcChild != "")
{
// ora stampo il nuovo cartellino!!!
MagClass.magazzino.stampaUdc(newUdcChild, postazione_printer, tipoCartellino.cartAnime);
}
}
// resetto
doResetData();
}
/// <summary>
/// effettua reset dati
/// </summary>
private void doResetData()
{
// resetto i dati QtaTot e particolare...
qta = 0;
currParticolare = "";
txtQta.Text = "";
doChecks();
}
/// <summary>
/// svuoto le note
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnEmptyNote_Click(object sender, EventArgs e)
{
txtNote.Text = "";
}
}
}
+214
View File
@@ -0,0 +1,214 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.4963
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace GMW.WebUserControls {
public partial class mod_animeMult {
/// <summary>
/// pnlAll 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.Panel pnlAll;
/// <summary>
/// lblPostazione 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 lblPostazione;
/// <summary>
/// lblPrinter 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 lblPrinter;
/// <summary>
/// lblCurrentPage 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 lblCurrentPage;
/// <summary>
/// hlMenu 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.HyperLink hlMenu;
/// <summary>
/// lblParticolareAttivo 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 lblParticolareAttivo;
/// <summary>
/// lblDescrAttivo 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 lblDescrAttivo;
/// <summary>
/// lblDisegno 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 lblDisegno;
/// <summary>
/// lblMessaggi 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 lblMessaggi;
/// <summary>
/// lblQtaUDC 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 lblQtaUDC;
/// <summary>
/// txtQtaUDC 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.TextBox txtQtaUDC;
/// <summary>
/// lblNumUDC 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 lblNumUDC;
/// <summary>
/// txtNumUDC 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.TextBox txtNumUDC;
/// <summary>
/// lblQta 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 lblQta;
/// <summary>
/// txtQta 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.TextBox txtQta;
/// <summary>
/// btnStampa 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 btnStampa;
/// <summary>
/// lblBarcode 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 lblBarcode;
/// <summary>
/// txtBarcode 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.TextBox txtBarcode;
/// <summary>
/// aceParticolare control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::AjaxControlToolkit.AutoCompleteExtender aceParticolare;
/// <summary>
/// lblNote 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 lblNote;
/// <summary>
/// txtNote 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.TextBox txtNote;
/// <summary>
/// btnEmptyNote 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 btnEmptyNote;
}
}
@@ -47,8 +47,7 @@
<asp:ObjectDataSource ID="odsDestinatario" runat="server" OldValuesParameterFormatString="original_{0}"
SelectMethod="GetData" TypeName="GMW_data.DS_UtilityTableAdapters.v_selDestinatariListePrelievoTableAdapter">
</asp:ObjectDataSource>
<asp:Button runat="server" ID="btnUpdateDestTipo"
onclick="btnUpdateDestTipo_Click" />
<asp:Button runat="server" ID="btnUpdateDestTipo" OnClick="btnUpdateDestTipo_Click" />
</asp:Panel>
</div>
</td>
@@ -185,8 +184,8 @@
<ItemTemplate>
<asp:ImageButton ID="imgScaricaListaPrelievo" runat="server" CausesValidation="False"
CommandName="Update" CommandArgument="scaricaListaPrelievo" ToolTip='<%# traduci("ScaricaListaPrelievo") %>'
Visible='<%# ScaricaEnabled(Eval("CodStatoLista"), Eval("CodTipoLista")) %>' ImageUrl="~/images/apply_s.png"
OnClick="img_Click" />
Visible='<%# ScaricaEnabled(Eval("CodStatoLista"), Eval("CodTipoLista")) %>'
ImageUrl="~/images/apply_s.png" OnClick="img_Click" />
<asp:ConfirmButtonExtender ID="cbeScarica" runat="server" ConfirmText='<%# traduci("confermaScaricaLista")%>'
TargetControlID="imgScaricaListaPrelievo" />
</ItemTemplate>
@@ -219,7 +218,7 @@
<asp:ImageButton ID="imgResetListaPrelievo" runat="server" CausesValidation="False"
CommandName="Update" CommandArgument="resetListaPrelievo" ToolTip='<%# tooltipReset(Eval("CodTipoLista")) %>'
Visible='<%# ResetVisible(Eval("CodLista"), Eval("CodStatoLista")) %>' ImageUrl='<%# imgReset(Eval("CodTipoLista")) %>'
OnClick="img_Click" Enabled='<%# ResetEnabled(Eval("CodLista"), Eval("CodStatoLista"), Eval("CodTipoLista")) %>' />
OnClick="img_Click" Enabled='<%# ResetEnabled(Eval("CodLista"), Eval("CodStatoLista"), Eval("CodTipoLista")) %>' />
<asp:ConfirmButtonExtender ID="cbeReset" runat="server" ConfirmText='<%# traduci("confermaResetLista")%>'
TargetControlID="imgResetListaPrelievo" />
</ItemTemplate>
@@ -596,6 +596,7 @@ namespace GMW.WebUserControls
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
{
aggiornaElencoRighe();
grView.DataBind();
}
/// <summary>
/// aggiorna visualizzazione
@@ -939,8 +940,7 @@ namespace GMW.WebUserControls
{
GMW_data.MagClass.magazzino.taElencoListePrelievo.stp_LP_updateDestTipo(CodLista, ddlTipoLista.SelectedValue, ddlDestinatario.SelectedValue, ddlDestinatario.SelectedItem.Text);
}
#endregion
}
}
+9 -7
View File
@@ -33,22 +33,24 @@ public partial class mod_filtro : ApplicationUserControl
{
get
{
return memLayer.ML.StringSessionObj("_showFiltered");
return memLayer.ML.StringSessionObj(string.Format("_showFiltered_{0}", this.ID));
}
set
{
memLayer.ML.setSessionVal("_showFiltered", value);
memLayer.ML.setSessionVal(string.Format("_showFiltered_{0}", this.ID), value);
traduciObj();
}
}
protected string _showAll
{
get
{
return memLayer.ML.StringSessionObj("_showAll");
return memLayer.ML.StringSessionObj(string.Format("_showAll_{0}", this.ID));
}
set
{
memLayer.ML.setSessionVal("_showAll", value);
memLayer.ML.setSessionVal(string.Format("_showAll_{0}", this.ID), value);
traduciObj();
}
}
@@ -57,8 +59,8 @@ public partial class mod_filtro : ApplicationUserControl
base.OnInit(e);
if (!Page.IsPostBack)
{
_showFiltered = "mostraSoloSelez";
_showAll = "mostraTutti";
if (_showFiltered == "") _showFiltered = "mostraSoloSelez";
if (_showAll == "") _showAll = "mostraTutti";
}
}
@@ -350,7 +352,7 @@ public partial class mod_filtro : ApplicationUserControl
updateChkLbl();
}
}
/// <summary>
/// oggetto ODS con cui popolare il selettore, VINCOLO abbia campi value(key) / label
/// </summary>
@@ -80,6 +80,7 @@
<asp:ListItem Selected="True">ultimi 7gg</asp:ListItem>
<asp:ListItem>questo mese</asp:ListItem>
<asp:ListItem>ultimi 30gg</asp:ListItem>
<asp:ListItem>1 anno</asp:ListItem>
</asp:DropDownList>
&nbsp;&nbsp;&nbsp;
<asp:Button ID="btnUpdate" runat="server" Text="update" Visible="false" OnClick="btnUpdate_Click" />
@@ -79,6 +79,9 @@ public partial class mod_periodoAnalisi : System.Web.UI.UserControl
case "questo mese":
_intervallo = _datario.questoMese(DateTime.Now);
break;
case "1 anno":
_intervallo = _datario.ultimiGiorni(DateTime.Now, 366);
break;
default:
break;
}
+13 -13
View File
@@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.4927
// Runtime Version:2.0.50727.4963
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@@ -9,9 +9,9 @@
//------------------------------------------------------------------------------
public partial class mod_periodoAnalisi
{
public partial class mod_periodoAnalisi {
/// <summary>
/// lblPeriodo control.
/// </summary>
@@ -20,7 +20,7 @@ public partial class mod_periodoAnalisi
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblPeriodo;
/// <summary>
/// txtInizio control.
/// </summary>
@@ -29,7 +29,7 @@ public partial class mod_periodoAnalisi
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.TextBox txtInizio;
/// <summary>
/// ddlOraInizio control.
/// </summary>
@@ -38,7 +38,7 @@ public partial class mod_periodoAnalisi
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.DropDownList ddlOraInizio;
/// <summary>
/// CalendarExtender1 control.
/// </summary>
@@ -47,7 +47,7 @@ public partial class mod_periodoAnalisi
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::AjaxControlToolkit.CalendarExtender CalendarExtender1;
/// <summary>
/// txtFine control.
/// </summary>
@@ -56,7 +56,7 @@ public partial class mod_periodoAnalisi
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.TextBox txtFine;
/// <summary>
/// ddlOraFine control.
/// </summary>
@@ -65,7 +65,7 @@ public partial class mod_periodoAnalisi
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.DropDownList ddlOraFine;
/// <summary>
/// CalendarExtender2 control.
/// </summary>
@@ -74,7 +74,7 @@ public partial class mod_periodoAnalisi
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::AjaxControlToolkit.CalendarExtender CalendarExtender2;
/// <summary>
/// DropDownList1 control.
/// </summary>
@@ -83,7 +83,7 @@ public partial class mod_periodoAnalisi
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.DropDownList DropDownList1;
/// <summary>
/// btnUpdate control.
/// </summary>
@@ -92,7 +92,7 @@ public partial class mod_periodoAnalisi
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Button btnUpdate;
/// <summary>
/// lblDurataMin control.
/// </summary>
@@ -101,7 +101,7 @@ public partial class mod_periodoAnalisi
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblDurataMin;
/// <summary>
/// txtDurataMin control.
/// </summary>
@@ -22,7 +22,11 @@
<asp:Label runat="server" ID="lblGitterBoxAttivo" Font-Size="36pt" Text="- no data -" />
</div>
<div>
<asp:Label runat="server" ID="lblDescrAttivo" Font-Size="28pt" Text="- no data -" />
<asp:Label runat="server" ID="lblDescrAttivo" Font-Size="28pt" Text="- no data -"
ToolTip="particolare" />
&nbsp
<asp:Label runat="server" ID="lblDisegno" Font-Size="28pt" Text="" ForeColor="#FFFFFF"
Font-Bold="true" ToolTip="disegno" />
</div>
<div class="msgBoxBarcode">
<asp:Label runat="server" ID="lblMessaggi" Text="attesa input utente" Font-Size="18pt" />
@@ -30,18 +30,23 @@ namespace GMW.WebUserControls
lblGitterBoxAttivo.Text = string.Format("Particolare selezionato <b>{0}</b>", currParticolare);
// aggiungo descrizione del particolare
string descr = "";
string disegno = "";
try
{
descr = utils.obj.taSelPart.getByConditioPref("", currParticolare)[0].label;
DS_magazzino.AnagParticolariRow riga = MagClass.magazzino.taAnagPart.likeSearch(currParticolare, memLayer.ML.StringSessionObj("CodCS"))[0];
descr = riga.DescParticolare;
disegno = string.Format("( {0} )", riga.DisegnoGrezzo);
}
catch
{ }
lblDescrAttivo.Text = descr;
lblDisegno.Text = disegno;
}
else
{
lblGitterBoxAttivo.Text = "...";
lblDescrAttivo.Text = "";
lblDisegno.Text = "";
}
}
/// <summary>
@@ -76,6 +76,15 @@ namespace GMW.WebUserControls {
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblDescrAttivo;
/// <summary>
/// lblDisegno 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 lblDisegno;
/// <summary>
/// lblMessaggi control.
/// </summary>
@@ -22,7 +22,11 @@
<asp:Label runat="server" ID="lblGitterBoxAttivo" Font-Size="36pt" Text="- no data -" />
</div>
<div>
<asp:Label runat="server" ID="lblDescrAttivo" Font-Size="28pt" Text="- no data -" />
<asp:Label runat="server" ID="lblDescrAttivo" Font-Size="28pt" Text="- no data -"
ToolTip="particolare" />
&nbsp
<asp:Label runat="server" ID="lblDisegno" Font-Size="28pt" Text="" ForeColor="#FFFFFF"
Font-Bold="true" ToolTip="disegno" />
</div>
<div class="msgBoxBarcode">
<asp:Label runat="server" ID="lblMessaggi" Text="attesa input utente" Font-Size="18pt" />
@@ -40,8 +44,7 @@
<asp:TextBox runat="server" ID="txtUDC" Height="40px" Width="200px" Font-Size="18pt"
TabIndex="6" />
<asp:RegularExpressionValidator ID="revNumTratt" runat="server" ErrorMessage="!!! formato non corretto !!!"
ValidationExpression="[uU](SPLI)[0-9]{8,8}" ControlToValidate="txtUDC"
Display="Dynamic" />
ValidationExpression="[uU](SPLI)[0-9]{8,8}" ControlToValidate="txtUDC" Display="Dynamic" />
<br />
<asp:Label runat="server" ID="lblWarnUdc" CssClass="errore" />&nbsp;
</div>
@@ -29,18 +29,23 @@ namespace GMW.WebUserControls
lblGitterBoxAttivo.Text = string.Format("Particolare selezionato <b>{0}</b>", currParticolare);
// aggiungo descrizione del particolare
string descr = "";
string disegno = "";
try
{
descr = utils.obj.taSelPart.getByConditioPref("", currParticolare)[0].label;
DS_magazzino.AnagParticolariRow riga = MagClass.magazzino.taAnagPart.likeSearch(currParticolare, memLayer.ML.StringSessionObj("CodCS"))[0];
descr = riga.DescParticolare;
disegno = string.Format("( {0} )", riga.DisegnoGrezzo);
}
catch
{ }
lblDescrAttivo.Text = descr;
lblDisegno.Text = disegno;
}
else
{
lblGitterBoxAttivo.Text = "...";
lblDescrAttivo.Text = "";
lblDisegno.Text = "";
}
}
/// <summary>
@@ -76,6 +76,15 @@ namespace GMW.WebUserControls {
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblDescrAttivo;
/// <summary>
/// lblDisegno 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 lblDisegno;
/// <summary>
/// lblMessaggi control.
/// </summary>
+114 -96
View File
@@ -1,104 +1,122 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_statoMag.ascx.cs"
Inherits="GMW.WebUserControls.mod_statoMag" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<% if (false)
{ %>
<link href="../Style.css" rel="stylesheet" type="text/css" />
<% } %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Src="mod_filtro.ascx" TagName="mod_filtro" TagPrefix="uc1" %>
<%@ Register Src="mod_barPlot.ascx" TagName="mod_barPlot" TagPrefix="uc2" %>
<div class="filtro_1">
<uc1:mod_filtro ID="mod_filtroMag" runat="server" />
<asp:ObjectDataSource ID="odsFiltroMag" runat="server" OldValuesParameterFormatString="Original_{0}"
SelectMethod="getByConditio" TypeName="GMW_data.DS_UtilityTableAdapters.v_selMagTableAdapter">
<div class="filtro_1" style="height: 24px;">
<div style="float: left;">
<uc1:mod_filtro ID="mod_filtroMag" runat="server" />
<asp:ObjectDataSource ID="odsFiltroMag" runat="server" OldValuesParameterFormatString="Original_{0}"
SelectMethod="getByConditio" TypeName="GMW_data.DS_UtilityTableAdapters.v_selMagTableAdapter">
<SelectParameters>
<asp:SessionParameter DefaultValue="MM" Name="conditio" SessionField="CodCS" Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
</div>
<div style="float: right;">
<asp:Label runat="server" ID="lblCercaPart" />
<asp:TextBox ID="txtCercaPart" runat="server" OnTextChanged="txtCercaPart_TextChanged" Text="*"
Width="200px" />
<asp:AutoCompleteExtender ID="aceParticolare" runat="server" TargetControlID="txtCercaPart"
ServicePath="~/WS/AutoCompletamento.asmx" ServiceMethod="elencoParticolariAnime"
MinimumPrefixLength="2" CompletionInterval="200" />
<asp:Button ID="btnCercaPart" runat="server" OnClick="btnCercaPart_Click" Text="..." />
</div>
</div>
<div class="clearDiv">
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
OnSelectedIndexChanged="grView_SelectedIndexChanged" OnDataBound="grView_DataBound"
DataKeyNames="IdxBlocco" DataSourceID="ods" OnPageIndexChanged="grView_PageIndexChanged"
OnSorted="grView_Sorted">
<RowStyle CssClass="ctrRowStyle" />
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
<EditRowStyle CssClass="ctrEditRowStyle" />
<SelectedRowStyle CssClass="ctrSelRowStyle" />
<FooterStyle CssClass="ctrFooter" />
<PagerStyle CssClass="ctrHeaderPager" ForeColor="White" HorizontalAlign="Center" />
<HeaderStyle CssClass="ctrHeaderPager" ForeColor="White" Font-Bold="True" />
<EmptyDataRowStyle CssClass="ctrRowStyle" />
<Columns>
<asp:TemplateField ShowHeader="False">
<HeaderTemplate>
<asp:Button ID="btnReset" runat="server" Text='<%# traduci("Reset") %>' OnClick="btnReset_Click"
Visible="false" />
</HeaderTemplate>
<ItemTemplate>
<asp:ImageButton ID="imgSelect" runat="server" CausesValidation="False" CommandName="Select"
ToolTip='<%# traduci("Select") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.seleziona, SteamWare.dimImg.small) %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="#" SortExpression="CodMag">
<ItemTemplate>
<asp:Label ID="lblCodMag" runat="server" Text='<%# Eval("CodMag") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="DescMag" SortExpression="DescMag">
<ItemTemplate>
<asp:Label ID="lblDescMag" runat="server" Text='<%# Eval("DescMag") %>' />
<div class="didascalia">
<asp:Label ID="lblDescBlocco" runat="server" Text='<%# Eval("DescBlocco") %>' />
</div>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="CodBlocco" SortExpression="CodBlocco">
<ItemTemplate>
<asp:Label ID="lblCodBlocco" runat="server" Text='<%# Eval("CodBlocco") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="CelleTotAtt" SortExpression="TotCelle">
<ItemTemplate>
<uc2:mod_barPlot ID="mod_barPlot1" runat="server" elencoValori='<%# getElencoValori("numCelle", Eval("TotCelle"), Eval("CelleAttive")) %>'
resolution="5" />
<div class="didascalia">
<asp:Label ID="lblTotCelle" runat="server" Text='<%# Eval("TotCelle") %>' ToolTip='<%# traduci("TotCelle") %>' />
/
<asp:Label ID="lblCelleAttive" runat="server" Text='<%# Eval("CelleAttive") %>' ToolTip='<%# traduci("CelleAttive") %>' />
</div>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="CelleLibereOccupate" SortExpression="CelleLibere">
<ItemTemplate>
<uc2:mod_barPlot ID="mod_barPlot2" runat="server" elencoValori='<%# getElencoValori("celleOccupate", Eval("CelleAttive"), Eval("CelleOccupate")) %>'
resolution="5" />
<div class="didascalia">
<asp:Label ID="lblCelleOccupate" runat="server" Text='<%# Eval("CelleOccupate") %>'
ToolTip='<%# traduci("CelleOccupate") %>' />
/
<asp:Label ID="lblCelleLibere" runat="server" Text='<%# Eval("CelleLibere") %>' ToolTip='<%# traduci("CelleLibere") %>' />
</div>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="DateRange" SortExpression="Oldest">
<ItemTemplate>
<div style="font-size: smaller;">
<asp:Label ID="lblOldest" runat="server" Text='<%# Eval("Oldest","{0:dd/MM/yy}") %>' />
-->
<asp:Label ID="lblNewest" runat="server" Text='<%# Eval("Newest","{0:dd/MM/yy}") %>' />
</div>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}"
SelectMethod="getByCodCS_particolare" TypeName="GMW_data.DS_magazzinoTableAdapters.V_MagazziniOverviewTableAdapter">
<SelectParameters>
<asp:SessionParameter DefaultValue="MM" Name="conditio" SessionField="CodCS" Type="String" />
<asp:SessionParameter Name="CodCS" Type="String" SessionField="CodCS" DefaultValue="MM" />
<asp:ControlParameter ControlID="txtCercaPart" DefaultValue="*" Type="String" Name="particolare" />
</SelectParameters>
</asp:ObjectDataSource>
<asp:Label ID="lblNumRec" runat="server" CssClass="txtMini" />&nbsp;&nbsp;
<asp:Label ID="lblWarning" runat="server" Visible="false" CssClass="erroreMid" />
<asp:ObjectDataSource ID="odsBlocco" runat="server" OldValuesParameterFormatString="original_{0}"
SelectMethod="getByConditio" TypeName="GMW_data.DS_UtilityTableAdapters.v_selBloccoTableAdapter">
<SelectParameters>
<asp:SessionParameter Name="CodCS" Type="String" SessionField="CodCS" DefaultValue="MM" />
<asp:SessionParameter Name="CodMag" Type="String" SessionField="CodMag_sel" DefaultValue="MM" />
</SelectParameters>
</asp:ObjectDataSource>
</div>
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
OnSelectedIndexChanged="grView_SelectedIndexChanged" OnDataBound="grView_DataBound"
DataKeyNames="IdxBlocco" DataSourceID="ods" OnPageIndexChanged="grView_PageIndexChanged"
OnSorted="grView_Sorted">
<RowStyle CssClass="ctrRowStyle" />
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
<EditRowStyle CssClass="ctrEditRowStyle" />
<SelectedRowStyle CssClass="ctrSelRowStyle" />
<FooterStyle CssClass="ctrFooter" />
<PagerStyle CssClass="ctrHeaderPager" ForeColor="White" HorizontalAlign="Center" />
<HeaderStyle CssClass="ctrHeaderPager" ForeColor="White" Font-Bold="True" />
<EmptyDataRowStyle CssClass="ctrRowStyle" />
<Columns>
<asp:TemplateField ShowHeader="False">
<HeaderTemplate>
<asp:Button ID="btnReset" runat="server" Text='<%# traduci("Reset") %>' OnClick="btnReset_Click"
Visible="false" />
</HeaderTemplate>
<ItemTemplate>
<asp:ImageButton ID="imgSelect" runat="server" CausesValidation="False" CommandName="Select"
ToolTip='<%# traduci("Select") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.seleziona, SteamWare.dimImg.small) %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="#" SortExpression="CodMag">
<ItemTemplate>
<asp:Label ID="lblCodMag" runat="server" Text='<%# Eval("CodMag") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="DescMag" SortExpression="DescMag">
<ItemTemplate>
<asp:Label ID="lblDescMag" runat="server" Text='<%# Eval("DescMag") %>' />
<div class="didascalia">
<asp:Label ID="lblDescBlocco" runat="server" Text='<%# Eval("DescBlocco") %>' />
</div>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="CodBlocco" SortExpression="CodBlocco">
<ItemTemplate>
<asp:Label ID="lblCodBlocco" runat="server" Text='<%# Eval("CodBlocco") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="CelleTotAtt" SortExpression="TotCelle">
<ItemTemplate>
<uc2:mod_barPlot ID="mod_barPlot1" runat="server" elencoValori='<%# getElencoValori("numCelle", Eval("TotCelle"), Eval("CelleAttive")) %>'
resolution="5" />
<div class="didascalia">
<asp:Label ID="lblTotCelle" runat="server" Text='<%# Eval("TotCelle") %>' ToolTip='<%# traduci("TotCelle") %>' />
/
<asp:Label ID="lblCelleAttive" runat="server" Text='<%# Eval("CelleAttive") %>' ToolTip='<%# traduci("CelleAttive") %>' />
</div>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="CelleLibereOccupate" SortExpression="CelleLibere">
<ItemTemplate>
<uc2:mod_barPlot ID="mod_barPlot2" runat="server" elencoValori='<%# getElencoValori("celleOccupate", Eval("CelleAttive"), Eval("CelleOccupate")) %>'
resolution="5" />
<div class="didascalia">
<asp:Label ID="lblCelleOccupate" runat="server" Text='<%# Eval("CelleOccupate") %>'
ToolTip='<%# traduci("CelleOccupate") %>' />
/
<asp:Label ID="lblCelleLibere" runat="server" Text='<%# Eval("CelleLibere") %>' ToolTip='<%# traduci("CelleLibere") %>' />
</div>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="DateRange" SortExpression="Oldest">
<ItemTemplate>
<div style="font-size: smaller;">
<asp:Label ID="lblOldest" runat="server" Text='<%# Eval("Oldest","{0:dd/MM/yy}") %>' />
-->
<asp:Label ID="lblNewest" runat="server" Text='<%# Eval("Newest","{0:dd/MM/yy}") %>' />
</div>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}"
SelectMethod="getByCodCS" TypeName="GMW_data.DS_magazzinoTableAdapters.V_MagazziniOverviewTableAdapter">
<SelectParameters>
<asp:SessionParameter Name="CodCS" Type="String" SessionField="CodCS" DefaultValue="MM" />
</SelectParameters>
</asp:ObjectDataSource>
<asp:Label ID="lblNumRec" runat="server" CssClass="txtMini" />&nbsp;&nbsp;
<asp:Label ID="lblWarning" runat="server" Visible="false" CssClass="erroreMid" />
<asp:ObjectDataSource ID="odsBlocco" runat="server" OldValuesParameterFormatString="original_{0}"
SelectMethod="getByConditio" TypeName="GMW_data.DS_UtilityTableAdapters.v_selBloccoTableAdapter">
<SelectParameters>
<asp:SessionParameter Name="CodCS" Type="String" SessionField="CodCS" DefaultValue="MM" />
<asp:SessionParameter Name="CodMag" Type="String" SessionField="CodMag_sel" DefaultValue="MM" />
</SelectParameters>
</asp:ObjectDataSource>
+21 -2
View File
@@ -170,7 +170,11 @@ namespace GMW.WebUserControls
checkFixOds();
}
}
protected override void traduciObj()
{
lblCercaPart.Text = traduci("lblCercaPart");
btnCercaPart.Text = traduci("btnCerca");
}
void mod_filtroMag_eh_selValore(object sender, EventArgs e)
{
// chiamo procedura che aggiorna ods principale
@@ -307,7 +311,22 @@ namespace GMW.WebUserControls
memLayer.ML.emptySessionVal("CodMagLogico_sel");
memLayer.ML.emptySessionVal("CodMag_sel");
}
/// <summary>
/// cambiato valore in ricerca
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void txtCercaPart_TextChanged(object sender, EventArgs e)
{
}
/// <summary>
/// pressione del button di ricerca
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnCercaPart_Click(object sender, EventArgs e)
{
}
#endregion
}
+36
View File
@@ -31,6 +31,42 @@ namespace GMW.WebUserControls {
/// </remarks>
protected global::System.Web.UI.WebControls.ObjectDataSource odsFiltroMag;
/// <summary>
/// lblCercaPart 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 lblCercaPart;
/// <summary>
/// txtCercaPart 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.TextBox txtCercaPart;
/// <summary>
/// aceParticolare control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::AjaxControlToolkit.AutoCompleteExtender aceParticolare;
/// <summary>
/// btnCercaPart 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 btnCercaPart;
/// <summary>
/// grView control.
/// </summary>
+6
View File
@@ -0,0 +1,6 @@
<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/AjaxSimpleFull.master" AutoEventWireup="true" CodeBehind="animeMult.aspx.cs" Inherits="GMW.animeMult" %>
<%@ Register src="WebUserControls/mod_animeMult.ascx" tagname="mod_animeMult" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<uc1:mod_animeMult ID="mod_animeMult1" runat="server" />
</asp:Content>
+17
View File
@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace GMW
{
public partial class animeMult : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
}
+25
View File
@@ -0,0 +1,25 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.4963
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace GMW {
public partial class animeMult {
/// <summary>
/// mod_animeMult1 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::GMW.WebUserControls.mod_animeMult mod_animeMult1;
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.
Binary file not shown.
+8 -1
View File
@@ -22099,6 +22099,7 @@ SELECT CodImballo, ClasseArticolo, DescImballo FROM RilPro.AnagImballi WHERE (Co
this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", global::System.Data.SqlDbType.VarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@particolare", global::System.Data.SqlDbType.NVarChar, 15, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[2].Connection = this.Connection;
this._commandCollection[2].CommandText = "dbo.stp_magazzinoOverview_maxCelle";
@@ -22139,7 +22140,7 @@ SELECT CodImballo, ClasseArticolo, DescImballo FROM RilPro.AnagImballi WHERE (Co
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual DS_magazzino.V_MagazziniOverviewDataTable getByCodCS(string CodCS) {
public virtual DS_magazzino.V_MagazziniOverviewDataTable getByCodCS_particolare(string CodCS, string particolare) {
this.Adapter.SelectCommand = this.CommandCollection[1];
if ((CodCS == null)) {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
@@ -22147,6 +22148,12 @@ SELECT CodImballo, ClasseArticolo, DescImballo FROM RilPro.AnagImballi WHERE (Co
else {
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodCS));
}
if ((particolare == null)) {
this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[2].Value = ((string)(particolare));
}
DS_magazzino.V_MagazziniOverviewDataTable dataTable = new DS_magazzino.V_MagazziniOverviewDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -4,7 +4,7 @@
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
</autogenerated>-->
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="1" ViewPortY="1083" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="78" ViewPortY="784" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes>
<Shape ID="DesignTable:ElencoCartellini" ZOrder="7" X="79" Y="230" Height="495" Width="259" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="368" />
<Shape ID="DesignTable:AnagMag" ZOrder="4" X="1047" Y="389" Height="229" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
@@ -1,3 +1,80 @@
set xact_abort on;
go
begin transaction;
go
set ANSI_NULLS on;
go
/*************************************
* STORED PROCEDURE stp_insNewLemma
*
* elimina record anagrafica classe prodotto
*
* mod : 14/05/2012
* aut : S.E. Locatelli
**************************************/
create PROCEDURE stp_insNewLemma
(
@lemma NVARCHAR(50),
@traduzione NVARCHAR(500)
)
AS
-- elimino se c'era già...
DELETE
FROM Vocabolario
WHERE lemma = @lemma
-- inserisco x tutte le lingue attive...
INSERT INTO Vocabolario
SELECT lingua, @lemma, @traduzione
FROM Lingue
SELECT *
FROM Vocabolario
WHERE lemma = @lemma
RETURN
go
commit;
go
set xact_abort on
go
begin transaction
go
INSERT INTO dbo.Vocabolario
VALUES (N'EN', N'lblNumUDC', N'Numero UDC')
INSERT INTO dbo.Vocabolario
VALUES (N'EN', N'lblQtaUDC', N'Pezzi x UDC')
INSERT INTO dbo.Vocabolario
VALUES (N'EN', N'lblQuantitaTotale', N'Quantità totale')
INSERT INTO dbo.Vocabolario
VALUES (N'EN', N'PostAnimeMult', N'Cart. anime ext.')
INSERT INTO dbo.Vocabolario
VALUES (N'EN', N'PostAnimeMultExpl', N'Gestione Stampa Cartellini per anime esterne')
INSERT INTO dbo.Vocabolario
VALUES (N'IT', N'lblNumUDC', N'Numero UDC')
INSERT INTO dbo.Vocabolario
VALUES (N'IT', N'lblQtaUDC', N'Pezzi x UDC')
INSERT INTO dbo.Vocabolario
VALUES (N'IT', N'lblQuantitaTotale', N'Quantità totale')
INSERT INTO dbo.Vocabolario
VALUES (N'IT', N'PostAnimeMult', N'Cart. anime ext.')
INSERT INTO dbo.Vocabolario
VALUES (N'IT', N'PostAnimeMultExpl', N'Gestione Stampa Cartellini per anime esterne')
go
commit transaction
go
Binary file not shown.
Binary file not shown.