Skip to Content
author's profile photo Former Member
Former Member

实现类似标准功能的“复制从”功能

在SBO里面的u201C复制从u201D,当向导走完后,数据会很快回写到窗口的Matrix里面,即使某些列设置了隐藏也能够把数据复制进去

我自己实现了一个类似功能,用的办法是在选择窗体中选好要复制的内容后,通过UI定位到上级窗口的Matrix中的每一行再到每一单元格去填充数据

这样能够实现,但是数据量大的话填充数据的速度会慢,而且一旦设置了要填充数据的某一列不可见或不可编辑的话,就无法完成复制动作了

我想问有没有其他更好的方式能够达到像SBO标准功能那样的效果呢?谢谢。

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 05, 2009 at 11:04 AM

    做一个类似的通用ADDON很难,要考虑的东西太多,不实用.

    用格式化搜索实现类似功能,顾问自己配置,很简单,已在多个项目中应用,效果不错,所以建议不要在这个上面打主意了.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      当然可以实现,并且是完全可以实现!

      比如:

      表头两个自定义字段,一个是复制从哪种单据,一个是复制从的单据DOCENTRY(根据第一个字段的值进行格搜选择)

      然后行里面,根据表头的两个字段再进行格式化搜索选物料(如果考虑多个相同物料的存在,可以把行号也列入条件,但一般我都是直接按物料号汇总的)

      其它字段,根据物料号和表头的复制从单据信息,自动刷新.

      最后,在存储过程中加入适当的逻辑控制,例如是否允许超出原单据数量,单价是否和原单据一致等.或者把要记录的未清数量写入另一自定义表中等.

      Edited by: Chen Wayne on Sep 7, 2009 2:30 AM

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.