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

            objdata.RecNo        = this.RecNo;
            objdata.BillNo       = this.BillNo;
            objdata.BillDate     = this.BillDate;
            objdata.CustomerCode = this.CustomerCode;
            objdata.DoctorCode   = this.DoctorCode;
            objdata.ProductCode  = this.ProductCode;
            objdata.Qty          = this.Qty;
            objdata.Remark       = this.Remark;
            objdata.ReminderTag  = this.ReminderTag;
            objdata.ReminderOn   = this.ReminderOn;
            objdata.ReminderUpTo = this.ReminderUpTo;
            objdata.Disc         = this.Disc;
            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);
        }
Exemple #2
0
        public void Clone <T>(T obj) where T : class, IModel
        {
            PreFormat objdata = obj as PreFormat;

            this.RecNo        = objdata.RecNo;
            this.BillNo       = objdata.BillNo;
            this.BillDate     = objdata.BillDate;
            this.CustomerCode = objdata.CustomerCode;
            this.DoctorCode   = objdata.DoctorCode;
            this.ProductCode  = objdata.ProductCode;
            this.Qty          = objdata.Qty;
            this.Remark       = objdata.Remark;
            this.ReminderTag  = objdata.ReminderTag;
            this.ReminderOn   = objdata.ReminderOn;
            this.ReminderUpTo = objdata.ReminderUpTo;
            this.Disc         = objdata.Disc;
            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;
        }