Beispiel #1
0
        internal static void OnButtonClick(WindowMenuInfo windowMenuInfo, System.Windows.Forms.Form parentForm)
        {
            IArchiveDetailFormWithDetailGrids addg = parentForm as IArchiveDetailFormWithDetailGrids;

            if (addg != null)
            {
                foreach (IBoundGrid i in addg.DetailGrids)
                {
                    MyGrid.CancelEditCurrentDataRow(i);
                }
            }
            IGridContainer agf = parentForm as IGridContainer;

            if (agf != null)
            {
                MyGrid.CancelEditCurrentDataRow(agf.MasterGrid);
            }

            IControlManagerContainer cmc = parentForm as IControlManagerContainer;

            if (cmc != null)
            {
                InternalExecuteWindowMenu(cmc.ControlManager, windowMenuInfo, parentForm);
            }
            else
            {
                IDisplayManagerContainer dmc = parentForm as IDisplayManagerContainer;
                if (dmc != null)
                {
                    InternalExecuteWindowMenu(dmc.DisplayManager, windowMenuInfo, parentForm);
                    //InternalExecuteWindowMenu((parentForm as ArchiveDetailForm).ParentArchiveForm, windowMenuInfo);
                }
            }
        }
Beispiel #2
0
        protected virtual void WriteStartRootDocument(IGridContainer <T> grid)
        {
            WriteStartElement("grid");

            _output.WriteAttributeString("viewport", grid.ViewPort.ToString());
            _output.WriteAttributeString("width", grid.Width.ToString());
            _output.WriteAttributeString("height", grid.Height.ToString());
        }
Beispiel #3
0
        protected override void WriteStartRootDocument(IGridContainer <T> grid)
        {
            XmlWriter.WriteStartElement("table");

            if (!string.IsNullOrEmpty(_className))
            {
                XmlWriter.WriteAttributeString("class", _className);
            }
        }
Beispiel #4
0
        public void WriteStartGrid(IGridContainer <T> grid)
        {
            if (!_dataWritten)
            {
                _output.WriteStartDocument();
                _dataWritten = true;
            }

            WriteStartRootDocument(grid);
        }
Beispiel #5
0
        /// <summary>
        /// 绑定格子
        /// </summary>
        public void bindGrid()
        {
            UIObject grid = ViewUtils.getRootGrid(this);

            if (grid != null)
            {
                IGridContainer gridContainer = (IGridContainer)grid.parent;

                gridContainer.setClickObject(this, gridContainer.getGridIndex(grid));
            }
        }
Beispiel #6
0
        protected override void WriteStartRootDocument(IGridContainer <T> grid)
        {
            _unitWidth  = grid.UnitWidth;
            _unitHeight = grid.UnitHeight;

            XmlWriter.WriteStartElement("svg", "http://www.w3.org/2000/svg");

            if (!string.IsNullOrEmpty(_className))
            {
                XmlWriter.WriteAttributeString("class", _className);
            }

            XmlWriter.WriteAttributeString("width", (_unitWidth * grid.Width).ToString());
            XmlWriter.WriteAttributeString("height", (_unitHeight * grid.Height).ToString());
        }
Beispiel #7
0
        private void LoadDataAndResetInterface(ScrittureSearchCriteria criteria)
        {
            IGridContainer <ScrittureDTO> grid = _view.GridContainer;

            grid.AutoGenerateColumns = false;

            SortableBindingList <ScrittureDTO> list = _service.SearchScrittureBilancio(_idConto, criteria);

            AbstractBilancio b;

            if (!string.IsNullOrEmpty(_idConto))
            {
                b = _service.Bilancio.FindNodeById(_idConto);
            }
            else
            {
                b = _service.Bilancio;
            }


            LoadSearchCombos();
            SetCaptionText(b);
            CheckAddEnabled(b);
            CheckMessageVisibility(b);
            CheckEmptyLabelVisibility(list);
            SetFoundElements(list);
            SetColumnContoVisible(b);

            grid.SetSource(TipoOperazioneDecoder.TranslateDomainValuesToListGUIValues(list, _view.Banca1, _view.Banca2, _view.Banca3, _view.Banca4, _view.Banca5, _view.Banca6));

            //sincronizzo il totale
            // decimal initialValue = 0;

            //decimal total = _service.CalculateTotalForSCritture(grid.BoundList);


            //_view.SetScrittureTotalizzation(total.ToString("c"));
            RefreshSaldoConto();
        }
Beispiel #8
0
        private void LoadDataAndResetInterface(ScrittureSearchCriteria criteria)
        {
            IGridContainer <ScrittureDTO> grid = _view.GridContainer;

            grid.AutoGenerateColumns = false;

            SortableBindingList <ScrittureDTO> list = _service.SearchScrittureBilancio(criteria);

            AbstractBilancio b = _service.ContoRLST;



            SetCaptionText(b);
            CheckAddEnabled(b);
            CheckMessageVisibility(b);
            CheckEmptyLabelVisibility(list);
            SetFoundElements(list);
            SetColumnContoVisible(b);

            grid.SetSource(list);
            _view.SaldoConto = "Saldo conto: " + _service.Total;
        }
Beispiel #9
0
        private void LoadStatoPatrimoniale()
        {
            IGridContainer <Auto> c = _view.GridAuto;

            c.AutoGenerateColumns = false;
            c.SetSource(_statoPatrimonialeService.SortableAutoList);


            IGridContainer <Polizza> c1 = _view.GridPolizze;

            c1.AutoGenerateColumns = false;
            c1.SetSource(_statoPatrimonialeService.SortablePolizzeList);

            IGridContainer <Immobile> c2 = _view.GridImmpobili;

            c2.AutoGenerateColumns = false;
            c2.SetSource(_statoPatrimonialeService.SortableImmobiliList);

            IGridContainer <Deposito> c3 = _view.GridDepositi;

            c3.AutoGenerateColumns = false;
            c3.SetSource(_statoPatrimonialeService.SortableDepositiList);

            IGridContainer <Mobile> c4 = _view.GridMobili;

            c4.AutoGenerateColumns = false;
            c4.SetSource(_statoPatrimonialeService.SortableMobiliList);

            IGridContainer <AccantonamentoTFR> c5 = _view.GridAccantonamentoTFR;

            c5.AutoGenerateColumns = false;
            c5.SetSource(_statoPatrimonialeService.SortableAccantonamentiTFRList);

            IGridContainer <Chiusura> c6 = _view.GridChiusure;

            c6.AutoGenerateColumns = false;
            c6.SetSource(_statoPatrimonialeService.SortableChiusureList);
        }
Beispiel #10
0
 public void WriteStartGrid(IGridContainer <T> grid)
 {
 }