Rifatti installer GMW.dllsistemato errore creazione liste prelievo

sistemate varie labels maltradotte

git-svn-id: https://keyhammer.ath.cx/svn/GMW/trunk@240 365432ac-a1b5-4ffd-bb28-6d3099d32164
This commit is contained in:
samuele
2010-09-14 14:08:09 +00:00
parent e484bfcca4
commit 48083ae89d
49 changed files with 1134 additions and 701 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
<table id="table1" runat="server" cellspacing="1" cellpadding="1" class="centerMenu">
<tr class="ctrHeaderPager">
<td>
<asp:Label id="lblScegli" runat="server" ></asp:Label>
<asp:Label id="lblScegli" runat="server" />
</td>
</tr>
<tr>
+1 -1
View File
@@ -1,5 +1,5 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_execCelle.ascx.cs" Inherits="GMW.WebUserControls.mod_execCelle" %>
<asp:Label runat="server" Text='<%# traduci("OpCelle") %>'></asp:Label>
<asp:Label runat="server" Text="" ID="lblTitolo" />
<table>
<tr>
<td>
+12 -1
View File
@@ -4,6 +4,7 @@ using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SteamWare;
namespace GMW.WebUserControls
{
@@ -11,7 +12,17 @@ namespace GMW.WebUserControls
{
protected void Page_Load(object sender, EventArgs e)
{
lblTitolo.Text = traduci("OpCelle");
}
/// <summary>
/// wrapper traduzione
/// </summary>
/// <param name="lemma"></param>
/// <returns></returns>
public string traduci(object lemma)
{
return user_std.UtSn.Traduci(lemma.ToString());
}
}
}
+9
View File
@@ -13,6 +13,15 @@ namespace GMW.WebUserControls {
public partial class mod_execCelle {
/// <summary>
/// lblTitolo 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 lblTitolo;
/// <summary>
/// Button1 control.
/// </summary>
+1 -1
View File
@@ -1,5 +1,5 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_execImballi.ascx.cs" Inherits="GMW.WebUserControls.mod_execImballi" %>
<asp:Label ID="Label1" runat="server" Text='<%# traduci("OpImballi") %>'></asp:Label>
<asp:Label ID="lblTitolo" runat="server" />
<table>
<tr>
<td>
@@ -4,6 +4,7 @@ using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SteamWare;
namespace GMW.WebUserControls
{
@@ -11,7 +12,16 @@ namespace GMW.WebUserControls
{
protected void Page_Load(object sender, EventArgs e)
{
lblTitolo.Text = traduci("OpImballi");
}
/// <summary>
/// wrapper traduzione
/// </summary>
/// <param name="lemma"></param>
/// <returns></returns>
public string traduci(object lemma)
{
return user_std.UtSn.Traduci(lemma.ToString());
}
}
}
+2 -2
View File
@@ -14,13 +14,13 @@ namespace GMW.WebUserControls {
public partial class mod_execImballi {
/// <summary>
/// Label1 control.
/// lblTitolo 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 Label1;
protected global::System.Web.UI.WebControls.Label lblTitolo;
/// <summary>
/// Button1 control.
@@ -1,5 +1,5 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_execOperatori.ascx.cs" Inherits="GMW.WebUserControls.mod_execOperatori" %>
<asp:Label ID="Label1" runat="server" Text='<%# traduci("OpOperatori") %>'></asp:Label>
<asp:Label ID="lblTitolo" runat="server" />
<table>
<tr>
<td>
@@ -4,6 +4,7 @@ using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SteamWare;
namespace GMW.WebUserControls
{
@@ -11,7 +12,16 @@ namespace GMW.WebUserControls
{
protected void Page_Load(object sender, EventArgs e)
{
lblTitolo.Text = traduci("OpOperatori");
}
/// <summary>
/// wrapper traduzione
/// </summary>
/// <param name="lemma"></param>
/// <returns></returns>
public string traduci(object lemma)
{
return user_std.UtSn.Traduci(lemma.ToString());
}
}
}
+2 -2
View File
@@ -14,13 +14,13 @@ namespace GMW.WebUserControls {
public partial class mod_execOperatori {
/// <summary>
/// Label1 control.
/// lblTitolo 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 Label1;
protected global::System.Web.UI.WebControls.Label lblTitolo;
/// <summary>
/// Button1 control.
+6 -6
View File
@@ -15,18 +15,18 @@
<Columns>
<asp:TemplateField HeaderText="Lingua" SortExpression="Lingua">
<EditItemTemplate>
<asp:Label ID="TextBox0" runat="server" Text='<%# Eval("Lingua") %>'></asp:Label>
<asp:Label ID="TextBox0" runat="server" Text='<%# Eval("Lingua") %>' />
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Bind("Lingua") %>'></asp:Label>
<asp:Label ID="Label1" runat="server" Text='<%# Bind("Lingua") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Lemma" SortExpression="Lemma" Visible="false">
<EditItemTemplate>
<asp:Label ID="TextBox2" runat="server" Text='<%# Eval("Lemma") %>'></asp:Label>
<asp:Label ID="TextBox2" runat="server" Text='<%# Eval("Lemma") %>' />
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label3" runat="server" Text='<%# Bind("Lemma") %>'></asp:Label>
<asp:Label ID="Label3" runat="server" Text='<%# Bind("Lemma") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Traduzione" SortExpression="Traduzione">
@@ -35,12 +35,12 @@
TextMode="MultiLine"></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label2" runat="server" Text='<%# Bind("Traduzione") %>'></asp:Label>
<asp:Label ID="Label2" runat="server" Text='<%# Bind("Traduzione") %>' />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:Label ID="lblNumRec" runat="server" CssClass="txtMini" ></asp:Label>
<asp:Label ID="lblNumRec" runat="server" CssClass="txtMini" />
<asp:ObjectDataSource ID="ods" runat="server" SelectMethod="getVocabolario" TypeName="selData"
OldValuesParameterFormatString="Original_{0}" FilterExpression="Lemma LIKE '%{0}%'">
+5 -5
View File
@@ -3,14 +3,14 @@
<table width="100%">
<tr>
<td colspan="2" class="chPwdTitle">
<asp:Label runat="server" ID="lblTitolo"></asp:Label>
<asp:Label runat="server" ID="lblTitolo" />
</td>
</tr>
</table>
<table class="smallTable">
<tr>
<td>
<asp:Label CssClass="chPwdTxt" runat="server" ID="lblPwd"></asp:Label>
<asp:Label CssClass="chPwdTxt" runat="server" ID="lblPwd" />
</td>
<td>
<asp:TextBox runat="server" ID="authKey" TextMode="Password" Width="210px"></asp:TextBox>
@@ -18,7 +18,7 @@
</tr>
<tr>
<td>
<asp:Label CssClass="chPwdTxt" runat="server" ID="lblDominio"></asp:Label>
<asp:Label CssClass="chPwdTxt" runat="server" ID="lblDominio" />
</td>
<td>
<asp:TextBox runat="server" ID="dominio" Width="210px"></asp:TextBox>
@@ -26,7 +26,7 @@
</tr>
<tr>
<td>
<asp:Label CssClass="chPwdTxt" runat="server" ID="lblUser"></asp:Label>
<asp:Label CssClass="chPwdTxt" runat="server" ID="lblUser" />
</td>
<td>
<asp:TextBox runat="server" ID="user" Width="210px"></asp:TextBox>
@@ -43,7 +43,7 @@
<table class="smallTable">
<tr>
<td colspan="2">
<asp:Label CssClass="chPwdTxt" ID="lblMessage" runat="server"></asp:Label>
<asp:Label CssClass="chPwdTxt" ID="lblMessage" runat="server" />
</td>
</tr>
<tr>
+2 -2
View File
@@ -1,4 +1,4 @@
<%@ Control Language="C#" AutoEventWireup="true"
Inherits="mod_menuBottom" Codebehind="mod_menuBottom.ascx.cs" %>
<asp:Label runat="server" ID="lblApp" Text="."></asp:Label><asp:Label ID="lblrev" runat="server"> - </asp:Label>
<asp:Label runat="server" ID="lblCopyRight" Text="..."></asp:Label>
<asp:Label runat="server" ID="lblApp" Text="." /><asp:Label ID="lblrev" runat="server"> - </asp:Label>
<asp:Label runat="server" ID="lblCopyRight" Text="..." />
@@ -1,4 +1,4 @@
<%@ Control Language="C#" AutoEventWireup="true" Inherits="mod_menuBottomMini" Codebehind="mod_menuBottomPortable.ascx.cs" %>
<asp:Label runat="server" ID="lblCopyRight" Text="..." CssClass="txtCopyright"></asp:Label><br />
<asp:Label runat="server" ID="lbl1" Text="for EnergyService" CssClass="txtFooter"></asp:Label>
<asp:Label runat="server" ID="lblCopyRight" Text="..." CssClass="txtCopyright" /><br />
<asp:Label runat="server" ID="lbl1" Text="for EnergyService" CssClass="txtFooter" />
@@ -4,28 +4,29 @@
<table>
<tr>
<td>
<asp:Label ID="lblTipo" runat="server" Text='<%# traduci("TipoLista") %>'></asp:Label>
<asp:Label ID="lblTipo" runat="server" Text='<%# traduci("TipoLista") %>' />
</td>
<td>
<asp:Label ID="lblParticolare" runat="server" Text='<%# traduci("Particolare") %>'></asp:Label>
<asp:Label ID="lblParticolare" runat="server" Text='<%# traduci("Particolare") %>' />
</td>
<td>
<asp:Label ID="lblEsponente" runat="server" Text='<%# traduci("Esponente") %>'></asp:Label>
<asp:Label ID="lblEsponente" runat="server" Text='<%# traduci("Esponente") %>' />
</td>
<td>
<asp:Label ID="lblFigura" runat="server" Text='<%# traduci("Figura") %>'></asp:Label>
<asp:Label ID="lblFigura" runat="server" Text='<%# traduci("Figura") %>' />
</td>
<td>
<asp:Label ID="lblQta" runat="server" Text='<%# traduci("Qta") %>'></asp:Label>
<asp:Label ID="lblQta" runat="server" Text='<%# traduci("Qta") %>' />
</td>
<td>
<asp:Label ID="lblImballo" runat="server" Text='<%# traduci("Imballo") %>'></asp:Label>
<asp:Label ID="lblImballo" runat="server" Text='<%# traduci("Imballo") %>' />
</td>
</tr>
<tr>
<td>
<asp:DropDownList ID="ddlTipoLista" runat="server" DataSourceID="odsTipoLista" DataTextField="label"
DataValueField="value">
DataValueField="value" AutoPostBack="True"
onselectedindexchanged="ddlTipoLista_SelectedIndexChanged">
</asp:DropDownList>
<asp:ObjectDataSource ID="odsTipoLista" runat="server" OldValuesParameterFormatString="original_{0}"
SelectMethod="GetData" TypeName="GMW_data.DS_UtilityTableAdapters.v_selTipoListaTableAdapter">
@@ -38,7 +39,8 @@
</td>
<td>
<asp:DropDownList ID="ddlEsponente" runat="server" DataSourceID="odsEsponente" DataTextField="Esponente"
DataValueField="Esponente">
DataValueField="Esponente" AutoPostBack="True"
onselectedindexchanged="ddlEsponente_SelectedIndexChanged">
</asp:DropDownList>
<asp:ObjectDataSource ID="odsEsponente" runat="server" OldValuesParameterFormatString="original_{0}"
SelectMethod="getEspByPart" TypeName="GMW_data.DS_magazzinoTableAdapters.v_particolariEsponenteFiguraTableAdapter">
@@ -50,7 +52,8 @@
</td>
<td>
<asp:DropDownList ID="ddlFigura" runat="server" DataSourceID="odsFigura" DataTextField="Figura"
DataValueField="Figura">
DataValueField="Figura" AutoPostBack="True"
onselectedindexchanged="ddlFigura_SelectedIndexChanged">
</asp:DropDownList>
<asp:ObjectDataSource ID="odsFigura" runat="server" OldValuesParameterFormatString="original_{0}"
SelectMethod="getFigByPart" TypeName="GMW_data.DS_magazzinoTableAdapters.v_particolariEsponenteFiguraTableAdapter">
@@ -65,7 +68,8 @@
</td>
<td>
<asp:DropDownList ID="ddlImballo" runat="server" DataSourceID="odsImballo" DataTextField="CodImballo"
DataValueField="CodImballo">
DataValueField="CodImballo" AutoPostBack="True"
onselectedindexchanged="ddlImballo_SelectedIndexChanged">
</asp:DropDownList>
<asp:ObjectDataSource ID="odsImballo" runat="server" OldValuesParameterFormatString="original_{0}"
SelectMethod="getImbByPart" TypeName="GMW_data.DS_magazzinoTableAdapters.v_particolariEsponenteFiguraTableAdapter">
@@ -78,12 +82,17 @@
</tr>
<tr>
<td colspan="6">
Destinatario
<asp:TextBox runat="server" ID="txtDestinatario" Width="40em" Text="" />
<%--<asp:RequiredFieldValidator ID="rfvDestinatario" runat="server" ErrorMessage="Richiesto!" Display="Dynamic" CssClass="errore_mid" ControlToValidate="txtDestinatario" />--%>
<asp:AutoCompleteExtender ID="aceDestinatario" runat="server" TargetControlID="txtDestinatario"
ServicePath="~/WS/AutoCompletamento.asmx" ServiceMethod="elencoDestListePrel" />
<asp:Button ID="btnCreaNuova" runat="server" OnClick="btnCreaNuova_Click" />
<div style="float: left;">
Destinatario
<asp:TextBox runat="server" ID="txtDestinatario" Width="30em" Text="" />
<%--<asp:RequiredFieldValidator ID="rfvDestinatario" runat="server" ErrorMessage="Richiesto!" Display="Dynamic" CssClass="errore_mid" ControlToValidate="txtDestinatario" />--%>
<asp:AutoCompleteExtender ID="aceDestinatario" runat="server" TargetControlID="txtDestinatario"
ServicePath="~/WS/AutoCompletamento.asmx" ServiceMethod="elencoDestListePrel" />
</div>
<div style="float: right;">
<asp:Label runat="server" ID="lblTotPz" />
<asp:Button ID="btnCreaNuova" runat="server" OnClick="btnCreaNuova_Click" Visible="false" />
</div>
</td>
</tr>
</table>
@@ -55,9 +55,29 @@ namespace GMW.WebUserControls
{
checkParticolare();
}
/// <summary>
/// controlla il particolare se sia valido
/// </summary>
private void checkParticolare()
{
// calcolo ed aggiorno conteggio pezzi disponibili...
int numPezziDisp = 0;
try
{
string codEsponente = ddlEsponente.SelectedValue;
if (codEsponente == "") codEsponente = "*";
string codFigura = ddlFigura.SelectedValue;
if (codFigura == "") codFigura = "*";
string codImballo = ddlImballo.SelectedValue;
if (codImballo == "") codImballo = "*";
string codTipoLista = ddlTipoLista.SelectedValue;
numPezziDisp = MagClass.magazzino.numUdcDaPart(memLayer.ML.confReadString("CodCS"), txtParticolare.Text.Trim(), codEsponente, codFigura, codImballo, codTipoLista);
lblTotPz.Text = string.Format("{0} UDC ", numPezziDisp);
}
catch (Exception e)
{
logger.lg.scriviLog(string.Format("Eccezione in verifica pezzi disponibili per il particolare {0}: eccezione {1}", txtParticolare.Text.Trim(), e), tipoLog.EXCEPTION);
}
// controllo se cod particoalre è valido...
if (particolareOk(txtParticolare.Text.Trim()))
{
@@ -66,7 +86,15 @@ namespace GMW.WebUserControls
ddlFigura.Visible = true;
txtQta.Visible = true;
ddlImballo.Visible = true;
btnCreaNuova.Visible = true;
// verifico
if (numPezziDisp > 0)
{
btnCreaNuova.Visible = true;
}
else
{
btnCreaNuova.Visible = false;
}
}
else
{
@@ -100,7 +128,7 @@ namespace GMW.WebUserControls
}
catch
{ }
if (qta > 0 && destinatario!="")
if (qta > 0 && destinatario != "")
{
MagClass.magazzino.creaListaPrelievo(memLayer.ML.confReadString("CodCS"), ddlTipoLista.SelectedValue, txtParticolare.Text.Trim(), ddlEsponente.SelectedValue, ddlFigura.SelectedValue, qta, ddlImballo.SelectedValue, destinatario);
// sollevo evento nuovo valore...
@@ -130,5 +158,25 @@ namespace GMW.WebUserControls
}
}
protected void ddlTipoLista_SelectedIndexChanged(object sender, EventArgs e)
{
checkParticolare();
}
protected void ddlEsponente_SelectedIndexChanged(object sender, EventArgs e)
{
checkParticolare();
}
protected void ddlFigura_SelectedIndexChanged(object sender, EventArgs e)
{
checkParticolare();
}
protected void ddlImballo_SelectedIndexChanged(object sender, EventArgs e)
{
checkParticolare();
}
}
}
@@ -184,6 +184,15 @@ namespace GMW.WebUserControls {
/// </remarks>
protected global::AjaxControlToolkit.AutoCompleteExtender aceDestinatario;
/// <summary>
/// lblTotPz 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 lblTotPz;
/// <summary>
/// btnCreaNuova control.
/// </summary>
@@ -4,7 +4,7 @@
<table cellpadding="0" cellspacing="0">
<tr>
<td>
<asp:Label ID="lblTitolo" runat="server"></asp:Label>
<asp:Label ID="lblTitolo" runat="server" />
</td>
<td>
&nbsp;
@@ -3,7 +3,7 @@
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<div>
<div style="float: left; padding-right:4px;">
<asp:Label ID="lblPeriodo" runat="server"></asp:Label>
<asp:Label ID="lblPeriodo" runat="server" />
</div>
<div style="float: left; padding-right:4px;">
<asp:TextBox ID="txtInizio" TabIndex="1" runat="server" Width="6em" MaxLength="10"
@@ -22,7 +22,7 @@
<table cellpadding="2" cellspacing="0" width="100%">
<tr>
<td>
<asp:Label ID="lblCerca" runat="server"></asp:Label>
<asp:Label ID="lblCerca" runat="server" />
&nbsp;
<asp:TextBox ID="txtCerca" runat="server" OnTextChanged="txtCerca_TextChanged" AutoPostBack="true" TabIndex="-1"></asp:TextBox>
&nbsp;
@@ -62,7 +62,7 @@
<asp:BoundField DataField="label" HeaderText="label" SortExpression="label" HtmlEncode="false" />
</Columns>
</asp:GridView>
<asp:Label ID="lblNumRec" runat="server" CssClass="txtMini"></asp:Label>&nbsp;&nbsp;
<asp:Label ID="lblNumRec" runat="server" CssClass="txtMini" />&nbsp;&nbsp;
<asp:ObjectDataSource ID="ods" runat="server" SelectMethod="getSelUdcByPart" TypeName="selData"
FilterExpression=" (label LIKE '%{0}%') "
OldValuesParameterFormatString="original_{0}">
+3 -3
View File
@@ -48,13 +48,13 @@
</asp:TemplateField>
<asp:TemplateField HeaderText="#">
<EditItemTemplate>
<asp:Label ID="lblIdxTipoCella" runat="server" Text='<%# Eval("IdxTipoCella","[{0}]") %>'></asp:Label>
<asp:Label ID="lblIdxTipoCella" runat="server" Text='<%# Eval("IdxTipoCella","[{0}]") %>' />
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="lblIdxTipoCella" runat="server" Text='<%# Eval("IdxTipoCella","[{0}]") %>'></asp:Label>
<asp:Label ID="lblIdxTipoCella" runat="server" Text='<%# Eval("IdxTipoCella","[{0}]") %>' />
</ItemTemplate>
<FooterTemplate>
<asp:Label ID="lblIdxTipoCella" runat="server" Text='<%# Eval("IdxTipoCella","[{0}]") %>'></asp:Label>
<asp:Label ID="lblIdxTipoCella" runat="server" Text='<%# Eval("IdxTipoCella","[{0}]") %>' />
</FooterTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Quantita" SortExpression="Quantita">
@@ -2,7 +2,7 @@
<table id="Table7" cellspacing="1" cellpadding="1" width="100%" border="0">
<tr>
<td class="UnauthAppTitle">
<asp:Label runat="server" ID="lblTitleMain" Text="Gruppo MM"></asp:Label>
<asp:Label runat="server" ID="lblTitleMain" Text="Gruppo MM" />
</td>
</tr>
<tr>
@@ -42,7 +42,7 @@
valore='<%# Bind("UDC") %>' />
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Eval("UDC") %>'></asp:Label>
<asp:Label ID="Label1" runat="server" Text='<%# Eval("UDC") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="CodCella" HeaderText="CodCella" ReadOnly="True" SortExpression="CodCella" />
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -186,7 +186,7 @@ namespace GMW_Term.WebUserControls
{
// salvo in session UDC selezionato
memLayer.ML.setSessionVal("UDC_sel", valoreScan, false);
memLayer.ML.setSessionVal("activeTask", string.Format("UDC: {0}", memLayer.ML.StringSessionObj("scannedValue")));
memLayer.ML.setSessionVal("activeTask", string.Format("UDC: {0}", valoreScan));
if (eh_scannedUdc != null)
{
eh_scannedUdc(this, new EventArgs());
@@ -207,9 +207,11 @@ namespace GMW_Term.WebUserControls
bool barcodeOk = MagClass.magazzino.checkCella(valoreScan);
if (barcodeOk)
{
// salvo in session UDC selezionato
memLayer.ML.setSessionVal("IdxCella_sel", txtScansione);
memLayer.ML.setSessionVal("activeTask", string.Format("Cella: {0}", memLayer.ML.StringSessionObj("scannedValue")));
// calcolo idxCella
int idxCella = MagClass.magazzino.IdxCellaByCodCella(memLayer.ML.StringSessionObj("CodCS"), valoreScan);
// salvo in session idxCella selezionata
memLayer.ML.setSessionVal("IdxCella_sel", idxCella);
memLayer.ML.setSessionVal("activeTask", string.Format("Cella: {0}", valoreScan));
if (eh_scannedCella != null)
{
eh_scannedCella(this, new EventArgs());
@@ -230,9 +232,9 @@ namespace GMW_Term.WebUserControls
bool barcodeOk = MagClass.magazzino.checkParticolare(memLayer.ML.StringSessionObj("CodCS"), valoreScan);
if (barcodeOk)
{
// salvo in session UDC selezionato
// salvo in session particolare selezionato
memLayer.ML.setSessionVal("Particolare_sel", txtScansione);
memLayer.ML.setSessionVal("activeTask", string.Format("Particolare: {0}", memLayer.ML.StringSessionObj("scannedValue")));
memLayer.ML.setSessionVal("activeTask", string.Format("Particolare: {0}", valoreScan));
if (eh_scannedParticolare != null)
{
eh_scannedParticolare(this, new EventArgs());
@@ -2,6 +2,8 @@
Inherits="GMW_Term.WebUserControls.mod_execCella" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<div id="contenuto" style="text-align: center;">
<div id="InputTitle">
<asp:Label ID="lblTitle" runat="server" Text="Celle magazzino" /></div>
<div id="Div1">
<asp:Button ID="btnLoginPage" runat="server" OnClick="btnLoginPage_Click" Width="100px"
Font-Size="Smaller" />
@@ -13,6 +13,15 @@ namespace GMW_Term.WebUserControls {
public partial class mod_execCella {
/// <summary>
/// lblTitle 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 lblTitle;
/// <summary>
/// btnLoginPage control.
/// </summary>
@@ -2,6 +2,8 @@
Inherits="GMW_Term.WebUserControls.mod_execParticolare" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<div id="contenuto" style="text-align: center;">
<div id="InputTitle">
<asp:Label ID="lblTitle" runat="server" Text="Particolari" /></div>
<div id="Div1">
<asp:Button ID="btnLoginPage" runat="server" OnClick="btnLoginPage_Click" Width="100px"
Font-Size="Smaller" />
@@ -48,8 +50,10 @@
<asp:Label ID="lblEsponente" runat="server" Text='<%# Eval("Esponente") %>' />
</b>
<div style="font-size: x-small;">
UDC:<asp:Label ID="lblDesc" runat="server" Text='<%# Eval("NumUdc") %>' /> -
<asp:Label ID="Label1" runat="server" Text='<%# Eval("QtaTotPz") %>' /> pz.
UDC:<asp:Label ID="lblDesc" runat="server" Text='<%# Eval("NumUdc") %>' />
-
<asp:Label ID="Label1" runat="server" Text='<%# Eval("QtaTotPz") %>' />
pz.
</div>
</ItemTemplate>
</asp:TemplateField>
@@ -13,6 +13,15 @@ namespace GMW_Term.WebUserControls {
public partial class mod_execParticolare {
/// <summary>
/// lblTitle 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 lblTitle;
/// <summary>
/// btnLoginPage control.
/// </summary>
+22 -22
View File
@@ -5,35 +5,35 @@
OnModeChanged="frmView_ModeChanged">
<EditItemTemplate>
<div>
<asp:Label ID="UDCTitle" runat="server" Text='<%# traduci("UDC") + ": " %>'></asp:Label>
UDC:
<asp:Label ID="UDCLabel" runat="server" Text='<%# Eval("UDC") %>' />
<br />
<asp:Label ID="PartTitle" runat="server" Text='<%# traduci("Particolare") + ": " %>'></asp:Label>
Particolare:
<asp:Label ID="ParticolareLabel" runat="server" Text='<%# Bind("Particolare") %>' />
<br />
<asp:Label ID="DescParticolareLabel" runat="server" Text='<%# Bind("DescParticolare") %>' />
<asp:Label ID="DisTitle" runat="server" Text='<%# traduci("DisegnoGrezzo") + ": " %>'></asp:Label>
DisegnoGrezzo:
<asp:Label ID="DisegnoGrezzoLabel" runat="server" Text='<%# Bind("DisegnoGrezzo") %>' />
<br />
<asp:Label ID="EsponenteTitle" runat="server" Text='<%# traduci("Esponente") + ": " %>'></asp:Label>
Esponente:
<asp:Label ID="EsponenteLabel" runat="server" Text='<%# Bind("Esponente") %>' />
<br />
<asp:Label ID="QtaTitle" runat="server" Text='<%# traduci("Qta") + ": " %>'></asp:Label>
Qta:
<asp:TextBox ID="txtQta" runat="server" Text='<%# Bind("Qta") %>' Width="4em" />
<br />
<asp:Label ID="CodMagTitle" runat="server" Text='<%# traduci("CodMag") + ": " %>'></asp:Label>
CodMag:
<asp:Label ID="CodMagLabel" runat="server" Text='<%# Bind("CodMag") %>' />
<asp:Label ID="CodBloccoTitle" runat="server" Text='<%# traduci("CodBlocco") + ": " %>'></asp:Label>
CodBlocco:
<asp:Label ID="CodBloccoLabel" runat="server" Text='<%# Bind("CodBlocco") %>' />
<br />
<asp:Label ID="CodCellaTitle" runat="server" Text='<%# traduci("CodCella") + ": " %>'></asp:Label>
CodCella:
<asp:Label ID="CodCellaLabel" runat="server" Text='<%# Bind("CodCella") %>' />
<br />
<asp:Label ID="XTitle" runat="server" Text="Label">X:</asp:Label>
X:
<asp:Label ID="XLabel" runat="server" Text='<%# Bind("X") %>' />
<asp:Label ID="YTitle" runat="server" Text="Label">Y:</asp:Label>
Y:
<asp:Label ID="YLabel" runat="server" Text='<%# Bind("Y") %>' />
<asp:Label ID="ZTitle" runat="server" Text="Label">Z:</asp:Label>
Z:
<asp:Label ID="ZLabel" runat="server" Text='<%# Bind("Z") %>' />
</div>
<br />
@@ -45,34 +45,34 @@
</EditItemTemplate>
<ItemTemplate>
<div>
<asp:Label ID="UDCTitle2" runat="server" Text='<%# traduci("UDC") + ": " %>'></asp:Label>
UDC:
<asp:Label ID="UDCLabel" runat="server" Text='<%# Eval("UDC") %>' />
<br />
<asp:Label ID="PartTitle2" runat="server" Text='<%# traduci("Particolare") + ": " %>'></asp:Label>
Particolare:
<asp:Label ID="ParticolareLabel" runat="server" Text='<%# Bind("Particolare") %>' />
<br />
<asp:Label ID="DescParticolareLabel" runat="server" Text='<%# Bind("DescParticolare") %>' />
<asp:Label ID="DisegnoTitle2" runat="server" Text='<%# traduci("DisegnoGrezzo") + ": " %>'></asp:Label>
DisegnoGrezzo:
<asp:Label ID="DisegnoGrezzoLabel" runat="server" Text='<%# Bind("DisegnoGrezzo") %>' />
<br />
<asp:Label ID="EsponenteTitle2" runat="server" Text='<%# traduci("Esponente") + ": " %>'></asp:Label>
Esponente:
<asp:Label ID="EsponenteLabel" runat="server" Text='<%# Bind("Esponente") %>' />
<br />
<asp:Label ID="QtaTitle2" runat="server" Text='<%# traduci("Qta") + ": " %>'></asp:Label>
Qta:
<asp:Label ID="QtaLabel" runat="server" Text='<%# Bind("Qta") %>' />
<br />
<asp:Label ID="CodMagTitle2" runat="server" Text='<%# traduci("CodMag") + ": " %>'></asp:Label>
CodMag:
<asp:Label ID="CodMagLabel" runat="server" Text='<%# Bind("CodMag") %>' />
<asp:Label ID="CodBloccoTitle2" runat="server" Text='<%# traduci("CodBlocco") + ": " %>'></asp:Label>
CodBlocco:
<asp:Label ID="CodBloccoLabel" runat="server" Text='<%# Bind("CodBlocco") %>' /><br />
<asp:Label ID="CodCellaTitle2" runat="server" Text='<%# traduci("CodCella") + ": " %>'></asp:Label>
CodCella:
<asp:Label ID="CodCellaLabel" runat="server" Text='<%# Bind("CodCella") %>' />
<br />
<asp:Label ID="XTitle2" runat="server" Text="Label">X:</asp:Label>
X:
<asp:Label ID="XLabel" runat="server" Text='<%# Bind("X") %>' />
<asp:Label ID="YTitle2" runat="server" Text="Label">Y:</asp:Label>
Y:
<asp:Label ID="YLabel" runat="server" Text='<%# Bind("Y") %>' />
<asp:Label ID="ZTitle2" runat="server" Text="Label">Z:</asp:Label>
Z:
<asp:Label ID="ZLabel" runat="server" Text='<%# Bind("Z") %>' />
</div>
</ItemTemplate>
Binary file not shown.
Binary file not shown.
+121 -14
View File
@@ -12143,7 +12143,7 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void InitCommandCollection() {
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[6];
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[7];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = @"SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, DisegnoGrezzo, Esponente, CodImpianto, DescImpianto, CodStampo, Figura, DataFus, TurnoFus, CodImballo, CodSoggetto, NumCont, Tara, Qta, CodStato, IdxPosizione, PesoTot, PesoCad, CreateDate, ModDate FROM dbo.ElencoCartellini";
@@ -12178,14 +12178,24 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
this._commandCollection[4].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[5] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[5].Connection = this.Connection;
this._commandCollection[5].CommandText = "dbo.stp_UDC_updateQty";
this._commandCollection[5].CommandText = "dbo.stp_UDC_updateIdxPosizione";
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, 20, 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("@CodSoggetto", global::System.Data.SqlDbType.VarChar, 16, 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("@CodTipoDichiaraz", global::System.Data.SqlDbType.Char, 1, 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("@CodEvento", global::System.Data.SqlDbType.VarChar, 10, 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("@Qta", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 10, 2, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxPosizione", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 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_UDC_updateQty";
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("@UDC", global::System.Data.SqlDbType.VarChar, 20, 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("@CodSoggetto", global::System.Data.SqlDbType.VarChar, 16, 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("@CodTipoDichiaraz", global::System.Data.SqlDbType.Char, 1, 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("@CodEvento", global::System.Data.SqlDbType.VarChar, 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("@Qta", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 10, 2, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -12301,7 +12311,7 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual DS_magazzino.ElencoCartelliniDataTable updateQty(string UDC, string CodSoggetto, string CodTipoDichiaraz, string CodEvento, global::System.Nullable<decimal> Qta) {
public virtual DS_magazzino.ElencoCartelliniDataTable updateIdxPosizione(string UDC, string CodSoggetto, string CodTipoDichiaraz, string CodEvento, global::System.Nullable<int> IdxPosizione) {
this.Adapter.SelectCommand = this.CommandCollection[5];
if ((UDC == null)) {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
@@ -12327,6 +12337,46 @@ SELECT UDC, CodCS, CodCliente, RagSociale, Particolare, DescParticolare, Disegno
else {
this.Adapter.SelectCommand.Parameters[4].Value = ((string)(CodEvento));
}
if ((IdxPosizione.HasValue == true)) {
this.Adapter.SelectCommand.Parameters[5].Value = ((int)(IdxPosizione.Value));
}
else {
this.Adapter.SelectCommand.Parameters[5].Value = global::System.DBNull.Value;
}
DS_magazzino.ElencoCartelliniDataTable dataTable = new DS_magazzino.ElencoCartelliniDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual DS_magazzino.ElencoCartelliniDataTable updateQty(string UDC, string CodSoggetto, string CodTipoDichiaraz, string CodEvento, global::System.Nullable<decimal> Qta) {
this.Adapter.SelectCommand = this.CommandCollection[6];
if ((UDC == null)) {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(UDC));
}
if ((CodSoggetto == null)) {
this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[2].Value = ((string)(CodSoggetto));
}
if ((CodTipoDichiaraz == null)) {
this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[3].Value = ((string)(CodTipoDichiaraz));
}
if ((CodEvento == null)) {
this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[4].Value = ((string)(CodEvento));
}
if ((Qta.HasValue == true)) {
this.Adapter.SelectCommand.Parameters[5].Value = ((decimal)(Qta.Value));
}
@@ -17920,7 +17970,7 @@ SELECT CodImballo, ClasseArticolo, DescImballo FROM RilPro.AnagImballi WHERE (Co
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void InitCommandCollection() {
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[4];
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[5];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT Particolare, DescParticolare, NumUDC, TotQta, NumInMag FROM dbo.V_Particol" +
@@ -17928,25 +17978,36 @@ SELECT CodImballo, ClasseArticolo, DescImballo FROM RilPro.AnagImballi WHERE (Co
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_ParticolariOverviewLikePrefix";
this._commandCollection[1].CommandText = "dbo.stp_ParticolariOverviewPerListaPrelievo";
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("@searchVal", 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("@Particolare", 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("@CodCS", global::System.Data.SqlDbType.VarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Esponente", global::System.Data.SqlDbType.NVarChar, 6, 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("@Figura", global::System.Data.SqlDbType.NVarChar, 4, 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("@CodImballo", global::System.Data.SqlDbType.NVarChar, 15, 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("@CodTipoLista", global::System.Data.SqlDbType.NVarChar, 10, 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_ParticolariOverviewLike";
this._commandCollection[2].CommandText = "dbo.stp_ParticolariOverviewLikePrefix";
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("@searchVal", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", global::System.Data.SqlDbType.VarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[3].Connection = this.Connection;
this._commandCollection[3].CommandText = "dbo.stp_ParticolariOverview";
this._commandCollection[3].CommandText = "dbo.stp_ParticolariOverviewLike";
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("@searchVal", global::System.Data.SqlDbType.VarChar, 50, 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("@CodCS", global::System.Data.SqlDbType.VarChar, 2, 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_ParticolariOverview";
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("@searchVal", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCS", global::System.Data.SqlDbType.VarChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -17974,13 +18035,13 @@ SELECT CodImballo, ClasseArticolo, DescImballo FROM RilPro.AnagImballi WHERE (Co
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual DS_magazzino.V_ParticolariOverviewDataTable getByLikePrefix(string searchVal, string CodCS) {
public virtual DS_magazzino.V_ParticolariOverviewDataTable getByDatiListaPrelievo(string Particolare, string CodCS, string Esponente, string Figura, string CodImballo, string CodTipoLista) {
this.Adapter.SelectCommand = this.CommandCollection[1];
if ((searchVal == null)) {
if ((Particolare == null)) {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(searchVal));
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(Particolare));
}
if ((CodCS == null)) {
this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
@@ -17988,6 +18049,30 @@ SELECT CodImballo, ClasseArticolo, DescImballo FROM RilPro.AnagImballi WHERE (Co
else {
this.Adapter.SelectCommand.Parameters[2].Value = ((string)(CodCS));
}
if ((Esponente == null)) {
this.Adapter.SelectCommand.Parameters[3].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[3].Value = ((string)(Esponente));
}
if ((Figura == null)) {
this.Adapter.SelectCommand.Parameters[4].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[4].Value = ((string)(Figura));
}
if ((CodImballo == null)) {
this.Adapter.SelectCommand.Parameters[5].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[5].Value = ((string)(CodImballo));
}
if ((CodTipoLista == null)) {
this.Adapter.SelectCommand.Parameters[6].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[6].Value = ((string)(CodTipoLista));
}
DS_magazzino.V_ParticolariOverviewDataTable dataTable = new DS_magazzino.V_ParticolariOverviewDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
@@ -17996,7 +18081,7 @@ SELECT CodImballo, ClasseArticolo, DescImballo FROM RilPro.AnagImballi WHERE (Co
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual DS_magazzino.V_ParticolariOverviewDataTable getByLikeSearch(string searchVal, string CodCS) {
public virtual DS_magazzino.V_ParticolariOverviewDataTable getByLikePrefix(string searchVal, string CodCS) {
this.Adapter.SelectCommand = this.CommandCollection[2];
if ((searchVal == null)) {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
@@ -18018,7 +18103,7 @@ SELECT CodImballo, ClasseArticolo, DescImballo FROM RilPro.AnagImballi WHERE (Co
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual DS_magazzino.V_ParticolariOverviewDataTable getByParticolareFull(string searchVal, string CodCS) {
public virtual DS_magazzino.V_ParticolariOverviewDataTable getByLikeSearch(string searchVal, string CodCS) {
this.Adapter.SelectCommand = this.CommandCollection[3];
if ((searchVal == null)) {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
@@ -18036,6 +18121,28 @@ SELECT CodImballo, ClasseArticolo, DescImballo FROM RilPro.AnagImballi WHERE (Co
this.Adapter.Fill(dataTable);
return dataTable;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual DS_magazzino.V_ParticolariOverviewDataTable getByParticolareFull(string searchVal, string CodCS) {
this.Adapter.SelectCommand = this.CommandCollection[4];
if ((searchVal == null)) {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(searchVal));
}
if ((CodCS == null)) {
this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[2].Value = ((string)(CodCS));
}
DS_magazzino.V_ParticolariOverviewDataTable dataTable = new DS_magazzino.V_ParticolariOverviewDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
}
}
/// <summary>
File diff suppressed because it is too large Load Diff
+22 -22
View File
@@ -4,27 +4,27 @@
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="692" 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="-10" ViewPortY="-12" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes>
<Shape ID="DesignTable:ElencoCartellini" ZOrder="17" X="68" Y="333" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:ElencoCartellini" ZOrder="18" X="68" Y="333" Height="438" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="275" />
<Shape ID="DesignTable:AnagMag" ZOrder="29" X="1014" Y="372" Height="190" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="75" />
<Shape ID="DesignTable:PosizioneUdcCorrente" ZOrder="4" X="409" Y="544" Height="265" Width="252" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:PosizioneUdcCorrente" ZOrder="5" X="409" Y="544" Height="265" Width="252" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:PosizioneUdcStorico" ZOrder="27" X="412" Y="310" Height="168" Width="257" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
<Shape ID="DesignTable:Blocchi" ZOrder="22" X="1014" Y="652" Height="325" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="181" />
<Shape ID="DesignTable:Celle" ZOrder="9" X="712" Y="420" Height="438" Width="242" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="235" />
<Shape ID="DesignTable:TipoCella" ZOrder="11" X="1008" Y="-2" Height="343" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="216" />
<Shape ID="DesignTable:v_UdcDetail" ZOrder="10" X="693" Y="9" Height="381" Width="212" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:Celle" ZOrder="10" X="712" Y="420" Height="438" Width="242" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="235" />
<Shape ID="DesignTable:TipoCella" ZOrder="12" X="1008" Y="-2" Height="343" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="216" />
<Shape ID="DesignTable:v_UdcDetail" ZOrder="11" X="693" Y="9" Height="381" Width="212" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:AnagImballi" ZOrder="21" X="93" Y="43" Height="156" Width="211" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="75" />
<Shape ID="DesignTable:V_ParticolariOverview" ZOrder="20" X="95" Y="1131" Height="229" Width="272" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
<Shape ID="DesignTable:V_MagazziniOverview" ZOrder="13" X="733" Y="1102" Height="286" Width="232" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" />
<Shape ID="DesignTable:V_DettMagPart" ZOrder="19" X="1030" Y="1008" Height="362" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:TipoListaPrelievo" ZOrder="6" X="735" Y="891" Height="172" Width="224" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:RigheListePrelievo" ZOrder="1" X="83" Y="846" Height="257" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="130" />
<Shape ID="DesignTable:ElencoListePrelievo" ZOrder="2" X="430" Y="879" Height="400" Width="263" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:v_righeListePrelievoPosizione" ZOrder="3" X="400" Y="1301" Height="343" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="235" />
<Shape ID="DesignTable:v_particolariEsponenteFigura" ZOrder="14" X="829" Y="1437" Height="229" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
<Shape ID="DesignTable:AnagPosizioni" ZOrder="8" X="375" Y="103" Height="115" Width="227" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:V_statoCelleCapienzaAssegnati" ZOrder="5" X="111" Y="1437" Height="229" Width="225" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
<Shape ID="DesignTable:V_ParticolariOverview" ZOrder="1" X="95" Y="1131" Height="248" Width="265" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
<Shape ID="DesignTable:V_MagazziniOverview" ZOrder="14" X="733" Y="1102" Height="286" Width="232" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" />
<Shape ID="DesignTable:V_DettMagPart" ZOrder="20" X="1030" Y="1008" Height="362" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:TipoListaPrelievo" ZOrder="7" X="735" Y="891" Height="172" Width="224" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:RigheListePrelievo" ZOrder="2" X="83" Y="846" Height="257" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="130" />
<Shape ID="DesignTable:ElencoListePrelievo" ZOrder="3" X="430" Y="879" Height="400" Width="263" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:v_righeListePrelievoPosizione" ZOrder="4" X="400" Y="1301" Height="343" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="235" />
<Shape ID="DesignTable:v_particolariEsponenteFigura" ZOrder="15" X="829" Y="1437" Height="229" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
<Shape ID="DesignTable:AnagPosizioni" ZOrder="9" X="375" Y="103" Height="115" Width="227" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:V_statoCelleCapienzaAssegnati" ZOrder="6" X="111" Y="1437" Height="229" Width="225" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
</Shapes>
<Connectors>
<Connector ID="DesignRelation:FK_PosizioneUdcCorrente_ElencoCartellini" ZOrder="28" LineWidth="11">
@@ -63,7 +63,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_PosizioneUdcCorrente_Celle" ZOrder="12" LineWidth="11">
<Connector ID="DesignRelation:FK_PosizioneUdcCorrente_Celle" ZOrder="13" LineWidth="11">
<RoutePoints>
<Point>
<X>712</X>
@@ -99,11 +99,11 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_RigheListePrelievo_ElencoCartellini" ZOrder="18" LineWidth="11">
<Connector ID="DesignRelation:FK_RigheListePrelievo_ElencoCartellini" ZOrder="19" LineWidth="11">
<RoutePoints>
<Point>
<X>133</X>
<Y>714</Y>
<Y>771</Y>
</Point>
<Point>
<X>133</X>
@@ -111,7 +111,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_RigheListePrelievo_ElencoListePrelievo11" ZOrder="16" LineWidth="11">
<Connector ID="DesignRelation:FK_RigheListePrelievo_ElencoListePrelievo11" ZOrder="17" LineWidth="11">
<RoutePoints>
<Point>
<X>430</X>
@@ -123,7 +123,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_ElencoListePrelievo_TipoListaPrelievo11" ZOrder="15" LineWidth="11">
<Connector ID="DesignRelation:FK_ElencoListePrelievo_TipoListaPrelievo11" ZOrder="16" LineWidth="11">
<RoutePoints>
<Point>
<X>735</X>
@@ -135,7 +135,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_ElencoCartellini_AnagPosizioni" ZOrder="7" LineWidth="11">
<Connector ID="DesignRelation:FK_ElencoCartellini_AnagPosizioni" ZOrder="8" LineWidth="11">
<RoutePoints>
<Point>
<X>392</X>
+3
View File
@@ -160,6 +160,7 @@
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<None Include="SqlScripts\GMW_00235.sql" />
<None Include="SqlScripts\GMW_00220.sql" />
<None Include="SqlScripts\GMW_00215.sql" />
<None Include="SqlScripts\GMW_00051.sql" />
@@ -178,6 +179,8 @@
<None Include="SqlScripts\GMW_00110.sql" />
<None Include="SqlScripts\GMW_00160.sql" />
<None Include="SqlScripts\GMW_00200.sql" />
<None Include="SqlScripts\GMW_00225.sql" />
<None Include="SqlScripts\GMW_00230.sql" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+31 -14
View File
@@ -187,6 +187,15 @@ namespace GMW_data
}
catch
{ }
try
{
// cambio (eventualmente) la posizione "logica" dato lo spostamento (il codice magazzino...)
int idxBlocco = taCelle.getByIdxCella(IdxCellaTo)[0].IdxBlocco;
int idxPosizione = Convert.ToInt32(taBlocchi.getByIdx(idxBlocco)[0].CodMag);
taCartellini.updateIdxPosizione(UDC, CodSoggCurrUser, "U", "UDC_POS", idxPosizione);
}
catch
{ }
return answ;
}
/// <summary>
@@ -199,19 +208,7 @@ namespace GMW_data
/// <returns>esito comando</returns>
public bool spostaUDC(string CodCS, string UDC, int IdxCellaFrom, int IdxCellaTo)
{
bool answ = false;
try
{
taPosUdcCorr.stp_spostaUdc(CodCS, UDC, IdxCellaTo);
// cerco nuova posizione...
if (taPosUdcCorr.getByCellaUdc(UDC, IdxCellaTo).Rows.Count > 0)
{
answ = true;
}
}
catch
{ }
return answ;
return caricaUDC(CodCS, UDC, IdxCellaTo);
}
/// <summary>
/// effettua lo scaricamento di un UDC (x spedizione)
@@ -474,7 +471,27 @@ namespace GMW_data
{ }
return answ;
}
/// <summary>
/// restituisce il num di UDC che corrispondono alla richiesta indicata
/// </summary>
/// <param name="CodCS"></param>
/// <param name="Particolare"></param>
/// <param name="codEsponente"></param>
/// <param name="codFigura"></param>
/// <param name="codImballo"></param>
/// <param name="codTipoLista"></param>
/// <returns></returns>
public int numUdcDaPart(string CodCS, string Particolare, string codEsponente, string codFigura, string codImballo, string codTipoLista)
{
int answ = 0;
try
{
answ = taVParticolariOverwiew.getByDatiListaPrelievo(Particolare, CodCS, codEsponente, codFigura, codImballo, codTipoLista)[0].NumUDC;
}
catch
{ }
return answ;
}
#endregion
+143
View File
@@ -0,0 +1,143 @@
-- update verisoni non inserito
-- registro versione...
INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(225, GETDATE())
GO
-- registro versione...
INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(230, GETDATE())
GO
set xact_abort on
go
begin transaction
go
set ANSI_NULLS on
go
/***************************************
* STORED stp_ParticolariOverviewPerListaPrelievo
*
* elenco di overview sull'impiego dei particolari (dettaglio a "maglie larghe") x una possibile lista di prelievo
*
* Steamware, S.E.L.
* mod: 2010.05.31
*
****************************************/
create PROCEDURE stp_ParticolariOverviewPerListaPrelievo
(
@Particolare VARCHAR(50),
@CodCS VARCHAR(2),
@Esponente NVARCHAR(6),
@Figura NVARCHAR(4),
@CodImballo NVARCHAR(15),
@CodTipoLista NVARCHAR (10)
)
AS
DECLARE @IdxPosizione AS INT
SET @IdxPosizione = (SELECT tt.IdxPosizione
FROM TipoListaPrelievo tlp INNER JOIN TabTranPosizEventi tt ON tlp.CodEvento = tt.CodEvento
WHERE (tlp.CodTipoLista = @CodTipoLista))
SELECT RilPro.AnagParticolari.Particolare, RilPro.AnagParticolari.DescParticolare, ISNULL(COUNT(dbo.ElencoCartellini.UDC), 0) AS NumUDC,
ISNULL(SUM(dbo.ElencoCartellini.Qta), 0) AS TotQta, ISNULL(COUNT(dbo.PosizioneUdcCorrente.IdxCella), 0) AS NumInMag
FROM RilPro.AnagParticolari LEFT OUTER JOIN
dbo.ElencoCartellini ON RilPro.AnagParticolari.Particolare = dbo.ElencoCartellini.Particolare LEFT OUTER JOIN
dbo.PosizioneUdcCorrente ON dbo.ElencoCartellini.UDC = dbo.PosizioneUdcCorrente.UDC
WHERE RilPro.AnagParticolari.CodCS = @CodCS AND
RilPro.AnagParticolari.Particolare = @Particolare AND
(IdxPosizione = @IdxPosizione) AND
(dbo.ElencoCartellini.Figura = CASE WHEN @Figura = '*' THEN dbo.ElencoCartellini.Figura ELSE @Figura END) AND
(dbo.ElencoCartellini.Esponente = CASE WHEN @Esponente = '*' THEN dbo.ElencoCartellini.Esponente ELSE @Esponente END) AND
(dbo.ElencoCartellini.CodImballo = CASE WHEN @CodImballo = '*' THEN dbo.ElencoCartellini.CodImballo ELSE @CodImballo END)
GROUP BY RilPro.AnagParticolari.Particolare, RilPro.AnagParticolari.DescParticolare
RETURN
go
commit
go
set xact_abort on
go
begin transaction
go
set ANSI_NULLS on
go
/***************************************
* STORED stp_UDC_updateIdxPosizione
*
* aggiorna un cartellino x la sua posizione logica
*
* Steamware, S.E.L.
* mod: 2010.06.12
*
****************************************/
create PROCEDURE stp_UDC_updateIdxPosizione
(
@UDC VARCHAR(20),
@CodSoggetto VARCHAR(16),
@CodTipoDichiaraz CHAR(1),
@CodEvento VARCHAR(10),
@IdxPosizione INT
)
AS
------------------------------------------------------------------------------------------------------
-- Ciclo principale x edit record
------------------------------------------------------------------------------------------------------
BEGIN TRAN
-- registro in StoricoCartellini
INSERT INTO StoricoCartellini(DataEv, CodEvento, CodTipoDichiaraz, UDC, CodCS,CodCliente, RagSociale, Particolare, DescParticolare,
DisegnoGrezzo, Esponente, CodImpianto, DescImpianto, CodStampo, Figura, DataFus, TurnoFus, CodImballo, CodSoggetto,
NumCont, Tara, Qta, CodStato, IdxPosizione, PesoTot, PesoCad)
SELECT GETDATE() AS DataEv, @CodEvento AS CodEvento, @CodTipoDichiaraz AS CodTipoDichiaraz, UDC, CodCS,
CodCliente, RagSociale, Particolare, DescParticolare, DisegnoGrezzo, Esponente, CodImpianto, DescImpianto, CodStampo, Figura,
DataFus, TurnoFus, CodImballo, @CodSoggetto AS CodSoggetto, NumCont, Tara, Qta, CodStato, IdxPosizione, PesoTot, PesoCad
FROM ElencoCartellini
WHERE (UDC = @UDC)
-- modifico il record
UPDATE ElencoCartellini
SET IdxPosizione = @IdxPosizione, ModDate = GETDATE()
WHERE UDC = @UDC
COMMIT TRAN
------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------
-- restituisco la tab dati con l'udc appena inserito
------------------------------------------------------------------------------------------------------
SELECT *
FROM ElencoCartellini
WHERE UDC = @UDC
------------------------------------------------------------------------------------------------------
RETURN
go
commit
go
drop procedure stp_celleOverbooked
go
-- registro versione...
INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(235, GETDATE())
GO
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.