diff --git a/ScheMe/Accettazione.aspx.cs b/ScheMe/Accettazione.aspx.cs
index 216eb4f..1935718 100644
--- a/ScheMe/Accettazione.aspx.cs
+++ b/ScheMe/Accettazione.aspx.cs
@@ -24,6 +24,28 @@ namespace ScheMe
/// ultimo comando letto da link button
///
public string lastCmd { get; set; }
+ protected string selFiltroUno
+ {
+ get
+ {
+ return ddlFiltUno.SelectedValue;
+ }
+ set
+ {
+ ddlFiltUno.SelectedValue = value;
+ }
+ }
+ protected string selFiltroDue
+ {
+ get
+ {
+ return ddlFiltDue.SelectedValue;
+ }
+ set
+ {
+ ddlFiltDue.SelectedValue = value;
+ }
+ }
///
/// gestione evento novo record
///
@@ -32,7 +54,7 @@ namespace ScheMe
protected void btnNew_Click(object sender, EventArgs e)
{
// richiamo pagina di edit senza parametri x metodo NEW
- Response.Redirect("AccettazioneEdit");
+ Response.Redirect(string.Format("AccettazioneEdit?selFiltUno={0}&selFiltDue={1}", selFiltroUno, selFiltroDue));
}
///
/// evento selezione paziente...
@@ -54,8 +76,9 @@ namespace ScheMe
{ }
if (lastCmd == "edit")
{
- // richiamo pagina con edit del record richiesto
- Response.Redirect(string.Format("AccettazioneEdit?IdxPaziente={0}", grView.SelectedDataKey["IdxPaziente"]));
+ // richiamo pagina con edit del record richiesto, compreso suoi filtri...
+ Response.Redirect(string.Format("AccettazioneEdit?IdxPaziente={0}&selFiltUno={1}&selFiltDue={2}", IdxPaziente, selFiltroUno, selFiltroDue));
+ //Response.Redirect(string.Format("AccettazioneEdit?IdxPaziente={0}", grView.SelectedDataKey["IdxPaziente"]));
}
}
diff --git a/ScheMe/AccettazioneEdit.aspx b/ScheMe/AccettazioneEdit.aspx
index a07c2b6..db2333a 100644
--- a/ScheMe/AccettazioneEdit.aspx
+++ b/ScheMe/AccettazioneEdit.aspx
@@ -4,6 +4,30 @@
+
ITEM - EMPTY
@@ -51,7 +75,7 @@
-
+
@@ -108,7 +132,7 @@
-
+
@@ -130,7 +154,7 @@
-
+
@@ -167,7 +191,7 @@
-
+
diff --git a/ScheMe/AccettazioneEdit.aspx.cs b/ScheMe/AccettazioneEdit.aspx.cs
index 2c26c71..aaf0f29 100644
--- a/ScheMe/AccettazioneEdit.aspx.cs
+++ b/ScheMe/AccettazioneEdit.aspx.cs
@@ -1,4 +1,6 @@
-using System;
+using ScheMe_Data;
+using SteamWare;
+using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
@@ -9,20 +11,108 @@ namespace ScheMe
{
public partial class AccettazioneEdit : System.Web.UI.Page
{
+ protected int IdxPaziente
+ {
+ get
+ {
+ int answ = 0;
+ try
+ {
+ answ = memLayer.ML.QSI("IdxPaziente");
+ }
+ catch
+ { }
+ return answ;
+ }
+ }
+ protected string selFiltUno
+ {
+ get
+ {
+ string answ = "";
+ try
+ {
+ answ = memLayer.ML.QSS("selFiltUno");
+ }
+ catch
+ { }
+ return answ;
+ }
+ }
+ protected string selFiltDue
+ {
+ get
+ {
+ string answ = "";
+ try
+ {
+ answ = memLayer.ML.QSS("selFiltDue");
+ }
+ catch
+ { }
+ return answ;
+ }
+ }
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
// verifico se sia con parametro paziente o NEW...
- string IdxPaziente = Request.QueryString["IdxPaziente"];
- if (IdxPaziente == "" || IdxPaziente == null)
+ if (IdxPaziente == 0)
{
frmView.ChangeMode(FormViewMode.Insert);
+ btnSave.Visible = false;
}
else
{
frmView.ChangeMode(FormViewMode.Edit);
+ btnSave.Visible = true;
}
+ // aggiungo valore prefiltraggio base
+ hfMainLblCond.Value = memLayer.ML.AppConf["BaseLabel"];
+ setFilters();
+ }
+ }
+
+ private void setFilters()
+ {
+ // in prima istanza: blocco filtri...
+ ddlFiltUno.Enabled = false;
+ ddlFiltDue.Enabled = false;
+ string currFiltUno = selFiltUno;
+ string currFiltDue = selFiltDue;
+ // se ho il paziente verifico ed i filtri fossero "*"...
+ if (IdxPaziente != 0)
+ {
+ if (currFiltUno == "*" || currFiltDue == "*")
+ {
+ //... li recupero da DB... prima il filtro livello 1... se c'è...
+ DS_Applicazione.Pazienti2LabelsDataTable tab = DtProxy.man.taP2L.getByIdxPaz(IdxPaziente, hfMainLblCond.Value);
+ // se trovo procedo...
+ if (tab.Rows.Count > 0)
+ {
+ currFiltUno = tab[0].CodLabel;
+ // ora stesso controllo x filtro 2...
+ tab = DtProxy.man.taP2L.getByIdxPaz(IdxPaziente, currFiltUno);
+ if (tab.Rows.Count > 0)
+ {
+ currFiltDue = tab[0].CodLabel;
+ }
+ }
+ }
+ }
+ // ora procedo!
+ if (currFiltUno != "")
+ {
+ ddlFiltUno.SelectedValue = currFiltUno;
+ ddlFiltUno.Enabled = true;
+ }
+ if (currFiltDue != "")
+ {
+ ddlFiltDue.Enabled = (currFiltUno != "*");
+ ddlFiltDue.DataBind();
+ ddlFiltDue.SelectedValue = currFiltDue;
+ ddlFiltDue.Enabled = true;
}
}
@@ -34,5 +124,51 @@ namespace ScheMe
}
}
+
+ protected void ddlFiltUno_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ // aggiorna seconda DDL DUE --SE valore !="*"
+ ddlFiltDue.Enabled = (ddlFiltUno.SelectedValue != "*");
+ ddlFiltDue.DataBind();
+ btnSave.Enabled = true;
+ }
+
+ protected void ddlFiltDue_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ btnSave.Enabled = true;
+ }
+ protected void ods_Inserted(object sender, ObjectDataSourceStatusEventArgs e)
+ {
+ int idxPaziente = 0;
+ try
+ {
+ idxPaziente = Convert.ToInt32(e.ReturnValue.ToString());
+ }
+ catch (Exception exc)
+ {
+ logger.lg.scriviLog(string.Format("Errore in redirect post creazione paziente{0}{1}", Environment.NewLine, exc));
+ }
+ if (idxPaziente > 0)
+ {
+ // se sono selezionati valori filtraggio --> li salvo!
+ salvaGruppi(idxPaziente);
+ // rimando a pagina corrente in edit paziente...
+ Response.Redirect(string.Format("AccettazioneEdit?IdxPaziente={0}&selFiltUno={1}&selFiltDue={2}", idxPaziente, ddlFiltUno.SelectedValue, ddlFiltDue.SelectedValue));
+ }
+ }
+
+ protected void btnSave_Click(object sender, EventArgs e)
+ {
+ salvaGruppi(IdxPaziente);
+ }
+
+ private void salvaGruppi(int currIdxPaz)
+ {
+ // elimino gruppi precedenti x utente...
+ DtProxy.man.taP2L.deleteByIdxPaz(currIdxPaz);
+ // salvo i gruppi selezionati...
+ DtProxy.man.taP2L.Insert(currIdxPaz, ddlFiltUno.SelectedValue);
+ DtProxy.man.taP2L.Insert(currIdxPaz, ddlFiltDue.SelectedValue);
+ }
}
}
\ No newline at end of file
diff --git a/ScheMe/AccettazioneEdit.aspx.designer.cs b/ScheMe/AccettazioneEdit.aspx.designer.cs
index c2b2be8..12bb281 100644
--- a/ScheMe/AccettazioneEdit.aspx.designer.cs
+++ b/ScheMe/AccettazioneEdit.aspx.designer.cs
@@ -12,6 +12,60 @@ namespace ScheMe {
public partial class AccettazioneEdit {
+ ///
+ /// ddlFiltUno control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.DropDownList ddlFiltUno;
+
+ ///
+ /// odsFiltUno control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.ObjectDataSource odsFiltUno;
+
+ ///
+ /// hfMainLblCond control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.HiddenField hfMainLblCond;
+
+ ///
+ /// ddlFiltDue control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.DropDownList ddlFiltDue;
+
+ ///
+ /// odsFiltDue control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.ObjectDataSource odsFiltDue;
+
+ ///
+ /// btnSave control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Button btnSave;
+
///
/// frmView control.
///
diff --git a/ScheMe_Data/DS_Applicazione.Designer.cs b/ScheMe_Data/DS_Applicazione.Designer.cs
index eda7c4a..85728c7 100644
--- a/ScheMe_Data/DS_Applicazione.Designer.cs
+++ b/ScheMe_Data/DS_Applicazione.Designer.cs
@@ -48,6 +48,8 @@ namespace ScheMe_Data {
private VisValFunzGTDataTable tableVisValFunzGT;
+ private Pazienti2LabelsDataTable tablePazienti2Labels;
+
private global::System.Data.DataRelation relationFK_VisClinGen_AnagPazienti;
private global::System.Data.DataRelation relationFK_VisAnamCli_AnagPazienti;
@@ -66,6 +68,8 @@ namespace ScheMe_Data {
private global::System.Data.DataRelation relationFK_ValSvolAtt_AnagPazienti;
+ private global::System.Data.DataRelation relationFK_Pazienti2Labels_AnagPazienti;
+
private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -130,6 +134,9 @@ namespace ScheMe_Data {
if ((ds.Tables["VisValFunzGT"] != null)) {
base.Tables.Add(new VisValFunzGTDataTable(ds.Tables["VisValFunzGT"]));
}
+ if ((ds.Tables["Pazienti2Labels"] != null)) {
+ base.Tables.Add(new Pazienti2LabelsDataTable(ds.Tables["Pazienti2Labels"]));
+ }
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -268,6 +275,16 @@ namespace ScheMe_Data {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+ public Pazienti2LabelsDataTable Pazienti2Labels {
+ get {
+ return this.tablePazienti2Labels;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.BrowsableAttribute(true)]
@@ -371,6 +388,9 @@ namespace ScheMe_Data {
if ((ds.Tables["VisValFunzGT"] != null)) {
base.Tables.Add(new VisValFunzGTDataTable(ds.Tables["VisValFunzGT"]));
}
+ if ((ds.Tables["Pazienti2Labels"] != null)) {
+ base.Tables.Add(new Pazienti2LabelsDataTable(ds.Tables["Pazienti2Labels"]));
+ }
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -476,6 +496,12 @@ namespace ScheMe_Data {
this.tableVisValFunzGT.InitVars();
}
}
+ this.tablePazienti2Labels = ((Pazienti2LabelsDataTable)(base.Tables["Pazienti2Labels"]));
+ if ((initTable == true)) {
+ if ((this.tablePazienti2Labels != null)) {
+ this.tablePazienti2Labels.InitVars();
+ }
+ }
this.relationFK_VisClinGen_AnagPazienti = this.Relations["FK_VisClinGen_AnagPazienti"];
this.relationFK_VisAnamCli_AnagPazienti = this.Relations["FK_VisAnamCli_AnagPazienti"];
this.relationFK_VisCardioPol_AnagPazienti = this.Relations["FK_VisCardioPol_AnagPazienti"];
@@ -485,6 +511,7 @@ namespace ScheMe_Data {
this.relationAnagPazienti_v_VisBioMecAnt = this.Relations["AnagPazienti_v_VisBioMecAnt"];
this.relationFK_VisValFunz_AnagPazienti = this.Relations["FK_VisValFunz_AnagPazienti"];
this.relationFK_ValSvolAtt_AnagPazienti = this.Relations["FK_ValSvolAtt_AnagPazienti"];
+ this.relationFK_Pazienti2Labels_AnagPazienti = this.Relations["FK_Pazienti2Labels_AnagPazienti"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -519,6 +546,8 @@ namespace ScheMe_Data {
base.Tables.Add(this.tableVisValFunz);
this.tableVisValFunzGT = new VisValFunzGTDataTable();
base.Tables.Add(this.tableVisValFunzGT);
+ this.tablePazienti2Labels = new Pazienti2LabelsDataTable();
+ base.Tables.Add(this.tablePazienti2Labels);
this.relationFK_VisClinGen_AnagPazienti = new global::System.Data.DataRelation("FK_VisClinGen_AnagPazienti", new global::System.Data.DataColumn[] {
this.tableAnagPazienti.IdxPazienteColumn}, new global::System.Data.DataColumn[] {
this.tableVisLab.IdxPazienteColumn}, false);
@@ -555,6 +584,10 @@ namespace ScheMe_Data {
this.tableAnagPazienti.IdxPazienteColumn}, new global::System.Data.DataColumn[] {
this.tableVisValFunzGT.IdxPazienteColumn}, false);
this.Relations.Add(this.relationFK_ValSvolAtt_AnagPazienti);
+ this.relationFK_Pazienti2Labels_AnagPazienti = new global::System.Data.DataRelation("FK_Pazienti2Labels_AnagPazienti", new global::System.Data.DataColumn[] {
+ this.tableAnagPazienti.IdxPazienteColumn}, new global::System.Data.DataColumn[] {
+ this.tablePazienti2Labels.IdxPazienteColumn}, false);
+ this.Relations.Add(this.relationFK_Pazienti2Labels_AnagPazienti);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -629,6 +662,12 @@ namespace ScheMe_Data {
return false;
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private bool ShouldSerializePazienti2Labels() {
+ return false;
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
@@ -720,6 +759,9 @@ namespace ScheMe_Data {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public delegate void VisValFunzGTRowChangeEventHandler(object sender, VisValFunzGTRowChangeEvent e);
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public delegate void Pazienti2LabelsRowChangeEventHandler(object sender, Pazienti2LabelsRowChangeEvent e);
+
///
///Represents the strongly named DataTable class.
///
@@ -9386,6 +9428,284 @@ namespace ScheMe_Data {
}
}
+ ///
+ ///Represents the strongly named DataTable class.
+ ///
+ [global::System.Serializable()]
+ [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
+ public partial class Pazienti2LabelsDataTable : global::System.Data.TypedTableBase {
+
+ private global::System.Data.DataColumn columnIdxPaziente;
+
+ private global::System.Data.DataColumn columnCodLabel;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public Pazienti2LabelsDataTable() {
+ this.TableName = "Pazienti2Labels";
+ this.BeginInit();
+ this.InitClass();
+ this.EndInit();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal Pazienti2LabelsDataTable(global::System.Data.DataTable table) {
+ this.TableName = table.TableName;
+ if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
+ this.CaseSensitive = table.CaseSensitive;
+ }
+ if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
+ this.Locale = table.Locale;
+ }
+ if ((table.Namespace != table.DataSet.Namespace)) {
+ this.Namespace = table.Namespace;
+ }
+ this.Prefix = table.Prefix;
+ this.MinimumCapacity = table.MinimumCapacity;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected Pazienti2LabelsDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
+ base(info, context) {
+ this.InitVars();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn IdxPazienteColumn {
+ get {
+ return this.columnIdxPaziente;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataColumn CodLabelColumn {
+ get {
+ return this.columnCodLabel;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ [global::System.ComponentModel.Browsable(false)]
+ public int Count {
+ get {
+ return this.Rows.Count;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public Pazienti2LabelsRow this[int index] {
+ get {
+ return ((Pazienti2LabelsRow)(this.Rows[index]));
+ }
+ }
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event Pazienti2LabelsRowChangeEventHandler Pazienti2LabelsRowChanging;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event Pazienti2LabelsRowChangeEventHandler Pazienti2LabelsRowChanged;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event Pazienti2LabelsRowChangeEventHandler Pazienti2LabelsRowDeleting;
+
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public event Pazienti2LabelsRowChangeEventHandler Pazienti2LabelsRowDeleted;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void AddPazienti2LabelsRow(Pazienti2LabelsRow row) {
+ this.Rows.Add(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public Pazienti2LabelsRow AddPazienti2LabelsRow(AnagPazientiRow parentAnagPazientiRowByFK_Pazienti2Labels_AnagPazienti, string CodLabel) {
+ Pazienti2LabelsRow rowPazienti2LabelsRow = ((Pazienti2LabelsRow)(this.NewRow()));
+ object[] columnValuesArray = new object[] {
+ null,
+ CodLabel};
+ if ((parentAnagPazientiRowByFK_Pazienti2Labels_AnagPazienti != null)) {
+ columnValuesArray[0] = parentAnagPazientiRowByFK_Pazienti2Labels_AnagPazienti[0];
+ }
+ rowPazienti2LabelsRow.ItemArray = columnValuesArray;
+ this.Rows.Add(rowPazienti2LabelsRow);
+ return rowPazienti2LabelsRow;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public Pazienti2LabelsRow FindByIdxPazienteCodLabel(int IdxPaziente, string CodLabel) {
+ return ((Pazienti2LabelsRow)(this.Rows.Find(new object[] {
+ IdxPaziente,
+ CodLabel})));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public override global::System.Data.DataTable Clone() {
+ Pazienti2LabelsDataTable cln = ((Pazienti2LabelsDataTable)(base.Clone()));
+ cln.InitVars();
+ return cln;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Data.DataTable CreateInstance() {
+ return new Pazienti2LabelsDataTable();
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal void InitVars() {
+ this.columnIdxPaziente = base.Columns["IdxPaziente"];
+ this.columnCodLabel = base.Columns["CodLabel"];
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitClass() {
+ this.columnIdxPaziente = new global::System.Data.DataColumn("IdxPaziente", typeof(int), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnIdxPaziente);
+ this.columnCodLabel = new global::System.Data.DataColumn("CodLabel", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodLabel);
+ this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+ this.columnIdxPaziente,
+ this.columnCodLabel}, true));
+ this.columnIdxPaziente.AllowDBNull = false;
+ this.columnCodLabel.AllowDBNull = false;
+ this.columnCodLabel.MaxLength = 50;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public Pazienti2LabelsRow NewPazienti2LabelsRow() {
+ return ((Pazienti2LabelsRow)(this.NewRow()));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+ return new Pazienti2LabelsRow(builder);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override global::System.Type GetRowType() {
+ return typeof(Pazienti2LabelsRow);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanged(e);
+ if ((this.Pazienti2LabelsRowChanged != null)) {
+ this.Pazienti2LabelsRowChanged(this, new Pazienti2LabelsRowChangeEvent(((Pazienti2LabelsRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowChanging(e);
+ if ((this.Pazienti2LabelsRowChanging != null)) {
+ this.Pazienti2LabelsRowChanging(this, new Pazienti2LabelsRowChangeEvent(((Pazienti2LabelsRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleted(e);
+ if ((this.Pazienti2LabelsRowDeleted != null)) {
+ this.Pazienti2LabelsRowDeleted(this, new Pazienti2LabelsRowChangeEvent(((Pazienti2LabelsRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+ base.OnRowDeleting(e);
+ if ((this.Pazienti2LabelsRowDeleting != null)) {
+ this.Pazienti2LabelsRowDeleting(this, new Pazienti2LabelsRowChangeEvent(((Pazienti2LabelsRow)(e.Row)), e.Action));
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public void RemovePazienti2LabelsRow(Pazienti2LabelsRow row) {
+ this.Rows.Remove(row);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
+ global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
+ global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
+ DS_Applicazione ds = new DS_Applicazione();
+ global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
+ any1.Namespace = "http://www.w3.org/2001/XMLSchema";
+ any1.MinOccurs = new decimal(0);
+ any1.MaxOccurs = decimal.MaxValue;
+ any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
+ sequence.Items.Add(any1);
+ global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
+ any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
+ any2.MinOccurs = new decimal(1);
+ any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
+ sequence.Items.Add(any2);
+ global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
+ attribute1.Name = "namespace";
+ attribute1.FixedValue = ds.Namespace;
+ type.Attributes.Add(attribute1);
+ global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
+ attribute2.Name = "tableTypeName";
+ attribute2.FixedValue = "Pazienti2LabelsDataTable";
+ type.Attributes.Add(attribute2);
+ type.Particle = sequence;
+ global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
+ if (xs.Contains(dsSchema.TargetNamespace)) {
+ global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
+ global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
+ try {
+ global::System.Xml.Schema.XmlSchema schema = null;
+ dsSchema.Write(s1);
+ for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
+ schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
+ s2.SetLength(0);
+ schema.Write(s2);
+ if ((s1.Length == s2.Length)) {
+ s1.Position = 0;
+ s2.Position = 0;
+ for (; ((s1.Position != s1.Length)
+ && (s1.ReadByte() == s2.ReadByte())); ) {
+ ;
+ }
+ if ((s1.Position == s1.Length)) {
+ return type;
+ }
+ }
+ }
+ }
+ finally {
+ if ((s1 != null)) {
+ s1.Close();
+ }
+ if ((s2 != null)) {
+ s2.Close();
+ }
+ }
+ }
+ xs.Add(dsSchema);
+ return type;
+ }
+ }
+
///
///Represents strongly named DataRow class.
///
@@ -9680,6 +10000,17 @@ namespace ScheMe_Data {
return ((VisValFunzGTRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ValSvolAtt_AnagPazienti"])));
}
}
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public Pazienti2LabelsRow[] GetPazienti2LabelsRows() {
+ if ((this.Table.ChildRelations["FK_Pazienti2Labels_AnagPazienti"] == null)) {
+ return new Pazienti2LabelsRow[0];
+ }
+ else {
+ return ((Pazienti2LabelsRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Pazienti2Labels_AnagPazienti"])));
+ }
+ }
}
///
@@ -17451,6 +17782,54 @@ namespace ScheMe_Data {
}
}
+ ///
+ ///Represents strongly named DataRow class.
+ ///
+ public partial class Pazienti2LabelsRow : global::System.Data.DataRow {
+
+ private Pazienti2LabelsDataTable tablePazienti2Labels;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal Pazienti2LabelsRow(global::System.Data.DataRowBuilder rb) :
+ base(rb) {
+ this.tablePazienti2Labels = ((Pazienti2LabelsDataTable)(this.Table));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public int IdxPaziente {
+ get {
+ return ((int)(this[this.tablePazienti2Labels.IdxPazienteColumn]));
+ }
+ set {
+ this[this.tablePazienti2Labels.IdxPazienteColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public string CodLabel {
+ get {
+ return ((string)(this[this.tablePazienti2Labels.CodLabelColumn]));
+ }
+ set {
+ this[this.tablePazienti2Labels.CodLabelColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public AnagPazientiRow AnagPazientiRow {
+ get {
+ return ((AnagPazientiRow)(this.GetParentRow(this.Table.ParentRelations["FK_Pazienti2Labels_AnagPazienti"])));
+ }
+ set {
+ this.SetParentRow(value, this.Table.ParentRelations["FK_Pazienti2Labels_AnagPazienti"]);
+ }
+ }
+ }
+
///
///Row event argument class
///
@@ -17858,6 +18237,40 @@ namespace ScheMe_Data {
}
}
}
+
+ ///
+ ///Row event argument class
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public class Pazienti2LabelsRowChangeEvent : global::System.EventArgs {
+
+ private Pazienti2LabelsRow eventRow;
+
+ private global::System.Data.DataRowAction eventAction;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public Pazienti2LabelsRowChangeEvent(Pazienti2LabelsRow row, global::System.Data.DataRowAction action) {
+ this.eventRow = row;
+ this.eventAction = action;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public Pazienti2LabelsRow Row {
+ get {
+ return this.eventRow;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public global::System.Data.DataRowAction Action {
+ get {
+ return this.eventAction;
+ }
+ }
+ }
}
}
namespace ScheMe_Data.DS_ApplicazioneTableAdapters {
@@ -18702,7 +19115,7 @@ SELECT IdxPaziente, Gruppo, Cognome, Nome, DataNasc, LuogoNascita, Sesso, Altezz
[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, false)]
- public virtual int insertQuery(string Gruppo, string Cognome, string Nome, global::System.Nullable DataNasc, string LuogoNascita, string CodF, string Indirizzo, string Sesso, global::System.Nullable Altezza, global::System.Nullable Peso, string RecTel, string Medico, string Note) {
+ public virtual object insertQuery(string Gruppo, string Cognome, string Nome, global::System.Nullable DataNasc, string LuogoNascita, string CodF, string Indirizzo, string Sesso, global::System.Nullable Altezza, global::System.Nullable Peso, string RecTel, string Medico, string Note) {
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[5];
if ((Gruppo == null)) {
command.Parameters[1].Value = global::System.DBNull.Value;
@@ -18787,16 +19200,22 @@ SELECT IdxPaziente, Gruppo, Cognome, Nome, DataNasc, LuogoNascita, Sesso, Altezz
!= global::System.Data.ConnectionState.Open)) {
command.Connection.Open();
}
- int returnValue;
+ object returnValue;
try {
- returnValue = command.ExecuteNonQuery();
+ returnValue = command.ExecuteScalar();
}
finally {
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
command.Connection.Close();
}
}
- return returnValue;
+ if (((returnValue == null)
+ || (returnValue.GetType() == typeof(global::System.DBNull)))) {
+ return null;
+ }
+ else {
+ return ((object)(returnValue));
+ }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -25628,6 +26047,390 @@ SELECT IdxPaziente, DataVisita, Note, Score1, Score2 FROM VisRelazFin WHERE (Dat
}
}
+ ///
+ ///Represents the connection and commands used to retrieve and save data.
+ ///
+ [global::System.ComponentModel.DesignerCategoryAttribute("code")]
+ [global::System.ComponentModel.ToolboxItem(true)]
+ [global::System.ComponentModel.DataObjectAttribute(true)]
+ [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
+ ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public partial class Pazienti2LabelsTableAdapter : global::System.ComponentModel.Component {
+
+ private global::System.Data.SqlClient.SqlDataAdapter _adapter;
+
+ private global::System.Data.SqlClient.SqlConnection _connection;
+
+ private global::System.Data.SqlClient.SqlTransaction _transaction;
+
+ private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
+
+ private bool _clearBeforeFill;
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public Pazienti2LabelsTableAdapter() {
+ this.ClearBeforeFill = true;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
+ get {
+ if ((this._adapter == null)) {
+ this.InitAdapter();
+ }
+ return this._adapter;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal global::System.Data.SqlClient.SqlConnection Connection {
+ get {
+ if ((this._connection == null)) {
+ this.InitConnection();
+ }
+ return this._connection;
+ }
+ set {
+ this._connection = value;
+ if ((this.Adapter.InsertCommand != null)) {
+ this.Adapter.InsertCommand.Connection = value;
+ }
+ if ((this.Adapter.DeleteCommand != null)) {
+ this.Adapter.DeleteCommand.Connection = value;
+ }
+ if ((this.Adapter.UpdateCommand != null)) {
+ this.Adapter.UpdateCommand.Connection = value;
+ }
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
+ if ((this.CommandCollection[i] != null)) {
+ ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
+ }
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ internal global::System.Data.SqlClient.SqlTransaction Transaction {
+ get {
+ return this._transaction;
+ }
+ set {
+ this._transaction = value;
+ for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
+ this.CommandCollection[i].Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.DeleteCommand != null))) {
+ this.Adapter.DeleteCommand.Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.InsertCommand != null))) {
+ this.Adapter.InsertCommand.Transaction = this._transaction;
+ }
+ if (((this.Adapter != null)
+ && (this.Adapter.UpdateCommand != null))) {
+ this.Adapter.UpdateCommand.Transaction = this._transaction;
+ }
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
+ get {
+ if ((this._commandCollection == null)) {
+ this.InitCommandCollection();
+ }
+ return this._commandCollection;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ public bool ClearBeforeFill {
+ get {
+ return this._clearBeforeFill;
+ }
+ set {
+ this._clearBeforeFill = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitAdapter() {
+ this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
+ global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
+ tableMapping.SourceTable = "Table";
+ tableMapping.DataSetTable = "Pazienti2Labels";
+ tableMapping.ColumnMappings.Add("IdxPaziente", "IdxPaziente");
+ tableMapping.ColumnMappings.Add("CodLabel", "CodLabel");
+ 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].[Pazienti2Labels] WHERE (([IdxPaziente] = @Original_IdxPaziente" +
+ ") AND ([CodLabel] = @Original_CodLabel))";
+ this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxPaziente", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxPaziente", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodLabel", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodLabel", 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].[Pazienti2Labels] ([IdxPaziente], [CodLabel]) VALUES (@IdxPazie" +
+ "nte, @CodLabel);\r\nSELECT IdxPaziente, CodLabel FROM Pazienti2Labels WHERE (CodLa" +
+ "bel = @CodLabel) AND (IdxPaziente = @IdxPaziente)";
+ this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxPaziente", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxPaziente", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodLabel", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodLabel", 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].[Pazienti2Labels] SET [IdxPaziente] = @IdxPaziente, [CodLabel] = @CodLabel WHERE (([IdxPaziente] = @Original_IdxPaziente) AND ([CodLabel] = @Original_CodLabel));
+SELECT IdxPaziente, CodLabel FROM Pazienti2Labels WHERE (CodLabel = @CodLabel) AND (IdxPaziente = @IdxPaziente)";
+ this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxPaziente", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxPaziente", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodLabel", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodLabel", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxPaziente", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxPaziente", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodLabel", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodLabel", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
+ private void InitConnection() {
+ this._connection = new global::System.Data.SqlClient.SqlConnection();
+ this._connection.ConnectionString = global::ScheMe_Data.Properties.Settings.Default.ScheMeConnectionString;
+ }
+
+ [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[3];
+ this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[0].Connection = this.Connection;
+ this._commandCollection[0].CommandText = "SELECT IdxPaziente, CodLabel FROM dbo.Pazienti2Labels";
+ 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_P2F_deleteByIdxPaz";
+ 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("@IdxPaziente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[2].Connection = this.Connection;
+ this._commandCollection[2].CommandText = "dbo.stp_P2F_getByIdxPaz";
+ this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxPaziente", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodLabelBase", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ }
+
+ [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.Fill, true)]
+ public virtual int Fill(DS_Applicazione.Pazienti2LabelsDataTable dataTable) {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ if ((this.ClearBeforeFill == true)) {
+ dataTable.Clear();
+ }
+ int returnValue = this.Adapter.Fill(dataTable);
+ 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")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
+ public virtual DS_Applicazione.Pazienti2LabelsDataTable GetData() {
+ this.Adapter.SelectCommand = this.CommandCollection[0];
+ DS_Applicazione.Pazienti2LabelsDataTable dataTable = new DS_Applicazione.Pazienti2LabelsDataTable();
+ 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")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
+ public virtual DS_Applicazione.Pazienti2LabelsDataTable getByIdxPaz(global::System.Nullable IdxPaziente, string CodLabelBase) {
+ this.Adapter.SelectCommand = this.CommandCollection[2];
+ if ((IdxPaziente.HasValue == true)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((int)(IdxPaziente.Value));
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ if ((CodLabelBase == null)) {
+ this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[2].Value = ((string)(CodLabelBase));
+ }
+ DS_Applicazione.Pazienti2LabelsDataTable dataTable = new DS_Applicazione.Pazienti2LabelsDataTable();
+ 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")]
+ public virtual int Update(DS_Applicazione.Pazienti2LabelsDataTable 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, "Pazienti2Labels");
+ }
+
+ [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_IdxPaziente, string Original_CodLabel) {
+ this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdxPaziente));
+ if ((Original_CodLabel == null)) {
+ throw new global::System.ArgumentNullException("Original_CodLabel");
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_CodLabel));
+ }
+ 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(int IdxPaziente, string CodLabel) {
+ this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IdxPaziente));
+ if ((CodLabel == null)) {
+ throw new global::System.ArgumentNullException("CodLabel");
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[1].Value = ((string)(CodLabel));
+ }
+ 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(int IdxPaziente, string CodLabel, int Original_IdxPaziente, string Original_CodLabel) {
+ this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IdxPaziente));
+ if ((CodLabel == null)) {
+ throw new global::System.ArgumentNullException("CodLabel");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(CodLabel));
+ }
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_IdxPaziente));
+ if ((Original_CodLabel == null)) {
+ throw new global::System.ArgumentNullException("Original_CodLabel");
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_CodLabel));
+ }
+ 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(int Original_IdxPaziente, string Original_CodLabel) {
+ return this.Update(Original_IdxPaziente, Original_CodLabel, Original_IdxPaziente, Original_CodLabel);
+ }
+
+ [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 deleteByIdxPaz(global::System.Nullable IdxPaziente) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1];
+ if ((IdxPaziente.HasValue == true)) {
+ command.Parameters[1].Value = ((int)(IdxPaziente.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;
+ }
+ }
+
///
///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
///
@@ -25652,6 +26455,8 @@ SELECT IdxPaziente, DataVisita, Note, Score1, Score2 FROM VisRelazFin WHERE (Dat
private VisRelazFinTableAdapter _visRelazFinTableAdapter;
+ private Pazienti2LabelsTableAdapter _pazienti2LabelsTableAdapter;
+
private bool _backupDataSetBeforeUpdate;
private global::System.Data.IDbConnection _connection;
@@ -25751,6 +26556,20 @@ SELECT IdxPaziente, DataVisita, Note, Score1, Score2 FROM VisRelazFin WHERE (Dat
}
}
+ [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 Pazienti2LabelsTableAdapter Pazienti2LabelsTableAdapter {
+ get {
+ return this._pazienti2LabelsTableAdapter;
+ }
+ set {
+ this._pazienti2LabelsTableAdapter = value;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public bool BackupDataSetBeforeUpdate {
@@ -25794,6 +26613,10 @@ SELECT IdxPaziente, DataVisita, Note, Score1, Score2 FROM VisRelazFin WHERE (Dat
&& (this._visRelazFinTableAdapter.Connection != null))) {
return this._visRelazFinTableAdapter.Connection;
}
+ if (((this._pazienti2LabelsTableAdapter != null)
+ && (this._pazienti2LabelsTableAdapter.Connection != null))) {
+ return this._pazienti2LabelsTableAdapter.Connection;
+ }
return null;
}
set {
@@ -25825,6 +26648,9 @@ SELECT IdxPaziente, DataVisita, Note, Score1, Score2 FROM VisRelazFin WHERE (Dat
if ((this._visRelazFinTableAdapter != null)) {
count = (count + 1);
}
+ if ((this._pazienti2LabelsTableAdapter != null)) {
+ count = (count + 1);
+ }
return count;
}
}
@@ -25890,6 +26716,15 @@ SELECT IdxPaziente, DataVisita, Note, Score1, Score2 FROM VisRelazFin WHERE (Dat
allChangedRows.AddRange(updatedRows);
}
}
+ if ((this._pazienti2LabelsTableAdapter != null)) {
+ global::System.Data.DataRow[] updatedRows = dataSet.Pazienti2Labels.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
+ updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
+ if (((updatedRows != null)
+ && (0 < updatedRows.Length))) {
+ result = (result + this._pazienti2LabelsTableAdapter.Update(updatedRows));
+ allChangedRows.AddRange(updatedRows);
+ }
+ }
return result;
}
@@ -25948,6 +26783,14 @@ SELECT IdxPaziente, DataVisita, Note, Score1, Score2 FROM VisRelazFin WHERE (Dat
allAddedRows.AddRange(addedRows);
}
}
+ if ((this._pazienti2LabelsTableAdapter != null)) {
+ global::System.Data.DataRow[] addedRows = dataSet.Pazienti2Labels.Select(null, null, global::System.Data.DataViewRowState.Added);
+ if (((addedRows != null)
+ && (0 < addedRows.Length))) {
+ result = (result + this._pazienti2LabelsTableAdapter.Update(addedRows));
+ allAddedRows.AddRange(addedRows);
+ }
+ }
return result;
}
@@ -25958,6 +26801,14 @@ SELECT IdxPaziente, DataVisita, Note, Score1, Score2 FROM VisRelazFin WHERE (Dat
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private int UpdateDeletedRows(DS_Applicazione dataSet, global::System.Collections.Generic.List allChangedRows) {
int result = 0;
+ if ((this._pazienti2LabelsTableAdapter != null)) {
+ global::System.Data.DataRow[] deletedRows = dataSet.Pazienti2Labels.Select(null, null, global::System.Data.DataViewRowState.Deleted);
+ if (((deletedRows != null)
+ && (0 < deletedRows.Length))) {
+ result = (result + this._pazienti2LabelsTableAdapter.Update(deletedRows));
+ allChangedRows.AddRange(deletedRows);
+ }
+ }
if ((this._visRelazFinTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.VisRelazFin.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
@@ -26075,6 +26926,11 @@ SELECT IdxPaziente, DataVisita, Note, Score1, Score2 FROM VisRelazFin WHERE (Dat
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
"tring.");
}
+ if (((this._pazienti2LabelsTableAdapter != null)
+ && (this.MatchTableAdapterConnection(this._pazienti2LabelsTableAdapter.Connection) == false))) {
+ throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
+ "tring.");
+ }
global::System.Data.IDbConnection workConnection = this.Connection;
if ((workConnection == null)) {
throw new global::System.ApplicationException("TableAdapterManager contains no connection information. Set each TableAdapterMana" +
@@ -26161,6 +27017,15 @@ SELECT IdxPaziente, DataVisita, Note, Score1, Score2 FROM VisRelazFin WHERE (Dat
adaptersWithAcceptChangesDuringUpdate.Add(this._visRelazFinTableAdapter.Adapter);
}
}
+ if ((this._pazienti2LabelsTableAdapter != null)) {
+ revertConnections.Add(this._pazienti2LabelsTableAdapter, this._pazienti2LabelsTableAdapter.Connection);
+ this._pazienti2LabelsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
+ this._pazienti2LabelsTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
+ if (this._pazienti2LabelsTableAdapter.Adapter.AcceptChangesDuringUpdate) {
+ this._pazienti2LabelsTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
+ adaptersWithAcceptChangesDuringUpdate.Add(this._pazienti2LabelsTableAdapter.Adapter);
+ }
+ }
//
//---- Perform updates -----------
//
@@ -26243,6 +27108,10 @@ SELECT IdxPaziente, DataVisita, Note, Score1, Score2 FROM VisRelazFin WHERE (Dat
this._visRelazFinTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._visRelazFinTableAdapter]));
this._visRelazFinTableAdapter.Transaction = null;
}
+ if ((this._pazienti2LabelsTableAdapter != null)) {
+ this._pazienti2LabelsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._pazienti2LabelsTableAdapter]));
+ this._pazienti2LabelsTableAdapter.Transaction = null;
+ }
if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
diff --git a/ScheMe_Data/DS_Applicazione.xsd b/ScheMe_Data/DS_Applicazione.xsd
index 9e7e03c..eab0bb5 100644
--- a/ScheMe_Data/DS_Applicazione.xsd
+++ b/ScheMe_Data/DS_Applicazione.xsd
@@ -164,7 +164,7 @@ SELECT IdxPaziente, Gruppo, Cognome, Nome, DataNasc, LuogoNascita, Sesso, Altezz
-
+
dbo.stp_AP_insertQuery
@@ -1777,6 +1777,78 @@ SELECT IdxPaziente, DataVisita, Note, Score1, Score2 FROM VisRelazFin WHERE (Dat
+
+
+
+
+
+ DELETE FROM [dbo].[Pazienti2Labels] WHERE (([IdxPaziente] = @Original_IdxPaziente) AND ([CodLabel] = @Original_CodLabel))
+
+
+
+
+
+
+
+
+ INSERT INTO [dbo].[Pazienti2Labels] ([IdxPaziente], [CodLabel]) VALUES (@IdxPaziente, @CodLabel);
+SELECT IdxPaziente, CodLabel FROM Pazienti2Labels WHERE (CodLabel = @CodLabel) AND (IdxPaziente = @IdxPaziente)
+
+
+
+
+
+
+
+
+ SELECT IdxPaziente, CodLabel FROM dbo.Pazienti2Labels
+
+
+
+
+
+ UPDATE [dbo].[Pazienti2Labels] SET [IdxPaziente] = @IdxPaziente, [CodLabel] = @CodLabel WHERE (([IdxPaziente] = @Original_IdxPaziente) AND ([CodLabel] = @Original_CodLabel));
+SELECT IdxPaziente, CodLabel FROM Pazienti2Labels WHERE (CodLabel = @CodLabel) AND (IdxPaziente = @IdxPaziente)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_P2F_deleteByIdxPaz
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_P2F_getByIdxPaz
+
+
+
+
+
+
+
+
+
+
@@ -1785,7 +1857,7 @@ SELECT IdxPaziente, DataVisita, Note, Score1, Score2 FROM VisRelazFin WHERE (Dat
-
+
@@ -1866,7 +1938,7 @@ SELECT IdxPaziente, DataVisita, Note, Score1, Score2 FROM VisRelazFin WHERE (Dat
-
+
@@ -1882,7 +1954,7 @@ SELECT IdxPaziente, DataVisita, Note, Score1, Score2 FROM VisRelazFin WHERE (Dat
-
+
@@ -1905,7 +1977,7 @@ SELECT IdxPaziente, DataVisita, Note, Score1, Score2 FROM VisRelazFin WHERE (Dat
-
+
@@ -1928,7 +2000,7 @@ SELECT IdxPaziente, DataVisita, Note, Score1, Score2 FROM VisRelazFin WHERE (Dat
-
+
@@ -1956,7 +2028,7 @@ SELECT IdxPaziente, DataVisita, Note, Score1, Score2 FROM VisRelazFin WHERE (Dat
-
+
@@ -1970,7 +2042,7 @@ SELECT IdxPaziente, DataVisita, Note, Score1, Score2 FROM VisRelazFin WHERE (Dat
-
+
@@ -2022,7 +2094,7 @@ SELECT IdxPaziente, DataVisita, Note, Score1, Score2 FROM VisRelazFin WHERE (Dat
-
+
@@ -2039,7 +2111,7 @@ SELECT IdxPaziente, DataVisita, Note, Score1, Score2 FROM VisRelazFin WHERE (Dat
-
+
@@ -2528,7 +2600,7 @@ SELECT IdxPaziente, DataVisita, Note, Score1, Score2 FROM VisRelazFin WHERE (Dat
-
+
@@ -2580,7 +2652,7 @@ SELECT IdxPaziente, DataVisita, Note, Score1, Score2 FROM VisRelazFin WHERE (Dat
-
+
@@ -2613,7 +2685,7 @@ SELECT IdxPaziente, DataVisita, Note, Score1, Score2 FROM VisRelazFin WHERE (Dat
-
+
@@ -2649,6 +2721,20 @@ SELECT IdxPaziente, DataVisita, Note, Score1, Score2 FROM VisRelazFin WHERE (Dat
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -2704,18 +2790,24 @@ SELECT IdxPaziente, DataVisita, Note, Score1, Score2 FROM VisRelazFin WHERE (Dat
+
+
+
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ScheMe_Data/DS_Applicazione.xss b/ScheMe_Data/DS_Applicazione.xss
index 25971d6..f17f58d 100644
--- a/ScheMe_Data/DS_Applicazione.xss
+++ b/ScheMe_Data/DS_Applicazione.xss
@@ -4,39 +4,36 @@
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
-->
-
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
- 697
- 397
+ 680
+ 436
- 697
- 456
-
-
- 638
- 456
+ 611
+ 436
-
+
980
@@ -48,11 +45,11 @@
-
+
842
- 397
+ 492
842
@@ -60,11 +57,11 @@
-
+
705
- 397
+ 492
705
@@ -76,11 +73,11 @@
-
+
747
- 397
+ 492
747
@@ -88,7 +85,7 @@
-
+
680
@@ -100,7 +97,7 @@
-
+
980
@@ -120,7 +117,7 @@
-
+
980
@@ -140,11 +137,11 @@
-
+
713
- 397
+ 492
713
@@ -156,5 +153,21 @@
+
+
+
+ 721
+ 492
+
+
+ 721
+ 670
+
+
+ 367
+ 670
+
+
+
\ No newline at end of file
diff --git a/ScheMe_Data/DtProxy.cs b/ScheMe_Data/DtProxy.cs
index b288dfa..c838257 100644
--- a/ScheMe_Data/DtProxy.cs
+++ b/ScheMe_Data/DtProxy.cs
@@ -23,6 +23,7 @@ namespace ScheMe_Data
protected virtual void avvioTableAdapters()
{
taAP = new DS_ApplicazioneTableAdapters.AnagPazientiTableAdapter();
+ taP2L = new DS_ApplicazioneTableAdapters.Pazienti2LabelsTableAdapter();
taVAC = new DS_ApplicazioneTableAdapters.VisAnamCliTableAdapter();
taVCP = new DS_ApplicazioneTableAdapters.VisCardioPolTableAdapter();
taVLab = new DS_ApplicazioneTableAdapters.VisLabTableAdapter();
@@ -39,6 +40,7 @@ namespace ScheMe_Data
string connStrFiles = memLayer.ML.confReadString("ScheMeFilesConnectionString");
// connections del db vocabolario
taAP.Connection.ConnectionString = connStr;
+ taP2L.Connection.ConnectionString = connStr;
taVAC.Connection.ConnectionString = connStr;
taVCP.Connection.ConnectionString = connStr;
taVLab.Connection.ConnectionString = connStr;
@@ -52,6 +54,7 @@ namespace ScheMe_Data
#region area public
public DS_ApplicazioneTableAdapters.AnagPazientiTableAdapter taAP;
+ public DS_ApplicazioneTableAdapters.Pazienti2LabelsTableAdapter taP2L;
public DS_ApplicazioneTableAdapters.VisAnamCliTableAdapter taVAC;
public DS_ApplicazioneTableAdapters.VisCardioPolTableAdapter taVCP;
public DS_ApplicazioneTableAdapters.VisLabTableAdapter taVLab;
diff --git a/VersGen/bin/Debug/VersGen.dll b/VersGen/bin/Debug/VersGen.dll
index 6fa4f1c..3148ed7 100644
Binary files a/VersGen/bin/Debug/VersGen.dll and b/VersGen/bin/Debug/VersGen.dll differ