altri update x gestioen cloning fasi...
This commit is contained in:
Generated
+44
-10
@@ -12533,7 +12533,7 @@ SELECT IdxDossier, CodScheda, Vers, NumScheda, Descrizione, opz, FasiEnab FROM S
|
||||
[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[6];
|
||||
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[7];
|
||||
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[0].Connection = this.Connection;
|
||||
this._commandCollection[0].CommandText = "SELECT *\r\nFROM dbo.SchemaCollMacc";
|
||||
@@ -12569,16 +12569,22 @@ SELECT IdxDossier, CodScheda, Vers, NumScheda, Descrizione, opz, FasiEnab FROM S
|
||||
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodFam", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[5] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[5].Connection = this.Connection;
|
||||
this._commandCollection[5].CommandText = "dbo.stp_SCM_updateQuery";
|
||||
this._commandCollection[5].CommandText = "dbo.stp_SCM_insMisFasiMissing";
|
||||
this._commandCollection[5].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[5].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[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Descrizione", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@opz", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FasiEnab", global::System.Data.SqlDbType.NVarChar, 2147483647, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxDossier", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodScheda", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Vers", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NumScheda", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxDossier", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[6] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[6].Connection = this.Connection;
|
||||
this._commandCollection[6].CommandText = "dbo.stp_SCM_updateQuery";
|
||||
this._commandCollection[6].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
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("@Descrizione", 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("@opz", 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("@FasiEnab", global::System.Data.SqlDbType.NVarChar, 2147483647, 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("@Original_IdxDossier", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodScheda", 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("@Original_Vers", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_NumScheda", 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()]
|
||||
@@ -12939,8 +12945,36 @@ SELECT IdxDossier, CodScheda, Vers, NumScheda, Descrizione, opz, FasiEnab FROM S
|
||||
[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 updateQuery(string Descrizione, string opz, string FasiEnab, global::System.Nullable<int> Original_IdxDossier, string Original_CodScheda, global::System.Nullable<int> Original_Vers, global::System.Nullable<int> Original_NumScheda) {
|
||||
public virtual int insMisFasiMissing(global::System.Nullable<int> IdxDossier) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[5];
|
||||
if ((IdxDossier.HasValue == true)) {
|
||||
command.Parameters[1].Value = ((int)(IdxDossier.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 updateQuery(string Descrizione, string opz, string FasiEnab, global::System.Nullable<int> Original_IdxDossier, string Original_CodScheda, global::System.Nullable<int> Original_Vers, global::System.Nullable<int> Original_NumScheda) {
|
||||
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[6];
|
||||
if ((Descrizione == null)) {
|
||||
command.Parameters[1].Value = global::System.DBNull.Value;
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
|
||||
<DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
|
||||
<Connections>
|
||||
<Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="CMS_SCConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="CMS_SCConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.CMS_SC_Data.Properties.Settings.GlobalReference.Default.CMS_SCConnectionString" Provider="System.Data.SqlClient" />
|
||||
<Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="CMS_SCConnectionString" IsAppSettingsProperty="true" Modifier="Assembly" Name="CMS_SCConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.CMS_SC_Data.Properties.Settings.GlobalReference.Default.CMS_SCConnectionString" Provider="System.Data.SqlClient" />
|
||||
</Connections>
|
||||
<Tables>
|
||||
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ElencoFamMaccTableAdapter" GeneratorDataComponentClassName="ElencoFamMaccTableAdapter" Name="ElencoFamMacc" UserDataComponentName="ElencoFamMaccTableAdapter">
|
||||
@@ -997,6 +997,17 @@ SELECT IdxDossier, CodScheda, Vers, NumScheda, Descrizione, opz, FasiEnab FROM S
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="CMS_SCConnectionString (Settings)" DbObjectName="[CMS-SC].dbo.stp_SCM_insMisFasiMissing" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="insMisFasiMissing" Modifier="Public" Name="insMisFasiMissing" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy4" UserSourceName="insMisFasiMissing">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
<CommandText>dbo.stp_SCM_insMisFasiMissing</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="@IdxDossier" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
</DbSource>
|
||||
<DbSource ConnectionRef="CMS_SCConnectionString (Settings)" DbObjectName="[CMS-SC].dbo.stp_SCM_updateQuery" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="updateQuery" Modifier="Public" Name="updateQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy3" UserSourceName="updateQuery">
|
||||
<SelectCommand>
|
||||
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -51,7 +51,10 @@
|
||||
<br />
|
||||
<asp:Button runat="server" ID="btnAddFromFam" CssClass="btn btn-success" Text='<%# traduci("btnAddFromFam") %>' OnClick="btnAddFromFam_Click" />
|
||||
</div>
|
||||
<div class="col-xs-9 text-right">
|
||||
<div class="col-xs-3">
|
||||
<asp:Button runat="server" ID="btnInsMisFasi" CssClass="btn btn-warning" Text='<%# traduci("btnInsMisFasi") %>' OnClick="btnInsMisFasi_Click" />
|
||||
</div>
|
||||
<div class="col-xs-6 text-right">
|
||||
<asp:DropDownList runat="server" ID="ddlSelScheda" DataSourceID="odsScheda" DataTextField="label" DataValueField="value"></asp:DropDownList>
|
||||
<asp:ObjectDataSource ID="odsScheda" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="CMS_SC_Data.DS_UtilityTableAdapters.v_selSchedaTableAdapter"></asp:ObjectDataSource>
|
||||
<br />
|
||||
|
||||
@@ -11,6 +11,11 @@ namespace CMS_SC
|
||||
{
|
||||
public partial class ElencoSchede : System.Web.UI.Page
|
||||
{
|
||||
/// <summary>
|
||||
/// caricamento pagina
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
@@ -20,6 +25,7 @@ namespace CMS_SC
|
||||
mod_elencoDossiers.pageSize = mod_righePag.numRowPag;
|
||||
btnAddFromFam.DataBind();
|
||||
btnAddFromScheda.DataBind();
|
||||
btnInsMisFasi.DataBind();
|
||||
fixBtnVisibility();
|
||||
}
|
||||
mod_righePag.eh_newNum += mod_righePag_eh_newNum;
|
||||
@@ -103,6 +109,17 @@ namespace CMS_SC
|
||||
DtProxy.man.taSCM.insByCodSchedaVers(mod_elencoDossiers.idxDossier, ddlSelScheda.SelectedValue);
|
||||
mod_elencoSchedeDossier.doUpdate();
|
||||
}
|
||||
/// <summary>
|
||||
/// aggiungo scheda selezionata
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnInsMisFasi_Click(object sender, EventArgs e)
|
||||
{
|
||||
// inserisco tutte le schede da template x tutte le fasi indicate nella struttura di setup...
|
||||
DtProxy.man.taSCM.insMisFasiMissing(mod_elencoDossiers.idxDossier);
|
||||
mod_elencoSchedeDossier.doUpdate();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Generated
+9
@@ -93,6 +93,15 @@ namespace CMS_SC {
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnAddFromFam;
|
||||
|
||||
/// <summary>
|
||||
/// btnInsMisFasi control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnInsMisFasi;
|
||||
|
||||
/// <summary>
|
||||
/// ddlSelScheda control.
|
||||
/// </summary>
|
||||
|
||||
+17
-8
@@ -9,22 +9,17 @@
|
||||
- export excel "in bianco" (da compilare) da verificare
|
||||
|
||||
- gestione allegati tipo FILE (blob? in scheda o "generale"?)
|
||||
- allegati FILE (su DB come link)
|
||||
|
||||
|
||||
- gestione creazione delle MISURE per le fasi definite da template in fase di creazione scheda (assegnazione a dossier)
|
||||
- gestione template fasi da tabellone (in maschera) con selettore multiplo (1..n fasi)
|
||||
|
||||
- Potrebbero servire schede speciali in cui i valori di Minimo e Massimo sono variabili (tolleranze variabili a FDO) -> si è deciso con Carlo di costruire delle schede con 2 valori TESTUALI + un file allegato, x cui misura 1 = valori massimi da ORDINE, misura 2 valori massimi rilevati, misura 3 OK / KO (con deroga...), misura 4 = allegato file
|
||||
|
||||
|
||||
- in generale F1 = help del significato delle varie Icone. --> TOOLTIP
|
||||
- selezione multipla delle schede ( es. cancellazione dal dossier ) --> inserire selezione con checkbox
|
||||
|
||||
- allegati FILE (su DB come link)
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
................................................................................................................
|
||||
- DONE
|
||||
................................................................................................................
|
||||
@@ -60,6 +55,20 @@ GESTIONE FASI - gestita con "fase attiva" unica editabile
|
||||
TEMPLATE FASI per schede
|
||||
- In fase di definizione delle famiglie, poter dire per ciascuna scheda, in quale fase deve finire. In questo modo quando creo nuova scheda macchina, indicandone il modello nelle varie fasi mi trovo già le schede di collaudo previste. Struttura come FCS; ovvero campo testo; separatore da web.config, x cui 001#002#003 --> fasi 001, 002, 003 (magari cambiare fasi a 2 digit..)
|
||||
- valore default: 001#002 (costruzione + collaudo)
|
||||
- gestione creazione delle MISURE per le fasi definite da template in fase di creazione scheda (assegnazione a dossier)
|
||||
- gestione template fasi da tabellone (in maschera) con TESTO LIBERO
|
||||
- fix stored clonazione misure (con valore std)
|
||||
- fix procedura inserimento template fasi "massivo"
|
||||
|
||||
|
||||
................................................................................................................
|
||||
................................................................................................................
|
||||
|
||||
|
||||
|
||||
................................................................................................................
|
||||
- NOT DONE (perché con modifiche potrebbero NON servire)
|
||||
................................................................................................................
|
||||
|
||||
- selezione multipla delle schede ( es. cancellazione dal dossier ) --> inserire selezione con checkbox? NO x ora, provare versioen con nuove gestioni...
|
||||
|
||||
................................................................................................................
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user