Example #1
0
        private void SearchPromotion()
        {
            int stateid = int.Parse(cmbState.SelectedValue.ToString());
            int brandid = int.Parse(cmbBrand.SelectedValue.ToString());
            int storey  = int.Parse(cmbStorey.SelectedValue.ToString());
            int active  = int.Parse(cmbStatus.SelectedValue.ToString());

            client = new SQSAdminServiceClient();
            client.Endpoint.Address = new System.ServiceModel.EndpointAddress(CommonVariables.WcfEndpoint);
            DataSet ds = client.SQSAdmin_Promotion_GetPromotionList(stateid, brandid, storey, active);

            client.Close();


            cr.LoadFullPromotion(ds);
            //dataGrid1.DataContext = cr.SQSFullMultiplePromotion;
        }