/// <summary>
        /// Swaps elements erection and load sequence
        /// </summary>
        /// <param name="rec1"></param>
        /// <param name="rec2"></param>
        /// <returns></returns>
        public bool SwapElementSequence( RecTMElement rec1, RecTMElement rec2 )
        {
            if( rec1 == null || rec2 == null )
            {
                return false;
            }
            // Create a temp copy
            RecTMElement recTemp = new RecTMElement( rec1 );

            ModelPlanner svc = new ModelPlanner();
            // Update the rec1
            rec1.StackSequenceNo = rec2.StackSequenceNo;
            svc.SaveElementTransport( rec1, false );
            // Update the rec2
            rec2.StackSequenceNo = recTemp.StackSequenceNo;
            svc.SaveElementTransport( rec2, false );

            return true;
        }
Example #2
0
		/// <summary>
		/// Update the element with transport information
		/// Create a new record for the element if it is missing
		/// </summary>
		public void Save()
		{
			ModelPlanner svc = new ModelPlanner();
			svc.SaveElementTransport( this, true );
		}