报表返回全流程上下游数据代码案例

栏目:云星空知识作者:金蝶来源:金蝶云社区发布:2024-09-16浏览:1

报表返回全流程上下游数据代码案例

using System;using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.ComponentModel;

using Kingdee.BOS;

using Kingdee.BOS.Util;

using Kingdee.BOS.Core;

using Kingdee.BOS.Core.Report;

using Kingdee.BOS.Core.Report.PlugIn;

using Kingdee.BOS.Core.Report.PlugIn.Args;

using Kingdee.BOS.App;

using Kingdee.BOS.App.Core.BusinessFlow;

using Kingdee.BOS.Core.BusinessFlow.ServiceArgs;

 

 public void GetDataSource(long[] entryIds;){


            string entryKey = "FPOOrderEntry";

            long[] entryIds;//拿到所有需要加载全流程数据的采购订单分录id

            if (entryIds.Length > 0)

            {

                BusinessFlowDataService flowDataReader = new BusinessFlowDataService();

                BuildBFTrackerTempTableArgs args = new  BuildBFTrackerTempTableArgs(SCMFormIdConst.PUR_PurchaseOrder, entryKey, entryIds);


                args.FirstTableName = "t_PUR_POOrderEntry";//指定首表,采购订单的明细体表

                

              // 采购订单

                args.TableNames.Add("t_PUR_POOrderEntry");

               //收料通知单

                args.TableNames.Add("T_PUR_ReceiveEntry");

               //采购入库单

                args.TableNames.Add("T_STK_INSTOCKENTRY");


    


                BuildBFTrackerTempTableResult result = flowDataReader.BuildBFTrackerTempTable(this.Context, args);



/**  以订单(143004)关联收料通知单(117009、117010)、入库单(139012)为例

  T_PUR_POORDERENTRY   T_PUR_RECEIVEENTRY   T_PUR_RECEIVEENTRY_SId     T_STK_INSTOCKENTRY      T_STK_INSTOCKENTRY_SID                        

                   143004             117009             143004         0                0

                   143004             117010             143004         0                0

                   143004             117010             143004         139012              117010

**/



                string flowData = result.TempTableName;//返回的流程数据


   }

}


报表返回全流程上下游数据代码案例

using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.ComponentModel;using Kingdee....
点击下载文档
确认删除?
回到顶部
客服QQ
  • 客服QQ点击这里给我发消息