Ejemplo n.º 1
0
 /// <summary>
 /// Retrieves information about a specific item, including nested modifier groups and modifiers
 /// </summary>
 /// <param name="context">The store id, station id, and cashier id the information should be restricted to.</param>
 /// <param name="itemNumber">The item number to retrieve info for</param>
 /// <returns>An inventory item</returns>
 public InventoryItem GetItem(Context context, string itemNumber)
 {
     using (var client = new InventoryServiceClient())
     {
         client.Open();
         return(client.GetItem(context, itemNumber));
     }
 }
 /// <summary>
 /// Retrieves information about a specific item, including nested modifier groups and modifiers
 /// </summary>
 /// <param name="context">The store id, station id, and cashier id the information should be restricted to.</param>
 /// <param name="itemNumber">The item number to retrieve info for</param>
 /// <returns>An inventory item</returns>
 public InventoryItem GetItem(Context context, string itemNumber)
 {
     using (var client = new InventoryServiceClient())
     {
         client.Open();
         return client.GetItem(context, itemNumber);
     }
 }
Ejemplo n.º 3
0
        public void BindItem()
        {
            try
            {
                List <GetItem> lstitem = new List <GetItem>();
                lstitem                = lclsservice.GetItem().ToList();
                drpitem.DataSource     = lstitem;
                drpitem.DataTextField  = "ItemDescription";
                drpitem.DataValueField = "ItemID";
                drpitem.DataBind();

                foreach (ListItem lst in drpitem.Items)
                {
                    lst.Attributes.Add("class", "selected");
                    lst.Selected = true;
                }
            }
            catch (Exception ex)
            {
                ScriptManager.RegisterStartupScript(this, this.GetType(), "alert", Constant.ReportErrorMessage.Replace("<<Report>>", ex.Message), true);
            }
        }