private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            cr.LoadAllAreaForAvailableProduct();
            cr.LoadAllGroupForAvailableProduct();

            textBlock1.Text = @"Replace a product in selected display homes.";

            this.loadingimage.Image = global::SQSAdmin_WpfCustomControlLibrary.Properties.Resources.processingImage;
            SearchAvailableProducts_MultiThread();
            SearchNewProducts();
        }
예제 #2
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();
        }
예제 #3
0
        public frmQuantityManagement(int pstate, string pusercode)
        {
            loginstateid      = pstate;
            usercode          = pusercode;
            backgroundWorker1 = new BackgroundWorker();
            backgroundWorker2 = new BackgroundWorker();

            cr = new CommonResource(pstate, 0);
            InitializeComponent();

            InitializeBackgroundWorker();

            this.DataContext = cr;

            cr.LoadAllAreaForAvailableProduct();
            this.Title = this.Title + " - " + CommonVariables.WindowTitleInfo;
            //dataGrid1.ItemContainerGenerator.StatusChanged += ItemContainerGenerator_StatusChanged;
        }