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

            objdata.CustomerCode = this.CustomerCode;
            objdata.ICode        = this.ICode;
            objdata.CustomerName = this.CustomerName;
            objdata.Add1         = this.Add1;
            objdata.Phone1       = this.Phone1;
            objdata.Email        = this.Email;
            objdata.DoctorCode   = this.DoctorCode;
            objdata.MemberCode   = this.MemberCode;
            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.CashDiscount = this.CashDiscount;
            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);
        }
Example #2
0
        public void Clone <T>(T obj) where T : class, IModel
        {
            CustomerMaster objdata = obj as CustomerMaster;

            this.CustomerCode = objdata.CustomerCode;
            this.ICode        = objdata.ICode;
            this.CustomerName = objdata.CustomerName;
            this.Add1         = objdata.Add1;
            this.Phone1       = objdata.Phone1;
            this.Email        = objdata.Email;
            this.DoctorCode   = objdata.DoctorCode;
            this.MemberCode   = objdata.MemberCode;
            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.CashDiscount = objdata.CashDiscount;
            this.CreatedBy    = objdata.CreatedBy;
            this.CreatedDate  = objdata.CreatedDate;
            this.UpdateddBy   = objdata.UpdateddBy;
            this.UpdatedDate  = objdata.UpdatedDate;
            this.UpdatedCount = objdata.UpdatedCount;
            this.LUT          = objdata.LUT;
        }