public T Copy <T>() where T : class, IModel, new() { T obj = new T(); T_TranPurchaseOrder objdata = obj as T_TranPurchaseOrder; objdata.TranPurchaseOrderId = this.TranPurchaseOrderId; objdata.ConfirmationNo = this.ConfirmationNo; objdata.CompanyId = this.CompanyId; objdata.CurrDate = this.CurrDate; objdata.PartyId = this.PartyId; objdata.WeaverCode = this.WeaverCode; objdata.QualityCode = this.QualityCode; objdata.BrokerCode = this.BrokerCode; objdata.ThanCount = this.ThanCount; objdata.Rate = this.Rate; objdata.CD = this.CD; objdata.Side = this.Side; objdata.Packing = this.Packing; objdata.PendingThan = this.PendingThan; objdata.LUT = this.LUT; objdata.BrokerName = this.BrokerName; objdata.QualityName = this.QualityName; objdata.WeaverName = this.WeaverName; return(obj); }
public void Clone <T>(T obj) where T : class, IModel { T_TranPurchaseOrder objdata = obj as T_TranPurchaseOrder; this.TranPurchaseOrderId = objdata.TranPurchaseOrderId; this.ConfirmationNo = objdata.ConfirmationNo; this.CompanyId = objdata.CompanyId; this.CurrDate = objdata.CurrDate; this.PartyId = objdata.PartyId; this.WeaverCode = objdata.WeaverCode; this.QualityCode = objdata.QualityCode; this.BrokerCode = objdata.BrokerCode; this.ThanCount = objdata.ThanCount; this.Rate = objdata.Rate; this.CD = objdata.CD; this.Side = objdata.Side; this.Packing = objdata.Packing; this.PendingThan = objdata.PendingThan; this.LUT = objdata.LUT; this.BrokerName = objdata.BrokerName; this.QualityName = objdata.QualityName; this.WeaverName = objdata.WeaverName; }