using Microsoft.VisualBasic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Text; using System.Xml.Linq; namespace VirtualTask.Models { public class Rapp_New { [Display(Name = "SERIALE RAPPORTINO"), Required(ErrorMessage = "Inserisci il seriale rapportino")] public string? seriale_rapportino { get; set; } [Display(Name = "TIPO RAPPORTINI")] public string? tipo_rapportino { get; set; } [Display(Name = "AZIENDA")] public string? azienda_impianto { get; set; } [Display(Name = "CODICE IMPIANTO"), Required(ErrorMessage = "Inserisci codice impianto")] [StringLength(10)] public string? codice_impianto { get; set; } [Display(Name = "AZ. CHIAMATA")] public string? azienda_chiamata { get; set; } [Display(Name = "SERIALE CHIAMATA")] public string? seriale_chiamata { get; set; } [Display(Name = "SERIALE COMMESSA")] public string? seriale_commessa { get; set; } [Display(Name = "DATA RAPPORTINO")] [DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}")] public DateTime data_rapportino { get; set; } [Display(Name = "ORA INIZIO")] [StringLength(2)] public string? ora_ini_rapportino { get; set; } [StringLength(2)] [Display(Name = "MINUTO INIZIO")] public string? min_ini_rapportino { get; set; } [Display(Name = "ORA FINE")] [StringLength(2)] public string? ora_fin_rapportino { get; set; } [Display(Name = "MINUTO FINE")] [StringLength(2)] public string? min_fin_rapportino { get; set; } [Display(Name = "CODICE CHIUSURA 1")] public string? codice_chiusura_1 { get; set; } [Display(Name = "CODICE CHIUSURA 2")] public string? codice_chiusura_2 { get; set; } [Display(Name = "CODICE CHIUSURA 3")] public string? codice_chiusura_3 { get; set; } [Display(Name = "CODICE CHIUSURA 4")] public string? codice_chiusura_4 { get; set; } [Display(Name = "CODICE CHIUSURA 5")] public string? codice_chiusura_5 { get; set; } [Display(Name = "CODICE CHIUSURA 6")] public string? codice_chiusura_6 { get; set; } [Display(Name = "CODICE CHIUSURA 7")] public string? codice_chiusura_7 { get; set; } [Display(Name = "CODICE CHIUSURA 8")] public string? codice_chiusura_8 { get; set; } [Display(Name = "CODICE CHIUSURA 9")] public string? codice_chiusura_9 { get; set; } [Display(Name = "CODICE CHIUSURA 10")] public string? codice_chiusura_10 { get; set; } [Display(Name = "DESC. INTERVENTO")] public string? descrizione_intervento { get; set; } [Display(Name = "STATO")] public string? stato_finale { get; set; } [Display(Name = "GENERATO")] public string? generato { get; set; } [Display(Name = "AZ. TECNICO")] public string? azienda_tecnico { get; set; } [Display(Name = "COD. TECNICO")] public string? codice_tecnico { get; set; } [Display(Name = "RIFIUTATA")] public string? rifiutata { get; set; } [Display(Name = "FIRMA")] public string? firma { get; set; } [Display(Name = "INCARICO")] public string? incarico { get; set; } [Display(Name = "DATA VALIDITA'")] public DateTime data_validita { get; set; } [Display(Name = "IMMAGINE")] public string? immagine { get; set; } [Display(Name = "SERIALE BUONO")] public string? ser_buono { get; set; } [Display(Name = "DATA EFFETTIVA")] public DateTime? data_effettiva { get; set; } [Display(Name = "CODICE INTERVENTO")] public string? codice_intervento { get; set; } [Display(Name = "DIFETTI")] public string? difetti_riscontrati { get; set; } [Display(Name = "LAVORO")] public string? lavoro_eseguito { get; set; } [Display(Name = "ESITO")] [StringLength(1)] public string? esito_intervento { get; set; } [Display(Name = "NOTE")] public string? note_intervento { get; set; } [Display(Name = "NUOVO CONTRATTO")] [StringLength(2)] public string? nuovo_contratto { get; set; } [Display(Name = "ORE LAVORO")] public double? ore_lavoro { get; set; } [Display(Name = "CAUSALE")] [StringLength(5)] public string? causale { get; set; } [Display(Name = "MATERIALE")] public double? materiale { get; set; } [Display(Name = "DIRITTO CHIAMATA")] public double? diritto_chiamata { get; set; } [Display(Name = "MANODOPERA")] public double? manodopera { get; set; } [Display(Name = "SPESE VIAGGIO")] public double? spese_viaggio { get; set; } [Display(Name = "PAGAMENTO")] [StringLength(20)] public string? pagamento { get; set; } [Display(Name = "ANTICIPO")] public double? anticipo { get; set; } [Display(Name = "TOTALE")] public double? totale { get; set; } [Display(Name = "NOTE PAGAMENTO")] public string? note_pagamento { get; set; } [Display(Name = "TIPO INTERVENTO")] public string? tipo_intervento { get; set; } [Display(Name = "FOTO 1")] public string? rafoto { get; set; } [Display(Name = "FOTO 2")] public string? rafoto2 { get; set; } [Display(Name = "FOTO 3")] public string? rafoto3 { get; set; } [Display(Name = "FOTO 4")] public string? rafoto4 { get; set; } [Display(Name = "FOTO 5")] public string? rafoto5 { get; set; } [Display(Name = "FOTO 6")] public string? rafoto6 { get; set; } [Display(Name = "FOTO 7")] public string? rafoto7 { get; set; } [Display(Name = "FOTO 8")] public string? rafoto8 { get; set; } [Display(Name = "FOTO 9")] public string? rafoto9 { get; set; } [Display(Name = "FOTO 10")] public string? rafoto10 { get; set; } public byte[]? img2 { get; set; } //public byte[]? img2byte //{ // get // { // if (img2 != null) // return Encoding.ASCII.GetBytes(img2); // else return null; // } //} } }