using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Web; using GODATA.Models.Ticket; namespace GODATA.Models.TicketAdministration_Dealer { public class TicketAdministration_DealerModel { } public class CloseTicketDealerModel { public object UserId { get; set; } public string TicketIdAlias { get; set; } 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; set; } public string LastModifiedBy { get; set; } public string LastModifiedTime { get; set; } public string BreakdownLocation { get; set; } public string DreakdownLongitude { 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 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 string RepairCost { get; set; } public int DefaultSlTtime { get; set; } public object SlaMissedReason { get; set; } public string SuggestionComment { get; set; } public string TicketStatusAlias { get; set; } public object JobCompleteResponseTime { get; set; } public string DefaultCol2 { get; set; } public string DefaultCol3 { get; set; } public int UtcMinute { get; set; } public object Token { get; set; } public object Status { get; set; } public object Message { get; set; } public string TollFreeNoSource { get; set; } } public class OpenTicketDealerModel { public object UserId { get; set; } public string TicketIdAlias { get; set; } 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; set; } public string LastModifiedBy { get; set; } public string LastModifiedTime { get; set; } public string BreakdownLocation { get; set; } public string DreakdownLongitude { 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 int EstimatedTimeForJobCompletion { get; set; } public int? TotalTicketLifecycleTimeSla { get; set; } public string EstimatedTimeForJobCompletionSubmitTime { get; set; } public string VehicleRegisterNumber { get; set; } public object BreakdownLocationLandmark { get; set; } public int RouteId { get; set; } public string CustomerContactNo { get; set; } public object RepairCost { get; set; } public int DefaultSlTtime { get; set; } public object SlaMissedReason { get; set; } public string SuggestionComment { get; set; } public string TicketStatusAlias { get; set; } public object JobCompleteResponseTime { get; set; } public object DefaultCol2 { get; set; } public object DefaultCol3 { get; set; } public int UtcMinute { get; set; } public object Token { get; set; } public object Status { get; set; } public object Message { get; set; } public string TollFreeNoSource { get; set; } } public class TicketOpenCloseModel { public string _OdometerReading = "0"; 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; 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 int EstimatedTimeForJobCompletion { get; set; } public object 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 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 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 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; } public string TripStart { get; set; } public string TripEnd { get; set; } public double? VanKmCovered { get; set; } public string OdoMeter { 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 = "0.0"; } return _previous_odometer_reading; } set { _previous_odometer_reading = value; } } //public double PreviousOdometerReading { get; set; } public string VehicleType { get; set; } 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; } //ended on 27/11/2020 } 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 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 string AssignedTo { get; set; } public object ReportedVia { get; set; } [Display(Name = "Ticket Status")] public int TicketStatus { get; set; } //added on 1/09/2020 public int CurrentTicketStatus { get; set; } public int Priority { get; set; } public object CustomerScore { 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 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 object EstimatedTimeForJobCompletion { get; set; } [Display(Name = "SLA Time")] public int TotalTicketLifecycleTimeSla { get; set; } public string EstimatedTimeForJobCompletionSubmitTime { get; set; } public string VehicleRegisterNumber { get; set; } public object BreakdownLocationLandmark { get; set; } public object RouteId { get; set; } public object CustomerContactNo { 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; } 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 object OpenCloseStatus { get; set; } public string DealerOrServiceEnggContactNumber { get; set; } public string OpportunityLost { get; set; } public string _24HrsReason { get; set; } public string ChassisNo { get; set; } [Required(ErrorMessage = "*")] public string OdometerReading { get { if (string.IsNullOrEmpty(_OdometerReading)) { _OdometerReading = "0.0"; } return _OdometerReading; } set { _OdometerReading = value; } } public string VehicleRegistrationNumber { get; set; } 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; } } 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 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 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 VehicleModelModel : EscalationModel { private bool variableIsDeleted = false; private string variableOperation = "insert"; [Display(Name = "Vehicle Model")] [Required] public string VehicleTypeId { get; set; } [Display(Name = "Vehicles Model Number")] public string VehicleTypeName { get; set; } [Display(Name = "Product Variant")] [Required] public string VehicleTypeTagging { get; set; } public string Status { get; set; } public object Message { get; set; } public bool IsDeleted { get { return variableIsDeleted; } set { variableIsDeleted = value; } } public string Operation { get { return variableOperation; } set { variableOperation = value; } } /// /// Get or Set default sla /// [Display(Name = "Default SLA (In Minutes)")] public int? DefaultSla { get; set; } public bool IsChanged { get; set; } public string oldVehicleTypeName { get; set; } public string oldVehicleTypeTagging { get; set; } public int? oldDefaultSla { get; set; } [Display(Name = "Udan Vehicles Model Number Id")] public string udanVehicleProductId { get; set; } [Display(Name = "Udan Vehicles Model Number Name")] public string udanVehicleProductName { get; set; } } public class CustomerModel { public string CustomerId { 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; } //-------- owner details -----------// [Required(ErrorMessage = "*")] [RegularExpression(@"^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$", ErrorMessage = "Entered phone format is not valid.")] [Display(Name = "Contact No.")] public string CustomerOwnerMobileNo1 { get; set; } [Required(ErrorMessage = "*")] [RegularExpression(@"^[a-zA-Z ]+$", ErrorMessage = "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 = "Entered phone format is not valid.")] [Display(Name = "Contact No.")] public string CustomerMobileNumber1 { get; set; } [Required(ErrorMessage = "*")] [RegularExpression(@"^[a-zA-Z ]+$", ErrorMessage = "Only alphabets 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; } [Required(ErrorMessage = "*")] [Display(Name = "State")] public string CustomerState { get; set; } public string CustomerStateName { get; set; } [Required(ErrorMessage = "*")] [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; } } 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; } } /// /// 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; } } 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; } /// /// 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 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; } } //for reassign to dealer's own Van public class DealersOwnVanModel { 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; } } }