Exemple #1
0
        public T Copy <T>() where T : class, IModel, new()
        {
            T             obj     = new T();
            CompanyMaster objdata = obj as CompanyMaster;

            objdata.CompanyCode  = this.CompanyCode;
            objdata.ICode        = this.ICode;
            objdata.CompanyName  = this.CompanyName;
            objdata.CompanyTag   = this.CompanyTag;
            objdata.Add1         = this.Add1;
            objdata.Add2         = this.Add2;
            objdata.Add3         = this.Add3;
            objdata.CutExp       = this.CutExp;
            objdata.CUser        = this.CUser;
            objdata.CDateTime    = this.CDateTime;
            objdata.EUser        = this.EUser;
            objdata.EDateTime    = this.EDateTime;
            objdata.LCode        = this.LCode;
            objdata.DLock        = this.DLock;
            objdata.CreatedBy    = this.CreatedBy;
            objdata.CreatedDate  = this.CreatedDate;
            objdata.UpdateddBy   = this.UpdateddBy;
            objdata.UpdatedDate  = this.UpdatedDate;
            objdata.UpdatedCount = this.UpdatedCount;
            objdata.LUT          = this.LUT;
            return(obj);
        }
Exemple #2
0
        public void Clone <T>(T obj) where T : class, IModel
        {
            CompanyMaster objdata = obj as CompanyMaster;

            this.CompanyCode  = objdata.CompanyCode;
            this.ICode        = objdata.ICode;
            this.CompanyName  = objdata.CompanyName;
            this.CompanyTag   = objdata.CompanyTag;
            this.Add1         = objdata.Add1;
            this.Add2         = objdata.Add2;
            this.Add3         = objdata.Add3;
            this.CutExp       = objdata.CutExp;
            this.CUser        = objdata.CUser;
            this.CDateTime    = objdata.CDateTime;
            this.EUser        = objdata.EUser;
            this.EDateTime    = objdata.EDateTime;
            this.LCode        = objdata.LCode;
            this.DLock        = objdata.DLock;
            this.CreatedBy    = objdata.CreatedBy;
            this.CreatedDate  = objdata.CreatedDate;
            this.UpdateddBy   = objdata.UpdateddBy;
            this.UpdatedDate  = objdata.UpdatedDate;
            this.UpdatedCount = objdata.UpdatedCount;
            this.LUT          = objdata.LUT;
        }