Пример #1
0
        public void LoadProduct(int stateid, string productid, string keyword)
        {
            Product s;

            SQSProduct.Clear();
            client = new SQSAdminServiceClient();
            client.Endpoint.Address = new System.ServiceModel.EndpointAddress(CommonVariables.WcfEndpoint);
            DataSet ds = client.SQSAdmin_RelatedArea_LoadProduct(productid, keyword, stateid);

            client.Close();

            foreach (DataRow dr in ds.Tables[0].Rows)
            {
                s                    = new Product();
                s.ProductID          = dr["productid"].ToString();
                s.ProductName        = dr["productname"].ToString();
                s.ProductDescription = dr["productdescription"].ToString();
                SQSProduct.Add(s);
            }
        }