Ejemplo n.º 1
0
        public void Clone <T>(T obj) where T : class, IModel
        {
            DiseaseDetail objdata = obj as DiseaseDetail;

            this.RecNo        = objdata.RecNo;
            this.DiseaseCode  = objdata.DiseaseCode;
            this.GenericCode  = objdata.GenericCode;
            this.CUser        = objdata.CUser;
            this.CDateTime    = objdata.CDateTime;
            this.EUser        = objdata.EUser;
            this.EDateTime    = objdata.EDateTime;
            this.CreatedBy    = objdata.CreatedBy;
            this.CreatedDate  = objdata.CreatedDate;
            this.UpdateddBy   = objdata.UpdateddBy;
            this.UpdatedDate  = objdata.UpdatedDate;
            this.UpdatedCount = objdata.UpdatedCount;
            this.LUT          = objdata.LUT;
        }
Ejemplo n.º 2
0
        public T Copy <T>() where T : class, IModel, new()
        {
            T             obj     = new T();
            DiseaseDetail objdata = obj as DiseaseDetail;

            objdata.RecNo        = this.RecNo;
            objdata.DiseaseCode  = this.DiseaseCode;
            objdata.GenericCode  = this.GenericCode;
            objdata.CUser        = this.CUser;
            objdata.CDateTime    = this.CDateTime;
            objdata.EUser        = this.EUser;
            objdata.EDateTime    = this.EDateTime;
            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);
        }