Exemplo n.º 1
0
        public void Init()
        {
            _containerBL = new ContainerBL();
            _containerBL.Init();
            //_containerDataTable =
            gridContainer.DataSource = _containerBL.FillList();

            foreach (DataColumn dataColumn in _containerBL.ContainerDataSet.Container.Columns)
            {
                if (dataColumn == _containerBL.ContainerDataSet.Container.ContainerNameColumn || dataColumn == _containerBL.ContainerDataSet.Container.ContainerNumberColumn || dataColumn == _containerBL.ContainerDataSet.Container.eToMeasureColumn)
                    continue;

                gridContainer.InitColumnsAsInvisible(dataColumn);
            }
        }
Exemplo n.º 2
0
        public void Init()
        {
            _ContainerBL = new ContainerBL();
            _ContainerBL.Init();
            _ContainerBL.FillList();

            gridContainer.DataSource = _ContainerBL.ContainerDataSet.Container;

            gridContainer.InitColumnsAsInvisible(
                _ContainerBL.ContainerDataSet.Container.eToMeasureColumn,
                _ContainerBL.ContainerDataSet.Container.IsCapacityGrowColumn,
                _ContainerBL.ContainerDataSet.Container.ContainerIdColumn,
                _ContainerBL.ContainerDataSet.Container.CapacityDeliveredColumn,
                _ContainerBL.ContainerDataSet.Container.CapacityDeliveredDateColumn,
                _ContainerBL.ContainerDataSet.Container.IsDeletedColumn,
                _ContainerBL.ContainerDataSet.Container.ContainerTypeColumn,
                _ContainerBL.ContainerDataSet.Container.MaxHeightColumn,
                _ContainerBL.ContainerDataSet.Container.MinHeightColumn
            );
        }
Exemplo n.º 3
0
        public void AddMeasurements()
        {
            MeasurementBL measurementBL = new MeasurementBL();
            measurementBL.Init();

            ContainerBL containerBL = new ContainerBL();
            containerBL.Init();
            containerBL.FillList();

            //dodanie aktualnego
            measurementBL.AddNewMeasurement(MainRow.ContainerId, MainRow.CurrentHeight, MainRow.CurrentCapacity);
            //przepisanie reszty
            foreach (ContainerDataSet.ContainerRow containerRow in containerBL.ContainerDataSet.Container.Select())
            {
                if (containerRow.ContainerId != MainRow.ContainerId)
                    measurementBL.AddNewMeasurement(containerRow.ContainerId, containerRow.CurrentHeight, containerRow.CurrentCapacity);
            }

            measurementBL.Save();
        }
Exemplo n.º 4
0
        private void InitNewTransmission()
        {
            _containerDataTable.Clear();

            ContainerBL containerBL = new ContainerBL();
            containerBL.Init();
            _containerDataTable = containerBL.FillList();

            gridMeasures.DataSource = new DataView(_containerDataTable, "0=1", "", DataViewRowState.CurrentRows);
        }