public string ReturnItemDescription(string ItemNo) { var service = new ItemListPage_Service(); service.UseDefaultCredentials = true; ItemListPage Result = service.Read(ItemNo); return(Result.Description); }
public void FormatData() { if ((cbSearchType.Text.IndexOf(" ") > 0) && (!string.IsNullOrEmpty(cbSearchType.Text))) { itemno = cbSearchType.Text.Substring(0, (cbSearchType.Text.IndexOf(" "))); if (!string.IsNullOrEmpty(itemno)) { var service = new ItemListPage_Service(); service.UseDefaultCredentials = true; ItemListPage result = service.Read(itemno); tbDescription.Text = string.Format("Vare nr.: {0}{1}Beskrivelse: {2}{3}Beholdning: {4} {5}{6}Vejledende pris: {7}", result.No, Environment.NewLine, result.Description, Environment.NewLine, result.Inventory, result.Sales_Unit_of_Measure, Environment.NewLine, result.Unit_Price.ToString("N2")); cbSearchType.DroppedDown = false; tbQty.Focus(); } } }