Databases : Minor improvements, ver. 2.12.424
This commit is contained in:
parent
72debd397f
commit
beff091699
@ -267,7 +267,6 @@ namespace Config.Entities
|
|||||||
{
|
{
|
||||||
return (userName.Equals("milan") && password.Equals("napajedla")) ||
|
return (userName.Equals("milan") && password.Equals("napajedla")) ||
|
||||||
(userName.Equals("igor") && password.Equals("ronko4")) ||
|
(userName.Equals("igor") && password.Equals("ronko4")) ||
|
||||||
(userName.Equals("janb") && password.Equals("sen345bnaj21")) ||
|
|
||||||
(userName.Equals("vlado") && password.Equals("luskovica.430")) ||
|
(userName.Equals("vlado") && password.Equals("luskovica.430")) ||
|
||||||
(userName.Equals("pakan") && password.Equals("kuriatko")) ||
|
(userName.Equals("pakan") && password.Equals("kuriatko")) ||
|
||||||
(userName.Equals("gilles") && password.Equals("alibaba"));
|
(userName.Equals("gilles") && password.Equals("alibaba"));
|
||||||
|
|||||||
@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
|||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("2.12.410.0")]
|
[assembly: AssemblyVersion("2.12.424.0")]
|
||||||
[assembly: AssemblyFileVersion("2.12.410.0")]
|
[assembly: AssemblyFileVersion("2.12.424.0")]
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
///
|
///
|
||||||
/// Copyright (c) 2013-2015 Sensus Metering Systems
|
/// Copyright (c) 2013-2016 Sensus Metering Systems
|
||||||
///
|
///
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
@ -177,9 +177,9 @@ namespace Results
|
|||||||
{
|
{
|
||||||
ISession session = DB.CreateSession();
|
ISession session = DB.CreateSession();
|
||||||
|
|
||||||
TestDataList = session.CreateQuery("FROM TestData").List<Entities.TestData>();
|
TestDataList = session.QueryOver<TestData>().List();
|
||||||
ComponentsList = session.CreateQuery("FROM Components").List<Entities.Components>();
|
ComponentsList = session.QueryOver<Components>().List();
|
||||||
WaterMeterDataList = session.CreateQuery("FROM WaterMeterData").List<Entities.WaterMeterData>();
|
WaterMeterDataList = session.QueryOver<WaterMeterData>().List();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -189,7 +189,7 @@ namespace Results
|
|||||||
public static int GetMaxSavedBatchNr()
|
public static int GetMaxSavedBatchNr()
|
||||||
{
|
{
|
||||||
ISession session = DB.CreateSession();
|
ISession session = DB.CreateSession();
|
||||||
IList<Entities.Batch> batches = session.CreateQuery("FROM Batch").List<Entities.Batch>();
|
IList<Entities.Batch> batches = session.QueryOver<Batch>().List();
|
||||||
|
|
||||||
int maxBatchNr = 0;
|
int maxBatchNr = 0;
|
||||||
foreach (var b in batches)
|
foreach (var b in batches)
|
||||||
@ -239,9 +239,9 @@ namespace Results
|
|||||||
ISession session = DB.CreateSession();
|
ISession session = DB.CreateSession();
|
||||||
if (session == null) return false;
|
if (session == null) return false;
|
||||||
|
|
||||||
TestDataList = session.CreateQuery("FROM TestData").List<Entities.TestData>();
|
TestDataList = session.QueryOver<TestData>().List();
|
||||||
ComponentsList = session.CreateQuery("FROM Components").List<Entities.Components>();
|
ComponentsList = session.QueryOver<Components>().List();
|
||||||
WaterMeterDataList = session.CreateQuery("FROM WaterMeterData").List<Entities.WaterMeterData>();
|
WaterMeterDataList = session.QueryOver<WaterMeterData>().List();
|
||||||
|
|
||||||
UpdateBatchData(batch);
|
UpdateBatchData(batch);
|
||||||
|
|
||||||
|
|||||||
@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
|||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("2.12.403.0")]
|
[assembly: AssemblyVersion("2.12.424.0")]
|
||||||
[assembly: AssemblyFileVersion("2.12.403.0")]
|
[assembly: AssemblyFileVersion("2.12.424.0")]
|
||||||
|
|||||||
@ -29,5 +29,5 @@ using System.Runtime.InteropServices;
|
|||||||
// Build Number
|
// Build Number
|
||||||
// Revision
|
// Revision
|
||||||
//
|
//
|
||||||
[assembly: AssemblyVersion("2.12.423.1")]
|
[assembly: AssemblyVersion("2.12.424.1")]
|
||||||
[assembly: AssemblyFileVersion("2.12.423.1")]
|
[assembly: AssemblyFileVersion("2.12.424.1")]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user