private void SetDefinitionObject(ItemTypeDefinitionDTO pObjItemTypeDefinition) { mLonDefinitionId = pObjItemTypeDefinition.Id; mEnmAuctionType = pObjItemTypeDefinition.AuctionType; mLonItemTypeId = pObjItemTypeDefinition.ItemTypeId; cboAuctionType.SelectedValue = (int)pObjItemTypeDefinition.AuctionType; txtItemType.Text = pObjItemTypeDefinition.ItemType; }
public Auction Make(AuctionTypeEnum type) { var auctionStatusFactory = new AuctionStatusFactory(); var roundAuctionStatusFactory = new RoundAuctionStatusFactory(); var auction = new Auction(auctionStatusFactory, roundAuctionStatusFactory, AuctionStatusTypeEnum.New); return(auction); }
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()); }
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; }