Пример #1
0
        public GisBaseReferenceRaw[] LoadGisReference(string Organization, string User, string Password)
        {
            var security = new EidssSecurityManager();
            var result   = security.LogIn(Organization, User, Password);

            if (result == 0) //authorized
            {
                return(GisBaseReferenceRaw.GetAll());
            }
            return(null);
        }
Пример #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);
        }