public void CopyTo(MaterialStock obj) { obj.MSN = this.MSN; obj.MaterialName = this.MaterialName; obj.MaterialCode = this.MaterialCode; obj.BatchNumber = this.BatchNumber; obj.CustName = this.CustName; obj.StockHouse = this.StockHouse; obj.DOCUMENTID = this.DOCUMENTID; obj.BasQty = this.BasQty; obj.UNIT = this.UNIT; obj.STATUS = this.STATUS; obj.MEMO = this.MEMO; obj.CreatedDate = this.CreatedDate; obj.UpdatedDate = this.UpdatedDate; obj.UpdatedBy = this.UpdatedBy; obj.Description = this.Description; }
public Object Clone() { MaterialStock obj = new MaterialStock(); obj.MSN = this.MSN; obj.MaterialName = this.MaterialName; obj.MaterialCode = this.MaterialCode; obj.BatchNumber = this.BatchNumber; obj.CustName = this.CustName; obj.StockHouse = this.StockHouse; obj.DOCUMENTID = this.DOCUMENTID; obj.BasQty = this.BasQty; obj.UNIT = this.UNIT; obj.STATUS = this.STATUS; obj.MEMO = this.MEMO; obj.CreatedDate = this.CreatedDate; obj.UpdatedDate = this.UpdatedDate; obj.UpdatedBy = this.UpdatedBy; obj.Description = this.Description; return(obj); }