protected virtual void _(Events.RowSelected <FSSrvOrdTypeProblem> e)
        {
            if (e.Row == null)
            {
                return;
            }

            FSSrvOrdTypeProblem fsSrvOrdTypeProblemRow = (FSSrvOrdTypeProblem)e.Row;

            bool enableDisableFields = fsSrvOrdTypeProblemRow.ProblemID == null;

            PXUIFieldAttribute.SetEnabled <FSSrvOrdTypeProblem.problemID>(e.Cache, fsSrvOrdTypeProblemRow, enableDisableFields);
        }
        protected virtual void FSSrvOrdTypeProblem_RowSelected(PXCache cache, PXRowSelectedEventArgs e)
        {
            if (e.Row == null)
            {
                return;
            }

            FSSrvOrdTypeProblem fsSrvOrdTypeProblemRow = (FSSrvOrdTypeProblem)e.Row;

            bool enableDisableFields = fsSrvOrdTypeProblemRow.ProblemID == null;

            PXUIFieldAttribute.SetEnabled <FSSrvOrdTypeProblem.problemID>
                (cache, fsSrvOrdTypeProblemRow, enableDisableFields);
        }
        protected virtual void FSSrvOrdTypeProblem_RowInserting(PXCache sender, PXRowInsertingEventArgs e)
        {
            if (e.Row == null)
            {
                return;
            }

            FSSrvOrdTypeProblem fsSrvOrdTypeProblemRow = (FSSrvOrdTypeProblem)e.Row;
            int?problemID = fsSrvOrdTypeProblemRow.ProblemID;

            FSSrvOrdTypeProblem fsSrvOrdTypeProblemRow_InDB = PXSelect <FSSrvOrdTypeProblem,
                                                                        Where <
                                                                            FSSrvOrdTypeProblem.problemID, Equal <Required <FSSrvOrdTypeProblem.problemID> >,
                                                                            And <
                                                                                FSSrvOrdTypeProblem.srvOrdType, Equal <Current <FSSrvOrdType.srvOrdType> > > > >
                                                              .SelectWindowed(this, 0, 1, problemID);

            if (fsSrvOrdTypeProblemRow_InDB != null)
            {
                sender.RaiseExceptionHandling <FSSrvOrdTypeProblem.problemID>(fsSrvOrdTypeProblemRow, problemID, new PXSetPropertyException(TX.Error.ID_ALREADY_USED, PXErrorLevel.RowError));
                e.Cancel = true;
            }
        }