示例#1
0
        private List <BatchEasyDTO> ConvertToBatchDTO(List <Batch> pLstBatch)
        {
            AuctionsServicesFactory mObjServiceFactory = new AuctionsServicesFactory();
            List <BatchEasyDTO>     lLstBatchDTO       = mObjServiceFactory.GetBatchService().ConvertToDTO(pLstBatch, false).ToList();

            return(lLstBatchDTO);
        }
示例#2
0
 public UCStockDetails(long pLonAuction, long pLonCustomer)
 {
     InitializeComponent();
     mObjAuctionsFactory = new AuctionsServicesFactory();
     mLonAuction         = pLonAuction;
     mLonCustomer        = pLonCustomer;
 }
示例#3
0
 private void UserControl_Loaded(object sender, RoutedEventArgs e)
 {
     mObjAuctionsFactory     = new AuctionsServicesFactory();
     dpDateFrom.SelectedDate = DateTime.Now.AddMonths(-1);
     dpDateTo.SelectedDate   = DateTime.Now;
     LoadDatagrid();
 }
示例#4
0
 public UCCheckList()
 {
     InitializeComponent();
     mObjAuctionsServices   = new AuctionsServicesFactory();
     mObjFinancialsServices = new FinancialsServicesFactory();
     mObjBusinessServices   = new BusinessServicesFactory();
 }
示例#5
0
        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;
        }
示例#6
0
        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);
        }
示例#7
0
 public UCGoodsReturns()
 {
     mObjAuctionsServicesFactory  = new AuctionsServicesFactory();
     mObjInventoryServicesFactory = new InventoryServicesFactory();
     mObjBusinessServicesFactory  = new BusinessServicesFactory();
     InitializeComponent();
 }
示例#8
0
        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);
        }
示例#9
0
 public UCLeftBatchForm()
 {
     InitializeComponent();
     mObjAuctionsFactory  = new AuctionsServicesFactory();
     mObjInventoryFactory = new InventoryServicesFactory();
     mObjBusinessFactory  = new BusinessServicesFactory();
 }
示例#10
0
 public UCSkipBatch(long pLonAuctionId)
 {
     InitializeComponent();
     mObjAuctionsFactory  = new AuctionsServicesFactory();
     mObjInventoryFactory = new InventoryServicesFactory();
     mLonAuctionId        = pLonAuctionId;
 }
示例#11
0
        public UCBatchesByBuyerFilter()
        {
            InitializeComponent();

            mObjReportFactory   = new ReportsServiceFactory();
            mObjAuctionsFactory = new AuctionsServicesFactory();
            mObjPartnerFactory  = new BusinessServicesFactory();
        }
示例#12
0
        /// <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);
        }
示例#14
0
        public UCPrintBatch(Batch pObjBatch)
        {
            mObjAuctionsFactory  = new AuctionsServicesFactory();
            mObjBusinessFactory  = new BusinessServicesFactory();
            mObjInventoryFactory = new InventoryServicesFactory();

            InitializeComponent();
            LoadData(pObjBatch);
            CreateDocument();
        }
示例#15
0
        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;
        }
示例#17
0
文件: Program.cs 项目: xavl369/UGRS
        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
        }
示例#18
0
        /// <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);
            }
        }
示例#19
0
        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();
            }
        }
示例#20
0
        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;
        }
示例#21
0
        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;
        }
示例#22
0
        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;
        }
示例#23
0
 public UCAuctionHeader()
 {
     InitializeComponent();
     mObjAuctionsFactory = new AuctionsServicesFactory();
 }
示例#24
0
 public UCBatchLog(long pLonBatchId)
 {
     InitializeComponent();
     mLonBatchId         = pLonBatchId;
     mObjAuctionsFactory = new AuctionsServicesFactory();
 }
示例#25
0
 public UCQuantitiesDetail()
 {
     InitializeComponent();
     mObjAuctionsServices  = new AuctionsServicesFactory();
     mObjInventoryServices = new InventoryServicesFactory();
 }
示例#26
0
 public UCGuideChargeImport()
 {
     InitializeComponent();
     mObjAuctionsServicesFactory   = new AuctionsServicesFactory();
     mObjFinancialsServicesFactory = new FinancialsServicesFactory();
 }
示例#27
0
 public UCDeductionCheck()
 {
     InitializeComponent();
     mObjAuctionsServicesFactory   = new AuctionsServicesFactory();
     mObjFinancialsServicesFactory = new FinancialsServicesFactory();
 }
示例#28
0
 public UCSearchAuction()
 {
     InitializeComponent();
     mObjAuctionServiceFactory = new AuctionsServicesFactory();
 }