Пример #1
0
        public fmCPRRepaymentTaskLine(Session session, int level, fmCPRPaymentRequestObligation levelObject, fmCPRPaymentRequest paymentRequest, DateTime paymentDate, Decimal operationJournalSum, Decimal requestSum, fmCPRRepaymentTask repaymentTask, fmCPRRepaymentTaskLine parentLine)   //, Boolean isCashFlowRegister)
            : base(session)
        {
            _PaymentRequest      = paymentRequest;
            _PaymentDate         = paymentDate;
            _OperationJournalSum = operationJournalSum;
            _RequestSum          = requestSum;
            _RepaymentTask       = repaymentTask;
            _Level       = level;
            _LevelObject = levelObject;

            //_IsCashFlowRegister = isCashFlowRegister;

            if (parentLine != null)
            {
                parentLine.Lines.Add(this);
            }
        }
        public override void AfterConstruction()
        {
            base.AfterConstruction();
            this.ComponentType = typeof(fmCPRPaymentRequestFinOrder);
            this.CID           = Guid.NewGuid();

            //this.State = PaymentRequestStates.PAYED;

            fmCPRPaymentRequestObligation finObligation = new fmCPRPaymentRequestObligation(Session);

            this.PaySettlmentOfObligations.Add(finObligation);

            csCSecurityUser user  = SecuritySystem.CurrentUser as csCSecurityUser;
            csCSecurityUser user1 = SessionHelper.GetObjectInSession <csCSecurityUser>(user, Session);

            if (user1 != null && user1.Staff != null)
            {
                this.FBKManager        = user1.Staff; //.Department;
                this.DepartmentOfState = user1.Staff.Department;
            }
        }