public override void ApplyFilter(string filterTexts)
        {
            OLVHelpers.ApplyFilters(this.fastAvailablePallets, filterTexts.Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries));
            OLVHelpers.ApplyFilters(this.fastAvailableCartons, filterTexts.Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries));

            this.ShowRowCount();
        }
예제 #2
0
        public void ApplyFilter(string filterTexts)
        {
            this.fastAvailablePallets.CheckedObjects = null;
            this.fastAvailableCartons.CheckedObjects = null;
            if (this.UsingPack)
            {
                this.fastAvailablePacks.CheckedObjects = null;
            }

            this.fastAvailablePallets.SelectedObject = null;
            this.fastAvailableCartons.SelectedObject = null;
            if (this.UsingPack)
            {
                this.fastAvailablePacks.SelectedObject = null;
            }

            OLVHelpers.ApplyFilters(this.fastAvailablePallets, filterTexts.Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries));
            OLVHelpers.ApplyFilters(this.fastAvailableCartons, filterTexts.Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries));
            if (this.UsingPack)
            {
                OLVHelpers.ApplyFilters(this.fastAvailablePacks, filterTexts.Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries));
            }

            this.ShowRowCount();
        }
예제 #3
0
        public void ApplyFilter(string filterTexts)
        {
            this.fastBinLocations.SelectedObject = null;
            OLVHelpers.ApplyFilters(this.fastBinLocations, filterTexts.Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries));

            this.ShowRowCount();
        }
예제 #4
0
        public override void ApplyFilter(string filterTexts)
        {
            this.FilterTexts = filterTexts;

            OLVHelpers.ApplyFilters(this.fastWholePendingSalesOrderDetails, filterTexts.Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries));
            OLVHelpers.ApplyFilters(this.fastWholePendingDeliveryAdviceDetails, filterTexts.Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries));
            OLVHelpers.ApplyFilters(this.fastWholePendingTransferOrderDetails, filterTexts.Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries));

            this.ShowRowCount();
        }
예제 #5
0
 private void textexFilters_TextChanged(object sender, EventArgs e)
 {
     try
     {
         OLVHelpers.ApplyFilters(this.fastPendingLots, this.textexFilters.Text.Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries));
     }
     catch (Exception exception)
     {
         ExceptionHandlers.ShowExceptionMessageBox(this, exception);
     }
 }
예제 #6
0
        private void textexFilters_TextChanged(object sender, EventArgs e)
        {
            try
            {
                this.fastPendingPallets.CheckedObjects = null;
                OLVHelpers.ApplyFilters(this.fastPendingPallets, this.textexFilters.Text.Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries));

                this.ShowRowCount(true, true);
            }
            catch (Exception exception)
            {
                ExceptionHandlers.ShowExceptionMessageBox(this, exception);
            }
        }
예제 #7
0
        public virtual void ApplyFilter(string filterTexts)
        {
            this.CurrenntFilterTexts = filterTexts;
            if (filterTexts != null && filterTexts != "")
            {
                foreach (OLVGroup olvGroup in this.fastListIndex.CollapsedGroups)
                {
                    if (olvGroup.Collapsed)
                    {
                        olvGroup.Collapsed = false;
                    }
                }
            }

            OLVHelpers.ApplyFilters(this.fastListIndex, filterTexts.Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries));
        }
예제 #8
0
 private void textFilter_TextChanged(object sender, EventArgs e)
 {
     if (((TextBox)sender).Text != "Enter any text here to search ...")
     {
         if (sender.Equals(this.textFilterPack))
         {
             OLVHelpers.ApplyFilters(this.fastPacks, textFilterPack.Text.Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries));
         }
         if (sender.Equals(this.textFilterCarton))
         {
             OLVHelpers.ApplyFilters(this.fastCartons, textFilterCarton.Text.Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries));
         }
         if (sender.Equals(this.textFilterPallet))
         {
             OLVHelpers.ApplyFilters(this.fastPallets, textFilterPallet.Text.Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries));
         }
     }
 }
