Merge branch 'develop'
This commit is contained in:
@@ -161,6 +161,7 @@
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="consumoAnime.aspx" />
|
||||
<Content Include="consumoFusi.aspx" />
|
||||
<Content Include="ExportExcel_SAO.aspx" />
|
||||
<Content Include="finitiTK.aspx" />
|
||||
@@ -256,6 +257,13 @@
|
||||
<Compile Include="chLang.aspx.designer.cs">
|
||||
<DependentUpon>chLang.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="consumoAnime.aspx.cs">
|
||||
<DependentUpon>consumoAnime.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="consumoAnime.aspx.designer.cs">
|
||||
<DependentUpon>consumoAnime.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="consumoFusi.aspx.cs">
|
||||
<DependentUpon>consumoFusi.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@@ -593,6 +601,13 @@
|
||||
<Compile Include="WebUserControls\mod_confMag.ascx.designer.cs">
|
||||
<DependentUpon>mod_confMag.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_consumoAnime.ascx.cs">
|
||||
<DependentUpon>mod_consumoAnime.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_consumoAnime.ascx.designer.cs">
|
||||
<DependentUpon>mod_consumoAnime.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_consumoFusi.ascx.cs">
|
||||
<DependentUpon>mod_consumoFusi.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@@ -1230,6 +1245,7 @@
|
||||
<Content Include="WebUserControls\mod_barPlot.ascx" />
|
||||
<Content Include="WebUserControls\mod_chLang.ascx" />
|
||||
<Content Include="WebUserControls\mod_confMag.ascx" />
|
||||
<Content Include="WebUserControls\mod_consumoAnime.ascx" />
|
||||
<Content Include="WebUserControls\mod_consumoFusi.ascx" />
|
||||
<Content Include="WebUserControls\mod_detailCelle.ascx" />
|
||||
<Content Include="WebUserControls\mod_detailImballi.ascx" />
|
||||
|
||||
+3
-4
@@ -598,7 +598,7 @@
|
||||
background-repeat: repeat-x;
|
||||
background-position: 0% 0%;
|
||||
background-attachment: scroll;
|
||||
background-image: url(images/bluGrad32.png);
|
||||
background-image: url(images/orangeGrad32.png);
|
||||
}
|
||||
.ShadowText
|
||||
{
|
||||
@@ -690,7 +690,7 @@
|
||||
}
|
||||
.barraTitolo
|
||||
{
|
||||
background-color: #4C90FF;
|
||||
background-color: #FF904C;
|
||||
vertical-align: middle;
|
||||
height: 20pt;
|
||||
text-align: center;
|
||||
@@ -1023,7 +1023,6 @@ A:hover
|
||||
|
||||
|
||||
|
||||
|
||||
.fontPiccolo
|
||||
{
|
||||
font-size: 8pt;
|
||||
@@ -1034,7 +1033,7 @@ A:hover
|
||||
}
|
||||
.fontGrande
|
||||
{
|
||||
font-size: 12pt;
|
||||
font-size: 14pt;
|
||||
}
|
||||
|
||||
.divCenter
|
||||
|
||||
+8
-5
@@ -61,7 +61,7 @@
|
||||
<add key="appName" value="GMW" />
|
||||
<add key="SiteName" value="Tekal" />
|
||||
<add key="mainRev" value="2.2" />
|
||||
<add key="minRev" value="550" />
|
||||
<add key="minRev" value="562" />
|
||||
<add key="copyRight" value="SteamWare © 2010-2013" />
|
||||
<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" />
|
||||
@@ -80,7 +80,7 @@
|
||||
<add key="urlWebServer" value="http://SRV-PRODTK01/GMW/" />
|
||||
<add key="echoLemmi" value="false" />
|
||||
<!--area temp-->
|
||||
<add key="maxAgeTempAreaHours" value="24"/>
|
||||
<add key="maxAgeTempAreaHours" value="0"/>
|
||||
<!--area logger-->
|
||||
<add key="_logDir" value="~/logs/" />
|
||||
<add key="doShrinkFolder" value="true" />
|
||||
@@ -146,6 +146,9 @@
|
||||
<add key="IdxPosizioneAnimeExt" value="2222" />
|
||||
<add key="IdxPosizioneFusi" value="3" />
|
||||
<add key="IdxPosizioneFiniti" value="24" />
|
||||
<!--setup celle per LDP-->
|
||||
<add key="cellaLPA" value="LPA010101" />
|
||||
<add key="cellaLPX" value="LPX010101" />
|
||||
<!--Setup eventi-->
|
||||
<add key="nuovoUdcLiquidiF10" value="NEW_F10" />
|
||||
<add key="nuovoUdcLiquidiF18" value="NEW_F18" />
|
||||
@@ -234,14 +237,14 @@
|
||||
<add key="MinutiFinestraEditUDC" value="10" />
|
||||
<add key="_adminEmail" value="giancarlo@steamware.net" />
|
||||
<add key="_smtpCli" value="keyhammer.ath.cx" />
|
||||
<add key="GMWConnectionString" value="Data Source=10.74.82.217\sql2008r2;Initial Catalog=TK_GMW;Persist Security Info=True;User ID=sa;Password=keyhammer" />
|
||||
<add key="GMWConnectionString" value="Data Source=10.74.82.217\sql2008r2;Initial Catalog=TK_GMWTest;Persist Security Info=True;User ID=sa;Password=keyhammer" />
|
||||
<add key="SP_produzioneConnectionString" value="Data Source=10.74.82.217\sql2008r2;Initial Catalog=SP_Produzione;Persist Security Info=True;User ID=connGMW;Password=steamware" />
|
||||
<add key="PermessiConnectionString" value="Data Source=10.74.82.217\sql2008r2;Initial Catalog=TK_GMW;Persist Security Info=True;User ID=sa;Password=keyhammer" />
|
||||
<add key="PermessiConnectionString" value="Data Source=10.74.82.217\sql2008r2;Initial Catalog=TK_GMWTest;Persist Security Info=True;User ID=sa;Password=keyhammer" />
|
||||
<add key="UtenteCdcConnectionString" value="Data Source=10.74.82.217\sql2008r2;Initial Catalog=TK_Anagrafica;Persist Security Info=True;User ID=sa;Password=keyhammer" />
|
||||
<add key="VocabolarioConnectionString" value="Data Source=10.74.82.217\sql2008r2;Initial Catalog=TK_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=TK_GMW;Persist Security Info=True;User ID=sa;Password=keyhammer" providerName="System.Data.SqlClient" />
|
||||
<add name="GMW_data.Properties.Settings.GMWConnectionString" connectionString="Data Source=10.74.82.217\sql2008r2;Initial Catalog=TK_GMWTest;Persist Security Info=True;User ID=sa;Password=keyhammer" providerName="System.Data.SqlClient" />
|
||||
</connectionStrings>
|
||||
<system.webServer>
|
||||
<validation validateIntegratedModeConfiguration="false" />
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_consumoAnime.ascx.cs" Inherits="GMW.WebUserControls.mod_consumoAnime" %>
|
||||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
|
||||
<% if (false)
|
||||
{ %>
|
||||
<link href="../Style.css" rel="stylesheet" type="text/css" />
|
||||
<% } %>
|
||||
<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="lblUdcSel" Font-Size="36pt" Text="- no data -" />
|
||||
</div>
|
||||
<div class="msgBoxBarcode">
|
||||
<asp:Label runat="server" ID="lblMessaggi" Text="attesa input utente" Font-Size="18pt" />
|
||||
<br />
|
||||
<asp:Label runat="server" ID="lblWarning" Visible="false" Text="ATTENZIONE!!! Postazione non configurata!" Font-Size="XX-Large"
|
||||
ForeColor="Red" />
|
||||
</div>
|
||||
</div>
|
||||
<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="480px" Font-Size="32pt" AutoPostBack="True" Style="text-align: center" />
|
||||
<asp:AutoCompleteExtender ID="aceParticolare" runat="server" TargetControlID="txtBarcode" ServicePath="~/WS/AutoCompletamento.asmx"
|
||||
ServiceMethod="elencoParticolari" MinimumPrefixLength="2" CompletionInterval="200" />
|
||||
</div>
|
||||
<div style="padding-top: 10; padding-bottom: 10;">
|
||||
<div style="padding-top: 10; padding-bottom: 10;">
|
||||
<asp:Label runat="server" ID="lblConsuma" Font-Size="24pt" />
|
||||
</div>
|
||||
|
||||
<div style="padding-top: 10; padding-bottom: 10;">
|
||||
<asp:Button ID="btnConsuma" runat="server" Font-Size="20pt" Height="120px" OnClick="btnConsuma_Click" Width="300px" />
|
||||
</div>
|
||||
|
||||
<div style="padding-top: 10; padding-bottom: 10;">
|
||||
<asp:Button ID="btnForzaCons_NoPosVLP" runat="server" Font-Size="20pt" Height="80px" OnClick="btnForzaCons_NoPosVLP_Click"
|
||||
Width="400px" />
|
||||
<asp:Button ID="btnForzaCons_inLDP" runat="server" Font-Size="20pt" Height="80px" OnClick="btnForzaCons_inLDP_Click" Width="400px" />
|
||||
</div>
|
||||
|
||||
<div style="padding-top: 10; padding-bottom: 10;">
|
||||
<asp:Button ID="btnDisableConf" runat="server" Font-Size="20pt" Height="80px" Width="480px" OnClick="btnDisableConf_Click" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</asp:Panel>
|
||||
@@ -0,0 +1,495 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using SteamWare;
|
||||
using GMW_data;
|
||||
|
||||
namespace GMW.WebUserControls
|
||||
{
|
||||
public partial class mod_consumoAnime : 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)
|
||||
{
|
||||
disableConfirm = false;
|
||||
calcolaPostazione();
|
||||
traduciObj();
|
||||
}
|
||||
doChecks();
|
||||
lblUdcSel.Text = "";
|
||||
if (currUdcFrom != "")
|
||||
{
|
||||
lblUdcSel.Text += string.Format("UDC FROM: <b>{0}</b>", currUdcFrom);
|
||||
}
|
||||
if (lblUdcSel.Text == "")
|
||||
{
|
||||
lblUdcSel.Text = "...";
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua controlli visibilità
|
||||
/// </summary>
|
||||
private void doChecks()
|
||||
{
|
||||
checkBarcode();
|
||||
checkConsuma();
|
||||
}
|
||||
/// <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"));
|
||||
lblCurrentPage.Text = traduci(PagCorrente);
|
||||
// buttons
|
||||
btnConsuma.Text = traduci("btnConsumaUdc");
|
||||
btnForzaCons_NoPosVLP.Text = traduci("btnForzaCons_NoPosVLP");
|
||||
btnForzaCons_inLDP.Text = traduci("btnForzaCons_inLDP");
|
||||
// fix button gestione disabilitazione conferme
|
||||
fixBtnDisableConf();
|
||||
}
|
||||
/// <summary>
|
||||
/// ssitema btn abilitazione/disabilitazione conferma comandi
|
||||
/// </summary>
|
||||
private void fixBtnDisableConf()
|
||||
{
|
||||
btnForzaCons_NoPosVLP.Visible = false;
|
||||
btnForzaCons_inLDP.Visible = false;
|
||||
btnConsuma.Visible = true;
|
||||
if (disableConfirm)
|
||||
{
|
||||
btnDisableConf.Text = traduci("confirmDisabled");
|
||||
btnDisableConf.CssClass = "btnRosso";
|
||||
}
|
||||
else
|
||||
{
|
||||
btnDisableConf.Text = traduci("confirmEnabled");
|
||||
btnDisableConf.CssClass = "btnVerde";
|
||||
}
|
||||
if (needForza_NoPosVLP)
|
||||
{
|
||||
btnForzaCons_NoPosVLP.Visible = true;
|
||||
btnConsuma.Visible = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
btnForzaCons_NoPosVLP.Visible = false;
|
||||
}
|
||||
if (needForzaCons_inLDP)
|
||||
{
|
||||
btnForzaCons_inLDP.Visible = true;
|
||||
btnConsuma.Visible = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
btnForzaCons_inLDP.Visible = false;
|
||||
}
|
||||
}
|
||||
/// <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
|
||||
{ }
|
||||
// mostro warning se postazione non configurata...
|
||||
lblWarning.Visible = (postazione_printer == "n.d.");
|
||||
}
|
||||
/// <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 UDC FROM (F10) selezionato
|
||||
/// </summary>
|
||||
protected string currUdcFrom
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj(string.Format("currUdcFrom.{0}", this.ID));
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal(string.Format("currUdcFrom.{0}", this.ID), value, false);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// indica se i caratteri vadano forzati a maiuscoli
|
||||
/// </summary>
|
||||
public bool forceUppercase
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.confReadBool("forceUppercase");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// indica se siano disabilitate le conferme x avere operazioni veloci
|
||||
/// </summary>
|
||||
public bool disableConfirm
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.BoolSessionObj(string.Format("disableConfirm.{0}", this.ID));
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal(string.Format("disableConfirm.{0}", this.ID), value);
|
||||
fixBtnDisableConf();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// indica se siano disabilitate le conferme x avere operazioni veloci
|
||||
/// </summary>
|
||||
public bool needForza_NoPosVLP
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.BoolSessionObj("Forza_NoPosVLP");
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("Forza_NoPosVLP", value);
|
||||
fixBtnDisableConf();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// indica se siano disabilitate le conferme x avere operazioni veloci
|
||||
/// </summary>
|
||||
public bool needForzaCons_inLDP
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.BoolSessionObj("ForzaCons_inLDP");
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("ForzaCons_inLDP", value);
|
||||
fixBtnDisableConf();
|
||||
}
|
||||
}
|
||||
/// <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 particolare "P"
|
||||
else if (barcodeIn.StartsWith("P") || barcodeIn.StartsWith("A"))
|
||||
{
|
||||
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>
|
||||
/// controlla se ci sia un barcode
|
||||
/// </summary>
|
||||
private void checkBarcode()
|
||||
{
|
||||
if (barcodeIn != "")
|
||||
{
|
||||
DS_Applicazione.ElencoCartelliniRow rigaCart;
|
||||
string tipoImballo = "";
|
||||
lblMessaggi.Text = string.Format("Barcode digitato: {0}", barcodeIn);
|
||||
switch (tipoBCode)
|
||||
{
|
||||
case tipoCodiceBarcode.UDC:
|
||||
// procedo solo se UDC esistente
|
||||
if (MagClass.magazzino.checkUDC(barcodeIn))
|
||||
{
|
||||
// cerco di recuperare riga UDC
|
||||
try
|
||||
{
|
||||
rigaCart = DataProxy.obj.taCartellini.stp_getByUdc(barcodeIn)[0];
|
||||
tipoImballo = rigaCart.CodImballo;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// salvo UDC from
|
||||
currUdcFrom = barcodeIn;
|
||||
pnlAll.CssClass = "stileAttesa";
|
||||
// resetto warnings
|
||||
needForza_NoPosVLP = false;
|
||||
needForzaCons_inLDP = false;
|
||||
// controllo: se sono in fast mode SCARICO!
|
||||
if (disableConfirm)
|
||||
{
|
||||
scaricaUdcFrom(false);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case tipoCodiceBarcode.Comando:
|
||||
// se richiesto scarico rapido lo gestisco
|
||||
if (barcodeIn.ToUpper() == memLayer.ML.confReadString("cmdFast").ToUpper())
|
||||
{
|
||||
disableConfirm = !disableConfirm;
|
||||
lblMessaggi.Text = traduci("enDisFastMode");
|
||||
}
|
||||
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 abilitazione consumo
|
||||
/// </summary>
|
||||
private void checkConsuma()
|
||||
{
|
||||
bool consumaOk = false;
|
||||
if (!disableConfirm)
|
||||
{
|
||||
if (currUdcFrom != "")
|
||||
{
|
||||
consumaOk = true;
|
||||
}
|
||||
}
|
||||
btnConsuma.Enabled = consumaOk;
|
||||
}
|
||||
/// <summary>
|
||||
/// consuma UDC
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnConsuma_Click(object sender, EventArgs e)
|
||||
{
|
||||
scaricaUdcFrom(false);
|
||||
}
|
||||
/// <summary>
|
||||
/// consuma UDC anche se non è in posizione LPA010101
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnForzaCons_NoPosVLP_Click(object sender, EventArgs e)
|
||||
{
|
||||
scaricaUdcFrom(true);
|
||||
}
|
||||
/// <summary>
|
||||
/// consuma UDC anche se in LDP
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnForzaCons_inLDP_Click(object sender, EventArgs e)
|
||||
{
|
||||
scaricaUdcFrom(true);
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua scaricamento UDC FROM
|
||||
/// </summary>
|
||||
/// <param name="forzaOperazione">true/false se forzaer operazione anche se
|
||||
/// - NON in posizione LPA010101
|
||||
/// - non già presente in LDP (nel qual caso lo toglie)</param>
|
||||
private void scaricaUdcFrom(bool forzaOperazione)
|
||||
{
|
||||
if (currUdcFrom != "")
|
||||
{
|
||||
// controllo se UDC non sia già consumato...
|
||||
if (MagClass.magazzino.udcMpIsConsumabile(currUdcFrom))
|
||||
{
|
||||
// controllo UDC sia corretto (in giusta posizione...)
|
||||
if (MagClass.magazzino.idxPosizioneUdc(currUdcFrom) == memLayer.ML.confReadInt("IdxPosizioneAnime"))
|
||||
{
|
||||
// controllo UDC sia in posizione LDP anime LPA010101...
|
||||
if (MagClass.magazzino.codCellaUdc(currUdcFrom) == memLayer.ML.confReadString("cellaLPA") || MagClass.magazzino.codCellaUdc(currUdcFrom) == memLayer.ML.confReadString("cellaLPX") || forzaOperazione)
|
||||
{
|
||||
// controllo che non sia già in una LDP
|
||||
if (!MagClass.magazzino.udcInLdp(currUdcFrom) || forzaOperazione)
|
||||
{
|
||||
// consumo UDC
|
||||
MagClass.magazzino.scaricaUdcMpWip(currUdcFrom, Request.UserHostName);
|
||||
// se richiesto (era in LDP)
|
||||
if (needForzaCons_inLDP)
|
||||
{
|
||||
// elimino part da altre LDP
|
||||
MagClass.magazzino.taRigheListePrelievo.eliminaByUdc(currUdcFrom);
|
||||
}
|
||||
// indico UDC consumato!
|
||||
lblMessaggi.Text = string.Format("{0} {1}", traduci("effettuatoConsumoUDC"), currUdcFrom);
|
||||
currUdcFrom = "";
|
||||
pnlAll.CssClass = "stileComandoOk";
|
||||
needForzaCons_inLDP = false;
|
||||
needForza_NoPosVLP = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
// è già in una LDP: mostro button x forzare...
|
||||
lblMessaggi.Text = string.Format("{0} {1}", traduci("UDC_impegnatoLDP"), currUdcFrom);
|
||||
needForzaCons_inLDP = true;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// non è in posizione LPA: mostro button x forzare...
|
||||
lblMessaggi.Text = string.Format("{0} {1}", traduci("UDC_nonPrel"), currUdcFrom);
|
||||
needForza_NoPosVLP = true;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// indico UDC sbagliato!
|
||||
lblMessaggi.Text = string.Format("{0} {1}", traduci("UDC_posizErrataAnime"), currUdcFrom);
|
||||
pnlAll.CssClass = "stileComandoKo";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// indico UDC consumato!
|
||||
lblMessaggi.Text = string.Format("{0} {1}", traduci("UDC_giaConsumato"), currUdcFrom);
|
||||
pnlAll.CssClass = "stileComandoKo";
|
||||
}
|
||||
lblUdcSel.Text = "";
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// cambia la modalità di scarico UDC dis/abilitando conferme
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnDisableConf_Click(object sender, EventArgs e)
|
||||
{
|
||||
disableConfirm = !disableConfirm;
|
||||
}
|
||||
}
|
||||
}
|
||||
+159
@@ -0,0 +1,159 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// 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_consumoAnime {
|
||||
|
||||
/// <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>
|
||||
/// lblUdcSel 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 lblUdcSel;
|
||||
|
||||
/// <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>
|
||||
/// lblWarning 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 lblWarning;
|
||||
|
||||
/// <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>
|
||||
/// lblConsuma 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 lblConsuma;
|
||||
|
||||
/// <summary>
|
||||
/// btnConsuma 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 btnConsuma;
|
||||
|
||||
/// <summary>
|
||||
/// btnForzaCons_NoPosVLP 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 btnForzaCons_NoPosVLP;
|
||||
|
||||
/// <summary>
|
||||
/// btnForzaCons_inLDP 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 btnForzaCons_inLDP;
|
||||
|
||||
/// <summary>
|
||||
/// btnDisableConf 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 btnDisableConf;
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,9 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_consumoFusi.ascx.cs" Inherits="GMW.WebUserControls.mod_consumoFusi" %>
|
||||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
|
||||
<% if (false)
|
||||
{ %>
|
||||
<link href="../Style.css" rel="stylesheet" type="text/css" />
|
||||
<% } %>
|
||||
<asp:Panel runat="server" ID="pnlAll" CssClass="stileAttesa" Height="100%">
|
||||
<div style="height: 100%;">
|
||||
<div style="float: none; text-align: center; margin: auto;">
|
||||
|
||||
@@ -284,7 +284,7 @@ namespace GMW.WebUserControls
|
||||
DateTime start;
|
||||
foreach (GridViewRow riga in grView.Rows)
|
||||
{
|
||||
if (((CheckBox)riga.FindControl("chkSelect")).Checked)
|
||||
if (((CheckBox)riga.FindControl("chkSelect")).Checked && ((CheckBox)riga.FindControl("chkSelect")).Visible)
|
||||
{
|
||||
start = DateTime.Now;
|
||||
// recupero codice UDC...
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_elencoListePrelievo.ascx.cs"
|
||||
Inherits="GMW.WebUserControls.mod_elencoListePrelievo" %>
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_elencoListePrelievo.ascx.cs" Inherits="GMW.WebUserControls.mod_elencoListePrelievo" %>
|
||||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
|
||||
<%@ Register Src="mod_viewRigheListaPrelievo.ascx" TagName="mod_viewRigheListaPrelievo"
|
||||
TagPrefix="uc1" %>
|
||||
<%@ Register Src="mod_viewRigheListaPrelievo.ascx" TagName="mod_viewRigheListaPrelievo" TagPrefix="uc1" %>
|
||||
<%@ Register Src="mod_periodoAnalisi.ascx" TagName="mod_periodoAnalisi" TagPrefix="uc2" %>
|
||||
<%@ Register Src="mod_filtro.ascx" TagName="mod_filtro" TagPrefix="uc3" %>
|
||||
<%@ Register Src="mod_nuovaListaPrelievo.ascx" TagName="mod_nuovaListaPrelievo" TagPrefix="uc4" %>
|
||||
@@ -18,16 +16,16 @@
|
||||
<uc2:mod_periodoAnalisi ID="mod_periodoAnalisi1" runat="server" />
|
||||
</div>
|
||||
<div style="float: left;">
|
||||
<uc3:mod_filtro ID="mod_filtroStato" runat="server" Oneh_selValore="eh_selectedStato"
|
||||
comboWidth="60" filterChekText="filtraStatoListe" />
|
||||
<asp:ObjectDataSource ID="odsFiltroStati" runat="server" OldValuesParameterFormatString="Original_{0}"
|
||||
SelectMethod="GetData" TypeName="GMW_data.DS_UtilityTableAdapters.v_selStatiListeTableAdapter">
|
||||
</asp:ObjectDataSource>
|
||||
<uc3:mod_filtro ID="mod_filtroTipo" runat="server" Oneh_selValore="eh_selectedTipo"
|
||||
comboWidth="180" filterChekText="filtraTipoListe" isChecked="false" />
|
||||
<asp:ObjectDataSource ID="odsTipoLista" runat="server" OldValuesParameterFormatString="Original_{0}"
|
||||
SelectMethod="GetData" TypeName="GMW_data.DS_UtilityTableAdapters.v_selTipoListaTableAdapter">
|
||||
</asp:ObjectDataSource>
|
||||
<uc3:mod_filtro ID="mod_filtroStato" runat="server" Oneh_selValore="eh_selectedStato" comboWidth="60" filterChekText="filtraStatoListe" />
|
||||
<asp:ObjectDataSource ID="odsFiltroStati" runat="server" OldValuesParameterFormatString="Original_{0}" SelectMethod="GetData"
|
||||
TypeName="GMW_data.DS_UtilityTableAdapters.v_selStatiListeTableAdapter"></asp:ObjectDataSource>
|
||||
<uc3:mod_filtro ID="mod_filtroTipo" runat="server" Oneh_selValore="eh_selectedTipo" comboWidth="180" filterChekText="filtraTipoListe"
|
||||
isChecked="false" />
|
||||
<asp:ObjectDataSource ID="odsTipoLista" runat="server" OldValuesParameterFormatString="Original_{0}" SelectMethod="GetData"
|
||||
TypeName="GMW_data.DS_UtilityTableAdapters.v_selTipoListaTableAdapter"></asp:ObjectDataSource>
|
||||
<uc3:mod_filtro ID="mod_filtroTipoPart" runat="server" Oneh_selValore="eh_selectedTipoPart" comboWidth="60" filterChekText="filtraTipoPart" />
|
||||
<asp:ObjectDataSource ID="odsTipoPart" runat="server" OldValuesParameterFormatString="Original_{0}" SelectMethod="GetData"
|
||||
TypeName="GMW_data.DS_UtilityTableAdapters.v_selTipoPartTableAdapter"></asp:ObjectDataSource>
|
||||
</div>
|
||||
<div style="float: right;">
|
||||
<asp:Button runat="server" ID="btnForceReload" OnClick="btnForceReload_Click" />
|
||||
@@ -36,25 +34,22 @@
|
||||
<div class="filtro_2" style="white-space: nowrap; padding: 2px;">
|
||||
<asp:Button runat="server" ID="btnNewLista" OnClick="btnNewLista_Click" CausesValidation="false" />
|
||||
<asp:Button runat="server" ID="btnSetDestTipo" OnClick="btnSetDestTipo_Click" CausesValidation="false" />
|
||||
<asp:Button runat="server" ID="btnSetModeScaricaListeSel" OnClick="btnSetModeScaricaListeSel_Click"
|
||||
CausesValidation="false" />
|
||||
<asp:Button runat="server" ID="btnSetModeScaricaListeSel" OnClick="btnSetModeScaricaListeSel_Click" CausesValidation="false" />
|
||||
<uc4:mod_nuovaListaPrelievo ID="mod_nuovaListaPrelievo1" runat="server" />
|
||||
<asp:Panel runat="server" ID="pnlSetDestTipo">
|
||||
<asp:DropDownList ID="ddlTipoLista" runat="server" DataSourceID="odsTipoLista" DataTextField="label"
|
||||
DataValueField="value" AutoPostBack="True">
|
||||
<asp:DropDownList ID="ddlTipoLista" runat="server" DataSourceID="odsTipoLista" DataTextField="label" DataValueField="value"
|
||||
AutoPostBack="True">
|
||||
</asp:DropDownList>
|
||||
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="GetData" TypeName="GMW_data.DS_UtilityTableAdapters.v_selTipoListaTableAdapter">
|
||||
</asp:ObjectDataSource>
|
||||
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData"
|
||||
TypeName="GMW_data.DS_UtilityTableAdapters.v_selTipoListaTableAdapter"></asp:ObjectDataSource>
|
||||
<asp:Label ID="lblDestinatario" runat="server" Font-Size="7pt" />
|
||||
<asp:ComboBox ID="ddlDestinatario" runat="server" DataTextField="label" DataValueField="value"
|
||||
AutoCompleteMode="SuggestAppend" DropDownStyle="DropDownList" AutoPostBack="True"
|
||||
DataSourceID="odsDestinatario" CssClass="WindowsStyle" MaxLength="0" Style="display: inline;" />
|
||||
<asp:ObjectDataSource ID="odsDestinatario" runat="server" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="getByConditio" TypeName="GMW_data.DS_UtilityTableAdapters.v_selDestinatariListePrelievoTableAdapter">
|
||||
<asp:ComboBox ID="ddlDestinatario" runat="server" DataTextField="label" DataValueField="value" AutoCompleteMode="SuggestAppend"
|
||||
DropDownStyle="DropDownList" AutoPostBack="True" DataSourceID="odsDestinatario" CssClass="WindowsStyle" MaxLength="0"
|
||||
Style="display: inline;" />
|
||||
<asp:ObjectDataSource ID="odsDestinatario" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByConditio"
|
||||
TypeName="GMW_data.DS_UtilityTableAdapters.v_selDestinatariListePrelievoTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="ddlTipoLista" Name="conditio" PropertyName="SelectedValue"
|
||||
DefaultValue="*" Type="String" />
|
||||
<asp:ControlParameter ControlID="ddlTipoLista" Name="conditio" PropertyName="SelectedValue" DefaultValue="*" Type="String" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<asp:Button runat="server" ID="btnUpdateDestTipo" OnClick="btnUpdateDestTipo_Click" />
|
||||
@@ -64,8 +59,7 @@
|
||||
</asp:Panel>
|
||||
<asp:Panel runat="server" ID="pnlRowNum" CssClass="divDx">
|
||||
<asp:Label runat="server" ID="lblNumRighe" Text="righe per pagina" />:
|
||||
<asp:TextBox ID="txtNumRighe" runat="server" AutoPostBack="True"
|
||||
ontextchanged="txtNumRighe_TextChanged" Width="3em" />
|
||||
<asp:TextBox ID="txtNumRighe" runat="server" AutoPostBack="True" OnTextChanged="txtNumRighe_TextChanged" Width="3em" />
|
||||
</asp:Panel>
|
||||
</div>
|
||||
</td>
|
||||
@@ -73,11 +67,9 @@
|
||||
<tr>
|
||||
<td valign="top" align="left">
|
||||
<asp:Label runat="server" ID="lblErroriLDP" Visible="false" CssClass="erroreBig" />
|
||||
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
|
||||
OnSelectedIndexChanged="grView_SelectedIndexChanged" OnDataBound="grView_DataBound"
|
||||
DataKeyNames="CodLista" DataSourceID="ods" OnRowUpdating="grView_RowUpdating"
|
||||
OnPageIndexChanged="grView_PageIndexChanged" OnSorted="grView_Sorted" OnRowEditing="grView_RowEditing"
|
||||
OnRowUpdated="grView_RowUpdated">
|
||||
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" OnSelectedIndexChanged="grView_SelectedIndexChanged"
|
||||
OnDataBound="grView_DataBound" DataKeyNames="CodLista" DataSourceID="ods" OnRowUpdating="grView_RowUpdating" OnPageIndexChanged="grView_PageIndexChanged"
|
||||
OnSorted="grView_Sorted" OnRowEditing="grView_RowEditing" OnRowUpdated="grView_RowUpdated">
|
||||
<RowStyle CssClass="ctrRowStyle" />
|
||||
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
|
||||
<EditRowStyle CssClass="ctrEditRowStyle" />
|
||||
@@ -95,19 +87,18 @@
|
||||
<asp:CheckBox ID="chkSelect" runat="server" Visible='<%# modDestAndTipo(Eval("CodStatoLista")) %>' />
|
||||
</ItemTemplate>
|
||||
<HeaderTemplate>
|
||||
<asp:CheckBox ID="btnSelAll" runat="server" Checked="false" ToolTip='<%# traduci("btnSelAll") %>'
|
||||
OnCheckedChanged="btnSelAll_Click" CssClass="ctrHeaderPager" AutoPostBack="true" />
|
||||
<asp:CheckBox ID="btnSelAll" runat="server" Checked="false" ToolTip='<%# traduci("btnSelAll") %>' OnCheckedChanged="btnSelAll_Click"
|
||||
CssClass="ctrHeaderPager" AutoPostBack="true" />
|
||||
</HeaderTemplate>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center">
|
||||
<HeaderTemplate>
|
||||
<asp:Button ID="btnReset" runat="server" Text='<%# traduci("Reset") %>' OnClick="btnReset_Click"
|
||||
Visible="true" />
|
||||
<asp:Button ID="btnReset" runat="server" Text='<%# traduci("Reset") %>' OnClick="btnReset_Click" Visible="true" />
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton ID="imgSelect" runat="server" CausesValidation="False" CommandName="Select"
|
||||
ToolTip='<%# traduci("Select") %>' ImageUrl="~/images/view_m.png" />
|
||||
<asp:ImageButton ID="imgSelect" runat="server" CausesValidation="False" CommandName="Select" ToolTip='<%# traduci("Select") %>'
|
||||
ImageUrl="~/images/view_m.png" />
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
@@ -115,8 +106,7 @@
|
||||
<ItemTemplate>
|
||||
<div style="padding: 2px;">
|
||||
<div style="float: left;">
|
||||
<asp:Image runat="server" ID="imgCodTipoLista" ImageUrl='<%# pathImgTipo(Eval("CodTipoLista")) %>'
|
||||
ToolTip='<%# tooltipTipo(Eval("CodTipoLista")) %>' />
|
||||
<asp:Image runat="server" ID="imgCodTipoLista" ImageUrl='<%# pathImgTipo(Eval("CodTipoLista")) %>' ToolTip='<%# tooltipTipo(Eval("CodTipoLista")) %>' />
|
||||
</div>
|
||||
<div style="float: left;">
|
||||
<asp:Label ID="lblDestinatario" runat="server" Text='<%# Eval("Destinatario","[{0}]") %>' />
|
||||
@@ -148,8 +138,7 @@
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Stato" SortExpression="CodStatoLista" ItemStyle-HorizontalAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:Image runat="server" ID="imgCodStatoLista" ImageUrl='<%# pathImgStato(Eval("CodStatoLista")) %>'
|
||||
ToolTip='<%# tooltipStato(Eval("CodStatoLista")) %>' />
|
||||
<asp:Image runat="server" ID="imgCodStatoLista" ImageUrl='<%# pathImgStato(Eval("CodStatoLista")) %>' ToolTip='<%# tooltipStato(Eval("CodStatoLista")) %>' />
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
@@ -158,12 +147,10 @@
|
||||
<asp:Label runat="server" ID="lblAttiva" Text="A" ToolTip='<%# traduci("AttivaListaPrelievo") %>' />
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton ID="imgAttivaListaPrelievo" runat="server" CausesValidation="False"
|
||||
CommandName="Update" CommandArgument="attivaListaPrelievo" ToolTip='<%# traduci("AttivaListaPrelievo") %>'
|
||||
Visible='<%# attivaEnabled(Eval("CodStatoLista")) %>' ImageUrl="~/images/apply_s.png"
|
||||
<asp:ImageButton ID="imgAttivaListaPrelievo" runat="server" CausesValidation="False" CommandName="Update" CommandArgument="attivaListaPrelievo"
|
||||
ToolTip='<%# traduci("AttivaListaPrelievo") %>' Visible='<%# attivaEnabled(Eval("CodStatoLista")) %>' ImageUrl="~/images/apply_s.png"
|
||||
OnClick="img_Click" />
|
||||
<asp:ConfirmButtonExtender ID="cbeAttiva" runat="server" ConfirmText='<%# traduci("confermaAttivaLista")%>'
|
||||
TargetControlID="imgAttivaListaPrelievo" />
|
||||
<asp:ConfirmButtonExtender ID="cbeAttiva" runat="server" ConfirmText='<%# traduci("confermaAttivaLista")%>' TargetControlID="imgAttivaListaPrelievo" />
|
||||
</ItemTemplate>
|
||||
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
@@ -173,12 +160,10 @@
|
||||
<asp:Label runat="server" ID="lblInizia" Text="I" ToolTip='<%# traduci("IniziaListaPrelievo") %>' />
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton ID="imgIniziaListaPrelievo" runat="server" CausesValidation="False"
|
||||
CommandName="Update" CommandArgument="iniziaListaPrelievo" ToolTip='<%# traduci("IniziaListaPrelievo") %>'
|
||||
Visible='<%# iniziaEnabled(Eval("CodStatoLista")) %>' ImageUrl="~/images/apply_s.png"
|
||||
<asp:ImageButton ID="imgIniziaListaPrelievo" runat="server" CausesValidation="False" CommandName="Update" CommandArgument="iniziaListaPrelievo"
|
||||
ToolTip='<%# traduci("IniziaListaPrelievo") %>' Visible='<%# iniziaEnabled(Eval("CodStatoLista")) %>' ImageUrl="~/images/apply_s.png"
|
||||
Enabled="true" OnClick="img_Click" />
|
||||
<asp:ConfirmButtonExtender ID="cbeInizia" runat="server" ConfirmText='<%# traduci("confermaIniziaLista")%>'
|
||||
TargetControlID="imgIniziaListaPrelievo" />
|
||||
<asp:ConfirmButtonExtender ID="cbeInizia" runat="server" ConfirmText='<%# traduci("confermaIniziaLista")%>' TargetControlID="imgIniziaListaPrelievo" />
|
||||
</ItemTemplate>
|
||||
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
@@ -188,12 +173,10 @@
|
||||
<asp:Label runat="server" ID="lblCompleta" Text="C" ToolTip='<%# traduci("CompletaListaPrelievo") %>' />
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton ID="imgCompletaListaPrelievo" runat="server" CausesValidation="False"
|
||||
CommandName="Update" CommandArgument="completaListaPrelievo" ToolTip='<%# traduciCodSogg(Eval("CodSoggetto"), traduci("InCaricoA")) %>'
|
||||
Visible='<%# completaEnabled(Eval("CodStatoLista")) %>' ImageUrl="~/images/apply_s.png"
|
||||
Enabled="true" OnClick="img_Click" />
|
||||
<asp:ConfirmButtonExtender ID="cbeCompleta" runat="server" ConfirmText='<%# traduci("confermaCompletaLista")%>'
|
||||
TargetControlID="imgCompletaListaPrelievo" />
|
||||
<asp:ImageButton ID="imgCompletaListaPrelievo" runat="server" CausesValidation="False" CommandName="Update" CommandArgument="completaListaPrelievo"
|
||||
ToolTip='<%# traduciCodSogg(Eval("CodSoggetto"), traduci("InCaricoA")) %>' Visible='<%# completaEnabled(Eval("CodStatoLista")) %>'
|
||||
ImageUrl="~/images/apply_s.png" Enabled="true" OnClick="img_Click" />
|
||||
<asp:ConfirmButtonExtender ID="cbeCompleta" runat="server" ConfirmText='<%# traduci("confermaCompletaLista")%>' TargetControlID="imgCompletaListaPrelievo" />
|
||||
</ItemTemplate>
|
||||
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
@@ -203,23 +186,19 @@
|
||||
<asp:Label runat="server" ID="lblScarica" Text="S" ToolTip='<%# traduci("ScaricaListaPrelievo") %>' />
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton ID="imgScaricaListaPrelievo" runat="server" CausesValidation="False"
|
||||
CommandName="Update" CommandArgument="scaricaListaPrelievo" Visible='<%# ScaricaEnabled(Eval("CodStatoLista"), Eval("CodTipoLista")) %>'
|
||||
ToolTip='<%# traduciCodSogg(Eval("CodSoggetto"), traduci("ScaricaListaPrelievoCompletataDa")) %>'
|
||||
<asp:ImageButton ID="imgScaricaListaPrelievo" runat="server" CausesValidation="False" CommandName="Update" CommandArgument="scaricaListaPrelievo"
|
||||
Visible='<%# ScaricaEnabled(Eval("CodStatoLista"), Eval("CodTipoLista")) %>' ToolTip='<%# traduciCodSogg(Eval("CodSoggetto"), traduci("ScaricaListaPrelievoCompletataDa")) %>'
|
||||
ImageUrl="~/images/apply_s.png" OnClick="img_Click" />
|
||||
<asp:ConfirmButtonExtender ID="cbeScarica" runat="server" ConfirmText='<%# traduci("confermaScaricaLista")%>'
|
||||
TargetControlID="imgScaricaListaPrelievo" />
|
||||
<asp:ConfirmButtonExtender ID="cbeScarica" runat="server" ConfirmText='<%# traduci("confermaScaricaLista")%>' TargetControlID="imgScaricaListaPrelievo" />
|
||||
</ItemTemplate>
|
||||
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:ImageButton ID="imgDelete" runat="server" CausesValidation="False" CommandName="Delete"
|
||||
CommandArgument='<%# Eval("CodStatoLista") %>' ToolTip='<%# traduci("Delete") %>'
|
||||
Visible='<%# delEnabled(Eval("CodStatoLista")) %>' ImageUrl="~/images/elimina_m.png" />
|
||||
<asp:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server" ConfirmText='<%# traduci("confermaDel")%>'
|
||||
TargetControlID="imgDelete">
|
||||
<asp:ImageButton ID="imgDelete" runat="server" CausesValidation="False" CommandName="Delete" CommandArgument='<%# Eval("CodStatoLista") %>'
|
||||
ToolTip='<%# traduci("Delete") %>' Visible='<%# delEnabled(Eval("CodStatoLista")) %>' ImageUrl="~/images/elimina_m.png" />
|
||||
<asp:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server" ConfirmText='<%# traduci("confermaDel")%>' TargetControlID="imgDelete">
|
||||
</asp:ConfirmButtonExtender>
|
||||
</ItemTemplate>
|
||||
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
|
||||
@@ -236,12 +215,10 @@
|
||||
<asp:Label runat="server" ID="lblReset" Text="X" ToolTip='<%# traduci("ResetListaPrelievo") %>' />
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<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")) %>' />
|
||||
<asp:ConfirmButtonExtender ID="cbeReset" runat="server" ConfirmText='<%# traduci("confermaResetLista")%>'
|
||||
TargetControlID="imgResetListaPrelievo" />
|
||||
<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")) %>' />
|
||||
<asp:ConfirmButtonExtender ID="cbeReset" runat="server" ConfirmText='<%# traduci("confermaResetLista")%>' TargetControlID="imgResetListaPrelievo" />
|
||||
</ItemTemplate>
|
||||
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
@@ -250,8 +227,7 @@
|
||||
</asp:GridView>
|
||||
<asp:Label ID="lblNumRec" runat="server" CssClass="txtMini" />
|
||||
<asp:Label ID="lblWarning" runat="server" Visible="false" CssClass="erroreMid" />
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="Original_{0}"
|
||||
SelectMethod="getByFilt" TypeName="GMW_data.DS_magazzinoTableAdapters.ElencoListePrelievoTableAdapter"
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="Original_{0}" SelectMethod="getByFilt" TypeName="GMW_data.DS_magazzinoTableAdapters.ElencoListePrelievoTableAdapter"
|
||||
OnInserting="recuperaFooter" FilterExpression="CodLista LIKE '%{0}%' OR Particolare LIKE '%{0}%' OR DescParticolare LIKE '%{0}%'"
|
||||
OnInserted="ods_Updated" OnUpdated="ods_Updated" DeleteMethod="DeleteQuery" OnDeleted="ods_Updated">
|
||||
<FilterParameters>
|
||||
@@ -263,6 +239,7 @@
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter Name="DataFrom" SessionField="_inizio" Type="DateTime" />
|
||||
<asp:SessionParameter Name="DataTo" SessionField="_fine" Type="DateTime" />
|
||||
<asp:ControlParameter ControlID="mod_filtroTipoPart" Name="classifArticolo" PropertyName="valore" Type="String" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</td>
|
||||
|
||||
@@ -325,6 +325,7 @@ namespace GMW.WebUserControls
|
||||
mod_periodoAnalisi1.setPeriodoFree();
|
||||
mod_filtroStato.ods = odsFiltroStati;
|
||||
mod_filtroTipo.ods = odsTipoLista;
|
||||
mod_filtroTipoPart.ods = odsTipoPart;
|
||||
// controllo se ci sia richiesta x creare nuova lista, nel caso precompilo valori...
|
||||
if (memLayer.ML.BoolSessionObj("PrecompilaListaPrelievo"))
|
||||
{
|
||||
@@ -813,12 +814,15 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
ods.FilterParameters.Clear();
|
||||
ods.FilterExpression = "(CodLista LIKE '%{0}%' OR Particolare LIKE '%{0}%' OR DescParticolare LIKE '%{0}%')";
|
||||
|
||||
// parametro ricerca attuale
|
||||
SessionParameter parametroFiltro = new SessionParameter();
|
||||
parametroFiltro.SessionField = "valoreCercato";
|
||||
parametroFiltro.Name = "ricerca";
|
||||
parametroFiltro.DefaultValue = "*";
|
||||
ods.FilterParameters.Add(parametroFiltro);
|
||||
|
||||
// filtro stato lista
|
||||
if (mod_filtroStato.valore != "*")
|
||||
{
|
||||
ods.FilterExpression += " AND CodStatoLista = {1}";
|
||||
@@ -829,6 +833,8 @@ namespace GMW.WebUserControls
|
||||
parametroListaStato.Name = "CodStato";
|
||||
parametroListaStato.DefaultValue = "0";
|
||||
ods.FilterParameters.Add(parametroListaStato);
|
||||
|
||||
// filtro tipo lista
|
||||
if (mod_filtroTipo.valore != "*")
|
||||
{
|
||||
ods.FilterExpression += " AND CodTipoLista = '{2}'";
|
||||
@@ -839,7 +845,8 @@ namespace GMW.WebUserControls
|
||||
parametroListaTipo.Name = "CodTipoLista";
|
||||
parametroListaTipo.DefaultValue = "0";
|
||||
ods.FilterParameters.Add(parametroListaTipo);
|
||||
// se ono in modalità scarico multiplo nascondo stati !=3 e SmartList...
|
||||
|
||||
// se sono in modalità scarico multiplo nascondo stati !=3 e SmartList...
|
||||
if (modo == ctrlMode.scaricaMultiLDP)
|
||||
{
|
||||
ods.FilterExpression += " AND CodStatoLista = 3 AND CodTipoLista <> '00-Smart'";
|
||||
@@ -860,6 +867,15 @@ namespace GMW.WebUserControls
|
||||
checkFixOds();
|
||||
}
|
||||
/// <summary>
|
||||
/// chiamato post modifica valore check/selezione nel selettore filtro tipo particolare
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
public void eh_selectedTipoPart(object sender, EventArgs e)
|
||||
{
|
||||
checkFixOds();
|
||||
}
|
||||
/// <summary>
|
||||
/// restituisce URL immagine del codice da mostrare x stato lista
|
||||
/// </summary>
|
||||
/// <param name="codStato"></param>
|
||||
@@ -1067,7 +1083,7 @@ namespace GMW.WebUserControls
|
||||
string CodLista = "";
|
||||
foreach (GridViewRow riga in grView.Rows)
|
||||
{
|
||||
if (((CheckBox)riga.FindControl("chkSelect")).Checked)
|
||||
if (((CheckBox)riga.FindControl("chkSelect")).Checked && ((CheckBox)riga.FindControl("chkSelect")).Visible)
|
||||
{
|
||||
CodLista = ((Label)riga.FindControl("lblCodLista")).Text;
|
||||
updateDestTipoLDP(CodLista);
|
||||
@@ -1094,7 +1110,7 @@ namespace GMW.WebUserControls
|
||||
string CodLista = "";
|
||||
foreach (GridViewRow riga in grView.Rows)
|
||||
{
|
||||
if (((CheckBox)riga.FindControl("chkSelect")).Checked)
|
||||
if (((CheckBox)riga.FindControl("chkSelect")).Checked && ((CheckBox)riga.FindControl("chkSelect")).Visible)
|
||||
{
|
||||
CodLista = ((Label)riga.FindControl("lblCodLista")).Text;
|
||||
GMW_data.MagClass.magazzino.scaricaListaPrelievo(memLayer.ML.StringSessionObj("CodCS"), CodLista, MagClass.magazzino.CodSoggCurrUser, Request.UserHostName);
|
||||
@@ -1133,7 +1149,7 @@ namespace GMW.WebUserControls
|
||||
/// <param name="CodLista"></param>
|
||||
private void updateDestTipoLDP(string CodLista)
|
||||
{
|
||||
GMW_data.MagClass.magazzino.taElencoListePrelievo.stp_LP_updateDestTipo(CodLista, ddlTipoLista.SelectedValue, ddlDestinatario.SelectedValue, ddlDestinatario.SelectedItem.Text);
|
||||
GMW_data.MagClass.magazzino.taElencoListePrelievo.stp_LP_updateDestTipo(CodLista, ddlTipoLista.SelectedValue, ddlDestinatario.SelectedValue, ddlDestinatario.SelectedItem.Text, GMW_data.MagClass.magazzino.CodSoggCurrUser, DateTime.Now);
|
||||
}
|
||||
/// <summary>
|
||||
/// modo di funzionamento del controllo
|
||||
|
||||
@@ -57,6 +57,24 @@ namespace GMW.WebUserControls {
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource odsTipoLista;
|
||||
|
||||
/// <summary>
|
||||
/// mod_filtroTipoPart control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::mod_filtro mod_filtroTipoPart;
|
||||
|
||||
/// <summary>
|
||||
/// odsTipoPart 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.ObjectDataSource odsTipoPart;
|
||||
|
||||
/// <summary>
|
||||
/// btnForceReload control.
|
||||
/// </summary>
|
||||
|
||||
@@ -246,7 +246,7 @@ namespace GMW.WebUserControls
|
||||
string UDC = "";
|
||||
foreach (GridViewRow riga in grView.Rows)
|
||||
{
|
||||
if (((CheckBox)riga.FindControl("chkSelect")).Checked)
|
||||
if (((CheckBox)riga.FindControl("chkSelect")).Checked && ((CheckBox)riga.FindControl("chkSelect")).Visible)
|
||||
{
|
||||
UDC = ((Label)riga.FindControl("lblUDC")).Text;
|
||||
consumaUdc(UDC);
|
||||
|
||||
@@ -318,6 +318,7 @@ namespace GMW.WebUserControls
|
||||
/// <param name="e"></param>
|
||||
protected void txtCercaPart_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
grView.DataBind();
|
||||
}
|
||||
/// <summary>
|
||||
/// pressione del button di ricerca
|
||||
@@ -326,6 +327,7 @@ namespace GMW.WebUserControls
|
||||
/// <param name="e"></param>
|
||||
protected void btnCercaPart_Click(object sender, EventArgs e)
|
||||
{
|
||||
grView.DataBind();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -202,10 +202,12 @@
|
||||
</summary>
|
||||
<param name="Dominio"></param>
|
||||
<param name="UsrName"></param>
|
||||
<param name="matrOpr"></param>
|
||||
<param name="DeviceName"></param>
|
||||
<param name="Description"></param>
|
||||
<param name="IPv4"></param>
|
||||
<param name="cookieName"></param>
|
||||
<param name="expDate"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:SteamWare.authProxy.removeDeviceByDevSec(System.String)">
|
||||
@@ -1879,6 +1881,13 @@
|
||||
<param name="_nomeFile"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:SteamWare.fileMover.eliminaFile(System.IO.FileInfo)">
|
||||
<summary>
|
||||
elimina il file indicato dalla directory di lavoro
|
||||
</summary>
|
||||
<param name="_nomeFile"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:SteamWare.fileMover.scaricaFile(System.String)">
|
||||
<summary>
|
||||
restituisce lo stream del file richiesto
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/AjaxSimpleFull.Master" AutoEventWireup="true" CodeBehind="consumoAnime.aspx.cs" Inherits="GMW.consumoAnime" %>
|
||||
<%@ Register src="WebUserControls/mod_consumoAnime.ascx" tagname="mod_consumoAnime" tagprefix="uc1" %>
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
|
||||
<uc1:mod_consumoAnime ID="mod_consumoAnime1" runat="server" />
|
||||
</asp:Content>
|
||||
@@ -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 consumoAnime : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
+24
@@ -0,0 +1,24 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GMW {
|
||||
|
||||
|
||||
public partial class consumoAnime {
|
||||
|
||||
/// <summary>
|
||||
/// mod_consumoAnime1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::GMW.WebUserControls.mod_consumoAnime mod_consumoAnime1;
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
+2311
-2302
File diff suppressed because it is too large
Load Diff
Generated
+574
-1
@@ -1,7 +1,7 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.17929
|
||||
// Runtime Version:4.0.30319.18046
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
@@ -66,6 +66,8 @@ namespace GMW_data {
|
||||
|
||||
private v_selOperatoriDataTable tablev_selOperatori;
|
||||
|
||||
private v_selTipoPartDataTable tablev_selTipoPart;
|
||||
|
||||
private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -157,6 +159,9 @@ namespace GMW_data {
|
||||
if ((ds.Tables["v_selOperatori"] != null)) {
|
||||
base.Tables.Add(new v_selOperatoriDataTable(ds.Tables["v_selOperatori"]));
|
||||
}
|
||||
if ((ds.Tables["v_selTipoPart"] != null)) {
|
||||
base.Tables.Add(new v_selTipoPartDataTable(ds.Tables["v_selTipoPart"]));
|
||||
}
|
||||
this.DataSetName = ds.DataSetName;
|
||||
this.Prefix = ds.Prefix;
|
||||
this.Namespace = ds.Namespace;
|
||||
@@ -385,6 +390,16 @@ namespace GMW_data {
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
[global::System.ComponentModel.Browsable(false)]
|
||||
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
||||
public v_selTipoPartDataTable v_selTipoPart {
|
||||
get {
|
||||
return this.tablev_selTipoPart;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
[global::System.ComponentModel.BrowsableAttribute(true)]
|
||||
@@ -515,6 +530,9 @@ namespace GMW_data {
|
||||
if ((ds.Tables["v_selOperatori"] != null)) {
|
||||
base.Tables.Add(new v_selOperatoriDataTable(ds.Tables["v_selOperatori"]));
|
||||
}
|
||||
if ((ds.Tables["v_selTipoPart"] != null)) {
|
||||
base.Tables.Add(new v_selTipoPartDataTable(ds.Tables["v_selTipoPart"]));
|
||||
}
|
||||
this.DataSetName = ds.DataSetName;
|
||||
this.Prefix = ds.Prefix;
|
||||
this.Namespace = ds.Namespace;
|
||||
@@ -674,6 +692,12 @@ namespace GMW_data {
|
||||
this.tablev_selOperatori.InitVars();
|
||||
}
|
||||
}
|
||||
this.tablev_selTipoPart = ((v_selTipoPartDataTable)(base.Tables["v_selTipoPart"]));
|
||||
if ((initTable == true)) {
|
||||
if ((this.tablev_selTipoPart != null)) {
|
||||
this.tablev_selTipoPart.InitVars();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -726,6 +750,8 @@ namespace GMW_data {
|
||||
base.Tables.Add(this.tablev_selPartic_SAO);
|
||||
this.tablev_selOperatori = new v_selOperatoriDataTable();
|
||||
base.Tables.Add(this.tablev_selOperatori);
|
||||
this.tablev_selTipoPart = new v_selTipoPartDataTable();
|
||||
base.Tables.Add(this.tablev_selTipoPart);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -854,6 +880,12 @@ namespace GMW_data {
|
||||
return false;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
private bool ShouldSerializev_selTipoPart() {
|
||||
return false;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
|
||||
@@ -972,6 +1004,9 @@ namespace GMW_data {
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public delegate void v_selOperatoriRowChangeEventHandler(object sender, v_selOperatoriRowChangeEvent e);
|
||||
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public delegate void v_selTipoPartRowChangeEventHandler(object sender, v_selTipoPartRowChangeEvent e);
|
||||
|
||||
/// <summary>
|
||||
///Represents the strongly named DataTable class.
|
||||
///</summary>
|
||||
@@ -7038,6 +7073,270 @@ namespace GMW_data {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///Represents the strongly named DataTable class.
|
||||
///</summary>
|
||||
[global::System.Serializable()]
|
||||
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
|
||||
public partial class v_selTipoPartDataTable : global::System.Data.TypedTableBase<v_selTipoPartRow> {
|
||||
|
||||
private global::System.Data.DataColumn columnvalue;
|
||||
|
||||
private global::System.Data.DataColumn columnlabel;
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public v_selTipoPartDataTable() {
|
||||
this.TableName = "v_selTipoPart";
|
||||
this.BeginInit();
|
||||
this.InitClass();
|
||||
this.EndInit();
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
internal v_selTipoPartDataTable(global::System.Data.DataTable table) {
|
||||
this.TableName = table.TableName;
|
||||
if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
|
||||
this.CaseSensitive = table.CaseSensitive;
|
||||
}
|
||||
if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
|
||||
this.Locale = table.Locale;
|
||||
}
|
||||
if ((table.Namespace != table.DataSet.Namespace)) {
|
||||
this.Namespace = table.Namespace;
|
||||
}
|
||||
this.Prefix = table.Prefix;
|
||||
this.MinimumCapacity = table.MinimumCapacity;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
protected v_selTipoPartDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
|
||||
base(info, context) {
|
||||
this.InitVars();
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public global::System.Data.DataColumn valueColumn {
|
||||
get {
|
||||
return this.columnvalue;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public global::System.Data.DataColumn labelColumn {
|
||||
get {
|
||||
return this.columnlabel;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
[global::System.ComponentModel.Browsable(false)]
|
||||
public int Count {
|
||||
get {
|
||||
return this.Rows.Count;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public v_selTipoPartRow this[int index] {
|
||||
get {
|
||||
return ((v_selTipoPartRow)(this.Rows[index]));
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public event v_selTipoPartRowChangeEventHandler v_selTipoPartRowChanging;
|
||||
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public event v_selTipoPartRowChangeEventHandler v_selTipoPartRowChanged;
|
||||
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public event v_selTipoPartRowChangeEventHandler v_selTipoPartRowDeleting;
|
||||
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public event v_selTipoPartRowChangeEventHandler v_selTipoPartRowDeleted;
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public void Addv_selTipoPartRow(v_selTipoPartRow row) {
|
||||
this.Rows.Add(row);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public v_selTipoPartRow Addv_selTipoPartRow(string value, string label) {
|
||||
v_selTipoPartRow rowv_selTipoPartRow = ((v_selTipoPartRow)(this.NewRow()));
|
||||
object[] columnValuesArray = new object[] {
|
||||
value,
|
||||
label};
|
||||
rowv_selTipoPartRow.ItemArray = columnValuesArray;
|
||||
this.Rows.Add(rowv_selTipoPartRow);
|
||||
return rowv_selTipoPartRow;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public override global::System.Data.DataTable Clone() {
|
||||
v_selTipoPartDataTable cln = ((v_selTipoPartDataTable)(base.Clone()));
|
||||
cln.InitVars();
|
||||
return cln;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
protected override global::System.Data.DataTable CreateInstance() {
|
||||
return new v_selTipoPartDataTable();
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
internal void InitVars() {
|
||||
this.columnvalue = base.Columns["value"];
|
||||
this.columnlabel = base.Columns["label"];
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
private void InitClass() {
|
||||
this.columnvalue = new global::System.Data.DataColumn("value", typeof(string), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnvalue);
|
||||
this.columnlabel = new global::System.Data.DataColumn("label", typeof(string), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnlabel);
|
||||
this.columnvalue.MaxLength = 1;
|
||||
this.columnlabel.ReadOnly = true;
|
||||
this.columnlabel.MaxLength = 10;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public v_selTipoPartRow Newv_selTipoPartRow() {
|
||||
return ((v_selTipoPartRow)(this.NewRow()));
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
||||
return new v_selTipoPartRow(builder);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
protected override global::System.Type GetRowType() {
|
||||
return typeof(v_selTipoPartRow);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
||||
base.OnRowChanged(e);
|
||||
if ((this.v_selTipoPartRowChanged != null)) {
|
||||
this.v_selTipoPartRowChanged(this, new v_selTipoPartRowChangeEvent(((v_selTipoPartRow)(e.Row)), e.Action));
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
||||
base.OnRowChanging(e);
|
||||
if ((this.v_selTipoPartRowChanging != null)) {
|
||||
this.v_selTipoPartRowChanging(this, new v_selTipoPartRowChangeEvent(((v_selTipoPartRow)(e.Row)), e.Action));
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
||||
base.OnRowDeleted(e);
|
||||
if ((this.v_selTipoPartRowDeleted != null)) {
|
||||
this.v_selTipoPartRowDeleted(this, new v_selTipoPartRowChangeEvent(((v_selTipoPartRow)(e.Row)), e.Action));
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
||||
base.OnRowDeleting(e);
|
||||
if ((this.v_selTipoPartRowDeleting != null)) {
|
||||
this.v_selTipoPartRowDeleting(this, new v_selTipoPartRowChangeEvent(((v_selTipoPartRow)(e.Row)), e.Action));
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public void Removev_selTipoPartRow(v_selTipoPartRow row) {
|
||||
this.Rows.Remove(row);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
|
||||
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
|
||||
global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
|
||||
DS_Utility ds = new DS_Utility();
|
||||
global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
|
||||
any1.Namespace = "http://www.w3.org/2001/XMLSchema";
|
||||
any1.MinOccurs = new decimal(0);
|
||||
any1.MaxOccurs = decimal.MaxValue;
|
||||
any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
|
||||
sequence.Items.Add(any1);
|
||||
global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
|
||||
any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
|
||||
any2.MinOccurs = new decimal(1);
|
||||
any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
|
||||
sequence.Items.Add(any2);
|
||||
global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
|
||||
attribute1.Name = "namespace";
|
||||
attribute1.FixedValue = ds.Namespace;
|
||||
type.Attributes.Add(attribute1);
|
||||
global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
|
||||
attribute2.Name = "tableTypeName";
|
||||
attribute2.FixedValue = "v_selTipoPartDataTable";
|
||||
type.Attributes.Add(attribute2);
|
||||
type.Particle = sequence;
|
||||
global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
|
||||
if (xs.Contains(dsSchema.TargetNamespace)) {
|
||||
global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
|
||||
global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
|
||||
try {
|
||||
global::System.Xml.Schema.XmlSchema schema = null;
|
||||
dsSchema.Write(s1);
|
||||
for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
|
||||
schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
|
||||
s2.SetLength(0);
|
||||
schema.Write(s2);
|
||||
if ((s1.Length == s2.Length)) {
|
||||
s1.Position = 0;
|
||||
s2.Position = 0;
|
||||
for (; ((s1.Position != s1.Length)
|
||||
&& (s1.ReadByte() == s2.ReadByte())); ) {
|
||||
;
|
||||
}
|
||||
if ((s1.Position == s1.Length)) {
|
||||
return type;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
finally {
|
||||
if ((s1 != null)) {
|
||||
s1.Close();
|
||||
}
|
||||
if ((s2 != null)) {
|
||||
s2.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
xs.Add(dsSchema);
|
||||
return type;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///Represents strongly named DataRow class.
|
||||
///</summary>
|
||||
@@ -8691,6 +8990,77 @@ namespace GMW_data {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///Represents strongly named DataRow class.
|
||||
///</summary>
|
||||
public partial class v_selTipoPartRow : global::System.Data.DataRow {
|
||||
|
||||
private v_selTipoPartDataTable tablev_selTipoPart;
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
internal v_selTipoPartRow(global::System.Data.DataRowBuilder rb) :
|
||||
base(rb) {
|
||||
this.tablev_selTipoPart = ((v_selTipoPartDataTable)(this.Table));
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public string value {
|
||||
get {
|
||||
try {
|
||||
return ((string)(this[this.tablev_selTipoPart.valueColumn]));
|
||||
}
|
||||
catch (global::System.InvalidCastException e) {
|
||||
throw new global::System.Data.StrongTypingException("The value for column \'value\' in table \'v_selTipoPart\' is DBNull.", e);
|
||||
}
|
||||
}
|
||||
set {
|
||||
this[this.tablev_selTipoPart.valueColumn] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public string label {
|
||||
get {
|
||||
try {
|
||||
return ((string)(this[this.tablev_selTipoPart.labelColumn]));
|
||||
}
|
||||
catch (global::System.InvalidCastException e) {
|
||||
throw new global::System.Data.StrongTypingException("The value for column \'label\' in table \'v_selTipoPart\' is DBNull.", e);
|
||||
}
|
||||
}
|
||||
set {
|
||||
this[this.tablev_selTipoPart.labelColumn] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public bool IsvalueNull() {
|
||||
return this.IsNull(this.tablev_selTipoPart.valueColumn);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public void SetvalueNull() {
|
||||
this[this.tablev_selTipoPart.valueColumn] = global::System.Convert.DBNull;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public bool IslabelNull() {
|
||||
return this.IsNull(this.tablev_selTipoPart.labelColumn);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public void SetlabelNull() {
|
||||
this[this.tablev_selTipoPart.labelColumn] = global::System.Convert.DBNull;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///Row event argument class
|
||||
///</summary>
|
||||
@@ -9404,6 +9774,40 @@ namespace GMW_data {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///Row event argument class
|
||||
///</summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public class v_selTipoPartRowChangeEvent : global::System.EventArgs {
|
||||
|
||||
private v_selTipoPartRow eventRow;
|
||||
|
||||
private global::System.Data.DataRowAction eventAction;
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public v_selTipoPartRowChangeEvent(v_selTipoPartRow row, global::System.Data.DataRowAction action) {
|
||||
this.eventRow = row;
|
||||
this.eventAction = action;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public v_selTipoPartRow Row {
|
||||
get {
|
||||
return this.eventRow;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public global::System.Data.DataRowAction Action {
|
||||
get {
|
||||
return this.eventAction;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
namespace GMW_data.DS_UtilityTableAdapters {
|
||||
@@ -14196,6 +14600,175 @@ namespace GMW_data.DS_UtilityTableAdapters {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///Represents the connection and commands used to retrieve and save data.
|
||||
///</summary>
|
||||
[global::System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
[global::System.ComponentModel.ToolboxItem(true)]
|
||||
[global::System.ComponentModel.DataObjectAttribute(true)]
|
||||
[global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
|
||||
", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public partial class v_selTipoPartTableAdapter : global::System.ComponentModel.Component {
|
||||
|
||||
private global::System.Data.SqlClient.SqlDataAdapter _adapter;
|
||||
|
||||
private global::System.Data.SqlClient.SqlConnection _connection;
|
||||
|
||||
private global::System.Data.SqlClient.SqlTransaction _transaction;
|
||||
|
||||
private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
|
||||
|
||||
private bool _clearBeforeFill;
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public v_selTipoPartTableAdapter() {
|
||||
this.ClearBeforeFill = true;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
|
||||
get {
|
||||
if ((this._adapter == null)) {
|
||||
this.InitAdapter();
|
||||
}
|
||||
return this._adapter;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public global::System.Data.SqlClient.SqlConnection Connection {
|
||||
get {
|
||||
if ((this._connection == null)) {
|
||||
this.InitConnection();
|
||||
}
|
||||
return this._connection;
|
||||
}
|
||||
set {
|
||||
this._connection = value;
|
||||
if ((this.Adapter.InsertCommand != null)) {
|
||||
this.Adapter.InsertCommand.Connection = value;
|
||||
}
|
||||
if ((this.Adapter.DeleteCommand != null)) {
|
||||
this.Adapter.DeleteCommand.Connection = value;
|
||||
}
|
||||
if ((this.Adapter.UpdateCommand != null)) {
|
||||
this.Adapter.UpdateCommand.Connection = value;
|
||||
}
|
||||
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
||||
if ((this.CommandCollection[i] != null)) {
|
||||
((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
internal global::System.Data.SqlClient.SqlTransaction Transaction {
|
||||
get {
|
||||
return this._transaction;
|
||||
}
|
||||
set {
|
||||
this._transaction = value;
|
||||
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
|
||||
this.CommandCollection[i].Transaction = this._transaction;
|
||||
}
|
||||
if (((this.Adapter != null)
|
||||
&& (this.Adapter.DeleteCommand != null))) {
|
||||
this.Adapter.DeleteCommand.Transaction = this._transaction;
|
||||
}
|
||||
if (((this.Adapter != null)
|
||||
&& (this.Adapter.InsertCommand != null))) {
|
||||
this.Adapter.InsertCommand.Transaction = this._transaction;
|
||||
}
|
||||
if (((this.Adapter != null)
|
||||
&& (this.Adapter.UpdateCommand != null))) {
|
||||
this.Adapter.UpdateCommand.Transaction = this._transaction;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
|
||||
get {
|
||||
if ((this._commandCollection == null)) {
|
||||
this.InitCommandCollection();
|
||||
}
|
||||
return this._commandCollection;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
public bool ClearBeforeFill {
|
||||
get {
|
||||
return this._clearBeforeFill;
|
||||
}
|
||||
set {
|
||||
this._clearBeforeFill = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
private void InitAdapter() {
|
||||
this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
|
||||
global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
|
||||
tableMapping.SourceTable = "Table";
|
||||
tableMapping.DataSetTable = "v_selTipoPart";
|
||||
tableMapping.ColumnMappings.Add("valore", "value");
|
||||
tableMapping.ColumnMappings.Add("label", "label");
|
||||
tableMapping.ColumnMappings.Add("value", "value");
|
||||
this._adapter.TableMappings.Add(tableMapping);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
private void InitConnection() {
|
||||
this._connection = new global::System.Data.SqlClient.SqlConnection();
|
||||
this._connection.ConnectionString = global::GMW_data.Properties.Settings.Default.GMWConnectionString;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
private void InitCommandCollection() {
|
||||
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
|
||||
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[0].Connection = this.Connection;
|
||||
this._commandCollection[0].CommandText = "SELECT *\r\nFROM dbo.v_selTipoPart";
|
||||
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
||||
public virtual int Fill(DS_Utility.v_selTipoPartDataTable dataTable) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[0];
|
||||
if ((this.ClearBeforeFill == true)) {
|
||||
dataTable.Clear();
|
||||
}
|
||||
int returnValue = this.Adapter.Fill(dataTable);
|
||||
return returnValue;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
|
||||
public virtual DS_Utility.v_selTipoPartDataTable GetData() {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[0];
|
||||
DS_Utility.v_selTipoPartDataTable dataTable = new DS_Utility.v_selTipoPartDataTable();
|
||||
this.Adapter.Fill(dataTable);
|
||||
return dataTable;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
|
||||
///</summary>
|
||||
|
||||
@@ -792,6 +792,25 @@ where value = @value</CommandText>
|
||||
</Mappings>
|
||||
<Sources />
|
||||
</TableAdapter>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="v_selTipoPartTableAdapter" GeneratorDataComponentClassName="v_selTipoPartTableAdapter" Name="v_selTipoPart" UserDataComponentName="v_selTipoPartTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="TK_GMWTest.dbo.v_selTipoPart" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>SELECT *
|
||||
FROM dbo.v_selTipoPart</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</MainSource>
|
||||
<Mappings>
|
||||
<Mapping SourceColumn="valore" DataSetColumn="value" />
|
||||
<Mapping SourceColumn="label" DataSetColumn="label" />
|
||||
<Mapping SourceColumn="value" DataSetColumn="value" />
|
||||
</Mappings>
|
||||
<Sources />
|
||||
</TableAdapter>
|
||||
</Tables>
|
||||
<Sources />
|
||||
</DataSource>
|
||||
@@ -1316,6 +1335,26 @@ where value = @value</CommandText>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="v_selTipoPart" msprop:Generator_TableClassName="v_selTipoPartDataTable" msprop:Generator_TableVarName="tablev_selTipoPart" msprop:Generator_RowChangedName="v_selTipoPartRowChanged" msprop:Generator_TablePropName="v_selTipoPart" msprop:Generator_RowDeletingName="v_selTipoPartRowDeleting" msprop:Generator_RowChangingName="v_selTipoPartRowChanging" msprop:Generator_RowEvHandlerName="v_selTipoPartRowChangeEventHandler" msprop:Generator_RowDeletedName="v_selTipoPartRowDeleted" msprop:Generator_RowClassName="v_selTipoPartRow" msprop:Generator_UserTableName="v_selTipoPart" msprop:Generator_RowEvArgName="v_selTipoPartRowChangeEvent">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="value" msprop:Generator_ColumnVarNameInTable="columnvalue" msprop:Generator_ColumnPropNameInRow="value" msprop:Generator_ColumnPropNameInTable="valueColumn" msprop:Generator_UserColumnName="value" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="1" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="label" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnlabel" msprop:Generator_ColumnPropNameInRow="label" msprop:Generator_ColumnPropNameInTable="labelColumn" msprop:Generator_UserColumnName="label" minOccurs="0">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="10" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:choice>
|
||||
</xs:complexType>
|
||||
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
|
||||
|
||||
+23
-22
@@ -4,29 +4,30 @@
|
||||
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="-10" ViewPortY="-10" 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="4" ViewPortY="262" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<Shapes>
|
||||
<Shape ID="DesignTable:v_selMag" ZOrder="1" X="51" Y="61" Height="153" Width="198" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:v_selBlocco" ZOrder="15" X="598" Y="103" Height="172" Width="242" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:v_selTipoCella" ZOrder="21" X="635" Y="330" Height="191" Width="242" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:stp_getImpiantiByCodCS" ZOrder="20" X="313" Y="598" Height="172" Width="287" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:STP" ZOrder="9" X="14" Y="297" Height="267" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="81" />
|
||||
<Shape ID="DesignTable:v_selPeriodiTrad" ZOrder="19" X="681" Y="545" Height="153" Width="240" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:v_selStatiListe" ZOrder="18" X="949" Y="219" Height="115" Width="225" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:v_selTipoLista" ZOrder="10" X="1005" Y="684" Height="153" Width="224" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:v_selUdcByPart" ZOrder="13" X="1003" Y="426" Height="191" Width="228" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:v_selTipoDelibera" ZOrder="17" X="948" Y="56" Height="115" Width="246" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:stp_ricercaFullTerminalino" ZOrder="16" X="377" Y="346" Height="134" Width="210" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:v_selMagLogico" ZOrder="2" X="56" Y="683" Height="153" Width="236" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:v_selDestinatariListePrelievo" ZOrder="14" X="309" Y="77" Height="172" Width="209" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:AS400_Comandi" ZOrder="12" X="131" Y="881" Height="172" Width="238" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:v_selParticolari" ZOrder="11" X="676" Y="732" Height="172" Width="268" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:v_selPostazioni" ZOrder="8" X="402" Y="852" Height="172" Width="216" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:v_selSoggetti" ZOrder="3" X="754" Y="923" Height="153" Width="195" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:v_selAzioniUt" ZOrder="7" X="1049" Y="929" Height="115" Width="239" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:v_selUDC_SAO" ZOrder="6" X="136" Y="1074" Height="153" Width="299" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:v_selPartic_SAO" ZOrder="5" X="450" Y="1080" Height="153" Width="299" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:v_selOperatori" ZOrder="4" X="829" Y="1090" Height="134" Width="228" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:v_selMag" ZOrder="2" X="51" Y="61" Height="153" Width="198" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:v_selBlocco" ZOrder="16" X="598" Y="103" Height="172" Width="242" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:v_selTipoCella" ZOrder="22" X="635" Y="330" Height="191" Width="242" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:stp_getImpiantiByCodCS" ZOrder="21" X="313" Y="598" Height="172" Width="287" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:STP" ZOrder="10" X="14" Y="297" Height="267" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="81" />
|
||||
<Shape ID="DesignTable:v_selPeriodiTrad" ZOrder="20" X="681" Y="545" Height="153" Width="240" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:v_selStatiListe" ZOrder="19" X="949" Y="219" Height="115" Width="225" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:v_selTipoLista" ZOrder="11" X="1005" Y="684" Height="153" Width="224" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:v_selUdcByPart" ZOrder="14" X="1003" Y="426" Height="191" Width="228" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:v_selTipoDelibera" ZOrder="18" X="948" Y="56" Height="115" Width="246" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:stp_ricercaFullTerminalino" ZOrder="17" X="377" Y="346" Height="134" Width="210" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:v_selMagLogico" ZOrder="3" X="56" Y="683" Height="153" Width="236" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:v_selDestinatariListePrelievo" ZOrder="15" X="309" Y="77" Height="172" Width="209" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:AS400_Comandi" ZOrder="13" X="131" Y="881" Height="172" Width="238" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:v_selParticolari" ZOrder="12" X="676" Y="732" Height="172" Width="268" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:v_selPostazioni" ZOrder="9" X="402" Y="852" Height="172" Width="216" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:v_selSoggetti" ZOrder="4" X="754" Y="923" Height="153" Width="195" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:v_selAzioniUt" ZOrder="8" X="1049" Y="929" Height="115" Width="239" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:v_selUDC_SAO" ZOrder="7" X="136" Y="1074" Height="153" Width="299" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:v_selPartic_SAO" ZOrder="6" X="450" Y="1080" Height="153" Width="299" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:v_selOperatori" ZOrder="5" X="829" Y="1090" Height="134" Width="228" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:v_selTipoPart" ZOrder="1" X="1094" Y="1093" Height="115" Width="222" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
</Shapes>
|
||||
<Connectors />
|
||||
</DiagramLayout>
|
||||
Generated
+150
-95
@@ -1,7 +1,7 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.18033
|
||||
// Runtime Version:4.0.30319.18046
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
@@ -27247,106 +27247,112 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
private void InitCommandCollection() {
|
||||
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[16];
|
||||
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[17];
|
||||
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[0].Connection = this.Connection;
|
||||
this._commandCollection[0].CommandText = "SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM dbo.RigheListePrelievo";
|
||||
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
||||
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[1].Connection = this.Connection;
|
||||
this._commandCollection[1].CommandText = "dbo.stp_RLP_getBloccateMovByUdc";
|
||||
this._commandCollection[1].CommandText = "dbo.stp_RLP_eliminaUdc";
|
||||
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("@UDC", global::System.Data.SqlDbType.VarChar, 50, 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("@UDC", global::System.Data.SqlDbType.NVarChar, 50, 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_RLP_getBloccateQtaByUdc";
|
||||
this._commandCollection[2].CommandText = "dbo.stp_RLP_getBloccateMovByUdc";
|
||||
this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[2].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[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[3].Connection = this.Connection;
|
||||
this._commandCollection[3].CommandText = "dbo.stp_getRigaPrelievoByCodLista";
|
||||
this._commandCollection[3].CommandText = "dbo.stp_RLP_getBloccateQtaByUdc";
|
||||
this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[3].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[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodLista", global::System.Data.SqlDbType.NVarChar, 12, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[4].Connection = this.Connection;
|
||||
this._commandCollection[4].CommandText = "dbo.stp_getRigaPrelievoByCodListaPrelevate";
|
||||
this._commandCollection[4].CommandText = "dbo.stp_getRigaPrelievoByCodLista";
|
||||
this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[4].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[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodLista", global::System.Data.SqlDbType.NVarChar, 12, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[5] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[5].Connection = this.Connection;
|
||||
this._commandCollection[5].CommandText = "dbo.stp_RLP_getByUdc";
|
||||
this._commandCollection[5].CommandText = "dbo.stp_getRigaPrelievoByCodListaPrelevate";
|
||||
this._commandCollection[5].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[5].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[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodLista", global::System.Data.SqlDbType.NVarChar, 12, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[6] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[6].Connection = this.Connection;
|
||||
this._commandCollection[6].CommandText = "dbo.stp_RLP_getOpenByUserTipo";
|
||||
this._commandCollection[6].CommandText = "dbo.stp_RLP_getByUdc";
|
||||
this._commandCollection[6].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[6].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[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSoggetto", global::System.Data.SqlDbType.NVarChar, 17, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodTipoLista", global::System.Data.SqlDbType.NVarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[7] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[7].Connection = this.Connection;
|
||||
this._commandCollection[7].CommandText = "dbo.stp_righePrelevateByUdc";
|
||||
this._commandCollection[7].CommandText = "dbo.stp_RLP_getOpenByUserTipo";
|
||||
this._commandCollection[7].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[7].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[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSoggetto", global::System.Data.SqlDbType.NVarChar, 17, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodTipoLista", global::System.Data.SqlDbType.NVarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[8] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[8].Connection = this.Connection;
|
||||
this._commandCollection[8].CommandText = "dbo.stp_setAnnullaUdcPrelevato";
|
||||
this._commandCollection[8].CommandText = "dbo.stp_righePrelevateByUdc";
|
||||
this._commandCollection[8].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[8].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[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodLista", global::System.Data.SqlDbType.NVarChar, 12, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[9] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[9].Connection = this.Connection;
|
||||
this._commandCollection[9].CommandText = "dbo.stp_RigheListePrelievo_eliminaNonPrelevate";
|
||||
this._commandCollection[9].CommandText = "dbo.stp_setAnnullaUdcPrelevato";
|
||||
this._commandCollection[9].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[9].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[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodLista", global::System.Data.SqlDbType.VarChar, 12, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodLista", global::System.Data.SqlDbType.NVarChar, 12, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[10] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[10].Connection = this.Connection;
|
||||
this._commandCollection[10].CommandText = "dbo.stp_RLP_deleteFromCodLista";
|
||||
this._commandCollection[10].CommandText = "dbo.stp_RigheListePrelievo_eliminaNonPrelevate";
|
||||
this._commandCollection[10].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[10].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[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodLista", global::System.Data.SqlDbType.VarChar, 12, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodLista", global::System.Data.SqlDbType.VarChar, 12, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[11] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[11].Connection = this.Connection;
|
||||
this._commandCollection[11].CommandText = "dbo.stp_RLP_eliminaNonPrelevate";
|
||||
this._commandCollection[11].CommandText = "dbo.stp_RLP_deleteFromCodLista";
|
||||
this._commandCollection[11].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[11].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[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodLista", global::System.Data.SqlDbType.NVarChar, 12, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodLista", global::System.Data.SqlDbType.VarChar, 12, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[12] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[12].Connection = this.Connection;
|
||||
this._commandCollection[12].CommandText = "dbo.stp_RLP_resetPrelevate";
|
||||
this._commandCollection[12].CommandText = "dbo.stp_RLP_eliminaNonPrelevate";
|
||||
this._commandCollection[12].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[12].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[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodLista", global::System.Data.SqlDbType.NVarChar, 12, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[13] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[13].Connection = this.Connection;
|
||||
this._commandCollection[13].CommandText = "dbo.stp_RLP_sbloccaNonPrelevate";
|
||||
this._commandCollection[13].CommandText = "dbo.stp_RLP_resetPrelevate";
|
||||
this._commandCollection[13].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[13].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[13].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodLista", global::System.Data.SqlDbType.NVarChar, 12, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[13].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[14] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[14].Connection = this.Connection;
|
||||
this._commandCollection[14].CommandText = "dbo.stp_RLP_updateQty";
|
||||
this._commandCollection[14].CommandText = "dbo.stp_RLP_sbloccaNonPrelevate";
|
||||
this._commandCollection[14].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[14].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[14].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[14].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Qta", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[14].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodLista", global::System.Data.SqlDbType.NVarChar, 12, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[14].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[15] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[15].Connection = this.Connection;
|
||||
this._commandCollection[15].CommandText = "dbo.stp_UDC_upsertPrelevato";
|
||||
this._commandCollection[15].CommandText = "dbo.stp_RLP_updateQty";
|
||||
this._commandCollection[15].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[15].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[15].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodLista", global::System.Data.SqlDbType.NVarChar, 12, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[15].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[15].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[15].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Qta", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[16] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[16].Connection = this.Connection;
|
||||
this._commandCollection[16].CommandText = "dbo.stp_UDC_upsertPrelevato";
|
||||
this._commandCollection[16].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[16].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[16].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodLista", global::System.Data.SqlDbType.NVarChar, 12, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[16].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UDC", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -27378,23 +27384,6 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
||||
public virtual DS_magazzino.RigheListePrelievoDataTable getBloccateMovByUdc(string UDC) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[1];
|
||||
if ((UDC == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(UDC));
|
||||
}
|
||||
DS_magazzino.RigheListePrelievoDataTable dataTable = new DS_magazzino.RigheListePrelievoDataTable();
|
||||
this.Adapter.Fill(dataTable);
|
||||
return dataTable;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
||||
public virtual DS_magazzino.RigheListePrelievoDataTable getBloccateQtaByUdc(string UDC) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[2];
|
||||
if ((UDC == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
@@ -27411,13 +27400,13 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
||||
public virtual DS_magazzino.RigheListePrelievoDataTable getByCodLista(string CodLista) {
|
||||
public virtual DS_magazzino.RigheListePrelievoDataTable getBloccateQtaByUdc(string UDC) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[3];
|
||||
if ((CodLista == null)) {
|
||||
if ((UDC == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodLista));
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(UDC));
|
||||
}
|
||||
DS_magazzino.RigheListePrelievoDataTable dataTable = new DS_magazzino.RigheListePrelievoDataTable();
|
||||
this.Adapter.Fill(dataTable);
|
||||
@@ -27428,7 +27417,7 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
||||
public virtual DS_magazzino.RigheListePrelievoDataTable getByCodListaPrelevate(string CodLista) {
|
||||
public virtual DS_magazzino.RigheListePrelievoDataTable getByCodLista(string CodLista) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[4];
|
||||
if ((CodLista == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
@@ -27445,8 +27434,25 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
||||
public virtual DS_magazzino.RigheListePrelievoDataTable getByUdc(string UDC) {
|
||||
public virtual DS_magazzino.RigheListePrelievoDataTable getByCodListaPrelevate(string CodLista) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[5];
|
||||
if ((CodLista == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodLista));
|
||||
}
|
||||
DS_magazzino.RigheListePrelievoDataTable dataTable = new DS_magazzino.RigheListePrelievoDataTable();
|
||||
this.Adapter.Fill(dataTable);
|
||||
return dataTable;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
||||
public virtual DS_magazzino.RigheListePrelievoDataTable getByUdc(string UDC) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[6];
|
||||
if ((UDC == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
@@ -27463,7 +27469,7 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
||||
public virtual DS_magazzino.RigheListePrelievoDataTable getOpenByUserTipo(string CodSoggetto, string CodTipoLista) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[6];
|
||||
this.Adapter.SelectCommand = this.CommandCollection[7];
|
||||
if ((CodSoggetto == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
@@ -27486,7 +27492,7 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
||||
public virtual DS_magazzino.RigheListePrelievoDataTable getPrelevateByUdc(string UDC) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[7];
|
||||
this.Adapter.SelectCommand = this.CommandCollection[8];
|
||||
if ((UDC == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
@@ -27503,7 +27509,7 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
||||
public virtual DS_magazzino.RigheListePrelievoDataTable setAnnullaUdcPrelevato(string CodLista, string UDC) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[8];
|
||||
this.Adapter.SelectCommand = this.CommandCollection[9];
|
||||
if ((CodLista == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
@@ -27526,7 +27532,7 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
||||
public virtual DS_magazzino.RigheListePrelievoDataTable upsertPrelevato(string CodLista, string UDC) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[15];
|
||||
this.Adapter.SelectCommand = this.CommandCollection[16];
|
||||
if ((CodLista == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
@@ -27752,11 +27758,39 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co
|
||||
return this.Update(Original_CodLista, Original_UDC, Qta, Proposto, Prelevato, Original_CodLista, Original_UDC, Original_Qta, Original_Proposto, Original_Prelevato);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int eliminaByUdc(string UDC) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1];
|
||||
if ((UDC == null)) {
|
||||
command.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
command.Parameters[1].Value = ((string)(UDC));
|
||||
}
|
||||
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
|
||||
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
|
||||
!= global::System.Data.ConnectionState.Open)) {
|
||||
command.Connection.Open();
|
||||
}
|
||||
int returnValue;
|
||||
try {
|
||||
returnValue = command.ExecuteNonQuery();
|
||||
}
|
||||
finally {
|
||||
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
||||
command.Connection.Close();
|
||||
}
|
||||
}
|
||||
return returnValue;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int stp_RigheListePrelievo_eliminaNonPrelevate(string CodLista) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[9];
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[10];
|
||||
if ((CodLista == null)) {
|
||||
command.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
@@ -27784,7 +27818,7 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int stp_RLP_deleteFromCodLista(string Original_CodLista) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[10];
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[11];
|
||||
if ((Original_CodLista == null)) {
|
||||
command.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
@@ -27812,34 +27846,6 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int stp_RLP_eliminaNonPrelevate(string CodLista) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[11];
|
||||
if ((CodLista == null)) {
|
||||
command.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
command.Parameters[1].Value = ((string)(CodLista));
|
||||
}
|
||||
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
|
||||
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
|
||||
!= global::System.Data.ConnectionState.Open)) {
|
||||
command.Connection.Open();
|
||||
}
|
||||
int returnValue;
|
||||
try {
|
||||
returnValue = command.ExecuteNonQuery();
|
||||
}
|
||||
finally {
|
||||
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
||||
command.Connection.Close();
|
||||
}
|
||||
}
|
||||
return returnValue;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int stp_RLP_resetPrelevate(string CodLista) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[12];
|
||||
if ((CodLista == null)) {
|
||||
command.Parameters[1].Value = global::System.DBNull.Value;
|
||||
@@ -27867,7 +27873,7 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int stp_RLP_sbloccaNonPrelevate(string CodLista, string UDC) {
|
||||
public virtual int stp_RLP_resetPrelevate(string CodLista) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[13];
|
||||
if ((CodLista == null)) {
|
||||
command.Parameters[1].Value = global::System.DBNull.Value;
|
||||
@@ -27875,6 +27881,34 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co
|
||||
else {
|
||||
command.Parameters[1].Value = ((string)(CodLista));
|
||||
}
|
||||
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
|
||||
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
|
||||
!= global::System.Data.ConnectionState.Open)) {
|
||||
command.Connection.Open();
|
||||
}
|
||||
int returnValue;
|
||||
try {
|
||||
returnValue = command.ExecuteNonQuery();
|
||||
}
|
||||
finally {
|
||||
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
|
||||
command.Connection.Close();
|
||||
}
|
||||
}
|
||||
return returnValue;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int stp_RLP_sbloccaNonPrelevate(string CodLista, string UDC) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[14];
|
||||
if ((CodLista == null)) {
|
||||
command.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
command.Parameters[1].Value = ((string)(CodLista));
|
||||
}
|
||||
if ((UDC == null)) {
|
||||
command.Parameters[2].Value = global::System.DBNull.Value;
|
||||
}
|
||||
@@ -27902,7 +27936,7 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int stp_RLP_updateQty(string UDC, global::System.Nullable<decimal> Qta) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[14];
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[15];
|
||||
if ((UDC == null)) {
|
||||
command.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
@@ -28115,6 +28149,7 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co
|
||||
this._commandCollection[4].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[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataFrom", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataTo", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@classifArticolo", global::System.Data.SqlDbType.NChar, 1, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[5] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[5].Connection = this.Connection;
|
||||
this._commandCollection[5].CommandText = "dbo.stp_LP_getOpenByUserTipo";
|
||||
@@ -28163,9 +28198,11 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co
|
||||
this._commandCollection[9].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[9].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[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodLista", global::System.Data.SqlDbType.NVarChar, 12, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodTipoLista", global::System.Data.SqlDbType.NVarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodTipoLista", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCliente", global::System.Data.SqlDbType.NVarChar, 6, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RagSociale", global::System.Data.SqlDbType.NVarChar, 35, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RagSociale", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodSoggetto", global::System.Data.SqlDbType.VarChar, 17, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataMod", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[10] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[10].Connection = this.Connection;
|
||||
this._commandCollection[10].CommandText = "dbo.stp_elencoListePrelievoUpdateStato";
|
||||
@@ -28238,7 +28275,7 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
||||
public virtual DS_magazzino.ElencoListePrelievoDataTable getByFilt(global::System.Nullable<global::System.DateTime> DataFrom, global::System.Nullable<global::System.DateTime> DataTo) {
|
||||
public virtual DS_magazzino.ElencoListePrelievoDataTable getByFilt(global::System.Nullable<global::System.DateTime> DataFrom, global::System.Nullable<global::System.DateTime> DataTo, string classifArticolo) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[4];
|
||||
if ((DataFrom.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = ((System.DateTime)(DataFrom.Value));
|
||||
@@ -28252,6 +28289,12 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
|
||||
}
|
||||
if ((classifArticolo == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[3].Value = ((string)(classifArticolo));
|
||||
}
|
||||
DS_magazzino.ElencoListePrelievoDataTable dataTable = new DS_magazzino.ElencoListePrelievoDataTable();
|
||||
this.Adapter.Fill(dataTable);
|
||||
return dataTable;
|
||||
@@ -28520,7 +28563,7 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int stp_LP_updateDestTipo(string Original_CodLista, string CodTipoLista, string CodCliente, string RagSociale) {
|
||||
public virtual int stp_LP_updateDestTipo(string Original_CodLista, string CodTipoLista, string CodCliente, string RagSociale, string CodSoggetto, global::System.Nullable<global::System.DateTime> DataMod) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[9];
|
||||
if ((Original_CodLista == null)) {
|
||||
command.Parameters[1].Value = global::System.DBNull.Value;
|
||||
@@ -28546,6 +28589,18 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co
|
||||
else {
|
||||
command.Parameters[4].Value = ((string)(RagSociale));
|
||||
}
|
||||
if ((CodSoggetto == null)) {
|
||||
command.Parameters[5].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
command.Parameters[5].Value = ((string)(CodSoggetto));
|
||||
}
|
||||
if ((DataMod.HasValue == true)) {
|
||||
command.Parameters[6].Value = ((System.DateTime)(DataMod.Value));
|
||||
}
|
||||
else {
|
||||
command.Parameters[6].Value = global::System.DBNull.Value;
|
||||
}
|
||||
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
|
||||
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
|
||||
!= global::System.Data.ConnectionState.Open)) {
|
||||
|
||||
@@ -1,3 +1,15 @@
|
||||
namespace GMW_data
|
||||
{
|
||||
}
|
||||
namespace GMW_data
|
||||
{
|
||||
}
|
||||
namespace GMW_data
|
||||
{
|
||||
}
|
||||
namespace GMW_data {
|
||||
|
||||
|
||||
public partial class DS_magazzino {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1866,6 +1866,17 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co
|
||||
<Mapping SourceColumn="Prelevato" DataSetColumn="Prelevato" />
|
||||
</Mappings>
|
||||
<Sources>
|
||||
<DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="TK_GMWTest.dbo.stp_RLP_eliminaUdc" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="eliminaByUdc" Modifier="Public" Name="eliminaByUdc" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy6" UserSourceName="eliminaByUdc">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_RLP_eliminaUdc</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@UDC" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="TK_GMW.dbo.stp_RLP_getBloccateMovByUdc" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getBloccateMovByUdc" GetMethodModifier="Public" GetMethodName="getBloccateMovByUdc" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getBloccateMovByUdc" UserSourceName="getBloccateMovByUdc">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
@@ -2103,7 +2114,7 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="GMW.dbo.stp_elencoListePrelievoFilt" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByFilt" GetMethodModifier="Public" GetMethodName="getByFilt" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByFilt" UserSourceName="getByFilt">
|
||||
<DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="TK_GMWTest.dbo.stp_elencoListePrelievoFilt" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByFilt" GetMethodModifier="Public" GetMethodName="getByFilt" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByFilt" UserSourceName="getByFilt">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_elencoListePrelievoFilt</CommandText>
|
||||
@@ -2111,6 +2122,7 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@DataFrom" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@DataTo" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nchar" DbType="StringFixedLength" Direction="Input" ParameterName="@classifArticolo" Precision="0" ProviderType="NChar" Scale="0" Size="1" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
@@ -2177,16 +2189,18 @@ SELECT CodLista, UDC, Qta, Proposto, Prelevato FROM RigheListePrelievo WHERE (Co
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="GMW.dbo.stp_LP_updateDestTipo" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="stp_LP_updateDestTipo" Modifier="Public" Name="stp_LP_updateDestTipo" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy2" UserSourceName="stp_LP_updateDestTipo">
|
||||
<DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="TK_GMWTest.dbo.stp_LP_updateDestTipo" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="stp_LP_updateDestTipo" Modifier="Public" Name="stp_LP_updateDestTipo" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy2" UserSourceName="stp_LP_updateDestTipo">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_LP_updateDestTipo</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Original_CodLista" Precision="0" ProviderType="NVarChar" Scale="0" Size="12" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodTipoLista" Precision="0" ProviderType="NVarChar" Scale="0" Size="10" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="varchar" DbType="AnsiString" Direction="Input" ParameterName="@CodTipoLista" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodCliente" Precision="0" ProviderType="NVarChar" Scale="0" Size="6" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@RagSociale" Precision="0" ProviderType="NVarChar" Scale="0" Size="35" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@RagSociale" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="varchar" DbType="AnsiString" Direction="Input" ParameterName="@CodSoggetto" Precision="0" ProviderType="VarChar" Scale="0" Size="17" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@DataMod" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
|
||||
+10
-10
@@ -4,11 +4,11 @@
|
||||
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="-10" ViewPortY="-47" 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="52" ViewPortY="588" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<Shapes>
|
||||
<Shape ID="DesignTable:ElencoCartellini" ZOrder="6" X="79" Y="230" Height="495" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="368" />
|
||||
<Shape ID="DesignTable:ElencoCartellini" ZOrder="7" X="79" Y="230" Height="495" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="368" />
|
||||
<Shape ID="DesignTable:AnagMag" ZOrder="10" X="1047" Y="389" Height="229" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:PosizioneUdcCorrente" ZOrder="5" X="409" Y="544" Height="286" Width="245" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:PosizioneUdcCorrente" ZOrder="6" X="409" Y="544" Height="286" Width="245" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:PosizioneUdcStorico" ZOrder="39" X="412" Y="310" Height="168" Width="257" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:Blocchi" ZOrder="34" X="1072" Y="655" Height="325" Width="258" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="181" />
|
||||
<Shape ID="DesignTable:Celle" ZOrder="13" X="712" Y="420" Height="438" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="235" />
|
||||
@@ -16,11 +16,11 @@
|
||||
<Shape ID="DesignTable:v_UdcDetail" ZOrder="11" X="693" Y="-21" Height="419" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:AnagImballi" ZOrder="33" X="99" Y="18" Height="172" Width="211" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:V_ParticolariOverview" ZOrder="21" X="95" Y="1131" Height="248" Width="265" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:V_MagazziniOverview" ZOrder="7" X="733" Y="1102" Height="362" Width="271" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:V_MagazziniOverview" ZOrder="8" X="733" Y="1102" Height="362" Width="271" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:V_DettMagPart" ZOrder="17" X="1027" Y="998" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:TipoListaPrelievo" ZOrder="25" X="735" Y="891" Height="172" Width="224" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:RigheListePrelievo" ZOrder="22" X="86" Y="797" Height="307" Width="266" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:ElencoListePrelievo" ZOrder="9" X="430" Y="879" Height="381" Width="237" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:ElencoListePrelievo" ZOrder="1" X="430" Y="879" Height="381" Width="237" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:v_righeListePrelievoPosizione" ZOrder="23" X="400" Y="1301" Height="343" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="235" />
|
||||
<Shape ID="DesignTable:v_particolariEsponenteFigura" ZOrder="29" X="1042" Y="1386" Height="229" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:AnagPosizioni" ZOrder="27" X="375" Y="103" Height="153" Width="227" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
@@ -30,11 +30,11 @@
|
||||
<Shape ID="DesignTable:v_posizioniDelibere" ZOrder="16" X="107" Y="1701" Height="134" Width="257" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:v_RapQualSunto" ZOrder="15" X="498" Y="1731" Height="267" Width="228" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" />
|
||||
<Shape ID="DesignTable:AnagParticolari" ZOrder="14" X="765" Y="1768" Height="210" Width="234" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" />
|
||||
<Shape ID="DesignTable:AnagLeghe" ZOrder="8" X="131" Y="1854" Height="134" Width="228" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:StoricoAzioniOperatore" ZOrder="4" X="104" Y="2017" Height="324" Width="225" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="197" />
|
||||
<Shape ID="DesignTable:stp_MagFifoByParticolare" ZOrder="3" X="354" Y="2020" Height="229" Width="212" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" />
|
||||
<Shape ID="DesignTable:stp_UDC_FifoByParticolareBlocco" ZOrder="2" X="598" Y="2021" Height="153" Width="190" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:ElencoPostazioni" ZOrder="1" X="817" Y="2069" Height="172" Width="206" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:AnagLeghe" ZOrder="9" X="131" Y="1854" Height="134" Width="228" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
<Shape ID="DesignTable:StoricoAzioniOperatore" ZOrder="5" X="104" Y="2017" Height="324" Width="225" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="197" />
|
||||
<Shape ID="DesignTable:stp_MagFifoByParticolare" ZOrder="4" X="354" Y="2020" Height="229" Width="212" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" />
|
||||
<Shape ID="DesignTable:stp_UDC_FifoByParticolareBlocco" ZOrder="3" X="598" Y="2021" Height="153" Width="190" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:ElencoPostazioni" ZOrder="2" X="817" Y="2069" Height="172" Width="206" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
|
||||
</Shapes>
|
||||
<Connectors>
|
||||
<Connector ID="DesignRelation:FK_PosizioneUdcCorrente_ElencoCartellini" ZOrder="40" LineWidth="11">
|
||||
|
||||
@@ -423,7 +423,9 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="SqlScripts\V1.2\GMW_410_TEKAL\Sincroniz da TK_GMWTest a TK_GMW NON USARE.txt" />
|
||||
<None Include="SqlScripts\Vocabolario\vocab_562.sql" />
|
||||
<None Include="SqlScripts\V2.2_TK\GMW_00550.sql" />
|
||||
<None Include="SqlScripts\V2.2_TK\GMW_00562.sql" />
|
||||
<Content Include="SqlScripts\V2.2_TK\GMW_00540_pre_Install.sql" />
|
||||
<None Include="SqlScripts\V2.2_TK\GMW_00540.sql" />
|
||||
<None Include="SqlScripts\V2.2_TK\GMW_00533.sql" />
|
||||
|
||||
+117
-42
@@ -384,7 +384,7 @@ namespace GMW_data
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
logger.lg.scriviLog(string.Format(" | {3} | Errore in fase di scaricamneto dell'UDC {0}: {1}{2}", UDC, Environment.NewLine, e, clientIp), tipoLog.EXCEPTION);
|
||||
logger.lg.scriviLog(string.Format(" | {3} | Errore in fase di scaricamento dell'UDC {0}: {1}{2}", UDC, Environment.NewLine, e, clientIp), tipoLog.EXCEPTION);
|
||||
}
|
||||
|
||||
return answ;
|
||||
@@ -497,6 +497,43 @@ namespace GMW_data
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// fornisce cella in cui si trova l'UDC
|
||||
/// </summary>
|
||||
/// <param name="UDC"></param>
|
||||
/// <returns></returns>
|
||||
public string codCellaUdc(string UDC)
|
||||
{
|
||||
string answ = "";
|
||||
try
|
||||
{
|
||||
int idxCella=taPosUdcCorr.getByUDC(UDC)[0].IdxCella;
|
||||
answ = taCelle.getByIdxCella(idxCella)[0].CodCella;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// controlla se l'udc indicato sia in una LDP
|
||||
/// </summary>
|
||||
/// <param name="UDC"></param>
|
||||
/// <returns></returns>
|
||||
public bool udcInLdp(string UDC)
|
||||
{
|
||||
bool answ = false;
|
||||
try
|
||||
{
|
||||
DS_magazzino.RigheListePrelievoDataTable tabRLDP = taRigheListePrelievo.getByUdc(UDC);
|
||||
if (tabRLDP.Rows.Count > 0)
|
||||
{
|
||||
answ = true;
|
||||
}
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
/// fornisce il codice UDC calcolato
|
||||
/// </summary>
|
||||
/// <param name="codCS"></param>
|
||||
@@ -684,7 +721,7 @@ namespace GMW_data
|
||||
if (checkUDC(UDC))
|
||||
{
|
||||
answ = reportPrinter.obj.stampaCartellino(tipoCart, UDC, printer);
|
||||
logger.lg.scriviLog(string.Format(" | {0} | stampato UDC {1} | stampante {2} | tipo {2}", clientIp, UDC, printer, tipoCart), tipoLog.INFO);
|
||||
logger.lg.scriviLog(string.Format(" | {0} | stampato UDC {1} | stampante {2} | tipo {3}", clientIp, UDC, printer, tipoCart), tipoLog.INFO);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
@@ -1566,6 +1603,7 @@ namespace GMW_data
|
||||
// posizione corrente dell'UDC
|
||||
int idxPosizUdcCorr = 0;
|
||||
int idxPosizioneTo = 0;
|
||||
int idxPosizUdcDest = 0;
|
||||
int idxCellaTo = 0;
|
||||
try
|
||||
{
|
||||
@@ -1587,58 +1625,95 @@ namespace GMW_data
|
||||
DS_magazzino.RigheListePrelievoDataTable tabellaRigheListaPrelievo = taRigheListePrelievo.getByCodListaPrelevate(CodLista);
|
||||
DS_magazzino.RigheListePrelievoRow rigaListaPrelievo = tabellaRigheListaPrelievo[0];
|
||||
|
||||
// Modifica x gestioen "blocco " da stato LDP: PRIMA passo a bozza...
|
||||
taElencoListePrelievo.updateStato(CodSoggetto, CodLista, (int)statoLista.bozza);
|
||||
|
||||
// sposto ("metto a terra") gli UDC
|
||||
string _UDC = "";
|
||||
foreach (DS_magazzino.RigheListePrelievoRow row in tabellaRigheListaPrelievo.Rows)
|
||||
/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
* ora controllo se la lista sia DAVVERO scaricabile, cioè
|
||||
* - destinatario IMPOSTATO
|
||||
* - TUTTE le righe hanno una posizione di destinazione valida,
|
||||
* OVVERO tutte le righe hanno nella tab trans posiz eventi una riga valida
|
||||
* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
|
||||
bool listaScaricabile = true;
|
||||
if (riga.Destinatario == "")
|
||||
{
|
||||
// ricavo il codice UDC...
|
||||
_UDC = row.UDC;
|
||||
// posizione corrente
|
||||
idxPosizUdcCorr = taCartellini.getDetailsUdcByUdc(_UDC)[0].IdxPosizione;
|
||||
// calcolo posizione destinazione da state machine...
|
||||
try
|
||||
listaScaricabile = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
foreach (DS_magazzino.RigheListePrelievoRow row in tabellaRigheListaPrelievo.Rows)
|
||||
{
|
||||
idxPosizioneTo = StateMachine.SM.taTTPE.getByEventoPosizione(codEvento, idxPosizUdcCorr)[0].IdxPosizioneTo;
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
idxPosizioneTo = 0;
|
||||
logger.lg.scriviLog(string.Format(" | {1} | Errore in reset lista prelievo nel calcolo idxPosizioneTo: {0}", exc, clientIp), tipoLog.EXCEPTION);
|
||||
}
|
||||
if (idxPosizioneTo != 0)
|
||||
{
|
||||
// lo trasformo x avere la cella di destinazione...
|
||||
if (idxPosizUdcCorr < 0)
|
||||
// ricavo il codice UDC...
|
||||
string UDC = row.UDC;
|
||||
// mi serve per posizione udc corrente
|
||||
DS_magazzino.PosizioneUdcCorrenteRow rigaUdcCorrente = taPosUdcCorr.getByUDC(UDC)[0];
|
||||
// calcolo posizione destinazione da state machine...
|
||||
idxPosizUdcCorr = taCartellini.getDetailsUdcByUdc(UDC)[0].IdxPosizione;
|
||||
idxPosizUdcDest = StateMachine.SM.getIdxPostizioneTo(codEvento, idxPosizUdcCorr);
|
||||
if (idxPosizUdcDest == 0)
|
||||
{
|
||||
// se parto da cella negativa (consumato) calcolo destinazione da cella TO...
|
||||
idxCellaTo = taCelle.getFirstByPosizione(idxPosizioneTo.ToString())[0].IdxCella;
|
||||
listaScaricabile = false;
|
||||
}
|
||||
else
|
||||
}
|
||||
}
|
||||
// procedo SOLO se lista scaricabile...
|
||||
if (listaScaricabile)
|
||||
{
|
||||
// Modifica x gestione "blocco " da stato LDP: PRIMA passo a bozza...
|
||||
taElencoListePrelievo.updateStato(CodSoggetto, CodLista, (int)statoLista.bozza);
|
||||
// sposto ("metto a terra") gli UDC
|
||||
string _UDC = "";
|
||||
foreach (DS_magazzino.RigheListePrelievoRow row in tabellaRigheListaPrelievo.Rows)
|
||||
{
|
||||
// ricavo il codice UDC...
|
||||
_UDC = row.UDC;
|
||||
// posizione corrente
|
||||
idxPosizUdcCorr = taCartellini.getDetailsUdcByUdc(_UDC)[0].IdxPosizione;
|
||||
// calcolo posizione destinazione da state machine...
|
||||
try
|
||||
{
|
||||
try
|
||||
{
|
||||
// altrimenti uso la posizione corrente (NON faccio vero spostamento...
|
||||
idxCellaTo = taCelle.getFirstByPosizione(idxPosizUdcCorr.ToString())[0].IdxCella;
|
||||
}
|
||||
catch
|
||||
idxPosizioneTo = StateMachine.SM.taTTPE.getByEventoPosizione(codEvento, idxPosizUdcCorr)[0].IdxPosizioneTo;
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
idxPosizioneTo = 0;
|
||||
logger.lg.scriviLog(string.Format(" | {1} | Errore in reset lista prelievo nel calcolo idxPosizioneTo: {0}", exc, clientIp), tipoLog.EXCEPTION);
|
||||
}
|
||||
if (idxPosizioneTo != 0)
|
||||
{
|
||||
// lo trasformo x avere la cella di destinazione...
|
||||
if (idxPosizUdcCorr < 0)
|
||||
{
|
||||
// se parto da cella negativa (consumato) calcolo destinazione da cella TO...
|
||||
idxCellaTo = taCelle.getFirstByPosizione(idxPosizioneTo.ToString())[0].IdxCella;
|
||||
}
|
||||
else
|
||||
{
|
||||
try
|
||||
{
|
||||
// altrimenti uso la posizione corrente (NON faccio vero spostamento...
|
||||
idxCellaTo = taCelle.getFirstByPosizione(idxPosizUdcCorr.ToString())[0].IdxCella;
|
||||
}
|
||||
catch
|
||||
{
|
||||
// se parto da cella negativa (consumato) calcolo destinazione da cella TO...
|
||||
idxCellaTo = taCelle.getFirstByPosizione(idxPosizioneTo.ToString())[0].IdxCella;
|
||||
}
|
||||
}
|
||||
// sposto UDC
|
||||
spostaUDC(CodCS, _UDC, idxCellaTo, false, clientIp);
|
||||
}
|
||||
// sposto UDC
|
||||
spostaUDC(CodCS, _UDC, idxCellaTo, false, clientIp);
|
||||
}
|
||||
// indico le righe come NON prelevate...
|
||||
taRigheListePrelievo.stp_RLP_resetPrelevate(CodLista);
|
||||
//// aggiorno stato lista che torna a BOZZA
|
||||
//taElencoListePrelievo.updateStato(CodSoggetto, CodLista, (int)statoLista.bozza);
|
||||
answ = esitoOperazione.ok;
|
||||
logger.lg.scriviLog(string.Format(" | {0} | resettata lista di prelievo UDC {1} | utente {2} | tipo {2}", clientIp, CodLista, CodSoggetto), tipoLog.INFO);
|
||||
}
|
||||
else
|
||||
{
|
||||
// loggo che c'è anomalia
|
||||
answ = esitoOperazione.errore_readOnly;
|
||||
logger.lg.scriviLog(string.Format(" | {0} | Errore in reset lista prelievo: non è stato possibile resettare per la posizione di almeno un UDC", clientIp), tipoLog.EXCEPTION);
|
||||
}
|
||||
// indico le righe come NON prelevate...
|
||||
taRigheListePrelievo.stp_RLP_resetPrelevate(CodLista);
|
||||
//// aggiorno stato lista che torna a BOZZA
|
||||
//taElencoListePrelievo.updateStato(CodSoggetto, CodLista, (int)statoLista.bozza);
|
||||
answ = esitoOperazione.ok;
|
||||
logger.lg.scriviLog(string.Format(" | {0} | resettata lista di prelievo UDC {1} | utente {2} | tipo {2}", clientIp, CodLista, CodSoggetto), tipoLog.INFO);
|
||||
}
|
||||
// se è già completata o NON iniziata dà errore
|
||||
else
|
||||
|
||||
@@ -0,0 +1,612 @@
|
||||
set xact_abort on;
|
||||
go
|
||||
|
||||
begin transaction;
|
||||
go
|
||||
|
||||
set ANSI_NULLS on;
|
||||
go
|
||||
|
||||
create VIEW v_selTipoPart
|
||||
AS
|
||||
SELECT val AS value, CASE WHEN val = 'A' THEN 'Anime' WHEN val = 'P' THEN 'Produzione' ELSE val + ' (n.d.)' END AS label
|
||||
FROM (SELECT DISTINCT ClassifArticolo AS val
|
||||
FROM RilPro.AnagParticolari) AS derivedtbl_1
|
||||
go
|
||||
|
||||
exec sp_addextendedproperty 'MS_DiagramPane1', '[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
|
||||
Begin DesignProperties =
|
||||
Begin PaneConfigurations =
|
||||
Begin PaneConfiguration = 0
|
||||
NumPanes = 4
|
||||
Configuration = "(H (1[40] 4[20] 2[20] 3) )"
|
||||
End
|
||||
Begin PaneConfiguration = 1
|
||||
NumPanes = 3
|
||||
Configuration = "(H (1 [50] 4 [25] 3))"
|
||||
End
|
||||
Begin PaneConfiguration = 2
|
||||
NumPanes = 3
|
||||
Configuration = "(H (1 [50] 2 [25] 3))"
|
||||
End
|
||||
Begin PaneConfiguration = 3
|
||||
NumPanes = 3
|
||||
Configuration = "(H (4 [30] 2 [40] 3))"
|
||||
End
|
||||
Begin PaneConfiguration = 4
|
||||
NumPanes = 2
|
||||
Configuration = "(H (1 [56] 3))"
|
||||
End
|
||||
Begin PaneConfiguration = 5
|
||||
NumPanes = 2
|
||||
Configuration = "(H (2 [66] 3))"
|
||||
End
|
||||
Begin PaneConfiguration = 6
|
||||
NumPanes = 2
|
||||
Configuration = "(H (4 [50] 3))"
|
||||
End
|
||||
Begin PaneConfiguration = 7
|
||||
NumPanes = 1
|
||||
Configuration = "(V (3))"
|
||||
End
|
||||
Begin PaneConfiguration = 8
|
||||
NumPanes = 3
|
||||
Configuration = "(H (1[56] 4[18] 2) )"
|
||||
End
|
||||
Begin PaneConfiguration = 9
|
||||
NumPanes = 2
|
||||
Configuration = "(H (1 [75] 4))"
|
||||
End
|
||||
Begin PaneConfiguration = 10
|
||||
NumPanes = 2
|
||||
Configuration = "(H (1[66] 2) )"
|
||||
End
|
||||
Begin PaneConfiguration = 11
|
||||
NumPanes = 2
|
||||
Configuration = "(H (4 [60] 2))"
|
||||
End
|
||||
Begin PaneConfiguration = 12
|
||||
NumPanes = 1
|
||||
Configuration = "(H (1) )"
|
||||
End
|
||||
Begin PaneConfiguration = 13
|
||||
NumPanes = 1
|
||||
Configuration = "(V (4))"
|
||||
End
|
||||
Begin PaneConfiguration = 14
|
||||
NumPanes = 1
|
||||
Configuration = "(V (2))"
|
||||
End
|
||||
ActivePaneConfig = 0
|
||||
End
|
||||
Begin DiagramPane =
|
||||
Begin Origin =
|
||||
Top = 0
|
||||
Left = 0
|
||||
End
|
||||
Begin Tables =
|
||||
Begin Table = "derivedtbl_1"
|
||||
Begin Extent =
|
||||
Top = 6
|
||||
Left = 38
|
||||
Bottom = 85
|
||||
Right = 208
|
||||
End
|
||||
DisplayFlags = 280
|
||||
TopColumn = 0
|
||||
End
|
||||
End
|
||||
End
|
||||
Begin SQLPane =
|
||||
End
|
||||
Begin DataPane =
|
||||
Begin ParameterDefaults = ""
|
||||
End
|
||||
Begin ColumnWidths = 9
|
||||
Width = 284
|
||||
Width = 1500
|
||||
Width = 1500
|
||||
Width = 1500
|
||||
Width = 1500
|
||||
Width = 1500
|
||||
Width = 1500
|
||||
Width = 1500
|
||||
Width = 1500
|
||||
End
|
||||
End
|
||||
Begin CriteriaPane =
|
||||
Begin ColumnWidths = 11
|
||||
Column = 1440
|
||||
Alias = 900
|
||||
Table = 1170
|
||||
Output = 720
|
||||
Append = 1400
|
||||
NewValue = 1170
|
||||
SortType = 1350
|
||||
SortOrder = 1410
|
||||
GroupBy = 1350
|
||||
Filter = 1350
|
||||
Or = 1350
|
||||
Or = 1350
|
||||
Or = 1350
|
||||
End
|
||||
End
|
||||
End
|
||||
', 'SCHEMA', 'dbo', 'VIEW', 'v_selTipoPart';
|
||||
go
|
||||
|
||||
exec sp_addextendedproperty 'MS_DiagramPaneCount', 1, 'SCHEMA', 'dbo', 'VIEW', 'v_selTipoPart';
|
||||
go
|
||||
|
||||
commit;
|
||||
go
|
||||
|
||||
|
||||
set xact_abort on;
|
||||
go
|
||||
|
||||
begin transaction;
|
||||
go
|
||||
|
||||
set ANSI_NULLS on;
|
||||
go
|
||||
|
||||
/***************************************
|
||||
* STORED stp_elencoListePrelievoFilt
|
||||
*
|
||||
* restituisce l'elenco delle liste di prelievo secondo criteri di filtraggio
|
||||
*
|
||||
* Steamware, S.E.L.
|
||||
* mod: 2010.07.06
|
||||
*
|
||||
****************************************/
|
||||
alter PROCEDURE stp_elencoListePrelievoFilt
|
||||
(
|
||||
@DataFrom DATETIME,
|
||||
@DataTo DATETIME,
|
||||
@classifArticolo NCHAR(1) = '*'
|
||||
)
|
||||
AS
|
||||
-- utilizza la vista righe lista prelievo e quindi solo le prelevate ...
|
||||
|
||||
SELECT velp.*
|
||||
FROM V_elencoListePrelievo velp INNER JOIN RilPro.AnagParticolari ap ON velp.Particolare = ap.Particolare
|
||||
WHERE (velp.DataCreaz BETWEEN @DataFrom AND @DataTo)
|
||||
AND ap.classifArticolo = CASE WHEN ISNULL(@classifArticolo,'*') = '*' THEN ap.classifArticolo ELSE @classifArticolo END
|
||||
ORDER BY velp.DataCreaz DESC
|
||||
|
||||
RETURN
|
||||
go
|
||||
|
||||
commit;
|
||||
go
|
||||
|
||||
|
||||
set xact_abort on;
|
||||
go
|
||||
|
||||
begin transaction;
|
||||
go
|
||||
|
||||
set ANSI_NULLS on;
|
||||
go
|
||||
|
||||
/***************************************
|
||||
* STORED stp_LP_updateDestTipo
|
||||
*
|
||||
* aggiorna destinatario e tipo per una lista di prelievo
|
||||
*
|
||||
* Steamware, S.E.L.
|
||||
* mod: 2012.03.06
|
||||
*
|
||||
************************************/
|
||||
alter PROCEDURE stp_LP_updateDestTipo
|
||||
(
|
||||
@Original_CodLista NVARCHAR(12),
|
||||
@CodTipoLista VARCHAR(10),
|
||||
@CodCliente NVARCHAR(6),
|
||||
@RagSociale NVARCHAR(50),
|
||||
@CodSoggetto VARCHAR(17),
|
||||
@DataMod DATETIME
|
||||
)
|
||||
AS
|
||||
|
||||
--SET XACT_ABORT ON;
|
||||
|
||||
--BEGIN TRY
|
||||
-- BEGIN TRANSACTION;
|
||||
|
||||
-- aggiorno lista prelievo con nuovo UDC
|
||||
UPDATE dbo.ElencoListePrelievo
|
||||
SET CodTipoLista = @CodTipoLista,
|
||||
Destinatario = @CodCliente,
|
||||
DestinatarioDescrizione = @RagSociale,
|
||||
CodSoggetto = @CodSoggetto,
|
||||
DataModStato = @DataMod
|
||||
WHERE CodLista = @Original_CodLista
|
||||
AND CodStatoLista = 3
|
||||
|
||||
-- memorizzo errore
|
||||
-- IF ( SELECT CodStatoLista FROM ElencoListePrelievo WHERE CodLista = @Original_CodLista ) <> 3
|
||||
-- INSERT TK_AS400.dbo.TabErrori
|
||||
-- SELECT GETDATE(), 'STORED stp_LP_updateDestTipo Modifica Tipo Lista non Corretto ' + @Original_CodLista + ' New Tipo ' + @CodTipoLista + ' New Cliente ' + @CodCliente
|
||||
|
||||
-- COMMIT TRANSACTION;
|
||||
--END TRY
|
||||
--BEGIN CATCH
|
||||
|
||||
-- SELECT
|
||||
-- ERROR_NUMBER() AS ErrorNumber,
|
||||
-- ERROR_MESSAGE() AS ErrorMessage;
|
||||
|
||||
-- -- Test XACT_STATE for 1 or -1.
|
||||
-- -- XACT_STATE = 0 means there is no transaction and
|
||||
-- -- a commit or rollback operation would generate an error.
|
||||
|
||||
-- -- Test whether the transaction is uncommittable.
|
||||
-- IF (XACT_STATE()) = -1
|
||||
-- BEGIN
|
||||
-- PRINT
|
||||
-- N'The transaction is in an uncommittable state. ' +
|
||||
-- 'Rolling back transaction.'
|
||||
-- ROLLBACK TRANSACTION;
|
||||
-- END;
|
||||
|
||||
-- -- Test whether the transaction is active and valid.
|
||||
-- IF (XACT_STATE()) = 1
|
||||
-- BEGIN
|
||||
-- PRINT
|
||||
-- N'The transaction is committable. ' +
|
||||
-- 'Committing transaction.'
|
||||
-- COMMIT TRANSACTION;
|
||||
-- END;
|
||||
|
||||
-- DECLARE @ErrorMessage NVARCHAR(4000);
|
||||
-- DECLARE @ErrorSeverity INT;
|
||||
-- DECLARE @ErrorState INT;
|
||||
|
||||
-- SELECT
|
||||
-- @ErrorMessage = ERROR_MESSAGE(),
|
||||
-- @ErrorSeverity = ERROR_SEVERITY(),
|
||||
-- @ErrorState = ERROR_STATE();
|
||||
|
||||
-- -- Use RAISERROR inside the CATCH block to return error
|
||||
-- -- information about the original error that caused
|
||||
-- -- execution to jump to the CATCH block.
|
||||
-- RAISERROR (@ErrorMessage, -- Message text.
|
||||
-- @ErrorSeverity, -- Severity.
|
||||
-- @ErrorState -- State.
|
||||
-- ) ; -- WITH LOG;
|
||||
--END CATCH;
|
||||
|
||||
|
||||
--
|
||||
|
||||
/* 18-06-2013 messo blocco anche qui dopo aver trovati liste di prelievo già scaricate con tipo e destinatario
|
||||
modificati
|
||||
UPDATE ElencoListePrelievo
|
||||
SET CodTipoLista = @CodTipoLista,
|
||||
Destinatario = @CodCliente,
|
||||
DestinatarioDescrizione = @RagSociale
|
||||
WHERE CodLista = @Original_CodLista
|
||||
*/
|
||||
|
||||
|
||||
RETURN
|
||||
go
|
||||
|
||||
commit;
|
||||
go
|
||||
|
||||
|
||||
set xact_abort on;
|
||||
go
|
||||
|
||||
begin transaction;
|
||||
go
|
||||
|
||||
set ANSI_NULLS on;
|
||||
go
|
||||
|
||||
/***************************************
|
||||
* STORED stp_ParticolariOverview
|
||||
*
|
||||
* elenco di overview sullo stato dei magazzini (dettaglio a "maglie larghe")
|
||||
*
|
||||
* Steamware, S.E.L.
|
||||
* mod: 2013.06.17 x Cella Terra Bloccata non visibile
|
||||
* procedura vecchia in fondo
|
||||
****************************************/
|
||||
alter PROCEDURE stp_magazzinoOverview
|
||||
(
|
||||
@CodCS VARCHAR(2),
|
||||
@particolare NVARCHAR(15) = ''
|
||||
)
|
||||
AS
|
||||
|
||||
-- controllo se particolare vuoto o '*' mostro tutto...
|
||||
IF(@particolare = '' OR @particolare='*' OR @particolare IS NULL)
|
||||
BEGIN
|
||||
|
||||
SELECT
|
||||
AnagMag.CodCS ,
|
||||
AnagMag.CodMag ,
|
||||
AnagMag.DescMag ,
|
||||
Blocchi.IdxBlocco ,
|
||||
Blocchi.CodBlocco ,
|
||||
Blocchi.DescBlocco ,
|
||||
TipoCella.Capienza * Blocchi.NumX * Blocchi.NumY * Blocchi.NumZ AS TotCelle,
|
||||
TipoCella.Capienza * COUNT( DISTINCT ( CASE WHEN Celle.Attiva = 1 THEN Celle.IdxCella
|
||||
ELSE NULL END ) ) AS CelleAttive,
|
||||
COUNT( PosizioneUdcCorrente.UDC )AS CelleOccupate,
|
||||
-- COUNT( CASE WHEN Celle.Attiva = 1 THEN PosizioneUdcCorrente.UDC ELSE NULL END ) AS CelleAttiveOccupate,
|
||||
-- CelleLibere = CelleAttive - CelleOccupate ( solo se attive )
|
||||
( TipoCella.Capienza * COUNT( DISTINCT ( CASE WHEN Celle.Attiva = 1
|
||||
THEN Celle.IdxCella ELSE NULL END )) )
|
||||
- ( COUNT( CASE WHEN Celle.Attiva = 1 THEN PosizioneUdcCorrente.UDC ELSE NULL END ) ) AS CelleLibere,
|
||||
|
||||
ISNULL( MIN( PosizioneUdcCorrente.DataRif ) , GETDATE( ))AS Oldest ,
|
||||
ISNULL( MAX( PosizioneUdcCorrente.DataRif ) , GETDATE( ))AS Newest
|
||||
FROM AnagMag
|
||||
INNER JOIN Blocchi
|
||||
ON AnagMag.CodMag = Blocchi.CodMag AND AnagMag.CodCS = Blocchi.CodCS
|
||||
INNER JOIN TipoCella
|
||||
ON AnagMag.CodMag = TipoCella.CodMag AND AnagMag.CodCS = TipoCella.CodCS
|
||||
INNER JOIN Celle
|
||||
ON TipoCella.IdxTipoCella = Celle.IdxTipoCella AND Blocchi.IdxBlocco = Celle.IdxBlocco
|
||||
LEFT OUTER JOIN PosizioneUdcCorrente
|
||||
ON Celle.IdxCella = PosizioneUdcCorrente.IdxCella
|
||||
|
||||
WHERE AnagMag.CodCS = @CodCS AND ISNULL( AnagMag.Nascosto , 0 ) = 0 -- escludo mag. nascosti
|
||||
GROUP BY AnagMag.CodCS ,
|
||||
AnagMag.CodMag ,
|
||||
AnagMag.DescMag ,
|
||||
Blocchi.IdxBlocco ,
|
||||
Blocchi.CodBlocco ,
|
||||
Blocchi.DescBlocco ,
|
||||
Blocchi.NumX ,
|
||||
Blocchi.NumY ,
|
||||
Blocchi.NumZ ,
|
||||
TipoCella.Capienza
|
||||
ORDER BY AnagMag.CodMag , Blocchi.CodBlocco;
|
||||
END
|
||||
ELSE
|
||||
BEGIN
|
||||
|
||||
SELECT
|
||||
AnagMag.CodCS ,
|
||||
AnagMag.CodMag ,
|
||||
AnagMag.DescMag ,
|
||||
Blocchi.IdxBlocco ,
|
||||
Blocchi.CodBlocco ,
|
||||
Blocchi.DescBlocco ,
|
||||
TipoCella.Capienza * Blocchi.NumX * Blocchi.NumY * Blocchi.NumZ AS TotCelle,
|
||||
-- CelleLibere e CelleAttive = 0 altrimenti grafico videata non corretto con selezione particolare
|
||||
CONVERT(INT, 0 ) AS CelleAttive,
|
||||
COUNT( CASE WHEN ec.particolare = @particolare THEN PosizioneUdcCorrente.UDC ELSE NULL END ) AS CelleOccupate,
|
||||
CONVERT(INT, 0 ) AS CelleLibere,
|
||||
|
||||
-- Calcoli normali x CelleLibere e CelleAttive ( verificare grafico videata - calcoli corretti )
|
||||
--TipoCella.Capienza * COUNT( DISTINCT ( CASE WHEN Celle.Attiva = 1 THEN Celle.IdxCella
|
||||
-- ELSE NULL END ) ) AS CelleAttive,
|
||||
--COUNT( CASE WHEN ec.particolare = @particolare THEN PosizioneUdcCorrente.UDC ELSE NULL END ) AS CelleOccupate,
|
||||
--( TipoCella.Capienza * COUNT( DISTINCT ( CASE WHEN Celle.Attiva = 1 THEN Celle.IdxCella ELSE NULL END )) )
|
||||
-- - ( COUNT( CASE WHEN Celle.Attiva = 1 THEN PosizioneUdcCorrente.UDC ELSE NULL END ) ) AS CelleLibere,
|
||||
|
||||
ISNULL( MIN( CASE WHEN ec.particolare = @particolare THEN PosizioneUdcCorrente.DataRif ELSE NULL END ) , GETDATE( ))AS Oldest ,
|
||||
ISNULL( MAX( CASE WHEN ec.particolare = @particolare THEN PosizioneUdcCorrente.DataRif ELSE NULL END ) , GETDATE( ))AS Newest
|
||||
FROM AnagMag
|
||||
INNER JOIN Blocchi
|
||||
ON AnagMag.CodMag = Blocchi.CodMag AND AnagMag.CodCS = Blocchi.CodCS
|
||||
INNER JOIN TipoCella
|
||||
ON AnagMag.CodMag = TipoCella.CodMag AND AnagMag.CodCS = TipoCella.CodCS
|
||||
INNER JOIN Celle
|
||||
ON TipoCella.IdxTipoCella = Celle.IdxTipoCella AND Blocchi.IdxBlocco = Celle.IdxBlocco
|
||||
LEFT OUTER JOIN PosizioneUdcCorrente
|
||||
ON Celle.IdxCella = PosizioneUdcCorrente.IdxCella
|
||||
LEFT OUTER JOIN ElencoCartellini ec ON PosizioneUdcCorrente.UDC = ec.UDC
|
||||
|
||||
WHERE AnagMag.CodCS = @CodCS AND ISNULL( AnagMag.Nascosto , 0 ) = 0 -- escludo mag. nascosti
|
||||
GROUP BY AnagMag.CodCS ,
|
||||
AnagMag.CodMag ,
|
||||
AnagMag.DescMag ,
|
||||
Blocchi.IdxBlocco ,
|
||||
Blocchi.CodBlocco ,
|
||||
Blocchi.DescBlocco ,
|
||||
Blocchi.NumX ,
|
||||
Blocchi.NumY ,
|
||||
Blocchi.NumZ ,
|
||||
TipoCella.Capienza
|
||||
-- filtro solo i magazzini con il particolare richiesto
|
||||
HAVING COUNT( CASE WHEN ec.particolare = @particolare THEN PosizioneUdcCorrente.UDC ELSE NULL END ) > 0
|
||||
ORDER BY AnagMag.CodMag , Blocchi.CodBlocco;
|
||||
|
||||
END
|
||||
|
||||
/* OLD 17/06/2013 Problema della cella terra bloccata non più visibile e delle celle bloccate piene
|
||||
SELECT AnagMag.CodCS, AnagMag.CodMag, AnagMag.DescMag, Blocchi.IdxBlocco, Blocchi.CodBlocco, Blocchi.DescBlocco,
|
||||
TipoCella.Capienza * Blocchi.NumX * Blocchi.NumY * Blocchi.NumZ AS TotCelle,
|
||||
TipoCella.Capienza * COUNT(DISTINCT Celle.IdxCella) AS CelleAttive,
|
||||
COUNT(PosizioneUdcCorrente.UDC) AS CelleOccupate,
|
||||
TipoCella.Capienza * COUNT(DISTINCT Celle.IdxCella) - COUNT(PosizioneUdcCorrente.UDC) AS CelleLibere,
|
||||
ISNULL(MIN(PosizioneUdcCorrente.DataRif), GETDATE()) AS Oldest, ISNULL(MAX(PosizioneUdcCorrente.DataRif), GETDATE()) AS Newest
|
||||
FROM TipoCella INNER JOIN
|
||||
AnagMag INNER JOIN
|
||||
Blocchi ON AnagMag.CodMag = Blocchi.CodMag AND AnagMag.CodCS = Blocchi.CodCS ON TipoCella.CodMag = AnagMag.CodMag AND
|
||||
TipoCella.CodCS = AnagMag.CodCS LEFT OUTER JOIN
|
||||
Celle ON TipoCella.IdxTipoCella = Celle.IdxTipoCella AND Blocchi.IdxBlocco = Celle.IdxBlocco LEFT OUTER JOIN
|
||||
PosizioneUdcCorrente ON Celle.IdxCella = PosizioneUdcCorrente.IdxCella
|
||||
WHERE (Celle.Attiva = 1) AND (AnagMag.CodCS = @CodCS) AND (ISNULL(AnagMag.Nascosto, 0) = 0)
|
||||
GROUP BY AnagMag.CodCS, AnagMag.CodMag, AnagMag.DescMag, Blocchi.IdxBlocco, Blocchi.CodBlocco, Blocchi.DescBlocco,
|
||||
Blocchi.NumX, Blocchi.NumY, Blocchi.NumZ,
|
||||
TipoCella.Capienza
|
||||
ORDER BY AnagMag.CodMag, Blocchi.CodBlocco
|
||||
END
|
||||
ELSE
|
||||
BEGIN
|
||||
SELECT AnagMag.CodCS, AnagMag.CodMag, AnagMag.DescMag, Blocchi.IdxBlocco, Blocchi.CodBlocco, Blocchi.DescBlocco,
|
||||
TipoCella.Capienza * Blocchi.NumX * Blocchi.NumY * Blocchi.NumZ AS TotCelle,
|
||||
TipoCella.Capienza * COUNT(DISTINCT Celle.IdxCella) AS CelleAttive,
|
||||
COUNT(PosizioneUdcCorrente.UDC) AS CelleOccupate,
|
||||
TipoCella.Capienza * COUNT(DISTINCT Celle.IdxCella) - COUNT(PosizioneUdcCorrente.UDC) AS CelleLibere,
|
||||
ISNULL(MIN(PosizioneUdcCorrente.DataRif), GETDATE()) AS Oldest, ISNULL(MAX(PosizioneUdcCorrente.DataRif), GETDATE()) AS Newest
|
||||
FROM TipoCella INNER JOIN
|
||||
AnagMag INNER JOIN
|
||||
Blocchi ON AnagMag.CodMag = Blocchi.CodMag AND AnagMag.CodCS = Blocchi.CodCS ON TipoCella.CodMag = AnagMag.CodMag AND
|
||||
TipoCella.CodCS = AnagMag.CodCS LEFT OUTER JOIN
|
||||
Celle ON TipoCella.IdxTipoCella = Celle.IdxTipoCella AND Blocchi.IdxBlocco = Celle.IdxBlocco LEFT OUTER JOIN
|
||||
PosizioneUdcCorrente ON Celle.IdxCella = PosizioneUdcCorrente.IdxCella
|
||||
INNER JOIN ElencoCartellini ec ON PosizioneUdcCorrente.UDC = ec.UDC
|
||||
WHERE (Celle.Attiva = 1) AND (AnagMag.CodCS = @CodCS) AND (ISNULL(AnagMag.Nascosto, 0) = 0) AND ec.particolare = @particolare
|
||||
GROUP BY AnagMag.CodCS, AnagMag.CodMag, AnagMag.DescMag, Blocchi.IdxBlocco, Blocchi.CodBlocco, Blocchi.DescBlocco,
|
||||
Blocchi.NumX, Blocchi.NumY, Blocchi.NumZ,
|
||||
TipoCella.Capienza
|
||||
ORDER BY AnagMag.CodMag, Blocchi.CodBlocco
|
||||
END
|
||||
*/
|
||||
|
||||
RETURN
|
||||
go
|
||||
|
||||
commit;
|
||||
go
|
||||
|
||||
|
||||
set xact_abort on;
|
||||
go
|
||||
|
||||
begin transaction;
|
||||
go
|
||||
|
||||
set ANSI_NULLS on;
|
||||
go
|
||||
|
||||
/***************************************
|
||||
* STORED stp_paretoPartByMagBlocco
|
||||
*
|
||||
* restituisce elenco particolari in logica pareto (quantità) per un dato blocco di magazzino, aggregati (no stato)
|
||||
*
|
||||
* Steamware, S.E.L.
|
||||
* mod: 2010.06.03
|
||||
*
|
||||
****************************************/
|
||||
alter PROCEDURE stp_paretoPartByMagBlocco
|
||||
(
|
||||
@CodCS VARCHAR(2),
|
||||
@CodMag VARCHAR(50),
|
||||
@IdxBlocco INT
|
||||
)
|
||||
AS
|
||||
|
||||
SELECT TOP (100) PERCENT
|
||||
dbo.AnagMag.CodCS, dbo.AnagMag.CodMag, dbo.AnagMag.DescMag, dbo.Blocchi.IdxBlocco, dbo.Blocchi.CodBlocco,
|
||||
dbo.ElencoCartellini.Particolare, '' as Esponente, COUNT(dbo.PosizioneUdcCorrente.UDC) AS NumUDC, ISNULL(MIN(dbo.PosizioneUdcCorrente.DataRif),
|
||||
GETDATE()) AS Oldest, ISNULL(MAX(dbo.PosizioneUdcCorrente.DataRif), GETDATE()) AS Newest, SUM(dbo.ElencoCartellini.Qta) AS QtaTotPz,
|
||||
'' AS DescStato
|
||||
FROM dbo.AnagMag INNER JOIN
|
||||
dbo.Blocchi ON dbo.AnagMag.CodMag = dbo.Blocchi.CodMag AND dbo.AnagMag.CodCS = dbo.Blocchi.CodCS INNER JOIN
|
||||
dbo.Celle INNER JOIN
|
||||
dbo.ElencoCartellini INNER JOIN
|
||||
dbo.PosizioneUdcCorrente ON dbo.ElencoCartellini.UDC = dbo.PosizioneUdcCorrente.UDC
|
||||
ON dbo.Celle.IdxCella = dbo.PosizioneUdcCorrente.IdxCella
|
||||
ON dbo.Blocchi.IdxBlocco = dbo.Celle.IdxBlocco INNER JOIN
|
||||
dbo.AnagStatiProdotto ON dbo.ElencoCartellini.CodStato = dbo.AnagStatiProdotto.CodStato
|
||||
WHERE --(dbo.Celle.Attiva = 1) AND -- disattivata Redmine #46
|
||||
(AnagMag.CodCS = @CodCS) AND AnagMag.CodMag = @CodMag AND Blocchi.IdxBlocco = @IdxBlocco
|
||||
GROUP BY dbo.AnagMag.CodCS, dbo.AnagMag.CodMag, dbo.AnagMag.DescMag, dbo.Blocchi.IdxBlocco, dbo.Blocchi.CodBlocco,
|
||||
dbo.Blocchi.NumX, dbo.Blocchi.NumY, dbo.Blocchi.NumZ, dbo.ElencoCartellini.Particolare
|
||||
ORDER BY QtaTotPz DESC
|
||||
|
||||
|
||||
RETURN
|
||||
go
|
||||
|
||||
/***************************************
|
||||
* STORED stp_paretoPartByMagBloccoCodMagLog
|
||||
*
|
||||
* restituisce elenco particolari in logica pareto (quantità) per un dato blocco di magazzino ed un dato magazzino logico, aggregati (no stato)
|
||||
*
|
||||
* Steamware, S.E.L.
|
||||
* mod: 2010.09.15
|
||||
*
|
||||
****************************************/
|
||||
alter PROCEDURE stp_paretoPartByMagBloccoCodMagLog
|
||||
(
|
||||
@CodCS VARCHAR(2),
|
||||
@CodMag VARCHAR(50),
|
||||
@IdxBlocco INT,
|
||||
@CodMagLog INT
|
||||
)
|
||||
AS
|
||||
|
||||
SELECT TOP (100) PERCENT
|
||||
dbo.AnagMag.CodCS, dbo.AnagMag.CodMag, dbo.AnagMag.DescMag, dbo.Blocchi.IdxBlocco, dbo.Blocchi.CodBlocco,
|
||||
dbo.ElencoCartellini.Particolare, '' as Esponente, COUNT(dbo.PosizioneUdcCorrente.UDC) AS NumUDC, ISNULL(MIN(dbo.PosizioneUdcCorrente.DataRif),
|
||||
GETDATE()) AS Oldest, ISNULL(MAX(dbo.PosizioneUdcCorrente.DataRif), GETDATE()) AS Newest, SUM(dbo.ElencoCartellini.Qta) AS QtaTotPz,
|
||||
'' AS DescStato
|
||||
FROM dbo.AnagMag INNER JOIN
|
||||
dbo.Blocchi ON dbo.AnagMag.CodMag = dbo.Blocchi.CodMag AND dbo.AnagMag.CodCS = dbo.Blocchi.CodCS INNER JOIN
|
||||
dbo.Celle INNER JOIN
|
||||
dbo.ElencoCartellini INNER JOIN
|
||||
dbo.PosizioneUdcCorrente ON dbo.ElencoCartellini.UDC = dbo.PosizioneUdcCorrente.UDC
|
||||
ON dbo.Celle.IdxCella = dbo.PosizioneUdcCorrente.IdxCella
|
||||
ON dbo.Blocchi.IdxBlocco = dbo.Celle.IdxBlocco INNER JOIN
|
||||
dbo.AnagStatiProdotto ON dbo.ElencoCartellini.CodStato = dbo.AnagStatiProdotto.CodStato
|
||||
WHERE --(dbo.Celle.Attiva = 1) AND -- disattivata Redmine #46
|
||||
(AnagMag.CodCS = @CodCS) AND AnagMag.CodMag = @CodMag AND Blocchi.IdxBlocco = @IdxBlocco
|
||||
AND ElencoCartellini.IdxPosizione = @CodMagLog
|
||||
GROUP BY dbo.AnagMag.CodCS, dbo.AnagMag.CodMag, dbo.AnagMag.DescMag, dbo.Blocchi.IdxBlocco, dbo.Blocchi.CodBlocco,
|
||||
dbo.Blocchi.NumX, dbo.Blocchi.NumY, dbo.Blocchi.NumZ, dbo.ElencoCartellini.Particolare
|
||||
ORDER BY QtaTotPz DESC
|
||||
|
||||
|
||||
RETURN
|
||||
go
|
||||
|
||||
commit;
|
||||
go
|
||||
|
||||
|
||||
set xact_abort on;
|
||||
go
|
||||
|
||||
begin transaction;
|
||||
go
|
||||
|
||||
set ANSI_NULLS on;
|
||||
go
|
||||
|
||||
/***************************************
|
||||
* STORED stp_RLP_eliminaUdc
|
||||
*
|
||||
* elimina eventuali righe dato cod UDC (x scarico diretto)
|
||||
*
|
||||
* Steamware, S.E.L.
|
||||
* mod: 2013.05.07
|
||||
*
|
||||
****************************************/
|
||||
create PROCEDURE stp_RLP_eliminaUdc
|
||||
(
|
||||
@UDC NVARCHAR(50)
|
||||
)
|
||||
AS
|
||||
|
||||
DELETE FROM RigheListePrelievo
|
||||
WHERE UDC = @UDC
|
||||
|
||||
RETURN
|
||||
go
|
||||
|
||||
commit;
|
||||
go
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
-- registro versione...
|
||||
INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(562, GETDATE())
|
||||
GO
|
||||
SELECT TOP 5 * FROM LogUpdateDb ORDER BY Versione DESC
|
||||
GO
|
||||
@@ -0,0 +1,50 @@
|
||||
set xact_abort on
|
||||
go
|
||||
|
||||
begin transaction
|
||||
go
|
||||
|
||||
INSERT INTO dbo.Vocabolario
|
||||
VALUES (N'EN', N'btnForzaCons_inLDP', N'FORZA cons. UDC in LDP')
|
||||
INSERT INTO dbo.Vocabolario
|
||||
VALUES (N'EN', N'btnForzaCons_NoPosVLP', N'FORZA cons. UDC non prel.')
|
||||
INSERT INTO dbo.Vocabolario
|
||||
VALUES (N'EN', N'Consumo AnimeExpl', N'Gestione Consumo UDC Anime')
|
||||
INSERT INTO dbo.Vocabolario
|
||||
VALUES (N'EN', N'ConsumoAnime', N'Consumo Anime')
|
||||
INSERT INTO dbo.Vocabolario
|
||||
VALUES (N'EN', N'filtraTipoPart', N'Filtra per Tipo Particolare')
|
||||
INSERT INTO dbo.Vocabolario
|
||||
VALUES (N'EN', N'UDC_impegnatoLDP', N'Attenzione, UDC impegnato in LDP, confermare')
|
||||
INSERT INTO dbo.Vocabolario
|
||||
VALUES (N'EN', N'UDC_nonPrel', N'Attenzione: UDC non in locazione corretta (LPA/LPX)')
|
||||
INSERT INTO dbo.Vocabolario
|
||||
VALUES (N'EN', N'UDC_posizErrataAnime', N'Tipo cartellino/posizione errati: permesso solo scaricamento ANIME')
|
||||
INSERT INTO dbo.Vocabolario
|
||||
VALUES (N'IT', N'btnForzaCons_inLDP', N'FORZA cons. UDC in LDP')
|
||||
INSERT INTO dbo.Vocabolario
|
||||
VALUES (N'IT', N'btnForzaCons_NoPosVLP', N'FORZA cons. UDC non prel.')
|
||||
INSERT INTO dbo.Vocabolario
|
||||
VALUES (N'IT', N'Consumo AnimeExpl', N'Gestione Consumo UDC Anime')
|
||||
INSERT INTO dbo.Vocabolario
|
||||
VALUES (N'IT', N'ConsumoAnime', N'Consumo Anime')
|
||||
INSERT INTO dbo.Vocabolario
|
||||
VALUES (N'IT', N'filtraTipoPart', N'Filtra per Tipo Particolare')
|
||||
INSERT INTO dbo.Vocabolario
|
||||
VALUES (N'IT', N'UDC_impegnatoLDP', N'Attenzione, UDC impegnato in LDP, confermare')
|
||||
INSERT INTO dbo.Vocabolario
|
||||
VALUES (N'IT', N'UDC_nonPrel', N'Attenzione: UDC non in locazione corretta (LPA/LPX)')
|
||||
INSERT INTO dbo.Vocabolario
|
||||
VALUES (N'IT', N'UDC_posizErrataAnime', N'Tipo cartellino/posizione errati: permesso solo scaricamento ANIME')
|
||||
go
|
||||
|
||||
commit transaction
|
||||
go
|
||||
|
||||
|
||||
|
||||
|
||||
INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(562, GETDATE())
|
||||
GO
|
||||
|
||||
SELECT TOP 10 * FROM LogUpdateDb ORDER BY Versione DESC
|
||||
@@ -4,7 +4,7 @@
|
||||
</configSections>
|
||||
<connectionStrings>
|
||||
<add name="GMW_data.Properties.Settings.GMWConnectionString"
|
||||
connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=TK_GMW;Persist Security Info=True;User ID=sa;Password=keyhammer"
|
||||
connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=TK_GMWTest;Persist Security Info=True;User ID=sa;Password=keyhammer"
|
||||
providerName="System.Data.SqlClient" />
|
||||
<add name="GMW_data.Properties.Settings.SP_produzioneConnectionString"
|
||||
connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=SP_produzione;Persist Security Info=True;User ID=sa;Password=keyhammer"
|
||||
|
||||
@@ -202,10 +202,12 @@
|
||||
</summary>
|
||||
<param name="Dominio"></param>
|
||||
<param name="UsrName"></param>
|
||||
<param name="matrOpr"></param>
|
||||
<param name="DeviceName"></param>
|
||||
<param name="Description"></param>
|
||||
<param name="IPv4"></param>
|
||||
<param name="cookieName"></param>
|
||||
<param name="expDate"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:SteamWare.authProxy.removeDeviceByDevSec(System.String)">
|
||||
@@ -1879,6 +1881,13 @@
|
||||
<param name="_nomeFile"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:SteamWare.fileMover.eliminaFile(System.IO.FileInfo)">
|
||||
<summary>
|
||||
elimina il file indicato dalla directory di lavoro
|
||||
</summary>
|
||||
<param name="_nomeFile"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:SteamWare.fileMover.scaricaFile(System.String)">
|
||||
<summary>
|
||||
restituisce lo stream del file richiesto
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
</configSections>
|
||||
<connectionStrings>
|
||||
<add name="GMW_data.Properties.Settings.GMWConnectionString"
|
||||
connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=TK_GMW;Persist Security Info=True;User ID=sa;Password=keyhammer"
|
||||
connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=TK_GMWTest;Persist Security Info=True;User ID=sa;Password=keyhammer"
|
||||
providerName="System.Data.SqlClient" />
|
||||
<add name="GMW_data.Properties.Settings.SP_produzioneConnectionString"
|
||||
connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=SP_produzione;Persist Security Info=True;User ID=sa;Password=keyhammer"
|
||||
|
||||
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -390,7 +390,7 @@ public class reportPrinter
|
||||
{
|
||||
if (_file.CreationTime < DateTime.Now.AddHours(-maxOre)) // elimino files vecchi...
|
||||
{
|
||||
fatto = fileMover.obj.eliminaFile(_file.Name);
|
||||
fatto = fileMover.obj.eliminaFile(_file);
|
||||
if (fatto)
|
||||
{
|
||||
logger.lg.scriviLog(String.Format("Eliminato file {0}", _file.Name), tipoLog.INFO);
|
||||
|
||||
Reference in New Issue
Block a user