Merge branch 'bugfix_edit_mtzPrev'

This commit is contained in:
samuele
2012-10-03 18:25:18 +02:00
24 changed files with 164 additions and 56 deletions
+45 -11
View File
@@ -16284,7 +16284,7 @@ ORDER BY numIntMtz DESC";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private void InitCommandCollection() {
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT idxIntPro, idxMacchina, codMacchina, nomeMacchina, inizio, codFrequenz" +
@@ -16293,17 +16293,23 @@ ORDER BY numIntMtz DESC";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[1].Connection = this.Connection;
this._commandCollection[1].CommandText = "dbo.stp_MtzProg_insert";
this._commandCollection[1].CommandText = "dbo.stp_MtzProg_delete";
this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[1].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[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxMacchina", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@inizio", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@codFrequenza", global::System.Data.SqlDbType.NChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cadenza", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@descrizione", global::System.Data.SqlDbType.NVarChar, 2500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxPriorita", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@isFermo", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxTipo", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idxIntPro", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[2].Connection = this.Connection;
this._commandCollection[2].CommandText = "dbo.stp_MtzProg_insert";
this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxMacchina", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@inizio", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@codFrequenza", global::System.Data.SqlDbType.NChar, 2, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cadenza", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@descrizione", global::System.Data.SqlDbType.NVarChar, 2500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxPriorita", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@isFermo", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxTipo", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -16333,8 +16339,36 @@ ORDER BY numIntMtz DESC";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int insertQuery(global::System.Nullable<int> idxMacchina, global::System.Nullable<global::System.DateTime> inizio, string codFrequenza, global::System.Nullable<int> cadenza, string descrizione, global::System.Nullable<int> idxPriorita, global::System.Nullable<bool> isFermo, global::System.Nullable<int> idxTipo) {
public virtual int deleteQuery(global::System.Nullable<int> Original_idxIntPro) {
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1];
if ((Original_idxIntPro.HasValue == true)) {
command.Parameters[1].Value = ((int)(Original_idxIntPro.Value));
}
else {
command.Parameters[1].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;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int insertQuery(global::System.Nullable<int> idxMacchina, global::System.Nullable<global::System.DateTime> inizio, string codFrequenza, global::System.Nullable<int> cadenza, string descrizione, global::System.Nullable<int> idxPriorita, global::System.Nullable<bool> isFermo, global::System.Nullable<int> idxTipo) {
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2];
if ((idxMacchina.HasValue == true)) {
command.Parameters[1].Value = ((int)(idxMacchina.Value));
}
+25 -14
View File
@@ -939,6 +939,17 @@ FROM v_mtzProgExp</CommandText>
<Mapping SourceColumn="descrTipo" DataSetColumn="descrTipo" />
</Mappings>
<Sources>
<DbSource ConnectionRef="GIMConnectionString (Web.config)" DbObjectName="GIM.dbo.stp_MtzProg_delete" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="deleteQuery" Modifier="Public" Name="deleteQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="deleteQuery">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_MtzProg_delete</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Original_idxIntPro" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="GIMConnectionString (Web.config)" DbObjectName="GIM.dbo.stp_MtzProg_insert" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="insertQuery" Modifier="Public" Name="insertQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="insertQuery">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
@@ -2191,20 +2202,20 @@ WHERE (idxCausale = @Original_idxCausale)</CommandText>
</xs:element>
<xs:annotation>
<xs:appinfo>
<msdata:Relationship name="FK_AnagMacchine_AnagImpianti" msdata:parent="AnagImpianti" msdata:child="v_macchine" msdata:parentkey="idxImpianto" msdata:childkey="idxImpianto" msprop:Generator_UserChildTable="v_macchine" msprop:Generator_ChildPropName="Getv_macchineRows" msprop:Generator_UserRelationName="FK_AnagMacchine_AnagImpianti" msprop:Generator_RelationVarName="relationFK_AnagMacchine_AnagImpianti" msprop:Generator_UserParentTable="AnagImpianti" msprop:Generator_ParentPropName="AnagImpiantiRow" />
<msdata:Relationship name="Macchine2FamMacchine_v_macchine" msdata:parent="v_selFamMacc" msdata:child="v_macchine" msdata:parentkey="idxMacchina" msdata:childkey="idxMacchina" msprop:Generator_UserChildTable="v_macchine" msprop:Generator_ChildPropName="Getv_macchineRows" msprop:Generator_UserRelationName="Macchine2FamMacchine_v_macchine" msprop:Generator_RelationVarName="relationMacchine2FamMacchine_v_macchine" msprop:Generator_UserParentTable="v_selFamMacc" msprop:Generator_ParentPropName="v_selFamMaccRow" />
<msdata:Relationship name="AnagFamMacchine_v_selFamMacc" msdata:parent="AnagFamMacchine" msdata:child="v_selFamMacc" msdata:parentkey="idxFamMacchine" msdata:childkey="idxFamMacchine" msprop:Generator_UserChildTable="v_selFamMacc" msprop:Generator_ChildPropName="Getv_selFamMaccRows" msprop:Generator_UserRelationName="AnagFamMacchine_v_selFamMacc" msprop:Generator_RelationVarName="relationAnagFamMacchine_v_selFamMacc" msprop:Generator_UserParentTable="AnagFamMacchine" msprop:Generator_ParentPropName="AnagFamMacchineRow" />
<msdata:Relationship name="FK_InterventiMtz_AnagAmbitoGuasto" msdata:parent="AnagAmbitoGuasto" msdata:child="v_intervExp" msdata:parentkey="idxAmbito" msdata:childkey="idxAmbito" msprop:Generator_UserChildTable="v_intervExp" msprop:Generator_ChildPropName="Getv_intervExpRows" msprop:Generator_UserRelationName="FK_InterventiMtz_AnagAmbitoGuasto" msprop:Generator_RelationVarName="relationFK_InterventiMtz_AnagAmbitoGuasto" msprop:Generator_UserParentTable="AnagAmbitoGuasto" msprop:Generator_ParentPropName="AnagAmbitoGuastoRow" />
<msdata:Relationship name="FK_InterventiMtz_AnagImpianti" msdata:parent="AnagImpianti" msdata:child="v_intervExp" msdata:parentkey="idxImpianto" msdata:childkey="idxImpianto" msprop:Generator_UserChildTable="v_intervExp" msprop:Generator_ChildPropName="Getv_intervExpRows" msprop:Generator_UserRelationName="FK_InterventiMtz_AnagImpianti" msprop:Generator_RelationVarName="relationFK_InterventiMtz_AnagImpianti" msprop:Generator_UserParentTable="AnagImpianti" msprop:Generator_ParentPropName="AnagImpiantiRow" />
<msdata:Relationship name="FK_InterventiMtz_AnagPriorita" msdata:parent="AnagPriorita" msdata:child="v_intervExp" msdata:parentkey="idxPriorita" msdata:childkey="idxPriorita" msprop:Generator_UserChildTable="v_intervExp" msprop:Generator_ChildPropName="Getv_intervExpRows" msprop:Generator_UserRelationName="FK_InterventiMtz_AnagPriorita" msprop:Generator_RelationVarName="relationFK_InterventiMtz_AnagPriorita" msprop:Generator_UserParentTable="AnagPriorita" msprop:Generator_ParentPropName="AnagPrioritaRow" />
<msdata:Relationship name="FK_InterventiMtz_AnagTipoGuasto" msdata:parent="AnagTipoGuasto" msdata:child="v_intervExp" msdata:parentkey="idxTipo" msdata:childkey="idxTipo" msprop:Generator_UserChildTable="v_intervExp" msprop:Generator_ChildPropName="GetInterventiMtzRows" msprop:Generator_UserRelationName="FK_InterventiMtz_AnagTipoGuasto" msprop:Generator_RelationVarName="relationFK_InterventiMtz_AnagTipoGuasto" msprop:Generator_UserParentTable="AnagTipoGuasto" msprop:Generator_ParentPropName="AnagTipoGuastoRow" />
<msdata:Relationship name="v_intervExp_InterventoOpMtz" msdata:parent="v_intervExp" msdata:child="InterventoOpMtz" msdata:parentkey="numIntMtz" msdata:childkey="numIntMtz" msprop:Generator_UserChildTable="InterventoOpMtz" msprop:Generator_ChildPropName="GetInterventoOpMtzRows" msprop:Generator_UserRelationName="v_intervExp_InterventoOpMtz" msprop:Generator_RelationVarName="relationv_intervExp_InterventoOpMtz" msprop:Generator_UserParentTable="v_intervExp" msprop:Generator_ParentPropName="v_intervExpRow" />
<msdata:Relationship name="FK_MtzProgPending_MtzProgrammata" msdata:parent="MtzProgrammata" msdata:child="MtzProgPending" msdata:parentkey="idxIntPro" msdata:childkey="idxIntPro" msprop:Generator_UserChildTable="MtzProgPending" msprop:Generator_ChildPropName="GetMtzProgPendingRows" msprop:Generator_UserRelationName="FK_MtzProgPending_MtzProgrammata" msprop:Generator_RelationVarName="relationFK_MtzProgPending_MtzProgrammata" msprop:Generator_UserParentTable="MtzProgrammata" msprop:Generator_ParentPropName="MtzProgrammataRow" />
<msdata:Relationship name="FK_FiltroImpianti_AnagImpianti" msdata:parent="AnagImpianti" msdata:child="FiltroImpianti" msdata:parentkey="idxImpianto" msdata:childkey="idxImpianto" msprop:Generator_UserChildTable="FiltroImpianti" msprop:Generator_ChildPropName="GetFiltroImpiantiRows" msprop:Generator_UserRelationName="FK_FiltroImpianti_AnagImpianti" msprop:Generator_RelationVarName="relationFK_FiltroImpianti_AnagImpianti" msprop:Generator_UserParentTable="AnagImpianti" msprop:Generator_ParentPropName="AnagImpiantiRow" />
<msdata:Relationship name="v_macchine_FiltroMacchine" msdata:parent="v_macchine" msdata:child="FiltroMacchine" msdata:parentkey="idxMacchina" msdata:childkey="idxMacchina" msprop:Generator_UserChildTable="FiltroMacchine" msprop:Generator_ChildPropName="GetFiltroMacchineRows" msprop:Generator_UserRelationName="v_macchine_FiltroMacchine" msprop:Generator_RelationVarName="relationv_macchine_FiltroMacchine" msprop:Generator_UserParentTable="v_macchine" msprop:Generator_ParentPropName="v_macchineRow" />
<msdata:Relationship name="FK_FiltroStati_AnagStati" msdata:parent="AnagStati" msdata:child="FiltroStati" msdata:parentkey="idxStato" msdata:childkey="idxStato" msprop:Generator_UserChildTable="FiltroStati" msprop:Generator_ChildPropName="GetFiltroStatiRows" msprop:Generator_UserRelationName="FK_FiltroStati_AnagStati" msprop:Generator_RelationVarName="relationFK_FiltroStati_AnagStati" msprop:Generator_UserParentTable="AnagStati" msprop:Generator_ParentPropName="AnagStatiRow" />
<msdata:Relationship name="FK_AnagCausali_AnagFamMacchine" msdata:parent="AnagFamMacchine" msdata:child="AnagCausali" msdata:parentkey="idxFamMacchine" msdata:childkey="idxFamMacchine" msprop:Generator_UserChildTable="AnagCausali" msprop:Generator_ChildPropName="GetAnagCausaliRows" msprop:Generator_UserRelationName="FK_AnagCausali_AnagFamMacchine" msprop:Generator_RelationVarName="relationFK_AnagCausali_AnagFamMacchine" msprop:Generator_UserParentTable="AnagFamMacchine" msprop:Generator_ParentPropName="AnagFamMacchineRow" />
<msdata:Relationship name="FK_InterventoOpMtz_AnagrOperMtz" msdata:parent="AnagrOperMtz" msdata:child="InterventoOpMtz" msdata:parentkey="matrOp" msdata:childkey="matrOp" msprop:Generator_UserChildTable="InterventoOpMtz" msprop:Generator_ChildPropName="GetInterventoOpMtzRows" msprop:Generator_UserRelationName="FK_InterventoOpMtz_AnagrOperMtz" msprop:Generator_RelationVarName="relationFK_InterventoOpMtz_AnagrOperMtz" msprop:Generator_UserParentTable="AnagrOperMtz" msprop:Generator_ParentPropName="AnagrOperMtzRow" />
<msdata:Relationship name="FK_AnagMacchine_AnagImpianti" msdata:parent="AnagImpianti" msdata:child="v_macchine" msdata:parentkey="idxImpianto" msdata:childkey="idxImpianto" msprop:Generator_UserChildTable="v_macchine" msprop:Generator_ChildPropName="Getv_macchineRows" msprop:Generator_UserRelationName="FK_AnagMacchine_AnagImpianti" msprop:Generator_ParentPropName="AnagImpiantiRow" msprop:Generator_RelationVarName="relationFK_AnagMacchine_AnagImpianti" msprop:Generator_UserParentTable="AnagImpianti" />
<msdata:Relationship name="Macchine2FamMacchine_v_macchine" msdata:parent="v_selFamMacc" msdata:child="v_macchine" msdata:parentkey="idxMacchina" msdata:childkey="idxMacchina" msprop:Generator_UserChildTable="v_macchine" msprop:Generator_ChildPropName="Getv_macchineRows" msprop:Generator_UserRelationName="Macchine2FamMacchine_v_macchine" msprop:Generator_ParentPropName="v_selFamMaccRow" msprop:Generator_RelationVarName="relationMacchine2FamMacchine_v_macchine" msprop:Generator_UserParentTable="v_selFamMacc" />
<msdata:Relationship name="AnagFamMacchine_v_selFamMacc" msdata:parent="AnagFamMacchine" msdata:child="v_selFamMacc" msdata:parentkey="idxFamMacchine" msdata:childkey="idxFamMacchine" msprop:Generator_UserChildTable="v_selFamMacc" msprop:Generator_ChildPropName="Getv_selFamMaccRows" msprop:Generator_UserRelationName="AnagFamMacchine_v_selFamMacc" msprop:Generator_ParentPropName="AnagFamMacchineRow" msprop:Generator_RelationVarName="relationAnagFamMacchine_v_selFamMacc" msprop:Generator_UserParentTable="AnagFamMacchine" />
<msdata:Relationship name="FK_InterventiMtz_AnagAmbitoGuasto" msdata:parent="AnagAmbitoGuasto" msdata:child="v_intervExp" msdata:parentkey="idxAmbito" msdata:childkey="idxAmbito" msprop:Generator_UserChildTable="v_intervExp" msprop:Generator_ChildPropName="Getv_intervExpRows" msprop:Generator_UserRelationName="FK_InterventiMtz_AnagAmbitoGuasto" msprop:Generator_ParentPropName="AnagAmbitoGuastoRow" msprop:Generator_RelationVarName="relationFK_InterventiMtz_AnagAmbitoGuasto" msprop:Generator_UserParentTable="AnagAmbitoGuasto" />
<msdata:Relationship name="FK_InterventiMtz_AnagImpianti" msdata:parent="AnagImpianti" msdata:child="v_intervExp" msdata:parentkey="idxImpianto" msdata:childkey="idxImpianto" msprop:Generator_UserChildTable="v_intervExp" msprop:Generator_ChildPropName="Getv_intervExpRows" msprop:Generator_UserRelationName="FK_InterventiMtz_AnagImpianti" msprop:Generator_ParentPropName="AnagImpiantiRow" msprop:Generator_RelationVarName="relationFK_InterventiMtz_AnagImpianti" msprop:Generator_UserParentTable="AnagImpianti" />
<msdata:Relationship name="FK_InterventiMtz_AnagPriorita" msdata:parent="AnagPriorita" msdata:child="v_intervExp" msdata:parentkey="idxPriorita" msdata:childkey="idxPriorita" msprop:Generator_UserChildTable="v_intervExp" msprop:Generator_ChildPropName="Getv_intervExpRows" msprop:Generator_UserRelationName="FK_InterventiMtz_AnagPriorita" msprop:Generator_ParentPropName="AnagPrioritaRow" msprop:Generator_RelationVarName="relationFK_InterventiMtz_AnagPriorita" msprop:Generator_UserParentTable="AnagPriorita" />
<msdata:Relationship name="FK_InterventiMtz_AnagTipoGuasto" msdata:parent="AnagTipoGuasto" msdata:child="v_intervExp" msdata:parentkey="idxTipo" msdata:childkey="idxTipo" msprop:Generator_UserChildTable="v_intervExp" msprop:Generator_ChildPropName="GetInterventiMtzRows" msprop:Generator_UserRelationName="FK_InterventiMtz_AnagTipoGuasto" msprop:Generator_ParentPropName="AnagTipoGuastoRow" msprop:Generator_RelationVarName="relationFK_InterventiMtz_AnagTipoGuasto" msprop:Generator_UserParentTable="AnagTipoGuasto" />
<msdata:Relationship name="v_intervExp_InterventoOpMtz" msdata:parent="v_intervExp" msdata:child="InterventoOpMtz" msdata:parentkey="numIntMtz" msdata:childkey="numIntMtz" msprop:Generator_UserChildTable="InterventoOpMtz" msprop:Generator_ChildPropName="GetInterventoOpMtzRows" msprop:Generator_UserRelationName="v_intervExp_InterventoOpMtz" msprop:Generator_ParentPropName="v_intervExpRow" msprop:Generator_RelationVarName="relationv_intervExp_InterventoOpMtz" msprop:Generator_UserParentTable="v_intervExp" />
<msdata:Relationship name="FK_MtzProgPending_MtzProgrammata" msdata:parent="MtzProgrammata" msdata:child="MtzProgPending" msdata:parentkey="idxIntPro" msdata:childkey="idxIntPro" msprop:Generator_UserChildTable="MtzProgPending" msprop:Generator_ChildPropName="GetMtzProgPendingRows" msprop:Generator_UserRelationName="FK_MtzProgPending_MtzProgrammata" msprop:Generator_ParentPropName="MtzProgrammataRow" msprop:Generator_RelationVarName="relationFK_MtzProgPending_MtzProgrammata" msprop:Generator_UserParentTable="MtzProgrammata" />
<msdata:Relationship name="FK_FiltroImpianti_AnagImpianti" msdata:parent="AnagImpianti" msdata:child="FiltroImpianti" msdata:parentkey="idxImpianto" msdata:childkey="idxImpianto" msprop:Generator_UserChildTable="FiltroImpianti" msprop:Generator_ChildPropName="GetFiltroImpiantiRows" msprop:Generator_UserRelationName="FK_FiltroImpianti_AnagImpianti" msprop:Generator_ParentPropName="AnagImpiantiRow" msprop:Generator_RelationVarName="relationFK_FiltroImpianti_AnagImpianti" msprop:Generator_UserParentTable="AnagImpianti" />
<msdata:Relationship name="v_macchine_FiltroMacchine" msdata:parent="v_macchine" msdata:child="FiltroMacchine" msdata:parentkey="idxMacchina" msdata:childkey="idxMacchina" msprop:Generator_UserChildTable="FiltroMacchine" msprop:Generator_ChildPropName="GetFiltroMacchineRows" msprop:Generator_UserRelationName="v_macchine_FiltroMacchine" msprop:Generator_ParentPropName="v_macchineRow" msprop:Generator_RelationVarName="relationv_macchine_FiltroMacchine" msprop:Generator_UserParentTable="v_macchine" />
<msdata:Relationship name="FK_FiltroStati_AnagStati" msdata:parent="AnagStati" msdata:child="FiltroStati" msdata:parentkey="idxStato" msdata:childkey="idxStato" msprop:Generator_UserChildTable="FiltroStati" msprop:Generator_ChildPropName="GetFiltroStatiRows" msprop:Generator_UserRelationName="FK_FiltroStati_AnagStati" msprop:Generator_ParentPropName="AnagStatiRow" msprop:Generator_RelationVarName="relationFK_FiltroStati_AnagStati" msprop:Generator_UserParentTable="AnagStati" />
<msdata:Relationship name="FK_AnagCausali_AnagFamMacchine" msdata:parent="AnagFamMacchine" msdata:child="AnagCausali" msdata:parentkey="idxFamMacchine" msdata:childkey="idxFamMacchine" msprop:Generator_UserChildTable="AnagCausali" msprop:Generator_ChildPropName="GetAnagCausaliRows" msprop:Generator_UserRelationName="FK_AnagCausali_AnagFamMacchine" msprop:Generator_ParentPropName="AnagFamMacchineRow" msprop:Generator_RelationVarName="relationFK_AnagCausali_AnagFamMacchine" msprop:Generator_UserParentTable="AnagFamMacchine" />
<msdata:Relationship name="FK_InterventoOpMtz_AnagrOperMtz" msdata:parent="AnagrOperMtz" msdata:child="InterventoOpMtz" msdata:parentkey="matrOp" msdata:childkey="matrOp" msprop:Generator_UserChildTable="InterventoOpMtz" msprop:Generator_ChildPropName="GetInterventoOpMtzRows" msprop:Generator_UserRelationName="FK_InterventoOpMtz_AnagrOperMtz" msprop:Generator_ParentPropName="AnagrOperMtzRow" msprop:Generator_RelationVarName="relationFK_InterventoOpMtz_AnagrOperMtz" msprop:Generator_UserParentTable="AnagrOperMtz" />
</xs:appinfo>
</xs:annotation>
</xs:schema>
+19 -19
View File
@@ -4,29 +4,29 @@
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
</autogenerated>-->
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="5" ViewPortY="-54" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="5" ViewPortY="109" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes>
<Shape ID="DesignTable:LogUpdateDb" ZOrder="35" X="36" Y="19" Height="122" Width="219" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
<Shape ID="DesignTable:AnagAmbitoGuasto" ZOrder="34" X="322" Y="20" Height="122" Width="251" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
<Shape ID="DesignTable:AnagPriorita" ZOrder="23" X="153" Y="373" Height="190" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="75" />
<Shape ID="DesignTable:AnagImpianti" ZOrder="28" X="810" Y="350" Height="207" Width="219" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="126" />
<Shape ID="DesignTable:v_macchine" ZOrder="16" X="1116" Y="309" Height="343" Width="246" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="228" />
<Shape ID="DesignTable:v_macchine" ZOrder="17" X="1116" Y="309" Height="343" Width="246" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="228" />
<Shape ID="DesignTable:v_selFamMacc" ZOrder="24" X="1102" Y="88" Height="190" Width="218" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="92" />
<Shape ID="DesignTable:AnagFamMacchine" ZOrder="10" X="1080" Y="-44" Height="105" Width="248" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
<Shape ID="DesignTable:v_intervExp" ZOrder="1" X="484" Y="217" Height="381" Width="261" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:AnagFamMacchine" ZOrder="11" X="1080" Y="-44" Height="105" Width="248" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
<Shape ID="DesignTable:v_intervExp" ZOrder="2" X="484" Y="217" Height="381" Width="261" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:AnagTipoGuasto" ZOrder="26" X="118" Y="199" Height="105" Width="235" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
<Shape ID="DesignTable:AnagStati" ZOrder="22" X="813" Y="178" Height="139" Width="197" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="75" />
<Shape ID="DesignTable:InterventoOpMtz" ZOrder="4" X="793" Y="582" Height="173" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="75" />
<Shape ID="DesignTable:v_mtzProgExp" ZOrder="3" X="84" Y="575" Height="305" Width="244" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="235" />
<Shape ID="DesignTable:InterventoOpMtz" ZOrder="5" X="793" Y="582" Height="173" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="75" />
<Shape ID="DesignTable:v_mtzProgExp" ZOrder="4" X="84" Y="575" Height="343" Width="234" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:MtzProgPending" ZOrder="20" X="821" Y="791" Height="249" Width="235" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="162" />
<Shape ID="DesignTable:MtzProgrammata" ZOrder="2" X="1141" Y="749" Height="306" Width="241" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="198" />
<Shape ID="DesignTable:CalendFesteFerie" ZOrder="18" X="78" Y="890" Height="134" Width="242" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:OreAperturaSett" ZOrder="9" X="366" Y="836" Height="191" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
<Shape ID="DesignTable:FiltroImpianti" ZOrder="13" X="1399" Y="644" Height="122" Width="229" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
<Shape ID="DesignTable:FiltroMacchine" ZOrder="14" X="1410" Y="168" Height="122" Width="229" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
<Shape ID="DesignTable:FiltroStati" ZOrder="12" X="764" Y="7" Height="122" Width="229" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
<Shape ID="DesignTable:AnagCausali" ZOrder="8" X="1433" Y="-40" Height="156" Width="192" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="92" />
<Shape ID="DesignTable:AnagrOperMtz" ZOrder="6" X="531" Y="669" Height="122" Width="223" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="75" />
<Shape ID="DesignTable:MtzProgrammata" ZOrder="3" X="1141" Y="749" Height="306" Width="241" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="198" />
<Shape ID="DesignTable:CalendFesteFerie" ZOrder="1" X="76" Y="939" Height="134" Width="242" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:OreAperturaSett" ZOrder="10" X="366" Y="836" Height="191" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
<Shape ID="DesignTable:FiltroImpianti" ZOrder="14" X="1399" Y="644" Height="122" Width="229" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
<Shape ID="DesignTable:FiltroMacchine" ZOrder="15" X="1410" Y="168" Height="122" Width="229" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
<Shape ID="DesignTable:FiltroStati" ZOrder="13" X="764" Y="7" Height="122" Width="229" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" />
<Shape ID="DesignTable:AnagCausali" ZOrder="9" X="1433" Y="-40" Height="156" Width="192" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="92" />
<Shape ID="DesignTable:AnagrOperMtz" ZOrder="7" X="531" Y="669" Height="122" Width="223" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="75" />
</Shapes>
<Connectors>
<Connector ID="DesignRelation:FK_AnagMacchine_AnagImpianti" ZOrder="33" LineWidth="11">
@@ -141,7 +141,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_FiltroImpianti_AnagImpianti" ZOrder="17" LineWidth="11">
<Connector ID="DesignRelation:FK_FiltroImpianti_AnagImpianti" ZOrder="18" LineWidth="11">
<RoutePoints>
<Point>
<X>1017</X>
@@ -157,7 +157,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:v_macchine_FiltroMacchine" ZOrder="15" LineWidth="11">
<Connector ID="DesignRelation:v_macchine_FiltroMacchine" ZOrder="16" LineWidth="11">
<RoutePoints>
<Point>
<X>1362</X>
@@ -173,7 +173,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_FiltroStati_AnagStati" ZOrder="11" LineWidth="11">
<Connector ID="DesignRelation:FK_FiltroStati_AnagStati" ZOrder="12" LineWidth="11">
<RoutePoints>
<Point>
<X>922</X>
@@ -185,7 +185,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_AnagCausali_AnagFamMacchine" ZOrder="7" LineWidth="11">
<Connector ID="DesignRelation:FK_AnagCausali_AnagFamMacchine" ZOrder="8" LineWidth="11">
<RoutePoints>
<Point>
<X>1328</X>
@@ -197,7 +197,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_InterventoOpMtz_AnagrOperMtz" ZOrder="5" LineWidth="11">
<Connector ID="DesignRelation:FK_InterventoOpMtz_AnagrOperMtz" ZOrder="6" LineWidth="11">
<RoutePoints>
<Point>
<X>754</X>
Binary file not shown.
Binary file not shown.
+1
View File
@@ -176,6 +176,7 @@
<None Include="sql\Voc\SomVoc_0200.sql" />
<None Include="sql\Applicazione\GIM_0205.sql" />
<None Include="sql\Applicazione\GIM_0210.sql" />
<None Include="sql\Applicazione\GIM_0211.sql" />
<Content Include="Style.css" />
<Content Include="test.aspx" />
<Content Include="tipoGuasto.aspx" />
+1 -1
View File
@@ -103,7 +103,7 @@
<add key="welcomeApp" value="GIM_welcomeApp" />
<add key="appName" value="GIM" />
<add key="mainRev" value="1.3" />
<add key="minRev" value="210" />
<add key="minRev" value="211" />
<add key="copyRight" value="SteamWare © 2006-2012" />
<add key="defaultApp" value="GIM_Appl" />
<add key="defaultTitle" value="GIM_ShortWelcome" />
@@ -102,7 +102,7 @@
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
Width="100%" OnSelectedIndexChanged="grView_SelectedIndexChanged" OnDataBound="grView_DataBound"
DataKeyNames="idxIntPro" DataSourceID="ods" OnRowDataBound="grView_RowDataBound"
PageSize="20" OnRowUpdating="grView_RowUpdating" onpageindexchanged="grView_PageIndexChanged">
PageSize="20" OnRowUpdating="grView_RowUpdating" onpageindexchanged="grView_PageIndexChanged" onrowdeleted="grView_RowDeleted">
<RowStyle CssClass="ctrRowStyle" />
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
<EditRowStyle CssClass="ctrEditRowStyle" />
@@ -172,10 +172,10 @@
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}"
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="Original_{0}"
SelectMethod="GetData" TypeName="GIM_data.DS_applicazioneTableAdapters.v_mtzProgExpTableAdapter"
FilterExpression=" codMacchina LIKE '%{0}%' OR nomeMacchina LIKE '%{0}%' OR descrizione LIKE '%{0}%' "
DeleteMethod="Delete" InsertMethod="Insert" UpdateMethod="Update">
DeleteMethod="deleteQuery" InsertMethod="Insert" UpdateMethod="Update">
<FilterParameters>
<asp:SessionParameter DefaultValue="*" Name="ricerca" SessionField="valoreCercato" />
<asp:SessionParameter DefaultValue="0" Name="idxTipo" SessionField="idxTipo_filt"
@@ -46,13 +46,14 @@ public partial class mod_elencoMtzProg : ApplicationUserControl
/// <param name="e"></param>
protected void btnShowNew_Click(object sender, EventArgs e)
{
if (btnShowNew.Text == traduci("btnHideNew"))
modoInsertMtzPrg = !modoInsertMtzPrg;
if (modoInsertMtzPrg)
{
btnShowNew.Text = traduci("btnShowNew");
btnShowNew.Text = traduci("btnHideNew");
}
else
{
btnShowNew.Text = traduci("btnHideNew");
btnShowNew.Text = traduci("btnShowNew");
}
// chiamo evento
if (eh_newReq != null)
@@ -220,6 +221,7 @@ public partial class mod_elencoMtzProg : ApplicationUserControl
{
hlExportExcel.Text = traduci("hlExportExcel");
hlExportExcel.NavigateUrl = "~/ExcelExportMtzPrev.aspx";
modoInsertMtzPrg = false;
}
base.OnInit(e);
_idxGridView = "idxIntPro";
@@ -229,7 +231,20 @@ public partial class mod_elencoMtzProg : ApplicationUserControl
btnShowNew.Enabled = isWritable();
btnMassEdit.Enabled = isWritable();
}
/// <summary>
/// modalità insert mtz prog
/// </summary>
public bool modoInsertMtzPrg
{
get
{
return memLayer.ML.BoolSessionObj("modoInserMtzPrg");
}
set
{
memLayer.ML.setSessionVal("modoInserMtzPrg", value);
}
}
void mod_filtroMacchina_eh_selValore(object sender, EventArgs e)
{
// chiamo procedura ricostruzione ods con filtri...
@@ -458,5 +473,14 @@ public partial class mod_elencoMtzProg : ApplicationUserControl
{
doUpdate();
}
/// <summary>
/// update post delete
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void grView_RowDeleted(object sender, GridViewDeletedEventArgs e)
{
doUpdate();
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -103,7 +103,7 @@
<add key="welcomeApp" value="GIM_welcomeApp" />
<add key="appName" value="GIM" />
<add key="mainRev" value="1.3" />
<add key="minRev" value="210" />
<add key="minRev" value="211" />
<add key="copyRight" value="SteamWare © 2006-2012" />
<add key="defaultApp" value="GIM_Appl" />
<add key="defaultTitle" value="GIM_ShortWelcome" />
@@ -103,7 +103,7 @@
<add key="welcomeApp" value="GIM_welcomeApp" />
<add key="appName" value="GIM" />
<add key="mainRev" value="1.3" />
<add key="minRev" value="210" />
<add key="minRev" value="211" />
<add key="copyRight" value="SteamWare © 2006-2012" />
<add key="defaultApp" value="GIM_Appl" />
<add key="defaultTitle" value="GIM_ShortWelcome" />
Binary file not shown.
@@ -103,7 +103,7 @@
<add key="welcomeApp" value="GIM_welcomeApp" />
<add key="appName" value="GIM" />
<add key="mainRev" value="1.3" />
<add key="minRev" value="210" />
<add key="minRev" value="211" />
<add key="copyRight" value="SteamWare © 2006-2012" />
<add key="defaultApp" value="GIM_Appl" />
<add key="defaultTitle" value="GIM_ShortWelcome" />
@@ -103,7 +103,7 @@
<add key="welcomeApp" value="GIM_welcomeApp" />
<add key="appName" value="GIM" />
<add key="mainRev" value="1.3" />
<add key="minRev" value="210" />
<add key="minRev" value="211" />
<add key="copyRight" value="SteamWare © 2006-2012" />
<add key="defaultApp" value="GIM_Appl" />
<add key="defaultTitle" value="GIM_ShortWelcome" />
@@ -0,0 +1,38 @@
set xact_abort on;
go
begin transaction;
go
set ANSI_NULLS on;
go
/*********************************************************************************
* STORED stp_MtzProg_delete
*
* delete riga MtzProg
*
**********************************************************************************/
create PROCEDURE stp_MtzProg_delete
(
@Original_idxIntPro INT
)
AS
DELETE
FROM MtzProgrammata
WHERE idxIntPro = @Original_idxIntPro
RETURN
go
commit;
go
-- registro versione...
INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(211, GETDATE())
GO