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

            objdata.RcptCode     = this.RcptCode;
            objdata.EntryDate    = this.EntryDate;
            objdata.EntryTag     = this.EntryTag;
            objdata.BillTag      = this.BillTag;
            objdata.BillType     = this.BillType;
            objdata.BillCredit   = this.BillCredit;
            objdata.BillSeries   = this.BillSeries;
            objdata.BillNo       = this.BillNo;
            objdata.TotAmount    = this.TotAmount;
            objdata.RcptAmount   = this.RcptAmount;
            objdata.CUser        = this.CUser;
            objdata.CDateTime    = this.CDateTime;
            objdata.EUser        = this.EUser;
            objdata.EDateTime    = this.EDateTime;
            objdata.ARecNo       = this.ARecNo;
            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
        {
            MiscRcptPmt objdata = obj as MiscRcptPmt;

            this.RcptCode     = objdata.RcptCode;
            this.EntryDate    = objdata.EntryDate;
            this.EntryTag     = objdata.EntryTag;
            this.BillTag      = objdata.BillTag;
            this.BillType     = objdata.BillType;
            this.BillCredit   = objdata.BillCredit;
            this.BillSeries   = objdata.BillSeries;
            this.BillNo       = objdata.BillNo;
            this.TotAmount    = objdata.TotAmount;
            this.RcptAmount   = objdata.RcptAmount;
            this.CUser        = objdata.CUser;
            this.CDateTime    = objdata.CDateTime;
            this.EUser        = objdata.EUser;
            this.EDateTime    = objdata.EDateTime;
            this.ARecNo       = objdata.ARecNo;
            this.CreatedBy    = objdata.CreatedBy;
            this.CreatedDate  = objdata.CreatedDate;
            this.UpdateddBy   = objdata.UpdateddBy;
            this.UpdatedDate  = objdata.UpdatedDate;
            this.UpdatedCount = objdata.UpdatedCount;
            this.LUT          = objdata.LUT;
        }