using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.ComponentModel.DataAnnotations; namespace GODATA.Models.Ticket { public class TicketAdministrationModel { public string s_no { get; set; } public string ticket_id { get; set; } public string ticket_status { get; set; } public string sla { get; set; } } public class TicketModel { public string _OdometerReading = "0"; [Display(Name = "Ticket ID")] public string TicketId { get; set; } [Required] [Display(Name = "Remarks")] [DataType(DataType.MultilineText)] public string Description { get; set; } public List listDescription { get; set; } public TicketModel() { listDescription = new List(); } public string AssignedTo { get; set; } public string ReportedVia { get; set; } [Display(Name = "Ticket Status")] public int TicketStatus { get; set; } public int Priority { get; set; } public string CustomerScore { get; set; } public string CreatedBy { get; set; } public string LastModifiedBy { get; set; } public string LastModifiedTime { get; set; } public string BreakdownLocation { get; set; } public string BreakdownLongitude { get; set; } public string BreakdownLattitude { get; set; } public string AssignedToUserId { get; set; } public string AssignedToUserLattitude { get; set; } public string AssignedToUserLongitude { get; set; } public bool Isdeclined { get; set; } public string EstimatedTimeForJobCompletion { get; set; } [Display(Name = "SLA Time")] public int TotalTicketLifecycleTimeSla { get; set; } public string EstimatedTimeForJobCompletionSubmitTime { get; set; } public string VehicleRegisterNumber { get; set; } public string BreakdownLocationLandmark { get; set; } public string RouteId { get; set; } public string CustomerContactNo { get; set; } public string TicketStatusAlias { get; set; } public string Token { get; set; } public string Status { get; set; } public string Message { get; set; } public int UtcMinute { get; set; } public string RepairCost { get; set; } public int DefaultSlaTime { get; set; } public string SlaMissedReason { get; set; } //[AllowHtml] [Required(ErrorMessage = "*")] [DataType(DataType.MultilineText)] public string SuggestionComment { get; set; } public string JobCompleteResponseTime { get; set; } public string DefaultCol2 { get; set; } public string DefaultCol3 { get; set; } //public string Status { get; set; } // public object Message { get; set; } public string StateName { get; set; } public string CityName { get; set; } public string CallerLanguage { get; set; } public string Warranty { get; set; } public string TollFreeeNoSource { get; set; } /// /// Get or set Vehicle Tagging like(LMD,BUS,HD) /// /// public string VehicleTagging { get; set; } public string OpportunityLost { get; set; } public string OpportunityLostType { get; set; } public string _24HrsReason { get; set; } public double? TotalTicketCloseHours { get; set; } public string FeedBackAgenName { get; set; } public string ReasonBeyond24Hrs { get; set; } public string EstimateDistance { get; set; } public string KmCovered { get; set; } public string CallStatus { get; set; } public string TicketIdAlias { get; set; } public string OtherRemarks { get; set; } public string CreationTime { get; set; } public string ticketPrevStatusAliasId { get; set; } public string ChassisNo { get; set; } public string OdometerReading { get { if (string.IsNullOrEmpty(_OdometerReading)) { _OdometerReading = ""; } return _OdometerReading; } set { if (string.IsNullOrEmpty(_OdometerReading)) { _OdometerReading = "0.0"; } else _OdometerReading = value; } } public string _previous_odometer_reading = "0"; public string PreviousOdometerReading { get { if (string.IsNullOrEmpty(_previous_odometer_reading)) { _previous_odometer_reading = ""; } return _previous_odometer_reading; } set { if (string.IsNullOrEmpty(_previous_odometer_reading)) { _previous_odometer_reading = "0.0"; } else _previous_odometer_reading = value; } } public string VehicleType { get; set; } //added below on 25-11-2020 public string TicketClosedReason { get; set; } public string van_reached_punch_time { get; set; } //added on 23-12-2020 public DateTime positionDateTime { get; set; } //added on 23/06/2021 Telematic insert //added by mayuri on 17 july 2025 public bool IsEPS { get; set; } public string EPS_prod_type { get; set; } } //---------------added on 23-12-2020(start)----------------------------- public class VanReachedTimeModel { public string Token { get; set; } public string VanReachedTime { get; set; } public string TicketIdAlias { get; set; } public string Status { get; set; } public string Message { get; set; } } //---------------added on 23-12-2020 (end)---------------------------------- public class TicketOpenCloseModel { public string _OdometerReading = "0"; public string _CreationTime = ""; public string TicketId { get; set; } public string Description { get; set; } public string AssignedTo { get; set; } public object ReportedVia { get; set; } public int TicketStatus { get; set; } public int Priority { get; set; } public object CustomerScore { get; set; } public string CreatedBy { get; set; } public string CreationTime { get { return _CreationTime; } set { _CreationTime = value; } } public string LastModifiedBy { get; set; } public string LastModifiedTime { get; set; } public string BreakdownLocation { get; set; } public string BreakdownLongitude { get; set; } public string BreakdownLattitude { get; set; } public string current_lat { get; set; } public string current_long { get; set; } public string AssignedToUserId { get; set; } public string AssignedToUserLattitude { get; set; } public string AssignedToUserLongitude { get; set; } public bool Isdeclined { get; set; } public int EstimatedTimeForJobCompletion { get; set; } public int? TotalTicketLifecycleTimeSla { get; set; } public string EstimatedTimeForJobCompletionSubmitTime { get; set; } public string VehicleRegisterNumber { get; set; } public string BreakdownLocationLandmark { get; set; } public int RouteId { get; set; } public string CustomerContactNo { get; set; } public int UsersId { get; set; } public string UsersAuthEngineId { get; set; } public string UsersUserName { get; set; } public string UsersDesignation { get; set; } public object UsersObjectId { get; set; } public string UsersCity { get; set; } public string UsersState { get; set; } public object UsersRegion { get; set; } public string UsersLanguage { get; set; } public string TimezoneInfoDisplayName { get; set; } public string UserOrganizationName { get; set; } public string UserOrganizationAlias { get; set; } public object UserOrganizationCity { get; set; } public object UserOrganizationState { get; set; } public string UserOrganizationCountry { get; set; } public string UserOrganizationRegion { get; set; } public string DealerOrVanId { get; set; } public string DealerOrVanName { get; set; } public string DealerOrVanDefaultLattitude { get; set; } public string DealerOrVanDefaultLongitude { get; set; } public string DealerOrVanCity { get; set; } public string DealerOrVanState { get; set; } public string TicketStatusAlias { get; set; } public object RepairCost { get; set; } public int DefaultSlaTime { get; set; } public object SlaMissedReason { get; set; } public object SuggestionComment { get; set; } public string TicketClosedReason { get; set; } //added on 25-11-2020 public object JobCompleteResponseTime { get; set; } public string DefaultCol2 { get; set; } public string DefaultCol3 { get; set; } public object Token { get; set; } public string Status { get; set; } public object Message { get; set; } public int UtcMinute { get; set; } public object OpenCloseStatus { get; set; } public string DealerOrServiceEnggContactNumber { get; set; } public string ReasonForcloseTicketmorethan24Hrs { get; set; } public string RemarkTicketNotClosed24Hours { get; set; } public string OpportunityLossReason { get; set; } public string EstimatedDistance { get; set; } public string ActualDistance { get; set; } public string Dealerdealer_name { get; set; } public string DealerContactNumber1 { get; set; } public string DealerCity { get; set; } public string DealerState { get; set; } public string ChassisNo { get; set; } public string ChassisNumber { get; set; } public string VehicleInstallationDate { get; set; } public string KmCovered { get; set; } public string WM_Name { get; set; } public string Dealer_Id { get; set; } public string Vehicle_tagging { get; set; } public string TicketIdAlias { get; set; } /// /// Get or set van device alias /// public string Device_Alias { get; set; } public string TripStart { get; set; } public string TripEnd { get; set; } public double? VanKmCovered { get; set; } public string ticketPrevStatusAliasId { get; set; } public bool CreationTimeMorethan24Hrs { get { bool _CreationTimeMorethan24Hrs = false; if (_CreationTime != "") { DateTime dtNow = DateTime.Parse(_CreationTime); double dtDiff = (DateTime.Now - dtNow).TotalMinutes; if (dtDiff > 1440) { _CreationTimeMorethan24Hrs = true; } } return _CreationTimeMorethan24Hrs; } } public string OdoMeter { get { if (string.IsNullOrEmpty(_OdometerReading)) { _OdometerReading = "0.0"; } return _OdometerReading; } set { _OdometerReading = value; } } public string _previous_odometer_reading = "0"; public string PreviousOdometerReading { get { if (string.IsNullOrEmpty(_previous_odometer_reading)) { _previous_odometer_reading = "0.0"; } return _previous_odometer_reading; } set { _previous_odometer_reading = value; } } //public double PreviousOdometerReading { get; set; } public string VehicleType { get; set; } //added on 6-05-2020 public string FeedbackCallStatus { get; set; } //added on 8-05-2020 public string TollFreeNoSource { get; set; } //added on 27/11/2020 public string vehicle_warranty { get; set; } public string vehicle_amc { get; set; } public string vehicle_emission_norms { get; set; } public string vehicle_sales_date { get; set; } public string customer_type { get; set; } public string customer_id { get; set; } //ended on 27/11/2020 public string van_reached_punched_time { get; set; } //added on 23-12-2020 public string OTP { get; set; } } /// /// get all Telematic Details /// public class Telematic_Model { public string status { get; set; } public string latitude { get; set; } public string longitude { get; set; } public string chassis_no { get; set; } public DateTime positionDateTime { get; set; } public string odometer { get; set; } } /// /// get all routes /// public class RouteModel { public int Id { get; set; } public string Name { get; set; } public string Alias { get; set; } public object Tagging { get; set; } public object SlaTime { get; set; } public object Token { get; set; } public object Status { get; set; } public object Message { get; set; } public int UtcMinute { get; set; } } public class CustomerModel { private string _thirdPartyInfoupdatedornot = "false"; public string CustomerId { get; set; } //added on 6-07-2020 [Display(Name = "Kam User")] public string KamUser { get; set; } //-------- vehicle details -----------// //[Required(ErrorMessage = "*")] [Display(Name = "Registration Number")] public string VehicleRegistrationNumber { get; set; } [Required(ErrorMessage = "*")] [Display(Name = "Model No.")] public string VehicleModelNumber { get; set; } [Required(ErrorMessage = "*")] [Display(Name = "Product Variant")] public string CustomerVehicleModelTagging { get; set; } [Required(ErrorMessage = "*")] [Display(Name = "Chassis No.")] public string VehicleNumberPlate { get; set; } [Required(ErrorMessage = "*")] [Display(Name = "Engine No.")] public string Engine_no { get; set; } [Required(ErrorMessage = "*")] [Display(Name = "Breakdown Reason")] public string nature_of_problem_creation_eps { get; set; } [Display(Name = "Vehicle Type")] public string VehicleType { get; set; } //for insert date //[Required(ErrorMessage = "*")] [Display(Name = "Vehicle Installation Date")] public string InstallationDate { get; set; } //to get date [Display(Name = "Vehicle Installation Date")] public string VehicleInstallationDate { get; set; } //-------- owner details -----------// [Required(ErrorMessage = "*")] [RegularExpression(@"^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$", ErrorMessage = "Please enter correct format")] //Entered phone format is not valid. [Display(Name = "Contact No.")] public string CustomerOwnerMobileNo1 { get; set; } [Required(ErrorMessage = "*")] //[RegularExpression(@"^[a-zA-Z\s\.]+$", ErrorMessage = "Please enter correct format")] //Only alphabets, dots and spaces are allowed //[RegularExpression(@"^[A-Za-z\s]{1,}[\.]{0,1}[A-Za-z\s]{0,}$", ErrorMessage = "Please enter correct format")] //Only alphabets, dot and spaces are allowed //[RegularExpression(@"^[a-zA-Z ]+$", ErrorMessage = "Please enter correct format")] //Only alphabets and spaces are allowed [Display(Name = "Name")] public string CustomerOwnerName { get; set; } /// /// Get or set CustomerEmailId /// //[Required(ErrorMessage = "*")] [Display(Name = "Email Id")] [RegularExpression("^[A-Za-z0-9._+\\-\\']+@[A-Za-z0-9.\\-]+\\.[A-Za-z]{2,}$", ErrorMessage = "Please enter correct email address.")] public string CustomerOwnerEmailId { get; set; } /// Get or set CustomerAddress /// //[Required(ErrorMessage = "*")] [Display(Name = "Address")] public string CustomerOwnerAddress { get; set; } /// /// Get or set CustomerState /// [Required(ErrorMessage = "*")] [Display(Name = "State")] public string CustomerOwnerState { get; set; } public string CustomerOwnerStateName { get; set; } /// /// Get or set CustomerCity /// [Required(ErrorMessage = "*")] [Display(Name = "City")] public string CustomerOwnerCity { get; set; } //---------- customer details -------------// [Required(ErrorMessage = "*")] [RegularExpression(@"^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$", ErrorMessage = "Please enter correct format")] [Display(Name = "Contact No.")] public string CustomerMobileNumber1 { get; set; } [Required(ErrorMessage = "*")] //[RegularExpression(@"^[a-zA-Z ]+$", ErrorMessage = "Please enter correct format")]^[a-zA-Z\s\.]+$ //[RegularExpression(@"^[a-zA-Z\s\.]+$", ErrorMessage = "Please enter correct format")] //Only alphabets, dots and spaces are allowed //[RegularExpression(@"^[A-Za-z\s]{1,}[\.]{0,1}[A-Za-z\s]{0,}$", ErrorMessage = "Please enter correct format")] //Only alphabets, dot and spaces are allowed [Display(Name = "Name")] public string CustomerCustomerName { get; set; } //[Required(ErrorMessage = "*")] [Display(Name = "Email Id")] [RegularExpression("^[A-Za-z0-9._+\\-\\']+@[A-Za-z0-9.\\-]+\\.[A-Za-z]{2,}$", ErrorMessage = "Please enter correct email address.")] public string CustomerEmailId { get; set; } //[Required(ErrorMessage = "*")] [Display(Name = "Address")] public string CustomerAddress { get; set; } [Display(Name = "State")] public string CustomerState { get; set; } public string CustomerStateName { get; set; } [Display(Name = "City")] public string CustomerCity { get; set; } [Display(Name = "Customer Alias")] public string CustomerAlias { get; set; } [Display(Name = "Contact Number2")] public string CustomerMobileNumber2 { get; set; } [Display(Name = "Contact Number3")] public string CustomerMobileNumber3 { get; set; } [Display(Name = "Owner Alias")] public string CustomerOwnerAlias { get; set; } [Display(Name = "Owner Contact Number")] public string CustomerOwnerMobileNo2 { get; set; } [Display(Name = "Owner Contact Number2")] public string CustomerOwnerMobileNo3 { get; set; } public string CustomerVehicleCustomerId { get; set; } public string CustomerVehicleVehicleId { get; set; } public string CustomerVehicleModelId { get; set; } public string CustomerVehicleModelName { get; set; } public bool CustomerVehicleIsOwnwer { get; set; } public string VehicleId { get; set; } //--------- only for customer details list ------// public object UtcMinute { get; set; } public object TicketNo { get; set; } public string CustomerName { get; set; } public string CustomerMobile1 { get; set; } public object CustomerMobile2 { get; set; } public object CustomerMobile3 { get; set; } //------------------- end ----------------------// public string Token { get; set; } public string Status { get; set; } public string Message { get; set; } /// /// for checking radio button selection /// public string selection { get; set; } public string thirdPartyInfoupdatedornot { get { if (_thirdPartyInfoupdatedornot.ToLower() == "on") { _thirdPartyInfoupdatedornot = "true"; } return _thirdPartyInfoupdatedornot; } set { _thirdPartyInfoupdatedornot = value; } } /// Get or set CustomerType /// public string CustomerType { get; set; } public string Id { get; set; } public string RegistrationNumber { get; set; } } public class CustomerNameModel { public List customerName { get; set; } } public class CustomerOwnerModel { public string CustomerId { get; set; } public string CustomerCustomerName { get; set; } public string CustomerAlias { get; set; } public string CustomerMobileNumber1 { get; set; } public object CustomerMobileNumber2 { get; set; } public object CustomerMobileNumber3 { get; set; } public string CustomerAddress { get; set; } public string CustomerEmailId { get; set; } public string CustomerCity { get; set; } public string CustomerState { get; set; } public string CustomerVehicleCustomerId { get; set; } public string CustomerVehicleVehicleId { get; set; } public bool CustomerVehicleIsOwner { get; set; } public string VehicleId { get; set; } public string VehicleRegistrationNumber { get; set; } public string VehicleNumberPlate { get; set; } public string VehicleModelNumber { get; set; } public string CustomerVehicleModelId { get; set; } public object CustomerVehicleModelName { get; set; } public string CustomerVehicleModelTagging { get; set; } public object InIsOwner { get; set; } public object Token { get; set; } public string Status { get; set; } public object Message { get; set; } public string CustomerType { get; set; } //added on 15-01-2021 public string Id { get; set; } //added on 15-01-2021 } public class VehicleModel { public string Id { get; set; } public string RegistrationNo { get; set; } public string VehicleNumberPlate { get; set; } public string ModelNumber { get; set; } public bool Isdeleted { get; set; } public object Token { get; set; } public string Status { get; set; } public object Message { get; set; } public string VehicleType { get; set; } public string VehicleInstallationDate { get; set; } public DateTime VehicleInstallationDate1 { get; set; } } public class VehicleModelModel { //public string VehicleTypeId { get; set; } //public object VehicleTypeName { get; set; } //public string VehicleTypeTagging { get; set; } public object Token { get; set; } public string VehicleTypeId { get; set; } public string VehicleTypeName { get; set; } public string VehicleTypeTagging { get; set; } public object Status { get; set; } public object Message { get; set; } public object Operation { get; set; } public bool IsDeleted { get; set; } public string udanVehicleProductId { get; set; } public string udanVehicleProductName { get; set; } } public class VehicleTypeModel { public int Id { get; set; } public string ReasonName { get; set; } public string ReasonAlias { get; set; } public string TypeId { get; set; } public string TypeAlias { get; set; } } public class CustomerVehicleModel { /// /// Get or set token /// public string Token { get; set; } public int? Status { get; set; } public int? UtcMinute { get; set; } public string Message { get; set; } public string TicketNo { get; set; } public string CustomerId { get; set; } public string CustomerName { get; set; } public string CustomerAlias { get; set; } /// /// Get or set CustomerMobile1 /// public string CustomerMobile1 { get; set; } /// /// Get or set CustomerMobile2 /// public string CustomerMobile2 { get; set; } /// /// Get or set CustomerMobile3 /// public string CustomerMobile3 { get; set; } /// /// Get or set CustomerAddress /// public string CustomerAddress { get; set; } /// /// Get or set CustomerEmailId /// public string CustomerEmailId { get; set; } /// /// Get or set CustomerCity /// public string CustomerCity { get; set; } /// /// Get or set CustomerState /// public string CustomerState { get; set; } /// /// Get or set CustomerVehicleCustomerId /// public string CustomerVehicleCustomerId { get; set; } /// /// Get or set CustomerVehicleVehicleId /// public string CustomerVehicleVehicleId { get; set; } /// Get or set CustomerVehicleIsOwnwer /// public Boolean? CustomerVehicleIsOwnwer { get; set; } /// Get or set VehicleId /// public string VehicleId { get; set; } /// Get or set VehicleRegistrationNumber /// public string VehicleRegistrationNumber { get; set; } /// Get or set VehicleNumberPlate /// public string VehicleNumberPlate { get; set; } /// Get or set VehicleModelNumber /// public string VehicleModelNumber { get; set; } } public class EscalationLevelList { public string DelaerId { get; set; } [Display(Name = "Manager Name")] public string ManagerName { get; set; } [Display(Name = "Manager Level")] public string ManagerLevel { get; set; } [Display(Name = "Manager Contact No.")] public string ManagerPhoneNo { get; set; } public string VehicleType { get; set; } } public class EscalationMemberLevel { public object Message { get; set; } public string Status { get; set; } public List EscalationLevelList { get; set; } } //public class TicketOpenModel //{ // public String Token { get; set; } // public string Status { get; set; } // public string Message { get; set; } // public string Id { get; set; } // public string Description { get; set; } // public string AssignedTo { get; set; } // public string ReportedVia { get; set; } // public int? TicketStatus { get; set; } // public int? Priority { get; set; } // public string CutomerScore { get; set; } // public string CreatedBy { get; set; } // public string CreationTime { get; set; } // public string LastModifiedBy { get; set; } // public string LastModifiedTime { get; set; } // public string BreakDownLocation { get; set; } // public string BreackDownLongitude { get; set; } // public string BreackDownLatitude { get; set; } // public string AssignedToUserId { get; set; } // public string AssignedToUserLongitude { get; set; } // public string AssignedToUserLatitude { get; set; } // public Boolean? IsDeclined { get; set; } // public int? EstimatedTimeForJobComplition { get; set; } // public int? TotalTicketLifeCycleTimeSlab { get; set; } // public string EstimatedTimeForJobComplitionSubmitTime { get; set; } // public string VehicleRegistrationNo { get; set; } //} //public class TicketCloseModel //{ // public String Token { get; set; } // public string Status { get; set; } // public string Message { get; set; } // public string Id { get; set; } // public string Description { get; set; } // public string AssignedTo { get; set; } // public string ReportedVia { get; set; } // public int? TicketStatus { get; set; } // public int? Priority { get; set; } // public string CutomerScore { get; set; } // public string CreatedBy { get; set; } // public string CreationTime { get; set; } // public string LastModifiedBy { get; set; } // public string LastModifiedTime { get; set; } // public string BreakDownLocation { get; set; } // public string BreackDownLongitude { get; set; } // public string BreackDownLatitude { get; set; } // public string AssignedToUserId { get; set; } // public string AssignedToUserLongitude { get; set; } // public string AssignedToUserLatitude { get; set; } // public Boolean? IsDeclined { get; set; } // public int? EstimatedTimeForJobComplition { get; set; } // public int? TotalTicketLifeCycleTimeSlab { get; set; } // public string EstimatedTimeForJobComplitionSubmitTime { get; set; } // public string VehicleRegistrationNo { get; set; } //} //public class CustomerTicketHistory //{ // public string Status { get; set; } // public string Message { get; set; } // public List ListOpenTicket { get; set; } // public List ListCloseTicket { get; set; } //} public class TicketStatus { public Int64? Id { get; set; } public string Alias { get; set; } public int? SequenceNo { get; set; } public string StatusName { get; set; } public string Status { get; set; } public string Token { get; set; } public String Message { get; set; } } public class VanDealerModel { public object UserId { get; set; } public object StateName { get; set; } public object Limit { get; set; } public string DealerVanId { get; set; } public string DealerVanName { get; set; } public string DealerVanLattitude { get; set; } public string DealerVanLongitude { get; set; } public string DealerVanCity { get; set; } public string DealerVanState { get; set; } public string DeviceAlias { get; set; } public int NoOfAssignedTicket { get; set; } public string RemainingTime { get; set; } public string Type { get; set; } public string DeviceStatus { get; set; } public object Token { get; set; } public object Status { get; set; } public object Message { get; set; } public int UtcMinute { get; set; } /// /// Get or set dealer van id /// public string DealerSCode { get; set; } /// /// Get or set dealer van id /// public string DealerOrVanContactNo { get; set; } } /// /// get open tickets activity /// public class OpenTicketActivityDetails { public object TicketId { get; set; } public string Id { get; set; } public string ActivityTicketsOpenCreatedBy { get; set; } public string ActivityTicketsOpenCreationTime { get; set; } public string Remarks { get; set; } public string TicketStatusAlias { get; set; } public object Token { get; set; } public string Status { get; set; } public object Message { get; set; } public int UtcMinute { get; set; } } /// /// get close tickets activity /// public class CloseTicketActivityDetails { public object TicketId { get; set; } public string TicketsClosedId { get; set; } public string ActivityTicketsCloseCreatedBy { get; set; } public string ActivityTicketsCloseCreationTime { get; set; } public string Remarks { get; set; } public string TicketStatusAlias { get; set; } public object Token { get; set; } public object Status { get; set; } public object Message { get; set; } public int UtcMinute { get; set; } } #region feedback model public class FeedbackSuggestionComplaintModel { public int Id { get; set; } public string ReasonName { get; set; } public string ReasonAlias { get; set; } public string TypeId { get; set; } public string TypeAlias { get; set; } } public class FeedBackModelOld { public string Token { get; set; } public string Status { get; set; } public string Message { get; set; } public string TicketId { get; set; } public string ReasonMoreThan24Hrs { get; set; } public string CallStatus { get; set; } public string SuggestionComplaint { get; set; } public string Complaint { get; set; } public string FeedBackEaseOfGettingCall { get; set; } public string FeedBackResponseOfCallCenter { get; set; } public string FeedBackTimelyUpdationByDealer { get; set; } public string FeedBackTotalRepairTime { get; set; } public string FeedBackEosCharges { get; set; } public string FeedBackOverAllExperience { get; set; } public string OtherRemark { get; set; } public string FeedBackagent { get; set; } public string CreationTime { get; set; } public int UtcMinute { get; set; } } public class FeedBackModel { public object Token { get; set; } public string Status { get; set; } public object Message { get; set; } public string TicketId { get; set; } [Display(Name = "Reason for more than 24 Hours")] public string ReasonMoreThan24Hrs { get; set; } [Display(Name = "Call Status")] public string CallStatus { get; set; } [Display(Name = "Suggestion")] public string SuggestionComplaint { get; set; } public string FeedBackEaseOfGettingCall { get; set; } public string FeedBackResponseOfCallCenter { get; set; } public string FeedBackTimelyUpdationByDealer { get; set; } public string FeedBackTotalRepairTime { get; set; } public string FeedBackEosCharges { get; set; } public string FeedBackOverAllExperience { get; set; } public string OtherRemark { get; set; } public string FeedBackagent { get; set; } public string CreationTime { get; set; } public int UtcMinute { get; set; } [Display(Name = "Complaint")] public string Complaint { get; set; } public string State { get; set; } public string City { get; set; } public string CallerLanguage { get; set; } public string Warranty { get; set; } public string TollFreeNoSource { get; set; } public string OpportunityLoss { get; set; } [Display(Name = "Suggestion")] //public List SuggestionComplaintList { get; set; } public string[] SuggestionComplaintList { get; set; } [Display(Name = "Complaint")] //public List ComplaintList { get; set; } public string[] ComplaintList { get; set; } public string otherSuggestion { get; set; } public string otherComplaint { get; set; } public string otherCallStatus { get; set; } public List feedbackHistoryList { get; set; } //added on 28-04-2020 for single feedback question public string FeedbackCustomerSatisfaction { get; set; } [Required(ErrorMessage = "*")] [Display(Name = "Select Any Option")] public string CustomerNotSatisfiedOptions { get; set; } [Display(Name = "CustomerNotSatisfied")] public string[] CustomerNotSatisfiedQuestionsList { get; set; } public string IsSatisfied { get; set; } public bool? IsCustomerSatisfied { get; set; } public string SelectedOption { get; set; } public string SelectedReason { get; set; } [Required(ErrorMessage = "*")] [Display(Name = "Reason")] public string CustomerNotSatisfiedComment { get; set; } public string[] FeedBackReasons { get; set; } } public class FeedbackHistoryList { public string TicketId { get; set; } public string CreatedBy { get; set; } public string CreationTime { get; set; } public string CallStatus { get; set; } public object Remarks { get; set; } //added on 30-04-2020 public string FeedbackAgent { get; set; } public string IsSatisfied { get; set; } public string SelectedOption { get; set; } public string SelectedReason { get; set; } } #endregion #region Manage Escalation /// /// Class contains Escalation Matrix status and details /// public class EscalationModel : EscalationMatrix { /// /// Get or Set Token /// public string Token { get; set; } /// /// Get or Set Message /// public string Message { get; set; } /// /// Get or Set Status /// public string Status { get; set; } /// /// Get or Set Action(what operation want to perform) /// public string Action { get; set; } /// /// Get or set Limit /// public int? Limit { get; set; } /// /// Get or set OffSet /// public int? OffSet { get; set; } /// /// Get or set /// public int TicketCount { get; set; } /// /// Get or set /// public string Condition { get; set; } /// /// Get or Set List of Escalation Matrix /// public List EscalationMatrixList { get; set; } } public class EscalationMatrix { public string id { get; set; } public string _editEscalationAll = "0"; [Required(ErrorMessage = "*")] [Display(Name = "Manager Name")] public string manager_name { get; set; } //[Required] [Display(Name = "Region")] public string region_name { get; set; } [Required(ErrorMessage = "*")] [Display(Name = "Organization")] public int? organization_id { get; set; } [Required(ErrorMessage = "*")] [Display(Name = "City")] public string city { get; set; } [Required(ErrorMessage = "*")] [Display(Name = "State")] public string state { get; set; } //[Required] //[Display(Name = "Manager Name")] public string StateName { get; set; } //[Required] [Display(Name = "SCode")] public string dealer_name_id { get; set; } [Required(ErrorMessage = "*")] [Display(Name = "Dealer (SCode)")] public string dealer_name { get; set; } [Display(Name = "Dealer (SCode)")] public string sDlrNamewithDealerId { get { if (Convert.ToString(dealer_name_id) == "" || Convert.ToString(dealer_name_id) == null) return dealer_name; else return dealer_name + " (" + dealer_name_id + ")"; } } [Required(ErrorMessage = "*")] [Display(Name = "Manager Level")] public string manager_level { get; set; } //[Required] [Display(Name = "Blind Spot")] public string blind_spot { get; set; } [Required(ErrorMessage = "*")] [Display(Name = "Email Address")] public string emails { get; set; } [Required(ErrorMessage = "*")] [Display(Name = "Contact No.")] //[RegularExpression(@"^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$", ErrorMessage = "Please enter correct format")] //Entered phone format is not valid. public string phones { get; set; } [Required(ErrorMessage = "*")] [Display(Name = "Product Variant")] public string van_type { get; set; } //[Required] [Display(Name = "Van Not Move(In Min)")] public int? alarm_age { get; set; } //[Required] [Display(Name = "Notification Type")] public string notification_type { get; set; } //[Required] [Display(Name = "SLA Not Met(In Min)")] public int? alarm_age_sla_not_met { get; set; } //[Required] [Display(Name = "Ticket Not Closed(In Min)")] public int? alarm_age_ticket_not_closed { get; set; } //[Required] [Display(Name = "Van Not Live(In Min)")] public int? alarm_age_van_not_live { get; set; } //[Required] [Display(Name = "Organization Name")] public string organization_name { get; set; } //[Required] //[Display(Name = "Manager Name")] public string EmailType { get; set; } //[Required] //[Display(Name = "Manager Name")] public string SMSType { get; set; } //[Required] [Display(Name = "Eicher Promise(In Min)")] public int? alarm_age_eicher_promise_48hrs { get; set; } /// /// old contact nos /// public string oldContactNo { get; set; } public List VehicleTaggingList { get; set; } /// /// Get or Set Organization Name /// public string customer_group { get; set; } /// /// Get or Set Alarm Age Van Not Live(in min) /// public string vehicle_model_name { get; set; } /// /// Get or Set Alarm Age Van Not Live(in min) /// public string vehicle_registration_number { get; set; } /// /// Get or Set Alarm Age Van Not Live(in min) /// public string action_escalation { get; set; } [Display(Name = "Replace for All")] public string editEscalationAll { get { if (_editEscalationAll.ToLower() == "on") { _editEscalationAll = "1"; } return _editEscalationAll; } set { _editEscalationAll = value; } } } #endregion #region Dealer List Model public class DealerListOrganizationWise { public object Id { get; set; } public string DealerId { get; set; } public int DealerOrganizationId { get; set; } public string DealerDealerName { get; set; } public string DealerCity { get; set; } public string DealerState { get; set; } public string DealerDealerDefaultLattitude { get; set; } public string DealerDealerDefaultLongitude { get; set; } public object DealerContactNo { get; set; } public object DealerContactNo2 { get; set; } public object Status { get; set; } public string DealerOrgName { get; set; } public string OrgPath { get; set; } public string Region { get; set; } public bool IsDeleted { get; set; } public object Message { get; set; } public object Token { get; set; } public string sDlrNamewithDealerId { get { if (Convert.ToString(DealerId) == "" || Convert.ToString(DealerId) == null) return DealerDealerName; else return DealerDealerName + " (" + DealerId + ")"; } } } #region dealer list for dealer wise dashboard /// /// This class contain dealer details properties for dealer wise dashboard. /// public class DealerUserIdList { public int? Id { get; set; } /// /// get or set Dealer Id /// public string DealerId { get; set; } /// /// get or set Dealer Organization Id /// public int? DealerOrganizationId { get; set; } /// /// get or set Dealer Name /// public string DealerDealerName { get; set; } /// /// get or set Dealer City /// public string DealerCity { get; set; } /// /// get or set Dealer State /// public string DealerState { get; set; } /// /// get or set Dealer Defaul tLattitude /// public string DealerDealerDefaultLattitude { get; set; } /// /// get or set Dealer Default Longitude /// public string DealerDealerDefaultLongitude { get; set; } /// /// get or set Dealer Contact No /// public string DealerContactNo { get; set; } /// /// get or set Dealer Contact No2 /// public string DealerContactNo2 { get; set; } /// /// get or set Status /// public string Status { get; set; } /// /// get or set Dealer Org Name /// public string DealerOrgName { get; set; } /// /// get or set Org Path /// public string OrgPath { get; set; } /// /// get or set Region /// public string Region { get; set; } /// /// get or set Is Deleted Dealer /// public bool? IsDeleted { get; set; } /// /// get or set Message /// public string Message { get; set; } /// /// get or set Token /// public string Token { get; set; } /// /// get or set Is Deleted Dealer /// public Int64? dealer_user_id { get; set; } /// /// get or set Message /// public string dealer_first_name { get; set; } /// /// get or set Token /// public string dealer_last_name { get; set; } public string sDlrNamewithDealerId { get { if (Convert.ToString(DealerId) == "" || Convert.ToString(DealerId) == null) return DealerDealerName; else return DealerDealerName + " (" + DealerId + ")"; } } } #endregion #endregion #region kam ticket model /// /// Model for KAM ticket /// public class KamTicketModel { public object Id { get; set; } public string KamTicketId { get; set; } public object TicketId { get; set; } public object TicketIdAlias { get; set; } public string Description { get; set; } public object AssignedTo { get; set; } public object ReportedVia { get; set; } public object TicketStatus { get; set; } public int Priority { get; set; } public object CustomerScore { get; set; } public string CreatedBy { get; set; } public string CreationTime { get; set; } public object LastModifiedBy { get; set; } public string LastModifiedTime { get; set; } public string BreakdownLocation { get; set; } public string BreakdownLongitude { get; set; } public string BreakdownLattitude { get; set; } public object AssignedToUserId { get; set; } public object AssignedToUserLattitude { get; set; } public object AssignedToUserLongitude { get; set; } public bool Isdeclined { get; set; } public object EstimatedTimeForJobCompletion { get; set; } public int TotalTicketLifecycleTimeSla { get; set; } public string EstimatedTimeForJobCompletionSubmitTime { get; set; } public string VehicleRegisterNumber { get; set; } public object BreakdownLocationLandmark { get; set; } public string BreakdownLocationState { get; set; } public string BreakdownLocationCity { get; set; } public int RouteId { get; set; } public string CustomerContactNo { get; set; } public object UsersId { get; set; } public object UsersAuthEngineId { get; set; } public object UsersUserName { get; set; } public object UsersDesignation { get; set; } public object UsersObjectId { get; set; } public object UsersCity { get; set; } public object UsersState { get; set; } public object UsersRegion { get; set; } public object UsersLanguage { get; set; } public object TimezoneInfoDisplayName { get; set; } public object UserOrganizationName { get; set; } public object UserOrganizationAlias { get; set; } public object UserOrganizationCity { get; set; } public object UserOrganizationState { get; set; } public object UserOrganizationCountry { get; set; } public object UserOrganizationRegion { get; set; } public object DealerOrVanId { get; set; } public object DealerOrVanName { get; set; } public object DealerOrVanDefaultLattitude { get; set; } public object DealerOrVanDefaultLongitude { get; set; } public object DealerOrVanCity { get; set; } public object DealerOrVanState { get; set; } public object TicketStatusAlias { get; set; } public object RepairCost { get; set; } public int DefaultSlaTime { get; set; } public object SlaMissedReason { get; set; } public object SuggestionComment { get; set; } public object JobCompleteResponseTime { get; set; } public object DefaultCol2 { get; set; } public object DefaultCol3 { get; set; } public object Token { get; set; } public string Status { get; set; } public object Message { get; set; } public int UtcMinute { get; set; } public object OpenCloseStatus { get; set; } public object DealerOrServiceEnggContactNumber { get; set; } public object OpportunityLossReason { get; set; } public string EstimatedDistance { get; set; } public object Dealerdealer_name { get; set; } public object DealerContactNumber1 { get; set; } public object DealerCity { get; set; } public object DealerState { get; set; } public object ChassisNo { get; set; } public int KmCovered { get; set; } public object ActualDistance { get; set; } public object WM_Name { get; set; } public object Dealer_Id { get; set; } public string Vehicle_tagging { get; set; } public object Device_Alias { get; set; } public string CallerLanguage { get; set; } public string Warrenty { get; set; } public string TollFreeNoSource { get; set; } public string CustomerCustomerName { get; set; } } #endregion #region Dummy ticket model /// /// contains properties for customer open tickets /// public class DummyOpenTicketDetail { /// /// Get or set extra property /// public Int32 DummyId { get; set; } /// /// Get or set ticket id /// public string TicketId { get; set; } /// /// Get or set ticket id alias /// public string TicketIdAlias { get; set; } /// /// Get or set description /// public string Description { get; set; } /// /// Get or set assigned to /// public string AssignedTo { get; set; } /// /// Get or set reported via /// public string ReportedVia { get; set; } /// /// Get or set ticket status /// public int? TicketStatus { get; set; } /// /// Get or set priority /// public int? Priority { get; set; } /// /// Get or set customer score /// public string CustomerScore { get; set; } /// /// Get or set created by /// public string CreatedBy { get; set; } /// /// Get or set creation time /// public string CreationTime { get; set; } /// /// Get or set last modified by /// public string LastModifiedBy { get; set; } /// /// Get or set last modified time /// public string LastModifiedTime { get; set; } /// /// Get or set breakdown location /// public string BreakdownLocation { get; set; } /// /// Get or set breakdown longitude /// public string BreakdownLongitude { get; set; } /// /// Get or set breakdown latitude /// public string BreakdownLattitude { get; set; } /// /// Get or set assigned to user id /// public string AssignedToUserId { get; set; } /// /// Get or set assigned to user latitude /// public string AssignedToUserLattitude { get; set; } /// /// Get or set assigned to user longitude /// public string AssignedToUserLongitude { get; set; } /// /// Get or set IsDeclined bit /// public Boolean? Isdeclined { get; set; } /// /// Get or set estimated time for job completion /// public int? EstimatedTimeForJobCompletion { get; set; } /// /// Get or set ticket life cycle time /// public int? TotalTicketLifecycleTimeSla { get; set; } /// /// Get or set estimated time for job completion submit time /// public string EstimatedTimeForJobCompletionSubmitTime { get; set; } /// /// Get or set vehicle registration number /// public string VehicleRegisterNumber { get; set; } /// /// Get or set breakdown landmark /// public string BreakdownLocationLandmark { get; set; } /// /// Get or set Breakdown state /// public string BreakdownLocationState { get; set; } /// /// Get or set Breakdown city /// public string BreakdownLocationCity { get; set; } /// /// Get or set route id /// public int? RouteId { get; set; } /// /// Get or set customer contact number /// public string CustomerContactNo { get; set; } /// /// Get or set ticket status alias /// public string TicketStatusAlias { get; set; } /// /// Get or set repair cost /// public string RepairCost { get; set; } /// /// Get or set defalut sla time /// public int? DefaultSlaTime { get; set; } /// /// Get or set sla missed reason /// public string SlaMissedReason { get; set; } /// /// Get or set suggestion comment /// public string SuggestionComment { get; set; } /// /// Get or set job complete response time /// public string JobCompleteResponseTime { get; set; } /// /// Get or set extra property /// public string DefaultCol2 { get; set; } /// /// Get or set extra property /// public string DefaultCol3 { get; set; } /// /// Get or set extra property /// public string CallerLanguage { get; set; } /// /// Get or set extra property /// public string Warranty { get; set; } /// /// Get or set extra property /// public string TollFreeNoSource { get; set; } /// /// Get or set extra property /// public string StateName { get; set; } /// /// Get or set extra property /// public string CityName { get; set; } /// /// Get or set extra property /// public string EstimatedDistance { get; set; } /// /// Get or set extra property /// public string OpportunityLoss { get; set; } /// /// Get or set extra property /// public string KmCovered { get; set; } /// /// Get or set extra property /// public string VehicleTagging { get; set; } /// /// Get or set extra property /// public string ReasonForMoreThan24Hours { get; set; } /// /// Get or set extra property /// public string CallStatus { get; set; } /// /// Get or set extra property /// public string SuggestionComplaint { get; set; } /// /// Get or set extra property /// public string CustomerName { get; set; } /// /// Get or set security token /// public string Token { get; set; } /// /// Get or set status /// public string Status { get; set; } /// /// Get or set message /// public string Message { get; set; } /// /// Get or set UTC minute /// public int UtcMinute { get; set; } } #endregion /// /// this class contain properties of state details. /// /// public class Engine_SRCH_Model { public string EngineNo { get; set; } public string ChassisNo { get; set; } public string EngineSearch { get; set; } public string VehRegNo { get; set; } /// /// Get or Set security token /// public string Token { get; set; } /// /// Get or Set message /// public string Message { get; set; } public string VehicleType { get; set; } public string Status { get; set; } } public class CHASSIS_SRCH_Model { public string ChassisNo { get; set; } public string ChassisSearch { get; set; } public string VehRegNo { get; set; } public string VehicleType { get; set; } /// /// Get or Set security token /// public string Token { get; set; } /// /// Get or Set message /// public string Message { get; set; } } public class CHASSIS_ODOMETER_Model { public string ChassisNo { get; set; } public string TicketID { get; set; } public string OdoMeterReading { get; set; } /// /// Get or Set security token /// public string Token { get; set; } /// /// Get or Set message /// public string Message { get; set; } public string VehicleType { get; set; } } // added on 18-06-2020 /// /// contains properties for open ticket /// /// public class GetDummyTicket { /// /// Get or set KAM ticket id /// public string KamTicketId { get; set; } /// /// Get or set ticket id /// public string TicketId { get; set; } public int DummyTicketId { get; set; } /// /// Get or set description /// public string Description { get; set; } /// /// Get or set assigned to /// public string AssignedTo { get; set; } /// /// Get or set reported via /// public string ReportedVia { get; set; } /// /// Get or set ticket status /// public int? TicketStatus { get; set; } /// /// Get or set priority /// public int? Priority { get; set; } /// /// Get or set customer score /// public string CustomerScore { get; set; } /// /// Get or set created by /// public string CreatedBy { get; set; } /// /// Get or set creation time /// //public DateTime? CreationTime { get; set; } public string CreationTime { get; set; } /// /// Get or set last modified by /// public string LastModifiedBy { get; set; } /// /// Get or set last modified time /// public DateTime? LastModifiedTime { get; set; } /// /// Get or set breakdown location /// public string BreakdownLocation { get; set; } /// /// Get or set breakdown longitude /// public string BreakdownLongitude { get; set; } /// /// Get or set breakdown latitude /// public string BreakdownLattitude { get; set; } /// /// Get or set assigned to user id /// public string AssignedToUserId { get; set; } /// /// Get or set assigned to user latitude /// public string AssignedToUserLattitude { get; set; } /// /// Get or set assigned to user longitude /// public string AssignedToUserLongitude { get; set; } /// /// Get or set IsDeclined /// public Boolean? IsDeclined { get; set; } /// /// Get or set estimated time for job completion /// public int? EstimatedTimeForJobCompletion { get; set; } /// /// Get or set ticket life cycle time /// public int? TotalTicketLifecycleTimeSla { get; set; } /// /// Get or set estimated time for job completion /// public DateTime? EstimatedTimeForJobCompletionSubmitTime { get; set; } /// /// Get or set vehicle registration number /// public string VehicleRegistrationNumber { get; set; } /// /// Get or set breakdown landmark /// public string BreakdownLocationLandmark { get; set; } /// /// Get or set route id /// public int? RouteId { get; set; } /// /// Get or set customer contact number /// public string CustomerContactNo { get; set; } /// /// Get or set repair cost /// public string RepairCost { get; set; } /// /// Get or set default sla time /// public int? DefaultSlaTime { get; set; } /// /// Get or set sla missed reason /// public string SlaMissedReason { get; set; } /// /// Get or set suggestion comment /// public string SuggestionComment { get; set; } /// /// Get or set job complete response time /// public string JobCompleteResponseTime { get; set; } /// /// Get or set extra property /// public string DefaultCol2 { get; set; } /// /// Get or set extra property /// public string DefaultCol3 { get; set; } /// /// Get or set security token /// public string Token { get; set; } /// /// Get or set status /// public string Status { get; set; } /// /// Get or set message /// public string Message { get; set; } /// /// Get or set UTC minute /// public int? UtcMinute { get; set; } /// /// Get or set sender id /// public string SenderId { get; set; } /// /// Get or set state name /// public string StateName { get; set; } /// /// Get or set city name /// public string CityName { get; set; } /// /// Get or set caller language /// public string CallerLanguage { get; set; } /// /// Get or set warrenty /// public string Warranty { get; set; } /// /// Get or set toll free number source /// public string TollFreeeNoSource { get; set; } /// /// Get or set opportunity lost /// public string OpportunityLost { get; set; } /// /// Get or set 24 hrs reason /// public string _24HrsReason { get; set; } /// /// Get or set Vehicle Tagging like(LMD,BUS,HD) /// public string VehicleTagging { get; set; } /// /// Get or set distance between brackdown loction and service engg. /// public string EstimateDistance { get; set; } /// /// Get or set km covered /// public double KmCovered { get; set; } /// /// Get or set km Ticket Id Alias /// public string TicketIdAlias { get; set; } public string OtherRemarks { get; set; } public string Flag { get; set; } public string TicketPrevStatusAliasId { get; set; } public string ChassisNo { get; set; } public double OdometerReading { get; set; } public double PreviousOdometerReading { get; set; } public string VehicleType { get; set; } public string OdometerUnit { get; set; } public string EOSMessage { get; set; } //added on 18-06-2020 /// /// Get or set Customer or Owner Name /// public string CustomerCustomerName { get; set; } /// /// Get or set ModelNumber /// public string ModelNumber { get; set; } /// /// Get or set Vehicle Number Plate /// public string VehicleNumberPlate { get; set; } public string Comments { get; set; } public bool? KamUser { get; set; } public string DriverName { get; set; } } //------ added on 19-01-2021 start--------------------- public class DraftTicketDetailModel { public string Token { get; set; } public int DraftTicketId { get; set; } public string TollFreeNoSource { get; set; } public string RegistrationNumber { get; set; } public string ChassisNumber { get; set; } public string Message { get; set; } public string Status { get; set; } public string DraftTicketCancelReasonID { get; set; } [Display(Name = "Draft Ticket Cancel Reason")] public string DraftTicketCancelReason { get; set; } [Display(Name="Reason")] public string OthersReason { get; set; } } //------ added on 19-01-2021 end ---------------------- //------- added on 09-03-2021 start -------------------- public class CancelledDraftTicketModel { public string Token { get; set; } public string Message { get; set; } public int UtcMinute { get; set; } public int DraftTicketId { get; set; } public string VehicleRegistrationNumber { get; set; } public string ChassisNumber { get; set; } public string Comments { get; set; } public string ContactNumber { get; set; } public string DriverName { get; set; } public bool? KamUser { get; set; } public string CreationTime { get; set; } public string TollFreeNoSource { get; set; } public string TicketCancelReason { get; set; } public string TicketCancelRemark { get; set; } } //------- added on 09-03-2021 end ---------------------- //added by mayuri on 23/07/2025 public class PreClosureModel { public string Chassis_No { get; set; } public string Reg_No { get; set; } public string VECV_KAM_Manager { get; set; } public string VECV_KAM_Manager_Contact_No { get; set; } public string Fleet_Manager_Name { get; set; } public string Fleet_Manager_Number { get; set; } public int Status { get; set; } } }