THis is is sample of active() methode x++
public int active()
{
int ret;
ret = super();
BIT_Tb_TemporaryFFB_ds.object(fieldNum(BIT_Tb_TemporaryFFB, qtyhg)).allowEdit(BIT_Tb_TemporaryFFB.Status == BIT_StatusTransfer::Failed);
BIT_Tb_TemporaryFFB_ds.object(fieldNum(BIT_Tb_TemporaryFFB, qtyhg)).allowEdit(BIT_Tb_TemporaryFFB.Status == BIT_StatusTransfer::NotTransferred);
BIT_Tb_TemporaryFFB_ds.object(fieldNum(BIT_Tb_TemporaryFFB, qtyPL)).allowEdit(BIT_Tb_TemporaryFFB.Status == BIT_StatusTransfer::Failed);
BIT_Tb_TemporaryFFB_ds.object(fieldNum(BIT_Tb_TemporaryFFB, qtyPL)).allowEdit(BIT_Tb_TemporaryFFB.Status == BIT_StatusTransfer::NotTransferred);
BIT_Tb_TemporaryFFB_ds.object(fieldNum(BIT_Tb_TemporaryFFB, qtyPC)).allowEdit(BIT_Tb_TemporaryFFB.Status == BIT_StatusTransfer::Failed);
BIT_Tb_TemporaryFFB_ds.object(fieldNum(BIT_Tb_TemporaryFFB, qtyPC)).allowEdit(BIT_Tb_TemporaryFFB.Status == BIT_StatusTransfer::NotTransferred);
return ret;
}
public int active()
{
int ret;
ret = super();
BIT_Tb_TemporaryFFB_ds.object(fieldNum(BIT_Tb_TemporaryFFB, qtyhg)).allowEdit(BIT_Tb_TemporaryFFB.Status == BIT_StatusTransfer::Failed);
BIT_Tb_TemporaryFFB_ds.object(fieldNum(BIT_Tb_TemporaryFFB, qtyhg)).allowEdit(BIT_Tb_TemporaryFFB.Status == BIT_StatusTransfer::NotTransferred);
BIT_Tb_TemporaryFFB_ds.object(fieldNum(BIT_Tb_TemporaryFFB, qtyPL)).allowEdit(BIT_Tb_TemporaryFFB.Status == BIT_StatusTransfer::Failed);
BIT_Tb_TemporaryFFB_ds.object(fieldNum(BIT_Tb_TemporaryFFB, qtyPL)).allowEdit(BIT_Tb_TemporaryFFB.Status == BIT_StatusTransfer::NotTransferred);
BIT_Tb_TemporaryFFB_ds.object(fieldNum(BIT_Tb_TemporaryFFB, qtyPC)).allowEdit(BIT_Tb_TemporaryFFB.Status == BIT_StatusTransfer::Failed);
BIT_Tb_TemporaryFFB_ds.object(fieldNum(BIT_Tb_TemporaryFFB, qtyPC)).allowEdit(BIT_Tb_TemporaryFFB.Status == BIT_StatusTransfer::NotTransferred);
return ret;
}
0 comments:
Post a Comment