Пожалуйста, используйте приведенный ниже код настройки, пока мы не исправим проблемы с техническим постом во вторник.
using System;
using System.Collections;
using PX.Data;
using PX.Objects.PO;
namespace PXDemoPkg
{
public class POOrderEntry_Extension : PXGraphExtension<POOrderEntry>
{
public PXAction<POOrder> inquiry;
[PXUIField(DisplayName = "Inquiries", MapEnableRights = PXCacheRights.Select)]
[PXButton]
protected virtual IEnumerable Inquiry(PXAdapter adapter,
[PXInt] [PXIntList(new int[] { 1, 2, 3 },
new string[] { "Vendor Details", "Activities", "PO Prepayments" })] int? inquiryID)
{
if (inquiryID == 3)
{
POOrder order = Base.Document.Current;
string giURL = PXGenericInqGrph.INQUIRY_URL;
string gIName = "POprepayments";
string sParameter1Name = "POnumber";
string sParameter1Value = order.OrderNbr;
string url = String.Format("{0}?Name={1}&{2}={3}", giURL, gIName, sParameter1Name, sParameter1Value);
throw new PXRedirectToUrlException(url, PXBaseRedirectException.WindowMode.New, true, "POprepayments-GI");
}
else
return Base.inquiry.Press(adapter);
}
}
}