inserito modulo x gestione "executions"
inserita prima versione controllo enabled dei buttons git-svn-id: https://keyhammer.ath.cx/svn/GMW/trunk@184 365432ac-a1b5-4ffd-bb28-6d3099d32164
This commit is contained in:
@@ -102,6 +102,13 @@
|
||||
<Compile Include="WebUserControls\mod_currentTask.ascx.designer.cs">
|
||||
<DependentUpon>mod_currentTask.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_execUdc.ascx.cs">
|
||||
<DependentUpon>mod_execUdc.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_execUdc.ascx.designer.cs">
|
||||
<DependentUpon>mod_execUdc.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_home.ascx.cs">
|
||||
<DependentUpon>mod_home.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@@ -116,13 +123,6 @@
|
||||
<Compile Include="WebUserControls\mod_listePrelievo.ascx.designer.cs">
|
||||
<DependentUpon>mod_listePrelievo.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_login.ascx.cs">
|
||||
<DependentUpon>mod_login.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_login.ascx.designer.cs">
|
||||
<DependentUpon>mod_login.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_menuTop.ascx.cs">
|
||||
<DependentUpon>mod_menuTop.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@@ -137,13 +137,6 @@
|
||||
<Compile Include="WebUserControls\mod_search.ascx.designer.cs">
|
||||
<DependentUpon>mod_search.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_userBar.ascx.cs">
|
||||
<DependentUpon>mod_userBar.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_userBar.ascx.designer.cs">
|
||||
<DependentUpon>mod_userBar.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WS\AutoCompletamento.asmx.cs">
|
||||
<DependentUpon>AutoCompletamento.asmx</DependentUpon>
|
||||
<SubType>Component</SubType>
|
||||
@@ -169,13 +162,6 @@
|
||||
<Compile Include="ListePrelievo.aspx.designer.cs">
|
||||
<DependentUpon>ListePrelievo.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Login.aspx.cs">
|
||||
<DependentUpon>Login.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Login.aspx.designer.cs">
|
||||
<DependentUpon>Login.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Search.aspx.cs">
|
||||
<DependentUpon>Search.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@@ -199,17 +185,15 @@
|
||||
<Content Include="UDC.aspx" />
|
||||
<Content Include="WebUserControls\mod_barcode.ascx" />
|
||||
<Content Include="WebUserControls\mod_currentTask.ascx" />
|
||||
<Content Include="WebUserControls\mod_execUdc.ascx" />
|
||||
<Content Include="WebUserControls\mod_home.ascx" />
|
||||
<Content Include="WebUserControls\mod_listePrelievo.ascx" />
|
||||
<Content Include="WebUserControls\mod_login.ascx" />
|
||||
<Content Include="WebUserControls\mod_menuTop.ascx" />
|
||||
<Content Include="WebUserControls\mod_search.ascx" />
|
||||
<Content Include="WebUserControls\mod_userBar.ascx" />
|
||||
<Content Include="WS\AutoCompletamento.asmx" />
|
||||
<Content Include="Barcode.aspx" />
|
||||
<Content Include="Home.aspx" />
|
||||
<Content Include="ListePrelievo.aspx" />
|
||||
<Content Include="Login.aspx" />
|
||||
<Content Include="images\logo_sw.png" />
|
||||
<Content Include="Search.aspx" />
|
||||
<Content Include="Style.css" />
|
||||
|
||||
@@ -25,7 +25,10 @@
|
||||
{
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
#smallTable
|
||||
{
|
||||
font-size: 10pt;
|
||||
}
|
||||
.quadro1, .quadro2
|
||||
{
|
||||
float: left;
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/Compact.Master"
|
||||
AutoEventWireup="true" CodeBehind="UDC.aspx.cs" Inherits="GMW_Term.UDC" %>
|
||||
|
||||
<%@ Register src="WebUserControls/mod_execUdc.ascx" tagname="mod_execUdc" tagprefix="uc1" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
|
||||
WIP
|
||||
<uc1:mod_execUdc ID="mod_execUdc1" runat="server" />
|
||||
</asp:Content>
|
||||
|
||||
Generated
+9
@@ -12,5 +12,14 @@ namespace GMW_Term {
|
||||
|
||||
|
||||
public partial class UDC {
|
||||
|
||||
/// <summary>
|
||||
/// mod_execUdc1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::GMW_Term.WebUserControls.mod_execUdc mod_execUdc1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -116,8 +116,10 @@ namespace GMW_Term.WebUserControls
|
||||
lblData.Text = "Codice UDC: " + valoreScan;
|
||||
txtScansione = "";
|
||||
// controllo l'UDC se sia valido..
|
||||
if (true)
|
||||
if (true) // !!!FARE!!!
|
||||
{
|
||||
// salvo in session UDC selezionato
|
||||
memLayer.ML.setSessionVal("UDC_sel", valoreScan, false);
|
||||
if (eh_scannedUdc != null)
|
||||
{
|
||||
eh_scannedUdc(this, new EventArgs());
|
||||
@@ -134,6 +136,8 @@ namespace GMW_Term.WebUserControls
|
||||
esitoLoginTerm esito = TermClass.Ter.doUserLogin(dataIn);
|
||||
if (esito == esitoLoginTerm.ok)
|
||||
{
|
||||
// salvo i dati di CodCS
|
||||
memLayer.ML.setSessionVal("CodCS", memLayer.ML.confReadString("CodCS"), true);
|
||||
if (eh_scannedUser != null)
|
||||
{
|
||||
eh_scannedUser(this, new EventArgs());
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace GMW_Term.WebUserControls
|
||||
string task = memLayer.ML.StringSessionObj("activeTask");
|
||||
if (task == "")
|
||||
{
|
||||
task = "...wait...";
|
||||
task = "... waiting ...";
|
||||
}
|
||||
lblTask.Text = task;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,228 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_execUdc.ascx.cs"
|
||||
Inherits="GMW_Term.WebUserControls.mod_execUdc" %>
|
||||
<div id="smallTable">
|
||||
<asp:FormView ID="frmView" runat="server" DataKeyNames="UDC" DataSourceID="ods">
|
||||
<EditItemTemplate>
|
||||
UDC:
|
||||
<asp:Label ID="UDCLabel1" runat="server" Text='<%# Eval("UDC") %>' />
|
||||
<br />
|
||||
RagSociale:
|
||||
<asp:TextBox ID="RagSocialeTextBox" runat="server" Text='<%# Bind("RagSociale") %>' />
|
||||
<br />
|
||||
Particolare:
|
||||
<asp:TextBox ID="ParticolareTextBox" runat="server" Text='<%# Bind("Particolare") %>' />
|
||||
<br />
|
||||
DescParticolare:
|
||||
<asp:TextBox ID="DescParticolareTextBox" runat="server" Text='<%# Bind("DescParticolare") %>' />
|
||||
<br />
|
||||
DisegnoGrezzo:
|
||||
<asp:TextBox ID="DisegnoGrezzoTextBox" runat="server" Text='<%# Bind("DisegnoGrezzo") %>' />
|
||||
<br />
|
||||
Esponente:
|
||||
<asp:TextBox ID="EsponenteTextBox" runat="server" Text='<%# Bind("Esponente") %>' />
|
||||
<br />
|
||||
DescImpianto:
|
||||
<asp:TextBox ID="DescImpiantoTextBox" runat="server" Text='<%# Bind("DescImpianto") %>' />
|
||||
<br />
|
||||
DataFus:
|
||||
<asp:TextBox ID="DataFusTextBox" runat="server" Text='<%# Bind("DataFus") %>' />
|
||||
<br />
|
||||
TurnoFus:
|
||||
<asp:TextBox ID="TurnoFusTextBox" runat="server" Text='<%# Bind("TurnoFus") %>' />
|
||||
<br />
|
||||
CodImballo:
|
||||
<asp:TextBox ID="CodImballoTextBox" runat="server" Text='<%# Bind("CodImballo") %>' />
|
||||
<br />
|
||||
Qta:
|
||||
<asp:TextBox ID="QtaTextBox" runat="server" Text='<%# Bind("Qta") %>' />
|
||||
<br />
|
||||
DescStato:
|
||||
<asp:TextBox ID="DescStatoTextBox" runat="server" Text='<%# Bind("DescStato") %>' />
|
||||
<br />
|
||||
ModDate:
|
||||
<asp:TextBox ID="ModDateTextBox" runat="server" Text='<%# Bind("ModDate") %>' />
|
||||
<br />
|
||||
CodMag:
|
||||
<asp:TextBox ID="CodMagTextBox" runat="server" Text='<%# Bind("CodMag") %>' />
|
||||
<br />
|
||||
CodBlocco:
|
||||
<asp:TextBox ID="CodBloccoTextBox" runat="server" Text='<%# Bind("CodBlocco") %>' />
|
||||
<br />
|
||||
CodCella:
|
||||
<asp:TextBox ID="CodCellaTextBox" runat="server" Text='<%# Bind("CodCella") %>' />
|
||||
<br />
|
||||
X:
|
||||
<asp:TextBox ID="XTextBox" runat="server" Text='<%# Bind("X") %>' />
|
||||
<br />
|
||||
Y:
|
||||
<asp:TextBox ID="YTextBox" runat="server" Text='<%# Bind("Y") %>' />
|
||||
<br />
|
||||
Z:
|
||||
<asp:TextBox ID="ZTextBox" runat="server" Text='<%# Bind("Z") %>' />
|
||||
<br />
|
||||
IdxCella:
|
||||
<asp:TextBox ID="IdxCellaTextBox" runat="server" Text='<%# Bind("IdxCella") %>' />
|
||||
<br />
|
||||
<asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" CommandName="Update"
|
||||
Text="Update" />
|
||||
<asp:LinkButton ID="UpdateCancelButton" runat="server" CausesValidation="False"
|
||||
CommandName="Cancel" Text="Cancel" />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
UDC:
|
||||
<asp:Label ID="UDCLabel" runat="server" Text='<%# Eval("UDC") %>' />
|
||||
<br />
|
||||
Particolare:
|
||||
<asp:Label ID="ParticolareLabel" runat="server" Text='<%# Bind("Particolare") %>' />
|
||||
<br />
|
||||
<asp:Label ID="DescParticolareLabel" runat="server" Text='<%# Bind("DescParticolare") %>' />
|
||||
DisegnoGrezzo:
|
||||
<asp:Label ID="DisegnoGrezzoLabel" runat="server" Text='<%# Bind("DisegnoGrezzo") %>' />
|
||||
<br />
|
||||
Esponente:
|
||||
<asp:Label ID="EsponenteLabel" runat="server" Text='<%# Bind("Esponente") %>' />
|
||||
Qta:
|
||||
<asp:Label ID="QtaLabel" runat="server" Text='<%# Bind("Qta") %>' />
|
||||
<br />
|
||||
DescStato:
|
||||
<asp:Label ID="DescStatoLabel" runat="server" Text='<%# Bind("DescStato") %>' />
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
CodMag:
|
||||
<asp:Label ID="CodMagLabel" runat="server" Text='<%# Bind("CodMag") %>' />
|
||||
</td>
|
||||
<td>
|
||||
CodBlocco:
|
||||
<asp:Label ID="CodBloccoLabel" runat="server" Text='<%# Bind("CodBlocco") %>' />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
CodCella:
|
||||
<asp:Label ID="CodCellaLabel" runat="server" Text='<%# Bind("CodCella") %>' />
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
X:
|
||||
<asp:Label ID="XLabel" runat="server" Text='<%# Bind("X") %>' />
|
||||
</td>
|
||||
<td>
|
||||
Y:
|
||||
<asp:Label ID="YLabel" runat="server" Text='<%# Bind("Y") %>' />
|
||||
</td>
|
||||
<td>
|
||||
Z:
|
||||
<asp:Label ID="ZLabel" runat="server" Text='<%# Bind("Z") %>' />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</ItemTemplate>
|
||||
<%--<ItemTemplate>
|
||||
UDC:
|
||||
<asp:Label ID="UDCLabel" runat="server" Text='<%# Eval("UDC") %>' />
|
||||
<br />
|
||||
RagSociale:
|
||||
<asp:Label ID="RagSocialeLabel" runat="server" Text='<%# Bind("RagSociale") %>' />
|
||||
<br />
|
||||
Particolare:
|
||||
<asp:Label ID="ParticolareLabel" runat="server" Text='<%# Bind("Particolare") %>' />
|
||||
<br />
|
||||
DescParticolare:
|
||||
<asp:Label ID="DescParticolareLabel" runat="server" Text='<%# Bind("DescParticolare") %>' />
|
||||
<br />
|
||||
DisegnoGrezzo:
|
||||
<asp:Label ID="DisegnoGrezzoLabel" runat="server" Text='<%# Bind("DisegnoGrezzo") %>' />
|
||||
<br />
|
||||
Esponente:
|
||||
<asp:Label ID="EsponenteLabel" runat="server" Text='<%# Bind("Esponente") %>' />
|
||||
<br />
|
||||
DescImpianto:
|
||||
<asp:Label ID="DescImpiantoLabel" runat="server" Text='<%# Bind("DescImpianto") %>' />
|
||||
<br />
|
||||
DataFus:
|
||||
<asp:Label ID="DataFusLabel" runat="server" Text='<%# Bind("DataFus") %>' />
|
||||
<br />
|
||||
TurnoFus:
|
||||
<asp:Label ID="TurnoFusLabel" runat="server" Text='<%# Bind("TurnoFus") %>' />
|
||||
<br />
|
||||
CodImballo:
|
||||
<asp:Label ID="CodImballoLabel" runat="server" Text='<%# Bind("CodImballo") %>' />
|
||||
<br />
|
||||
Qta:
|
||||
<asp:Label ID="QtaLabel" runat="server" Text='<%# Bind("Qta") %>' />
|
||||
<br />
|
||||
DescStato:
|
||||
<asp:Label ID="DescStatoLabel" runat="server" Text='<%# Bind("DescStato") %>' />
|
||||
<br />
|
||||
ModDate:
|
||||
<asp:Label ID="ModDateLabel" runat="server" Text='<%# Bind("ModDate") %>' />
|
||||
<br />
|
||||
CodMag:
|
||||
<asp:Label ID="CodMagLabel" runat="server" Text='<%# Bind("CodMag") %>' />
|
||||
<br />
|
||||
CodBlocco:
|
||||
<asp:Label ID="CodBloccoLabel" runat="server" Text='<%# Bind("CodBlocco") %>' />
|
||||
<br />
|
||||
CodCella:
|
||||
<asp:Label ID="CodCellaLabel" runat="server" Text='<%# Bind("CodCella") %>' />
|
||||
<br />
|
||||
X:
|
||||
<asp:Label ID="XLabel" runat="server" Text='<%# Bind("X") %>' />
|
||||
<br />
|
||||
Y:
|
||||
<asp:Label ID="YLabel" runat="server" Text='<%# Bind("Y") %>' />
|
||||
<br />
|
||||
Z:
|
||||
<asp:Label ID="ZLabel" runat="server" Text='<%# Bind("Z") %>' />
|
||||
<br />
|
||||
IdxCella:
|
||||
<asp:Label ID="IdxCellaLabel" runat="server" Text='<%# Bind("IdxCella") %>' />
|
||||
<br />
|
||||
</ItemTemplate>--%>
|
||||
</asp:FormView>
|
||||
</div>
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="getByFullUdc" TypeName="GMW_data.DS_magazzinoTableAdapters.v_UdcDetailTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter DefaultValue="U" Name="UDC" SessionField="UDC_sel" Type="String" />
|
||||
<asp:SessionParameter DefaultValue="MM" Name="CodCS" SessionField="CodCS" Type="String" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<asp:Panel ID="pnlButtons" runat="server">
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<asp:Button ID="btnDeposita" runat="server" Width="100px" OnClick="btnDeposita_Click" />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Button ID="btnSposta" runat="server" Width="100px" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<asp:Button ID="btnRettifica" runat="server" Width="100px" />
|
||||
</td>
|
||||
<td>
|
||||
<asp:Button ID="btnPreleva" runat="server" Width="100px" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<asp:Button ID="btnChiudi" runat="server" Width="100px" OnClick="btnChiudi_Click" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</asp:Panel>
|
||||
<asp:Panel ID="pnlInput" Visible="false" runat="server">
|
||||
<div id="InputBox" style="text-align: center; padding-bottom: 4px;">
|
||||
<asp:TextBox ID="txtInput" runat="server" Text="" Width="200px" OnTextChanged="txtInput_TextChanged" />
|
||||
<div id="Data" style="padding-bottom: 2px;">
|
||||
<asp:Label ID="lblData" runat="server" Text="" />
|
||||
</div>
|
||||
<div>
|
||||
<asp:Button runat="server" ID="btnConferma" TabIndex="0" Enabled="false" OnClick="btnConferma_Click"
|
||||
Width="100px" />
|
||||
<asp:Button ID="btnCellaPiena" runat="server" Enabled="false" Width="100px" OnClick="btnCellaPiena_Click" />
|
||||
</div>
|
||||
</div>
|
||||
</asp:Panel>
|
||||
@@ -0,0 +1,262 @@
|
||||
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_Term.WebUserControls
|
||||
{
|
||||
public partial class mod_execUdc : System.Web.UI.UserControl
|
||||
{
|
||||
/// <summary>
|
||||
/// codice company/sito in sessione
|
||||
/// </summary>
|
||||
protected string _CodCs
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj("CodCS");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// UDC correntemente selezionato
|
||||
/// </summary>
|
||||
protected string UDC
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj("UDC_sel");
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("UDC_sel", value);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// caricamento pagina
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
pnlButtons.Visible = true;
|
||||
pnlInput.Visible = false;
|
||||
traduciObj();
|
||||
setupBtn();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// sistemo abilitazione buttons (a seconda dello stato dell'UDC)
|
||||
/// </summary>
|
||||
private void setupBtn()
|
||||
{
|
||||
bool posizAssegn = false;
|
||||
try
|
||||
{
|
||||
DS_magazzino.v_UdcDetailRow rigaUdc = MagClass.magazzino.taDettUDC.getByFullUdc(UDC, _CodCs)[0];
|
||||
posizAssegn = (rigaUdc.CodCella != "");
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// in base a che sia in una posizioen amgazzino o meno scelgo che buttons abilitare
|
||||
if (posizAssegn)
|
||||
{
|
||||
btnDeposita.Enabled = false;
|
||||
btnSposta.Enabled = true;
|
||||
btnPreleva.Enabled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
btnDeposita.Enabled = true;
|
||||
btnSposta.Enabled = false;
|
||||
btnPreleva.Enabled = false;
|
||||
}
|
||||
btnRettifica.Enabled = true;
|
||||
btnChiudi.Enabled = true;
|
||||
}
|
||||
/// <summary>
|
||||
/// sistemazione buttons
|
||||
/// </summary>
|
||||
private void traduciObj()
|
||||
{
|
||||
// buttons primari
|
||||
btnDeposita.Text = "[1] - Deposita";
|
||||
btnDeposita.AccessKey = "1";
|
||||
btnSposta.Text = "[2] - Sposta";
|
||||
btnSposta.AccessKey = "2";
|
||||
btnRettifica.Text = "[3] - Rettifica";
|
||||
btnRettifica.AccessKey = "3";
|
||||
btnPreleva.Text = "[4] - Preleva";
|
||||
btnPreleva.AccessKey = "4";
|
||||
btnChiudi.Text = "[0] - Home";
|
||||
btnChiudi.AccessKey = "0";
|
||||
// buttons secondari
|
||||
btnConferma.Text = "[5] - Conferma";
|
||||
btnConferma.AccessKey = "5";
|
||||
btnCellaPiena.Text = "[6] - Conf.+Cella Piena";
|
||||
btnCellaPiena.AccessKey = "6";
|
||||
}
|
||||
/// <summary>
|
||||
/// wrapper traduzione termini
|
||||
/// </summary>
|
||||
/// <param name="lemma"></param>
|
||||
/// <returns></returns>
|
||||
public string traduci(string lemma)
|
||||
{
|
||||
return user_std.UtSn.Traduci(lemma);
|
||||
}
|
||||
/// <summary>
|
||||
/// click button deposito
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnDeposita_Click(object sender, EventArgs e)
|
||||
{
|
||||
// nasconde/mostra panels
|
||||
pnlButtons.Visible = false;
|
||||
pnlInput.Visible = true;
|
||||
}
|
||||
/// <summary>
|
||||
/// inserito testo nella TextBox
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void txtInput_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
// salvo in sessione la scansione attuale...
|
||||
valoreScanUdc = txtScansione;
|
||||
// verifica l'input immesso
|
||||
tipoCodiceBarcode answ = TermClass.Ter.riconosciBarcode(txtScansione);
|
||||
switch (answ)
|
||||
{
|
||||
case tipoCodiceBarcode.Cella:
|
||||
lblData.Text = "Cella: " + txtScansione;
|
||||
txtScansione = "";
|
||||
// mostro btnConferma
|
||||
btnConferma.Enabled = true;
|
||||
// metto focus
|
||||
btnConferma.Focus();
|
||||
// controllo se la cella sia "papabile" per indicazione "piena"
|
||||
bool alertCapa = false;
|
||||
bool cellaPiena = false;
|
||||
string _CodCS = memLayer.ML.StringSessionObj("CodCS");
|
||||
try
|
||||
{
|
||||
DS_magazzino.V_statoCelleCapienzaAssegnatiRow rigaStato = MagClass.magazzino.taStatoCelle.getByCodCella(valoreScanUdc)[0];
|
||||
alertCapa = ((rigaStato.Capienza - rigaStato.UdcAssegnati) <= 1);
|
||||
cellaPiena = MagClass.magazzino.cellaPiena(_CodCS, MagClass.magazzino.IdxCellaByCodCella(_CodCS, valoreScanUdc));
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
if (alertCapa && !(cellaPiena))
|
||||
{
|
||||
btnCellaPiena.Enabled = true;
|
||||
btnCellaPiena.Focus();
|
||||
}
|
||||
else
|
||||
{
|
||||
btnCellaPiena.Enabled = false;
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
lblData.Text = "Codice non riconosciuto: " + valoreScanUdc;
|
||||
txtInput.Text = "";
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// testo contenuto nella textbox
|
||||
/// </summary>
|
||||
public string txtScansione
|
||||
{
|
||||
get
|
||||
{
|
||||
return txtInput.Text.Trim();
|
||||
}
|
||||
set
|
||||
{
|
||||
txtInput.Text = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// valore della scansione barcode
|
||||
/// </summary>
|
||||
public string valoreScanUdc
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj("scannedValueUdc");
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("scannedValueUdc", value, false);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// richiesto caricamento UDC
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnConferma_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool cellaPiena = false;
|
||||
depositaUdc(cellaPiena);
|
||||
}
|
||||
/// <summary>
|
||||
/// richiesto caricamento UDC e set a piena della cella
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnCellaPiena_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool cellaPiena = true;
|
||||
depositaUdc(cellaPiena);
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua salvataggio, mostra cella updated, eventuale set piena della cella
|
||||
/// </summary>
|
||||
/// <param name="cellaPiena"></param>
|
||||
private void depositaUdc(bool setCellaPiena)
|
||||
{
|
||||
// cerco id della cella...
|
||||
int idxCella = MagClass.magazzino.IdxCellaByCodCella(memLayer.ML.StringSessionObj("CodCS"), valoreScanUdc);
|
||||
// salva le info facendo caricamento
|
||||
MagClass.magazzino.caricaUDC(memLayer.ML.StringSessionObj("CodCS"), UDC, idxCella);
|
||||
if (setCellaPiena)
|
||||
{
|
||||
MagClass.magazzino.taCelle.stp_celle_updPiena(idxCella, true);
|
||||
}
|
||||
// sistema visibilità
|
||||
pnlButtons.Visible = true;
|
||||
pnlInput.Visible = false;
|
||||
btnConferma.Visible = false;
|
||||
// aggiorna dati
|
||||
frmView.DataBind();
|
||||
}
|
||||
/// <summary>
|
||||
/// ritorna alla home
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnChiudi_Click(object sender, EventArgs e)
|
||||
{
|
||||
// svuoto da session l'UDC corrente... e pure il barcode corrente...
|
||||
memLayer.ML.emptySessionVal("scannedValue");
|
||||
//memLayer.ML.emptySessionVal("UDC_sel");
|
||||
UDC = "";
|
||||
memLayer.ML.emptySessionVal("activeTask");
|
||||
Response.Redirect("Home.aspx");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,133 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.4927
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GMW_Term.WebUserControls {
|
||||
|
||||
|
||||
public partial class mod_execUdc {
|
||||
|
||||
/// <summary>
|
||||
/// frmView 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.FormView frmView;
|
||||
|
||||
/// <summary>
|
||||
/// ods 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 ods;
|
||||
|
||||
/// <summary>
|
||||
/// pnlButtons 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 pnlButtons;
|
||||
|
||||
/// <summary>
|
||||
/// btnDeposita 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 btnDeposita;
|
||||
|
||||
/// <summary>
|
||||
/// btnSposta 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 btnSposta;
|
||||
|
||||
/// <summary>
|
||||
/// btnRettifica 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 btnRettifica;
|
||||
|
||||
/// <summary>
|
||||
/// btnPreleva 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 btnPreleva;
|
||||
|
||||
/// <summary>
|
||||
/// btnChiudi 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 btnChiudi;
|
||||
|
||||
/// <summary>
|
||||
/// pnlInput 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 pnlInput;
|
||||
|
||||
/// <summary>
|
||||
/// txtInput 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 txtInput;
|
||||
|
||||
/// <summary>
|
||||
/// lblData 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 lblData;
|
||||
|
||||
/// <summary>
|
||||
/// btnConferma 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 btnConferma;
|
||||
|
||||
/// <summary>
|
||||
/// btnCellaPiena 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 btnCellaPiena;
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Generated
+715
-61
@@ -61,6 +61,8 @@ namespace GMW_data {
|
||||
|
||||
private AnagPosizioniDataTable tableAnagPosizioni;
|
||||
|
||||
private V_statoCelleCapienzaAssegnatiDataTable tableV_statoCelleCapienzaAssegnati;
|
||||
|
||||
private global::System.Data.DataRelation relationFK_PosizioneUdcCorrente_ElencoCartellini;
|
||||
|
||||
private global::System.Data.DataRelation relationFK_PosizioneUdcStorico_ElencoCartellini;
|
||||
@@ -161,6 +163,9 @@ namespace GMW_data {
|
||||
if ((ds.Tables["AnagPosizioni"] != null)) {
|
||||
base.Tables.Add(new AnagPosizioniDataTable(ds.Tables["AnagPosizioni"]));
|
||||
}
|
||||
if ((ds.Tables["V_statoCelleCapienzaAssegnati"] != null)) {
|
||||
base.Tables.Add(new V_statoCelleCapienzaAssegnatiDataTable(ds.Tables["V_statoCelleCapienzaAssegnati"]));
|
||||
}
|
||||
this.DataSetName = ds.DataSetName;
|
||||
this.Prefix = ds.Prefix;
|
||||
this.Namespace = ds.Namespace;
|
||||
@@ -341,6 +346,15 @@ namespace GMW_data {
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.ComponentModel.Browsable(false)]
|
||||
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
|
||||
public V_statoCelleCapienzaAssegnatiDataTable V_statoCelleCapienzaAssegnati {
|
||||
get {
|
||||
return this.tableV_statoCelleCapienzaAssegnati;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.ComponentModel.BrowsableAttribute(true)]
|
||||
[global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
|
||||
@@ -454,6 +468,9 @@ namespace GMW_data {
|
||||
if ((ds.Tables["AnagPosizioni"] != null)) {
|
||||
base.Tables.Add(new AnagPosizioniDataTable(ds.Tables["AnagPosizioni"]));
|
||||
}
|
||||
if ((ds.Tables["V_statoCelleCapienzaAssegnati"] != null)) {
|
||||
base.Tables.Add(new V_statoCelleCapienzaAssegnatiDataTable(ds.Tables["V_statoCelleCapienzaAssegnati"]));
|
||||
}
|
||||
this.DataSetName = ds.DataSetName;
|
||||
this.Prefix = ds.Prefix;
|
||||
this.Namespace = ds.Namespace;
|
||||
@@ -592,6 +609,12 @@ namespace GMW_data {
|
||||
this.tableAnagPosizioni.InitVars();
|
||||
}
|
||||
}
|
||||
this.tableV_statoCelleCapienzaAssegnati = ((V_statoCelleCapienzaAssegnatiDataTable)(base.Tables["V_statoCelleCapienzaAssegnati"]));
|
||||
if ((initTable == true)) {
|
||||
if ((this.tableV_statoCelleCapienzaAssegnati != null)) {
|
||||
this.tableV_statoCelleCapienzaAssegnati.InitVars();
|
||||
}
|
||||
}
|
||||
this.relationFK_PosizioneUdcCorrente_ElencoCartellini = this.Relations["FK_PosizioneUdcCorrente_ElencoCartellini"];
|
||||
this.relationFK_PosizioneUdcStorico_ElencoCartellini = this.Relations["FK_PosizioneUdcStorico_ElencoCartellini"];
|
||||
this.relationFK_Blocchi_AnagMag = this.Relations["FK_Blocchi_AnagMag"];
|
||||
@@ -647,6 +670,8 @@ namespace GMW_data {
|
||||
base.Tables.Add(this.tablev_particolariEsponenteFigura);
|
||||
this.tableAnagPosizioni = new AnagPosizioniDataTable();
|
||||
base.Tables.Add(this.tableAnagPosizioni);
|
||||
this.tableV_statoCelleCapienzaAssegnati = new V_statoCelleCapienzaAssegnatiDataTable();
|
||||
base.Tables.Add(this.tableV_statoCelleCapienzaAssegnati);
|
||||
this.relationFK_PosizioneUdcCorrente_ElencoCartellini = new global::System.Data.DataRelation("FK_PosizioneUdcCorrente_ElencoCartellini", new global::System.Data.DataColumn[] {
|
||||
this.tableElencoCartellini.UDCColumn}, new global::System.Data.DataColumn[] {
|
||||
this.tablePosizioneUdcCorrente.UDCColumn}, false);
|
||||
@@ -783,6 +808,11 @@ namespace GMW_data {
|
||||
return false;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
private bool ShouldSerializeV_statoCelleCapienzaAssegnati() {
|
||||
return false;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
|
||||
if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
|
||||
@@ -872,6 +902,8 @@ namespace GMW_data {
|
||||
|
||||
public delegate void AnagPosizioniRowChangeEventHandler(object sender, AnagPosizioniRowChangeEvent e);
|
||||
|
||||
public delegate void V_statoCelleCapienzaAssegnatiRowChangeEventHandler(object sender, V_statoCelleCapienzaAssegnatiRowChangeEvent e);
|
||||
|
||||
/// <summary>
|
||||
///Represents the strongly named DataTable class.
|
||||
///</summary>
|
||||
@@ -7197,6 +7229,295 @@ namespace GMW_data {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///Represents the strongly named DataTable class.
|
||||
///</summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
||||
[global::System.Serializable()]
|
||||
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
|
||||
public partial class V_statoCelleCapienzaAssegnatiDataTable : global::System.Data.TypedTableBase<V_statoCelleCapienzaAssegnatiRow> {
|
||||
|
||||
private global::System.Data.DataColumn columnIdxCella;
|
||||
|
||||
private global::System.Data.DataColumn columnCodCella;
|
||||
|
||||
private global::System.Data.DataColumn columnCapienza;
|
||||
|
||||
private global::System.Data.DataColumn columnUdcAssegnati;
|
||||
|
||||
private global::System.Data.DataColumn columnPiena;
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public V_statoCelleCapienzaAssegnatiDataTable() {
|
||||
this.TableName = "V_statoCelleCapienzaAssegnati";
|
||||
this.BeginInit();
|
||||
this.InitClass();
|
||||
this.EndInit();
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
internal V_statoCelleCapienzaAssegnatiDataTable(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()]
|
||||
protected V_statoCelleCapienzaAssegnatiDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
|
||||
base(info, context) {
|
||||
this.InitVars();
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public global::System.Data.DataColumn IdxCellaColumn {
|
||||
get {
|
||||
return this.columnIdxCella;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public global::System.Data.DataColumn CodCellaColumn {
|
||||
get {
|
||||
return this.columnCodCella;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public global::System.Data.DataColumn CapienzaColumn {
|
||||
get {
|
||||
return this.columnCapienza;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public global::System.Data.DataColumn UdcAssegnatiColumn {
|
||||
get {
|
||||
return this.columnUdcAssegnati;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public global::System.Data.DataColumn PienaColumn {
|
||||
get {
|
||||
return this.columnPiena;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.ComponentModel.Browsable(false)]
|
||||
public int Count {
|
||||
get {
|
||||
return this.Rows.Count;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public V_statoCelleCapienzaAssegnatiRow this[int index] {
|
||||
get {
|
||||
return ((V_statoCelleCapienzaAssegnatiRow)(this.Rows[index]));
|
||||
}
|
||||
}
|
||||
|
||||
public event V_statoCelleCapienzaAssegnatiRowChangeEventHandler V_statoCelleCapienzaAssegnatiRowChanging;
|
||||
|
||||
public event V_statoCelleCapienzaAssegnatiRowChangeEventHandler V_statoCelleCapienzaAssegnatiRowChanged;
|
||||
|
||||
public event V_statoCelleCapienzaAssegnatiRowChangeEventHandler V_statoCelleCapienzaAssegnatiRowDeleting;
|
||||
|
||||
public event V_statoCelleCapienzaAssegnatiRowChangeEventHandler V_statoCelleCapienzaAssegnatiRowDeleted;
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public void AddV_statoCelleCapienzaAssegnatiRow(V_statoCelleCapienzaAssegnatiRow row) {
|
||||
this.Rows.Add(row);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public V_statoCelleCapienzaAssegnatiRow AddV_statoCelleCapienzaAssegnatiRow(int IdxCella, string CodCella, int Capienza, int UdcAssegnati, bool Piena) {
|
||||
V_statoCelleCapienzaAssegnatiRow rowV_statoCelleCapienzaAssegnatiRow = ((V_statoCelleCapienzaAssegnatiRow)(this.NewRow()));
|
||||
object[] columnValuesArray = new object[] {
|
||||
IdxCella,
|
||||
CodCella,
|
||||
Capienza,
|
||||
UdcAssegnati,
|
||||
Piena};
|
||||
rowV_statoCelleCapienzaAssegnatiRow.ItemArray = columnValuesArray;
|
||||
this.Rows.Add(rowV_statoCelleCapienzaAssegnatiRow);
|
||||
return rowV_statoCelleCapienzaAssegnatiRow;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public V_statoCelleCapienzaAssegnatiRow FindByIdxCella(int IdxCella) {
|
||||
return ((V_statoCelleCapienzaAssegnatiRow)(this.Rows.Find(new object[] {
|
||||
IdxCella})));
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public override global::System.Data.DataTable Clone() {
|
||||
V_statoCelleCapienzaAssegnatiDataTable cln = ((V_statoCelleCapienzaAssegnatiDataTable)(base.Clone()));
|
||||
cln.InitVars();
|
||||
return cln;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
protected override global::System.Data.DataTable CreateInstance() {
|
||||
return new V_statoCelleCapienzaAssegnatiDataTable();
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
internal void InitVars() {
|
||||
this.columnIdxCella = base.Columns["IdxCella"];
|
||||
this.columnCodCella = base.Columns["CodCella"];
|
||||
this.columnCapienza = base.Columns["Capienza"];
|
||||
this.columnUdcAssegnati = base.Columns["UdcAssegnati"];
|
||||
this.columnPiena = base.Columns["Piena"];
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
private void InitClass() {
|
||||
this.columnIdxCella = new global::System.Data.DataColumn("IdxCella", typeof(int), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnIdxCella);
|
||||
this.columnCodCella = new global::System.Data.DataColumn("CodCella", typeof(string), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnCodCella);
|
||||
this.columnCapienza = new global::System.Data.DataColumn("Capienza", typeof(int), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnCapienza);
|
||||
this.columnUdcAssegnati = new global::System.Data.DataColumn("UdcAssegnati", typeof(int), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnUdcAssegnati);
|
||||
this.columnPiena = new global::System.Data.DataColumn("Piena", typeof(bool), null, global::System.Data.MappingType.Element);
|
||||
base.Columns.Add(this.columnPiena);
|
||||
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
|
||||
this.columnIdxCella}, true));
|
||||
this.columnIdxCella.AllowDBNull = false;
|
||||
this.columnIdxCella.Unique = true;
|
||||
this.columnCodCella.AllowDBNull = false;
|
||||
this.columnCodCella.MaxLength = 50;
|
||||
this.columnCapienza.AllowDBNull = false;
|
||||
this.columnPiena.AllowDBNull = false;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public V_statoCelleCapienzaAssegnatiRow NewV_statoCelleCapienzaAssegnatiRow() {
|
||||
return ((V_statoCelleCapienzaAssegnatiRow)(this.NewRow()));
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
|
||||
return new V_statoCelleCapienzaAssegnatiRow(builder);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
protected override global::System.Type GetRowType() {
|
||||
return typeof(V_statoCelleCapienzaAssegnatiRow);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
|
||||
base.OnRowChanged(e);
|
||||
if ((this.V_statoCelleCapienzaAssegnatiRowChanged != null)) {
|
||||
this.V_statoCelleCapienzaAssegnatiRowChanged(this, new V_statoCelleCapienzaAssegnatiRowChangeEvent(((V_statoCelleCapienzaAssegnatiRow)(e.Row)), e.Action));
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
|
||||
base.OnRowChanging(e);
|
||||
if ((this.V_statoCelleCapienzaAssegnatiRowChanging != null)) {
|
||||
this.V_statoCelleCapienzaAssegnatiRowChanging(this, new V_statoCelleCapienzaAssegnatiRowChangeEvent(((V_statoCelleCapienzaAssegnatiRow)(e.Row)), e.Action));
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
|
||||
base.OnRowDeleted(e);
|
||||
if ((this.V_statoCelleCapienzaAssegnatiRowDeleted != null)) {
|
||||
this.V_statoCelleCapienzaAssegnatiRowDeleted(this, new V_statoCelleCapienzaAssegnatiRowChangeEvent(((V_statoCelleCapienzaAssegnatiRow)(e.Row)), e.Action));
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
|
||||
base.OnRowDeleting(e);
|
||||
if ((this.V_statoCelleCapienzaAssegnatiRowDeleting != null)) {
|
||||
this.V_statoCelleCapienzaAssegnatiRowDeleting(this, new V_statoCelleCapienzaAssegnatiRowChangeEvent(((V_statoCelleCapienzaAssegnatiRow)(e.Row)), e.Action));
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public void RemoveV_statoCelleCapienzaAssegnatiRow(V_statoCelleCapienzaAssegnatiRow row) {
|
||||
this.Rows.Remove(row);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
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_magazzino ds = new DS_magazzino();
|
||||
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_statoCelleCapienzaAssegnatiDataTable";
|
||||
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>
|
||||
@@ -10768,6 +11089,87 @@ namespace GMW_data {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///Represents strongly named DataRow class.
|
||||
///</summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
||||
public partial class V_statoCelleCapienzaAssegnatiRow : global::System.Data.DataRow {
|
||||
|
||||
private V_statoCelleCapienzaAssegnatiDataTable tableV_statoCelleCapienzaAssegnati;
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
internal V_statoCelleCapienzaAssegnatiRow(global::System.Data.DataRowBuilder rb) :
|
||||
base(rb) {
|
||||
this.tableV_statoCelleCapienzaAssegnati = ((V_statoCelleCapienzaAssegnatiDataTable)(this.Table));
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public int IdxCella {
|
||||
get {
|
||||
return ((int)(this[this.tableV_statoCelleCapienzaAssegnati.IdxCellaColumn]));
|
||||
}
|
||||
set {
|
||||
this[this.tableV_statoCelleCapienzaAssegnati.IdxCellaColumn] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public string CodCella {
|
||||
get {
|
||||
return ((string)(this[this.tableV_statoCelleCapienzaAssegnati.CodCellaColumn]));
|
||||
}
|
||||
set {
|
||||
this[this.tableV_statoCelleCapienzaAssegnati.CodCellaColumn] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public int Capienza {
|
||||
get {
|
||||
return ((int)(this[this.tableV_statoCelleCapienzaAssegnati.CapienzaColumn]));
|
||||
}
|
||||
set {
|
||||
this[this.tableV_statoCelleCapienzaAssegnati.CapienzaColumn] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public int UdcAssegnati {
|
||||
get {
|
||||
try {
|
||||
return ((int)(this[this.tableV_statoCelleCapienzaAssegnati.UdcAssegnatiColumn]));
|
||||
}
|
||||
catch (global::System.InvalidCastException e) {
|
||||
throw new global::System.Data.StrongTypingException("The value for column \'UdcAssegnati\' in table \'V_statoCelleCapienzaAssegnati\' is D" +
|
||||
"BNull.", e);
|
||||
}
|
||||
}
|
||||
set {
|
||||
this[this.tableV_statoCelleCapienzaAssegnati.UdcAssegnatiColumn] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public bool Piena {
|
||||
get {
|
||||
return ((bool)(this[this.tableV_statoCelleCapienzaAssegnati.PienaColumn]));
|
||||
}
|
||||
set {
|
||||
this[this.tableV_statoCelleCapienzaAssegnati.PienaColumn] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public bool IsUdcAssegnatiNull() {
|
||||
return this.IsNull(this.tableV_statoCelleCapienzaAssegnati.UdcAssegnatiColumn);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public void SetUdcAssegnatiNull() {
|
||||
this[this.tableV_statoCelleCapienzaAssegnati.UdcAssegnatiColumn] = global::System.Convert.DBNull;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///Row event argument class
|
||||
///</summary>
|
||||
@@ -11325,6 +11727,37 @@ namespace GMW_data {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///Row event argument class
|
||||
///</summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
||||
public class V_statoCelleCapienzaAssegnatiRowChangeEvent : global::System.EventArgs {
|
||||
|
||||
private V_statoCelleCapienzaAssegnatiRow eventRow;
|
||||
|
||||
private global::System.Data.DataRowAction eventAction;
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public V_statoCelleCapienzaAssegnatiRowChangeEvent(V_statoCelleCapienzaAssegnatiRow row, global::System.Data.DataRowAction action) {
|
||||
this.eventRow = row;
|
||||
this.eventAction = action;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public V_statoCelleCapienzaAssegnatiRow Row {
|
||||
get {
|
||||
return this.eventRow;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public global::System.Data.DataRowAction Action {
|
||||
get {
|
||||
return this.eventAction;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
namespace GMW_data.DS_magazzinoTableAdapters {
|
||||
@@ -20288,6 +20721,227 @@ SELECT IdxPosizione, DescPosizione FROM AnagPosizioni WHERE (IdxPosizione = @Idx
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///Represents the connection and commands used to retrieve and save data.
|
||||
///</summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
|
||||
[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=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public partial class V_statoCelleCapienzaAssegnatiTableAdapter : 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()]
|
||||
public V_statoCelleCapienzaAssegnatiTableAdapter() {
|
||||
this.ClearBeforeFill = true;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
|
||||
get {
|
||||
if ((this._adapter == null)) {
|
||||
this.InitAdapter();
|
||||
}
|
||||
return this._adapter;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
internal 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()]
|
||||
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()]
|
||||
protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
|
||||
get {
|
||||
if ((this._commandCollection == null)) {
|
||||
this.InitCommandCollection();
|
||||
}
|
||||
return this._commandCollection;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public bool ClearBeforeFill {
|
||||
get {
|
||||
return this._clearBeforeFill;
|
||||
}
|
||||
set {
|
||||
this._clearBeforeFill = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
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_statoCelleCapienzaAssegnati";
|
||||
tableMapping.ColumnMappings.Add("IdxCella", "IdxCella");
|
||||
tableMapping.ColumnMappings.Add("CodCella", "CodCella");
|
||||
tableMapping.ColumnMappings.Add("Capienza", "Capienza");
|
||||
tableMapping.ColumnMappings.Add("UdcAssegnati", "UdcAssegnati");
|
||||
tableMapping.ColumnMappings.Add("Piena", "Piena");
|
||||
this._adapter.TableMappings.Add(tableMapping);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
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()]
|
||||
private void InitCommandCollection() {
|
||||
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[4];
|
||||
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[0].Connection = this.Connection;
|
||||
this._commandCollection[0].CommandText = "SELECT IdxCella, CodCella, Capienza, UdcAssegnati, Piena FROM dbo.V_statoCelleCap" +
|
||||
"ienzaAssegnati";
|
||||
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_StatoCelleByCodCella";
|
||||
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("@CodCella", global::System.Data.SqlDbType.VarChar, 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_StatoCelleByIdxCella";
|
||||
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("@IdxCella", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 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_StatoCelleOverbooked";
|
||||
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, "", "", ""));
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
|
||||
public virtual int Fill(DS_magazzino.V_statoCelleCapienzaAssegnatiDataTable 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.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
|
||||
public virtual DS_magazzino.V_statoCelleCapienzaAssegnatiDataTable GetData() {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[0];
|
||||
DS_magazzino.V_statoCelleCapienzaAssegnatiDataTable dataTable = new DS_magazzino.V_statoCelleCapienzaAssegnatiDataTable();
|
||||
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_statoCelleCapienzaAssegnatiDataTable getByCodCella(string CodCella) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[1];
|
||||
if ((CodCella == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodCella));
|
||||
}
|
||||
DS_magazzino.V_statoCelleCapienzaAssegnatiDataTable dataTable = new DS_magazzino.V_statoCelleCapienzaAssegnatiDataTable();
|
||||
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_statoCelleCapienzaAssegnatiDataTable getByIdxCella(global::System.Nullable<int> IdxCella) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[2];
|
||||
if ((IdxCella.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = ((int)(IdxCella.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
DS_magazzino.V_statoCelleCapienzaAssegnatiDataTable dataTable = new DS_magazzino.V_statoCelleCapienzaAssegnatiDataTable();
|
||||
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_statoCelleCapienzaAssegnatiDataTable getOverbooked() {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[3];
|
||||
DS_magazzino.V_statoCelleCapienzaAssegnatiDataTable dataTable = new DS_magazzino.V_statoCelleCapienzaAssegnatiDataTable();
|
||||
this.Adapter.Fill(dataTable);
|
||||
return dataTable;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
|
||||
///</summary>
|
||||
@@ -20605,12 +21259,12 @@ SELECT IdxPosizione, DescPosizione FROM AnagPosizioni WHERE (IdxPosizione = @Idx
|
||||
allChangedRows.AddRange(updatedRows);
|
||||
}
|
||||
}
|
||||
if ((this._tipoListaPrelievoTableAdapter != null)) {
|
||||
global::System.Data.DataRow[] updatedRows = dataSet.TipoListaPrelievo.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
||||
if ((this._anagPosizioniTableAdapter != null)) {
|
||||
global::System.Data.DataRow[] updatedRows = dataSet.AnagPosizioni.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
||||
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
||||
if (((updatedRows != null)
|
||||
&& (0 < updatedRows.Length))) {
|
||||
result = (result + this._tipoListaPrelievoTableAdapter.Update(updatedRows));
|
||||
result = (result + this._anagPosizioniTableAdapter.Update(updatedRows));
|
||||
allChangedRows.AddRange(updatedRows);
|
||||
}
|
||||
}
|
||||
@@ -20623,12 +21277,12 @@ SELECT IdxPosizione, DescPosizione FROM AnagPosizioni WHERE (IdxPosizione = @Idx
|
||||
allChangedRows.AddRange(updatedRows);
|
||||
}
|
||||
}
|
||||
if ((this._anagPosizioniTableAdapter != null)) {
|
||||
global::System.Data.DataRow[] updatedRows = dataSet.AnagPosizioni.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
||||
if ((this._tipoListaPrelievoTableAdapter != null)) {
|
||||
global::System.Data.DataRow[] updatedRows = dataSet.TipoListaPrelievo.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
||||
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
||||
if (((updatedRows != null)
|
||||
&& (0 < updatedRows.Length))) {
|
||||
result = (result + this._anagPosizioniTableAdapter.Update(updatedRows));
|
||||
result = (result + this._tipoListaPrelievoTableAdapter.Update(updatedRows));
|
||||
allChangedRows.AddRange(updatedRows);
|
||||
}
|
||||
}
|
||||
@@ -20650,15 +21304,6 @@ SELECT IdxPosizione, DescPosizione FROM AnagPosizioni WHERE (IdxPosizione = @Idx
|
||||
allChangedRows.AddRange(updatedRows);
|
||||
}
|
||||
}
|
||||
if ((this._posizioneUdcCorrenteTableAdapter != null)) {
|
||||
global::System.Data.DataRow[] updatedRows = dataSet.PosizioneUdcCorrente.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
||||
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
||||
if (((updatedRows != null)
|
||||
&& (0 < updatedRows.Length))) {
|
||||
result = (result + this._posizioneUdcCorrenteTableAdapter.Update(updatedRows));
|
||||
allChangedRows.AddRange(updatedRows);
|
||||
}
|
||||
}
|
||||
if ((this._righeListePrelievoTableAdapter != null)) {
|
||||
global::System.Data.DataRow[] updatedRows = dataSet.RigheListePrelievo.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
||||
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
||||
@@ -20668,12 +21313,12 @@ SELECT IdxPosizione, DescPosizione FROM AnagPosizioni WHERE (IdxPosizione = @Idx
|
||||
allChangedRows.AddRange(updatedRows);
|
||||
}
|
||||
}
|
||||
if ((this._anagImballiTableAdapter != null)) {
|
||||
global::System.Data.DataRow[] updatedRows = dataSet.AnagImballi.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
||||
if ((this._tipoCellaTableAdapter != null)) {
|
||||
global::System.Data.DataRow[] updatedRows = dataSet.TipoCella.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
||||
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
||||
if (((updatedRows != null)
|
||||
&& (0 < updatedRows.Length))) {
|
||||
result = (result + this._anagImballiTableAdapter.Update(updatedRows));
|
||||
result = (result + this._tipoCellaTableAdapter.Update(updatedRows));
|
||||
allChangedRows.AddRange(updatedRows);
|
||||
}
|
||||
}
|
||||
@@ -20686,12 +21331,21 @@ SELECT IdxPosizione, DescPosizione FROM AnagPosizioni WHERE (IdxPosizione = @Idx
|
||||
allChangedRows.AddRange(updatedRows);
|
||||
}
|
||||
}
|
||||
if ((this._tipoCellaTableAdapter != null)) {
|
||||
global::System.Data.DataRow[] updatedRows = dataSet.TipoCella.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
||||
if ((this._posizioneUdcCorrenteTableAdapter != null)) {
|
||||
global::System.Data.DataRow[] updatedRows = dataSet.PosizioneUdcCorrente.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
||||
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
||||
if (((updatedRows != null)
|
||||
&& (0 < updatedRows.Length))) {
|
||||
result = (result + this._tipoCellaTableAdapter.Update(updatedRows));
|
||||
result = (result + this._posizioneUdcCorrenteTableAdapter.Update(updatedRows));
|
||||
allChangedRows.AddRange(updatedRows);
|
||||
}
|
||||
}
|
||||
if ((this._anagImballiTableAdapter != null)) {
|
||||
global::System.Data.DataRow[] updatedRows = dataSet.AnagImballi.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
|
||||
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
|
||||
if (((updatedRows != null)
|
||||
&& (0 < updatedRows.Length))) {
|
||||
result = (result + this._anagImballiTableAdapter.Update(updatedRows));
|
||||
allChangedRows.AddRange(updatedRows);
|
||||
}
|
||||
}
|
||||
@@ -20712,11 +21366,11 @@ SELECT IdxPosizione, DescPosizione FROM AnagPosizioni WHERE (IdxPosizione = @Idx
|
||||
allAddedRows.AddRange(addedRows);
|
||||
}
|
||||
}
|
||||
if ((this._tipoListaPrelievoTableAdapter != null)) {
|
||||
global::System.Data.DataRow[] addedRows = dataSet.TipoListaPrelievo.Select(null, null, global::System.Data.DataViewRowState.Added);
|
||||
if ((this._anagPosizioniTableAdapter != null)) {
|
||||
global::System.Data.DataRow[] addedRows = dataSet.AnagPosizioni.Select(null, null, global::System.Data.DataViewRowState.Added);
|
||||
if (((addedRows != null)
|
||||
&& (0 < addedRows.Length))) {
|
||||
result = (result + this._tipoListaPrelievoTableAdapter.Update(addedRows));
|
||||
result = (result + this._anagPosizioniTableAdapter.Update(addedRows));
|
||||
allAddedRows.AddRange(addedRows);
|
||||
}
|
||||
}
|
||||
@@ -20728,11 +21382,11 @@ SELECT IdxPosizione, DescPosizione FROM AnagPosizioni WHERE (IdxPosizione = @Idx
|
||||
allAddedRows.AddRange(addedRows);
|
||||
}
|
||||
}
|
||||
if ((this._anagPosizioniTableAdapter != null)) {
|
||||
global::System.Data.DataRow[] addedRows = dataSet.AnagPosizioni.Select(null, null, global::System.Data.DataViewRowState.Added);
|
||||
if ((this._tipoListaPrelievoTableAdapter != null)) {
|
||||
global::System.Data.DataRow[] addedRows = dataSet.TipoListaPrelievo.Select(null, null, global::System.Data.DataViewRowState.Added);
|
||||
if (((addedRows != null)
|
||||
&& (0 < addedRows.Length))) {
|
||||
result = (result + this._anagPosizioniTableAdapter.Update(addedRows));
|
||||
result = (result + this._tipoListaPrelievoTableAdapter.Update(addedRows));
|
||||
allAddedRows.AddRange(addedRows);
|
||||
}
|
||||
}
|
||||
@@ -20752,14 +21406,6 @@ SELECT IdxPosizione, DescPosizione FROM AnagPosizioni WHERE (IdxPosizione = @Idx
|
||||
allAddedRows.AddRange(addedRows);
|
||||
}
|
||||
}
|
||||
if ((this._posizioneUdcCorrenteTableAdapter != null)) {
|
||||
global::System.Data.DataRow[] addedRows = dataSet.PosizioneUdcCorrente.Select(null, null, global::System.Data.DataViewRowState.Added);
|
||||
if (((addedRows != null)
|
||||
&& (0 < addedRows.Length))) {
|
||||
result = (result + this._posizioneUdcCorrenteTableAdapter.Update(addedRows));
|
||||
allAddedRows.AddRange(addedRows);
|
||||
}
|
||||
}
|
||||
if ((this._righeListePrelievoTableAdapter != null)) {
|
||||
global::System.Data.DataRow[] addedRows = dataSet.RigheListePrelievo.Select(null, null, global::System.Data.DataViewRowState.Added);
|
||||
if (((addedRows != null)
|
||||
@@ -20768,11 +21414,11 @@ SELECT IdxPosizione, DescPosizione FROM AnagPosizioni WHERE (IdxPosizione = @Idx
|
||||
allAddedRows.AddRange(addedRows);
|
||||
}
|
||||
}
|
||||
if ((this._anagImballiTableAdapter != null)) {
|
||||
global::System.Data.DataRow[] addedRows = dataSet.AnagImballi.Select(null, null, global::System.Data.DataViewRowState.Added);
|
||||
if ((this._tipoCellaTableAdapter != null)) {
|
||||
global::System.Data.DataRow[] addedRows = dataSet.TipoCella.Select(null, null, global::System.Data.DataViewRowState.Added);
|
||||
if (((addedRows != null)
|
||||
&& (0 < addedRows.Length))) {
|
||||
result = (result + this._anagImballiTableAdapter.Update(addedRows));
|
||||
result = (result + this._tipoCellaTableAdapter.Update(addedRows));
|
||||
allAddedRows.AddRange(addedRows);
|
||||
}
|
||||
}
|
||||
@@ -20784,11 +21430,19 @@ SELECT IdxPosizione, DescPosizione FROM AnagPosizioni WHERE (IdxPosizione = @Idx
|
||||
allAddedRows.AddRange(addedRows);
|
||||
}
|
||||
}
|
||||
if ((this._tipoCellaTableAdapter != null)) {
|
||||
global::System.Data.DataRow[] addedRows = dataSet.TipoCella.Select(null, null, global::System.Data.DataViewRowState.Added);
|
||||
if ((this._posizioneUdcCorrenteTableAdapter != null)) {
|
||||
global::System.Data.DataRow[] addedRows = dataSet.PosizioneUdcCorrente.Select(null, null, global::System.Data.DataViewRowState.Added);
|
||||
if (((addedRows != null)
|
||||
&& (0 < addedRows.Length))) {
|
||||
result = (result + this._tipoCellaTableAdapter.Update(addedRows));
|
||||
result = (result + this._posizioneUdcCorrenteTableAdapter.Update(addedRows));
|
||||
allAddedRows.AddRange(addedRows);
|
||||
}
|
||||
}
|
||||
if ((this._anagImballiTableAdapter != null)) {
|
||||
global::System.Data.DataRow[] addedRows = dataSet.AnagImballi.Select(null, null, global::System.Data.DataViewRowState.Added);
|
||||
if (((addedRows != null)
|
||||
&& (0 < addedRows.Length))) {
|
||||
result = (result + this._anagImballiTableAdapter.Update(addedRows));
|
||||
allAddedRows.AddRange(addedRows);
|
||||
}
|
||||
}
|
||||
@@ -20801,11 +21455,19 @@ SELECT IdxPosizione, DescPosizione FROM AnagPosizioni WHERE (IdxPosizione = @Idx
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
private int UpdateDeletedRows(DS_magazzino dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
|
||||
int result = 0;
|
||||
if ((this._tipoCellaTableAdapter != null)) {
|
||||
global::System.Data.DataRow[] deletedRows = dataSet.TipoCella.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
||||
if ((this._anagImballiTableAdapter != null)) {
|
||||
global::System.Data.DataRow[] deletedRows = dataSet.AnagImballi.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
||||
if (((deletedRows != null)
|
||||
&& (0 < deletedRows.Length))) {
|
||||
result = (result + this._tipoCellaTableAdapter.Update(deletedRows));
|
||||
result = (result + this._anagImballiTableAdapter.Update(deletedRows));
|
||||
allChangedRows.AddRange(deletedRows);
|
||||
}
|
||||
}
|
||||
if ((this._posizioneUdcCorrenteTableAdapter != null)) {
|
||||
global::System.Data.DataRow[] deletedRows = dataSet.PosizioneUdcCorrente.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
||||
if (((deletedRows != null)
|
||||
&& (0 < deletedRows.Length))) {
|
||||
result = (result + this._posizioneUdcCorrenteTableAdapter.Update(deletedRows));
|
||||
allChangedRows.AddRange(deletedRows);
|
||||
}
|
||||
}
|
||||
@@ -20817,11 +21479,11 @@ SELECT IdxPosizione, DescPosizione FROM AnagPosizioni WHERE (IdxPosizione = @Idx
|
||||
allChangedRows.AddRange(deletedRows);
|
||||
}
|
||||
}
|
||||
if ((this._anagImballiTableAdapter != null)) {
|
||||
global::System.Data.DataRow[] deletedRows = dataSet.AnagImballi.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
||||
if ((this._tipoCellaTableAdapter != null)) {
|
||||
global::System.Data.DataRow[] deletedRows = dataSet.TipoCella.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
||||
if (((deletedRows != null)
|
||||
&& (0 < deletedRows.Length))) {
|
||||
result = (result + this._anagImballiTableAdapter.Update(deletedRows));
|
||||
result = (result + this._tipoCellaTableAdapter.Update(deletedRows));
|
||||
allChangedRows.AddRange(deletedRows);
|
||||
}
|
||||
}
|
||||
@@ -20833,14 +21495,6 @@ SELECT IdxPosizione, DescPosizione FROM AnagPosizioni WHERE (IdxPosizione = @Idx
|
||||
allChangedRows.AddRange(deletedRows);
|
||||
}
|
||||
}
|
||||
if ((this._posizioneUdcCorrenteTableAdapter != null)) {
|
||||
global::System.Data.DataRow[] deletedRows = dataSet.PosizioneUdcCorrente.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
||||
if (((deletedRows != null)
|
||||
&& (0 < deletedRows.Length))) {
|
||||
result = (result + this._posizioneUdcCorrenteTableAdapter.Update(deletedRows));
|
||||
allChangedRows.AddRange(deletedRows);
|
||||
}
|
||||
}
|
||||
if ((this._celleTableAdapter != null)) {
|
||||
global::System.Data.DataRow[] deletedRows = dataSet.Celle.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
||||
if (((deletedRows != null)
|
||||
@@ -20857,11 +21511,11 @@ SELECT IdxPosizione, DescPosizione FROM AnagPosizioni WHERE (IdxPosizione = @Idx
|
||||
allChangedRows.AddRange(deletedRows);
|
||||
}
|
||||
}
|
||||
if ((this._anagPosizioniTableAdapter != null)) {
|
||||
global::System.Data.DataRow[] deletedRows = dataSet.AnagPosizioni.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
||||
if ((this._tipoListaPrelievoTableAdapter != null)) {
|
||||
global::System.Data.DataRow[] deletedRows = dataSet.TipoListaPrelievo.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
||||
if (((deletedRows != null)
|
||||
&& (0 < deletedRows.Length))) {
|
||||
result = (result + this._anagPosizioniTableAdapter.Update(deletedRows));
|
||||
result = (result + this._tipoListaPrelievoTableAdapter.Update(deletedRows));
|
||||
allChangedRows.AddRange(deletedRows);
|
||||
}
|
||||
}
|
||||
@@ -20873,11 +21527,11 @@ SELECT IdxPosizione, DescPosizione FROM AnagPosizioni WHERE (IdxPosizione = @Idx
|
||||
allChangedRows.AddRange(deletedRows);
|
||||
}
|
||||
}
|
||||
if ((this._tipoListaPrelievoTableAdapter != null)) {
|
||||
global::System.Data.DataRow[] deletedRows = dataSet.TipoListaPrelievo.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
||||
if ((this._anagPosizioniTableAdapter != null)) {
|
||||
global::System.Data.DataRow[] deletedRows = dataSet.AnagPosizioni.Select(null, null, global::System.Data.DataViewRowState.Deleted);
|
||||
if (((deletedRows != null)
|
||||
&& (0 < deletedRows.Length))) {
|
||||
result = (result + this._tipoListaPrelievoTableAdapter.Update(deletedRows));
|
||||
result = (result + this._anagPosizioniTableAdapter.Update(deletedRows));
|
||||
allChangedRows.AddRange(deletedRows);
|
||||
}
|
||||
}
|
||||
|
||||
+636
-562
File diff suppressed because it is too large
Load Diff
@@ -6,27 +6,28 @@
|
||||
</autogenerated>-->
|
||||
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="58" ViewPortY="692" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<Shapes>
|
||||
<Shape ID="DesignTable:ElencoCartellini" ZOrder="15" X="68" Y="333" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:AnagMag" ZOrder="28" X="1014" Y="372" Height="190" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="75" />
|
||||
<Shape ID="DesignTable:PosizioneUdcCorrente" ZOrder="7" X="409" Y="544" Height="265" Width="252" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:PosizioneUdcStorico" ZOrder="26" X="412" Y="310" Height="168" Width="257" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:Blocchi" ZOrder="21" X="1014" Y="652" Height="325" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="181" />
|
||||
<Shape ID="DesignTable:Celle" ZOrder="5" X="712" Y="420" Height="438" Width="242" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="235" />
|
||||
<Shape ID="DesignTable:TipoCella" ZOrder="8" X="1008" Y="-2" Height="343" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="216" />
|
||||
<Shape ID="DesignTable:v_UdcDetail" ZOrder="6" X="693" Y="9" Height="381" Width="212" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:AnagImballi" ZOrder="20" X="93" Y="43" Height="156" Width="211" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="75" />
|
||||
<Shape ID="DesignTable:V_ParticolariOverview" ZOrder="19" X="95" Y="1131" Height="265" Width="272" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="138" />
|
||||
<Shape ID="DesignTable:V_MagazziniOverview" ZOrder="10" X="733" Y="1102" Height="286" Width="232" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" />
|
||||
<Shape ID="DesignTable:V_DettMagPart" ZOrder="18" X="993" Y="985" Height="326" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="228" />
|
||||
<Shape ID="DesignTable:TipoListaPrelievo" ZOrder="2" X="735" Y="891" Height="172" Width="224" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:RigheListePrelievo" ZOrder="17" X="83" Y="846" Height="257" Width="242" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="130" />
|
||||
<Shape ID="DesignTable:ElencoListePrelievo" ZOrder="1" X="393" Y="879" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:v_righeListePrelievoPosizione" ZOrder="12" X="406" Y="1283" Height="324" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="235" />
|
||||
<Shape ID="DesignTable:v_particolariEsponenteFigura" ZOrder="11" X="829" Y="1437" Height="229" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:AnagPosizioni" ZOrder="4" X="375" Y="103" Height="115" Width="227" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:ElencoCartellini" ZOrder="16" X="68" Y="333" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<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="8" 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="6" X="712" Y="420" Height="438" Width="242" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="235" />
|
||||
<Shape ID="DesignTable:TipoCella" ZOrder="9" X="1008" Y="-2" Height="343" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="216" />
|
||||
<Shape ID="DesignTable:v_UdcDetail" ZOrder="7" 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="265" Width="272" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="138" />
|
||||
<Shape ID="DesignTable:V_MagazziniOverview" ZOrder="11" 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="993" Y="985" Height="326" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="228" />
|
||||
<Shape ID="DesignTable:TipoListaPrelievo" ZOrder="3" X="735" Y="891" Height="172" Width="224" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
|
||||
<Shape ID="DesignTable:RigheListePrelievo" ZOrder="18" X="83" Y="846" Height="257" Width="242" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="130" />
|
||||
<Shape ID="DesignTable:ElencoListePrelievo" ZOrder="2" X="393" Y="879" Height="381" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
|
||||
<Shape ID="DesignTable:v_righeListePrelievoPosizione" ZOrder="13" X="406" Y="1283" Height="324" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="235" />
|
||||
<Shape ID="DesignTable:v_particolariEsponenteFigura" ZOrder="12" X="829" Y="1437" Height="229" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
|
||||
<Shape ID="DesignTable:AnagPosizioni" ZOrder="5" X="375" Y="103" Height="115" Width="227" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
|
||||
<Shape ID="DesignTable:V_statoCelleCapienzaAssegnati" ZOrder="1" 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="27" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_PosizioneUdcCorrente_ElencoCartellini" ZOrder="28" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>368</X>
|
||||
@@ -38,7 +39,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_PosizioneUdcStorico_ElencoCartellini" ZOrder="25" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_PosizioneUdcStorico_ElencoCartellini" ZOrder="26" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>368</X>
|
||||
@@ -50,7 +51,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_Blocchi_AnagMag" ZOrder="24" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_Blocchi_AnagMag" ZOrder="25" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>1116</X>
|
||||
@@ -62,7 +63,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_PosizioneUdcCorrente_Celle" ZOrder="9" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_PosizioneUdcCorrente_Celle" ZOrder="10" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>712</X>
|
||||
@@ -74,7 +75,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_Celle_Blocchi1" ZOrder="23" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_Celle_Blocchi1" ZOrder="24" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>1014</X>
|
||||
@@ -86,7 +87,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_TipoCella_AnagMag" ZOrder="22" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_TipoCella_AnagMag" ZOrder="23" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>1107</X>
|
||||
@@ -98,7 +99,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_RigheListePrelievo_ElencoCartellini" ZOrder="16" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_RigheListePrelievo_ElencoCartellini" ZOrder="17" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>133</X>
|
||||
@@ -110,7 +111,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_RigheListePrelievo_ElencoListePrelievo11" ZOrder="14" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_RigheListePrelievo_ElencoListePrelievo11" ZOrder="15" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>393</X>
|
||||
@@ -122,7 +123,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_ElencoListePrelievo_TipoListaPrelievo11" ZOrder="13" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_ElencoListePrelievo_TipoListaPrelievo11" ZOrder="14" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>735</X>
|
||||
@@ -134,7 +135,7 @@
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
<Connector ID="DesignRelation:FK_ElencoCartellini_AnagPosizioni" ZOrder="3" LineWidth="11">
|
||||
<Connector ID="DesignRelation:FK_ElencoCartellini_AnagPosizioni" ZOrder="4" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>392</X>
|
||||
|
||||
@@ -30,6 +30,7 @@ namespace GMW_data
|
||||
public DS_magazzinoTableAdapters.TipoListaPrelievoTableAdapter taTipoListaPrelievo;
|
||||
public DS_magazzinoTableAdapters.V_ParticolariOverviewTableAdapter taVParticolariOverwiew;
|
||||
public DS_magazzinoTableAdapters.v_particolariEsponenteFiguraTableAdapter taPartExpFig;
|
||||
public DS_magazzinoTableAdapters.V_statoCelleCapienzaAssegnatiTableAdapter taStatoCelle;
|
||||
|
||||
|
||||
/// <summary>
|
||||
@@ -55,6 +56,7 @@ namespace GMW_data
|
||||
taTipoListaPrelievo = new GMW_data.DS_magazzinoTableAdapters.TipoListaPrelievoTableAdapter();
|
||||
taVParticolariOverwiew = new GMW_data.DS_magazzinoTableAdapters.V_ParticolariOverviewTableAdapter();
|
||||
taPartExpFig = new GMW_data.DS_magazzinoTableAdapters.v_particolariEsponenteFiguraTableAdapter();
|
||||
taStatoCelle = new GMW_data.DS_magazzinoTableAdapters.V_statoCelleCapienzaAssegnatiTableAdapter();
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua setup dei connection strings da web.config delal singola applicazione
|
||||
@@ -79,6 +81,7 @@ namespace GMW_data
|
||||
taTipoListaPrelievo.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taVParticolariOverwiew.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taPartExpFig.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
taStatoCelle.Connection.ConnectionString = memLayer.ML.confReadString("GMWConnectionString");
|
||||
}
|
||||
|
||||
#endregion
|
||||
@@ -170,16 +173,20 @@ namespace GMW_data
|
||||
/// <param name="IdxCellaTo">Cella di destinazione</param>
|
||||
/// <param name="IdxPosizUdc">Codice posizione UDC finale</param>
|
||||
/// <returns>esito comando</returns>
|
||||
public bool caricaUDC(string CodCS, string UDC, int IdxCellaTo, int IdxPosizUdc)
|
||||
public bool caricaUDC(string CodCS, string UDC, int IdxCellaTo)
|
||||
{
|
||||
bool answ = false;
|
||||
//try
|
||||
//{
|
||||
// taPosUdcCorr.stp_scaricaUdc(CodCS, UDC, IdxCellaFrom, IdxPosizUdc);
|
||||
// answ = true;
|
||||
//}
|
||||
//catch
|
||||
//{ }
|
||||
try
|
||||
{
|
||||
taPosUdcCorr.stp_spostaUdc(CodCS, UDC, 0, IdxCellaTo);
|
||||
// cerco nuova posizione...
|
||||
if (taPosUdcCorr.getByCellaUdc(UDC, IdxCellaTo).Rows.Count > 0)
|
||||
{
|
||||
answ = true;
|
||||
}
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
/// <summary>
|
||||
|
||||
@@ -839,6 +839,11 @@ namespace GMW_data
|
||||
answ = tipoCodiceBarcode.UDC;
|
||||
break;
|
||||
default:
|
||||
// cerco se la stringa intera abbia un match con le celle...
|
||||
if (MagClass.magazzino.taCelle.getByCodCella(barcodeIN).Rows.Count == 1)
|
||||
{
|
||||
answ = tipoCodiceBarcode.Cella;
|
||||
}
|
||||
break;
|
||||
}
|
||||
return answ;
|
||||
@@ -871,8 +876,11 @@ public enum tipoCodiceBarcode
|
||||
/// <summary>
|
||||
/// [P] - il barcode rappresenta un particolare
|
||||
/// </summary>
|
||||
Particolare
|
||||
|
||||
Particolare,
|
||||
/// <summary>
|
||||
/// Cella
|
||||
/// </summary>
|
||||
Cella
|
||||
}
|
||||
/// <summary>
|
||||
/// elenco degli esiti per una sessione di login da terminalino
|
||||
|
||||
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user