2017-12-23 13 views
0

SOOrderEntryコードで上書きすることにより、受注画面のCustRefNbrフィールドを文字列リストにカスタマイズしようとしています。しかし、私は取得していますエラー:App_RuntimeCode \ SOOrderEntry.cs \Acumaticaの文字列フィールドをstringlistにカスタマイズする方法は?

(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

は気にしないで、現在のコンテキストに存在しません。この部分を追加するのを忘れ:

パブリック静的クラスCustomerRefNbr {

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

}

関連する問題