コード例 #1
0
        public T Copy <T>() where T : class, IModel, new()
        {
            T         obj     = new T();
            AdjDetail objdata = obj as AdjDetail;

            objdata.RecNo        = this.RecNo;
            objdata.CodeName     = this.CodeName;
            objdata.CodeRef      = this.CodeRef;
            objdata.BillTag      = this.BillTag;
            objdata.BillType     = this.BillType;
            objdata.BillCredit   = this.BillCredit;
            objdata.BillSeries   = this.BillSeries;
            objdata.BillNo       = this.BillNo;
            objdata.BillDate     = this.BillDate;
            objdata.PurBillNo    = this.PurBillNo;
            objdata.AccountCode  = this.AccountCode;
            objdata.Amount       = this.Amount;
            objdata.RcptAmount   = this.RcptAmount;
            objdata.ShiftNo      = this.ShiftNo;
            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);
        }
コード例 #2
0
        public void Clone <T>(T obj) where T : class, IModel
        {
            AdjDetail objdata = obj as AdjDetail;

            this.RecNo        = objdata.RecNo;
            this.CodeName     = objdata.CodeName;
            this.CodeRef      = objdata.CodeRef;
            this.BillTag      = objdata.BillTag;
            this.BillType     = objdata.BillType;
            this.BillCredit   = objdata.BillCredit;
            this.BillSeries   = objdata.BillSeries;
            this.BillNo       = objdata.BillNo;
            this.BillDate     = objdata.BillDate;
            this.PurBillNo    = objdata.PurBillNo;
            this.AccountCode  = objdata.AccountCode;
            this.Amount       = objdata.Amount;
            this.RcptAmount   = objdata.RcptAmount;
            this.ShiftNo      = objdata.ShiftNo;
            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;
        }