selezione dossier --> mostra schede inserite...

This commit is contained in:
Samuele E. Locatelli
2015-06-16 17:42:01 +02:00
parent 5caa56a088
commit fb1ee07dc1
27 changed files with 728 additions and 478 deletions
+232 -289
View File
@@ -2924,6 +2924,16 @@ namespace CMS_SC_Data {
private global::System.Data.DataColumn columnUserCreazione;
private global::System.Data.DataColumn columnNumSchede;
private global::System.Data.DataColumn columnNumMisReq;
private global::System.Data.DataColumn columnNumMisEff;
private global::System.Data.DataColumn columnStato;
private global::System.Data.DataColumn columnDescrMacchina;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public ElencoDossierDataTable() {
@@ -2989,6 +2999,46 @@ namespace CMS_SC_Data {
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataColumn NumSchedeColumn {
get {
return this.columnNumSchede;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataColumn NumMisReqColumn {
get {
return this.columnNumMisReq;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataColumn NumMisEffColumn {
get {
return this.columnNumMisEff;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataColumn StatoColumn {
get {
return this.columnStato;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataColumn DescrMacchinaColumn {
get {
return this.columnDescrMacchina;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
@@ -3026,13 +3076,18 @@ namespace CMS_SC_Data {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public ElencoDossierRow AddElencoDossierRow(ElencoMacchineCNRow parentElencoMacchineCNRowByFK_ElencoDossier_ElencoMacchineCN, System.DateTime DataCreazione, string UserCreazione) {
public ElencoDossierRow AddElencoDossierRow(ElencoMacchineCNRow parentElencoMacchineCNRowByFK_ElencoDossier_ElencoMacchineCN, System.DateTime DataCreazione, string UserCreazione, int NumSchede, int NumMisReq, int NumMisEff, string Stato, string DescrMacchina) {
ElencoDossierRow rowElencoDossierRow = ((ElencoDossierRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
null,
null,
DataCreazione,
UserCreazione};
UserCreazione,
NumSchede,
NumMisReq,
NumMisEff,
Stato,
DescrMacchina};
if ((parentElencoMacchineCNRowByFK_ElencoDossier_ElencoMacchineCN != null)) {
columnValuesArray[1] = parentElencoMacchineCNRowByFK_ElencoDossier_ElencoMacchineCN[0];
}
@@ -3069,6 +3124,11 @@ namespace CMS_SC_Data {
this.columnMatricola = base.Columns["Matricola"];
this.columnDataCreazione = base.Columns["DataCreazione"];
this.columnUserCreazione = base.Columns["UserCreazione"];
this.columnNumSchede = base.Columns["NumSchede"];
this.columnNumMisReq = base.Columns["NumMisReq"];
this.columnNumMisEff = base.Columns["NumMisEff"];
this.columnStato = base.Columns["Stato"];
this.columnDescrMacchina = base.Columns["DescrMacchina"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -3082,6 +3142,16 @@ namespace CMS_SC_Data {
base.Columns.Add(this.columnDataCreazione);
this.columnUserCreazione = new global::System.Data.DataColumn("UserCreazione", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnUserCreazione);
this.columnNumSchede = new global::System.Data.DataColumn("NumSchede", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnNumSchede);
this.columnNumMisReq = new global::System.Data.DataColumn("NumMisReq", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnNumMisReq);
this.columnNumMisEff = new global::System.Data.DataColumn("NumMisEff", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnNumMisEff);
this.columnStato = new global::System.Data.DataColumn("Stato", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnStato);
this.columnDescrMacchina = new global::System.Data.DataColumn("DescrMacchina", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnDescrMacchina);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnIdxDossier}, true));
this.columnIdxDossier.AutoIncrement = true;
@@ -3093,6 +3163,13 @@ namespace CMS_SC_Data {
this.columnMatricola.AllowDBNull = false;
this.columnMatricola.MaxLength = 50;
this.columnUserCreazione.MaxLength = 50;
this.columnNumSchede.ReadOnly = true;
this.columnNumMisReq.ReadOnly = true;
this.columnNumMisEff.ReadOnly = true;
this.columnStato.AllowDBNull = false;
this.columnStato.MaxLength = 50;
this.columnDescrMacchina.ReadOnly = true;
this.columnDescrMacchina.MaxLength = 103;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -4714,6 +4791,81 @@ namespace CMS_SC_Data {
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public int NumSchede {
get {
try {
return ((int)(this[this.tableElencoDossier.NumSchedeColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'NumSchede\' in table \'ElencoDossier\' is DBNull.", e);
}
}
set {
this[this.tableElencoDossier.NumSchedeColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public int NumMisReq {
get {
try {
return ((int)(this[this.tableElencoDossier.NumMisReqColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'NumMisReq\' in table \'ElencoDossier\' is DBNull.", e);
}
}
set {
this[this.tableElencoDossier.NumMisReqColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public int NumMisEff {
get {
try {
return ((int)(this[this.tableElencoDossier.NumMisEffColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'NumMisEff\' in table \'ElencoDossier\' is DBNull.", e);
}
}
set {
this[this.tableElencoDossier.NumMisEffColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string Stato {
get {
return ((string)(this[this.tableElencoDossier.StatoColumn]));
}
set {
this[this.tableElencoDossier.StatoColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string DescrMacchina {
get {
try {
return ((string)(this[this.tableElencoDossier.DescrMacchinaColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'DescrMacchina\' in table \'ElencoDossier\' is DBNull.", e);
}
}
set {
this[this.tableElencoDossier.DescrMacchinaColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public ElencoMacchineCNRow ElencoMacchineCNRow {
@@ -4749,6 +4901,54 @@ namespace CMS_SC_Data {
this[this.tableElencoDossier.UserCreazioneColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public bool IsNumSchedeNull() {
return this.IsNull(this.tableElencoDossier.NumSchedeColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public void SetNumSchedeNull() {
this[this.tableElencoDossier.NumSchedeColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public bool IsNumMisReqNull() {
return this.IsNull(this.tableElencoDossier.NumMisReqColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public void SetNumMisReqNull() {
this[this.tableElencoDossier.NumMisReqColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public bool IsNumMisEffNull() {
return this.IsNull(this.tableElencoDossier.NumMisEffColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public void SetNumMisEffNull() {
this[this.tableElencoDossier.NumMisEffColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public bool IsDescrMacchinaNull() {
return this.IsNull(this.tableElencoDossier.DescrMacchinaColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public void SetDescrMacchinaNull() {
this[this.tableElencoDossier.DescrMacchinaColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public SchemaCollMaccRow[] GetSchemaCollMaccRows() {
@@ -9272,42 +9472,12 @@ SELECT CodScheda, Vers, CodMisura, MinPar, MaxPar, LIVal, LSVal FROM ValidVal WH
tableMapping.ColumnMappings.Add("Matricola", "Matricola");
tableMapping.ColumnMappings.Add("DataCreazione", "DataCreazione");
tableMapping.ColumnMappings.Add("UserCreazione", "UserCreazione");
tableMapping.ColumnMappings.Add("NumSchede", "NumSchede");
tableMapping.ColumnMappings.Add("NumMisReq", "NumMisReq");
tableMapping.ColumnMappings.Add("NumMisEff", "NumMisEff");
tableMapping.ColumnMappings.Add("Stato", "Stato");
tableMapping.ColumnMappings.Add("DescrMacchina", "DescrMacchina");
this._adapter.TableMappings.Add(tableMapping);
this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
this._adapter.DeleteCommand.Connection = this.Connection;
this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[ElencoDossier] WHERE (([IdxDossier] = @Original_IdxDossier) AND ([Matricola] = @Original_Matricola) AND ((@IsNull_DataCreazione = 1 AND [DataCreazione] IS NULL) OR ([DataCreazione] = @Original_DataCreazione)) AND ((@IsNull_UserCreazione = 1 AND [UserCreazione] IS NULL) OR ([UserCreazione] = @Original_UserCreazione)))";
this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxDossier", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxDossier", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Matricola", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Matricola", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DataCreazione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataCreazione", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataCreazione", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataCreazione", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_UserCreazione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserCreazione", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserCreazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserCreazione", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
this._adapter.InsertCommand.Connection = this.Connection;
this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ElencoDossier] ([Matricola], [DataCreazione], [UserCreazione])" +
" VALUES (@Matricola, @DataCreazione, @UserCreazione);\r\nSELECT IdxDossier, Matric" +
"ola, DataCreazione, UserCreazione FROM ElencoDossier WHERE (IdxDossier = SCOPE_I" +
"DENTITY())";
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Matricola", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Matricola", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataCreazione", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataCreazione", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserCreazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserCreazione", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
this._adapter.UpdateCommand.Connection = this.Connection;
this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ElencoDossier] SET [Matricola] = @Matricola, [DataCreazione] = @DataCreazione, [UserCreazione] = @UserCreazione WHERE (([IdxDossier] = @Original_IdxDossier) AND ([Matricola] = @Original_Matricola) AND ((@IsNull_DataCreazione = 1 AND [DataCreazione] IS NULL) OR ([DataCreazione] = @Original_DataCreazione)) AND ((@IsNull_UserCreazione = 1 AND [UserCreazione] IS NULL) OR ([UserCreazione] = @Original_UserCreazione)));
SELECT IdxDossier, Matricola, DataCreazione, UserCreazione FROM ElencoDossier WHERE (IdxDossier = @IdxDossier)";
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Matricola", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Matricola", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataCreazione", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataCreazione", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserCreazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserCreazione", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxDossier", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxDossier", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Matricola", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Matricola", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DataCreazione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataCreazione", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataCreazione", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataCreazione", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_UserCreazione", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserCreazione", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserCreazione", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserCreazione", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxDossier", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IdxDossier", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -9323,8 +9493,7 @@ SELECT IdxDossier, Matricola, DataCreazione, UserCreazione FROM ElencoDossier WH
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT IdxDossier, Matricola, DataCreazione, UserCreazione FROM dbo.ElencoDossier" +
"";
this._commandCollection[0].CommandText = "SELECT *\r\nFROM v_ElencoDossier";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[1].Connection = this.Connection;
@@ -9359,189 +9528,6 @@ SELECT IdxDossier, Matricola, DataCreazione, UserCreazione FROM ElencoDossier WH
return dataTable;
}
[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 Update(DS_Applicazione.ElencoDossierDataTable dataTable) {
return this.Adapter.Update(dataTable);
}
[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 Update(DS_Applicazione dataSet) {
return this.Adapter.Update(dataSet, "ElencoDossier");
}
[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 Update(global::System.Data.DataRow dataRow) {
return this.Adapter.Update(new global::System.Data.DataRow[] {
dataRow});
}
[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 Update(global::System.Data.DataRow[] dataRows) {
return this.Adapter.Update(dataRows);
}
[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")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
public virtual int Delete(int Original_IdxDossier, string Original_Matricola, global::System.Nullable<global::System.DateTime> Original_DataCreazione, string Original_UserCreazione) {
this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdxDossier));
if ((Original_Matricola == null)) {
throw new global::System.ArgumentNullException("Original_Matricola");
}
else {
this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Matricola));
}
if ((Original_DataCreazione.HasValue == true)) {
this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[3].Value = ((System.DateTime)(Original_DataCreazione.Value));
}
else {
this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
}
if ((Original_UserCreazione == null)) {
this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
}
else {
this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_UserCreazione));
}
global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
this.Adapter.DeleteCommand.Connection.Open();
}
try {
int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
return returnValue;
}
finally {
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
this.Adapter.DeleteCommand.Connection.Close();
}
}
}
[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")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
public virtual int Insert(string Matricola, global::System.Nullable<global::System.DateTime> DataCreazione, string UserCreazione) {
if ((Matricola == null)) {
throw new global::System.ArgumentNullException("Matricola");
}
else {
this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Matricola));
}
if ((DataCreazione.HasValue == true)) {
this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(DataCreazione.Value));
}
else {
this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
}
if ((UserCreazione == null)) {
this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
}
else {
this.Adapter.InsertCommand.Parameters[2].Value = ((string)(UserCreazione));
}
global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
this.Adapter.InsertCommand.Connection.Open();
}
try {
int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
return returnValue;
}
finally {
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
this.Adapter.InsertCommand.Connection.Close();
}
}
}
[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")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
public virtual int Update(string Matricola, global::System.Nullable<global::System.DateTime> DataCreazione, string UserCreazione, int Original_IdxDossier, string Original_Matricola, global::System.Nullable<global::System.DateTime> Original_DataCreazione, string Original_UserCreazione, int IdxDossier) {
if ((Matricola == null)) {
throw new global::System.ArgumentNullException("Matricola");
}
else {
this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Matricola));
}
if ((DataCreazione.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(DataCreazione.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
}
if ((UserCreazione == null)) {
this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(UserCreazione));
}
this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_IdxDossier));
if ((Original_Matricola == null)) {
throw new global::System.ArgumentNullException("Original_Matricola");
}
else {
this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Matricola));
}
if ((Original_DataCreazione.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[6].Value = ((System.DateTime)(Original_DataCreazione.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
}
if ((Original_UserCreazione == null)) {
this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_UserCreazione));
}
this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(IdxDossier));
global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
this.Adapter.UpdateCommand.Connection.Open();
}
try {
int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
return returnValue;
}
finally {
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
this.Adapter.UpdateCommand.Connection.Close();
}
}
}
[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")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
public virtual int Update(string Matricola, global::System.Nullable<global::System.DateTime> DataCreazione, string UserCreazione, int Original_IdxDossier, string Original_Matricola, global::System.Nullable<global::System.DateTime> Original_DataCreazione, string Original_UserCreazione) {
return this.Update(Matricola, DataCreazione, UserCreazione, Original_IdxDossier, Original_Matricola, Original_DataCreazione, Original_UserCreazione, Original_IdxDossier);
}
[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")]
@@ -10310,12 +10296,18 @@ SELECT IdxDossier, CodScheda, Vers, NumScheda, Descrizione FROM SchemaCollMacc W
[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[1];
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT IdxDossier, CodScheda, Vers, NumScheda, Descrizione FROM dbo.SchemaCollMac" +
"c";
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_SCM_getByDossier";
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("@IdxDossier", 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()]
@@ -10342,6 +10334,23 @@ SELECT IdxDossier, CodScheda, Vers, NumScheda, Descrizione FROM SchemaCollMacc W
return dataTable;
}
[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")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual DS_Applicazione.SchemaCollMaccDataTable getByDossier(global::System.Nullable<int> IdxDossier) {
this.Adapter.SelectCommand = this.CommandCollection[1];
if ((IdxDossier.HasValue == true)) {
this.Adapter.SelectCommand.Parameters[1].Value = ((int)(IdxDossier.Value));
}
else {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
DS_Applicazione.SchemaCollMaccDataTable dataTable = new DS_Applicazione.SchemaCollMaccDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
}
[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")]
@@ -10531,8 +10540,6 @@ SELECT IdxDossier, CodScheda, Vers, NumScheda, Descrizione FROM SchemaCollMacc W
private ValidValTableAdapter _validValTableAdapter;
private ElencoDossierTableAdapter _elencoDossierTableAdapter;
private MisureTableAdapter _misureTableAdapter;
private SchemaCollMaccTableAdapter _schemaCollMaccTableAdapter;
@@ -10636,20 +10643,6 @@ SELECT IdxDossier, CodScheda, Vers, NumScheda, Descrizione FROM SchemaCollMacc W
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
"ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
"a", "System.Drawing.Design.UITypeEditor")]
public ElencoDossierTableAdapter ElencoDossierTableAdapter {
get {
return this._elencoDossierTableAdapter;
}
set {
this._elencoDossierTableAdapter = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
@@ -10721,10 +10714,6 @@ SELECT IdxDossier, CodScheda, Vers, NumScheda, Descrizione FROM SchemaCollMacc W
&& (this._validValTableAdapter.Connection != null))) {
return this._validValTableAdapter.Connection;
}
if (((this._elencoDossierTableAdapter != null)
&& (this._elencoDossierTableAdapter.Connection != null))) {
return this._elencoDossierTableAdapter.Connection;
}
if (((this._misureTableAdapter != null)
&& (this._misureTableAdapter.Connection != null))) {
return this._misureTableAdapter.Connection;
@@ -10764,9 +10753,6 @@ SELECT IdxDossier, CodScheda, Vers, NumScheda, Descrizione FROM SchemaCollMacc W
if ((this._validValTableAdapter != null)) {
count = (count + 1);
}
if ((this._elencoDossierTableAdapter != null)) {
count = (count + 1);
}
if ((this._misureTableAdapter != null)) {
count = (count + 1);
}
@@ -10811,15 +10797,6 @@ SELECT IdxDossier, CodScheda, Vers, NumScheda, Descrizione FROM SchemaCollMacc W
allChangedRows.AddRange(updatedRows);
}
}
if ((this._elencoDossierTableAdapter != null)) {
global::System.Data.DataRow[] updatedRows = dataSet.ElencoDossier.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
if (((updatedRows != null)
&& (0 < updatedRows.Length))) {
result = (result + this._elencoDossierTableAdapter.Update(updatedRows));
allChangedRows.AddRange(updatedRows);
}
}
if ((this._anagFasiTableAdapter != null)) {
global::System.Data.DataRow[] updatedRows = dataSet.AnagFasi.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
@@ -10899,14 +10876,6 @@ SELECT IdxDossier, CodScheda, Vers, NumScheda, Descrizione FROM SchemaCollMacc W
allAddedRows.AddRange(addedRows);
}
}
if ((this._elencoDossierTableAdapter != null)) {
global::System.Data.DataRow[] addedRows = dataSet.ElencoDossier.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
&& (0 < addedRows.Length))) {
result = (result + this._elencoDossierTableAdapter.Update(addedRows));
allAddedRows.AddRange(addedRows);
}
}
if ((this._anagFasiTableAdapter != null)) {
global::System.Data.DataRow[] addedRows = dataSet.AnagFasi.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
@@ -10997,14 +10966,6 @@ SELECT IdxDossier, CodScheda, Vers, NumScheda, Descrizione FROM SchemaCollMacc W
allChangedRows.AddRange(deletedRows);
}
}
if ((this._elencoDossierTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.ElencoDossier.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
&& (0 < deletedRows.Length))) {
result = (result + this._elencoDossierTableAdapter.Update(deletedRows));
allChangedRows.AddRange(deletedRows);
}
}
if ((this._anagSchedeTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.AnagSchede.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
@@ -11098,11 +11059,6 @@ SELECT IdxDossier, CodScheda, Vers, NumScheda, Descrizione FROM SchemaCollMacc W
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
"tring.");
}
if (((this._elencoDossierTableAdapter != null)
&& (this.MatchTableAdapterConnection(this._elencoDossierTableAdapter.Connection) == false))) {
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
"tring.");
}
if (((this._misureTableAdapter != null)
&& (this.MatchTableAdapterConnection(this._misureTableAdapter.Connection) == false))) {
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
@@ -11199,15 +11155,6 @@ SELECT IdxDossier, CodScheda, Vers, NumScheda, Descrizione FROM SchemaCollMacc W
adaptersWithAcceptChangesDuringUpdate.Add(this._validValTableAdapter.Adapter);
}
}
if ((this._elencoDossierTableAdapter != null)) {
revertConnections.Add(this._elencoDossierTableAdapter, this._elencoDossierTableAdapter.Connection);
this._elencoDossierTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
this._elencoDossierTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
if (this._elencoDossierTableAdapter.Adapter.AcceptChangesDuringUpdate) {
this._elencoDossierTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
adaptersWithAcceptChangesDuringUpdate.Add(this._elencoDossierTableAdapter.Adapter);
}
}
if ((this._misureTableAdapter != null)) {
revertConnections.Add(this._misureTableAdapter, this._misureTableAdapter.Connection);
this._misureTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
@@ -11308,10 +11255,6 @@ SELECT IdxDossier, CodScheda, Vers, NumScheda, Descrizione FROM SchemaCollMacc W
this._validValTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._validValTableAdapter]));
this._validValTableAdapter.Transaction = null;
}
if ((this._elencoDossierTableAdapter != null)) {
this._elencoDossierTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._elencoDossierTableAdapter]));
this._elencoDossierTableAdapter.Transaction = null;
}
if ((this._misureTableAdapter != null)) {
this._misureTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._misureTableAdapter]));
this._misureTableAdapter.Transaction = null;
+39 -46
View File
@@ -756,55 +756,14 @@ SELECT CodScheda, Vers, CodMisura, MinPar, MaxPar, LIVal, LSVal FROM ValidVal WH
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ElencoDossierTableAdapter" GeneratorDataComponentClassName="ElencoDossierTableAdapter" Name="ElencoDossier" UserDataComponentName="ElencoDossierTableAdapter">
<MainSource>
<DbSource ConnectionRef="CMS_SCConnectionString (Settings)" DbObjectName="[CMS-SC].dbo.ElencoDossier" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
<DeleteCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>DELETE FROM [dbo].[ElencoDossier] WHERE (([IdxDossier] = @Original_IdxDossier) AND ([Matricola] = @Original_Matricola) AND ((@IsNull_DataCreazione = 1 AND [DataCreazione] IS NULL) OR ([DataCreazione] = @Original_DataCreazione)) AND ((@IsNull_UserCreazione = 1 AND [UserCreazione] IS NULL) OR ([UserCreazione] = @Original_UserCreazione)))</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdxDossier" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxDossier" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Matricola" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Matricola" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DataCreazione" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DataCreazione" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_DataCreazione" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DataCreazione" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_UserCreazione" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="UserCreazione" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_UserCreazione" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UserCreazione" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</DeleteCommand>
<InsertCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>INSERT INTO [dbo].[ElencoDossier] ([Matricola], [DataCreazione], [UserCreazione]) VALUES (@Matricola, @DataCreazione, @UserCreazione);
SELECT IdxDossier, Matricola, DataCreazione, UserCreazione FROM ElencoDossier WHERE (IdxDossier = SCOPE_IDENTITY())</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Matricola" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Matricola" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@DataCreazione" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DataCreazione" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@UserCreazione" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UserCreazione" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</InsertCommand>
<DbSource ConnectionRef="CMS_SCConnectionString (Settings)" DbObjectName="[CMS-SC].dbo.v_ElencoDossier" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT IdxDossier, Matricola, DataCreazione, UserCreazione FROM dbo.ElencoDossier</CommandText>
<DbCommand CommandType="Text" ModifiedByUser="true">
<CommandText>SELECT *
FROM v_ElencoDossier</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
<UpdateCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>UPDATE [dbo].[ElencoDossier] SET [Matricola] = @Matricola, [DataCreazione] = @DataCreazione, [UserCreazione] = @UserCreazione WHERE (([IdxDossier] = @Original_IdxDossier) AND ([Matricola] = @Original_Matricola) AND ((@IsNull_DataCreazione = 1 AND [DataCreazione] IS NULL) OR ([DataCreazione] = @Original_DataCreazione)) AND ((@IsNull_UserCreazione = 1 AND [UserCreazione] IS NULL) OR ([UserCreazione] = @Original_UserCreazione)));
SELECT IdxDossier, Matricola, DataCreazione, UserCreazione FROM ElencoDossier WHERE (IdxDossier = @IdxDossier)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Matricola" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Matricola" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@DataCreazione" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DataCreazione" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@UserCreazione" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UserCreazione" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdxDossier" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxDossier" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Matricola" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Matricola" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DataCreazione" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DataCreazione" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_DataCreazione" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DataCreazione" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_UserCreazione" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="UserCreazione" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_UserCreazione" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="UserCreazione" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="IdxDossier" ColumnName="IdxDossier" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IdxDossier" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="IdxDossier" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</UpdateCommand>
</DbSource>
</MainSource>
<Mappings>
@@ -812,6 +771,11 @@ SELECT IdxDossier, Matricola, DataCreazione, UserCreazione FROM ElencoDossier WH
<Mapping SourceColumn="Matricola" DataSetColumn="Matricola" />
<Mapping SourceColumn="DataCreazione" DataSetColumn="DataCreazione" />
<Mapping SourceColumn="UserCreazione" DataSetColumn="UserCreazione" />
<Mapping SourceColumn="NumSchede" DataSetColumn="NumSchede" />
<Mapping SourceColumn="NumMisReq" DataSetColumn="NumMisReq" />
<Mapping SourceColumn="NumMisEff" DataSetColumn="NumMisEff" />
<Mapping SourceColumn="Stato" DataSetColumn="Stato" />
<Mapping SourceColumn="DescrMacchina" DataSetColumn="DescrMacchina" />
</Mappings>
<Sources>
<DbSource ConnectionRef="CMS_SCConnectionString (Settings)" DbObjectName="[CMS-SC].dbo.stp_ED_InsertQuery" 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">
@@ -991,7 +955,19 @@ SELECT IdxDossier, CodScheda, Vers, NumScheda, Descrizione FROM SchemaCollMacc W
<Mapping SourceColumn="NumScheda" DataSetColumn="NumScheda" />
<Mapping SourceColumn="Descrizione" DataSetColumn="Descrizione" />
</Mappings>
<Sources />
<Sources>
<DbSource ConnectionRef="CMS_SCConnectionString (Settings)" DbObjectName="[CMS-SC].dbo.stp_SCM_getByDossier" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByDossier" GetMethodModifier="Public" GetMethodName="getByDossier" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByDossier" UserSourceName="getByDossier">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_SCM_getByDossier</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>
</Sources>
</TableAdapter>
</Tables>
<Sources />
@@ -1239,6 +1215,23 @@ SELECT IdxDossier, CodScheda, Vers, NumScheda, Descrizione FROM SchemaCollMacc W
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="NumSchede" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnNumSchede" msprop:Generator_ColumnPropNameInRow="NumSchede" msprop:Generator_ColumnPropNameInTable="NumSchedeColumn" msprop:Generator_UserColumnName="NumSchede" type="xs:int" minOccurs="0" />
<xs:element name="NumMisReq" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnNumMisReq" msprop:Generator_ColumnPropNameInRow="NumMisReq" msprop:Generator_ColumnPropNameInTable="NumMisReqColumn" msprop:Generator_UserColumnName="NumMisReq" type="xs:int" minOccurs="0" />
<xs:element name="NumMisEff" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnNumMisEff" msprop:Generator_ColumnPropNameInRow="NumMisEff" msprop:Generator_ColumnPropNameInTable="NumMisEffColumn" msprop:Generator_UserColumnName="NumMisEff" type="xs:int" minOccurs="0" />
<xs:element name="Stato" msprop:Generator_ColumnVarNameInTable="columnStato" msprop:Generator_ColumnPropNameInRow="Stato" msprop:Generator_ColumnPropNameInTable="StatoColumn" msprop:Generator_UserColumnName="Stato">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="DescrMacchina" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnDescrMacchina" msprop:Generator_ColumnPropNameInRow="DescrMacchina" msprop:Generator_ColumnPropNameInTable="DescrMacchinaColumn" msprop:Generator_UserColumnName="DescrMacchina" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="103" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
+9 -9
View File
@@ -13,9 +13,9 @@
<Shape ID="DesignTable:DettScheda" ZOrder="20" X="401" Y="444" Height="286" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" />
<Shape ID="DesignTable:ValidVal" ZOrder="14" X="106" Y="567" Height="286" Width="227" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
<Shape ID="DesignTable:SchemaCollFamMacc" ZOrder="12" X="67" Y="-36" Height="286" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="178" />
<Shape ID="DesignTable:ElencoDossier" ZOrder="9" X="1092" Y="273" Height="153" Width="225" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:ElencoDossier" ZOrder="9" X="1068" Y="251" Height="267" Width="225" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="197" />
<Shape ID="DesignTable:Misure" ZOrder="2" X="780" Y="536" Height="305" Width="184" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:SchemaCollMacc" ZOrder="6" X="727" Y="273" Height="172" Width="242" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
<Shape ID="DesignTable:SchemaCollMacc" ZOrder="6" X="727" Y="273" Height="191" Width="242" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
</Shapes>
<Connectors>
<Connector ID="DesignRelation:FK_DettScheda_AnagSchede1" ZOrder="19" LineWidth="11">
@@ -81,12 +81,12 @@
<Connector ID="DesignRelation:FK_ElencoDossier_ElencoMacchineCN" ZOrder="8" LineWidth="11">
<RoutePoints>
<Point>
<X>1150</X>
<X>1126</X>
<Y>203</Y>
</Point>
<Point>
<X>1150</X>
<Y>273</Y>
<X>1126</X>
<Y>251</Y>
</Point>
</RoutePoints>
</Connector>
@@ -106,7 +106,7 @@
<RoutePoints>
<Point>
<X>834</X>
<Y>445</Y>
<Y>464</Y>
</Point>
<Point>
<X>834</X>
@@ -129,12 +129,12 @@
<Connector ID="DesignRelation:FK_SchemaCollMacc_ElencoDossier" ZOrder="3" LineWidth="11">
<RoutePoints>
<Point>
<X>1092</X>
<Y>328</Y>
<X>1068</X>
<Y>306</Y>
</Point>
<Point>
<X>969</X>
<Y>328</Y>
<Y>306</Y>
</Point>
</RoutePoints>
</Connector>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+16
View File
@@ -344,7 +344,9 @@
<Content Include="WebUserControls\mod_autocomplete.ascx" />
<Content Include="WebUserControls\mod_autocompleteShort.ascx" />
<Content Include="WebUserControls\mod_DettScheda.ascx" />
<Content Include="WebUserControls\mod_elencoDossiers.ascx" />
<Content Include="WebUserControls\mod_elencoRichResetUtenti.ascx" />
<Content Include="WebUserControls\mod_elencoSchedeDossier.ascx" />
<Content Include="WebUserControls\mod_enrollByAuthKey.ascx" />
<Content Include="WebUserControls\mod_enrollByEmail.ascx" />
<Content Include="WebUserControls\mod_enrollByJumperAuthKey.ascx" />
@@ -636,6 +638,13 @@
<Compile Include="WebUserControls\mod_DettScheda.ascx.designer.cs">
<DependentUpon>mod_DettScheda.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_elencoDossiers.ascx.cs">
<DependentUpon>mod_elencoDossiers.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="WebUserControls\mod_elencoDossiers.ascx.designer.cs">
<DependentUpon>mod_elencoDossiers.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_elencoRichResetUtenti.ascx.cs">
<DependentUpon>mod_elencoRichResetUtenti.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
@@ -643,6 +652,13 @@
<Compile Include="WebUserControls\mod_elencoRichResetUtenti.ascx.designer.cs">
<DependentUpon>mod_elencoRichResetUtenti.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_elencoSchedeDossier.ascx.cs">
<DependentUpon>mod_elencoSchedeDossier.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="WebUserControls\mod_elencoSchedeDossier.ascx.designer.cs">
<DependentUpon>mod_elencoSchedeDossier.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_enrollByAuthKey.ascx.cs">
<DependentUpon>mod_enrollByAuthKey.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
+26 -30
View File
@@ -1,44 +1,40 @@
<%@ Page Title="" Language="C#" MasterPageFile="~/Bootstrap.Master" AutoEventWireup="true" CodeBehind="ElencoSchede.aspx.cs" Inherits="CMS_SC.ElencoSchede" %>
<%@ Register Src="~/WebUserControls/mod_SchemaCollFamMacc.ascx" TagPrefix="uc1" TagName="mod_SchemaCollFamMacc" %>
<%--<%@ Register Src="~/WebUserControls/mod_SchemaCollFamMacc.ascx" TagPrefix="uc1" TagName="mod_SchemaCollFamMacc" %>--%>
<%@ Register Src="~/WebUserControls/mod_righePag.ascx" TagName="mod_righePag" TagPrefix="uc1" %>
<%@ Register Src="~/WebUserControls/mod_selSchedaUrl.ascx" TagPrefix="uc1" TagName="mod_selSchedaUrl" %>
<%@ Register Src="~/WebUserControls/mod_selFamMaccUrl.ascx" TagPrefix="uc1" TagName="mod_selFamMaccUrl" %>
<%@ Register Src="~/WebUserControls/mod_autocompleteShort.ascx" TagPrefix="uc1" TagName="mod_autocompleteShort" %>
<%@ Register Src="~/WebUserControls/mod_elencoDossiers.ascx" TagPrefix="uc1" TagName="mod_elencoDossiers" %>
<%@ Register Src="~/WebUserControls/mod_elencoSchedeDossier.ascx" TagPrefix="uc1" TagName="mod_elencoSchedeDossier" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
elenco con filtro su macchina e posso editare... creando da famiglia o selezionando da elenco...
<ul>
<li>macchina x cui salvare (a dx?) e che filtra</li>
<li>fam macchina + scheda vers (a sx?)</li>
<li>eventuale elenco di schede di quella macchina già presenti...</li>
</ul>
<div class="container">
<div class="row" style="padding: 0px 5px; font-size: 0.9em;">
<div class="col-xs-3">
<uc1:mod_autocompleteShort runat="server" ID="mod_autocompleteShort" />
<asp:CheckBox runat="server" ID="chkFilFamMacc" AutoPostBack="True" OnCheckedChanged="chkFilFamMacc_CheckedChanged" />
<uc1:mod_selFamMaccUrl runat="server" ID="mod_selFamMaccUrl" />
</div>
<div class="col-xs-7">
<asp:CheckBox runat="server" ID="chkFiltCodSchedaVers" AutoPostBack="True" OnCheckedChanged="chkFiltCodSchedaVers_CheckedChanged" />
<uc1:mod_selSchedaUrl runat="server" ID="mod_selSchedaUrl" showLinkDoc="False" />
</div>
<div class="col-xs-2">
</div>
</div>
<div class="row" style="padding: 0px 5px;">
<div class="col-xs-12">
<%--<uc1:mod_SchemaCollFamMacc runat="server" ID="mod_SchemaCollFamMacc" />--%>
<div class="container-fluid">
<div class="row">
<div class="col-xs-4">
<uc1:mod_elencoDossiers runat="server" ID="mod_elencoDossiers" />
<uc1:mod_righePag ID="mod_righePag" runat="server" />
</div>
<div class="col-xs-8">
<div class="row" style="font-size: 0.8em;">
<div class="col-xs-3">
<asp:DropDownList runat="server" ID="ddlSelFamMacc" DataSourceID="odsFamMacc" DataTextField="label" DataValueField="value"></asp:DropDownList>
<asp:ObjectDataSource ID="odsFamMacc" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="CMS_SC_Data.DS_UtilityTableAdapters.v_selFamMaccTableAdapter"></asp:ObjectDataSource>
</div>
<div class="col-xs-9">
<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>
</div>
</div>
<div class="row">
<div class="col-xs-12">
<uc1:mod_elencoSchedeDossier runat="server" ID="mod_elencoSchedeDossier" />
</div>
</div>
</div>
</div>
</div>
</asp:Content>
+8 -64
View File
@@ -16,11 +16,15 @@ namespace CMS_SC
{
((Bootstrap)this.Master).showSearch = true;
mod_righePag.numRowPag = 20;
//mod_SchemaCollFamMacc.pageSize = mod_righePag.numRowPag;
presetChk();
fixChkFilt();
mod_elencoDossiers.pageSize = mod_righePag.numRowPag;
}
mod_righePag.eh_newNum += mod_righePag_eh_newNum;
mod_elencoDossiers.eh_selezioneValore += mod_elencoDossiers_eh_selezioneValore;
}
void mod_elencoDossiers_eh_selezioneValore(object sender, EventArgs e)
{
mod_elencoSchedeDossier.idxDossier = mod_elencoDossiers.idxDossier.ToString();
}
/// <summary>
/// url base area services
@@ -29,11 +33,6 @@ namespace CMS_SC
{
return string.Format("/{0}/WS_data.asmx/{1}", memLayer.ML.confReadString("serviceUrl"), method);
}
private void presetChk()
{
chkFilFamMacc.Checked = memLayer.ML.BoolSessionObj("filtByFamMac");
chkFiltCodSchedaVers.Checked = memLayer.ML.BoolSessionObj("filtByScheda");
}
/// <summary>
/// wrapper traduzione
/// </summary>
@@ -43,65 +42,10 @@ namespace CMS_SC
{
return user_std.UtSn.Traduci(lemma);
}
/// <summary>
/// sistema i controlli checkbox di filtraggio
/// </summary>
private void fixChkFilt()
{
// sistemo scritta e visibilità da stato filtrato...
if (chkFilFamMacc.Checked)
{
chkFilFamMacc.Text = traduci("ShowAllFamMacc");
}
else
{
chkFilFamMacc.Text = traduci("SelFamMacc");
}
if (chkFiltCodSchedaVers.Checked)
{
chkFiltCodSchedaVers.Text = traduci("ShowAllSched");
}
else
{
chkFiltCodSchedaVers.Text = traduci("SelSched");
}
memLayer.ML.setSessionVal("filtByFamMac", chkFilFamMacc.Checked);
memLayer.ML.setSessionVal("filtByScheda", chkFiltCodSchedaVers.Checked);
mod_selFamMaccUrl.Visible = chkFilFamMacc.Checked;
mod_selSchedaUrl.Visible = chkFiltCodSchedaVers.Checked;
//mod_SchemaCollFamMacc.doUpdate();
}
void mod_righePag_eh_newNum(object sender, EventArgs e)
{
//mod_SchemaCollFamMacc.pageSize = mod_righePag.numRowPag;
}
protected void chkFiltCodSchedaVers_CheckedChanged(object sender, EventArgs e)
{
fixChkFilt();
}
protected void chkFilFamMacc_CheckedChanged(object sender, EventArgs e)
{
fixChkFilt();
}
/// <summary>
/// verifica se si possano aggiungere nuovi record ovvero se selezionata famiglia e scheda...
/// </summary>
public bool addNewEnabled
{
get
{
bool answ = false;
try
{
answ = (memLayer.ML.QSS("CodSchedaVers") != "") && (memLayer.ML.QSS("CodFam") != "") && memLayer.ML.BoolSessionObj("filtByFamMac") && memLayer.ML.BoolSessionObj("filtByScheda");
}
catch
{ }
return answ;
}
mod_elencoDossiers.pageSize = mod_righePag.numRowPag;
}
}
+47 -38
View File
@@ -13,49 +13,13 @@ namespace CMS_SC {
public partial class ElencoSchede {
/// <summary>
/// mod_autocompleteShort control.
/// mod_elencoDossiers control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::CMS_SC.WebUserControls.mod_autocompleteShort mod_autocompleteShort;
/// <summary>
/// chkFilFamMacc 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.CheckBox chkFilFamMacc;
/// <summary>
/// mod_selFamMaccUrl control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::CMS_SC.WebUserControls.mod_selFamMaccUrl mod_selFamMaccUrl;
/// <summary>
/// chkFiltCodSchedaVers 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.CheckBox chkFiltCodSchedaVers;
/// <summary>
/// mod_selSchedaUrl control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::CMS_SC.WebUserControls.mod_selSchedaUrl mod_selSchedaUrl;
protected global::CMS_SC.WebUserControls.mod_elencoDossiers mod_elencoDossiers;
/// <summary>
/// mod_righePag control.
@@ -65,5 +29,50 @@ namespace CMS_SC {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::mod_righePag mod_righePag;
/// <summary>
/// ddlSelFamMacc 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.DropDownList ddlSelFamMacc;
/// <summary>
/// odsFamMacc 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.ObjectDataSource odsFamMacc;
/// <summary>
/// ddlSelScheda 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.DropDownList ddlSelScheda;
/// <summary>
/// odsScheda 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.ObjectDataSource odsScheda;
/// <summary>
/// mod_elencoSchedeDossier control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::CMS_SC.WebUserControls.mod_elencoSchedeDossier mod_elencoSchedeDossier;
}
}
@@ -0,0 +1,41 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_elencoDossiers.ascx.cs" Inherits="CMS_SC.WebUserControls.mod_elencoDossiers" %>
<asp:GridView ID="grView" runat="server" AutoGenerateColumns="False" DataKeyNames="IdxDossier" DataSourceID="ods" CssClass="table table-striped" AllowPaging="True" AllowSorting="True" OnSelectedIndexChanged="grView_SelectedIndexChanged">
<Columns>
<asp:TemplateField ShowHeader="False" ItemStyle-Wrap="false">
<ItemTemplate>
<asp:LinkButton ID="lbSelect" runat="server" CausesValidation="False" CommandName="Select" ToolTip="Select" CssClass="fa fa-search fa-2x" />
</ItemTemplate>
<HeaderTemplate>
<asp:LinkButton ID="lbtReset" runat="server" OnClick="btnReset_Click" CssClass="btn btn-default" Visible="true"><i class="fa fa-refresh"></i> <%: traduci("Reset") %></asp:LinkButton>
</HeaderTemplate>
<ItemStyle Wrap="False"></ItemStyle>
</asp:TemplateField>
<asp:TemplateField HeaderText="Matricola" SortExpression="Matricola">
<ItemTemplate>
<b><asp:Label ID="Label2" runat="server" Text='<%# Eval("Matricola") %>' /></b>
<br />
<asp:Label ID="Label3" runat="server" Text='<%# Eval("DescrMacchina") %>' Font-Size="0.8em" />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Schede" SortExpression="NumSchede">
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Eval("NumSchede") + " (" +Eval("NumMisEff")+"/"+ Eval("NumMisReq") +")" %>' ToolTip="Num Schede (misure effettuate / misure richieste)" />
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="Stato" HeaderText="Stato" SortExpression="Stato" />
<asp:TemplateField ShowHeader="False" ItemStyle-Wrap="false">
<ItemTemplate>
<asp:LinkButton ID="lbDelete" runat="server" CausesValidation="False" CommandName="Delete" ToolTip="Delete" OnClientClick='<%# SteamWare.jsUtils.getCBE("confermaDel") %>' CssClass="fa fa-trash fa-2x" />
</ItemTemplate>
<ItemStyle Wrap="False"></ItemStyle>
</asp:TemplateField>
</Columns>
<PagerStyle CssClass="bg-primary" />
<SelectedRowStyle CssClass="info" />
</asp:GridView>
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="CMS_SC_Data.DS_ApplicazioneTableAdapters.ElencoDossierTableAdapter" FilterExpression=" Matricola LIKE '%{0}%' ">
<FilterParameters>
<asp:SessionParameter DefaultValue="*" Name="ricerca" SessionField="searchVal" />
</FilterParameters>
</asp:ObjectDataSource>
@@ -0,0 +1,96 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CMS_SC_Data;
using SteamWare;
namespace CMS_SC.WebUserControls
{
public partial class mod_elencoDossiers : System.Web.UI.UserControl
{
/// <summary>
/// selezione valore in DettScheda
/// </summary>
public event EventHandler eh_selezioneValore;
/// <summary>
/// sollevo evento selezione
/// </summary>
protected void raiseEvent()
{
// sollevo evento nuovo valore...
if (eh_selezioneValore != null)
{
eh_selezioneValore(this, new EventArgs());
}
}
protected void Page_Load(object sender, EventArgs e)
{
}
/// <summary>
/// dimensione pagina grid view
/// </summary>
public int pageSize
{
get
{
return grView.PageSize;
}
set
{
grView.PageSize = value;
}
}
/// <summary>
/// dossier selezionato
/// </summary>
public int idxDossier
{
get
{
int answ = 0;
try
{
answ = Convert.ToInt32(grView.SelectedDataKey["IdxDossier"]);
}
catch
{ }
return answ;
}
}
/// <summary>
/// selezione scheda...
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
{
raiseEvent();
}
protected void btnReset_Click(object sender, EventArgs e)
{
resetSelezione();
}
/// <summary>
/// resetto selezione
/// </summary>
private void resetSelezione()
{
grView.SelectedIndex = -1;
grView.DataBind();
raiseEvent();
}
/// <summary>
/// wrapper traduzione
/// </summary>
/// <param name="lemma"></param>
/// <returns></returns>
public string traduci(string lemma)
{
return user_std.UtSn.Traduci(lemma);
}
}
}
@@ -0,0 +1,33 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace CMS_SC.WebUserControls {
public partial class mod_elencoDossiers {
/// <summary>
/// grView 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.GridView grView;
/// <summary>
/// ods 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.ObjectDataSource ods;
}
}
@@ -0,0 +1,43 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_elencoSchedeDossier.ascx.cs" Inherits="CMS_SC.WebUserControls.mod_elencoSchedeDossier" %>
<asp:GridView ID="grView" runat="server" AutoGenerateColumns="False" DataKeyNames="IdxDossier,CodScheda,Vers,NumScheda" DataSourceID="ods" CssClass="table table-striped" AllowPaging="True" AllowSorting="True" OnSelectedIndexChanged="grView_SelectedIndexChanged">
<EmptyDataTemplate>
<asp:Label runat="server" ID="lblNoRecord" Text='<%# traduci("NoRecords") %>' />
</EmptyDataTemplate>
<Columns>
<asp:BoundField DataField="IdxDossier" HeaderText="IdxDossier" SortExpression="IdxDossier" ReadOnly="True" />
<asp:BoundField DataField="CodScheda" HeaderText="CodScheda" ReadOnly="True" SortExpression="CodScheda" />
<asp:BoundField DataField="Vers" HeaderText="Vers" ReadOnly="True" SortExpression="Vers" />
<asp:BoundField DataField="NumScheda" HeaderText="NumScheda" ReadOnly="True" SortExpression="NumScheda" />
<asp:BoundField DataField="Descrizione" HeaderText="Descrizione" SortExpression="Descrizione" />
</Columns>
<PagerStyle CssClass="bg-primary" />
<SelectedRowStyle CssClass="info" />
</asp:GridView>
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByDossier" TypeName="CMS_SC_Data.DS_ApplicazioneTableAdapters.SchemaCollMaccTableAdapter" DeleteMethod="Delete" InsertMethod="Insert" UpdateMethod="Update">
<DeleteParameters>
<asp:Parameter Name="Original_IdxDossier" Type="Int32" />
<asp:Parameter Name="Original_CodScheda" Type="String" />
<asp:Parameter Name="Original_Vers" Type="Int32" />
<asp:Parameter Name="Original_NumScheda" Type="Int32" />
<asp:Parameter Name="Original_Descrizione" Type="String" />
</DeleteParameters>
<InsertParameters>
<asp:Parameter Name="IdxDossier" Type="Int32" />
<asp:Parameter Name="CodScheda" Type="String" />
<asp:Parameter Name="Vers" Type="Int32" />
<asp:Parameter Name="NumScheda" Type="Int32" />
<asp:Parameter Name="Descrizione" Type="String" />
</InsertParameters>
<SelectParameters>
<asp:ControlParameter ControlID="hfIdxDossier" Name="IdxDossier" PropertyName="Value" Type="Int32" />
</SelectParameters>
<UpdateParameters>
<asp:Parameter Name="Descrizione" Type="String" />
<asp:Parameter Name="Original_IdxDossier" Type="Int32" />
<asp:Parameter Name="Original_CodScheda" Type="String" />
<asp:Parameter Name="Original_Vers" Type="Int32" />
<asp:Parameter Name="Original_NumScheda" Type="Int32" />
<asp:Parameter Name="Original_Descrizione" Type="String" />
</UpdateParameters>
</asp:ObjectDataSource>
<asp:HiddenField runat="server" ID="hfIdxDossier" />
@@ -0,0 +1,94 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CMS_SC_Data;
using SteamWare;
namespace CMS_SC.WebUserControls
{
public partial class mod_elencoSchedeDossier : System.Web.UI.UserControl
{
/// <summary>
/// selezione valore in DettScheda
/// </summary>
public event EventHandler eh_selezioneValore;
/// <summary>
/// sollevo evento selezione
/// </summary>
protected void raiseEvent()
{
// sollevo evento nuovo valore...
if (eh_selezioneValore != null)
{
eh_selezioneValore(this, new EventArgs());
}
}
protected void Page_Load(object sender, EventArgs e)
{
}
/// <summary>
/// dimensione pagina grid view
/// </summary>
public int pageSize
{
get
{
return grView.PageSize;
}
set
{
grView.PageSize = value;
}
}
/// <summary>
/// dossier selezionato
/// </summary>
public string idxDossier
{
get
{
return hfIdxDossier.Value;
}
set
{
hfIdxDossier.Value = value;
grView.DataBind();
}
}
/// <summary>
/// selezione scheda...
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
{
raiseEvent();
}
protected void btnReset_Click(object sender, EventArgs e)
{
resetSelezione();
}
/// <summary>
/// resetto selezione
/// </summary>
private void resetSelezione()
{
grView.SelectedIndex = -1;
grView.DataBind();
raiseEvent();
}
/// <summary>
/// wrapper traduzione
/// </summary>
/// <param name="lemma"></param>
/// <returns></returns>
public string traduci(string lemma)
{
return user_std.UtSn.Traduci(lemma);
}
}
}
@@ -0,0 +1,42 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace CMS_SC.WebUserControls {
public partial class mod_elencoSchedeDossier {
/// <summary>
/// grView 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.GridView grView;
/// <summary>
/// ods 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.ObjectDataSource ods;
/// <summary>
/// hfIdxDossier 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.HiddenField hfIdxDossier;
}
}
+1 -1
View File
@@ -13,7 +13,7 @@
<HeaderStyle CssClass="ctrHeaderPager" ForeColor="White" Font-Bold="True" />
<EmptyDataRowStyle CssClass="ctrRowStyle" />--%>
<EmptyDataTemplate>
<asp:Label runat="server" ID="lblNoRecord" Text='<%# traduci("noRecord") %>' />
<asp:Label runat="server" ID="lblNoRecord" Text='<%# traduci("NoRecords") %>' />
</EmptyDataTemplate>
<Columns>
<asp:TemplateField HeaderText="Lingua" SortExpression="Lingua">
+1 -1
View File
@@ -19,7 +19,7 @@
<HeaderStyle CssClass="ctrHeaderPager" ForeColor="White" Font-Bold="True" />
<EmptyDataRowStyle CssClass="ctrRowStyle" />--%>
<EmptyDataTemplate>
<asp:Label runat="server" ID="lblNoRecord" Text='<%# traduci("noRecord") %>' />
<asp:Label runat="server" ID="lblNoRecord" Text='<%# traduci("NoRecords") %>' />
</EmptyDataTemplate>
<Columns>
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center">
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.