【已解决】怎样解决自定义加载单据体数据量多时假死问题
金蝶云社区-一看再看
一看再看
0人赞赏了该文章 1,624次浏览 未经作者许可,禁止转载编辑于2015年09月09日 09:33:56
请问老师, 我在自定义单据BeforeBindData()中加载读取数据到单据体时,当超过几十条后速度变的很慢,当达到上百条时出现长时间假死状态。
无论是采用预增加空行,再加载(this.Model.BatchCreateNewEntryRow("FEntity1", 580)),还是边读边加载,都无法解决。
请老师给予解决方案!!
谢谢!!!!急!!
string strSQL = "/*dialect*/select a.fid,a.FBILLNO as 工序单号......."
// this.Model.BatchCreateNewEntryRow("FEntity1", 580);
using (reader = DBUtils.ExecuteReader(base.Context, strSQL))
{
while (reader.Read())
{
this.View.Model.CreateNewEntryRow("FEntity1");
this.View.Model.SetValue("F_e_Text4", reader["工序单号"].ToString(), i);
i++;
}
reader.Close();
}