This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#define AYSHOWQUERYINFO
|
||||
//#define AYSHOWQUERYINFO
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
@@ -10,11 +10,11 @@ namespace Sockeye.DataList
|
||||
public GZCaseDataList(long translationId)
|
||||
{
|
||||
DefaultListAType = SockType.GZCase;
|
||||
SQLFrom = @"FROM agzcase ";
|
||||
SQLFrom = @"FROM agzcase LEFT JOIN acustomer ON (agzcase.customerid = acustomer.id)";
|
||||
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() { "GZCaseId", "Tags", "GZCaseName", "GZCaseClosed" };
|
||||
DefaultColumns = new List<string>() { "GZCaseId", "Tags", "GZCaseName", "GZCaseClosed", "Customer" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "GZCaseId", "-" } };
|
||||
FieldDefinitions = new List<DataListFieldDefinition>();
|
||||
|
||||
@@ -54,6 +54,17 @@ namespace Sockeye.DataList
|
||||
SqlValueColumnName = "agzcase.name"
|
||||
});
|
||||
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Customer",
|
||||
FieldKey = "Customer",
|
||||
SockType = (int)SockType.Customer,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "agzcase.customerid",
|
||||
SqlValueColumnName = "acustomer.name"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "Tags",
|
||||
|
||||
@@ -22,16 +22,16 @@ namespace Sockeye.Util
|
||||
//!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImportingAsync WHEN NEW TABLES ADDED!!!!
|
||||
private const int DESIRED_SCHEMA_LEVEL = 17;
|
||||
|
||||
internal const long EXPECTED_COLUMN_COUNT = 505;
|
||||
internal const long EXPECTED_COLUMN_COUNT = 506;
|
||||
internal const long EXPECTED_INDEX_COUNT = 74;
|
||||
internal const long EXPECTED_CHECK_CONSTRAINTS = 242;
|
||||
internal const long EXPECTED_FOREIGN_KEY_CONSTRAINTS = 33;
|
||||
internal const long EXPECTED_FOREIGN_KEY_CONSTRAINTS = 34;
|
||||
internal const long EXPECTED_VIEWS = 0;
|
||||
internal const long EXPECTED_ROUTINES = 2;
|
||||
|
||||
//!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImportingAsync WHEN NEW TABLES ADDED!!!!
|
||||
|
||||
///////////////////////////////////////// (C505:I74:CC242:FC33:V0:R2)
|
||||
///////////////////////////////////////// (C506:I74:CC242:FC34:V0:R2)
|
||||
/*
|
||||
|
||||
MAXIMUM POSTGRES OBJECT NAME LENGTH: 63 CHARACTERS
|
||||
|
||||
Reference in New Issue
Block a user