Ejemplo n.º 1
0
        public productSearchResult findProductsByPartNo([System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] productSearchParameters productSearchParameters)
        {
            object[] results = this.Invoke("findProductsByPartNo", new object[] {
                productSearchParameters
            });

            return((productSearchResult)(results[0]));
        }
Ejemplo n.º 2
0
 /// <remarks/>
 public void findProductsByDescriptionAsync(productSearchParameters productSearchParameters, object userState)
 {
     if ((this.findProductsByDescriptionOperationCompleted == null))
     {
         this.findProductsByDescriptionOperationCompleted = new System.Threading.SendOrPostCallback(this.OnfindProductsByDescriptionOperationCompleted);
     }
     this.InvokeAsync("findProductsByDescription", new object[] {
         productSearchParameters
     }, this.findProductsByDescriptionOperationCompleted, userState);
 }
Ejemplo n.º 3
0
 private void button2_Click(object sender, EventArgs e)
 {
     using (ProductSearchService.ProductSearchWebService ops = new ProductSearchService.ProductSearchWebService())
     {
         label2.Text = "call";
         ops.Url     = textBox1.Text;
         ProductSearchService.productSearchParameters sp = new ProductSearchService.productSearchParameters();
         sp.clientId     = "IMISTD";
         sp.searchString = "%";
         sp.maxResult    = null;
         ProductSearchService.productSearchResult sr = ops.findProductsByDescription(sp);
         label2.Text = "null";
         if (sr != null)
         {
             label2.Text = Convert.ToString(sr.totalHits);
         }
     }
 }
Ejemplo n.º 4
0
 private void button1_Click(object sender, EventArgs e)
 {
     using (ProductSearchService.ProductSearchWebService ops = new ProductSearchService.ProductSearchWebService())
     {
         label1.Text = "call";
         ops.Url     = textBox1.Text;
         ProductSearchService.productSearchParameters sp = new ProductSearchService.productSearchParameters();
         sp.clientId      = "IMISTD"; // "HLM";
         sp.searchString  = "72%";    // "721301"; //  "721004"; // "331601"; // "123456";
         sp.firstResult   = 20;
         sp.maxResult     = 10;
         sp.returnDetails = true;
         sp.stockNo       = "910";
         ProductSearchService.productSearchResult sr = ops.findProductsByPartNo(sp);
         label1.Text = "null";
         if (sr != null)
         {
             label1.Text = Convert.ToString(sr.totalHits);
         }
     }
 }
Ejemplo n.º 5
0
 /// <remarks/>
 public void findProductsByPartNoAsync(productSearchParameters productSearchParameters)
 {
     this.findProductsByPartNoAsync(productSearchParameters, null);
 }
Ejemplo n.º 6
0
 /// <remarks/>
 public void findProductsByDescriptionAsync(productSearchParameters productSearchParameters)
 {
     this.findProductsByDescriptionAsync(productSearchParameters, null);
 }