private void ValidateDataDetailsManual(PtTravelTypeRow ARow)
        {
            TVerificationResultCollection VerificationResultCollection = FPetraUtilsObject.VerificationResultCollection;

            TSharedValidation_CacheableDataTables.ValidateTransportType(this, ARow, ref VerificationResultCollection,
                                                                        FPetraUtilsObject.ValidationControlsDict);
        }
        private void ValidateDataDetailsManual(PtTravelTypeRow ARow)
        {
            TVerificationResultCollection VerificationResultCollection = FPetraUtilsObject.VerificationResultCollection;

            TSharedValidation_CacheableDataTables.ValidateTransportType(this, ARow, ref VerificationResultCollection,
                FPetraUtilsObject.ValidationControlsDict);
        }
        private void NewRowManual(ref PtTravelTypeRow ARow)
        {
            string baseCode = Catalog.GetString("NEWCODE");
            string newCode = baseCode;
            int suffix = 1;

            while (FMainDS.PtTravelType.Rows.Find(new object[] { newCode }) != null)
            {
                newCode = baseCode + suffix.ToString();
                suffix++;
            }

            ARow.Code = newCode;
        }
        private void NewRowManual(ref PtTravelTypeRow ARow)
        {
            string baseCode = Catalog.GetString("NEWCODE");
            string newCode  = baseCode;
            int    suffix   = 1;

            while (FMainDS.PtTravelType.Rows.Find(new object[] { newCode }) != null)
            {
                newCode = baseCode + suffix.ToString();
                suffix++;
            }

            ARow.Code = newCode;
        }
 private void GetDetailDataFromControlsManual(PtTravelTypeRow ARow)
 {
 }
 private void GetDetailDataFromControlsManual(PtTravelTypeRow ARow)
 {
 }
        /// <summary>
        /// Validates the MPersonnel Transport Type screen data.
        /// </summary>
        /// <param name="AContext">Context that describes where the data validation failed.</param>
        /// <param name="ARow">The <see cref="DataRow" /> which holds the the data against which the validation is run.</param>
        /// <param name="AVerificationResultCollection">Will be filled with any <see cref="TVerificationResult" /> items if
        /// data validation errors occur.</param>
        /// <param name="AValidationControlsDict">A <see cref="TValidationControlsDict" /> containing the Controls that
        /// display data that is about to be validated.</param>
        public static void ValidateTransportType(object AContext, PtTravelTypeRow ARow,
            ref TVerificationResultCollection AVerificationResultCollection, TValidationControlsDict AValidationControlsDict)
        {
            DataColumn ValidationColumn;
            TValidationControlsData ValidationControlsData;
            TVerificationResult VerificationResult = null;

            // 'AssignableDate' must not be empty if the flag is set
            ValidationColumn = ARow.Table.Columns[PtTravelTypeTable.ColumnUnassignableDateId];

            if (AValidationControlsDict.TryGetValue(ValidationColumn, out ValidationControlsData))
            {
                if (ARow.UnassignableFlag)
                {
                    VerificationResult = TSharedValidationControlHelper.IsNotInvalidDate(ARow.UnassignableDate,
                        ValidationControlsData.ValidationControlLabel, AVerificationResultCollection, true,
                        AContext, ValidationColumn, ValidationControlsData.ValidationControl);
                }

                // Handle addition to/removal from TVerificationResultCollection
                AVerificationResultCollection.Auto_Add_Or_AddOrRemove(AContext, VerificationResult, ValidationColumn);
            }
        }