예제 #1
0
        public void GetAvailableUpgradeOptionProducts(string productid, string productname, string brandids, int pstateid, string stdinclusionproductid)
        {
            client = new SQSAdminServiceClient();
            client.Endpoint.Address = new System.ServiceModel.EndpointAddress(CommonVariables.WcfEndpoint);
            DataSet ds = client.SQSAdmin_StandardInclusion_GetAvailableUpgradeOptionProducts(productid, productname, brandids, pstateid, stdinclusionproductid);

            client.Close();
            AvailableOptionProducts.Clear();
            if (ds != null)
            {
                foreach (DataRow dr in ds.Tables[0].Rows)
                {
                    GenericProduct p = new GenericProduct();
                    p.BrandID            = 0;
                    p.BrandName          = "";
                    p.ProductID          = dr["productid"].ToString();
                    p.ProductName        = dr["productname"].ToString();
                    p.ProductDescription = dr["productdescription"].ToString();
                    p.validationruleID   = 0;

                    AvailableOptionProducts.Add(p);
                }
            }
        }