Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# RefNbr选择器:应收发票与分销发票_C#_Customization_Acumatica - Fatal编程技术网

C# RefNbr选择器:应收发票与分销发票

C# RefNbr选择器:应收发票与分销发票,c#,customization,acumatica,C#,Customization,Acumatica,我通过DAC自定义了RefNbr选择器,使其具有两个其他自定义列,但它仅将附加选择器列应用于AR发票屏幕: [PXCustomizeSelectorColumns( 类型(PX.Objects.AR.Standalone.ARRegisterAlias.refNbr), 类型(PX.对象.AR.语音.发票编号), typeof(PX.Objects.AR.Standalone.ARRegisterAlias.docDate), typeof(PX.Objects.AR.Standalone.A

我通过DAC自定义了RefNbr选择器,使其具有两个其他自定义列,但它仅将附加选择器列应用于AR发票屏幕:

[PXCustomizeSelectorColumns(
类型(PX.Objects.AR.Standalone.ARRegisterAlias.refNbr),
类型(PX.对象.AR.语音.发票编号),
typeof(PX.Objects.AR.Standalone.ARRegisterAlias.docDate),
typeof(PX.Objects.AR.Standalone.ARRegisterAlias.finPeriodID),
typeof(PX.Objects.AR.Standalone.ARRegisterAlias.customerID),
类型(PX.Objects.AR.Standalone.ARRegisterAlias.customerID\u Customer\u acctName),
typeof(PX.Objects.AR.Standalone.ARRegisterAlias.customerLocationID),
typeof(PX.Objects.AR.Standalone.ARRegisterAlias.curyID),
typeof(PX.Objects.AR.Standalone.ARRegisterAlias.curyOrigDocAmt),
typeof(PX.Objects.AR.Standalone.ARRegisterAlias.curyDocBal),
typeof(PX.Objects.AR.Standalone.ARRegisterAlias.status),
typeof(PX.Objects.AR.Standalone.ARRegisterAlias.dueDate),
typeof(PX.Objects.AR.ARRegisterExt.usrProjectId),

typeof(PX.Objects.AR.ARRegisterExt.usrProjectName))
SOInvoiceEntry图在缓存连接的方法中覆盖该字段:

[PXDBString(15, IsKey = true, IsUnicode = true, InputMask = ">CCCCCCCCCCCCCCC")]
[PXDefault()]
[PXUIField(DisplayName = "Reference Nbr.", Visibility = PXUIVisibility.SelectorVisible, TabOrder = 1)]
[ARInvoiceType.RefNbr(typeof(Search2<AR.Standalone.ARRegisterAlias.refNbr,
    InnerJoinSingleTable<ARInvoice, On<ARInvoice.docType, Equal<AR.Standalone.ARRegisterAlias.docType>,
        And<ARInvoice.refNbr, Equal<AR.Standalone.ARRegisterAlias.refNbr>>>,
    InnerJoinSingleTable<Customer, On<AR.Standalone.ARRegisterAlias.customerID, Equal<Customer.bAccountID>>>>,
    Where<AR.Standalone.ARRegisterAlias.docType, Equal<Optional<ARInvoice.docType>>,
        And<AR.Standalone.ARRegisterAlias.origModule, Equal<BatchModule.moduleSO>,
        And<Match<Customer, Current<AccessInfo.userName>>>>>, 
    OrderBy<Desc<AR.Standalone.ARRegisterAlias.refNbr>>>), Filterable = true)]
[ARInvoiceType.Numbering()]
[ARInvoiceNbr()]
protected virtual void ARInvoice_RefNbr_CacheAttached(PXCache sender)
{
}
[PXDBString(15,IsKey=true,IsUnicode=true,InputMask=“>cccccc”)]
[PXDefault()]
[PXUIField(DisplayName=“Reference Nbr.”,Visibility=PXUIVisibility.selectorvisibility,TabOrder=1)]
[ARInvoiceType.RefNbr(typeof(Search2),Filterable=true)]
[VoiceType.Numbering()]
[ARInvoiceNbr()]
受保护的虚拟缓存已连接(PXCache发送方)
{
}
DAC属性自定义很好,但我怀疑图形覆盖优先于DAC属性自定义。我建议您为SOInvoiceEntry创建一个图形扩展,在其中复制/粘贴CacheAttached事件,并修改属性以增加列


使用[PXMergeAttributes(Method=MergeMethod.Merge)]属性避免重新定义不需要更改的属性。

请将您的代码添加到问题中好吗?当然,我添加了更多的图像和代码,尽管这个问题似乎是个bug,与代码无关。谢谢您的解释!我是新手,你能建议我应该向SOInvoiceEntry图中添加什么,以使它只使用一列作为示例:“typeof(PX.Objects.AR.ARRegisterExt.usrProjectId)”?