public static Int64 InsertByNFPRear(NodeFluxPacketCBE nfp, int nfpEntryId, int isRegistered)
        {
            TransactionCBE transaction = new TransactionCBE();

            transaction.TMSId   = 1;
            transaction.PlazaId = nfp.GantryId;
            transaction.LaneId  = nfp.LaneId;
            //transaction.TransactionId = ;//auto increment
            transaction.TransactionDateTime = Convert.ToDateTime(nfp.TimeStamp);
            //transaction.CrosstalkTagId = ;
            //transaction.CrosstalkVehicleClassId = ;
            //transaction.CrosstalkVRN = ;
            //transaction.CrosstalkTimestamp = ;
            //transaction.NodefluxVRNRear = "";//will be updated later
            //transaction.NodefluxVehicleClassIdRear = "";
            //transaction.NodefluxTimestampRear = "";
            //transaction.CrosstalkEntryId = crostalkEventId;
            transaction.NodefluxEntryIdRear = nfpEntryId;

            transaction.IsBalanceUpdated = -1;//will be updated later
            transaction.IsTransfered     = Convert.ToInt32(Libraries.CommonLibrary.Constants.TransferStatus.NotTransferred);
            transaction.IsViolation      = -1;
            //transaction.ModifierId = 0;//will be updated later
            transaction.VehicleSpeed     = nfp.VehicleSpeed;
            transaction.CreationDate     = System.DateTime.Now;
            transaction.ModificationDate = System.DateTime.Now;

            transaction.IsRegistered = isRegistered;

            return(TransactionDAL.InsertByNFPRear(transaction));
        }
Beispiel #2
0
 public static void Update(NodeFluxPacketCBE nodefluxPacketCBE)
 {
     NodeFluxDAL.Update(nodefluxPacketCBE);
 }
Beispiel #3
0
 public static int Insert(NodeFluxPacketCBE nodefluxPacketCBE)
 {
     return(NodeFluxDAL.Insert(nodefluxPacketCBE));
 }