public T Copy <T>() where T : class, IModel, new() { T obj = new T(); PrintFormat objdata = obj as PrintFormat; objdata.RecNo = this.RecNo; objdata.LabelType = this.LabelType; objdata.OprtSys = this.OprtSys; objdata.FormatName = this.FormatName; objdata.PrinterName = this.PrinterName; objdata.TxtType = this.TxtType; objdata.SampleTxt = this.SampleTxt; objdata.FPrefix = this.FPrefix; objdata.FldName = this.FldName; objdata.FSufix = this.FSufix; objdata.PrntFormat = this.PrntFormat; objdata.PosX = this.PosX; objdata.PosY = this.PosY; objdata.PWidth = this.PWidth; objdata.PHeight = this.PHeight; objdata.FntName = this.FntName; objdata.FntStyle = this.FntStyle; objdata.FntBold = this.FntBold; objdata.FntItalic = this.FntItalic; objdata.FntStrikout = this.FntStrikout; objdata.FntUnderLine = this.FntUnderLine; objdata.FntSize = this.FntSize; objdata.FntColor = this.FntColor; objdata.AcrossLbl = this.AcrossLbl; objdata.PgLbl = this.PgLbl; objdata.DuplicateLbl = this.DuplicateLbl; objdata.PgTopMargin = this.PgTopMargin; objdata.PgLeftMargin = this.PgLeftMargin; objdata.LblVerticalGap = this.LblVerticalGap; objdata.LblHorizontalGap = this.LblHorizontalGap; objdata.LblWidth = this.LblWidth; objdata.LblHeight = this.LblHeight; objdata.NoOfLine = this.NoOfLine; objdata.GapLine = this.GapLine; objdata.CUser = this.CUser; objdata.CDateTime = this.CDateTime; objdata.EUser = this.EUser; objdata.EDateTime = this.EDateTime; objdata.PrintStyle = this.PrintStyle; 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 { PrintFormat objdata = obj as PrintFormat; this.RecNo = objdata.RecNo; this.LabelType = objdata.LabelType; this.OprtSys = objdata.OprtSys; this.FormatName = objdata.FormatName; this.PrinterName = objdata.PrinterName; this.TxtType = objdata.TxtType; this.SampleTxt = objdata.SampleTxt; this.FPrefix = objdata.FPrefix; this.FldName = objdata.FldName; this.FSufix = objdata.FSufix; this.PrntFormat = objdata.PrntFormat; this.PosX = objdata.PosX; this.PosY = objdata.PosY; this.PWidth = objdata.PWidth; this.PHeight = objdata.PHeight; this.FntName = objdata.FntName; this.FntStyle = objdata.FntStyle; this.FntBold = objdata.FntBold; this.FntItalic = objdata.FntItalic; this.FntStrikout = objdata.FntStrikout; this.FntUnderLine = objdata.FntUnderLine; this.FntSize = objdata.FntSize; this.FntColor = objdata.FntColor; this.AcrossLbl = objdata.AcrossLbl; this.PgLbl = objdata.PgLbl; this.DuplicateLbl = objdata.DuplicateLbl; this.PgTopMargin = objdata.PgTopMargin; this.PgLeftMargin = objdata.PgLeftMargin; this.LblVerticalGap = objdata.LblVerticalGap; this.LblHorizontalGap = objdata.LblHorizontalGap; this.LblWidth = objdata.LblWidth; this.LblHeight = objdata.LblHeight; this.NoOfLine = objdata.NoOfLine; this.GapLine = objdata.GapLine; this.CUser = objdata.CUser; this.CDateTime = objdata.CDateTime; this.EUser = objdata.EUser; this.EDateTime = objdata.EDateTime; this.PrintStyle = objdata.PrintStyle; this.CreatedBy = objdata.CreatedBy; this.CreatedDate = objdata.CreatedDate; this.UpdateddBy = objdata.UpdateddBy; this.UpdatedDate = objdata.UpdatedDate; this.UpdatedCount = objdata.UpdatedCount; this.LUT = objdata.LUT; }