248 lines
8.2 KiB
C#
248 lines
8.2 KiB
C#
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Linq.Expressions;
|
|
using System.Xml.Linq;
|
|
|
|
namespace VirtualTask.Models
|
|
{
|
|
public class Chiamate
|
|
{
|
|
[Display (Name= "Azienda")]
|
|
public string? chcodazi { get; set; }
|
|
|
|
[Display(Name = "Seriale")]
|
|
public string? chserial { get; set; }
|
|
|
|
[Display(Name = "Anno esercizio")]
|
|
public string? chcodese { get; set; }
|
|
|
|
[Display(Name = "Tipo")]
|
|
public string? chtipo { get; set; }
|
|
|
|
[Display(Name = "Numero")]
|
|
[Column(TypeName = "decimal(10, 0)")]
|
|
public decimal? chnumero { get; set; }
|
|
|
|
[Display(Name = "Data apertura chiamata")]
|
|
[DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}")]
|
|
public DateTime? chdata { get; set; }
|
|
|
|
[Display(Name = "Cod. Impianto")]
|
|
public string? chcodimp { get; set; }
|
|
|
|
[Display(Name = "Riferimento")]
|
|
public string? chrifer { get; set; }
|
|
|
|
[Display(Name = "Telefono")]
|
|
[StringLength(18)]
|
|
public string? chtelef { get; set; }
|
|
|
|
[Display(Name = "Cod. Segnalazione")]
|
|
public string? chcodseg { get; set; }
|
|
|
|
[Display(Name = "Note")]
|
|
public string? chnote { get; set; }
|
|
|
|
[Display(Name = "Tecnico")]
|
|
public string? chtchiam { get; set; }
|
|
|
|
[Display(Name = "Stato")]
|
|
public string? chstato { get; set; }
|
|
|
|
[Display(Name = "Rifiutata")]
|
|
public string? rif { get; set; }
|
|
|
|
[Display(Name = "In carico")]
|
|
public string? ic { get; set; }
|
|
|
|
[Display(Name = "Chiuso")]
|
|
public string? ser_buono_chiu { get; set; }
|
|
|
|
|
|
#region non visualizzati
|
|
public int? chora { get; set; }
|
|
public int? chmin { get; set; }
|
|
public int? chopins { get; set; }
|
|
public int? chopass { get; set; }
|
|
public int? chopchi { get; set; }
|
|
public string? chaziimp { get; set; }
|
|
public string? chtmanut { get; set; }
|
|
[Display(Name = "Data appuntamento")]
|
|
public DateTime? chdtapp { get; set; }
|
|
public int? choraapi { get; set; }
|
|
public int? chminapi { get; set; }
|
|
public int? choraapf { get; set; }
|
|
public int? chminapf { get; set; }
|
|
public string? chstopi { get; set; }
|
|
public DateTime? chdtass { get; set; }
|
|
public int? chorass { get; set; }
|
|
public int? chminass { get; set; }
|
|
public string? chdtchi { get; set; }
|
|
public int? chorachi { get; set; }
|
|
public int? chminchi { get; set; }
|
|
public DateTime? chdtlin { get; set; }
|
|
public int? chorali { get; set; }
|
|
public int? chminli { get; set; }
|
|
public DateTime? chdtlfi { get; set; }
|
|
public int? choralf { get; set; }
|
|
public int? chminlf { get; set; }
|
|
public string? chvalfat { get; set; }
|
|
public string? cpccchk { get; set; }
|
|
public int? chnrap1 { get; set; }
|
|
public string? chsrap1 { get; set; }
|
|
public int? chnrap2 { get; set; }
|
|
public string? chsrap2 { get; set; }
|
|
public string? chmodrac { get; set; }
|
|
public int? chprgann { get; set; }
|
|
public string? chserchi { get; set; }
|
|
public string? chdesfat { get; set; }
|
|
public string? chdessup { get; set; }
|
|
[Column(TypeName = "decimal(18, 4)")]
|
|
public decimal? chimpofa { get; set; }
|
|
public string? chserdoc { get; set; }
|
|
|
|
[Column(TypeName = "decimal(18, 4)")]
|
|
public decimal? chimpmat { get; set; }
|
|
|
|
[Column(TypeName = "decimal(18, 4)")]
|
|
public decimal? chimpman { get; set; }
|
|
[Column(TypeName = "decimal(6, 2)")]
|
|
public decimal? chperman { get; set; }
|
|
public string? chflstim { get; set; }
|
|
public string? chfleste { get; set; }
|
|
public string? chserext { get; set; }
|
|
public string? chrifiutata { get; set; }
|
|
#endregion
|
|
|
|
|
|
|
|
/// <summary>Tipo indirizzo (Via, piazza..)</summary>
|
|
[Display(Name = "Via,piazza,..")]
|
|
public string? imindiri1 { get; set; }
|
|
|
|
/// <summary> indirizzo </summary>
|
|
[Display(Name = "Indirizzo")]
|
|
public string? imindiri2 { get; set; }
|
|
|
|
/// <summary> numero civico </summary>
|
|
[Display(Name = "Num civico")]
|
|
public int? imindiri3 { get; set; }
|
|
|
|
/// <summary> sottonumero </summary>
|
|
[Display(Name = "Interno")]
|
|
public string? imindiri4 { get; set; }
|
|
|
|
/// <summary>scala</summary>
|
|
[Display(Name = "Scala")]
|
|
public string? imindiri5 { get; set; }
|
|
|
|
/// <summary> localita </summary>
|
|
[Display(Name = "Località")]
|
|
public string? imlocali { get; set; }
|
|
|
|
/// <summary> Cap </summary>
|
|
[Display(Name = "Cap")]
|
|
public string? imcodcap { get; set; }
|
|
|
|
/// <summary> Comune </summary>
|
|
[Display(Name = "Comune")]
|
|
public string? imcomune { get; set; }
|
|
/// <summary> Provincia </summary>
|
|
[Display(Name = "Provincia")]
|
|
public string? improvin { get; set; }
|
|
public string? indirizzo
|
|
{
|
|
get
|
|
{
|
|
string ind = string.Empty;
|
|
if (!string.IsNullOrEmpty(imindiri1))
|
|
ind = imindiri1.Trim();
|
|
if (!string.IsNullOrEmpty(imindiri2))
|
|
ind = ind + " " + imindiri2.Trim();
|
|
if (imindiri3 != null)
|
|
ind = ind + "," + Convert.ToString(imindiri3);
|
|
if (!string.IsNullOrEmpty(imindiri4) && imindiri4.Trim().Length > 0)
|
|
ind = ind + " Scala " + imindiri4.Trim();
|
|
if (!string.IsNullOrEmpty(imindiri5) && imindiri5.Trim().Length > 0)
|
|
ind = ind + " Int " + imindiri5.Trim();
|
|
if (!string.IsNullOrEmpty(imlocali) && imlocali.Trim().Length > 0)
|
|
ind = ind + " " + imlocali.Trim();
|
|
if (!string.IsNullOrEmpty(imcodcap) && imcodcap.Trim().Length > 0)
|
|
ind = ind + " " + imcodcap.Trim();
|
|
if (!string.IsNullOrEmpty(imcomune) && imcomune.Trim().Length > 0)
|
|
ind = ind + " " + imcomune.Trim();
|
|
if (!string.IsNullOrEmpty(improvin) && improvin.Trim().Length > 0)
|
|
ind = ind + " " + improvin.Trim();
|
|
|
|
|
|
return ind;
|
|
}
|
|
}
|
|
public string? indirizzoBreve
|
|
{
|
|
get
|
|
{
|
|
string ind = string.Empty;
|
|
if (!string.IsNullOrEmpty(imindiri1))
|
|
ind = imindiri1.Trim();
|
|
if (!string.IsNullOrEmpty(imindiri2))
|
|
ind = ind + " " + imindiri2.Trim();
|
|
if (imindiri3 != null)
|
|
ind = ind + "," + Convert.ToString(imindiri3);
|
|
return ind;
|
|
}
|
|
}
|
|
public string? tcdescri { get; set; }
|
|
|
|
public int? numIntero
|
|
{
|
|
|
|
get
|
|
{
|
|
int numero = -1;
|
|
numero=Convert.ToInt32(chnumero);
|
|
return numero;
|
|
}
|
|
|
|
}
|
|
public string? descStato
|
|
{
|
|
get
|
|
{
|
|
string st = string.Empty;
|
|
switch (chstato)
|
|
{
|
|
case "B":
|
|
st = "Da assegnare";
|
|
break;
|
|
case "A":
|
|
st = "Aperta";
|
|
break;
|
|
case "C":
|
|
st = "Assegnata";
|
|
break;
|
|
case "Z":
|
|
st = "Chiusa";
|
|
break;
|
|
case "S":
|
|
st = "Sospesa";
|
|
break;
|
|
default:
|
|
st = "N.C.";
|
|
break;
|
|
}
|
|
return st;
|
|
}
|
|
}
|
|
|
|
public string? andescri { get; set; }
|
|
public string? ancodice { get; set; }
|
|
|
|
/// <summary>RAPP_NEW: seriale chiamata chiusa</summary>
|
|
public string? ser_rapp_chiu { get; set; }
|
|
public string? csdescr { get; set; }
|
|
|
|
}
|
|
}
|