Aggiunta nuovo DS x MAG

This commit is contained in:
Samuele E. Locatelli
2020-12-09 14:20:26 +01:00
parent 1ec4f1b3ac
commit 8a6856fc26
7 changed files with 2274 additions and 12 deletions
+2014
View File
File diff suppressed because it is too large Load Diff
+9
View File
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!--<autogenerated>
This code was generated by a tool.
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
</autogenerated>-->
<DataSetUISetting Version="1.00" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<TableUISettings />
</DataSetUISetting>
+208
View File
@@ -0,0 +1,208 @@
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="DS_MAG" targetNamespace="http://tempuri.org/DS_MAG.xsd" xmlns:mstns="http://tempuri.org/DS_MAG.xsd" xmlns="http://tempuri.org/DS_MAG.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
<xs:annotation>
<xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
<DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<Connections>
<Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="MoonPro_MAGConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="MoonPro_MAGConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.MapoDb.Properties.Settings.GlobalReference.Default.MoonPro_MAGConnectionString" Provider="System.Data.SqlClient" />
</Connections>
<Tables>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ElencoLottiTableAdapter" GeneratorDataComponentClassName="ElencoLottiTableAdapter" Name="ElencoLotti" UserDataComponentName="ElencoLottiTableAdapter">
<MainSource>
<DbSource ConnectionRef="MoonPro_MAGConnectionString (Settings)" DbObjectName="MoonPro_MAG.dbo.ElencoLotti" 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].[ElencoLotti] WHERE (([Lotto] = @Original_Lotto) AND ([IdxODL] = @Original_IdxODL) AND ([RifExt] = @Original_RifExt) AND ([TipoLotto] = @Original_TipoLotto) AND ([CodArt] = @Original_CodArt) AND ([CodStato] = @Original_CodStato) AND ([Origine] = @Original_Origine) AND ([DtCrea] = @Original_DtCrea) AND ([Note] = @Original_Note) AND ([QtaOrig] = @Original_QtaOrig) AND ([NumUdc] = @Original_NumUdc) AND ([QtaCurr] = @Original_QtaCurr) AND ([DtMod] = @Original_DtMod) AND ([Attivo] = @Original_Attivo))</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Lotto" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Lotto" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdxODL" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxODL" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_RifExt" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="RifExt" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_TipoLotto" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TipoLotto" 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_CodStato" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodStato" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Origine" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Origine" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_DtCrea" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DtCrea" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Note" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Note" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_QtaOrig" Precision="18" ProviderType="Decimal" Scale="9" Size="0" SourceColumn="QtaOrig" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_NumUdc" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NumUdc" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_QtaCurr" Precision="18" ProviderType="Decimal" Scale="9" Size="0" SourceColumn="QtaCurr" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_DtMod" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DtMod" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_Attivo" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="Attivo" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</DeleteCommand>
<InsertCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>INSERT INTO [dbo].[ElencoLotti] ([Lotto], [IdxODL], [RifExt], [TipoLotto], [CodArt], [CodStato], [Origine], [DtCrea], [Note], [QtaOrig], [NumUdc], [QtaCurr], [DtMod], [Attivo]) VALUES (@Lotto, @IdxODL, @RifExt, @TipoLotto, @CodArt, @CodStato, @Origine, @DtCrea, @Note, @QtaOrig, @NumUdc, @QtaCurr, @DtMod, @Attivo);
SELECT Lotto, IdxODL, RifExt, TipoLotto, CodArt, CodStato, Origine, DtCrea, Note, QtaOrig, NumUdc, QtaCurr, DtMod, Attivo FROM ElencoLotti WHERE (Lotto = @Lotto)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Lotto" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Lotto" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IdxODL" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxODL" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@RifExt" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="RifExt" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@TipoLotto" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TipoLotto" 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="@CodStato" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodStato" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Origine" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Origine" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@DtCrea" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DtCrea" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Note" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Note" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@QtaOrig" Precision="18" ProviderType="Decimal" Scale="9" Size="0" SourceColumn="QtaOrig" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@NumUdc" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NumUdc" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@QtaCurr" Precision="18" ProviderType="Decimal" Scale="9" Size="0" SourceColumn="QtaCurr" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@DtMod" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DtMod" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Attivo" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="Attivo" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</InsertCommand>
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT Lotto, IdxODL, RifExt, TipoLotto, CodArt, CodStato, Origine, DtCrea, Note, QtaOrig, NumUdc, QtaCurr, DtMod, Attivo FROM dbo.ElencoLotti</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
<UpdateCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>UPDATE [dbo].[ElencoLotti] SET [Lotto] = @Lotto, [IdxODL] = @IdxODL, [RifExt] = @RifExt, [TipoLotto] = @TipoLotto, [CodArt] = @CodArt, [CodStato] = @CodStato, [Origine] = @Origine, [DtCrea] = @DtCrea, [Note] = @Note, [QtaOrig] = @QtaOrig, [NumUdc] = @NumUdc, [QtaCurr] = @QtaCurr, [DtMod] = @DtMod, [Attivo] = @Attivo WHERE (([Lotto] = @Original_Lotto) AND ([IdxODL] = @Original_IdxODL) AND ([RifExt] = @Original_RifExt) AND ([TipoLotto] = @Original_TipoLotto) AND ([CodArt] = @Original_CodArt) AND ([CodStato] = @Original_CodStato) AND ([Origine] = @Original_Origine) AND ([DtCrea] = @Original_DtCrea) AND ([Note] = @Original_Note) AND ([QtaOrig] = @Original_QtaOrig) AND ([NumUdc] = @Original_NumUdc) AND ([QtaCurr] = @Original_QtaCurr) AND ([DtMod] = @Original_DtMod) AND ([Attivo] = @Original_Attivo));
SELECT Lotto, IdxODL, RifExt, TipoLotto, CodArt, CodStato, Origine, DtCrea, Note, QtaOrig, NumUdc, QtaCurr, DtMod, Attivo FROM ElencoLotti WHERE (Lotto = @Lotto)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Lotto" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Lotto" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IdxODL" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxODL" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@RifExt" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="RifExt" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@TipoLotto" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TipoLotto" 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="@CodStato" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodStato" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Origine" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Origine" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@DtCrea" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DtCrea" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Note" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Note" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@QtaOrig" Precision="18" ProviderType="Decimal" Scale="9" Size="0" SourceColumn="QtaOrig" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@NumUdc" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NumUdc" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@QtaCurr" Precision="18" ProviderType="Decimal" Scale="9" Size="0" SourceColumn="QtaCurr" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@DtMod" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DtMod" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Attivo" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="Attivo" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Lotto" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Lotto" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdxODL" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxODL" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_RifExt" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="RifExt" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_TipoLotto" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TipoLotto" 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_CodStato" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodStato" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Origine" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Origine" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_DtCrea" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DtCrea" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Note" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Note" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_QtaOrig" Precision="18" ProviderType="Decimal" Scale="9" Size="0" SourceColumn="QtaOrig" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_NumUdc" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NumUdc" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_QtaCurr" Precision="18" ProviderType="Decimal" Scale="9" Size="0" SourceColumn="QtaCurr" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_DtMod" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DtMod" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Original_Attivo" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="Attivo" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</UpdateCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="Lotto" DataSetColumn="Lotto" />
<Mapping SourceColumn="IdxODL" DataSetColumn="IdxODL" />
<Mapping SourceColumn="RifExt" DataSetColumn="RifExt" />
<Mapping SourceColumn="TipoLotto" DataSetColumn="TipoLotto" />
<Mapping SourceColumn="CodArt" DataSetColumn="CodArt" />
<Mapping SourceColumn="CodStato" DataSetColumn="CodStato" />
<Mapping SourceColumn="Origine" DataSetColumn="Origine" />
<Mapping SourceColumn="DtCrea" DataSetColumn="DtCrea" />
<Mapping SourceColumn="Note" DataSetColumn="Note" />
<Mapping SourceColumn="QtaOrig" DataSetColumn="QtaOrig" />
<Mapping SourceColumn="NumUdc" DataSetColumn="NumUdc" />
<Mapping SourceColumn="QtaCurr" DataSetColumn="QtaCurr" />
<Mapping SourceColumn="DtMod" DataSetColumn="DtMod" />
<Mapping SourceColumn="Attivo" DataSetColumn="Attivo" />
</Mappings>
<Sources>
<DbSource ConnectionRef="MoonPro_MAGConnectionString (Settings)" DbObjectName="MoonPro_MAG.dbo.stp_EL_UpsertByOdl" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="UpsertByOdl" Modifier="Public" Name="UpsertByOdl" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="UpsertByOdl">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_EL_UpsertByOdl</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="int" DbType="Int32" Direction="Input" ParameterName="@IdxODL" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="bit" DbType="Boolean" Direction="Input" ParameterName="@flgStorico" Precision="1" ProviderType="Bit" Scale="0" Size="1" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</Sources>
</TableAdapter>
</Tables>
<Sources />
</DataSource>
</xs:appinfo>
</xs:annotation>
<xs:element name="DS_MAG" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="DS_MAG" msprop:Generator_UserDSName="DS_MAG">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="ElencoLotti" msprop:Generator_TableClassName="ElencoLottiDataTable" msprop:Generator_TableVarName="tableElencoLotti" msprop:Generator_TablePropName="ElencoLotti" msprop:Generator_RowDeletingName="ElencoLottiRowDeleting" msprop:Generator_RowChangingName="ElencoLottiRowChanging" msprop:Generator_RowEvHandlerName="ElencoLottiRowChangeEventHandler" msprop:Generator_RowDeletedName="ElencoLottiRowDeleted" msprop:Generator_UserTableName="ElencoLotti" msprop:Generator_RowChangedName="ElencoLottiRowChanged" msprop:Generator_RowEvArgName="ElencoLottiRowChangeEvent" msprop:Generator_RowClassName="ElencoLottiRow">
<xs:complexType>
<xs:sequence>
<xs:element name="Lotto" msprop:Generator_ColumnVarNameInTable="columnLotto" msprop:Generator_ColumnPropNameInRow="Lotto" msprop:Generator_ColumnPropNameInTable="LottoColumn" msprop:Generator_UserColumnName="Lotto">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="IdxODL" msprop:Generator_ColumnVarNameInTable="columnIdxODL" msprop:Generator_ColumnPropNameInRow="IdxODL" msprop:Generator_ColumnPropNameInTable="IdxODLColumn" msprop:Generator_UserColumnName="IdxODL" type="xs:int" />
<xs:element name="RifExt" msprop:Generator_ColumnVarNameInTable="columnRifExt" msprop:Generator_ColumnPropNameInRow="RifExt" msprop:Generator_ColumnPropNameInTable="RifExtColumn" msprop:Generator_UserColumnName="RifExt">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="TipoLotto" msprop:Generator_ColumnVarNameInTable="columnTipoLotto" msprop:Generator_ColumnPropNameInRow="TipoLotto" msprop:Generator_ColumnPropNameInTable="TipoLottoColumn" msprop:Generator_UserColumnName="TipoLotto">
<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="CodStato" msprop:Generator_ColumnVarNameInTable="columnCodStato" msprop:Generator_ColumnPropNameInRow="CodStato" msprop:Generator_ColumnPropNameInTable="CodStatoColumn" msprop:Generator_UserColumnName="CodStato">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Origine" msprop:Generator_ColumnVarNameInTable="columnOrigine" msprop:Generator_ColumnPropNameInRow="Origine" msprop:Generator_ColumnPropNameInTable="OrigineColumn" msprop:Generator_UserColumnName="Origine">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="DtCrea" msprop:Generator_ColumnVarNameInTable="columnDtCrea" msprop:Generator_ColumnPropNameInRow="DtCrea" msprop:Generator_ColumnPropNameInTable="DtCreaColumn" msprop:Generator_UserColumnName="DtCrea" type="xs:dateTime" />
<xs:element name="Note" msprop:Generator_ColumnVarNameInTable="columnNote" msprop:Generator_ColumnPropNameInRow="Note" msprop:Generator_ColumnPropNameInTable="NoteColumn" msprop:Generator_UserColumnName="Note">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="250" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="QtaOrig" msprop:Generator_ColumnVarNameInTable="columnQtaOrig" msprop:Generator_ColumnPropNameInRow="QtaOrig" msprop:Generator_ColumnPropNameInTable="QtaOrigColumn" msprop:Generator_UserColumnName="QtaOrig" type="xs:decimal" />
<xs:element name="NumUdc" msprop:Generator_ColumnVarNameInTable="columnNumUdc" msprop:Generator_ColumnPropNameInRow="NumUdc" msprop:Generator_ColumnPropNameInTable="NumUdcColumn" msprop:Generator_UserColumnName="NumUdc" type="xs:int" />
<xs:element name="QtaCurr" msprop:Generator_ColumnVarNameInTable="columnQtaCurr" msprop:Generator_ColumnPropNameInRow="QtaCurr" msprop:Generator_ColumnPropNameInTable="QtaCurrColumn" msprop:Generator_UserColumnName="QtaCurr" type="xs:decimal" />
<xs:element name="DtMod" msprop:Generator_ColumnVarNameInTable="columnDtMod" msprop:Generator_ColumnPropNameInRow="DtMod" msprop:Generator_ColumnPropNameInTable="DtModColumn" msprop:Generator_UserColumnName="DtMod" type="xs:dateTime" />
<xs:element name="Attivo" msprop:Generator_ColumnVarNameInTable="columnAttivo" msprop:Generator_ColumnPropNameInRow="Attivo" msprop:Generator_ColumnPropNameInTable="AttivoColumn" msprop:Generator_UserColumnName="Attivo" type="xs:boolean" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:ElencoLotti" />
<xs:field xpath="mstns:Lotto" />
</xs:unique>
</xs:element>
</xs:schema>
+1
View File
@@ -0,0 +1 @@

