- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
public static DataTable GetMainMenu()
{
DataTable dt = null;
if (DataManager.IsClientServer)
{
dt = new DataTable();
using (OracleCommand qGetMainMenu = new OracleCommand())
{
qGetMainMenu.Connection = DataManager.OracleSession;
qGetMainMenu.CommandText = String.Format("SELECT * FROM {0}.V_MENU", DataManager.DataSchema);
using (OracleDataReader odr = qGetMainMenu.ExecuteReader())
{
dt.Load(odr);
odr.Close();
}
}
}
else
{
using (Service.AbvServiceClient client = Utils.CreateServiceClient())
{
dt = client.GetMainFormMenu();
}
}
return dt;
}