예제 #9
0
        private void textFILTER_TextChanged(object sender, EventArgs e)
        {
            try
            {
                TextBox senderTextBox = sender as TextBox;
                if (senderTextBox != null)
                {
                    DataTreeListView    dataTreeListView      = sender.Equals(this.textCommodityType) ? this.treeCommodityTypeID : (sender.Equals(this.textCommodity) ? this.treeCommodityID : (sender.Equals(this.textEmployee) ? this.treeEmployeeID : (sender.Equals(this.textCustomer) ? this.treeCustomerID : (sender.Equals(this.textWarehouse) ? this.treeWarehouseID : (sender.Equals(this.textWarehouseReceipt) ? this.treeWarehouseReceiptID : (sender.Equals(this.textWarehouseAdjustmentType) ? this.treeWarehouseAdjustmentTypeID : (sender.Equals(this.textWarehouseIssue) ? this.treeWarehouseIssueID : null)))))));
                    IList <IFilterTree> dataSourceFilterTrees = (sender.Equals(this.textCommodityType) ? this.commodityTypeTrees.Cast <IFilterTree>().ToList() : (sender.Equals(this.textCommodity) ? this.commodityTrees.Cast <IFilterTree>().ToList() : (sender.Equals(this.textEmployee) ? this.employeeTrees.Cast <IFilterTree>().ToList() : (sender.Equals(this.textCustomer) ? this.customerTrees.Cast <IFilterTree>().ToList() : (sender.Equals(this.textWarehouse) ? this.warehouseTrees.Cast <IFilterTree>().ToList() : (sender.Equals(this.textWarehouseReceipt) ? this.warehouseReceiptTrees.Cast <IFilterTree>().ToList() : (sender.Equals(this.textWarehouseAdjustmentType) ? this.warehouseAdjustmentTypeTrees.Cast <IFilterTree>().ToList() : (sender.Equals(this.textWarehouseIssue) ? this.warehouseIssueTrees.Cast <IFilterTree>().ToList() : null))))))));

                    if (dataTreeListView != null && dataSourceFilterTrees != null)
                    {
                        if (senderTextBox.Text != null && senderTextBox.Text != "")
                        {
                            dataTreeListView.ExpandAll();
                        }

                        OLVHelpers.ApplyFilters(dataTreeListView, senderTextBox.Text.Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries));


                        List <IFilterTree> filteredFilterTrees = dataTreeListView.FilteredObjects.Cast <IFilterTree>().ToList();
                        if (filteredFilterTrees != null && filteredFilterTrees.Count() > 0)
                        {                                                                                                                           //SEARCH FOR NOT MATCH ITEMS IN dataSourceFilterTrees FROM filteredFilterTrees  => then Deselect it.
                            List <int?>         primaryIDs          = filteredFilterTrees.Select(n => n.PrimaryID).ToList();                        //FILTERED PrimaryID
                            IList <IFilterTree> notmatchFilterTrees = dataSourceFilterTrees.Where(w => !primaryIDs.Contains(w.PrimaryID)).ToList(); //FIND NOT MATCH ITEMS

                            foreach (IFilterTree c in notmatchFilterTrees)
                            {
                                c.Selected = false;
                            }                                                                      //DESELECTED NOT MATCH ITEMS


                            dataTreeListView.RefreshObject(filteredFilterTrees[0]); //NO NEED, BUT HERE: FOR SURE: WE RefreshObject THE FIRST OBJECT WHEN FINISH.
                        }
                    }
                }
            }
            catch { }
        }
예제 #10
0
 public virtual void ApplyDetailFilter(string filterTexts)
 {
     OLVHelpers.ApplyFilters(this.fastListIndex, filterTexts.Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries));
 }
예제 #11
0
 private void textFilter_TextChanged(object sender, EventArgs e)
 {
     OLVHelpers.ApplyFilters(this.fastBarcodes, textFilter.Text.Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries));
 }