在“帐单和调整”屏幕中的“着陆代码”选项卡中添加“ AllowUpload” [英] Adding “AllowUpload” to the landed code tab in the Bill and adjustment screen

查看:39
本文介绍了在“帐单和调整”屏幕中的“着陆代码”选项卡中添加“ AllowUpload”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过excel或csv添加将订单行上传到帐单和调整屏幕上的到岸成本中的功能。我自定义了屏幕,并将AllowUpload设置为True。 在此处输入图片描述但我不知道如何使用[PXImport]。你们能一步一步给我看一下吗,例如:什么是BQL,以及
放在哪里。请明确点。谢谢

I'm trying to add the ability to upload order lines into landed cost on the bills and adjustment screen via excel or csv. I customized the screen and set AllowUpload to True. enter image description here But i don't know how to use the [PXImport]. Can you guy show me step by step.Ex: what is the BQL and where to put it. Be specific. Thanks

推荐答案

首先确定绑定到网格的DataView的名称。为此,您可以按住Ctl-Alt并单击网格的标题,然后选择自定义。它将在屏幕部分中打开定制项目编辑器。单击树视图中间最顶部的元素以选择网格。在右侧的属性窗格中查找DataMember属性,这是DataView的名称。在项目编辑器中,展开属性窗格的模式部分,然后将AllowUpload属性设置为True。

First determine the name of the DataView bound to the grid. To do that you can hold Ctl-Alt and click on the header of the grid and select Customize. It will open the customization project editor in the Screen section. Click on the top most element of the tree view in the middle to select the grid. Lookup the DataMember property on the property pane on the right side, this is the name of the DataView. While in the project editor, expand the Mode section of the property pane and set AllowUpload property to True.

现在,您知道装饰它所需的DataView的名称了。带有PXImport属性。如果尚未在该屏幕的项目编辑器的代码部分中创建图形扩展,在Graph Extension中,对于您创建的新DataView,在DataView声明之前添加[PXImport(typeof(PrimaryDac)],如下所示:

Now that you know the name of the DataView you need to decorate it with the PXImport attribute. Create a Graph Extension in the code section of the project editor for this screen if you haven't already. In the Graph Extension, for a new DataView that you have created you add [PXImport(typeof(PrimaryDac)] right before the DataView declaration like this:

[PXImport(typeof(APInvoice))]
public PXSelect<MyDAC> MyDataView;

对于基类中的现有DataView,您可以用相同的方式覆盖它:

For an existing DataView from the base class you can override it in the same way:

[PXImport(typeof(APInvoice))]
public PXSelect<DAC> BaseDataView;

可以找到主DAC在基础图的类声明中:

The Primary DAC can be found in the class declaration of the base graph:

public class APInvoiceEntry : APDataEntryGraph<APInvoiceEntry, APInvoice>, PXImportAttribute.IPXPrepareItems

参考:为网格启用从Excel上传

这篇关于在“帐单和调整”屏幕中的“着陆代码”选项卡中添加“ AllowUpload”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