2017-12-23 51 views
0

판매 주문 입력 화면의 CustRefNbr 필드를 SOOrderEntry 코드에서 재정 의하여 문자열 목록으로 사용자 정의하려고합니다. 그러나, 나는 점점 오전 오류 : 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"; 

}

:이 부분을 추가하는 것을 잊었다