public virtual void OpenSchedule() { RouteServiceContractScheduleEntry graphContractScheduleEntry = PXGraph.CreateInstance <RouteServiceContractScheduleEntry>(); FSRouteContractSchedule fsScheduleRow_Local = (FSRouteContractSchedule)PXSelect <FSRouteContractSchedule, Where < FSRouteContractSchedule.scheduleID, Equal <Required <FSRouteContractSchedule.scheduleID> > > > .Select(this, ServiceContracts.Current.ScheduleID); graphContractScheduleEntry.ContractScheduleRecords.Current = (FSRouteContractSchedule)fsScheduleRow_Local; throw new PXRedirectRequiredException(graphContractScheduleEntry, null) { Mode = PXBaseRedirectException.WindowMode.NewWindow }; }
public override void openScheduleScreenByGenerationLogError() { RouteServiceContractScheduleEntry graphContractScheduleEntry = PXGraph.CreateInstance <RouteServiceContractScheduleEntry>(); FSRouteContractSchedule fsContractScheduleRow = PXSelect <FSRouteContractSchedule, Where < FSRouteContractSchedule.scheduleID, Equal <Required <FSRouteContractSchedule.scheduleID> > > > .Select(this, ErrorMessageRecords.Current.ScheduleID); graphContractScheduleEntry.ContractScheduleRecords.Current = fsContractScheduleRow; throw new PXRedirectRequiredException(graphContractScheduleEntry, null) { Mode = PXBaseRedirectException.WindowMode.NewWindow }; }
public override void openScheduleScreenBySchedules() { RouteServiceContractScheduleEntry graphContractScheduleEntry = PXGraph.CreateInstance <RouteServiceContractScheduleEntry>(); FSRouteContractSchedule fsContractScheduleRow = PXSelect <FSRouteContractSchedule, Where < FSRouteContractSchedule.refNbr, Equal <Required <FSRouteContractSchedule.refNbr> >, And <FSRouteContractSchedule.entityType, Equal <ListField_Schedule_EntityType.Contract>, And <FSRouteContractSchedule.entityID, Equal <Required <FSRouteContractSchedule.entityID> >, And <FSRouteContractSchedule.customerID, Equal <Required <FSRouteContractSchedule.customerID> > > > > > > .Select(this, RouteContractSchedules.Current.RefNbr, RouteContractSchedules.Current.EntityID, RouteContractSchedules.Current.CustomerID); graphContractScheduleEntry.ContractScheduleRecords.Current = fsContractScheduleRow; throw new PXRedirectRequiredException(graphContractScheduleEntry, null) { Mode = PXBaseRedirectException.WindowMode.NewWindow }; }
protected virtual void openScheduleScreen() { if (RouteAppointmentForecastingRecords.Current != null) { RouteServiceContractScheduleEntry graphContractScheduleEntry = PXGraph.CreateInstance <RouteServiceContractScheduleEntry>(); FSRouteContractSchedule fsContractScheduleRow = PXSelect <FSRouteContractSchedule, Where < FSRouteContractSchedule.scheduleID, Equal <Required <FSRouteContractSchedule.scheduleID> >, And <FSRouteContractSchedule.entityType, Equal <ListField_Schedule_EntityType.Contract>, And <FSRouteContractSchedule.entityID, Equal <Required <FSRouteContractSchedule.entityID> >, And <FSRouteContractSchedule.customerID, Equal <Required <FSRouteContractSchedule.customerID> > > > > > > .Select(this, RouteAppointmentForecastingRecords.Current.ScheduleID, RouteAppointmentForecastingRecords.Current.ServiceContractID, RouteAppointmentForecastingRecords.Current.CustomerID); graphContractScheduleEntry.ContractScheduleRecords.Current = fsContractScheduleRow; throw new PXRedirectRequiredException(graphContractScheduleEntry, null) { Mode = PXBaseRedirectException.WindowMode.NewWindow }; } }