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); } } }
时间: 2024-10-13 01:08:07