public T Copy <T>() where T : class, IModel, new() { T obj = new T(); OldBillMaster objdata = obj as OldBillMaster; 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.PurBillNo = this.PurBillNo; objdata.PurBillDate = this.PurBillDate; objdata.CustomerCode = this.CustomerCode; objdata.DoctorCode = this.DoctorCode; objdata.AccountCode = this.AccountCode; objdata.SalesmanCode = this.SalesmanCode; objdata.VatInRate = this.VatInRate; objdata.GrossAmount = this.GrossAmount; objdata.SchemeRs = this.SchemeRs; objdata.SplDiscRs = this.SplDiscRs; objdata.DiscPer = this.DiscPer; objdata.DiscRs = this.DiscRs; objdata.VatPer = this.VatPer; objdata.VatRs = this.VatRs; objdata.AdVatPer = this.AdVatPer; objdata.AdVatRs = this.AdVatRs; objdata.CrRs = this.CrRs; objdata.OtherAdj = this.OtherAdj; objdata.RndOff = this.RndOff; objdata.NetAmount = this.NetAmount; objdata.RateTag = this.RateTag; objdata.OrdRef = this.OrdRef; objdata.ModOfDespatch = this.ModOfDespatch; objdata.RRNo = this.RRNo; objdata.NoOfPack = this.NoOfPack; objdata.DespDate = this.DespDate; objdata.SplInst = this.SplInst; objdata.RcptAmount = this.RcptAmount; objdata.MiscPndAmount = this.MiscPndAmount; objdata.AdjTag = this.AdjTag; objdata.VarifyBy = this.VarifyBy; objdata.VarifyDate = this.VarifyDate; objdata.NodeName = this.NodeName; objdata.ShiftNo = this.ShiftNo; objdata.CUser = this.CUser; objdata.CDateTime = this.CDateTime; objdata.EUser = this.EUser; objdata.EDateTime = this.EDateTime; objdata.DueDate = this.DueDate; objdata.DelBoyName = this.DelBoyName; objdata.Narration = this.Narration; objdata.LBT = this.LBT; objdata.LBTRs = this.LBTRs; 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 { OldBillMaster objdata = obj as OldBillMaster; 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.PurBillNo = objdata.PurBillNo; this.PurBillDate = objdata.PurBillDate; this.CustomerCode = objdata.CustomerCode; this.DoctorCode = objdata.DoctorCode; this.AccountCode = objdata.AccountCode; this.SalesmanCode = objdata.SalesmanCode; this.VatInRate = objdata.VatInRate; this.GrossAmount = objdata.GrossAmount; this.SchemeRs = objdata.SchemeRs; this.SplDiscRs = objdata.SplDiscRs; this.DiscPer = objdata.DiscPer; this.DiscRs = objdata.DiscRs; this.VatPer = objdata.VatPer; this.VatRs = objdata.VatRs; this.AdVatPer = objdata.AdVatPer; this.AdVatRs = objdata.AdVatRs; this.CrRs = objdata.CrRs; this.OtherAdj = objdata.OtherAdj; this.RndOff = objdata.RndOff; this.NetAmount = objdata.NetAmount; this.RateTag = objdata.RateTag; this.OrdRef = objdata.OrdRef; this.ModOfDespatch = objdata.ModOfDespatch; this.RRNo = objdata.RRNo; this.NoOfPack = objdata.NoOfPack; this.DespDate = objdata.DespDate; this.SplInst = objdata.SplInst; this.RcptAmount = objdata.RcptAmount; this.MiscPndAmount = objdata.MiscPndAmount; this.AdjTag = objdata.AdjTag; this.VarifyBy = objdata.VarifyBy; this.VarifyDate = objdata.VarifyDate; this.NodeName = objdata.NodeName; this.ShiftNo = objdata.ShiftNo; this.CUser = objdata.CUser; this.CDateTime = objdata.CDateTime; this.EUser = objdata.EUser; this.EDateTime = objdata.EDateTime; this.DueDate = objdata.DueDate; this.DelBoyName = objdata.DelBoyName; this.Narration = objdata.Narration; this.LBT = objdata.LBT; this.LBTRs = objdata.LBTRs; this.CreatedBy = objdata.CreatedBy; this.CreatedDate = objdata.CreatedDate; this.UpdateddBy = objdata.UpdateddBy; this.UpdatedDate = objdata.UpdatedDate; this.UpdatedCount = objdata.UpdatedCount; this.LUT = objdata.LUT; }