Ejemplo n.º 1
0
 private void SetDefinitionObject(ItemTypeDefinitionDTO pObjItemTypeDefinition)
 {
     mLonDefinitionId             = pObjItemTypeDefinition.Id;
     mEnmAuctionType              = pObjItemTypeDefinition.AuctionType;
     mLonItemTypeId               = pObjItemTypeDefinition.ItemTypeId;
     cboAuctionType.SelectedValue = (int)pObjItemTypeDefinition.AuctionType;
     txtItemType.Text             = pObjItemTypeDefinition.ItemType;
 }
Ejemplo n.º 2
0
        public Auction Make(AuctionTypeEnum type)
        {
            var auctionStatusFactory      = new AuctionStatusFactory();
            var roundAuctionStatusFactory = new RoundAuctionStatusFactory();
            var auction = new Auction(auctionStatusFactory, roundAuctionStatusFactory, AuctionStatusTypeEnum.New);

            return(auction);
        }
Ejemplo n.º 3
0
        public List <ItemType> SearchItemTypeByAuctionType(string pStrText, AuctionTypeEnum pEnmAuctionType, FilterEnum pEnmFilter)
        {
            int lIntMaxLevel = this.GetList().Select(x => x.Level).Max();

            IList <long> lLstLonDefinitions = mObjItemTypeDefinitionDAO
                                              .GetEntitiesList()
                                              .Where(x => x.AuctionType == pEnmAuctionType)
                                              .Select(y => y.ItemTypeId).ToList();

            IQueryable <ItemType> lLstObjItemTypes = this.GetList().Where(x => x.Active && x.Level == lIntMaxLevel &&
                                                                          lLstLonDefinitions.Contains(x.Id));

            return(GetBestSearch(pStrText, pEnmFilter, lLstObjItemTypes).ToList());
        }
Ejemplo n.º 4
0
        public UCSearchItemType(string pStrText, AuctionTypeEnum pEnmAuctionType, List <ItemType> pLstObjItemTypes, FilterEnum pEnmFilter)
        {
            InitializeComponent();
            mObjInventoryServicesFactory = new InventoryServicesFactory();

            if (!string.IsNullOrEmpty(pStrText))
            {
                txtSearch.Text = pStrText;
                txtSearch.Focus();
            }
            else
            {
                dgDataGrid.Focus();
            }

            mLcvListData           = new ListCollectionView(pLstObjItemTypes);
            dgDataGrid.ItemsSource = null;
            dgDataGrid.ItemsSource = mLcvListData;

            mEnmAuctionType = pEnmAuctionType;
            mEnmFilter      = pEnmFilter;
        }