using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using FMDAL.DTO.AssetTypeActivity; namespace FMDAL.DTO.AssetType { public class AssetTypeDTO { #region PrivateMembers #region AssetType private int assettypeid; //Id private string assettypecode; //Code private string assettypename; //Name private byte assettypetrackingtype; //TrackingType #region ParameterSet private int parametersetid = -1; //Set Id private string parametersetcode; //Set Code private string parametersetname; //Set Name private int resourcetypeid; //Set Id private string resourcetypecode; //Set Code private string resourcetypename; //Set Name #endregion private byte assettypenature; //Nature private byte assettypemmtrackingrequired; //MMTrackingRequired private byte assettypeismeter; private byte assettypeisgenerator; private byte assettypeaccountingtype; private int assetwipaccountid = -1; private string assetwipaccountcode; private string assetwipaccountname; private int assetaccountid = -1; private string assetaccountcode; private string assetaccountname; private int depreciationaccountid = -1; private string depreciationaccountcode; private string depreciationaccountname; private byte assettypeisdepreciationapplicable; private int depreciationid = -1; private string depreciationcode; private string depreciationname; private double assettypedepreciationpercentage; private double assettypelife; private byte assettypeistaxdepreciationapplicable; private int taxdepreciationid = -1; private string taxdepreciationcode; private string taxdepreciationname; private double assettypetaxdepreciationpercentage; private double assettypetaxlife; private byte assettypeisamc; private byte assettypeisinsurance; private byte assettypeisinstallation; private byte assettypeislocation; private byte assettypeiswarranty; private byte assettypeismaintenance; private byte assettypeislicense; private byte assettypeisbarcode; private byte assettypeisregistration; private byte assettypeislease; private byte assettypeiscenvat; private byte assettypeisresponsible; private byte assettypeismanufacturer; #endregion #region Base private int assettypecreatedbyid; //CreatedById private DateTime assettypecreatedon; //CreatedOn private string assettypecreatedbyname; //CreatedBy private int assettypemodifiedbyid; //ModifiedById private DateTime assettypemodifiedon; //ModifiedOn private string assettypemodifiedbyname; //ModifiedBy #endregion #region Standard private Int16 assettypesortorder; //SortOrder private byte assettypestatus; //Status private Int16 assettypeversion; //Version #endregion private List assettypeactivityarray = new List(); #endregion private string assettypetrackingtypename; private string assettypenaturename; private string assettypeismetername; private string assettypeisgeneratorname; #region AssetSchedule private int assetscheduleid = -1; //Id private string assetschedulecode; //Code private string assetschedulename; //Name private int accumulateddepreciationaccountid = -1; private string accumulateddepreciationaccountcode; private string accumulateddepreciationaccountname; #endregion #region PublicMembers #region AssetType public int AssetTypeId { get { return assettypeid; } //Id set { assettypeid = value; } //Id } public string AssetTypeCode { get { return assettypecode; } //Code set { assettypecode = value; } //Code } public string AssetTypeName { get { return assettypename; } //Name set { assettypename = value; } //Name } public string AssetTypeTrackingTypeName { get { return assettypetrackingtypename; } //Name set { assettypetrackingtypename = value; } //Name } public string AssetTypeNatureName { get { return assettypenaturename; } //Name set { assettypenaturename = value; } //Name } public string AssetTypeIsMeterName { get { return assettypeismetername; } set { assettypeismetername = value; } } public string AssetTypeIsGeneratorName { get { return assettypeisgeneratorname; } set { assettypeisgeneratorname = value; } } public byte AssetTypeTrackingType { get { return assettypetrackingtype; } set { assettypetrackingtype = value; } //TrackingType } #region ParameterSet public int ParameterSetId { get { return parametersetid; } //Set Id set { parametersetid = value; } //Set Id } public string ParameterSetCode { get { return parametersetcode; } //Set Code set { parametersetcode = value; } //Set Code } public string ParameterSetName { get { return parametersetname; } //Set Name set { parametersetname = value; } //Set Name } #endregion public byte AssetTypeNature { get { return assettypenature; } //Nature set { assettypenature = value; } } public int ResourceTypeId { get { return resourcetypeid; } //Set Id set { resourcetypeid = value; } //Set Id } public string ResourceTypeCode { get { return resourcetypecode; } //Set Code set { resourcetypecode = value; } //Set Code } public string ResourceTypeName { get { return resourcetypename; } //Set Name set { resourcetypename = value; } //Set Name } public byte AssetTypeMMTrackingRequired { get { return assettypemmtrackingrequired; } //MMTrackingRequired set { assettypemmtrackingrequired = value; } //MMTrackingRequired } public byte AssetTypeIsMeter { get { return assettypeismeter; } set { assettypeismeter = value; } } public byte AssetTypeIsGenerator { get { return assettypeisgenerator; } set { assettypeisgenerator = value; } } public byte AssetTypeAccountingType { get { return assettypeaccountingtype; } set { assettypeaccountingtype = value; } } public int AssetWipAccountId { get { return assetwipaccountid; } set { assetwipaccountid = value; } } public string AssetWipAccountCode { get { return assetwipaccountcode; } set { assetwipaccountcode = value; } } public string AssetWipAccountName { get { return assetwipaccountname; } set { assetwipaccountname = value; } } public int AssetAccountId { get { return assetaccountid; } set { assetaccountid = value; } } public string AssetAccountCode { get { return assetaccountcode; } set { assetaccountcode = value; } } public string AssetAccountName { get { return assetaccountname; } set { assetaccountname = value; } } public int DepreciationAccountId { get { return depreciationaccountid; } set { depreciationaccountid = value; } } public string DepreciationAccountCode { get { return depreciationaccountcode; } set { depreciationaccountcode = value; } } public string DepreciationAccountName { get { return depreciationaccountname; } set { depreciationaccountname = value; } } public byte AssetTypeIsDepreciationApplicable { get { return assettypeisdepreciationapplicable; } set { assettypeisdepreciationapplicable = value; } } public int DepreciationId { get { return depreciationid; } set { depreciationid = value; } } public string DepreciationCode { get { return depreciationcode; } set { depreciationcode = value; } } public string DepreciationName { get { return depreciationname; } set { depreciationname = value; } } public double AssetTypeDepreciationPercentage { get { return assettypedepreciationpercentage; } set { assettypedepreciationpercentage = value; } } public double AssetTypeLife { get { return assettypelife; } set { assettypelife = value; } } public byte AssetTypeIsTaxDepreciationApplicable { get { return assettypeistaxdepreciationapplicable; } set { assettypeistaxdepreciationapplicable = value; } } public int TaxDepreciationId { get { return taxdepreciationid; } set { taxdepreciationid = value; } } public string TaxDepreciationCode { get { return taxdepreciationcode; } set { taxdepreciationcode = value; } } public string TaxDepreciationName { get { return taxdepreciationname; } set { taxdepreciationname = value; } } public double AssetTypeTaxDepreciationPercentage { get { return assettypetaxdepreciationpercentage; } set { assettypetaxdepreciationpercentage = value; } } public double AssetTypeTaxLife { get { return assettypetaxlife; } set { assettypetaxlife = value; } } public byte AssetTypeIsAMC { get { return assettypeisamc; } set { assettypeisamc = value; } } public byte AssetTypeIsInsurance { get { return assettypeisinsurance; } set { assettypeisinsurance = value; } } public byte AssetTypeIsInstallation { get { return assettypeisinstallation; } set { assettypeisinstallation = value; } } public byte AssetTypeIsLocation { get { return assettypeislocation; } set { assettypeislocation = value; } } public byte AssetTypeIsWarranty { get { return assettypeiswarranty; } set { assettypeiswarranty = value; } } public byte AssetTypeIsMaintenance { get { return assettypeismaintenance; } set { assettypeismaintenance = value; } } public byte AssetTypeIsLicense { get { return assettypeislicense; } set { assettypeislicense = value; } } public byte AssetTypeIsBarcode { get { return assettypeisbarcode; } set { assettypeisbarcode = value; } } public byte AssetTypeIsRegistration { get { return assettypeisregistration; } set { assettypeisregistration = value; } } public byte AssetTypeIsLease { get { return assettypeislease; } set { assettypeislease = value; } } public byte AssetTypeIsCenvat { get { return assettypeiscenvat; } set { assettypeiscenvat = value; } } public byte AssetTypeIsResponsible { get { return assettypeisresponsible; } set { assettypeisresponsible = value; } } public byte AssetTypeIsManufacturer { get { return assettypeismanufacturer; } set { assettypeismanufacturer = value; } } private int codedefineid = -1; private string codedefinecategorycode; private string codedefinecategoryname; public int CodeDefineId { get { return codedefineid; } //InchargeId set { codedefineid = value; } //Id } public string CodeDefineCategoryCode { get { return codedefinecategorycode; } //InchargeCode set { codedefinecategorycode = value; } //Code } public string CodeDefineCategoryName { get { return codedefinecategoryname; } //InchargeName set { codedefinecategoryname = value; } //Name } #endregion #region Base public int AssetTypeCreatedById { get { return assettypecreatedbyid; } //CreatedById set { assettypecreatedbyid = value; } //CreatedById } public DateTime AssetTypeCreatedOn { get { return assettypecreatedon; } //CreatedOn set { assettypecreatedon = value; } //CreatedOn } public string AssetTypeCreatedByName { get { return assettypecreatedbyname; } //CreatedBy set { assettypecreatedbyname = value; } //CreatedBy } public int AssetTypeModifiedById { get { return assettypemodifiedbyid; } //ModifiedById set { assettypemodifiedbyid = value; } //ModifiedById } public DateTime AssetTypeModifiedOn { get { return assettypemodifiedon; } //ModifiedOn set { assettypemodifiedon = value; } //ModifiedOn } public string AssetTypeModifiedByName { get { return assettypemodifiedbyname; } //ModifiedBy set { assettypemodifiedbyname = value; } //ModifiedBy } #endregion #region Standard public Int16 AssetTypeSortOrder { get { return assettypesortorder; } //SortOrder set { assettypesortorder = value; } //SortOrder } public byte AssetTypeStatus { get { return assettypestatus; } //Status set { assettypestatus = value; } //Status } public Int16 AssetTypeVersion { get { return assettypeversion; } //Version set { assettypeversion = value; } //Version } public List AssetTypeActivityArray { get { return assettypeactivityarray; } set { assettypeactivityarray = value; } } #endregion #region AssetSchedule public int AssetScheduleId { get { return assetscheduleid; } //Set Id set { assetscheduleid = value; } //Set Id } public string AssetScheduleCode { get { return assetschedulecode; } //Set Code set { assetschedulecode = value; } //Set Code } public string AssetScheduleName { get { return assetschedulename; } //Set Name set { assetschedulename = value; } //Set Name } public int AccumulatedDepreciationAccountId { get { return accumulateddepreciationaccountid; } set { accumulateddepreciationaccountid = value; } } public string AccumulatedDepreciationAccountCode { get { return accumulateddepreciationaccountcode; } set { accumulateddepreciationaccountcode = value; } } public string AccumulatedDepreciationAccountName { get { return accumulateddepreciationaccountname; } set { accumulateddepreciationaccountname = value; } } #endregion #region TempField private decimal deplife; public decimal DepLife { get { return deplife; } //DepLife set { deplife = value; } //DepLife } #endregion #endregion private int slaid; //SLAID public int SLAId { get { return slaid; } //SLAID set { slaid = value; } //SLAID } private int sourcetype = 5; public int SourceType { get { return sourcetype; } //Sourcetype set { sourcetype = value; } //Sourcetype } private int tenantyid; public int TenantId { get { return tenantyid; } set { tenantyid = value; } } // RAM (Returnable Asset Management) — scan-tracking opt-in flags, RAM_Modernization_Design_Reference.md §4.1 private byte assettypeisscantracked = 1; //(0.YES,1.NO) private byte assettypeisstatemachineenabled = 1; //(0.YES,1.NO) — requires ISSCANTRACKED = 0 private int? assettypecleaningcyclethreshold; private int? assettypedeepcyclethreshold; private int? assettypedefaultdetentiondays; public byte AssetTypeIsScanTracked { get { return assettypeisscantracked; } set { assettypeisscantracked = value; } } public byte AssetTypeIsStateMachineEnabled { get { return assettypeisstatemachineenabled; } set { assettypeisstatemachineenabled = value; } } public int? AssetTypeCleaningCycleThreshold { get { return assettypecleaningcyclethreshold; } set { assettypecleaningcyclethreshold = value; } } public int? AssetTypeDeepCycleThreshold { get { return assettypedeepcyclethreshold; } set { assettypedeepcyclethreshold = value; } } public int? AssetTypeDefaultDetentionDays { get { return assettypedefaultdetentiondays; } set { assettypedefaultdetentiondays = value; } } } }