diff --git a/Controllers/ChiamateController.cs b/Controllers/ChiamateController.cs index fb2dbac..e078c20 100644 --- a/Controllers/ChiamateController.cs +++ b/Controllers/ChiamateController.cs @@ -201,7 +201,7 @@ namespace VirtualTask.Controllers { model.chdata = DateTime.Now; } - model.chdtapp = model.chdata; + //model.chdtapp = model.chdata; model.chdtass = model.chdata; model.chtipo = "A";//X=creato da app, A creato da adhoc. DEVO METTERE A perche altrimenti l'app lo tratta come una chiamata da commessa model.chmodrac = "EMAIL"; @@ -214,9 +214,16 @@ namespace VirtualTask.Controllers //model.chmin = min; //model.chminapi = min; //model.chminass = min; - int year = model.chdata.Value.Year; - int hour = model.chdata.Value.Hour; - int minute = model.chdata.Value.Minute; + + //MF 25/10/2024 Anno, ore e minuti prendono data appuntamento e non più data apertura chiamata + //int year = model.chdata.Value.Year; + //int hour = model.chdata.Value.Hour; + //int minute = model.chdata.Value.Minute; + + int year = model.chdtapp.Value.Year; + int hour = model.chdtapp.Value.Hour; + int minute = model.chdtapp.Value.Minute; + model.chora = hour; model.chmin = minute; model.choraapi = hour; @@ -361,11 +368,19 @@ namespace VirtualTask.Controllers client = new HttpClient(); client.BaseAddress = baseAddress; - model.chdtapp = model.chdata; - model.chdtass = model.chdata; - int year = model.chdata.Value.Year; - int hour = model.chdata.Value.Hour; - int minute = model.chdata.Value.Minute; + //model.chdtapp = model.chdata; + + //model.chdtass = model.chdata; + model.chdtass = model.chdtapp; + + //int year = model.chdata.Value.Year; + //int hour = model.chdata.Value.Hour; + //int minute = model.chdata.Value.Minute; + + int year = model.chdtapp.Value.Year; + int hour = model.chdtapp.Value.Hour; + int minute = model.chdtapp.Value.Minute; + model.chora = hour; model.chmin = minute; model.choraapi = hour; diff --git a/Models/Chiamate.cs b/Models/Chiamate.cs index b2cdaab..a7ace42 100644 --- a/Models/Chiamate.cs +++ b/Models/Chiamate.cs @@ -24,7 +24,7 @@ namespace VirtualTask.Models [Column(TypeName = "decimal(10, 0)")] public decimal? chnumero { get; set; } - [Display(Name = "Data Appuntamento")] + [Display(Name = "Data apertura chiamata")] [DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}")] public DateTime? chdata { get; set; } @@ -68,7 +68,7 @@ namespace VirtualTask.Models public int? chopchi { get; set; } public string? chaziimp { get; set; } public string? chtmanut { get; set; } - [Display(Name = "Data")] + [Display(Name = "Data appuntamento")] public DateTime? chdtapp { get; set; } public int? choraapi { get; set; } public int? chminapi { get; set; } diff --git a/Views/Chiamate/Create.cshtml b/Views/Chiamate/Create.cshtml index 60fe6cc..67ac278 100644 --- a/Views/Chiamate/Create.cshtml +++ b/Views/Chiamate/Create.cshtml @@ -32,20 +32,12 @@
| - - - @* *@ - - | -
- Se la data dell'appuntamento non è specificata verrà valorizzata con la data sistema (data del giorno). - |
-
|---|