Exemplo n.º 1
0
        public BaseReferenceTranslationRaw[] LoadReferenceTranslation(string Organization, string User, string Password, long type, string lang)
        {
            var security = new EidssSecurityManager();
            var result   = security.LogIn(Organization, User, Password);

            if (result == 0) //authorized
            {
                return(BaseReferenceTranslationRaw.GetList(new[] { type }, new[] { lang }));
            }
            return(null);
        }
Exemplo 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);
        }