This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
|
||||
|
||||
19
server/AyaNova/biz/CustomerServiceRequestPriority.cs
Normal file
19
server/AyaNova/biz/CustomerServiceRequestPriority.cs
Normal 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
|
||||
22
server/AyaNova/biz/CustomerServiceRequestStatus.cs
Normal file
22
server/AyaNova/biz/CustomerServiceRequestStatus.cs
Normal 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
|
||||
Reference in New Issue
Block a user