Пример #1
0
        public virtual object clone()
        {
            SupplierTable obj = new SupplierTable();

            obj.Address              = Address;
            obj.ItemCode             = ItemCode;
            obj.Title                = Title;
            obj.GeoLocation          = GeoLocation;
            obj.ContactPerson        = ContactPerson;
            obj.SupplierId           = SupplierId;
            obj.Description          = Description;
            obj.LastUpdate           = LastUpdate;
            obj.Notes                = Notes;
            obj.GroupCode            = GroupCode;
            obj.GekCode              = GekCode;
            obj.EditorId             = EditorId;
            obj.Performance          = Performance;
            obj.PhoneNumber          = PhoneNumber;
            obj.FaxNumber            = FaxNumber;
            obj.MobileNumber         = MobileNumber;
            obj.Email                = Email;
            obj.Country              = Country;
            obj.City                 = City;
            obj.Url                  = Url;
            obj.StateProvince        = StateProvince;
            obj.DatabaseId           = DatabaseId;
            obj.DatabaseCreationDate = DatabaseCreationDate;
            obj.CreateDate           = CreateDate;
            obj.CreateUserId         = CreateUserId;

            obj.ExtraCode1  = ExtraCode1;
            obj.ExtraCode2  = ExtraCode2;
            obj.ExtraCode3  = ExtraCode3;
            obj.ExtraCode4  = ExtraCode4;
            obj.ExtraCode5  = ExtraCode5;
            obj.ExtraCode6  = ExtraCode6;
            obj.ExtraCode7  = ExtraCode7;
            obj.ExtraCode8  = ExtraCode8;
            obj.ExtraCode9  = ExtraCode9;
            obj.ExtraCode10 = ExtraCode10;

            obj.ProjectId = ProjectId;

            //if ( getMaterialSet() != null ) {
            //	obj.materialSet = new Vector(materialSet.size());
            //	Iterator iter = materialSet.iterator();
            //	while ( iter.hasNext() ) {
            //		MaterialTable curMat = (MaterialTable)iter.next();
            //		obj.materialSet.add(curMat.clone());
            //	}
            //}

            return((object)obj);
        }
Пример #2
0
        public virtual SupplierTable conversionClone(bool demo)
        {
            SupplierTable supplierTable = (SupplierTable)clone();

            if (demo)
            {
                supplierTable.Description  = "";
                supplierTable.Email        = "*****@*****.**";
                supplierTable.Url          = "www.nomitech.eu";
                supplierTable.PhoneNumber  = "";
                supplierTable.FaxNumber    = "";
                supplierTable.MobileNumber = "";
            }

            return(supplierTable);
        }
Пример #3
0
        public virtual SupplierTable copyWithMaterials()
        {
            SupplierTable obj = (SupplierTable)clone();

            if (MaterialSet != null)
            {
                obj.materialSet = new HashSet <object>();
                System.Collections.IEnumerator iter = materialSet.GetEnumerator();
                while (iter.MoveNext())
                {
                    MaterialTable curMat = (MaterialTable)iter.Current;
                    obj.materialSet.Add((MaterialTable)curMat.Clone());
                }
            }

            return(obj);
        }
Пример #4
0
 // only for writeable fields!
 public virtual void setFieldData(string field, SupplierTable data)
 {
 }