Пример #1
0
 private void grid_CellEditedFormattedValueChanged(object sender, CellEditedFormattedValueChangedEventArgs e)
 {
     if (e.CellName != CellName(nameof(ClosingHistory.Selected)))
     {
         return;
     }
     grid.EndEdit();
 }
Пример #2
0
        private void grid_CellEditedFormattedValueChanged(object sender, CellEditedFormattedValueChangedEventArgs e)
        {
            ClearStatusMessage();

            if (e.CellIndex == 0 || e.CellIndex == 1)
            {
                Modified = true;
            }
        }
Пример #3
0
        private void grid_CellEditedFormattedValueChanged(object sender, CellEditedFormattedValueChangedEventArgs e)
        {
            grid.EndEdit();
            var hasAnyChecked = grid.Rows.Select(x => x.DataBoundItem as Log)?.Any(x => x.Checked) ?? false;

            BaseContext.SetFunction06Enabled(hasAnyChecked);
            BaseContext.SetFunction07Enabled(hasAnyChecked);
            BaseContext.SetFunction08Enabled(hasAnyChecked);
        }
Пример #4
0
 private void grid_CellEditedFormattedValueChanged(object sender, CellEditedFormattedValueChangedEventArgs e)
 {
     if (e.RowIndex < 0)
     {
         return;
     }
     grid.EndEdit();
     if (e.CellName == CellName(nameof(billing.Selected)))
     {
         DisplayExtractCount();
         SetF04Enable();
     }
 }
Пример #5
0
        private void grdBillingSearch_CellEditedFormattedValueChanged(object sender, CellEditedFormattedValueChangedEventArgs e)
        {
            if (e.RowIndex < 0)
            {
                return;
            }

            grid.CommitEdit();

            var row = grid.CurrentRow;

            SetModifiedRow(row.Index);
            SetFunctionKeysEnabled();
        }
Пример #6
0
        private void grdImportItems_CellEditedFormattedValueChanged(object sender, CellEditedFormattedValueChangedEventArgs e)
        {
            if (!(e.CellName == CellName(nameof(ImportItem.DoImport)) ||
                  e.CellName == CellName(nameof(ImportItem.EBFileSettingId))))
            {
                return;
            }

            grdImportItems.CommitEdit();

            var settingIds = grdImportItems.Rows
                             .Select(x => x.DataBoundItem as ImportItem)
                             .Where(x => x.DoImport)
                             .Select(x => x.EBFileSettingId).Distinct().ToArray();

            var requireYear = EBFileSettings.Any(x => x.IsUseable == 1 && x.RequireYear == 1 && settingIds.Contains(x.Id));

            datYear.Enabled = requireYear;
        }
        private void grid_CellEditedFormattedValueChanged(object sender, CellEditedFormattedValueChangedEventArgs e)
        {
            Modified = true;
            if (e.RowIndex < 0 || e.CellIndex != CellIndexImportDivision)
            {
                return;
            }
            var checkBoxStatus = Convert.ToBoolean(grid.CurrentCell.EditedFormattedValue);
            var row            = grid.Rows[e.RowIndex];
            var field          = ConvertRowToFields(row);

            if (!IsImportDivisionEnabled(field))
            {
                return;
            }
            if (checkBoxStatus)
            {
                row.Cells[CellIndexFieldIndex].Enabled     = true;
                row.Cells[CellIndexCaption].Enabled        = true;
                row.Cells[CellIndexAttribute].Enabled      = IsAttributeEnabled(field);
                row.Cells[CellIndexPriority].Enabled       = false;
                row.Cells[CellIndexPriority].Value         = null;
                row.Cells[CellIndexAssendingOrder].Enabled = false;
                row.Cells[CellIndexAssendingOrder].Value   = null;
            }
            else
            {
                row.Cells[CellIndexFieldIndex].Enabled     = false;
                row.Cells[CellIndexCaption].Enabled        = false;
                row.Cells[CellIndexFieldIndex].Value       = null;
                row.Cells[CellIndexCaption].Value          = "";
                row.Cells[CellIndexAttribute].Enabled      = false;
                row.Cells[CellIndexAttribute].Value        = null;
                row.Cells[CellIndexPriority].Enabled       = true;
                row.Cells[CellIndexAssendingOrder].Enabled = true;
            }
        }
Пример #8
0
 private void grdHistory_CellEditedFormattedValueChanged(object sender, CellEditedFormattedValueChangedEventArgs e)
 {
     SetDeleteFunctionKeyEnabled();
 }
Пример #9
0
 private void grd_CellEditedFormattedValueChanged(object sender, CellEditedFormattedValueChangedEventArgs e)
 {
     Modified = true;
 }
Пример #10
0
 private void grid_CellEditedFormattedValueChanged(object sender, CellEditedFormattedValueChangedEventArgs e)
 {
     grid.CommitEdit();
 }
Пример #11
0
 private void grid_CellEditedFormattedValueChanged(object sender, CellEditedFormattedValueChangedEventArgs e)
 {
     grdImportSetting.EndEdit();
     Modified = true;
 }
Пример #12
0
 private void grdBilling_CellEditedFormattedValueChanged(object sender, CellEditedFormattedValueChangedEventArgs e)
 {
     ChangeValueByCheckBox();
 }