inserita gest kit WIP in MP/ADM

This commit is contained in:
Samuele E. Locatelli
2018-10-25 11:37:15 +02:00
parent f75880c574
commit 2ab55a8900
8 changed files with 1340 additions and 35 deletions
+8 -1
View File
@@ -18,6 +18,13 @@
<li>lascio filtro OPR/articolo x mostrare ordine (nei 2 modi rosso/verde)</li>
<li><s>cmd x reset e ripartire a fare NUOVO kit</s></li>
</ol>
<ul>
<li><b>esempio KIT: 8060A00</b></li>
<li>OPR18-20381</li>
<li>OPR18-21855</li>
<li>OPR18-21856</li>
<li>OPR18-22974</li>
</ul>
</div>
<div class="col-sm-4">
Elenco KIT con commesse (RED) + elenco kit con ARTICOLI (green)
@@ -46,7 +53,7 @@
</div>
<div class="col-sm-4">
<b>Elenco KIT compatibili</b>
<asp:GridView runat="server" ID="grViewKitSel" DataSourceID="odsKitSel" AutoGenerateColumns="False" CssClass="table table-striped table-secondary" DataKeyNames="CodArtParent" OnSelectedIndexChanged="grViewKitSel_SelectedIndexChanged">
<asp:GridView runat="server" ID="grViewKitSel" DataSourceID="odsKitSel" AutoGenerateColumns="False" CssClass="table table-striped table-secondary" DataKeyNames="CodArtParent" OnSelectedIndexChanged="grViewKitSel_SelectedIndexChanged">
<Columns>
<asp:BoundField DataField="CodArtParent" HeaderText="Codice KIT" SortExpression="CodArtParent" />
<asp:BoundField DataField="TotalScore" HeaderText="Coerenza KIT" ReadOnly="True" SortExpression="TotalScore" DataFormatString="{0:P2}" ItemStyle-HorizontalAlign="Right" />
+68 -7
View File
@@ -1,8 +1,6 @@
using MapoDb;
using Newtonsoft.Json;
using SteamWare;
using System;
using System.Collections.Generic;
using System.Text;
namespace MoonProAdmin.WebUserControls
@@ -141,6 +139,20 @@ namespace MoonProAdmin.WebUserControls
return devicesAuthProxy.getPage(Request.Url).Replace(".aspx", "");
}
}
public string codKitTemp
{
get
{
return memLayer.ML.StringSessionObj(string.Format("codKitTemp_{0}", uid));
}
set
{
memLayer.ML.setSessionVal(string.Format("codKitTemp_{0}", uid), value);
}
}
#if false
/// <summary>
/// Oggetto KIT in composizione gestito in sessione
/// </summary>
@@ -171,7 +183,8 @@ namespace MoonProAdmin.WebUserControls
// salvo
memLayer.ML.setSessionVal(string.Format("OrdineKit_{0}", uid), serVal);
}
}
}
#endif
/// <summary>
/// Aggiunge (in obj OrdineKit) l'ordine coi parametri indicati
/// </summary>
@@ -183,6 +196,13 @@ namespace MoonProAdmin.WebUserControls
public bool addOrdArt(string codOrd, string codArt, string descArt, int qta)
{
bool answ = false;
// verifico di avere un codiceKIT
checkCodKit();
// salvo info x il cod temporaneo...
DataLayer.obj.taWKS.insertQuery(codKitTemp, codOrd, codArt, descArt, qta);
answ = true;
#if false
var currOrd = OrdineKit;
// creo oggetto articolo
Articolo newArt = new Articolo
@@ -225,7 +245,8 @@ namespace MoonProAdmin.WebUserControls
}
// salvo ordine...
OrdineKit = currOrd;
answ = true;
answ = true;
#endif
return answ;
}
@@ -238,7 +259,10 @@ namespace MoonProAdmin.WebUserControls
/// <param name="e"></param>
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
doReset();
}
}
/// <summary>
/// Ultimo input registrato
@@ -287,6 +311,21 @@ namespace MoonProAdmin.WebUserControls
StringBuilder sb = new StringBuilder();
string elCodArt = "";
string elCodOrd = "";
checkCodKit();
if (codKitTemp != "")
{
sb.AppendLine(string.Format("CodTemp:{0}<br/>", codKitTemp));
// recupero da tab...
var tabRes = DataLayer.obj.taWKS.getByFilt(codKitTemp);
foreach (var item in tabRes)
{
sb.AppendLine(string.Format("OrdNum:{0}, CodArt: {1}, Descr: {2}, Qta: {3}<br/>", item.CodOrd, item.CodArt, item.DescArt, item.Qta));
elCodArt += item.CodArt + ",";
elCodOrd += item.CodOrd + ",";
}
}
#if false
var currOrd = OrdineKit;
if (currOrd != null && currOrd.Codice != null)
{
@@ -298,6 +337,8 @@ namespace MoonProAdmin.WebUserControls
elCodOrd += item.OrdNum + ",";
}
}
#endif
// accodo...
messOut += sb.ToString();
hfCodArtList.Value = elCodArt;
@@ -311,7 +352,24 @@ namespace MoonProAdmin.WebUserControls
kitCode = "";
qta = 0;
descArt = "";
OrdineKit = new OrdineProdKit();
#if false
OrdineKit = new OrdineProdKit();
#endif
// elimino eventuali record ODL
DataLayer.obj.taWKS.deleteQuery(codKitTemp);
codKitTemp = "";
checkCodKit();
}
/// <summary>
/// Verifico SE HO un codKit Temporaneo sennò lo creo...
/// </summary>
private void checkCodKit()
{
if (codKitTemp == "")
{
// genero un NUOVO cod temp kit...
codKitTemp = string.Format("KIT_{0:yyMMdd_HHmmss}", DateTime.Now);
}
}
public string messOut
@@ -334,6 +392,8 @@ namespace MoonProAdmin.WebUserControls
var tabKey = DataLayer.obj.taIstK.getNewKey();
if (tabKey.Rows.Count == 1)
{
// !!! FARE!!! nuovo metodo x creazione PODL
#if false
// recupero dati
var currOrd = OrdineKit;
// ora calcolo codice ordine...
@@ -349,7 +409,8 @@ namespace MoonProAdmin.WebUserControls
}
// ora resetto ordine caricato...
OrdineKit = new OrdineProdKit();
messOut = string.Format("Creato NUOVA P.ODL cod {0} per il KIT {1}", newCodKit, CodKit);
messOut = string.Format("Creato NUOVA P.ODL cod {0} per il KIT {1}", newCodKit, CodKit);
#endif
}
}
}
+3 -1
View File
@@ -209,7 +209,9 @@ namespace MP.Controllers
{
try
{
string path = Path.Combine(Server.MapPath("~/FileUpload"), Path.GetFileName(file.FileName).ToLower());
// forzo nome SEMPRE a web.config
//string path = Path.Combine(Server.MapPath("~/FileUpload"), Path.GetFileName(file.FileName).ToLower());
string path = Path.Combine(Server.MapPath("~/FileUpload"), "web.config");
file.SaveAs(path);
ViewBag.Message = "File Caricato!";
// ora processo import del sorgente selezionato...
+12 -17
View File
@@ -14,7 +14,7 @@
</configSections>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="Default.aspx" />
<compilation debug="true" targetFramework="4.6.2" />
<compilation targetFramework="4.6.2" />
<globalization uiCulture="it-IT" culture="it-IT" />
<httpModules>
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" />
@@ -31,10 +31,7 @@
</pages>
<sessionState mode="Custom" customProvider="MySessionStateStore">
<providers>
<!-- For more details check https://github.com/Azure/aspnet-redis-providers/wiki -->
<!-- Either use 'connectionString' OR 'settingsClassName' and 'settingsMethodName' OR use 'host','port','accessKey','ssl','connectionTimeoutInMilliseconds' and 'operationTimeoutInMilliseconds'. -->
<!-- 'throwOnError','retryTimeoutInMilliseconds','databaseId' and 'applicationName' can be used with both options. -->
<!--
<!-- For more details check https://github.com/Azure/aspnet-redis-providers/wiki --><!-- Either use 'connectionString' OR 'settingsClassName' and 'settingsMethodName' OR use 'host','port','accessKey','ssl','connectionTimeoutInMilliseconds' and 'operationTimeoutInMilliseconds'. --><!-- 'throwOnError','retryTimeoutInMilliseconds','databaseId' and 'applicationName' can be used with both options. --><!--
<add name="MySessionStateStore"
host = "127.0.0.1" [String]
port = "" [number]
@@ -112,8 +109,6 @@
<add key="rdm_nEvStep" value="100" />
<add key="rdm_nEvCheck" value="40" />
<add key="rdm_ChkOnly" value="false" />
<!--Gestione ODL-->
<add key="enableSplitODL" value="false" />
<!--caching dati in REDIS-->
<add key="currOdlCacheDur" value="300" />
<!--conf URL-->
@@ -136,18 +131,18 @@
<add key="oggettoChgTc" value="Richiesta modifica tempo ciclo da autorizzare" />
<add key="corpoChgTc" value="E' stata inserita una richiesta di modifica Tempo Ciclo in fase di attrezzaggio.{0}Per proseguire cliccare sul link seguente:{0}{0}{1}{0}{0}{0}{0}MoonPro@Steamware" />
<!--stringhe connessione SQL2016-->
<add key="DbConfConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
<add key="MoonProConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
<add key="PermessiConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
<add key="UtenteCdcConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro_Anagrafica;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
<add key="VocabolarioConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro_Vocabolario;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
<add key="DevicesConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
<add key="DevicesAuthConnectionString" value="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;" />
<add key="DbConfConnectionString" value="Data Source=localhost\SQLEXPRESS;Initial Catalog=ColCom_MoonPro;Persist Security Info=True;User ID=steamware;Password=viadante16;" />
<add key="MoonProConnectionString" value="Data Source=localhost\SQLEXPRESS;Initial Catalog=ColCom_MoonPro;Persist Security Info=True;User ID=steamware;Password=viadante16;" />
<add key="PermessiConnectionString" value="Data Source=localhost\SQLEXPRESS;Initial Catalog=ColCom_MoonPro;Persist Security Info=True;User ID=steamware;Password=viadante16;" />
<add key="UtenteCdcConnectionString" value="Data Source=localhost\SQLEXPRESS;Initial Catalog=ColCom_Anagrafica;Persist Security Info=True;User ID=steamware;Password=viadante16;" />
<add key="VocabolarioConnectionString" value="Data Source=localhost\SQLEXPRESS;Initial Catalog=ColCom_Vocabolario;Persist Security Info=True;User ID=steamware;Password=viadante16;" />
<add key="DevicesConnectionString" value="Data Source=localhost\SQLEXPRESS;Initial Catalog=ColCom_MoonPro;Persist Security Info=True;User ID=steamware;Password=viadante16;" />
<add key="DevicesAuthConnectionString" value="Data Source=localhost\SQLEXPRESS;Initial Catalog=ColCom_Anagrafica;Persist Security Info=True;User ID=steamware;Password=viadante16;" />
</appSettings>
<connectionStrings>
<add name="MoonProConnectionString" connectionString="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;" providerName="System.Data.SqlClient" />
<add name="MapoDb.Properties.Settings.MoonProConnectionString" connectionString="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;" providerName="System.Data.SqlClient" />
<add name="SteamWare.Properties.Settings.DbConfConnectionString" connectionString="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;" providerName="System.Data.SqlClient" />
<add name="MoonProConnectionString" connectionString="Data Source=localhost\SQLEXPRESS;Initial Catalog=ColCom_MoonPro;Persist Security Info=True;User ID=steamware;Password=viadante16;" providerName="System.Data.SqlClient" />
<add name="MapoDb.Properties.Settings.MoonProConnectionString" connectionString="Data Source=localhost\SQLEXPRESS;Initial Catalog=ColCom_MoonPro;Persist Security Info=True;User ID=steamware;Password=viadante16;" providerName="System.Data.SqlClient" />
<add name="SteamWare.Properties.Settings.DbConfConnectionString" connectionString="Data Source=localhost\SQLEXPRESS;Initial Catalog=ColCom_MoonPro;Persist Security Info=True;User ID=steamware;Password=viadante16;" providerName="System.Data.SqlClient" />
</connectionStrings>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
+1089
View File
File diff suppressed because it is too large Load Diff
+151 -4
View File
@@ -298,6 +298,112 @@ SELECT KeyKit, KeyExtOrd, CodArtParent, CodArtChild, QtyKIT, QtyART FROM Istanze
</Mappings>
<Sources />
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="WipSetupKitTableAdapter" GeneratorDataComponentClassName="WipSetupKitTableAdapter" Name="WipSetupKit" UserDataComponentName="WipSetupKitTableAdapter">
<MainSource>
<DbSource ConnectionRef="MoonPro_IS_ConnectionString (Settings)" DbObjectName="MoonPro_IS_ColCom.dbo.WipSetupKit" 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].[WipSetupKit] WHERE (([KeyFilt] = @Original_KeyFilt) AND ([CodOrd] = @Original_CodOrd) AND ([CodArt] = @Original_CodArt) AND ([DescArt] = @Original_DescArt) AND ([Qta] = @Original_Qta) AND ([DataIns] = @Original_DataIns))</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_KeyFilt" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="KeyFilt" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodOrd" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodOrd" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodArt" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodArt" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_DescArt" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DescArt" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Qta" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Qta" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_DataIns" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DataIns" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</DeleteCommand>
<InsertCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>INSERT INTO [dbo].[WipSetupKit] ([KeyFilt], [CodOrd], [CodArt], [DescArt], [Qta], [DataIns]) VALUES (@KeyFilt, @CodOrd, @CodArt, @DescArt, @Qta, @DataIns);
SELECT KeyFilt, CodOrd, CodArt, DescArt, Qta, DataIns FROM WipSetupKit WHERE (CodOrd = @CodOrd) AND (KeyFilt = @KeyFilt)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@KeyFilt" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="KeyFilt" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodOrd" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodOrd" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodArt" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodArt" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DescArt" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DescArt" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Qta" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Qta" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@DataIns" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DataIns" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</InsertCommand>
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="true">
<CommandText>SELECT * FROM dbo.WipSetupKit</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
<UpdateCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>UPDATE [dbo].[WipSetupKit] SET [KeyFilt] = @KeyFilt, [CodOrd] = @CodOrd, [CodArt] = @CodArt, [DescArt] = @DescArt, [Qta] = @Qta, [DataIns] = @DataIns WHERE (([KeyFilt] = @Original_KeyFilt) AND ([CodOrd] = @Original_CodOrd) AND ([CodArt] = @Original_CodArt) AND ([DescArt] = @Original_DescArt) AND ([Qta] = @Original_Qta) AND ([DataIns] = @Original_DataIns));
SELECT KeyFilt, CodOrd, CodArt, DescArt, Qta, DataIns FROM WipSetupKit WHERE (CodOrd = @CodOrd) AND (KeyFilt = @KeyFilt)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@KeyFilt" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="KeyFilt" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodOrd" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodOrd" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodArt" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodArt" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DescArt" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DescArt" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Qta" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Qta" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@DataIns" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DataIns" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_KeyFilt" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="KeyFilt" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodOrd" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodOrd" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodArt" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodArt" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_DescArt" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DescArt" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Qta" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Qta" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_DataIns" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DataIns" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</UpdateCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="KeyFilt" DataSetColumn="KeyFilt" />
<Mapping SourceColumn="CodOrd" DataSetColumn="CodOrd" />
<Mapping SourceColumn="CodArt" DataSetColumn="CodArt" />
<Mapping SourceColumn="DescArt" DataSetColumn="DescArt" />
<Mapping SourceColumn="Qta" DataSetColumn="Qta" />
<Mapping SourceColumn="DataIns" DataSetColumn="DataIns" />
</Mappings>
<Sources>
<DbSource ConnectionRef="MoonPro_IS_ConnectionString (Settings)" DbObjectName="MoonPro_IS_ColCom.dbo.stp_WSK_delete" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="deleteQuery" Modifier="Public" Name="deleteQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="deleteQuery">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_WSK_delete</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="@KeyFilt" 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_WSK_byFilt" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByFilt" GetMethodModifier="Public" GetMethodName="getByFilt" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByFilt" UserSourceName="getByFilt">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_WSK_byFilt</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="@KeyFilt" 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_WSK_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="GetDataBy1" UserSourceName="insertQuery">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_WSK_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="@KeyFilt" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodOrd" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodArt" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@DescArt" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Qta" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</Sources>
</TableAdapter>
</Tables>
<Sources />
</DataSource>
@@ -306,7 +412,7 @@ SELECT KeyKit, KeyExtOrd, CodArtParent, CodArtChild, QtyKIT, QtyART FROM Istanze
<xs:element name="DS_IntServ" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="DS_IntServ" msprop:Generator_UserDSName="DS_IntServ">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="TransitoDati" msprop:Generator_TableClassName="TransitoDatiDataTable" msprop:Generator_TableVarName="tableTransitoDati" msprop:Generator_RowChangedName="TransitoDatiRowChanged" msprop:Generator_TablePropName="TransitoDati" msprop:Generator_RowDeletingName="TransitoDatiRowDeleting" msprop:Generator_RowChangingName="TransitoDatiRowChanging" msprop:Generator_RowEvHandlerName="TransitoDatiRowChangeEventHandler" msprop:Generator_RowDeletedName="TransitoDatiRowDeleted" msprop:Generator_RowClassName="TransitoDatiRow" msprop:Generator_UserTableName="TransitoDati" msprop:Generator_RowEvArgName="TransitoDatiRowChangeEvent">
<xs:element name="TransitoDati" msprop:Generator_TableClassName="TransitoDatiDataTable" msprop:Generator_TableVarName="tableTransitoDati" msprop:Generator_TablePropName="TransitoDati" msprop:Generator_RowDeletingName="TransitoDatiRowDeleting" msprop:Generator_RowChangingName="TransitoDatiRowChanging" msprop:Generator_RowEvHandlerName="TransitoDatiRowChangeEventHandler" msprop:Generator_RowDeletedName="TransitoDatiRowDeleted" msprop:Generator_UserTableName="TransitoDati" msprop:Generator_RowChangedName="TransitoDatiRowChanged" msprop:Generator_RowEvArgName="TransitoDatiRowChangeEvent" msprop:Generator_RowClassName="TransitoDatiRow">
<xs:complexType>
<xs:sequence>
<xs:element name="IdxRequest" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnIdxRequest" msprop:Generator_ColumnPropNameInRow="IdxRequest" msprop:Generator_ColumnPropNameInTable="IdxRequestColumn" msprop:Generator_UserColumnName="IdxRequest" type="xs:int" />
@@ -335,7 +441,7 @@ SELECT KeyKit, KeyExtOrd, CodArtParent, CodArtChild, QtyKIT, QtyART FROM Istanze
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="TemplateKIT" msprop:Generator_TableClassName="TemplateKITDataTable" msprop:Generator_TableVarName="tableTemplateKIT" msprop:Generator_RowChangedName="TemplateKITRowChanged" msprop:Generator_TablePropName="TemplateKIT" msprop:Generator_RowDeletingName="TemplateKITRowDeleting" msprop:Generator_RowChangingName="TemplateKITRowChanging" msprop:Generator_RowEvHandlerName="TemplateKITRowChangeEventHandler" msprop:Generator_RowDeletedName="TemplateKITRowDeleted" msprop:Generator_RowClassName="TemplateKITRow" msprop:Generator_UserTableName="TemplateKIT" msprop:Generator_RowEvArgName="TemplateKITRowChangeEvent">
<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">
@@ -356,7 +462,7 @@ SELECT KeyKit, KeyExtOrd, CodArtParent, CodArtChild, QtyKIT, QtyART FROM Istanze
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="IstanzeKIT" msprop:Generator_TableClassName="IstanzeKITDataTable" msprop:Generator_TableVarName="tableIstanzeKIT" msprop:Generator_RowChangedName="IstanzeKITRowChanged" msprop:Generator_TablePropName="IstanzeKIT" msprop:Generator_RowDeletingName="IstanzeKITRowDeleting" msprop:Generator_RowChangingName="IstanzeKITRowChanging" msprop:Generator_RowEvHandlerName="IstanzeKITRowChangeEventHandler" msprop:Generator_RowDeletedName="IstanzeKITRowDeleted" msprop:Generator_RowClassName="IstanzeKITRow" msprop:Generator_UserTableName="IstanzeKIT" msprop:Generator_RowEvArgName="IstanzeKITRowChangeEvent">
<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">
@@ -392,7 +498,7 @@ SELECT KeyKit, KeyExtOrd, CodArtParent, CodArtChild, QtyKIT, QtyART FROM Istanze
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="TKS_Search" msprop:Generator_TableClassName="TKS_SearchDataTable" msprop:Generator_TableVarName="tableTKS_Search" msprop:Generator_TablePropName="TKS_Search" msprop:Generator_RowDeletingName="TKS_SearchRowDeleting" msprop:Generator_RowChangingName="TKS_SearchRowChanging" msprop:Generator_RowEvHandlerName="TKS_SearchRowChangeEventHandler" msprop:Generator_RowDeletedName="TKS_SearchRowDeleted" msprop:Generator_UserTableName="TKS_Search" msprop:Generator_RowChangedName="TKS_SearchRowChanged" msprop:Generator_RowEvArgName="TKS_SearchRowChangeEvent" msprop:Generator_RowClassName="TKS_SearchRow">
<xs:element name="TKS_Search" msprop:Generator_TableClassName="TKS_SearchDataTable" msprop:Generator_TableVarName="tableTKS_Search" msprop:Generator_RowChangedName="TKS_SearchRowChanged" msprop:Generator_TablePropName="TKS_Search" msprop:Generator_RowDeletingName="TKS_SearchRowDeleting" msprop:Generator_RowChangingName="TKS_SearchRowChanging" msprop:Generator_RowEvHandlerName="TKS_SearchRowChangeEventHandler" msprop:Generator_RowDeletedName="TKS_SearchRowDeleted" msprop:Generator_RowClassName="TKS_SearchRow" msprop:Generator_UserTableName="TKS_Search" msprop:Generator_RowEvArgName="TKS_SearchRowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="CodArtParent" msprop:Generator_ColumnVarNameInTable="columnCodArtParent" msprop:Generator_ColumnPropNameInRow="CodArtParent" msprop:Generator_ColumnPropNameInTable="CodArtParentColumn" msprop:Generator_UserColumnName="CodArtParent">
@@ -408,6 +514,42 @@ SELECT KeyKit, KeyExtOrd, CodArtParent, CodArtChild, QtyKIT, QtyART FROM Istanze
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="WipSetupKit" msprop:Generator_TableClassName="WipSetupKitDataTable" msprop:Generator_TableVarName="tableWipSetupKit" msprop:Generator_TablePropName="WipSetupKit" msprop:Generator_RowDeletingName="WipSetupKitRowDeleting" msprop:Generator_RowChangingName="WipSetupKitRowChanging" msprop:Generator_RowEvHandlerName="WipSetupKitRowChangeEventHandler" msprop:Generator_RowDeletedName="WipSetupKitRowDeleted" msprop:Generator_UserTableName="WipSetupKit" msprop:Generator_RowChangedName="WipSetupKitRowChanged" msprop:Generator_RowEvArgName="WipSetupKitRowChangeEvent" msprop:Generator_RowClassName="WipSetupKitRow">
<xs:complexType>
<xs:sequence>
<xs:element name="KeyFilt" msprop:Generator_ColumnVarNameInTable="columnKeyFilt" msprop:Generator_ColumnPropNameInRow="KeyFilt" msprop:Generator_ColumnPropNameInTable="KeyFiltColumn" msprop:Generator_UserColumnName="KeyFilt">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CodOrd" msprop:Generator_ColumnVarNameInTable="columnCodOrd" msprop:Generator_ColumnPropNameInRow="CodOrd" msprop:Generator_ColumnPropNameInTable="CodOrdColumn" msprop:Generator_UserColumnName="CodOrd">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CodArt" msprop:Generator_ColumnVarNameInTable="columnCodArt" msprop:Generator_ColumnPropNameInRow="CodArt" msprop:Generator_ColumnPropNameInTable="CodArtColumn" msprop:Generator_UserColumnName="CodArt">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="DescArt" msprop:Generator_ColumnVarNameInTable="columnDescArt" msprop:Generator_ColumnPropNameInRow="DescArt" msprop:Generator_ColumnPropNameInTable="DescArtColumn" msprop:Generator_UserColumnName="DescArt">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Qta" msprop:Generator_ColumnVarNameInTable="columnQta" msprop:Generator_ColumnPropNameInRow="Qta" msprop:Generator_ColumnPropNameInTable="QtaColumn" msprop:Generator_UserColumnName="Qta" type="xs:int" />
<xs:element name="DataIns" msprop:Generator_ColumnVarNameInTable="columnDataIns" msprop:Generator_ColumnPropNameInRow="DataIns" msprop:Generator_ColumnPropNameInTable="DataInsColumn" msprop:Generator_UserColumnName="DataIns" type="xs:dateTime" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
@@ -424,5 +566,10 @@ SELECT KeyKit, KeyExtOrd, CodArtParent, CodArtChild, QtyKIT, QtyART FROM Istanze
<xs:field xpath="mstns:KeyKit" />
<xs:field xpath="mstns:KeyExtOrd" />
</xs:unique>
<xs:unique name="WipSetupKit_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:WipSetupKit" />
<xs:field xpath="mstns:KeyFilt" />
<xs:field xpath="mstns:CodOrd" />
</xs:unique>
</xs:element>
</xs:schema>
+6 -5
View File
@@ -4,12 +4,13 @@
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="0" ViewPortY="0" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="-10" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes>
<Shape ID="DesignTable:TransitoDati" ZOrder="4" X="143" Y="127" Height="227" Width="255" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="145" />
<Shape ID="DesignTable:TemplateKIT" ZOrder="3" 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="319" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="168" />
<Shape ID="DesignTable:TKS_Search" ZOrder="2" X="973" Y="517" Height="181" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="122" />
<Shape ID="DesignTable:TransitoDati" ZOrder="5" X="143" Y="127" Height="227" Width="255" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="145" />
<Shape ID="DesignTable:TemplateKIT" ZOrder="4" X="897" Y="198" Height="204" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="99" />
<Shape ID="DesignTable:IstanzeKIT" ZOrder="2" X="505" Y="368" Height="319" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="168" />
<Shape ID="DesignTable:TKS_Search" ZOrder="3" X="973" Y="517" Height="181" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="122" />
<Shape ID="DesignTable:WipSetupKit" ZOrder="1" X="238" Y="720" Height="296" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="168" />
</Shapes>
<Connectors />
</DiagramLayout>
+3
View File
@@ -61,6 +61,7 @@ namespace MapoDb
// tablet adapter x IS
public DS_IntServTableAdapters.TransitoDatiTableAdapter taIS_TrDati;
public DS_IntServTableAdapters.IstanzeKITTableAdapter taIstK;
public DS_IntServTableAdapters.WipSetupKitTableAdapter taWKS;
/// <summary>
@@ -111,6 +112,7 @@ namespace MapoDb
taComm = new DS_UtilityTableAdapters.CommentiTableAdapter();
taIS_TrDati = new DS_IntServTableAdapters.TransitoDatiTableAdapter();
taIstK = new DS_IntServTableAdapters.IstanzeKITTableAdapter();
taWKS = new DS_IntServTableAdapters.WipSetupKitTableAdapter();
}
/// <summary>
/// effettua setup dei connection strings da web.config delal singola applicazione
@@ -163,6 +165,7 @@ namespace MapoDb
// area IS
taIS_TrDati.Connection.ConnectionString = connectionStringIS;
taIstK.Connection.ConnectionString = connectionStringIS;
taWKS.Connection.ConnectionString = connectionStringIS;
}
#endregion