Esempio n. 1
0
        protected override void AfterAdd(DataRow row)
        {
            CLAS.InsolvencyRow dr         = (CLAS.InsolvencyRow)row;
            string             ObjectName = this.myInsolvencyDT.TableName;

            dr.InsolvencyID        = this.myA.AtMng.PKIDGet(ObjectName, 1);
            dr.FileID              = myA.FM.CurrentFile.FileId;
            dr.OfficeID            = myA.FM.CurrentFile.LeadOfficeId;
            dr.StayOfProceeding    = true;
            dr.CSLNonDischargeable = false;
            CLAS.DebtorRow ddr = this.myA.GetDebtor().FindLoad(myA.FM.CurrentFile.OpponentID);
            dr.CeasedToBeStudentDate = ddr.CeasedToBeStudentDate;

            InsolvencyAccountBE jaBE = this.myA.GetInsolvencyAccount();

            foreach (CLAS.DebtRow debtr in this.myA.DB.Debt)
            {
                if (debtr.ActiveWithJustice) //  && debtr.OfficeID==debtr.EFileRow.LeadOfficeId) JLL 2010-08-11 Review this check
                {
                    CLAS.InsolvencyAccountRow jar = (CLAS.InsolvencyAccountRow)jaBE.Add(dr);
                    jar.BeginEdit();
                    jar.FileAccountID = debtr.FileAccountId;
                    jar.Include       = true;
                    jar.EndEdit();
                }
            }
        }
Esempio n. 2
0
        public InsolvencyAccountBE GetInsolvencyAccount()
        {
            if (myInsolvencyAccount == null)
            {
                myInsolvencyAccount = new InsolvencyAccountBE(this);
            }

            return(myInsolvencyAccount);
        }