Я пытаюсь добавить поля OrderNbr и OrderType экрана заказа на покупку на вновь созданный экран.
Я получаю сообщение об ошибке просмотра на экране для селектора OrderType. Прикреплен график и ЦАП, связанный с экраном
public PXSave<PONextAction> Save;
public PXCancel<PONextAction> Cancel;
public PXFilter<PONextAction> MasterView;
[PXProjection(typeof(Select<POOrder>), Persistent = true)]
[Serializable]
public partial class PONextAction : IBqlTable
{
#region OrderType
public abstract class orderType : PX.Data.IBqlField
{
}
protected String _OrderType;
[PXDBString(2, IsKey = true, IsFixed = true, BqlField = typeof(POOrder.orderType))]
[PXDefault()]
[PXUIField(DisplayName = "PO Type", Enabled = true)]
[PX.Objects.PO.POOrderType.List()]
public virtual String OrderType
{
get
{
return this._OrderType;
}
set
{
this._OrderType = value;
}
}
#endregion
#region OrderNbr
public abstract class orderNbr : PX.Data.IBqlField
{
}
protected String _OrderNbr;
[PXDBString(15, IsUnicode = true, IsKey = true, InputMask = "", BqlField = typeof(POOrder.orderNbr))]
[PXDefault()]
[PXUIField(DisplayName = "PO Nbr.", Enabled = true)]
[PXSelector(typeof(Search<POOrder.orderNbr, Where<POOrder.orderType, Equal<Current<POLinePM.orderType>>>>), DescriptionField = typeof(POOrder.orderDesc))]
public virtual String OrderNbr
{
get
{
return this._OrderNbr;
}
set
{
this._OrderNbr = value;
}
}
#endregion
}