Inserito predicato NEW x record Visita Generale
This commit is contained in:
+28
-1
@@ -1,4 +1,5 @@
|
||||
using MedPred_Data;
|
||||
using SteamWare;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
@@ -13,7 +14,33 @@ namespace MedPred
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
// verifico se ci sia richeista x un comando tipo sel/edit
|
||||
string cmd = Request.QueryString["cmd"];
|
||||
switch (cmd)
|
||||
{
|
||||
case "new":
|
||||
// creo nuova visita in data odierna
|
||||
DtProxy.man.taVGen.InsertQuery(IdxPaziente, DateTime.Now.Date, 0, 0, 0, 0, 0, 0);
|
||||
// indico in edit prima (ed unica) riga
|
||||
grView.EditIndex = 0;
|
||||
// aggiorno grView!
|
||||
grView.DataBind();
|
||||
break;
|
||||
case "sel":
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
protected int IdxPaziente
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.IntSessionObj("IdxPaziente");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// richiesta nuovo record
|
||||
|
||||
@@ -23,6 +23,7 @@ namespace MedPred_Data
|
||||
protected virtual void avvioTableAdapters()
|
||||
{
|
||||
taAP = new DS_ApplicazioneTableAdapters.AnagPazientiTableAdapter();
|
||||
taVGen = new DS_ApplicazioneTableAdapters.VisGenTableAdapter();
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua setup dei connection strings da web.config della singola applicazione
|
||||
@@ -32,6 +33,7 @@ namespace MedPred_Data
|
||||
string connStr = memLayer.ML.confReadString("MedPredConnectionString");
|
||||
// connections del db vocabolario
|
||||
taAP.Connection.ConnectionString = connStr;
|
||||
taVGen.Connection.ConnectionString = connStr;
|
||||
}
|
||||
|
||||
#endregion
|
||||
@@ -39,6 +41,7 @@ namespace MedPred_Data
|
||||
#region area public
|
||||
|
||||
public DS_ApplicazioneTableAdapters.AnagPazientiTableAdapter taAP;
|
||||
public DS_ApplicazioneTableAdapters.VisGenTableAdapter taVGen;
|
||||
|
||||
public static DtProxy man = new DtProxy();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user