예제 #1
0
        /// <summary>
        /// اضافه کار خالص شده ماهانه
        /// </summary>
        /// <param name="Result"></param>
        /// <param name="MyConcept"></param>
        public virtual void C4502(BaseScndCnpValue Result, SecondaryConcept MyConcept)
        {
            PersistedScndCnpPrdValue tmp = this.Person.GetPeriodicScndCnpValue(Result, this.ConceptCalculateDate);

            Result.Value           = tmp.Value;
            Result.FromDate        = tmp.FromDate;
            Result.ToDate          = tmp.ToDate;
            Result.CalculationDate = this.ConceptCalculateDate;
        }
예제 #2
0
        /// <summary>
        /// دکتر صنعت ماهانه
        /// </summary>
        /// <param name="Result"></param>
        /// <param name="MyConcept"></param>
        public virtual void C1504(BaseScndCnpValue Result, SecondaryConcept MyConcept)
        {
            PersistedScndCnpPrdValue tmp = this.Person.GetPeriodicScndCnpValue(Result, this.ConceptCalculateDate);

            Result.Value           = tmp.Value;
            Result.FromDate        = tmp.FromDate;
            Result.ToDate          = tmp.ToDate;
            Result.CalculationDate = this.ConceptCalculateDate;
            if (Result.Value > 0)
            {
                if (this.DoConcept(4005).Value > 0)
                {
                    this.DoConcept(4005).Value -= (Result.Value * 5 * 60);
                    if (this.DoConcept(4005).Value <= 0)
                    {
                        this.DoConcept(4005).Value = 1;
                    }
                }
            }
        }