Exemplo n.º 1
0
 /// <summary>
 /// This ensures that  the AbstractTrx passed is not null. This is used as a check for other methods.
 /// </summary>
 private static void Check_Trx_Passed_Is_Not_Null(AbstractDocumentTrx entity)
 {
     if (entity == null)
     {
         throw new Exception("No  Trx passed. AbstractTrxDAL.Check_SalesorderTrx_Passed_Is_Not_Null");
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// This does a selfError check on the class and runs base class checks
        /// </summary>
        public override void ErrorCheck(T entity)
        {
            AbstractDocumentTrx trx = entity as AbstractDocumentTrx;

            trx.SelfErrorCheck();

            Check_Trx_Passed_Is_Not_Null(trx);
            //Check_IsTotalQtyShippedFreshlyCalculated_Freshly_Calculated(trx);
            //Check_IsFinalSalesPriceFreshlyCalculated_Freshly_Calculated(trx);
            //Check_IsLineTotalFreshlyCalculated_Freshly_Calculated(trx);
        }