EOS/Models/Ticket/TicketAdministrationModel.cs
Nidhi Bhargava f0c1ab20e1 code push
2025-09-04 16:25:07 +05:30

2148 lines
70 KiB
C#

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<string> listDescription { get; set; }
public TicketModel()
{
listDescription = new List<string>();
}
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; }
/// <summary>
/// Get or set Vehicle Tagging like(LMD,BUS,HD)
/// </summary>
///
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; }
/// <summary>
/// Get or set van device alias
/// </summary>
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; }
}
/// <summary>
/// get all Telematic Details
/// </summary>
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; }
}
/// <summary>
/// get all routes
/// </summary>
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; }
/// <summary>
/// Get or set CustomerEmailId
/// </summary>
//[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
/// </summary>
//[Required(ErrorMessage = "*")]
[Display(Name = "Address")]
public string CustomerOwnerAddress { get; set; }
/// <summary>
/// Get or set CustomerState
/// </summary>
[Required(ErrorMessage = "*")]
[Display(Name = "State")]
public string CustomerOwnerState { get; set; }
public string CustomerOwnerStateName { get; set; }
/// <summary>
/// Get or set CustomerCity
/// </summary>
[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; }
/// <summary>
/// for checking radio button selection
/// </summary>
public string selection { get; set; }
public string thirdPartyInfoupdatedornot
{
get
{
if (_thirdPartyInfoupdatedornot.ToLower() == "on")
{
_thirdPartyInfoupdatedornot = "true";
}
return _thirdPartyInfoupdatedornot;
}
set { _thirdPartyInfoupdatedornot = value; }
}
/// Get or set CustomerType
/// </summary>
public string CustomerType { get; set; }
public string Id { get; set; }
public string RegistrationNumber { get; set; }
}
public class CustomerNameModel
{
public List<CustomerModel> 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
{
/// <summary>
/// Get or set token
/// </summary>
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; }
/// <summary>
/// Get or set CustomerMobile1
/// </summary>
public string CustomerMobile1 { get; set; } /// <summary>
/// Get or set CustomerMobile2
/// </summary>
public string CustomerMobile2 { get; set; } /// <summary>
/// Get or set CustomerMobile3
/// </summary>
public string CustomerMobile3 { get; set; } /// <summary>
/// Get or set CustomerAddress
/// </summary>
public string CustomerAddress { get; set; } /// <summary>
/// Get or set CustomerEmailId
/// </summary>
public string CustomerEmailId { get; set; } /// <summary>
/// Get or set CustomerCity
/// </summary>
public string CustomerCity { get; set; } /// <summary>
/// Get or set CustomerState
/// </summary>
public string CustomerState { get; set; } /// <summary>
/// Get or set CustomerVehicleCustomerId
/// </summary>
public string CustomerVehicleCustomerId { get; set; } /// <summary>
/// Get or set CustomerVehicleVehicleId
/// </summary>
public string CustomerVehicleVehicleId { get; set; }
/// Get or set CustomerVehicleIsOwnwer
/// </summary>
public Boolean? CustomerVehicleIsOwnwer { get; set; }
/// Get or set VehicleId
/// </summary>
public string VehicleId { get; set; }
/// Get or set VehicleRegistrationNumber
/// </summary>
public string VehicleRegistrationNumber { get; set; }
/// Get or set VehicleNumberPlate
/// </summary>
public string VehicleNumberPlate { get; set; }
/// Get or set VehicleModelNumber
/// </summary>
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> 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<TicketOpenModel> ListOpenTicket { get; set; }
// public List<TicketCloseModel> 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; }
/// <summary>
/// Get or set dealer van id
/// </summary>
public string DealerSCode { get; set; }
/// <summary>
/// Get or set dealer van id
/// </summary>
public string DealerOrVanContactNo { get; set; }
}
/// <summary>
/// get open tickets activity
/// </summary>
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; }
}
/// <summary>
/// get close tickets activity
/// </summary>
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<string> SuggestionComplaintList { get; set; }
public string[] SuggestionComplaintList { get; set; }
[Display(Name = "Complaint")]
//public List<string> 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> 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
/// <summary>
/// Class contains Escalation Matrix status and details
/// </summary>
public class EscalationModel : EscalationMatrix
{
/// <summary>
/// Get or Set Token
/// </summary>
public string Token { get; set; }
/// <summary>
/// Get or Set Message
/// </summary>
public string Message { get; set; }
/// <summary>
/// Get or Set Status
/// </summary>
public string Status { get; set; }
/// <summary>
/// Get or Set Action(what operation want to perform)
/// </summary>
public string Action { get; set; }
/// <summary>
/// Get or set Limit
/// </summary>
public int? Limit { get; set; }
/// <summary>
/// Get or set OffSet
/// </summary>
public int? OffSet { get; set; }
/// <summary>
/// Get or set
/// </summary>
public int TicketCount { get; set; }
/// <summary>
/// Get or set
/// </summary>
public string Condition { get; set; }
/// <summary>
/// Get or Set List of Escalation Matrix
/// </summary>
public List<EscalationMatrix> 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; }
/// <summary>
/// old contact nos
/// </summary>
public string oldContactNo { get; set; }
public List<string> VehicleTaggingList { get; set; }
/// <summary>
/// Get or Set Organization Name
/// </summary>
public string customer_group { get; set; }
/// <summary>
/// Get or Set Alarm Age Van Not Live(in min)
/// </summary>
public string vehicle_model_name { get; set; }
/// <summary>
/// Get or Set Alarm Age Van Not Live(in min)
/// </summary>
public string vehicle_registration_number { get; set; }
/// <summary>
/// Get or Set Alarm Age Van Not Live(in min)
/// </summary>
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
/// <summary>
/// This class contain dealer details properties for dealer wise dashboard.
/// </summary>
public class DealerUserIdList
{
public int? Id { get; set; }
/// <summary>
/// get or set Dealer Id
/// </summary>
public string DealerId { get; set; }
/// <summary>
/// get or set Dealer Organization Id
/// </summary>
public int? DealerOrganizationId { get; set; }
/// <summary>
/// get or set Dealer Name
/// </summary>
public string DealerDealerName { get; set; }
/// <summary>
/// get or set Dealer City
/// </summary>
public string DealerCity { get; set; }
/// <summary>
/// get or set Dealer State
/// </summary>
public string DealerState { get; set; }
/// <summary>
/// get or set Dealer Defaul tLattitude
/// </summary>
public string DealerDealerDefaultLattitude { get; set; }
/// <summary>
/// get or set Dealer Default Longitude
/// </summary>
public string DealerDealerDefaultLongitude { get; set; }
/// <summary>
/// get or set Dealer Contact No
/// </summary>
public string DealerContactNo { get; set; }
/// <summary>
/// get or set Dealer Contact No2
/// </summary>
public string DealerContactNo2 { get; set; }
/// <summary>
/// get or set Status
/// </summary>
public string Status { get; set; }
/// <summary>
/// get or set Dealer Org Name
/// </summary>
public string DealerOrgName { get; set; }
/// <summary>
/// get or set Org Path
/// </summary>
public string OrgPath { get; set; }
/// <summary>
/// get or set Region
/// </summary>
public string Region { get; set; }
/// <summary>
/// get or set Is Deleted Dealer
/// </summary>
public bool? IsDeleted { get; set; }
/// <summary>
/// get or set Message
/// </summary>
public string Message { get; set; }
/// <summary>
/// get or set Token
/// </summary>
public string Token { get; set; }
/// <summary>
/// get or set Is Deleted Dealer
/// </summary>
public Int64? dealer_user_id { get; set; }
/// <summary>
/// get or set Message
/// </summary>
public string dealer_first_name { get; set; }
/// <summary>
/// get or set Token
/// </summary>
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
/// <summary>
/// Model for KAM ticket
/// </summary>
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
/// <summary>
/// contains properties for customer open tickets
/// </summary>
public class DummyOpenTicketDetail
{
/// <summary>
/// Get or set extra property
/// </summary>
public Int32 DummyId { get; set; }
/// <summary>
/// Get or set ticket id
/// </summary>
public string TicketId { get; set; }
/// <summary>
/// Get or set ticket id alias
/// </summary>
public string TicketIdAlias { get; set; }
/// <summary>
/// Get or set description
/// </summary>
public string Description { get; set; }
/// <summary>
/// Get or set assigned to
/// </summary>
public string AssignedTo { get; set; }
/// <summary>
/// Get or set reported via
/// </summary>
public string ReportedVia { get; set; }
/// <summary>
/// Get or set ticket status
/// </summary>
public int? TicketStatus { get; set; }
/// <summary>
/// Get or set priority
/// </summary>
public int? Priority { get; set; }
/// <summary>
/// Get or set customer score
/// </summary>
public string CustomerScore { get; set; }
/// <summary>
/// Get or set created by
/// </summary>
public string CreatedBy { get; set; }
/// <summary>
/// Get or set creation time
/// </summary>
public string CreationTime { get; set; }
/// <summary>
/// Get or set last modified by
/// </summary>
public string LastModifiedBy { get; set; }
/// <summary>
/// Get or set last modified time
/// </summary>
public string LastModifiedTime { get; set; }
/// <summary>
/// Get or set breakdown location
/// </summary>
public string BreakdownLocation { get; set; }
/// <summary>
/// Get or set breakdown longitude
/// </summary>
public string BreakdownLongitude { get; set; }
/// <summary>
/// Get or set breakdown latitude
/// </summary>
public string BreakdownLattitude { get; set; }
/// <summary>
/// Get or set assigned to user id
/// </summary>
public string AssignedToUserId { get; set; }
/// <summary>
/// Get or set assigned to user latitude
/// </summary>
public string AssignedToUserLattitude { get; set; }
/// <summary>
/// Get or set assigned to user longitude
/// </summary>
public string AssignedToUserLongitude { get; set; }
/// <summary>
/// Get or set IsDeclined bit
/// </summary>
public Boolean? Isdeclined { get; set; }
/// <summary>
/// Get or set estimated time for job completion
/// </summary>
public int? EstimatedTimeForJobCompletion { get; set; }
/// <summary>
/// Get or set ticket life cycle time
/// </summary>
public int? TotalTicketLifecycleTimeSla { get; set; }
/// <summary>
/// Get or set estimated time for job completion submit time
/// </summary>
public string EstimatedTimeForJobCompletionSubmitTime { get; set; }
/// <summary>
/// Get or set vehicle registration number
/// </summary>
public string VehicleRegisterNumber { get; set; }
/// <summary>
/// Get or set breakdown landmark
/// </summary>
public string BreakdownLocationLandmark { get; set; }
/// <summary>
/// Get or set Breakdown state
/// </summary>
public string BreakdownLocationState { get; set; }
/// <summary>
/// Get or set Breakdown city
/// </summary>
public string BreakdownLocationCity { get; set; }
/// <summary>
/// Get or set route id
/// </summary>
public int? RouteId { get; set; }
/// <summary>
/// Get or set customer contact number
/// </summary>
public string CustomerContactNo { get; set; }
/// <summary>
/// Get or set ticket status alias
/// </summary>
public string TicketStatusAlias { get; set; }
/// <summary>
/// Get or set repair cost
/// </summary>
public string RepairCost { get; set; }
/// <summary>
/// Get or set defalut sla time
/// </summary>
public int? DefaultSlaTime { get; set; }
/// <summary>
/// Get or set sla missed reason
/// </summary>
public string SlaMissedReason { get; set; }
/// <summary>
/// Get or set suggestion comment
/// </summary>
public string SuggestionComment { get; set; }
/// <summary>
/// Get or set job complete response time
/// </summary>
public string JobCompleteResponseTime { get; set; }
/// <summary>
/// Get or set extra property
/// </summary>
public string DefaultCol2 { get; set; }
/// <summary>
/// Get or set extra property
/// </summary>
public string DefaultCol3 { get; set; }
/// <summary>
/// Get or set extra property
/// </summary>
public string CallerLanguage { get; set; }
/// <summary>
/// Get or set extra property
/// </summary>
public string Warranty { get; set; }
/// <summary>
/// Get or set extra property
/// </summary>
public string TollFreeNoSource { get; set; }
/// <summary>
/// Get or set extra property
/// </summary>
public string StateName { get; set; }
/// <summary>
/// Get or set extra property
/// </summary>
public string CityName { get; set; }
/// <summary>
/// Get or set extra property
/// </summary>
public string EstimatedDistance { get; set; }
/// <summary>
/// Get or set extra property
/// </summary>
public string OpportunityLoss { get; set; }
/// <summary>
/// Get or set extra property
/// </summary>
public string KmCovered { get; set; }
/// <summary>
/// Get or set extra property
/// </summary>
public string VehicleTagging { get; set; }
/// <summary>
/// Get or set extra property
/// </summary>
public string ReasonForMoreThan24Hours { get; set; }
/// <summary>
/// Get or set extra property
/// </summary>
public string CallStatus { get; set; }
/// <summary>
/// Get or set extra property
/// </summary>
public string SuggestionComplaint { get; set; }
/// <summary>
/// Get or set extra property
/// </summary>
public string CustomerName { get; set; }
/// <summary>
/// Get or set security token
/// </summary>
public string Token { get; set; }
/// <summary>
/// Get or set status
/// </summary>
public string Status { get; set; }
/// <summary>
/// Get or set message
/// </summary>
public string Message { get; set; }
/// <summary>
/// Get or set UTC minute
/// </summary>
public int UtcMinute { get; set; }
}
#endregion
/// <summary>
/// this class contain properties of state details.
/// </summary>
///
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; }
/// <summary>
/// Get or Set security token
/// </summary>
public string Token { get; set; }
/// <summary>
/// Get or Set message
/// </summary>
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; }
/// <summary>
/// Get or Set security token
/// </summary>
public string Token { get; set; }
/// <summary>
/// Get or Set message
/// </summary>
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; }
/// <summary>
/// Get or Set security token
/// </summary>
public string Token { get; set; }
/// <summary>
/// Get or Set message
/// </summary>
public string Message { get; set; }
public string VehicleType { get; set; }
}
// added on 18-06-2020
/// <summary>
/// contains properties for open ticket
/// </summary>
///
public class GetDummyTicket
{
/// <summary>
/// Get or set KAM ticket id
/// </summary>
public string KamTicketId { get; set; }
/// <summary>
/// Get or set ticket id
/// </summary>
public string TicketId { get; set; }
public int DummyTicketId { get; set; }
/// <summary>
/// Get or set description
/// </summary>
public string Description { get; set; }
/// <summary>
/// Get or set assigned to
/// </summary>
public string AssignedTo { get; set; }
/// <summary>
/// Get or set reported via
/// </summary>
public string ReportedVia { get; set; }
/// <summary>
/// Get or set ticket status
/// </summary>
public int? TicketStatus { get; set; }
/// <summary>
/// Get or set priority
/// </summary>
public int? Priority { get; set; }
/// <summary>
/// Get or set customer score
/// </summary>
public string CustomerScore { get; set; }
/// <summary>
/// Get or set created by
/// </summary>
public string CreatedBy { get; set; }
/// <summary>
/// Get or set creation time
/// </summary>
//public DateTime? CreationTime { get; set; }
public string CreationTime { get; set; }
/// <summary>
/// Get or set last modified by
/// </summary>
public string LastModifiedBy { get; set; }
/// <summary>
/// Get or set last modified time
/// </summary>
public DateTime? LastModifiedTime { get; set; }
/// <summary>
/// Get or set breakdown location
/// </summary>
public string BreakdownLocation { get; set; }
/// <summary>
/// Get or set breakdown longitude
/// </summary>
public string BreakdownLongitude { get; set; }
/// <summary>
/// Get or set breakdown latitude
/// </summary>
public string BreakdownLattitude { get; set; }
/// <summary>
/// Get or set assigned to user id
/// </summary>
public string AssignedToUserId { get; set; }
/// <summary>
/// Get or set assigned to user latitude
/// </summary>
public string AssignedToUserLattitude { get; set; }
/// <summary>
/// Get or set assigned to user longitude
/// </summary>
public string AssignedToUserLongitude { get; set; }
/// <summary>
/// Get or set IsDeclined
/// </summary>
public Boolean? IsDeclined { get; set; }
/// <summary>
/// Get or set estimated time for job completion
/// </summary>
public int? EstimatedTimeForJobCompletion { get; set; }
/// <summary>
/// Get or set ticket life cycle time
/// </summary>
public int? TotalTicketLifecycleTimeSla { get; set; }
/// <summary>
/// Get or set estimated time for job completion
/// </summary>
public DateTime? EstimatedTimeForJobCompletionSubmitTime { get; set; }
/// <summary>
/// Get or set vehicle registration number
/// </summary>
public string VehicleRegistrationNumber { get; set; }
/// <summary>
/// Get or set breakdown landmark
/// </summary>
public string BreakdownLocationLandmark { get; set; }
/// <summary>
/// Get or set route id
/// </summary>
public int? RouteId { get; set; }
/// <summary>
/// Get or set customer contact number
/// </summary>
public string CustomerContactNo { get; set; }
/// <summary>
/// Get or set repair cost
/// </summary>
public string RepairCost { get; set; }
/// <summary>
/// Get or set default sla time
/// </summary>
public int? DefaultSlaTime { get; set; }
/// <summary>
/// Get or set sla missed reason
/// </summary>
public string SlaMissedReason { get; set; }
/// <summary>
/// Get or set suggestion comment
/// </summary>
public string SuggestionComment { get; set; }
/// <summary>
/// Get or set job complete response time
/// </summary>
public string JobCompleteResponseTime { get; set; }
/// <summary>
/// Get or set extra property
/// </summary>
public string DefaultCol2 { get; set; }
/// <summary>
/// Get or set extra property
/// </summary>
public string DefaultCol3 { get; set; }
/// <summary>
/// Get or set security token
/// </summary>
public string Token { get; set; }
/// <summary>
/// Get or set status
/// </summary>
public string Status { get; set; }
/// <summary>
/// Get or set message
/// </summary>
public string Message { get; set; }
/// <summary>
/// Get or set UTC minute
/// </summary>
public int? UtcMinute { get; set; }
/// <summary>
/// Get or set sender id
/// </summary>
public string SenderId { get; set; }
/// <summary>
/// Get or set state name
/// </summary>
public string StateName { get; set; }
/// <summary>
/// Get or set city name
/// </summary>
public string CityName { get; set; }
/// <summary>
/// Get or set caller language
/// </summary>
public string CallerLanguage { get; set; }
/// <summary>
/// Get or set warrenty
/// </summary>
public string Warranty { get; set; }
/// <summary>
/// Get or set toll free number source
/// </summary>
public string TollFreeeNoSource { get; set; }
/// <summary>
/// Get or set opportunity lost
/// </summary>
public string OpportunityLost { get; set; }
/// <summary>
/// Get or set 24 hrs reason
/// </summary>
public string _24HrsReason { get; set; }
/// <summary>
/// Get or set Vehicle Tagging like(LMD,BUS,HD)
/// </summary>
public string VehicleTagging { get; set; }
/// <summary>
/// Get or set distance between brackdown loction and service engg.
/// </summary>
public string EstimateDistance { get; set; }
/// <summary>
/// Get or set km covered
/// </summary>
public double KmCovered { get; set; }
/// <summary>
/// Get or set km Ticket Id Alias
/// </summary>
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
/// <summary>
/// Get or set Customer or Owner Name
/// </summary>
public string CustomerCustomerName { get; set; }
/// <summary>
/// Get or set ModelNumber
/// </summary>
public string ModelNumber { get; set; }
/// <summary>
/// Get or set Vehicle Number Plate
/// </summary>
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; }
}
}