예제 #1
0
        public override void LoadSchema(ISchemaInfo schema)
        {
            base.LoadSchema(schema);

            //Company currency configuration
            CompanyInfo company = CompanyInfo.Get(AppContext.ActiveSchema.Oid, false);

            company.SetCurrency();
        }
예제 #2
0
        public override void LoadUserContext()
        {
            if (AppContext.Principal == null)
            {
                return;
            }

            base.LoadUserContext();

            CompanyInfo company = AppContext.ActiveSchema as CompanyInfo;

            if (company != null)
            {
                company.SetCurrency();
            }
        }