【问题标题】:create upload from file button in tab menu "Landed Cost" of Acumatica Purchase Receipt ScreenAcumatica 采购收据屏幕的选项卡菜单“到岸成本”中的从文件按钮创建上传
【发布时间】:2018-08-05 14:32:09
【问题描述】:

我需要在选项卡菜单到岸采购收据屏幕中创建附加按钮“从文件上传”。请看下面的截图。

我已经在“文档详细信息”选项卡菜单中创建了附加按钮,并且可以正常工作,请参考以下屏幕截图。

我创建扩展图来提供这个额外的按钮。

public class POReceiptEntry_Extension : PXGraphExtension<POReceiptEntry>
{
#region Event Handlers
[PXViewName(Messages.POReceiptLine)]
    [PXImport(typeof(POReceipt))]
    [PXCopyPasteHiddenFields(typeof(POReceiptLine.allowComplete))]
    public PXSelect<POReceiptLine, Where<POReceiptLine.receiptType, Equal<Current<POReceipt.receiptType>>,
                    And<POReceiptLine.receiptNbr, Equal<Current<POReceipt.receiptNbr>>>>,
                    OrderBy<Asc<POReceiptLine.receiptType, Asc<POReceiptLine.receiptNbr, Asc<POReceiptLine.lineNbr>>>>> Transactions;
#endregion

}

我认为这可以通过在 Tab Menu Landed Cost 中实现这个附加按钮来完成,但是当我尝试从 excel 文件上传时收到错误消息。请参考以下截图。

有人知道解决这个问题吗?

【问题讨论】:

    标签: c# acumatica


    【解决方案1】:

    我已完成以下更改以将数据导入到岸成本选项卡网格中

    [PXViewName(Messages.POReceiptLine)]
    [PXImport(typeof(POReceipt))]
        [PXCopyPasteHiddenFields(typeof(LandedCostTran.aPDocType), typeof(LandedCostTran.aPRefNbr), typeof(LandedCostTran.aPCuryInfoID), typeof(LandedCostTran.iNDocType), typeof(LandedCostTran.iNRefNbr))]
    public PXSelect<LandedCostTran, Where<LandedCostTran.pOReceiptNbr, Equal<Current<POReceipt.receiptNbr>>,
      And<LandedCostTran.source, Equal<LandedCostTranSource.fromPO>>>> landedCostTrans;
    

    我已在操作栏下启用上传文件 ==> 操作和模式 ==> 允许上传

    允许上传文件并带上传映射窗口上传数据

    【讨论】:

      猜你喜欢
      • 2015-09-13
      • 2022-11-10
      • 2021-07-21
      • 2017-05-31
      • 1970-01-01
      • 1970-01-01
      • 2020-11-24
      • 1970-01-01
      • 2021-10-09
      相关资源
      最近更新 更多