Timpa method asli, lakukan modifikasi pada Datasource
public int active()
{
int ret;
ret = super();
if(Table.Posted==NoYes::Yes)
{
Table_ds.allowEdit(false);
Table_ds.allowDelete(false);
Table_ds.allowCreate(false);
}
else
{
Table_ds.allowEdit(true);
Table_ds.allowDelete(false);
Table_ds.allowCreate(false);
}
return ret;
}
No comments:
Post a Comment