Wednesday, February 12, 2020

Get Name from DirPerson: ProdTable.TDC_DiggingCoordinator

public void insert()
{
    DirPerson               dirPerson;
    HcmWorker               hcmWorker;
    CustTable               custTableLoc;   

    //TDC_JIRASYSCADY-573
    if(!this.TDC_DiggingCoordinator)
    {
       select Name from dirPerson
                      join hcmWorker
                          where hcmWorker.Person == dirPerson.RecId
                      join custTableLoc
                          where custTableLoc.AccountNum == this.CustAccount &&
                                  custTableLoc.DiggingCoordinator == hcmWorker.RecId;

       this.TDC_DiggingCoordinator  =  dirPerson.Name;
    }
    //TDC_JIRASYSCADY-573
}

No comments:

Post a Comment