コード例 #1
0
 public static void SetIfNotEmpty <TField>(PXCache cache, POAccrualStatus row, decimal?value)
     where TField : IBqlField
 {
     if (value != null && value != 0m)
     {
         cache.SetValue <TField>(row, value);
     }
 }
コード例 #2
0
 public static void SetIfNotNull <TField>(PXCache cache, POAccrualStatus row, object value)
     where TField : IBqlField
 {
     if (value != null)
     {
         cache.SetValue <TField>(row, value);
     }
 }
コード例 #3
0
 public static POAccrualRecord FromPOAccrualStatus(POAccrualStatus s)
 {
     return(new POAccrualRecord
     {
         ReceivedUOM = s.ReceivedUOM,
         ReceivedQty = s.ReceivedQty,
         BaseReceivedQty = s.BaseReceivedQty,
         ReceivedCost = s.ReceivedCost,
         BilledUOM = s.BilledUOM,
         BilledQty = s.BilledQty,
         BaseBilledQty = s.BaseBilledQty,
         BillCuryID = s.BillCuryID,
         CuryBilledAmt = s.CuryBilledAmt,
         BilledAmt = s.BilledAmt,
         CuryBilledCost = s.CuryBilledCost,
         BilledCost = s.BilledCost,
         CuryBilledDiscAmt = s.CuryBilledDiscAmt,
         BilledDiscAmt = s.BilledDiscAmt,
         PPVAmt = s.PPVAmt,
     });
 }