public override void openServiceContractScreenBySchedules() { RouteServiceContractEntry graphServiceContractEntry = PXGraph.CreateInstance <RouteServiceContractEntry>(); FSServiceContract fsServiceContractRow = PXSelect <FSServiceContract, Where < FSServiceContract.serviceContractID, Equal <Required <FSServiceContract.serviceContractID> > > > .Select(this, RouteContractSchedules.Current.EntityID); graphServiceContractEntry.ServiceContractRecords.Current = fsServiceContractRow; throw new PXRedirectRequiredException(graphServiceContractEntry, null) { Mode = PXBaseRedirectException.WindowMode.NewWindow }; }
public virtual void UpdateSourcePostDoc(FSSetup fsSetupRow, FSContractPostDoc fsContractPostDocRow, FSServiceContract fsServiceContractRow) { if (fsServiceContractRow.RecordType == ID.RecordType_ServiceContract.SERVICE_CONTRACT) { ServiceContractEntry ServiceContractGraph = PXGraph.CreateInstance <ServiceContractEntry>(); ServiceContractGraph.ServiceContractRecords.Current = ServiceContractGraph.ServiceContractRecords.Search <FSServiceContract.serviceContractID>(fsContractPostDocRow.ServiceContractID, fsServiceContractRow.CustomerID); ServiceContractGraph.InvoiceBillingPeriod(fsSetupRow, fsContractPostDocRow); } else { RouteServiceContractEntry RouteServiceContractGraph = PXGraph.CreateInstance <RouteServiceContractEntry>(); RouteServiceContractGraph.ServiceContractRecords.Current = RouteServiceContractGraph.ServiceContractRecords.Search <FSServiceContract.serviceContractID>(fsContractPostDocRow.ServiceContractID, fsServiceContractRow.CustomerID); RouteServiceContractGraph.InvoiceBillingPeriod(fsSetupRow, fsContractPostDocRow); } }
public virtual void openRouteServiceContract() { if (RouteContractSchedules.Current != null) { RouteServiceContractEntry graphRouteServiceContractEntry = PXGraph.CreateInstance <RouteServiceContractEntry>(); graphRouteServiceContractEntry.ServiceContractRecords.Current = PXSelect <FSServiceContract, Where < FSServiceContract.serviceContractID, Equal <Required <FSServiceContract.serviceContractID> > > > .Select(this, RouteContractSchedules.Current.EntityID); throw new PXRedirectRequiredException(graphRouteServiceContractEntry, null) { Mode = PXBaseRedirectException.WindowMode.NewWindow }; } }
protected virtual void openServiceContractScreen() { if (RouteAppointmentForecastingRecords.Current != null) { RouteServiceContractEntry graphServiceContractEntry = PXGraph.CreateInstance <RouteServiceContractEntry>(); FSServiceContract fsServiceContractRow = PXSelect <FSServiceContract, Where < FSServiceContract.serviceContractID, Equal <Required <FSServiceContract.serviceContractID> > > > .Select(this, RouteAppointmentForecastingRecords.Current.ServiceContractID); graphServiceContractEntry.ServiceContractRecords.Current = fsServiceContractRow; throw new PXRedirectRequiredException(graphServiceContractEntry, null) { Mode = PXBaseRedirectException.WindowMode.NewWindow }; } }
public virtual void OpenContract() { RouteServiceContractEntry graphRouteServiceContractEntry = PXGraph.CreateInstance <RouteServiceContractEntry>(); FSServiceContract fsServiceContractRow_Local = (FSServiceContract)PXSelectJoin <FSServiceContract, InnerJoin <FSSchedule, On <FSSchedule.entityID, Equal <FSServiceContract.serviceContractID>, And <FSSchedule.customerID, Equal <FSServiceContract.customerID> > > >, Where < FSSchedule.scheduleID, Equal <Required <FSSchedule.scheduleID> > > > .Select(this, ServiceContracts.Current.ScheduleID); graphRouteServiceContractEntry.ServiceContractRecords.Current = fsServiceContractRow_Local; throw new PXRedirectRequiredException(graphRouteServiceContractEntry, null) { Mode = PXBaseRedirectException.WindowMode.NewWindow }; }
public virtual void openContract() { ContractPostBatchDetail fsContractPostDocRow = ContractPostDocRecords.Current; if (fsContractPostDocRow == null) { return; } FSServiceContract fsServiceContractRow = PXSelect <FSServiceContract, Where < FSServiceContract.serviceContractID, Equal <Required <FSServiceContract.serviceContractID> > > > .Select(this, fsContractPostDocRow.ServiceContractID); if (fsServiceContractRow == null) { return; } if (fsServiceContractRow.RecordType == ID.RecordType_ServiceContract.SERVICE_CONTRACT) { ServiceContractEntry graphServiceContractEntry = PXGraph.CreateInstance <ServiceContractEntry>(); graphServiceContractEntry.ServiceContractRecords.Current = graphServiceContractEntry.ServiceContractRecords.Search <FSServiceContract.serviceContractID>(fsServiceContractRow.ServiceContractID, fsServiceContractRow.CustomerID); throw new PXRedirectRequiredException(graphServiceContractEntry, null) { Mode = PXBaseRedirectException.WindowMode.NewWindow }; } else { RouteServiceContractEntry graphRouteServiceContractEntry = PXGraph.CreateInstance <RouteServiceContractEntry>(); graphRouteServiceContractEntry.ServiceContractRecords.Current = graphRouteServiceContractEntry.ServiceContractRecords.Search <FSServiceContract.serviceContractID>(fsServiceContractRow.ServiceContractID, fsServiceContractRow.CustomerID); throw new PXRedirectRequiredException(graphRouteServiceContractEntry, null) { Mode = PXBaseRedirectException.WindowMode.NewWindow }; } }