56 lines
1.0 KiB
C#
56 lines
1.0 KiB
C#
using SteamWare;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace AppData
|
|
{
|
|
public class DataLayer
|
|
{
|
|
#region oggetti public
|
|
|
|
public DS_AppTableAdapters.BatchListTableAdapter taBL;
|
|
|
|
public DataLayer()
|
|
{
|
|
// inizializzaizone classe
|
|
initTA();
|
|
setupConnString();
|
|
}
|
|
|
|
private void setupConnString()
|
|
{
|
|
string connString = memLayer.ML.CRS("NKC_WFConnectionString");
|
|
taBL.Connection.ConnectionString = connString;
|
|
}
|
|
private void initTA()
|
|
{
|
|
taBL = new DS_AppTableAdapters.BatchListTableAdapter();
|
|
}
|
|
|
|
#endregion
|
|
|
|
/// <summary>
|
|
/// oggetto static/singleton per fare chiamate sul datalayer
|
|
/// </summary>
|
|
public static DataLayer man = new DataLayer();
|
|
|
|
public string CodSoggCurrUser
|
|
{
|
|
get
|
|
{
|
|
return "O000123456";
|
|
}
|
|
}
|
|
public string CognNomeCurrUser
|
|
{
|
|
get
|
|
{
|
|
return "Mario Rossi";
|
|
}
|
|
}
|
|
}
|
|
}
|