1.2.11.13 Db Schema comparison
This commit is contained in:
@@ -247,7 +247,7 @@ namespace Saxonite.Net.Core.Web.Base.Procs
|
|||||||
}
|
}
|
||||||
catch (Exception exc)
|
catch (Exception exc)
|
||||||
{
|
{
|
||||||
SaLogger.Warn(SysUtil.Fn + " " + ExceptionUtil.GetLogMessage(exc, "populating USGA request data", 0));
|
SaLogger.Warn(SysUtil.Fn + " " + ExceptionUtil.GetLogMessage(exc, "populating USGA request data", 8));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -272,7 +272,7 @@ namespace Saxonite.Net.Core.Web.Base.Procs
|
|||||||
}
|
}
|
||||||
catch (Exception exc)
|
catch (Exception exc)
|
||||||
{
|
{
|
||||||
SaLogger.Warn(SysUtil.Fn + " " + ExceptionUtil.GetLogMessage(exc, "querying USGA request data", 0));
|
SaLogger.Warn(SysUtil.Fn + " " + ExceptionUtil.GetLogMessage(exc, "querying USGA request data", 8));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return usgaRequestData;
|
return usgaRequestData;
|
||||||
@@ -341,7 +341,7 @@ namespace Saxonite.Net.Core.Web.Base.Procs
|
|||||||
}
|
}
|
||||||
catch (Exception exc)
|
catch (Exception exc)
|
||||||
{
|
{
|
||||||
SaLogger.Warn(SysUtil.Fn + " " + ExceptionUtil.GetLogMessage(exc, "querying USGA countries", 0));
|
SaLogger.Warn(SysUtil.Fn + " " + ExceptionUtil.GetLogMessage(exc, "querying USGA countries", 8));
|
||||||
}
|
}
|
||||||
return usgaCountries;
|
return usgaCountries;
|
||||||
}
|
}
|
||||||
@@ -441,8 +441,7 @@ namespace Saxonite.Net.Core.Web.Base.Procs
|
|||||||
provinceData.ProvinceName = usgaProvince.Name;
|
provinceData.ProvinceName = usgaProvince.Name;
|
||||||
provincesData.Add(provinceData);
|
provincesData.Add(provinceData);
|
||||||
}
|
}
|
||||||
ReferenceGolfMgr.BulkUpdateUsgaProvinces(provincesData, DbUpdateInfo);
|
if (ReferenceGolfMgr.BulkUpdateUsgaProvinces(provincesData, DbUpdateInfo))
|
||||||
if (!ReferenceGolfMgr.HasErrorState())
|
|
||||||
{
|
{
|
||||||
// Provinces stored OK = update Country.
|
// Provinces stored OK = update Country.
|
||||||
usgaCountry.ProvincesUpdateAt = DateTime.Now;
|
usgaCountry.ProvincesUpdateAt = DateTime.Now;
|
||||||
@@ -454,7 +453,7 @@ namespace Saxonite.Net.Core.Web.Base.Procs
|
|||||||
}
|
}
|
||||||
catch (Exception exc)
|
catch (Exception exc)
|
||||||
{
|
{
|
||||||
SaLogger.Warn(SysUtil.Fn + " " + ExceptionUtil.GetLogMessage(exc, $"querying USGA provinces for {countryCode}", 0));
|
SaLogger.Warn(SysUtil.Fn + " " + ExceptionUtil.GetLogMessage(exc, $"querying USGA provinces for {countryCode}", 8));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return usgaProvinces;
|
return usgaProvinces;
|
||||||
@@ -662,8 +661,7 @@ namespace Saxonite.Net.Core.Web.Base.Procs
|
|||||||
}
|
}
|
||||||
coursesData[courseData.UsgaCourseId] = courseData;
|
coursesData[courseData.UsgaCourseId] = courseData;
|
||||||
}
|
}
|
||||||
ReferenceGolfMgr.BulkUpdateUsgaCourses(coursesData.Values.ToList(), DbUpdateInfo);
|
if (ReferenceGolfMgr.BulkUpdateUsgaCourses(coursesData.Values.ToList(), DbUpdateInfo))
|
||||||
if (!ReferenceGolfMgr.HasErrorState())
|
|
||||||
{
|
{
|
||||||
// Courses stored OK - update Province.
|
// Courses stored OK - update Province.
|
||||||
usgaProvince.CoursesUpdateAt = DateTime.Now;
|
usgaProvince.CoursesUpdateAt = DateTime.Now;
|
||||||
@@ -675,7 +673,7 @@ namespace Saxonite.Net.Core.Web.Base.Procs
|
|||||||
}
|
}
|
||||||
catch (Exception exc)
|
catch (Exception exc)
|
||||||
{
|
{
|
||||||
SaLogger.Warn(SysUtil.Fn + " " + ExceptionUtil.GetLogMessage(exc, $"querying USGA courses for {countryCode}", 0));
|
SaLogger.Warn(SysUtil.Fn + " " + ExceptionUtil.GetLogMessage(exc, $"querying USGA courses for {countryCode}", 8));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return usgaCourses;
|
return usgaCourses;
|
||||||
@@ -1081,8 +1079,7 @@ namespace Saxonite.Net.Core.Web.Base.Procs
|
|||||||
markerData.Length = usgaMarker.Length;
|
markerData.Length = usgaMarker.Length;
|
||||||
markersUpdateData.Add(markerData);
|
markersUpdateData.Add(markerData);
|
||||||
}
|
}
|
||||||
ReferenceGolfMgr.BulkUpdateUsgaMarkers(markersUpdateData, DbUpdateInfo);
|
if (ReferenceGolfMgr.BulkUpdateUsgaMarkers(markersUpdateData, DbUpdateInfo))
|
||||||
if (!ReferenceGolfMgr.HasErrorState())
|
|
||||||
{
|
{
|
||||||
// Markers stored OK - update Course.
|
// Markers stored OK - update Course.
|
||||||
if (markersData.Markers.Any())
|
if (markersData.Markers.Any())
|
||||||
@@ -1096,7 +1093,7 @@ namespace Saxonite.Net.Core.Web.Base.Procs
|
|||||||
}
|
}
|
||||||
catch (Exception exc)
|
catch (Exception exc)
|
||||||
{
|
{
|
||||||
SaLogger.Warn(SysUtil.Fn + " " + ExceptionUtil.GetLogMessage(exc, $"querying USGA markers for course Id: {usgaCourseId}", 0));
|
SaLogger.Warn(SysUtil.Fn + " " + ExceptionUtil.GetLogMessage(exc, $"querying USGA markers for course Id: {usgaCourseId}", 8));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return markersData.Markers;
|
return markersData.Markers;
|
||||||
|
|||||||
@@ -116,6 +116,7 @@ namespace Saxonite.Net.Core.Web.Admin.Controllers.System
|
|||||||
private class DbSchemaItemResponseData
|
private class DbSchemaItemResponseData
|
||||||
{
|
{
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
|
public String SchemaName { get; set; }
|
||||||
public String TableName { get; set; }
|
public String TableName { get; set; }
|
||||||
public String ColumnName { get; set; }
|
public String ColumnName { get; set; }
|
||||||
public int ColumnPosition { get; set; }
|
public int ColumnPosition { get; set; }
|
||||||
@@ -185,6 +186,7 @@ namespace Saxonite.Net.Core.Web.Admin.Controllers.System
|
|||||||
DbSchemaItemResponseData item = new DbSchemaItemResponseData()
|
DbSchemaItemResponseData item = new DbSchemaItemResponseData()
|
||||||
{
|
{
|
||||||
Id = schemaComparisonItem.Id,
|
Id = schemaComparisonItem.Id,
|
||||||
|
SchemaName = schemaComparisonItem.SchemaName,
|
||||||
TableName = schemaComparisonItem.TableName,
|
TableName = schemaComparisonItem.TableName,
|
||||||
ColumnName = schemaComparisonItem.ColumnName,
|
ColumnName = schemaComparisonItem.ColumnName,
|
||||||
ColumnPosition = schemaComparisonItem.ColumnPosition,
|
ColumnPosition = schemaComparisonItem.ColumnPosition,
|
||||||
|
|||||||
@@ -294,6 +294,9 @@
|
|||||||
<data name="label.columns" xml:space="preserve">
|
<data name="label.columns" xml:space="preserve">
|
||||||
<value>Columns</value>
|
<value>Columns</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="label.comment" xml:space="preserve">
|
||||||
|
<value>Comment</value>
|
||||||
|
</data>
|
||||||
<data name="label.contact" xml:space="preserve">
|
<data name="label.contact" xml:space="preserve">
|
||||||
<value>Contact</value>
|
<value>Contact</value>
|
||||||
</data>
|
</data>
|
||||||
@@ -312,9 +315,6 @@
|
|||||||
<data name="label.course" xml:space="preserve">
|
<data name="label.course" xml:space="preserve">
|
||||||
<value>Course</value>
|
<value>Course</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="label.course.id" xml:space="preserve">
|
|
||||||
<value>Course Id</value>
|
|
||||||
</data>
|
|
||||||
<data name="label.courses" xml:space="preserve">
|
<data name="label.courses" xml:space="preserve">
|
||||||
<value>Courses</value>
|
<value>Courses</value>
|
||||||
</data>
|
</data>
|
||||||
@@ -396,6 +396,9 @@
|
|||||||
<data name="label.holes" xml:space="preserve">
|
<data name="label.holes" xml:space="preserve">
|
||||||
<value>Holes</value>
|
<value>Holes</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="label.id" xml:space="preserve">
|
||||||
|
<value>Id</value>
|
||||||
|
</data>
|
||||||
<data name="label.image" xml:space="preserve">
|
<data name="label.image" xml:space="preserve">
|
||||||
<value>Image</value>
|
<value>Image</value>
|
||||||
</data>
|
</data>
|
||||||
@@ -564,6 +567,9 @@
|
|||||||
<data name="label.rows" xml:space="preserve">
|
<data name="label.rows" xml:space="preserve">
|
||||||
<value>Rows</value>
|
<value>Rows</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="label.schema" xml:space="preserve">
|
||||||
|
<value>Schema</value>
|
||||||
|
</data>
|
||||||
<data name="label.search" xml:space="preserve">
|
<data name="label.search" xml:space="preserve">
|
||||||
<value>Search</value>
|
<value>Search</value>
|
||||||
</data>
|
</data>
|
||||||
|
|||||||
@@ -13,6 +13,7 @@
|
|||||||
min-width: 80px;
|
min-width: 80px;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
table.sax-item-stats tr:hover .sax-value
|
table.sax-item-stats tr:hover .sax-value
|
||||||
{
|
{
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
@@ -58,6 +59,22 @@
|
|||||||
<input type="hidden" name="DatabaseFilter.Instance" class="DatabaseInstance" />
|
<input type="hidden" name="DatabaseFilter.Instance" class="DatabaseInstance" />
|
||||||
}
|
}
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.sax-panel-results .sax-panel-info.DbSchema > .sax-content
|
||||||
|
{
|
||||||
|
max-height: auto;
|
||||||
|
}
|
||||||
|
.sax-panel-results .sax-panel-info.DbSchema .sax-panel-messages
|
||||||
|
{
|
||||||
|
margin-bottom: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sax-panel-results .sax-panel-info.DbSchema table.sax-item-list thead tr th
|
||||||
|
{
|
||||||
|
background-color: #ffc8c7;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
@* Database Schema Verification *@
|
@* Database Schema Verification *@
|
||||||
<div class="sax-panel-info sax-panel-results">
|
<div class="sax-panel-info sax-panel-results">
|
||||||
|
|
||||||
@@ -68,55 +85,55 @@
|
|||||||
|
|
||||||
@* Database Schema - Core *@
|
@* Database Schema - Core *@
|
||||||
<div class="sax-panel-info DbSchema Core">
|
<div class="sax-panel-info DbSchema Core">
|
||||||
|
|
||||||
<div class="sax-header">
|
<div class="sax-header">
|
||||||
<div class="sax-caption">@Localiser["system.caption.database.core"]</div>
|
<div class="sax-caption">@Localiser["system.caption.database.core"]</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="padding:4px 8px;">
|
<div class="sax-panel-messages"></div>
|
||||||
<div class="sax-panel-messages"></div>
|
|
||||||
<div class="sax-panel-item-list"></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@* Database Schema - Reference *@
|
@* Database Schema - Reference *@
|
||||||
<div class="sax-panel-info DbSchema Reference">
|
<div class="sax-panel-info DbSchema Reference">
|
||||||
|
|
||||||
<div class="sax-header">
|
<div class="sax-header">
|
||||||
<div class="sax-caption">@Localiser["system.caption.database.reference"]</div>
|
<div class="sax-caption">@Localiser["system.caption.database.reference"]</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="padding:4px 8px;">
|
<div class="sax-panel-messages"></div>
|
||||||
<div class="sax-panel-messages"></div>
|
|
||||||
<div class="sax-panel-item-list"></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@* Database Schema - Reference *@
|
@* Database Schema - Reference *@
|
||||||
<div class="sax-panel-info DbSchema Support">
|
<div class="sax-panel-info DbSchema Support">
|
||||||
|
|
||||||
<div class="sax-header">
|
<div class="sax-header">
|
||||||
<div class="sax-caption">@Localiser["system.caption.database.support"]</div>
|
<div class="sax-caption">@Localiser["system.caption.database.support"]</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="padding:4px 8px;">
|
<div class="sax-panel-messages"></div>
|
||||||
<div class="sax-panel-messages"></div>
|
|
||||||
<div class="sax-panel-item-list"></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@* Db Schema templates *@
|
||||||
<div class="sax-panel-item-template">
|
<div class="sax-panel-item-template">
|
||||||
@* Db Schema templates *@
|
@* Db Schema table template *@
|
||||||
<div class="sax-panel-item DbSchemaItem">
|
<div class="sax-panel-item-table DbSchema hidden" style="min-height:48px;max-height:240px;overflow-y:auto;">
|
||||||
<div class="sax-header">
|
<table class="sax-item-list">
|
||||||
<div class="sax-caption SchemaTable">@(Localiser["label.table"]): <span class="TableName"></span></div>
|
<thead>
|
||||||
</div>
|
<tr>
|
||||||
<div class="sax-content">
|
<th class="">@Localiser["label.schema"]</th>
|
||||||
<div class="SchemaIndex">@(Localiser["label.index"]): <span class="IndexName"></span></div>
|
<th class="">@Localiser["label.table"]</th>
|
||||||
<div class="SchemaColumn">@(Localiser["label.column"]): <span class="ColumnName"></span></div>
|
<th class="">@Localiser["label.column"]</th>
|
||||||
<div class=""><span class="Comment"></span></div>
|
<th class="">@Localiser["label.index"]</th>
|
||||||
</div>
|
<th class="">@Localiser["label.comment"]</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody></tbody>
|
||||||
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
@* Db Schema Item row *@
|
||||||
|
<table>
|
||||||
|
<tr class="sax-row-item DbSchemaItem">
|
||||||
|
<td class=""><div class="SchemaName"></div></td>
|
||||||
|
<td class=""><div class="TableName"></div></td>
|
||||||
|
<td class=""><div class="ColumnName"></div></td>
|
||||||
|
<td class=""><div class="IndexName"></div></td>
|
||||||
|
<td class=""><div class="Comment"></div></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -106,16 +106,16 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="sax-panel-item-template">
|
<div class="sax-panel-item-template">
|
||||||
<table>
|
<table>
|
||||||
<tr class="sax-item GolfCountry">
|
<tr class="sax-item GolfCountry">
|
||||||
<td class="center"><div class="CountryCode"></div></td>
|
<td class="center"><div class="CountryCode"></div></td>
|
||||||
<td class=""><div class="CountryName"></div></td>
|
<td class=""><div class="CountryName"></div></td>
|
||||||
<td class="center"><div class="CountryPriority"></div></td>
|
<td class="center"><div class="CountryPriority"></div></td>
|
||||||
<td class="center"><div class="CountryProvinces"></div></td>
|
<td class="center"><div class="CountryProvinces"></div></td>
|
||||||
<td class="center"><div class="CountryClubs"></div></td>
|
<td class="center"><div class="CountryClubs"></div></td>
|
||||||
<td class="center"><div class="CountryClubsPercent"></div></td>
|
<td class="center"><div class="CountryClubsPercent"></div></td>
|
||||||
<td class="center"><div class="CountryStatus"></div></td>
|
<td class="center"><div class="CountryStatus"></div></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
@@ -154,16 +154,16 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="sax-panel-item-template">
|
<div class="sax-panel-item-template">
|
||||||
<table>
|
<table>
|
||||||
<tr class="sax-item GolfProvince">
|
<tr class="sax-item GolfProvince">
|
||||||
<td class="center"><div class="ProvinceCode"></div></td>
|
<td class="center"><div class="ProvinceCode"></div></td>
|
||||||
<td class=""><div class="ProvinceName"></div></td>
|
<td class=""><div class="ProvinceName"></div></td>
|
||||||
<td class="center"><div class="ProvincePriority"></div></td>
|
<td class="center"><div class="ProvincePriority"></div></td>
|
||||||
<td class="center"><div class="ProvinceClubs"></div></td>
|
<td class="center"><div class="ProvinceClubs"></div></td>
|
||||||
<td class="center"><div class="ProvinceCourses"></div></td>
|
<td class="center"><div class="ProvinceCourses"></div></td>
|
||||||
<td class="center"><div class="ProvinceMarkers"></div></td>
|
<td class="center"><div class="ProvinceMarkers"></div></td>
|
||||||
<td class="center"><div class="ProvinceStatus"></div></td>
|
<td class="center"><div class="ProvinceStatus"></div></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
@@ -198,9 +198,9 @@
|
|||||||
<table class="sax-item-list">
|
<table class="sax-item-list">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="center">@Localiser["label.course.id"]</th>
|
<th class="center">@Localiser["label.id"]</th>
|
||||||
<th class="">@Localiser["label.caption"]</th>
|
<th class="">@Localiser["label.caption"]</th>
|
||||||
<th class="center">@Localiser["label.location"]</th>
|
<th class="">@Localiser["label.location"]</th>
|
||||||
<th class="center">@Localiser["label.priority"]</th>
|
<th class="center">@Localiser["label.priority"]</th>
|
||||||
<th class="center">@Localiser["label.markers"]</th>
|
<th class="center">@Localiser["label.markers"]</th>
|
||||||
<th class="center">@Localiser["label.status"]</th>
|
<th class="center">@Localiser["label.status"]</th>
|
||||||
@@ -215,7 +215,7 @@
|
|||||||
<tr class="sax-item GolfCourse">
|
<tr class="sax-item GolfCourse">
|
||||||
<td class="center"><div class="CourseId"></div></td>
|
<td class="center"><div class="CourseId"></div></td>
|
||||||
<td class=""><div class="CourseCaption"></div></td>
|
<td class=""><div class="CourseCaption"></div></td>
|
||||||
<td class="center"><div class="CourseLocation"></div></td>
|
<td class=""><div class="CourseLocation"></div></td>
|
||||||
<td class="center"><div class="CoursePriority"></div></td>
|
<td class="center"><div class="CoursePriority"></div></td>
|
||||||
<td class="center"><div class="CourseMarkers"></div></td>
|
<td class="center"><div class="CourseMarkers"></div></td>
|
||||||
<td class="center"><div class="CourseStatus"></div></td>
|
<td class="center"><div class="CourseStatus"></div></td>
|
||||||
@@ -267,20 +267,20 @@
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<div class="sax-panel-item-template">
|
<div class="sax-panel-item-template">
|
||||||
<table>
|
<table>
|
||||||
<tr class="sax-item GolfMarker">
|
<tr class="sax-item GolfMarker">
|
||||||
<td class="pl-2"><div class="MarkerCaption"></div></td>
|
<td class="pl-2"><div class="MarkerCaption"></div></td>
|
||||||
<td class="center"><div class="MarkerHoles"></div></td>
|
<td class="center"><div class="MarkerHoles"></div></td>
|
||||||
<td class="center"><div class="MarkerTee"></div></td>
|
<td class="center"><div class="MarkerTee"></div></td>
|
||||||
<td class="center"><div class="MarkerGender"></div></td>
|
<td class="center"><div class="MarkerGender"></div></td>
|
||||||
<td class="center"><div class="MarkerSlope"></div></td>
|
<td class="center"><div class="MarkerSlope"></div></td>
|
||||||
<td class="center"><div class="MarkerPar"></div></td>
|
<td class="center"><div class="MarkerPar"></div></td>
|
||||||
<td class="center"><div class="MarkerCourse"></div></td>
|
<td class="center"><div class="MarkerCourse"></div></td>
|
||||||
<td class="center"><div class="MarkerBogey"></div></td>
|
<td class="center"><div class="MarkerBogey"></div></td>
|
||||||
<td class="center"><div class="MarkerLength"></div></td>
|
<td class="center"><div class="MarkerLength"></div></td>
|
||||||
<td class="center"><div class="MarkerStatus"></div></td>
|
<td class="center"><div class="MarkerStatus"></div></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -85,9 +85,11 @@
|
|||||||
{
|
{
|
||||||
//sax.debug('handleDbSchemaResponse', response);
|
//sax.debug('handleDbSchemaResponse', response);
|
||||||
delete ah.awaitingSchemaResponse;
|
delete ah.awaitingSchemaResponse;
|
||||||
let $pnlSchema = $('.sax-panel-results .sax-panel-info.DbSchema.' + response.instance) ;
|
let $pnlSchema = $('.sax-panel-results .sax-panel-info.DbSchema.' + response.instance);
|
||||||
var $msgs = $('.sax-panel-messages', $pnlSchema).hide().empty();
|
var $msgs = $('.sax-panel-messages', $pnlSchema).hide().empty();
|
||||||
var $items = $('.sax-panel-item-list', $pnlSchema).hide().empty();
|
var $tablePanel = $('.sax-panel-item-table', $pnlSchema).hide();
|
||||||
|
var $table = $('table.sax-item-list', $tablePanel);
|
||||||
|
$('tbody tr', $table).remove();
|
||||||
if (!response.success) return;
|
if (!response.success) return;
|
||||||
if (response.instance == 'Core') ah.toSchema = setTimeout(function () { ah.refreshDbSchema('Reference'); }, 250);
|
if (response.instance == 'Core') ah.toSchema = setTimeout(function () { ah.refreshDbSchema('Reference'); }, 250);
|
||||||
if (response.instance == 'Reference') ah.toSchema = setTimeout(function () { ah.refreshDbSchema('Support'); }, 250);
|
if (response.instance == 'Reference') ah.toSchema = setTimeout(function () { ah.refreshDbSchema('Support'); }, 250);
|
||||||
@@ -95,24 +97,26 @@
|
|||||||
var items = response.items;
|
var items = response.items;
|
||||||
if (!items.length)
|
if (!items.length)
|
||||||
return $msgs.append($('<div class="sax-message">' + sax.msg.dbSchemaValid + '</div>')).fadeIn(500);
|
return $msgs.append($('<div class="sax-message">' + sax.msg.dbSchemaValid + '</div>')).fadeIn(500);
|
||||||
//sax.debug(ah.getDbSchemaTemplate());
|
|
||||||
for (let itemIdx = 0; itemIdx < items.length; itemIdx++)
|
for (let itemIdx = 0; itemIdx < items.length; itemIdx++)
|
||||||
$items.append(ah.populateDbSchemaItem(ah.getDbSchemaTemplate(), items[itemIdx]));
|
$table.append(ah.populateDbSchemaItem(ah.getDbSchemaRowTemplate(), items[itemIdx]));
|
||||||
$items.slideDown(750);
|
$tablePanel.show();
|
||||||
}
|
}
|
||||||
ah.getDbSchemaTemplate = function ()
|
ah.getDbSchemaTableTemplate = function ()
|
||||||
{
|
{
|
||||||
return $('.sax-panel-results .sax-panel-item-template .sax-panel-item.DbSchemaItem').clone();
|
return $('.sax-panel-results .sax-panel-item-template .sax-panel-item-table.DbSchema').clone();
|
||||||
|
}
|
||||||
|
ah.getDbSchemaRowTemplate = function ()
|
||||||
|
{
|
||||||
|
return $('.sax-panel-results .sax-panel-item-template .sax-row-item.DbSchemaItem').clone();
|
||||||
}
|
}
|
||||||
ah.populateDbSchemaItem = function ($item, item)
|
ah.populateDbSchemaItem = function ($item, item)
|
||||||
{
|
{
|
||||||
if (!item) return;
|
if (!item) return;
|
||||||
$item.prop('id', sax.itemIdPrefix + item.id);
|
$item.prop('id', sax.itemIdPrefix + item.id);
|
||||||
|
$('.SchemaName', $item).text(item.schemaName);
|
||||||
$('.TableName', $item).text(item.tableName);
|
$('.TableName', $item).text(item.tableName);
|
||||||
$('.IndexName', $item).text(item.indexName);
|
$('.IndexName', $item).text(item.indexName);
|
||||||
$('.SchemaIndex', $item).toggle(!!item.indexName);
|
|
||||||
$('.ColumnName', $item).text(item.columnName);
|
$('.ColumnName', $item).text(item.columnName);
|
||||||
$('.SchemaColumn', $item).toggle(!!item.columnName);
|
|
||||||
$('.Comment', $item).text(item.comment);
|
$('.Comment', $item).text(item.comment);
|
||||||
return $item;
|
return $item;
|
||||||
}
|
}
|
||||||
@@ -122,9 +126,9 @@
|
|||||||
{
|
{
|
||||||
$pnl.appStats = $('.sax-panel-results.ApplicationStats');
|
$pnl.appStats = $('.sax-panel-results.ApplicationStats');
|
||||||
$frm.dbSchema = $('#frmDatabaseSchema');
|
$frm.dbSchema = $('#frmDatabaseSchema');
|
||||||
$pnl.dbSchemaCore = $('.sax-panel-results.DbSchema.Core');
|
$pnl.dbSchemaCore = $('.sax-panel-info.DbSchema.Core').append(ah.getDbSchemaTableTemplate());
|
||||||
$pnl.dbSchemaReference = $('.sax-panel-results.DbSchema.Reference');
|
$pnl.dbSchemaReference = $('.sax-panel-info.DbSchema.Reference'); $pnl.dbSchemaReference.append(ah.getDbSchemaTableTemplate());
|
||||||
$pnl.dbSchemaSupport = $('.sax-panel-results.DbSchema.Support');
|
$pnl.dbSchemaSupport = $('.sax-panel-info.DbSchema.Support').append(ah.getDbSchemaTableTemplate());
|
||||||
|
|
||||||
ah.toStats = setTimeout(ah.refreshApplicationStats, 400);
|
ah.toStats = setTimeout(ah.refreshApplicationStats, 400);
|
||||||
ah.toSchema = setTimeout(function () { ah.refreshDbSchema('Core'); }, 600);
|
ah.toSchema = setTimeout(function () { ah.refreshDbSchema('Core'); }, 600);
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ namespace Saxonite.Net.Standard.Base.App
|
|||||||
//-------------------------------------------------------------------
|
//-------------------------------------------------------------------
|
||||||
public static class Version
|
public static class Version
|
||||||
{
|
{
|
||||||
private static String version { get; } = "1.2.11.12";
|
private static String version { get; } = "1.2.11.13";
|
||||||
// Retrieve version.
|
// Retrieve version.
|
||||||
public static String GetFullVersion () { return version; }
|
public static String GetFullVersion () { return version; }
|
||||||
public static String GetAppVersion ()
|
public static String GetAppVersion ()
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
// Code generated by Sarand Database Utilities Tue 6-Aug-2024 14:50:13
|
// Code generated by Sarand Database Utilities Thu 22-Aug-2024 18:00:16
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
namespace Saxonite.Base.App
|
namespace Saxonite.Base.App
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
// Code generated by Sarand Database Utilities Tue 6-Aug-2024 14:50:13
|
// Code generated by Sarand Database Utilities Thu 22-Aug-2024 18:00:17
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
namespace Saxonite.Base.App
|
namespace Saxonite.Base.App
|
||||||
{
|
{
|
||||||
@@ -399,8 +399,8 @@ namespace Saxonite.Base.App
|
|||||||
new ColumnDfn(4,"UsgaMarkerId",5,-5,false,19),
|
new ColumnDfn(4,"UsgaMarkerId",5,-5,false,19),
|
||||||
new ColumnDfn(4,"Caption",0,-9,false,200),
|
new ColumnDfn(4,"Caption",0,-9,false,200),
|
||||||
new ColumnDfn(4,"Holes",3,5,false,5),
|
new ColumnDfn(4,"Holes",3,5,false,5),
|
||||||
new ColumnDfn(4,"HolesCaption",0,-9,false,32),
|
new ColumnDfn(4,"HolesCaption",0,-9,false,200),
|
||||||
new ColumnDfn(4,"Tee",0,-9,false,32),
|
new ColumnDfn(4,"Tee",0,-9,false,200),
|
||||||
new ColumnDfn(4,"Gender",0,-9,false,32),
|
new ColumnDfn(4,"Gender",0,-9,false,32),
|
||||||
new ColumnDfn(4,"SlopeRating",3,5,false,5),
|
new ColumnDfn(4,"SlopeRating",3,5,false,5),
|
||||||
new ColumnDfn(4,"Par",3,5,false,5),
|
new ColumnDfn(4,"Par",3,5,false,5),
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
// Code generated by Sarand Database Utilities Tue 6-Aug-2024 14:50:13
|
// Code generated by Sarand Database Utilities Thu 22-Aug-2024 18:00:17
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
namespace Saxonite.Base.App
|
namespace Saxonite.Base.App
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ using System.Data.Common;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
// Code generated by Sarand Database Utilities Tue 6-Aug-2024 14:50:13
|
// Code generated by Sarand Database Utilities Thu 22-Aug-2024 18:00:16
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
namespace Saxonite.Net.Standard.Dbas.Internal.Core
|
namespace Saxonite.Net.Standard.Dbas.Internal.Core
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ using System.Data.Common;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
// Code generated by Sarand Database Utilities Tue 6-Aug-2024 14:50:13
|
// Code generated by Sarand Database Utilities Thu 22-Aug-2024 18:00:16
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
namespace Saxonite.Net.Standard.Dbas.Internal.Core
|
namespace Saxonite.Net.Standard.Dbas.Internal.Core
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ using System.Data.Common;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
// Code generated by Sarand Database Utilities Tue 6-Aug-2024 14:50:13
|
// Code generated by Sarand Database Utilities Thu 22-Aug-2024 18:00:16
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
namespace Saxonite.Net.Standard.Dbas.Internal.Core
|
namespace Saxonite.Net.Standard.Dbas.Internal.Core
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ using System.Data.Common;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
// Code generated by Sarand Database Utilities Tue 6-Aug-2024 14:50:13
|
// Code generated by Sarand Database Utilities Thu 22-Aug-2024 18:00:16
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
namespace Saxonite.Net.Standard.Dbas.Internal.Core
|
namespace Saxonite.Net.Standard.Dbas.Internal.Core
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ using System.Data.Common;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
// Code generated by Sarand Database Utilities Tue 6-Aug-2024 14:50:13
|
// Code generated by Sarand Database Utilities Thu 22-Aug-2024 18:00:16
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
namespace Saxonite.Net.Standard.Dbas.Internal.Core
|
namespace Saxonite.Net.Standard.Dbas.Internal.Core
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ using System.Data.Common;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
// Code generated by Sarand Database Utilities Tue 6-Aug-2024 14:50:13
|
// Code generated by Sarand Database Utilities Thu 22-Aug-2024 18:00:16
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
namespace Saxonite.Net.Standard.Dbas.Internal.Core
|
namespace Saxonite.Net.Standard.Dbas.Internal.Core
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ using System.Data.Common;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
// Code generated by Sarand Database Utilities Tue 6-Aug-2024 14:50:13
|
// Code generated by Sarand Database Utilities Thu 22-Aug-2024 18:00:16
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
namespace Saxonite.Net.Standard.Dbas.Internal.Core
|
namespace Saxonite.Net.Standard.Dbas.Internal.Core
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ using System.Data.Common;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
// Code generated by Sarand Database Utilities Tue 6-Aug-2024 14:50:13
|
// Code generated by Sarand Database Utilities Thu 22-Aug-2024 18:00:16
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
namespace Saxonite.Net.Standard.Dbas.Internal.Core
|
namespace Saxonite.Net.Standard.Dbas.Internal.Core
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ using System.Data.Common;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
// Code generated by Sarand Database Utilities Tue 6-Aug-2024 14:50:13
|
// Code generated by Sarand Database Utilities Thu 22-Aug-2024 18:00:16
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
namespace Saxonite.Net.Standard.Dbas.Internal.Core
|
namespace Saxonite.Net.Standard.Dbas.Internal.Core
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ using System.Data.Common;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
// Code generated by Sarand Database Utilities Tue 6-Aug-2024 14:50:13
|
// Code generated by Sarand Database Utilities Thu 22-Aug-2024 18:00:16
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
namespace Saxonite.Net.Standard.Dbas.Internal.Core
|
namespace Saxonite.Net.Standard.Dbas.Internal.Core
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ using System.Data.Common;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
// Code generated by Sarand Database Utilities Tue 6-Aug-2024 14:50:13
|
// Code generated by Sarand Database Utilities Thu 22-Aug-2024 18:00:16
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
namespace Saxonite.Net.Standard.Dbas.Internal.Core
|
namespace Saxonite.Net.Standard.Dbas.Internal.Core
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ using System.Data.Common;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
// Code generated by Sarand Database Utilities Tue 6-Aug-2024 14:50:13
|
// Code generated by Sarand Database Utilities Thu 22-Aug-2024 18:00:16
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
namespace Saxonite.Net.Standard.Dbas.Internal.Core
|
namespace Saxonite.Net.Standard.Dbas.Internal.Core
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ using System.Data.Common;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
// Code generated by Sarand Database Utilities Tue 6-Aug-2024 14:50:13
|
// Code generated by Sarand Database Utilities Thu 22-Aug-2024 18:00:16
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
namespace Saxonite.Net.Standard.Dbas.Internal.Core
|
namespace Saxonite.Net.Standard.Dbas.Internal.Core
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ using System.Data.Common;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
// Code generated by Sarand Database Utilities Tue 6-Aug-2024 14:50:13
|
// Code generated by Sarand Database Utilities Thu 22-Aug-2024 18:00:16
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
namespace Saxonite.Net.Standard.Dbas.Internal.Core
|
namespace Saxonite.Net.Standard.Dbas.Internal.Core
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ using System.Data.Common;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
// Code generated by Sarand Database Utilities Tue 6-Aug-2024 14:50:13
|
// Code generated by Sarand Database Utilities Thu 22-Aug-2024 18:00:16
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
namespace Saxonite.Net.Standard.Dbas.Internal.Core
|
namespace Saxonite.Net.Standard.Dbas.Internal.Core
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ using System.Data.Common;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
// Code generated by Sarand Database Utilities Tue 6-Aug-2024 14:50:13
|
// Code generated by Sarand Database Utilities Thu 22-Aug-2024 18:00:16
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
namespace Saxonite.Net.Standard.Dbas.Internal.Core
|
namespace Saxonite.Net.Standard.Dbas.Internal.Core
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ using System.Data.Common;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
// Code generated by Sarand Database Utilities Tue 6-Aug-2024 14:50:13
|
// Code generated by Sarand Database Utilities Thu 22-Aug-2024 18:00:16
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
namespace Saxonite.Net.Standard.Dbas.Internal.Core
|
namespace Saxonite.Net.Standard.Dbas.Internal.Core
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ using System.Data.Common;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
// Code generated by Sarand Database Utilities Tue 6-Aug-2024 14:50:13
|
// Code generated by Sarand Database Utilities Thu 22-Aug-2024 18:00:16
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
namespace Saxonite.Net.Standard.Dbas.Internal.Core
|
namespace Saxonite.Net.Standard.Dbas.Internal.Core
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ using System.Data.Common;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
// Code generated by Sarand Database Utilities Tue 6-Aug-2024 14:50:13
|
// Code generated by Sarand Database Utilities Thu 22-Aug-2024 18:00:16
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
namespace Saxonite.Net.Standard.Dbas.Internal.Core
|
namespace Saxonite.Net.Standard.Dbas.Internal.Core
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ using System.Data.Common;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
// Code generated by Sarand Database Utilities Tue 6-Aug-2024 14:50:13
|
// Code generated by Sarand Database Utilities Thu 22-Aug-2024 18:00:16
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
namespace Saxonite.Net.Standard.Dbas.Internal.Core
|
namespace Saxonite.Net.Standard.Dbas.Internal.Core
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ using System.Data.Common;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
// Code generated by Sarand Database Utilities Tue 6-Aug-2024 14:50:13
|
// Code generated by Sarand Database Utilities Thu 22-Aug-2024 18:00:16
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
namespace Saxonite.Net.Standard.Dbas.Internal.Core
|
namespace Saxonite.Net.Standard.Dbas.Internal.Core
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ using System.Data.Common;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
// Code generated by Sarand Database Utilities Tue 6-Aug-2024 14:50:13
|
// Code generated by Sarand Database Utilities Thu 22-Aug-2024 18:00:16
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
namespace Saxonite.Net.Standard.Dbas.Internal.Core
|
namespace Saxonite.Net.Standard.Dbas.Internal.Core
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ using System.Data.Common;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
// Code generated by Sarand Database Utilities Tue 6-Aug-2024 14:50:13
|
// Code generated by Sarand Database Utilities Thu 22-Aug-2024 18:00:17
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
namespace Saxonite.Net.Standard.Dbas.Internal.Reference
|
namespace Saxonite.Net.Standard.Dbas.Internal.Reference
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ using System.Data.Common;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
// Code generated by Sarand Database Utilities Tue 6-Aug-2024 14:50:13
|
// Code generated by Sarand Database Utilities Thu 22-Aug-2024 18:00:17
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
namespace Saxonite.Net.Standard.Dbas.Internal.Reference
|
namespace Saxonite.Net.Standard.Dbas.Internal.Reference
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ using System.Data.Common;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
// Code generated by Sarand Database Utilities Tue 6-Aug-2024 14:50:13
|
// Code generated by Sarand Database Utilities Thu 22-Aug-2024 18:00:17
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
namespace Saxonite.Net.Standard.Dbas.Internal.Reference
|
namespace Saxonite.Net.Standard.Dbas.Internal.Reference
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ using System.Data.Common;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
// Code generated by Sarand Database Utilities Tue 6-Aug-2024 14:50:13
|
// Code generated by Sarand Database Utilities Thu 22-Aug-2024 18:00:17
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
namespace Saxonite.Net.Standard.Dbas.Internal.Reference
|
namespace Saxonite.Net.Standard.Dbas.Internal.Reference
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ using System.Data.Common;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
// Code generated by Sarand Database Utilities Tue 6-Aug-2024 14:50:13
|
// Code generated by Sarand Database Utilities Thu 22-Aug-2024 18:00:17
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
namespace Saxonite.Net.Standard.Dbas.Internal.Reference
|
namespace Saxonite.Net.Standard.Dbas.Internal.Reference
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ using System.Data.Common;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
// Code generated by Sarand Database Utilities Tue 6-Aug-2024 14:50:13
|
// Code generated by Sarand Database Utilities Thu 22-Aug-2024 18:00:17
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
namespace Saxonite.Net.Standard.Dbas.Internal.Support
|
namespace Saxonite.Net.Standard.Dbas.Internal.Support
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ using System.Data.Common;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
// Code generated by Sarand Database Utilities Tue 6-Aug-2024 14:50:13
|
// Code generated by Sarand Database Utilities Thu 22-Aug-2024 18:00:17
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
namespace Saxonite.Net.Standard.Dbas.Internal.Support
|
namespace Saxonite.Net.Standard.Dbas.Internal.Support
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -313,7 +313,7 @@ namespace Saxonite.Net.Standard.Dbas.Mgr.Reference
|
|||||||
SaLogger.Warn(SysUtil.Fn + " " + ExceptionUtil.GetLogMessage(exc, " executing bulk USGA Country update"));
|
SaLogger.Warn(SysUtil.Fn + " " + ExceptionUtil.GetLogMessage(exc, " executing bulk USGA Country update"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return HasErrorState();
|
return !HasErrorState();
|
||||||
}
|
}
|
||||||
|
|
||||||
//-------------------------------------------------------------------
|
//-------------------------------------------------------------------
|
||||||
|
|||||||
@@ -368,7 +368,7 @@ namespace Saxonite.Net.Standard.Dbas.Mgr.Reference
|
|||||||
SaLogger.Warn(SysUtil.Fn + " " + ExceptionUtil.GetLogMessage(exc, " executing bulk USGA Course update"));
|
SaLogger.Warn(SysUtil.Fn + " " + ExceptionUtil.GetLogMessage(exc, " executing bulk USGA Course update"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return HasErrorState();
|
return !HasErrorState();
|
||||||
}
|
}
|
||||||
|
|
||||||
//-------------------------------------------------------------------
|
//-------------------------------------------------------------------
|
||||||
|
|||||||
@@ -349,7 +349,7 @@ namespace Saxonite.Net.Standard.Dbas.Mgr.Reference
|
|||||||
SaLogger.Warn(SysUtil.Fn + " " + ExceptionUtil.GetLogMessage(exc, " executing bulk USGA Facility update"));
|
SaLogger.Warn(SysUtil.Fn + " " + ExceptionUtil.GetLogMessage(exc, " executing bulk USGA Facility update"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return HasErrorState();
|
return !HasErrorState();
|
||||||
}
|
}
|
||||||
|
|
||||||
//-------------------------------------------------------------------
|
//-------------------------------------------------------------------
|
||||||
|
|||||||
@@ -362,7 +362,7 @@ namespace Saxonite.Net.Standard.Dbas.Mgr.Reference
|
|||||||
SaLogger.Warn(SysUtil.Fn + " " + ExceptionUtil.GetLogMessage(exc, " executing bulk USGA Marker update"));
|
SaLogger.Warn(SysUtil.Fn + " " + ExceptionUtil.GetLogMessage(exc, " executing bulk USGA Marker update"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return HasErrorState();
|
return !HasErrorState();
|
||||||
}
|
}
|
||||||
|
|
||||||
//-------------------------------------------------------------------
|
//-------------------------------------------------------------------
|
||||||
|
|||||||
@@ -321,7 +321,7 @@ namespace Saxonite.Net.Standard.Dbas.Mgr.Reference
|
|||||||
SaLogger.Warn(SysUtil.Fn + " " + ExceptionUtil.GetLogMessage(exc, " executing bulk USGA Province update"));
|
SaLogger.Warn(SysUtil.Fn + " " + ExceptionUtil.GetLogMessage(exc, " executing bulk USGA Province update"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return HasErrorState();
|
return !HasErrorState();
|
||||||
}
|
}
|
||||||
|
|
||||||
//-------------------------------------------------------------------
|
//-------------------------------------------------------------------
|
||||||
|
|||||||
@@ -477,7 +477,7 @@
|
|||||||
<Clustered>false</Clustered>
|
<Clustered>false</Clustered>
|
||||||
<Nullable>false</Nullable>
|
<Nullable>false</Nullable>
|
||||||
<Pages>1</Pages>
|
<Pages>1</Pages>
|
||||||
<UniqueValues>30</UniqueValues>
|
<UniqueValues>42</UniqueValues>
|
||||||
<HasColumns>false</HasColumns>
|
<HasColumns>false</HasColumns>
|
||||||
<Columns>
|
<Columns>
|
||||||
<DbDfnIndexColumn>
|
<DbDfnIndexColumn>
|
||||||
@@ -3574,7 +3574,7 @@
|
|||||||
<Clustered>false</Clustered>
|
<Clustered>false</Clustered>
|
||||||
<Nullable>false</Nullable>
|
<Nullable>false</Nullable>
|
||||||
<Pages>1</Pages>
|
<Pages>1</Pages>
|
||||||
<UniqueValues>8</UniqueValues>
|
<UniqueValues>20</UniqueValues>
|
||||||
<HasColumns>false</HasColumns>
|
<HasColumns>false</HasColumns>
|
||||||
<Columns>
|
<Columns>
|
||||||
<DbDfnIndexColumn>
|
<DbDfnIndexColumn>
|
||||||
@@ -5784,7 +5784,7 @@
|
|||||||
<Clustered>false</Clustered>
|
<Clustered>false</Clustered>
|
||||||
<Nullable>false</Nullable>
|
<Nullable>false</Nullable>
|
||||||
<Pages>1</Pages>
|
<Pages>1</Pages>
|
||||||
<UniqueValues>43</UniqueValues>
|
<UniqueValues>55</UniqueValues>
|
||||||
<HasColumns>false</HasColumns>
|
<HasColumns>false</HasColumns>
|
||||||
<Columns>
|
<Columns>
|
||||||
<DbDfnIndexColumn>
|
<DbDfnIndexColumn>
|
||||||
|
|||||||
@@ -746,8 +746,8 @@
|
|||||||
<Primary>false</Primary>
|
<Primary>false</Primary>
|
||||||
<Clustered>false</Clustered>
|
<Clustered>false</Clustered>
|
||||||
<Nullable>false</Nullable>
|
<Nullable>false</Nullable>
|
||||||
<Pages>67</Pages>
|
<Pages>69</Pages>
|
||||||
<UniqueValues>623</UniqueValues>
|
<UniqueValues>687</UniqueValues>
|
||||||
<HasColumns>false</HasColumns>
|
<HasColumns>false</HasColumns>
|
||||||
<Columns>
|
<Columns>
|
||||||
<DbDfnIndexColumn>
|
<DbDfnIndexColumn>
|
||||||
@@ -1172,8 +1172,8 @@
|
|||||||
<Primary>false</Primary>
|
<Primary>false</Primary>
|
||||||
<Clustered>false</Clustered>
|
<Clustered>false</Clustered>
|
||||||
<Nullable>false</Nullable>
|
<Nullable>false</Nullable>
|
||||||
<Pages>13</Pages>
|
<Pages>14</Pages>
|
||||||
<UniqueValues>541</UniqueValues>
|
<UniqueValues>603</UniqueValues>
|
||||||
<HasColumns>false</HasColumns>
|
<HasColumns>false</HasColumns>
|
||||||
<Columns>
|
<Columns>
|
||||||
<DbDfnIndexColumn>
|
<DbDfnIndexColumn>
|
||||||
@@ -1325,8 +1325,8 @@
|
|||||||
<DataTypeNative>-9</DataTypeNative>
|
<DataTypeNative>-9</DataTypeNative>
|
||||||
<DataTypeNameNative>nvarchar</DataTypeNameNative>
|
<DataTypeNameNative>nvarchar</DataTypeNameNative>
|
||||||
<IsIdentity>false</IsIdentity>
|
<IsIdentity>false</IsIdentity>
|
||||||
<Size>32</Size>
|
<Size>200</Size>
|
||||||
<BufferLen>64</BufferLen>
|
<BufferLen>400</BufferLen>
|
||||||
<DecimalDigits>0</DecimalDigits>
|
<DecimalDigits>0</DecimalDigits>
|
||||||
<Nullable>NoNulls</Nullable>
|
<Nullable>NoNulls</Nullable>
|
||||||
<IsNullable>false</IsNullable>
|
<IsNullable>false</IsNullable>
|
||||||
@@ -1342,8 +1342,8 @@
|
|||||||
<DataTypeNative>-9</DataTypeNative>
|
<DataTypeNative>-9</DataTypeNative>
|
||||||
<DataTypeNameNative>nvarchar</DataTypeNameNative>
|
<DataTypeNameNative>nvarchar</DataTypeNameNative>
|
||||||
<IsIdentity>false</IsIdentity>
|
<IsIdentity>false</IsIdentity>
|
||||||
<Size>32</Size>
|
<Size>200</Size>
|
||||||
<BufferLen>64</BufferLen>
|
<BufferLen>400</BufferLen>
|
||||||
<DecimalDigits>0</DecimalDigits>
|
<DecimalDigits>0</DecimalDigits>
|
||||||
<Nullable>NoNulls</Nullable>
|
<Nullable>NoNulls</Nullable>
|
||||||
<IsNullable>false</IsNullable>
|
<IsNullable>false</IsNullable>
|
||||||
@@ -1899,8 +1899,8 @@
|
|||||||
<Primary>false</Primary>
|
<Primary>false</Primary>
|
||||||
<Clustered>false</Clustered>
|
<Clustered>false</Clustered>
|
||||||
<Nullable>false</Nullable>
|
<Nullable>false</Nullable>
|
||||||
<Pages>15</Pages>
|
<Pages>16</Pages>
|
||||||
<UniqueValues>976</UniqueValues>
|
<UniqueValues>1061</UniqueValues>
|
||||||
<HasColumns>false</HasColumns>
|
<HasColumns>false</HasColumns>
|
||||||
<Columns>
|
<Columns>
|
||||||
<DbDfnIndexColumn>
|
<DbDfnIndexColumn>
|
||||||
|
|||||||
@@ -196,7 +196,7 @@ namespace Saxonite.Web.Api.App
|
|||||||
// USGA Provinces.
|
// USGA Provinces.
|
||||||
SaxGolfUsgaDataLookup.Config courseLookupConfig = new SaxGolfUsgaDataLookup.Config(SessionContext, dbUpdateInfo);
|
SaxGolfUsgaDataLookup.Config courseLookupConfig = new SaxGolfUsgaDataLookup.Config(SessionContext, dbUpdateInfo);
|
||||||
SaxGolfUsgaDataLookup courseLookup = new SaxGolfUsgaDataLookup(courseLookupConfig);
|
SaxGolfUsgaDataLookup courseLookup = new SaxGolfUsgaDataLookup(courseLookupConfig);
|
||||||
List<SaxGolfUsgaDataLookup.ProvinceData> provinces = courseLookup.LookupUsgaProvincesForCountry("USA");
|
List<SaxGolfUsgaDataLookup.ProvinceData> provinces = courseLookup.LookupUsgaProvincesForCountry("AUS");
|
||||||
SaLogger.Warn($"{SysUtil.Fn} Province lookup - found: {provinces.Count}");
|
SaLogger.Warn($"{SysUtil.Fn} Province lookup - found: {provinces.Count}");
|
||||||
if (courseLookup.HasErrorMessage())
|
if (courseLookup.HasErrorMessage())
|
||||||
SaLogger.Warn($"{SysUtil.Fn} Province lookup error: {courseLookup.GetErrorMessage()}");
|
SaLogger.Warn($"{SysUtil.Fn} Province lookup error: {courseLookup.GetErrorMessage()}");
|
||||||
@@ -210,7 +210,7 @@ namespace Saxonite.Web.Api.App
|
|||||||
// USGA Courses.
|
// USGA Courses.
|
||||||
SaxGolfUsgaDataLookup.Config courseLookupConfig = new SaxGolfUsgaDataLookup.Config(SessionContext, dbUpdateInfo);
|
SaxGolfUsgaDataLookup.Config courseLookupConfig = new SaxGolfUsgaDataLookup.Config(SessionContext, dbUpdateInfo);
|
||||||
SaxGolfUsgaDataLookup courseLookup = new SaxGolfUsgaDataLookup(courseLookupConfig);
|
SaxGolfUsgaDataLookup courseLookup = new SaxGolfUsgaDataLookup(courseLookupConfig);
|
||||||
List<SaxGolfUsgaDataLookup.CourseData> courses = courseLookup.LookupUsgaCoursesForCountryAndProvince("USA", "US-VI");
|
List<SaxGolfUsgaDataLookup.CourseData> courses = courseLookup.LookupUsgaCoursesForCountryAndProvince("AUS", "AU-TAS");
|
||||||
SaLogger.Warn($"{SysUtil.Fn} Course lookup - found: {courses.Count}");
|
SaLogger.Warn($"{SysUtil.Fn} Course lookup - found: {courses.Count}");
|
||||||
if (courseLookup.HasErrorMessage())
|
if (courseLookup.HasErrorMessage())
|
||||||
SaLogger.Warn($"{SysUtil.Fn} Course lookup error: {courseLookup.GetErrorMessage()}");
|
SaLogger.Warn($"{SysUtil.Fn} Course lookup error: {courseLookup.GetErrorMessage()}");
|
||||||
@@ -219,12 +219,12 @@ namespace Saxonite.Web.Api.App
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (false)
|
if (true)
|
||||||
{
|
{
|
||||||
// USGA Markers.
|
// USGA Markers.
|
||||||
SaxGolfUsgaDataLookup.Config courseLookupConfig = new SaxGolfUsgaDataLookup.Config(SessionContext, dbUpdateInfo);
|
SaxGolfUsgaDataLookup.Config courseLookupConfig = new SaxGolfUsgaDataLookup.Config(SessionContext, dbUpdateInfo);
|
||||||
SaxGolfUsgaDataLookup courseLookup = new SaxGolfUsgaDataLookup(courseLookupConfig);
|
SaxGolfUsgaDataLookup courseLookup = new SaxGolfUsgaDataLookup(courseLookupConfig);
|
||||||
List<SaxGolfUsgaDataLookup.MarkerData> markers = courseLookup.LookupUsgaMarkersForCourse(new SysId(22185));
|
List<SaxGolfUsgaDataLookup.MarkerData> markers = courseLookup.LookupUsgaMarkersForCourse(new SysId(24579));
|
||||||
SaLogger.Warn($"{SysUtil.Fn} Marker lookup - found: {markers.Count}");
|
SaLogger.Warn($"{SysUtil.Fn} Marker lookup - found: {markers.Count}");
|
||||||
if (courseLookup.HasErrorMessage())
|
if (courseLookup.HasErrorMessage())
|
||||||
SaLogger.Warn($"{SysUtil.Fn} Marker lookup error: {courseLookup.GetErrorMessage()}");
|
SaLogger.Warn($"{SysUtil.Fn} Marker lookup error: {courseLookup.GetErrorMessage()}");
|
||||||
|
|||||||
Reference in New Issue
Block a user