using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LogisticsDAL.DTO.Route { public class RouteDTO { #region PrivateMembers #region Route private int routeid; //Id private string routeroutecode; //Code private string routeroutename; //Name private int startlocationid = -1; //StartLocationId private string startlocationcode; //StartLocationId private string startlocationname; //StartLocationId private int endlocationid = -1; //EndLocationId private string endlocationcode; //EndLocationId private string endlocationname; //EndLocationId private string routevialocations = ""; //ViaLocations private string routevialocationsname = ""; //ViaLocations private double routedistance = 0; //Distance private Int16 routedurationdays = 0; //DurationDays private Int16 routedurationminutes = 0; //DurationMinutes private double routeisnighthalt = 0; //IsNightHalt private string routeremarks = ""; //Remarks private int salespersonid = -1; private string salespersoncode; private string salespersonname; private int fromcityid = -1; private string fromcitycode; private string fromcityname; private int tocityid = -1; private string tocitycode; private string tocityname; private string routeviacityids = "-1"; private string routeviacityidsname = ""; #endregion #region Base private int routecreatedbyid; //CreatedById private DateTime routecreatedon; //CreatedOn private int routemodifiedbyid; //ModifiedById private DateTime routemodifiedon; //ModifiedOn #endregion #region Standard private Int16 routesortorder; //SortOrder private byte routestatus; //Status private Int16 routeversion; //Version private byte routesourcetype; //SourceType #endregion #endregion #region PublicMembers #region Route public int RouteId { get { return routeid; } //Id set { routeid = value; } //Id } public string RouteRouteCode { get { return routeroutecode; } //Code set { routeroutecode = value; } //Code } public string RouteRouteName { get { return routeroutename; } //Name set { routeroutename = value; } //Name } public int StartLocationId { get { return startlocationid; } //StartLocationId set { startlocationid = value; } //StartLocationId } public string StartLocationCode { get { return startlocationcode; } //StartLocationId set { startlocationcode = value; } //StartLocationId } public string StartLocationName { get { return startlocationname; } //StartLocationId set { startlocationname = value; } //StartLocationId } public int EndLocationId { get { return endlocationid; } //EndLocationId set { endlocationid = value; } //EndLocationId } public string EndLocationCode { get { return endlocationcode; } //EndLocationId set { endlocationcode = value; } //EndLocationId } public string EndLocationName { get { return endlocationname; } //EndLocationId set { endlocationname = value; } //EndLocationId } public string RouteViaLocations { get { return routevialocations; } //ViaLocations set { routevialocations = value; } //ViaLocations } public string RouteViaLocationsName { get { return routevialocationsname; } //ViaLocations set { routevialocationsname = value; } //ViaLocations } public double RouteDistance { get { return routedistance; } //Distance set { routedistance = value; } //Distance } public Int16 RouteDurationDays { get { return routedurationdays; } //DurationDays set { routedurationdays = value; } //DurationDays } public Int16 RouteDurationMinutes { get { return routedurationminutes; } //DurationMinutes set { routedurationminutes = value; } //DurationMinutes } public double RouteIsNightHalt { get { return routeisnighthalt; } //IsNightHalt set { routeisnighthalt = value; } //IsNightHalt } public string RouteRemarks { get { return routeremarks; } //Remarks set { routeremarks = value; } //Remarks } public int SalesPersonId { get { return salespersonid; } //Remarks set { salespersonid = value; } //Remarks } public string SalesPersonCode { get { return salespersoncode; } //Remarks set { salespersoncode = value; } //Remarks } public string SalesPersonName { get { return salespersonname; } //Remarks set { salespersonname = value; } //Remarks } public int FromCityId { get { return fromcityid; } set { fromcityid = value; } } public string FromCityCode { get { return fromcitycode; } set { fromcitycode = value; } } public string FromCityName { get { return fromcityname; } set { fromcityname = value; } } public int ToCityId { get { return tocityid; } set { tocityid = value; } } public string ToCityCode { get { return tocitycode; } set { tocitycode = value; } } public string ToCityName { get { return tocityname; } set { tocityname = value; } } public string RouteViaCityIds { get { return routeviacityids; } set { routeviacityids = value; } } public string RouteViaCityIdsName { get { return routeviacityidsname; } set { routeviacityidsname = value; } } #endregion #region Base public int RouteCreatedById { get { return routecreatedbyid; } //CreatedById set { routecreatedbyid = value; } //CreatedById } public DateTime RouteCreatedOn { get { return routecreatedon; } //CreatedOn set { routecreatedon = value; } //CreatedOn } public int RouteModifiedById { get { return routemodifiedbyid; } //ModifiedById set { routemodifiedbyid = value; } //ModifiedById } public DateTime RouteModifiedOn { get { return routemodifiedon; } //ModifiedOn set { routemodifiedon = value; } //ModifiedOn } #endregion #region Standard public Int16 RouteSortOrder { get { return routesortorder; } //SortOrder set { routesortorder = value; } //SortOrder } public byte RouteStatus { get { return routestatus; } //Status set { routestatus = value; } //Status } public Int16 RouteVersion { get { return routeversion; } //Version set { routeversion = value; } //Version } public byte RouteSourceType { get { return routesourcetype; } //SourceType set { routesourcetype = value; } //SourceType } #endregion private List routedetailarray = new List(); public List RouteDetailArray { get { return routedetailarray; } set { routedetailarray = value; } } private byte routenature = 2; private byte isdoubledriver = 1; public byte RouteNature { get { return routenature; } set { routenature = value; } } public byte IsDoubleDriver { get { return isdoubledriver; } set { isdoubledriver = value; } } #endregion } }