package com.brilliance.isc.vo.model;

import com.brilliance.isc.bo.Trn;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Basic Functions for Business Transactions
 */
@JsonIgnoreProperties(ignoreUnknown = true)
@Data
@Deprecated
public class Trnmod {
    private static Logger log = LoggerFactory.getLogger(Trnmod.class);

    private Trndoc trndoc;

    private Trn trn;

//    public void troStoreInBimForUndo(IModule argMod, String argUndoStaOnly)
//    {
//        Streams.streamInsert(this.getTrnbim().getBimudostm(),0,Platform.recGetObj(argMod) + TAB + Platform.recGetInr(argMod) + TAB + argUndoStaOnly);
//        troStoreInBim(argMod);
//    }

//    public void troStoreInBim(IModule argMod)
//    {
//        //! private function to store Argmod in BIM to allow Rollback in TRNREL
//        //! This is used by TroLoadContract (for Load of contract groups)
//        String objInr = Platform.recGetInr(argMod);
//        String dataLabel = NULLSTR;
//        String path =  "\\ARGMOD";
//        if( MdaUtils.isEmpty(objInr) )
//        {
////            Platform.sysDump("TrnStoreInBim : Argument " + Platform.recGetPath(argMod) + " does not hold an INR");
//            Sysmod.sysDump("TrnStoreInBim : Argument " + path + " does not hold an INR");
//
//        }
//        else
//        {
//            dataLabel = troGetBimLabel( Platform.recGetObj(argMod), objInr );
//            Systems.setContext("SAVEDATASKIPEMPTY",true);
//            Datas.saveData(argMod,this.getBimdata(),dataLabel);
//            Systems.setContext("SAVEDATASKIPEMPTY",false);
//        }
//    }

}