Acumatica 找针灸师';s的代码版本

Acumatica 找针灸师';s的代码版本,acumatica,Acumatica,我试图将客户ID作为报告AR641500的参数传递,但对于Acumatica版本2018R1(“StatementCustomerId”)和报告设计器上的2017R2(“CustomerID”),此参数字段名称不同。 ` reportID=myDet.ActivityReport; parms=新字典(); parms[“StatementCustomerId”]=bAccountRow.accctcd.Trim(); newFileName=String.Format(“{0}{1}.PDF”

我试图将客户ID作为报告AR641500的参数传递,但对于Acumatica版本2018R1(“StatementCustomerId”)和报告设计器上的2017R2(“CustomerID”),此参数字段名称不同。 `

reportID=myDet.ActivityReport;
parms=新字典();
parms[“StatementCustomerId”]=bAccountRow.accctcd.Trim();
newFileName=String.Format(“{0}{1}.PDF”,reportID,bAccountRow.accctcd);
数据=CWReportGenerator.GetAcureReportBytes(reportID,parms)`


我希望能够在代码上处理这两种情况,是否有必要知道Acumatica在运行时的当前版本?我查看了AccessInfo DAC,但它没有这些信息

您可以依赖于
PX.Data.PXVersionInfo.Version

reportID = myDet.ActivityReport;
parms = new Dictionary<string, string>();
parms["StatementCustomerId"] = bAccountRow.AcctCD.Trim();

newFileName = String.Format("{0} {1}.PDF", reportID, bAccountRow.AcctCD);

data = CWReportGenerator.GetAcuReportBytes(reportID, parms);`