0

我正在尝试扩展HcmWorkerImportService; 具体来说,我正在尝试将modifiedByandmodifiedDateTime字段添加到HcmPositionHierarchy表/类中。

但是,当我在 C#/WPF 应用程序中更新服务时,它没有出现。到目前为止,谷歌只发现了不适用于此类服务的链接(由类支持)。

已修改为包含这些字段的其他类具有以下方法(我复制到HcmWorkerImport_HcmPositionHierarchy但没有成功):

#define.ModifiedDateTime('ModifiedDateTime')
#define.ModifiedBy('ModifiedBy')

public boolean existsModifiedBy()
{
    return this.exists(#ModifiedBy);
}

public boolean existsModifiedDateTime()
{
    return this.exists(#ModifiedDateTime);
}

public ModifiedBy parmModifiedBy(ModifiedBy _value = '')
{
    if (!prmisdefault(_value))
    {
        this.set_Attribute(#ModifiedBy, _value);
    }

    return this.get_Attribute(#ModifiedBy);
}

public ModifiedDateTime parmModifiedDateTime(ModifiedDateTime _value = utcDateTimeNull())
{
    if (!prmisdefault(_value))
    {
        this.set_Attribute(#ModifiedDateTime, _value);
    }

    return this.get_Attribute(#ModifiedDateTime);
}

该服务似乎确实有一个查询,一些搜索结果表明我也需要在其中包含这些字段。然而,它们之前已经包含在内。

4

1 回答 1

1

您需要为 AxBC 类 AxHcmPositionHierarchy 中的 ModifiedDateTime 和 ModifiedBy 字段手动创建 parm 方法。请检查以下链接,例如: http ://axgrind.azurewebsites.net/2015/12/Adding-system-fields-to-AIF-Services/

于 2018-09-25T12:04:23.220 回答