Example #1
0
        public NumberSecondNumberConvertRowMangerWithMoneyChanged(DFGridBase grid, string mainfield, string secondfield, string moneyfield, bool isLockPrice = false)
        {
            _isLockPrice = isLockPrice;

            _mainNumberField   = mainfield;
            _secondNumberField = secondfield;
            _moneyField        = moneyfield;
            _hasMoney          = _hasPrice = false;
            foreach (DFGridColumn column in grid.Columns)
            {
                if (column is DFEditGridColumn <DFTextBox> )
                {
                    var c = (DFEditGridColumn <DFTextBox>)column;
                    if (c.Name == mainfield)
                    {
                        _mainNumberInput = c;
                    }
                    else if (c.Name == secondfield)
                    {
                        _secondNumberInput = c;
                    }
                    else if (c.Name == "Price")
                    {
                        _priceInput = c;
                        _hasPrice   = true;
                    }
                    else if (c.Name == moneyfield)
                    {
                        _moneyInput = c;
                        _hasMoney   = true;
                    }
                }
                else if (column is DFEditGridColumn)
                {
                    var c1 = (DFEditGridColumn)column;
                    if (c1.Name == _moneyField)
                    {
                        _hasMoney = true;
                    }
                    else if (c1.Name == "Price")
                    {
                        _hasPrice = true;
                    }
                }
            }
            SetClientScript();
        }
Example #2
0
 public MainToSecondConvertRowManger(DFGridBase grid)
     : this(grid, "Number", "SecondNumber", "Money")
 {
 }
Example #3
0
 public NumberSecondNumberConvertRowMangerWithMoneyChanged(DFGridBase grid, bool isLockPrice = false)
     : this(grid, "Number", "SecondNumber", "Money", isLockPrice)
 {
 }