应收票据列表背书携带票据上出票人为事列:
先继承应收票据背书动态表单插件Kingdee.K3.FIN.CN.Business.PlugIn.BillReceivable.BillRecOperEndorseEdit
重写创建应收票据结算单方法protected override DynamicObject CreateBillRecSettleEntry(DynamicObject dynamicObject, int iRow = 0)在此方法设置出票人信息即可
/// <summary>
/// 创建票据结算单表体
/// </summary>
/// <param name="dynamicObject">票据结算单信息</param>
/// <param name="iRow">票据界面行号</param>
/// <returns></returns>
protected override DynamicObject CreateBillRecSettleEntry(DynamicObject dynamicObject, int iRow = 0)
{DynamicObject obj = base.CreateBillRecSettleEntry(dynamicObject, iRow);
DynamicObjectCollection collection = obj["CN_BILLRECSETTLEENTRY"] as DynamicObjectCollection;//this.DyBillReceivable这个是应收票据实体 应收票据上字段信息都有
//以设置出票人为列
collection[0]["FDRAWER"] = Convert.ToString(this.DyBillReceivable["DRAWER"]);return obj;
}停用背书标准产品插件Kingdee.K3.FIN.CN.Business.PlugIn.BillReceivable.BillRecOperEndorseEdit 启用二开插件即可以下源码实列
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Kingdee.BOS.Orm.DataEntity;
using Kingdee.K3.FIN.CN.Business.PlugIn.BillReceivable;
namespace test001
{
/// <summary>
///
/// </summary>
public class Class1: BillRecOperEndorseEdit
{
/// <summary>
/// 创建票据结算单表体
/// </summary>
/// <param name="dynamicObject">票据结算单信息</param>
/// <param name="iRow">票据界面行号</param>
/// <returns></returns>
protected override DynamicObject CreateBillRecSettleEntry(DynamicObject dynamicObject, int iRow = 0)
{DynamicObject obj = base.CreateBillRecSettleEntry(dynamicObject, iRow);
DynamicObjectCollection collection = obj["CN_BILLRECSETTLEENTRY"] as DynamicObjectCollection;//this.DyBillReceivable这个是应收票据实体
//以设置出票人为列
collection[0]["FDRAWER"] = Convert.ToString(this.DyBillReceivable["DRAWER"]);return obj;
}}
}有什么问题可以一起交流, 如果需要源码工程留下邮箱发给你
推荐阅读