动态修改表头
金蝶云社区-坑叔
坑叔
0人赞赏了该文章 902次浏览 未经作者许可,禁止转载编辑于2015年06月19日 11:29:33

动态修改表头没反应,麻烦总部老师看下,代码如下:
public override void DataChanged(Kingdee.BOS.Core.DynamicForm.PlugIn.Args.DataChangedEventArgs e)
{
base.DataChanged(e);
switch (e.Field.Key.ToUpper())
{
case "FPLANMONTH":

long month = Convert.ToInt64(this.View.Model.GetValue("FPlanMonth"));
this.View.GetControl("FSalesVolume").Text = month.ToString().Trim() + "月预计&销售量";
this.View.GetControl("FPrice").Text = month.ToString().Trim() + "月预计&单价";
this.View.GetControl("FSalesVolume1").Text = (month + 1).ToString().Trim() + "月预计&销售量";
this.View.GetControl("FPrice1").Text = (month + 1).ToString().Trim() + "月预计&单价";