我正在尝试通过覆盖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
答案 0 :(得分:0)
没关系。忘了添加这个部分:
公共静态类CustomerRefNbr {
public const string Email = "EMAIL";
public const string Phone = "PHONE";
public const string Web = "WEB";
public const string Notification = "NOTIFICATION";
}