public T Copy <T>() where T : class, IModel, new() { T obj = new T(); T_TranSalesOrder objdata = obj as T_TranSalesOrder; objdata.TranSalesOrderId = this.TranSalesOrderId; 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.Side = this.Side; objdata.CD = this.CD; objdata.LUT = this.LUT; objdata.AccountCode = this.AccountCode; objdata.AccountName = this.AccountName; 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_TranSalesOrder objdata = obj as T_TranSalesOrder; this.TranSalesOrderId = objdata.TranSalesOrderId; 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.Side = objdata.Side; this.CD = objdata.CD; this.LUT = objdata.LUT; this.AccountCode = objdata.AccountCode; this.AccountName = objdata.AccountName; this.BrokerName = objdata.BrokerName; this.QualityName = objdata.QualityName; this.WeaverName = objdata.WeaverName; }