Ejemplo n.º 1
0
 public IDSEquipment()
 {
     ID                  = "";
     ParentID            = "";
     Tag                 = "";
     FunctionCode        = "";
     Suffix              = "";
     EquipmentCatagory   = "";
     SpecificInfo1       = "";
     SpecificInfo2       = "";
     Quantity            = 0;
     Remark              = "";
     EquipmentRepository = new IDSRepository();
     SubEquipments       = new IDSSubEquipmentCollection();
 }
Ejemplo n.º 2
0
 public IDSEquipment(IDSSubLoop subLoop)
 {
     ID                   = "";
     ParentID             = "";
     _subLoop             = subLoop;
     OriginalTag          = "";
     FunctionCode         = "";
     Suffix               = "";
     RepositoryCatagoryID = "";
     SpecificInfo1        = "";
     SpecificInfo2        = "";
     Quantity             = 0;
     Remark               = "";
     Repository           = new IDSRepository();
     SubEquipments        = new IDSSubEquipmentCollection();
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Deep Clone
        /// </summary>
        /// <returns></returns>
        public IDSSubEquipmentCollection Copy()
        {
            IDSSubEquipmentCollection subEquipments = new IDSSubEquipmentCollection();

            if (this.Count <= 0)
            {
                return(subEquipments);
            }
            else
            {
                foreach (IDSSubEquipment subEquipment in this)
                {
                    subEquipments.Add(subEquipment.Copy());
                }
                return(subEquipments);
            }
        }