352 lines
10 KiB
C#
352 lines
10 KiB
C#
using GODATA.Models.UserInventory;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Configuration;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.Mvc;
|
|
|
|
namespace GODATA.Models.Inventory
|
|
{
|
|
|
|
public class InventoryModel
|
|
{
|
|
public bool variableisDeleted = false;
|
|
public int Id { get; set; }
|
|
[Required]
|
|
[Display(Name = "Reason")]
|
|
public string ReasonName { get; set; }
|
|
public string ReasonAlias { get; set; }
|
|
public int TypeId { get; set; }
|
|
public string Token { get; set; }
|
|
public string Message { get; set; }
|
|
public int Status { get; set; }
|
|
[Display(Name = "Reason Type")]
|
|
public string TypeAlias { get; set; }
|
|
public bool IsDeleted { get { return variableisDeleted; } set { variableisDeleted = value; } }
|
|
}
|
|
|
|
public class OrganizationChart : InventoryModel
|
|
{
|
|
[Required]
|
|
[Display(Name = "Organization Name")]
|
|
public string OrganizationName { get; set; }
|
|
public string Alias { get; set; }
|
|
public string City { get; set; }
|
|
public string State { get; set; }
|
|
public string Country { get; set; }
|
|
public string Description { get; set; }
|
|
public string Path { get; set; }
|
|
public string Depth { get; set; }
|
|
public string Color { get; set; }
|
|
public string Region { get; set; }
|
|
public string Parent { get; set; }
|
|
public Boolean ServiceEngineerMobileApplicationBlocked { get; set; }
|
|
}
|
|
public class ManageFleet : DealerModel
|
|
{
|
|
private List<VanList> lsVanList = new List<VanList>();
|
|
public bool variableisDeleted = false;
|
|
[Display(Name = "Contact No.")]
|
|
public string DealerContactNo
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
public string Status
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
[Display(Name = "Dealer Name")]
|
|
public string DealerDealerName
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
[Display(Name = "Organization")]
|
|
public int DealerOrganizationId
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
public string DealerOrganizationName
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
public string DealerStateName
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
public string sDlrNamewithContactNo
|
|
{
|
|
get
|
|
{
|
|
if (Convert.ToString(DealerContactNo) == "" || Convert.ToString(DealerContactNo) == null)
|
|
return DealerDealerName;
|
|
else
|
|
return DealerDealerName + " (" + DealerContactNo + ")";
|
|
}
|
|
}
|
|
public String CityId
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
public List<VanList> VanList { get; set; }
|
|
public string DealerDealerDefaultLattitude
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
public string DealerDealerDefaultLongitude
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
public bool IsDeleted { get { return variableisDeleted; } set { variableisDeleted = value; } }
|
|
public string sDlrNamewithDealerId
|
|
{
|
|
get
|
|
{
|
|
if (Convert.ToString(DealerId) == "" || Convert.ToString(DealerId) == null)
|
|
return DealerDealerName;
|
|
else
|
|
return DealerDealerName + " (" + DealerId + ")";
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
public class VanList
|
|
{
|
|
public bool variableVanisDeleted = false;
|
|
public bool variableVanisRelease = false;
|
|
public string VanId { get; set; }
|
|
[Display(Name = "Van Name")]
|
|
public string VanAlias { get; set; }
|
|
public string VanDefaultLatitude { get; set; }
|
|
public string VanDefaultLongitude { get; set; }
|
|
[Display(Name = "Model")]
|
|
public string VanModelName { get; set; }
|
|
[Display(Name = "Registration No.")]
|
|
public string VanRegistrationNo { get; set; }
|
|
public string VanregisteredAs { get; set; }
|
|
[Display(Name = "City")]
|
|
public string VanCity { get; set; }
|
|
[Display(Name = "State")]
|
|
public string VanState { get; set; }
|
|
public string ServiceEngineerId { get; set; }
|
|
[Display(Name = "EOS Team Member")]
|
|
public string ServiceEngineerName { get; set; }
|
|
[Display(Name = "EOS Team Member")]
|
|
public string ServiceEngineerAlias { get; set; }
|
|
public string ServiceEngineerImeiNumber { get; set; }
|
|
[Display(Name = "EOS Team Member 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 ServiceEngineerContactNumber { get; set; }
|
|
[Display(Name = "License Key")]
|
|
public string ServiceEngineerApplicationLicenseKey { get; set; }
|
|
public bool ServiceEngineerMobileApplicationBlocked { get; set; }
|
|
public int ServiceEngineerDeviceAlias { get; set; }
|
|
public string ServiceEngineerPinPassword { get; set; }
|
|
public string ServiceEngineerVanVanId { get; set; }
|
|
public string ServiceEngineerVanServiceEngineerId { get; set; }
|
|
public int vanStateId
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
public int vanCityId
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
[Display(Name = "Inter State Visited")]
|
|
public bool VanIsVisitedInterState
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
public bool IsDeletedVan { get { return variableVanisDeleted; } set { variableVanisDeleted = value; } }
|
|
[Display(Name = "License Realease")]
|
|
public bool IsVanRelease { get { return variableVanisRelease; } set { variableVanisRelease = value; } }
|
|
}
|
|
public class ManageOwner
|
|
{
|
|
public bool variableisDeleted = false;
|
|
public bool variableVechileIsDeleted = false;
|
|
private List<ManageOwner> lsVechileList = new List<ManageOwner>();
|
|
|
|
[Display(Name = "Name")]
|
|
[Required(ErrorMessage = "Please Enter Name")]
|
|
public string CustomerCustomerName
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
[Display(Name = "Mobile No.")]
|
|
[Required(ErrorMessage = "Please Enter Mobile No.")]
|
|
|
|
public string CustomerMobileNumber1
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
[Display(Name = "Address")]
|
|
[Required(ErrorMessage = "Please Enter Address")]
|
|
public string CustomerAddress
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
[Display(Name = "City")]
|
|
public string CustomerCity
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
[Display(Name = "State")]
|
|
public string CustomerState
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
|
|
public int CustomerStateIdNo
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
[Display(Name = "Email Id")]
|
|
[DataType(DataType.EmailAddress)]
|
|
public string CustomerEmailId
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
[Display(Name = "Fleet Owners Name")]
|
|
public string OwnerNameWithContactNo
|
|
{
|
|
get
|
|
{
|
|
if (Convert.ToString(CustomerMobileNumber1) == "" || Convert.ToString(CustomerMobileNumber1) == null)
|
|
return CustomerCustomerName;
|
|
else
|
|
return CustomerCustomerName + " (" + CustomerMobileNumber1 + ")";
|
|
}
|
|
}
|
|
|
|
public string CustomerId
|
|
{
|
|
get;
|
|
set;
|
|
|
|
}
|
|
|
|
public List<ManageOwner> plsVechileList
|
|
{
|
|
get
|
|
{
|
|
return lsVechileList;
|
|
}
|
|
set
|
|
{
|
|
lsVechileList = value;
|
|
}
|
|
}
|
|
public string VehicleId
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
public Boolean CustomerVehicleIsOwner
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
[Display(Name = "Reg. No.")]
|
|
[Required(ErrorMessage = "Please Enter Reg. No.")]
|
|
//[Remote("CheckForDuplication", "Inventory")]
|
|
public string VehicleRegistrationNumber
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
[Display(Name = "Chassis No.")]
|
|
[Required(ErrorMessage = "Please Enter Chassis No.")]
|
|
public string VehicleNumberPlate
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
[Display(Name = "Model No.")]
|
|
[Required(ErrorMessage = "Please Enter Model No.")]
|
|
public string VehicleModelNumber
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
[Display(Name = "Vehicle Type")]
|
|
public string VehicleType
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
public string Status
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
public int OwnerStateId
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
public string OwnerCityId
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
public string Message { get; set; }
|
|
public string Type { get; set; }
|
|
public string Value { get; set; }
|
|
[Display(Name = "Product Variant")]
|
|
public string CustomerVehicleModelTagging { get; set; }
|
|
[Display(Name = "Vehicle Installation Date")]
|
|
public string VehicleInstallationDate { get; set; }
|
|
[Display(Name = "Model No.")]
|
|
public string CustomerVehicleModelName { get; set; }
|
|
public bool IsDeleted { get { return variableisDeleted; } set { variableisDeleted = value; } }
|
|
public bool IsDealetedVehicle { get { return variableVechileIsDeleted; } set { variableVechileIsDeleted = value; } }
|
|
/// <summary>
|
|
/// Get or set IsKamUser
|
|
/// </summary>
|
|
public bool IsKamUser { get; set; }
|
|
/// <summary>
|
|
/// Get or set LicenseKey
|
|
/// </summary>
|
|
public string LicenseKey { get; set; }
|
|
}
|
|
|
|
public class DealerOutputModel
|
|
{
|
|
public string Message { get; set; }
|
|
public string Status { get; set; }
|
|
}
|
|
} |