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",
|
||||
|
||||
Reference in New Issue
Block a user