单据表体弹出物料附件列表二开示例

单据表体弹出物料附件列表,以采购申请单为例。在BOS设计器中打开采购申请单,明细信息增加菜单“查看物料附件”。
在采购申请单的表单插件中挂上插件,插件代码示例如下:
using Kingdee.BOS.Core;
using Kingdee.BOS.Core.Attachment;
using Kingdee.BOS.Core.Bill.PlugIn;
using Kingdee.BOS.Core.DynamicForm;
using Kingdee.BOS.Core.List;
using Kingdee.BOS.Orm.DataEntity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Kingdee.BOS.Printing.PlugIn.Test
{
public class ShowAttachmentPlugIn : AbstractBillPlugIn
{
public override void EntryBarItemClick(Core.DynamicForm.PlugIn.Args.BarItemClickEventArgs e)
{
base.EntryBarItemClick(e);
if (e.BarItemKey == "PAEZ_tbButton")
{
int rowIndex = this.View.Model.GetEntryCurrentRowIndex("FEntity");
object entryPkValue = this.View.Model.GetEntryPKValue("FEntity", rowIndex);
object obj = this.View.Model.GetValue("FMaterialId", rowIndex);
if (obj is DynamicObject)
{
ShowAttachmentList(Convert.ToString((obj as DynamicObject) ["Id"]));
}
}
}
private void ShowAttachmentList(string interId)
{
AttachmentKey attachmentKey = new AttachmentKey()
{
BillType = "BD_MATERIAL",
BillNo = "",
BillInterID = interId,
EntryKey = " ",
EntryInterID = "-1",
OperationStatus = Core.Metadata.OperationStatus.E单据表体弹出物料附件列表二开示例
单据表体弹出物料附件列表,以采购申请单为例。在BOS设计器中打开采购申请单,明细信息增加菜单“查看物料附件”。在采购申请单的表单插件...
点击下载文档文档为doc格式
声明:除非特别标注,否则均为本站原创文章,转载时请以链接形式注明文章出处。如若本站内容侵犯了原著者的合法权益,可联系本站删除。
上一篇
已经是第一篇



