diff --git a/Controllers/ChiamateController.cs b/Controllers/ChiamateController.cs index 3747287..2f32ad7 100644 --- a/Controllers/ChiamateController.cs +++ b/Controllers/ChiamateController.cs @@ -124,11 +124,15 @@ namespace VirtualTask.Controllers model.chcodazi = tenant; model.chaziimp = tenant; model.chserial = getNewSeriale(); - model.chnumero=getNewNumeroChiamata(); + model.chnumero=getNewNumeroChiamata(); //DateTime adesso = DateTime.Now; //model.chdata = adesso; //model.chdtass = adesso; //model.chdtapp = adesso; + if (model.chdata == null) + { + model.chdata = DateTime.Now; + } 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 diff --git a/Models/Chiamate.cs b/Models/Chiamate.cs index 4a2c516..1dfdc9e 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")] + [Display(Name = "Data Appuntamento")] [DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}")] public DateTime? chdata { get; set; } diff --git a/Views/Chiamate/Create.cshtml b/Views/Chiamate/Create.cshtml index 582f378..60fe6cc 100644 --- a/Views/Chiamate/Create.cshtml +++ b/Views/Chiamate/Create.cshtml @@ -10,56 +10,65 @@