|
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using Kingdee.BOS.Core.Bill.PlugIn;
- using Kingdee.BOS;
- using System.ComponentModel;
- using Kingdee.BOS.Core.DynamicForm.PlugIn.Args;
- using Kingdee.BOS.Core.DynamicForm.PlugIn.ControlModel;
- namespace BJ.Bos.ProJectName.Bill.Plugln
- {
- [Kingdee.BOS.Util.HotUpdate]
- [Description("表单插件,表单常用方法")]
- public class ClassName : AbstractBillPlugIn
- {
- public override void BarItemClick(BarItemClickEventArgs e)
- {
- base.BarItemClick(e);
- if (e.BarItemKey == "tbTest")
- {
- //获取单据标题 this.View.GetFormTitle()
- // string FormTitle = this.View.GetFormTitle();
- //获取单据内码,并转换成字符串.ToString()
- // string FormTitle = this.View.Model.DataObject["Id"].ToString();
- //显示出来,显示到备注上面,赋值给备注
- // this.View.Model.SetValue("FNote", FormTitle);
- //获取焦点,备注
- // this.View.GetControl("FNote").SetFocus();
- //单据体,备注,行锁定字段
- // this.View.GetFieldEditor("FEntryNote", 0).Enabled = false;
- //点击按钮,备注字段锁定,变成灰色
- this.View.GetControl("FNote").Enabled = false;
-
-
-
- }
- }
- }
- }
复制代码
|
|