Example #1
0
        private void PivotGridControl_CellDoubleClick(object sender, DevExpress.Xpf.PivotGrid.PivotCellEventArgs e)
        {
            var cell = pivotDgProjectTrans.FocusedCell;

            if (e.ColumnField != null && e.ColumnField.GroupInterval == FieldGroupInterval.DateMonth && e.RowField?.FieldName == "Employee")
            {
                object MonthNo  = pivotDgProjectTrans.GetFieldValue(e.ColumnField, cell.X);
                object employee = pivotDgProjectTrans.GetFieldValue(e.RowField, cell.Y) as string;

                string vheader = string.Format("{0} ({1})", Uniconta.ClientTools.Localization.lookup("PrTransaction"), employee);
                AddDockItem(TabControls.EmployeeProjectTransactionPage, new object[] { employee, MonthNo }, vheader);
            }
        }
        private void PivotGridControl_CellDoubleClick(object sender, DevExpress.Xpf.PivotGrid.PivotCellEventArgs e)
        {
            var cell = pivotDgProjectPlanning.FocusedCell;

            if (e.ColumnField.GroupInterval == FieldGroupInterval.DateMonth && e.RowField.FieldName == "Employee")
            {
                object columnValue = pivotDgProjectPlanning.GetFieldValue(e.ColumnField, cell.X);
                object rowValue    = pivotDgProjectPlanning.GetFieldValue(e.RowField, cell.Y);

                var    monthNo  = (int)columnValue;
                string employee = (string)rowValue;

                string vheader = string.Format("{0} ({1})", Uniconta.ClientTools.Localization.lookup("PrTransaction"), employee);
                var    param   = new object[2];
                param[0] = employee;
                param[1] = monthNo;
                AddDockItem(TabControls.EmployeeProjectTransactionPage, param, vheader);
            }
        }
        private void PivotGridControl_CellDoubleClick(object sender, DevExpress.Xpf.PivotGrid.PivotCellEventArgs e)
        {
            var cell = pivotDgProjectPlanning.FocusedCell;

            OpenBudgetTransactions(e.GetColumnFields(), e.RowField);
        }