This commit is contained in:
2021-01-06 23:49:19 +00:00
parent 5e54fc3899
commit f5f0cffde6
5 changed files with 106 additions and 0 deletions

View File

@@ -116,6 +116,8 @@ namespace AyaNova.Biz
return await ct.TaxCode.AnyAsync(z => z.Id == id);
case AyaType.ServiceBank:
return await ct.ServiceBank.AnyAsync(z => z.Id == id);
case AyaType.CustomerServiceRequest:
return await ct.CustomerServiceRequest.AnyAsync(z => z.Id == id);
default:
throw new System.NotSupportedException($"AyaNova.Biz.BizObjectExistsInDatabase::ExistsAsync type {objectType.ToString()} is not supported");
}

View File

@@ -100,6 +100,8 @@ namespace AyaNova.Biz
return new TaxCodeBiz(ct, userId, ServerBootConfig.AYANOVA_DEFAULT_TRANSLATION_ID, roles);
case AyaType.ServiceBank:
return new ServiceBankBiz(ct, userId, ServerBootConfig.AYANOVA_DEFAULT_TRANSLATION_ID, roles);
case AyaType.CustomerServiceRequest:
return new CustomerServiceRequestBiz(ct, userId, ServerBootConfig.AYANOVA_DEFAULT_TRANSLATION_ID, roles);

View File

@@ -0,0 +1,19 @@
namespace AyaNova.Biz
{
public enum CustomerServiceRequestPriority : int
{
/// <summary>
/// Not urgent, service at time of choosing of service company
/// </summary>
NotUrgent = 0,
/// <summary>
/// Not an emergency but quite urgent, service as soon as possible
/// </summary>
ASAP = 1,
/// <summary>
/// Issue is an emergency, client expects service company to make it their first priority
/// </summary>
Emergency = 2
}
}//eons

View File

@@ -0,0 +1,22 @@
namespace AyaNova.Biz
{
public enum CustomerServiceRequestStatus : int
{
/// <summary>
/// No status set
/// (editable)
/// </summary>
Open = 0,
/// <summary>
/// Accepted for service
/// (Not editable / locked and closed)
/// </summary>
Accepted = 1,
/// <summary>
/// Declined for service
/// (editable)
/// </summary>
Declined = 2
}
}//eons