单据体中子单据体显示不正确问题
1,215次浏览
编辑于2015年08月12日 11:05:21
单据体总两行已经实现通过上移菜单交换了两行的数据,代码如下
//交换数据
object beforeSection = this.View.Model.GetValue("FSECTIONID", nBeforeRowIndex);
object currentSection = this.View.Model.GetValue("FSECTIONID", nCurrentRowIndex);
this.View.Model.SetValue("FSECTIONID", beforeSection, nCurrentRowIndex);
this.View.Model.SetValue("FSECTIONID", currentSection, nBeforeRowIndex);
//交换数据
object beforeSection = this.View.Model.GetValue("FSECTIONID", nBeforeRowIndex);
object currentSection = this.View.Model.GetValue("FSECTIONID", nCurrentRowIndex);
this.View.Model.SetValue("FSECTIONID", beforeSection, nCurrentRowIndex);
this.View.Model.SetValue("FSECTIONID", currentSection, nBeforeRowIndex);
//切换光标
EntryGrid entryGrid = this.View.GetControl
entryGrid.SetFocusRowIndex(nBeforeRowIndex);
this.View.Model.SetEntryCurrentRowIndex("FSectionEntity", nBeforeRowIndex);
但是问题就是对应的子单据没有变化,如图片中描述,单据体中第2行空白行已经上移,编程第一行,光标已经定位到第一行,
但是子单据体还是显示医生签名信息对应的子单据体信息,而不是交换后行对应的单据体。
推荐阅读