报表打开对应的对应表单
Posted 一发寒冰箭
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了报表打开对应的对应表单相关的知识,希望对你有一定的参考价值。
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Kingdee.BOS.Core.Report.PlugIn; using System.ComponentModel; using Kingdee.BOS.Core.DynamicForm; using Kingdee.BOS.ServiceHelper; using Kingdee.BOS.Orm.DataEntity; namespace LUTAI.K3.FIN.Business.PlugIn.Report { [Description("合法性检查错误详情")] public class LT_HS_ValidityCheckDetail : AbstractSysReportPlugIn { public override void OnInitialize(Kingdee.BOS.Core.DynamicForm.PlugIn.Args.InitializeEventArgs e) { base.OnInitialize(e); } public override void EntryButtonCellClick(Kingdee.BOS.Core.DynamicForm.PlugIn.Args.EntryButtonCellClickEventArgs e) { base.EntryButtonCellClick(e); if (e.FieldKey == "FERRORDETAIL") { this.ShowCheckDetailForm(Convert.ToInt32(e.Row)); } } public override void EntityRowDoubleClick(Kingdee.BOS.Core.DynamicForm.PlugIn.Args.EntityRowClickEventArgs e) { base.EntityRowDoubleClick(e); } private void ShowCheckDetailForm(int row) { string sql = string.Format(@"/*dialect*/ select fentryid from {0} where FIDENTITYID={1}",this.SysReportModel.DataSource.TableName,row); DynamicObject DBfentryId = DBServiceHelper.ExecuteDynamicObject(this.Context, sql).FirstOrDefault(); if (DBfentryId == null) return; string fentryId = Convert.ToString(DBfentryId["fentryid"]); DynamicFormShowParameter parameter = new DynamicFormShowParameter(); parameter.FormId = "LT_HS_CHECKDETAIL"; parameter.CustomParams.Add("FEntryId", fentryId); parameter.ParentPageId = this.View.PageId; this.View.ShowForm(parameter); } } }
以上是关于报表打开对应的对应表单的主要内容,如果未能解决你的问题,请参考以下文章
在没有打印预览或打开报表的情况下从 Access 中的表单打印报表?
FineReport怎么进行表单设计 FineReport的表单设计简单示例