public T Copy <T>() where T : class, IModel, new() { T obj = new T(); oBatchMaster objdata = obj as oBatchMaster; objdata.BatchCode = this.BatchCode; objdata.ICode = this.ICode; objdata.ProductCode = this.ProductCode; objdata.AccountCode = this.AccountCode; objdata.MRP = this.MRP; objdata.BatchNo = this.BatchNo; objdata.Expiry = this.Expiry; objdata.Inclusive = this.Inclusive; objdata.VatOn = this.VatOn; objdata.Vat = this.Vat; objdata.AdVat = this.AdVat; objdata.Octroi = this.Octroi; objdata.PurRs = this.PurRs; objdata.SaleRs = this.SaleRs; objdata.NetRate = this.NetRate; objdata.StockPt = this.StockPt; objdata.OpQty = this.OpQty; objdata.OpQtyRs = this.OpQtyRs; objdata.OpFQty = this.OpFQty; objdata.OpFQtyRs = this.OpFQtyRs; objdata.PurQty = this.PurQty; objdata.PurQtyRs = this.PurQtyRs; objdata.PurFQty = this.PurFQty; objdata.PurFQtyRs = this.PurFQtyRs; objdata.CrQty = this.CrQty; objdata.CrQtyRs = this.CrQtyRs; objdata.CrFQty = this.CrFQty; objdata.CrFQtyRs = this.CrFQtyRs; objdata.RcptQty = this.RcptQty; objdata.RcptQtyRs = this.RcptQtyRs; objdata.SaleQty = this.SaleQty; objdata.SaleQtyRs = this.SaleQtyRs; objdata.SaleFQty = this.SaleFQty; objdata.SaleFQtyRs = this.SaleFQtyRs; objdata.IssueQty = this.IssueQty; objdata.IssueQtyRs = this.IssueQtyRs; objdata.ClQty = this.ClQty; objdata.ClQtyRs = this.ClQtyRs; objdata.ClFQty = this.ClFQty; objdata.ClFQtyRs = this.ClFQtyRs; objdata.TQty = this.TQty; objdata.TQtyRs = this.TQtyRs; objdata.BarSeries = this.BarSeries; objdata.BarCode = this.BarCode; objdata.BatchHead = this.BatchHead; objdata.CUser = this.CUser; objdata.CDateTime = this.CDateTime; objdata.EUser = this.EUser; objdata.EDateTime = this.EDateTime; objdata.DLock = this.DLock; 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); }
public void Clone <T>(T obj) where T : class, IModel { oBatchMaster objdata = obj as oBatchMaster; this.BatchCode = objdata.BatchCode; this.ICode = objdata.ICode; this.ProductCode = objdata.ProductCode; this.AccountCode = objdata.AccountCode; this.MRP = objdata.MRP; this.BatchNo = objdata.BatchNo; this.Expiry = objdata.Expiry; this.Inclusive = objdata.Inclusive; this.VatOn = objdata.VatOn; this.Vat = objdata.Vat; this.AdVat = objdata.AdVat; this.Octroi = objdata.Octroi; this.PurRs = objdata.PurRs; this.SaleRs = objdata.SaleRs; this.NetRate = objdata.NetRate; this.StockPt = objdata.StockPt; this.OpQty = objdata.OpQty; this.OpQtyRs = objdata.OpQtyRs; this.OpFQty = objdata.OpFQty; this.OpFQtyRs = objdata.OpFQtyRs; this.PurQty = objdata.PurQty; this.PurQtyRs = objdata.PurQtyRs; this.PurFQty = objdata.PurFQty; this.PurFQtyRs = objdata.PurFQtyRs; this.CrQty = objdata.CrQty; this.CrQtyRs = objdata.CrQtyRs; this.CrFQty = objdata.CrFQty; this.CrFQtyRs = objdata.CrFQtyRs; this.RcptQty = objdata.RcptQty; this.RcptQtyRs = objdata.RcptQtyRs; this.SaleQty = objdata.SaleQty; this.SaleQtyRs = objdata.SaleQtyRs; this.SaleFQty = objdata.SaleFQty; this.SaleFQtyRs = objdata.SaleFQtyRs; this.IssueQty = objdata.IssueQty; this.IssueQtyRs = objdata.IssueQtyRs; this.ClQty = objdata.ClQty; this.ClQtyRs = objdata.ClQtyRs; this.ClFQty = objdata.ClFQty; this.ClFQtyRs = objdata.ClFQtyRs; this.TQty = objdata.TQty; this.TQtyRs = objdata.TQtyRs; this.BarSeries = objdata.BarSeries; this.BarCode = objdata.BarCode; this.BatchHead = objdata.BatchHead; this.CUser = objdata.CUser; this.CDateTime = objdata.CDateTime; this.EUser = objdata.EUser; this.EDateTime = objdata.EDateTime; this.DLock = objdata.DLock; this.CreatedBy = objdata.CreatedBy; this.CreatedDate = objdata.CreatedDate; this.UpdateddBy = objdata.UpdateddBy; this.UpdatedDate = objdata.UpdatedDate; this.UpdatedCount = objdata.UpdatedCount; this.LUT = objdata.LUT; }