rename all variants of naming that hold an AyaType value to "aType" (parameter) / "AType" (not parameter) everywhere front and back; "ayType", "objectType", "oType" all are used in various areas
This commit is contained in:
@@ -6,9 +6,9 @@ namespace AyaNova.DataList
|
||||
{
|
||||
public AttachmentDataList()
|
||||
{
|
||||
DefaultListObjectType = AyaType.FileAttachment;
|
||||
DefaultListAType = AyaType.FileAttachment;
|
||||
SQLFrom = "from afileattachment";
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListObjectType);
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() { "displayfilename", "object", "size", "notes", "exists" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "displayfilename", "+" }, { "size", "-" } };
|
||||
@@ -20,7 +20,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
TKey = "FileAttachment",
|
||||
FieldKey = "displayfilename",
|
||||
AyaObjectType = (int)AyaType.FileAttachment,
|
||||
AType = (int)AyaType.FileAttachment,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "afileattachment.id",
|
||||
SqlValueColumnName = "afileattachment.displayfilename",
|
||||
@@ -41,8 +41,8 @@ namespace AyaNova.DataList
|
||||
FieldKey = "object",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "afileattachment.AttachToObjectid",
|
||||
SqlValueColumnName = "AYGETNAME(afileattachment.AttachToObjectid, afileattachment.attachtoobjecttype)",
|
||||
SqlAyTypeColumnName = "afileattachment.attachtoobjecttype"
|
||||
SqlValueColumnName = "AYGETNAME(afileattachment.AttachToObjectid, afileattachment.attachtoatype)",
|
||||
SqlATypeColumnName = "afileattachment.attachtoatype"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
|
||||
@@ -6,9 +6,9 @@ namespace AyaNova.DataList
|
||||
{
|
||||
public ContractDataList()
|
||||
{
|
||||
DefaultListObjectType = AyaType.Contract;
|
||||
DefaultListAType = AyaType.Contract;
|
||||
SQLFrom = "from acontract";
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListObjectType);
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() { "contractname", "contractactive" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "contractname", "+" } };
|
||||
@@ -18,7 +18,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
TKey = "ContractName",
|
||||
FieldKey = "contractname",
|
||||
AyaObjectType = (int)AyaType.Contract,
|
||||
AType = (int)AyaType.Contract,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "acontract.id",
|
||||
SqlValueColumnName = "acontract.name",
|
||||
|
||||
@@ -6,9 +6,9 @@ namespace AyaNova.DataList
|
||||
{
|
||||
public CustomerDataList()
|
||||
{
|
||||
DefaultListObjectType = AyaType.Customer;
|
||||
DefaultListAType = AyaType.Customer;
|
||||
SQLFrom = "from acustomer left join aheadoffice on (acustomer.headofficeid=aheadoffice.id) left join acontract on (acustomer.contractid=acontract.id)";
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListObjectType);
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() { "customername", "customerphone1", "customeremail", "customerheadoffice" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "customername", "+" } };
|
||||
@@ -19,7 +19,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
TKey = "CustomerName",
|
||||
FieldKey = "customername",
|
||||
AyaObjectType = (int)AyaType.Customer,
|
||||
AType = (int)AyaType.Customer,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "acustomer.id",
|
||||
SqlValueColumnName = "acustomer.name",
|
||||
@@ -71,7 +71,7 @@ namespace AyaNova.DataList
|
||||
TKey = "HeadOffice",
|
||||
FieldKey = "customerheadoffice",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
AyaObjectType = (int)AyaType.HeadOffice,
|
||||
AType = (int)AyaType.HeadOffice,
|
||||
SqlIdColumnName = "aheadoffice.id",
|
||||
SqlValueColumnName = "aheadoffice.name"
|
||||
});
|
||||
@@ -113,7 +113,7 @@ namespace AyaNova.DataList
|
||||
TKey = "Contract",
|
||||
FieldKey = "customercontract",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
AyaObjectType = (int)AyaType.Contract,
|
||||
AType = (int)AyaType.Contract,
|
||||
SqlIdColumnName = "acontract.id",
|
||||
SqlValueColumnName = "acontract.name"
|
||||
});
|
||||
|
||||
@@ -8,9 +8,9 @@ namespace AyaNova.DataList
|
||||
{
|
||||
public CustomerNoteDataList()
|
||||
{
|
||||
DefaultListObjectType = AyaType.CustomerNote;
|
||||
DefaultListAType = AyaType.CustomerNote;
|
||||
SQLFrom = "from acustomernote left join auser on (acustomernote.userid=auser.id)";
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListObjectType);
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() { "notedate", "notes", "username" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "notedate", "-" } };
|
||||
@@ -21,7 +21,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
TKey = "User",
|
||||
FieldKey = "username",
|
||||
AyaObjectType = (int)AyaType.User,
|
||||
AType = (int)AyaType.User,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "auser.id",
|
||||
SqlValueColumnName = "auser.name",
|
||||
@@ -33,7 +33,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
TKey = "CustomerNoteNotes",
|
||||
FieldKey = "notes",
|
||||
AyaObjectType = (int)AyaType.CustomerNote,
|
||||
AType = (int)AyaType.CustomerNote,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "acustomernote.id",
|
||||
SqlValueColumnName = "acustomernote.notes",
|
||||
|
||||
@@ -6,14 +6,14 @@ namespace AyaNova.DataList
|
||||
{
|
||||
public CustomerServiceRequestDataList()
|
||||
{
|
||||
DefaultListObjectType = AyaType.CustomerServiceRequest;
|
||||
DefaultListAType = AyaType.CustomerServiceRequest;
|
||||
SQLFrom = "from acustomerservicerequest " +
|
||||
"left join acustomer on (acustomerservicerequest.customerid=acustomer.id) " +
|
||||
"left join auser on (acustomerservicerequest.requestedbyuserid=auser.id) " +
|
||||
"left join aunit on (acustomerservicerequest.unitid = aunit.id) " +
|
||||
"left join aworkorderitem as wi on (acustomerservicerequest.workorderitemid=wi.id) " +
|
||||
"left join aworkorder as w on (wi.workorderid=w.id)";
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListObjectType);
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() { "Created", "Customer", "CustomerServiceRequestTitle", "CustomerServiceRequestPriority", "CustomerServiceRequestStatus" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "Created", "-" } };
|
||||
@@ -24,7 +24,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
TKey = "CustomerServiceRequestTitle",
|
||||
FieldKey = "CustomerServiceRequestTitle",
|
||||
AyaObjectType = (int)AyaType.CustomerServiceRequest,
|
||||
AType = (int)AyaType.CustomerServiceRequest,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "acustomerservicerequest.id",
|
||||
SqlValueColumnName = "acustomerservicerequest.name",
|
||||
@@ -60,7 +60,7 @@ namespace AyaNova.DataList
|
||||
FieldKey = "Customer",
|
||||
TKey = "Customer",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
AyaObjectType = (int)AyaType.Customer,
|
||||
AType = (int)AyaType.Customer,
|
||||
SqlIdColumnName = "acustomer.id",
|
||||
SqlValueColumnName = "acustomer.name"
|
||||
});
|
||||
@@ -70,7 +70,7 @@ namespace AyaNova.DataList
|
||||
FieldKey = "CustomerServiceRequestItemUnitID",
|
||||
TKey = "CustomerServiceRequestItemUnitID",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
AyaObjectType = (int)AyaType.Unit,
|
||||
AType = (int)AyaType.Unit,
|
||||
SqlIdColumnName = "aunit.id",
|
||||
SqlValueColumnName = "aunit.serial"
|
||||
});
|
||||
@@ -80,7 +80,7 @@ namespace AyaNova.DataList
|
||||
FieldKey = "WorkOrder",
|
||||
TKey = "WorkOrder",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
AyaObjectType = (int)AyaType.WorkOrderItem,
|
||||
AType = (int)AyaType.WorkOrderItem,
|
||||
SqlIdColumnName = "wi.id",
|
||||
SqlValueColumnName = "w.serial"
|
||||
});
|
||||
@@ -90,7 +90,7 @@ namespace AyaNova.DataList
|
||||
FieldKey = "CustomerServiceRequestRequestedBy",
|
||||
TKey = "CustomerServiceRequestRequestedBy",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
AyaObjectType = (int)AyaType.User,
|
||||
AType = (int)AyaType.User,
|
||||
SqlIdColumnName = "auser.id",
|
||||
SqlValueColumnName = "auser.name"
|
||||
});
|
||||
|
||||
@@ -120,9 +120,9 @@ namespace AyaNova.DataList
|
||||
AyaField.i = dr.GetInt64(ordinal);
|
||||
}
|
||||
|
||||
if (f.SqlAyTypeColumnName != null)
|
||||
if (f.SqlATypeColumnName != null)
|
||||
{
|
||||
var ordinal = qSelect.map[f.SqlAyTypeColumnName];
|
||||
var ordinal = qSelect.map[f.SqlATypeColumnName];
|
||||
if (!await dr.IsDBNullAsync(ordinal))
|
||||
AyaField.ot = dr.GetInt32(ordinal);
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ namespace AyaNova.DataList
|
||||
public bool IsRowId { get; set; }
|
||||
|
||||
//CLIENT / SERVER - client display and to indicate what object to open , Server for formatting return object
|
||||
public int AyaObjectType { get; set; }
|
||||
public int AType { get; set; }
|
||||
|
||||
//SERVER - for building sql queries
|
||||
//don't return these properties when api user fetches field list definitions in DataListController
|
||||
@@ -45,7 +45,7 @@ namespace AyaNova.DataList
|
||||
[JsonIgnore]
|
||||
public string SqlValueColumnName { get; set; }
|
||||
[JsonIgnore]
|
||||
public string SqlAyTypeColumnName { get; set; }//column to fetch the AyaType openabel for this field to set it dynamically instead of preset
|
||||
public string SqlATypeColumnName { get; set; }//column to fetch the AyaType openabel for this field to set it dynamically instead of preset
|
||||
[JsonIgnore]
|
||||
public string SqlColorColumnName { get; set; }//column to fetch the color if applicable to this field
|
||||
|
||||
@@ -58,8 +58,8 @@ namespace AyaNova.DataList
|
||||
IsRowId = false;
|
||||
IsMeta = false;
|
||||
//Set openable object type to no type which is the default and means it's not a link to another object
|
||||
AyaObjectType = (int)AyaType.NoType;
|
||||
SqlAyTypeColumnName = null;//must be null as that is checked against specifically
|
||||
AType = (int)AyaType.NoType;
|
||||
SqlATypeColumnName = null;//must be null as that is checked against specifically
|
||||
SqlColorColumnName = null;//must be null to be ignored properly
|
||||
}
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace AyaNova.DataList
|
||||
public string SQLFrom { get; set; }
|
||||
public List<DataListFieldDefinition> FieldDefinitions { get; set; }
|
||||
public AuthorizationRoles AllowedRoles { get; set; }
|
||||
public AyaType DefaultListObjectType { get; set; }
|
||||
public AyaType DefaultListAType { get; set; }
|
||||
public long CurrentUserId { get; set; }
|
||||
public List<string> DefaultColumns { get; set; }
|
||||
public Dictionary<string, string> DefaultSortBy { get; set; }
|
||||
@@ -112,9 +112,9 @@ namespace AyaNova.DataList
|
||||
}
|
||||
}
|
||||
|
||||
//Has a AyObjectType? (linkable / openable)
|
||||
if (o.AyaObjectType != 0)
|
||||
sb.Append($",\"ay\":{(int)o.AyaObjectType}");
|
||||
//Has a AyAType? (linkable / openable)
|
||||
if (o.AType != 0)
|
||||
sb.Append($",\"ay\":{(int)o.AType}");
|
||||
|
||||
//Row ID column?
|
||||
if (o.IsRowId)
|
||||
|
||||
@@ -78,7 +78,7 @@ namespace AyaNova.DataList
|
||||
}
|
||||
|
||||
//does it also have an openable AyaType column?
|
||||
var ayaTypeColumnName = o.SqlAyTypeColumnName;
|
||||
var ayaTypeColumnName = o.SqlATypeColumnName;
|
||||
if (!string.IsNullOrWhiteSpace(ayaTypeColumnName))
|
||||
{
|
||||
if (!map.ContainsKey(ayaTypeColumnName))
|
||||
|
||||
@@ -7,9 +7,9 @@ namespace AyaNova.DataList
|
||||
public EventDataList()
|
||||
{
|
||||
//NOTE: used this type because it's full BizFull and read only BizLimited only which is appropriate and there is no event type
|
||||
DefaultListObjectType = AyaType.Global;
|
||||
DefaultListAType = AyaType.Global;
|
||||
SQLFrom = "from aevent left join auser on (aevent.userid=auser.id)";
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListObjectType);
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() { "eventcreated", "event", "object", "AyaType", "username", "textra" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "eventcreated", "-" } };
|
||||
@@ -49,7 +49,7 @@ namespace AyaNova.DataList
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "aevent.ayid",
|
||||
SqlValueColumnName = "AYGETNAME(aevent.ayid, aevent.ayatype)",
|
||||
SqlAyTypeColumnName = "aevent.ayatype"
|
||||
SqlATypeColumnName = "aevent.ayatype"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
@@ -57,7 +57,7 @@ namespace AyaNova.DataList
|
||||
FieldKey = "username",
|
||||
TKey = "User",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
AyaObjectType = (int)AyaType.User,
|
||||
AType = (int)AyaType.User,
|
||||
SqlIdColumnName = "auser.id",
|
||||
SqlValueColumnName = "auser.name"
|
||||
});
|
||||
|
||||
@@ -6,9 +6,9 @@ namespace AyaNova.DataList
|
||||
{
|
||||
public HeadOfficeDataList()
|
||||
{
|
||||
DefaultListObjectType = AyaType.HeadOffice;
|
||||
DefaultListAType = AyaType.HeadOffice;
|
||||
SQLFrom = "from aheadoffice left join acontract on (aheadoffice.contractid=acontract.id)";
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListObjectType);
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() { "headofficename", "headofficephone1", "headofficeemail" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "headofficename", "+" } };
|
||||
@@ -19,7 +19,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
TKey = "HeadOfficeName",
|
||||
FieldKey = "headofficename",
|
||||
AyaObjectType = (int)AyaType.HeadOffice,
|
||||
AType = (int)AyaType.HeadOffice,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "aheadoffice.id",
|
||||
SqlValueColumnName = "aheadoffice.name",
|
||||
@@ -80,7 +80,7 @@ namespace AyaNova.DataList
|
||||
TKey = "Contract",
|
||||
FieldKey = "headofficecontract",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
AyaObjectType = (int)AyaType.Contract,
|
||||
AType = (int)AyaType.Contract,
|
||||
SqlIdColumnName = "acontract.id",
|
||||
SqlValueColumnName = "acontract.name"
|
||||
});
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace AyaNova.DataList
|
||||
//allowed roles to access this list
|
||||
AuthorizationRoles AllowedRoles { get; set; }
|
||||
//Default object type to open for rows of this list (use no object if no)
|
||||
AyaType DefaultListObjectType { get; set; }
|
||||
AyaType DefaultListAType { get; set; }
|
||||
//Defaults when none is specified (see DataListOptions for formats and notes)
|
||||
List<string> DefaultColumns { get; set; }
|
||||
Dictionary<string, string> DefaultSortBy { get; set; }
|
||||
|
||||
@@ -9,9 +9,9 @@ namespace AyaNova.DataList
|
||||
|
||||
public InsideUserDataList()
|
||||
{
|
||||
DefaultListObjectType = AyaType.User;
|
||||
DefaultListAType = AyaType.User;
|
||||
SQLFrom = "from auser left join avendor on (auser.vendorid=avendor.id)";
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListObjectType);
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() { "name", "employeenumber", "active", "usertype", "lastlogin" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "name", "+" } };
|
||||
@@ -21,7 +21,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
TKey = "User",
|
||||
FieldKey = "name",
|
||||
AyaObjectType = (int)AyaType.User,
|
||||
AType = (int)AyaType.User,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "auser.id",
|
||||
SqlValueColumnName = "auser.name",
|
||||
@@ -77,7 +77,7 @@ namespace AyaNova.DataList
|
||||
TKey = "Vendor",
|
||||
FieldKey = "uservendor",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
AyaObjectType = (int)AyaType.Vendor,
|
||||
AType = (int)AyaType.Vendor,
|
||||
SqlIdColumnName = "avendor.id",
|
||||
SqlValueColumnName = "avendor.name"
|
||||
});
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
public LoanUnitDataList()
|
||||
{
|
||||
DefaultListObjectType = AyaType.LoanUnit;
|
||||
DefaultListAType = AyaType.LoanUnit;
|
||||
SQLFrom = "from aloanunit " +
|
||||
"left join aunit as shadowunit on (aloanunit.unitid=shadowunit.id) " +
|
||||
"left join aworkorderitemloan as wil on (aloanunit.workorderitemloanid=wil.id) " +
|
||||
@@ -14,7 +14,7 @@ namespace AyaNova.DataList
|
||||
"left join aworkorder as w on (wi.workorderid=w.id)";
|
||||
//MIGRATE_OUTSTANDING awaiting workorderitemloan coding
|
||||
//todo: look at loanitemlist in v7 it surfaces due date, out date etc in the list and should here too once those fields are coded for
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListObjectType);
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() { "LoanUnitName", "LoanUnitSerial", "Tags" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "LoanUnitName", "+" } };
|
||||
@@ -24,7 +24,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
TKey = "LoanUnitName",
|
||||
FieldKey = "LoanUnitName",
|
||||
AyaObjectType = (int)AyaType.LoanUnit,
|
||||
AType = (int)AyaType.LoanUnit,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "aloanunit.id",
|
||||
SqlValueColumnName = "aloanunit.name",
|
||||
@@ -68,7 +68,7 @@ namespace AyaNova.DataList
|
||||
FieldKey = "LoanUnitCurrentWorkOrderItemLoan",
|
||||
TKey = "LoanUnitCurrentWorkOrderItemLoan",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
AyaObjectType = (int)AyaType.WorkOrderItemLoan,
|
||||
AType = (int)AyaType.WorkOrderItemLoan,
|
||||
SqlIdColumnName = "wil.id",
|
||||
SqlValueColumnName = "w.serial"
|
||||
});
|
||||
@@ -135,7 +135,7 @@ namespace AyaNova.DataList
|
||||
FieldKey = "LoanUnitShadowUnit",
|
||||
TKey = "LoanUnitShadowUnit",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
AyaObjectType = (int)AyaType.Unit,
|
||||
AType = (int)AyaType.Unit,
|
||||
SqlIdColumnName = "shadowunit.id",
|
||||
SqlValueColumnName = "shadowunit.serial"
|
||||
});
|
||||
|
||||
@@ -8,9 +8,9 @@ namespace AyaNova.DataList
|
||||
public MemoDataList()
|
||||
{
|
||||
|
||||
DefaultListObjectType = AyaType.Memo;
|
||||
DefaultListAType = AyaType.Memo;
|
||||
SQLFrom = "from amemo left join auser on (amemo.fromid=auser.id)";
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListObjectType);
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() { "MemoSubject", "MemoFromID", "MemoSent", "MemoViewed" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "MemoSent", "-" } };
|
||||
@@ -20,7 +20,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
TKey = "MemoSubject",
|
||||
FieldKey = "MemoSubject",
|
||||
AyaObjectType = (int)AyaType.Memo,
|
||||
AType = (int)AyaType.Memo,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "amemo.id",
|
||||
SqlValueColumnName = "amemo.name",
|
||||
@@ -39,7 +39,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
TKey = "MemoFromID",
|
||||
FieldKey = "MemoFromID",
|
||||
AyaObjectType = (int)AyaType.User,
|
||||
AType = (int)AyaType.User,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "auser.id",
|
||||
SqlValueColumnName = "auser.name",
|
||||
|
||||
@@ -8,9 +8,9 @@ namespace AyaNova.DataList
|
||||
|
||||
public OutsideUserDataList()
|
||||
{
|
||||
DefaultListObjectType = AyaType.Customer;
|
||||
DefaultListAType = AyaType.Customer;
|
||||
SQLFrom = "from auser left join aheadoffice on (auser.headofficeid=aheadoffice.id) left join acustomer on (auser.customerid=acustomer.id)";
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListObjectType);
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() { "name", "active", "usercustomer", "userheadoffice", "lastlogin" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "name", "+" } };
|
||||
@@ -20,7 +20,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
TKey = "User",
|
||||
FieldKey = "name",
|
||||
AyaObjectType = (int)AyaType.User,
|
||||
AType = (int)AyaType.User,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "auser.id",
|
||||
SqlValueColumnName = "auser.name",
|
||||
@@ -75,7 +75,7 @@ namespace AyaNova.DataList
|
||||
TKey = "HeadOffice",
|
||||
FieldKey = "userheadoffice",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
AyaObjectType = (int)AyaType.HeadOffice,
|
||||
AType = (int)AyaType.HeadOffice,
|
||||
SqlIdColumnName = "aheadoffice.id",
|
||||
SqlValueColumnName = "aheadoffice.name"
|
||||
});
|
||||
@@ -85,7 +85,7 @@ namespace AyaNova.DataList
|
||||
TKey = "Customer",
|
||||
FieldKey = "usercustomer",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
AyaObjectType = (int)AyaType.Customer,
|
||||
AType = (int)AyaType.Customer,
|
||||
SqlIdColumnName = "acustomer.id",
|
||||
SqlValueColumnName = "acustomer.name"
|
||||
});
|
||||
|
||||
@@ -6,9 +6,9 @@ namespace AyaNova.DataList
|
||||
{
|
||||
public PartAssemblyDataList()
|
||||
{
|
||||
DefaultListObjectType = AyaType.PartAssembly;
|
||||
DefaultListAType = AyaType.PartAssembly;
|
||||
SQLFrom = "from apartassembly";
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListObjectType);
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() { "partassemblyname" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "partassemblyname", "+" } };
|
||||
@@ -18,7 +18,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
TKey = "PartAssemblyName",
|
||||
FieldKey = "partassemblyname",
|
||||
AyaObjectType = (int)AyaType.PartAssembly,
|
||||
AType = (int)AyaType.PartAssembly,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "apartassembly.id",
|
||||
SqlValueColumnName = "apartassembly.name",
|
||||
|
||||
@@ -6,12 +6,12 @@ namespace AyaNova.DataList
|
||||
{
|
||||
public PartDataList()
|
||||
{
|
||||
DefaultListObjectType = AyaType.Part;
|
||||
DefaultListAType = AyaType.Part;
|
||||
SQLFrom = "from apart "
|
||||
+ "left join avendor as aman on (apart.manufacturerid=aman.id) "
|
||||
+ "left join avendor as awhole on (apart.wholesalerid=awhole.id) "
|
||||
+ "left join avendor as aaltwhole on (apart.alternativewholesalerid=aaltwhole.id)";
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListObjectType);
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() { "PartPartNumber", "PartName", "PartManufacturerID", "PartWholesalerID", "Tags" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "PartPartNumber", "+" } };
|
||||
@@ -21,7 +21,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
TKey = "PartPartNumber",
|
||||
FieldKey = "PartPartNumber",
|
||||
AyaObjectType = (int)AyaType.Part,
|
||||
AType = (int)AyaType.Part,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "apart.id",
|
||||
SqlValueColumnName = "apart.partnumber",
|
||||
@@ -81,7 +81,7 @@ namespace AyaNova.DataList
|
||||
FieldKey = "PartManufacturerID",
|
||||
TKey = "PartManufacturerID",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
AyaObjectType = (int)AyaType.Vendor,
|
||||
AType = (int)AyaType.Vendor,
|
||||
SqlIdColumnName = "aman.id",
|
||||
SqlValueColumnName = "aman.name"
|
||||
});
|
||||
@@ -91,7 +91,7 @@ namespace AyaNova.DataList
|
||||
FieldKey = "PartWholesalerID",
|
||||
TKey = "PartWholesalerID",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
AyaObjectType = (int)AyaType.Vendor,
|
||||
AType = (int)AyaType.Vendor,
|
||||
SqlIdColumnName = "awhole.id",
|
||||
SqlValueColumnName = "awhole.name"
|
||||
});
|
||||
@@ -101,7 +101,7 @@ namespace AyaNova.DataList
|
||||
FieldKey = "PartAlternativeWholesalerID",
|
||||
TKey = "PartAlternativeWholesalerID",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
AyaObjectType = (int)AyaType.Vendor,
|
||||
AType = (int)AyaType.Vendor,
|
||||
SqlIdColumnName = "aaltwhole.id",
|
||||
SqlValueColumnName = "aaltwhole.name"
|
||||
});
|
||||
|
||||
@@ -9,13 +9,13 @@ namespace AyaNova.DataList
|
||||
{
|
||||
public PartInventoryDataList()
|
||||
{
|
||||
DefaultListObjectType = AyaType.PartInventory;
|
||||
DefaultListAType = AyaType.PartInventory;
|
||||
|
||||
SQLFrom = "from vpartinventorylist "
|
||||
+ "LEFT JOIN apart ON (vpartinventorylist.partid = apart.id) "
|
||||
+ "LEFT JOIN apartwarehouse ON (vpartinventorylist.partwarehouseid = apartwarehouse.id) ";
|
||||
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListObjectType);
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() { "PartPartNumber", "PartWarehouseName", "PartInventoryBalance", "PartByWarehouseInventoryQuantityOnOrder", "PartByWarehouseInventoryQtyOnOrderCommitted" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "PartPartNumber", "+" }, { "PartWarehouseName", "+" } };
|
||||
@@ -25,7 +25,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
TKey = "PartPartNumber",
|
||||
FieldKey = "PartPartNumber",
|
||||
AyaObjectType = (int)AyaType.Part,
|
||||
AType = (int)AyaType.Part,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "apart.id",
|
||||
SqlValueColumnName = "apart.partnumber"
|
||||
@@ -35,7 +35,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
TKey = "PartName",
|
||||
FieldKey = "PartName",
|
||||
AyaObjectType = (int)AyaType.Part,
|
||||
AType = (int)AyaType.Part,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "apart.id",
|
||||
SqlValueColumnName = "apart.name"
|
||||
@@ -45,7 +45,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
TKey = "PartWarehouseName",
|
||||
FieldKey = "PartWarehouseName",
|
||||
AyaObjectType = (int)AyaType.PartWarehouse,
|
||||
AType = (int)AyaType.PartWarehouse,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "apartwarehouse.id",
|
||||
SqlValueColumnName = "apartwarehouse.name"
|
||||
@@ -55,7 +55,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
TKey = "PartInventoryTransactionDescription",
|
||||
FieldKey = "PartInventoryTransactionDescription",
|
||||
AyaObjectType = (int)AyaType.PartInventory,
|
||||
AType = (int)AyaType.PartInventory,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "vpartinventorylist.id",
|
||||
SqlValueColumnName = "vpartinventorylist.description",
|
||||
|
||||
@@ -9,11 +9,11 @@ namespace AyaNova.DataList
|
||||
{
|
||||
public PartInventoryTransactionsDataList()
|
||||
{
|
||||
DefaultListObjectType = AyaType.PartInventory;
|
||||
DefaultListAType = AyaType.PartInventory;
|
||||
SQLFrom = "from apartinventory "
|
||||
+ "left join apart on (apartinventory.partid=apart.id) "
|
||||
+ "left join apartwarehouse on (apartinventory.partwarehouseid=apartwarehouse.id) ";
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListObjectType);
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() {
|
||||
"PartInventoryTransactionEntryDate", "PartPartNumber", "PartWarehouseName", "PartInventoryTransactionQuantity",
|
||||
@@ -29,14 +29,14 @@ namespace AyaNova.DataList
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "apartinventory.sourceid",
|
||||
SqlValueColumnName = "AYGETNAME(apartinventory.sourceid, apartinventory.sourcetype)",
|
||||
SqlAyTypeColumnName = "apartinventory.sourcetype"
|
||||
SqlATypeColumnName = "apartinventory.sourcetype"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "PartPartNumber",
|
||||
FieldKey = "PartPartNumber",
|
||||
AyaObjectType = (int)AyaType.Part,
|
||||
AType = (int)AyaType.Part,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "apart.id",
|
||||
SqlValueColumnName = "apart.partnumber"
|
||||
@@ -46,7 +46,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
TKey = "PartWarehouseName",
|
||||
FieldKey = "PartWarehouseName",
|
||||
AyaObjectType = (int)AyaType.PartWarehouse,
|
||||
AType = (int)AyaType.PartWarehouse,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "apartwarehouse.id",
|
||||
SqlValueColumnName = "apartwarehouse.name"
|
||||
@@ -56,7 +56,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
TKey = "PartInventoryTransactionDescription",
|
||||
FieldKey = "PartInventoryTransactionDescription",
|
||||
AyaObjectType = (int)AyaType.PartInventory,
|
||||
AType = (int)AyaType.PartInventory,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "apartinventory.id",
|
||||
SqlValueColumnName = "apartinventory.description",
|
||||
|
||||
@@ -14,9 +14,9 @@ namespace AyaNova.DataList
|
||||
// + "apartstocklevel.minimumquantity, vpartinventorynow.balance, COALESCE(vpartsonorder.quantityonorder,0) AS onorderquantity, "
|
||||
// + "apartstocklevel.minimumquantity - (COALESCE(vpartinventorynow.balance, 0) + COALESCE(vpartsonorder.quantityonorder, 0)) AS requiredquantity "
|
||||
|
||||
DefaultListObjectType = AyaType.PartInventoryRestock;
|
||||
DefaultListAType = AyaType.PartInventoryRestock;
|
||||
SQLFrom = "FROM vrestockrequired";
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListObjectType);
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() {
|
||||
"PartPartNumber", "PartWarehouseName", "PartWholesalerID","PartAlternativeWholesalerID","PartManufacturerID", "PartByWarehouseInventoryMinStockLevel",
|
||||
@@ -30,7 +30,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
TKey = "PartPartNumber",
|
||||
FieldKey = "PartPartNumber",
|
||||
AyaObjectType = (int)AyaType.Part,
|
||||
AType = (int)AyaType.Part,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "partid",
|
||||
SqlValueColumnName = "partnumber"
|
||||
@@ -40,7 +40,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
TKey = "PartWarehouseName",
|
||||
FieldKey = "PartWarehouseName",
|
||||
AyaObjectType = (int)AyaType.PartWarehouse,
|
||||
AType = (int)AyaType.PartWarehouse,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "partwarehouseid",
|
||||
SqlValueColumnName = "displaywarehouse"
|
||||
@@ -51,7 +51,7 @@ namespace AyaNova.DataList
|
||||
FieldKey = "PartManufacturerID",
|
||||
TKey = "PartManufacturerID",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
AyaObjectType = (int)AyaType.Vendor,
|
||||
AType = (int)AyaType.Vendor,
|
||||
SqlIdColumnName = "manufactureid",
|
||||
SqlValueColumnName = "displaymanufacturer"
|
||||
});
|
||||
@@ -61,7 +61,7 @@ namespace AyaNova.DataList
|
||||
FieldKey = "PartWholesalerID",
|
||||
TKey = "PartWholesalerID",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
AyaObjectType = (int)AyaType.Vendor,
|
||||
AType = (int)AyaType.Vendor,
|
||||
SqlIdColumnName = "wholesalerid",
|
||||
SqlValueColumnName = "displaywholesaler"
|
||||
});
|
||||
@@ -71,7 +71,7 @@ namespace AyaNova.DataList
|
||||
FieldKey = "PartAlternativeWholesalerID",
|
||||
TKey = "PartAlternativeWholesalerID",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
AyaObjectType = (int)AyaType.Vendor,
|
||||
AType = (int)AyaType.Vendor,
|
||||
SqlIdColumnName = "alternativewholesalerid",
|
||||
SqlValueColumnName = "displayalternativewholesaler"
|
||||
});
|
||||
|
||||
@@ -6,9 +6,9 @@ namespace AyaNova.DataList
|
||||
{
|
||||
public PartWarehouseDataList()
|
||||
{
|
||||
DefaultListObjectType = AyaType.PartWarehouse;
|
||||
DefaultListAType = AyaType.PartWarehouse;
|
||||
SQLFrom = "from apartwarehouse";
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListObjectType);
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() { "PartWarehouseName", "Active", "Tags" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "PartWarehouseName", "+" } };
|
||||
@@ -18,7 +18,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
TKey = "PartWarehouseName",
|
||||
FieldKey = "PartWarehouseName",
|
||||
AyaObjectType = (int)AyaType.PartWarehouse,
|
||||
AType = (int)AyaType.PartWarehouse,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "apartwarehouse.id",
|
||||
SqlValueColumnName = "apartwarehouse.name",
|
||||
|
||||
@@ -6,9 +6,9 @@ namespace AyaNova.DataList
|
||||
{
|
||||
public ProjectDataList()
|
||||
{
|
||||
DefaultListObjectType = AyaType.Project;
|
||||
DefaultListAType = AyaType.Project;
|
||||
SQLFrom = "from aproject left join auser on (aproject.projectoverseerid=auser.id)";
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListObjectType);
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() { "projectname", "ProjectProjectOverseerID", "ProjectDateStarted", "ProjectDateCompleted",
|
||||
"ProjectAccountNumber", "projectactive", "projecttags" };
|
||||
@@ -19,7 +19,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
TKey = "ProjectName",
|
||||
FieldKey = "projectname",
|
||||
AyaObjectType = (int)AyaType.Project,
|
||||
AType = (int)AyaType.Project,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "aproject.id",
|
||||
SqlValueColumnName = "aproject.name",
|
||||
@@ -63,7 +63,7 @@ namespace AyaNova.DataList
|
||||
FieldKey = "ProjectProjectOverseerID",
|
||||
TKey = "ProjectProjectOverseerID",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
AyaObjectType = (int)AyaType.User,
|
||||
AType = (int)AyaType.User,
|
||||
SqlIdColumnName = "auser.id",
|
||||
SqlValueColumnName = "auser.name"
|
||||
});
|
||||
|
||||
@@ -6,13 +6,13 @@ namespace AyaNova.DataList
|
||||
{
|
||||
public PurchaseOrderDataList()
|
||||
{
|
||||
DefaultListObjectType = AyaType.PurchaseOrder;
|
||||
DefaultListAType = AyaType.PurchaseOrder;
|
||||
SQLFrom = "from apurchaseorder " +
|
||||
"left join avendor on (apurchaseorder.vendorid=avendor.id)" +
|
||||
"left join acustomer on (apurchaseorder.dropshiptocustomerid=acustomer.id)" +
|
||||
"left join aproject on (apurchaseorder.projectid=aproject.id)";
|
||||
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListObjectType);
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() { "PurchaseOrderPONumber", "Vendor", "PurchaseOrderOrderedDate", "PurchaseOrderStatus",
|
||||
"PurchaseOrderExpectedReceiveDate" };
|
||||
@@ -23,7 +23,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
TKey = "PurchaseOrderPONumber",
|
||||
FieldKey = "PurchaseOrderPONumber",
|
||||
AyaObjectType = (int)AyaType.PurchaseOrder,
|
||||
AType = (int)AyaType.PurchaseOrder,
|
||||
UiFieldDataType = (int)UiFieldDataType.Integer,
|
||||
SqlIdColumnName = "apurchaseorder.id",
|
||||
SqlValueColumnName = "apurchaseorder.serial",
|
||||
@@ -59,7 +59,7 @@ namespace AyaNova.DataList
|
||||
FieldKey = "PurchaseOrderDropShipToCustomerID",
|
||||
TKey = "PurchaseOrderDropShipToCustomerID",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
AyaObjectType = (int)AyaType.User,
|
||||
AType = (int)AyaType.User,
|
||||
SqlIdColumnName = "acustomer.id",
|
||||
SqlValueColumnName = "acustomer.name"
|
||||
});
|
||||
@@ -77,7 +77,7 @@ namespace AyaNova.DataList
|
||||
FieldKey = "Vendor",
|
||||
TKey = "Vendor",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
AyaObjectType = (int)AyaType.User,
|
||||
AType = (int)AyaType.User,
|
||||
SqlIdColumnName = "avendor.id",
|
||||
SqlValueColumnName = "avendor.name"
|
||||
});
|
||||
@@ -112,7 +112,7 @@ namespace AyaNova.DataList
|
||||
FieldKey = "Project",
|
||||
TKey = "Project",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
AyaObjectType = (int)AyaType.User,
|
||||
AType = (int)AyaType.User,
|
||||
SqlIdColumnName = "aproject.id",
|
||||
SqlValueColumnName = "aproject.name"
|
||||
});
|
||||
|
||||
@@ -7,9 +7,9 @@ namespace AyaNova.DataList
|
||||
{
|
||||
public ReminderDataList()
|
||||
{
|
||||
DefaultListObjectType = AyaType.Reminder;
|
||||
DefaultListAType = AyaType.Reminder;
|
||||
SQLFrom = "from areminder";
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListObjectType);
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() { "ReminderName", "ReminderNotes", "ReminderStopDate", "ReminderStartDate" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "ReminderStopDate", "-" } };
|
||||
@@ -19,7 +19,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
TKey = "ReminderName",
|
||||
FieldKey = "ReminderName",
|
||||
AyaObjectType = (int)AyaType.Reminder,
|
||||
AType = (int)AyaType.Reminder,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "areminder.id",
|
||||
SqlValueColumnName = "areminder.name",
|
||||
|
||||
@@ -6,11 +6,11 @@ namespace AyaNova.DataList
|
||||
{
|
||||
public ReportDataList()
|
||||
{
|
||||
DefaultListObjectType = AyaType.Report;
|
||||
DefaultListAType = AyaType.Report;
|
||||
SQLFrom = "from aReport";
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListObjectType);
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() { "name", "objecttype", "active" };
|
||||
DefaultColumns = new List<string>() { "name", "aType", "active" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "name", "+" } };
|
||||
FieldDefinitions = new List<DataListFieldDefinition>();
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
TKey = "Report",
|
||||
FieldKey = "name",
|
||||
AyaObjectType = (int)AyaType.Report,
|
||||
AType = (int)AyaType.Report,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "aReport.id",
|
||||
SqlValueColumnName = "aReport.name",
|
||||
@@ -28,10 +28,10 @@ namespace AyaNova.DataList
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "AyaType",
|
||||
FieldKey = "objecttype",
|
||||
FieldKey = "aType",
|
||||
UiFieldDataType = (int)UiFieldDataType.Enum,
|
||||
EnumType = AyaNova.Util.StringUtil.TrimTypeName(typeof(AyaType).ToString()),
|
||||
SqlValueColumnName = "areport.ObjectType"
|
||||
SqlValueColumnName = "areport.AType"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
|
||||
@@ -9,11 +9,11 @@ namespace AyaNova.DataList
|
||||
public ReviewDataList()
|
||||
{
|
||||
|
||||
DefaultListObjectType = AyaType.Review;
|
||||
DefaultListAType = AyaType.Review;
|
||||
SQLFrom = "from areview "
|
||||
+ "left join auser uassto on (areview.userid=uassto.id) "
|
||||
+ "left join auser uassby on (areview.assignedbyuserid=uassby.id)";
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListObjectType);
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() { "ReviewCompletedDate", "ReviewDueDate", "ReviewName", "Object", "AyaType", "ReviewNotes", "ReviewUserId" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "ReviewCompletedDate", "-" }, { "ReviewDueDate", "+" } };
|
||||
@@ -25,8 +25,8 @@ namespace AyaNova.DataList
|
||||
FieldKey = "Object",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "areview.objectid",
|
||||
SqlValueColumnName = "AYGETNAME(areview.objectid, areview.objecttype)",
|
||||
SqlAyTypeColumnName = "areview.objecttype"
|
||||
SqlValueColumnName = "AYGETNAME(areview.objectid, areview.aType)",
|
||||
SqlATypeColumnName = "areview.aType"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
@@ -35,14 +35,14 @@ namespace AyaNova.DataList
|
||||
FieldKey = "AyaType",
|
||||
UiFieldDataType = (int)UiFieldDataType.Enum,
|
||||
EnumType = AyaNova.Util.StringUtil.TrimTypeName(typeof(AyaType).ToString()),
|
||||
SqlValueColumnName = "areview.objecttype"
|
||||
SqlValueColumnName = "areview.aType"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "ReviewName",
|
||||
FieldKey = "ReviewName",
|
||||
AyaObjectType = (int)AyaType.Review,
|
||||
AType = (int)AyaType.Review,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "areview.id",
|
||||
SqlValueColumnName = "areview.name",
|
||||
@@ -85,7 +85,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
TKey = "ReviewUserId",
|
||||
FieldKey = "ReviewUserId",
|
||||
AyaObjectType = (int)AyaType.User,
|
||||
AType = (int)AyaType.User,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "uassto.id",
|
||||
SqlValueColumnName = "uassto.name"
|
||||
@@ -95,7 +95,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
TKey = "ReviewAssignedByUserId",
|
||||
FieldKey = "ReviewAssignedByUserId",
|
||||
AyaObjectType = (int)AyaType.User,
|
||||
AType = (int)AyaType.User,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "uassby.id",
|
||||
SqlValueColumnName = "uassby.name"
|
||||
@@ -155,7 +155,7 @@ namespace AyaNova.DataList
|
||||
FieldKey = "metaobjecttype",
|
||||
UiFieldDataType = (int)UiFieldDataType.Enum,
|
||||
EnumType = AyaNova.Util.StringUtil.TrimTypeName(typeof(AyaType).ToString()),
|
||||
SqlValueColumnName = "areview.objecttype",
|
||||
SqlValueColumnName = "areview.aType",
|
||||
IsMeta = true
|
||||
});
|
||||
}
|
||||
|
||||
@@ -9,9 +9,9 @@ namespace AyaNova.DataList
|
||||
public ServiceBankDataList()
|
||||
{
|
||||
|
||||
DefaultListObjectType = AyaType.ServiceBank;
|
||||
DefaultListAType = AyaType.ServiceBank;
|
||||
SQLFrom = "from aservicebank";
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListObjectType);
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() {
|
||||
"ServiceBankCreated", "Object", "ServiceBankCurrency", "ServiceBankCurrencyBalance", "ServiceBankIncidents",
|
||||
@@ -22,12 +22,12 @@ namespace AyaNova.DataList
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "ServiceBankSourceRootObjectType",
|
||||
FieldKey = "ServiceBankSourceRootObjectType",
|
||||
TKey = "ServiceBankSourceRootAType",
|
||||
FieldKey = "ServiceBankSourceRootAType",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "aservicebank.sourceid",
|
||||
SqlValueColumnName = "AYGETNAME(aservicebank.sourceid, aservicebank.sourcetype)",
|
||||
SqlAyTypeColumnName = "aservicebank.sourcetype"
|
||||
SqlATypeColumnName = "aservicebank.sourcetype"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
@@ -36,8 +36,8 @@ namespace AyaNova.DataList
|
||||
FieldKey = "Object",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "aservicebank.objectid",
|
||||
SqlValueColumnName = "AYGETNAME(aservicebank.objectid, aservicebank.objecttype)",
|
||||
SqlAyTypeColumnName = "aservicebank.objecttype"
|
||||
SqlValueColumnName = "AYGETNAME(aservicebank.objectid, aservicebank.aType)",
|
||||
SqlATypeColumnName = "aservicebank.aType"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
@@ -46,14 +46,14 @@ namespace AyaNova.DataList
|
||||
FieldKey = "AyaType",
|
||||
UiFieldDataType = (int)UiFieldDataType.Enum,
|
||||
EnumType = AyaNova.Util.StringUtil.TrimTypeName(typeof(AyaType).ToString()),
|
||||
SqlValueColumnName = "aservicebank.objecttype"
|
||||
SqlValueColumnName = "aservicebank.aType"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
{
|
||||
TKey = "ServiceBankDescription",
|
||||
FieldKey = "ServiceBankDescription",
|
||||
AyaObjectType = (int)AyaType.ServiceBank,
|
||||
AType = (int)AyaType.ServiceBank,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "aservicebank.id",
|
||||
SqlValueColumnName = "aservicebank.name",
|
||||
@@ -132,7 +132,7 @@ namespace AyaNova.DataList
|
||||
FieldKey = "metaobjecttype",
|
||||
UiFieldDataType = (int)UiFieldDataType.Enum,
|
||||
EnumType = AyaNova.Util.StringUtil.TrimTypeName(typeof(AyaType).ToString()),
|
||||
SqlValueColumnName = "aservicebank.objecttype",
|
||||
SqlValueColumnName = "aservicebank.aType",
|
||||
IsMeta = true
|
||||
});
|
||||
}
|
||||
|
||||
@@ -6,9 +6,9 @@ namespace AyaNova.DataList
|
||||
{
|
||||
public ServiceRateDataList()
|
||||
{
|
||||
DefaultListObjectType = AyaType.ServiceRate;
|
||||
DefaultListAType = AyaType.ServiceRate;
|
||||
SQLFrom = "from aservicerate";
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListObjectType);
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() { "Name", "Cost", "RateCharge", "RateUnitChargeDescriptionID", "Active" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "Name", "+" } };
|
||||
@@ -18,7 +18,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
TKey = "Name",
|
||||
FieldKey = "Name",
|
||||
AyaObjectType = (int)AyaType.ServiceRate,
|
||||
AType = (int)AyaType.ServiceRate,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "aservicerate.id",
|
||||
SqlValueColumnName = "aservicerate.name",
|
||||
|
||||
@@ -6,9 +6,9 @@ namespace AyaNova.DataList
|
||||
{
|
||||
public TaxCodeDataList()
|
||||
{
|
||||
DefaultListObjectType = AyaType.TaxCode;
|
||||
DefaultListAType = AyaType.TaxCode;
|
||||
SQLFrom = "from ataxcode";
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListObjectType);
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() { "Name", "TaxCodeTaxA", "TaxCodeTaxB", "TaxCodeTaxOnTax", "Active" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "Name", "+" } };
|
||||
@@ -18,7 +18,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
TKey = "Name",
|
||||
FieldKey = "Name",
|
||||
AyaObjectType = (int)AyaType.TaxCode,
|
||||
AType = (int)AyaType.TaxCode,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "ataxcode.id",
|
||||
SqlValueColumnName = "ataxcode.name",
|
||||
|
||||
@@ -6,9 +6,9 @@ namespace AyaNova.DataList
|
||||
{
|
||||
public TestWidgetDataList()
|
||||
{
|
||||
DefaultListObjectType = AyaType.Widget;
|
||||
DefaultListAType = AyaType.Widget;
|
||||
SQLFrom = "from awidget left join auser on (awidget.userid=auser.id)";
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListObjectType);
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() { "widgetname", "widgetserial", "widgetdollaramount", "widgetusertype", "widgetstartdate", "widgetactive", "username" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "widgetname", "+" } };
|
||||
@@ -18,7 +18,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
TKey = "WidgetName",
|
||||
FieldKey = "widgetname",
|
||||
AyaObjectType = (int)AyaType.Widget,
|
||||
AType = (int)AyaType.Widget,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "awidget.id",
|
||||
SqlValueColumnName = "awidget.name",
|
||||
@@ -87,7 +87,7 @@ namespace AyaNova.DataList
|
||||
FieldKey = "username",
|
||||
TKey = "User",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
AyaObjectType = (int)AyaType.User,
|
||||
AType = (int)AyaType.User,
|
||||
SqlIdColumnName = "auser.id",
|
||||
SqlValueColumnName = "auser.name"
|
||||
});
|
||||
|
||||
@@ -6,9 +6,9 @@ namespace AyaNova.DataList
|
||||
{
|
||||
public TranslationDataList()
|
||||
{
|
||||
DefaultListObjectType = AyaType.Translation;
|
||||
DefaultListAType = AyaType.Translation;
|
||||
SQLFrom = "from atranslation";
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListObjectType);
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() { "name", "stock", "cjkindex" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "name", "+" } };
|
||||
@@ -18,7 +18,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
TKey = "Translation",
|
||||
FieldKey = "name",
|
||||
AyaObjectType = (int)AyaType.Translation,
|
||||
AType = (int)AyaType.Translation,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "atranslation.id",
|
||||
SqlValueColumnName = "atranslation.name",
|
||||
|
||||
@@ -6,9 +6,9 @@ namespace AyaNova.DataList
|
||||
{
|
||||
public TravelRateDataList()
|
||||
{
|
||||
DefaultListObjectType = AyaType.TravelRate;
|
||||
DefaultListAType = AyaType.TravelRate;
|
||||
SQLFrom = "from atravelrate";
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListObjectType);
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() { "Name", "Cost", "RateCharge", "RateUnitChargeDescriptionID", "Active" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "Name", "+" } };
|
||||
@@ -18,7 +18,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
TKey = "Name",
|
||||
FieldKey = "Name",
|
||||
AyaObjectType = (int)AyaType.TravelRate,
|
||||
AType = (int)AyaType.TravelRate,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "atravelrate.id",
|
||||
SqlValueColumnName = "atravelrate.name",
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
public UnitDataList()
|
||||
{
|
||||
DefaultListObjectType = AyaType.Unit;
|
||||
DefaultListAType = AyaType.Unit;
|
||||
SQLFrom = "from aunit as amainunit "
|
||||
+ "left join acustomer on (amainunit.customerid=acustomer.id) "
|
||||
+ "left join aunit as aparentunit on (amainunit.parentunitid=aparentunit.id) "
|
||||
@@ -15,7 +15,7 @@ namespace AyaNova.DataList
|
||||
+ "left join aunit as areplacedbyunit on (amainunit.replacedbyunitid=areplacedbyunit.id) "
|
||||
+ "left join acontract on (amainunit.contractid=acontract.id)";
|
||||
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListObjectType);
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() { "UnitSerial", "UnitModel", "Customer", "Active" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "UnitSerial", "+" } };
|
||||
@@ -25,7 +25,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
TKey = "UnitSerial",
|
||||
FieldKey = "UnitSerial",
|
||||
AyaObjectType = (int)AyaType.Unit,
|
||||
AType = (int)AyaType.Unit,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "amainunit.id",
|
||||
SqlValueColumnName = "amainunit.serial",
|
||||
@@ -61,7 +61,7 @@ namespace AyaNova.DataList
|
||||
FieldKey = "Customer",
|
||||
TKey = "Customer",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
AyaObjectType = (int)AyaType.Customer,
|
||||
AType = (int)AyaType.Customer,
|
||||
SqlIdColumnName = "acustomer.id",
|
||||
SqlValueColumnName = "acustomer.name"
|
||||
});
|
||||
@@ -71,7 +71,7 @@ namespace AyaNova.DataList
|
||||
FieldKey = "UnitParentUnitID",
|
||||
TKey = "UnitParentUnitID",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
AyaObjectType = (int)AyaType.Unit,
|
||||
AType = (int)AyaType.Unit,
|
||||
SqlIdColumnName = "aparentunit.id",
|
||||
SqlValueColumnName = "aparentunit.serial"
|
||||
});
|
||||
@@ -81,7 +81,7 @@ namespace AyaNova.DataList
|
||||
FieldKey = "UnitReplacedByUnitID",
|
||||
TKey = "UnitReplacedByUnitID",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
AyaObjectType = (int)AyaType.Unit,
|
||||
AType = (int)AyaType.Unit,
|
||||
SqlIdColumnName = "areplacedbyunit.id",
|
||||
SqlValueColumnName = "areplacedbyunit.serial"
|
||||
});
|
||||
@@ -91,7 +91,7 @@ namespace AyaNova.DataList
|
||||
FieldKey = "UnitModel",
|
||||
TKey = "UnitModel",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
AyaObjectType = (int)AyaType.UnitModel,
|
||||
AType = (int)AyaType.UnitModel,
|
||||
SqlIdColumnName = "aunitmodel.id",
|
||||
SqlValueColumnName = "aunitmodel.number"
|
||||
});
|
||||
@@ -117,7 +117,7 @@ namespace AyaNova.DataList
|
||||
FieldKey = "UnitPurchaseFromID",
|
||||
TKey = "UnitPurchaseFromID",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
AyaObjectType = (int)AyaType.Vendor,
|
||||
AType = (int)AyaType.Vendor,
|
||||
SqlIdColumnName = "avendor.id",
|
||||
SqlValueColumnName = "avendor.name"
|
||||
});
|
||||
@@ -183,7 +183,7 @@ namespace AyaNova.DataList
|
||||
TKey = "Contract",
|
||||
FieldKey = "unitcontract",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
AyaObjectType = (int)AyaType.Contract,
|
||||
AType = (int)AyaType.Contract,
|
||||
SqlIdColumnName = "acontract.id",
|
||||
SqlValueColumnName = "acontract.name"
|
||||
});
|
||||
|
||||
@@ -6,9 +6,9 @@ namespace AyaNova.DataList
|
||||
{
|
||||
public UnitModelDataList()
|
||||
{
|
||||
DefaultListObjectType = AyaType.UnitModel;
|
||||
DefaultListAType = AyaType.UnitModel;
|
||||
SQLFrom = "from aunitmodel left join avendor on (aunitmodel.vendorid=avendor.id)";
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListObjectType);
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() { "UnitModelModelNumber", "Name", "UnitModelVendorID", "Active" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "UnitModelModelNumber", "+" } };
|
||||
@@ -18,7 +18,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
TKey = "UnitModelModelNumber",
|
||||
FieldKey = "UnitModelModelNumber",
|
||||
AyaObjectType = (int)AyaType.UnitModel,
|
||||
AType = (int)AyaType.UnitModel,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "aunitmodel.id",
|
||||
SqlValueColumnName = "aunitmodel.number",
|
||||
@@ -54,7 +54,7 @@ namespace AyaNova.DataList
|
||||
FieldKey = "UnitModelVendorID",
|
||||
TKey = "UnitModelVendorID",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
AyaObjectType = (int)AyaType.Vendor,
|
||||
AType = (int)AyaType.Vendor,
|
||||
SqlIdColumnName = "avendor.id",
|
||||
SqlValueColumnName = "avendor.name"
|
||||
});
|
||||
|
||||
@@ -6,9 +6,9 @@ namespace AyaNova.DataList
|
||||
{
|
||||
public VendorDataList()
|
||||
{
|
||||
DefaultListObjectType = AyaType.Vendor;
|
||||
DefaultListAType = AyaType.Vendor;
|
||||
SQLFrom = "from avendor";
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListObjectType);
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() { "vendorname", "vendorphone1", "vendoremail", "vendortags" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "vendorname", "+" } };
|
||||
@@ -18,7 +18,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
TKey = "VendorName",
|
||||
FieldKey = "vendorname",
|
||||
AyaObjectType = (int)AyaType.Vendor,
|
||||
AType = (int)AyaType.Vendor,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "avendor.id",
|
||||
SqlValueColumnName = "avendor.name",
|
||||
|
||||
Reference in New Issue
Block a user