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 lsEOSVAN = new List(); // private List lsOpenTicket = new List(); // private List lsCloseTicket = new List(); // private List lsDealerDetl = new List(); // 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 plsOpenTicket // { // get // { // return lsOpenTicket; // } // set // { // lsOpenTicket = value; // } // } // public List plsCloseTicket // { // get // { // return lsCloseTicket; // } // set // { // lsCloseTicket = value; // } // } // public List plsDealerDetl // { // get // { // return lsDealerDetl; // } // set // { // lsDealerDetl = value; // } // } // public List 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; } /// /// Get or set Key /// public string Key { get; set; } /// /// Get or set KeyName /// public string KeyName { get; set; } /// /// Get or set Key Value /// public string KeyValue { get; set; } } public class GeoAnalysisModelReport { public List lsEOSVAN { get; set; } public List lsDealerDetl { get; set; } public List lsOpenTicket { get; set; } public List lsCloseTicket { get; set; } } public class Analysis { //public List lsEOSVAN = new List(); //public List lsDealerDetl = new List(); //public List lsOpenTicket = new List(); //public List lsCloseTicket = new List(); 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; } /// /// Get or set Route Id /// public Int32 RouteId { get; set; } } }