金蝶云星空-表单插件常用方法
1、获取单据标题
this.View.GetFormTitle()
2、获取表单Fid内码
this.View.Model.DataObject["Id"]
this.View.Model.GetPKValue
3、设置焦点
this.View.GetControl().SetFocus()
4、字段锁定、隐藏
//备注字段锁定,变成灰色
//this.View.GetControl("FNote").Enabled = false;
//扩展使用,单据体,备注,行锁定字段
//this.View.GetFieldEditor("FEntryNote",0).Enabled = false;
//隐藏备注字段
this.View.GetControl("FNote").Visible = false;
5、按钮锁定、隐藏
//锁定,保存按钮
//this.View.GetMainBarItem("tbSplitSave").Enabled = false;
//隐藏,保存按钮
this.View.GetMainBarItem("tbSplitSave").Visible = false;
6、刷新界面,
this.View.Refresh()
this.View.UpdateView(),
7、调用表单事件,
//点击按钮,调用保存
this.View.InvokeFormOperation("Save");
8、调用字段值更新
//值更新,数量
this.View.InvokeFieldUpdateService("FQty", 0);
浙公网安备 33010602011771号