Пример #1
0
    public Guid DecryptUserID(string EncryptUserID, Guid ApplicationID)
    {
        if (!header.VerifyCredentials(header.UserName, header.Password, header.Type))
        {
            return(Guid.Empty);
        }

        Application app = ApplicationsHelper.GetApplicationInfo(ApplicationID);

        if (app != null)
        {
            string strUserID = Util.Decrypt(EncryptUserID);

            return(new Guid(strUserID));
        }
        return(Guid.Empty);
    }
Пример #2
0
    public string GetApplicationInfo(string applicationID)
    {
        if (!header.VerifyCredentials(header.UserName, header.Password, header.Type))
        {
            return(string.Empty);
        }

        Guid gApplicationID = (Guid)XmlSerializer.Deserialize(applicationID);

        return(XmlSerializer.Serialize(ApplicationsPublicHelper.GetApplicationInfo(gApplicationID)));
    }
Пример #3
0
    public string GetDepartmentDepartmentPath(string ancestorDepartmentID, string offspringDepartmentID)
    {
        if (!header.VerifyCredentials(header.UserName, header.Password, header.Type))
        {
            return(string.Empty);
        }

        Guid gAncestorDepartmentID = (Guid)XmlSerializer.Deserialize(ancestorDepartmentID);

        Guid gOffspringDepartmentID = (Guid)XmlSerializer.Deserialize(offspringDepartmentID);

        return(XmlSerializer.Serialize(OrganizationPublicHelper.GetDepartmentDepartmentPath(gAncestorDepartmentID, gOffspringDepartmentID)));
    }