Exemplo n.º 1
0
 public PaymentBreakDown(PaymentBreakDownKey key, double unit, double DayAdjusts, object relatedObject)
 {
     this.key        = key;
     this.unit       = unit;
     this.DayAdjusts = DayAdjusts;
     if (relatedObject != null)
     {
         relatedObjectList.Add(relatedObject);
     }
 }
Exemplo n.º 2
0
 public override bool Equals(object obj)
 {
     if (obj is PaymentBreakDownKey)
     {
         PaymentBreakDownKey compare = (PaymentBreakDownKey)obj;
         if (compare.m_PaymentCodeID.Equals(m_PaymentCodeID) &&
             compare.m_CostCenterID.Equals(m_CostCenterID) &&
             Math.Abs(compare.m_Rate - m_Rate) < 0.005 &&
             compare.m_RateRemark.Equals(m_RateRemark) &&
             compare.m_RateMultiplier.Equals(m_RateMultiplier) &&
             compare.PaymentMethod.Equals(m_PaymentMethod) &&
             compare.EmpAccID.Equals(m_EmpAccID) &&
             compare.IsRestDayPayment.Equals(m_IsRestDayPayment) &&
             compare.IsGenerateRemark.Equals(m_IsGenerateRemark)
             )
         {
             return(true);
         }
     }
     return(false);
 }
Exemplo n.º 3
0
 public PaymentBreakDown(PaymentBreakDownKey key, double unit, double DayAdjusts)
     : this(key, unit, DayAdjusts, null)
 {
 }