private List <BatchEasyDTO> ConvertToBatchDTO(List <Batch> pLstBatch) { AuctionsServicesFactory mObjServiceFactory = new AuctionsServicesFactory(); List <BatchEasyDTO> lLstBatchDTO = mObjServiceFactory.GetBatchService().ConvertToDTO(pLstBatch, false).ToList(); return(lLstBatchDTO); }
public UCStockDetails(long pLonAuction, long pLonCustomer) { InitializeComponent(); mObjAuctionsFactory = new AuctionsServicesFactory(); mLonAuction = pLonAuction; mLonCustomer = pLonCustomer; }
private void UserControl_Loaded(object sender, RoutedEventArgs e) { mObjAuctionsFactory = new AuctionsServicesFactory(); dpDateFrom.SelectedDate = DateTime.Now.AddMonths(-1); dpDateTo.SelectedDate = DateTime.Now; LoadDatagrid(); }
public UCCheckList() { InitializeComponent(); mObjAuctionsServices = new AuctionsServicesFactory(); mObjFinancialsServices = new FinancialsServicesFactory(); mObjBusinessServices = new BusinessServicesFactory(); }
public UCAuction(bool pBolReadOnly, string pStrSearch, List <Auction> pLstAuction) { InitializeComponent(); mObjAuctionServiceFactory = new AuctionsServicesFactory(); Focusable = true; Loaded += (s, e) => Keyboard.Focus(this); mBolReadOnly = pBolReadOnly; if (pBolReadOnly) { BrdNewRegistry.Visibility = Visibility.Collapsed; if (!string.IsNullOrEmpty(pStrSearch)) { txtSearch.Text = pStrSearch; txtSearch.Focus(); } else { dgAuctions.Focus(); } } mLcvListData = new ListCollectionView(pLstAuction); dgAuctions.ItemsSource = null; dgAuctions.ItemsSource = mLcvListData; }
public static Batch ShowBatchChooseDialog(this UserControl pObjUserControl, object pObjSender, KeyEventArgs pObjArgs, long pLonAuctionId) { Batch lObjBatch = null; TextBox lObjTextBox = (pObjSender as TextBox); List <Batch> lLstObjBatches = new AuctionsServicesFactory().GetBatchService().SearchBatches(lObjTextBox.Text, pLonAuctionId).Where(x => !x.Unsold && x.Quantity > 0).ToList(); if (lLstObjBatches.Count == 1) { lObjBatch = lLstObjBatches[0]; } else { lObjTextBox.Focusable = false; UserControl lUCSearchBatch = new UCSearchBatch(lObjTextBox.Text, lLstObjBatches, pLonAuctionId); lObjBatch = FunctionsUI.ShowWindowDialog(lUCSearchBatch, Window.GetWindow(pObjUserControl)) as Batch; lObjTextBox.Focusable = true; } lObjTextBox.Focus(); if (lObjBatch == null) { return(null); } MoveToNextUIElement(pObjArgs); return(lObjBatch); }
public UCGoodsReturns() { mObjAuctionsServicesFactory = new AuctionsServicesFactory(); mObjInventoryServicesFactory = new InventoryServicesFactory(); mObjBusinessServicesFactory = new BusinessServicesFactory(); InitializeComponent(); }
public static Auction ShowAuctionChooseDialog(this UserControl pObjUserControl, object pObjSender, KeyEventArgs pObjArgs, FilterEnum pEnmFilter, AuctionSearchModeEnum pEnmSearchMode) { Auction lObjAuction = null; TextBox lObjTextBox = (pObjSender as TextBox); List <Auction> lLstObjAuctions = new AuctionsServicesFactory().GetAuctionService().SearchAuctions(lObjTextBox.Text, pEnmFilter, pEnmSearchMode); if (lLstObjAuctions.Count == 1) { lObjAuction = lLstObjAuctions[0]; } else { lObjTextBox.Focusable = false; UserControl lUCAuction = new UCSearchAuction(lObjTextBox.Text, lLstObjAuctions, pEnmFilter, pEnmSearchMode); lObjAuction = FunctionsUI.ShowWindowDialog(lUCAuction, Window.GetWindow(pObjUserControl)) as Auction; lObjTextBox.Focusable = true; } lObjTextBox.Focus(); if (lObjAuction == null) { return(null); } MoveToNextUIElement(pObjArgs); return(lObjAuction); }
public UCLeftBatchForm() { InitializeComponent(); mObjAuctionsFactory = new AuctionsServicesFactory(); mObjInventoryFactory = new InventoryServicesFactory(); mObjBusinessFactory = new BusinessServicesFactory(); }
public UCSkipBatch(long pLonAuctionId) { InitializeComponent(); mObjAuctionsFactory = new AuctionsServicesFactory(); mObjInventoryFactory = new InventoryServicesFactory(); mLonAuctionId = pLonAuctionId; }
public UCBatchesByBuyerFilter() { InitializeComponent(); mObjReportFactory = new ReportsServiceFactory(); mObjAuctionsFactory = new AuctionsServicesFactory(); mObjPartnerFactory = new BusinessServicesFactory(); }
/// <summary> /// Evento al terminar de cargar la pantalla.- /// </summary> private void UserControl_Loaded(object sender, RoutedEventArgs e) { //mObjWorker = new Thread(() => LoadDatagrid()); //mObjWorker.Start(); mObjBusinessServicesFactory = new BusinessServicesFactory(); mObjAuctionsServicesFactory = new AuctionsServicesFactory(); LoadDefaultAuction(); }
private void UserControl_Loaded(object sender, RoutedEventArgs e) { mObjAuctionsFactory = new AuctionsServicesFactory(); List <Batch> lLstObjBatches = mObjAuctionsFactory.GetBatchService().SearchBatches(" ", SelectedItem); dgDataGrid.ItemsSource = lLstObjBatches; // UserControl lUCSearchBatch = new UCSearchBatch("", lLstObjBatches, SelectedItem); // GrdContent.Children.Add(lUCSearchBatch); }
public UCPrintBatch(Batch pObjBatch) { mObjAuctionsFactory = new AuctionsServicesFactory(); mObjBusinessFactory = new BusinessServicesFactory(); mObjInventoryFactory = new InventoryServicesFactory(); InitializeComponent(); LoadData(pObjBatch); CreateDocument(); }
public UCAuctionsHistory() { InitializeComponent(); //GrdContent.Children.Add(new UCAuction(true)); mObjAuctionServiceFactory = new AuctionsServicesFactory(); LoadComboBoxLocation(); LoadComboBoxCategory(); lLstAuctions = mObjAuctionServiceFactory.GetAuctionService().GetListFilteredByCC().Where(x => x.Active == true && x.Removed == false).ToList(); dpDateFrom.SelectedDate = DateTime.Now.AddMonths(-1); dpDateTo.SelectedDate = DateTime.Now; LoadDatagrid(); }
public UCBatchesBySellerFilter() { InitializeComponent(); mObjReportFactory = new ReportsServiceFactory(); mObjAuctionsFactory = new AuctionsServicesFactory(); mObjPartnerFactory = new BusinessServicesFactory(); cboStatus.ItemsSource = ComboUtility.ParseEnumToCombo <BatchStatusFilterEnum>(); cboStatus.DisplayMemberPath = "Text"; cboStatus.SelectedValuePath = "Value"; cboStatus.SelectedIndex = 0; }
static void Main(string[] args) { Factory = new AuctionsServicesFactory(); mObjAuctionDate = mObjFactory.GetAuctionService().LocalAuctionService.GetActiveAuction() != null?mObjFactory.GetAuctionService().LocalAuctionService.GetActiveAuction().Date : DateTime.MinValue; #if DEBUG try { StaticSessionUtility.mObjSeccion = new SessionDTO() { Id = 0, UserName = "******" }; //RemotingConfiguration.Configure(AppDomain.CurrentDomain.SetupInformation.ConfigurationFile, false); //Console.WriteLine("El servicio se esta ejecutando..."); //mObjAuctions = (AuctionsServerObject)Activator.GetObject(typeof(AuctionsServerObject), "http://localhost:8830/Auctions"); //InitTablesAndFields(); //InitConfigurationsProcess(); ////InitBusinnessPartnerProcess(); //InitItemProcess(); //InitBuissnesPartnerConciliation(); InitStockProcess(GetWhsCode()); //InitAuctionProcess(); //InitStockConciliations(); //InitBatchesProcess(mObjAuctionDate); //InitFoodDeliveriesProcess(FoodWarehouse()); //InitOperationsProcess(GetWhsCode()); Console.WriteLine("El servicio se ha detenido."); //IChannel lObjChannel = (IChannel)ChannelServices.GetChannel(QsConfig.GetValue<string>("ChannelName")); //ChannelServices.UnregisterChannel(lObjChannel); } catch (Exception e) { LogService.WriteError(e.ToString()); Console.WriteLine(e.ToString()); } Console.ReadLine(); #else ServiceBase[] ServicesToRun = new ServiceBase[] { new AuctionsService() }; ServiceBase.Run(ServicesToRun); #endif }
/// <summary> Event handler. Called by Application for start events. </summary> /// <remarks> Ranaya, 24/05/2017. </remarks> /// <param name="pObjSender"> The object sender. </param> /// <param name="pObjEventsArgs"> Event information. </param> protected void Application_Start(object pObjSender, EventArgs pObjEventsArgs) { LogService.WriteInfo("Application start"); AuctionsServicesFactory lObjAuctionsServices = new AuctionsServicesFactory(); try { lObjAuctionsServices.GetSetupService().InitializeTablesAndFields(); } catch (Exception lObjException) { LogService.WriteError(lObjException); } }
public UCAuction(bool pBolReadOnly) { InitializeComponent(); mObjAuctionServiceFactory = new AuctionsServicesFactory(); Focusable = true; Loaded += (s, e) => Keyboard.Focus(this); mBolReadOnly = pBolReadOnly; if (pBolReadOnly) { BrdNewRegistry.Visibility = Visibility.Collapsed; dgAuctions.Focus(); } }
public AuctionsService() { LogService.WriteInfo("Constructor"); InitializeComponent(); LogService.WriteInfo("inicializado"); Factory = new AuctionsServicesFactory(); mTmrService = new Timer { AutoReset = true, Interval = GetIntervalTime() }; mTmrService.Elapsed += Timer_Elapsed; mAuctionDate = mObjFactory.GetAuctionService().LocalAuctionService.GetActiveAuction() != null ? mObjFactory.GetAuctionService().LocalAuctionService.GetActiveAuction().Date : DateTime.MinValue; }
public UCSearchBatch(string pStrText, List <Batch> pLstObjBatches, long pLonAuctionId) { InitializeComponent(); mObjAuctionServiceFactory = new AuctionsServicesFactory(); if (!string.IsNullOrEmpty(pStrText)) { txtSearch.Text = pStrText; txtSearch.Focus(); } else { dgDataGrid.Focus(); } mLcvListData = new ListCollectionView(pLstObjBatches); dgDataGrid.ItemsSource = null; dgDataGrid.ItemsSource = mLcvListData; mLonAuctionId = pLonAuctionId; }
public UCSearchAuction(string pStrText, List<Auction> pLstObjAuctions, FilterEnum pEnmFilter, AuctionSearchModeEnum pEnmSearchMode) { InitializeComponent(); mObjAuctionServiceFactory = new AuctionsServicesFactory(); if (!string.IsNullOrEmpty(pStrText)) { txtSearch.Text = pStrText; txtSearch.Focus(); } else { dgDataGrid.Focus(); } mLcvListData = new ListCollectionView(pLstObjAuctions); dgDataGrid.ItemsSource = null; dgDataGrid.ItemsSource = mLcvListData; mEnmFilter = pEnmFilter; mEnmSearchMode = pEnmSearchMode; }
public UCAuctionHeader() { InitializeComponent(); mObjAuctionsFactory = new AuctionsServicesFactory(); }
public UCBatchLog(long pLonBatchId) { InitializeComponent(); mLonBatchId = pLonBatchId; mObjAuctionsFactory = new AuctionsServicesFactory(); }
public UCQuantitiesDetail() { InitializeComponent(); mObjAuctionsServices = new AuctionsServicesFactory(); mObjInventoryServices = new InventoryServicesFactory(); }
public UCGuideChargeImport() { InitializeComponent(); mObjAuctionsServicesFactory = new AuctionsServicesFactory(); mObjFinancialsServicesFactory = new FinancialsServicesFactory(); }
public UCDeductionCheck() { InitializeComponent(); mObjAuctionsServicesFactory = new AuctionsServicesFactory(); mObjFinancialsServicesFactory = new FinancialsServicesFactory(); }
public UCSearchAuction() { InitializeComponent(); mObjAuctionServiceFactory = new AuctionsServicesFactory(); }