+4
View File
@@ -56,6 +56,7 @@ namespace MapoDb
public DS_ProdTempiTableAdapters.Macchine2SlaveTableAdapter taM2S;
public DS_applicazioneTableAdapters.MacchineTableAdapter taMacchine;
public DS_PlanTableAdapters.MachineParamsTableAdapter taMacParams;
public DS_MAGTableAdapters.ElencoLottiTableAdapter taMagELotti;
public DS_ProdTempiTableAdapters.MappaStatoExplTableAdapter taMSE;
public DS_ProdTempiTableAdapters.ODLTableAdapter taODL;
public DS_applicazioneTableAdapters.AnagraficaOperatoriTableAdapter taOp;
@@ -506,6 +507,7 @@ namespace MapoDb
taM2S = new DS_ProdTempiTableAdapters.Macchine2SlaveTableAdapter();
taMacchine = new DS_applicazioneTableAdapters.MacchineTableAdapter();
taMacParams = new DS_PlanTableAdapters.MachineParamsTableAdapter();
taMagELotti = new DS_MAGTableAdapters.ElencoLottiTableAdapter();
taMSE = new DS_ProdTempiTableAdapters.MappaStatoExplTableAdapter();
taODL = new DS_ProdTempiTableAdapters.ODLTableAdapter();
taOp = new DS_applicazioneTableAdapters.AnagraficaOperatoriTableAdapter();
@@ -546,6 +548,7 @@ namespace MapoDb
string connectionStringIS = memLayer.ML.confReadString("MoonProConnectionStringIS");
string connectionStringArca = memLayer.ML.confReadString("MoonProConnectionStringArca");
string connectionStringES3 = memLayer.ML.confReadString("MoonProConnectionStringES3");
string connectionStringMAG = memLayer.ML.confReadString("MoonProConnectionStringMAG");
// connections del db
taAG.Connection.ConnectionString = connectionString;
taAnagArt.Connection.ConnectionString = connectionString;
@@ -569,6 +572,7 @@ namespace MapoDb
taM2S.Connection.ConnectionString = connectionString;
taMacchine.Connection.ConnectionString = connectionString;
taMacParams.Connection.ConnectionString = connectionStringES3;
taMagELotti.Connection.ConnectionString = connectionStringMAG;
taMSE.Connection.ConnectionString = connectionString;
taODL.Connection.ConnectionString = connectionString;
taOp.Connection.ConnectionString = connectionString;
+16 -4
View File
@@ -222,6 +222,11 @@
<DesignTime>True</DesignTime>
<DependentUpon>DS_IntServ.xsd</DependentUpon>
</Compile>
<Compile Include="DS_MAG.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>DS_MAG.xsd</DependentUpon>
</Compile>
<Compile Include="DS_Plan.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
@@ -301,6 +306,17 @@
<None Include="DS_IntServ.xss">
<DependentUpon>DS_IntServ.xsd</DependentUpon>
</None>
<None Include="DS_MAG.xsc">
<DependentUpon>DS_MAG.xsd</DependentUpon>
</None>
<None Include="DS_MAG.xsd">
<SubType>Designer</SubType>
<Generator>MSDataSetGenerator</Generator>
<LastGenOutput>DS_MAG.Designer.cs</LastGenOutput>
</None>
<None Include="DS_MAG.xss">
<DependentUpon>DS_MAG.xsd</DependentUpon>
</None>
<None Include="DS_Plan.xsc">
<DependentUpon>DS_Plan.xsd</DependentUpon>
</None>
@@ -397,10 +413,6 @@
<Content Include="Core\Compression\Zstandard\lib\win\libzstd.dll" />
<Content Include="ExtLib\Microsoft.ReportViewer.WinForms.dll" />
<Content Include="ExtLib\Microsoft.ReportViewer.WinForms.xml" />
<Content Include="libzstd.dll" />
<Content Include="mongocrypt.dll" />
<Content Include="snappy32.dll" />
<Content Include="snappy64.dll" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\MapoSDK\MapoSDK.csproj">
+22 -8
View File
@@ -1,16 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</configSections>
<connectionStrings>
<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="MapoDb.Properties.Settings.MoonPro_IS_ConnectionString" connectionString="Data Source=SQL2016DEV;Initial Catalog=MoonPro_IS_Donati;Persist Security Info=True;User ID=sa;Password=keyhammer16" providerName="System.Data.SqlClient" />
<add name="MapoDb.Properties.Settings.C_TRACKConnectionString" connectionString="Data Source=SQL2016DEV;Initial Catalog=C_TRACK;Persist Security Info=True;User ID=sa;Password=keyhammer16" providerName="System.Data.SqlClient" />
<add name="MapoDb.Properties.Settings.MoonPro_ES3ConnectionString" connectionString="Data Source=sql2016dev;Initial Catalog=MoonPro_ES3;Persist Security Info=True;User ID=sa;Password=keyhammer16" providerName="System.Data.SqlClient" />
<add name="MapoModel" connectionString="data source=SQL2016DEV;initial catalog=MoonPro;persist security info=True;user id=sa;password=keyhammer16;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />
<add name="MapoDb.Properties.Settings.MoonPro_IS_ArcaConnectionString" connectionString="Data Source=SQL2016DEV;Initial Catalog=MoonPro_IS_EdilChim;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="MapoDb.Properties.Settings.MoonPro_IS_ConnectionString"
connectionString="Data Source=SQL2016DEV;Initial Catalog=MoonPro_IS_Donati;Persist Security Info=True;User ID=sa;Password=keyhammer16"
providerName="System.Data.SqlClient" />
<add name="MapoDb.Properties.Settings.C_TRACKConnectionString"
connectionString="Data Source=SQL2016DEV;Initial Catalog=C_TRACK;Persist Security Info=True;User ID=sa;Password=keyhammer16"
providerName="System.Data.SqlClient" />
<add name="MapoDb.Properties.Settings.MoonPro_ES3ConnectionString"
connectionString="Data Source=sql2016dev;Initial Catalog=MoonPro_ES3;Persist Security Info=True;User ID=sa;Password=keyhammer16"
providerName="System.Data.SqlClient" />
<add name="MapoModel" connectionString="data source=SQL2016DEV;initial catalog=MoonPro;persist security info=True;user id=sa;password=keyhammer16;MultipleActiveResultSets=True;App=EntityFramework"
providerName="System.Data.SqlClient" />
<add name="MapoDb.Properties.Settings.MoonPro_IS_ArcaConnectionString"
connectionString="Data Source=SQL2016DEV;Initial Catalog=MoonPro_IS_EdilChim;Persist Security Info=True;User ID=sa;Password=keyhammer16"
providerName="System.Data.SqlClient" />
<add name="MapoDb.Properties.Settings.MoonPro_MAGConnectionString"
connectionString="Data Source=SQL2016DEV;Initial Catalog=MoonPro_MAG;Persist Security Info=True;User ID=sa;Password=keyhammer16"
providerName="System.Data.SqlClient" />
</connectionStrings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2" />