Aggiunta chaimata IO x takeSnapshot

This commit is contained in:
Samuele Locatelli
2022-10-10 10:44:01 +02:00
parent 57c3091759
commit 3db0a6dcf4
4 changed files with 137 additions and 53 deletions
+10 -16
View File
@@ -1690,23 +1690,17 @@ namespace MP_IO.Controllers
return answ;
}
//[HttpPost]
//public string takeFlogSnapshot(string id, int maxSec)
//{
// string answ = "";
// string caller = "takeFlogSnapshot(id)";
// answ = doSaveFLSnapshot(id, maxSec, caller);
// return answ;
//}
[HttpPost]
// GET: IOB/takeFlogSnapshot/SIMUL_03
public string takeFlogSnapshot(string id)
{
string answ = "";
string caller = "takeFlogSnapshot(id)";
string caller = $"takeFlogSnapshot({id})";
answ = doSaveFLSnapshot(id, 10, caller);
DateTime adesso = DateTime.Now;
DateTime dtEnd = adesso;
DateTime dtStart = adesso.AddDays(-1);
//effettuo chiamata!
answ = doSaveFLSnapshot(id, dtStart, dtEnd, caller);
return answ;
}
@@ -1914,18 +1908,18 @@ namespace MP_IO.Controllers
/// <param name="maxSec"></param>
/// <param name="caller"></param>
/// <returns></returns>
private static string doSaveFLSnapshot(string id, int maxSec, string caller)
private static string doSaveFLSnapshot(string id, DateTime dtStart, DateTime dtEnd, string caller)
{
string answ;
DateTime dataOraEvento = DateTime.Now;
if (memLayer.ML.CRI("_logLevel") > 6)
{
logger.lg.scriviLog($"{caller} | Richiesta snapshot dati FluxLog macchina: idxMacchina: {id} ", tipoLog.INFO);
logger.lg.scriviLog($"{caller} | Richiesta snapshot dati FluxLog macchina: idxMacchina: {id} | periodo: {dtStart} - {dtEnd}", tipoLog.INFO);
}
try
{
DataLayer DataLayerObj = new DataLayer();
answ = DataLayerObj.takeFlogSnapshot(id, maxSec);
answ = DataLayerObj.takeFlogSnapshotLast(id, dtStart, dtEnd);
}
catch (Exception exc)
{
+49 -1
View File
@@ -28802,7 +28802,7 @@ SELECT IdxMacchina, dtEvento, CodFlux, Valore, Cnt FROM FluxLog WHERE (CodFlux =
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
private void InitCommandCollection() {
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[7];
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[8];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT * FROM dbo.FluxLog";
@@ -28865,6 +28865,14 @@ SELECT IdxMacchina, dtEvento, CodFlux, Valore, Cnt FROM FluxLog WHERE (CodFlux =
this._commandCollection[6].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[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MaxSec", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[7] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[7].Connection = this.Connection;
this._commandCollection[7].CommandText = "dbo.stp_FL_TakeSnapshotLast";
this._commandCollection[7].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[7].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[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtMin", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtMax", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -29343,6 +29351,46 @@ SELECT IdxMacchina, dtEvento, CodFlux, Valore, Cnt FROM FluxLog WHERE (CodFlux =
}
return returnValue;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int TakeSnapshotLast(string IdxMacchina, global::System.Nullable<global::System.DateTime> DtMin, global::System.Nullable<global::System.DateTime> DtMax) {
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[7];
if ((IdxMacchina == null)) {
command.Parameters[1].Value = global::System.DBNull.Value;
}
else {
command.Parameters[1].Value = ((string)(IdxMacchina));
}
if ((DtMin.HasValue == true)) {
command.Parameters[2].Value = ((System.DateTime)(DtMin.Value));
}
else {
command.Parameters[2].Value = global::System.DBNull.Value;
}
if ((DtMax.HasValue == true)) {
command.Parameters[3].Value = ((System.DateTime)(DtMax.Value));
}
else {
command.Parameters[3].Value = global::System.DBNull.Value;
}
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
command.Connection.Open();
}
int returnValue;
try {
returnValue = command.ExecuteNonQuery();
}
finally {
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
command.Connection.Close();
}
}
return returnValue;
}
}
/// <summary>
+48 -35
View File
@@ -2623,6 +2623,19 @@ SELECT IdxMacchina, dtEvento, CodFlux, Valore, Cnt FROM FluxLog WHERE (CodFlux =
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="MoonProConnectionString (Settings)" DbObjectName="MoonPro.dbo.stp_FL_TakeSnapshotLast" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="TakeSnapshotLast" Modifier="Public" Name="TakeSnapshotLast" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy3" UserSourceName="TakeSnapshotLast">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_FL_TakeSnapshotLast</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="@IdxMacchina" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@DtMin" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@DtMax" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</Sources>
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="AnagraficaGruppiTableAdapter" GeneratorDataComponentClassName="AnagraficaGruppiTableAdapter" Name="AnagraficaGruppi" UserDataComponentName="AnagraficaGruppiTableAdapter">
@@ -3844,46 +3857,46 @@ FROM v_AlarmLog</CommandText>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="AlarmLog" msprop:Generator_RowClassName="AlarmLogRow" msprop:Generator_RowEvHandlerName="AlarmLogRowChangeEventHandler" msprop:Generator_RowDeletedName="AlarmLogRowDeleted" msprop:Generator_RowDeletingName="AlarmLogRowDeleting" msprop:Generator_RowEvArgName="AlarmLogRowChangeEvent" msprop:Generator_TablePropName="AlarmLog" msprop:Generator_RowChangedName="AlarmLogRowChanged" msprop:Generator_UserTableName="AlarmLog" msprop:Generator_RowChangingName="AlarmLogRowChanging" msprop:Generator_TableClassName="AlarmLogDataTable" msprop:Generator_TableVarName="tableAlarmLog">
<xs:element name="AlarmLog" msprop:Generator_RowEvHandlerName="AlarmLogRowChangeEventHandler" msprop:Generator_RowDeletedName="AlarmLogRowDeleted" msprop:Generator_RowDeletingName="AlarmLogRowDeleting" msprop:Generator_RowEvArgName="AlarmLogRowChangeEvent" msprop:Generator_TablePropName="AlarmLog" msprop:Generator_RowChangedName="AlarmLogRowChanged" msprop:Generator_UserTableName="AlarmLog" msprop:Generator_RowChangingName="AlarmLogRowChanging" msprop:Generator_RowClassName="AlarmLogRow" msprop:Generator_TableClassName="AlarmLogDataTable" msprop:Generator_TableVarName="tableAlarmLog">
<xs:complexType>
<xs:sequence>
<xs:element name="AlarmLogId" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="AlarmLogId" msprop:Generator_ColumnPropNameInTable="AlarmLogIdColumn" msprop:Generator_ColumnPropNameInRow="AlarmLogId" msprop:Generator_ColumnVarNameInTable="columnAlarmLogId" type="xs:int" />
<xs:element name="DtRif" msprop:Generator_UserColumnName="DtRif" msprop:Generator_ColumnPropNameInTable="DtRifColumn" msprop:Generator_ColumnPropNameInRow="DtRif" msprop:Generator_ColumnVarNameInTable="columnDtRif" type="xs:dateTime" />
<xs:element name="Duration" msprop:Generator_UserColumnName="Duration" msprop:Generator_ColumnPropNameInTable="DurationColumn" msprop:Generator_ColumnPropNameInRow="Duration" msprop:Generator_ColumnVarNameInTable="columnDuration" type="xs:decimal" />
<xs:element name="MachineId" msprop:Generator_UserColumnName="MachineId" msprop:Generator_ColumnPropNameInTable="MachineIdColumn" msprop:Generator_ColumnPropNameInRow="MachineId" msprop:Generator_ColumnVarNameInTable="columnMachineId">
<xs:element name="AlarmLogId" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInTable="AlarmLogIdColumn" msprop:Generator_ColumnPropNameInRow="AlarmLogId" msprop:Generator_UserColumnName="AlarmLogId" msprop:Generator_ColumnVarNameInTable="columnAlarmLogId" type="xs:int" />
<xs:element name="DtRif" msprop:Generator_ColumnPropNameInTable="DtRifColumn" msprop:Generator_ColumnPropNameInRow="DtRif" msprop:Generator_UserColumnName="DtRif" msprop:Generator_ColumnVarNameInTable="columnDtRif" type="xs:dateTime" />
<xs:element name="Duration" msprop:Generator_ColumnPropNameInTable="DurationColumn" msprop:Generator_ColumnPropNameInRow="Duration" msprop:Generator_UserColumnName="Duration" msprop:Generator_ColumnVarNameInTable="columnDuration" type="xs:decimal" />
<xs:element name="MachineId" msprop:Generator_ColumnPropNameInTable="MachineIdColumn" msprop:Generator_ColumnPropNameInRow="MachineId" msprop:Generator_UserColumnName="MachineId" msprop:Generator_ColumnVarNameInTable="columnMachineId">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="MemAddress" msprop:Generator_UserColumnName="MemAddress" msprop:Generator_ColumnPropNameInTable="MemAddressColumn" msprop:Generator_ColumnPropNameInRow="MemAddress" msprop:Generator_ColumnVarNameInTable="columnMemAddress">
<xs:element name="MemAddress" msprop:Generator_ColumnPropNameInTable="MemAddressColumn" msprop:Generator_ColumnPropNameInRow="MemAddress" msprop:Generator_UserColumnName="MemAddress" msprop:Generator_ColumnVarNameInTable="columnMemAddress">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="MemIndex" msprop:Generator_UserColumnName="MemIndex" msprop:Generator_ColumnPropNameInTable="MemIndexColumn" msprop:Generator_ColumnPropNameInRow="MemIndex" msprop:Generator_ColumnVarNameInTable="columnMemIndex" type="xs:int" />
<xs:element name="StatusVal" msprop:Generator_UserColumnName="StatusVal" msprop:Generator_ColumnPropNameInTable="StatusValColumn" msprop:Generator_ColumnPropNameInRow="StatusVal" msprop:Generator_ColumnVarNameInTable="columnStatusVal" type="xs:int" />
<xs:element name="ValDecoded" msprop:Generator_UserColumnName="ValDecoded" msprop:Generator_ColumnPropNameInTable="ValDecodedColumn" msprop:Generator_ColumnPropNameInRow="ValDecoded" msprop:Generator_ColumnVarNameInTable="columnValDecoded">
<xs:element name="MemIndex" msprop:Generator_ColumnPropNameInTable="MemIndexColumn" msprop:Generator_ColumnPropNameInRow="MemIndex" msprop:Generator_UserColumnName="MemIndex" msprop:Generator_ColumnVarNameInTable="columnMemIndex" type="xs:int" />
<xs:element name="StatusVal" msprop:Generator_ColumnPropNameInTable="StatusValColumn" msprop:Generator_ColumnPropNameInRow="StatusVal" msprop:Generator_UserColumnName="StatusVal" msprop:Generator_ColumnVarNameInTable="columnStatusVal" type="xs:int" />
<xs:element name="ValDecoded" msprop:Generator_ColumnPropNameInTable="ValDecodedColumn" msprop:Generator_ColumnPropNameInRow="ValDecoded" msprop:Generator_UserColumnName="ValDecoded" msprop:Generator_ColumnVarNameInTable="columnValDecoded">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2500" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="DtNotify" msprop:Generator_UserColumnName="DtNotify" msprop:Generator_ColumnPropNameInTable="DtNotifyColumn" msprop:Generator_ColumnPropNameInRow="DtNotify" msprop:Generator_ColumnVarNameInTable="columnDtNotify" type="xs:dateTime" />
<xs:element name="UserAck" msprop:Generator_UserColumnName="UserAck" msprop:Generator_ColumnPropNameInTable="UserAckColumn" msprop:Generator_ColumnPropNameInRow="UserAck" msprop:Generator_ColumnVarNameInTable="columnUserAck">
<xs:element name="DtNotify" msprop:Generator_ColumnPropNameInTable="DtNotifyColumn" msprop:Generator_ColumnPropNameInRow="DtNotify" msprop:Generator_UserColumnName="DtNotify" msprop:Generator_ColumnVarNameInTable="columnDtNotify" type="xs:dateTime" />
<xs:element name="UserAck" msprop:Generator_ColumnPropNameInTable="UserAckColumn" msprop:Generator_ColumnPropNameInRow="UserAck" msprop:Generator_UserColumnName="UserAck" msprop:Generator_ColumnVarNameInTable="columnUserAck">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="DtAck" msprop:Generator_UserColumnName="DtAck" msprop:Generator_ColumnPropNameInTable="DtAckColumn" msprop:Generator_ColumnPropNameInRow="DtAck" msprop:Generator_ColumnVarNameInTable="columnDtAck" type="xs:dateTime" />
<xs:element name="ReqNotify" msdata:ReadOnly="true" msprop:Generator_UserColumnName="ReqNotify" msprop:Generator_ColumnPropNameInTable="ReqNotifyColumn" msprop:Generator_ColumnPropNameInRow="ReqNotify" msprop:Generator_ColumnVarNameInTable="columnReqNotify" type="xs:int" minOccurs="0" />
<xs:element name="ReqAck" msdata:ReadOnly="true" msprop:Generator_UserColumnName="ReqAck" msprop:Generator_ColumnPropNameInTable="ReqAckColumn" msprop:Generator_ColumnPropNameInRow="ReqAck" msprop:Generator_ColumnVarNameInTable="columnReqAck" type="xs:int" minOccurs="0" />
<xs:element name="DtAck" msprop:Generator_ColumnPropNameInTable="DtAckColumn" msprop:Generator_ColumnPropNameInRow="DtAck" msprop:Generator_UserColumnName="DtAck" msprop:Generator_ColumnVarNameInTable="columnDtAck" type="xs:dateTime" />
<xs:element name="ReqNotify" msdata:ReadOnly="true" msprop:Generator_ColumnPropNameInTable="ReqNotifyColumn" msprop:Generator_ColumnPropNameInRow="ReqNotify" msprop:Generator_UserColumnName="ReqNotify" msprop:Generator_ColumnVarNameInTable="columnReqNotify" type="xs:int" minOccurs="0" />
<xs:element name="ReqAck" msdata:ReadOnly="true" msprop:Generator_ColumnPropNameInTable="ReqAckColumn" msprop:Generator_ColumnPropNameInRow="ReqAck" msprop:Generator_UserColumnName="ReqAck" msprop:Generator_ColumnVarNameInTable="columnReqAck" type="xs:int" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
@@ -4020,33 +4033,33 @@ FROM v_AlarmLog</CommandText>
<xs:selector xpath=".//mstns:AlarmLog" />
<xs:field xpath="mstns:AlarmLogId" />
</xs:unique>
<xs:keyref name="FK_AnagTags_DiarioDichiarazioni" refer="AnagTags_Constraint1" msprop:rel_Generator_UserParentTable="AnagTags" msprop:rel_Generator_UserChildTable="DiarioDichiarazioni" msprop:rel_Generator_RelationVarName="relationFK_AnagTags_DiarioDichiarazioni" msprop:rel_Generator_ChildPropName="GetDiarioDichiarazioniRows" msprop:rel_Generator_ParentPropName="AnagTagsRow" msprop:rel_Generator_UserRelationName="FK_AnagTags_DiarioDichiarazioni">
<xs:keyref name="FK_AnagTags_DiarioDichiarazioni" refer="AnagTags_Constraint1" msprop:rel_Generator_UserParentTable="AnagTags" msprop:rel_Generator_UserChildTable="DiarioDichiarazioni" msprop:rel_Generator_RelationVarName="relationFK_AnagTags_DiarioDichiarazioni" msprop:rel_Generator_ChildPropName="GetDiarioDichiarazioniRows" msprop:rel_Generator_UserRelationName="FK_AnagTags_DiarioDichiarazioni" msprop:rel_Generator_ParentPropName="AnagTagsRow">
<xs:selector xpath=".//mstns:DiarioDichiarazioni" />
<xs:field xpath="mstns:TagCode" />
</xs:keyref>
</xs:element>
<xs:annotation>
<xs:appinfo>
<msdata:Relationship name="FK_Macchine2FamiglieMacchine_FamiglieMacchine" msdata:parent="FamiglieMacchine" msdata:child="Macchine2FamiglieMacchine" msdata:parentkey="IdxFamiglia" msdata:childkey="IdxFamiglia" msprop:Generator_UserParentTable="FamiglieMacchine" msprop:Generator_UserChildTable="Macchine2FamiglieMacchine" msprop:Generator_RelationVarName="relationFK_Macchine2FamiglieMacchine_FamiglieMacchine" msprop:Generator_ChildPropName="GetMacchine2FamiglieMacchineRows" msprop:Generator_ParentPropName="FamiglieMacchineRow" msprop:Generator_UserRelationName="FK_Macchine2FamiglieMacchine_FamiglieMacchine" />
<msdata:Relationship name="FK_Macchine2FamiglieMacchine_Macchine" msdata:parent="Macchine" msdata:child="Macchine2FamiglieMacchine" msdata:parentkey="IdxMacchina" msdata:childkey="IdxMacchina" msprop:Generator_UserParentTable="Macchine" msprop:Generator_UserChildTable="Macchine2FamiglieMacchine" msprop:Generator_RelationVarName="relationFK_Macchine2FamiglieMacchine_Macchine" msprop:Generator_ChildPropName="GetMacchine2FamiglieMacchineRows" msprop:Generator_ParentPropName="MacchineRow" msprop:Generator_UserRelationName="FK_Macchine2FamiglieMacchine_Macchine" />
<msdata:Relationship name="FK_TransizioneStati_FamiglieMacchine" msdata:parent="FamiglieMacchine" msdata:child="TransizioneStati" msdata:parentkey="IdxFamiglia" msdata:childkey="IdxFamiglia" msprop:Generator_UserParentTable="FamiglieMacchine" msprop:Generator_UserChildTable="TransizioneStati" msprop:Generator_RelationVarName="relationFK_TransizioneStati_FamiglieMacchine" msprop:Generator_ChildPropName="GetTransizioneStatiRows" msprop:Generator_ParentPropName="FamiglieMacchineRow" msprop:Generator_UserRelationName="FK_TransizioneStati_FamiglieMacchine" />
<msdata:Relationship name="FK_StatoMacchine_Macchine" msdata:parent="Macchine" msdata:child="StatoMacchine" msdata:parentkey="IdxMacchina" msdata:childkey="IdxMacchina" msprop:Generator_UserParentTable="Macchine" msprop:Generator_UserChildTable="StatoMacchine" msprop:Generator_RelationVarName="relationFK_StatoMacchine_Macchine" msprop:Generator_ChildPropName="GetStatoMacchineRows" msprop:Generator_ParentPropName="MacchineRow" msprop:Generator_UserRelationName="FK_StatoMacchine_Macchine" />
<msdata:Relationship name="FK_TransizioneStati_AnagraficaStati" msdata:parent="AnagraficaStati" msdata:child="TransizioneStati" msdata:parentkey="IdxStato" msdata:childkey="IdxStato" msprop:Generator_UserParentTable="AnagraficaStati" msprop:Generator_UserChildTable="TransizioneStati" msprop:Generator_RelationVarName="relationFK_TransizioneStati_AnagraficaStati" msprop:Generator_ChildPropName="GetTransizioneStatiRows" msprop:Generator_ParentPropName="AnagraficaStatiRow" msprop:Generator_UserRelationName="FK_TransizioneStati_AnagraficaStati" />
<msdata:Relationship name="FK_StatoMacchine_AnagraficaStati" msdata:parent="AnagraficaStati" msdata:child="StatoMacchine" msdata:parentkey="IdxStato" msdata:childkey="IdxStato" msprop:Generator_UserParentTable="AnagraficaStati" msprop:Generator_UserChildTable="StatoMacchine" msprop:Generator_RelationVarName="relationFK_StatoMacchine_AnagraficaStati" msprop:Generator_ChildPropName="GetStatoMacchineRows" msprop:Generator_ParentPropName="AnagraficaStatiRow" msprop:Generator_UserRelationName="FK_StatoMacchine_AnagraficaStati" />
<msdata:Relationship name="FK_EventList_Macchine" msdata:parent="Macchine" msdata:child="EventList" msdata:parentkey="IdxMacchina" msdata:childkey="IdxMacchina" msprop:Generator_UserParentTable="Macchine" msprop:Generator_UserChildTable="EventList" msprop:Generator_RelationVarName="relationFK_EventList_Macchine" msprop:Generator_ChildPropName="GetEventListRows" msprop:Generator_ParentPropName="MacchineRow" msprop:Generator_UserRelationName="FK_EventList_Macchine" />
<msdata:Relationship name="FK_TransizioneStati_AnagraficaEventi" msdata:parent="AnagraficaEventi" msdata:child="TransizioneStati" msdata:parentkey="IdxTipo" msdata:childkey="IdxTipo" msprop:Generator_UserParentTable="AnagraficaEventi" msprop:Generator_UserChildTable="TransizioneStati" msprop:Generator_RelationVarName="relationFK_TransizioneStati_AnagraficaEventi" msprop:Generator_ChildPropName="GetTransizioneStatiRows" msprop:Generator_ParentPropName="AnagraficaEventiRow" msprop:Generator_UserRelationName="FK_TransizioneStati_AnagraficaEventi" />
<msdata:Relationship name="FK_EventList_AnagraficaEventi" msdata:parent="AnagraficaEventi" msdata:child="EventList" msdata:parentkey="IdxTipo" msdata:childkey="IdxTipo" msprop:Generator_UserParentTable="AnagraficaEventi" msprop:Generator_UserChildTable="EventList" msprop:Generator_RelationVarName="relationFK_EventList_AnagraficaEventi" msprop:Generator_ChildPropName="GetEventListRows" msprop:Generator_ParentPropName="AnagraficaEventiRow" msprop:Generator_UserRelationName="FK_EventList_AnagraficaEventi" />
<msdata:Relationship name="FK_DiarioDiBordo_AnagraficaStati" msdata:parent="AnagraficaStati" msdata:child="DiarioDiBordo" msdata:parentkey="IdxStato" msdata:childkey="IdxStato" msprop:Generator_UserParentTable="AnagraficaStati" msprop:Generator_UserChildTable="DiarioDiBordo" msprop:Generator_RelationVarName="relationFK_DiarioDiBordo_AnagraficaStati" msprop:Generator_ChildPropName="GetDiarioDiBordoRows" msprop:Generator_ParentPropName="AnagraficaStatiRow" msprop:Generator_UserRelationName="FK_DiarioDiBordo_AnagraficaStati" />
<msdata:Relationship name="FK_DiarioDiBordo_Macchine" msdata:parent="Macchine" msdata:child="DiarioDiBordo" msdata:parentkey="IdxMacchina" msdata:childkey="IdxMacchina" msprop:Generator_UserParentTable="Macchine" msprop:Generator_UserChildTable="DiarioDiBordo" msprop:Generator_RelationVarName="relationFK_DiarioDiBordo_Macchine" msprop:Generator_ChildPropName="GetDiarioDiBordoRows" msprop:Generator_ParentPropName="MacchineRow" msprop:Generator_UserRelationName="FK_DiarioDiBordo_Macchine" />
<msdata:Relationship name="FK_TransizioneEventi_AnagraficaEventi1" msdata:parent="AnagraficaEventi" msdata:child="TransizioneEventi" msdata:parentkey="IdxTipo" msdata:childkey="IdxTipoEvento" msprop:Generator_UserParentTable="AnagraficaEventi" msprop:Generator_UserChildTable="TransizioneEventi" msprop:Generator_RelationVarName="relationFK_TransizioneEventi_AnagraficaEventi1" msprop:Generator_ChildPropName="GetTransizioneEventiRows" msprop:Generator_ParentPropName="AnagraficaEventiRow" msprop:Generator_UserRelationName="FK_TransizioneEventi_AnagraficaEventi1" />
<msdata:Relationship name="FK_Macchine2FamigliaIngressi_Macchine" msdata:parent="Macchine" msdata:child="Macchine2FamigliaIngressi" msdata:parentkey="IdxMacchina" msdata:childkey="IdxMacchina" msprop:Generator_UserParentTable="Macchine" msprop:Generator_UserChildTable="Macchine2FamigliaIngressi" msprop:Generator_RelationVarName="relationFK_Macchine2FamigliaIngressi_Macchine" msprop:Generator_ChildPropName="GetMacchine2FamigliaIngressiRows" msprop:Generator_ParentPropName="MacchineRow" msprop:Generator_UserRelationName="FK_Macchine2FamigliaIngressi_Macchine" />
<msdata:Relationship name="FK_Macchine2FamigliaIngressi_FamigliaTipoIngressi" msdata:parent="FamigliaTipoIngressi" msdata:child="Macchine2FamigliaIngressi" msdata:parentkey="IdxFamigliaIngresso" msdata:childkey="IdxFamigliaIngresso" msprop:Generator_UserParentTable="FamigliaTipoIngressi" msprop:Generator_UserChildTable="Macchine2FamigliaIngressi" msprop:Generator_RelationVarName="relationFK_Macchine2FamigliaIngressi_FamigliaTipoIngressi" msprop:Generator_ChildPropName="GetMacchine2FamigliaIngressiRows" msprop:Generator_ParentPropName="FamigliaTipoIngressiRow" msprop:Generator_UserRelationName="FK_Macchine2FamigliaIngressi_FamigliaTipoIngressi" />
<msdata:Relationship name="FK_TransizioneIngressi_AnagraficaEventi" msdata:parent="AnagraficaEventi" msdata:child="TransizioneIngressi" msdata:parentkey="IdxTipo" msdata:childkey="IdxTipoEvento" msprop:Generator_UserParentTable="AnagraficaEventi" msprop:Generator_UserChildTable="TransizioneIngressi" msprop:Generator_RelationVarName="relationFK_TransizioneIngressi_AnagraficaEventi" msprop:Generator_ChildPropName="GetTransizioneIngressiRows" msprop:Generator_ParentPropName="AnagraficaEventiRow" msprop:Generator_UserRelationName="FK_TransizioneIngressi_AnagraficaEventi" />
<msdata:Relationship name="FK_TransizioneIngressi_FamigliaTipoIngressi" msdata:parent="FamigliaTipoIngressi" msdata:child="TransizioneIngressi" msdata:parentkey="IdxFamigliaIngresso" msdata:childkey="IdxFamigliaIngresso" msprop:Generator_UserParentTable="FamigliaTipoIngressi" msprop:Generator_UserChildTable="TransizioneIngressi" msprop:Generator_RelationVarName="relationFK_TransizioneIngressi_FamigliaTipoIngressi" msprop:Generator_ChildPropName="GetTransizioneIngressiRows" msprop:Generator_ParentPropName="FamigliaTipoIngressiRow" msprop:Generator_UserRelationName="FK_TransizioneIngressi_FamigliaTipoIngressi" />
<msdata:Relationship name="FK_DiarioDiBordo_AnagraficaOperatori" msdata:parent="AnagraficaOperatori" msdata:child="DiarioDiBordo" msdata:parentkey="MatrOpr" msdata:childkey="MatrOpr" msprop:Generator_UserParentTable="AnagraficaOperatori" msprop:Generator_UserChildTable="DiarioDiBordo" msprop:Generator_RelationVarName="relationFK_DiarioDiBordo_AnagraficaOperatori" msprop:Generator_ChildPropName="GetDiarioDiBordoRows" msprop:Generator_ParentPropName="AnagraficaOperatoriRow" msprop:Generator_UserRelationName="FK_DiarioDiBordo_AnagraficaOperatori" />
<msdata:Relationship name="FK_EventList_AnagraficaOperatori" msdata:parent="AnagraficaOperatori" msdata:child="EventList" msdata:parentkey="MatrOpr" msdata:childkey="MatrOpr" msprop:Generator_UserParentTable="AnagraficaOperatori" msprop:Generator_UserChildTable="EventList" msprop:Generator_RelationVarName="relationFK_EventList_AnagraficaOperatori" msprop:Generator_ChildPropName="GetEventListRows" msprop:Generator_ParentPropName="AnagraficaOperatoriRow" msprop:Generator_UserRelationName="FK_EventList_AnagraficaOperatori" />
<msdata:Relationship name="FK_StatoMacchine_AnagraficaOperatori" msdata:parent="AnagraficaOperatori" msdata:child="StatoMacchine" msdata:parentkey="MatrOpr" msdata:childkey="MatrOpr" msprop:Generator_UserParentTable="AnagraficaOperatori" msprop:Generator_UserChildTable="StatoMacchine" msprop:Generator_RelationVarName="relationFK_StatoMacchine_AnagraficaOperatori" msprop:Generator_ChildPropName="GetStatoMacchineRows" msprop:Generator_ParentPropName="AnagraficaOperatoriRow" msprop:Generator_UserRelationName="FK_StatoMacchine_AnagraficaOperatori" />
<msdata:Relationship name="AnagArticoli_DiarioDiBordo" msdata:parent="AnagArticoli" msdata:child="DiarioDiBordo" msdata:parentkey="CodArticolo" msdata:childkey="CodArticolo" msprop:Generator_UserParentTable="AnagArticoli" msprop:Generator_UserChildTable="DiarioDiBordo" msprop:Generator_RelationVarName="relationAnagArticoli_DiarioDiBordo" msprop:Generator_ChildPropName="GetDiarioDiBordoRows" msprop:Generator_ParentPropName="AnagArticoliRow" msprop:Generator_UserRelationName="AnagArticoli_DiarioDiBordo" />
<msdata:Relationship name="FK_Macchine2FamiglieMacchine_FamiglieMacchine" msdata:parent="FamiglieMacchine" msdata:child="Macchine2FamiglieMacchine" msdata:parentkey="IdxFamiglia" msdata:childkey="IdxFamiglia" msprop:Generator_UserParentTable="FamiglieMacchine" msprop:Generator_UserChildTable="Macchine2FamiglieMacchine" msprop:Generator_RelationVarName="relationFK_Macchine2FamiglieMacchine_FamiglieMacchine" msprop:Generator_ChildPropName="GetMacchine2FamiglieMacchineRows" msprop:Generator_UserRelationName="FK_Macchine2FamiglieMacchine_FamiglieMacchine" msprop:Generator_ParentPropName="FamiglieMacchineRow" />
<msdata:Relationship name="FK_Macchine2FamiglieMacchine_Macchine" msdata:parent="Macchine" msdata:child="Macchine2FamiglieMacchine" msdata:parentkey="IdxMacchina" msdata:childkey="IdxMacchina" msprop:Generator_UserParentTable="Macchine" msprop:Generator_UserChildTable="Macchine2FamiglieMacchine" msprop:Generator_RelationVarName="relationFK_Macchine2FamiglieMacchine_Macchine" msprop:Generator_ChildPropName="GetMacchine2FamiglieMacchineRows" msprop:Generator_UserRelationName="FK_Macchine2FamiglieMacchine_Macchine" msprop:Generator_ParentPropName="MacchineRow" />
<msdata:Relationship name="FK_TransizioneStati_FamiglieMacchine" msdata:parent="FamiglieMacchine" msdata:child="TransizioneStati" msdata:parentkey="IdxFamiglia" msdata:childkey="IdxFamiglia" msprop:Generator_UserParentTable="FamiglieMacchine" msprop:Generator_UserChildTable="TransizioneStati" msprop:Generator_RelationVarName="relationFK_TransizioneStati_FamiglieMacchine" msprop:Generator_ChildPropName="GetTransizioneStatiRows" msprop:Generator_UserRelationName="FK_TransizioneStati_FamiglieMacchine" msprop:Generator_ParentPropName="FamiglieMacchineRow" />
<msdata:Relationship name="FK_StatoMacchine_Macchine" msdata:parent="Macchine" msdata:child="StatoMacchine" msdata:parentkey="IdxMacchina" msdata:childkey="IdxMacchina" msprop:Generator_UserParentTable="Macchine" msprop:Generator_UserChildTable="StatoMacchine" msprop:Generator_RelationVarName="relationFK_StatoMacchine_Macchine" msprop:Generator_ChildPropName="GetStatoMacchineRows" msprop:Generator_UserRelationName="FK_StatoMacchine_Macchine" msprop:Generator_ParentPropName="MacchineRow" />
<msdata:Relationship name="FK_TransizioneStati_AnagraficaStati" msdata:parent="AnagraficaStati" msdata:child="TransizioneStati" msdata:parentkey="IdxStato" msdata:childkey="IdxStato" msprop:Generator_UserParentTable="AnagraficaStati" msprop:Generator_UserChildTable="TransizioneStati" msprop:Generator_RelationVarName="relationFK_TransizioneStati_AnagraficaStati" msprop:Generator_ChildPropName="GetTransizioneStatiRows" msprop:Generator_UserRelationName="FK_TransizioneStati_AnagraficaStati" msprop:Generator_ParentPropName="AnagraficaStatiRow" />
<msdata:Relationship name="FK_StatoMacchine_AnagraficaStati" msdata:parent="AnagraficaStati" msdata:child="StatoMacchine" msdata:parentkey="IdxStato" msdata:childkey="IdxStato" msprop:Generator_UserParentTable="AnagraficaStati" msprop:Generator_UserChildTable="StatoMacchine" msprop:Generator_RelationVarName="relationFK_StatoMacchine_AnagraficaStati" msprop:Generator_ChildPropName="GetStatoMacchineRows" msprop:Generator_UserRelationName="FK_StatoMacchine_AnagraficaStati" msprop:Generator_ParentPropName="AnagraficaStatiRow" />
<msdata:Relationship name="FK_EventList_Macchine" msdata:parent="Macchine" msdata:child="EventList" msdata:parentkey="IdxMacchina" msdata:childkey="IdxMacchina" msprop:Generator_UserParentTable="Macchine" msprop:Generator_UserChildTable="EventList" msprop:Generator_RelationVarName="relationFK_EventList_Macchine" msprop:Generator_ChildPropName="GetEventListRows" msprop:Generator_UserRelationName="FK_EventList_Macchine" msprop:Generator_ParentPropName="MacchineRow" />
<msdata:Relationship name="FK_TransizioneStati_AnagraficaEventi" msdata:parent="AnagraficaEventi" msdata:child="TransizioneStati" msdata:parentkey="IdxTipo" msdata:childkey="IdxTipo" msprop:Generator_UserParentTable="AnagraficaEventi" msprop:Generator_UserChildTable="TransizioneStati" msprop:Generator_RelationVarName="relationFK_TransizioneStati_AnagraficaEventi" msprop:Generator_ChildPropName="GetTransizioneStatiRows" msprop:Generator_UserRelationName="FK_TransizioneStati_AnagraficaEventi" msprop:Generator_ParentPropName="AnagraficaEventiRow" />
<msdata:Relationship name="FK_EventList_AnagraficaEventi" msdata:parent="AnagraficaEventi" msdata:child="EventList" msdata:parentkey="IdxTipo" msdata:childkey="IdxTipo" msprop:Generator_UserParentTable="AnagraficaEventi" msprop:Generator_UserChildTable="EventList" msprop:Generator_RelationVarName="relationFK_EventList_AnagraficaEventi" msprop:Generator_ChildPropName="GetEventListRows" msprop:Generator_UserRelationName="FK_EventList_AnagraficaEventi" msprop:Generator_ParentPropName="AnagraficaEventiRow" />
<msdata:Relationship name="FK_DiarioDiBordo_AnagraficaStati" msdata:parent="AnagraficaStati" msdata:child="DiarioDiBordo" msdata:parentkey="IdxStato" msdata:childkey="IdxStato" msprop:Generator_UserParentTable="AnagraficaStati" msprop:Generator_UserChildTable="DiarioDiBordo" msprop:Generator_RelationVarName="relationFK_DiarioDiBordo_AnagraficaStati" msprop:Generator_ChildPropName="GetDiarioDiBordoRows" msprop:Generator_UserRelationName="FK_DiarioDiBordo_AnagraficaStati" msprop:Generator_ParentPropName="AnagraficaStatiRow" />
<msdata:Relationship name="FK_DiarioDiBordo_Macchine" msdata:parent="Macchine" msdata:child="DiarioDiBordo" msdata:parentkey="IdxMacchina" msdata:childkey="IdxMacchina" msprop:Generator_UserParentTable="Macchine" msprop:Generator_UserChildTable="DiarioDiBordo" msprop:Generator_RelationVarName="relationFK_DiarioDiBordo_Macchine" msprop:Generator_ChildPropName="GetDiarioDiBordoRows" msprop:Generator_UserRelationName="FK_DiarioDiBordo_Macchine" msprop:Generator_ParentPropName="MacchineRow" />
<msdata:Relationship name="FK_TransizioneEventi_AnagraficaEventi1" msdata:parent="AnagraficaEventi" msdata:child="TransizioneEventi" msdata:parentkey="IdxTipo" msdata:childkey="IdxTipoEvento" msprop:Generator_UserParentTable="AnagraficaEventi" msprop:Generator_UserChildTable="TransizioneEventi" msprop:Generator_RelationVarName="relationFK_TransizioneEventi_AnagraficaEventi1" msprop:Generator_ChildPropName="GetTransizioneEventiRows" msprop:Generator_UserRelationName="FK_TransizioneEventi_AnagraficaEventi1" msprop:Generator_ParentPropName="AnagraficaEventiRow" />
<msdata:Relationship name="FK_Macchine2FamigliaIngressi_Macchine" msdata:parent="Macchine" msdata:child="Macchine2FamigliaIngressi" msdata:parentkey="IdxMacchina" msdata:childkey="IdxMacchina" msprop:Generator_UserParentTable="Macchine" msprop:Generator_UserChildTable="Macchine2FamigliaIngressi" msprop:Generator_RelationVarName="relationFK_Macchine2FamigliaIngressi_Macchine" msprop:Generator_ChildPropName="GetMacchine2FamigliaIngressiRows" msprop:Generator_UserRelationName="FK_Macchine2FamigliaIngressi_Macchine" msprop:Generator_ParentPropName="MacchineRow" />
<msdata:Relationship name="FK_Macchine2FamigliaIngressi_FamigliaTipoIngressi" msdata:parent="FamigliaTipoIngressi" msdata:child="Macchine2FamigliaIngressi" msdata:parentkey="IdxFamigliaIngresso" msdata:childkey="IdxFamigliaIngresso" msprop:Generator_UserParentTable="FamigliaTipoIngressi" msprop:Generator_UserChildTable="Macchine2FamigliaIngressi" msprop:Generator_RelationVarName="relationFK_Macchine2FamigliaIngressi_FamigliaTipoIngressi" msprop:Generator_ChildPropName="GetMacchine2FamigliaIngressiRows" msprop:Generator_UserRelationName="FK_Macchine2FamigliaIngressi_FamigliaTipoIngressi" msprop:Generator_ParentPropName="FamigliaTipoIngressiRow" />
<msdata:Relationship name="FK_TransizioneIngressi_AnagraficaEventi" msdata:parent="AnagraficaEventi" msdata:child="TransizioneIngressi" msdata:parentkey="IdxTipo" msdata:childkey="IdxTipoEvento" msprop:Generator_UserParentTable="AnagraficaEventi" msprop:Generator_UserChildTable="TransizioneIngressi" msprop:Generator_RelationVarName="relationFK_TransizioneIngressi_AnagraficaEventi" msprop:Generator_ChildPropName="GetTransizioneIngressiRows" msprop:Generator_UserRelationName="FK_TransizioneIngressi_AnagraficaEventi" msprop:Generator_ParentPropName="AnagraficaEventiRow" />
<msdata:Relationship name="FK_TransizioneIngressi_FamigliaTipoIngressi" msdata:parent="FamigliaTipoIngressi" msdata:child="TransizioneIngressi" msdata:parentkey="IdxFamigliaIngresso" msdata:childkey="IdxFamigliaIngresso" msprop:Generator_UserParentTable="FamigliaTipoIngressi" msprop:Generator_UserChildTable="TransizioneIngressi" msprop:Generator_RelationVarName="relationFK_TransizioneIngressi_FamigliaTipoIngressi" msprop:Generator_ChildPropName="GetTransizioneIngressiRows" msprop:Generator_UserRelationName="FK_TransizioneIngressi_FamigliaTipoIngressi" msprop:Generator_ParentPropName="FamigliaTipoIngressiRow" />
<msdata:Relationship name="FK_DiarioDiBordo_AnagraficaOperatori" msdata:parent="AnagraficaOperatori" msdata:child="DiarioDiBordo" msdata:parentkey="MatrOpr" msdata:childkey="MatrOpr" msprop:Generator_UserParentTable="AnagraficaOperatori" msprop:Generator_UserChildTable="DiarioDiBordo" msprop:Generator_RelationVarName="relationFK_DiarioDiBordo_AnagraficaOperatori" msprop:Generator_ChildPropName="GetDiarioDiBordoRows" msprop:Generator_UserRelationName="FK_DiarioDiBordo_AnagraficaOperatori" msprop:Generator_ParentPropName="AnagraficaOperatoriRow" />
<msdata:Relationship name="FK_EventList_AnagraficaOperatori" msdata:parent="AnagraficaOperatori" msdata:child="EventList" msdata:parentkey="MatrOpr" msdata:childkey="MatrOpr" msprop:Generator_UserParentTable="AnagraficaOperatori" msprop:Generator_UserChildTable="EventList" msprop:Generator_RelationVarName="relationFK_EventList_AnagraficaOperatori" msprop:Generator_ChildPropName="GetEventListRows" msprop:Generator_UserRelationName="FK_EventList_AnagraficaOperatori" msprop:Generator_ParentPropName="AnagraficaOperatoriRow" />
<msdata:Relationship name="FK_StatoMacchine_AnagraficaOperatori" msdata:parent="AnagraficaOperatori" msdata:child="StatoMacchine" msdata:parentkey="MatrOpr" msdata:childkey="MatrOpr" msprop:Generator_UserParentTable="AnagraficaOperatori" msprop:Generator_UserChildTable="StatoMacchine" msprop:Generator_RelationVarName="relationFK_StatoMacchine_AnagraficaOperatori" msprop:Generator_ChildPropName="GetStatoMacchineRows" msprop:Generator_UserRelationName="FK_StatoMacchine_AnagraficaOperatori" msprop:Generator_ParentPropName="AnagraficaOperatoriRow" />
<msdata:Relationship name="AnagArticoli_DiarioDiBordo" msdata:parent="AnagArticoli" msdata:child="DiarioDiBordo" msdata:parentkey="CodArticolo" msdata:childkey="CodArticolo" msprop:Generator_UserParentTable="AnagArticoli" msprop:Generator_UserChildTable="DiarioDiBordo" msprop:Generator_RelationVarName="relationAnagArticoli_DiarioDiBordo" msprop:Generator_ChildPropName="GetDiarioDiBordoRows" msprop:Generator_UserRelationName="AnagArticoli_DiarioDiBordo" msprop:Generator_ParentPropName="AnagArticoliRow" />
</xs:appinfo>
</xs:annotation>
</xs:schema>
+30 -1
View File
@@ -3403,7 +3403,7 @@ namespace MapoDb
}
/// <summary>
/// Effettua chaimata DB x snapshot del FluxLog della macchina richiesta (insieme set ultimi dati)
/// Effettua chiamata DB x snapshot del FluxLog della macchina richiesta (insieme set ultimi dati)
/// </summary>
/// <param name="id">IdxMacchina</param>
/// <param name="id">
@@ -3432,6 +3432,35 @@ namespace MapoDb
return answ;
}
/// <summary>
/// Effettua chiamata DB x snapshot del FluxLog della macchina richiesta (insieme set ultimi dati)
/// </summary>
/// <param name="id">IdxMacchina</param>
/// <param name="dtMin">DT start x effettuare snapshot</param>
/// <param name="dtMax">DT end x effettuare snapshot</param>
/// <returns></returns>
public string takeFlogSnapshotLast(string id, DateTime dtMin, DateTime dtMax)
{
string answ = "ND";
// instanzio un nuovo oggetto MapoDb
MapoDb connDb = new MapoDb();
// scrivo keep alive!!! (se necessario, altrimenti è in cache...)
connDb.scriviKeepAlive(id, DateTime.Now);
try
{
// ora chiamo la stored di duplicazione
DataLayer DLMan = new DataLayer();
DLMan.taFL.TakeSnapshotLast(id, dtMin, dtMax);
answ = "OK";
}
catch (Exception exc)
{
logger.lg.scriviLog($"TakeSnapshotLast:{Environment.NewLine}{exc}", tipoLog.EXCEPTION);
}
return answ;
}
/// <summary>
/// Aggiornamento parametro per macchina
/// </summary>