Ejemplo n.º 1
0
        public override void AfterConstruction()
        {
            base.AfterConstruction();
            // Place here your initialization code.
            _Journal = new FmJournal(this.Session);
            _Journal.FinPlanSet(this);
            _Journal.JournalTypeAccountingSet(JournalTypeAccounting.FM_JTA_FINANCIAL);
            _Journal.JournalTypeLegalSet(JournalTypeLegal.FM_JTL_COMPANY);
            _Journal.JournalTypeObjectSet(JournalTypeObject.FM_JTO_SUBJECT);
            _Journal.JournalTypePeriodSet(JournalTypePeriod.FM_JTP_FULL);
            _Journal.JournalTypeSourceSet(JournalTypeSource.FM_JTS_FINPLAN);
            //
            _JournalPlanYear = new FmJournal(this.Session);
            _JournalPlanYear.FinPlanSet(this);
            _JournalPlanYear.JournalTypeAccountingSet(JournalTypeAccounting.FM_JTA_FINANCIAL);
            _JournalPlanYear.JournalTypeLegalSet(JournalTypeLegal.FM_JTL_COMPANY);
            _JournalPlanYear.JournalTypeObjectSet(JournalTypeObject.FM_JTO_SUBJECT);
            _JournalPlanYear.JournalTypePeriodSet(JournalTypePeriod.FM_JTP_YEAR);
            _JournalPlanYear.JournalTypeSourceSet(JournalTypeSource.FM_JTS_FINPLAN);

            crmUserParty user_org = crmUserParty.CurrentUserPartyGet(this.Session);

            if (user_org != null)
            {
                AccountingContract = user_org.AccountingContract;
                AccountingFact     = user_org.AccountingFact;
            }
        }
Ejemplo n.º 2
0
 public override void AfterConstruction()
 {
     base.AfterConstruction();
     _Journal = new FmJournal(this.Session);
     _Journal.FinPlanDocSet(this);
     _Journal.JournalTypeAccountingSet(JournalTypeAccounting.FM_JTA_FINANCIAL);
     _Journal.JournalTypeLegalSet(JournalTypeLegal.FM_JTL_COMPANY);
     _Journal.JournalTypeObjectSet(JournalTypeObject.FM_JTO_ORDER);
     _Journal.JournalTypePeriodSet(JournalTypePeriod.FM_JTP_YEAR);
     _Journal.JournalTypeSourceSet(JournalTypeSource.FM_JTS_FINPLAN_DOC);
 }
Ejemplo n.º 3
0
 public override void AfterConstruction()
 {
     base.AfterConstruction();
     _Journal = new FmJournal(this.Session);
     _Journal.FinPlanDocSet(this);
     _Journal.JournalTypeAccountingSet(JournalTypeAccounting.FM_JTA_FINANCIAL);
     _Journal.JournalTypeLegalSet(JournalTypeLegal.FM_JTL_COMPANY);
     _Journal.JournalTypeObjectSet(JournalTypeObject.FM_JTO_ORDER);
     _Journal.JournalTypePeriodSet(JournalTypePeriod.FM_JTP_FULL);
     _Journal.JournalTypeSourceSet(JournalTypeSource.FM_JTS_FINPLAN_DOC);
     CodeSet("ФПЗ" + ".Null");
     //
     _TopLine = new FmFinPlanDocLine(this.Session, this, FmFinPlanLineType.FMFPL_TOP, FmFinPlanTotalType.FMFPT_HIERARCHICAL,
                                     "Книга", "Книга", HrmStructItemType.HRM_STRUCT_UNKNOW);
 }