Esempio n. 1
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            cr.LoadPromotionType();
            cr.LoadAllAreaForAvailableProduct();
            cr.LoadAllAreaForExistingPromotion();
            cr.LoadAllGroupForExistingPromotion();
            DataSet ds = client.SQSAdmin_Promotion_GetPromotionDetails(promotionid);

            promotiontypeid = int.Parse(ds.Tables[0].Rows[0]["fkidpromotiontypeid"].ToString());
            textBlock1.Text = @"Configure promotion products for promotion -- " + ds.Tables[0].Rows[0]["promotionname"].ToString() + @".         Type: " + ds.Tables[0].Rows[0]["promotiontype"].ToString() + @"            Base Product: " + ds.Tables[0].Rows[0]["baseproductid"].ToString();
            //SearchAvailableProducts(null,null, int.Parse(cmbArea.SelectedValue.ToString()), int.Parse(cmbGroup.SelectedValue.ToString()),txtProductID.Text, txtPAGID.Text);

            this.loadingimage.Image = global::SQSAdmin_WpfCustomControlLibrary.Properties.Resources.processingImage;
            SearchAvailableProducts_MultiThread();
            SearchExistingProducts();
        }