银行存款对账shift实现多选二开方案(含源码)

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

银行存款对账shift实现多选二开方案(含源码)

  1. 新加一个表单插件

  2. 打开bos银行存款对账注册新加插件

3.效果

4.源码

using Kingdee.BOS.Core.DynamicForm.PlugIn;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Kingdee.BOS.Util;
using Kingdee.BOS.Core.DynamicForm.PlugIn.ControlModel;

namespace KD_CN_Business.PlugIn
{
    /// <Author></Author>
    /// <summary>
    /// 银行对账SHIFT多选客户端插件
    /// </summary>
    [Description("银行对账SHIFT多选客户端插件")]
    public  class KdBankAcntCheck : AbstractDynamicFormPlugIn
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="e"></param>
        public override void DataChanged(Kingdee.BOS.Core.DynamicForm.PlugIn.Args.DataChangedEventArgs e)
        {
            base.DataChanged(e);
            if (e.Field.Key.EqualsIgnoreCase("FDownBlend")
                || e.Field.Key.EqualsIgnoreCase("FUpBlend"))
            {
                if (Convert.ToBoolean(e.NewValue))
                {
                    var entrySelectRows = this.View.GetControl<EntryGrid>(e.Field.EntityKey).GetSelectedRows();
                    if (entrySelectRows == null) return;
                    if (entrySelectRows.Length == 0) return;
                    if (entrySelectRows[0] < 0) return;
                    if (entrySelectRows.Length == 1) return;
                    foreach (int row in entrySelectRows)
                    {
                        if (row == e.Row) continue;
                        this.View.Model.SetValue(e.Field.Key, true, row);
                    }
                    this.View.UpdateView(e.Field.Key);
                }
            }
        }
    }
}


银行存款对账shift实现多选二开方案(含源码)

新加一个表单插件打开bos银行存款对账注册新加插件3.效果4.源码using Kingdee.BOS.Core.DynamicForm.PlugIn;using System;using System.Col...
点击下载文档
确认删除?
回到顶部
客服QQ
  • 客服QQ点击这里给我发消息