Esempio n. 1
0
        public BaseReferenceRaw[] LoadReference(string Organization, string User, string Password, long type)
        {
            var security = new EidssSecurityManager();
            var result   = security.LogIn(Organization, User, Password);

            if (result == 0) //authorized
            {
                return(BaseReferenceRaw.GetList(new[] { type }));
            }
            return(null);
        }
Esempio n. 2
0
        public bool LoadReferences(string Organization, string User, string Password,
                                   long[] types, string[] langs,
                                   out BaseReferenceRaw[] refs, out BaseReferenceTranslationRaw[] refs_trans,
                                   out GisBaseReferenceRaw[] gis_refs, out GisBaseReferenceTranslationRaw[] gis_refs_trans)
        {
            refs           = null;
            refs_trans     = null;
            gis_refs       = null;
            gis_refs_trans = null;
            var security = new EidssSecurityManager();
            var result   = security.LogIn(Organization, User, Password);

            if (result == 0) //authorized
            {
                refs           = BaseReferenceRaw.GetList(types);
                refs_trans     = BaseReferenceTranslationRaw.GetList(types, langs);
                gis_refs       = GisBaseReferenceRaw.GetAll();
                gis_refs_trans = GisBaseReferenceTranslationRaw.GetAll(langs);
                return(true);
            }
            return(false);
        }