This commit is contained in:
2021-11-10 01:22:48 +00:00
parent 92f06ec12f
commit 0acdb752c0
9 changed files with 15 additions and 15 deletions

View File

@@ -4,7 +4,7 @@ namespace AyaNova.DataList
{
internal class AttachmentDataList : DataListProcessingBase
{
public AttachmentDataList()
public AttachmentDataList(long translationId)
{
DefaultListAType = AyaType.FileAttachment;
SQLFrom = "from afileattachment";
@@ -41,7 +41,7 @@ namespace AyaNova.DataList
FieldKey = "object",
UiFieldDataType = (int)UiFieldDataType.Text,
SqlIdColumnName = "afileattachment.AttachToObjectid",
SqlValueColumnName = $"AYGETNAME(afileattachment.AttachToObjectid, afileattachment.attachtoatype,{CurrentUserTranslationId})",
SqlValueColumnName = $"AYGETNAME(afileattachment.AttachToObjectid, afileattachment.attachtoatype,{translationId})",
SqlATypeColumnName = "afileattachment.attachtoatype",
Translate=true
});