public T Copy <T>() where T : class, IModel, new() { T obj = new T(); ShiftMaster objdata = obj as ShiftMaster; objdata.RecNo = this.RecNo; objdata.ShiftName = this.ShiftName; objdata.ShiftNo = this.ShiftNo; objdata.ShiftDate = this.ShiftDate; objdata.OpCash = this.OpCash; objdata.CashReceipt = this.CashReceipt; objdata.ReceiptVoucher = this.ReceiptVoucher; objdata.CashReturn = this.CashReturn; objdata.CashPayment = this.CashPayment; objdata.PaymentVoucher = this.PaymentVoucher; objdata.ExtraAmount = this.ExtraAmount; objdata.Amount = this.Amount; objdata.ShiftMess = this.ShiftMess; 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); }
public void Clone <T>(T obj) where T : class, IModel { ShiftMaster objdata = obj as ShiftMaster; this.RecNo = objdata.RecNo; this.ShiftName = objdata.ShiftName; this.ShiftNo = objdata.ShiftNo; this.ShiftDate = objdata.ShiftDate; this.OpCash = objdata.OpCash; this.CashReceipt = objdata.CashReceipt; this.ReceiptVoucher = objdata.ReceiptVoucher; this.CashReturn = objdata.CashReturn; this.CashPayment = objdata.CashPayment; this.PaymentVoucher = objdata.PaymentVoucher; this.ExtraAmount = objdata.ExtraAmount; this.Amount = objdata.Amount; this.ShiftMess = objdata.ShiftMess; 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; }