首页 文章

如何将Acumatica字符串字段自定义为stringlist?

提问于
浏览
0

我试图通过覆盖SOOrderEntry代码将销售订单输入屏幕上的CustRefNbr字段自定义为字符串列表 . 但是,我收到错误:

\ App_RuntimeCode \ SOOrderEntry.cs(55):错误CS0103:当前上下文中不存在名称“CustomerRefNbr”

#region CustomerRefNbr
[PXDBString(40, IsUnicode = true)]
[PXUIField(DisplayName = "External Reference")]
[PXStringList(
    new string[]
{
CustomerRefNbr.Email,
CustomerRefNbr.Phone,
CustomerRefNbr.Web,
CustomerRefNbr.Notification
},
new string[]
{
"Email",
"Phone",
"Web",
"Notification"
})]
protected virtual void SOOrder_CustomerRefNbr_CacheAttached(PXCache cache)
{

}
#endregion

1 回答

  • 0

    没关系 . 忘了添加这个部分:

    public static class CustomerRefNbr {

    public const string Email = "EMAIL";
    public const string Phone = "PHONE";
    public const string Web = "WEB";
    public const string Notification = "NOTIFICATION";
    

    }

相关问题