CRM Module update
This commit is contained in:
parent
2b68bfb8bf
commit
18cd090671
37 changed files with 2067 additions and 204 deletions
|
@ -36,6 +36,6 @@ namespace WebsitePanel.Providers.HostedSolution
|
|||
public Guid BusinessUnitId { get; set; }
|
||||
public CRMUserAccessMode ClientAccessMode { get; set; }
|
||||
public bool IsDisabled { get; set; }
|
||||
|
||||
public int CALType { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
@ -35,10 +35,11 @@ namespace WebsitePanel.Providers.HostedSolution
|
|||
public interface ICRM
|
||||
{
|
||||
OrganizationResult CreateOrganization(Guid organizationId, string organizationUniqueName, string organizationFriendlyName,
|
||||
string organizationDomainName, string ou,
|
||||
string ou,
|
||||
string baseCurrencyCode, string baseCurrencyName, string baseCurrencySymbol,
|
||||
string initialUserDomainName, string initialUserFirstName, string initialUserLastName, string initialUserPrimaryEmail,
|
||||
string organizationCollation);
|
||||
string organizationCollation,
|
||||
long maxSize);
|
||||
|
||||
string[] GetSupportedCollationNames();
|
||||
|
||||
|
@ -46,7 +47,7 @@ namespace WebsitePanel.Providers.HostedSolution
|
|||
|
||||
ResultObject DeleteOrganization(Guid orgId);
|
||||
|
||||
UserResult CreateCRMUser(OrganizationUser user, string orgName, Guid organizationId, Guid baseUnitId);
|
||||
UserResult CreateCRMUser(OrganizationUser user, string orgName, Guid organizationId, Guid baseUnitId, int CALType);
|
||||
|
||||
CRMBusinessUnitsResult GetOrganizationBusinessUnits(Guid organizationId, string orgName);
|
||||
|
||||
|
@ -56,13 +57,19 @@ namespace WebsitePanel.Providers.HostedSolution
|
|||
|
||||
ResultObject SetUserRoles(string orgName, Guid userId, Guid[] roles);
|
||||
|
||||
ResultObject SetUserCALType(string orgName, Guid userId, int CALType);
|
||||
|
||||
CrmUserResult GetCrmUserByDomainName(string domainName, string orgName);
|
||||
|
||||
CrmUserResult GetCrmUserById(Guid crmUserId, string orgName);
|
||||
|
||||
ResultObject ChangeUserState(bool disable, string orgName, Guid crmUserId);
|
||||
|
||||
long GetUsedSpace(Guid organizationId);
|
||||
long GetDBSize(Guid organizationId);
|
||||
|
||||
long GetMaxDBSize(Guid organizationId);
|
||||
|
||||
ResultObject SetMaxDBSize(Guid organizationId, long maxSize);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -61,6 +61,12 @@ namespace WebsitePanel.Providers.HostedSolution
|
|||
private int createdCRMUsers;
|
||||
private int allocatedCRMUsers;
|
||||
|
||||
private int createdLimitedCRMUsers;
|
||||
private int allocatedLimitedCRMUsers;
|
||||
|
||||
private long usedCRMDiskSpace;
|
||||
private long allocatedCRMDiskSpace;
|
||||
|
||||
private int createdEnterpriseStorageFolders;
|
||||
private int allocatedEnterpriseStorageFolders;
|
||||
|
||||
|
@ -79,6 +85,18 @@ namespace WebsitePanel.Providers.HostedSolution
|
|||
get { return allocatedCRMUsers; }
|
||||
set { allocatedCRMUsers = value; }
|
||||
}
|
||||
|
||||
public int CreatedLimitedCRMUsers
|
||||
{
|
||||
get { return createdLimitedCRMUsers; }
|
||||
set { createdLimitedCRMUsers = value; }
|
||||
}
|
||||
|
||||
public int AllocatedLimitedCRMUsers
|
||||
{
|
||||
get { return allocatedLimitedCRMUsers; }
|
||||
set { allocatedLimitedCRMUsers = value; }
|
||||
}
|
||||
|
||||
public int AllocatedUsers
|
||||
{
|
||||
|
@ -86,6 +104,18 @@ namespace WebsitePanel.Providers.HostedSolution
|
|||
set { allocatedUsers = value; }
|
||||
}
|
||||
|
||||
public long UsedCRMDiskSpace
|
||||
{
|
||||
get { return usedCRMDiskSpace; }
|
||||
set { usedCRMDiskSpace = value;}
|
||||
}
|
||||
|
||||
public long AllocatedCRMDiskSpace
|
||||
{
|
||||
get { return allocatedCRMDiskSpace; }
|
||||
set { allocatedCRMDiskSpace = value; }
|
||||
}
|
||||
|
||||
public int CreatedUsers
|
||||
{
|
||||
get { return createdUsers; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue