case 1690

This commit is contained in:
2021-11-24 21:34:46 +00:00
parent d72c8e3660
commit f2a5de5ad8
8 changed files with 28 additions and 11 deletions

View File

@@ -160,7 +160,7 @@ namespace AyaNova.Biz
bool ThisWOCanAttachments = false;
if (WorkorderIsAllowed)
{
//default report (may be null and may be more detailed tagged version below)
ThisWOEffectiveWorkOrderReportId = AyaNova.Util.ServerGlobalBizSettings.Cache.CustomerDefaultWorkOrderReportId;
@@ -229,6 +229,9 @@ namespace AyaNova.Biz
CustomerUserEffectiveRightsAllowed(AyaNova.Util.ServerGlobalBizSettings.Cache.CustomerAllowCSR,
ContactCustomerHOTagsCombined,
AyaNova.Util.ServerGlobalBizSettings.Cache.CustomerAllowCSRInTags),
CustomerUserEffectiveRightsAllowed(AyaNova.Util.ServerGlobalBizSettings.Cache.CustomerAllowCreateUnit,
ContactCustomerHOTagsCombined,
AyaNova.Util.ServerGlobalBizSettings.Cache.CustomerAllowCreateUnitInTags),
WorkorderIsAllowed,

View File

@@ -86,6 +86,9 @@ namespace AyaNova.Models
public bool CustomerAllowCSR { get; set; }
public List<string> CustomerAllowCSRInTags { get; set; } = new List<string>();
public bool CustomerAllowCreateUnit { get; set; }
public List<string> CustomerAllowCreateUnitInTags { get; set; } = new List<string>();
public bool CustomerAllowViewWO { get; set; }
public List<string> CustomerAllowViewWOInTags { get; set; } = new List<string>();
@@ -126,6 +129,7 @@ namespace AyaNova.Models
t.AddRange(this.CustomerWorkOrderReport4Tags);
t.AddRange(this.CustomerWorkOrderReport5Tags);
t.AddRange(this.CustomerAllowCSRInTags);
t.AddRange(this.CustomerAllowCreateUnitInTags);
t.AddRange(this.CustomerAllowViewWOInTags);
t.AddRange(this.CustomerAllowWOWikiInTags);
t.AddRange(this.CustomerAllowWOAttachmentsInTags);
@@ -147,7 +151,7 @@ namespace AyaNova.Models
}
//Used internally and at client end as extended rights atop roles system in relation only to Contact (customer type users)
public record CustomerRightsRecord(bool CSR, bool WO, bool WOWIKI, bool WOAttachments, bool UserSettings, bool NotifyServiceImminent, bool NotifyCSRAccepted, bool NotifyCSRRejected, bool NotifyWOCreated, bool NotifyWOCompleted, long EntityId, bool EntityActive, long?ThisWOEffectiveWOReportId, bool ThisWOCanWiki, bool ThisWOCanAttachments);
public record CustomerRightsRecord(bool CSR, bool CreateUnit, bool WO, bool WOWIKI, bool WOAttachments, bool UserSettings, bool NotifyServiceImminent, bool NotifyCSRAccepted, bool NotifyCSRRejected, bool NotifyWOCreated, bool NotifyWOCompleted, long EntityId, bool EntityActive, long?ThisWOEffectiveWOReportId, bool ThisWOCanWiki, bool ThisWOCanAttachments);
}
/*
CREATE TABLE [dbo].[AGLOBAL](

View File

@@ -2256,6 +2256,8 @@
"CustomerAccessWorkOrderWiki": "Arbeitsauftragskopf anzeigen WIKI",
"CustomerAccessWorkOrderAttachments": "Anhänge des Arbeitsauftragskopfes öffnen",
"CSRInfoText": "Nachricht an den Kunden",
"CustomerAllowCreateUnit": "Dem Kunden erlauben, eine Einheit zu erstellen",
"AddNewUnit": "Neue Einheit hinzufügen",
"CustomerAccessWorkOrderReport": "Kundenversion Arbeitsauftragsbericht",
"NoFeaturesAvailable": "Für Ihr Konto sind keine Funktionen aktiviert",
"CustomerSignature": "Unterschrift des Kunden",
@@ -2304,7 +2306,7 @@
"ReportRenderAtCapacity": "Der Server hat derzeit das maximale Limit für die Verarbeitung von Berichten, bitte versuchen Sie es in Kürze erneut",
"NativeDateTimeInput": "Verwenden Sie die standardmäßigen Eingabesteuerelemente für Datum und Uhrzeit des Browsers",
"CompanyInformation": "Firmeninformation",
"CompanyEmail":"Email",
"CompanyPhone1":"Geschäftstelefon",
"CompanyPhone2":"Telefon 2"
"CompanyEmail": "Email",
"CompanyPhone1": "Geschäftstelefon",
"CompanyPhone2": "Telefon 2"
}

View File

@@ -2256,9 +2256,11 @@
"CustomerAccessWorkOrderWiki": "View work order header WIKI",
"CustomerAccessWorkOrderAttachments": "Open work order header attachments",
"CSRInfoText": "Message to Customer",
"CustomerAllowCreateUnit": "Allow Customer to create Unit",
"AddNewUnit": "Add new Unit",
"CustomerAccessWorkOrderReport": "Customer work order report",
"NoFeaturesAvailable": "No features are enabled for your account",
"CustomerSignature": "Customer signature",
"NoFeaturesAvailable": "No features are enabled for your account",
"TechSignature": "Technician signature",
"ScheduleConflict": "Schedule conflict",
"ReportIncludeAllWorkOrderItemDescendants": "Include all descendants of work order item",

View File

@@ -2256,6 +2256,8 @@
"CustomerAccessWorkOrderWiki": "Ver el encabezado de la orden de trabajo WIKI",
"CustomerAccessWorkOrderAttachments": "Abrir archivos adjuntos del encabezado de la orden de trabajo",
"CSRInfoText": "Mensaje al cliente",
"CustomerAllowCreateUnit": "Permitir al cliente crear unidad",
"AddNewUnit": "Agregar nueva unidad",
"CustomerAccessWorkOrderReport": "Informe de orden de trabajo del cliente",
"NoFeaturesAvailable": "No hay funciones habilitadas para su cuenta",
"CustomerSignature": "Firma del cliente",
@@ -2304,7 +2306,7 @@
"ReportRenderAtCapacity": "El servidor se encuentra actualmente en el límite máximo para procesar informes. Vuelva a intentarlo en breve.",
"NativeDateTimeInput": "Utilice los controles de entrada de fecha y hora estándar del navegador",
"CompanyInformation": "Información de la empresa",
"CompanyEmail":"Email",
"CompanyPhone1":"Teléfono",
"CompanyPhone2":"Teléfono 2"
"CompanyEmail": "Email",
"CompanyPhone1": "Teléfono",
"CompanyPhone2": "Teléfono 2"
}

View File

@@ -2256,6 +2256,8 @@
"CustomerAccessWorkOrderWiki": "Voir l'en-tête de l'ordre de travail WIKI",
"CustomerAccessWorkOrderAttachments": "Ouvrir les pièces jointes d'en-tête d'ordre de travail",
"CSRInfoText": "Message au client",
"CustomerAllowCreateUnit": "Autoriser le client à créer une unité",
"AddNewUnit": "Ajouter une nouvelle unité",
"CustomerAccessWorkOrderReport": "Rapport de bon de travail client",
"NoFeaturesAvailable": "Aucune fonctionnalité n'est activée pour votre compte",
"CustomerSignature": "Signature du client",

View File

@@ -22,7 +22,7 @@ namespace AyaNova.Util
//!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImportingAsync WHEN NEW TABLES ADDED!!!!
private const int DESIRED_SCHEMA_LEVEL = 1;
internal const long EXPECTED_COLUMN_COUNT = 1322;
internal const long EXPECTED_COLUMN_COUNT = 1324;
internal const long EXPECTED_INDEX_COUNT = 153;
internal const long EXPECTED_CHECK_CONSTRAINTS = 519;
internal const long EXPECTED_FOREIGN_KEY_CONSTRAINTS = 198;
@@ -31,7 +31,7 @@ namespace AyaNova.Util
//!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImportingAsync WHEN NEW TABLES ADDED!!!!
///////////////////////////////////////////////////////////////// C1322:I153:CC519:FC198:V11:R2
///////////////////////////////////////// C1324:I153:CC519:FC198:V11:R2
@@ -265,6 +265,7 @@ namespace AyaNova.Util
+ "signaturefooter TEXT, "
+ "customerservicerequestinfotext TEXT, "
+ "customerallowcsr BOOL DEFAULT FALSE, customerallowcsrintags VARCHAR(255) ARRAY, "
+ "customerallowcreateunit BOOL DEFAULT FALSE, customerallowcreateunitintags VARCHAR(255) ARRAY, "
+ "customerallowviewwo BOOL DEFAULT FALSE, customerallowviewwointags VARCHAR(255) ARRAY, "
+ "customerworkorderreport1tags VARCHAR(255) ARRAY, customerworkorderreport2tags VARCHAR(255) ARRAY, "
+ "customerworkorderreport3tags VARCHAR(255) ARRAY, customerworkorderreport4tags VARCHAR(255) ARRAY, customerworkorderreport5tags VARCHAR(255) ARRAY, "

View File

@@ -1680,6 +1680,7 @@ namespace AyaNova.Util
gbiz.TaxPartSaleId = TCGoods;
gbiz.TaxRateSaleId = TCServices;
gbiz.CustomerAllowCSR = true;
gbiz.CustomerAllowCreateUnit=true;
gbiz.CustomerAllowNotifyCSRAccepted = true;
gbiz.CustomerAllowNotifyCSRRejected = true;
gbiz.CustomerAllowNotifyServiceImminent = true;