예제 #1
0
        /// <summary>
        /// Загрузка панели прибытие вагонов
        /// </summary>
        public void loadVagWaitAdmissTab()
        {
            try
            {
                if (view.dgvVagColumnsCount == 0)
                {
                    view.makeDgvVagColumns();
                }
                if (view.dgvSelVagColumnsCount == 0)
                {
                    view.makeDgvSelVagColumns();
                }
                view.fillRospColumns(wayDB.getWays(main.selectedStation, true), WayUtils.GetInstance().CbDisplay, WayUtils.GetInstance().CbValue);

                view.setTrainNumAndDt("", "");
                view.clearVagToAdm();

                loadTrains();
                loadVagWaitAdmiss(view.hasGfVag, view.hasShopVag);
                main.setFieldWithSelVagAmount("");

                view.changeColumnsPositions(getFirstVagCondName() == "для отправки на УЗ");
                showHideGrFrAndShops();
            }
            catch (Exception ex)
            {
                main.showErrorMessage(ex.Message);
            }
        }
예제 #2
0
        private void loadWaysToCb()
        {
            WayUtils wayUtils = WayUtils.GetInstance();

            view.loadWays(wayDB.getWays(view.getStation, false), wayUtils.CbDisplay, wayUtils.CbValue, "");
        }