禁止Form上某个字段以外其他字段全部不可编辑
public int active()
{
int ret;
dictTable m_dictTable = new DictTable(tableNum(Dbwork));
dictField m_dictField;
int i;
;
for (i =1 ;i <=m_dictTable.fieldCnt();i++)
{
m_dictfield = new dictField(tableNum(Dbwork),m_dictTable.fieldCnt2Id(i));
if(!m_dictField.isSystem())
{
if(!(m_dictField.id() == fieldNum(Dbwork,choose)))
Dbwork_ds.object(m_dictfield.id()).allowEdit(false);
}
}
ret = super();
return ret;
}
posted on 2015-07-16 17:09 Kobe.Zhang 阅读(359) 评论(0) 编辑 收藏 举报