spostato insert richeiste in novo modulo dedicato
This commit is contained in:
Generated
+855
-2
File diff suppressed because it is too large
Load Diff
+86
-1
@@ -307,6 +307,17 @@ SELECT idxFornitore, username, password, nome, indirizzo, p_iva, indirizzo_email
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="B2BCondConnectionString (Settings)" DbObjectName="B2BCond.dbo.stp_AF_getByKey" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByKey" GetMethodModifier="Public" GetMethodName="getByKey" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByKey" UserSourceName="getByKey">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_AF_getByKey</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="@idxFornitore" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
</Sources>
|
||||
</TableAdapter>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="AssF2ATableAdapter" GeneratorDataComponentClassName="AssF2ATableAdapter" Name="AssF2A" UserDataComponentName="AssF2ATableAdapter">
|
||||
@@ -451,7 +462,7 @@ FROM v_AssF2C</CommandText>
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="true">
|
||||
<CommandText>SELECT *
|
||||
FROM v_ElencolRich</CommandText>
|
||||
FROM v_ElencolRich</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
@@ -461,6 +472,7 @@ FROM v_ElencolRich</CommandText>
|
||||
<Mapping SourceColumn="idxRichiesta" DataSetColumn="idxRichiesta" />
|
||||
<Mapping SourceColumn="idxStato" DataSetColumn="idxStato" />
|
||||
<Mapping SourceColumn="idxCond" DataSetColumn="idxCond" />
|
||||
<Mapping SourceColumn="idxPriorita" DataSetColumn="idxPriorita" />
|
||||
<Mapping SourceColumn="idxArea" DataSetColumn="idxArea" />
|
||||
<Mapping SourceColumn="idxFornitore" DataSetColumn="idxFornitore" />
|
||||
<Mapping SourceColumn="cod_fornitore" DataSetColumn="cod_fornitore" />
|
||||
@@ -660,6 +672,59 @@ SELECT idxStato, stato, descrizione, cssStato FROM AnagStati WHERE (idxStato = @
|
||||
</Mappings>
|
||||
<Sources />
|
||||
</TableAdapter>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="AnagPriorTableAdapter" GeneratorDataComponentClassName="AnagPriorTableAdapter" Name="AnagPrior" UserDataComponentName="AnagPriorTableAdapter">
|
||||
<MainSource>
|
||||
<DbSource ConnectionRef="B2BCondConnectionString (Settings)" DbObjectName="B2BCond.dbo.AnagPrior" 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].[AnagPrior] WHERE (([idxPriorita] = @Original_idxPriorita) AND ([descrPriorita] = @Original_descrPriorita) AND ([scadenzaGg] = @Original_scadenzaGg))</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_idxPriorita" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxPriorita" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_descrPriorita" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="descrPriorita" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_scadenzaGg" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="scadenzaGg" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</DeleteCommand>
|
||||
<InsertCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>INSERT INTO [dbo].[AnagPrior] ([idxPriorita], [descrPriorita], [scadenzaGg]) VALUES (@idxPriorita, @descrPriorita, @scadenzaGg);
|
||||
SELECT idxPriorita, descrPriorita, scadenzaGg FROM AnagPrior WHERE (idxPriorita = @idxPriorita)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@idxPriorita" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxPriorita" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@descrPriorita" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="descrPriorita" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@scadenzaGg" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="scadenzaGg" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</InsertCommand>
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>SELECT idxPriorita, descrPriorita, scadenzaGg FROM dbo.AnagPrior</CommandText>
|
||||
<Parameters />
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
<UpdateCommand>
|
||||
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||
<CommandText>UPDATE [dbo].[AnagPrior] SET [idxPriorita] = @idxPriorita, [descrPriorita] = @descrPriorita, [scadenzaGg] = @scadenzaGg WHERE (([idxPriorita] = @Original_idxPriorita) AND ([descrPriorita] = @Original_descrPriorita) AND ([scadenzaGg] = @Original_scadenzaGg));
|
||||
SELECT idxPriorita, descrPriorita, scadenzaGg FROM AnagPrior WHERE (idxPriorita = @idxPriorita)</CommandText>
|
||||
<Parameters>
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@idxPriorita" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxPriorita" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@descrPriorita" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="descrPriorita" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@scadenzaGg" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="scadenzaGg" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_idxPriorita" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="idxPriorita" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_descrPriorita" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="descrPriorita" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_scadenzaGg" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="scadenzaGg" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</UpdateCommand>
|
||||
</DbSource>
|
||||
</MainSource>
|
||||
<Mappings>
|
||||
<Mapping SourceColumn="idxPriorita" DataSetColumn="idxPriorita" />
|
||||
<Mapping SourceColumn="descrPriorita" DataSetColumn="descrPriorita" />
|
||||
<Mapping SourceColumn="scadenzaGg" DataSetColumn="scadenzaGg" />
|
||||
</Mappings>
|
||||
<Sources />
|
||||
</TableAdapter>
|
||||
</Tables>
|
||||
<Sources />
|
||||
</DataSource>
|
||||
@@ -950,6 +1015,7 @@ SELECT idxStato, stato, descrizione, cssStato FROM AnagStati WHERE (idxStato = @
|
||||
<xs:element name="idxRichiesta" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidxRichiesta" msprop:Generator_ColumnPropNameInRow="idxRichiesta" msprop:Generator_ColumnPropNameInTable="idxRichiestaColumn" msprop:Generator_UserColumnName="idxRichiesta" type="xs:int" />
|
||||
<xs:element name="idxStato" msprop:Generator_ColumnVarNameInTable="columnidxStato" msprop:Generator_ColumnPropNameInRow="idxStato" msprop:Generator_ColumnPropNameInTable="idxStatoColumn" msprop:Generator_UserColumnName="idxStato" type="xs:int" />
|
||||
<xs:element name="idxCond" msprop:Generator_ColumnVarNameInTable="columnidxCond" msprop:Generator_ColumnPropNameInRow="idxCond" msprop:Generator_ColumnPropNameInTable="idxCondColumn" msprop:Generator_UserColumnName="idxCond" type="xs:int" />
|
||||
<xs:element name="idxPriorita" msprop:Generator_ColumnVarNameInTable="columnidxPriorita" msprop:Generator_ColumnPropNameInRow="idxPriorita" msprop:Generator_ColumnPropNameInTable="idxPrioritaColumn" msprop:Generator_UserColumnName="idxPriorita" type="xs:int" />
|
||||
<xs:element name="idxArea" msprop:Generator_ColumnVarNameInTable="columnidxArea" msprop:Generator_ColumnPropNameInRow="idxArea" msprop:Generator_ColumnPropNameInTable="idxAreaColumn" msprop:Generator_UserColumnName="idxArea" type="xs:int" />
|
||||
<xs:element name="idxFornitore" msprop:Generator_ColumnVarNameInTable="columnidxFornitore" msprop:Generator_ColumnPropNameInRow="idxFornitore" msprop:Generator_ColumnPropNameInTable="idxFornitoreColumn" msprop:Generator_UserColumnName="idxFornitore" type="xs:int" />
|
||||
<xs:element name="cod_fornitore" msprop:Generator_ColumnVarNameInTable="columncod_fornitore" msprop:Generator_ColumnPropNameInRow="cod_fornitore" msprop:Generator_ColumnPropNameInTable="cod_fornitoreColumn" msprop:Generator_UserColumnName="cod_fornitore" minOccurs="0">
|
||||
@@ -1112,6 +1178,21 @@ SELECT idxStato, stato, descrizione, cssStato FROM AnagStati WHERE (idxStato = @
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element name="AnagPrior" msprop:Generator_TableClassName="AnagPriorDataTable" msprop:Generator_TableVarName="tableAnagPrior" msprop:Generator_TablePropName="AnagPrior" msprop:Generator_RowDeletingName="AnagPriorRowDeleting" msprop:Generator_RowChangingName="AnagPriorRowChanging" msprop:Generator_RowEvHandlerName="AnagPriorRowChangeEventHandler" msprop:Generator_RowDeletedName="AnagPriorRowDeleted" msprop:Generator_UserTableName="AnagPrior" msprop:Generator_RowChangedName="AnagPriorRowChanged" msprop:Generator_RowEvArgName="AnagPriorRowChangeEvent" msprop:Generator_RowClassName="AnagPriorRow">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="idxPriorita" msprop:Generator_ColumnVarNameInTable="columnidxPriorita" msprop:Generator_ColumnPropNameInRow="idxPriorita" msprop:Generator_ColumnPropNameInTable="idxPrioritaColumn" msprop:Generator_UserColumnName="idxPriorita" type="xs:int" />
|
||||
<xs:element name="descrPriorita" msprop:Generator_ColumnVarNameInTable="columndescrPriorita" msprop:Generator_ColumnPropNameInRow="descrPriorita" msprop:Generator_ColumnPropNameInTable="descrPrioritaColumn" msprop:Generator_UserColumnName="descrPriorita">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
<xs:element name="scadenzaGg" msprop:Generator_ColumnVarNameInTable="columnscadenzaGg" msprop:Generator_ColumnPropNameInRow="scadenzaGg" msprop:Generator_ColumnPropNameInTable="scadenzaGgColumn" msprop:Generator_UserColumnName="scadenzaGg" type="xs:double" />
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:choice>
|
||||
</xs:complexType>
|
||||
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
|
||||
@@ -1149,6 +1230,10 @@ SELECT idxStato, stato, descrizione, cssStato FROM AnagStati WHERE (idxStato = @
|
||||
<xs:selector xpath=".//mstns:AnagStati" />
|
||||
<xs:field xpath="mstns:idxStato" />
|
||||
</xs:unique>
|
||||
<xs:unique name="AnagPrior_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
|
||||
<xs:selector xpath=".//mstns:AnagPrior" />
|
||||
<xs:field xpath="mstns:idxPriorita" />
|
||||
</xs:unique>
|
||||
</xs:element>
|
||||
<xs:annotation>
|
||||
<xs:appinfo>
|
||||
|
||||
@@ -23,6 +23,7 @@ namespace Data
|
||||
/// </summary>
|
||||
protected virtual void avvioTableAdapters()
|
||||
{
|
||||
taAF = new DS_appTableAdapters.AnagFornitoriTableAdapter();
|
||||
taAS = new DS_appTableAdapters.AnagStatiTableAdapter();
|
||||
taAssF2A = new DS_appTableAdapters.AssF2ATableAdapter();
|
||||
taElRich = new DS_appTableAdapters.ElencolRichTableAdapter();
|
||||
@@ -35,6 +36,7 @@ namespace Data
|
||||
string connStr = memLayer.ML.confReadString("B2BCondConnectionString");
|
||||
//string connStrFiles = memLayer.ML.confReadString("B2BCondFilesConnectionString");
|
||||
// connections del db vocabolario
|
||||
taAF.Connection.ConnectionString = connStr;
|
||||
taAS.Connection.ConnectionString = connStr;
|
||||
taAssF2A.Connection.ConnectionString = connStr;
|
||||
taElRich.Connection.ConnectionString = connStr;
|
||||
@@ -44,6 +46,7 @@ namespace Data
|
||||
|
||||
#region area public
|
||||
|
||||
public DS_appTableAdapters.AnagFornitoriTableAdapter taAF;
|
||||
public DS_appTableAdapters.AnagStatiTableAdapter taAS;
|
||||
public DS_appTableAdapters.AssF2ATableAdapter taAssF2A;
|
||||
public DS_appTableAdapters.ElencolRichTableAdapter taElRich;
|
||||
|
||||
@@ -23,6 +23,9 @@ namespace Data
|
||||
bool answ = false;
|
||||
// se in modalità debug --> email solo a destinatario _debugEmail
|
||||
#if DEBUG
|
||||
string newEmail = memLayer.ML.CRS("_debugEmail");
|
||||
//loggo sostituzione...
|
||||
logger.lg.scriviLog(string.Format("Applicazione in DEBUG: sostituzione email destinatario {0} --> {1} prima dell'invio", destinatario, newEmail), tipoLog.INFO);
|
||||
destinatario = memLayer.ML.CRS("_debugEmail");
|
||||
#endif
|
||||
// se richeisto webPush...
|
||||
|
||||
Reference in New Issue
Block a user