public RouteMaint()
     : base()
 {
     // We are using the FieldUpdating event because we are only using the [TIME] part of the DateTime.
     // the value of the field is sent to the server in the e.NewValue only when you edit the time.
     FieldUpdating.AddHandler(
         typeof(FSRoute),
         typeof(FSRoute.beginTimeOnMonday).Name + PXDBDateAndTimeAttribute.TIME_FIELD_POSTFIX,
         FSRoute_BeginTimeOnMonday__Time_FieldUpdating);
     FieldUpdating.AddHandler(
         typeof(FSRoute),
         typeof(FSRoute.beginTimeOnTuesday).Name + PXDBDateAndTimeAttribute.TIME_FIELD_POSTFIX,
         FSRoute_BeginTimeOnTuesday__Time_FieldUpdating);
     FieldUpdating.AddHandler(
         typeof(FSRoute),
         typeof(FSRoute.beginTimeOnWednesday).Name + PXDBDateAndTimeAttribute.TIME_FIELD_POSTFIX,
         FSRoute_BeginTimeOnWednesday__Time_FieldUpdating);
     FieldUpdating.AddHandler(
         typeof(FSRoute),
         typeof(FSRoute.beginTimeOnThursday).Name + PXDBDateAndTimeAttribute.TIME_FIELD_POSTFIX,
         FSRoute_BeginTimeOnThursday__Time_FieldUpdating);
     FieldUpdating.AddHandler(
         typeof(FSRoute),
         typeof(FSRoute.beginTimeOnFriday).Name + PXDBDateAndTimeAttribute.TIME_FIELD_POSTFIX,
         FSRoute_BeginTimeOnFriday__Time_FieldUpdating);
     FieldUpdating.AddHandler(
         typeof(FSRoute),
         typeof(FSRoute.beginTimeOnSaturday).Name + PXDBDateAndTimeAttribute.TIME_FIELD_POSTFIX,
         FSRoute_BeginTimeOnSaturday__Time_FieldUpdating);
     FieldUpdating.AddHandler(
         typeof(FSRoute),
         typeof(FSRoute.beginTimeOnSunday).Name + PXDBDateAndTimeAttribute.TIME_FIELD_POSTFIX,
         FSRoute_BeginTimeOnSunday__Time_FieldUpdating);
 }
Example #2
0
 public SetupMaint()
     : base()
 {
     FieldUpdating.AddHandler(
         typeof(FSSetup),
         typeof(FSSetup.dfltCalendarStartTime).Name + PXDBDateAndTimeAttribute.TIME_FIELD_POSTFIX,
         FSSetup_DfltCalendarStartTime_Time_FieldUpdating);
 }
Example #3
0
        public CloneAppointmentProcess() : base()
        {
            FieldUpdating.AddHandler(typeof(FSCloneAppointmentFilter),
                                     typeof(FSCloneAppointmentFilter.scheduledEndTime).Name + PXDBDateAndTimeAttribute.TIME_FIELD_POSTFIX,
                                     FSCloneAppointmentFilter_ScheduledEndTime_Time_FieldUpdating);

            FieldUpdating.AddHandler(typeof(FSCloneAppointmentFilter),
                                     typeof(FSCloneAppointmentFilter.scheduledStartTime).Name + PXDBDateAndTimeAttribute.TIME_FIELD_POSTFIX,
                                     FSCloneAppointmentFilter_ScheduledStartTime_Time_FieldUpdating);
        }
        public AppointmentClosingMaint()
            : base()
        {
            appClosingMenuActions.AddMenuAction(completeAppointment);
            appClosingMenuActions.AddMenuAction(closeAppointment);

            menuActions.SetVisible(false);

            FieldUpdating.AddHandler(typeof(FSAppointment),
                                     typeof(FSAppointment.actualDateTimeBegin).Name + PXDBDateAndTimeAttribute.TIME_FIELD_POSTFIX,
                                     FSAppointment_ActualDateTimeBegin_Time_FieldUpdating);

            // This is needed for Apppointment Closing Screen because the navigation functionality
            // fails if the insert for this view it is enabled.
            ClosingAppointmentRecords.Cache.AllowInsert = false;
        }
Example #5
0
        public RouteClosingMaint()
            : base()
        {
            PXUIFieldAttribute.SetDisplayName <FSServiceOrder.locationID>(ServiceOrder.Cache, TX.CustomTextFields.CUSTOMER_LOCATION);
            PXUIFieldAttribute.SetDisplayName <FSAppointment.estimatedDurationTotal>(Appointment.Cache, TX.CustomTextFields.ESTIMATED_DURATION);

            FieldUpdating.AddHandler(typeof(FSRouteDocument),
                                     typeof(FSRouteDocument.actualStartTime).Name + PXDBDateAndTimeAttribute.TIME_FIELD_POSTFIX,
                                     FSRouteDocument_ActualStartTime_FieldUpdating);

            FieldUpdating.AddHandler(typeof(FSRouteDocument),
                                     typeof(FSRouteDocument.actualEndTime).Name + PXDBDateAndTimeAttribute.TIME_FIELD_POSTFIX,
                                     FSRouteDocument_ActualEndTime_FieldUpdating);

            actionsMenu.AddMenuAction(uncloseRoute);
            actionsMenu.AddMenuAction(closeRoute);

            AppointmentsInRoute.Cache.AllowUpdate = false;
        }
 public INLotSerClassMaint()
 {
     lotserclass.Cache.Fields.Add(lotSerNumValueFieldName);
     FieldSelecting.AddHandler(typeof(INLotSerClass), lotSerNumValueFieldName, LotSerNumValueFieldSelecting);
     FieldUpdating.AddHandler(typeof(INLotSerClass), lotSerNumValueFieldName, LotSerNumValueFieldUpdating);
 }