Iniziata gest KIT in MP/ADM

This commit is contained in:
Samuele E. Locatelli
2018-10-24 15:45:50 +02:00
parent e40b87b9b7
commit 3124c5c3a6
15 changed files with 1671 additions and 771 deletions
+13
View File
@@ -0,0 +1,13 @@
<%@ Page Title="" Language="C#" MasterPageFile="~/WebMasterPages/MoonPro.master" AutoEventWireup="true" CodeBehind="GestKIT.aspx.cs" Inherits="MoonProAdmin.GestKIT" %>
<%@ Register Src="~/WebUserControls/mod_barcode.ascx" TagPrefix="uc1" TagName="mod_barcode" %>
<%@ Register Src="~/WebUserControls/mod_gestPromODL.ascx" TagPrefix="uc1" TagName="mod_gestPromODL" %>
<%@ Register Src="~/WebUserControls/mod_gestKIT.ascx" TagPrefix="uc1" TagName="mod_gestKIT" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<uc1:mod_gestKIT runat="server" id="mod_gestKIT" />
<uc1:mod_barcode runat="server" ID="mod_barcode" />
<uc1:mod_gestPromODL runat="server" ID="mod_gestPromODL" />
</asp:Content>
+43
View File
@@ -0,0 +1,43 @@
using System;
namespace MoonProAdmin
{
public partial class GestKIT : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
mod_barcode.eh_comandoRegistrato += Mod_barcode_eh_comandoRegistrato;
mod_barcode.eh_dataRead += Mod_barcode_eh_dataRead;
}
private void Mod_barcode_eh_dataRead(object sender, EventArgs e)
{
// verifico input su KIT x lettura "grezza"
string rawInput = mod_barcode.rawInput;
mod_gestKIT.lastInput = rawInput;
mod_gestKIT.doUpdate();
}
private void Mod_barcode_eh_comandoRegistrato(object sender, EventArgs e)
{
// verifico input su KIT x comando completo
string BCodeVal = mod_barcode.BCodeVal;
// se è un ORDINE... procedo!
if (BCodeVal.IndexOf("OPR") == 0)
{
mod_gestKIT.codOrd = mod_barcode.codOrd;
mod_gestKIT.codArt = mod_barcode.codArt;
mod_gestKIT.kitCode = mod_barcode.kitCode;
mod_gestKIT.qta = mod_barcode.qta;
mod_gestKIT.descArt = mod_barcode.descArt;
string tempData = string.Format("OPR: {0}, ART: {1}, KIT: {2}, QTA: {3}, Descr: {4}", mod_barcode.codOrd, mod_barcode.codArt, mod_barcode.kitCode, mod_barcode.qta, mod_barcode.descArt);
mod_gestKIT.lastInput = tempData;
}
else
{
mod_gestKIT.lastInput = mod_barcode.BCodeVal;
}
mod_gestKIT.doUpdate();
}
}
}
+42
View File
@@ -0,0 +1,42 @@
//------------------------------------------------------------------------------
// <generato automaticamente>
// Codice generato da uno strumento.
//
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
// il codice viene rigenerato.
// </generato automaticamente>
//------------------------------------------------------------------------------
namespace MoonProAdmin {
public partial class GestKIT {
/// <summary>
/// Controllo mod_gestKIT.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::MoonProAdmin.WebUserControls.mod_gestKIT mod_gestKIT;
/// <summary>
/// Controllo mod_barcode.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::MoonProAdmin.WebUserControls.mod_barcode mod_barcode;
/// <summary>
/// Controllo mod_gestPromODL.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::MoonProAdmin.WebUserControls.mod_gestPromODL mod_gestPromODL;
}
}
+16
View File
@@ -252,6 +252,7 @@
<Content Include="Default.aspx" />
<Content Include="favicon.ico" />
<Content Include="fonts\fontawesome-webfont.svg" />
<Content Include="GestKIT.aspx" />
<Content Include="gestPromesseODL.aspx" />
<Content Include="Global.asax" />
<Content Include="images\favicon.ico" />
@@ -457,6 +458,13 @@
<Compile Include="gestioneODL.aspx.designer.cs">
<DependentUpon>gestioneODL.aspx</DependentUpon>
</Compile>
<Compile Include="GestKIT.aspx.cs">
<DependentUpon>GestKIT.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="GestKIT.aspx.designer.cs">
<DependentUpon>GestKIT.aspx</DependentUpon>
</Compile>
<Compile Include="gestPromesseODL.aspx.cs">
<DependentUpon>gestPromesseODL.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
@@ -601,6 +609,13 @@
<Compile Include="WebUserControls\mod_gestioneODL.ascx.designer.cs">
<DependentUpon>mod_gestioneODL.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_gestKIT.ascx.cs">
<DependentUpon>mod_gestKIT.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="WebUserControls\mod_gestKIT.ascx.designer.cs">
<DependentUpon>mod_gestKIT.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_gestPromODL.ascx.cs">
<DependentUpon>mod_gestPromODL.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
@@ -849,6 +864,7 @@
<Content Include="WebUserControls\mod_footer.ascx" />
<Content Include="WebUserControls\mod_gestioneDatiMacchine.ascx" />
<Content Include="WebUserControls\mod_gestioneODL.ascx" />
<Content Include="WebUserControls\mod_gestKIT.ascx" />
<Content Include="WebUserControls\mod_gestPromODL.ascx" />
<Content Include="WebUserControls\mod_login.ascx" />
<Content Include="WebUserControls\mod_main_help.ascx" />
+107 -103
View File
@@ -9,108 +9,7 @@ namespace MoonProAdmin.WebUserControls
{
public partial class mod_barcode : System.Web.UI.UserControl
{
#region variabili in sessione
/// <summary>
/// UID formattato con "_"
/// </summary>
public string uid
{
get
{
return this.UniqueID.Replace("$", "_").Replace("-", "_");
}
}
protected string codArt
{
get
{
return memLayer.ML.StringSessionObj(string.Format("codArt_{0}", uid));
}
set
{
memLayer.ML.setSessionVal(string.Format("codArt_{0}", uid), value);
}
}
protected string descArt
{
get
{
return memLayer.ML.StringSessionObj(string.Format("descArt_{0}", uid));
}
set
{
memLayer.ML.setSessionVal(string.Format("descArt_{0}", uid), value);
}
}
protected string kitCode
{
get
{
return memLayer.ML.StringSessionObj(string.Format("kitCode_{0}", uid));
}
set
{
memLayer.ML.setSessionVal(string.Format("kitCode_{0}", uid), value);
}
}
protected string codOrd
{
get
{
return memLayer.ML.StringSessionObj(string.Format("codOrd_{0}", uid));
}
set
{
memLayer.ML.setSessionVal(string.Format("codOrd_{0}", uid), value);
}
}
protected int qta
{
get
{
return memLayer.ML.IntSessionObj(string.Format("qta_{0}", uid));
}
set
{
memLayer.ML.setSessionVal(string.Format("qta_{0}", uid), value);
}
}
protected string idxMacc
{
get
{
return memLayer.ML.StringSessionObj(string.Format("idxMacc_{0}", uid));
}
set
{
memLayer.ML.setSessionVal(string.Format("idxMacc_{0}", uid), value);
}
}
protected string nomeMacc
{
get
{
return memLayer.ML.StringSessionObj(string.Format("nomeMacc_{0}", uid));
}
set
{
memLayer.ML.setSessionVal(string.Format("nomeMacc_{0}", uid), value);
}
}
protected string codGruppo
{
get
{
return memLayer.ML.StringSessionObj(string.Format("codGruppo_{0}", uid));
}
set
{
memLayer.ML.setSessionVal(string.Format("codGruppo_{0}", uid), value);
}
}
#region setup VARS
/// <summary>
/// RegExp x RESET / CANCEL
@@ -128,6 +27,111 @@ namespace MoonProAdmin.WebUserControls
/// RegExp x Replace da Find (se vettore è | delimited)
/// </summary>
protected string regExp_Replace = memLayer.ML.cdv("regExp_Replace");
#endregion
#region variabili in sessione
/// <summary>
/// UID formattato con "_"
/// </summary>
public string uid
{
get
{
return this.UniqueID.Replace("$", "_").Replace("-", "_");
}
}
public string codArt
{
get
{
return memLayer.ML.StringSessionObj(string.Format("codArt_{0}", uid));
}
set
{
memLayer.ML.setSessionVal(string.Format("codArt_{0}", uid), value);
}
}
public string descArt
{
get
{
return memLayer.ML.StringSessionObj(string.Format("descArt_{0}", uid));
}
set
{
memLayer.ML.setSessionVal(string.Format("descArt_{0}", uid), value);
}
}
public string kitCode
{
get
{
return memLayer.ML.StringSessionObj(string.Format("kitCode_{0}", uid));
}
set
{
memLayer.ML.setSessionVal(string.Format("kitCode_{0}", uid), value);
}
}
public string codOrd
{
get
{
return memLayer.ML.StringSessionObj(string.Format("codOrd_{0}", uid));
}
set
{
memLayer.ML.setSessionVal(string.Format("codOrd_{0}", uid), value);
}
}
public int qta
{
get
{
return memLayer.ML.IntSessionObj(string.Format("qta_{0}", uid));
}
set
{
memLayer.ML.setSessionVal(string.Format("qta_{0}", uid), value);
}
}
public string idxMacc
{
get
{
return memLayer.ML.StringSessionObj(string.Format("idxMacc_{0}", uid));
}
set
{
memLayer.ML.setSessionVal(string.Format("idxMacc_{0}", uid), value);
}
}
public string nomeMacc
{
get
{
return memLayer.ML.StringSessionObj(string.Format("nomeMacc_{0}", uid));
}
set
{
memLayer.ML.setSessionVal(string.Format("nomeMacc_{0}", uid), value);
}
}
public string codGruppo
{
get
{
return memLayer.ML.StringSessionObj(string.Format("codGruppo_{0}", uid));
}
set
{
memLayer.ML.setSessionVal(string.Format("codGruppo_{0}", uid), value);
}
}
/// <summary>
/// titolo pagina
/// </summary>
@@ -361,7 +365,7 @@ namespace MoonProAdmin.WebUserControls
}
/// <summary>
/// verifica parametri ins essione x i valori eventualmente da mettere al comando...
/// verifica parametri in sessione x i valori eventualmente da mettere al comando...
/// </summary>
private void checkParam()
{
+17
View File
@@ -0,0 +1,17 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_gestKIT.ascx.cs" Inherits="MoonProAdmin.WebUserControls.mod_gestKIT" %>
<ol>
<li><s>cmd x reset e ripartire a fare NUOVO kit</s></li>
<li><s>lettura del barcode</s></li>
<li><s>recupero OPR</s></li>
<li><s>decodifica come articolo</s></li>
<li>eventuale lista di ordini KIT collegati ad OPR IN ROSSO</li>
<li>eventuale lista di ordini KIT collegati ad articolo IN VERDE</li>
<li>salvataggio OPR in lista (redis?memoria?)</li>
<li>ricerca KIT con articolo(i)</li>
<li>controllo kit completo</li>
<li>comando conferma e crea KIT</li>
<li>lascio filtro OPR/articolo x mostrare ordine (nei 2 modi rosso/verde)</li>
<li>cmd x reset e ripartire a fare NUOVO kit</li>
</ol>
<asp:HiddenField id="hlLastInput" runat="server" />
<asp:Label runat="server" ID="lblOut" CssClass="text-danger" />
@@ -0,0 +1,218 @@
using SteamWare;
using System;
namespace MoonProAdmin.WebUserControls
{
public partial class mod_gestKIT : System.Web.UI.UserControl
{
#region setup VARS
/// <summary>
/// RegExp x RESET / CANCEL
/// </summary>
protected string regExp_KO = memLayer.ML.cdv("regExp_KO");
/// <summary>
/// RegExp x CONFERMA
/// </summary>
protected string regExp_OK = memLayer.ML.cdv("regExp_OK");
/// <summary>
/// RegExp x START KIT
/// </summary>
protected string regExp_KitStart = memLayer.ML.cdv("regExp_KitStart");
/// <summary>
/// RegExp x SAVE KIT
/// </summary>
protected string regExp_KitSave = memLayer.ML.cdv("regExp_KitSave");
#endregion
#region variabili in sessione
/// <summary>
/// UID formattato con "_"
/// </summary>
public string uid
{
get
{
return this.UniqueID.Replace("$", "_").Replace("-", "_");
}
}
public string codArt
{
get
{
return memLayer.ML.StringSessionObj(string.Format("codArt_{0}", uid));
}
set
{
memLayer.ML.setSessionVal(string.Format("codArt_{0}", uid), value);
}
}
public string descArt
{
get
{
return memLayer.ML.StringSessionObj(string.Format("descArt_{0}", uid));
}
set
{
memLayer.ML.setSessionVal(string.Format("descArt_{0}", uid), value);
}
}
public string kitCode
{
get
{
return memLayer.ML.StringSessionObj(string.Format("kitCode_{0}", uid));
}
set
{
memLayer.ML.setSessionVal(string.Format("kitCode_{0}", uid), value);
}
}
public string codOrd
{
get
{
return memLayer.ML.StringSessionObj(string.Format("codOrd_{0}", uid));
}
set
{
memLayer.ML.setSessionVal(string.Format("codOrd_{0}", uid), value);
}
}
public int qta
{
get
{
return memLayer.ML.IntSessionObj(string.Format("qta_{0}", uid));
}
set
{
memLayer.ML.setSessionVal(string.Format("qta_{0}", uid), value);
}
}
public string idxMacc
{
get
{
return memLayer.ML.StringSessionObj(string.Format("idxMacc_{0}", uid));
}
set
{
memLayer.ML.setSessionVal(string.Format("idxMacc_{0}", uid), value);
}
}
public string nomeMacc
{
get
{
return memLayer.ML.StringSessionObj(string.Format("nomeMacc_{0}", uid));
}
set
{
memLayer.ML.setSessionVal(string.Format("nomeMacc_{0}", uid), value);
}
}
public string codGruppo
{
get
{
return memLayer.ML.StringSessionObj(string.Format("codGruppo_{0}", uid));
}
set
{
memLayer.ML.setSessionVal(string.Format("codGruppo_{0}", uid), value);
}
}
/// <summary>
/// titolo pagina
/// </summary>
public string titolo
{
get
{
return devicesAuthProxy.getPage(Request.Url).Replace(".aspx", "");
}
}
#endregion
/// <summary>
/// Caricamento pagina
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Page_Load(object sender, EventArgs e)
{
}
/// <summary>
/// Ultimo input registrato
/// </summary>
public string lastInput
{
get
{
return hlLastInput.Value;
}
set
{
hlLastInput.Value = value;
}
}
/// <summary>
/// Aggiorno controllo secondo ULTIMO input
/// </summary>
public void doUpdate()
{
// aggiorno label...
messOut = lastInput;
// controllo input (reset/inizio o salva...)
if (lastInput == regExp_KO)
{
// resetto dati
doReset();
messOut = "Effettuato reset!";
}
else if (lastInput == regExp_KitStart)
{
// resetto dati
doReset();
messOut = "Inizio configurazione KIT";
}
else if (lastInput == regExp_KitSave)
{
}
else if (lastInput == regExp_OK)
{
}
}
private void doReset()
{
codOrd = "";
codArt = "";
kitCode = "";
qta = 0;
descArt = "";
}
public string messOut
{
set
{
lblOut.Text = value;
}
get
{
return lblOut.Text;
}
}
}
}
+33
View File
@@ -0,0 +1,33 @@
//------------------------------------------------------------------------------
// <generato automaticamente>
// Codice generato da uno strumento.
//
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
// il codice viene rigenerato.
// </generato automaticamente>
//------------------------------------------------------------------------------
namespace MoonProAdmin.WebUserControls {
public partial class mod_gestKIT {
/// <summary>
/// Controllo hlLastInput.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.HiddenField hlLastInput;
/// <summary>
/// Controllo lblOut.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblOut;
}
}
+33 -42
View File
@@ -3,74 +3,65 @@
<div class="row">
<div class="col-3 py-4">
<asp:LinkButton runat="server" ID="lbtAnagArticoli" CssClass="btn btn-outline-info btn-block py-3" OnClick="btnAnagArticoli_Click">
<div>
<i class="fa fa-tasks fa-4x"></i>
<div><i class="fa fa-tasks fa-4x"></i></div>
<div class="font-weight-bold mt-1 table-dark text-light">
<%: traduci("btnAnagArticoli") %>
</div>
<%: traduci("btnAnagArticoli") %>
</asp:LinkButton>
</div>
<div class="col-3 py-4">
<asp:LinkButton runat="server" ID="lbtGestPromesseOdl" CssClass="btn btn-outline-primary btn-block py-3" OnClick="btnGestPromesseOdl_Click">
<div>
<i class="fa fa-list-ol fa-4x"></i>
</div>
<%: traduci("btnGestPromesseOdl") %>
<div><i class="fa fa-list-ol fa-4x"></i></div>
<div class="font-weight-bold mt-1 table-dark text-light">
<%: traduci("btnGestPromesseOdl") %>
</div>
</asp:LinkButton>
</div>
<div class="col-3 py-4">
<asp:LinkButton runat="server" ID="lbtGestOdl" CssClass="btn btn-outline-success btn-block py-3" OnClick="btnGestOdl_Click">
<div>
<i class="fa fa-wrench fa-4x"></i>
</div>
<%: traduci("btnGestOdl") %>
<div><i class="fa fa-wrench fa-4x"></i></div>
<div class="font-weight-bold mt-1 table-dark text-light">
<%: traduci("btnGestOdl") %>
</div>
</asp:LinkButton>
</div>
<div class="col-3 py-4">
<asp:LinkButton runat="server" ID="lbtGestDatiMacchina" CssClass="btn btn-outline-secondary btn-block py-3" OnClick="btnGestDatiMacchina_Click">
<div>
<i class="fa fa-industry fa-4x"></i>
</div>
<%: traduci("btnGestDatiMacchina") %>
<div><i class="fa fa-industry fa-4x"></i></div>
<div class="font-weight-bold mt-1 table-dark text-light">
<%: traduci("btnGestDatiMacchina") %>
</div>
</asp:LinkButton>
</div>
<div class="col-3 py-4">
<asp:LinkButton runat="server" ID="lbtApprovaTC" CssClass="btn btn-outline-warning btn-block py-3" OnClick="btnApprovaTC_Click">
<div>
<i class="fa fa-clock-o fa-4x"></i>
</div>
<%: traduci("btnApprovaTC") %>
<asp:LinkButton runat="server" ID="lbtApprovaTC" CssClass="btn btn-outline-warning btn-block py-3" OnClick="btnApprovaTC_Click"> <div><i class="fa fa-clock-o fa-4x"></i></div>
<div class="font-weight-bold mt-1 table-dark text-light">
<%: traduci("btnApprovaTC") %>
</div>
</asp:LinkButton>
</div>
<div class="col-3 py-4">
<asp:LinkButton runat="server" ID="lbtApprovaProd" CssClass="btn btn-outline-danger btn-block py-3" OnClick="btnApprovaProd_Click">
<div>
<i class="fa fa-thumbs-up fa-4x"></i>
<div><i class="fa fa-thumbs-up fa-4x"></i></div>
<div class="font-weight-bold mt-1 table-dark text-light">
<%: traduci("btnApprovaProd") %>
</div>
<%: traduci("btnApprovaProd") %>
</asp:LinkButton>
</div>
<div class="col-3 py-4">
<%--<asp:HyperLink runat="server" ID="btnBCode" CssClass="btnMain" Target="_blank" NavigateUrl="~/Barcode" />--%>
<asp:LinkButton runat="server" ID="lbtBCode" CssClass="btn btn-outline-info btn-block py-3" OnClick="btnBCode_Click">
<div>
<i class="fa fa-barcode fa-4x"></i>
<div><i class="fa fa-barcode fa-4x"></i></div>
<div class="font-weight-bold mt-1 table-dark text-light">
<%: traduci("btnBCode") %>
</div>
</asp:LinkButton>
</div>
<div class="col-3 py-4">
<asp:LinkButton runat="server" ID="lbtGestKIT" CssClass="btn btn-outline-info btn-block py-3" OnClick="lbtGestKIT_Click">
<div><i class="fa fa-object-group fa-4x"></i></div>
<div class="font-weight-bold mt-1 table-dark text-light">
<%: traduci("btnGestKIT") %>
</div>
<%: traduci("btnBCode") %>
</asp:LinkButton>
</div>
</div>
<%--<div class="quadro1">
</div>
<div class="quadro1">
</div>
<div class="quadro1">
</div>
<div class="quadro1">
</div>
<div class="quadro1">
</div>
<div class="quadro1">
</div>
<div class="quadro1">
</div> --%>
+11 -7
View File
@@ -10,35 +10,39 @@ public partial class mod_main_help : ApplicationUserControl
protected void btnGestPromesseOdl_Click(object sender, EventArgs e)
{
Response.Redirect("~/gestPromesseODL.aspx");
Response.Redirect("~/gestPromesseODL");
}
protected void btnGestOdl_Click(object sender, EventArgs e)
{
Response.Redirect("~/gestioneODL.aspx");
Response.Redirect("~/gestioneODL");
}
protected void btnAnagArticoli_Click(object sender, EventArgs e)
{
Response.Redirect("~/anagArticoli.aspx");
Response.Redirect("~/anagArticoli");
}
protected void btnGestDatiMacchina_Click(object sender, EventArgs e)
{
Response.Redirect("~/gestioneDatiMacchine.aspx");
Response.Redirect("~/gestioneDatiMacchine");
}
protected void btnApprovaTC_Click(object sender, EventArgs e)
{
Response.Redirect("~/approvazioneODL.aspx");
Response.Redirect("~/approvazioneODL");
}
protected void btnApprovaProd_Click(object sender, EventArgs e)
{
Response.Redirect("~/approvazioneProd.aspx");
Response.Redirect("~/approvazioneProd");
}
protected void btnBCode_Click(object sender, EventArgs e)
{
Response.Redirect("~/BCode.aspx");
Response.Redirect("~/BCode");
}
protected void lbtGestKIT_Click(object sender, EventArgs e)
{
Response.Redirect("~/GestKIT");
}
}
+9
View File
@@ -73,4 +73,13 @@ public partial class mod_main_help {
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.LinkButton lbtBCode;
/// <summary>
/// Controllo lbtGestKIT.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.LinkButton lbtGestKIT;
}
-2
View File
@@ -36,8 +36,6 @@
<asp:HyperLink runat="server" ID="hlControlli" NavigateUrl="~/Controlli" CssClass="btn btn-primary btn-lg btn-block"><i class="fa fa-wrench"></i> Reg.CONTROLLI</asp:HyperLink>
</div>
</div>
<%--<uc3:mod_regScarti runat="server" ID="mod_regScarti" />
<uc5:mod_controlliProd runat="server" ID="mod_controlliProd" />--%>
</div>
<div class="col-12 col-md-4 col-lg-3 col-xl-2">
<uc1:mod_directLinks runat="server" ID="mod_directLinks" />
+952 -543
View File
File diff suppressed because it is too large Load Diff
+175 -72
View File
@@ -79,55 +79,12 @@ SELECT IdxRequest, DtRequest, DataType, ValueIN, ValueOUT FROM TransitoDati WHER
</DbSource>
</Sources>
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="AnagKITTableAdapter" GeneratorDataComponentClassName="AnagKITTableAdapter" Name="AnagKIT" UserDataComponentName="AnagKITTableAdapter">
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="TemplateKITTableAdapter" GeneratorDataComponentClassName="TemplateKITTableAdapter" Name="TemplateKIT" UserDataComponentName="TemplateKITTableAdapter">
<MainSource>
<DbSource ConnectionRef="MoonPro_IS_ConnectionString (Settings)" DbObjectName="MoonPro_IS_ColCom.dbo.AnagKIT" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
<DbSource ConnectionRef="MoonPro_IS_ConnectionString (Settings)" DbObjectName="MoonPro_IS_ColCom.dbo.TemplateKIT" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
<DeleteCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>DELETE FROM [dbo].[AnagKIT] WHERE (([CodArtParent] = @Original_CodArtParent))</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodArtParent" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodArtParent" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</DeleteCommand>
<InsertCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>INSERT INTO [dbo].[AnagKIT] ([CodArtParent]) VALUES (@CodArtParent);
SELECT CodArtParent FROM AnagKIT WHERE (CodArtParent = @CodArtParent)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodArtParent" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodArtParent" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</InsertCommand>
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT CodArtParent FROM dbo.AnagKIT</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
<UpdateCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>UPDATE [dbo].[AnagKIT] SET [CodArtParent] = @CodArtParent WHERE (([CodArtParent] = @Original_CodArtParent));
SELECT CodArtParent FROM AnagKIT WHERE (CodArtParent = @CodArtParent)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodArtParent" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodArtParent" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodArtParent" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodArtParent" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</UpdateCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="CodArtParent" DataSetColumn="CodArtParent" />
</Mappings>
<Sources />
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="CompKITTableAdapter" GeneratorDataComponentClassName="CompKITTableAdapter" Name="CompKIT" UserDataComponentName="CompKITTableAdapter">
<MainSource>
<DbSource ConnectionRef="MoonPro_IS_ConnectionString (Settings)" DbObjectName="MoonPro_IS_ColCom.dbo.CompKIT" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
<DeleteCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>DELETE FROM [dbo].[CompKIT] WHERE (([CodArtParent] = @Original_CodArtParent) AND ([CodArtChild] = @Original_CodArtChild) AND ([Qty] = @Original_Qty))</CommandText>
<CommandText>DELETE FROM [dbo].[TemplateKIT] WHERE (([CodArtParent] = @Original_CodArtParent) AND ([CodArtChild] = @Original_CodArtChild) AND ([Qty] = @Original_Qty))</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodArtParent" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodArtParent" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodArtChild" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodArtChild" SourceColumnNullMapping="false" SourceVersion="Original" />
@@ -137,8 +94,8 @@ SELECT CodArtParent FROM AnagKIT WHERE (CodArtParent = @CodArtParent)</CommandTe
</DeleteCommand>
<InsertCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>INSERT INTO [dbo].[CompKIT] ([CodArtParent], [CodArtChild], [Qty]) VALUES (@CodArtParent, @CodArtChild, @Qty);
SELECT CodArtParent, CodArtChild, Qty FROM CompKIT WHERE (CodArtChild = @CodArtChild) AND (CodArtParent = @CodArtParent)</CommandText>
<CommandText>INSERT INTO [dbo].[TemplateKIT] ([CodArtParent], [CodArtChild], [Qty]) VALUES (@CodArtParent, @CodArtChild, @Qty);
SELECT CodArtParent, CodArtChild, Qty FROM TemplateKIT WHERE (CodArtChild = @CodArtChild) AND (CodArtParent = @CodArtParent)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodArtParent" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodArtParent" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodArtChild" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodArtChild" SourceColumnNullMapping="false" SourceVersion="Current" />
@@ -148,14 +105,14 @@ SELECT CodArtParent, CodArtChild, Qty FROM CompKIT WHERE (CodArtChild = @CodArtC
</InsertCommand>
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT CodArtParent, CodArtChild, Qty FROM dbo.CompKIT</CommandText>
<CommandText>SELECT CodArtParent, CodArtChild, Qty FROM dbo.TemplateKIT</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
<UpdateCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>UPDATE [dbo].[CompKIT] SET [CodArtParent] = @CodArtParent, [CodArtChild] = @CodArtChild, [Qty] = @Qty WHERE (([CodArtParent] = @Original_CodArtParent) AND ([CodArtChild] = @Original_CodArtChild) AND ([Qty] = @Original_Qty));
SELECT CodArtParent, CodArtChild, Qty FROM CompKIT WHERE (CodArtChild = @CodArtChild) AND (CodArtParent = @CodArtParent)</CommandText>
<CommandText>UPDATE [dbo].[TemplateKIT] SET [CodArtParent] = @CodArtParent, [CodArtChild] = @CodArtChild, [Qty] = @Qty WHERE (([CodArtParent] = @Original_CodArtParent) AND ([CodArtChild] = @Original_CodArtChild) AND ([Qty] = @Original_Qty));
SELECT CodArtParent, CodArtChild, Qty FROM TemplateKIT WHERE (CodArtChild = @CodArtChild) AND (CodArtParent = @CodArtParent)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodArtParent" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodArtParent" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodArtChild" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodArtChild" SourceColumnNullMapping="false" SourceVersion="Current" />
@@ -173,7 +130,129 @@ SELECT CodArtParent, CodArtChild, Qty FROM CompKIT WHERE (CodArtChild = @CodArtC
<Mapping SourceColumn="CodArtChild" DataSetColumn="CodArtChild" />
<Mapping SourceColumn="Qty" DataSetColumn="Qty" />
</Mappings>
<Sources />
<Sources>
<DbSource ConnectionRef="MoonPro_IS_ConnectionString (Settings)" DbObjectName="MoonPro_IS_ColCom.dbo.stp_TemplateKit_Search" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getBySearch" GetMethodModifier="Public" GetMethodName="getBySearch" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getBySearch" UserSourceName="getBySearch">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_TemplateKit_Search</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodArtParent" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodArtChild" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="MoonPro_IS_ConnectionString (Settings)" DbObjectName="MoonPro_IS_ColCom.dbo.stp_TemplateKIT_upsert" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="upsertQuery" Modifier="Public" Name="upsertQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="upsertQuery">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_TemplateKIT_upsert</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</Sources>
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="IstanzeKITTableAdapter" GeneratorDataComponentClassName="IstanzeKITTableAdapter" Name="IstanzeKIT" UserDataComponentName="IstanzeKITTableAdapter">
<MainSource>
<DbSource ConnectionRef="MoonPro_IS_ConnectionString (Settings)" DbObjectName="MoonPro_IS_ColCom.dbo.IstanzeKIT" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
<DeleteCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>DELETE FROM [dbo].[IstanzeKIT] WHERE (([KeyKit] = @Original_KeyKit) AND ([KeyExtOrd] = @Original_KeyExtOrd) AND ([CodArtParent] = @Original_CodArtParent) AND ([CodArtChild] = @Original_CodArtChild) AND ([QtyKIT] = @Original_QtyKIT) AND ([QtyART] = @Original_QtyART))</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_KeyKit" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="KeyKit" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_KeyExtOrd" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="KeyExtOrd" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodArtParent" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodArtParent" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodArtChild" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodArtChild" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_QtyKIT" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="QtyKIT" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_QtyART" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="QtyART" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</DeleteCommand>
<InsertCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>INSERT INTO [dbo].[IstanzeKIT] ([KeyKit], [KeyExtOrd], [CodArtParent], [CodArtChild], [QtyKIT], [QtyART]) VALUES (@KeyKit, @KeyExtOrd, @CodArtParent, @CodArtChild, @QtyKIT, @QtyART);
SELECT KeyKit, KeyExtOrd, CodArtParent, CodArtChild, QtyKIT, QtyART FROM IstanzeKIT WHERE (KeyExtOrd = @KeyExtOrd) AND (KeyKit = @KeyKit)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@KeyKit" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="KeyKit" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@KeyExtOrd" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="KeyExtOrd" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodArtParent" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodArtParent" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodArtChild" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodArtChild" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@QtyKIT" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="QtyKIT" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@QtyART" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="QtyART" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</InsertCommand>
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT KeyKit, KeyExtOrd, CodArtParent, CodArtChild, QtyKIT, QtyART FROM dbo.IstanzeKIT</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
<UpdateCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>UPDATE [dbo].[IstanzeKIT] SET [KeyKit] = @KeyKit, [KeyExtOrd] = @KeyExtOrd, [CodArtParent] = @CodArtParent, [CodArtChild] = @CodArtChild, [QtyKIT] = @QtyKIT, [QtyART] = @QtyART WHERE (([KeyKit] = @Original_KeyKit) AND ([KeyExtOrd] = @Original_KeyExtOrd) AND ([CodArtParent] = @Original_CodArtParent) AND ([CodArtChild] = @Original_CodArtChild) AND ([QtyKIT] = @Original_QtyKIT) AND ([QtyART] = @Original_QtyART));
SELECT KeyKit, KeyExtOrd, CodArtParent, CodArtChild, QtyKIT, QtyART FROM IstanzeKIT WHERE (KeyExtOrd = @KeyExtOrd) AND (KeyKit = @KeyKit)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@KeyKit" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="KeyKit" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@KeyExtOrd" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="KeyExtOrd" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodArtParent" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodArtParent" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodArtChild" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodArtChild" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@QtyKIT" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="QtyKIT" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@QtyART" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="QtyART" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_KeyKit" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="KeyKit" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_KeyExtOrd" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="KeyExtOrd" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodArtParent" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodArtParent" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodArtChild" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodArtChild" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_QtyKIT" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="QtyKIT" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_QtyART" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="QtyART" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</UpdateCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="KeyKit" DataSetColumn="KeyKit" />
<Mapping SourceColumn="KeyExtOrd" DataSetColumn="KeyExtOrd" />
<Mapping SourceColumn="CodArtParent" DataSetColumn="CodArtParent" />
<Mapping SourceColumn="CodArtChild" DataSetColumn="CodArtChild" />
<Mapping SourceColumn="QtyKIT" DataSetColumn="QtyKIT" />
<Mapping SourceColumn="QtyART" DataSetColumn="QtyART" />
</Mappings>
<Sources>
<DbSource ConnectionRef="MoonPro_IS_ConnectionString (Settings)" DbObjectName="MoonPro_IS_ColCom.dbo.stp_IstanzeKit_Search" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getBySearch" GetMethodModifier="Public" GetMethodName="getBySearch" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getBySearch" UserSourceName="getBySearch">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_IstanzeKit_Search</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@KeyKit" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@KeyExtOrd" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodArtParent" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodArtChild" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="MoonPro_IS_ConnectionString (Settings)" DbObjectName="MoonPro_IS_ColCom.dbo.stp_IstanzeKit_insert" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="insertQuery" Modifier="Public" Name="insertQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="insertQuery">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_IstanzeKit_insert</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@KeyKit" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@KeyExtOrd" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodArtParent" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodArtChild" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@QtyKIT" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@QtyART" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</Sources>
</TableAdapter>
</Tables>
<Sources />
@@ -212,20 +291,7 @@ SELECT CodArtParent, CodArtChild, Qty FROM CompKIT WHERE (CodArtChild = @CodArtC
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="AnagKIT" msprop:Generator_TableClassName="AnagKITDataTable" msprop:Generator_TableVarName="tableAnagKIT" msprop:Generator_TablePropName="AnagKIT" msprop:Generator_RowDeletingName="AnagKITRowDeleting" msprop:Generator_RowChangingName="AnagKITRowChanging" msprop:Generator_RowEvHandlerName="AnagKITRowChangeEventHandler" msprop:Generator_RowDeletedName="AnagKITRowDeleted" msprop:Generator_UserTableName="AnagKIT" msprop:Generator_RowChangedName="AnagKITRowChanged" msprop:Generator_RowEvArgName="AnagKITRowChangeEvent" msprop:Generator_RowClassName="AnagKITRow">
<xs:complexType>
<xs:sequence>
<xs:element name="CodArtParent" msprop:Generator_ColumnVarNameInTable="columnCodArtParent" msprop:Generator_ColumnPropNameInRow="CodArtParent" msprop:Generator_ColumnPropNameInTable="CodArtParentColumn" msprop:Generator_UserColumnName="CodArtParent">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="CompKIT" msprop:Generator_TableClassName="CompKITDataTable" msprop:Generator_TableVarName="tableCompKIT" msprop:Generator_TablePropName="CompKIT" msprop:Generator_RowDeletingName="CompKITRowDeleting" msprop:Generator_RowChangingName="CompKITRowChanging" msprop:Generator_RowEvHandlerName="CompKITRowChangeEventHandler" msprop:Generator_RowDeletedName="CompKITRowDeleted" msprop:Generator_UserTableName="CompKIT" msprop:Generator_RowChangedName="CompKITRowChanged" msprop:Generator_RowEvArgName="CompKITRowChangeEvent" msprop:Generator_RowClassName="CompKITRow">
<xs:element name="TemplateKIT" msprop:Generator_TableClassName="TemplateKITDataTable" msprop:Generator_TableVarName="tableTemplateKIT" msprop:Generator_TablePropName="TemplateKIT" msprop:Generator_RowDeletingName="TemplateKITRowDeleting" msprop:Generator_RowChangingName="TemplateKITRowChanging" msprop:Generator_RowEvHandlerName="TemplateKITRowChangeEventHandler" msprop:Generator_RowDeletedName="TemplateKITRowDeleted" msprop:Generator_UserTableName="TemplateKIT" msprop:Generator_RowChangedName="TemplateKITRowChanged" msprop:Generator_RowEvArgName="TemplateKITRowChangeEvent" msprop:Generator_RowClassName="TemplateKITRow">
<xs:complexType>
<xs:sequence>
<xs:element name="CodArtParent" msprop:Generator_ColumnVarNameInTable="columnCodArtParent" msprop:Generator_ColumnPropNameInRow="CodArtParent" msprop:Generator_ColumnPropNameInTable="CodArtParentColumn" msprop:Generator_UserColumnName="CodArtParent">
@@ -246,20 +312,57 @@ SELECT CodArtParent, CodArtChild, Qty FROM CompKIT WHERE (CodArtChild = @CodArtC
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="IstanzeKIT" msprop:Generator_TableClassName="IstanzeKITDataTable" msprop:Generator_TableVarName="tableIstanzeKIT" msprop:Generator_TablePropName="IstanzeKIT" msprop:Generator_RowDeletingName="IstanzeKITRowDeleting" msprop:Generator_RowChangingName="IstanzeKITRowChanging" msprop:Generator_RowEvHandlerName="IstanzeKITRowChangeEventHandler" msprop:Generator_RowDeletedName="IstanzeKITRowDeleted" msprop:Generator_UserTableName="IstanzeKIT" msprop:Generator_RowChangedName="IstanzeKITRowChanged" msprop:Generator_RowEvArgName="IstanzeKITRowChangeEvent" msprop:Generator_RowClassName="IstanzeKITRow">
<xs:complexType>
<xs:sequence>
<xs:element name="KeyKit" msprop:Generator_ColumnVarNameInTable="columnKeyKit" msprop:Generator_ColumnPropNameInRow="KeyKit" msprop:Generator_ColumnPropNameInTable="KeyKitColumn" msprop:Generator_UserColumnName="KeyKit">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="KeyExtOrd" msprop:Generator_ColumnVarNameInTable="columnKeyExtOrd" msprop:Generator_ColumnPropNameInRow="KeyExtOrd" msprop:Generator_ColumnPropNameInTable="KeyExtOrdColumn" msprop:Generator_UserColumnName="KeyExtOrd">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CodArtParent" msprop:Generator_ColumnVarNameInTable="columnCodArtParent" msprop:Generator_ColumnPropNameInRow="CodArtParent" msprop:Generator_ColumnPropNameInTable="CodArtParentColumn" msprop:Generator_UserColumnName="CodArtParent">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CodArtChild" msprop:Generator_ColumnVarNameInTable="columnCodArtChild" msprop:Generator_ColumnPropNameInRow="CodArtChild" msprop:Generator_ColumnPropNameInTable="CodArtChildColumn" msprop:Generator_UserColumnName="CodArtChild">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="QtyKIT" msprop:Generator_ColumnVarNameInTable="columnQtyKIT" msprop:Generator_ColumnPropNameInRow="QtyKIT" msprop:Generator_ColumnPropNameInTable="QtyKITColumn" msprop:Generator_UserColumnName="QtyKIT" type="xs:int" />
<xs:element name="QtyART" msprop:Generator_ColumnVarNameInTable="columnQtyART" msprop:Generator_ColumnPropNameInRow="QtyART" msprop:Generator_ColumnPropNameInTable="QtyARTColumn" msprop:Generator_UserColumnName="QtyART" type="xs:int" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:TransitoDati" />
<xs:field xpath="mstns:IdxRequest" />
</xs:unique>
<xs:unique name="AnagKIT_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:AnagKIT" />
<xs:field xpath="mstns:CodArtParent" />
</xs:unique>
<xs:unique name="CompKIT_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:CompKIT" />
<xs:unique name="TemplateKIT_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:TemplateKIT" />
<xs:field xpath="mstns:CodArtParent" />
<xs:field xpath="mstns:CodArtChild" />
</xs:unique>
<xs:unique name="IstanzeKIT_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:IstanzeKIT" />
<xs:field xpath="mstns:KeyKit" />
<xs:field xpath="mstns:KeyExtOrd" />
</xs:unique>
</xs:element>
</xs:schema>
+2 -2
View File
@@ -7,8 +7,8 @@
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="0" ViewPortY="0" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes>
<Shape ID="DesignTable:TransitoDati" ZOrder="3" X="143" Y="127" Height="227" Width="255" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="145" />
<Shape ID="DesignTable:AnagKIT" ZOrder="2" X="648" Y="149" Height="112" Width="227" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="54" />
<Shape ID="DesignTable:CompKIT" ZOrder="1" X="630" Y="335" Height="158" Width="232" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="99" />
<Shape ID="DesignTable:TemplateKIT" ZOrder="2" X="897" Y="198" Height="204" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="99" />
<Shape ID="DesignTable:IstanzeKIT" ZOrder="1" X="505" Y="368" Height="273" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="168" />
</Shapes>
<Connectors />
</DiagramLayout>