using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FMDAL.DTO.Asset { public class AssetDTO { #region PrivateMembers #region Asset private int assetid; //Id private string assetcode; //Code private string assetname; //Name #region AssetType private int assettypeid = -1; //Id private string assettypecode; //Code private string assettypename; //Name #endregion #region PartyBranch private int partybranchid = -1; //Id private string partybranchcode; //Code private string partybranchname; //Name private string partybranchshortname; //ShortName #endregion #region PartyBranchLocation private int locationid = -1; //Id private string locationcode; //Code private string locationname; //Name #endregion #region ItemCategory private int categoryid = -1; //Id private string categorycode; //Code private string categoryname; //Name #endregion #region ItemSubCategory private int subcategoryid = -1; //Id private string subcategorycode; //Code private string subcategoryname; //Name #endregion #region Model private int modelid = -1; //Id private string modelcode; //Code private string modelname; //Name private string modelshortname; //ShortName #endregion #region ItemBrand private int brandid = -1; //Id private string brandcode; //Code private string brandname; //Name #endregion private Int16 assetyom; //YOM private double assetcapacity; //Capacity #region UOM private int uomid = -1; //Id private string uomcode; //Code private string uomname; //Name #endregion #region Item private int itemid = -1; //Id private string itemcode; //Code private string itemname; //Name private string itemshortname; //ShortName #endregion private byte assetrunningstatus; //RunningStatus private byte assetiscritical; //IsCritical private byte assetservicestatus = 0; //ServiceStatus private DateTime assetservicefromdate; //ServiceFromDate private DateTime assetservicetodate; //ServiceToDate #region Party private int serviceproviderid = -1; //Id private string serviceprovidercode; //Code private string serviceprovidername; //Name #endregion #region Party private int supplierid = -1; //Id private string suppliercode; //Code private string suppliername; //Name #endregion private string assetbillnumber; //BillNumber private DateTime assetbilldate; //BillDate private double assetvalueofassetinbill; //ValueofAssetInBill private DateTime assetpurchasedate; //PurchaseDate private DateTime assetinstallationdate; //InstallationDate private byte assetassetostatus; //AssetStatus private byte assetenergymeteringtype; //EnergyMeteringType private byte assettypeasset; private string assetthumbnail; //ThumbNail #region Meter private int meterid = -1; //Id private string metername; //Name #endregion #region MeterShare private int metershareid = -1; //Id #endregion private double assetassetvalue; //AssetValue private string assetmfrslno; #region ParameterMap private int parametermapid = -1; private string parametermapcode; private string parametermapname; #endregion #endregion #region Base private int assetcreatedbyid = -1; //CreatedById private DateTime assetcreatedon; //CreatedOn private string assetcreatedbyname; //CreatedByName private int assetmodifiedbyid = -1; //ModifiedById private DateTime assetmodifiedon; //ModifiedOn private string assetmodifiedbyname; //ModifiedByName #endregion #region Standard private Int16 assetsortorder; //SortOrder private byte assetstatus; //Status private Int16 assetversion; //Version #endregion #region New Fields private byte sourcetype = 5; //SourceType private byte type; //Type private string assetbatch; //AssetBatch private int ouid = -1; //OUID private string description; //description private double quantity; //quantity private int inchargeid = -1; //incharge private string inchargecode; private string inchargename; private int departmentid = -1; //department private string departmentcode; private string departmentname; 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 int accumulateddepreciationaccountid = -1; private string accumulateddepreciationaccountcode; private string accumulateddepreciationaccountname; private string assetpurchaseordernumber; private double assetpurchaseordervalue; #endregion #region RAM (Returnable Asset Management) — RAM_Modernization_Design_Reference.md §4.2 private int? currentbinid; private int? currentlocationid; private int? currentcustodiantype; //(0.INTERNAL_OU,1.EMPLOYEE,2.PARTNER,3.CUSTOMER) — widened from byte/TINYINT to plain int/INT private int? currentcustodianid; private int? currentassetstateid; private DateTime? lastmovementon; private int cyclecount; #endregion private List assetparametersetdetailarray = new List(); #endregion #region PublicMembers #region Asset public int AssetId { get { return assetid; } //Id set { assetid = value; } //Id } public string AssetCode { get { return assetcode; } //Code set { assetcode = value; } //Code } public string AssetName { get { return assetname; } //Name set { assetname = value; } //Name } #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 } #endregion #region PartyBranch public int PartyBranchId { get { return partybranchid; } //Id set { partybranchid = value; } //Id } public string PartyBranchCode { get { return partybranchcode; } //Code set { partybranchcode = value; } //Code } public string PartyBranchName { get { return partybranchname; } //Name set { partybranchname = value; } //Name } public string PartyBranchShortName { get { return partybranchshortname; } //ShortName set { partybranchshortname = value; } //ShortName } #endregion #region PartyBranchLocation public int LocationId { get { return locationid; } //Id set { locationid = value; } //Id } public string LocationCode { get { return locationcode; } //Code set { locationcode = value; } //Code } public string LocationName { get { return locationname; } //Name set { locationname = value; } //Name } #endregion #region ItemCategory public int CategoryId { get { return categoryid; } //Id set { categoryid = value; } //Id } public string CategoryCode { get { return categorycode; } //Code set { categorycode = value; } //Code } public string CategoryName { get { return categoryname; } //Name set { categoryname = value; } //Name } #endregion #region ItemSubCategory public int SubCategoryId { get { return subcategoryid; } //Id set { subcategoryid = value; } //Id } public string SubCategoryCode { get { return subcategorycode; } //Code set { subcategorycode = value; } //Code } public string SubCategoryName { get { return subcategoryname; } //Name set { subcategoryname = value; } //Name } #endregion #region Model public int ModelId { get { return modelid; } //Id set { modelid = value; } //Id } public string ModelCode { get { return modelcode; } //Code set { modelcode = value; } //Code } public string ModelName { get { return modelname; } //Name set { modelname = value; } //Name } public string ModelShortName { get { return modelshortname; } //ShortName set { modelshortname = value; } //ShortName } #endregion #region ItemBrand public int BrandId { get { return brandid; } //Id set { brandid = value; } //Id } public string BrandCode { get { return brandcode; } //Code set { brandcode = value; } //Code } public string BrandName { get { return brandname; } //Name set { brandname = value; } //Name } #endregion public Int16 AssetYOM { get { return assetyom; } //YOM set { assetyom = value; } //YOM } public double AssetCapacity { get { return assetcapacity; } //Capacity set { assetcapacity = value; } //Capacity } #region UOM public int UOMId { get { return uomid; } //Id set { uomid = value; } //Id } public string UOMCode { get { return uomcode; } //Code set { uomcode = value; } //Code } public string UOMName { get { return uomname; } //Name set { uomname = value; } //Name } #endregion #region Item public int ItemId { get { return itemid; } //Id set { itemid = value; } //Id } public string ItemCode { get { return itemcode; } //Code set { itemcode = value; } //Code } public string ItemName { get { return itemname; } //Name set { itemname = value; } //Name } public string ItemShortName { get { return itemshortname; } //ShortName set { itemshortname = value; } //ShortName } #endregion public byte AssetRunningStatus { get { return assetrunningstatus; } //RunningStatus set { assetrunningstatus = value; } //RunningStatus } public byte AssetIsCritical { get { return assetiscritical; } //IsCritical set { assetiscritical = value; } //IsCritical } public byte AssetServiceStatus { get { return assetservicestatus; } //ServiceStatus set { assetservicestatus = value; } //ServiceStatus } public DateTime AssetServiceFromDate { get { return assetservicefromdate; } //ServiceFromDate set { assetservicefromdate = value; } //ServiceFromDate } public DateTime AssetServiceToDate { get { return assetservicetodate; } //ServiceToDate set { assetservicetodate = value; } //ServiceToDate } #region Party public int ServiceProviderId { get { return serviceproviderid; } //Id set { serviceproviderid = value; } //Id } public string ServiceProviderCode { get { return serviceprovidercode; } //Code set { serviceprovidercode = value; } //Code } public string ServiceProviderName { get { return serviceprovidername; } //Name set { serviceprovidername = value; } //Name } #endregion #region Party public int SupplierId { get { return supplierid; } //Id set { supplierid = value; } //Id } public string SupplierCode { get { return suppliercode; } //Code set { suppliercode = value; } //Code } public string SupplierName { get { return suppliername; } //Name set { suppliername = value; } //Name } #endregion public string AssetBillNumber { get { return assetbillnumber; } //BillNumber set { assetbillnumber = value; } //BillNumber } public DateTime AssetBillDate { get { return assetbilldate; } //BillDate set { assetbilldate = value; } //BillDate } public double AssetValueofAssetInBill { get { return assetvalueofassetinbill; } //ValueofAssetInBill set { assetvalueofassetinbill = value; } //ValueofAssetInBill } public DateTime AssetPurchaseDate { get { return assetpurchasedate; } //PurchaseDate set { assetpurchasedate = value; } //PurchaseDate } public DateTime AssetInstallationDate { get { return assetinstallationdate; } //InstallationDate set { assetinstallationdate = value; } //InstallationDate } public byte AssetAssetOStatus { get { return assetassetostatus; } //AssetStatus set { assetassetostatus = value; } //AssetStatus } public byte AssetEnergyMeteringType { get { return assetenergymeteringtype; } //EnergyMeteringType set { assetenergymeteringtype = value; } //EnergyMeteringType } #region Meter public int MeterId { get { return meterid; } //Id set { meterid = value; } //Id } public string MeterName { get { return metername; } //Name set { metername = value; } //Name } #endregion #region MeterShare public int MeterShareId { get { return metershareid; } //Id set { metershareid = value; } //Id } #endregion public double AssetAssetValue { get { return assetassetvalue; } //AssetValue set { assetassetvalue = value; } //AssetValue } public string AssetMfrSlNo { get { return assetmfrslno; } set { assetmfrslno = value; } } public byte AssetTypeAsset { get { return assettypeasset; } //RunningStatus set { assettypeasset = value; } //RunningStatus } #region ParameterMap public int ParameterMapId { get { return parametermapid; } set { parametermapid = value; } } public string ParameterMapCode { get { return parametermapcode; } set { parametermapcode = value; } } public string ParameterMapName { get { return parametermapname; } set { parametermapname = value; } } #endregion #endregion #region Base public int AssetCreatedById { get { return assetcreatedbyid; } //CreatedById set { assetcreatedbyid = value; } //CreatedById } public DateTime AssetCreatedOn { get { return assetcreatedon; } //CreatedOn set { assetcreatedon = value; } //CreatedOn } public string AssetCreatedByName { get { return assetcreatedbyname; } //CreatedByName set { assetcreatedbyname = value; } //CreatedByName } public int AssetModifiedById { get { return assetmodifiedbyid; } //ModifiedById set { assetmodifiedbyid = value; } //ModifiedById } public DateTime AssetModifiedOn { get { return assetmodifiedon; } //ModifiedOn set { assetmodifiedon = value; } //ModifiedOn } public string AssetModifiedByName { get { return assetmodifiedbyname; } //ModifiedByName set { assetmodifiedbyname = value; } //ModifiedByName } #endregion #region Standard public Int16 AssetSortOrder { get { return assetsortorder; } //SortOrder set { assetsortorder = value; } //SortOrder } public byte AssetStatus { get { return assetstatus; } //Status set { assetstatus = value; } //Status } public Int16 AssetVersion { get { return assetversion; } //Version set { assetversion = value; } //Version } #endregion #region NewFields public byte SourceType { get { return sourcetype; } //SourceType set { sourcetype = value; } //SourceType } public byte Type { get { return type; } //Type set { type = value; } //Type } public string AssetBatch { get { return assetbatch; } //AssetBatch set { assetbatch = value; } //Id } public string Description { get { return description; } //Description set { description = value; } //Id } public double Quantity { get { return quantity; } //Quantity set { quantity = value; } //Id } public int InchargeId { get { return inchargeid; } //InchargeId set { inchargeid = value; } //Id } public string InchargeCode { get { return inchargecode; } //InchargeCode set { inchargecode = value; } //Code } public string InchargeName { get { return inchargename; } //InchargeName set { inchargename = value; } //Name } public int DepartmentId { get { return departmentid; } //DepartmentId set { departmentid = value; } //Id } public string DepartmentCode { get { return departmentcode; } //DepartmentCode set { departmentcode = value; } //Code } public string DepartmentName { get { return departmentname; } //DepartmentName set { departmentname = value; } //Name } public int OUId { get { return ouid; } //OuId set { ouid = value; } //Id } 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 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 public List AssetParameterSetDetailArray { get { return assetparametersetdetailarray; } set { assetparametersetdetailarray = value; } } public string AssetPurchaseOrderNumber { get { return assetpurchaseordernumber; } set { assetpurchaseordernumber = value; } } public double AssetPurchaseOrderValue { get { return assetpurchaseordervalue; } set { assetpurchaseordervalue = value; } } public string AssetThumbNail { get { return assetthumbnail; } //ThumbNail set { assetthumbnail = value; } //ThumbNail } #region RAM (Returnable Asset Management) — RAM_Modernization_Design_Reference.md §4.2 public int? CurrentBinId { get { return currentbinid; } set { currentbinid = value; } } public int? CurrentLocationId { get { return currentlocationid; } set { currentlocationid = value; } } public int? CurrentCustodianType { get { return currentcustodiantype; } set { currentcustodiantype = value; } } public int? CurrentCustodianId { get { return currentcustodianid; } set { currentcustodianid = value; } } public int? CurrentAssetStateId { get { return currentassetstateid; } set { currentassetstateid = value; } } public DateTime? LastMovementOn { get { return lastmovementon; } set { lastmovementon = value; } } public int CycleCount { get { return cyclecount; } set { cyclecount = value; } } #endregion #endregion } }