Ejemplo n.º 1
0
 /// <summary>
 /// Copy constructor
 /// </summary>
 /// <param name="other"></param>
 public Asset(Asset other)
 {
     _assetID          = other.AssetID;
     _parentAssetID    = other._parentAssetID;
     _uniqueID         = other._uniqueID;
     _name             = other._name;
     _location         = other._location;
     _fullLocation     = other._fullLocation;
     _locationID       = other._locationID;
     _domain           = other._domain;
     _domainID         = other._domainID;
     _ipaddress        = other._ipaddress;
     _lastAudit        = other._lastAudit;
     _requestaudit     = other._requestaudit;
     _agentStatus      = other._agentStatus;
     _agentVersion     = other._agentVersion;
     _assetTypeID      = other._assetTypeID;
     _assetTypeName    = other._assetTypeName;
     _macAddress       = other._macAddress;
     _make             = other._make;
     _model            = other._model;
     _serial           = other._serial;
     _icon             = other._icon;
     _auditable        = other._auditable;
     _alerts_enabled   = other._alerts_enabled;
     _tag              = other._tag;
     _stockStatus      = other._stockStatus;
     _supplierID       = other._supplierID;
     _supplierName     = other._supplierName;
     _listAuditedItems = other._listAuditedItems;
     _listFolders      = other._listFolders;
     _childAssets      = other._childAssets;
     _overwriteData    = other._overwriteData;
     _assetTag         = other._assetTag;
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Load all of the hardware / system items audited for this asset
        /// </summary>
        /// <returns>Count of items added to the list</returns>
        public int PopulateAuditedItems()
        {
            AuditedItemsDAO lwDataAccess = new AuditedItemsDAO();

            _listAuditedItems = new AuditedItemList(lwDataAccess.GetAuditedItems(AssetID, "", true));
            return(_listAuditedItems.Count);
        }
Ejemplo n.º 3
0
 public Asset()
 {
     _assetID        = 0;
     _parentAssetID  = 0;
     _uniqueID       = "";
     _name           = "";
     _location       = "";
     _fullLocation   = "";
     _locationID     = 1;
     _domain         = "<None>";
     _domainID       = 1;
     _ipaddress      = "";
     _lastAudit      = new DateTime(0L);
     _requestaudit   = false;
     _agentStatus    = AGENTSTATUS.notdeployed;
     _agentVersion   = "";
     _assetTypeID    = 2;
     _assetTypeName  = "";
     _macAddress     = "";
     _make           = "";
     _model          = "";
     _serial         = "";
     _icon           = "";
     _auditable      = false;
     _alerts_enabled = true;
     _tag            = null;
     _stockStatus    = STOCKSTATUS.inuse;
     _supplierID     = 1;
     _supplierName   = "";
     //
     _listAuditedItems = null;
     _listFolders      = null;
     _childAssets      = null;
     _overwriteData    = true;
     _assetTag         = "";
 }