Пример #1
0
        public void Clone <T>(T obj) where T : class, IModel
        {
            XDetail objdata = obj as XDetail;

            this.RecNo          = objdata.RecNo;
            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.AccountCode    = objdata.AccountCode;
            this.ChallanNo      = objdata.ChallanNo;
            this.ChallanDate    = objdata.ChallanDate;
            this.EntryTag       = objdata.EntryTag;
            this.ProductCode    = objdata.ProductCode;
            this.CompanyCode    = objdata.CompanyCode;
            this.BatchCode      = objdata.BatchCode;
            this.RateTag        = objdata.RateTag;
            this.MRP            = objdata.MRP;
            this.BatchNo        = objdata.BatchNo;
            this.Expiry         = objdata.Expiry;
            this.Qty            = objdata.Qty;
            this.FQty           = objdata.FQty;
            this.ConversionUnit = objdata.ConversionUnit;
            this.Rate           = objdata.Rate;
            this.HalfScheme     = objdata.HalfScheme;
            this.Scheme         = objdata.Scheme;
            this.SchemeRs       = objdata.SchemeRs;
            this.SplDisc        = objdata.SplDisc;
            this.SplDiscRs      = objdata.SplDiscRs;
            this.Disc           = objdata.Disc;
            this.DiscRs         = objdata.DiscRs;
            this.Inclusive      = objdata.Inclusive;
            this.VatOn          = objdata.VatOn;
            this.Vat            = objdata.Vat;
            this.VatRs          = objdata.VatRs;
            this.AdVat          = objdata.AdVat;
            this.AdVatRs        = objdata.AdVatRs;
            this.DiscYN         = objdata.DiscYN;
            this.NetRate        = objdata.NetRate;
            this.VatOnFree      = objdata.VatOnFree;
            this.NetCostRate    = objdata.NetCostRate;
            this.NetAmount      = objdata.NetAmount;
            this.PurRs          = objdata.PurRs;
            this.VarifyBy       = objdata.VarifyBy;
            this.VarifyDate     = objdata.VarifyDate;
            this.NodeName       = objdata.NodeName;
            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;
        }
Пример #2
0
        public T Copy <T>() where T : class, IModel, new()
        {
            T       obj     = new T();
            XDetail objdata = obj as XDetail;

            objdata.RecNo          = this.RecNo;
            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.AccountCode    = this.AccountCode;
            objdata.ChallanNo      = this.ChallanNo;
            objdata.ChallanDate    = this.ChallanDate;
            objdata.EntryTag       = this.EntryTag;
            objdata.ProductCode    = this.ProductCode;
            objdata.CompanyCode    = this.CompanyCode;
            objdata.BatchCode      = this.BatchCode;
            objdata.RateTag        = this.RateTag;
            objdata.MRP            = this.MRP;
            objdata.BatchNo        = this.BatchNo;
            objdata.Expiry         = this.Expiry;
            objdata.Qty            = this.Qty;
            objdata.FQty           = this.FQty;
            objdata.ConversionUnit = this.ConversionUnit;
            objdata.Rate           = this.Rate;
            objdata.HalfScheme     = this.HalfScheme;
            objdata.Scheme         = this.Scheme;
            objdata.SchemeRs       = this.SchemeRs;
            objdata.SplDisc        = this.SplDisc;
            objdata.SplDiscRs      = this.SplDiscRs;
            objdata.Disc           = this.Disc;
            objdata.DiscRs         = this.DiscRs;
            objdata.Inclusive      = this.Inclusive;
            objdata.VatOn          = this.VatOn;
            objdata.Vat            = this.Vat;
            objdata.VatRs          = this.VatRs;
            objdata.AdVat          = this.AdVat;
            objdata.AdVatRs        = this.AdVatRs;
            objdata.DiscYN         = this.DiscYN;
            objdata.NetRate        = this.NetRate;
            objdata.VatOnFree      = this.VatOnFree;
            objdata.NetCostRate    = this.NetCostRate;
            objdata.NetAmount      = this.NetAmount;
            objdata.PurRs          = this.PurRs;
            objdata.VarifyBy       = this.VarifyBy;
            objdata.VarifyDate     = this.VarifyDate;
            objdata.NodeName       = this.NodeName;
            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);
        }