fix visualizzazione INT/EXT + dettaglio composizione AL..
This commit is contained in:
Generated
+32
-33
@@ -1,87 +1,86 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// <generato automaticamente>
|
||||
// Codice generato da uno strumento.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
|
||||
// il codice viene rigenerato.
|
||||
// </generato automaticamente>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace GMW
|
||||
{
|
||||
|
||||
|
||||
namespace GMW {
|
||||
|
||||
|
||||
public partial class AnagFormatiDtx {
|
||||
|
||||
/// <summary>
|
||||
/// mod_ricercaGenerica control.
|
||||
/// Controllo mod_ricercaGenerica.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::mod_ricercaGenerica mod_ricercaGenerica;
|
||||
|
||||
/// <summary>
|
||||
/// mod_anagFormatiDtx control.
|
||||
/// Controllo mod_anagFormatiDtx.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::GMW.WebUserControls.mod_anagFormatiDtx mod_anagFormatiDtx;
|
||||
|
||||
/// <summary>
|
||||
/// updPanel control.
|
||||
/// Controllo updPanel.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// 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.UpdatePanel updPanel;
|
||||
|
||||
/// <summary>
|
||||
/// mod_specDmtx control.
|
||||
/// Controllo mod_specDmtx.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::GMW.WebUserControls.mod_specDmtx mod_specDmtx;
|
||||
|
||||
/// <summary>
|
||||
/// mod_trascFormDmtx control.
|
||||
/// Controllo mod_trascFormDmtx.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::GMW.WebUserControls.mod_trascFormDmtx mod_trascFormDmtx;
|
||||
|
||||
/// <summary>
|
||||
/// mod_trascPn2Part control.
|
||||
/// Controllo mod_trascPn2Part.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::GMW.WebUserControls.mod_trascPn2Part mod_trascPn2Part;
|
||||
|
||||
/// <summary>
|
||||
/// mod_trascPn2Pn control.
|
||||
/// Controllo mod_trascPn2Pn.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::GMW.WebUserControls.mod_trascPn2Pn mod_trascPn2Pn;
|
||||
|
||||
/// <summary>
|
||||
/// TabName control.
|
||||
/// Controllo TabName.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// 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 TabName;
|
||||
}
|
||||
|
||||
+5
-2
@@ -1,14 +1,17 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/FullPage.master" AutoEventWireup="true" CodeBehind="TK_KA_crea.aspx.cs" Inherits="GMW.TK_KA_crea" %>
|
||||
|
||||
<%@ Register Src="WebUserControls/mod_selLineaNtDt.ascx" TagName="mod_selLineaNtDt" TagPrefix="uc1" %>
|
||||
<%@ Register Src="WebUserControls/mod_storicoAzioniOperatore.ascx" TagName="mod_storicoAzioniOperatore" TagPrefix="uc2" %>
|
||||
<%@ Register Src="WebUserControls/mod_storicoAzioniOperatore.ascx" TagName="mod_storicoAzioniOperatore" TagPrefix="uc2" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_kitAnime.ascx" TagPrefix="uc1" TagName="mod_kitAnime" %>
|
||||
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
|
||||
</asp:Content>
|
||||
<div class="my-1 py-0 text-center text-success">
|
||||
<div style="font-size: 2em;">LINEA ANIME <b>INTERNE</b></div>
|
||||
</div>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="MCon" runat="server">
|
||||
<uc1:mod_selLineaNtDt ID="mod_selLineaNtDt1" runat="server" showSelNtDt="false" showSelPostazione="false" preCodLineNT="0" preCodLineDT="1" cssNormal="btn btn-default btn-lg" cssSelected="btn btn-primary btn-lg active" />
|
||||
<asp:Panel runat="server" ID="pnlAll" CssClass="stileAttesa">
|
||||
|
||||
+37
-2
@@ -1,8 +1,43 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/FullPage.master" AutoEventWireup="true" CodeBehind="TK_KA_creaExt.aspx.cs" Inherits="GMW.TK_KA_creaExt" %>
|
||||
|
||||
<%@ Register Src="WebUserControls/mod_selLineaNtDt.ascx" TagName="mod_selLineaNtDt" TagPrefix="uc1" %>
|
||||
<%@ Register Src="WebUserControls/mod_storicoAzioniOperatore.ascx" TagName="mod_storicoAzioniOperatore" TagPrefix="uc2" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_kitAnime.ascx" TagPrefix="uc1" TagName="mod_kitAnime" %>
|
||||
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
|
||||
<div class="my-1 py-0 text-center text-danger">
|
||||
<div style="font-size: 2em;">LINEA ANIME <b>ESTERNE</b></div>
|
||||
</div>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="MCon" runat="server">
|
||||
creazione anime EXT
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="MCon" runat="server">
|
||||
<uc1:mod_selLineaNtDt ID="mod_selLineaNtDt1" runat="server" showSelNtDt="false" showSelPostazione="false" preCodLineNT="0" preCodLineDT="1" cssNormal="btn btn-default btn-lg" cssSelected="btn btn-primary btn-lg active" />
|
||||
<asp:Panel runat="server" ID="pnlAll" CssClass="stileAttesa">
|
||||
<div class="container-fluid">
|
||||
<asp:Panel ID="pnlSAO" runat="server" ScrollBars="None" CssClass="nav sidebar ombra" BackColor="#696969">
|
||||
<div style="float: left; height: 100%; min-height: 300px; min-width: 240px; margin: -15px;">
|
||||
<div style="background-color: #696969; margin: 4px;">
|
||||
<uc2:mod_storicoAzioniOperatore ID="mod_storicoAzioniOperatore1" runat="server" showDelete="true" />
|
||||
</div>
|
||||
</div>
|
||||
</asp:Panel>
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="msgBoxBarcode">
|
||||
<div class="message">
|
||||
<asp:Label runat="server" ID="lblMessaggi" Text=".." />
|
||||
</div>
|
||||
<div class="warning">
|
||||
<asp:Label runat="server" ID="lblWarning" Text="" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12">
|
||||
<uc1:mod_kitAnime runat="server" ID="mod_kitAnime" animeExt="true" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</asp:Panel>
|
||||
</asp:Content>
|
||||
|
||||
+115
-7
@@ -1,9 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using GMW_data;
|
||||
using SteamWare;
|
||||
using System;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace GMW
|
||||
{
|
||||
@@ -11,7 +9,117 @@ namespace GMW
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
updatePrinterPostazione();
|
||||
// fix css...
|
||||
Postazione.CssClass = "stileAttesa";
|
||||
// imposto pos abilitata x cancellazione
|
||||
mod_storicoAzioniOperatore1.IdxPosizione2del = memLayer.ML.cdvi("IdxPosizioneAnime");
|
||||
// pulisco dir temp dai file dei cartellini stampati
|
||||
reportPrinter.obj.pulisciDir();
|
||||
}
|
||||
// update vari...
|
||||
doUpdate();
|
||||
mod_storicoAzioniOperatore1.eh_stampa += new EventHandler(mod_storicoAzioniOperatore1_eh_stampa);
|
||||
mod_kitAnime.doUpdate();
|
||||
mod_kitAnime.eh_reqUpdate += mod_PostRX_NT1_eh_reqUpdate;
|
||||
mod_selLineaNtDt1.eh_lineSelected += mod_selLineaNtDt1_eh_doRefresh;
|
||||
mod_selLineaNtDt1.eh_showHideStorico += mod_selLineaNtDt1_eh_showHideStorico;
|
||||
}
|
||||
/// <summary>
|
||||
/// Handles the showHideStorico event of the mod_selLineaNtDt1_eh control.
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
private void mod_selLineaNtDt1_eh_showHideStorico(object sender, EventArgs e)
|
||||
{
|
||||
fixStorico();
|
||||
}
|
||||
/// <summary>
|
||||
/// Handles the doRefresh event of the mod_selLineaNtDt1_eh control.
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
private void mod_selLineaNtDt1_eh_doRefresh(object sender, EventArgs e)
|
||||
{
|
||||
doUpdate();
|
||||
mod_kitAnime.doUpdate();
|
||||
}
|
||||
/// <summary>
|
||||
/// richiesta update del controllo SAO
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
void mod_PostRX_NT1_eh_reqUpdate(object sender, EventArgs e)
|
||||
{
|
||||
doUpdate();
|
||||
}
|
||||
/// <summary>
|
||||
/// aggiorna messaggi e css
|
||||
/// </summary>
|
||||
private void updateMessCss()
|
||||
{
|
||||
lblWarning.Text = Postazione.warningText;
|
||||
lblMessaggi.Text = Postazione.messaggiText;
|
||||
pnlAll.CssClass = Postazione.CssClass;
|
||||
}
|
||||
/// <summary>
|
||||
/// richiesta (ri)stampa UDC
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
void mod_storicoAzioniOperatore1_eh_stampa(object sender, EventArgs e)
|
||||
{
|
||||
mod_kitAnime.ristampa();
|
||||
}
|
||||
/// <summary>
|
||||
/// sistemo visualizzazione pannelli
|
||||
/// </summary>
|
||||
private void fixPanels()
|
||||
{
|
||||
// default: moduli visibili (non serve linea)..
|
||||
bool enableBtn = true;
|
||||
mod_kitAnime.Visible = enableBtn;
|
||||
fixStorico();
|
||||
}
|
||||
/// <summary>
|
||||
/// wrapper traduzione
|
||||
/// </summary>
|
||||
/// <param name="lemma"></param>
|
||||
/// <returns></returns>
|
||||
public string traduci(object lemma)
|
||||
{
|
||||
return user_std.UtSn.Traduci(lemma.ToString());
|
||||
}
|
||||
/// <summary>
|
||||
/// toggle controllo storico
|
||||
/// </summary>
|
||||
private void fixStorico()
|
||||
{
|
||||
pnlSAO.Visible = Postazione.showStorico;
|
||||
}
|
||||
/// <summary>
|
||||
/// update generale controlli
|
||||
/// </summary>
|
||||
private void doUpdate()
|
||||
{
|
||||
updateMessCss();
|
||||
fixPanels();
|
||||
mod_storicoAzioniOperatore1.doUpdate();
|
||||
}
|
||||
/// <summary>
|
||||
/// calcola postazione corrente (ip, name, printer)
|
||||
/// </summary>
|
||||
private void updatePrinterPostazione()
|
||||
{
|
||||
Postazione.IP = Request.UserHostName;
|
||||
Postazione.setupPrinter();
|
||||
// mostro warning se postazione non configurata...
|
||||
if (Postazione.printer == "n.d.")
|
||||
{
|
||||
lblWarning.Text = traduci("lblWarnPostNonConf");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+63
@@ -11,5 +11,68 @@ namespace GMW {
|
||||
|
||||
|
||||
public partial class TK_KA_creaExt {
|
||||
|
||||
/// <summary>
|
||||
/// Controllo mod_selLineaNtDt1.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::GMW.WebUserControls.mod_selLineaNtDt mod_selLineaNtDt1;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo pnlAll.
|
||||
/// </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.Panel pnlAll;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo pnlSAO.
|
||||
/// </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.Panel pnlSAO;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo mod_storicoAzioniOperatore1.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::GMW.WebUserControls.mod_storicoAzioniOperatore mod_storicoAzioniOperatore1;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblMessaggi.
|
||||
/// </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 lblMessaggi;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblWarning.
|
||||
/// </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 lblWarning;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo mod_kitAnime.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Campo generato automaticamente.
|
||||
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||
/// </remarks>
|
||||
protected global::GMW.WebUserControls.mod_kitAnime mod_kitAnime;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,12 +6,37 @@
|
||||
<webopt:BundleReference ID="BundleReference2" runat="server" Path="~/Content/themes/base/css" />
|
||||
<% } %>
|
||||
|
||||
<asp:HiddenField runat="server" id="hfAnimeExt" />
|
||||
<asp:HiddenField runat="server" ID="hfAnimeExt" />
|
||||
<asp:HiddenField runat="server" ID="hfCodKit" />
|
||||
<div class="row">
|
||||
<div class="col-sm-4 col-lg-3">
|
||||
Elenco UDC nel KIT
|
||||
<br />
|
||||
esterno: <%: animeExt.ToString() %>
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<b>Composizione KIT</b>
|
||||
</div>
|
||||
<div class="panel-body bg-default" >
|
||||
<asp:GridView ID="grViewKit" runat="server" DataSourceID="odsKit" AutoGenerateColumns="False" DataKeyNames="CodKIT,Particolare" CssClass="table table-striped table-condensed table-responsive">
|
||||
<HeaderStyle CssClass="default" />
|
||||
<PagerStyle CssClass="active GridPager" />
|
||||
<PagerSettings Mode="NumericFirstLast" />
|
||||
<SelectedRowStyle CssClass="info" />
|
||||
<EmptyDataTemplate>
|
||||
Nessun Record
|
||||
</EmptyDataTemplate>
|
||||
<Columns>
|
||||
<%--<asp:BoundField DataField="CodKIT" HeaderText="CodKIT" ReadOnly="True" SortExpression="CodKIT" />--%>
|
||||
<asp:BoundField DataField="Particolare" HeaderText="Particolare" ReadOnly="True" SortExpression="Particolare" />
|
||||
<asp:BoundField DataField="QtaPart" HeaderText="Qta" SortExpression="QtaPart" />
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource ID="odsKit" runat="server" SelectMethod="getByKitCalc" TypeName="GMW_data.DS_magazzinoTableAdapters.RelKit2PartTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="hfCodKit" Name="CodKIT" PropertyName="Value" Type="String" />
|
||||
<asp:ControlParameter ControlID="txtQta" DefaultValue="0" Name="QtaKit" PropertyName="Text" Type="Int32" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4 col-lg-6">
|
||||
<div>
|
||||
|
||||
@@ -80,6 +80,8 @@ namespace GMW.WebUserControls
|
||||
{ }
|
||||
lblDescrAttivo.Text = descr;
|
||||
lblDisegno.Text = disegno;
|
||||
hfCodKit.Value = currKitAnime;
|
||||
grViewKit.DataBind();
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -201,6 +203,7 @@ namespace GMW.WebUserControls
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal(string.Format("currKitAnime_{0}", uid), value, memLayer.ML.confReadBool("keepParticolareSel"));
|
||||
hfCodKit.Value = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
@@ -383,6 +386,7 @@ namespace GMW.WebUserControls
|
||||
{ }
|
||||
lblDescrAttivo.Text = descr;
|
||||
lblDisegno.Text = disegno;
|
||||
grViewKit.DataBind();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
+27
@@ -39,6 +39,33 @@ namespace GMW.WebUserControls {
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfAnimeExt;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo hfCodKit.
|
||||
/// </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 hfCodKit;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo grViewKit.
|
||||
/// </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.GridView grViewKit;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo odsKit.
|
||||
/// </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.ObjectDataSource odsKit;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblParticolareAttivo.
|
||||
/// </summary>
|
||||
|
||||
@@ -4653,6 +4653,18 @@ SELECT CodKIT, Particolare, QtaPart FROM RelKit2Part WHERE (CodKIT = @CodKIT) AN
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="TK_GMW.dbo.stp_RK2P_getByKit" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByKitCalc" GetMethodModifier="Public" GetMethodName="getByKitCalc" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByKitCalc" UserSourceName="getByKitCalc">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_RK2P_getByKit</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="@CodKIT" Precision="0" ProviderType="NVarChar" Scale="0" Size="15" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@QtaKit" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="TK_GMW.dbo.stp_RK2P_insertQuery" 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="GetDataBy1" UserSourceName="insertQuery">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
Changes to this file may cause incorrect behavior and will be lost if
|
||||
the code is regenerated.
|
||||
</autogenerated>-->
|
||||
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-71" ViewPortY="565" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="403" ViewPortY="588" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
|
||||
<Shapes>
|
||||
<Shape ID="DesignTable:ElencoCartellini" ZOrder="6" X="147" Y="204" Height="457" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="306" />
|
||||
<Shape ID="DesignTable:AnagMag" ZOrder="45" X="1334" Y="24" Height="273" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="122" />
|
||||
@@ -43,7 +43,7 @@
|
||||
<Shape ID="DesignTable:ElencoTrattamenti" ZOrder="24" X="-219" Y="723" Height="434" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="283" />
|
||||
<Shape ID="DesignTable:v_A2U2D" ZOrder="41" X="-213" Y="1173" Height="250" Width="231" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="145" />
|
||||
<Shape ID="DesignTable:UDC_check4delete" ZOrder="38" X="-218" Y="1441" Height="113" Width="299" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="54" />
|
||||
<Shape ID="DesignTable:RelKit2Part" ZOrder="5" X="1203" Y="2224" Height="227" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="99" />
|
||||
<Shape ID="DesignTable:RelKit2Part" ZOrder="5" X="1203" Y="2224" Height="250" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="99" />
|
||||
<Shape ID="DesignTable:AnagKit" ZOrder="3" X="760" Y="2196" Height="250" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="99" />
|
||||
</Shapes>
|
||||
<Connectors>
|
||||
|
||||
Generated
+39
-9
@@ -45886,7 +45886,7 @@ SELECT CodKIT, Particolare, QtaPart FROM RelKit2Part WHERE (CodKIT = @CodKIT) AN
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
|
||||
private void InitCommandCollection() {
|
||||
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[4];
|
||||
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[5];
|
||||
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[0].Connection = this.Connection;
|
||||
this._commandCollection[0].CommandText = "SELECT CodKIT, Particolare, QtaPart FROM dbo.RelKit2Part";
|
||||
@@ -45900,21 +45900,28 @@ SELECT CodKIT, Particolare, QtaPart FROM RelKit2Part WHERE (CodKIT = @CodKIT) AN
|
||||
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Particolare", global::System.Data.SqlDbType.NVarChar, 15, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[2].Connection = this.Connection;
|
||||
this._commandCollection[2].CommandText = "dbo.stp_RK2P_insertQuery";
|
||||
this._commandCollection[2].CommandText = "dbo.stp_RK2P_getByKit";
|
||||
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("@CodKIT", global::System.Data.SqlDbType.NVarChar, 15, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Particolare", global::System.Data.SqlDbType.NVarChar, 15, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QtaPart", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QtaKit", 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_RK2P_updateQuery";
|
||||
this._commandCollection[3].CommandText = "dbo.stp_RK2P_insertQuery";
|
||||
this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodKIT", global::System.Data.SqlDbType.NVarChar, 15, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Particolare", global::System.Data.SqlDbType.NVarChar, 15, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodKIT", global::System.Data.SqlDbType.NVarChar, 15, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Particolare", global::System.Data.SqlDbType.NVarChar, 15, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QtaPart", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[4].Connection = this.Connection;
|
||||
this._commandCollection[4].CommandText = "dbo.stp_RK2P_updateQuery";
|
||||
this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodKIT", global::System.Data.SqlDbType.NVarChar, 15, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Particolare", global::System.Data.SqlDbType.NVarChar, 15, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Particolare", global::System.Data.SqlDbType.NVarChar, 15, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QtaPart", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
@@ -45941,6 +45948,29 @@ SELECT CodKIT, Particolare, QtaPart FROM RelKit2Part WHERE (CodKIT = @CodKIT) AN
|
||||
return dataTable;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
|
||||
public virtual DS_magazzino.RelKit2PartDataTable getByKitCalc(string CodKIT, global::System.Nullable<int> QtaKit) {
|
||||
this.Adapter.SelectCommand = this.CommandCollection[2];
|
||||
if ((CodKIT == null)) {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodKIT));
|
||||
}
|
||||
if ((QtaKit.HasValue == true)) {
|
||||
this.Adapter.SelectCommand.Parameters[2].Value = ((int)(QtaKit.Value));
|
||||
}
|
||||
else {
|
||||
this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
|
||||
}
|
||||
DS_magazzino.RelKit2PartDataTable dataTable = new DS_magazzino.RelKit2PartDataTable();
|
||||
this.Adapter.Fill(dataTable);
|
||||
return dataTable;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
@@ -46131,7 +46161,7 @@ SELECT CodKIT, Particolare, QtaPart FROM RelKit2Part WHERE (CodKIT = @CodKIT) AN
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int insertQuery(string CodKIT, string Particolare, global::System.Nullable<int> QtaPart) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2];
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3];
|
||||
if ((CodKIT == null)) {
|
||||
command.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
@@ -46171,7 +46201,7 @@ SELECT CodKIT, Particolare, QtaPart FROM RelKit2Part WHERE (CodKIT = @CodKIT) AN
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "15.0.0.0")]
|
||||
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
|
||||
public virtual int updateQuery(string Original_CodKIT, string Original_Particolare, string Particolare, global::System.Nullable<int> QtaPart) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3];
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4];
|
||||
if ((Original_CodKIT == null)) {
|
||||
command.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user