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

390 lines
12 KiB
C#

using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Web;
namespace GODATA.Models.Report
{
//public class Analysis : CommonAnalysis
//{
// private List<Analysis> lsEOSVAN = new List<Analysis>();
// private List<Analysis> lsOpenTicket = new List<Analysis>();
// private List<Analysis> lsCloseTicket = new List<Analysis>();
// private List<Analysis> lsDealerDetl = new List<Analysis>();
// private string RptMonth = "";
// private string RptStartDate = "";
// private string RptEndDate = "";
// public string Name1
// {
// get;
// set;
// }
// public string Name2
// {
// get;
// set;
// }
// public string TicketStatus
// {
// get;
// set;
// }
// public string TicketCreationDate
// {
// get;
// set;
// }
// public string DealerStateName
// {
// get;
// set;
// }
// public string DealerCityName
// {
// get;
// set;
// }
// public string pRptStartDate
// {
// get
// {
// string sStartTempMnth = "";
// RptEndDate = RptStartDate;
// if (Convert.ToString(RptMonth as object) == "")
// sStartTempMnth = "Jan";
// else
// sStartTempMnth = pRptMonth;
// RptStartDate = "01-" + sStartTempMnth + "-" + RptStartDate;
// return RptStartDate;
// }
// set
// {
// RptStartDate = value;
// }
// }
// public string pRptEndDate
// {
// get
// {
// string sEndTempMnth = "";
// if (Convert.ToString(RptMonth as object) == "")
// sEndTempMnth = "Jan";
// else
// sEndTempMnth = pRptMonth;
// RptEndDate = "31-" + sEndTempMnth + "-" + RptEndDate;
// return RptEndDate;
// }
// set
// {
// RptEndDate = value;
// }
// }
// public string pRptMonth
// {
// get
// {
// return RptMonth;
// }
// set
// {
// RptMonth = value;
// }
// }
// public bool GetEosVanListOrNot
// {
// get;
// set;
// }
// public bool GetDealerListOrNot
// {
// get;
// set;
// }
// public bool GetOpenTicketListOrNot
// {
// get;
// set;
// }
// public bool GetCloseTicketListOrNot
// {
// get;
// set;
// }
// public List<Analysis> plsOpenTicket
// {
// get
// {
// return lsOpenTicket;
// }
// set
// {
// lsOpenTicket = value;
// }
// }
// public List<Analysis> plsCloseTicket
// {
// get
// {
// return lsCloseTicket;
// }
// set
// {
// lsCloseTicket = value;
// }
// }
// public List<Analysis> plsDealerDetl
// {
// get
// {
// return lsDealerDetl;
// }
// set
// {
// lsDealerDetl = value;
// }
// }
// public List<Analysis> plsEOSVAN
// {
// get
// {
// return lsEOSVAN;
// }
// set
// {
// lsEOSVAN = value;
// }
// }
// public bool IsSlameet
// {
// get;
// set;
// }
// public bool IsOppurLost
// {
// get;
// set;
// }
// //public Analysis fnOpenReportList(Analysis objAnalysis)
// //{
// // objAnalysis.lsEOSVAN.Add(new Analysis
// // {
// // Latitude = "26.912285124827",
// // Longitude = "75.7873203125",
// // Name1 = "EOS Name",
// // Name2 = "Dealer Name",
// // MobileNo = "9784622911",
// // VanRegNo = "RJ07 4654",
// // lstType = Convert.ToInt32(System.Configuration.ConfigurationManager.AppSettings["EOSVan"])
// // });
// // objAnalysis.lsEOSVAN.Add(
// // new Analysis
// // {
// // Latitude = "26.933712965183897",
// // Longitude = "75.81890600585939",
// // Name1 = "EOS Name 1",
// // Name2 = "Dealer Name 1",
// // MobileNo = "9784622922",
// // VanRegNo = "RJ07 4655",
// // lstType = Convert.ToInt32(System.Configuration.ConfigurationManager.AppSettings["EOSVan"])
// // });
// // objAnalysis.lsOpenTicket.Add(new Analysis
// // {
// // Latitude = "26.933177318777986",
// // Longitude = "75.8131553497314",
// // Name1 = "Open Ticket 1",
// // Name2 = "Customer 2",
// // TicketStatus = "Assigned",
// // MobileNo = "9784622922",
// // VanRegNo = "RJ07 4655",
// // AssignedTo = "Gourav",
// // TicketCreationDate = "04/02/2015",
// // IsSlameet = true,
// // lstType = Convert.ToInt32(System.Configuration.ConfigurationManager.AppSettings["OpenTicket"])
// // });
// // objAnalysis.lsOpenTicket.Add(
// // new Analysis
// // {
// // Latitude = "26.934631210246263",
// // Longitude = "75.8097221221924",
// // Name1 = "Open Ticket 2",
// // Name2 = "Customer 2",
// // TicketStatus = "Declined",
// // MobileNo = "9784622922",
// // VanRegNo = "RJ07 4655",
// // AssignedTo = "Gourav",
// // TicketCreationDate = "05/02/2015",
// // lstType = Convert.ToInt32(System.Configuration.ConfigurationManager.AppSettings["OpenTicket"])
// // });
// // objAnalysis.lsDealerDetl.Add(
// // new Analysis
// // {
// // Latitude = "26.934325129389578",
// // Longitude = "75.79976576232912",
// // Name1 = "Dealer 1",
// // DealerCityName = "Bikaner",
// // DealerStateName = "Jaipur",
// // MobileNo = "8287828920",
// // lstType = Convert.ToInt32(System.Configuration.ConfigurationManager.AppSettings["DealerDetl"])
// // });
// // objAnalysis.lsDealerDetl.Add(
// // new Analysis
// // {
// // Latitude = "26.92070369030358",
// // Longitude = "75.79667585754396",
// // Name1 = "Dealer 1",
// // DealerCityName = "Bikaner",
// // DealerStateName = "Jaipur",
// // MobileNo = "8287828920",
// // lstType = Convert.ToInt32(System.Configuration.ConfigurationManager.AppSettings["DealerDetl"])
// // });
// // objAnalysis.lsCloseTicket.Add(
// // new Analysis
// // {
// // Latitude = "26.91305047491048",
// // Longitude = "75.79092520141603",
// // Name1 = "Close Ticket 2",
// // Name2 = "New Customer Close",
// // MobileNo = "9784622922",
// // VanRegNo = "RJ07 4655",
// // AssignedTo = "Gourav",
// // IsSlameet = true,
// // lstType = Convert.ToInt32(System.Configuration.ConfigurationManager.AppSettings["CloseTicket"])
// // });
// // objAnalysis.lsCloseTicket.Add(
// // new Analysis
// // {
// // Latitude = "26.921315925113145",
// // Longitude = "75.7972766723633",
// // Name1 = "Close Ticket 1",
// // Name2 = "New Customer Close1",
// // MobileNo = "9784622922",
// // VanRegNo = "RJ07 4655",
// // AssignedTo = "Gourav",
// // IsOppurLost = true,
// // lstType = Convert.ToInt32(System.Configuration.ConfigurationManager.AppSettings["CloseTicket"])
// // });
// // return objAnalysis;
// //}
//}
//public class CommonAnalysis
//{
// public string Latitude
// {
// get;
// set;
// }
// public string Longitude
// {
// get;
// set;
// }
// public string VanRegNo
// {
// get;
// set;
// }
// public string MobileNo
// {
// get;
// set;
// }
// public int lstType
// {
// get;
// set;
// }
// public string AssignedTo
// {
// get;
// set;
// }
// public string Title
// {
// get;
// set;
// }
//}
public class GeoAnalysisTicketModel
{
public string TicketIdAlias { get; set; }
public string AssignTo { get; set; }
public string CreationTime { get; set; }
public string Route { get; set; }
public string VanRegistrationNumber { get; set; }
public string State { get; set; }
public string City { get; set; }
public string CustomerName { get; set; }
public string CustomerContactNumber { get; set; }
public string DealerName { get; set; }
public string DealerContact { get; set; }
public string VehicleModelTagging { get; set; }
public string SlaMet { get; set; }
public string ServiceEnggName { get; set; }
public string TicketStatusAlias { get; set; }
public string ServiceEnggContactNumber { get; set; }
public string DefaultLattitude { get; set; }
public string DefaultLongitude { get; set; }
public string VanVanModelNo { get; set; }
public string VanVanRegisteredAs { get; set; }
public string OrganizationName { get; set; }
public int lstType { get; set; }
public bool oppurLost { get; set; }
public string Id { get; set; }
/// <summary>
/// Get or set Key
/// </summary>
public string Key { get; set; }
/// <summary>
/// Get or set KeyName
/// </summary>
public string KeyName { get; set; }
/// <summary>
/// Get or set Key Value
/// </summary>
public string KeyValue { get; set; }
}
public class GeoAnalysisModelReport
{
public List<GeoAnalysisTicketModel> lsEOSVAN { get; set; }
public List<GeoAnalysisTicketModel> lsDealerDetl { get; set; }
public List<GeoAnalysisTicketModel> lsOpenTicket { get; set; }
public List<GeoAnalysisTicketModel> lsCloseTicket { get; set; }
}
public class Analysis
{
//public List<GeoAnalysisTicketModel> lsEOSVAN = new List<GeoAnalysisTicketModel>();
//public List<GeoAnalysisTicketModel> lsDealerDetl = new List<GeoAnalysisTicketModel>();
//public List<GeoAnalysisTicketModel> lsOpenTicket = new List<GeoAnalysisTicketModel>();
//public List<GeoAnalysisTicketModel> lsCloseTicket = new List<GeoAnalysisTicketModel>();
public bool IsDealer { get; set; }
public bool IsVan { get; set; }
public bool IsOpenTicket { get; set; }
public bool IsClosedTickets { get; set; }
public string FromDate { get; set; }
public string ToDate { get; set; }
public string UserId { get; set; }
public string Token { get; set; }
public string UTCMinute { get; set; }
public string Month { get; set; }
public string Year { get; set; }
public GeoAnalysisModelReport GeoAnalysisModelReport { get; set; }
public bool IsSLAMet { get; set; }
public bool IsSLANotMet { get; set; }
public int SLAMetCount { get; set; }
public int SLANotMetCount { get; set; }
public string State { get; set; }
/// <summary>
/// Get or set Route Id
/// </summary>
public Int32 RouteId { get; set; }
}
}