예제 #1
0
        public PaymentAdviceReferenceView ConvertPaymentAdviceReference(PaymentAdvice input, ApasRegularView refReg)
        {
            PaymentAdviceReferenceView output = new PaymentAdviceReferenceView();

            output.Id = input.Id;
            output.IdPaymentAdviceList = input.IdPaymentAdviceList;
            output.Student=
                ConvertStudent(input.GetAssociatedStudent());
            output.ReferencedRegular = refReg;

            return output;
        }
예제 #2
0
        public PaymentAdviceView ConvertPaymentAdvice(PaymentAdvice input)
        {
            PaymentAdviceView output = new PaymentAdviceView();

            output.ClassFees = new ArrayList();

            foreach (ClassFee objCF in input.ClassFees.Values)
            {
                ClassFeeView newCF =
                    ConvertClassFee(objCF);

                output.ClassFees.Add(newCF);
            }

            output.Id = input.Id;
            output.IdLockHolder = input.IdLockHolder;
            output.IdPaymentAdviceList  = input.IdPaymentAdviceList;
            output.IsExcluded = (input.IsExcluded==1);
            output.IsFrozen = (input.IsFrozen==1);
            output.IsLocked = input.IsLocked;

            if (input.IdLockHolder != null)
            {
                output.LockHolderName = input.GetLockHolder().UserName;
            }

            output.OtherFees = new ArrayList();

            foreach (OtherFee objOF in input.OtherFees.Values)
            {
                OtherFeeView newOF =
                    ConvertOtherFee(objOF);

                output.OtherFees.Add(newOF);
            }

            output.Student =
                ConvertStudent(input.GetAssociatedStudent());

            return output;
        }