数据源中编写disp方法需加参数,否则Grid中记录会随光标变动

display transdate dispReceDate(ACT_tmpProductionWIPMaterial _ACT_tmpProductionWIPMaterial)

{

 

    ACT_JobTable   _Table;

    ACT_JobTrans   _Trans;

 

 

    If (_ACT_tmpProductionWIPMaterial.ItemId == "PO")

    {

 

            Select FirstOnly _Table join _Trans Where _Table.ProdId == _ACT_tmpProductionWIPMaterial.ProdId

                                    &&  _Table.WrkCtrId == "CVEND"

                                    && _Table.ACT_JobId == _Trans.ACT_JobId

                                    && _Trans.ItemId == "PO";

            return _Table.EndDate;

    }

 

    return datenull();

 

}

 

 

posted @ 2011-09-20 11:17  perock  阅读(244)  评论(0编辑  收藏  举报